:root {
    --editorial-bg: #090d12;
    --editorial-surface: #111922;
    --editorial-surface-raised: #16212c;
    --editorial-text: #f2f1e9;
    --editorial-muted: #a7b1b8;
    --editorial-border: rgba(230, 237, 243, 0.12);
    --editorial-amber: #f2ad52;
    --editorial-terminal: #83c89b;
    --editorial-blue: #203d57;
}

.sala-page {
    background:
        radial-gradient(ellipse at 50% -30%, rgba(34, 67, 91, 0.4), transparent 56%),
        var(--editorial-bg);
    color: var(--editorial-text);
}

.retro-header {
    padding: 1.1rem clamp(1rem, 4vw, 3.5rem) 2.25rem;
    background: rgba(8, 13, 18, 0.92);
    border-bottom: 1px solid var(--editorial-border);
}

.editorial-masthead {
    max-width: 1320px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--editorial-muted);
    font: 0.72rem/1.4 var(--sala-font-brand);
    letter-spacing: 0.08em;
}

.editorial-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--editorial-text);
    text-decoration: none;
}

.editorial-brand img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.editorial-brand-divider {
    color: var(--editorial-amber);
}

.editorial-edition {
    color: var(--editorial-terminal);
    text-align: right;
}

.retro-header h1 {
    color: var(--editorial-text);
    font: 500 clamp(2.5rem, 6vw, 5.2rem)/1.04 Georgia, "Times New Roman", serif;
    letter-spacing: -0.045em;
    text-shadow: none;
}

.retro-header p {
    margin-top: 0.8rem;
    color: var(--editorial-muted);
    font: 0.95rem/1.6 system-ui, sans-serif;
}

.sala-page .editorial-container {
    width: min(1320px, 100% - 2rem);
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.2rem 0 4rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.retro-welcome-section {
    margin: 0.5rem 0 1.7rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--editorial-muted);
    font-size: 0.98rem;
}

.retro-welcome-section p {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.editorial-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.editorial-kicker {
    display: inline-block;
    color: var(--editorial-amber);
    font: 0.75rem/1.4 var(--sala-font-brand);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.editorial-section-heading .editorial-kicker {
    margin: 0;
}

.editorial-live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--editorial-terminal);
    font: 0.68rem/1.4 var(--sala-font-brand);
    letter-spacing: 0.06em;
}

.editorial-live span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.editorial-heading-note {
    color: var(--editorial-muted);
    font-size: 0.82rem;
}

.editorial-feature {
    margin: 0 0 3.5rem;
}

.sala-page .editorial-container .article-item-featured {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 400px;
    aspect-ratio: 2.15 / 1;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--editorial-border);
    border-radius: 18px;
    background: var(--editorial-surface);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    isolation: isolate;
}

.article-item-featured .editorial-cover {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

.editorial-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.article-item-featured .editorial-cover::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 10, 15, 0.88) 0%, rgba(5, 10, 15, 0.55) 42%, rgba(5, 10, 15, 0.02) 100%),
        linear-gradient(0deg, rgba(5, 10, 15, 0.44), transparent 42%);
    content: "";
}

.article-item-featured:hover .editorial-cover img {
    transform: scale(1.025);
}

.article-item-featured .editorial-card-content {
    position: absolute;
    z-index: 1;
    left: clamp(1.25rem, 5vw, 4.5rem);
    bottom: clamp(1.5rem, 5vw, 4rem);
    display: flex;
    width: min(660px, 68%);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
}

.editorial-category {
    color: var(--editorial-terminal);
    font: 0.73rem/1.4 var(--sala-font-brand);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.article-item-featured .editorial-category {
    padding: 0.38rem 0.65rem;
    border: 1px solid rgba(131, 200, 155, 0.5);
    border-radius: 999px;
    background: rgba(9, 18, 22, 0.55);
    backdrop-filter: blur(8px);
}

.sala-page .editorial-container .article-title {
    color: var(--editorial-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: normal;
}

.sala-page .editorial-container .article-title:hover {
    color: var(--editorial-amber);
}

.article-item-featured .article-title {
    max-width: 17ch;
    font-size: clamp(2rem, 4.4vw, 4rem);
    line-height: 1.08;
}

.editorial-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--editorial-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.article-item-featured .editorial-excerpt {
    max-width: 58ch;
    color: rgba(242, 241, 233, 0.86);
    font-size: 1rem;
}

.editorial-card-meta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.sala-page .editorial-container .article-date {
    color: var(--editorial-muted);
    font: 0.74rem/1.4 var(--sala-font-brand);
    text-align: left;
}

.article-item-featured .article-date {
    color: rgba(242, 241, 233, 0.75);
}

.editorial-read-link {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: var(--editorial-amber);
    color: #17120a;
    font-size: 0.85rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease;
}

.editorial-read-link:hover {
    transform: translateY(-2px);
    background: #ffc477;
}

.editorial-category-nav,
.editorial-archive {
    margin: 0 0 3.5rem;
}

.editorial-category-nav .retro-grid-categories {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.sala-page .editorial-container .retro-card-category {
    display: flex;
    min-height: 165px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 1.1rem;
    border: 1px solid var(--editorial-border);
    border-radius: 12px;
    background: linear-gradient(145deg, var(--editorial-surface-raised), var(--editorial-surface));
    color: var(--editorial-text);
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.sala-page .editorial-container .retro-card-category:hover,
.sala-page .editorial-container .retro-card-category:focus-visible {
    transform: translateY(-3px);
    border-color: var(--editorial-amber);
    background: #1a2935;
}

.sala-page .editorial-container .retro-card-category[aria-pressed="true"] {
    border-color: var(--editorial-amber);
    background: #1a2935;
}

.retro-card-category:focus-visible,
.editorial-brand:focus-visible,
.editorial-read-link:focus-visible,
.article-title:focus-visible,
.editorial-cover:focus-visible {
    outline: 2px solid var(--editorial-amber);
    outline-offset: 3px;
}

.editorial-category-index {
    color: var(--editorial-amber);
    font: 0.65rem/1.4 var(--sala-font-brand);
    letter-spacing: 0.06em;
}

.editorial-category-title {
    font: 1.08rem/1.2 Georgia, "Times New Roman", serif;
}

.editorial-category-description {
    color: var(--editorial-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.editorial-context {
    margin: 0 0 3rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--editorial-border);
    border-radius: 12px;
    background: var(--editorial-surface);
}

.editorial-context > summary {
    color: var(--editorial-muted);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 650;
}

.editorial-context[open] {
    padding-bottom: 1.5rem;
}

.editorial-context .retro-cta-card,
.editorial-context .retro-diagram-box,
.editorial-context .retro-metric-card {
    border-color: var(--editorial-border);
    background: var(--editorial-surface-raised);
    color: var(--editorial-text);
}

.editorial-context .retro-cta-card h2,
.editorial-context .retro-diagram-title,
.editorial-context .retro-metric-label,
.editorial-context .retro-metric-number {
    color: var(--editorial-text);
}

.editorial-archive-heading {
    align-items: end;
    margin-bottom: 1.25rem;
}

.editorial-archive-heading h2 {
    margin: 0.35rem 0 0;
    color: var(--editorial-text);
    font: 500 clamp(1.8rem, 3vw, 2.8rem)/1.15 Georgia, "Times New Roman", serif;
}

.sala-page .editorial-container .filter-section {
    margin: 0 0 1.5rem;
    border-color: var(--editorial-border);
    background: var(--editorial-surface);
    box-shadow: none;
}

.sala-page .editorial-container .filter-section summary {
    color: var(--editorial-text);
}

.sala-page .editorial-container .filter-input {
    border-color: var(--editorial-border);
    background: #0d141b;
    color: var(--editorial-text);
}

.sala-page .editorial-container .chip {
    border-color: var(--editorial-border);
    background: var(--editorial-surface-raised);
    color: var(--editorial-text);
}

.sala-page .editorial-container .chip[aria-pressed="true"] {
    border-color: var(--editorial-amber);
    background: var(--editorial-amber);
    color: #17120a;
}

.sala-page .editorial-container .result-count,
.sala-page .editorial-container .retro-source-note {
    color: var(--editorial-muted);
}

.sala-page .editorial-container .year-group {
    margin: 0 0 2rem;
    padding: 1.25rem;
    border-color: var(--editorial-border);
    background: rgba(17, 25, 34, 0.72);
    box-shadow: none;
}

.sala-page .editorial-container .year-group:hover {
    border-color: rgba(242, 173, 82, 0.35);
}

.sala-page .editorial-container .year-title {
    color: var(--editorial-text);
    border-color: rgba(242, 173, 82, 0.55);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}

.sala-page .editorial-container .month-title {
    color: var(--editorial-muted);
    font: 0.74rem/1.4 var(--sala-font-brand);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sala-page .editorial-container .month-title::after {
    background: var(--editorial-border);
}

.sala-page .editorial-container .article-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.sala-page .editorial-container .article-item:not(.article-item-featured) {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border-color: var(--editorial-border);
    border-radius: 12px;
    background: var(--editorial-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sala-page .editorial-container .article-item:not(.article-item-featured):hover {
    transform: translateY(-4px);
    border-color: rgba(242, 173, 82, 0.52);
    background: var(--editorial-surface-raised);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.editorial-container .article-item:not(.article-item-featured) .editorial-cover {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #1b2935;
}

.editorial-container .article-item:not(.article-item-featured) .editorial-cover img {
    transition: transform 400ms ease;
}

.editorial-container .article-item:not(.article-item-featured):hover .editorial-cover img {
    transform: scale(1.04);
}

.editorial-container .article-item:not(.article-item-featured) .editorial-card-content {
    display: flex;
    min-height: 195px;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem;
}

.editorial-container .article-item:not(.article-item-featured) .article-title {
    font-size: 1.15rem;
}

.editorial-container .article-item:not(.article-item-featured) .editorial-card-meta {
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--editorial-border);
}

.sala-page .editorial-container .article-meta-badges {
    display: none;
}

.sala-page .editorial-container .article-item-series {
    border-left: 0;
    background: var(--editorial-surface);
}

.sala-page .editorial-container .retro-source-note {
    margin: 1.5rem 0;
}

.sala-page .editorial-container .retro-footer-notes,
.sala-page .editorial-container .retro-footer-note {
    color: var(--editorial-muted);
}

.sala-page .editorial-container .retro-footer-note {
    border-color: var(--editorial-border);
    background: var(--editorial-surface);
}

.sala-page .footer {
    border-top-color: var(--editorial-border);
    background: #070b0f;
}

.sala-page .footer p {
    color: var(--editorial-muted);
}

@media (max-width: 1024px) {
    .editorial-category-nav .retro-grid-categories {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sala-page .editorial-container .article-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .editorial-masthead {
        margin-bottom: 2rem;
        align-items: flex-start;
        font-size: 0.62rem;
    }

    .editorial-edition {
        max-width: 10rem;
    }

    .sala-page .editorial-container {
        width: min(100% - 1.25rem, 1320px);
    }

    .editorial-section-heading {
        align-items: flex-start;
    }

    .editorial-heading-note {
        display: none;
    }

    .sala-page .editorial-container .article-item-featured {
        min-height: 460px;
        aspect-ratio: auto;
    }

    .article-item-featured .editorial-cover::after {
        background: linear-gradient(0deg, rgba(5, 10, 15, 0.9) 0%, rgba(5, 10, 15, 0.5) 52%, rgba(5, 10, 15, 0.08) 100%);
    }

    .article-item-featured .editorial-card-content {
        right: 1.25rem;
        left: 1.25rem;
        bottom: 1.4rem;
        width: auto;
    }

    .article-item-featured .article-title {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .editorial-category-nav .retro-grid-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sala-page .editorial-container .article-list {
        grid-template-columns: 1fr;
    }

    .editorial-container .article-item:not(.article-item-featured) .editorial-card-content {
        min-height: 0;
    }

    .sala-page .editorial-container .year-group {
        padding: 0.85rem;
    }
}

@media (max-width: 420px) {
    .editorial-category-nav .retro-grid-categories {
        grid-template-columns: 1fr;
    }

    .sala-page .editorial-container .retro-card-category {
        min-height: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .editorial-cover img,
    .retro-card-category,
    .editorial-read-link {
        transition: none;
    }
}
