/* =========================================================
   The News Reporter - public site styles.
   Mobile-first, self-hosted fonts, no framework, no external requests.
   All text/background pairs meet WCAG AA in light and dark themes.
   ========================================================= */
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/sourceserif4-normal-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/sourceserif4-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-normal-latin.woff2") format("woff2"); }

:root {
  --green: #0a4d34;
  --green-mid: #1f7a52;
  --green-dark: #063322;
  --green-tint: #e7f1eb;
  --red: #c01f2f;
  --red-tint: #fdecec;
  --amber: #7a4d00;
  --amber-tint: #fff4d6;
  --blue: #1d4f91;
  --blue-tint: #e8effa;
  --ink: #14181a;
  --ink-soft: #2e3532;
  --muted: #59625d;
  --line: #e3e5e1;
  --paper: #fbfaf6;
  --card: #ffffff;
  --focus: #f2b705;
  --on-green: #ffffff;
  --on-red: #ffffff;
  --bar: #0a4d34;
  --shadow: 0 1px 2px rgba(20, 24, 26, .06), 0 4px 16px rgba(20, 24, 26, .06);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
  --wrap: 1200px;
  /* category accents (text-safe on white) */
  --c0: #0b6b47; --c1: #b42318; --c2: #9a3412; --c3: #1d4ed8; --c4: #6d28d9; --c5: #0f766e; --c6: #8a5a00; --c7: #be185d;
  --cat: var(--green-mid);
}
@media (prefers-color-scheme: dark) {
  :root {
    --green: #5cc497; --green-mid: #5cc497; --green-dark: #8fdcb9; --green-tint: #12291f;
    --red: #ff8a80; --red-tint: #3a1715; --amber: #f7c766; --amber-tint: #33270d; --blue: #9cc0f5; --blue-tint: #172338;
    --ink: #eceeec; --ink-soft: #cfd5d1; --muted: #a6afaa; --line: #2b322e; --paper: #111413; --card: #181c1a;
    --on-green: #06130c; --on-red: #1f0503; --bar: #0a3a28;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --c0: #5cc497; --c1: #ff8a80; --c2: #fdba74; --c3: #93c5fd; --c4: #c4b5fd; --c5: #5eead4; --c6: #fcd34d; --c7: #f9a8d4;
  }
}
.cat-0 { --cat: var(--c0); } .cat-1 { --cat: var(--c1); } .cat-2 { --cat: var(--c2); } .cat-3 { --cat: var(--c3); }
.cat-4 { --cat: var(--c4); } .cat-5 { --cat: var(--c5); } .cat-6 { --cat: var(--c6); } .cat-7 { --cat: var(--c7); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 720px) { .wrap { padding: 0 1.5rem; } }
.narrow { max-width: 780px; }
.small { font-size: .875rem; }
.icon { display: inline-block; vertical-align: -.15em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 50; }
.skip-link:focus { left: 0; }
main:focus { outline: none; }
.muted-note { color: var(--muted); }

/* ---------- Header ---------- */
.topbar { background: var(--bar); color: #fff; font-size: .8125rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 34px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-links { display: flex; gap: 1.1rem; align-items: center; }
.topbar-links a:not(.tip-link) { display: none; }
.tip-link { font-weight: 600 !important; display: inline-flex; gap: .35rem; align-items: center; }
@media (min-width: 720px) { .topbar-links a:not(.tip-link) { display: inline; } }
.site-header { background: var(--card); }
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 44px; height: 44px; flex: none; }
.brand-name { display: block; font: 700 1.55rem/1.05 var(--serif); letter-spacing: -.02em; }
.brand-tagline { display: block; font-size: .78rem; color: var(--muted); margin-top: .2rem; }
@media (min-width: 720px) { .brand-logo { width: 52px; height: 52px; } .brand-name { font-size: 2.1rem; } .brand-tagline { font-size: .85rem; } }
.search-form { display: flex; flex: 1 1 240px; max-width: 380px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search-form:focus-within { border-color: var(--green-mid); box-shadow: 0 0 0 3px var(--green-tint); }
.search-form input { flex: 1; min-width: 0; padding: .6rem 1rem; border: 0; font: inherit; background: transparent; color: var(--ink); }
.search-form input:focus { outline: none; }
.search-form button { padding: 0 1rem; border: 0; background: var(--green); color: var(--on-green); cursor: pointer; display: flex; align-items: center; }
.search-form button .icon { width: 18px; height: 18px; }
.main-nav { position: sticky; top: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(20, 24, 26, .04); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav a { display: block; padding: .8rem .6rem; white-space: nowrap; text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .88rem; border-bottom: 3px solid transparent; }
@media (min-width: 1000px) { .main-nav a { padding: .85rem .5rem; font-size: .84rem; } .main-nav li:first-child a { padding-left: 0; } }
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cat, var(--green-mid)); }
@media (min-width: 1000px) {
  .main-nav ul { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Badges, kickers, meta ---------- */
.kicker { margin: 0 0 .45rem; font-size: .75rem; display: flex; flex-wrap: wrap; gap: .35rem .45rem; align-items: center; }
.kicker-cat { color: var(--cat); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.kicker-cat:hover { color: var(--cat); text-decoration: underline; }
.badge { display: inline-block; font: 700 .66rem/1.5 var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: .12rem .45rem; border-radius: 4px; }
.badge-breaking { background: var(--red); color: var(--on-red); }
.badge-developing, .badge-label.badge-developing { background: var(--amber-tint); color: var(--amber); box-shadow: inset 0 0 0 1px currentColor; }
.badge-label { background: var(--blue-tint); color: var(--blue); box-shadow: inset 0 0 0 1px currentColor; }
.badge-confirmed { background: var(--green-tint); color: var(--green-mid); }
.badge-allegation, .badge-unverified { background: var(--amber-tint); color: var(--amber); }
.meta { color: var(--muted); font-size: .8rem; margin: 0; }
.meta a { color: var(--muted); text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.meta-sep { margin: 0 .25rem; }

/* ---------- Cards ---------- */
.card { position: relative; display: grid; gap: .8rem; align-content: start; }
.card-title { font-size: 1.2rem; line-height: 1.22; margin: 0 0 .4rem; }
.card-title a { color: var(--ink); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .2s; }
.card-title a:hover { color: var(--ink); background-size: 100% 1px; }
.card-summary { color: var(--ink-soft); font-size: .95rem; margin-bottom: .5rem; }
.card-media { text-decoration: none; display: block; overflow: hidden; border-radius: var(--radius); background: var(--line); aspect-ratio: 16 / 10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.03); }

.card-hero .card-title { font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; }
.card-hero .card-summary { font-size: 1.08rem; }
.card-hero .card-media { aspect-ratio: 16 / 9; }

.card-row { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.card-row:last-child { border-bottom: 0; }
@media (min-width: 640px) {
  .card-row { grid-template-columns: 260px minmax(0, 1fr); gap: 1.25rem; }
  .card-row .card-title { font-size: 1.35rem; }
}
.card-mini { grid-template-columns: minmax(0, 1fr) 96px; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.card-mini:last-child { border-bottom: 0; }
/* Stories without an image: text-only cards with a category-coloured rule, never a placeholder picture */
.card.no-media { grid-template-columns: minmax(0, 1fr); }
.card-normal.no-media, .card-hero.no-media { border-top: 3px solid var(--cat, var(--green-mid)); padding-top: .9rem; }
.card-hero.no-media .card-title { font-size: clamp(1.8rem, 4.8vw, 2.8rem); }
.card-mini .card-media { order: 2; aspect-ratio: 1; border-radius: 8px; }
.card-mini .card-title { font-size: 1.02rem; }
.card-compact { padding: .7rem 0; border-bottom: 1px solid var(--line); gap: .2rem; }
.card-compact:last-child { border-bottom: 0; }
.card-compact .card-title { font-size: 1rem; }

/* ---------- Breaking bar ---------- */
.breaking-bar { background: var(--red-tint); border-bottom: 1px solid var(--line); }
.breaking-inner { display: flex; gap: .9rem; align-items: flex-start; padding-top: .7rem; padding-bottom: .7rem; }
.breaking-label { flex: none; margin: .1rem 0 0; display: inline-flex; gap: .4rem; align-items: center; font: 700 .72rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: .08em; background: var(--red); color: var(--on-red); padding: .15rem .6rem; border-radius: 4px; }
.breaking-bar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.breaking-bar a { color: var(--ink); font-weight: 600; text-decoration: none; }
.breaking-bar a:hover { text-decoration: underline; }
.breaking-bar time { color: var(--muted); font-size: .8rem; margin-left: .35rem; }
.pulse { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Home ---------- */
.top-stories { display: grid; gap: 1.75rem; padding: 1.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.rail-title, .box-head h2, .section-head h2 { font: 700 .8rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.rail-title { padding-bottom: .55rem; border-bottom: 3px solid var(--ink); margin-bottom: .2rem; }
.home-grid { display: grid; gap: 2rem; padding: 2rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 3px solid var(--cat, var(--ink)); padding-top: .65rem; margin-bottom: 1.1rem; }
.section-head h2 { margin: 0; font-size: .85rem; }
.section-head h2 a { color: var(--ink); text-decoration: none; }
.section-block .section-head h2 a { color: var(--cat); }
.more { font-size: .82rem; font-weight: 600; text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; color: var(--green-mid); }
.more:hover { text-decoration: underline; }
.card-grid { display: grid; gap: 1.75rem 1.5rem; grid-template-columns: minmax(0, 1fr); }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .3rem; }
.box-head h2 { margin: 0; display: inline-flex; gap: .45rem; align-items: center; }
.box-head a { font-size: .82rem; font-weight: 600; }
.box-dark { background: #14201b; border-color: #14201b; color: #e9efe9; }
.box-dark .box-head h2, .box-dark .card-title a, .box-dark .card-title a:hover { color: #fff; }
.box-dark .box-head a { color: #9fe0bf; }
.box-dark .pulse { color: #ff8a80; }
.box-dark .meta, .box-dark .meta a { color: #b9c4bd; }
.box-dark .card-compact { border-color: #2a3a33; }
.box-dark .kicker-cat { color: #9fe0bf; }
.box-dark .badge-breaking { background: #ff8a80; color: #1f0503; }
.box-dark .badge-developing, .box-dark .badge-label { background: transparent; color: #f7c766; }
.tip-box { background: var(--green); border-color: var(--green); color: var(--on-green); }
.tip-box h2 { font-size: 1.3rem; color: var(--on-green); }
.tip-box > .icon { width: 28px; height: 28px; margin-bottom: .5rem; }
.tip-box .button { background: var(--on-green); color: var(--green); border-color: var(--on-green); }
.tip-box .button:hover { background: var(--green-tint); color: var(--green-dark); }
.chip-list { list-style: none; margin: .4rem 0 .5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; gap: .4rem; align-items: center; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .85rem; }
.chip:hover { border-color: var(--green-mid); color: var(--ink); }
.chip-active { background: var(--green); border-color: var(--green); color: var(--on-green); }
.chip-count { font-size: .72rem; background: var(--green-tint); color: var(--green-mid); border-radius: 999px; padding: 0 .45rem; font-weight: 700; }
.section-block { padding: 1.25rem 0 1.5rem; }
.section-layout { display: grid; gap: .5rem 2rem; }
.section-layout .card-row { border-bottom: 0; padding-top: 0; }
.more-link { margin-top: 1.5rem; }
.empty-home { text-align: center; padding: 4rem 1rem 5rem; max-width: 560px; margin: 0 auto; }
.empty-home h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.empty-home p { color: var(--ink-soft); }
.empty-kicker { font: 700 .75rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--green-mid) !important; }
.empty-state { padding: 2rem 0; color: var(--muted); }

@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .top-stories { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 2.5rem; }
  .home-grid { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 2.5rem; }
  .section-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .section-layout.single { grid-template-columns: minmax(0, 1fr); }
  .home-aside { position: sticky; top: 4.5rem; align-self: start; }
}

/* ---------- Buttons ---------- */
.button { display: inline-flex; gap: .4rem; align-items: center; padding: .65rem 1.2rem; background: var(--green); color: var(--on-green); border: 1px solid var(--green); border-radius: 999px; font: 600 .92rem/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--on-green); }
.button-ghost { background: transparent; color: var(--green-mid); border-color: currentColor; }
.button-ghost:hover { background: var(--green-tint); color: var(--green-dark); border-color: currentColor; }

/* ---------- Listings / breadcrumbs / pagination ---------- */
.page-head { padding: 1.75rem 0 1rem; border-bottom: 3px solid var(--cat, var(--ink)); margin-bottom: .5rem; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.page-num { font: 400 1rem var(--sans); color: var(--muted); }
.intro { color: var(--ink-soft); max-width: 70ch; font-size: 1.05rem; }
.small-h { font: 700 .75rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .45rem; }
.sub-nav { padding: 1rem 0 .5rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .8rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; padding: 2rem 0; }
.pagination ul { list-style: none; display: flex; gap: .3rem; margin: 0; padding: 0; }
.pagination a, .pagination span { display: inline-block; min-width: 2.5rem; padding: .45rem .7rem; text-align: center; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--card); color: var(--ink); }
.pagination a:hover { border-color: var(--green-mid); }
.pagination [aria-current="page"] { background: var(--green); color: var(--on-green); border-color: var(--green); }
.result-count { color: var(--muted); }
.search-big label { display: block; font-weight: 600; margin-bottom: .4rem; }
.search-row { display: flex; gap: .5rem; max-width: 600px; }
.search-row input { flex: 1; min-width: 0; padding: .7rem 1rem; border: 1px solid #8a948d; border-radius: 999px; font: inherit; background: var(--card); color: var(--ink); }

/* ---------- Article ---------- */
.preview-banner { background: var(--amber-tint); color: var(--amber); padding: .6rem 1rem; text-align: center; font-weight: 600; border-bottom: 1px solid currentColor; }
.article-layout { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
.article { max-width: 740px; min-width: 0; }
.article-head { padding: 1rem 0 1.25rem; }
.article-head .kicker { font-size: .8rem; }
.article-head h1 { font-size: clamp(2rem, 5.5vw, 3.05rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: .9rem; }
.dek { font: 400 1.25rem/1.5 var(--serif); color: var(--ink-soft); margin-bottom: 1.2rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .45rem 1.25rem; font-size: .85rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .7rem 0; }
.article-meta > span { display: inline-flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.article-meta .updated { color: var(--amber); }
.article-meta > .location { display: inline; }
.article-meta > .location .icon { margin-right: .35rem; vertical-align: -.15em; }
.corrections { background: var(--amber-tint); border-left: 4px solid var(--amber); padding: .85rem 1.1rem; margin: 0 0 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; }
.corrections h2 { font: 700 .9rem var(--sans); margin-bottom: .35rem; }
.corrections ul { margin: 0; padding-left: 1.1rem; }
.corrections ul.single { list-style: none; padding-left: 0; }
.lead-figure, .gallery figure { margin: 0 0 1.75rem; }
.lead-figure img, .gallery img { width: 100%; border-radius: var(--radius); background: var(--line); }
figcaption { font-size: .85rem; color: var(--muted); padding: .5rem 0; border-bottom: 1px solid var(--line); }
.credit { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-left: .25rem; }
.prose { font: 400 1.16rem/1.75 var(--serif); color: var(--ink); }
.article-body > p:first-child::first-letter { float: left; font: 700 3.4em/.85 var(--serif); margin: .08em .1em 0 0; color: var(--cat, var(--green-mid)); }
.prose h2 { font-size: 1.55rem; margin: 2.2rem 0 .7rem; }
.prose h3 { font-size: 1.25rem; margin: 1.8rem 0 .5rem; }
.prose blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--cat, var(--green-mid)); font-size: 1.3rem; line-height: 1.5; font-style: italic; color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2rem 0; }
.prose a { color: var(--green-mid); }
.sources, .share { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 2rem; }
.sources h2 { font: 700 .8rem var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.sources ul { padding-left: 1.1rem; margin: 0; }
.share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.share a, .share button { display: inline-flex; gap: .4rem; align-items: center; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font: 600 .85rem var(--sans); color: var(--ink); background: var(--card); cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--green-mid); color: var(--ink); }
.share .share-wa { background: #0b6b47; border-color: #0b6b47; color: #fff; }
.share .share-wa:hover { background: #07533a; color: #fff; }
.standards-note { color: var(--muted); margin-top: 1.75rem; font-size: .88rem; }
.timeline h2 { margin-bottom: .9rem; }
.timeline ol { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--green-mid); }
.timeline li { position: relative; padding: 0 0 1rem .6rem; }
.timeline li::before { content: ""; position: absolute; left: -1.45rem; top: .4rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--card); border: 2px solid var(--green-mid); }
.timeline li.current::before { background: var(--green-mid); }
.timeline time { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.timeline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.timeline a:hover { text-decoration: underline; }
.timeline .current span[aria-current] { font-weight: 700; }
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 740px) minmax(0, 1fr); gap: 3.5rem; }
  .article-aside { padding-top: 3.25rem; position: sticky; top: 4rem; align-self: start; }
}

/* ---------- Incidents overview ---------- */
.period-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0; }
.zones { display: grid; gap: 1.25rem; margin: 1.25rem 0 2rem; }
.zone { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.zone h2 { font: 700 .82rem var(--sans); text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid var(--ink); padding-bottom: .45rem; }
.state-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.state-table th, .state-table td { padding: .4rem .35rem; border-bottom: 1px solid var(--line); text-align: left; }
.state-table tr:last-child th, .state-table tr:last-child td { border-bottom: 0; }
.state-table th a { color: var(--ink); text-decoration: none; }
.state-table th a:hover { text-decoration: underline; }
.state-table td:nth-child(2) { text-align: right; width: 3.5rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar-cell { width: 40%; }
.bar { display: block; height: .5rem; background: linear-gradient(90deg, var(--green-mid), var(--red)); border-radius: 999px; min-width: 0; }
.bar-0 { width: 0; } .bar-10 { width: 10%; } .bar-20 { width: 20%; } .bar-30 { width: 30%; } .bar-40 { width: 40%; }
.bar-50 { width: 50%; } .bar-60 { width: 60%; } .bar-70 { width: 70%; } .bar-80 { width: 80%; } .bar-90 { width: 90%; } .bar-100 { width: 100%; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: .5rem; }
@media (min-width: 720px) { .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Forms (tip, install) ---------- */
.notice { background: var(--green-tint); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1.5rem; }
.notice ul { margin: 0; padding-left: 1.1rem; }
.form { margin: 1rem 0 2rem; }
.field { margin-bottom: 1.1rem; }
.field label, fieldset legend { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=date], .field select, .field textarea, .field input[type=file] {
  width: 100%; padding: .65rem .75rem; border: 1px solid #8a948d; border-radius: 8px; font: inherit; background: var(--card); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green-mid); outline-offset: 1px; border-color: var(--green-mid); }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin: 0 0 1.1rem; background: var(--card); }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; }
.checkbox input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--green-mid); }
.checkbox label { font-weight: 400; }
.help { font-size: .85rem; color: var(--muted); margin: .35rem 0 0; }
.req { font-weight: 400; font-size: .8rem; color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: .8rem 1rem; border-radius: 8px; margin: 1rem 0; }
.flash ul { margin: .25rem 0 0; padding-left: 1.1rem; }
.flash-error { background: var(--red-tint); color: var(--red); box-shadow: inset 0 0 0 1px currentColor; }
.flash-success { background: var(--green-tint); color: var(--green-mid); }
.flash-info { background: var(--blue-tint); color: var(--blue); }

/* ---------- Static pages / errors ---------- */
.static-page { padding: 2rem 0 2.5rem; }
.static-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 1.25rem; }
.error-page { padding: 4rem 1rem; text-align: center; }
.error-code { font: 700 4.5rem/1 var(--serif); color: var(--green-mid); margin: 0 0 .5rem; }
.error-page .button { margin-right: .75rem; }
.debug { white-space: pre-wrap; text-align: left; font-size: .75rem; background: var(--card); padding: 1rem; overflow: auto; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 3rem; background: #0e1512; color: #d3dbd6; padding: 2.75rem 0 1.25rem; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand { font: 700 1.5rem var(--serif); color: #fff; margin-bottom: .5rem; }
.footer-mission { color: #d3dbd6; max-width: 42ch; }
.footer-h { font: 700 .75rem var(--sans); text-transform: uppercase; letter-spacing: .1em; color: #9fb0a7; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.copyright { border-top: 1px solid #26302b; margin-top: 2rem; padding-top: 1.1rem; color: #9fb0a7; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- Pre-launch gate ---------- */
.preview-strip { background: #3b2a00; color: #fff3d6; font-size: .85rem; padding: .45rem 0; }
.preview-strip .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.preview-strip .inline-form { display: inline; margin: 0; }
.preview-strip button { background: transparent; color: #fff; border: 1px solid #fff3d6; border-radius: 999px; padding: .1rem .75rem; font: inherit; cursor: pointer; }
.gate-body { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(31, 122, 82, .18), transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(192, 31, 47, .10), transparent 60%), var(--paper); }
.gate { width: 100%; max-width: 460px; }
.gate-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 2rem 1.6rem; box-shadow: 0 10px 40px rgba(10, 30, 20, .12); }
.gate-card h1 { font-size: 1.6rem; }
.gate-brand { display: flex; align-items: center; gap: .6rem; font: 700 1.15rem var(--serif); margin-bottom: 1.25rem; }
.gate-brand .brand-mark { display: inline-block; height: 30px; width: 30px; border-radius: 7px; background: linear-gradient(90deg, #1f8a5b 0 33%, #fff 33% 66%, #1f8a5b 66%); box-shadow: inset 0 0 0 2px #0a4d34; }
.code-input { font: 600 1.3rem/1.2 ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.gate .button { width: 100%; justify-content: center; }
.gate-request { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: .9rem; }
.gate-request summary { cursor: pointer; font-weight: 600; color: var(--green-mid); }
.gate-staff { margin: 1.25rem 0 0; text-align: center; }

/* ---------- First-run setup page ---------- */
.setup-page { padding: 2rem 1rem 3rem; }
.setup-page fieldset legend { font-family: var(--serif); font-size: 1.1rem; }
.setup-checks { list-style: none; padding: 0; columns: 2; font-size: .9rem; color: var(--muted); }
.setup-page .field input:not([type=checkbox]) { width: 100%; padding: .65rem .75rem; border: 1px solid #8a948d; border-radius: 8px; font: inherit; background: var(--card); color: var(--ink); }

@media print {
  .main-nav, .search-form, .topbar, .share, .article-aside, .site-footer, .breaking-bar, .preview-strip { display: none !important; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Incident archive ---------- */
.archive-year { font: 700 2rem/1 var(--serif); color: var(--green-mid); margin: 2rem 0 .25rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.incident-date { font-weight: 600; color: var(--ink-soft); }

/* Tile variations so image-less stories in the same section don't look identical */
