/* The home masthead keeps its own colors and typography. */
body.editorial {
    --paper: #151618;
    --surface: #1a1b1d;
    --ink: #f3f0eb;
    --muted: #b7b4ad;
    --rule: #3a3937;
    --accent: #ef8b82;
    --headline: Georgia, "Times New Roman", serif;
    background: var(--paper);
    color: var(--ink);
}

.editorial > main.bg-gray-800,
.editorial > main > section:not(.hero-bg),
.editorial > footer {
    background: var(--paper);
    border-color: var(--rule);
}

.editorial > main:not(:has(.hero-bg)) {
    padding-block: 2.75rem 4rem;
}

.editorial :is(a, button, input, select, summary):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.editorial :is(.edition-title, #page-title, #cases-grid h3, .news-desk h2, .news-desk h3) {
    font-family: var(--headline);
    font-weight: 700;
    letter-spacing: 0;
    text-wrap: pretty;
}

.editorial :is(.edition-title, #page-title) {
    text-align: left;
    color: var(--ink);
}

.editorial .edition-heading {
    border-bottom: 1px solid var(--rule);
    margin-bottom: 1.5rem;
    padding-bottom: .85rem;
}

.editorial .section-label {
    color: var(--accent);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.editorial > main > section.archive-intro {
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
}

.editorial .archive-links a {
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    display: block;
    padding: .65rem 0;
}

.editorial :is(.archive-links, #cases-grid, .news-desk) a:hover {
    text-decoration: underline;
    text-underline-offset: .18em;
}

.editorial #cases-grid {
    column-gap: 1.5rem;
    row-gap: 1.75rem;
}

.editorial .archive-note {
    border-bottom: 1px solid var(--rule);
    margin-bottom: 1.5rem;
    padding-bottom: .8rem;
}

.editorial .archive-note summary {
    color: var(--muted);
    cursor: pointer;
    font-size: .875rem;
}

.editorial .archive-note[open] section :is(.bg-gray-900, .bg-gray-800) {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--rule);
    border-radius: 0;
    padding-inline: 0;
}

.editorial #filters-container {
    justify-content: start;
    margin-bottom: 1.75rem;
}

.editorial #filters-container .filter-btn {
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 4px;
    color: var(--muted);
    font-weight: 500;
    padding: .4rem .65rem;
}

.editorial #filters-container .filter-btn:is(.active, :hover) {
    border-color: var(--accent);
    color: var(--ink);
}

.editorial #cases-grid > article,
.editorial .news-desk article,
.editorial #documentales-grid > div {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: none;
    transform: none;
    translate: none;
}

.editorial #cases-grid > article > img {
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.editorial #cases-grid > article > div,
.editorial #documentales-grid > div > a {
    padding: .9rem 0 1.15rem;
}

.editorial #cases-grid h3 {
    color: var(--ink);
    font-size: 1.33rem;
    line-height: 1.23;
}

.editorial #cases-grid > article > div > span:first-child {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.editorial :is(#cases-grid, .news-desk) p {
    color: var(--muted);
}

.editorial :is(#cases-grid, .news-desk) article a {
    color: var(--accent);
}

.editorial .news-desk > header {
    margin-inline: 0;
    text-align: left;
}

.editorial .news-desk h1 {
    font-family: var(--headline);
    letter-spacing: 0;
}

.editorial .news-desk section > div:first-child {
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1rem;
}

.editorial .news-desk article {
    padding: .3rem 0 1.15rem;
}

.editorial .news-desk #news-grid article > div {
    padding-inline: 0;
}
