/* Accident Claim Facts — site styles, "plain and practical". Uses tokens.css only. Mobile first. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s-2); interpolate-size: allow-keywords; }
body { margin: 0; background: var(--c-paper); color: var(--c-text); font-family: var(--f-sans); font-size: var(--t-base); line-height: var(--lh-body); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 700; line-height: var(--lh-head); color: var(--c-ink); margin: 0 0 var(--s-2); letter-spacing: -0.005em; text-wrap: balance; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }
p { margin: 0 0 var(--s-2); }
a { color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; color: var(--c-brand-dark); }
:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 2px; box-shadow: 0 0 0 2px var(--c-ink); border-radius: 2px; }
strong, b { font-weight: 700; }
code { font-size: 0.9em; background: var(--c-soft); padding: 0.1em 0.35em; border-radius: var(--r); }
hr { border: 0; border-top: var(--hair); margin: var(--s-5) 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--c-muted); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--wrap-wide) + 2 * var(--gutter)); }
.wrap--narrow { max-width: calc(880px + 2 * var(--gutter)); }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; vertical-align: -0.2em; }
.skip { position: absolute; left: var(--s-2); top: -100px; z-index: 50; background: var(--c-amber); color: var(--c-ink); padding: var(--s-1) var(--s-2); font-weight: 700; }
.skip:focus { top: var(--s-1); }
main:focus { outline: none; box-shadow: none; }
::selection { background: var(--c-amber-soft); color: var(--c-ink); }
[hidden] { display: none !important; }
.result__num, .numbers__n, .az__sol, .bars__n, .data-table td, [data-count] { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- buttons, links, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-height: 46px; padding: 0 var(--s-3); border: 2px solid var(--c-brand); border-radius: var(--r); background: var(--c-brand); color: var(--c-on-brand); font: 700 var(--t-sm)/1.1 var(--f-sans); text-decoration: none; cursor: pointer; transition: background-color var(--d-micro) var(--ease), border-color var(--d-micro) var(--ease); }
.btn:hover { background: var(--c-brand-dark); border-color: var(--c-brand-dark); color: var(--c-on-brand); text-decoration: none; }
.btn--go { background: var(--c-ok); border-color: var(--c-ok); }
.btn--go:hover { background: #0f4f2c; border-color: #0f4f2c; }
.btn--quiet { background: var(--c-paper); color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--quiet:hover { background: var(--c-soft); color: var(--c-ink); border-color: var(--c-ink); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 700; color: var(--c-link); }
.link-arrow .icon { transition: transform var(--d-micro) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 3px; font: 700 0.78rem/1.5 var(--f-sans); white-space: nowrap; background: var(--c-soft); color: var(--c-ink); vertical-align: 0.1em; }
.chip--mod { background: var(--c-brand-soft); color: var(--c-brand); }
.chip--pure { background: #e7f4ec; color: var(--c-ok); }
.chip--bar { background: var(--c-bar-soft); color: var(--c-bar); }
.chip--slight { background: var(--c-amber-soft); color: var(--c-amber-ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; border: var(--hair); border-radius: var(--r); padding: 2px var(--s-1); background: var(--c-paper); color: var(--c-ink); font-weight: 600; }
.badge .icon { color: var(--c-ok); }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--s-2); font: 700 var(--t-xs)/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-brand); }
.kicker::before { content: ""; width: 18px; height: 3px; background: var(--c-amber); }

/* ---------- top strip and masthead ---------- */
.topstrip { background: var(--c-brand-dark); color: var(--c-on-brand-muted); font-size: var(--t-xs); line-height: 1.45; }
.topstrip__in { display: flex; justify-content: space-between; gap: var(--s-1) var(--s-3); padding-block: 7px; }
.topstrip p { margin: 0; display: flex; gap: var(--s-1); align-items: flex-start; }
.topstrip strong { color: var(--c-on-brand); font-weight: 700; }
.topstrip .icon { color: var(--c-amber); margin-top: 0.1em; }
.topstrip__aside { display: none !important; }
.masthead { background: var(--c-paper); border-bottom: var(--hair); position: relative; z-index: 10; }
.masthead__bar { display: flex; align-items: center; gap: var(--s-2); padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-ink); margin-right: auto; }
.logo:hover { color: var(--c-ink); }
.logo__mark { width: 38px; height: 38px; flex: none; border-radius: var(--r); }
.logo__text { display: grid; gap: 3px; }
.logo__word { font: 700 clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem)/1 var(--f-serif); letter-spacing: -0.01em; }
.logo__tag { display: none; font-size: var(--t-xs); color: var(--c-muted); line-height: 1.2; }
.hsearch { display: none; }
.masthead__search, .masthead__menu { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-height: 44px; min-width: 44px; padding: 0 10px; background: var(--c-paper); border: 2px solid var(--c-line); border-radius: var(--r); color: var(--c-ink); font: 700 var(--t-xs)/1 var(--f-sans); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.masthead__search:hover, .masthead__menu:hover { border-color: var(--c-ink); color: var(--c-ink); }
.masthead__menu-icon { width: 18px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.masthead__menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid currentColor; transform: translateY(-50%); }
.masthead__menu[aria-expanded="true"] { background: var(--c-ink); color: var(--c-paper); border-color: var(--c-ink); }
.nav { border-top: var(--hair); background: var(--c-paper); }
.nav__wrap { display: flex; flex-direction: column; }
.nav__row { list-style: none; margin: 0; padding: var(--s-1) 0; display: flex; flex-direction: column; }
.nav__row li { display: flex; }
.nav__row a, .nav__pending { flex: 1; display: flex; align-items: center; min-height: 46px; padding: 0 var(--s-1); color: var(--c-ink); font-weight: 600; font-size: var(--t-sm); text-decoration: none; border-bottom: var(--hair); }
.nav__row a[aria-current="page"] { color: var(--c-brand); box-shadow: inset 4px 0 0 var(--c-brand); padding-left: var(--s-2); }
.nav__row a:hover { color: var(--c-brand); text-decoration: underline; }
.nav__pending { color: var(--c-muted); cursor: default; font-weight: 500; }
.nav__cta { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); margin: var(--s-1) 0 var(--s-2); min-height: 46px; background: var(--c-brand); color: var(--c-on-brand); font-weight: 700; font-size: var(--t-sm); text-decoration: none; border-radius: var(--r); }
.nav__cta:hover { background: var(--c-brand-dark); color: var(--c-on-brand); }
html.js .nav { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-fade) var(--ease); border-top-color: transparent; }
html.js .nav__inner { overflow: hidden; min-height: 0; }
html.js .nav.is-open { grid-template-rows: 1fr; border-top-color: var(--c-line); }
html.no-js .masthead__menu { display: none; }
@media (min-width: 640px) { .logo__tag { display: block; } .logo__mark { width: 44px; height: 44px; } }
@media (min-width: 760px) { .topstrip__aside { display: flex !important; } }
@media (min-width: 1024px) {
  .masthead__bar { padding-block: 18px; gap: var(--s-3); }
  .hsearch { display: flex; align-items: center; width: min(440px, 38vw); border: 2px solid var(--c-ink); border-radius: var(--r); background: var(--c-paper); overflow: hidden; }
  .hsearch > .icon { margin-left: 12px; color: var(--c-muted); }
  .hsearch input[type="search"] { flex: 1; min-width: 0; min-height: 44px; border: 0; border-radius: 0; padding: 8px 12px; font: inherit; font-size: var(--t-sm); color: var(--c-ink); background: transparent; }
  .hsearch input[type="search"]:focus { outline: none; box-shadow: none; }
  .hsearch:focus-within { outline: 3px solid var(--c-amber); outline-offset: 2px; }
  .hsearch button { align-self: stretch; border: 0; background: var(--c-ink); color: var(--c-paper); font: 700 var(--t-sm)/1 var(--f-sans); padding: 0 18px; cursor: pointer; }
  .hsearch button:hover { background: var(--c-brand); }
  .masthead__search, .masthead__menu { display: none; }
  html.js .nav, .nav { display: block; border-top-color: var(--c-line); }
  .nav__wrap { flex-direction: row; align-items: stretch; }
  .nav__row { flex-direction: row; flex-wrap: wrap; padding: 0; margin-left: calc(-1 * var(--s-1)); }
  .nav__row a, .nav__pending { flex: none; min-height: 50px; padding: 0 12px; border-bottom: 0; box-shadow: inset 0 -3px 0 transparent; }
  .nav__row a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--c-brand); padding-left: 12px; }
  .nav__row a:hover { box-shadow: inset 0 -3px 0 var(--c-line-strong); text-decoration: none; }
  .nav__cta { margin: 0 0 0 auto; min-height: 0; background: none; color: var(--c-brand); padding: 0 4px; border-radius: 0; }
  .nav__cta:hover { background: none; color: var(--c-brand-dark); text-decoration: underline; }
}

/* ---------- home ---------- */
.hero { padding-block: var(--s-4) var(--s-5); border-bottom: var(--hair); }
.hero__grid { display: grid; gap: var(--s-4); align-items: start; }
.hero__title { font-size: var(--t-3xl); line-height: 1.08; margin-bottom: var(--s-2); max-width: 17ch; }
.hero__dek { font-size: var(--t-md); line-height: 1.55; color: var(--c-text); max-width: 60ch; margin-bottom: var(--s-3); }
.trust { list-style: none; margin: 0 0 var(--s-3); padding: 12px 0; border-block: var(--hair); display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: var(--t-sm); color: var(--c-text); }
.trust li { display: flex; gap: var(--s-1); align-items: center; }
.trust .icon { color: var(--c-ok); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.task { display: grid; align-content: start; gap: 4px; height: 100%; padding: 16px 18px; border: var(--hair); border-top: 4px solid var(--c-brand); border-radius: var(--r); text-decoration: none; color: var(--c-text); background: var(--c-paper); transition: background-color var(--d-micro) var(--ease); }
.task:hover { background: var(--c-soft); color: var(--c-text); }
.task__kicker { font: 700 0.75rem/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-muted); }
.task__title { font: 700 var(--t-md)/1.25 var(--f-serif); color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.task:hover .task__title { text-decoration-thickness: 2px; }
.task__text { font-size: var(--t-sm); line-height: 1.5; }
@media (min-width: 700px) { .tasks { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .hero { padding-block: var(--s-6) var(--s-8); }
  .hero__grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: var(--s-8); }
}
.home-sec { padding-block: var(--s-6); }
.home-sec--soft { background: var(--c-soft); border-block: var(--hair); }
.sec-head { margin-bottom: var(--s-3); max-width: 72ch; }
.sec-head__title { font-size: var(--t-2xl); margin-bottom: var(--s-1); }
.sec-head__dek { font-size: var(--t-base); color: var(--c-muted); margin: 0; }
.sec-foot { margin: var(--s-3) 0 0; }
.home-two { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) { .home-sec { padding-block: var(--s-8); } .home-two { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--s-8); } .home-aside { position: sticky; top: var(--s-3); } }
.home > .wrap > .ad-slot, main > .wrap > .ad-slot { margin-block: var(--s-4) 0; min-height: 120px; }

/* the 72-hour steps */
.stepper { list-style: none; margin: 0; padding: 0; }
.stepper__item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: var(--s-2); padding-bottom: 22px; }
.stepper__item::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; border-left: 2px solid var(--c-line); }
.stepper__item:last-child { padding-bottom: 0; }
.stepper__item:last-child::before { display: none; }
.stepper__dot { width: 40px; height: 40px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); display: grid; place-items: center; font: 800 1rem/1 var(--f-sans); }
.stepper__when { margin: 0; font: 700 0.75rem/1.3 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-brand); }
.stepper__title { font-size: var(--t-lg); margin: 2px 0 4px; }
.stepper__text { margin: 0 0 4px; font-size: var(--t-base); }
.stepper__more { font-size: var(--t-sm); font-weight: 600; }

/* most important + key numbers */
.home-aside { display: grid; gap: var(--s-3); align-content: start; }
.keybox { border-left: 6px solid var(--c-amber); background: var(--c-amber-soft); padding: 18px 22px; border-radius: 0 var(--r) var(--r) 0; }
.keybox__label { display: flex; align-items: center; gap: var(--s-1); margin: 0 0 6px; font: 700 var(--t-xs)/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink); }
.keybox__label .icon { color: var(--c-amber-ink); }
.keybox p:last-child { margin: 0; color: var(--c-ink); font-size: var(--t-md); line-height: 1.5; }
.numbers { border: var(--hair); border-radius: var(--r); background: var(--c-paper); }
.numbers__title { font: 700 var(--t-xs)/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink); padding: 14px 18px; margin: 0; background: var(--c-soft); border-bottom: var(--hair); }
.numbers dl { margin: 0; }
.numbers dl > div { padding: 14px 18px; border-bottom: var(--hair); }
.numbers dl > div:last-child { border-bottom: 0; }
.numbers dt { font-size: var(--t-sm); color: var(--c-text); }
.numbers dd { margin: 2px 0 0; }
.numbers__n { display: block; font: 700 var(--t-2xl)/1.1 var(--f-serif); color: var(--c-ink); }
.numbers small { display: block; font-size: var(--t-xs); color: var(--c-muted); margin-top: 2px; }

/* states A–Z */
.az__filter { display: grid; gap: 6px; max-width: 420px; margin: 0 0 var(--s-2); }
.az__filter label { font-weight: 700; font-size: var(--t-sm); color: var(--c-ink); }
.az__legend { display: flex; flex-wrap: wrap; gap: 4px var(--s-3); font-size: var(--t-xs); color: var(--c-muted); margin: 0 0 var(--s-3); }
.az__legend b { color: var(--c-ink); }
.az__cols { columns: 1; column-gap: var(--s-5); }
.az__group { break-inside: avoid; margin-bottom: var(--s-2); }
.az__letter { font: 700 var(--t-lg)/1 var(--f-serif); color: var(--c-brand); margin: 0 0 4px; padding-bottom: 4px; border-bottom: 2px solid var(--c-ink); }
.az__list { list-style: none; margin: 0; padding: 0; }
.az__item { display: grid; grid-template-columns: minmax(0, 1fr) auto 92px; gap: 12px; align-items: center; padding: 6px 0; border-bottom: var(--hair); font-size: var(--t-sm); }
.az__item > a, .az__item > span:first-child { font-weight: 600; color: var(--c-ink); }
.az__item > a { color: var(--c-link); }
.az__sol { font-weight: 700; text-align: right; color: var(--c-ink); }
.az__rule { justify-self: end; }
@media (min-width: 640px) { .az__cols { columns: 2; } }
@media (min-width: 1024px) { .az__cols { columns: 3; } .article__main .az__cols { columns: 2; } }

/* topic cards */
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.topic__link { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; border: var(--hair); border-top: 4px solid var(--c-brand); border-radius: var(--r); background: var(--c-paper); color: var(--c-text); text-decoration: none; }
a.topic__link:hover { background: var(--c-soft); color: var(--c-text); }
.topic__meta { font: 700 0.75rem/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-muted); }
.topic__title { font: 700 var(--t-lg)/1.2 var(--f-serif); color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.topic__sum { font-size: var(--t-sm); line-height: 1.55; }
.topic__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--t-sm); color: var(--c-link); }
.topic--pending .topic__link { border-top-color: var(--c-line-strong); background: transparent; }
.topic--pending .topic__title { color: var(--c-ink); text-decoration: none; }
.topic--pending .topic__meta { color: var(--c-amber-ink); }
.topic--tools .topic__link { border-top-color: var(--c-amber); }
@media (min-width: 640px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .topics { grid-template-columns: repeat(3, 1fr); } }

/* lists of guides */
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--hair); }
.row { border-bottom: var(--hair); }
.row__link { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); align-items: center; padding: 16px 6px; text-decoration: none; color: var(--c-text); }
.rows--numbered .row__link { grid-template-columns: auto 1fr auto; }
a.row__link:hover { background: var(--c-soft); color: var(--c-text); }
.row__num { font: 700 var(--t-lg)/1 var(--f-serif); color: var(--c-brand); min-width: 2ch; }
.row__body { display: grid; gap: 3px; }
.row__kicker { font: 700 0.75rem/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-muted); }
.row__title { font: 700 var(--t-md)/1.3 var(--f-serif); color: var(--c-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a.row__link:hover .row__title { text-decoration-thickness: 2px; }
.row__sum { font-size: var(--t-sm); line-height: 1.5; }
.row__meta { font-size: var(--t-xs); color: var(--c-muted); }
.row__go { color: var(--c-brand); }

/* ---------- panels and tools ---------- */
.panel { border: var(--hair-strong); border-radius: var(--r); background: var(--c-paper); }
.panel__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px var(--s-2); margin: 0; padding: 12px 18px; background: var(--c-brand); color: var(--c-on-brand); }
.panel__head > span { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 700; font-size: var(--t-base); }
.panel__head .icon { color: var(--c-amber); }
.panel__head small { font-size: var(--t-xs); color: var(--c-on-brand-muted); }
.tool__form { display: grid; gap: 0 var(--s-3); padding: 18px; }
.field { display: grid; gap: 6px; margin: 0 0 var(--s-2); }
.field label, .seg legend { font-weight: 700; font-size: var(--t-sm); color: var(--c-ink); }
.field small, .form__note { font-size: var(--t-xs); color: var(--c-muted); line-height: 1.5; }
input[type="text"], input[type="email"], input[type="search"], input[type="number"], select, textarea { width: 100%; min-height: 46px; padding: 9px 12px; font: inherit; font-size: var(--t-base); color: var(--c-ink); background: var(--c-paper); border: 2px solid #6b7280; border-radius: var(--r); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-ink) 50%), linear-gradient(135deg, var(--c-ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--c-amber); outline-offset: 0; border-color: var(--c-ink); box-shadow: none; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.seg { border: 0; padding: 0; margin: 0 0 var(--s-2); min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { margin-bottom: 6px; padding: 0; width: 100%; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 2px solid var(--c-line); border-radius: var(--r); font-size: var(--t-sm); font-weight: 600; color: var(--c-ink); background: var(--c-paper); }
.seg__opt span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #6b7280; flex: none; background: var(--c-paper); }
.seg__opt input:checked + span { border-color: var(--c-brand); background: var(--c-brand-soft); }
.seg__opt input:checked + span::before { border: 6px solid var(--c-brand); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--c-amber); outline-offset: 2px; }
.seg__opt:hover span { border-color: var(--c-ink); }
.tool__submit { margin: 4px 0 0; }
.tool__result { padding: 18px; border-top: var(--hair); background: var(--c-soft); }
.tool__share { margin: var(--s-2) 0 0; }
@media (min-width: 760px) { .tool__form, .tool__result { padding: 20px 22px; } }

/* range slider */
.field--range label { display: flex; justify-content: space-between; align-items: baseline; }
.field--range output { font: 700 var(--t-xl)/1 var(--f-serif); color: var(--c-ink); font-variant-numeric: tabular-nums; }
input[type="range"] { --p: 30%; -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c-brand) var(--p), var(--c-soft-2) var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--c-soft-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--c-brand); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--c-paper); border: 3px solid var(--c-brand); box-shadow: 0 0 0 3px var(--c-paper); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--c-paper); border: 3px solid var(--c-brand); }
input[type="range"]:focus { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--c-amber), 0 0 0 5px var(--c-ink); }
.range-scale { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--c-muted); font-variant-numeric: tabular-nums; }

/* results */
.result__kicker { font: 700 0.75rem/1.3 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-brand); margin: 0 0 4px; }
.result__big { display: flex; align-items: baseline; gap: 6px; margin: 0 0 4px; color: var(--c-ink); }
.result__num { font: 700 clamp(2.75rem, 2.2rem + 2vw, 3.75rem)/1 var(--f-serif); }
.result__num--word { font-size: var(--t-2xl); }
.result__unit { font: 700 var(--t-xl)/1 var(--f-serif); }
.result__lead { font-size: var(--t-base); color: var(--c-ink); margin-bottom: var(--s-1); }
.result__note, .result__cite { display: flex; gap: var(--s-1); align-items: flex-start; font-size: var(--t-sm); line-height: 1.5; color: var(--c-text); }
.result__note { background: var(--c-amber-soft); border-left: 4px solid var(--c-amber); padding: 10px 14px; }
.result__note .icon, .result__cite .icon { margin-top: 0.2em; color: var(--c-brand); }
.result__caveats { font-size: var(--t-sm); line-height: 1.5; padding-left: 1.1em; margin: var(--s-1) 0; }
.result__caveats li { margin-bottom: 4px; }
.result__stat { font-size: var(--t-sm); }
.result__stat span { font-weight: 700; color: var(--c-ink); }
.result--empty .result__lead { color: var(--c-text); }
.tl { display: block; width: 100%; max-width: 520px; height: auto; margin: var(--s-1) 0 var(--s-2); overflow: visible; }
.tl__axis { stroke: var(--c-line); stroke-width: 6; stroke-linecap: round; }
.tl__run { stroke: var(--c-brand); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); }
.reveal-ready .draw-on-reveal:not(.is-in) .tl__run { stroke-dashoffset: 1; }
.tl__tick { stroke: var(--c-muted); stroke-width: 1.5; }
.tl__lab { font: 600 13px var(--f-sans); fill: var(--c-muted); text-anchor: middle; }
.tl__end { fill: var(--c-amber); stroke: var(--c-ink); stroke-width: 2; }
.bars { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: 8px; }
.bars__row { display: grid; grid-template-columns: 58px 1fr 76px; gap: 12px; align-items: center; font-size: var(--t-sm); }
.bars__k { font-weight: 700; color: var(--c-ink); }
.bars__track { height: 12px; background: var(--c-soft-2); border-radius: 2px; overflow: hidden; }
.bars__fill { display: block; height: 100%; background: var(--c-brand); transform-origin: left; transform: scaleX(var(--p)); transition: transform 0.8s var(--ease); }
.reveal-ready .result--overview:not(.is-in) .bars__fill { transform: scaleX(0); }
.bars__n { color: var(--c-muted); text-align: right; }
.chart { margin: var(--s-3) 0 0; }
.chart figcaption { font: 700 0.75rem/1.3 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink); margin-bottom: var(--s-1); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.fbar__label { font: 600 14px var(--f-sans); fill: var(--c-ink); }
.fbar__val { font: 700 14px var(--f-sans); fill: var(--c-ink); font-variant-numeric: tabular-nums; }
.fbar__track { fill: var(--c-soft-2); }
.fbar__fill { fill: #8a94a3; transform-box: fill-box; transform-origin: left center; transform: scaleX(var(--s)); transition: transform 600ms var(--ease); }
.fbar--mine .fbar__fill { fill: var(--c-brand); }
.fbar--mine .fbar__label { font-weight: 800; }
.fbar--depends .fbar__fill { fill: var(--c-amber); opacity: 0.5; }
.fbar--zero .fbar__val { fill: var(--c-bar); }
.reveal-ready .fbars:not(.is-in) .fbar__fill { transform: scaleX(0); }
.curve__axis { stroke: var(--c-line-strong); stroke-width: 1.5; }
.curve__mid { stroke: var(--c-line); stroke-width: 1; stroke-dasharray: 3 4; }
.curve__lab { font: 600 12px var(--f-sans); fill: var(--c-muted); }
.curve__line { fill: none; stroke: var(--c-brand); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); }
.reveal-ready .curve:not(.is-in) .curve__line { stroke-dashoffset: 1; }
.curve__marker { stroke: var(--c-amber); stroke-width: 3; transition: transform 200ms var(--ease); }

/* ---------- page header ---------- */
.pagehead { background: var(--c-soft); border-bottom: var(--hair); padding-block: var(--s-3) var(--s-4); }
.pagehead__title { font-size: var(--t-3xl); line-height: 1.1; margin-bottom: var(--s-2); max-width: 32ch; }
.pagehead__dek { font-size: var(--t-md); line-height: 1.55; color: var(--c-text); max-width: 70ch; margin-bottom: var(--s-2); }
.crumbs ol { list-style: none; margin: 0 0 var(--s-2); padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--s-1); font-size: var(--t-xs); color: var(--c-muted); }
.crumbs li + li::before { content: "›"; margin-right: var(--s-1); color: var(--c-line-strong); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-ink); }
.byline { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); align-items: center; margin: var(--s-2) 0 0; font-size: var(--t-sm); color: var(--c-muted); }
.byline > span { display: inline-flex; align-items: center; gap: 6px; }
.byline__actions { gap: 8px !important; }
.act { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--c-line-strong); border-radius: var(--r); background: var(--c-paper); color: var(--c-ink); font: 600 var(--t-xs)/1 var(--f-sans); cursor: pointer; }
.act:hover { border-color: var(--c-ink); background: var(--c-paper); }
.act.is-done { border-color: var(--c-ok); color: var(--c-ok); }
@media (min-width: 1024px) { .pagehead { padding-block: var(--s-4) var(--s-5); } .byline__actions { margin-left: auto; } }

/* ---------- article layout: on-this-page menu, one reading column, notes in the right margin ---------- */
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: var(--s-4) var(--s-10); }
.article__main { min-width: 0; width: 100%; max-width: var(--col-main); margin-inline: auto; }
.toc { min-width: 0; margin-bottom: var(--s-3); }
.toc__box { border: var(--hair); border-radius: var(--r); background: var(--c-paper); }
.toc__box summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); padding: 12px 16px; cursor: pointer; list-style: none; font: 700 var(--t-xs)/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink); }
.toc__box summary::-webkit-details-marker { display: none; }
.toc__box summary > span:first-child { display: inline-flex; align-items: center; gap: var(--s-1); }
.toc__box summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--c-ink); border-bottom: 2px solid var(--c-ink); transform: rotate(45deg); margin-left: 4px; }
.toc__box[open] summary::after { transform: rotate(225deg); }
.toc__count { color: var(--c-muted); font-weight: 600; letter-spacing: 0.04em; }
.toc ol { list-style: none; margin: 0; padding: 4px 16px 14px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: grid; grid-template-columns: 2.1em 1fr; padding: 6px 0; font-size: var(--t-sm); line-height: 1.4; color: var(--c-text); text-decoration: none; border-top: var(--hair); }
.toc li:first-child a { border-top: 0; }
.toc a::before { content: counter(t) "."; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--c-link); text-decoration: underline; }
.toc a.is-active { color: var(--c-brand); font-weight: 700; }
.toc a.is-active::before { color: var(--c-brand); }
.contents::details-content, .toc__box::details-content, .faq__item::details-content { block-size: 0; overflow: clip; transition: block-size var(--d-fade) var(--ease), content-visibility var(--d-fade) allow-discrete; }
.toc__box[open]::details-content, .faq__item[open]::details-content { block-size: auto; }
@media (min-width: 1024px) {
  .article__grid--toc { grid-template-columns: var(--col-toc) minmax(0, var(--col-main)); gap: var(--s-6); justify-content: center; }
  .article__grid--toc .article__main { margin: 0; }
  .toc { position: sticky; top: var(--s-2); align-self: start; max-height: calc(100vh - 2 * var(--s-2)); overflow: auto; margin: 0; }
  .toc__box { border: 0; border-left: 3px solid var(--c-line); border-radius: 0; background: transparent; }
  .toc__box summary { padding: 0 0 10px 16px; cursor: default; pointer-events: none; }
  .toc__box summary::after, .toc__count { display: none; }
  .toc ol { padding: 0; }
  .toc a { border-top: 0; padding: 6px 10px 6px 16px; margin-left: -3px; border-left: 3px solid transparent; }
  .toc a.is-active { border-left-color: var(--c-brand); background: var(--c-brand-soft); }
}
@media (min-width: 1320px) {
  .article__grid, .article__grid--toc { grid-template-columns: var(--col-toc) minmax(0, var(--col-main)) var(--col-note); gap: var(--s-5); justify-content: center; }
  .article__main { grid-column: 2; margin: 0; }
  .toc { grid-column: 1; grid-row: 1; }
}

/* prose */
.prose > * { max-width: 100%; }
.prose p, .prose li { max-width: var(--measure); }
.prose h2 { font-size: var(--t-xl); margin: var(--s-6) 0 var(--s-2); position: relative; scroll-margin-top: var(--s-2); }
.prose h3 { font-size: var(--t-lg); margin: var(--s-4) 0 var(--s-1); }
.prose h4 { font-size: var(--t-md); margin: var(--s-3) 0 var(--s-1); }
.prose ul, .prose ol:not(.steps):not(.rows):not(.sources__list):not(.stepper) { padding-left: 1.3em; margin: 0 0 var(--s-3); }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--c-brand); }
.anchor { margin-left: 0.35em; color: var(--c-line-strong); text-decoration: none; font-weight: 400; opacity: 0; transition: opacity var(--d-micro) var(--ease); }
.prose h2:hover .anchor, .anchor:focus-visible { opacity: 1; }
.chapter { position: relative; }
.legal-note { display: flex; gap: var(--s-1); align-items: flex-start; font-size: var(--t-xs); line-height: 1.5; color: var(--c-muted); border-top: var(--hair); border-bottom: var(--hair); padding: 8px 0; margin: 0 0 var(--s-3); }
.legal-note .icon { color: var(--c-brand); margin-top: 0.1em; }
.intro { margin-bottom: var(--s-3); }
.intro > .tool { margin-bottom: var(--s-3); }

/* quick answer */
.quick { border-left: 6px solid var(--c-amber); background: var(--c-amber-soft); padding: 16px 22px; border-radius: 0 var(--r) var(--r) 0; margin: 0 0 var(--s-4); }
.quick .quick__label, .prose .quick h2.quick__label { font: 700 var(--t-xs)/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink); margin: 0 0 6px; }
.quick p { font-size: var(--t-md); line-height: 1.55; color: var(--c-ink); max-width: none; }
.quick p:last-child { margin-bottom: 0; }

/* state law at a glance */
.lawcard { border: var(--hair-strong); border-radius: var(--r); margin: 0 0 var(--s-4); overflow: hidden; }
.lawcard__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px var(--s-2); padding: 12px 18px; background: var(--c-brand); }
.prose .lawcard__head h2, .lawcard__head h2 { font-size: var(--t-lg); color: var(--c-on-brand); margin: 0; }
.lawcard__head p { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: var(--t-xs); color: var(--c-on-brand-muted); }
.lawcard__head .icon { color: var(--c-amber); }
.lawcard .table-wrap { margin: 0; }
.lawcard .data-table { font-size: var(--t-sm); }
.lawcard .data-table thead th { position: static; background: var(--c-soft); border-bottom: var(--hair); }
.lawcard .data-table tbody tr:nth-child(even) { background: transparent; }
.lawcard td strong { font-size: var(--t-md); color: var(--c-ink); }
.lawcard td small { display: block; color: var(--c-muted); font-size: var(--t-xs); }
.lawcard__rule { display: block; margin-top: 4px; font-size: var(--t-xs); color: var(--c-muted); }
.lawcard__note { display: flex; gap: var(--s-1); margin: 0; padding: 12px 18px; background: var(--c-soft); border-top: var(--hair); font-size: var(--t-sm); line-height: 1.5; max-width: none !important; }
.lawcard__note .icon { color: var(--c-brand); margin-top: 0.2em; }

/* key facts */
.keyfacts { margin: 0 0 var(--s-4); }
.keyfacts__title, .prose .keyfacts h2.keyfacts__title { font: 700 var(--t-xs)/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink); margin: 0; padding-bottom: 8px; border-bottom: 2px solid var(--c-ink); }
.factsheet { margin: 0; }
.factsheet__row { display: grid; gap: 2px var(--s-3); padding: 11px 0; border-bottom: var(--hair); }
.factsheet dt { font-size: var(--t-sm); color: var(--c-muted); font-weight: 600; }
.factsheet dd { margin: 0; color: var(--c-ink); }
.factsheet__val { font-weight: 700; }
.factsheet small { display: block; font-size: var(--t-xs); color: var(--c-muted); margin-top: 2px; }
@media (min-width: 640px) { .factsheet__row { grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); } .factsheet dt { padding-top: 1px; } }

/* step lists */
.steps { list-style: none; counter-reset: s; margin: var(--s-2) 0 var(--s-3); padding: 0; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 12px 0; border-top: var(--hair); margin: 0; max-width: none; }
.steps > li:last-child { border-bottom: var(--hair); }
.steps > li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); display: grid; place-items: center; font: 800 0.875rem/1 var(--f-sans); margin-top: 1px; }
.steps > li > span { max-width: var(--measure); }

/* callouts */
.callout { border-left: 4px solid var(--c-brand); background: var(--c-soft); padding: 14px 18px; margin: var(--s-3) 0; border-radius: 0 var(--r) var(--r) 0; }
.callout p { max-width: none; }
.callout p:last-child { margin-bottom: 0; }
.callout__label { display: flex; align-items: center; gap: var(--s-1); font: 700 var(--t-xs)/1.2 var(--f-sans) !important; letter-spacing: var(--tracking-caps); text-transform: uppercase; margin-bottom: 6px !important; color: var(--c-brand); }
.callout--tip { border-color: var(--c-ok); background: #eef7f1; }
.callout--tip .callout__label { color: var(--c-ok); }
.callout--warning { border-color: var(--c-warn); background: var(--c-warn-soft); }
.callout--warning .callout__label { color: var(--c-warn); }
.callout--rule { background: var(--c-paper); border: var(--hair); border-left: 4px solid var(--c-ink); }
.callout--rule .callout__label { color: var(--c-ink); }
.callout--example { border-color: var(--c-line-strong); }
.callout--example .callout__label { color: var(--c-muted); }

/* key point (the Markdown pull quote) */
.pullquote { margin: var(--s-4) 0; padding: 16px 22px; background: var(--c-brand-soft); border-left: 6px solid var(--c-brand); border-radius: 0 var(--r) var(--r) 0; }
.pullquote__label { margin: 0 0 4px !important; font: 700 var(--t-xs)/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-brand); }
.pullquote blockquote { margin: 0; }
.pullquote blockquote p { font: 600 var(--t-lg)/1.4 var(--f-serif); color: var(--c-ink); margin: 0; max-width: none; }

/* margin notes for legal terms */
.term { position: relative; }
.term__word { text-decoration: underline dotted var(--c-amber-ink); text-decoration-thickness: 2px; text-underline-offset: 0.22em; cursor: pointer; color: inherit; }
.term__toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.term__toggle:focus-visible + .term__note { outline: 3px solid var(--c-amber); }
.term__note { display: none; font-size: var(--t-sm); line-height: 1.5; color: var(--c-text); font-family: var(--f-sans); font-weight: 400; }
.term__note b { color: var(--c-ink); }
.term__more { display: inline-block; margin-left: 4px; font-weight: 600; }
.term__toggle:checked + .term__note { display: block; margin: var(--s-1) 0; padding: 8px 12px; background: var(--c-amber-soft); border-left: 3px solid var(--c-amber); }
@media (min-width: 1320px) {
  .prose p, .prose li { max-width: none; }
  .term__word { cursor: default; text-decoration-style: dotted; }
  .term__note, .term__toggle:checked + .term__note { display: block; float: right; clear: right; width: var(--col-note); margin: 0.2em calc(-1 * (var(--col-note) + var(--s-5))) var(--s-2) 0; padding: 6px 0 0; border: 0; border-top: 2px solid var(--c-amber); background: none; font-size: var(--t-xs); color: var(--c-muted); }
}

/* data tables */
.table-wrap { margin: var(--s-2) 0 var(--s-3); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.data-table caption { text-align: left; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: var(--hair); vertical-align: top; }
.data-table thead th { position: sticky; top: 0; z-index: 2; background: var(--c-paper); font: 700 var(--t-xs)/1.3 var(--f-sans); letter-spacing: 0.04em; color: var(--c-ink); border-bottom: 3px solid var(--c-ink); white-space: nowrap; }
.data-table tbody tr:nth-child(even) { background: var(--c-soft); }
.data-table tbody th { font-weight: 700; color: var(--c-ink); }
.sort-btn { all: unset; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.sort-btn:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 2px; }
.sort-btn .icon { opacity: 0.45; }
[aria-sort] .sort-btn .icon { opacity: 1; }
[aria-sort="descending"] .sort-btn .icon { transform: scaleY(-1); }
@media (max-width: 639px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tr { border: var(--hair); border-radius: var(--r); padding: 4px 14px; margin-bottom: 12px; background: var(--c-paper) !important; }
  .data-table tbody th { font: 700 var(--t-md)/1.3 var(--f-serif); border-bottom: 2px solid var(--c-ink); padding: 8px 0; }
  .data-table td { display: grid; grid-template-columns: 40% 1fr; gap: 8px; padding: 7px 0; }
  .data-table td:last-child { border-bottom: 0; }
  .data-table td::before { content: attr(data-label); font-weight: 700; font-size: var(--t-xs); color: var(--c-muted); }
  .lawcard .data-table tr { border: 0; border-bottom: var(--hair); border-radius: 0; margin: 0; padding: 4px 18px; }
}

/* FAQ */
.faq { margin-top: var(--s-6); }
.faq__item { border-top: var(--hair); }
.faq__item:last-of-type { border-bottom: var(--hair); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); padding: 14px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: var(--t-md); line-height: 1.35; }
.faq__item summary:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border: 2px solid var(--c-ink); border-radius: 50%; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; border-top: 2px solid var(--c-ink); transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--d-micro) var(--ease); }
.faq__item[open] .faq__icon { background: var(--c-ink); }
.faq__item[open] .faq__icon::before { border-color: var(--c-paper); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); border-color: var(--c-paper); }
.faq__a { padding: 0 0 var(--s-2); max-width: var(--measure); }
.faq__a p:last-child { margin-bottom: 0; }

/* sources */
.sources { margin-top: var(--s-6); font-size: var(--t-sm); }
.sources h2, .sources__title { font-size: var(--t-lg); }
.sources__list { padding-left: 1.5em; }
.sources__list li { margin-bottom: 6px; max-width: none; }
.sources__list li::marker { color: var(--c-muted); font-variant-numeric: tabular-nums; }
.sources__list a { word-break: break-word; }
.sources__reviewed { display: flex; gap: var(--s-1); align-items: flex-start; color: var(--c-muted); font-size: var(--t-xs); margin-top: var(--s-2); max-width: none !important; }
.sources__reviewed .icon { color: var(--c-ok); margin-top: 0.1em; }
.sources--compact { margin-top: var(--s-5); }
.keep { margin-top: var(--s-6); }
.keep__title, .prose .keep h2.keep__title { font-size: var(--t-lg); margin-bottom: var(--s-2); }

/* ad slots: reserved, labelled, never styled like content */
.ad-slot { position: relative; display: flex; align-items: center; justify-content: center; min-height: 250px; margin: var(--s-4) 0; background: repeating-linear-gradient(135deg, #fafafb 0 10px, var(--c-soft) 10px 11px); border: 1px dashed var(--c-line-strong); border-radius: var(--r); contain: layout paint; }
.ad-label { position: absolute; top: 6px; left: 10px; font: 700 11px/1 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-muted); }
.ad-slot ins { width: 100%; }

/* notices and forms */
.notice { background: #eef7f1; border-left: 4px solid var(--c-ok); padding: 12px 16px; border-radius: 0 var(--r) var(--r) 0; }
.notice--warn { border-color: var(--c-warn); background: var(--c-warn-soft); }
.form { max-width: 640px; }
.form .btn { margin-top: 4px; }

/* ---------- search ---------- */
.search { width: min(720px, calc(100% - 2 * var(--gutter))); max-height: min(78vh, 680px); margin: 8vh auto auto; padding: 0; border: var(--hair-strong); border-radius: var(--r); box-shadow: var(--shadow-pop); background: var(--c-paper); color: var(--c-text); }
.search::backdrop { background: rgba(8, 47, 56, 0.45); }
.search__form { display: flex; align-items: center; gap: var(--s-1); padding: 8px 12px; border-bottom: var(--hair); background: var(--c-soft); }
.search__form > .icon { color: var(--c-muted); }
.search__form input { border: 0; background: transparent; font-size: var(--t-md); outline: none !important; }
.search__form input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search__close { all: unset; display: inline-flex; padding: 8px; cursor: pointer; border-radius: var(--r); }
.search__close:focus-visible { outline: 3px solid var(--c-amber); }
.search__results { list-style: none; margin: 0; padding: 6px; overflow: auto; max-height: calc(min(78vh, 680px) - 120px); }
.search__results a { display: grid; gap: 2px; padding: 10px 12px; text-decoration: none; border-radius: var(--r); border-bottom: var(--hair); }
.search__results a:hover, .search__results a[aria-selected="true"] { background: var(--c-brand-soft); }
.search__results b { font: 700 var(--t-base)/1.3 var(--f-serif); color: var(--c-link); }
.search__results small { color: var(--c-muted); font-size: var(--t-xs); }
.search__results mark { background: var(--c-amber-soft); color: inherit; box-shadow: inset 0 -2px 0 var(--c-amber); }
.search__hint { margin: 0; padding: 8px 16px 12px; font-size: var(--t-xs); color: var(--c-muted); }
.search-page { display: flex; gap: var(--s-1); max-width: 620px; margin-top: var(--s-2); }
.search-page input { flex: 1; }

/* ---------- consent ---------- */
.consent { position: fixed; z-index: 40; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); max-width: 720px; margin-inline: auto; background: var(--c-paper); border: var(--hair-strong); border-top: 6px solid var(--c-brand); border-radius: var(--r); box-shadow: var(--shadow-pop); padding: var(--s-2) var(--s-3); font-size: var(--t-sm); }
.consent__actions { display: flex; gap: var(--s-1); justify-content: flex-end; margin: 0; }

/* ---------- footer ---------- */
.footer { background: var(--c-brand-dark); color: var(--c-on-brand-muted); border-top: 4px solid var(--c-amber); padding-block: var(--s-6) var(--s-3); font-size: var(--t-sm); }
.footer a { color: var(--c-on-brand); text-decoration-color: rgba(255, 255, 255, 0.4); }
.footer a:hover { color: var(--c-on-brand); text-decoration-color: var(--c-amber); }
.footer [data-pending] { color: var(--c-on-brand-muted); opacity: 0.75; }
.footer__grid { display: grid; gap: var(--s-4); }
.footer__logo { display: flex; align-items: center; gap: 10px; font: 700 var(--t-lg)/1 var(--f-serif); color: var(--c-on-brand); margin-bottom: var(--s-2); }
.footer__logo .logo__mark { width: 36px; height: 36px; }
.footer__brand p { max-width: 46ch; }
.footer__disclaimer { display: flex; gap: var(--s-1); align-items: flex-start; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: var(--s-2); color: var(--c-on-brand) !important; }
.footer__disclaimer .icon { color: var(--c-amber); margin-top: 0.2em; }
.footer__col h2 { font: 700 var(--t-xs)/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-on-brand); margin-bottom: var(--s-2); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-3); margin-top: var(--s-5); padding-top: var(--s-2); border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: var(--t-xs); }
.footer__base p { margin: 0; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- plain pages, sitemap, style guide ---------- */
.page-plain { padding-block: var(--s-4) var(--s-10); }
.plain-title { font-size: var(--t-xl); margin: var(--s-5) 0 var(--s-2); }
.sitemap-list { list-style: none; padding: 0; columns: 1; column-gap: var(--s-5); }
.sitemap-list li { break-inside: avoid; padding: 6px 0; border-bottom: var(--hair); }
@media (min-width: 760px) { .sitemap-list { columns: 2; } }
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-2); list-style: none; padding: 0 !important; }
.sg-swatch { border: var(--hair); border-radius: var(--r); overflow: hidden; font-size: var(--t-xs); max-width: none !important; }
.sg-swatch span { display: block; height: 56px; }
.sg-swatch p { margin: 0; padding: var(--s-1); }
.sg-type > * { margin-bottom: var(--s-2) !important; }
.sg-space { display: grid; gap: var(--s-1); }
.sg-space div { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-xs); }
.sg-space i { display: block; height: 12px; background: var(--c-brand); border-radius: 2px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; max-width: none !important; }
.sg-icons { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0 !important; }
.sg-icons li { display: grid; place-items: center; gap: 4px; width: 92px; font-size: 11px; color: var(--c-muted); text-align: center; }
.sg-icons .icon { width: 28px; height: 28px; color: var(--c-ink); }

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

/* ---------- print: a clean handout ---------- */
@media print {
  .topstrip, .masthead, .footer, .ad-slot, .consent, .search, .toc, .byline__actions, .keep, .tool__form, .anchor, .skip { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .pagehead { background: none; border: 0; padding: 0; }
  .article__grid { display: block; padding: 0; }
  .article__main { max-width: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
  .term__note { display: none !important; }
  .faq__item { break-inside: avoid; }
  .faq__item .faq__a { display: block; }
}

/* glossary index */
.gloss__cols { columns: 1; column-gap: var(--s-5); }
.gloss__group { break-inside: avoid; margin-bottom: var(--s-3); }
.gloss__list { margin: 0; }
.gloss__item { display: block; padding: 10px 0; }
.gloss__item dt { font-weight: 700; font-size: var(--t-base); }
.gloss__item dd { margin: 2px 0 0; color: var(--c-muted); font-size: var(--t-sm); line-height: 1.5; }
@media (min-width: 760px) { .gloss__cols { columns: 2; } }

/* ---------- tools added 2026-10-29: deadline date calculator, who pays my medical bills, claim file checklist ---------- */
.tool input[type="date"] { display: block; width: 100%; min-height: 46px; padding: 9px 12px; font: inherit; font-size: var(--t-base); color: var(--c-ink); background: var(--c-paper); border: 2px solid #6b7280; border-radius: var(--r); }
.tool__row { display: grid; gap: 0 var(--s-3); }
@media (min-width: 640px) { .tool__row { grid-template-columns: 1fr 1fr; } }
.tool__hint { margin-top: -8px; }
.result__date { font: 700 var(--t-2xl)/1.1 var(--f-serif); color: var(--c-ink); }
.result__flag { display: flex; gap: var(--s-1); align-items: flex-start; font-size: var(--t-xs); line-height: 1.5; color: var(--c-muted); margin: var(--s-1) 0; }
.result__flag .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--c-brand); }
.result__note { margin: var(--s-1) 0; }
.result__note--error { background: var(--c-warn-soft); border-left-color: var(--c-warn); }
.result__note--error .icon { color: var(--c-warn); }
.tool .result__caveats li { max-width: none; }

/* date calculator: days left and a crash-to-deadline line with today marked */
.calc__left { font-size: var(--t-base); color: var(--c-ink); margin: var(--s-1) 0 0; }
.calc__n { font: 700 var(--t-xl)/1 var(--f-serif); color: var(--c-brand); }
.calc__line { position: relative; height: 10px; margin: 40px 8px 8px 0; background: var(--c-soft-2); border-radius: 5px; }
.calc__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--c-brand); border-radius: 5px; transform-origin: left; transition: transform 1s var(--ease); }
.reveal-ready .calc__line:not(.is-in) .calc__fill { transform: scaleX(0); }
.calc__line::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--c-amber); border: 2px solid var(--c-ink); box-sizing: border-box; }
.calc__now { position: absolute; bottom: calc(100% + 8px); left: calc(var(--q) * 100%); transform: translateX(-50%); padding: 3px 7px; font: 700 0.6875rem/1.2 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-on-brand); background: var(--c-brand); border-radius: var(--r); white-space: nowrap; }
.calc__now::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--c-brand); }
.calc__ends { display: flex; justify-content: space-between; gap: var(--s-2); margin: 0 0 var(--s-2); font-size: var(--t-xs); color: var(--c-muted); }
.calc__ends span { display: grid; gap: 2px; }
.calc__ends span:last-child { text-align: right; }
.calc__ends b { font-size: var(--t-sm); color: var(--c-ink); }

/* who pays: the usual order of payers as a numbered ladder */
.tool .payers { list-style: none; margin: var(--s-2) 0 var(--s-2) !important; padding: 0 !important; }
.tool .payer { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin: 0; padding: 0 0 var(--s-2); max-width: none; }
.tool .payer::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 0; width: 2px; background: var(--c-line); }
.tool .payer:last-child { padding-bottom: 0; }
.tool .payer:last-child::before { display: none; }
.payer__n { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c-brand); background: var(--c-paper); color: var(--c-brand); font: 700 var(--t-sm)/1 var(--f-sans); }
.payer--first .payer__n { background: var(--c-brand); color: var(--c-on-brand); }
.payer--you .payer__n, .payer--gap .payer__n { border-color: var(--c-amber-ink); background: var(--c-amber-soft); color: var(--c-amber-ink); }
.payer__body { display: grid; gap: 3px; min-width: 0; padding-top: 2px; }
.payer__when { font: 700 0.75rem/1.3 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-muted); }
.payer--first .payer__when { color: var(--c-brand); }
.payer--you .payer__when, .payer--gap .payer__when { color: var(--c-amber-ink); }
.payer__name { font: 700 var(--t-md)/1.3 var(--f-serif); color: var(--c-ink); }
.payer__what { font-size: var(--t-sm); line-height: 1.55; color: var(--c-text); }
.payer__more { display: block; margin-top: 4px; }
.payer__rule { display: flex; gap: 6px; align-items: flex-start; margin-top: 2px; font-size: var(--t-xs); line-height: 1.5; color: var(--c-muted); overflow-wrap: anywhere; }
.payer__rule .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--c-brand); }

/* claim checklist: situation checkboxes, then grouped items with tick boxes */
.seg--check { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .seg--check { grid-template-columns: 1fr 1fr; } }
.seg--check .seg__opt span { display: flex; height: 100%; min-height: 44px; padding: 8px 12px; line-height: 1.35; }
.seg--check .seg__opt span::before { border-radius: 3px; }
.seg--check .seg__opt input:checked + span::before { border: 2px solid var(--c-brand); background: var(--c-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ck__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--s-1); margin: var(--s-1) 0 0; }
.ck__progress { margin-right: auto; font-size: var(--t-sm); color: var(--c-muted); }
.ck__progress b { color: var(--c-ink); }
.ck__bar .btn { min-height: 40px; padding: 0 12px; font-size: var(--t-xs); }
.ck__bar .btn .icon { width: 18px; height: 18px; }
.ck__group { margin: var(--s-3) 0 0; }
.tool .ck__head { display: flex; align-items: center; gap: var(--s-1); margin: 0; padding: 0 0 8px; border-bottom: var(--hair-strong); font: 700 0.8125rem/1.3 var(--f-sans); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink); }
.ck__head .icon { color: var(--c-brand); }
.tool .ck__list { list-style: none; margin: 0; padding: 0; }
.tool .ck__item { display: grid; grid-template-columns: 24px 1fr; gap: 2px 12px; margin: 0; padding: 12px 0; max-width: none; border-bottom: var(--hair); }
.ck__item input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--c-brand); cursor: pointer; }
.ck__item input:focus-visible { outline: 3px solid var(--c-amber); outline-offset: 2px; }
.ck__item label { display: grid; gap: 2px; cursor: pointer; }
.ck__item label b { font-size: var(--t-sm); line-height: 1.45; color: var(--c-ink); }
.ck__item input:checked + label b { color: var(--c-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.ck__why { font-size: var(--t-xs); line-height: 1.5; color: var(--c-muted); }
.ck__link { grid-column: 2; justify-self: start; font-size: var(--t-xs); }
@media print {
  .tool__share, .ck__bar, .ck__link, .tool--calc .calc__line { display: none !important; }
  .tool .panel__head { background: none; color: #000; border-bottom: 2px solid #000; }
  .tool .tool__result { background: none; border: 0; }
  .ck__item { break-inside: avoid; }
  .print-checklist .pagehead, .print-checklist .toc, .print-checklist .article__main > :not(.intro), .print-checklist .intro > :not(.tool--checklist), .print-checklist .panel__head small { display: none !important; }
  .print-checklist .tool--checklist { border: 0; }
}

/* margin notes inside tables, fact sheets and tools stay inline (tap to open) on wide screens too */
@media (min-width: 1320px) {
  .data-table .term__note, .factsheet .term__note, .tool .term__note, .lawcard .term__note { display: none; float: none; width: auto; margin: var(--s-1) 0; padding: 8px 12px; border: 0; border-left: 3px solid var(--c-amber); background: var(--c-amber-soft); font-size: var(--t-sm); color: var(--c-text); }
  .data-table .term__toggle:checked + .term__note, .factsheet .term__toggle:checked + .term__note, .tool .term__toggle:checked + .term__note, .lawcard .term__toggle:checked + .term__note { display: block; float: none; width: auto; margin: var(--s-1) 0; padding: 8px 12px; border: 0; border-left: 3px solid var(--c-amber); background: var(--c-amber-soft); }
  .data-table .term__word, .factsheet .term__word, .tool .term__word { cursor: pointer; }
}
