:root {
    color-scheme: light;
    --bg: #eef1f4;
    --surface: #ffffff;
    --ink: #171a1f;
    --muted: #59626e;
    --line: #dde2e8;
    --accent: #1f5fe6;
    --accent-ink: #ffffff;
    --danger: #b3261e;
    --brand-blue: #2f6bff;
    --brand-soft: #b6cbff;
    --brand-ink: #2b2b2b;
    --serif: Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --tone-0: #1f5fe6;
    --tone-1: #f08c00;
    --tone-2: #0f9f6e;
    --tone-2-text: #0a7a54;
    --tone-3: #9b51e0;
    --tone-4: #e0457b;
    --tone-5: #1597ad;
    --radius: 12px;
    --shadow: 0 1px 2px rgb(16 24 40 / 5%), 0 3px 12px rgb(16 24 40 / 4%);
    --shadow-hover: 0 2px 4px rgb(16 24 40 / 6%), 0 10px 28px rgb(16 24 40 / 9%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0b0d10;
        --surface: #15181d;
        --ink: #e9ecef;
        --muted: #9aa3ae;
        --line: #262b33;
        --accent: #82a8ff;
        --accent-ink: #07142f;
        --danger: #ff8a80;
        --brand-soft: rgb(47 107 255 / 0.5);
        --brand-ink: #ffffff;
        --tone-0: #7da5ff;
        --tone-1: #ffb347;
        --tone-2: #4fd1a5;
        --tone-2-text: var(--tone-2);
        --tone-3: #c79bff;
        --tone-4: #ff7aa8;
        --tone-5: #4cc9dc;
        --shadow: none;
        --shadow-hover: 0 0 0 1px #3a414b;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0d10;
    --surface: #15181d;
    --ink: #e9ecef;
    --muted: #9aa3ae;
    --line: #262b33;
    --accent: #82a8ff;
    --accent-ink: #07142f;
    --danger: #ff8a80;
    --brand-soft: rgb(47 107 255 / 0.5);
    --brand-ink: #ffffff;
    --tone-0: #7da5ff;
    --tone-1: #ffb347;
    --tone-2: #4fd1a5;
    --tone-2-text: var(--tone-2);
    --tone-3: #c79bff;
    --tone-4: #ff7aa8;
    --tone-5: #4cc9dc;
    --shadow: none;
    --shadow-hover: 0 0 0 1px #3a414b;
}

* { box-sizing: border-box; }
/* Short pages keep the scrollbar's space too, so the centred layout does not move sideways between pages. */
html { scrollbar-gutter: stable; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.5;
    overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.masthead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.masthead-row {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 16px;
}

.brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-mark { flex: none; width: 1.3em; height: 1em; overflow: visible; }
.brand-text { display: grid; line-height: 1.05; }
.brand-slogan { margin-top: 3px; color: var(--muted); font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: 0; line-height: 1.1; white-space: nowrap; }

.search { display: flex; flex: 1; min-width: 0; max-width: 520px; margin-left: auto; }

.search input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    font: inherit;
}

.search button {
    height: 38px;
    padding: 0 14px;
    color: var(--accent-ink);
    background: var(--accent);
    border: 0;
    border-radius: 0 6px 6px 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.tools { display: flex; align-items: center; gap: 10px; }

.theme {
    width: 34px;
    height: 34px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}

.icon-button {
    display: none;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
}
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-button[aria-expanded="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.masthead { transition: transform .25s ease; }

.categories {
    display: flex;
    gap: 18px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories a {
    flex: none;
    padding: 8px 0 9px;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    font-size: 14px;
    font-weight: 500;
}

.categories a[aria-current] { color: var(--ink); border-color: var(--accent); }

/* "For you" is the reader's own page, not a section: accent colour, a spark, and a line before the sections. */
.categories a.categories-foryou { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 600; }
.categories-foryou svg { width: 13px; height: 13px; fill: currentColor; }
.categories a.categories-foryou[aria-current] { color: var(--accent); }
.categories-divider { flex: none; align-self: center; width: 1px; height: 16px; margin: 0 -4px; background: var(--line); }

.editions {
    display: flex;
    gap: 6px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 9px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.editions a {
    flex: none;
    padding: 3px 10px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12.5px;
}

.editions a[aria-current] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

.page { max-width: 1240px; margin: 0 auto; padding: 24px 16px 48px; }

.status {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.notice {
    padding: 32px 16px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.notice a { display: block; margin-top: 6px; color: var(--accent); font-weight: 600; }

.edition-note {
    margin: 0 0 16px;
    padding: 9px 13px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13.5px;
}

.media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--line);
}

.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Some publishers' icons are not square. They keep their shape inside the square instead of being squeezed. */
img[src^="/icon/"] { object-fit: contain; }

/* Pictures fade in when loaded, over a soft shimmer. Without JavaScript they show at once. */
/* The lead pictures (fetchpriority="high") show at once: hiding them until site.js runs would delay the largest paint. */
.js .media > img:last-child:not([fetchpriority="high"]) { opacity: 0; transition: opacity .35s ease; }
.js .media.is-loaded > img:last-child { opacity: 1; }
.js .media:not(.is-loaded, .is-fallback) {
    background: linear-gradient(100deg, var(--line) 40%, color-mix(in srgb, var(--line) 45%, var(--surface)) 50%, var(--line) 60%) 0 0 / 200% 100%;
    animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* A story without a working picture gets a coloured cover with its publisher's logo. */
.cover-mark { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; color: var(--ink); text-align: center; }
.media.is-fallback .cover-mark { display: flex; }
.cover-icon { width: 34px; height: 34px; padding: 5px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgb(0 0 0 / 12%); }
.cover-name { max-width: 100%; overflow: hidden; font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }
.story-row .cover-name { display: none; }
.media.is-fallback { animation: none; }
.media.is-fallback.cover-0 { background: linear-gradient(135deg, color-mix(in srgb, var(--tone-0) 26%, var(--surface)), color-mix(in srgb, var(--tone-0) 8%, var(--surface))); }
.media.is-fallback.cover-1 { background: linear-gradient(135deg, color-mix(in srgb, var(--tone-1) 26%, var(--surface)), color-mix(in srgb, var(--tone-1) 8%, var(--surface))); }
.media.is-fallback.cover-2 { background: linear-gradient(135deg, color-mix(in srgb, var(--tone-2) 26%, var(--surface)), color-mix(in srgb, var(--tone-2) 8%, var(--surface))); }
.media.is-fallback.cover-3 { background: linear-gradient(135deg, color-mix(in srgb, var(--tone-3) 26%, var(--surface)), color-mix(in srgb, var(--tone-3) 8%, var(--surface))); }
.media.is-fallback.cover-4 { background: linear-gradient(135deg, color-mix(in srgb, var(--tone-4) 26%, var(--surface)), color-mix(in srgb, var(--tone-4) 8%, var(--surface))); }
.media.is-fallback.cover-5 { background: linear-gradient(135deg, color-mix(in srgb, var(--tone-5) 26%, var(--surface)), color-mix(in srgb, var(--tone-5) 8%, var(--surface))); }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .media img { filter: brightness(.88); transition: filter .2s ease, opacity .35s ease; }
    :root:not([data-theme="light"]) a:hover > .media img, :root:not([data-theme="light"]) .media:hover img { filter: none; }
}
:root[data-theme="dark"] .media img { filter: brightness(.88); transition: filter .2s ease, opacity .35s ease; }
:root[data-theme="dark"] .media:hover img { filter: none; }

.meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
}

.meta span { flex: none; color: var(--muted); font-weight: 400; }
.bundle h3 mark, .search-snippet mark { color: var(--accent); background: transparent; font-weight: 700; }
.search-snippet { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.search-snippet span { color: var(--ink); font-weight: 600; }
.source-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-weight: inherit; }
.source-icon { flex: none; width: 16px; height: 16px; border-radius: 3px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.summary {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
    color: var(--muted);
    font-size: 14px;
}

.pager a {
    padding: 8px 14px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
}

section { margin-bottom: 36px; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
    border-bottom: 2px solid var(--ink);
}

.section-title {
    margin: 0 0 14px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1.2;
}

.section-head .section-title { margin-bottom: 6px; }
.section-head > a:not(.follow-button) { flex: none; color: var(--accent); font-weight: 600; }
.section-head > a:hover, .coverage-link:hover { text-decoration: underline; }

.bundle {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.bundle-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 14px 16px;
}

.bundle h3 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.bundle.featured {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    margin-bottom: 20px;
}

.bundle.featured:not(:has(.media)) { grid-template-columns: 1fr; }
.bundle.featured .media { aspect-ratio: auto; min-height: 100%; }
.bundle.featured .bundle-body { padding: 24px; }
.bundle.featured h3 { font-size: clamp(25px, 3vw, 36px); line-height: 1.15; }
.bundle.featured .summary { margin-bottom: 10px; }

/* Headlines from other publishers, so a card shows how outlets framed the story. */
.framing { margin: 4px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.framing-title { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.framing ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.framing li { min-width: 0; padding-left: 10px; border-left: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line)); font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.framing li > a, .framing li > span:last-child { display: block; color: var(--ink); }
.framing li > a:hover { color: var(--accent); }
.framing-source { display: block; margin-bottom: 1px; color: var(--muted); font-size: 11.5px; }
.framing-source .source-icon { width: 14px; height: 14px; }

/* The story's publishers as overlapping logos with the source count. */
.source-stack { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; color: var(--accent); font-size: 13px; font-weight: 600; }
.stack-icons { display: inline-flex; }
.stack-icons > * {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-left: -7px;
    background: var(--surface);
    border: 2px solid var(--surface);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line);
    object-fit: cover;
}
.stack-icons > :first-child { margin-left: 0; }
.stack-letter { color: var(--muted); font-size: 11px; font-weight: 700; }
.stack-arrow { transition: transform .15s ease; }
.source-stack:hover .stack-label { text-decoration: underline; }
.source-stack:hover .stack-arrow { transform: translateX(3px); }
.story-row .source-stack { font-size: 12.5px; }
.story-row .stack-icons > * { width: 20px; height: 20px; margin-left: -6px; }
.story-row .stack-icons > :first-child { margin-left: 0; }

/* Who covers a story: by country, or by outlet type when all sources share one country. */
.spread { margin: 0 0 14px; }
.spread figcaption { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.spread-bar { display: block; width: 100%; height: 8px; overflow: hidden; border-radius: 999px; }
.spread-bar rect { stroke: var(--surface); stroke-width: .6; vector-effect: non-scaling-stroke; }
.spread-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 7px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; }
.spread-legend li { display: inline-flex; align-items: center; gap: 6px; }
.spread-legend b { color: var(--ink); font-weight: 600; }
.spread-legend i { width: 9px; height: 9px; border-radius: 50%; }
.tone-0 { fill: var(--tone-0); background: var(--tone-0); }
.tone-1 { fill: var(--tone-1); background: var(--tone-1); }
.tone-2 { fill: var(--tone-2); background: var(--tone-2); }
.tone-3 { fill: var(--tone-3); background: var(--tone-3); }

.coverage-link {
    margin-top: auto;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
}

/* The lead story of a page: a large picture with the headline on it, then how outlets framed it. */
.hero { margin-bottom: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.hero-top { position: relative; }
.hero-media { aspect-ratio: 21 / 9; }
.hero-copy { padding: 28px 32px 6px; }
.hero-top:has(.hero-media) .hero-copy {
    position: absolute;
    inset: auto 0 0;
    padding: 140px 32px 26px;
    color: #fff;
    background: linear-gradient(to top, rgb(0 0 0 / 88%), rgb(0 0 0 / 55%) 50%, transparent);
}
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.hero-meta > span { opacity: .8; font-weight: 400; }
.hero-top:has(.hero-media) .source-icon { background: #fff; border-radius: 4px; }
.hero-title { max-width: 30ch; margin: 0 0 10px; font-family: var(--serif); font-size: clamp(28px, 3.8vw, 50px); line-height: 1.08; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero-top:has(.hero-media) .hero-title a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.hero-summary {
    display: -webkit-box;
    max-width: 75ch;
    margin: 0;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.5;
    opacity: .9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.hero-top:not(:has(.hero-media)) .hero-summary { color: var(--muted); opacity: 1; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 3fr) minmax(200px, 1fr); gap: 28px; padding: 20px 32px 24px; }
.hero:not(:has(.hero-framing)) .hero-foot { grid-template-columns: minmax(0, 1fr); }
.hero-framing { margin: 0; padding: 0; border: 0; }
.hero-framing ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hero-framing li { font-size: 14.5px; }
.hero-side { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-width: 0; }
.hero-side .spread { margin: 0; }
.hero-side .source-stack { padding-top: 0; }

/* The other top stories, two columns side by side on wide screens. */
.top-rows { margin-bottom: 30px; overflow: hidden; }
.top-rows .story-row { margin-bottom: -1px; }

.story-rows {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.story-row {
    display: flex;
    gap: 14px;
    min-width: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}

.story-row:last-child { border-bottom: 0; }
.story-row-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }

.story-row h3 {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.story-row .media { flex: none; width: 92px; height: 92px; aspect-ratio: auto; border-radius: 6px; }
.story-row .coverage-link { font-size: 12.5px; }

.topic-intro { margin: -6px 0 14px; color: var(--muted); max-width: 70ch; }

.home-topics { margin-bottom: 30px; }

.home-topics h2 {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.home-topics .topic-chips { margin: 0; }

.home-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
}

.home-section { min-width: 0; margin-bottom: 26px; }

/* Story pages use the same white cards and 3:2 columns as Home. */
.story-hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    margin-bottom: 20px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.story-hero:not(:has(.media)), .story-body:not(:has(.story-rail)) { grid-template-columns: minmax(0, 1fr); }
.story-media { position: relative; aspect-ratio: auto; min-height: 340px; }
.story-media img { position: absolute; inset: 0; }
.story-heading { align-self: center; min-width: 0; padding: 28px; }
.story-heading .topic-chips { margin-bottom: 0; }

.story h1 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: clamp(26px, 2.6vw, 34px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.coverage { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.story-summary { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; }
.topic-chips a {
    padding: 4px 11px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.topic-chips a:hover { color: var(--accent); border-color: var(--accent); }
.topic-chips a { display: inline-flex; align-items: baseline; gap: 5px; }
.chip-count { color: var(--muted); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Small text needs 4.5:1 contrast, so the light theme uses a darker green than the charts. */
.chip-count.rising { color: var(--tone-2-text); }
.chip-count span { margin-right: 1px; }

/* The story's actions: read at the source on the left, a share icon on the right that opens a small menu. */
.story-actions { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
/* The button keeps one line beside the share icon: a long source name ends in "…", and the logo still names it. */
.story-actions .read-on { min-width: 0; margin: 0; }
.read-on img, .read-on span[aria-hidden] { flex: none; }
.read-on-text { display: flex; min-width: 0; white-space: pre; }
.read-on-source { overflow: hidden; text-overflow: ellipsis; }
.share-menu { position: relative; margin-left: auto; }
.share-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    list-style: none;
    cursor: pointer;
}
.share-toggle::-webkit-details-marker { display: none; }
.share-toggle:hover, .share-menu[open] .share-toggle { color: var(--accent); border-color: var(--accent); }
.share-menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-pop {
    position: absolute;
    /* Upwards: the story card clips what reaches past its bottom edge, and the title and summary leave room above. */
    bottom: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 210px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}
.share-pop > [hidden] { display: none; }
.share-pop button, .share-pop a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    color: var(--ink);
    background: none;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.share-pop button:hover, .share-pop a:hover { color: var(--ink); background: var(--bg); }

/* Inside the story card, chips and share buttons are filled, not outlined, so they do not read as boxes in a box. */
.story-heading .topic-chips a { background: var(--bg); border-color: transparent; }
.story-heading .topic-chips a:hover { border-color: transparent; }

.story-body {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 20px;
    align-items: start;
}

.story-top, .story-rest { grid-column: 1; min-width: 0; }
.story-rail { min-width: 0; }
.story-body > .edition-note { margin: 0; }
.story-rest { display: grid; gap: 20px; }

.coverage-group {
    min-width: 0;
    margin: 0;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.coverage-group .section-title { margin-bottom: 12px; font-size: 21px; }
.coverage-top { border-top: 3px solid var(--accent); }
.story-rail .coverage-group {
    background: color-mix(in srgb, var(--accent) 5%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
}
.story-rail .section-title { font-size: 18px; }

.event-stories { margin: 0; padding: 0; list-style: none; }
.event-stories li { padding: 11px 0; border-top: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line)); }
.event-stories a { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.event-stories a:hover { color: var(--accent); }
.event-stories .coverage { display: block; margin: 3px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
/* Read next: the rail's second card, or its only one. Each pick shows why it is there above its title. */
.story-rail { display: grid; gap: 16px; align-content: start; }
.read-next-list { margin: 0; padding: 0; list-style: none; }
.read-next-list li { padding: 11px 0; border-top: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line)); }
.read-next-list a { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.read-next-list a:hover { color: var(--accent); }
.read-next-why {
    display: block;
    margin: 0 0 3px;
    overflow: hidden;
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.read-next-list .coverage { display: block; margin: 3px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.read-next-more { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 14px; font-weight: 700; }

/* Up next: one quiet card at the bottom when the reader returns from a publisher. Above the phone's bottom bar. */
.up-next {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 25;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    width: min(380px, calc(100vw - 32px));
    padding: 12px 10px 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    animation: up-next-in .25s ease-out;
}
.up-next[hidden] { display: none; }
.up-next-label { grid-column: 1; color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.up-next-title { grid-column: 1; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.35; }
.up-next-title:hover { color: var(--accent); }
.up-next-close {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}
.up-next-close:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
@keyframes up-next-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 760px) {
    .js .up-next { right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); transition: bottom .2s ease; }
    /* The bottom bar hides while scrolling down, so the card moves down with it. */
    .js.chrome-hidden .up-next { bottom: calc(12px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .up-next { animation: none; transition: none; } }


.sources { margin: 0; padding: 0; list-style: none; }
.sources > li { position: relative; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sources > li:first-child { padding-top: 2px; }
.sources > li:last-child { padding-bottom: 0; border-bottom: 0; }
.source-copy { min-width: 0; }

.sources h3 {
    margin: 0 0 4px;
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

/* Local and opinion: a smaller two-column list led by the publisher. */
.sources-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; overflow: hidden; }
.sources-compact > li, .sources-compact > li:first-child, .sources-compact > li:last-child {
    margin-bottom: -1px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.sources-compact h3 { font-family: var(--sans); font-size: 14.5px; font-weight: 600; line-height: 1.35; }

/* Timeline: a line with one dot per entry. */
.timeline-day { margin: 0 0 6px; color: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 700; }
.sources-timeline > li, .sources-timeline > li:first-child, .sources-timeline > li:last-child {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 24px;
    padding: 7px 0;
    border: 0;
}
.sources-timeline > li::before { content: ""; position: absolute; top: 0; bottom: 0; left: 52px; width: 2px; background: var(--line); }
.sources-timeline > li::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 48px;
    width: 10px;
    height: 10px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: 50%;
}
.timeline-time { padding-top: 2px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.sources-timeline .meta { margin-bottom: 1px; font-size: 11.5px; }
.sources-timeline h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.story details > summary { cursor: pointer; }
.see-all { margin-top: 12px; }
.see-all > summary {
    display: inline-block;
    padding: 4px 0;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    list-style: none;
}
.see-all > summary::-webkit-details-marker { display: none; }
.see-all > summary:hover { text-decoration: underline; }
.see-all[open] { margin-top: 0; }
.see-all[open] > summary { display: none; }
.timeline-older { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.timeline-older > summary { margin-bottom: 0; color: var(--accent); }
.timeline-older[open] > summary { margin-bottom: 6px; }
.same-title { margin-top: 5px; color: var(--muted); font-size: 12.5px; }
.same-title > summary { color: var(--accent); font-weight: 600; }
.same-title ul { display: grid; gap: 4px; margin: 6px 0 2px; padding: 0; list-style: none; }
.same-title li { display: flex; justify-content: space-between; gap: 10px; min-width: 0; }
.same-title li span { flex: none; }
.same-title .source-name { color: var(--ink); font-weight: 500; }

/* Side by side, the top stories share the lead story's height evenly. */
@media (min-width: 901px) {
    .top-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .top-rows .story-row:nth-child(odd) { border-right: 1px solid var(--line); }
    .story-rail {
        position: sticky;
        top: 124px;
        grid-column: 2;
        grid-row: 1 / span 2;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    /* The muted-sources note takes the first row, so the rail spans one more: otherwise its height stretches the note's row. */
    .story-body:has(> .edition-note) .story-rail { grid-row: 1 / span 3; }
}

@media (max-width: 900px) {
    .home-sections, .story-hero, .story-body { grid-template-columns: minmax(0, 1fr); }
    .story-media { aspect-ratio: 16 / 9; min-height: 0; }
}

@media (max-width: 760px) {
    .hero { border-radius: 12px; }
    .hero-media { aspect-ratio: 4 / 3; }
    .hero-copy, .hero-top:has(.hero-media) .hero-copy { padding-right: 18px; padding-left: 18px; }
    .hero-top:has(.hero-media) .hero-copy { padding-top: 90px; padding-bottom: 18px; }
    .hero-title { font-size: clamp(24px, 7vw, 32px); }
    .hero-summary { display: none; }
    .hero-foot { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 18px 18px; }
    .hero-framing ul { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .story-row .media { width: 76px; height: 76px; }
    .story-heading { padding: 18px; }
    .coverage-group { padding: 16px; }
    .sources-compact { grid-template-columns: minmax(0, 1fr); }
    .sources-timeline h3 { -webkit-line-clamp: 2; line-clamp: 2; }
    .bundle.featured { grid-template-columns: 1fr; }
    .bundle.featured .media { aspect-ratio: 16 / 9; min-height: 0; }
    .bundle.featured .bundle-body { padding: 16px; }
    .masthead-row { flex-wrap: wrap; gap: 8px 12px; }
    .brand { font-size: 24px; }
    .brand { margin-right: auto; }
    .search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
    .status { flex-direction: column; gap: 0; }
}

body:has(> .site-footer) { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 100vh; }
body:has(> .site-footer) > .page { width: 100%; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; max-width: 1240px; margin: 0 auto; padding: 18px 16px; font-size: 13.5px; }
.footer-row p { margin: 0; }
.footer-row p span { margin-left: 6px; color: var(--muted); }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-row a { color: var(--accent); font-weight: 500; }
.footer-row a:hover, .footer-row a[aria-current] { text-decoration: underline; }

.info-page { max-width: 760px; margin: 8px 0 0; padding: 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.info-page h1 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(28px, 4vw, 36px); line-height: 1.15; }
.info-intro { margin: 0 0 22px; color: var(--muted); font-size: 18px; line-height: 1.45; }
.info-draft { margin: 0 0 22px; padding: 10px 13px; color: var(--danger); border: 1px solid var(--danger); border-radius: 6px; font-size: 14px; }
.info-page section { margin: 0 0 22px; }
.info-page h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.info-page section p { margin: 0 0 10px; line-height: 1.65; }
.info-page pre { margin: 0 0 10px; padding: 11px 13px; overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-size: 13.5px; }
.info-contact { margin: 0; font-weight: 500; }
.info-contact a { color: var(--accent); }

.account-form { display: grid; gap: 14px; margin: 0 0 18px; }
.account-form label { display: grid; gap: 6px; font-weight: 500; }

.account-form input {
    height: 40px;
    padding: 0 12px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
}

.account-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.account-form button, .account-button {
    justify-self: start;
    display: inline-block;
    padding: 10px 18px;
    color: var(--accent-ink);
    background: var(--accent);
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.account-form .account-secondary, .account-button.account-secondary { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.account-hint { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.account-message { margin: 0 0 18px; padding: 10px 13px; border: 1px solid var(--accent); border-radius: 6px; }
.account-error { margin: 0 0 18px; padding: 10px 13px; color: var(--danger); border: 1px solid var(--danger); border-radius: 6px; }
.account-links { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.account-links a { color: var(--accent); font-weight: 500; }
.account-danger .account-form button { background: var(--danger); }

/* The ⋯ menu next to a source and the Follow button. Both work without JavaScript. */
.source-menu { position: absolute; top: 10px; right: 0; z-index: 2; }
.source-menu[open] { z-index: 20; }
.sources > li:first-child .source-menu { top: 0; }
.sources > li:has(.source-menu) .meta { padding-right: 32px; }

.source-menu summary {
    width: 28px;
    height: 24px;
    color: var(--muted);
    border-radius: 4px;
    font-size: 17px;
    line-height: 22px;
    text-align: center;
    list-style: none;
    cursor: pointer;
}

.source-menu summary::-webkit-details-marker { display: none; }
.source-menu summary:hover, .source-menu[open] summary { color: var(--ink); background: var(--bg); }

.source-menu-panel {
    position: absolute;
    right: 0;
    min-width: 190px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgb(0 0 0 / 12%);
}

.source-menu-panel form { display: grid; }

.source-menu-panel button, .source-menu-panel a {
    display: block;
    padding: 8px 10px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 5px;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.source-menu-panel button:hover, .source-menu-panel a:hover { background: var(--bg); }
.source-menu-panel button[aria-pressed="true"] { color: var(--accent); font-weight: 600; }
.source-menu-panel button[aria-pressed="true"]::after { content: " ✓"; }
.source-menu-panel a { color: var(--accent); }
.follow-form { margin: 0; }
.section-head:has(.follow-button) > span { margin-left: auto; }

.section-head:has(.follow-button) { flex-wrap: wrap; row-gap: 8px; }
.section-head:has(.follow-button) .section-title { flex: 1 0 auto; max-width: 100%; }
.follow-button {
    display: inline-block;
    white-space: nowrap;
    padding: 6px 14px;
    color: var(--accent-ink);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.follow-button[aria-pressed="true"] { color: var(--ink); background: transparent; border-color: var(--line); }
.mute-button { color: var(--muted); background: transparent; border-color: var(--line); }
.mute-button[aria-pressed="true"] { color: var(--danger); border-color: var(--danger); }
.section-head .follow-form + .follow-form { margin-left: -8px; }
.feed-settings { margin: 0; padding: 0; list-style: none; }
.feed-settings li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.feed-settings li:last-child { border-bottom: 0; }
.feed-settings a { color: var(--accent); font-weight: 500; }
.feed-settings form { margin: 0; }
.feed-settings button { padding: 4px 10px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 5px; font: inherit; font-size: 13px; cursor: pointer; }
.feed-settings button:hover { color: var(--danger); border-color: var(--danger); }

@media (max-width: 760px) {
    .info-page { padding: 20px 18px; }
    .footer-row { flex-direction: column; align-items: flex-start; }
}

/* Sign-in, sign-up and password pages: a pitch on the left, the form on the right. */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 980px;
    min-height: 520px;
    margin: 8px auto 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.auth-pitch {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 48px;
    color: var(--accent-ink);
    background: var(--accent);
}

.auth-pitch svg { width: 56px; height: auto; --brand-blue: #fff; --brand-soft: rgb(255 255 255 / 55%); --brand-ink: #fff; }
.auth-pitch h2 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.auth-pitch ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.45; }
.auth-pitch li { position: relative; padding-left: 26px; }
.auth-pitch li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 48px; overflow-wrap: anywhere; }
.auth-card h1 { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.auth-card .info-intro { margin-bottom: 22px; }

/* Signed-in account pages: a menu on the left, cards on the right. */
.account-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.account-nav { position: sticky; top: 16px; display: grid; gap: 2px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }

.account-nav a, .account-nav button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.account-nav a:hover, .account-nav button:hover { background: var(--bg); }
.account-nav a[aria-current] { color: var(--accent-ink); background: var(--accent); }
.account-nav form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.account-nav button { color: var(--muted); }
.account-head { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.account-head h1 { margin: 0 0 4px; font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.account-head p { margin: 0; color: var(--muted); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.account-grid-three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.account-stack { display: grid; gap: 20px; }
.account-card { margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.account-card h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.account-card > p { margin: 0 0 14px; line-height: 1.55; }
.account-card .account-form { margin-bottom: 0; }
.account-danger { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }

@media (max-width: 900px) {
    .account-shell { grid-template-columns: 1fr; gap: 16px; }
    .account-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
    .account-nav form { margin: 0; padding: 0 0 0 6px; border-top: 0; border-left: 1px solid var(--line); }
    .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .auth-shell { grid-template-columns: 1fr; min-height: 0; }
    .auth-card { order: -1; padding: 28px 22px; }
    .auth-pitch { padding: 28px 22px; }
}

/* For You for signed-out readers: an invitation to sign in. */
.for-you-invite { max-width: 640px; margin: 8px 0 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.for-you-invite h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.for-you-invite p { margin: 0 0 18px; line-height: 1.55; }
.for-you-invite .account-button { margin-right: 8px; }

/* Phones: a compact header with search and menu icons, and topic chips in one row that scrolls sideways. */
@media (max-width: 760px) {
    .js .icon-button { display: inline-grid; }
    .js .masthead-row { gap: 6px; padding-top: 10px; padding-bottom: 10px; }
    .js .brand { margin-right: auto; font-size: 22px; }
    .js .brand-slogan { font-size: 10.5px; }
    .js .masthead:not(.search-open) .search { display: none; }
    .js .masthead.is-collapsed { transform: translateY(calc(-1 * var(--masthead-row, 60px))); }

    .topic-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    }
    .topic-chips::-webkit-scrollbar { display: none; }
    .topic-chips a { flex: none; }
    .page > .topic-chips, .home-topics .topic-chips { margin-right: -16px; padding-right: 28px; }
}

/* Swiping between sections: the list slides out one way and the next one slides in. */
.page.swipe-out-left, .page.swipe-out-right { opacity: 0; transition: transform .14s ease-in, opacity .14s ease-in; }
.page.swipe-out-left { transform: translateX(-36px); }
.page.swipe-out-right { transform: translateX(36px); }
.page.swipe-in-left { animation: swipe-in-left .22s ease-out; }
.page.swipe-in-right { animation: swipe-in-right .22s ease-out; }
@keyframes swipe-in-left { from { opacity: 0; transform: translateX(36px); } }
@keyframes swipe-in-right { from { opacity: 0; transform: translateX(-36px); } }

/* Rhythm: balanced headlines, rounder cards with soft shadows, and a small lift under the pointer. */
h1, h2, h3 { text-wrap: balance; }
.summary, .hero-summary, .story-summary, .topic-intro, .info-page p { text-wrap: pretty; }
.bundle, .story-rows, .coverage-group, .story-hero, .hero, .notice, .info-page, .for-you-invite, .account-card {
    border-color: color-mix(in srgb, var(--line) 75%, transparent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.grid { gap: 22px; }
.bundle .media { border-radius: 0; }
.story-row .media { border-radius: 10px; }
.section-title { letter-spacing: -.01em; }

@media (hover: hover) {
    .bundle { transition: transform .18s ease, box-shadow .18s ease; }
    .bundle:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
    .story-row { transition: background-color .15s ease; }
    .story-row:hover { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
}

/* Touch feedback: a card gives a little when pressed. */
.bundle:active, .story-row:active, .hero:active { transform: scale(.992); transition: transform .08s ease; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* How the story developed: publishers joining over time, and the moments worth naming. */
.development-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.development-head .section-title { margin-bottom: 4px; }
.development-head p { margin: 0; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.development-chart { margin: 10px 0 14px; }
.development-chart svg { display: block; width: 100%; height: 72px; overflow: visible; }
.development-area { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.development-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.development-dot { stroke: var(--accent); stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.development-chart figcaption { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.development-moments { position: relative; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.development-moments::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 63px; width: 2px; background: var(--line); }
.development-moments li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 26px; }
.development-moments li::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 58px;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border: 2px solid var(--accent);
    border-radius: 50%;
}
.development-moments .moment-first::after, .development-moments .moment-latest::after { background: var(--accent); }
.development-moments time { padding-top: 1px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; }
.moment-label { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.moment-source { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 14px; }
.moment-title { display: block; margin-top: 3px; color: var(--ink); font-family: var(--serif); font-size: 16px; line-height: 1.3; }
a.moment-title:hover { color: var(--accent); }

/* Page changes cross-fade, the header stays put, and a story's picture grows into the story page. */
@view-transition { navigation: auto; }
.masthead { view-transition-name: masthead; }
.story-media { view-transition-name: story-photo; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
::view-transition-group(story-photo) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Stories already opened are dimmed in lists. */
.bundle.is-read h3 a, .story-row.is-read h3 a { color: var(--muted); }
.bundle.is-read .media, .story-row.is-read .media { opacity: .6; }

/* The button that loads new stories, floating under the header. */
.fresh-pill {
    position: fixed;
    top: 128px;
    left: 50%;
    z-index: 30;
    padding: 9px 18px;
    color: var(--accent-ink);
    background: var(--accent);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgb(0 0 0 / 18%);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    transform: translate(-50%, -12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.fresh-pill.is-shown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (max-width: 760px) { .fresh-pill { top: 112px; } }

/* The main way out to the publisher on a story page. */
.read-on {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    padding: 10px 16px;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
}
.read-on img { width: 18px; height: 18px; padding: 1px; background: #fff; border-radius: 4px; }
.read-on:hover { color: var(--accent-ink); filter: brightness(1.08); }

/* Header controls share one height and one corner, so search, languages, theme and account line up. */
.masthead { --control: 38px; --control-radius: 8px; }
.search input, .search button { height: var(--control); }
.search input { border-radius: var(--control-radius) 0 0 var(--control-radius); }
.search button { border-radius: 0 var(--control-radius) var(--control-radius) 0; }
/* Focus rings the whole box, so it does not run into the button: the input border joins the button's colour. */
.search input:focus-visible { outline: none; border-color: var(--accent); }
.search:focus-within { border-radius: var(--control-radius); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.theme, .icon-button { width: var(--control); height: var(--control); }

/* The account menu: one button for account, language and theme. Inside the panel only lines and soft fills group things, no boxes in the box. */
.account-menu { position: relative; flex: none; }
.account-trigger { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: var(--control); padding: 0 12px; color: var(--ink); border: 1px solid var(--line); border-radius: var(--control-radius); font-size: 13px; font-weight: 600; white-space: nowrap; list-style: none; cursor: pointer; user-select: none; }
.account-trigger::-webkit-details-marker { display: none; }
.account-trigger:hover, .account-menu[open] > .account-trigger { border-color: var(--accent); }
.account-trigger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.account-chevron { color: var(--muted); transition: transform .15s ease; }
.account-menu[open] .account-chevron { transform: rotate(180deg); }
.account-trigger.is-signed-in { justify-content: center; width: var(--control); padding: 0; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: transparent; border-radius: 50%; font-size: 15px; }
.account-trigger.is-signed-in:hover, .account-menu[open] > .account-trigger.is-signed-in { border-color: var(--accent); }
.account-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; box-sizing: border-box; width: 250px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--control-radius); box-shadow: 0 8px 24px rgb(16 24 40 / 14%); }
.account-who { margin: 0; padding: 8px 10px 10px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-item { box-sizing: border-box; display: block; width: 100%; padding: 8px 10px; color: var(--ink); background: none; border: 0; border-radius: 6px; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.account-item:hover { background: var(--bg); }
.account-panel hr { margin: 6px 4px; border: 0; border-top: 1px solid var(--line); }
.account-panel form { margin: 0; }
.account-label { margin: 6px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
/* Language and theme as segmented controls: a track with the chosen one raised on it. */
.account-choices { display: flex; gap: 2px; margin: 0 6px 8px; padding: 3px; background: var(--bg); border-radius: 8px; }
.account-choices a, .account-choices button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 5px; padding: 6px 4px; color: var(--muted); background: none; border: 0; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; }
.account-choices a:hover, .account-choices button:hover { color: var(--ink); }
.account-choices [aria-current], .account-choices [aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgb(16 24 40 / 16%); }
.account-choices svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.account-choices [aria-pressed="true"] svg { color: var(--accent); }
/* Signed out: why an account helps, one clear sign-in button, and sign-up as a quiet line under it. */
.account-signin { padding: 8px 8px 4px; }
.account-signin p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.account-signin-button { display: block; padding: 9px 12px; color: var(--accent-ink); background: var(--accent); border-radius: 8px; font-size: 14px; font-weight: 600; text-align: center; }
.account-signin-button:hover { filter: brightness(1.08); }
.account-signin .account-signup { margin: 10px 0 0; text-align: center; }
.account-signup a { color: var(--accent); font-weight: 600; }
.account-theme { display: none; }
.js .account-theme { display: block; }

/* The offer of another language floats at the bottom, so showing it does not move the page. */
.lang-hint { position: fixed; bottom: 16px; left: 50%; z-index: 40; box-sizing: border-box; display: flex; align-items: center; gap: 4px; max-width: calc(100vw - 24px); padding: 4px 4px 4px 18px; color: var(--accent-ink); background: var(--accent); border-radius: 999px; box-shadow: 0 6px 20px rgb(16 24 40 / 22%); font-size: 14px; font-weight: 600; transform: translateX(-50%); }
.lang-hint[hidden] { display: none; }
.lang-hint a { color: inherit; white-space: nowrap; }
.lang-hint button { flex: none; width: 34px; height: 34px; color: inherit; background: transparent; border: 0; border-radius: 50%; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.lang-hint button:hover { background: rgb(255 255 255 / 18%); }

/* The city chip: city, weather and a button to change it, at the header's control height. */
.city { display: flex; flex: none; align-items: stretch; box-sizing: border-box; height: var(--control); border: 1px solid var(--line); border-radius: var(--control-radius); }
.city[hidden] { display: none; }
.city:hover { border-color: var(--accent); }
.city-link { display: none; align-items: center; gap: 7px; padding: 0 2px 0 12px; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; }
.has-city .city-link { display: inline-flex; }
.city-weather { color: var(--muted); font-weight: 500; }
.city-button { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; color: var(--ink); background: transparent; border: 0; border-radius: inherit; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.city-chevron { display: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.city-mini { display: none; }
.has-city .city-button { padding: 0 8px; color: var(--muted); }
.has-city .city-chevron { display: block; }
.has-city .city-pin, .has-city .city-pick-text { display: none; }

.city-dialog { box-sizing: border-box; width: min(92vw, 380px); padding: 20px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.city-dialog::backdrop { background: rgb(0 0 0 / .45); }
.city-dialog h2 { margin: 0 0 6px; font-size: 20px; }
.city-dialog p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.city-news { display: block; margin: 12px 0 0; color: var(--accent); font-weight: 600; }
.city-news[hidden] { display: none; }
.city-search { box-sizing: border-box; width: 100%; height: 42px; padding: 0 12px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; }
.city-search:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -1px; }
.city-locate { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 4px 0; color: var(--accent); background: transparent; border: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.city-locate[hidden] { display: none; }
.city-locate:disabled { opacity: .6; cursor: default; }
.city-locate svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.city-dialog .city-status { margin: 8px 0 0; font-size: 13px; }
.city-dialog .city-status:empty { display: none; }
/* The heading keeps its line and the list its height even when empty, so the dialog does not jump while typing. */
.city-dialog .city-heading { min-height: 18px; margin: 12px 0 4px; line-height: 18px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.city-results { height: min(46vh, 320px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.city-results li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.city-results li[aria-selected="true"], .city-results li:hover { background: var(--bg); }
.city-results li.city-empty { color: var(--muted); font-size: 14px; cursor: default; background: none; }
.city-results li.is-current .city-option-name::after { content: " ✓"; color: var(--accent); }
.city-option-name { font-weight: 600; }
.city-option-meta { flex: none; color: var(--muted); font-size: 13px; }
.city-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 16px 0 12px; }
.city-actions button { height: 38px; padding: 0 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.city-cancel { color: var(--ink); background: transparent; border: 1px solid var(--line); }
.city-remove { margin-right: auto; padding: 0 !important; color: var(--muted); background: transparent; border: 0; text-decoration: underline; }
.city-remove[hidden] { display: none; }
.city-credit { margin: 0 !important; font-size: 12px !important; }
.city-credit a { color: var(--muted); text-decoration: underline; }

/* Phones: the chip sits in the top row as a pin, or as the city and its weather once a city is chosen. Its dialog links to the news. */
@media (max-width: 760px) {
    .js .city { order: 1; }
    .js .icon-button { order: 2; }
    .js .account-menu { order: 3; }
    .js .search { order: 4; }
    .js .masthead-row { position: relative; }
    .js .account-menu { position: static; }
    .js .account-trigger { justify-content: center; width: var(--control); padding: 0; border-radius: 50%; }
    .js .account-trigger-text, .js .account-chevron { display: none; }
    .js .account-panel { top: calc(100% - 4px); right: 12px; left: auto; width: min(300px, calc(100vw - 24px)); }
    .js .city-link, .js .city-pick-text, .js .has-city .city-chevron { display: none; }
    .js .city:not(.has-city) { width: var(--control); border-radius: 50%; }
    .js .city:not(.has-city) .city-button { justify-content: center; width: 100%; padding: 0; }
    .js .has-city { border-radius: 999px; }
    .js .has-city .city-button { padding: 0 9px; color: var(--ink); }
    .js .masthead:not(.search-open) .masthead-row { flex-wrap: nowrap; }
    .js .has-city { flex: 0 1 auto; min-width: 0; }
    .js .has-city .city-button { min-width: 0; }
    .js .has-city .city-mini { display: inline-flex; gap: 6px; min-width: 0; }
    .city-mini-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .city-mini-weather { flex: none; white-space: nowrap; }
    .city-mini-weather:empty { display: none; }
    .js .search-open .city-mini-name { display: none; }
}

/* City pages: the local section's city list, and a city page's breadcrumb, nearby cities and "make it my city". */
.breadcrumb { margin: 0 0 2px; color: var(--muted); font-size: 13px; font-weight: 600; }
.breadcrumb a { color: var(--accent); }
.story-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 0 0 6px; text-transform: none; }
/* A taller tap area than the text, without taking more room. */
.story-crumb a { margin: -10px 0; padding: 10px 2px; }
/* A city page's description with a quiet "make it my city" beside it: the stories are the page, not the button. */
.city-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 16px; }
.city-intro .topic-intro { flex: 1 1 320px; margin: 0; }
.city-set {
    flex: none;
    padding: 7px 14px;
    color: var(--accent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: 999px;
    cursor: pointer;
}
.city-set:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.city-set[aria-pressed="true"] { color: var(--muted); border-color: var(--line); cursor: default; }
.city-row-mid { margin: 4px 0 18px; }
.city-set[hidden], .city-mine[hidden], .city-choose[hidden], .city-filter[hidden], .city-count[hidden], .city-filter-empty[hidden] { display: none; }

.city-directory {
    margin: 0 0 28px;
    padding: 14px 16px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.city-directory-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.city-directory-head .city-row-label { margin: 0; }
.city-row { margin: 0 0 12px; }
.city-row-label {
    margin: 0 0 7px;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* The reader's own city is the main way in, so it is the strongest element here. */
.city-mine, .city-choose {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 7px 14px;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}
.city-mine { color: var(--accent-ink); background: var(--accent); }
.city-mine:hover { color: var(--accent-ink); filter: brightness(1.08); }
.city-mine .city-count { color: inherit; opacity: .8; }
.city-mine-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-choose { color: var(--accent); background: transparent; border: 1px solid var(--accent); cursor: pointer; }

.city-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.city-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
}
.city-chip:hover { color: var(--accent); border-color: var(--accent); }
.city-count { color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

.city-all { border-top: 1px solid var(--line); }
.city-all summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 2px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.city-all summary::-webkit-details-marker { display: none; }
.city-all summary::after { content: "▾"; transition: transform .15s; }
.city-all[open] summary::after { transform: rotate(180deg); }
.city-all-count { padding: 0 7px; color: var(--muted); background: var(--bg); border-radius: 999px; font-size: 12px; }
.city-filter {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 10px 0 4px;
    padding: 8px 12px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}
.city-filter:focus { border-color: var(--accent); outline: none; }

/* All 81 provinces: plain links in region columns, because 81 pills would be a wall. */
.city-regions { column-width: 170px; column-gap: 28px; margin-top: 12px; }
.city-region { break-inside: avoid; margin-bottom: 14px; }
.city-region h3 { margin: 0 0 4px; color: var(--muted); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.city-region ul { margin: 0; padding: 0; list-style: none; }
.city-region .city-chip {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-weight: 500;
}
.city-region .city-chip:hover { text-decoration: underline; }
.city-region [hidden] { display: none; }
.city-filter-empty { margin: 8px 0; color: var(--muted); }

@media (max-width: 760px) {
    .city-directory { margin-left: -4px; margin-right: -4px; padding: 12px 12px 10px; }
    .city-regions { column-width: 130px; column-gap: 20px; }
    .city-region .city-chip { padding: 7px 0; }
}

/* Phones: the bottom bar and its sections sheet. Without JavaScript the sections strip stays at the top instead. */
.bottom-bar, .sections-sheet:not([open]) { display: none; }
@media (max-width: 760px) {
    .js .categories { display: none; }
    /* Search opens from the bar's Ara, so the top row keeps only the brand, the city and the account. */
    .js .masthead:not(.search-open) .search-toggle { display: none; }
    .js .masthead.is-collapsed { transform: translateY(-100%); }
    .js body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
    .js .lang-hint { bottom: calc(72px + env(safe-area-inset-bottom)); }
    .js .bottom-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
        background: var(--surface);
        border-top: 1px solid var(--line);
        transition: transform .2s ease;
    }
    .chrome-hidden .bottom-bar { transform: translateY(110%); }
    .bottom-bar a, .bottom-bar button {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        min-width: 0;
        padding: 6px 2px 4px;
        color: var(--muted);
        background: none;
        border: 0;
        font: inherit;
        font-size: 11px;
        font-weight: 600;
        cursor: pointer;
    }
    .bottom-bar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bottom-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    .bottom-bar [aria-current="page"] { color: var(--accent); }
    .bottom-bar .has-city-name { color: var(--ink); }
    .bottom-bar .has-city-name[aria-current="page"] { color: var(--accent); }

    .sections-sheet[open] {
        display: block;
        position: fixed;
        inset: auto 0 0 0;
        width: 100%;
        max-width: none;
        max-height: 80vh;
        margin: 0;
        padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
        color: var(--ink);
        background: var(--surface);
        border: 0;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -8px 30px rgb(16 24 40 / 18%);
        animation: sheet-up .2s ease;
    }
    .sections-sheet::backdrop { background: rgb(16 24 40 / 35%); }
    .sections-sheet-grab { width: 36px; height: 4px; margin: 0 auto 10px; background: var(--line); border-radius: 2px; }
    .sections-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .sections-sheet-head h2 { margin: 0; font-family: var(--serif); font-size: 20px; }
    .sections-sheet-head button { padding: 6px 12px; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; }
    .sections-sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .sections-sheet-grid a { padding: 12px 14px; color: var(--ink); background: var(--bg); border-radius: 10px; font-size: 15px; font-weight: 600; }
    .sections-sheet-grid a[aria-current="page"], .sections-sheet-grid a[aria-current="location"] { color: var(--accent); background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
}
@keyframes sheet-up { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bottom-bar { transition: none; } .sections-sheet[open] { animation: none; } }
