/* Pulso Demócrata · public portal
   Fonts: Archivo (headlines and interface, condensed through font-stretch) and Source Serif 4 (reading).
   Both are self-hosted under the SIL Open Font License; see /fonts/LICENSE-*.txt. */

@font-face {
  font-family: 'Archivo PD';
  src: url('/fonts/archivo.woff2') format('woff2');
  font-weight: 400 900;
  font-stretch: 62% 100%;
  font-display: swap;
}

@font-face {
  font-family: 'Source Serif PD';
  src: url('/fonts/source-serif.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Brand */
  --navy: #0b1630;
  --night: #0e1b38;
  --night-2: #13254a;
  --blue: #1f4a96;
  --blue-bright: #2f6fd6;
  --red: #d42a3c;
  --red-dark: #aa2738;
  --yellow: #f9d75a;
  /* Surfaces and text */
  --bg: #ffffff;
  --paper: #f3f5f9;
  --surface: #f6f8fb;
  --ink: #0b1630;
  --text: #1c2740;
  --muted: #56637a;
  --line: #dfe4ec;
  --line-strong: #0b1630;
  --white: #ffffff;
  --light-line: #8794ab;
  --link: #1f4a96;
  --accent: #c8202f;
  /* Type */
  --sans: 'Archivo PD', 'Archivo', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: 'Source Serif PD', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --headings: var(--sans);
  --body: var(--sans);
  --reading: var(--serif);
  --condensed: 74%;
  /* Layout */
  --shell: 80rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: .375rem;
  --nav-height: 3rem;
  --shadow: 0 1px 2px rgb(11 22 48 / .06), 0 8px 24px rgb(11 22 48 / .08);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a1224;
    --paper: #0d172d;
    --surface: #111d37;
    --ink: #eef2f9;
    --text: #d5dceb;
    --muted: #9aa7bf;
    --line: #233256;
    --line-strong: #e8edf7;
    --white: #111d37;
    --light-line: #3b4c72;
    --link: #8db4ff;
    --blue: #8db4ff;
    --accent: #ff7d88;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-height) + 1rem); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body, main { min-width: 0; }
main { display: block; outline: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { color: var(--ink); }

svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }
.i-arrow, .i-ext { width: 1em; height: 1em; display: inline-block; vertical-align: -.12em; transition: transform .15s ease; }
a:hover > .i-arrow { transform: translateX(.2em); }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 2px; }
.lead :focus-visible, .site-footer :focus-visible, .topbar :focus-visible, .cta-band :focus-visible { outline-color: var(--yellow); }

.shell { width: min(100% - 2 * var(--gutter), var(--shell)); margin-inline: auto; }

.visually-hidden, .skip:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; z-index: 100; top: .75rem; left: .75rem;
  padding: .6rem .9rem; background: var(--yellow); color: var(--navy); font-weight: 800;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 2.75rem; padding: .55rem 1.05rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 750 .95rem/1.15 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.button:active { transform: translateY(1px); }
.button-yellow { background: var(--yellow); color: var(--navy); }
.button-yellow:hover { background: #ffe37d; }
.button-red { background: var(--red); color: #fff; }
.button-red:hover { background: var(--red-dark); }
.button-outline { border-color: currentColor; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.button-outline-light { border-color: rgb(255 255 255 / .7); color: #fff; }
.button-outline-light:hover { background: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #c9d3e6; font-size: .8125rem; }
.topbar-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 2.25rem; }
.topbar-date { margin: 0; color: #e7ecf6; font-weight: 600; }
.topbar-links { display: flex; gap: 1.1rem; margin-inline-start: auto; }
.topbar a { color: inherit; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: .25rem; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.edition-switch {
  padding: .15rem .6rem; border: 1px solid rgb(255 255 255 / .35); border-radius: 999px;
  color: #fff !important; font-weight: 700 !important;
}
.edition-switch:hover { background: #fff; color: var(--navy) !important; text-decoration: none !important; }

.site-header { background: var(--bg); }
.masthead {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding-block: clamp(.75rem, 2vw, 1.25rem);
}
.brand { grid-column: 2; display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.brand img { width: clamp(2.6rem, 5vw, 3.6rem); height: auto; border-radius: 50%; }
.brand-text { display: grid; }
.brand-name {
  font: 850 clamp(1.75rem, 5vw, 3.2rem)/.9 var(--sans); font-stretch: var(--condensed);
  letter-spacing: -.02em; color: var(--ink); white-space: nowrap;
}
.brand-name span { color: var(--blue); }
.brand-tagline {
  margin-top: .3rem; color: var(--muted);
  font: 650 clamp(.62rem, 1.2vw, .78rem)/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.masthead-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: .6rem; }
.icon-button {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; color: var(--ink); text-decoration: none;
}
.icon-button:hover { background: var(--surface); }
.icon-button svg { width: 1.35rem; height: 1.35rem; }

/* Menu (details element, works without JavaScript) */
.menu { grid-column: 1; grid-row: 1; justify-self: start; position: relative; }
.menu summary {
  list-style: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 50%; cursor: pointer; color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--surface); }
.menu summary svg { width: 1.5rem; height: 1.5rem; }
.menu .menu-close, .menu[open] .menu-open { display: none; }
.menu[open] .menu-close { display: block; }
.menu-panel {
  position: absolute; z-index: 60; top: calc(100% + .5rem); left: 0;
  width: min(22rem, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 8rem); overflow: auto;
  padding: 1.1rem; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: .6rem; box-shadow: var(--shadow);
}
.menu-heading {
  margin: 1.1rem 0 .35rem; color: var(--muted);
  font: 750 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.menu-sections, .menu-services { display: grid; }
.menu-sections a, .menu-services a {
  display: flex; align-items: center; gap: .3rem; padding: .55rem 0;
  border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 650;
}
.menu-sections a { font: 800 1.25rem/1.2 var(--sans); font-stretch: var(--condensed); }
.menu-sections a[aria-current] { color: var(--accent); }
.menu-sections a:hover, .menu-services a:hover { color: var(--blue); }
.menu-edition { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--link); }

/* Section bar: sticky on every page */
.section-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
}
.section-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--nav-height); }
.section-links {
  display: flex; gap: clamp(1rem, 2.4vw, 1.9rem);
  overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent); padding-inline-end: 1.5rem;
}
.section-links::-webkit-scrollbar { display: none; }
.section-links a {
  position: relative; display: inline-flex; align-items: center; min-height: var(--nav-height);
  font: 750 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; color: var(--ink);
}
.section-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.section-links a:hover::after, .section-links a[aria-current]::after { transform: scaleX(1); }
.section-links a[aria-current] { color: var(--accent); }

.search { display: flex; min-width: 0; }
.search input {
  width: 15rem; min-width: 0; height: 2.35rem; padding: 0 .85rem;
  border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px;
  background: var(--surface); color: var(--ink); font-size: .9rem;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: 2px solid var(--blue-bright); outline-offset: -1px; background: var(--bg); }
.search button {
  display: grid; place-items: center; width: 2.75rem; height: 2.35rem;
  border: 0; border-radius: 0 999px 999px 0; background: var(--navy); color: #fff;
}
.search button:hover { background: var(--blue); }
.search button svg { width: 1.1rem; height: 1.1rem; }
.menu-panel .search input { width: 100%; flex: 1; }

/* Latest-news ticker */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .875rem; }
.ticker-inner { display: flex; align-items: center; gap: 1rem; min-height: 2.6rem; }
.ticker-label {
  flex: none; display: inline-flex; align-items: center; gap: .45rem; margin: 0;
  color: var(--accent); font: 800 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.ticker ul {
  display: flex; gap: 1.6rem; margin: 0; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
  mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.ticker ul::-webkit-scrollbar { display: none; }
.ticker li { display: flex; align-items: baseline; gap: .5rem; white-space: nowrap; }
.ticker time { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }
.ticker a { font-weight: 650; text-decoration: none; color: var(--ink); }
.ticker a:hover { text-decoration: underline; }

.live-dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); flex: none;
  box-shadow: 0 0 0 0 rgb(212 42 60 / .5); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 .4rem rgb(212 42 60 / 0); } 100% { box-shadow: 0 0 0 0 rgb(212 42 60 / 0); } }

/* ---------- Shared story pieces ---------- */
.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; margin: 0 0 .45rem;
  font: 800 .72rem/1.1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.kicker a, .kicker span { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.kicker-kind { padding: .18rem .4rem; border-radius: 2px; background: var(--navy); color: #fff; letter-spacing: .1em; }
.kicker-kind.kind-verificacion { background: var(--yellow); color: var(--navy); }
.kicker-kind.kind-opinion { background: #1f4a96; color: #fff; }

.story { position: relative; min-width: 0; }
.story-title {
  margin: 0; color: var(--ink);
  font: 800 1.3rem/1.08 var(--headings); font-stretch: var(--condensed); letter-spacing: -.01em;
  text-wrap: balance; overflow-wrap: break-word;
}
.story-title a { text-decoration: none; }
.story-title a:hover { text-decoration: underline; text-decoration-thickness: .06em; }
.story-title a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.story .kicker a { position: relative; z-index: 1; }
.story-dek { margin: .5rem 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.story-meta {
  display: flex; flex-wrap: wrap; gap: .3rem .75rem; margin: .65rem 0 0;
  color: var(--muted); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.story-meta span::before { content: '·'; margin-inline-end: .75rem; }
.story-meta span:first-child::before { content: none; }
.story-media {
  display: block; overflow: hidden; background: var(--navy); border-radius: var(--radius);
}
.story-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s ease; }
.story:hover .story-media img { transform: scale(1.03); }

/* Card: image on top */
.story-card .story-media { aspect-ratio: 1; margin-bottom: .85rem; }

/* Row: text left, thumbnail right (river, listings) */
.story-row {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(6.5rem, 20%, 10rem); gap: 1.25rem;
  padding-block: 1.15rem; border-bottom: 1px solid var(--line);
}
.story-row .story-media { grid-column: 2; grid-row: 1; aspect-ratio: 1; align-self: start; }
.story-row .story-body { grid-column: 1; grid-row: 1; }
.story-row .story-title { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.story-row.story-no-media { grid-template-columns: minmax(0, 1fr); }

/* Compact: thumbnail left, headline right */
.story-compact { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .85rem; align-items: start; }
.story-compact .story-media { aspect-ratio: 4 / 5; }
.story-compact .story-title { font-size: 1.12rem; }
.story-compact .story-meta { margin-top: .35rem; }
.story-compact.story-no-media { grid-template-columns: minmax(0, 1fr); }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1rem, 2.5vw, 2rem); }
.story-grid-compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }

.more-link {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: 1.1rem;
  color: var(--link); font: 750 .9rem/1.2 var(--sans); text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

.block-heading {
  display: flex; align-items: center; gap: .6rem; margin: 0;
  font: 850 clamp(1.5rem, 3vw, 2rem)/1 var(--headings); font-stretch: var(--condensed);
  letter-spacing: -.01em; text-transform: uppercase;
}
.block-heading::before { content: ''; width: .55rem; height: 1.1em; background: var(--red); flex: none; }
.block-heading a { text-decoration: none; }
.block-heading a:hover { text-decoration: underline; }
.block-header {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
  padding-bottom: .75rem; margin-bottom: 1.5rem; border-bottom: 3px solid var(--line-strong);
}
.block-header .more-link { margin: 0; }
.rail-heading {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; padding-bottom: .6rem;
  border-bottom: 3px solid var(--line-strong);
  font: 850 1.15rem/1 var(--headings); font-stretch: var(--condensed); letter-spacing: .02em; text-transform: uppercase;
}

/* ---------- Home: front ---------- */
.front { background: var(--night); color: #e6ebf5; background-image: radial-gradient(60rem 30rem at 85% -10%, rgb(47 111 214 / .28), transparent 70%); }
.front-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
.front-solo { grid-template-columns: minmax(0, 1fr); }
.lead {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
}
.lead-without-cover { grid-template-columns: minmax(0, 1fr); }
.lead .kicker { color: var(--yellow); }
.lead .kicker-kind { background: var(--yellow); color: var(--navy); }
.lead-title {
  margin: 0; color: #fff;
  font: 850 clamp(2.3rem, 5.6vw, 4.4rem)/.96 var(--headings); font-stretch: var(--condensed);
  letter-spacing: -.02em; text-wrap: balance;
}
.lead-title a { text-decoration: none; }
.lead-title a:hover { color: var(--yellow); }
.lead-dek { margin: 1rem 0 0; max-width: 40rem; color: #cfd8ea; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.55; }
.lead-meta { display: flex; gap: .75rem; margin: 1rem 0 0; color: #aeb9d0; font-size: .85rem; font-weight: 650; }
.lead-meta span::before { content: '·'; margin-inline-end: .75rem; }
.lead-action { margin-top: 1.4rem; }
.lead-media {
  display: block; position: relative; aspect-ratio: 4 / 5; max-height: 34rem; justify-self: center; width: 100%;
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 1.5rem 3rem rgb(0 0 0 / .35);
}
.lead-media::after { content: ''; position: absolute; inset: 0; border: 1px solid rgb(255 255 255 / .12); border-radius: inherit; pointer-events: none; }
.lead-media picture { display: contents; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.front-secondary { display: grid; align-content: start; gap: 0; border-inline-start: 1px solid rgb(255 255 255 / .14); padding-inline-start: clamp(1rem, 2.5vw, 2rem); }
.front-secondary .story { padding-block: 1.15rem; border-bottom: 1px solid rgb(255 255 255 / .14); }
.front-secondary .story:first-child { padding-top: 0; }
.front-secondary .story:last-child { border-bottom: 0; }
.front-secondary .story-title { color: #fff; font-size: 1.3rem; }
.front-secondary .kicker { color: var(--yellow); }
.front-secondary .story-meta { color: #aeb9d0; }
.front-secondary .story-compact { grid-template-columns: minmax(0, 1fr) 5.5rem; }
.front-secondary .story-compact .story-media { grid-column: 2; grid-row: 1; }
.front-secondary .story-compact .story-body { grid-column: 1; grid-row: 1; }

/* Content with a side rail */
.page-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(1.75rem, 4vw, 3rem);
}
.page-main { min-width: 0; }
.page-rail { display: grid; align-content: start; gap: 1.75rem; }
.river .block-heading { padding-bottom: .75rem; border-bottom: 3px solid var(--line-strong); }

.latest-list ol { margin: 0; padding: 0; list-style: none; counter-reset: latest; }
.latest-list li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .5rem; padding-block: .75rem; border-bottom: 1px solid var(--line); }
.latest-list time { color: var(--accent); font: 750 .78rem/1.5 var(--sans); font-variant-numeric: tabular-nums; }
.latest-list a { color: var(--ink); font: 700 1rem/1.25 var(--sans); text-decoration: none; }
.latest-list a:hover { text-decoration: underline; }

/* Promotions */
.promo {
  display: grid; gap: .85rem; padding: 1.35rem; border-radius: .6rem;
  background: var(--surface); border: 1px solid var(--line);
}
.promo p { margin: 0; color: var(--muted); font-size: .92rem; }
.promo .promo-title { margin-bottom: .25rem; color: var(--ink); font: 850 1.3rem/1.05 var(--sans); font-stretch: var(--condensed); }
.promo-icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--navy); color: var(--yellow); }
.promo-icon svg { width: 1.35rem; height: 1.35rem; }
.promo .button { justify-self: start; }
.promo-newsletter.promo-box { background: var(--navy); border-color: var(--navy); color: #fff; }
.promo-newsletter.promo-box .promo-title { color: #fff; }
.promo-newsletter.promo-box p { color: #c5cfe3; }
.promo-newsletter.promo-box .promo-icon { background: var(--yellow); color: var(--navy); }
.promo-facebook .promo-icon { background: #1877f2; color: #fff; }
.promo-inline, .promo-community { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; margin-top: 2rem; }

.cta-band { background: var(--navy); color: #fff; padding-block: clamp(2rem, 5vw, 3.5rem); margin-top: clamp(2rem, 5vw, 3.5rem); }
.cta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.cta-band .promo { background: var(--night-2); border-color: rgb(255 255 255 / .1); grid-template-columns: auto minmax(0, 1fr); }
.cta-band .promo .button { grid-column: 2; }
.cta-band .promo-title { color: #fff; }
.cta-band .promo p { color: #c5cfe3; }
.cta-band .promo-icon { background: var(--yellow); color: var(--navy); }

.section-block { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.video-band + .cta-band { margin-top: 0; border-top: 1px solid rgb(255 255 255 / .12); }

/* ---------- Listings ---------- */
.listing-header { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(1.75rem, 5vw, 3rem); }
.listing-eyebrow { margin: 0 0 .5rem; color: var(--accent); font: 800 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.listing-title {
  margin: 0; font: 850 clamp(2.4rem, 7vw, 4.5rem)/.95 var(--headings); font-stretch: var(--condensed);
  letter-spacing: -.02em; overflow-wrap: anywhere;
}
.listing-intro { max-width: 42rem; margin: .9rem 0 0; color: var(--muted); font-size: 1.1rem; }
.listing-search { max-width: 36rem; margin-top: 1.25rem; }
.listing-search .search input { width: 100%; flex: 1; height: 3rem; font-size: 1rem; }
.listing-search .search button { height: 3rem; width: 3.25rem; }
.listing-results { margin: 1rem 0 0; overflow-wrap: anywhere; }
.listing .story-row:first-of-type { padding-top: 0; }
.empty { padding: 2rem; border: 1px dashed var(--light-line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; font-weight: 700; }
.pagination a {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: .5rem 1rem;
  border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); text-decoration: none;
}
.pagination a:hover { background: var(--ink); color: var(--bg); }
.pagination span { color: var(--muted); }

/* ---------- Article ---------- */
.reading-progress { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

.preview { background: var(--yellow); color: var(--navy); padding-block: .7rem; }

.article-heading { padding-top: clamp(1.25rem, 4vw, 2.5rem); }
.article-heading > * { max-width: 54rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--ink); }
.article-title {
  margin: 0; color: var(--ink);
  font: 850 clamp(2.15rem, 6vw, 4rem)/.98 var(--headings); font-stretch: var(--condensed);
  letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word;
}
.article-summary {
  margin: 1rem 0 0; color: var(--muted);
  font: 400 clamp(1.15rem, 2.2vw, 1.4rem)/1.45 var(--serif);
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem;
  margin-top: 1.5rem; padding-block: 1rem; border-block: 1px solid var(--line);
}
.byline-avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.byline { flex: 1 1 14rem; min-width: 0; }
.byline p { margin: 0; }
.article-author { color: var(--ink); font-size: .95rem; }
.article-dates { display: flex; flex-wrap: wrap; gap: .1rem .65rem; color: var(--muted); font-size: .82rem; font-weight: 550; }
.article-dates > span::before { content: '·'; margin-inline-end: .65rem; }
.article-updated { color: var(--red-dark); font-weight: 700; }
.fact-dates { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 1rem 0 0; font-size: .85rem; }
.fact-dates div { display: flex; gap: .4rem; }
.fact-dates dt { color: var(--muted); font-weight: 650; }
.fact-dates dt::after { content: ':'; }
.fact-dates dd { margin: 0; font-weight: 700; color: var(--ink); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.share-label { margin-inline-end: .2rem; color: var(--muted); font: 750 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.share-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
  font: 700 .85rem/1 var(--sans); text-decoration: none;
}
.share-button:hover { border-color: var(--ink); }
.share-button svg { width: 1.1rem; height: 1.1rem; }
.share-facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-whatsapp:hover { background: #128c4b; border-color: #128c4b; color: #fff; }
.share-x:hover { background: #000; border-color: #000; color: #fff; }
.share-top .share-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.share-top .share-button { padding: 0; }
.share-status { flex-basis: 100%; margin: 0; min-height: 0; color: var(--muted); font-size: .85rem; }
.share-status:empty { display: none; }
.share-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.article-layout {
  display: grid; grid-template-columns: minmax(0, 42rem) 20rem; justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 4.5rem); padding-block: clamp(1.25rem, 3vw, 2rem) clamp(2rem, 5vw, 3.5rem);
}
.article-main { min-width: 0; }
.article-image { margin: 0 0 2rem; }
.article-image-frame {
  max-width: 34rem; overflow: hidden; border-radius: var(--radius); background: var(--navy);
}
.article-image-frame img { width: 100%; }
.article-image figcaption { max-width: 34rem; margin: .65rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.article-image .credit { color: var(--ink); font-weight: 650; }

.article-body { color: var(--text); font: 400 clamp(1.1rem, 1.6vw, 1.22rem)/1.72 var(--reading); }
.article-body p { margin: 0 0 1.35em; }
.article-body > p.dropcap::first-letter {
  float: left; margin: .06em .12em 0 0; color: var(--accent);
  font: 850 4.3em/.78 var(--sans); font-stretch: var(--condensed);
}
.article-body h2 {
  margin: 2em 0 .6em; font: 850 clamp(1.5rem, 3vw, 1.9rem)/1.1 var(--sans); font-stretch: var(--condensed);
}
.article-body blockquote {
  margin: 1.8em 0; padding: .2em 0 .2em 1.2em; border-inline-start: 4px solid var(--red);
  color: var(--ink); font: 700 clamp(1.3rem, 2.6vw, 1.6rem)/1.3 var(--sans); font-stretch: 85%;
}
.article-body blockquote p { margin: 0; }

.update-note {
  margin: 2rem 0; padding: 1.1rem 1.25rem; border-radius: var(--radius);
  border-inline-start: 4px solid var(--yellow); background: color-mix(in srgb, var(--yellow) 14%, var(--bg));
}
.update-note h2 { margin: 0 0 .35rem; font: 800 .8rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.update-note p { margin: 0; }

.sources { margin-top: 2.5rem; padding: 1.5rem; border-radius: .6rem; background: var(--surface); border: 1px solid var(--line); }
.sources h2 {
  display: flex; align-items: center; gap: .55rem; margin: 0;
  font: 850 1.35rem/1 var(--sans); font-stretch: var(--condensed); text-transform: uppercase; letter-spacing: .02em;
}
.sources h2::before { content: ''; width: .5rem; height: 1em; background: var(--red); }
.sources-intro { margin: .6rem 0 1rem; color: var(--muted); font-size: .9rem; }
.sources ol { margin: 0; padding: 0; list-style: none; counter-reset: source; }
.sources li { position: relative; padding: .75rem 0 .75rem 2.2rem; border-top: 1px solid var(--line); counter-increment: source; }
.sources li::before {
  content: counter(source); position: absolute; left: 0; top: .8rem;
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--navy); color: #fff; font: 750 .75rem/1 var(--sans);
}
.sources li a { color: var(--link); font-weight: 750; }
.source-host { display: block; color: var(--muted); font-size: .78rem; }
.sources li p { margin: .25rem 0 0; color: var(--text); font-size: .92rem; }
.original { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.original a { color: var(--link); font-weight: 650; }

.article-rail { display: grid; align-content: start; gap: 2rem; }
.rail-sticky { position: sticky; top: calc(var(--nav-height) + 1.5rem); }

.related { border-top: 1px solid var(--line); }

/* ---------- Static pages and errors ---------- */
.static-body { padding-block: clamp(1.75rem, 4vw, 3rem); font-size: 1.08rem; line-height: 1.7; }
.static-body > * { max-width: 46rem; }
.static-body h2 { margin: 2rem 0 .5rem; font: 850 1.6rem/1.1 var(--sans); font-stretch: var(--condensed); }
.static-body a { color: var(--link); }
.static-body li { margin-bottom: .5rem; }
.static-updated { color: var(--muted); font-size: .9rem; }

.not-found { max-width: 40rem; padding-block: clamp(3rem, 8vw, 6rem); text-align: center; }
.not-found-code { margin: 0; color: var(--accent); font: 900 clamp(5rem, 18vw, 9rem)/.85 var(--sans); font-stretch: var(--condensed); }
.not-found h1 { margin: .5rem 0; font: 850 clamp(2rem, 5vw, 3rem)/1 var(--sans); font-stretch: var(--condensed); }
.not-found > p:not(.not-found-code) { color: var(--muted); }
.not-found .search { justify-content: center; margin: 1.5rem auto; }
.not-found .search input { width: min(22rem, 70vw); }
.not-found .latest-list { margin-top: 2.5rem; text-align: left; }

/* ---------- Ad slots ---------- */
.ad-slot { display: grid; justify-items: center; gap: .3rem; margin-inline: auto; contain: layout style; }
.ad-label { color: var(--muted); font: 650 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.ad-slot ins, .ad-slot .ad-box { display: block; width: 100%; }
.ad-slot-top { padding-block: .9rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.ad-slot-top .ad-box, .ad-slot-top ins { max-width: 970px; min-height: 90px; }
.ad-slot-rectangle .ad-box, .ad-slot-rectangle ins { max-width: 336px; min-height: 280px; }
.ad-slot-rail .ad-box, .ad-slot-rail ins { max-width: 300px; min-height: 600px; }
.ad-slot-inline { margin-block: 1rem 2rem; padding-block: .75rem; border-block: 1px solid var(--line); }
.ad-slot-inline .ad-box, .ad-slot-inline ins { min-height: 280px; }
.ad-slot-feed { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.ad-slot-feed .ad-box, .ad-slot-feed ins { min-height: 250px; }
.ad-sim .ad-box {
  display: grid; place-items: center; text-align: center; padding: 1rem;
  border: 2px dashed var(--light-line); border-radius: var(--radius); background: var(--surface);
  color: var(--muted); font: 650 .85rem/1.4 var(--sans);
}
.pd-sponsor {
  display: grid; gap: .35rem; margin: 1.5rem 0; padding: 1.1rem 1.25rem;
  border: 1px solid var(--line); border-inline-start: 4px solid var(--yellow); border-radius: var(--radius); background: var(--surface);
}
.pd-sponsor > span { color: var(--muted); font: 750 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.pd-sponsor strong { color: var(--ink); font-size: 1.1rem; }
.pd-sponsor p { margin: 0; }
.pd-sponsor a { color: var(--link); font-weight: 700; }


/* ---------- Breaking news ---------- */
.breaking { background: var(--red); color: #fff; }
.breaking-live { background: #8f1020; }
.breaking-developing { background: var(--navy); border-bottom: 3px solid var(--red); }
.breaking-inner { display: flex; align-items: center; gap: .9rem; min-height: 2.9rem; padding-block: .45rem; }
.breaking-label {
  flex: none; display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .3rem .55rem;
  background: #fff; color: #9b1424; border-radius: 2px;
  font: 850 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.breaking-live .live-dot { background: #d42a3c; }
.breaking-message { margin: 0; color: #fff; font: 750 1rem/1.3 var(--sans); text-decoration: none; }
a.breaking-message:hover { text-decoration: underline; }
.breaking :focus-visible { outline-color: var(--yellow); }

/* ---------- Topics ---------- */
.topic-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.topic-chips ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.topic-chips-heading { margin: 0; color: var(--muted); font: 800 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.topic-chips a {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding: .3rem .85rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
  font: 700 .88rem/1 var(--sans); text-decoration: none;
}
.topic-chips a::before { content: '#'; margin-inline-end: .2rem; color: var(--accent); font-weight: 850; }
.topic-chips a:hover { border-color: var(--ink); background: var(--surface); }
.topics-bar { border-bottom: 1px solid var(--line); background: var(--surface); padding-block: .9rem; }
.topics-bar .topic-chips ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.topics-bar .topic-chips ul::-webkit-scrollbar { display: none; }
.topics-bar .topic-chips { flex-wrap: nowrap; }
.topics-bar .topic-chips a { white-space: nowrap; }
.article-topics { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.topics-index { padding-block: clamp(1.75rem, 4vw, 3rem); }
.topics-index ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.topics-index a {
  display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: .5rem; text-decoration: none; background: var(--surface);
}
.topics-index a:hover { border-color: var(--ink); }
.topics-index span { color: var(--ink); font: 850 1.2rem/1.1 var(--sans); font-stretch: var(--condensed); }
.topics-index small { color: var(--muted); font-weight: 650; white-space: nowrap; }
.what-we-know {
  max-width: 46rem; margin-top: 1.25rem; padding: 1.1rem 1.25rem; border-radius: .5rem;
  background: var(--bg); border: 1px solid var(--line); border-inline-start: 4px solid var(--red);
}
.what-we-know h2 { margin: 0 0 .4rem; font: 850 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.what-we-know p { margin: .35rem 0 0; font-size: 1.02rem; line-height: 1.55; }

/* ---------- Most read ---------- */
.most-read ol { margin: 0; padding: 0; list-style: none; counter-reset: popular; }
.most-read li { position: relative; padding: .85rem 0 .85rem 2.6rem; border-bottom: 1px solid var(--line); counter-increment: popular; }
.most-read li::before {
  content: counter(popular); position: absolute; left: 0; top: .55rem;
  color: var(--accent); font: 900 2rem/1 var(--sans); font-stretch: var(--condensed);
}
.most-read a { color: var(--ink); font: 700 1rem/1.25 var(--sans); text-decoration: none; }
.most-read a:hover { text-decoration: underline; }

/* ---------- Videos ---------- */
.video-band { background: var(--navy); color: #fff; padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.block-header-dark { border-bottom-color: rgb(255 255 255 / .85); }
.block-header-dark .block-heading, .block-header-dark .block-heading a { color: #fff; }
.block-header-dark .more-link { color: var(--yellow); }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.video-card { position: relative; min-width: 0; }
.video-thumb {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: .5rem;
  background: var(--night-2); margin-bottom: .7rem;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .35s ease; }
.video-card:hover .video-thumb img { transform: scale(1.04); }
.video-badge {
  position: absolute; left: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem .3rem .45rem; border-radius: 999px; background: rgb(0 0 0 / .72); color: #fff; font: 750 .8rem/1 var(--sans);
}
.video-badge svg { width: 1rem; height: 1rem; }
.video-card .story-title { font-size: 1.12rem; }
.video-band .video-card .story-title, .video-band .story-title a { color: #fff; }
.video-band .story-meta { color: #aeb9d0; }
.video-index { padding-block: clamp(1.75rem, 4vw, 3rem); }
.listing-header-dark { background: var(--navy); border-bottom: 0; }
.listing-header-dark .listing-title { color: #fff; }
.listing-header-dark .listing-intro { color: #c5cfe3; }
.listing-header-dark .listing-eyebrow { color: var(--yellow); }
.video-frame { position: relative; display: block; aspect-ratio: 9 / 16; max-height: 82vh; overflow: hidden; border-radius: .6rem; background: #000; }
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-external img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video-play {
  position: absolute; inset: auto 1rem 1rem; display: inline-flex; justify-content: center; align-items: center; gap: .5rem;
  padding: .75rem 1rem; border-radius: var(--radius); background: #1877f2; color: #fff; font-weight: 800;
}
.video-page {
  display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}
.video-stage { position: sticky; top: calc(var(--nav-height) + 1rem); }
.video-info { display: grid; gap: 1rem; justify-items: start; }
.video-info .article-title { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.video-info .share-bottom { margin-top: .5rem; }
.article-video { max-width: 22rem; margin: 1rem 0 2rem; }
.article-video-label { margin: 0 0 .5rem; color: var(--accent); font: 800 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Corrections ---------- */
.corrections-list { margin: 0 0 2rem; padding: 0; list-style: none; }
.corrections-list li { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.corrections-list h2 { margin: .25rem 0 .4rem; font-size: 1.35rem; }
.corrections-list h2 a { color: var(--ink); text-decoration: none; }
.corrections-list h2 a:hover { text-decoration: underline; }
.corrections-list p { margin: 0; }

/* ---------- Support ---------- */
.support-hero { background: var(--night); color: #fff; padding-block: clamp(2.5rem, 7vw, 5rem); background-image: radial-gradient(50rem 25rem at 90% 0%, rgb(212 42 60 / .35), transparent 70%); }
.support-inner { max-width: 52rem; }
.support-hero .listing-title { color: #fff; }
.support-hero .listing-eyebrow { color: var(--yellow); }
.support-intro { max-width: 40rem; margin: 1rem 0 0; color: #d5dceb; font: 400 clamp(1.1rem, 2vw, 1.3rem)/1.55 var(--serif); }
.support-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.support-actions .button { min-height: 3.1rem; padding-inline: 1.4rem; font-size: 1.02rem; }
.support-note { margin: 1rem 0 0; color: #aeb9d0; font-size: .88rem; }
.promo-support .promo-icon svg { fill: currentColor; stroke: none; }
.masthead-support { min-height: 2.6rem; padding-block: .4rem; }

/* ---------- Narrator ---------- */
.listen, .listen-stop {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: 0 .9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: 750 .85rem/1 var(--sans);
}
.listen:hover, .listen-stop:hover { border-color: var(--ink); }
.listen svg { width: 1.15rem; height: 1.15rem; }
.listen-time { color: var(--muted); font-weight: 600; }
.listen.is-playing { background: var(--navy); border-color: var(--navy); color: #fff; }
.listen.is-playing .listen-time { color: #c5cfe3; }


/* ---------- Horizontal 16:9 web covers (1600 × 900) ---------- */
.story-card .story-media.media-wide { aspect-ratio: 16 / 9; }
.story-card .story-media.media-wide img { object-position: center; }
.story-row .story-media.media-wide { aspect-ratio: 4 / 3; }
.story-row .story-media.media-wide img, .story-compact .story-media.media-wide img { object-position: center; }
.story-compact .story-media.media-wide { aspect-ratio: 1; }
.lead-wide { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.lead-wide .lead-media { order: -1; aspect-ratio: 16 / 9; max-height: none; }
.lead-wide .lead-title { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.lead-media.media-wide img { object-position: center; }
.article-image-wide .article-image-frame, .article-image-wide figcaption { max-width: none; }
.article-body ul { margin: 0 0 1.35em; padding-inline-start: 1.3em; }
.article-body li { margin-bottom: .45em; }
.article-body li::marker { color: var(--accent); }
.article-body a { color: var(--link); text-decoration-thickness: .06em; }
.article-body a:hover { text-decoration-thickness: .12em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; background: var(--navy); color: #c5cfe3; border-top: 4px solid var(--red); }
.page-home .site-footer, .page-article .site-footer { margin-top: 0; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font: 850 1.6rem/1 var(--sans); font-stretch: var(--condensed); }
.footer-brand img { border-radius: 50%; }
.footer-brand span span { color: var(--yellow); }
.footer-about p { max-width: 26rem; margin: 1rem 0; font-size: .92rem; line-height: 1.55; }
.footer-socials { display: grid; justify-items: start; gap: .4rem; }
.footer-social { display: inline-flex; align-items: center; gap: .5rem; color: var(--yellow); font-weight: 750; text-decoration: none; }
.footer-social:hover { text-decoration: underline; }
.footer-col { display: grid; align-content: start; gap: .55rem; }
.footer-heading { margin: 0 0 .35rem; color: #fff; font: 800 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.footer-col a { color: #c5cfe3; text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  padding-block: 1.1rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-edition { color: #fff; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 72rem) {
  .front-grid { grid-template-columns: minmax(0, 1fr); }
  .front-secondary { border-inline-start: 0; padding-inline-start: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid rgb(255 255 255 / .14); padding-top: 1.25rem; }
  .front-secondary .story { padding: 0; border: 0; }
  .article-layout { grid-template-columns: minmax(0, 42rem); justify-content: center; }
  .article-heading { max-width: 42rem; }
  .article-rail { display: none; }
}

@media (max-width: 60rem) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-page { grid-template-columns: minmax(0, 1fr); }
  .video-stage { position: static; max-width: 24rem; width: 100%; margin-inline: auto; }
  .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar-links { display: none; }
  .topbar-date { margin-inline-end: auto; }
  .section-nav .search { display: none; }
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .page-rail { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
  .page-rail .latest-list { display: none; }
  .page-home .page-rail .promo-newsletter { display: none; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
  .cta-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
  :root { --nav-height: 2.75rem; }
  .masthead { grid-template-columns: auto 1fr auto; gap: .5rem; }
  .brand { grid-column: 2; justify-self: center; gap: .55rem; }
  .brand-tagline { display: none; }
  .masthead-subscribe, .masthead-support { display: none; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .breaking-inner { flex-wrap: wrap; gap: .35rem .75rem; }
  .breaking-message { font-size: .95rem; }
  .masthead-actions { gap: 0; }
  .topbar-inner { min-height: 2rem; }
  .ticker-inner { gap: .75rem; }
  .lead, .lead-wide { grid-template-columns: minmax(0, 1fr); }
  .lead-media { order: -1; aspect-ratio: 4 / 5; max-height: none; }
  .lead-media.media-wide { aspect-ratio: 16 / 9; }
  .lead-wide .lead-media.has-tall { aspect-ratio: 4 / 5; }
  .lead-media img { height: 100%; }
  .lead-action { width: 100%; }
  .front-secondary { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .front-secondary .story { padding-block: 1rem; border-bottom: 1px solid rgb(255 255 255 / .14); }
  .front-secondary .story:last-child { border-bottom: 0; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-grid .story-card { display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
  .story-grid .story-card .story-media { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; margin: 0; }
  .story-grid .story-card .story-body { grid-column: 1; grid-row: 1; }
  .story-grid .story-card .story-dek { display: none; }
  .story-grid .story-card .story-title { font-size: 1.2rem; }
  .story-row .story-dek { display: none; }
  .story-row { grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 1rem; }
  .block-header { flex-wrap: wrap; }
  .article-meta .share { flex-basis: 100%; }
  .promo-inline, .promo-community { grid-template-columns: auto minmax(0, 1fr); }
  .promo-inline .button, .promo-community .button { grid-column: 1 / -1; justify-self: stretch; }
  .cta-band .promo .button { grid-column: 1 / -1; justify-self: stretch; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col:last-child { grid-column: 1 / -1; }
  .ad-slot-top .ad-box, .ad-slot-top ins { max-width: 320px; min-height: 100px; }
  .article-body > p.dropcap::first-letter { font-size: 3.6em; }
  .article-image-frame, .article-image figcaption { max-width: none; }
}

@media (max-width: 25rem) {
  .masthead { gap: .25rem; }
  .brand { gap: .4rem; }
  .brand img { width: 2.1rem; }
  .brand-name { font-size: 1.55rem; }
  .menu summary, .icon-button { width: 2.5rem; height: 2.5rem; }
  .topbar-date { font-size: .75rem; }
}

/* Moving ticker (enabled by site.js; without JavaScript the list scrolls by hand) */
.ticker.is-moving .ticker-window {
  flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent);
}
.ticker.is-moving .ticker-track {
  display: flex; gap: 2.5rem; width: max-content; padding-inline-end: 2.5rem; overflow: visible;
  -webkit-mask-image: none; mask-image: none;
  animation: ticker-move var(--ticker-duration, 45s) linear infinite;
}
.ticker.is-moving .ticker-track > li { flex: none; }
/* Keeps moving under the mouse; it stops only with its button or while a headline has keyboard focus. */
.ticker.is-moving:has(a:focus-visible) .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
@keyframes ticker-move { to { transform: translateX(-50%); } }
.ticker-toggle {
  flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink);
}
.ticker-toggle:hover { border-color: var(--ink); }
.ticker-toggle svg { width: .9rem; height: .9rem; }
.ticker-toggle .icon-play, .ticker.is-paused .ticker-toggle .icon-pause { display: none; }
.ticker.is-paused .ticker-toggle .icon-play { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .section-nav, .ticker, .masthead-actions, .menu, .share, .article-rail, .promo, .ad-slot, .pd-sponsor,
  .site-footer, .related, .reading-progress, .cta-band, .breaking, .listen, .listen-stop, .most-read, .topics-bar, .video-band { display: none !important; }
  body { background: #fff; color: #000; }
  .article-layout { display: block; }
  .article-body { font-size: 12pt; }
  .sources a::after { content: ' (' attr(href) ')'; font-size: .8em; word-break: break-all; }
}

.article-figure { margin: 1.8rem 0; }
.article-figure > a { display: block; width: fit-content; max-width: 100%; margin-inline: auto; }
.article-figure img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.article-figure figcaption { margin-top: .65rem; color: var(--muted); font: .85rem/1.5 var(--sans); }
