/*
 * New Jersey Money Trail · Turnpike wayfinding
 * Producer: hand-authored for newjerseymoneytrail from the approved boards
 * (NJ-Home, NJ-Race; October 11, 2026). Generic road-sign language only: green
 * guide signs with a reflective white border, yellow number tabs, an overhead
 * gantry, mile markers for numbered sections and dashed lane lines. No highway
 * authority logos, route shields or official symbols.
 * Overpass (signs) · Atkinson Hyperlegible (reading) · Overpass Mono (labels).
 */

:root {
  --concrete: #F1F1EC;
  --band: #E4E6E1;
  --asphalt: #1E2326;
  --asphalt-2: #2A3034;
  --green: #0E5C3A;
  --green-dark: #0A4A2E;
  --yellow: #F2C230;
  --white: #FFFFFF;
  --steel: #5E676B;
  --muted: #4A5257;
  --mist: #D5DADC;
  --gantry: #8C969B;
  --on-green: #CFE3D8;
  --support: #1F4E8C;
  --oppose: #A14A00;
  --sign: "Overpass", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Atkinson Hyperlegible", Verdana, "Segoe UI", sans-serif;
  --mono: "Overpass Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gut: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --border: 3px solid var(--asphalt);
  --reflect: inset 0 0 0 4px var(--green), inset 0 0 0 7px var(--white);
  --reflect-sm: inset 0 0 0 2px var(--green), inset 0 0 0 4px var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--asphalt);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }

a { color: var(--green); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--asphalt); }
h1, h2, h3 { margin: 0; font-family: var(--sign); font-weight: 900; line-height: 1.02; overflow-wrap: break-word; }
p, ul, ol, dl, dd, figure { margin: 0; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--asphalt); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .guide-sign:focus-visible { outline-color: var(--yellow); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 16px; background: var(--yellow); color: var(--asphalt);
  font-family: var(--sign); font-weight: 800; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; color: var(--asphalt); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- Header: the brand is a guide sign ---------- */
.site-header { background: var(--asphalt); color: var(--white); }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-width: 0;
  padding: 10px 18px 10px 14px;
  background: var(--green); color: var(--white); text-decoration: none;
  border-radius: 10px; box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px var(--white);
}
.brand:hover { color: var(--white); background: var(--green-dark); box-shadow: inset 0 0 0 3px var(--green-dark), inset 0 0 0 5px var(--white); }
.brand svg { width: 28px; height: 28px; }
.brand__name { display: flex; flex-direction: column; line-height: 1; font-family: var(--sign); }
.brand__state { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.brand__trail { margin-top: 4px; font-size: 26px; font-weight: 800; }

.menu-button {
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 4px; background: var(--yellow); color: var(--asphalt);
  font-family: var(--sign); font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.menu-button[aria-expanded="true"] { background: var(--white); }

#site-nav { min-width: 0; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--sign); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.nav a {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
  color: var(--white); text-decoration: none; font-weight: 700;
}
.nav a:hover { color: var(--yellow); text-decoration: underline; text-decoration-color: var(--yellow); }
.nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--yellow); }
.nav__cta a { margin-left: 6px; padding: 0 16px; background: var(--yellow); color: var(--asphalt); border-radius: 4px; font-weight: 800; }
.nav__cta a:hover { background: var(--white); color: var(--asphalt); text-decoration: none; }
@media (max-width: 767px) {
  .brand { padding: 8px 14px 8px 12px; }
  .brand__trail { font-size: 22px; }
  #site-nav { flex: 1 1 100%; }
  .nav { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--muted); }
  .nav a { border-bottom: 1px solid var(--muted); padding: 0 4px; }
  .nav__cta a { margin: 10px 0 2px; justify-content: center; border-bottom: 0; }
}

/* ---------- Shared bits ---------- */
.kicker { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.on-dark .kicker { color: var(--yellow); }
.section { padding-block: clamp(36px, 5vw, 52px); }
.section--band { background: var(--band); border-block: 3px solid var(--asphalt); }
.section--white { background: var(--white); }
.section-head { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.section-head__text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.section-title { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); line-height: 1; }
.prose { max-width: 60ch; }

/* Mile markers number the sections (decorative). */
.mile {
  flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 44px; height: 64px; background: var(--green); color: var(--white); border-radius: 4px;
  box-shadow: var(--reflect-sm); font-family: var(--sign); line-height: 1;
}
.mile span { font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.mile b { margin-top: 2px; font-size: 24px; font-weight: 900; }
@media (max-width: 479px) { .mile { width: 38px; height: 56px; } .mile b { font-size: 20px; } .section-head { gap: 12px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 6px;
  background: var(--green); color: var(--white);
  font-family: var(--sign); font-size: 16px; font-weight: 800; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn:hover { background: var(--asphalt); color: var(--white); }

/* Lane line divider (decorative): asphalt with a dashed yellow centre line. */
.lane { display: flex; align-items: center; height: 40px; background: var(--asphalt-2); border-top: 4px solid var(--white); }
.lane--both { border-bottom: 4px solid var(--white); }
.lane::before { content: ""; display: block; width: 100%; height: 5px; background: repeating-linear-gradient(90deg, var(--yellow) 0 48px, transparent 48px 84px); }

/* Yellow warning diamond beside the certified-ballot reminder. */
.caution { display: flex; align-items: flex-start; gap: 12px; max-width: 72ch; font-size: 16px; line-height: 1.55; }
.caution svg { width: 30px; height: 30px; }

/* ---------- Supports / opposes (data colours, never brand colours) ---------- */
.readkey { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 15px; line-height: 1.45; }
.pos {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  font-family: var(--sign); font-size: 15px; font-weight: 800; line-height: 1.2; white-space: nowrap;
}
.pos--support { background: var(--support); color: var(--white); }
.pos--oppose { gap: 8px; padding: 2px 8px; border: 2px solid var(--oppose); background: var(--white); color: var(--oppose); }
.pos__hatch { width: 16px; height: 12px; background: repeating-linear-gradient(135deg, var(--oppose) 0 3px, var(--white) 3px 6px); }

/* ---------- Homepage hero: the overhead gantry ---------- */
.hero { background: var(--asphalt); color: var(--white); }
.hero__inner { display: flex; flex-direction: column; gap: 22px; padding-block: clamp(28px, 4vw, 56px) clamp(32px, 4vw, 56px); }
.hero__title { max-width: 16ch; font-size: clamp(2.5rem, 1.2rem + 4.8vw, 5.8rem); line-height: 0.96; letter-spacing: -0.02em; text-wrap: balance; }
.hero__dek { max-width: 46ch; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--mist); }
.gantry { margin-top: 12px; }
.gantry__beam { height: 16px; background: repeating-linear-gradient(135deg, var(--gantry) 0 3px, transparent 3px 14px); border-block: 3px solid var(--gantry); }
.gantry__signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 20px; padding: 0 12px; list-style: none; margin: 0; }
.gantry__signs > li { display: flex; flex-direction: column; min-width: 0; }
.gantry__signs > li::before {
  content: ""; display: block; height: 16px; margin: 0 22%;
  background: linear-gradient(90deg, var(--gantry) 0 6px, transparent 6px calc(100% - 6px), var(--gantry) calc(100% - 6px));
}
.guide-sign {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 128px; padding: 20px 24px;
  background: var(--green); color: var(--white); text-decoration: none;
  border-radius: 10px; box-shadow: var(--reflect); font-family: var(--sign);
}
.guide-sign:hover { color: var(--white); background: var(--green-dark); box-shadow: inset 0 0 0 4px var(--green-dark), inset 0 0 0 7px var(--white); }
.guide-sign svg { width: 44px; height: 44px; }
.guide-sign__text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.guide-sign__over { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.guide-sign__name { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); font-weight: 900; line-height: 1; }
.tab { display: inline-block; padding: 2px 8px; background: var(--yellow); color: var(--asphalt); border-radius: 3px; font-family: var(--sign); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 639px) {
  .guide-sign { min-height: 96px; padding: 16px 20px; }
  .guide-sign svg { width: 36px; height: 36px; }
}

/* ---------- Find your district ---------- */
.finder-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 56px; }
.finder-row > .section-head { flex: 1 1 360px; }
.finder {
  flex: 1.3 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px;
  padding: 22px 24px 24px; background: var(--white); border: var(--border); border-radius: 10px;
}
@media (max-width: 479px) { .finder { flex-basis: 100%; padding: 18px 16px 20px; } }
.finder__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.finder__field { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field-label { font-family: var(--sign); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.finder__combo { position: relative; }
.finder__form input {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: var(--border); border-radius: 6px; background: var(--white); color: var(--asphalt);
  font: inherit; font-size: 17px;
}
.finder__form input::placeholder { color: var(--muted); opacity: 1; }
.finder__form .btn { flex: 0 1 auto; min-height: 50px; }
@media (max-width: 479px) { .finder__form .btn { flex: 1 1 100%; } }
.finder__note { font-size: 14px; line-height: 1.55; color: var(--muted); }
.finder__suggestions {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 0; list-style: none;
  max-height: 18rem; overflow-y: auto; background: var(--white); color: var(--asphalt);
  border: var(--border); border-radius: 6px; box-shadow: 0 8px 20px rgb(30 35 38 / 0.18);
}
.finder__option { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 16px; line-height: 1.35; cursor: pointer; }
.finder__option + .finder__option { border-top: 1px solid var(--mist); }
.finder__option:hover, .finder__option[aria-selected="true"] { background: var(--green); color: var(--white); }

/* ---------- Race navigator: a sign for every race ---------- */
.navigator { display: flex; flex-direction: column; gap: 22px; }
.senate-sign {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
  padding: 18px 24px; background: var(--green); color: var(--white); text-decoration: none;
  border-radius: 10px; box-shadow: var(--reflect); font-family: var(--sign);
}
.senate-sign:hover { color: var(--white); background: var(--green-dark); box-shadow: inset 0 0 0 4px var(--green-dark), inset 0 0 0 7px var(--white); }
.senate-sign__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.senate-sign__over { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.senate-sign__name { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 900; line-height: 1.05; }
.senate-sign__go { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.senate-sign__go svg { width: 32px; height: 32px; }
.districts-head { font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.district-signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(168px, 100%), 1fr)); gap: 10px; list-style: none; margin: 10px 0 0; padding: 0; font-family: var(--sign); }
@media (max-width: 479px) { .district-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.district-sign {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px 8px 8px;
  background: var(--green); color: var(--white); text-decoration: none;
  border-radius: 8px; box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px var(--white);
  font-size: 17px; font-weight: 800;
}
.district-sign:hover { color: var(--white); background: var(--green-dark); box-shadow: inset 0 0 0 3px var(--green-dark), inset 0 0 0 5px var(--white); }
.district-sign__num {
  order: -1; display: flex; align-items: center; justify-content: center; min-width: 46px; height: 44px;
  background: var(--yellow); color: var(--asphalt); border-radius: 4px; font-size: 24px; font-weight: 900;
}
.district-sign__arrow { margin-left: auto; font-size: 20px; font-weight: 900; }
@media (max-width: 479px) { .district-sign { gap: 10px; padding-right: 10px; font-size: 16px; } .district-sign__num { min-width: 40px; } }

/* ---------- Spotlight and race card rows: evidence card with news beside it ---------- */
.spotlight-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; }
.spotlight-head > .section-head { flex: 1 1 480px; }
.spotlight-head__side { flex: 0 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.spotlight-title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem); line-height: 1; }
.card-row { display: grid; gap: 40px; margin-top: 28px; align-items: start; }
.card-row > * { min-width: 0; }
@media (min-width: 1100px) { .card-row { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); } }

/* ---------- Evidence cards ---------- */
.evidence { display: flex; flex-direction: column; min-width: 0; background: var(--white); border: var(--border); border-radius: 10px; overflow: hidden; }
.evidence__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 16px;
  background: var(--asphalt); color: var(--white);
  font-family: var(--sign); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}
.evidence__source { color: var(--yellow); }
.evidence__frame { position: relative; background: var(--white); }
.evidence__frame iframe { display: block; width: 100%; border: 0; }
.evidence__frame.is-clamped { max-height: var(--clamp); overflow: hidden; }
.evidence__frame.is-clamped::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 96px; pointer-events: none;
  background: linear-gradient(rgb(255 255 255 / 0), #FFFFFF);
}
.evidence__status { display: none; font-size: 15px; line-height: 1.5; }
.evidence[data-state="pending"] .evidence__status,
.js .evidence[data-state="loading"] .evidence__status,
.js .evidence[data-state="slow"] .evidence__status { display: block; }
.js .evidence[data-state="loading"] .evidence__frame {
  min-height: 320px;
  background: repeating-linear-gradient(135deg, var(--white) 0 18px, var(--concrete) 18px 36px);
}
.js .evidence[data-state="loading"] .evidence__status,
.js .evidence[data-state="slow"] .evidence__status {
  position: absolute; top: 16px; left: 16px; right: 16px; z-index: 1;
  padding: 10px 12px; background: var(--white); border: var(--border); border-radius: 6px;
}
.js .evidence[data-state="slow"] .evidence__status { border-color: var(--oppose); }
.evidence[data-state="pending"] .evidence__frame { min-height: 180px; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--concrete); }
.evidence__fallback { padding: 12px 16px; border-top: var(--border); font-size: 15px; line-height: 1.5; }
.evidence__expand {
  display: block; width: 100%; min-height: 50px; border: 0; border-top: var(--border);
  background: var(--yellow); color: var(--asphalt);
  font-family: var(--sign); font-size: 15px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
}
.evidence__expand:hover { background: var(--white); }
.evidence__expand:focus-visible { outline-offset: -6px; }

/* ---------- News (launch/news.js) ---------- */
.news-band { min-width: 0; }
.news-column { display: flex; flex-direction: column; gap: 16px; }
.news-column__head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 4px solid var(--asphalt); }
.news-column__title { font-size: clamp(1.7rem, 1.4rem + 0.9vw, 2.2rem); line-height: 1.02; }
.has-ico .ico { color: var(--green); }
.news-note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.news-band .news-list { --news-scrim: 30 35 38; --news-on-scrim: #FFFFFF; --news-radius: 6px; --news-thumb: clamp(5.5rem, 26%, 92px); display: grid; gap: 14px; }
.news-band .news-item { background: var(--white); border: 2px solid var(--asphalt); border-radius: 8px; padding: 14px; }
.news-band .news-item__meta { margin: 0 0 6px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--muted); }
.news-band .news-item__title { font-family: var(--sign); font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.news-band .news-item__title a { color: var(--asphalt); }
.news-band .news-item__title a:hover { color: var(--green); }
.news-band .news-item--lead .news-item__title { font-size: 1.5rem; line-height: 1.12; }
.news-band .news-item--text.news-item--lead { border-top: 8px solid var(--green); }
/* launch/news.css loads after this file: card overrides carry [data-news-list] to win. */
.news-band [data-news-list] .news-item__photo { margin: -14px -14px 12px; border-radius: 6px 6px 0 0; border-bottom: 2px solid var(--asphalt); background: var(--band); }
.news-band [data-news-list] .news-item--overlay { padding: 0; border-width: 3px; }
.news-band [data-news-list] .news-item--overlay .news-item__photo { margin: 0; border: 0; border-radius: 0; }
.news-band [data-news-list] .news-item--overlay .news-item__meta { color: var(--mist); }
.news-band [data-news-columns="1"] > .news-item--photo:not(.news-item--overlay) .news-item__photo { margin: 0; border: 0; border-radius: 4px; }
.news-band .news-search__label, .news-band .news-filter__label { font-family: var(--sign); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.news-band .news-search__input, .news-band .news-filter__select, .news-band .news-search__clear {
  min-height: 46px; border: var(--border); border-radius: 6px; background-color: var(--white); color: var(--asphalt); font-family: var(--text);
}
.news-band .news-search__input { font-size: 17px; }
.news-band .news-filter__select { font-size: 16px; }
.news-band .news-feed-link { color: var(--asphalt); }
.news-band .news-feed-link--text { font-family: var(--sign); font-size: 15px; font-weight: 800; color: var(--green); }
.news-band .news-feed-status { font-size: 15px; color: var(--muted); }
.news-band .news-feed-retry, .news-band .news-pager__button {
  min-height: 44px; padding: 0 16px; border: var(--border); border-radius: 6px; background: var(--white); color: var(--asphalt);
  font-family: var(--sign); font-size: 15px; font-weight: 800;
}
.news-band .news-pager__button:disabled { color: var(--steel); }
.news-band .news-pager__range { font-family: var(--sign); font-size: 15px; font-weight: 700; }
.news-column .news-summary { font-size: 15px; line-height: 1.5; }
.news-column .news-summary__more { margin-left: 4px; font-weight: 700; }
.news-column .news-summary__more::after { content: " ↓" / ""; }
/* Beside the card: one story per row; under it on a tablet, two. */
.news-column .news-list.news-list--column { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) and (max-width: 1099px) { .news-column .news-list.news-list--column { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.more-news { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 700px) { .more-news .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .more-news .news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* ---------- Plain language ---------- */
.plain { display: flex; flex-direction: column; gap: 28px; }
.plain__title { max-width: 28ch; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.05; }
.plain__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.plain__cell { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; background: var(--white); border: var(--border); border-radius: 10px; min-width: 0; }
.plain__cell .kicker { font-size: 13px; }
.plain__cell h3 { display: flex; align-items: center; gap: 2px; font-size: 1.5rem; }
.plain__cell .ico { width: 28px; height: 28px; color: var(--asphalt); }
.plain__roles { font-size: 16px; line-height: 1.55; }

/* Vendored icons (Tabler, MIT): drawn heavy with square caps like guide-sign arrows. */
.ico { stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- Footer ---------- */
.site-footer { background: var(--asphalt); color: var(--white); }
.site-footer::before { content: ""; display: block; height: 12px; background: repeating-linear-gradient(90deg, var(--yellow) 0 48px, var(--asphalt) 48px 84px); border-bottom: 3px solid var(--white); }
.site-footer__inner { display: flex; flex-direction: column; gap: 30px; padding-block: 44px 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 30px 48px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
  background: var(--green); border-radius: 8px; box-shadow: var(--reflect-sm);
  font-family: var(--sign); font-size: 20px; font-weight: 800; line-height: 1.2;
}
.footer-brand svg { width: 22px; height: 22px; }
.footer-attrib, .site-footer h2 { font-family: var(--sign); font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.footer-indep { font-size: 15px; line-height: 1.55; color: var(--mist); }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.site-footer a { color: var(--white); font-weight: 400; }
.site-footer a:hover { color: var(--yellow); }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--muted); font-size: 14px; line-height: 1.55; color: var(--mist); }
.footer-dates a { color: var(--yellow); }
.site-footer .legal-links { gap: 4px 18px; }
.site-footer .legal-links > probo-settings-link:not(:defined) { display: none; }
.site-footer .legal-links > a, .site-footer .legal-links > probo-settings-link:defined { color: var(--white); }
.site-footer .legal-links > probo-settings-link:defined:hover { color: var(--yellow); }

/* ---------- Race page ---------- */
.race-hero { background: var(--asphalt); color: var(--white); }
.race-hero__inner { display: flex; flex-direction: column; gap: 18px; padding-block: 12px 32px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; list-style: none; margin: 0; padding: 0; font-family: var(--sign); font-size: 14px; font-weight: 700; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--gantry); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); font-weight: 700; }
.crumbs a:hover { color: var(--yellow); }
.crumbs [aria-current="page"] { color: var(--yellow); }
.race-sign {
  display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 3vw, 34px);
  background: var(--green); border-radius: 14px; box-shadow: inset 0 0 0 5px var(--green), inset 0 0 0 9px var(--white);
}
.race-sign__tab { align-self: flex-start; padding: 4px 12px; background: var(--yellow); color: var(--asphalt); border-radius: 4px; font-family: var(--mono); font-size: 16px; font-weight: 500; }
.race-sign h1 { max-width: 18ch; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.4rem); line-height: 0.98; letter-spacing: -0.015em; text-wrap: balance; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0; font-family: var(--sign); }
.facts dt { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-green); }
.facts dd { margin: 2px 0 0; font-size: 19px; font-weight: 800; }
.race-sign__context { font-size: 17px; color: #E6F0EA; }
.race-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.race-nav h2 { font-size: 15px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }
.race-chip-senate {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--green); color: var(--white); border-radius: 6px; box-shadow: var(--reflect-sm);
  font-family: var(--sign); font-size: 16px; font-weight: 800; text-decoration: none;
}
.race-chip-senate svg { width: 18px; height: 18px; }
.race-chip-senate:hover { color: var(--white); background: var(--green-dark); }
.race-chip-senate[aria-current="page"] { background: var(--white); color: var(--green); box-shadow: 0 0 0 3px var(--yellow); }
.race-chip-senate[aria-current="page"] svg path { stroke: var(--green); }
.race-chips { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; font-family: var(--sign); font-size: 18px; font-weight: 900; }
.race-chips a { display: flex; align-items: center; justify-content: center; min-height: 44px; background: var(--yellow); color: var(--asphalt); border-radius: 4px; text-decoration: none; font-weight: 900; }
.race-chips a:hover { background: var(--white); }
.race-chips a[aria-current="page"] { background: var(--white); color: var(--green); box-shadow: 0 0 0 3px var(--yellow); }
@media (max-width: 479px) { .race-chips { flex-basis: 100%; grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.race-card-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 40px; }
.race-card-head > .section-head { flex: 1 1 460px; }
.race-card-title { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1.02; }
.plain-words { max-width: 760px; margin-top: 22px; background: var(--white); border: var(--border); border-radius: 8px; }
.plain-words summary {
  display: flex; align-items: center; min-height: 44px; padding: 0 16px; cursor: pointer;
  font-family: var(--sign); font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green);
}
.plain-words summary:focus-visible { outline-offset: -5px; }
.plain-words__body { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; font-size: 17px; }
.race-card .card-row { margin-top: 22px; }
.race-links__inner { display: flex; gap: 18px; align-items: flex-start; }
.race-links__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 17px; line-height: 1.6; }
.race-links .launch-note { margin: 0; max-width: 90ch; font-size: 17px; }
.race-links .race-resources a { display: inline; min-height: 0; padding-block: 6px; line-height: 1.9; }
.race-links .race-pager { gap: 0 18px; font-family: var(--sign); font-weight: 800; }
.race-links .race-pager > span { display: none; }
.race-links .race-pager a { text-decoration: underline; }
.race-ballot { padding-block: 26px; border-top: 3px solid var(--asphalt); background: var(--white); }

/* ---------- About, directory, policies ---------- */
.page-hero { background: var(--asphalt); color: var(--white); }
.page-hero__inner { display: flex; flex-direction: column; gap: 16px; padding-block: clamp(28px, 4vw, 52px); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.3rem, 1.3rem + 4vw, 4.6rem); line-height: 0.98; letter-spacing: -0.015em; text-wrap: balance; }
.page-hero__dek { max-width: 62ch; color: var(--mist); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.about { display: grid; gap: 28px; padding-block: clamp(32px, 4vw, 48px); }
.toc { align-self: start; min-width: 0; background: var(--white); border: var(--border); border-radius: 10px; overflow: hidden; }
.toc h2, .policy-toc__label { padding: 10px 14px; background: var(--asphalt); color: var(--yellow); font-family: var(--sign); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid var(--mist); }
.toc li:first-child { border-top: 0; }
.toc a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; color: var(--asphalt); text-decoration: none; font-size: 16px; line-height: 1.3; }
.toc a::before { content: counter(toc); flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; background: var(--yellow); border-radius: 3px; font-family: var(--sign); font-size: 13px; font-weight: 900; }
.toc a:hover { background: var(--concrete); color: var(--green); }
.toc a:focus-visible { outline-offset: -5px; }
.doc { display: grid; gap: 24px; min-width: 0; }
.doc-box { min-width: 0; padding: clamp(18px, 3vw, 30px); background: var(--white); border: var(--border); border-radius: 10px; scroll-margin-top: 16px; }
.doc-box__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.doc-box__head .mile { width: 38px; height: 54px; }
.doc-box__head .mile b { font-size: 20px; }
.doc-box h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); }
.doc-box p, .doc-box li { max-width: 68ch; }
.doc-box p + p, .doc-box p + ul, .doc-box ul + p, .doc-box > * + .trio, .doc-box .trio + p { margin-top: 0.85em; }
.doc-box ul { padding-left: 1.2em; }
.doc-box li + li { margin-top: 6px; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.trio > div { min-width: 0; padding: 14px 16px; background: var(--concrete); border: 2px solid var(--asphalt); border-radius: 8px; }
.trio h3 { margin-bottom: 6px; font-size: 1.1rem; font-weight: 800; }
.trio p { font-size: 16px; line-height: 1.5; }
.roles { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 10px; margin-top: 14px; }
.roles li { margin: 0 !important; padding: 10px 12px; border: 2px solid var(--asphalt); border-radius: 8px; font-size: 16px; line-height: 1.4; }
.roles b { display: block; font-family: var(--sign); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.norecord { display: inline-block; padding: 2px 8px; border: 2px dashed var(--asphalt); border-radius: 4px; font-family: var(--sign); font-weight: 800; }
.glossary { display: grid; margin-top: 10px; border: 2px solid var(--asphalt); border-radius: 8px; overflow: hidden; }
.glossary > div { display: grid; gap: 4px 18px; padding: 12px 14px; border-bottom: 1px solid var(--mist); }
.glossary > div:last-child { border-bottom: 0; }
.glossary dt { font-family: var(--sign); font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.glossary dd { font-size: 16px; line-height: 1.55; max-width: 68ch; }
@media (min-width: 760px) { .glossary > div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); } }
@media (min-width: 1024px) {
  .about { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 36px; align-items: start; }
  .toc, .policy-page .policy-toc { position: sticky; top: 24px; }
}
.about-extra { padding-bottom: clamp(32px, 4vw, 48px); }
.about-extra > section { padding: clamp(18px, 3vw, 30px); background: var(--white); border: var(--border); border-radius: 10px; }
.about-extra > section + section { margin-top: 24px; }
.about-extra h2 { margin-bottom: 12px; font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.9rem); }
.about-extra p { max-width: 70ch; }
.about-extra p + p { margin-top: 0.85em; }
.about-extra .launch-official { margin-top: 24px; }

/* Directory, legacy and 404 pages (launch.css .launch-module) in sign language. */
main .launch-module { max-width: var(--max); padding: clamp(32px, 4vw, 52px) var(--gut); }
main .launch-module h1 { max-width: 20ch; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.2rem); line-height: 0.98; }
main .launch-module a { font-weight: 700; }
main .launch-races { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 10px; }
main .launch-races a {
  justify-content: space-between; min-height: 56px; padding: 10px 16px; border: 0; border-radius: 8px;
  background: var(--green); color: var(--white); box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 5px var(--white);
  font-family: var(--sign); font-size: 17px; font-weight: 800; text-decoration: none;
}
main .launch-races a::after { content: "→" / ""; font-weight: 900; }
main .launch-races a:hover { background: var(--green-dark); color: var(--white); text-decoration: none; }
main .launch-races a:focus-visible { outline-color: var(--asphalt); }
main .launch-official { border-top: 0; margin-top: 24px; }
main .about-extra > .launch-module { max-width: none; padding: clamp(18px, 3vw, 30px); }

/* Privacy and cookie policies. Scoped one level deeper than launch.css so the site look wins. */
.policy-effective { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; background: var(--yellow); color: var(--asphalt); border-radius: 4px; font-family: var(--sign); font-size: 15px; font-weight: 800; }
.policy-page .policy-toc { align-self: start; min-width: 0; background: var(--white); border: var(--border); border-radius: 10px; overflow: hidden; }
.policy-page .policy-toc ul { display: block; margin: 0; padding: 0; list-style: none; }
.policy-page .policy-toc li { border-top: 1px solid var(--mist); }
.policy-page .policy-toc li:first-child { border-top: 0; }
.policy-page .policy-toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 14px; color: var(--asphalt); text-decoration: none; font-size: 16px; line-height: 1.3; }
.policy-page .policy-toc a:hover { background: var(--concrete); color: var(--green); }
.policy-page .policy-toc a:focus-visible { outline: 3px solid var(--asphalt); outline-offset: -5px; }
.policy-doc { display: grid; gap: 24px; min-width: 0; max-width: calc(68ch + 64px); }
.policy-doc .policy-section { min-width: 0; padding: clamp(18px, 3vw, 30px); background: var(--white); border: var(--border); border-radius: 10px; }
.policy-doc .policy-section h2 { margin-bottom: 14px; font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); }
.policy-doc .policy-section > * + * { margin-top: 0.85em; }
.policy-doc .policy-section > h2 + * { margin-top: 0; }
.policy-doc code { padding: 1px 5px; background: var(--concrete); border: 1px solid var(--steel); border-radius: 3px; font-family: var(--mono); font-size: 0.85em; overflow-wrap: anywhere; }
.policy-doc .policy-list { margin-top: 4px; border: 2px solid var(--asphalt); border-radius: 8px; overflow: hidden; gap: 0; }
.policy-doc .policy-list > div { display: grid; gap: 6px 18px; padding: 12px 14px; border-bottom: 1px solid var(--mist); min-width: 0; }
.policy-doc .policy-list > div:last-child { border-bottom: 0; }
.policy-doc .policy-list dd { margin: 0; font-size: 16px; }
@media (min-width: 760px) { .policy-doc .policy-list > div { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); } }
.policy-doc probo-settings-link.policy-settings:defined {
  display: flex; align-items: center; width: fit-content; min-height: 48px; margin-bottom: 14px; padding: 0 18px;
  background: var(--green); color: var(--white); border-radius: 6px; font-family: var(--sign); font-weight: 800; text-decoration: none;
}
.policy-doc .policy-settings-fallback { font-style: normal; font-weight: 700; }
.policy-layout { padding-block: clamp(32px, 4vw, 48px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .guide-sign, .senate-sign, .district-sign, .brand, .race-sign, .mile, .launch-races a { border: 2px solid CanvasText; }
}

/* Short pages (directory, 404): the footer meets the bottom of the window. */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }

/* ---------- Junction: Mile 1 (finder) and Mile 2 (navigator) side by side ----------
   Owner request, October 11, 2026: one band with two boxes on wide screens, stacked
   (finder first) below 1024px. The district signs fit the box through container queries. */
.junction { padding-block: clamp(28px, 4vw, 48px); background: var(--band); border-bottom: 3px solid var(--asphalt); }
.junction__grid { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 1024px) { .junction__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.junction__box {
  container-type: inline-size; min-width: 0; scroll-margin-top: 16px;
  padding: clamp(18px, 2.4vw, 28px); background: var(--white); border: var(--border); border-radius: 12px;
}
.junction .finder-row { flex-direction: column; flex-wrap: nowrap; gap: 20px; }
.junction .finder-row > .section-head { flex: none; }
.junction .finder { flex: none; padding: 0; border: 0; border-radius: 0; }
.junction .section-title { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); }
.junction .navigator { gap: 18px; }
.junction .senate-sign { padding: 14px 20px; }
.junction .senate-sign__name { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); }
.junction .senate-sign__go svg { width: 26px; height: 26px; }
/* 12 signs: 2, 3, 4 or 6 to a row, so no sign is left alone on a row. */
.junction .district-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 380px) { .junction .district-signs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 620px) { .junction .district-signs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (min-width: 900px) { .junction .district-signs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.junction .district-sign { min-height: 56px; gap: 8px; padding: 6px 10px 6px 6px; font-size: 16px; }
.junction .district-sign__num { min-width: 40px; height: 40px; font-size: 22px; }
@container (max-width: 519px) { .junction .district-sign__arrow { display: none; } }
@container (max-width: 379px) { .junction .district-sign__arrow { display: inline; } }
.junction .caution { font-size: 15px; }

/* Gantry: one sign per row on phones, then 2 + a full-width third, then all three overhead. */
.gantry__signs { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .gantry__signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gantry__signs > li:nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .gantry__signs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gantry__signs > li:nth-child(3) { grid-column: auto; }
}
