/* March for Peace + Democracy — site styles
   Palette pulled from the poster: linocut red, ink black, paper white. */

@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bowlby One"; src: url("../fonts/bowlby-one.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --red: #d84030;          /* poster red — backgrounds, large type */
  --red-deep: #c23422;     /* buttons with white text (5.5:1) */
  --red-text: #b02d1c;     /* red text on paper (6:1) */
  --ink: #121010;
  --ink-2: #2a2524;
  --paper: #f8f3ea;
  --paper-2: #efe7da;
  --white: #ffffff;
  --muted: #5a524e;
  --line: #d9cfc1;
  --on-dark-muted: #c9bfb8;

  --display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Atkinson", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 10px;
  --shadow: 0 1px 0 rgba(0,0,0,.06), 0 10px 30px -12px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.1875rem;      /* 19px — generous for all ages */
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red-text); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 4px solid #1a6dff; outline-offset: 3px; border-radius: 4px; }
strong, b { font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .4em; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 7.5vw, 5.4rem); letter-spacing: -.01em; text-transform: uppercase; }
h2 { font-family: var(--head); font-weight: 900; font-size: clamp(1.9rem, 4.6vw, 3rem); text-transform: uppercase; letter-spacing: -.015em; }
h3 { font-family: var(--head); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-family: var(--head); font-weight: 800; font-size: 1.15rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }
.lead { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.5; }
.eyebrow { font-family: var(--head); font-weight: 800; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem; display: block; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--ink); padding: .75rem 1rem; font-weight: 700; border-radius: 6px; }
.skip:focus { top: 1rem; }

/* ─── Header ─────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); border-bottom: 4px solid var(--red); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--white); text-decoration: none; font-family: var(--display); font-size: 1.05rem; line-height: 1; text-transform: uppercase; }
.brand-mark { width: 2.25rem; height: 2.25rem; flex: none; }
.brand small { display: block; font-family: var(--head); font-weight: 800; font-size: .72rem; letter-spacing: .14em; color: var(--on-dark-muted); margin-top: .3rem; }
.nav-toggle { display: none; font: 800 1rem/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--white); background: transparent; border: 2px solid var(--white); border-radius: 8px; padding: .7rem 1rem; min-height: 3rem; cursor: pointer; }
.nav-toggle[aria-expanded="true"] { background: var(--white); color: var(--ink); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav li { margin: 0; }
.site-nav a { display: block; white-space: nowrap; color: var(--white); text-decoration: none; font: 800 1rem/1 var(--head); letter-spacing: .02em; padding: .8rem .85rem; border-radius: 8px; }
.site-nav a:hover { background: var(--ink-2); }
.site-nav a[aria-current="page"] { background: var(--red-deep); }
.site-nav .nav-cta { background: var(--white); color: var(--ink); margin-left: .4rem; }
.site-nav .nav-cta:hover { background: var(--paper-2); }

@media (max-width: 68rem) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 4px solid var(--red); padding: .5rem var(--gutter) 1.25rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .site-nav a { font-size: 1.2rem; padding: 1rem; }
  .site-nav .nav-cta { margin: .5rem 0 0; text-align: center; }
}

/* Day-of alert banner (driven by /status.json) */
.alert { background: #ffd23f; color: var(--ink); border-bottom: 3px solid var(--ink); font-weight: 700; }
.alert .wrap { padding-block: .85rem; display: flex; gap: .75rem; align-items: flex-start; }
.alert-tag { font: 900 .8rem/1.9 var(--head); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: #ffd23f; padding: 0 .55rem; border-radius: 4px; flex: none; }
.alert.urgent { background: var(--red); color: var(--white); }
.alert.urgent .alert-tag { color: var(--red); background: var(--white); }
.alert[hidden] { display: none; }

/* ─── Buttons ────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.4rem; padding: .85rem 1.4rem; border-radius: 999px; font: 800 1.08rem/1.15 var(--head); letter-spacing: .01em; text-decoration: none; border: 3px solid transparent; cursor: pointer; text-align: center; transition: transform .12s ease, background-color .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red-deep); color: var(--white); }
.btn-red:hover { background: #a92b1b; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--paper-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ─── Sections ───────────────────────────────────────── */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.bg-red { background: var(--red); color: var(--white); }
.bg-red a:not(.btn) { color: var(--white); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-ink a:not(.btn) { color: #ff8a7a; }
.bg-ink .muted, .bg-ink .source { color: var(--on-dark-muted); }
.bg-paper2 { background: var(--paper-2); }
.section-head { max-width: 48rem; margin-bottom: 2.5rem; }
.section-head p { font-size: 1.25rem; }

/* Linocut paper grain on red areas */
.grain { position: relative; isolation: isolate; }
.grain::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Skyline strip from the poster — sits on top of ink sections */
.skyline { background: var(--ink); line-height: 0; }
.skyline img { width: 100%; height: clamp(110px, 18vw, 260px); object-fit: cover; object-position: center bottom; }

/* ─── Hero ───────────────────────────────────────────── */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.25rem; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.hero h1 .plus { color: var(--ink); }
.hero-when { font: 900 clamp(1.35rem, 2.6vw, 1.8rem)/1.25 var(--head); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 1.1rem; }
.hero-when span { display: block; }
.hero .lead { max-width: 34rem; margin-bottom: 1.75rem; }
.poster-frame { position: relative; transform: rotate(2.2deg); max-width: 26rem; margin-inline: auto; }
.poster-frame img { border: 10px solid var(--white); box-shadow: 0 30px 50px -20px rgba(0,0,0,.55); background: var(--ink); }
.poster-frame::before, .poster-frame::after { content: ""; position: absolute; width: 7rem; height: 1.9rem; background: rgba(255,245,225,.78); box-shadow: 0 1px 2px rgba(0,0,0,.15); z-index: 2; }
.poster-frame::before { top: -.75rem; left: -1.5rem; transform: rotate(-32deg); }
.poster-frame::after { top: -.75rem; right: -1.5rem; transform: rotate(30deg); }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .poster-frame { max-width: 19rem; transform: rotate(1.5deg); }
}

/* Countdown */
.countdown { display: flex; gap: .6rem; margin: 0 0 2rem; flex-wrap: wrap; }
.countdown[hidden] { display: none; }
.cd-unit { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: .6rem .9rem .55rem; min-width: 5.2rem; text-align: center; }
.cd-num { display: block; font: 900 2.1rem/1 var(--head); font-variant-numeric: tabular-nums; }
.cd-label { display: block; font: 800 .75rem/1.4 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: .25rem; }
.cd-live { font: 900 1.4rem/1.3 var(--head); text-transform: uppercase; background: var(--ink); color: #ffd23f; display: inline-block; padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 2rem; }

/* ─── Key facts strip ────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.fact { padding: 1.4rem 1.4rem 1.5rem; border-right: 3px solid var(--ink); }
.fact:last-child { border-right: 0; }
.fact .eyebrow { color: var(--red-text); margin-bottom: .4rem; font-size: .85rem; }
.fact p { margin: 0; font-size: 1.1rem; line-height: 1.45; }
.fact strong { display: block; font: 800 1.25rem/1.25 var(--head); margin-bottom: .2rem; }
@media (max-width: 60rem) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 3px solid var(--ink); } }
@media (max-width: 34rem) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 3px solid var(--ink); } .fact:last-child { border-bottom: 0; } }

/* ─── Demands ────────────────────────────────────────── */
.demands { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); counter-reset: demand; }
.demand { position: relative; background: var(--white); border-radius: var(--radius); padding: 4.25rem 1.6rem 1.75rem; box-shadow: var(--shadow); border-top: 8px solid var(--red); }
.demand::before { counter-increment: demand; content: counter(demand); position: absolute; top: -1.9rem; left: 1.4rem; width: 4rem; height: 4rem; border-radius: 50%; background: var(--ink); color: var(--white); font: 400 2rem/4rem var(--display); text-align: center; }
.demand h3 { font-size: 1.5rem; text-transform: uppercase; }
.demand p:last-child { margin-bottom: 0; }
@media (max-width: 56rem) { .demands { grid-template-columns: 1fr; gap: 2.75rem; } }

/* ─── Cards ──────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); gap: 1.25rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4rem; }
.card p { flex: 1; }
.card .btn { align-self: flex-start; }
.card-link { text-decoration: none; color: inherit; transition: transform .12s ease; }
.card-link:hover { transform: translateY(-3px); }
.card-link .go { font: 800 1rem/1 var(--head); color: var(--red-text); margin-top: .5rem; }
.icon-circle { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; margin-bottom: 1rem; flex: none; }
.icon-circle svg { width: 1.7rem; height: 1.7rem; }

/* ─── Big numbers / tallies ──────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.stat { border-radius: var(--radius); padding: 1.5rem 1.5rem 1.35rem; background: var(--ink-2); color: var(--white); display: flex; flex-direction: column; }
.stat-light { background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.stat-red { background: var(--red); color: var(--white); }
.stat-num { font: 900 clamp(2.2rem, 5vw, 3.2rem)/1 var(--head); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-bottom: .55rem; }
.stat-label { font-weight: 700; font-size: 1.1rem; line-height: 1.35; margin-bottom: .6rem; }
.stat .source { font-size: .88rem; line-height: 1.4; margin-top: auto; color: var(--on-dark-muted); }
.stat-light .source { color: var(--muted); }
.stat-red .source { color: #ffe3de; }
.stat .source a { color: inherit; }
.stat-wide { grid-column: 1 / -1; }
.ticker { font-size: clamp(2.4rem, 7.5vw, 5rem); color: #ffd23f; }
.ticker-sub { font-size: 1.1rem; margin-bottom: .9rem; }
.ticker-sub strong { color: #ffd23f; font-family: var(--head); font-weight: 900; font-variant-numeric: tabular-nums; }

.region-title { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 4px solid currentColor; padding-bottom: .6rem; margin-bottom: 1.75rem; }
.region-title h2 { margin: 0; }
.region-title .since { font: 800 1rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

.note { border-left: 6px solid var(--red); background: var(--white); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin-block: 1.5rem; }
.bg-ink .note { background: var(--ink-2); }
.note p:last-child { margin: 0; }

/* ─── Schedule / timeline ────────────────────────────── */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 5px solid var(--red); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -.8rem; top: .3rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 3px var(--red); }
.timeline li:last-child { padding-bottom: 0; }
.timeline .time { font: 900 1.35rem/1.2 var(--head); display: block; }
.timeline h3 { font-size: 1.25rem; margin: .15rem 0 .3rem; }
.timeline p { margin: 0; }

.tba { display: inline-block; font: 800 .75rem/1.6 var(--head); letter-spacing: .1em; text-transform: uppercase; background: #ffd23f; color: var(--ink); padding: 0 .5rem; border-radius: 4px; vertical-align: .2em; margin-left: .35rem; }

/* ─── Two-column layout helpers ──────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.split-wide { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 52rem) { .split, .split-wide { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2.1rem; margin-bottom: .75rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .25rem; width: 1.35rem; height: 1.35rem; border-radius: 4px; background: var(--red) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center/80% no-repeat; }
.xlist li::before { background: var(--ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'><path d='M7 7l10 10M17 7L7 17'/></svg>") center/72% no-repeat; }

.panel { background: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow); }
.panel h3:first-child, .panel h2:first-child { margin-top: 0; }
.panel + .panel { margin-top: 1.25rem; }

/* ─── Route map ──────────────────────────────────────── */
.map-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 3px solid var(--ink); }
.map-card svg { width: 100%; height: auto; }
.map-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1rem 1.25rem; border-top: 3px solid var(--ink); font-size: 1rem; }
.map-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.lg { width: 1.1rem; height: 1.1rem; border-radius: 50%; display: inline-block; flex: none; }
.lg-start { background: var(--red); }
.lg-end { background: var(--ink); }
.lg-metro { background: #fff; border: 3px solid var(--ink); border-radius: 3px; }
.lg-route { width: 2rem; height: 6px; border-radius: 3px; background: var(--red); }
.map-svg text { font-family: var(--head); }

/* Station list */
.stations { list-style: none; padding: 0; margin: 0; }
.stations li { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.stations li:last-child { border-bottom: 0; }
.m-badge { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 6px; background: var(--ink); color: var(--white); font: 900 1.3rem/2.4rem var(--head); text-align: center; }
.line-dots { display: inline-flex; gap: .25rem; vertical-align: middle; margin-left: .35rem; }
.line-dots i { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.25); }
.l-or { background: #ed8b00; } .l-bl { background: #0076a8; } .l-sv { background: #919d9d; } .l-rd { background: #bf0d3e; } .l-gr { background: #00b140; } .l-yl { background: #ffd100; }

/* ─── FAQ ────────────────────────────────────────────── */
.faq details { background: var(--white); border-radius: var(--radius); margin-bottom: .75rem; box-shadow: 0 1px 0 rgba(0,0,0,.06); border: 2px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3.25rem 1.15rem 1.3rem; font: 800 1.15rem/1.35 var(--head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: var(--white); font: 900 1.4rem/2rem var(--head); text-align: center; }
.faq details[open] summary::after { content: "–"; background: var(--red-deep); }
.faq details > div { padding: 0 1.3rem 1.2rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ─── Lineup ─────────────────────────────────────────── */
.lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.5rem; }
.person { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.person-photo { aspect-ratio: 1 / 1; background: var(--red); display: grid; place-items: center; position: relative; overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.person-photo svg { width: 55%; color: var(--white); opacity: .95; }
.person-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.person-role { font: 800 .8rem/1.3 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--red-text); margin-bottom: .35rem; }
.person h3 { margin-bottom: .5rem; font-size: 1.35rem; }
.person p { font-size: 1.02rem; margin-bottom: .75rem; }
.person .time-slot { margin-top: auto; font: 800 .95rem/1.3 var(--head); color: var(--muted); }
.person.tbd .person-photo { background: var(--ink-2); }
.person.tbd h3 { color: var(--muted); }

.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-tabs button { font: 800 1rem/1 var(--head); padding: .85rem 1.25rem; min-height: 3rem; border-radius: 999px; border: 3px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.filter-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* ─── Take action ────────────────────────────────────── */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; margin-bottom: 1.1rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--red-deep); color: var(--white); font: 900 1.1rem/2.2rem var(--head); text-align: center; }

.lookup { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); }
.lookup label { font: 800 1.2rem/1.3 var(--head); display: block; margin-bottom: .6rem; }
.lookup select { font: 700 1.2rem/1.2 var(--body); width: 100%; max-width: 26rem; min-height: 3.4rem; padding: .6rem 1rem; border-radius: 8px; border: 3px solid var(--white); background: var(--white); color: var(--ink); }
.lookup-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .9rem; margin-top: 1.4rem; }
.lookup-results[hidden] { display: none; }
.lookup-results a { display: block; background: var(--ink-2); color: var(--white); text-decoration: none; border-radius: 8px; padding: 1rem 1.1rem; border: 2px solid #3d3634; }
.lookup-results a:hover { border-color: var(--red); }
.lookup-results a strong { display: block; font: 800 1.1rem/1.3 var(--head); margin-bottom: .2rem; }
.lookup-results a span { font-size: .98rem; color: var(--on-dark-muted); }

.script { background: var(--white); border: 3px dashed var(--ink); border-radius: var(--radius); padding: 1.4rem 1.5rem; font-size: 1.15rem; position: relative; }
.script p:last-of-type { margin-bottom: 1rem; }
.phone-big { font: 900 clamp(1.8rem, 5vw, 2.6rem)/1.1 var(--head); color: var(--ink); text-decoration: none; display: inline-block; }

/* Share */
.share { display: flex; flex-wrap: wrap; gap: .6rem; }
.copied { font-weight: 700; margin-left: .5rem; }

/* ─── Sources list ───────────────────────────────────── */
.sources { font-size: 1rem; }
.sources li { margin-bottom: .7rem; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--white); padding-block: 3rem 2.5rem; font-size: 1.02rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-size: 1.05rem; letter-spacing: .1em; margin-bottom: .8rem; color: var(--on-dark-muted); }
.footer-grid ul { list-style: none; padding: 0; }
.footer-brand { font-family: var(--display); font-size: 1.6rem; line-height: 1.05; text-transform: uppercase; margin-bottom: .75rem; }
.footer-brand .plus { color: var(--red); }
.footer-bottom { border-top: 1px solid #3a3331; margin-top: 2.25rem; padding-top: 1.5rem; color: var(--on-dark-muted); font-size: .95rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 52rem) { .footer-grid { grid-template-columns: 1fr; } }

/* Page hero (interior pages) */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.page-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); margin-bottom: .75rem; }
.page-hero .lead { max-width: 44rem; margin: 0; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.jump a { font: 800 1rem/1 var(--head); color: var(--white); border: 2px solid rgba(255,255,255,.8); border-radius: 999px; padding: .75rem 1rem; text-decoration: none; }
.jump a:hover { background: rgba(255,255,255,.14); }

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

/* Print — a clean one-pager for the day */
@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header, .site-nav, .nav-toggle, .skip, .skyline, .site-footer, .btn, .btn-row, .jump, .alert, .no-print, .filter-tabs, .share { display: none !important; }
  .bg-red, .bg-ink, .bg-paper2 { background: #fff !important; color: #000 !important; }
  .section, .page-hero { padding-block: 1rem; }
  .panel, .card, .stat, .map-card, .faq details { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .faq details > div { display: block; }
  a { color: #000; }
  h1 { font-size: 28pt; }
}

/* ─── Utilities (no inline styles: the CSP forbids them) ─ */
.eb-red { color: var(--red-text); }
.eb-salmon { color: #ff8a7a; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 3rem; }

/* Route map: scrolls sideways on phones so labels stay readable */
.map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.map-hint { margin-top: .75rem; }
@media (max-width: 44rem) {
  .map-scroll svg { width: 44rem; max-width: none; }
}
@media (min-width: 44.01rem) { .map-hint { display: none; } }

@media (max-width: 26rem) { .brand small { display: none; } }

/* White cards and notes sitting on red sections keep ink text and red links */
.bg-red .stat-light, .bg-red .note { color: var(--ink); }
.bg-red .stat-light a, .bg-red .note a { color: var(--red-text); }
.bg-red .note .source { color: var(--muted); }
.bg-red .note { border-left-color: var(--ink); }
