/* Layout: QuickHelp24 brand (brand/quickhelp24/BRAND.md). No blue, Ask Gary style: white header, charcoal bands, warm cream panels, signal red for the call button (the one accent), Archivo for display. */
:root {
  --sign: #17181c;        /* charcoal: hero, bands, footer (Ask Gary style) */
  --sign-ink: #ffffff;
  --head-bg: #ffffff;     /* white header, like Ask Gary */
  --head-ink: #16171a;
  --brand-num: #d62828;   /* red "24" in the header wordmark */
  --cta: #d62828;         /* signal red: call/CTA only, white text on it (5.0:1) */
  --cta-ink: #ffffff;
  --cta-on-dark: #ff5a4e; /* red for text/marks on charcoal (5.8:1) */
  --accent-text: #b3202a; /* deep red: links and text accents on white (6.7:1) */
  --bg: #faf8f6;          /* warm off-white page */
  --surface: #ffffff;
  --fg: #16171a;
  --muted: #5e5752;
  --line: #e5ddd5;
  --tint: #f4efeb;        /* warm cream panels */
  --danger: #b3261e;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sign: #1c1d21; --sign-ink: #ffffff; --head-bg: #1c1c1f; --head-ink: #f2eeea; --brand-num: #ff5a4e; --cta: #d62828; --cta-ink: #ffffff; --cta-on-dark: #ff5a4e; --accent-text: #ff8a80;
    --bg: #121214; --surface: #1c1c1f; --fg: #f2eeea; --muted: #b5ada6; --line: #34302d; --tint: #2a2220; --danger: #f2867e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sign: #1c1d21; --sign-ink: #ffffff; --head-bg: #1c1c1f; --head-ink: #f2eeea; --brand-num: #ff5a4e; --cta: #d62828; --cta-ink: #ffffff; --cta-on-dark: #ff5a4e; --accent-text: #ff8a80;
  --bg: #121214; --surface: #1c1c1f; --fg: #f2eeea; --muted: #b5ada6; --line: #34302d; --tint: #2a2220; --danger: #f2867e;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 16px/1.6 var(--body); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cta); outline-offset: 2px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 700 0.78rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.section { padding-block: 64px; }
.section-head { display: grid; gap: 10px; max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--head-bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--head-bg); color: var(--head-ink); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding-block: 12px; flex-wrap: wrap; min-height: 62px; }
/* The header is drawn by app.js; reserve the ad-page header's height so content doesn't jump down (CLS). */
[data-header="minimal"] { min-height: 63px; background: var(--head-bg); } /* 62px row + 1px bottom border */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.25rem/1 var(--display); letter-spacing: 0.01em; }
.brand-mark { display: block; width: 36px; height: 36px; flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-24 { color: var(--brand-num); }
.nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.9; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.header-phone { font: 800 1.05rem/1 var(--display); background: var(--cta); color: var(--cta-ink); padding: 10px 14px; border-radius: var(--radius); text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { .nav { order: 3; width: 100%; margin-left: 0; gap: 14px; font-size: 0.9rem; } .header-phone { margin-left: auto; } }

/* Hero */
.hero { background: var(--sign); color: var(--sign-ink); padding-block: 48px 64px; border-bottom: 6px solid var(--cta); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.hero-copy { display: grid; gap: 20px; min-width: 0; padding-top: 12px; }
.hero-copy .eyebrow { color: var(--sign-ink); opacity: 0.8; }
.hero-copy .lede { font-size: 1.15rem; max-width: 52ch; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.big-phone { display: grid; gap: 2px; background: var(--cta); color: var(--cta-ink); padding: 14px 20px; border-radius: var(--radius); text-decoration: none; }
.big-phone small { font: 700 0.72rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; }
.big-phone strong { font: 800 1.6rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.btn-ghost { color: var(--sign-ink); border: 2px solid currentColor; padding: 14px 18px; border-radius: var(--radius); font-weight: 700; text-decoration: none; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; font-size: 0.95rem; }
.hero-points li::before { content: "✓ "; color: var(--cta-on-dark); }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* Form */
.intake { background: var(--surface); color: var(--fg); border-radius: 8px; padding: 24px; box-shadow: 0 14px 40px rgba(0,0,0,0.22); display: grid; gap: 14px; min-width: 0; }
.intake h2 { font-size: 1.5rem; }
.intake .sub { color: var(--muted); font-size: 0.92rem; margin-top: -6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; min-width: 0; }
.field label, .field legend { font-size: 0.85rem; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; width: 100%; }
.field textarea { min-height: 76px; resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--danger); }
.yesno { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.yesno .opts { display: flex; gap: 8px; }
.yesno .opts label { flex: 1; display: flex; gap: 6px; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 8px; font-weight: 600; cursor: pointer; }
.yesno .opts input { accent-color: var(--sign); }
.yesno .opts label:has(input:checked) { border-color: var(--accent-text); background: var(--tint); }
.consent { display: flex; gap: 10px; font-size: 0.78rem; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 3px; accent-color: var(--sign); flex: none; }
.submit { font: 800 1.1rem/1 var(--display); background: var(--cta); color: var(--cta-ink); border: 0; border-radius: var(--radius); padding: 16px; cursor: pointer; }
.submit:hover { filter: brightness(1.05); }
.form-error { color: var(--danger); font-size: 0.88rem; font-weight: 600; }
.form-done { display: grid; gap: 10px; text-align: left; }
.form-done h2 { color: var(--accent-text); }

/* Photo hero: photo tinted with the navy sign color so text stays readable */
.hero.photo { background:
  linear-gradient(100deg, color-mix(in srgb, var(--sign) 94%, transparent) 30%, color-mix(in srgb, var(--sign) 78%, transparent)),
  var(--hero-img) center / cover no-repeat, var(--sign); }
@media (max-width: 760px) {
  .hero.photo { background:
    linear-gradient(100deg, color-mix(in srgb, var(--sign) 94%, transparent) 30%, color-mix(in srgb, var(--sign) 78%, transparent)),
    var(--hero-img-m, var(--hero-img)) center / cover no-repeat, var(--sign); }
}
.hero-points.badges { gap: 8px; }
.hero-points.badges li { background: color-mix(in srgb, var(--sign-ink) 12%, transparent); border: 1px solid color-mix(in srgb, var(--sign-ink) 25%, transparent); padding: 6px 12px; border-radius: 999px; font-size: 0.88rem; }

/* Accident tiles with dark photo backgrounds */
.type.photo { min-height: 190px; align-content: end; border: 0; color: #fff;
  background: linear-gradient(to top, rgba(16, 16, 18, .92) 15%, rgba(16, 16, 18, .25)), var(--img) center / cover no-repeat, var(--sign); }
.type.photo p { color: rgba(255, 255, 255, .85); }
.type.photo h3 span { color: var(--cta-on-dark); }
.type.photo:hover { outline: 3px solid var(--cta); outline-offset: -3px; }
.split-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }

/* Helpline home layout */
.hero-sub { font: 700 clamp(1.15rem, 2.2vw, 1.45rem)/1.3 var(--display); max-width: 34ch; }
.btn-solid { justify-self: start; display: inline-block; background: var(--cta); color: var(--cta-ink); font: 800 1.05rem/1 var(--display); padding: 16px 22px; border-radius: var(--radius); text-decoration: none; }
.btn-solid:hover { filter: brightness(1.05); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

.steps-band { background: var(--tint); }
.steps-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.steps-intro { display: grid; gap: 18px; min-width: 0; }
.steps-intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.steps-intro h2 em { font-style: normal; color: var(--accent-text); }
.steps-intro p { color: var(--muted); max-width: 46ch; }
.step-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.step-cards li { background: var(--surface); border-radius: 8px; padding: 20px 22px; display: grid; gap: 4px; box-shadow: 0 2px 10px rgba(22, 23, 26, .06); }
.step-cards .step-num { font: 700 0.8rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-text); }
.step-cards h3 { font-size: 1.3rem; }
.step-cards p:last-child { color: var(--muted); }
@media (max-width: 860px) { .steps-split { grid-template-columns: 1fr; gap: 28px; } }

.service-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto; }
.service-card { display: grid; grid-template-rows: auto 1fr; background: var(--sign); color: var(--sign-ink); border-radius: 10px; overflow: hidden; text-decoration: none; }
.service-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.service-card > div { display: grid; gap: 10px; padding: 24px 26px 28px; text-align: center; justify-items: center; align-content: start; }
.service-card h3 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; }
.service-sub { font: 700 1.05rem/1.3 var(--display); color: var(--cta-on-dark); }
.service-card p:not(.service-sub) { opacity: .88; max-width: 42ch; }
.service-btn { margin-top: 6px; background: var(--cta); color: var(--cta-ink); font: 800 1rem/1 var(--display); padding: 14px 20px; border-radius: var(--radius); }
.service-card:hover .service-btn { filter: brightness(1.06); }
@media (max-width: 760px) { .service-cards { grid-template-columns: 1fr; } }

.final-cta { background: var(--sign); color: var(--sign-ink); border-top: 6px solid var(--cta); }
.final-cta .wrap { display: grid; gap: 14px; justify-items: center; text-align: center; padding-block: 56px; }
.final-cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.final-cta p { opacity: .9; max-width: 52ch; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.final-actions .btn-ghost { color: var(--sign-ink); }

/* Articles */
.article-hero { background: var(--sign); color: var(--sign-ink); padding-block: 40px 44px; border-bottom: 6px solid var(--cta); }
.article-hero .wrap { display: grid; gap: 14px; max-width: 1120px; }
.crumbs { font-size: .85rem; opacity: .85; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: inherit; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 26ch; }
.article-meta { font-size: .88rem; opacity: .8; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding-block: 48px 64px; }
.article-aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
.article-aside .intake { box-shadow: 0 10px 30px rgba(22, 23, 26, .14); }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .article-aside { position: static; } }
.prose { display: grid; gap: 16px; max-width: 68ch; font-size: 1.05rem; }
.prose h2 { font-size: 1.6rem; margin-top: 18px; }
.prose h3 { font-size: 1.2rem; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose a { color: var(--accent-text); }
.prose .lead { font-size: 1.15rem; color: var(--fg); }
.callout { background: var(--tint); border-left: 4px solid var(--accent-text); border-radius: 6px; padding: 14px 18px; }
.callout.warn { border-left-color: var(--danger); }
.callout strong { display: block; margin-bottom: 4px; }
.fineprint { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.guide-card { display: grid; gap: 8px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 20px; text-decoration: none; }
.guide-card:hover { border-color: var(--accent-text); }
.guide-card .tag { font: 700 .75rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); }
.guide-card p { color: var(--muted); font-size: .95rem; }

/* Quiz form */
.quiz { gap: 18px; }
.quiz-top { display: grid; gap: 8px; }
.progress { height: 6px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--cta); border-radius: inherit; transition: width .25s ease; }
.step-count { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.q { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.q legend { padding: 0; margin-bottom: 4px; }
.q h2 { font-size: 1.55rem; outline: none; }
.choices { display: grid; gap: 10px; }
.choices.many { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .choices.many { grid-template-columns: 1fr; } }
.choice { font: 700 1.05rem/1.2 var(--body); text-align: left; color: var(--fg); background: var(--bg); border: 2px solid var(--line); border-radius: 8px; padding: 16px 18px; cursor: pointer; min-height: 56px; }
.choice:hover { border-color: var(--cta); }
.choice[aria-pressed="true"] { border-color: var(--accent-text); background: var(--tint); }
.q.contact { gap: 12px; }
.back { justify-self: start; background: none; border: 0; color: var(--muted); font: 600 0.9rem var(--body); cursor: pointer; padding: 4px 0; }
.back:hover { color: var(--fg); }

/* Sticky mobile call-to-action */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--sign);
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    box-shadow: 0 -6px 20px rgba(0,0,0,.18); transition: transform .2s ease; }
  .sticky-cta a { display: block; text-align: center; background: var(--cta); color: var(--cta-ink); font: 800 1.1rem/1 var(--display); padding: 16px; border-radius: var(--radius); text-decoration: none; }
  .sticky-cta.away, .lead-done .sticky-cta { transform: translateY(110%); }
  body { padding-bottom: 84px; }
}
.header-phone.push { margin-left: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { display: grid; gap: 8px; padding-top: 18px; border-top: 4px solid var(--accent-text); }
.step::before { counter-increment: step; content: "Step " counter(step); font: 700 0.78rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Case types: road-sign tiles */
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.types:has(> :nth-child(5)) { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } /* 6 or 9 cards fill rows of 3 */
.type { display: grid; gap: 6px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; }
.type:hover { border-color: var(--accent-text); }
.type h3 { display: flex; justify-content: space-between; gap: 8px; }
.type h3 span { color: var(--accent-text); }
.type p { color: var(--muted); font-size: 0.93rem; }
.trust .type h3 { justify-content: flex-start; align-items: baseline; }
.trust .tick { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--accent-text); font-size: 0.85rem; flex: none; }

/* Split doctor/lawyer */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split > div { background: var(--tint); border-radius: 8px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.split p { color: var(--muted); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Checklist (subject detail) */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; list-style: none; padding: 0; margin: 0; counter-reset: c; }
.checklist li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist li::before { counter-increment: c; content: counter(c); display: grid; place-items: center; width: 34px; height: 34px; background: var(--sign); color: var(--sign-ink); font: 800 1rem/1 var(--display); border-radius: 4px; }
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--surface); border: 1.5px dashed var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.review .tag { justify-self: start; font: 700 0.7rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.1em; background: var(--tint); color: var(--muted); padding: 5px 8px; border-radius: 4px; }
.review cite { font-style: normal; font-weight: 700; font-size: 0.9rem; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 800px; }
.faq details { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq summary { cursor: pointer; font: 700 1.05rem/1.3 var(--display); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--cta); color: var(--cta-ink); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-block: 36px; }
.cta-band strong { font: 800 clamp(1.4rem, 3vw, 2rem)/1.1 var(--display); }
.cta-band a { background: var(--sign); color: var(--sign-ink); font: 800 1.15rem/1 var(--display); padding: 16px 22px; border-radius: var(--radius); text-decoration: none; }

/* Footer */
.site-footer { background: var(--fg); color: var(--bg); padding-block: 48px 32px; font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 28px; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.foot-cols ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.foot-cols a { text-decoration: none; opacity: 0.85; }
.disclaimer { border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); padding-top: 20px; opacity: 0.8; font-size: 0.8rem; display: grid; gap: 8px; max-width: 900px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr; } }

.placeholder-note { background: var(--tint); border-left: 4px solid var(--cta); padding: 10px 14px; font-size: 0.85rem; color: var(--muted); border-radius: 4px; }

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

/* Ad landing pages on phones: put the first quiz question on the first screen.
   The sticky button already covers the call to action, so the lede and hero buttons are hidden here. */
@media (max-width: 760px) {
  [data-header="minimal"] + main .hero { padding-block: 20px 32px; }
  [data-header="minimal"] + main .hero .wrap { gap: 18px; }
  [data-header="minimal"] + main .hero-copy { gap: 10px; padding-top: 0; }
  [data-header="minimal"] + main .hero-copy .lede,
  [data-header="minimal"] + main .hero-copy .hero-actions,
  [data-header="minimal"] + main .hero-copy > .eyebrow { display: none; }
  [data-header="minimal"] + main .hero-points.badges li:nth-child(n+3) { display: none; }
  [data-header="minimal"] + main .hero h1 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }
}
.field .opt { font-weight: 400; opacity: 0.7; }
.emergency { font-size: 0.85rem; }
/* Ad pages on phones: keep the logo and the header button on one line (a second line pushed the quiz down ~50px). */
@media (max-width: 760px) {
  [data-header="minimal"] .site-header .wrap { flex-wrap: nowrap; gap: 10px; }
  [data-header="minimal"] .brand { font-size: 1.1rem; }
  [data-header="minimal"] .header-phone { font-size: 0.92rem; padding: 9px 12px; }
}
/* Quick-callback link under the quiz, and the "also find me a doctor" option on the contact step */
.quick-cb { background: none; border: 0; padding: 4px 0; font: 600 0.92rem/1.3 var(--body, inherit); color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.quick-cb[hidden] { display: none; }
.consent.addon { background: var(--tint, transparent); border-radius: var(--radius); padding: 10px 12px; font-weight: 600; }
.reviews-band blockquote { margin: 0; font-size: 1rem; }
.reviews-band figcaption { margin-top: 10px; color: var(--muted); font-weight: 600; }

/* Design pass (frontend-design, 2026-11-22). One memorable thing: the quiz card's header is a
   highway guide sign (navy plate, inset white rule, Archivo). Everything else gets quieter. */
.quiz-top.plate { background: var(--sign); color: var(--sign-ink); border-radius: 8px; padding: 14px 18px 16px; gap: 2px;
  box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 6px var(--sign-ink); }
.plate-title { font: 800 1.35rem/1.15 var(--display); letter-spacing: 0.01em; }
.plate-sub { font: 600 0.9rem/1.3 var(--body); opacity: 0.85; }
.quiz-top.plate .progress { margin-top: 10px; background: color-mix(in srgb, var(--sign-ink) 22%, transparent); }
.quiz-top.plate .step-count { color: var(--sign-ink); opacity: 0.8; margin-top: 6px; font-size: 0.8rem; }
@media (max-width: 760px) {
  .quiz-top.plate { padding: 10px 14px 12px; }
  .plate-title { font-size: 1.15rem; }
  .quiz-top.plate .progress { margin-top: 8px; }
}

/* No tracked all-caps labels above headings: the headings already say what the section is. */
.section-head > .eyebrow, .hero-copy > .eyebrow, .steps-intro > .eyebrow { display: none; }

/* Hero trust points: plain checked text, not pills. */
.hero-points.badges { gap: 6px 18px; }
.hero-points.badges li { background: none; border: 0; padding: 0; border-radius: 0; font-size: 0.95rem; }

/* "How it works" is a real sequence: big Archivo numerals, like exit numbers. */
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
ol.steps > li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-content: start; }
ol.steps > li::before { counter-increment: step; content: counter(step); grid-row: span 3; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 6px; background: var(--sign); color: var(--sign-ink); font: 800 1.35rem/1 var(--display);
  box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 4.5px var(--sign-ink); }
ol.steps > li > .step-num { display: none; }
ol.steps > li > p { color: var(--muted); }

/* Situations: an open list with rules, not a grid of identical cards. Linked tiles and photo tiles keep their own look. */
.types > div.type:not(.photo) { background: none; border: 0; border-top: 2px solid var(--line); border-radius: 0; padding: 14px 0 0; }
.types:has(> div.type:not(.photo)) { gap: 22px 32px; }
/* Keep the sign compact: title and time on one line, progress and count under them. */
.quiz-top.plate { grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; }
.quiz-top.plate .progress, .quiz-top.plate .step-count { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .quiz-top.plate .step-count { margin-top: 4px; }
  [data-header="minimal"] + main .hero-points.badges { gap: 4px 12px; }
  [data-header="minimal"] + main .hero-points.badges li { font-size: 0.82rem; }
}
/* Sign layout: title on its own line; time and question count share the next one. */
.quiz-top.plate { grid-template-columns: 1fr auto; row-gap: 2px; }
.quiz-top.plate .plate-title { grid-column: 1 / -1; }
.quiz-top.plate .plate-sub { grid-column: 1; grid-row: 2; }
.quiz-top.plate .step-count { grid-column: 2; grid-row: 2; margin: 0; }
.quiz-top.plate .progress { grid-column: 1 / -1; grid-row: 3; }
/* Small phones: the header button keeps just the number so it never runs off the screen. */
@media (max-width: 400px) { [data-header="minimal"] .header-phone .call-word { display: none; } }

/* QuickHelp24: the footer flips colors in dark mode, so the "24" there takes the text color. */
.site-footer .brand-24 { color: inherit; }

/* Human photos (brand/quickhelp24/photos, AI illustrations): "real people" band and the 3-photo strip. */
.people-band { background: var(--tint); }
.people { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.people-photo, .photo-strip figure { margin: 0; min-width: 0; }
.people-photo img, .photo-strip img { display: block; width: 100%; height: auto; border-radius: 12px; }
.people-photo figcaption, .photo-note { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.people-copy { display: grid; gap: 14px; min-width: 0; }
.people-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.people-copy p:not(.eyebrow) { color: var(--muted); max-width: 48ch; }
.people-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.btn-line { display: inline-block; color: var(--fg); border: 2px solid currentColor; padding: 14px 20px; border-radius: var(--radius); font: 800 1.05rem/1 var(--display); text-decoration: none; }
.btn-line:hover { color: var(--accent-text); }
.strip-band { background: var(--surface); }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.photo-strip figcaption { margin-top: 12px; color: var(--muted); font-size: 0.95rem; }
.photo-strip figcaption b { display: block; color: var(--fg); font: 800 1.1rem/1.3 var(--display); margin-bottom: 4px; }
.photo-note { text-align: center; margin-top: 18px; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; gap: 24px; } .photo-strip { grid-template-columns: 1fr; gap: 28px; } }

/* Brand option B: red uppercase tagline under the name, sized by app.js (fitBrandTags) to the width of the name. */
.brand-text { display: grid; gap: 4px; justify-items: start; }
.brand-tag { font: 800 0.7rem/1 var(--display); text-transform: uppercase; letter-spacing: 0; color: var(--brand-num); white-space: nowrap; }
.brand-mark { width: 44px; height: 44px; }
.site-header .brand { font-size: 1.6rem; letter-spacing: 0; }
@media (max-width: 760px) { .site-header .brand { font-size: 1.35rem; } .brand-mark { width: 38px; height: 38px; } }
[data-header="minimal"] .site-header .brand { font-size: 1.3rem; }
.site-footer .brand-tag { display: none; }

/* Guide sources (E-E-A-T): official statutes and health sources under each article. */
.sources { margin-top: 32px; padding: 18px 20px; background: var(--tint); border-radius: 10px; }
.sources h2 { font-size: 1.15rem; margin: 0 0 8px; }
.sources ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.sources a { color: var(--accent-text); }
.sources .fineprint { margin: 10px 0 0; }
