/* EV Ready USA - site stylesheet
 * BELL-1.claude, 2026-09-10. Rebuilt on the EV-Ready Hotel design system per
 * Will's direction: same bands, same colors, so the two sites read as one
 * company.
 *
 * What that means in practice:
 *   - One continuous mineral canvas. Sections are separated by whitespace and
 *     hairline rules, not by slabs of contrasting color. The hotel site has no
 *     dark bands and neither does this one.
 *   - Signal green is the only accent, exactly as pinned on 2026-09-02.
 *   - Public Sans throughout, self-hosted, the same face the hotel site uses.
 *   - Soft 10px radius, pill buttons, the hotel's two shadow depths.
 *
 * The one element that is ours rather than inherited is the coverage map: a
 * static Albers choropleth of the lower 48, built at page-build time from
 * public-domain geometry. Reference is the Nova taste library's map-08
 * ("State Coverage Map", trades), and it rhymes with the Lamar map UI that
 * the hotel site was drawn from in the first place.
 *
 * Zero network requests at runtime. No inline styles anywhere: the preview
 * server sends style-src 'self' and silently drops them.
 */

/* ---------------------------------------------------------------- fonts */

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens */

:root {
  /* Pinned by Will 2026-09-02 for EV-Ready Hotel; adopted here unchanged. */
  --mineral: #eef2ed;
  --paper: #f8faf7;
  --ink: #172429;
  --ink-2: #3d4f55;
  --ink-3: #66787e;
  --mist: #c8d3cd;
  --mist-2: #dfe6e2;
  --signal: #4f786e;
  --signal-deep: #3d6157;
  --signal-tint: #e3ece7;
  --danger: #8a3b2e;

  /* The choropleth ramp, palest to deepest. usmap.py emits these values, and
     a test checks the two lists never drift apart. */
  --ramp-1: #e3ece7;
  --ramp-2: #c8dcd3;
  --ramp-3: #a3c4b7;
  --ramp-4: #7aa799;
  --ramp-5: #4f786e;

  --radius: 10px;
  --radius-s: 6px;
  --radius-pill: 999px;
  --shadow: 0 12px 32px rgba(23, 36, 41, 0.14), 0 1px 2px rgba(23, 36, 41, 0.08);
  --shadow-s: 0 4px 14px rgba(23, 36, 41, 0.12), 0 1px 1px rgba(23, 36, 41, 0.06);

  --font: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --xs: 8px;
  --sm: 12px;
  --md: 18px;
  --lg: 32px;
  --xl: 52px;
  --xxl: 84px;

  --page-x: clamp(1.1rem, 4vw, 2.4rem);
  --measure: 66ch;
  --shell: 1140px;

  color-scheme: light;
}

/* ----------------------------------------------------------------- base */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mineral);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem);
  letter-spacing: -0.026em;
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -0.014em;
}

h4 {
  font-size: 0.95rem;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

a {
  color: var(--signal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--signal);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

/* The two utility text roles. */

.label,
.sheet-no {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 var(--sm);
}

.label {
  color: var(--ink-3);
}

.sheet-no {
  color: var(--signal);
}

.mono {
  font-variant-numeric: tabular-nums;
}

.lede {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}

.small {
  font-size: 0.85rem;
  color: var(--ink-2);
}

.note {
  font-size: 0.85rem;
  color: var(--ink-3);
  max-width: var(--measure);
}

/* ---------------------------------------------------------------- shell */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--page-x);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--signal-deep);
  color: #fff;
  padding: var(--sm) var(--md);
  border-radius: var(--radius-s);
  z-index: 40;
}

.skip:focus {
  left: var(--sm);
  top: var(--sm);
}

/* ------------------------------------------------------------- top bar */

.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: var(--md);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand:hover {
  color: var(--ink);
}

.brand svg {
  display: block;
  flex: none;
}

.brand-name {
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.brand-name em {
  font-style: normal;
  color: var(--signal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 9px 13px;
  border-radius: var(--radius-pill);
  line-height: 1;
}

.nav a:hover {
  color: var(--ink);
  background: var(--mineral);
}

.nav a.on {
  color: var(--ink);
  background: var(--signal-tint);
}

.nav .cta {
  background: var(--signal-deep);
  color: #fff;
  font-weight: 600;
  padding: 11px 18px;
  margin-left: var(--xs);
}

.nav .cta:hover {
  background: var(--signal);
  color: #fff;
}

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  font-family: var(--font);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn-primary {
  background: var(--signal-deep);
  color: #fff;
  border-color: var(--signal-deep);
}

.btn-primary:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

.btn-quiet,
.btn-ondark {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--mist);
}

.btn-quiet:hover,
.btn-ondark:hover {
  border-color: var(--signal);
  color: var(--signal-deep);
  background: var(--paper);
}

.btn svg {
  flex: none;
}

/* ------------------------------------------------------------------ hero */

.hero {
  background: var(--mineral);
  padding-block: clamp(2.4rem, 5vw, 4.2rem) clamp(2rem, 4vw, 3.4rem);
}

.hero h1 {
  max-width: 16ch;
}

.hero .lede {
  margin-top: var(--md);
  max-width: 52ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}

/* The question, as the hotel would draw it: a paper panel with pill chips. */

.circuit {
  margin-top: var(--lg);
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  padding: var(--md);
}

.circuit-legend {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--sm);
}

.circuit-track {
  display: flex;
  flex-wrap: wrap;
  gap: var(--xs);
}

.pick input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pick span {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--mineral);
  border: 1px solid var(--mist);
  border-radius: var(--radius-pill);
  padding: 9px 15px;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}

.pick:hover span {
  color: var(--ink);
  border-color: var(--ink-3);
}

.pick input:checked + span {
  color: #fff;
  background: var(--signal-deep);
  border-color: var(--signal-deep);
}

.pick input:focus-visible + span {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.circuit-out {
  display: flex;
  flex-wrap: wrap;
  gap: var(--xs);
  align-items: center;
  margin-top: var(--sm);
  padding-top: var(--sm);
  border-top: 1px solid var(--mist-2);
}

.circuit-out label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.circuit-out input[type="text"] {
  width: 110px;
  font-family: var(--font);
  font-size: 0.98rem;
  background: var(--mineral);
  border: 1px solid var(--mist);
  border-radius: var(--radius-pill);
  color: var(--ink);
  padding: 11px 16px;
}

.circuit-out input[type="text"]::placeholder {
  color: var(--ink-3);
}

.circuit-out .btn {
  margin-left: auto;
}

/* ---------------------------------------------------------- coverage map */

.mapwrap {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  padding: var(--sm);
}

.usmap {
  display: block;
  width: 100%;
  height: auto;
}

.usmap a {
  cursor: pointer;
}

.usmap path {
  transition: fill 140ms ease;
}

.usmap a:hover path {
  fill: var(--signal-deep);
}

.usmap-label {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--signal-deep);
  stroke-width: 3px;
  pointer-events: none;
}

.maplegend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--xs) var(--md);
  padding: var(--sm) var(--xs) 2px;
  font-size: 0.8rem;
  color: var(--ink-3);
}

.maplegend .ramp {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.maplegend .ramp i {
  width: 22px;
  height: 10px;
  border-radius: 2px;
  display: block;
}

.ramp-1 { background: var(--ramp-1); }
.ramp-2 { background: var(--ramp-2); }
.ramp-3 { background: var(--ramp-3); }
.ramp-4 { background: var(--ramp-4); }
.ramp-5 { background: var(--ramp-5); }

.maplegend .keyed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.maplegend .keyed i {
  width: 16px;
  height: 12px;
  display: block;
  border-radius: 2px;
  background: var(--ramp-3);
  border: 2px solid var(--signal-deep);
}

/* ------------------------------------------------------------- sections */

.band {
  padding-block: clamp(2.4rem, 5vw, 4rem);
  border-top: 1px solid var(--mist);
}

/* The hotel site has no dark slabs. Where this build previously inverted a
   band, it now raises it onto paper instead. */
.band-dark {
  background: var(--paper);
}

.band-head {
  margin-bottom: var(--lg);
}

.band-head p {
  margin-top: var(--sm);
}

/* ---------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: var(--md);
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: var(--md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 140ms ease, border-color 140ms ease;
}

a.card:hover {
  border-color: var(--signal);
  box-shadow: var(--shadow-s);
  color: inherit;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.card .more {
  margin-top: auto;
  padding-top: var(--sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--signal-deep);
}

.card-mark {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  color: var(--signal);
}

/* ------------------------------------------------------------ the steps */

.flow {
  display: grid;
  gap: 0;
  max-width: 720px;
}

.flow-step {
  position: relative;
  padding: 0 0 var(--lg) 46px;
}

.flow-step:last-child {
  padding-bottom: 0;
}

.flow-step::before {
  content: attr(data-node);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--signal-deep);
  border-radius: var(--radius-pill);
}

.flow-step::after {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 30px;
  bottom: 4px;
  width: 1px;
  background: var(--mist);
}

.flow-step:last-child::after {
  display: none;
}

.flow-step h3 {
  margin-bottom: 5px;
}

.flow-step p {
  margin: 0;
  color: var(--ink-2);
}

/* --------------------------------------------------------- data display */

.figures {
  display: grid;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  overflow: hidden;
}

.figure {
  padding: var(--md);
  border-right: 1px solid var(--mist-2);
  border-bottom: 1px solid var(--mist-2);
  margin-bottom: -1px;
}

.figure:last-child {
  border-right: 0;
}

.figure b {
  font-variant-numeric: tabular-nums;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.figure span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  display: block;
  margin-top: 5px;
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.schedule caption {
  text-align: left;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: var(--sm);
}

.schedule th,
.schedule td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mist-2);
}

.schedule th {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--mist);
}

.schedule td.num,
.schedule th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.schedule tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: var(--md);
}

.bars {
  display: grid;
  gap: var(--xs);
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(96px, 26%) 1fr auto;
  gap: var(--sm);
  align-items: center;
  font-size: 0.89rem;
}

.bar-row .bar-name {
  color: var(--ink-2);
  /* Wrapping, not an ellipsis: "Federal government" was rendering as
     "Federal governme..." beside a half-empty band. */
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.bar-track {
  height: 10px;
  background: var(--mist-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--signal);
  border-radius: var(--radius-pill);
  width: 0;
}

.bar-row .bar-value {
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* Bar widths are classes, not inline styles: the preview server sends
   style-src 'self' and drops a style attribute without a word, which once had
   every bar on the site rendering full width. */
.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }

/* --------------------------------------------------------------- badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.79rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid;
}

.badge-covered {
  color: var(--signal-deep);
  background: var(--signal-tint);
  border-color: #bfd5cd;
}

.badge-matching {
  color: var(--ink-2);
  background: var(--mineral);
  border-color: var(--mist);
}

.badge-kind {
  color: var(--signal-deep);
  background: var(--signal-tint);
  border-color: #bfd5cd;
}

/* --------------------------------------------------------- content flow */

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: var(--xl);
  margin-bottom: var(--sm);
}

.prose h3 {
  margin-top: var(--lg);
  margin-bottom: var(--xs);
}

.prose ul,
.prose ol {
  max-width: var(--measure);
  padding-left: 1.15rem;
}

.prose li {
  margin-bottom: 0.5em;
}

.crumbs {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-bottom: var(--md);
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--signal-deep);
}

.crumbs span {
  padding: 0 7px;
  color: var(--mist);
}

.page-head {
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
}

.page-head h1 {
  font-size: clamp(1.85rem, 1.35rem + 2vw, 2.9rem);
  max-width: 19ch;
}

.page-head .lede {
  margin-top: var(--md);
}

.head-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sm);
  align-items: center;
  margin-top: var(--md);
}

/* ---------------------------------------------------------- link lists */

.linkgrid {
  display: grid;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  overflow: hidden;
}

.linkgrid a {
  border-right: 1px solid var(--mist-2);
  border-bottom: 1px solid var(--mist-2);
  margin-bottom: -1px;
  padding: 12px var(--md);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--xs);
  font-size: 0.93rem;
}

.linkgrid a:hover {
  background: var(--signal-tint);
  color: var(--ink);
}

.linkgrid a b {
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-3);
}

.linkgrid a:hover b {
  color: var(--signal-deep);
}

/* -------------------------------------------------------- incentive item */

.entry {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: var(--md);
  margin-bottom: var(--sm);
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--xs);
  align-items: center;
  margin-bottom: 6px;
}

.entry h3 {
  flex: 1 1 260px;
}

.entry p {
  color: var(--ink-2);
  margin-bottom: var(--sm);
}

.entry-foot {
  font-size: 0.79rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sm);
  padding-top: var(--sm);
  border-top: 1px solid var(--mist-2);
}

/* ----------------------------------------------------------------- form */

.formwrap {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.form-panel {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  padding: clamp(1.1rem, 3vw, 1.8rem);
}

.lead-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: var(--md);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--mineral);
  border: 1px solid var(--mist);
  border-radius: var(--radius-s);
  padding: 11px 13px;
}

.lead-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--signal);
  background: var(--paper);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sm);
}

.intent {
  border: 1px solid var(--mist);
  border-radius: var(--radius-s);
  padding: var(--sm) var(--sm) 4px;
  margin: 0 0 var(--md);
}

.intent legend {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 6px;
}

.intent-option {
  display: flex !important;
  gap: var(--sm);
  align-items: flex-start;
  margin-bottom: var(--sm) !important;
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
}

.intent-option input {
  width: auto;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--signal-deep);
}

.intent-option strong {
  display: block;
  font-weight: 600;
}

.intent-option em {
  font-style: normal;
  color: var(--ink-2);
  font-size: 0.87rem;
}

.consent {
  font-size: 0.79rem;
  color: var(--ink-2);
  line-height: 1.5;
  background: var(--mineral);
  border: 1px solid var(--mist-2);
  border-radius: var(--radius-s);
  padding: var(--sm);
  max-width: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sm);
  align-items: center;
  margin-top: var(--md);
}

[data-form-status] {
  font-size: 0.88rem;
  margin: 0;
  color: var(--ink-2);
}

[data-form-status][data-state="success"] {
  color: var(--signal-deep);
}

[data-form-status][data-state="error"] {
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------- cta band */

.cta-band {
  background: var(--signal-deep);
  color: #fff;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
  border-top: 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band .lede,
.cta-band p {
  color: #d6e4de;
}

.cta-band .sheet-no {
  color: #a8c6bb;
}

.cta-band .btn-primary {
  background: var(--paper);
  color: var(--signal-deep);
  border-color: var(--paper);
}

.cta-band .btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--signal-deep);
}

/* --------------------------------------------------------------- footer */

.footer {
  background: var(--paper);
  border-top: 1px solid var(--mist);
  color: var(--ink-2);
  padding-block: var(--xl) var(--lg);
  font-size: 0.9rem;
}

.footer a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer a:hover {
  color: var(--signal-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--lg);
  padding-bottom: var(--lg);
  border-bottom: 1px solid var(--mist-2);
}

.footer h4 {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: var(--sm);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 7px;
}

.footer-note {
  padding-top: var(--lg);
  font-size: 0.8rem;
  color: var(--ink-3);
  max-width: 78ch;
  line-height: 1.6;
}

.footer-note p {
  max-width: none;
  margin-bottom: 0.7em;
}

.footer .brand {
  margin-bottom: var(--sm);
}

/* -------------------------------------------------------------- utility */

.gap-xs { margin-top: var(--sm); }
.gap-sm { margin-top: var(--md); }
.gap-md { margin-top: var(--lg); }
.gap-lg { margin-top: var(--xl); }
.gap-xl { margin-top: var(--xxl); }
.gap-below { margin-bottom: var(--md); }

.stack-lg > * + * {
  margin-top: var(--lg);
}

.stack-md > * + * {
  margin-top: var(--md);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.4rem, 3.5vw, 2.6rem);
  align-items: start;
}

.tight {
  max-width: 52ch;
}

/* -------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .hero-grid,
  .formwrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar-in {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: var(--sm);
    gap: var(--xs);
  }

  .nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 3px var(--xs);
  }

  .nav a {
    padding: 9px 10px;
    white-space: nowrap;
  }

  .nav .cta {
    margin-left: auto;
  }

  .circuit-out .btn {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  /* auto-fit kept packing four footer columns into a phone and squeezed the
     brand column to 11px, one word per line, overlapping its neighbour. */
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--md) var(--lg);
  }
}

@media (max-width: 520px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--md);
  }

  .bar-row {
    grid-template-columns: minmax(84px, 34%) 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .topbar,
  .footer,
  .circuit,
  .cta-band {
    display: none;
  }
}
