/* ==========================================================================
   Truck accident filing deadline calculator
   ==========================================================================

   ┌────────────────────────────────────────────────────────────────────────┐
   │  THEME BLOCK — this is the only part a new brand edits.                │
   │  Everything below the "END THEME BLOCK" marker is structure and should │
   │  not need touching to re-skin the tool.                                │
   └────────────────────────────────────────────────────────────────────────┘

   The stylesheet is self-contained. It does not depend on app.css, so the
   tool drops onto another property as four files: this, calculator.js,
   calculator-brand.js and data/statutes.json.

   Light and dark both come from prefers-color-scheme. To force one, put
   data-tdc-theme="light" or "dark" on <html>.
   ========================================================================== */

:root {
  /* ---- brand ----------------------------------------------------------- */
  --tdc-brand:        #0B2265;   /* dominant field — accident.live DOT navy  */
  --tdc-brand-deep:   #06174A;
  --tdc-brand-ink:    #F2F4F8;   /* text on --tdc-brand                      */

  /* Urgency. Reserved for real deadlines only — never decoration. */
  --tdc-alert:        #C8102E;
  --tdc-alert-deep:   #8E1024;
  --tdc-alert-tint:   #FDECEE;
  --tdc-alert-ink:    #ffffff;

  --tdc-warn:         #A8630A;   /* evidence clock — distinct from alert     */
  --tdc-warn-tint:    #FFF6E6;

  --tdc-ok:           #1B7F4E;

  /* ---- surfaces -------------------------------------------------------- */
  --tdc-page:         #DCE1EA;
  --tdc-surface:      #ffffff;
  --tdc-surface-2:    #F2F4F8;
  --tdc-line:         rgba(11, 34, 101, .14);
  --tdc-line-strong:  rgba(11, 34, 101, .26);

  /* ---- text ------------------------------------------------------------ */
  --tdc-ink:          #1D2430;
  --tdc-ink-2:        #3A4250;
  --tdc-muted:        #5A6472;
  --tdc-muted-2:      #78818F;

  /* ---- type ------------------------------------------------------------
     Deliberately a system stack: a webfont is a render-blocking request on
     a page someone may open on hospital wifi. Point this at a loaded family
     if the brand requires one, and load it with font-display: swap. */
  --tdc-font:   system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tdc-mono:   ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tdc-numeric: "tnum" 1, "lnum" 1;

  /* ---- shape ----------------------------------------------------------- */
  --tdc-radius:      14px;
  --tdc-radius-sm:   9px;
  --tdc-shadow:      0 10px 30px rgba(6, 23, 74, .13);
  --tdc-shadow-soft: 0 2px 10px rgba(6, 23, 74, .07);

  /* ---- metrics --------------------------------------------------------- */
  --tdc-measure:  740px;   /* reading column                                */
  --tdc-wide:     1120px;  /* full-bleed sections                           */
  --tdc-gutter:   16px;
  --tdc-tap:      48px;    /* minimum interactive target — WCAG 2.2 AA      */

  /* ---- logo slot -------------------------------------------------------
     Set --tdc-logo to a url(...) to render a brand mark in the header. The
     wordmark falls back to the brand name text when this is none. */
  --tdc-logo:        none;
  --tdc-logo-width:  132px;
  --tdc-logo-height: 26px;

  color-scheme: light dark;
}

/* ---- dark ---------------------------------------------------------------
   Guarded so an explicit data-tdc-theme="light" still wins on a device set
   to dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-tdc-theme="light"]) {
    --tdc-brand:       #9DB4F0;
    --tdc-brand-deep:  #050D24;
    --tdc-brand-ink:   #EAF0FF;

    --tdc-alert:       #FF6B7F;
    --tdc-alert-deep:  #C8102E;
    --tdc-alert-tint:  #2B0F16;
    --tdc-alert-ink:   #1A0409;

    --tdc-warn:        #F0B357;
    --tdc-warn-tint:   #2A2010;

    --tdc-ok:          #5FD69B;

    --tdc-page:        #0A101E;
    --tdc-surface:     #141C2C;
    --tdc-surface-2:   #1C2536;
    --tdc-line:        rgba(157, 180, 240, .20);
    --tdc-line-strong: rgba(157, 180, 240, .38);

    --tdc-ink:         #EAEEF6;
    --tdc-ink-2:       #D2D9E6;
    --tdc-muted:       #A3ACBC;
    --tdc-muted-2:     #8A93A3;

    --tdc-shadow:      0 10px 30px rgba(0, 0, 0, .5);
    --tdc-shadow-soft: 0 2px 10px rgba(0, 0, 0, .35);
  }
}

:root[data-tdc-theme="dark"] {
  --tdc-brand:       #9DB4F0;
  --tdc-brand-deep:  #050D24;
  --tdc-brand-ink:   #EAF0FF;
  --tdc-alert:       #FF6B7F;
  --tdc-alert-deep:  #C8102E;
  --tdc-alert-tint:  #2B0F16;
  --tdc-alert-ink:   #1A0409;
  --tdc-warn:        #F0B357;
  --tdc-warn-tint:   #2A2010;
  --tdc-ok:          #5FD69B;
  --tdc-page:        #0A101E;
  --tdc-surface:     #141C2C;
  --tdc-surface-2:   #1C2536;
  --tdc-line:        rgba(157, 180, 240, .20);
  --tdc-line-strong: rgba(157, 180, 240, .38);
  --tdc-ink:         #EAEEF6;
  --tdc-ink-2:       #D2D9E6;
  --tdc-muted:       #A3ACBC;
  --tdc-muted-2:     #8A93A3;
  --tdc-shadow:      0 10px 30px rgba(0, 0, 0, .5);
  --tdc-shadow-soft: 0 2px 10px rgba(0, 0, 0, .35);
}

/* ======================= END THEME BLOCK ================================= */


/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--tdc-page);
  color: var(--tdc-ink);
  font-family: var(--tdc-font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--tdc-brand); text-underline-offset: .18em; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--tdc-warn);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  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;
}

.tdc-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--tdc-warn); color: #1A1204;
  font-weight: 600; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.tdc-skip:focus { left: 0; }

/* --- layout --------------------------------------------------------------- */

.tdc-wrap { width: 100%; max-width: var(--tdc-wide); margin-inline: auto; padding-inline: var(--tdc-gutter); }
.tdc-col  { width: 100%; max-width: var(--tdc-measure); margin-inline: auto; }

.tdc-section { padding-block: 44px; }
.tdc-section--tint { background: var(--tdc-surface-2); }
.tdc-section__head { font-size: clamp(22px, 5vw, 29px); line-height: 1.22; letter-spacing: -.015em; margin-bottom: 12px; }
.tdc-section__lede { color: var(--tdc-ink-2); margin-bottom: 20px; }

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

.tdc-header {
  background: var(--tdc-brand-deep);
  color: var(--tdc-brand-ink);
  padding-block: 12px;
}
.tdc-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tdc-wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: -.02em; font-size: 18px;
  color: var(--tdc-brand-ink); text-decoration: none;
}
.tdc-wordmark__logo {
  display: var(--tdc-logo-display, none);
  width: var(--tdc-logo-width); height: var(--tdc-logo-height);
  background: var(--tdc-logo) center / contain no-repeat;
}
.tdc-header__back { display: inline-block; padding-block: 5px; color: var(--tdc-brand-ink); opacity: .8; font-size: 14px; text-decoration: underline; }
.tdc-header__back:hover { opacity: 1; }

.tdc-footer { background: var(--tdc-brand-deep); color: var(--tdc-brand-ink); padding-block: 32px; margin-top: 8px; }
.tdc-footer a { color: var(--tdc-brand-ink); }
.tdc-footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; margin-bottom: 18px; }
.tdc-footer__links a { display: inline-block; padding-block: 5px; }
.tdc-footer__legal { font-size: 12.5px; line-height: 1.6; opacity: .74; margin-bottom: 12px; }
.tdc-footer__copy { font-size: 12.5px; opacity: .6; }

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

.tdc-hero {
  background: var(--tdc-brand-deep);
  color: var(--tdc-brand-ink);
  padding-block: 28px 30px;
}
.tdc-hero__h1 {
  font-size: clamp(25px, 6.4vw, 40px);
  line-height: 1.1; letter-spacing: -.024em;
  margin-bottom: 12px;
}
.tdc-hero__lede {
  font-size: clamp(16px, 4vw, 18.5px);
  line-height: 1.5;
  color: var(--tdc-brand-ink); opacity: .9;
  max-width: 54ch;
}
.tdc-hero__lede strong { opacity: 1; }

/* --- calculator card ------------------------------------------------------ */

.tdc-card {
  background: var(--tdc-surface);
  border: 1px solid var(--tdc-line);
  border-radius: var(--tdc-radius);
  box-shadow: var(--tdc-shadow);
  padding: 20px 16px 22px;
  margin-top: -22px;                 /* lift the tool over the hero edge */
  position: relative; z-index: 2;
}
.tdc-card__head { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 4px; }
.tdc-card__sub  { font-size: 14.5px; color: var(--tdc-muted); margin-bottom: 18px; }

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

.tdc-q { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.tdc-q__legend { display: flex; align-items: center; gap: 9px; padding: 0; margin-bottom: 9px; font-weight: 650; font-size: 16.5px; line-height: 1.3; }
.tdc-q__num {
  flex: 0 0 auto;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tdc-brand); color: var(--tdc-brand-ink);
  font-size: 13px; font-weight: 700;
}
:root[data-tdc-theme="dark"] .tdc-q__num,
.tdc-q__num { color: var(--tdc-surface); }
@media (prefers-color-scheme: dark) { :root:not([data-tdc-theme="light"]) .tdc-q__num { color: var(--tdc-brand-deep); } }
.tdc-q__hint { font-size: 14px; color: var(--tdc-muted); margin: -4px 0 10px 33px; }

.tdc-field { margin-bottom: 4px; }
.tdc-field__label { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }

.tdc-input, .tdc-select {
  width: 100%;
  min-height: var(--tdc-tap);
  padding: 11px 13px;
  background: var(--tdc-surface);
  color: var(--tdc-ink);
  border: 1.5px solid var(--tdc-line-strong);
  border-radius: var(--tdc-radius-sm);
  font-size: 16px;                   /* ≥16px stops iOS zooming on focus */
  font-variant-numeric: tabular-nums;
}
.tdc-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 18px center, right 13px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.tdc-input:focus, .tdc-select:focus { border-color: var(--tdc-brand); }

.tdc-choices { display: grid; gap: 8px; }
@media (min-width: 420px) { .tdc-choices { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }

.tdc-choice { position: relative; }
.tdc-choice input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.tdc-choice__label {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: var(--tdc-tap);
  padding: 10px 14px;
  border: 1.5px solid var(--tdc-line-strong);
  border-radius: var(--tdc-radius-sm);
  background: var(--tdc-surface);
  cursor: pointer;
}
.tdc-choice__title { font-weight: 600; font-size: 15.5px; }
.tdc-choice__sub   { font-size: 12.5px; color: var(--tdc-muted); line-height: 1.35; }
.tdc-choice input:checked + .tdc-choice__label {
  border-color: var(--tdc-brand);
  box-shadow: inset 0 0 0 1.5px var(--tdc-brand);
  background: color-mix(in srgb, var(--tdc-brand) 8%, var(--tdc-surface));
}
.tdc-choice input:focus-visible + .tdc-choice__label { outline: 3px solid var(--tdc-warn); outline-offset: 2px; }

.tdc-sub { margin-top: 12px; padding: 12px 13px; background: var(--tdc-surface-2); border-radius: var(--tdc-radius-sm); border: 1px solid var(--tdc-line); }
.tdc-sub__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.tdc-sub__hint  { font-size: 13px; color: var(--tdc-muted); margin-top: 8px; line-height: 1.45; }

.tdc-err { color: var(--tdc-alert-deep); font-size: 14px; font-weight: 600; margin-top: 7px; }
@media (prefers-color-scheme: dark) { :root:not([data-tdc-theme="light"]) .tdc-err { color: var(--tdc-alert); } }
:root[data-tdc-theme="dark"] .tdc-err { color: var(--tdc-alert); }

.tdc-actions { margin-top: 20px; }
.tdc-privacy { font-size: 13px; color: var(--tdc-muted); margin-top: 11px; line-height: 1.45; }

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

.tdc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tdc-tap);
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--tdc-radius-sm);
  font-size: 16px; font-weight: 650; line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}
.tdc-btn--go, .tdc-btn--cta {
  width: 100%;
  background: var(--tdc-alert-deep); color: #fff;
  box-shadow: 0 4px 14px rgba(200, 16, 46, .26);
}
.tdc-btn--go:hover, .tdc-btn--cta:hover { background: var(--tdc-alert); }
.tdc-btn--go[disabled] { background: var(--tdc-muted-2); box-shadow: none; cursor: not-allowed; }
.tdc-btn--ghost {
  background: var(--tdc-surface); color: var(--tdc-ink);
  border-color: var(--tdc-line-strong);
}
.tdc-btn--ghost:hover { border-color: var(--tdc-brand); }

/* --- results -------------------------------------------------------------- */

.tdc-results { margin-top: 26px; }
.tdc-results:focus { outline: none; }
.tdc-results__head { font-size: clamp(21px, 5vw, 27px); line-height: 1.2; letter-spacing: -.018em; }
.tdc-results__sub  { color: var(--tdc-muted); font-size: 14.5px; margin-bottom: 16px; }

.tdc-banner {
  border-radius: var(--tdc-radius-sm);
  padding: 13px 15px;
  font-size: 14.5px; line-height: 1.5;
  margin-bottom: 16px;
  border: 1.5px solid;
}
.tdc-banner--unverified { background: var(--tdc-warn-tint); border-color: var(--tdc-warn); color: var(--tdc-ink); }
.tdc-banner--error      { background: var(--tdc-alert-tint); border-color: var(--tdc-alert); color: var(--tdc-ink); }

/* the government notice panel — dominant when it applies */
.tdc-notice {
  background: var(--tdc-alert-tint);
  border: 2px solid var(--tdc-alert);
  border-radius: var(--tdc-radius);
  padding: 17px 15px;
  margin-bottom: 18px;
}
.tdc-notice__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tdc-alert-deep); margin-bottom: 5px;
}
@media (prefers-color-scheme: dark) { :root:not([data-tdc-theme="light"]) .tdc-notice__kicker { color: var(--tdc-alert); } }
:root[data-tdc-theme="dark"] .tdc-notice__kicker { color: var(--tdc-alert); }
.tdc-notice__head { font-size: 19px; line-height: 1.25; letter-spacing: -.012em; margin-bottom: 13px; }
.tdc-notice__figures { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 13px; }
.tdc-notice__body,
.tdc-notice__note { font-size: 14.5px; line-height: 1.55; color: var(--tdc-ink-2); margin-bottom: 9px; }
.tdc-notice__note--strong { font-weight: 600; color: var(--tdc-ink); }
.tdc-notice--passed { background: var(--tdc-surface-2); border-color: var(--tdc-line-strong); }

.tdc-stat { display: flex; flex-direction: column; }
.tdc-stat__v { font-size: clamp(23px, 6vw, 31px); font-weight: 750; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tdc-stat__l { font-size: 12.5px; color: var(--tdc-muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin-top: 3px; }
.tdc-stat.is-urgent .tdc-stat__v { color: var(--tdc-alert-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-tdc-theme="light"]) .tdc-stat.is-urgent .tdc-stat__v { color: var(--tdc-alert); } }
:root[data-tdc-theme="dark"] .tdc-stat.is-urgent .tdc-stat__v { color: var(--tdc-alert); }
.tdc-stat.is-passed .tdc-stat__v { color: var(--tdc-muted); }

.tdc-tiers { background: var(--tdc-surface); border-radius: var(--tdc-radius-sm); padding: 12px 14px; margin-bottom: 11px; }
.tdc-tiers__lede { font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.tdc-tiers__list { list-style: none; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--tdc-ink-2); }

.tdc-fed { background: var(--tdc-surface); border-left: 4px solid var(--tdc-brand); border-radius: 0 var(--tdc-radius-sm) var(--tdc-radius-sm) 0; padding: 12px 14px; margin: 12px 0 10px; font-size: 14px; line-height: 1.55; }

/* the two clocks */
.tdc-clocks { display: grid; gap: 14px; margin-bottom: 18px; }
@media (min-width: 720px) { .tdc-clocks { grid-template-columns: 1fr 1fr; align-items: start; } }

.tdc-clock {
  background: var(--tdc-surface);
  border: 1px solid var(--tdc-line);
  border-top: 4px solid var(--tdc-brand);
  border-radius: var(--tdc-radius);
  box-shadow: var(--tdc-shadow-soft);
  padding: 16px 15px;
}
.tdc-clock--evidence { border-top-color: var(--tdc-warn); }
.tdc-clock__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tdc-muted); margin-bottom: 6px; }
.tdc-clock__head { font-size: 16px; line-height: 1.3; margin-bottom: 11px; }
.tdc-clock__big {
  font-size: clamp(28px, 8vw, 38px); font-weight: 750; line-height: 1.02;
  letter-spacing: -.028em; font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.tdc-clock--evidence .tdc-clock__big { color: var(--tdc-warn); }
.tdc-clock__big.is-urgent { color: var(--tdc-alert-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-tdc-theme="light"]) .tdc-clock__big.is-urgent { color: var(--tdc-alert); } }
:root[data-tdc-theme="dark"] .tdc-clock__big.is-urgent { color: var(--tdc-alert); }
.tdc-clock__big.is-passed { color: var(--tdc-muted); font-size: clamp(20px, 5.4vw, 25px); }
.tdc-clock__date  { font-size: 15px; color: var(--tdc-ink-2); margin-bottom: 10px; }
.tdc-clock__basis { font-size: 13.5px; color: var(--tdc-muted); line-height: 1.5; margin-top: 10px; }

.tdc-eviList { list-style: none; display: grid; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--tdc-line); }
.tdc-eviList__item { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.45; }
.tdc-eviList__dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--tdc-warn); margin-top: 6px; }
.tdc-eviList__item.is-gone { color: var(--tdc-muted); }
.tdc-eviList__item.is-gone .tdc-eviList__dot { background: var(--tdc-muted-2); }
.tdc-eviList__status { color: var(--tdc-muted); }

.tdc-cite { font-family: var(--tdc-mono); font-size: 11.5px; color: var(--tdc-muted-2); line-height: 1.5; margin-top: 9px; word-break: break-word; }

.tdc-next {
  background: var(--tdc-surface-2);
  border-left: 4px solid var(--tdc-alert);
  border-radius: 0 var(--tdc-radius-sm) var(--tdc-radius-sm) 0;
  padding: 13px 15px; margin-bottom: 18px;
  font-size: 15px; line-height: 1.55;
}
.tdc-next__label { font-weight: 700; }

.tdc-passed {
  background: var(--tdc-surface); border: 1px solid var(--tdc-line-strong);
  border-radius: var(--tdc-radius); padding: 16px 15px; margin-bottom: 18px;
}
.tdc-passed__head { font-size: 17px; margin-bottom: 9px; }
.tdc-passed p { font-size: 14.5px; line-height: 1.55; color: var(--tdc-ink-2); margin-bottom: 9px; }
.tdc-passed__list { list-style: disc; padding-left: 20px; display: grid; gap: 7px; font-size: 14px; line-height: 1.5; color: var(--tdc-ink-2); margin-bottom: 11px; }
.tdc-passed__cta { font-weight: 650; color: var(--tdc-ink) !important; }

.tdc-details { background: var(--tdc-surface); border: 1px solid var(--tdc-line); border-radius: var(--tdc-radius); margin-bottom: 18px; }
.tdc-details__summary { padding: 14px 15px; font-weight: 650; font-size: 15px; cursor: pointer; min-height: var(--tdc-tap); display: flex; align-items: center; }
.tdc-dl { padding: 0 15px 15px; }
.tdc-dl__t { font-weight: 700; font-size: 15px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--tdc-line); }
.tdc-dl__d { margin: 0; }
.tdc-dl__date  { font-size: 15px; margin-top: 4px; }
.tdc-dl__basis { font-size: 13.5px; color: var(--tdc-muted); line-height: 1.5; margin-top: 4px; }
.tdc-dl__note  { font-size: 13.5px; color: var(--tdc-ink-2); line-height: 1.5; margin-top: 6px; }
.tdc-dl__caution { font-size: 13.5px; line-height: 1.5; margin-top: 6px; color: var(--tdc-ink); background: var(--tdc-warn-tint); border-radius: 6px; padding: 8px 10px; }

.tdc-steps { background: var(--tdc-surface); border: 1px solid var(--tdc-line); border-radius: var(--tdc-radius); padding: 16px 15px; margin-bottom: 18px; }
.tdc-steps__head { font-size: 18px; margin-bottom: 12px; }
.tdc-steps__list { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.tdc-steps__item { counter-increment: s; padding-left: 34px; position: relative; }
.tdc-steps__item::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tdc-brand); color: var(--tdc-surface);
  font-size: 12.5px; font-weight: 700;
}
@media (prefers-color-scheme: dark) { :root:not([data-tdc-theme="light"]) .tdc-steps__item::before { color: var(--tdc-brand-deep); } }
:root[data-tdc-theme="dark"] .tdc-steps__item::before { color: var(--tdc-brand-deep); }
.tdc-steps__title { display: block; font-size: 15px; line-height: 1.35; margin-bottom: 3px; }
.tdc-steps__body  { font-size: 14px; color: var(--tdc-ink-2); line-height: 1.5; }

/* --- case review ---------------------------------------------------------- */

.tdc-cta { background: var(--tdc-brand-deep); color: var(--tdc-brand-ink); border-radius: var(--tdc-radius); padding: 18px 16px 20px; margin-bottom: 18px; }
.tdc-cta__head { font-size: 19px; line-height: 1.25; letter-spacing: -.012em; margin-bottom: 9px; }
.tdc-cta__body { font-size: 14.5px; line-height: 1.55; opacity: .88; margin-bottom: 15px; }
.tdc-cta .tdc-field__label { color: var(--tdc-brand-ink); }
.tdc-cta .tdc-input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); color: var(--tdc-brand-ink); }
.tdc-cta .tdc-input:focus { border-color: var(--tdc-brand-ink); background: rgba(255,255,255,.12); }
.tdc-cta .tdc-err { color: #FFC0C8; }

.tdc-chips { margin-bottom: 15px; }
.tdc-chips__lede { font-size: 13.5px; opacity: .8; margin-bottom: 8px; }
.tdc-chips__list { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.tdc-chips__chip { display: inline-flex; gap: 6px; align-items: baseline; background: rgba(255,255,255,.1); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }
.tdc-chips__k { opacity: .68; }
.tdc-chips__v { font-weight: 650; }

.tdc-lead { display: grid; gap: 12px; }
.tdc-consent { display: flex; gap: 10px; align-items: flex-start; }
.tdc-consent input { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--tdc-alert); }
.tdc-consent__label { font-size: 12px; line-height: 1.5; opacity: .85; cursor: pointer; }
.tdc-lead__note { font-size: 12.5px; opacity: .74; line-height: 1.45; text-align: center; }

/* --- share / print -------------------------------------------------------- */

.tdc-share { background: var(--tdc-surface); border: 1px solid var(--tdc-line); border-radius: var(--tdc-radius); padding: 16px 15px; margin-bottom: 18px; }
.tdc-share__head { font-size: 17px; margin-bottom: 7px; }
.tdc-share__body { font-size: 14.5px; color: var(--tdc-ink-2); line-height: 1.5; margin-bottom: 13px; }
.tdc-share__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tdc-share__status { font-size: 13.5px; color: var(--tdc-muted); }
.tdc-share__raw { background: var(--tdc-surface-2); border-radius: var(--tdc-radius-sm); padding: 12px; margin-top: 12px; font-family: var(--tdc-mono); font-size: 11.5px; line-height: 1.5; white-space: pre-wrap; overflow-x: auto; }

.tdc-disclaimer { font-size: 12.5px; color: var(--tdc-muted); line-height: 1.6; padding: 14px 0 0; border-top: 1px solid var(--tdc-line); }

/* --- prose ---------------------------------------------------------------- */

.tdc-prose > * + * { margin-top: 15px; }
.tdc-prose h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.012em; margin-top: 26px; }
.tdc-prose p, .tdc-prose li { font-size: 16.5px; line-height: 1.62; color: var(--tdc-ink-2); }
.tdc-prose ul, .tdc-prose ol { padding-left: 21px; display: grid; gap: 8px; }
.tdc-prose ul { list-style: disc; }
.tdc-prose ol { list-style: decimal; }
.tdc-prose strong { color: var(--tdc-ink); }

.tdc-answer {
  background: var(--tdc-surface);
  border-left: 4px solid var(--tdc-brand);
  border-radius: 0 var(--tdc-radius-sm) var(--tdc-radius-sm) 0;
  padding: 14px 16px;
  font-size: 17px; line-height: 1.55;
}
.tdc-answer strong { font-weight: 700; }

/* --- reference table ------------------------------------------------------
   The only part of the page that must work with JavaScript off. */

.tdc-tableWrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--tdc-line); border-radius: var(--tdc-radius); background: var(--tdc-surface); }
.tdc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.tdc-table caption { text-align: left; padding: 13px 14px; font-size: 13.5px; color: var(--tdc-muted); line-height: 1.5; }
.tdc-table th, .tdc-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--tdc-line); vertical-align: top; }
.tdc-table thead th { background: var(--tdc-surface-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; position: sticky; top: 0; z-index: 1; }
.tdc-table tbody tr:last-child td { border-bottom: 0; }
/* WCAG 2.2 SC 2.5.8 wants 24x24 CSS px. The "inline" exception covers a link
   sitting in a sentence; a link that is the whole content of a table cell is
   not that, so the link takes the cell's padding and becomes the target. */
.tdc-table th[scope="row"] { padding: 0; }
.tdc-table th[scope="row"] a { display: block; padding: 11px 12px; }
.tdc-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tdc-table a { font-weight: 600; }

/* --- FAQ ------------------------------------------------------------------ */

.tdc-faq { display: grid; gap: 10px; }
.tdc-faq__item { background: var(--tdc-surface); border: 1px solid var(--tdc-line); border-radius: var(--tdc-radius-sm); padding: 15px 16px; }
.tdc-faq__q { font-size: 16.5px; line-height: 1.35; margin-bottom: 7px; }
.tdc-faq__a { font-size: 15px; line-height: 1.6; color: var(--tdc-ink-2); }
.tdc-faq__a > * + * { margin-top: 10px; }

/* --- nav grids ------------------------------------------------------------ */

.tdc-stateGrid { list-style: none; display: grid; gap: 7px; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.tdc-stateGrid a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; background: var(--tdc-surface); border: 1px solid var(--tdc-line); border-radius: var(--tdc-radius-sm); font-size: 14.5px; text-decoration: none; }
.tdc-stateGrid a:hover { border-color: var(--tdc-brand); }

.tdc-neighbours { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tdc-neighbours a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; background: var(--tdc-surface); border: 1px solid var(--tdc-line); border-radius: 999px; font-size: 14.5px; text-decoration: none; }
.tdc-neighbours a:hover { border-color: var(--tdc-brand); }

/* --- motion & print ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .tdc-header, .tdc-footer, .tdc-cta, .tdc-share, .tdc-form, .tdc-skip, .tdc-hero { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .tdc-card { box-shadow: none; border: 0; margin: 0; padding: 0; }
  .tdc-details[open] .tdc-dl, .tdc-details .tdc-dl { display: block; }
  .tdc-details { border: 1px solid #999; }
  .tdc-clocks { grid-template-columns: 1fr 1fr; }
  .tdc-notice { border: 2px solid #000; }
  a[href]::after { content: ""; }
}
