/*
 * UserBus landing. One idea: a bus, in both senses - signage yellow, black and white,
 * a route line for real sequences, and one amber dot-matrix sign (drawn by page.js).
 * System grotesk on purpose: transit signage vernacular, and no font files to ship.
 */
:root {
  --yellow: #ffd400;
  --black: #000;
  --white: #fff;
  --grey: #5c5c5c;
  --rule: #d9d9d9;
  --night-rule: #3a3a3a;
  --amber: #ffb000;
  --alarm: #ff8a75;
  --focus: #000;
  --sans: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  /* Radii are the design system's scale (userbus-design, src/styles/tokens.css): controls take
     --r-md, cards --r-lg, the bus body around the sign --r-bus. Circles stay 50%. */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-bus: 18px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 400 1.0625rem/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.09em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: min(100%, 1240px); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 10;
  background: var(--white); color: var(--black); padding: 12px 16px; font-weight: 700;
  border: 3px solid var(--black);
}
.skip-link:focus { top: 12px; }

/* ---- sign strip (header) and footer ---- */
.strip, .footer { background: var(--black); color: var(--white); --focus: var(--yellow); }
.strip-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; text-decoration: none;
}
/* One-second dwell on either the mark or word starts a continuous round trip.
   Keyframe times follow distance for constant speed along the mark.svg centerline.
   The return follows the stem and left branch; both loop endpoints coincide. */
.brand-mark { flex: none; overflow: visible; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .brand:hover .brand-dot { animation: brand-route 6.4s linear 1s infinite; }
}
@media (prefers-reduced-motion: no-preference) {
  .brand:focus-visible .brand-dot { animation: brand-route 6.4s linear 1s infinite; }
}
@keyframes brand-route {
  0.0000% { transform: translate(0px, 0px); }
  7.6210% { transform: translate(0px, 15px); }
  12.6505% { transform: translate(7px, 22px); }
  14.1747% { transform: translate(10px, 22px); }
  19.2043% { transform: translate(17px, 15px); }
  26.3172% { transform: translate(17px, 1px); }
  32.9221% { transform: translate(30px, 1px); }
  38.6702% { transform: translate(38px, 9px); }
  41.2105% { transform: translate(38px, 14px); }
  46.9586% { transform: translate(30px, 22px); }
  53.5634% { transform: translate(17px, 22px); }
  68.9578% { transform: translate(17px, -8.3px); }
  80.7957% { transform: translate(17px, 15px); }
  85.8253% { transform: translate(10px, 22px); }
  87.3495% { transform: translate(7px, 22px); }
  92.3790% { transform: translate(0px, 15px); }
  100.0000% { transform: translate(0px, 0px); }
}
.strip-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-left: auto; font-weight: 500; font-size: 0.98rem; }
.strip-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; text-decoration: none; }
.strip-nav a:hover, .strip-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.strip-cta {
  background: var(--yellow); color: var(--black); font-weight: 700; text-decoration: none;
  padding: 10px 18px; border-radius: var(--r-md); white-space: nowrap;
}
.strip .cta-hold { border-width: 1px; padding: 5px 10px; font-weight: 500; font-size: 0.9rem; }
.strip-cta:hover { background: var(--white); }
.notice { border-bottom: 3px solid var(--black); font-size: 0.92rem; font-weight: 500; }
.notice .wrap { display: block; padding-block: 9px; }

/* Route bullets: B is the buyers' line, P the providers' line, everywhere on the site. */
.bullet {
  display: inline-grid; place-items: center; flex: none;
  width: 1.55em; height: 1.55em; border-radius: 50%;
  font-weight: 700; font-size: 0.82em; line-height: 1; letter-spacing: 0;
}
.bullet-b { background: var(--black); color: var(--yellow); }
.bullet-p { background: var(--white); color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.strip .bullet-b { background: var(--yellow); color: var(--black); }

/* ---- hero ---- */
.hero { background: var(--yellow); padding-block: clamp(32px, 4.5vw, 64px) clamp(28px, 3vw, 44px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 0.95; letter-spacing: -0.045em; font-weight: 700;
  text-wrap: balance;
}
.lead { margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.42; max-width: 36em; }

.bus-body { background: var(--black); border-radius: var(--r-bus); padding: 18px 18px 16px; --focus: var(--yellow); }
.sign[role="button"] { cursor: pointer; }
.sign { width: 100%; height: auto; background: #0b0900; border-radius: var(--r-sm); }
.bus-plate { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--white); font-size: 0.95rem; line-height: 1.3; }
.bus-plate b { flex: none; background: var(--yellow); color: var(--black); padding: 3px 12px; border-radius: var(--r-sm); letter-spacing: 0.04em; }
.bus figcaption { margin-top: 10px; font-size: 0.86rem; }

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(16px, 2.4vw, 32px); margin-top: clamp(22px, 2.8vw, 36px); }
.door {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center;
  color: var(--black); text-decoration: none; border-top: 6px solid var(--black); padding: 14px 0 4px;
}
.door .bullet { font-size: 1.05rem; grid-row: span 2; align-self: start; }
.door strong { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.03em; line-height: 1.15; }
.door strong::after { content: " \2193"; font-weight: 400; }
.door span:last-child { grid-column: 2; font-size: 0.98rem; }
.door:hover strong { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---- sections ---- */
.section { padding-block: var(--section); }
.section-ruled { border-block: 3px solid var(--black); }
.band, .closing { background: var(--yellow); }
h2 { font-size: clamp(2.1rem, 4.8vw, 3.9rem); line-height: 1; letter-spacing: -0.035em; font-weight: 700; text-wrap: balance; max-width: 18ch; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
.section-lead { margin-top: 20px; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 40em; }
.line-tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 18px; }
.fine { margin-top: 16px; font-size: 0.9rem; line-height: 1.5; color: var(--grey); max-width: 58em; }
.band .fine, .band .hint { color: #2b2b2b; }

/* route: used only where the content is a sequence */
.route { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); counter-reset: stop; }
.route li { position: relative; padding: 68px 28px 0 0; counter-increment: stop; }
.route li::before { content: ""; position: absolute; top: 16px; left: 0; right: 0; height: 8px; background: var(--black); }
.route li:last-child::before { right: auto; width: 22px; }
.route li::after {
  content: counter(stop); position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 20px;
  background: var(--white); border: 6px solid var(--black); font-weight: 700; font-size: 0.95rem;
}
.route .route-interchange::after { width: 76px; background: var(--yellow); }
.route h3 { margin-bottom: 8px; }
.route p { font-size: 1rem; }

/* comparison */
.table-scroll { margin-top: clamp(32px, 4vw, 56px); overflow-x: auto; }
.compare-wrap { margin-top: clamp(32px, 4vw, 56px); }
.compare { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 22px 18px 0; border-top: 1px solid var(--black); }
.compare thead th, .compare thead td { border-top: 0; font-size: 1.3rem; letter-spacing: -0.02em; padding-bottom: 12px; }
.compare tbody th { width: 9.5em; font-weight: 700; }
.compare td:last-child, .compare thead th:last-child { background: var(--yellow); padding-left: 22px; }
.compare tr:last-child > * { border-bottom: 3px solid var(--black); }

/* provenance marks: one of four, explained once, under the first calculator */
.mark {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: 0.08em; white-space: nowrap;
  font-size: 0.76rem; font-weight: 700; line-height: 1; letter-spacing: 0.01em;
  padding: 4px 9px 4px 7px; border: 1.5px solid var(--black); border-radius: var(--r-pill);
  background: var(--white); color: var(--black);
}
.mark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--black); }
.mark-measured::before { background: var(--black); }
.mark-published::before { background: linear-gradient(90deg, var(--black) 50%, var(--white) 50%); }
.mark-planned { border-style: dashed; }
.mark-planned::before { border-style: dashed; }

/* ---- calculators ---- */
.calc {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: clamp(32px, 4vw, 56px); background: var(--white);
  border: 3px solid var(--black); border-radius: var(--r-lg); overflow: hidden;
}
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; align-content: start; padding: clamp(20px, 3vw, 36px); }
.field-wide, .more, .calc-error, .calc-inputs > .hint, .reset { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 0.98rem; margin-bottom: 8px; }
.field input[type="number"] {
  width: 100%; font: 700 1.35rem/1.2 var(--sans); font-variant-numeric: tabular-nums;
  padding: 12px 14px; color: var(--black); background: var(--white);
  border: 2px solid var(--black); border-radius: var(--r-md); appearance: textfield; -moz-appearance: textfield;
}
.field input[type="number"]::-webkit-inner-spin-button, .field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"]:focus-visible { outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: #b00020; box-shadow: inset 0 0 0 1px #b00020; }
.pair { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; align-items: center; }
input[type="range"] { width: 100%; accent-color: var(--black); height: 32px; }
.hint { margin-top: 8px; font-size: 0.88rem; line-height: 1.45; color: var(--grey); }
.more summary { font-weight: 700; cursor: pointer; padding: 6px 0; }
.more[open] summary { margin-bottom: 16px; }
.more .field + .field { margin-top: 20px; }
.calc-error { color: #b00020; font-weight: 700; font-size: 0.95rem; }
.calc-error:empty { margin-top: -22px; }
.reset {
  justify-self: start; font: 700 0.92rem var(--sans); color: var(--black); background: none;
  border: 0; border-bottom: 2px solid var(--black); padding: 10px 0 4px; cursor: pointer;
}
.calc-board { background: var(--black); color: var(--white); padding: clamp(18px, 2.6vw, 32px); --focus: var(--yellow); }
.is-invalid .calc-board { opacity: 0.45; }
.rows { margin-top: 18px; }
.rows > div { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--night-rule); }
.rows dt { color: #d0d0d0; font-size: 0.98rem; }
.rows dd { font-weight: 700; font-size: 1.1rem; text-align: right; }
.rows .row-strong dt { color: var(--white); }
.rows .row-strong dd { color: var(--yellow); font-size: 1.35rem; }
.calc-market { grid-column: 1 / -1; padding: clamp(20px, 3vw, 36px); border-top: 3px solid var(--black); }
.calc-market h3 { margin-bottom: 16px; }
.calc-market p { max-width: 62em; }
.calc-market p + p { margin-top: 12px; }
.asks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.asks li { padding: 9px 16px; border: 2px solid var(--black); border-radius: var(--r-pill); font-weight: 700; }
.asks small { font-size: 0.86em; font-weight: 500; }
.asks [data-state="eligible"] { background: var(--yellow); }
.asks [data-state="busy"] { background: repeating-linear-gradient(135deg, var(--white) 0 6px, #e4e4e4 6px 12px); }
.asks [data-state="takes"] { background: var(--black); color: var(--yellow); }
.asks [data-state="takes"] small, .asks [data-state="over"] small { display: none; }
.asks [data-state="takes"]::after { content: " takes the job"; font-weight: 500; color: var(--white); }
.asks [data-state="over"] { color: var(--grey); border: 2px dashed #8a8a8a; }
.asks [data-state="over"]::after { content: " over your cap"; font-size: 0.86em; font-weight: 500; }
.calc-board > .sign:last-child { margin-top: 20px; }

.legend-line { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; font-size: 0.9rem; color: var(--grey); }
.legend-line .mark { margin-right: 6px; }

.taxi { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 clamp(32px, 6vw, 96px); margin-top: clamp(48px, 7vw, 96px); padding-top: 28px; border-top: 3px solid var(--black); }
.taxi-copy p { margin-top: 10px; max-width: 26em; }
.taxi .compare-wrap { margin-top: 0; }
.taxi .compare thead th, .taxi .compare thead td { padding-top: 0; }
.taxi .fine { grid-column: 2; }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 7vw, 96px); align-items: start; }
.how-copy h3 { margin: 32px 0 10px; }
.how-copy h3:first-child { margin-top: 0; }
.how-copy p { max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.text-link { font-weight: 700; padding-block: 12px; }
.hero-hint { margin-top: 10px; color: #2b2b2b; }
.next { margin-top: clamp(28px, 4vw, 48px); max-width: 46em; }
.pay { margin-top: clamp(28px, 4vw, 48px); max-width: 46em; }
.pay h3 { margin: 0 0 10px; }
.pay p + p { margin-top: 12px; }
.next .provider-cta { margin-top: 16px; }
.entry { margin-top: 20px; padding: 14px 18px; border-left: 6px solid var(--black); background: var(--white); max-width: 46em; }
.button, .provider-cta .button {
  display: inline-block; background: var(--black); color: var(--white); font-weight: 700; text-decoration: none;
  padding: 14px 22px; border-radius: var(--r-md); border: 2px solid var(--black);
}
.button:hover { background: var(--white); color: var(--black); }
.button-quiet { background: transparent; color: var(--black); }
.button-quiet:hover { background: var(--black); color: var(--white); }
.cta-hold { display: inline-block; border: 2px dashed currentColor; border-radius: var(--r-md); padding: 10px 14px; font-weight: 600; }
.provider-cta { margin-top: 16px; }
.steps { counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 2.1em; }
.steps li::before { content: counter(step); position: absolute; left: 0; font-weight: 700; }
.how-note { border: 3px solid var(--black); border-radius: var(--r-lg); padding: 24px; background: var(--white); }
.how-note h3 { margin-bottom: 10px; }

.shot img { width: 100%; height: auto; border: 2px solid var(--black); border-radius: var(--r-md); }
.shot figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--grey); }

/* ---- service board ---- */

/* ---- faq, closing, footer ---- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.faq-list details { border-top: 2px solid var(--black); }
.faq-list details:last-child { border-bottom: 2px solid var(--black); }
.faq-list summary { display: flex; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em; padding: 20px 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list p { padding: 0 0 24px; max-width: 40em; }
.closing { padding-block: var(--section); }
.closing .actions { margin-top: 28px; }
.footer { padding-block: 36px; font-size: 0.95rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer nav a { padding-block: 8px; }
.footer p { margin-left: auto; color: #c9c9c9; }
.footer-button { font: inherit; color: inherit; background: none; border: 0; padding: 8px 0; text-decoration: underline; cursor: pointer; }

/* ---- analytics consent (consent.js, userbus/docs#21) ---- */
.consent {
  position: fixed; z-index: 20; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); max-width: 40em;
  display: grid; gap: 14px; padding: 18px 20px; background: var(--white); color: var(--black);
  border: 3px solid var(--black); border-radius: var(--r-lg); box-shadow: 0 6px 0 var(--black); font-size: 0.95rem;
}
.consent[hidden] { display: none; }
.consent-text a { font-weight: 700; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-button {
  font: inherit; font-weight: 700; cursor: pointer; padding: 10px 18px; border-radius: var(--r-md);
  border: 2px solid var(--black); background: var(--white); color: var(--black);
}
.consent-button-primary { background: var(--black); color: var(--white); }
.consent-button:hover { background: var(--yellow); color: var(--black); }

/* ---- inner pages ---- */
.page-hero { background: var(--yellow); padding-block: clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); max-width: 14ch; }
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 56px 0 14px; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 8px; }
.prose p + p, .prose ul + p, .prose p + ul, .prose p + ol { margin-top: 14px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.facts { margin-top: 24px; border-top: 3px solid var(--black); }
.facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--black); }
.facts dt { font-weight: 700; }


/* full provider calculator */

/* legal pages: their <main> is pinned byte for byte, so it is styled by its own class names */
.legal-page .page-head { padding-block: clamp(40px, 6vw, 80px) 8px; }
.legal-page h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
.legal-page .eyebrow { display: none; }
.legal-page .breadcrumb, .legal-page .note { font-size: 0.92rem; color: var(--grey); margin-bottom: 18px; }
.legal-page .intro, .legal-page .lede { margin-top: 20px; font-size: 1.2rem; max-width: 40em; }
.legal-page .section { padding-block: 28px; }
.legal-page .section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.025em; max-width: none; margin-bottom: 12px; }
.legal-page .section h3 { margin: 22px 0 6px; }
.legal-page .section p, .legal-page .plain-list { max-width: 46em; }
.legal-page .section p + p, .legal-page .plain-list { margin-top: 12px; }
.plain-list { list-style: disc; padding-left: 1.2em; }
.plain-list li + li { margin-top: 6px; }
.legal-page > :last-child { padding-bottom: var(--section); }

/* ---- route spine: on wide screens the page itself is the line, and every section is a stop ---- */
@media (min-width: 1100px) {
  .spine > .section { padding-block: 0; }
  .spine > .section > .wrap { position: relative; padding-block: var(--section); padding-left: calc(var(--gutter) + 76px); }
  .spine > .section > .wrap::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) + 17px); width: 6px; background: var(--line, var(--black));
  }
  .spine > .section:last-child > .wrap::before { bottom: auto; height: calc(var(--section) + 20px); }
  .stop { position: relative; }
  .stop::before {
    content: attr(data-stop); position: absolute; left: -76px; top: 0.12em;
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--white); color: var(--black); border: 6px solid var(--line, var(--black));
    font-size: 0.95rem; letter-spacing: 0; line-height: 1;
  }
  .stop[data-stop]::before { width: 46px; height: 46px; left: -79px; background: var(--black); color: var(--yellow); border-color: var(--black); font-size: 1.15rem; }
  .stop[data-stop="P"]::before { background: var(--white); color: var(--black); }
  .spine .line-tag .bullet { display: none; }
}

/* ---- small screens ---- */
@media (max-width: 900px) {
  .strip-row { flex-wrap: wrap; gap: 8px 20px; padding-block: 12px; }
  .strip-nav { order: 3; width: 100%; margin-left: 0; gap: 0 20px; font-size: 0.95rem; }
  .strip-nav a { padding-block: 12px; }
  .strip-cta { margin-left: auto; }
  .hero-grid, .calc, .how, .faq { grid-template-columns: minmax(0, 1fr); }
  .bus-body { border-radius: var(--r-lg); padding: 12px; }
  .taxi { grid-template-columns: minmax(0, 1fr); }
  .taxi .compare-wrap { margin-top: 24px; }
  .taxi .fine { grid-column: 1; }
  .route { grid-template-columns: 1fr; gap: 0; }
  .route li { padding: 4px 0 36px 68px; }
  .route li::before { top: 0; bottom: 0; left: 16px; right: auto; width: 8px; height: auto; }
  .route li:last-child::before { width: 8px; height: 22px; bottom: auto; }
  .route .route-interchange::after { width: 40px; }
  .footer p { margin-left: 0; }
}
@media (max-width: 700px) {
  .compare { font-size: 0.92rem; }
  .compare th, .compare td { padding: 12px 10px 12px 0; }
  .compare tbody th { width: 4.4em; }
  .compare td:last-child, .compare thead th:last-child { padding-left: 10px; }
  .compare thead th, .compare thead td { font-size: 1.05rem; }
}
@media (max-width: 600px) {
  .doors, .calc-inputs { grid-template-columns: 1fr; }
  /* the phone header keeps the two audience lines; the other two links live in the footer */
  .strip-nav .nav-more { display: none; }
  .strip-nav a { padding-block: 8px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .pair { grid-template-columns: 1fr; gap: 6px; }
  .mark { font-size: 0.8rem; }
  .legend-line { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .door, .calc, .button, .mark, .asks li, .shot img, .how-note, .consent, .consent-button { border-color: CanvasText; }
  .route li::after, .stop::before { forced-color-adjust: none; }
  .asks [data-state="takes"] { outline: 3px solid Highlight; }
}
