/* SDP Edicion — front-end styles */

.sdp-edicion-wrap {
    font-family: inherit;
    margin: 1rem 0;
}

/* 16:9 cover wrapper */
.sdp-ed-cover-wrap {
    margin-bottom: 1.25rem;
    border-radius: 10px;
    overflow: hidden;
    border: 0.5px solid #e4e4e7;
}

.sdp-ed-cover-16x9 {
    position: relative;
    width: 100%;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.sdp-ed-cover-img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Body */
.sdp-ed-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sdp-ed-intro {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* Read button */
.sdp-ed-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a2e;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    align-self: flex-start;
}

.sdp-ed-btn:hover {
    background: #2d2b55;
    color: #fff;
    text-decoration: none;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .sdp-ed-cover-wrap { border-color: #2e2e3e; }
    .sdp-ed-intro { color: #ccc; }
    .sdp-ed-btn { background: #2d2b55; }
    .sdp-ed-btn:hover { background: #3d3b65; }
}

/* Mobile */
@media (max-width: 480px) {
    .sdp-ed-btn { width: 100%; justify-content: center; }
}

/* Issuu embed */
.sdp-ed-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 65%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 0.5px solid #e4e4e7;
    margin-bottom: 1.25rem;
    background: #1a1a2e;
}

.sdp-ed-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
