.editorial-site .site-nav .is-current { color: var(--red); }

.library-hero {
    color: var(--cream);
    background:
        linear-gradient(90deg, rgba(7, 14, 36, .98), rgba(7, 14, 36, .78)),
        url('/images/editorial/historia-janela.webp') center 42% / cover;
    border-bottom: 3px solid var(--gold);
}

.library-hero__inner { max-width: 850px; padding-block: clamp(76px, 10vw, 126px); margin-left: max(calc((100% - 1180px) / 2), 24px); }
.library-hero h1 { max-width: 760px; margin: 17px 0 20px; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .9; }
.library-hero__inner > p:last-child { max-width: 680px; margin: 0; color: rgba(255, 254, 250, .79); font-size: 1.05rem; }
.library-content { padding-block: clamp(68px, 8vw, 112px); }
.library-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 44px; margin-bottom: 38px; }
.library-toolbar h2 { margin: 8px 0 0; font-size: clamp(2.25rem, 4vw, 3.5rem); }
.article-search { display: flex; min-width: min(100%, 390px); border-bottom: 1px solid var(--navy); }
.article-search input { width: 100%; padding: 12px 4px; color: var(--ink); background: transparent; border: 0; outline: 0; font: inherit; }
.article-search button { padding: 10px 2px 10px 18px; color: var(--red); background: none; border: 0; font: 700 .75rem var(--sans); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.commission-tabs { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 36px; scrollbar-width: thin; }
.commission-tabs a { flex: 0 0 auto; padding: 9px 17px; border: 1px solid var(--line); font-size: .82rem; font-weight: 650; }
.commission-tabs a:hover, .commission-tabs a.is-active { color: var(--white); background: var(--navy); border-color: var(--navy); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 24px; }
.article-card { min-width: 0; border-bottom: 1px solid var(--line); }
.article-card__image { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--cream-deep); }
.article-card__image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .article-card__image > img { transform: scale(1.035); }
.article-card__placeholder { display: grid; width: 100%; height: 100%; place-items: center; background: radial-gradient(circle, #fff 0, var(--cream-deep) 72%); }
.article-card__placeholder img { opacity: .55; }
.article-card__body { padding: 22px 0 25px; }
.article-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 25px; color: var(--red); font: 700 .7rem var(--sans); text-transform: uppercase; letter-spacing: .11em; }
.article-card__meta a:hover { text-decoration: underline; }
.article-card h2 { margin: 13px 0 12px; font-size: clamp(1.65rem, 2.4vw, 2rem); line-height: 1.05; }
.article-card h2 a:hover { color: var(--red); }
.article-card__body > p { min-height: 3.3em; margin-bottom: 20px; color: var(--body); font-size: .9rem; line-height: 1.55; }
.article-card__footer { display: flex; flex-wrap: wrap; gap: 4px 10px; color: #777982; font-size: .72rem; }
.article-card__footer span::after { content: '·'; margin-left: 10px; }
.article-card__read { display: inline-flex; gap: 12px; padding: 16px 0 2px; color: var(--navy); font-size: .78rem; font-weight: 700; border-bottom: 1px solid var(--navy); }
.privacy-badge { padding: 4px 7px; color: #fff; background: var(--red); border-radius: 999px; font: 700 .59rem var(--sans); letter-spacing: .06em; }
.article-empty { padding: 70px 24px; text-align: center; background: var(--cream); border: 1px solid var(--line); }
.article-empty img { margin: 0 auto 20px; opacity: .7; }
.article-empty h2 { margin-bottom: 12px; font-size: 2.4rem; }
.article-empty p { color: var(--body); }
.article-empty a { color: var(--red); font-weight: 700; border-bottom: 1px solid; }
.editorial-pagination { display: flex; align-items: center; justify-content: center; gap: 28px; padding-top: 48px; font-size: .8rem; }
.editorial-pagination a { color: var(--red); font-weight: 700; }
.editorial-pagination [aria-disabled] { color: #9c9ba0; }

.article-hero { padding: clamp(58px, 8vw, 105px) 24px clamp(45px, 7vw, 80px); text-align: center; background: var(--cream); border-bottom: 1px solid var(--line); }
.reading-shell { width: min(870px, calc(100% - 48px)); margin-inline: auto; }
.article-breadcrumb { display: flex; justify-content: center; gap: 9px; margin-bottom: 42px; color: var(--body); font-size: .76rem; }
.article-breadcrumb a:hover { color: var(--red); }
.article-hero h1 { margin: 15px auto 22px; font-size: clamp(3.2rem, 7vw, 6rem); line-height: .9; text-wrap: balance; }
.article-deck { max-width: 710px; margin: 0 auto 26px; color: var(--body); font-size: 1.08rem; }
.article-byline { display: flex; justify-content: center; gap: 10px; color: #6f7076; font-size: .77rem; }
.article-byline span::after { content: '·'; margin-left: 10px; }
.article-cover { width: min(1180px, calc(100% - 48px)); margin: 60px auto 0; }
.article-cover img { width: 100%; max-height: 660px; object-fit: cover; }
.reading-layout { position: relative; padding-block: clamp(55px, 8vw, 96px); }
.article-prose { color: #2d3040; font-family: Georgia, serif; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.85; }
.article-prose > *:first-child { margin-top: 0; }
.article-prose h2, .article-prose h3 { margin: 2em 0 .7em; color: var(--navy); line-height: 1.1; }
.article-prose h2 { font-size: 2.35rem; }
.article-prose h3 { font-size: 1.85rem; }
.article-prose a { color: var(--red); text-decoration: underline; }
.article-prose blockquote { margin: 2.2em 0; padding: 8px 0 8px 28px; color: var(--navy); border-left: 3px solid var(--gold); font-family: var(--display); font-size: 1.55rem; line-height: 1.25; }
.article-prose img { height: auto; margin-block: 2em; }
.share-rail { position: absolute; top: 100px; left: -178px; display: grid; gap: 10px; width: 145px; font-size: .7rem; }
.share-rail > span:first-child { color: #777982; text-transform: uppercase; letter-spacing: .1em; }
.share-rail a, .share-rail button { padding: 0; color: var(--navy); background: none; border: 0; font: 700 .72rem var(--sans); text-align: left; cursor: pointer; }
.share-rail a:hover, .share-rail button:hover { color: var(--red); }
.copy-feedback { min-height: 1.2em; color: var(--red); }
.public-comments { padding: 0 0 92px; }
.public-comments h2, .related-articles h2 { margin: 8px 0 8px; font-size: 3rem; }
.comments-note { color: var(--body); font-size: .83rem; }
.comment-list { display: grid; gap: 16px; margin-top: 28px; }
.comment { padding: 24px; background: var(--cream); border-left: 2px solid var(--gold); }
.comment > div { display: flex; justify-content: space-between; gap: 16px; color: var(--body); font-size: .72rem; }
.comment p { margin: 13px 0 0; white-space: pre-line; }
.related-articles { padding-block: 76px 100px; background: var(--cream); border-top: 1px solid var(--line); }
.related-articles .article-grid { margin-top: 35px; }
.editorial-footer { padding: 50px 0; color: rgba(255,255,255,.75); background: var(--navy); }
.editorial-footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 42px; }
.editorial-footer img { filter: brightness(0) invert(1); opacity: .9; }
.editorial-footer p { margin: 0; font-family: var(--display); font-size: 1.25rem; }
.editorial-footer nav { display: flex; gap: 22px; font-size: .75rem; }
.editorial-footer a:hover { color: #fff; }

@media (max-width: 1080px) {
    .share-rail { position: static; display: flex; flex-wrap: wrap; width: auto; margin-bottom: 30px; }
    .share-rail > span:first-child { width: 100%; }
}

@media (max-width: 820px) {
    .library-hero__inner { margin: 0 auto; }
    .library-toolbar { align-items: stretch; flex-direction: column; gap: 24px; }
    .article-search { min-width: 0; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .editorial-footer__inner { grid-template-columns: 1fr; text-align: center; }
    .editorial-footer img { margin-inline: auto; }
    .editorial-footer nav { justify-content: center; }
}

@media (max-width: 580px) {
    .article-grid { grid-template-columns: 1fr; }
    .library-hero h1 { font-size: 3.3rem; }
    .article-hero h1 { font-size: 3.35rem; }
    .article-deck { font-size: .98rem; }
    .article-byline { align-items: center; flex-direction: column; }
    .article-byline span::after { display: none; }
    .article-cover { width: 100%; margin-top: 0; }
    .reading-shell { width: min(100% - 32px, 870px); }
    .article-prose { font-size: 1rem; line-height: 1.75; }
    .article-prose h2 { font-size: 2rem; }
    .editorial-pagination { gap: 13px; font-size: .72rem; }
    .editorial-footer nav { align-items: center; flex-direction: column; }
}
