/* ==========================================================================
   Tinubu 2027 — broadsheet stylesheet
   Newsprint ground, ink type, one deep-green accent; red reserved for "Live".
   ========================================================================== */

:root {
  --paper: #f6f2ea;
  --paper-2: #ede7da;
  --paper-3: #e4dccb;
  --ink: #15130f;
  --ink-2: #34302a;
  --muted: #5b544a;          /* 6.6:1 on --paper */
  --rule: #15130f;
  --hair: #c9bfab;
  --green: #0b5d3b;          /* 7.6:1 on --paper */
  --green-deep: #073f28;
  --green-tint: #dfe8dc;
  --red: #b0201a;            /* 6.1:1 on --paper; white on red 6.5:1 */

  --f-display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body: "Source Serif 4", "Source Serif Pro", Georgia, Cambria, serif;
  --f-label: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: 16px;
  --col-gap: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  font-optical-sizing: auto;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 1px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
.narrow { max-width: 820px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--f-label); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--paper); }

/* ---------- labels ---------- */
.kicker, .rail-h, .rule-h, .meta, .meta-sm, .crumbs, .topbar, .motto, .share-label, .chip, .num-l, .num-s, .pill, .footer-h, .countdown-h, .ear-k, .form-note, .result-count, .art-mark, .live-tag {
  font-family: var(--f-label);
}
.kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); margin: 0 0 .45em;
}
.kicker a { text-decoration: none; color: var(--green); }
.kicker a:hover { text-decoration: underline; }
.kicker-sub { color: var(--muted); font-weight: 500; letter-spacing: .1em; }
.kicker-sub::before { content: "/"; margin: 0 .45em 0 .2em; color: var(--hair); }
.meta, .meta-sm { font-size: .82rem; color: var(--muted); letter-spacing: .02em; margin: 0; }
.meta-sm { font-size: .78rem; }
.byline { color: var(--ink); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.link-arrow { font-family: var(--f-label); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green); text-decoration: none; border-bottom: 1px solid currentColor; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--green-deep); }

/* ---------- masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); }
.topbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .78rem; letter-spacing: .05em; padding-block: 10px 8px; border-bottom: 1px solid var(--hair); color: var(--ink-2); }
.topbar p { margin: 0; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.dateline { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.topbar-mid { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

.wordmark-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 18px 6px; }
.wordmark { display: inline-flex; align-items: baseline; gap: .18em; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 900; line-height: .9; letter-spacing: -0.035em; font-size: clamp(2.6rem, 9vw, 5.6rem); font-variation-settings: "opsz" 144; justify-self: center; }
.wordmark:hover { color: var(--ink); }
.wm-b { color: var(--green); font-weight: 800; font-style: normal; }
.wordmark--small { font-size: 2.2rem; justify-self: start; }
.ear { margin: 0; border: 1px solid var(--rule); padding: 6px 10px; display: inline-flex; flex-direction: column; line-height: 1.2; max-width: 150px; }
.ear-left { justify-self: start; }
.ear-right { justify-self: end; text-align: right; }
.ear-k { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ear-v { font-family: var(--f-display); font-weight: 700; font-size: .98rem; }
.motto { text-align: center; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); margin: 4px auto 12px; }

.primary-nav { position: relative; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); padding-block: 0; }
.primary-nav::before { content: ""; display: block; height: 0; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; }
.nav-list a { display: block; padding: 11px 14px; font-family: var(--f-label); font-weight: 600; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.nav-list li + li a { border-left: 1px solid var(--hair); }
.nav-list a:hover { color: var(--green); background: var(--paper-2); }
.nav-list a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--green); }
.nav-toggle { display: none; }

.ticker { background: var(--ink); color: var(--paper); }
.ticker-inner { display: flex; align-items: center; gap: 12px; padding-block: 7px; }
.ticker-text { margin: 0; font-family: var(--f-label); font-size: .86rem; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ticker a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(246,242,234,.4); }
.ticker a:hover { border-bottom-color: var(--paper); color: #fff; }
.ticker .sep { margin: 0 .6em; color: #8d867a; }
.live-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: 3px 8px 3px 7px; }
.live-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.live-tag--soft { background: var(--green); }
.live-tag--soft::before { animation: none; }
@keyframes pulse { 50% { opacity: .25; } }

@media (max-width: 860px) {
  .topbar-mid { display: none; }
  .ear { display: none; }
  .wordmark-row { grid-template-columns: 1fr; padding-top: 14px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin: 8px auto; background: none; border: 1px solid var(--rule); color: var(--ink);
    font-family: var(--f-label); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 14px; cursor: pointer;
  }
  .primary-nav { display: flex; flex-direction: column; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-list { display: none; flex-direction: column; border-top: 1px solid var(--hair); }
  .nav-list.is-open { display: flex; }
  .nav-list li + li a { border-left: 0; border-top: 1px solid var(--hair); }
  .nav-list a { padding: 13px 4px; text-align: center; }
  .no-js .nav-list { display: flex; }
}
@media (max-width: 520px) {
  .topbar { justify-content: center; }
  .topbar-right { display: none; }
  .motto { letter-spacing: .14em; font-size: .7rem; }
}

/* ---------- section rules ---------- */
.section-rule { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 3px double var(--rule); margin-top: 36px; padding-top: 8px; margin-bottom: 18px; }
.rule-h { font-size: .95rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.rule-note { margin: 0; font-family: var(--f-label); font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.rail-h { font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; border-top: 2px solid var(--rule); padding-top: 7px; margin-bottom: 14px; }
.rail-h a { text-decoration: none; }
.rail-h a:hover { color: var(--green); }

/* ---------- art panels (typographic "photographs") ---------- */
.art { margin: 0 0 14px; }
.art-panel, .art-photo {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-start;
  border: 1px solid var(--rule); object-fit: cover;
}
.art--sm .art-panel { aspect-ratio: 3 / 2; }
@media (min-width: 641px) { .art--lg .art-panel, .art--lg .art-photo { aspect-ratio: 21 / 9; } }
.art-panel::before { /* halftone field */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--dot) 0 32%, transparent 36%);
  background-size: var(--ds, 9px) var(--ds, 9px);
  -webkit-mask-image: radial-gradient(ellipse 120% 110% at 100% 0%, #000 0%, rgba(0,0,0,.65) 35%, transparent 75%);
          mask-image: radial-gradient(ellipse 120% 110% at 100% 0%, #000 0%, rgba(0,0,0,.65) 35%, transparent 75%);
}
.art-panel::after { /* registration rule */
  content: ""; position: absolute; left: 0; right: 0; top: 14%; height: 1px; background: currentColor; opacity: .25;
}
.art-num {
  position: relative; z-index: 1; font-family: var(--f-display); font-weight: 900; line-height: .8; letter-spacing: -0.05em;
  font-size: clamp(3rem, 11vw, 9rem); padding: 0 .08em .08em; font-variation-settings: "opsz" 144; white-space: nowrap;
}
.art--sm .art-num { font-size: clamp(2.6rem, 8vw, 4.4rem); }
.art--md .art-num { font-size: clamp(2.8rem, 9vw, 5.6rem); }
.art-mark { position: absolute; z-index: 1; top: 10px; left: 12px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.art--green { --dot: var(--green); background: var(--paper-2); color: var(--ink); }
.art--green .art-panel { background: var(--paper-2); }
.art--ink .art-panel { --dot: #4a453d; background: var(--ink); color: var(--paper); }
.art--paper .art-panel { --dot: #b7ab93; background: var(--paper); color: var(--green); --ds: 7px; }
.art--solid .art-panel { --dot: #23a06b; background: var(--green-deep); color: var(--paper); --ds: 11px; }
.art-cap { font-family: var(--f-label); font-size: .8rem; color: var(--muted); padding-top: 6px; border-bottom: 1px solid var(--hair); padding-bottom: 6px; line-height: 1.4; }
.art-cap strong { color: var(--ink); }

/* ---------- homepage ---------- */
.front { padding-top: 22px; }
.front-top { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--col-gap); }
.front-side { border-left: 1px solid var(--hair); padding-left: var(--col-gap); }
.lead-h { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 12px; font-variation-settings: "opsz" 144; }
.lead-h a { text-decoration: none; }
.lead-h a:hover { text-decoration: underline; text-decoration-thickness: 2px; color: inherit; }
.lead-h--sm { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.standfirst { font-size: 1.2rem; line-height: 1.45; color: var(--ink-2); margin-bottom: 10px; font-style: italic; }
.lead .meta { margin-bottom: 14px; }
.lead-cols { columns: 2 260px; column-gap: var(--col-gap); column-rule: 1px solid var(--hair); font-size: 1rem; }
.lead-cols p { break-inside: avoid-column; }

.dropcap::first-letter {
  float: left; font-family: var(--f-display); font-weight: 900; font-size: 4.1em; line-height: .78; padding: .08em .09em 0 0; color: var(--green);
}

.countdown { background: var(--ink); color: var(--paper); padding: 16px 18px 14px; margin-bottom: 24px; position: relative; }
.countdown::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(246,242,234,.25); pointer-events: none; }
.countdown-h { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #e8b4ae; margin-bottom: 6px; font-family: var(--f-label); }
.countdown-days { font-family: var(--f-display); font-weight: 900; font-size: 5.4rem; line-height: .9; margin: 0; letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 10px; }
.countdown-days small { font-family: var(--f-label); font-size: 1rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.countdown-clock { font-family: var(--f-label); font-variant-numeric: tabular-nums; font-size: 1.1rem; letter-spacing: .06em; margin: 6px 0 10px; border-top: 1px solid rgba(246,242,234,.25); border-bottom: 1px solid rgba(246,242,234,.25); padding: 4px 0; }
.countdown-sub { font-family: var(--f-label); font-size: .86rem; margin: 0 0 6px; line-height: 1.35; }
.countdown-sub.small { font-size: .76rem; color: #cfc8bb; margin: 0; }

.headline-list { list-style: none; }
.headline-list li { padding: 10px 0; border-top: 1px solid var(--hair); }
.headline-list li:first-child { border-top: 0; padding-top: 0; }
.headline-list h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.headline-list h3 a, .card-h a, .rel-item h3 a, .list-h a, .rail-lead h3 a { text-decoration: none; }
.headline-list h3 a:hover, .card-h a:hover, .rel-item h3 a:hover, .list-h a:hover, .rail-lead h3 a:hover { text-decoration: underline; color: inherit; }
.headline-list .kicker { font-size: .7rem; margin-bottom: 3px; }

/* economy numbers strip */
.numbers-list { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.numbers-list li + li { border-left: 1px solid var(--hair); }
.numbers-list a { display: flex; flex-direction: column; padding: 14px 14px 12px; text-decoration: none; height: 100%; }
.numbers-list a:hover { background: var(--paper-2); color: inherit; }
.num { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.4rem, 2.05vw, 2.05rem); overflow-wrap: anywhere; line-height: 1; color: var(--green); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.num-l { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-top: 8px; }
.num-s { font-size: .74rem; color: var(--muted); margin-top: 2px; line-height: 1.3; }

.front-second { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); margin-top: 28px; }
.front-second > .col + .col { border-left: 1px solid var(--hair); padding-left: var(--col-gap); }
.card { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--hair); }
.card:last-child { border-bottom: 0; margin-bottom: 0; }
.card-h { font-size: 1.45rem; font-weight: 800; line-height: 1.12; margin-bottom: 8px; }
.card--sm .card-h { font-size: 1.2rem; }
.card-sf { font-size: .97rem; line-height: 1.45; color: var(--ink-2); margin-bottom: 8px; }

.trail-box { background: var(--green-tint); padding: 16px 18px 18px; border-top: 4px solid var(--green); }
.front-second > .trail-box.col { padding-left: 18px; border-left: 0; }
.trail-flag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 4px; }
.trail-flag-date { font-family: var(--f-label); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
.trail-city { font-family: var(--f-display); font-weight: 900; font-size: 3.4rem; line-height: .95; letter-spacing: -0.03em; margin: 2px 0 8px; color: var(--green-deep); }
.trail-copy { font-size: .95rem; line-height: 1.45; }
.trail-copy [data-flag-countdown] { font-weight: 600; }
.trail-sub { font-family: var(--f-label); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 12px 0 6px; }
.rally-mini { list-style: none; margin-bottom: 12px; }
.rally-mini li { display: grid; grid-template-columns: 6.5em 1fr; gap: 0 10px; padding: 6px 0; border-top: 1px solid rgba(11,93,59,.25); font-size: .92rem; }
.rally-mini time { font-family: var(--f-label); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; grid-row: span 2; padding-top: 2px; }
.rally-mini .rr-city { font-weight: 600; }
.rally-mini .rr-state { font-family: var(--f-label); font-size: .76rem; color: var(--muted); }

.rails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
.rail + .rail { border-left: 1px solid var(--hair); padding-left: var(--col-gap); }
.rail-lead { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); }
.rail-lead h3 { font-size: 1.3rem; margin-bottom: 6px; }
.rail .headline-list { margin-bottom: 12px; }
.rail .headline-list li:first-child { padding-top: 0; }

.band { margin-top: 40px; border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0; }

/* ---------- maps ---------- */
.map-land { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.map-dot { fill: var(--hair); }
.map-halftone { stroke: none; }
.map-route { fill: none; stroke: var(--green); stroke-width: 1; stroke-dasharray: 3 4; opacity: .55; }
.stop circle { fill: var(--paper); stroke: var(--green); stroke-width: 2; }
.stop.is-past circle { fill: var(--muted); stroke: var(--muted); }
.stop.is-next circle { fill: var(--red); stroke: var(--red); }
.stop.is-up circle { fill: var(--green); stroke: var(--green); }
.stop--key circle { stroke-width: 2.5; }
.stop text { font-family: var(--f-label); font-size: 13px; font-weight: 700; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; letter-spacing: .04em; }
.mini-map { margin: 10px 0 4px; }
.mini-map .map-land { fill: #f3efe5; }
.inline-map { margin: 26px 0; padding: 14px; border: 1px solid var(--rule); background: var(--paper-2); }
.inline-map figcaption, .trail-figure figcaption { font-family: var(--f-label); font-size: .82rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.inline-map figcaption a { color: var(--green); }

/* ---------- article ---------- */
.story { padding-top: 22px; }
.story-head { max-width: 900px; margin: 0 auto 22px; text-align: center; }
.crumbs { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.story-title { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 900; line-height: 1.03; letter-spacing: -0.02em; margin-bottom: 16px; font-variation-settings: "opsz" 144; }
.story-head .standfirst { font-size: clamp(1.1rem, 2.2vw, 1.35rem); max-width: 760px; margin-inline: auto; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 9px 0; margin-top: 16px; }
.story > .art { max-width: 1080px; margin: 0 auto 26px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; max-width: 1080px; margin: 0 auto; }
.story-body { font-size: 1.14rem; line-height: 1.68; max-width: 680px; }
.story-body > p { margin-bottom: 1.05em; }
.story-body h2 { font-size: 1.5rem; margin: 1.5em 0 .5em; }
.story-body a { color: var(--green); }
.story-aside { border-left: 1px solid var(--hair); padding-left: 28px; }
.story-aside > section { margin-bottom: 28px; }
.pullquote { margin: 1.6em 0; padding: 18px 0 14px; border-top: 3px solid var(--green); border-bottom: 1px solid var(--rule); }
.pullquote p { font-family: var(--f-display); font-weight: 600; font-style: italic; font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 10px; color: var(--green-deep); }
.pullquote p::before { content: "\201C"; } .pullquote p::after { content: "\201D"; }
.pullquote footer { font-family: var(--f-label); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.factbox { background: var(--paper-2); border-top: 4px solid var(--ink); padding: 14px 18px 12px; margin: 1.5em 0; font-family: var(--f-label); }
.factbox h3 { font-family: var(--f-label); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.factbox ul { list-style: none; }
.factbox li { padding: 6px 0 6px 16px; border-top: 1px solid var(--hair); font-size: .95rem; line-height: 1.4; position: relative; }
.factbox li::before { content: ""; position: absolute; left: 0; top: .9em; width: 7px; height: 7px; background: var(--green); }
.sources { margin-top: 2.2em; border-top: 3px double var(--rule); padding-top: 12px; }
.sources h2 { font-family: var(--f-label); font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; }
.sources ol { padding-left: 1.4em; font-size: .95rem; line-height: 1.45; }
.sources li { margin-bottom: 8px; }
.src-outlet { font-family: var(--f-label); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; }
.sources-note { font-family: var(--f-label); font-size: .8rem; color: var(--muted); line-height: 1.45; margin-top: 12px; }
.end-share { margin-top: 22px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.share-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-right: 4px; }
.share-btn { font-family: var(--f-label); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 5px 10px; cursor: pointer; line-height: 1.2; }
.share-btn:hover { background: var(--ink); color: var(--paper); }
.rel-list { list-style: none; }
.rel-item { padding: 10px 0; border-top: 1px solid var(--hair); }
.rel-item:first-child { border-top: 0; padding-top: 0; }
.rel-item h3 { font-size: 1.08rem; line-height: 1.2; margin-bottom: 4px; }
.rel-item .kicker { font-size: .68rem; }
.aside-box { background: var(--ink); color: var(--paper); padding: 14px 16px; }
.aside-box .rail-h { border-top-color: var(--paper); }
.aside-box .meta-sm { color: #d4cdc0; }
.aside-box a { color: var(--paper); }
.aside-box .link-arrow { color: #b9dcc7; }
.aside-count { font-family: var(--f-display); font-weight: 900; font-size: 3.4rem; line-height: 1; margin: 0 0 6px; }
.aside-count small { font-family: var(--f-label); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }

/* ---------- section & listing pages ---------- */
.page-head { padding: 28px 0 18px; border-bottom: 1px solid var(--rule); margin-bottom: 26px; text-align: center; }
.page-title { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; font-variation-settings: "opsz" 144; }
.page-dek { font-size: 1.15rem; font-style: italic; color: var(--ink-2); max-width: 720px; margin: 0 auto; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--col-gap); }
.section-side { border-left: 1px solid var(--hair); padding-left: var(--col-gap); }
.section-side > section { margin-bottom: 26px; }
.section-lead { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 3px double var(--rule); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--col-gap); }
.card-grid .card:nth-child(even) { border-left: 1px solid var(--hair); padding-left: var(--col-gap); }
.card-grid .card { border-bottom: 1px solid var(--hair); margin-bottom: 18px; }

.finder { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.finder-label { font-family: var(--f-label); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.finder input[type="search"], select, .contact-form input, .contact-form textarea, .newsletter input {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fffdf8; border: 1px solid var(--ink); border-radius: 0; padding: 11px 12px; width: 100%;
}
.finder input[type="search"] { font-family: var(--f-display); font-size: 1.3rem; border-width: 0 0 2px; background: transparent; padding-left: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.result-count { font-size: .82rem; color: var(--muted); letter-spacing: .04em; border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 0; }
.story-list { list-style: none; }
.list-item { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: var(--col-gap); padding: 18px 0; border-bottom: 1px solid var(--hair); }
.list-date { font-family: var(--f-label); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding-top: 4px; border-right: 1px solid var(--hair); }
.list-h { font-size: 1.5rem; margin-bottom: 6px; }
.empty { padding: 30px 0; font-style: italic; }

/* ---------- campaign trail page ---------- */
.trail-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 26px; }
.trail-stats p { margin: 0; padding: 14px 16px; display: flex; flex-direction: column; }
.trail-stats p + p { border-left: 1px solid var(--hair); }
.trail-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--col-gap); align-items: start; }
.trail-figure { margin: 0; position: sticky; top: 12px; padding: 16px; background: var(--paper-2); border: 1px solid var(--rule); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.lg--past { background: var(--muted); } .lg--next { background: var(--red); } .lg--up { background: var(--green); }
.finder--inline { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.finder--inline select { width: auto; min-width: 160px; font-family: var(--f-label); font-size: .9rem; padding: 7px 10px; }
.trail-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.trail-table thead th { font-family: var(--f-label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-align: left; padding: 8px 8px 6px 0; border-bottom: 2px solid var(--rule); }
.trail-table td, .trail-table tbody th { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.trail-table .month-row th { font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; padding: 18px 0 6px; border-bottom: 1px solid var(--rule); }
.month-count { font-family: var(--f-label); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.t-date { font-family: var(--f-label); font-weight: 600; font-size: .84rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.t-city { font-weight: 600; }
.t-note { display: inline-block; font-family: var(--f-label); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--green); color: #fff; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.t-state { font-family: var(--f-label); color: var(--ink-2); font-size: .9rem; }
.pill { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--green); color: var(--green); white-space: nowrap; }
tr.is-past { color: var(--muted); }
tr.is-past .pill { border-color: var(--muted); color: var(--muted); }
tr.is-next { background: #f7e3df; }
tr.is-next .pill, tr.is-today .pill { background: var(--red); border-color: var(--red); color: #fff; }
tr.is-today { background: #f7e3df; }

/* ---------- prose pages ---------- */
.prose { font-size: 1.12rem; line-height: 1.7; }
.prose h2 { font-size: 1.6rem; margin: 1.4em 0 .5em; }
.prose a { color: var(--green); }
.rules { list-style: none; border-top: 1px solid var(--rule); }
.rules li { padding: 12px 0; border-bottom: 1px solid var(--hair); }
.sign { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; margin-top: 2em; border-top: 1px solid var(--rule); padding-top: 10px; }
.notice { border: 1px solid var(--ink); border-left: 6px solid var(--green); background: var(--paper-2); padding: 12px 16px; font-family: var(--f-label); font-size: .95rem; margin-bottom: 24px; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-label); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-form select { font-family: var(--f-body); }
.btn, .newsletter button { font-family: var(--f-label); font-weight: 700; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; background: var(--green); color: #fff; border: 1px solid var(--green); padding: 12px 22px; cursor: pointer; border-radius: 0; justify-self: start; }
.btn:hover, .newsletter button:hover { background: var(--green-deep); }
.form-msg { font-family: var(--f-label); font-weight: 600; margin: 0; min-height: 1.2em; }
.form-msg.is-ok { color: var(--green); }
.form-msg.is-err { color: var(--red); }
[aria-invalid="true"] { border-color: var(--red) !important; box-shadow: inset 0 0 0 1px var(--red); }

/* newsletter */
.newsletter { display: grid; gap: 6px; }
.newsletter-h { font-size: 1.6rem; font-weight: 900; }
.newsletter-p { margin: 0 0 6px; font-size: .98rem; color: var(--ink-2); }
.newsletter-row { display: flex; gap: 0; }
.newsletter-row input { min-width: 0; flex: 1; }
.newsletter-row button { flex: none; }
.form-note { font-size: .74rem; color: var(--muted); margin: 0; }
.newsletter--band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); column-gap: var(--col-gap); align-items: center; }
.newsletter--band .newsletter-h { font-size: clamp(1.8rem, 4vw, 2.6rem); grid-row: span 2; }
.newsletter--band .newsletter-h::after { content: "Delivered free. Unsubscribe any time."; display: block; font-family: var(--f-label); font-weight: 500; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.newsletter--band .newsletter-p { grid-column: 2; }
.newsletter--band .newsletter-row, .newsletter--band .form-note, .newsletter--band .form-msg { grid-column: 2; }
.newsletter--aside { background: var(--green-tint); padding: 14px 16px 16px; border-top: 4px solid var(--green); }
.newsletter--aside .newsletter-h, .newsletter--footer .newsletter-h { font-size: 1.3rem; }
.newsletter--aside .newsletter-row { flex-direction: column; gap: 8px; }
.newsletter--aside button { justify-self: stretch; }

/* 404 */
.notfound { text-align: center; padding-top: 30px; }
.nf-panel { position: relative; aspect-ratio: 5 / 2; max-width: 620px; margin: 0 auto 24px; background: var(--ink); color: var(--paper); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--rule); }
.nf-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, #4a453d 0 32%, transparent 36%); background-size: 9px 9px; -webkit-mask-image: linear-gradient(120deg, #000, transparent 70%); mask-image: linear-gradient(120deg, #000, transparent 70%); }
.nf-panel span { position: relative; font-family: var(--f-display); font-weight: 900; font-size: clamp(5rem, 20vw, 10rem); line-height: 1; letter-spacing: -0.05em; }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 18px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 56px; border-top: 3px double var(--rule); background: var(--paper-2); padding-top: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: var(--col-gap); }
.footer-grid > * + * { border-left: 1px solid var(--hair); padding-left: var(--col-gap); }
.footer-brand p { font-size: .95rem; color: var(--ink-2); margin-top: 10px; }
.footer-h { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 3px 0; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; border-top: 1px solid var(--rule); margin-top: 26px; padding-block: 12px 18px; font-family: var(--f-label); font-size: .8rem; color: var(--muted); }
.footer-base p { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .rails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail:nth-child(3) { border-left: 0; padding-left: 0; }
  .numbers-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .numbers-list li:nth-child(4) { border-left: 0; }
  .numbers-list li:nth-child(n+4) { border-top: 1px solid var(--hair); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .front-top, .section-grid, .story-grid, .trail-grid { grid-template-columns: minmax(0, 1fr); }
  .front-side, .section-side, .story-aside { border-left: 0; padding-left: 0; border-top: 3px double var(--rule); padding-top: 18px; }
  .front-second { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .front-second > .trail-box { grid-column: 1 / -1; }
  .trail-figure { position: static; }
  .story-body { max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .front-second, .rails, .card-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .front-second > .col + .col, .rail + .rail, .card-grid .card:nth-child(even), .footer-grid > * + * { border-left: 0; padding-left: 0; }
  .rail + .rail { border-top: 0; }
  .footer-grid > * + * { border-top: 1px solid var(--hair); padding-top: 18px; }
  .numbers-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers-list li { border-left: 0 !important; }
  .numbers-list li:nth-child(even) { border-left: 1px solid var(--hair) !important; }
  .numbers-list li:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .trail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trail-stats p:nth-child(3) { border-left: 0; }
  .trail-stats p:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .list-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .list-date { border-right: 0; }
  .newsletter--band { grid-template-columns: minmax(0, 1fr); }
  .newsletter--band .newsletter-h { grid-row: auto; }
  .newsletter--band > * { grid-column: 1 !important; }
  .newsletter-row { flex-direction: column; gap: 8px; }
  .story-head { text-align: left; }
  .story-meta { justify-content: flex-start; }
  .page-head { text-align: left; }
  .countdown-days { font-size: 4.4rem; }
  .story-body { font-size: 1.06rem; }
  .trail-table .t-state { display: none; }
  .finder--inline { flex-direction: column; align-items: stretch; }
  .finder--inline select { width: 100%; }
}
@media (max-width: 400px) {
  .lead-cols { columns: 1; }
  .trail-city { font-size: 2.6rem; }
  .ticker-text .sep ~ a:last-child, .ticker-text .sep:last-of-type { display: none; }
}

@media print {
  .masthead nav, .ticker, .share, .story-aside, .site-footer, .newsletter, .skip-link { display: none !important; }
  body { background: #fff; }
}

/* ==========================================================================
   Photographs (file photos, Wikimedia Commons) set inside the broadsheet frame
   ========================================================================== */
.ph { margin: 0 0 14px; }
.ph-frame { position: relative; overflow: hidden; border: 1px solid var(--rule); padding: 3px; background: var(--paper); }
.ph-frame::before { /* inner hairline, like a printed picture box */
  content: ""; position: absolute; inset: 3px; border: 1px solid rgba(21,19,15,.18); z-index: 1; pointer-events: none;
}
.ph-frame::after { /* halftone print screen, revealed on hover only */
  content: ""; position: absolute; inset: 3px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background-image: radial-gradient(circle, rgba(21,19,15,.55) 0 28%, transparent 34%); background-size: 4px 4px; mix-blend-mode: multiply;
}
.ph-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); filter: saturate(.92) contrast(1.02); transition: filter .35s ease; }
.ph--sm .ph-img { aspect-ratio: 3 / 2; }
.ph--lead .ph-img { aspect-ratio: 16 / 10; }
@media (min-width: 641px) { .ph--lg .ph-img { aspect-ratio: 21 / 9; } }
.card:hover .ph-frame::after, .rail-lead:hover .ph-frame::after, .lead:hover .ph-frame::after, .section-lead:hover .ph-frame::after { opacity: .22; }
.card:hover .ph-img, .rail-lead:hover .ph-img, .lead:hover .ph-img, .section-lead:hover .ph-img { filter: grayscale(.85) contrast(1.15); }
.ph-cap { font-family: var(--f-label); font-size: .78rem; line-height: 1.4; color: var(--muted); padding: 6px 0 7px; border-bottom: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; }
.ph-what { color: var(--ink-2); }
.ph-what strong, .ph-cap > strong, .list-credit strong { color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .92em; }
.ph-credit { color: var(--muted); text-decoration: none; letter-spacing: .02em; }
.ph-credit:hover { color: var(--green); text-decoration: underline; }
.ph--sm .ph-cap { font-size: .7rem; justify-content: flex-start; gap: 0 6px; }
.story > .ph { max-width: 1080px; margin: 0 auto 26px; }
.rail-lead .ph { margin-bottom: 10px; }

/* key-figure halftone panel in article sidebar */
.keyfig-box .art { margin: 0; }
.keyfig-box .art-panel { aspect-ratio: 4 / 3; }
.keyfig-box .art-num { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.keyfig-box { margin-bottom: 28px; }

/* all-stories thumbnails */
.list-item { grid-template-columns: 8em minmax(0, 1fr) 220px; }
.list-thumb { border: 1px solid var(--rule); padding: 3px; align-self: start; }
.list-thumb .ph-img { aspect-ratio: 3 / 2; }
.list-credit { font-family: var(--f-label); font-size: .72rem; color: var(--muted); margin: 4px 0 0; }
@media (max-width: 900px) { .list-item { grid-template-columns: 7em minmax(0, 1fr) 160px; } }
@media (max-width: 640px) {
  .list-item { grid-template-columns: minmax(0, 1fr) 104px; gap: 4px 14px; }
  .list-date { grid-column: 1 / -1; }
  .list-thumb { grid-column: 2; grid-row: 2; padding: 2px; }
  .list-thumb .ph-img { aspect-ratio: 1 / 1; }
  .list-h { font-size: 1.2rem; }
  .ph-cap { font-size: .72rem; }
}

/* about: photo credits */
.photo-credits { margin-top: 1.2em; }
.pc-list { padding-left: 1.4em; font-size: .95rem; line-height: 1.45; }
.pc-list li { padding: 10px 0; border-bottom: 1px solid var(--hair); }
.pc-list p { margin: 0; }
.pc-title { font-weight: 600; }
.pc-meta, .pc-use { font-family: var(--f-label); font-size: .82rem; color: var(--muted); }
.pc-use a, .pc-meta a { color: var(--green); }

/* portrait photo on the front-page lead: set beside the text columns */
.lead .ph--portrait { float: left; width: 40%; margin: 4px var(--col-gap) 12px 0; }
.lead .ph--portrait .ph-img { aspect-ratio: 4 / 5; }
.lead .ph--portrait .ph-cap { display: block; }
.lead .ph--portrait .ph-credit { display: block; margin-top: 2px; }
.lead .ph--portrait + .lead-cols { columns: 1; column-rule: 0; }
.lead::after { content: ""; display: table; clear: both; }
@media (max-width: 560px) {
  .lead .ph--portrait { float: none; width: 100%; margin-right: 0; }
  .lead .ph--portrait .ph-img { aspect-ratio: 1 / 1; }
}
