/* Oakrule · design language in web/DESIGN.md (look 3, 2026-10-04)
   Civic premium (america.gov) on a Brickwise structure: white with very light cool-grey gradients, serif display
   headlines, Inter for UI and text, deep navy round actions with a tactile press, building photography in rounded
   cards on their own stage colour, floating cards over the map. The information architecture stays: every answer
   once, details one tap away, status only where it matters. */

@font-face { font-family: "Inter"; src: url("/static/fonts/InterVariable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/static/fonts/InstrumentSerif-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/static/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* metric-matched stand-ins while Instrument Serif loads (measured against Times New Roman / Liberation Serif with
   fontTools: average advance, ascender, descender), so headlines keep their line breaks when it swaps in */
@font-face { font-family: "Serif Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"), local("Times"); size-adjust: 84.29%; ascent-override: 117.45%; descent-override: 36.78%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; font-style: italic; src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT"), local("Liberation Serif Italic"), local("Times Italic"); size-adjust: 88.59%; ascent-override: 111.75%; descent-override: 34.99%; line-gap-override: 0%; }
/* metric-matched stand-in while Inter loads, so text does not reflow when it swaps in */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); ascent-override: 90.49%; descent-override: 22.56%; line-gap-override: 0%; size-adjust: 107.06%; }

:root {
  --label: #111614;                 /* ink: green-black (Oakrule) */
  --label-2: rgb(17 22 20 / .66);
  --label-3: rgb(17 22 20 / .6);    /* AA on white and on the warm greys (4.52:1 on --cool-2) */
  --sep: rgb(17 22 20 / .14);
  --sep-2: rgb(17 22 20 / .075);
  --canvas: #fff;                   /* page */
  --cool: #eef3f0;                  /* the very light warm grey (pale oak) of hero cards and wells */
  --cool-2: #e4ebe7;
  --stage: #f2f3f0;                 /* behind building photos and objects: the exact backdrop of every image */
  --fill: #f2f5f3;                  /* hover and inset fields inside white cards */
  --warm: var(--cool);
  --bg: #fff;                       /* cards */
  --ink-btn: #0a6b44;               /* primary action: oak green, round */
  --ink-btn-edge: #000000;          /* its pressed-in bottom edge */
  --accent: #0a6b44;                /* the one accent: actions, links, focus, active controls */
  --accent-hover: #075a39;
  --link: #075a39;
  --ring: rgb(10 107 68 / .3);

  --applies: #116b34;                /* leaf green: kept apart from the oak brand green (dE00 22.9) */
  --unknown: #8f5200;
  --soon: #1e4fc2;
  --pending: #6b2bc9;
  --st-muted: #4a5260;
  --danger: #b4231a;
  /* chart tokens for feature modules (stats.js) */
  --status-in-force: var(--applies); --status-soon: var(--soon); --status-pending: var(--pending); --status-failed: #8a919c; --chart-grid: rgb(14 16 20 / .07);
  --ok-tint: #e7f5ec; --unk-tint: #fdf1dc; --soon-tint: #e9effd; --pen-tint: #f1ebfd; --mut-tint: #efefec; --over-tint: #fdeceb;

  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Instrument Serif", "Serif Fallback", "Times New Roman", Times, serif;  /* headlines, big numbers */
  --display-sans: var(--font);      /* section titles (america.gov: Helvetica Now Display 500) */
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xl: clamp(3.4rem, 2rem + 4.6vw, 6rem);       /* home headline (serif) */
  --fs-l: clamp(2.8rem, 2rem + 2.6vw, 4.4rem);      /* page and address titles (serif) */
  --fs-h2: clamp(2rem, 1.7rem + .9vw, 2.5rem);      /* section titles (serif, >= 32 px) */
  --fs-m: 16px;
  --fs-s: 14px;
  --radius: 14px;
  --r-card: 28px;
  --r-in: 18px;
  --shadow-card: 0 0 0 1px rgb(17 22 20 / .05), 0 1px 2px rgb(17 22 20 / .03), 0 8px 28px rgb(17 22 20 / .05);
  --shadow-lift: 0 0 0 1px rgb(17 22 20 / .05), 0 2px 4px rgb(17 22 20 / .04), 0 20px 44px rgb(17 22 20 / .09);
  --shadow-float: 0 0 0 1px rgb(17 22 20 / .04), 0 2px 6px rgb(17 22 20 / .05), 0 28px 64px rgb(17 22 20 / .13);
  --dock-h: 0px;                    /* set by the docked Ask bar (features/ask.js) so nothing hides behind it */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 72px;
  --tabbar-h: 0px;
  --inset: 32px;
  --col: 800px;
  --page: 1216px;

  /* aliases for the feature modules' stylesheets (older token names), mapped onto the palette above */
  --ink: var(--label); --ink-2: var(--label-2); --ink-3: var(--label-2); --ink-4: var(--label-3);
  --line: var(--sep-2); --line-2: var(--sep-2); --tint: rgb(10 107 68 / .05); --tint-2: rgb(10 107 68 / .09); --hero: var(--canvas); --footer: var(--canvas); --muted: var(--fill);
  --navy: var(--accent); --serif: var(--display); --sans: var(--font);
  --ok: var(--applies); --ok-bg: var(--ok-tint); --ok-ln: #bfe3cb; --unk: var(--unknown); --unk-bg: var(--unk-tint); --unk-ln: #f1d6a2;
  --nye: var(--soon); --nye-bg: var(--soon-tint); --nye-ln: #c6d5fa; --pen: var(--pending); --pen-bg: var(--pen-tint); --pen-ln: #d9cbfa; --wrn: #a83f0b; --wrn-bg: #fff1e8;
  --shadow-rest: var(--shadow-card);
  --ease-std: cubic-bezier(.4, 0, .2, 1); --ease-entrance: cubic-bezier(.16, 1, .3, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1); --ease-pop: var(--spring);
  --t: .25s; --t-fast: .15s; --press: .97; --r-hero: 36px; --fs-h1: var(--fs-l); --fs-hero: var(--fs-xl);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--canvas); }
/* small official-style strip above the header */
html.locked { overflow: hidden; }
body {
  margin: 0; background: var(--canvas); color: var(--label);
  font: 400 var(--fs-m)/1.55 var(--font); letter-spacing: -.006em; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
.linkish, .ck-more > summary, .ce-l-main, .ce-explain, .addr-actions > a { text-decoration: underline; text-decoration-color: rgb(7 90 57 / .3); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.linkish:hover, .ck-more > summary:hover, .addr-actions > a:hover { text-decoration-color: currentColor; }
::selection { background: rgb(10 107 68 / .14); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; letter-spacing: inherit; word-spacing: inherit; }
input, select, textarea { font: inherit; letter-spacing: inherit; color: var(--label); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; } /* #131 */
main:focus, main:focus-visible { outline: none; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: 0; }
.muted { color: var(--label-2); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--label); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
.nw { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.sep { color: var(--label-3); margin: 0 6px; }
mark { background: none; color: inherit; font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: inherit; font-weight: 500; }
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }

/* a white card: the one surface level */
.card { background: var(--bg); border-radius: var(--r-card); box-shadow: var(--shadow-card); }

/* ------------------------------------------------------------- header */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--label); white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-btn); color: #fff; display: grid; place-items: center; padding: 0; flex: none; box-shadow: 0 2px 0 var(--ink-btn-edge); transition: transform .35s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-mark svg { width: 62%; height: 62%; display: block; } /* the acorn (web/static/brand) */
.brand-word { font: 700 27px/1 var(--display); letter-spacing: 0; }
.brand-word i { font-style: italic; color: var(--accent); }
.brand:hover { text-decoration: none; }
/* main nav: one white pill holding the links; a black pill slides to the active one */ /* a tapped tab never keeps the link underline (sticky touch hover) */ /* touch: a tapped tab never keeps a dark hover after Back */ /* before the indicator measures */
.tool { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; background: var(--cool); border-radius: 999px; color: var(--label); font-size: var(--fs-s); font-weight: 500; cursor: pointer; white-space: nowrap; transition: transform .2s var(--spring), background-color .2s; }
.tool:hover { background: var(--cool-2); }
.tool:active { transform: scale(.95); }
/* header fit levels (fitHeader in app.js) */
/* language: two-button segmented control with a sliding white thumb */
.fixture-banner { background: #fff8e6; color: var(--unknown); font-size: var(--fs-s); text-align: center; padding: 6px 16px; }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); opacity: 0; }
.progress.run { opacity: 1; width: 70%; transition: width 4s cubic-bezier(.1, .7, .2, 1); }
.progress.done { opacity: 0; width: 100%; transition: width .2s ease, opacity .3s ease .2s; }

/* ------------------------------------------------------------- buttons: tactile, with a pressed-in bottom edge */
.btn, .pill {
  --edge: #d8dfdb;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border-radius: 999px; border: 0; background: var(--bg); color: var(--label); font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: inset 0 0 0 1px var(--sep), 0 3px 0 var(--edge); cursor: pointer; text-decoration: none; white-space: nowrap;
  transform: translateY(0); transition: transform .12s var(--ease-std), box-shadow .12s var(--ease-std), background-color .2s;
  margin-bottom: 3px; -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover, .pill:hover { text-decoration: none; background: #fbfbf9; }
.btn:active, .pill:active { transform: translateY(3px); box-shadow: inset 0 0 0 1px var(--sep), 0 0 0 var(--edge); }
.btn.primary, .pill.primary { --edge: var(--ink-btn-edge); background: var(--ink-btn); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 3px 0 var(--edge), 0 8px 20px rgb(10 107 68 / .22); }
@media (hover: hover) { .btn.primary:hover, .pill.primary:hover { background: #075a39; }
} /* no sticky hover colour after a tap */
.btn.primary:active, .pill.primary:active { box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 0 0 var(--edge), 0 2px 6px rgb(14 16 20 / .16); }
.btn .arrow-i, .pill .arrow-i { transition: transform .3s var(--spring); }
.btn:hover .arrow-i, .pill:hover .arrow-i { transform: translateX(3px); }
.pill.ghost { background: none; box-shadow: none; color: var(--accent); margin-bottom: 0; }
.pill.ghost:hover { background: var(--fill); }
.pill.line { background: var(--bg); }
.pill.danger { --edge: #7d150f; background: var(--danger); color: #fff; box-shadow: 0 3px 0 var(--edge); }
.pill[disabled], .btn[disabled] { opacity: .5; cursor: default; transform: translateY(3px); box-shadow: inset 0 0 0 1px var(--sep); }
.btn.primary[disabled] { box-shadow: none; }
.pill .ico, .btn .ico { width: 17px; height: 17px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--fill); color: var(--label-2); cursor: pointer; flex: none; transition: transform .2s var(--spring), background-color .2s; }
.icon-btn:hover { color: var(--label); background: #ececE8; }
.icon-btn:active { transform: scale(.9); }
.icon-btn .ico { width: 16px; height: 16px; }

/* skeleton */
.sk { background: rgb(14 16 20 / .06); border-radius: 10px; animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { 50% { opacity: .5; } }

/* ------------------------------------------------------------- page frame */
main { flex: 1; min-height: calc(100vh - var(--nav-h)); width: 100%; max-width: calc(var(--page) + 2 * var(--inset)); margin: 0 auto; padding: 24px max(var(--inset), env(safe-area-inset-right)) 0 max(var(--inset), env(safe-area-inset-left)); outline: none; }
main.fade-in { animation: rise .5s var(--ease-out) both; }
main.fade-quick { animation: rise-q .32s cubic-bezier(.2, .8, .2, 1) both; }
main.fade-quick .gal > img, main.fade-quick .topics > .topic { animation: none !important; }
@keyframes rise-q { from { opacity: 0; transform: translateY(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
main.fade-in .topics > .topic, main.fade-in .group > li { animation: rise .55s var(--ease-out) both; }
main.fade-in .topics > .topic:nth-child(2), main.fade-in .group > li:nth-child(2) { animation-delay: 40ms; }
main.fade-in .topics > .topic:nth-child(3), main.fade-in .group > li:nth-child(3) { animation-delay: 80ms; }
main.fade-in .topics > .topic:nth-child(4), main.fade-in .group > li:nth-child(4) { animation-delay: 120ms; }
main.fade-in .topics > .topic:nth-child(n+5), main.fade-in .group > li:nth-child(n+5) { animation-delay: 160ms; }
@keyframes fade { from { opacity: 0; } }
@keyframes img-in { from { opacity: 0; transform: scale(1.04); } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(.6) rotate(-6deg); } 60% { opacity: 1; transform: scale(1.06) rotate(1deg); } 100% { transform: none; } }

/* page head: big headline on the canvas, a clay sticker on the right (missing image: just the text) */
.page-head { position: relative; max-width: none; margin: 24px 0 32px; padding-right: 200px; min-height: 152px; display: flex; flex-direction: column; justify-content: center; }
.page-head h1 { font: 700 var(--fs-l)/.98 var(--display); letter-spacing: -.03em; max-width: 16ch; }
.page-head p { color: var(--label-2); margin-top: 12px; font-size: 18px; max-width: 60ch; }
.page-head:not(.has-art) { padding-right: 0; }
.ph-art { position: absolute; right: 8px; top: 50%; width: 152px; height: 152px; margin-top: -76px; border-radius: 50%; overflow: hidden; background: var(--stage); box-shadow: 0 0 0 6px #fff, 0 18px 40px rgb(17 22 20 / .12); animation: pop-in .7s var(--spring) .1s both; }
.ph-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .ph-art { display: none; } .page-head { padding-right: 0; }
}

.ck .page-head { padding-right: 0; min-height: 0; }
.block { margin-top: 24px; }
.block > h2, .disclose > summary h2 { font: 700 var(--fs-h2)/1.08 var(--display); letter-spacing: -.015em; margin-bottom: 16px; }
.block-lead { color: var(--label-2); font-size: var(--fs-s); margin: -8px 0 16px; max-width: var(--col); }
.empty { color: var(--label-2); padding: 24px 0; text-align: center; font-size: var(--fs-s); }
/* section card: white surface around one section's content */
[data-slot="changes-top"] > .pt { background: var(--bg); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 28px 32px; margin: 0 0 16px; }
.panel { background: var(--bg); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 28px 32px; }
.panel + .panel { margin-top: 16px; }
.panel > h2 { font: 700 var(--fs-h2)/1.08 var(--display); letter-spacing: -.015em; margin-bottom: 16px; }

/* grouped list: hairline rows */
.group { border-top: 1px solid var(--sep-2); }
.group > li, .group > .topic { border-bottom: 1px solid var(--sep-2); }
.list-h { font-size: var(--fs-s); font-weight: 600; color: var(--label-2); margin-bottom: 8px; }
.chev { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--label-3); transition: transform .35s var(--spring), background-color .2s, color .2s; }
.chev .ico { width: 16px; height: 16px; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary .chev { transform: rotate(90deg); }

/* status mark: the word in its colour */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--st-muted); background: var(--mut-tint); line-height: 1.35; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.st-applies, .badge.st-in_force { background: var(--ok-tint); }
.badge.st-unknown { background: var(--unk-tint); }
.badge.st-not_yet_effective, .badge.st-soon { background: var(--soon-tint); }
.badge.st-pending { background: var(--pen-tint); }
.st-applies, .st-in_force { color: var(--applies); }
.st-unknown { color: var(--unknown); }
.st-not_yet_effective, .st-soon { color: var(--soon); }
.st-pending { color: var(--pending); }
.st-superseded, .st-failed, .st-no_rule, .st-exempt, .st-no_limit { color: var(--st-muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ------------------------------------------------------------- home */
body { overflow-x: clip; }
/* hero: one big rounded panel in a very light cool-grey gradient, the header sits on it */
/* search pill overlapping the top edge of the photo card */
.big-search { position: absolute; z-index: 20; left: 18px; right: 18px; top: 0; margin: 0; text-align: left; }
.big-search .box { display: flex; align-items: center; height: 72px; padding: 0 12px 0 28px; border-radius: 999px; background: var(--bg); box-shadow: 0 0 0 2px var(--label), 0 18px 40px rgb(17 22 20 / .14); transition: box-shadow .2s cubic-bezier(.22, 1, .36, 1); }
.big-search .box:focus-within { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px var(--ring), 0 18px 40px rgb(17 22 20 / .14); }
.bs-f { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; height: 56px; border-radius: 999px; }
.bs-addr { flex: 1; }
.bs-f input { width: 100%; min-width: 0; text-overflow: ellipsis; padding-right: 8px; height: 28px; border: 0; outline: none; background: none; font-size: 18px; padding: 0; color: var(--label); }
.bs-f input::placeholder { color: var(--label-3); text-overflow: ellipsis; }
.big-search .box { gap: 8px; }
.big-search .go { --edge: var(--ink-btn-edge); flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--ink-btn); color: #fff; cursor: pointer; box-shadow: 0 3px 0 var(--edge); transform: translateY(-1.5px); transition: transform .12s var(--ease-std), box-shadow .12s, background-color .2s cubic-bezier(.22, 1, .36, 1); }
.big-search .go:hover { background: #075a39; }
.big-search .go:active { transform: translateY(1.5px); box-shadow: 0 0 0 var(--edge); }
.big-search .go .ico { width: 20px; height: 20px; stroke-width: 2.2; transition: transform .3s var(--spring); }
.big-search .go:hover .ico { transform: translateX(2px); }
/* photo card: a slow carousel of buildings in the covered cities */
.gal img.cutout { object-position: 50% 72%; mix-blend-mode: multiply; }
.gal.street > img { object-position: 50% 62%; }
/* serif statement with inline image chips, words brighten in reading order */
.s-nav, .s-ok { display: inline-grid; place-items: center; width: 1.05em; height: 1.05em; border-radius: 50%; color: #fff; box-shadow: 0 0 0 4px #fff, 0 8px 18px rgb(17 22 20 / .14); }
.s-nav { background: var(--ink-btn); }
.s-ok { background: var(--applies); }
.s-nav .ico, .s-ok .ico { width: .5em; height: .5em; stroke-width: 2.6; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1); }
[data-reveal].in { opacity: 1; transform: none; }
/* feature rows: media card and text, alternating */
.suggest { position: absolute; left: 8px; right: 8px; top: calc(100% + 8px); z-index: 20; background: var(--bg); border-radius: 24px; box-shadow: var(--shadow-float); padding: 8px; max-height: 60vh; overflow: auto; }
.opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; cursor: pointer; text-align: left; } /* #156 */
.opt[aria-selected="true"] { background: var(--fill); }
.opt .addr { font-size: var(--fs-m); font-weight: 500; overflow-wrap: anywhere; } /* #154 */
.opt .sub { font-size: var(--fs-s); color: var(--label-2); }
.opt .arrow { color: var(--label-3); display: inline-flex; transition: transform .25s var(--spring); }
.opt[aria-selected="true"] .arrow { transform: translateX(3px); color: var(--label); }
.opt .arrow .ico { width: 16px; height: 16px; }
.opt .pin { display: none; }
.opt.empty { cursor: default; }

/* map stage: light US map, city photo markers, a floating card for the selected city */ /* 500: the floating city card (about 455 px) fits inside the stage at tablet widths */

/* big numbers from the data */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.stats-row > div { display: flex; flex-direction: column; gap: 8px; padding: 26px 4px 0; border-top: 1px solid var(--sep); }
.stats-row b { font: 700 60px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats-row span { font-size: 15px; line-height: 1.4; color: var(--label-2); max-width: 16em; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.features > div { padding: 28px; border-radius: 24px; background: var(--bg); box-shadow: inset 0 0 0 1px #e2e8e4; }
.features h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.features p { color: var(--label-2); font-size: 15px; line-height: 1.5; margin-top: 8px; }
@media (max-width: 760px) { .features { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------- address */
article.addr { display: block; }
/* hero: the building large on its stage with three answers floating over it, details on the right */
.ahero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; padding: 12px; background: radial-gradient(120% 90% at 30% 0%, #fbfcfb 0%, var(--cool) 60%, #eaefec 100%); border-radius: 48px; }
.ahero .gal { border-radius: 38px; box-shadow: 0 24px 48px -24px rgb(17 22 20 / .25); }
.ahero .addr-stack > span:not(.sep):not(.city), .ahero .facts .st-i { background: #fff; }
.gal { position: relative; min-height: 460px; border-radius: 28px; background: var(--stage); overflow: hidden; }
.gal > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; animation: img-in .9s var(--ease-out) both; }
.spot { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 250px; padding: 10px 14px 11px; border: 0; border-radius: 18px; background: rgb(255 255 255 / .94); box-shadow: 0 1px 2px rgb(14 16 20 / .06), 0 12px 32px rgb(14 16 20 / .14); text-align: left; cursor: pointer; animation: rise .55s var(--ease-out) both; transition: transform .2s var(--ease-out), background-color .2s var(--ease-out); }
.spot small { font-size: 12px; font-weight: 600; color: var(--label-2); }
.spot b { font-size: 15px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; color: var(--label); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.spot::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--label); box-shadow: 0 0 0 4px rgb(255 255 255 / .9); }
.spot:hover { background: var(--fill); }
.spot:active { transform: scale(.98); }
.spot-1 { left: 20px; top: 20px; animation-delay: .35s; }
.spot-1::after { right: -22px; bottom: 6px; }
.spot-2 { right: 20px; top: 42%; animation-delay: .5s; }
.spot-2::after { left: -22px; top: 50%; margin-top: -5px; }
.spot-3 { left: 20px; bottom: 20px; animation-delay: .65s; }
.spot-3::after { right: -22px; top: 8px; }
.addr-head { padding: 28px 28px 20px; display: flex; flex-direction: column; min-width: 0; }
.addr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--fs-s); }
.addr-top .linkish { padding: 12px 0; margin: -12px 0; }
.addr-head h1 { margin-top: 18px; font: 700 clamp(2.8rem, 2rem + 2vw, 4rem)/.98 var(--display); letter-spacing: -.03em; }
.addr-sub { color: var(--label-2); margin-top: 8px; font-size: 17px; }
.addr-line { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sep-2); font-size: 17px; font-weight: 550; color: var(--label); }
.addr-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; font-size: var(--fs-s); color: var(--label-2); }
.addr-stack .sep { display: inline; margin: 0 2px; color: var(--label-3); }
.addr-stack > span:not(.sep) { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--fill); }
.addr-stack > span.city { background: var(--ink-btn); color: #fff; font-weight: 600; }
/* icon stat row */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--sep-2); }
.facts > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; min-width: 0; }
.facts .st-i { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--fill); color: var(--label); }
.facts .st-i .ico { width: 18px; height: 18px; }
.facts dt { font-size: 12px; color: var(--label-2); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts dd { font-size: 18px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.facts dd.na { color: var(--label-3); font-weight: 500; font-size: 15px; }
.prop-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: auto; padding-top: 24px; }
.prop-cta .addr-actions { margin: 0; }
/* below the hero: the answers, and a side column with what is coming */
.adetail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-top: 24px; }
.aside { position: sticky; top: calc(var(--nav-h) + 12px); display: grid; gap: 12px; margin-top: 64px; }
.aside-card { display: block; padding: 22px 22px 20px; border-radius: var(--r-card); background: var(--bg); box-shadow: var(--shadow-card); color: var(--label); }
.mini { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-items: center; }
.mini img, .mini .mini-i { grid-row: span 2; width: 64px; height: 64px; border-radius: 16px; background: var(--stage); object-fit: cover; object-position: 50% 60%; }
.mini b { font-size: 16px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.mini span { font-size: 13px; color: var(--label-2); }
.mini + .btn { width: 100%; margin-top: 16px; }
.aside-card h2 { font-size: 17px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 10px; }
.aside-card .muted { font-size: var(--fs-s); }
.cu { display: grid; gap: 2px; margin: 0 -10px; }
.cu a { display: flex; flex-direction: column; padding: 10px; border-radius: 14px; color: var(--label); transition: background-color .2s; }
.cu a:hover { background: var(--fill); text-decoration: none; }
/* where to get help (web/legal.py): the address page's side card and the About this information dialog (#4) */
.help-l { list-style: none; padding: 0; display: grid; gap: 2px; margin: 8px -10px 0; }
.help-l a { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 14px; color: var(--label); transition: background-color .2s; }
.help-l a:hover { background: var(--fill); text-decoration: none; }
.help-l .help-n { font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.help-l .help-n .ico { margin-left: 5px; vertical-align: -1px; color: var(--label-3); }
.help-l small { font-size: 12.5px; color: var(--label-2); }
.aside-help .muted { margin-top: -4px; }
.nla-help { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sep-2); }
.nla-help h3 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.nla-help .muted { margin-top: 2px; font-size: 13.5px; }
.nla-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--sep-2); font-size: 13.5px; }
.nla-legal a { font-weight: 550; }
.cu-d { font-size: 14px; font-weight: 650; color: var(--soon); }
.aside-card + .aside-card { margin-top: 0; }
.cu-t { font-size: 13px; color: var(--label-2); }
/* a quiet text link, not a second button: the card's content is the dates above (or the calm "no change" line) */
.cu-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 14px; font-weight: 650; color: var(--accent); }
.cu-go::after { content: ""; width: 16px; height: 16px; background: currentColor; transition: transform .3s var(--spring);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.cu-go:hover { text-decoration: none; }
.cu-go:hover::after { transform: translateX(3px); }
.aside-nl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; transition: transform .2s var(--ease-out), background-color .2s var(--ease-out); }
.aside-nl:hover { text-decoration: none; background: var(--fill); }
.aside-nl:active { transform: scale(.98); }
.aside-nl b { font: 700 40px/1 var(--display); letter-spacing: -.02em; color: var(--pending); }
.aside-nl span { font-size: 13px; color: var(--label-2); line-height: 1.3; }
.aside-nla { font-size: 13px; color: var(--label-2); padding: 4px 8px; }
.aside-nla strong { color: var(--label); }
.topic.flash > summary { animation: flash 1.2s ease-out; }
@keyframes flash { 0%, 30% { background: rgb(14 16 20 / .06); } }
.addr-meta { font-size: var(--fs-s); color: var(--label-2); margin-top: 12px; }
.addr-meta .linkish { font-size: inherit; padding: 12px 0; margin: -12px 0; } /* 44 px tap area inside a text line */
.addr-meta + .addr-meta { margin-top: 4px; }
.addr-meta.strong { color: var(--label); }
.how > summary { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); min-height: 32px; }
.how > summary .chev { color: inherit; }
.how .kv { margin-top: 8px; }
.kv { display: grid; gap: 0; font-size: var(--fs-s); border-top: 1px solid var(--sep-2); }
.kv > div { display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--sep-2); }
.kv dt { color: var(--label-2); }
.kv dd { overflow-wrap: anywhere; }
.answers { min-width: 0; }
.answers-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 16px; flex-wrap: wrap; margin: 8px 0 16px; }
.answers-head .addr-actions { margin: 0 0 0 auto; order: 2; }
.answers-head .note { order: 3; flex-basis: 100%; }
.answers-head h2 { font: 700 var(--fs-h2)/1.08 var(--display); letter-spacing: -.015em; }
.answers-head .note { font-size: var(--fs-s); color: var(--label-2); }
.answers-head.sub-head { margin-top: 40px; }

.topics.group { border: 0; background: var(--bg); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 8px; }
.topics.group > .topic { border-bottom: 0; border-radius: 20px; transition: background-color .2s; }
.topics.group > .topic + .topic { margin-top: 2px; }
.topics.group > .topic + .topic::after { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 1px; background: var(--sep-2); }
.topics.group > .topic[open], .topics.group > .topic[open] + .topic { }
.topics.group > .topic[open]::after, .topics.group > .topic[open] + .topic::after { opacity: 0; }
.topics.group > .topic[open] { background: var(--fill); }
.topic > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: start; gap: 4px 16px; padding: 18px 16px 18px 20px; border-radius: 20px; transition: background-color .2s; }
@media (hover: hover) {
  .topics.group > .topic:not([open]) > summary:hover { background: var(--fill); }
  .topic:not([open]) > summary:hover .chev { background: var(--bg); color: var(--label); transform: translateX(2px); }
  .subrule > summary:hover .sub-t, .ev:hover .ev-t, .disclose > summary:hover h2 { color: var(--accent); }
}
.topic > summary:active { transform: scale(.995); }
.topic > summary .badge { margin-top: 2px; }
.topic > summary .chev { margin-top: 0; }
.topic-main { display: flex; flex-direction: column; min-width: 0; }
.topic-q { font-size: 15px; font-weight: 500; color: var(--label-2); }
/* opened topic: why, question, actions, then the law behind one tap */
.why { font-size: 18px; line-height: 1.45; color: var(--label); max-width: 34em; }
.fq { margin-top: 16px; padding: 18px 20px; border-radius: 20px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--unk-ln); }
.fq-q { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.fq-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fq-b .btn { min-width: 88px; }
.fq-b .btn[aria-pressed="true"], .fq-b .btn[data-val][aria-pressed="true"] { --edge: var(--ink-btn-edge); background: var(--ink-btn); color: #fff; box-shadow: 0 3px 0 var(--edge); }
.fq-b .ghost-b { box-shadow: none; background: none; margin-bottom: 3px; color: var(--label-2); }
.fq.busy { opacity: .6; pointer-events: none; transition: opacity .2s; }
.fq-note { margin-top: 12px; font-size: 15px; color: var(--label-2); }
.calc { margin-top: 16px; padding: 16px 18px; border-radius: 20px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--sep-2); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.calc label { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.calc-in { display: inline-flex; align-items: center; gap: 4px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--sep-2); transition: box-shadow .2s; }
.calc-in:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--ring); }
.calc-in b { color: var(--label-3); font-weight: 500; }
.calc-in input { width: 110px; border: 0; outline: none; background: none; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-out { font-size: 18px; font-weight: 650; letter-spacing: -.015em; color: var(--applies); }
.calc.pulse .calc-out { animation: ans-pop .5s var(--spring); }
.fq-pre { margin-top: 10px; font-size: 15px; color: var(--label); font-weight: 500; }
.fq-pre:empty { display: none; }
.fq-f { margin-top: 6px; font-size: 13px; color: var(--label-3); }
.ex-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; padding: 12px 16px; border-radius: 18px; background: var(--soon-tint); color: var(--label); font-size: 15px; }
.ex-banner .ico { color: var(--soon); }
.said { flex-basis: 100%; order: 4; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 14px; border-radius: 999px; background: var(--ok-tint); color: var(--applies); font-size: 14px; font-weight: 550; width: fit-content; animation: pop-in .5s var(--spring); }
.said .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.said .linkish { color: var(--applies); margin-left: 4px; }
.topic.pop > summary .topic-a, .topic.pop .topic-body > .why { animation: ans-in .36s cubic-bezier(.22, 1, .36, 1); }
@keyframes ans-in { from { opacity: 0; transform: translateY(6px); } }
.topic.pop .sdot { animation: dot-in .3s ease; }
@keyframes dot-in { from { background: #d98a00; } }
.topic.resolved > summary .topic-a::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: 8px; vertical-align: -3px; border-radius: 50%; background: var(--applies) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; animation: check-pop .5s var(--spring) .1s both; }
@keyframes ans-pop { 0% { transform: scale(.96); opacity: .4; } 60% { transform: scale(1.02); opacity: 1; } 100% { transform: none; } }
.topic-body > .topic-actions { margin-top: 18px; }
.law { margin-top: 18px; border-top: 1px solid var(--sep-2); }
.law > summary { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--accent); }
.law > summary .chev { color: inherit; }
.law > summary:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.law-in { padding-top: 4px; animation: body-in .35s var(--ease-out); }
.law-x { font-size: var(--fs-s); color: var(--label-2); margin-bottom: 12px; }
.l3 { margin-top: 4px; }
.l3-ok { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 550; color: var(--applies); }
.l3-ok .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.src-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--unk-ln); border-radius: 12px; background: var(--unk-tint); color: var(--unknown); font-size: 14px; line-height: 1.45; }
.src-note .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.src-note b { font-weight: 650; }
.l3-tr { font-size: 13px; color: var(--label-2); margin-bottom: 8px; }
.flag { margin-top: 12px; border-radius: 14px; background: var(--unk-tint); color: var(--label); font-size: 15px; }
.flag > summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; }
.flag > summary .ico { color: var(--unknown); width: 17px; height: 17px; }
.flag-why { margin-left: auto; font-weight: 600; color: var(--unknown); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.flag > p { padding: 0 14px 12px 39px; color: var(--label-2); font-size: 14px; }
.also-l { margin-top: 12px; display: grid; gap: 6px; }
.also-l li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.45; }
.also-l li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--applies); }
.l3 .quote { font-size: 16px; }
.more { margin-top: 14px; }
.more > summary { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--label-2); }
.more > summary .chev { color: inherit; width: 22px; height: 22px; }
.more-in { padding-top: 6px; animation: body-in .3s var(--ease-out); }
.sdot { width: 12px; height: 12px; margin: 8px 6px 0; border-radius: 50%; background: var(--st-muted); box-shadow: 0 0 0 4px rgb(74 82 96 / .12); }
.sd-ok { background: var(--applies); box-shadow: 0 0 0 4px rgb(48 118 28 / .14); }
.sd-ask { background: #d98a00; box-shadow: 0 0 0 4px rgb(217 138 0 / .18); }
.sd-later { background: var(--soon); box-shadow: 0 0 0 4px rgb(30 79 194 / .14); }
.sd-none { background: #a3a9b3; box-shadow: 0 0 0 4px rgb(163 169 179 / .18); }
.topic-a { font-size: 21px; }
.topic-a { color: var(--label); font-size: 19px; line-height: 1.32; font-weight: 640; letter-spacing: -.02em; overflow-wrap: anywhere; margin-top: 3px; }
.topic-w { font-size: 16px; font-weight: 450; color: var(--label-2); letter-spacing: -.01em; } /* short answers: never clipped */
.topic-x { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-s); color: var(--label-3); margin-top: 4px; }
.topic-x .soon { color: var(--soon); font-weight: 550; }
.num-b { font-size: var(--fs-s); color: var(--label-2); white-space: nowrap; margin-top: 2px; }
.topic-body { padding: 0 56px 24px 20px; }
.topic[open] > .topic-body { animation: body-in .35s var(--ease-out); }
@keyframes body-in { from { opacity: 0; transform: translateY(-6px); } }
/* Listen: the topic being read gets a navy rule at its left edge (no background flash) */
.topic { position: relative; }
.topic.is-speaking::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.topic-actions:empty { display: none; }
.topic-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: var(--fs-s); }
.topic-actions > a, .topic-actions > button { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--sep); color: var(--label); font-weight: 600; text-decoration: none; transition: transform .2s var(--spring), box-shadow .2s; }
.topic-actions > a:hover, .topic-actions > button:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--label); }
.topic-actions > a:active, .topic-actions > button:active { transform: scale(.96); }
.topic-actions .ce-explain span, .topic-actions .ce-explain:hover span { text-decoration: none; }
/* tablet and desktop: one filled action (Check ...) first, Listen and Share as quiet words in one style
   (phones have their own in mobile.css) */
@media (min-width: 641px) and (min-height: 501px), (min-width: 641px) and (pointer: fine) {
  html .topic-actions { align-items: center; gap: 8px 24px; }
  html .topic-actions > a, html .topic-actions > button { padding: 0; border: 0; background: none; box-shadow: none; color: var(--label-2); font-weight: 500; }
  html .topic-actions > a:hover, html .topic-actions > button:hover { box-shadow: none; color: var(--label); }
  html .topic-actions > button:hover span { text-decoration: underline; text-underline-offset: 3px; }
  html .topic-actions > .ce-share-b .ico { display: none; }
  html .topic-actions > .ce-share-b[aria-expanded="true"] { background: none; box-shadow: none; color: var(--accent); }
  html .topic-actions > .ck-entry { order: -1; min-height: 40px; padding: 0 20px; border-radius: 999px; background: var(--ink-btn); color: #fff; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 0 var(--ink-btn-edge); }
  html .topic-actions > .ck-entry:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 2px 0 var(--ink-btn-edge); }
  html .topic-actions > .ck-entry:active { transform: translateY(2px); box-shadow: none; }
}
@media (min-width: 641px) and (min-height: 501px) and (pointer: coarse) { html .topic-actions > a, html .topic-actions > button, html .topic-actions > .ck-entry { min-height: 44px; }
}
/* tablets: place chips, compare's Change, check's back pill and the chart's list toggle are full 44 px targets */
@media (min-width: 641px) and (min-height: 501px) and (pointer: coarse) {
  html .chip-f { height: 44px; }
  html .ck-back, html .pt-data summary { min-height: 44px; } /* a real 44 px box (a padded hit area would overlap the street link above) */
}

.rd { max-width: 680px; }
.rd + .rd { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--sep-2); }
.rd-title { font-size: var(--fs-s); font-weight: 600; color: var(--label-2); margin-bottom: 4px; }
.rd-plain { line-height: 1.55; }
.rd-needs { margin-top: 12px; }
.rd-needs b { font-weight: 600; color: var(--unknown); }
.rd-sec { margin-top: 20px; }
.rd-src { margin-top: 16px; }
.rd-sec h5 { font-size: 13px; font-weight: 650; color: var(--label-2); margin-bottom: 6px; }
.rd-sec ul { padding-left: 20px; list-style: disc; }
.rd-sec li { margin: 2px 0; }
.rd-sec li::marker { color: var(--label-3); }
.rd-sec p { line-height: 1.55; }
.quote { position: relative; padding: 16px 18px 16px 20px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--sep-2); line-height: 1.55; overflow-wrap: anywhere; font-size: 15px; }
.quote::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--label); }
.rd-cite { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-s); margin-top: 10px; }
.rd-cite a { display: inline-flex; align-items: center; gap: 3px; }
.rd-meta { font-size: var(--fs-s); color: var(--label-2); margin-top: 4px; overflow-wrap: anywhere; }
.rd-meta .ok { color: var(--applies); font-weight: 550; }
.rd-meta .warn { color: var(--unknown); }
.rd-meta .ico { width: 14px; height: 14px; margin-right: 3px; vertical-align: -2px; }
.rd-meta .sep:first-child { display: none; }
.also { margin-top: 28px; }
.also > h5 { font-size: 13px; font-weight: 650; color: var(--label-2); margin-bottom: 4px; }
.subrule { border-top: 1px solid var(--sep-2); }
.subrule:last-child { border-bottom: 1px solid var(--sep-2); }
.subrule > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 16px; align-items: start; padding: 12px 0; }
.subrule > summary .chev { margin-top: -3px; }
.sub-main { display: flex; flex-direction: column; min-width: 0; }
.sub-t { font-weight: 550; }
.sub-a { font-size: var(--fs-s); color: var(--label-2); overflow-wrap: anywhere; }
.subrule > .rd { padding: 0 44px 20px 0; }
.notfound { max-width: 560px; margin: 40px auto; text-align: center; }
.notfound h1 { font: 700 var(--fs-l)/1 var(--display); letter-spacing: -.03em; }
.notfound p { color: var(--label-2); margin: 12px 0 24px; }
.notfound .group { margin-top: 32px; text-align: left; }
.notfound .nf-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* lookup steps: what the server did for this address, revealed in order (a padded white card in the hero) */
.steps-card { margin-top: 24px; padding: 8px 20px; border-radius: 22px; background: var(--bg); box-shadow: var(--shadow-card); }
.lsteps { display: grid; }
.lstep { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 60px; padding: 10px 0; color: var(--label-2); }
.lstep + .lstep { border-top: 1px solid var(--sep-2); }
.lk { position: relative; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgb(17 22 20 / .18); color: #fff; }
.lk .ico { width: 13px; height: 13px; stroke-width: 3.2; opacity: 0; transform: scale(.3); }
.lt b { display: block; font-size: 16px; font-weight: 600; color: inherit; line-height: 1.3; }
.lt small { display: block; font-size: 14px; color: var(--label-2); line-height: 1.35; min-height: 0; max-height: 0; overflow: hidden; opacity: 0; transition: opacity .25s, max-height .3s var(--ease-out); }
.lstep.run { color: var(--label); }
.lstep.run .lk { box-shadow: inset 0 0 0 2px rgb(17 22 20 / .12); }
.lstep.run .lk::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: lk-run .8s linear infinite; }
@keyframes lk-run { to { transform: rotate(1turn); } }
.lstep.done { color: var(--label); }
.lstep.done .lk { background: var(--applies); box-shadow: none; animation: check-pop .45s var(--spring); }
.lstep.done .lk .ico { opacity: 1; transform: none; transition: transform .4s var(--spring) .04s, opacity .1s; }
.lstep.done small { max-height: 2.8em; opacity: 1; }
@keyframes check-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ------------------------------------------------------------- changes */
.tl { margin-bottom: 16px; }
.events { border-top: 0; }
.events > li:last-child { border-bottom: 0; }
.ev { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; width: 100%; padding: 16px 0; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 12px; transition: transform .2s var(--spring); }
.ev:active { transform: scale(.99); }
.ev-d { font-size: var(--fs-s); color: var(--label-2); font-variant-numeric: tabular-nums; }
.ev-main { display: flex; flex-direction: column; min-width: 0; }
.ev-t { font-weight: 550; }
.ev-s { font-size: var(--fs-s); color: var(--label-2); }
.ev:not(.past) .ev-t { color: var(--label); }
.chips-f { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.chip-f { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--cool); color: var(--label); font-size: 14px; font-weight: 550; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--spring); }
.chip-f:hover { background: var(--cool-2); }
.chip-f:active { transform: scale(.95); }
.chip-f[aria-pressed="true"] { background: var(--ink-btn); color: #fff; }
.ev-x > summary.ev { grid-template-columns: 120px minmax(0, 1fr) auto 28px; }
.ev-x[open] > summary .chev { transform: rotate(90deg); }
.ev-body { padding: 0 0 20px 136px; max-width: 760px; animation: body-in .3s var(--ease-out); }
.ev-title { font-size: 14px; color: var(--label-2); margin: 6px 0 10px; }
.ev-go { margin-top: 14px; }
.ev-t { font-size: 17px; }
.ev-older > ul { padding: 0 0 12px 136px; font-size: var(--fs-s); color: var(--label-2); }
.ev-older > ul li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 4px 0; }

/* bars (change checks) */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.ba.one { grid-template-columns: minmax(0, 1fr); }
.ba h5 { font-size: 13px; font-weight: 650; color: var(--label-2); margin-bottom: 6px; }
.rr-row { margin: 10px 0; }
.rr-row .nm { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgb(14 16 20 / .06); margin: 4px 0; }
.bar i { display: block; height: 100%; background: currentColor; }
.cnt { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--label-2); }
.cnt .dot { width: 6px; height: 6px; margin-right: 4px; vertical-align: 1px; }
.cnt > span > .dot { color: inherit; }
.citylist { font-size: var(--fs-s); color: var(--label-2); }
.citylist b { color: var(--label); font-weight: 600; }
.idlist { font-size: 13px; margin-top: 8px; line-height: 1.8; overflow-wrap: anywhere; }

/* ------------------------------------------------------------- rules + audit */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 22px 24px; background: var(--bg); border-radius: var(--r-in); box-shadow: var(--shadow-card); }
.stats dt { font-size: 13px; color: var(--label-2); line-height: 1.3; }
.stats dd { font: 700 52px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table-wrap.tall { max-height: 440px; overflow: auto; margin-top: 12px; }
.matrix { border-collapse: collapse; font-size: var(--fs-s); min-width: 640px; width: 100%; }
.matrix th, .matrix td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--sep-2); }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix thead th { font-weight: 550; color: var(--label-2); vertical-align: bottom; font-size: 13px; }
.matrix tbody th { font-weight: 500; white-space: nowrap; position: sticky; left: 0; z-index: 1; background: var(--bg); }
.matrix tr.state th { background: #f8f8f6 !important; }
.matrix tr.state th { font-weight: 650; }
.matrix tr.state th, .matrix tr.state td { background: rgb(14 16 20 / .025); }
.matrix td { text-align: center; }
.matrix thead th:not(:first-child) { text-align: center; }
.matrix td button { display: inline-grid; place-items: center; min-width: 32px; height: 32px; flex-shrink: 0; border: 0; background: var(--fill); padding: 0 8px; margin: -6px 0; border-radius: 999px; cursor: pointer; font-size: var(--fs-s); font-weight: 650; transition: transform .2s var(--spring), background-color .2s, color .2s; }
.matrix td button { color: var(--label); font-variant-numeric: tabular-nums; }
.matrix td button:hover { background: var(--ink-btn); color: #fff; }
.matrix td button:active { transform: scale(.94); }
.matrix td button span { margin-left: 4px; color: var(--label-2); font-variant-numeric: tabular-nums; }
.matrix .dot { width: 7px; height: 7px; }
.matrix .none { color: var(--label-3); }
.st-word { font-size: var(--fs-s); color: var(--label-2); white-space: nowrap; }
.stat-line { font-size: 17px; color: var(--label-2); max-width: var(--col); padding: 0; }
.matrix button.none.finding { background: none; color: var(--label-2); text-decoration: underline; text-decoration-color: var(--sep); text-underline-offset: 3px; font-weight: 500; }
.matrix button.none.finding:hover { background: var(--fill); color: var(--label); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--label-2); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 7px; height: 7px; }
.legend b { font-weight: 500; }
.disclose > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; }
#rules-table:not([open]) { background: none; box-shadow: none; padding: 0; margin-top: 16px; }
#rules-table:not([open]) > summary { display: inline-flex; min-height: 48px; padding: 0 12px 0 22px; border-radius: 999px; background: var(--bg); box-shadow: var(--shadow-card); transition: transform .2s var(--ease-out), background-color .2s var(--ease-out); }
#rules-table:not([open]) > summary:hover { background: var(--fill); }
#rules-table:not([open]) > summary:active { transform: scale(.98); }
#rules-table:not([open]) > summary h2 { font: 600 16px/1 var(--font); letter-spacing: -.01em; }
.disclose > summary h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.filters select, .filters input[type="search"] { height: 40px; border: 0; border-radius: 999px; padding: 0 14px; background: var(--fill); font-size: var(--fs-s); max-width: 100%; box-shadow: inset 0 0 0 1px var(--sep-2); }
.filters select:focus-visible, .filters input[type="search"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.filters input[type="search"] { min-width: 180px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-s); color: var(--label-2); }
.chk input { accent-color: var(--ink-btn); width: 18px; height: 18px; }
.count-note { font-size: 13px; color: var(--label-2); margin-bottom: 8px; }
.rtable { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.rtable th { text-align: left; font-weight: 550; color: var(--label-2); padding: 10px 8px; border-bottom: 1px solid var(--sep); position: sticky; top: 0; background: var(--bg); font-size: 13px; }
.rtable td { padding: 12px 8px; border-bottom: 1px solid var(--sep-2); vertical-align: top; }
.rtable tr.clickable { cursor: pointer; }
.rtable tr.clickable:hover td { background: var(--fill); }
.rtable .t { font-weight: 550; }
.rtable .s { color: var(--label-2); font-size: 13px; }
.rtable .kvc { max-width: 260px; }
.rtable td.empty { text-align: center; padding: 32px 8px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-in); background: var(--fill); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink-btn); color: #fff; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.steps b { font-weight: 650; }
.steps span { color: var(--label-2); font-size: var(--fs-s); line-height: 1.45; }
.log { max-height: 520px; overflow: auto; position: relative; border-top: 1px solid var(--sep-2); }
.log-row { border-bottom: 1px solid var(--sep-2); font-size: 13px; }
.log-row > summary { display: grid; grid-template-columns: 150px 70px 70px minmax(0, 1fr); gap: 12px; padding: 8px 0; }
.log-row .lt, .log-row .ld { font-family: var(--mono); font-size: 12px; color: var(--label-2); }
.log-row .lx { color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-raw { background: var(--fill); border-radius: 12px; padding: 12px; font-size: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px; }

/* sources hero: Lady Justice on her stage, the verbatim-quote figure floats over her */
/* the statue is background: under the text, clipped by the panel, never over the title (data-spring="bg") */
.src-statue { position: absolute; z-index: 0; right: 0; bottom: 0; height: 100%; width: auto; max-width: 52%; object-fit: cover; object-position: 30% 100%; pointer-events: auto; animation: img-in 1.1s var(--ease-out) both; -webkit-mask: linear-gradient(90deg, transparent, #000 16%); mask: linear-gradient(90deg, transparent, #000 16%); }
/* three facts */
.facts3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 8px 0 0; }
.facts3 > div { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid var(--sep); }
.facts3 dd { font: 700 clamp(2.6rem, 2rem + 1.8vw, 3.75rem)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts3 dd.f3-date { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); }
@media (min-width: 901px) { .facts3 dd.f3-date { display: flex; align-items: flex-end; height: clamp(2.6rem, 2rem + 1.8vw, 3.75rem); }
} /* desktop: the smaller date sits on the numbers' line, so the three labels align */
.facts3 dt { font-size: 15px; color: var(--label-2); max-width: 18em; }
/* how it works: three steps */
.how3 ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: h; }
.how3 li { padding: 12px 12px 24px; border-radius: 28px; background: var(--bg); box-shadow: var(--shadow-card); }
.how3-i { display: block; height: 180px; border-radius: 20px; background: #f2f3f0; overflow: hidden; margin-bottom: 18px; }
.how3-i img { display: block; height: 100%; margin: 0 auto; aspect-ratio: 1; object-fit: cover; -webkit-mask: radial-gradient(closest-side, #000 62%, transparent); mask: radial-gradient(closest-side, #000 62%, transparent); }
.how3 b { display: flex; align-items: center; gap: 10px; padding: 0 12px; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.how3-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink-btn); color: #fff; font-size: 13px; font-weight: 650; }
.how3 p { padding: 8px 12px 0; color: var(--label-2); font-size: 15px; line-height: 1.5; }
/* sources list */
.sr-find { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px; margin-bottom: 20px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--sep); max-width: 560px; }
.sr-find:focus-within { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--ring); }
.sr-find .ico { color: var(--label-3); }
.sr-find input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 17px; }
.sr-list { display: grid; gap: 16px; }
.sr-g { padding: 22px 24px 10px; border-radius: 28px; background: var(--bg); box-shadow: var(--shadow-card); }
.sr-g { padding: 6px 24px; }
.sr-g > summary { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; min-height: 76px; }
.sr-g > summary h3 { font: 700 32px/1.1 var(--display); letter-spacing: -.015em; }
.sr-gs { flex: 1; color: var(--label-2); font-size: 14px; }
.sr-g[open] > summary .chev { transform: rotate(90deg); }
.sr-g[open] { padding-bottom: 14px; }
.sr-g .sr-sub:first-of-type h4 { margin-top: 0; }
.sr-sub h4 { margin: 14px 0 2px; font-size: 13px; font-weight: 650; color: var(--label-2); }
.sr-sub h4 span { color: var(--label-3); font-weight: 500; margin-left: 4px; }
.sr-row + .sr-row { border-top: 1px solid var(--sep-2); }
.sr-a { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 14px; min-height: 60px; padding: 10px 8px; margin: 0 -8px; border-radius: 14px; color: var(--label); transition: background-color .2s; }
.sr-a:hover { background: var(--fill); text-decoration: none; }
.sr-a .ico { color: var(--label-3); width: 16px; height: 16px; }
.sr-m { display: flex; flex-direction: column; min-width: 0; }
.sr-t { font-weight: 550; line-height: 1.35; }
.sr-s { font-size: 13.5px; color: var(--label-2); }
.sb { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--mut-tint); color: var(--st-muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sb.ok { background: var(--ok-tint); color: var(--applies); }
.sb.warn { background: var(--unk-tint); color: var(--unknown); }
.sb .ico { width: 13px; height: 13px; stroke-width: 2.6; color: inherit; }
/* for reviewers */
.rev > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 64px; padding: 0 20px; border-radius: 22px; background: var(--cool); }
.rev > summary h2 { margin: 0; font: 700 28px/1.1 var(--display); }
.rev-s { color: var(--label-2); font-size: 14px; flex: 1; }
.rev[open] > summary { margin-bottom: 16px; }
.flags-l { display: grid; gap: 12px; }
.flags-l li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--sep-2); }
.flags-l li:last-child { border-bottom: 0; }
.flags-l p { font-size: 14px; color: var(--label-2); }
.float-stat { position: absolute; z-index: 2; right: 40px; bottom: 56px; width: 280px; padding: 20px 22px; border-radius: 24px; background: rgb(255 255 255 / .95); box-shadow: var(--shadow-float); animation: rise .6s var(--ease-out) .35s both; }
.float-stat small { display: block; font-size: 13px; color: var(--label-2); }
.float-stat b { display: block; font: 700 52px/1 var(--display); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.float-stat .meter { height: 8px; border-radius: 4px; background: rgb(14 16 20 / .07); margin-top: 12px; overflow: hidden; }
.float-stat .meter i { display: block; height: 100%; width: var(--p, 0); background: var(--applies); border-radius: 4px; animation: meter-in 1.1s var(--ease-out) .5s both; }
@keyframes meter-in { from { width: 0; } }

/* ------------------------------------------------------------- footer */ /* #149 */ /* #149: Inter at 12-13 px (no SF Pro) keeps clear word gaps at 1x */

/* ------------------------------------------------------------- layers */
.modal, .cmdk { position: fixed; inset: 0; z-index: 125; background: rgb(14 16 20 / .28); display: flex; justify-content: center; padding: 16px; overscroll-behavior: contain; }
.modal { align-items: center; }
.cmdk { align-items: flex-start; padding-top: 12vh; }
.modal[hidden], .cmdk[hidden] { display: none; }
.modal-card, .cmdk-card { width: 100%; background: var(--bg); border-radius: 28px; box-shadow: 0 30px 80px rgb(14 16 20 / .25); display: flex; flex-direction: column; overflow: hidden; }
.modal-card { max-width: 680px; max-height: min(86vh, 900px); }
.modal-card > header { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 28px; border-bottom: 1px solid var(--sep-2); }
.modal-card > header h2 { flex: 1; font-size: 17px; font-weight: 650; letter-spacing: -.02em; min-width: 0; overflow-wrap: anywhere; }
.modal-body { padding: 22px 28px 30px; overflow: auto; overscroll-behavior: contain; }
.modal-body .lead-p { margin-bottom: 12px; }
.modal-body > .muted { font-size: var(--fs-s); }
.doc-text { white-space: pre-wrap; font-size: 15px; line-height: 1.6; margin-top: 16px; overflow-wrap: anywhere; }
.doc-more { margin-top: 20px; }
.doc-title { font: 700 26px/1.1 var(--display); letter-spacing: -.01em; }
.doc-ex p + p { margin-top: 12px; }
.doc-ex { white-space: normal; }
.doc-text mark { background: #fff1a8; font-weight: inherit; border-radius: 3px; }
.cmdk-card { max-width: 620px; max-height: 70vh; }
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 0 20px; height: 60px; border-bottom: 1px solid var(--sep-2); }
.cmdk-input .ico { color: var(--label-3); }
.cmdk-input input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 17px; height: 100%; }
.cmdk-x { display: none; font-size: var(--fs-m); }
.cmdk-list { overflow: auto; padding: 8px; overscroll-behavior: contain; }
.cmdk-list .grp { font-size: 12px; font-weight: 650; color: var(--label-2); padding: 10px 14px 4px; }
.modal:not(.closing) .modal-card, .cmdk:not(.closing) .cmdk-card { animation: pop .32s var(--spring); }
.modal:not(.closing), .cmdk:not(.closing) { animation: fade .18s ease-out; }
.modal.closing, .cmdk.closing { opacity: 0; transition: opacity .15s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.m-only { display: none; }
@media (max-width: 640px) { .m-only { display: inline; }
}
html.locked .pwa-nudge { display: none; } /* never over a dialog (#108) */
.toasts { display: grid; gap: 8px; justify-items: center; position: fixed; left: 50%; bottom: calc(24px + var(--tabbar-h) + var(--dock-h) + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 90; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; background: var(--ink-btn); color: #fff; font-size: var(--fs-s); font-weight: 550; padding: 11px 18px; border-radius: 999px; white-space: nowrap; animation: toast-in .4s var(--spring); pointer-events: auto; box-shadow: 0 10px 30px rgb(14 16 20 / .25); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.toast .ico { width: 16px; height: 16px; }
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.addr-actions:empty { display: none; }
.addr-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 4px; font-size: var(--fs-s); }
.addr-actions > *, .topic-actions > * { display: inline-flex; align-items: center; min-height: 32px; }
@media (pointer: coarse) { .addr-actions > *, .topic-actions > * { min-height: 44px; } .addr-actions, .topic-actions { row-gap: 4px; }
}
/* links inside running text carry an underline, not only colour (WCAG 1.4.1, axe link-in-text-block) */
main p a, .mp-small a { text-decoration: underline; text-decoration-color: rgb(7 90 57 / .35); text-underline-offset: 3px; }
/* lists where the row title is the content (checks, Sources sections, Not law): title first, meta below */
.topic.plain .topic-q { font-size: var(--fs-m); font-weight: 600; color: var(--label); }
.topic.plain .topic-a { font-size: var(--fs-s); font-weight: 400; color: var(--label-2); letter-spacing: 0; }
.sr-g > summary .chev, .rev > summary .chev { margin-left: auto; }

/* Rules: place chips, then the place's answers */
.pc { display: grid; gap: 10px; margin: -8px 0 8px; }
.pc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-l { width: 120px; font-size: 13px; font-weight: 650; color: var(--label-2); }
#rules-all { margin-top: 48px; }
@media (max-width: 640px) { .pc-l { width: 100%; }
}

/* Changes: a vertical timeline in sections (next 12 months, later, last 12 months, earlier) */
.tv-wrap { display: grid; gap: 28px; }
.tv-s > h2, .tv-s > summary h2 { font: 700 32px/1.1 var(--display); letter-spacing: -.015em; margin-bottom: 8px; }
.tv-s h2 span { font: 500 15px/1 var(--font); color: var(--label-3); margin-left: 6px; vertical-align: middle; }
.tv-old > summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.tv-old > summary h2 { margin: 0; }
.tv-old[open] > summary .chev { transform: rotate(90deg); }
.tv { position: relative; padding: 4px 8px 4px 0; background: var(--bg); border-radius: 28px; box-shadow: var(--shadow-card); }
.tv::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 2px; background: var(--sep-2); }
.tv-i { position: relative; }
.tv-i + .tv-i .ev-x > summary.ev { border-top: 1px solid var(--sep-2); }
.tv .ev-x > summary.ev { width: auto; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto 28px; gap: 12px 16px; align-items: center; margin-left: 20px; padding: 18px 12px 18px 0; border-radius: 0; }
.tv-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--applies); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--sep-2); justify-self: center; z-index: 1; }
.is-later .tv-dot { background: var(--soon); }
.tv .ev-main { gap: 3px; }
.tv .ev-d { font-size: 14px; font-weight: 600; color: var(--label); }
.tv .ev-d .ev-s { font-weight: 400; color: var(--label-2); }
.tv .ev-t { font-size: 19px; font-weight: 640; letter-spacing: -.02em; line-height: 1.3; }
.tv .ev-body { padding: 0 24px 22px 76px; }
.tv .ev-x[open] > summary .chev { transform: rotate(90deg); }
@media (max-width: 640px), (pointer: coarse) and (max-height: 500px) {
  .tv { border-radius: 24px; }
  .tv::before { left: 21px; }
  .tv .ev-x > summary.ev { grid-template-columns: 20px minmax(0, 1fr) 24px; margin-left: 12px; gap: 6px 12px; }
  .tv .tv-dot { grid-column: 1; grid-row: 1; }
  .tv .ev-main { grid-column: 2; grid-row: 1; }
  .tv .ev-x > summary .chev { grid-column: 3; grid-row: 1; }
  .tv .ev-st { display: none; }
  .tv .ev-t { font-size: 17px; }
  .tv .ev-body { padding: 0 16px 18px 44px; }
  .tv-s > h2, .tv-s > summary h2 { font-size: 28px; }
}
.ev-go .btn, .ev-body .btn { white-space: normal; max-width: 100%; text-align: center; }
.rev-ask { margin: 0 0 16px; }
.rev-ask .btn { white-space: normal; text-align: left; justify-content: flex-start; }
.how3, .srcs, #rules-all { margin-top: 56px; }
@media (max-width: 640px), (pointer: coarse) and (max-height: 500px) {
  /* Rules on phones: a state segmented control, then that state's places wrapping onto lines (no sideways scroll) */
  .pc-seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px; margin: -8px 0 12px; border-radius: 999px; background: var(--cool-2); }
  .pc-seg button { min-height: 44px; border: 0; border-radius: 999px; background: none; font-size: 14px; font-weight: 600; color: var(--label-2); cursor: pointer; transition: background-color .2s, color .2s; }
  .pc-seg button[aria-selected="true"] { background: var(--bg); color: var(--label); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 2px 8px rgb(0 0 0 / .06); }
  .pc { margin: 0 0 8px; }
  .pc-row { display: none; }
  .pc[data-state="CA"] .pc-row[data-st="CA"], .pc[data-state="NJ"] .pc-row[data-st="NJ"], .pc[data-state="MA"] .pc-row[data-st="MA"] { display: flex; flex-wrap: wrap; gap: 8px; }
  .pc-l { display: none; }
  .pc .chip-f, .chips-f .chip-f { min-height: 44px; }
  .how3, .srcs, #rules-all { margin-top: 40px; }
}
/* answered, but flagged for a human to double-check: green with an amber ring (not the solid amber "needs your answer") */
.sdot.sd-check { background: var(--applies); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d98a00; }
@media (min-width: 641px) { .pc-seg { display: none; }
}
.pc-seg .l-abbr { display: none; }
@media (max-width: 400px) { .pc-seg .l-full { display: none; } .pc-seg .l-abbr { display: inline; }
}
.notfound .chips a { display: flex; gap: 10px; align-items: center; min-height: 52px; padding: 8px 14px; text-decoration: none; }
.notfound .ex-c { color: var(--label-2); margin-right: auto; }
.date-bad { display: block; flex-basis: 100%; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--danger); text-align: right; }
.date-say { display: block; flex-basis: 100%; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--label-2); }
input[type="date"][data-bad] { box-shadow: inset 0 0 0 2px var(--danger) !important; }
/* open lists always paint above the page: the hero (and any block holding a typeahead) sits above later sections */
.suggest, .mp-ta-list { background: var(--bg); z-index: 60; box-shadow: var(--shadow-float); isolation: isolate; }
.mp-ta, .ck-row:focus-within { position: relative; z-index: 40; }
/* one surface: an opened topic is not a second card inside the list card */
.topics.group > .topic[open] { background: none; }
.topics.group > .topic[open] > summary { background: none; }
/* Rules (a place, no building): the depends/double-check rings would be on every row and green dots on only some
   rows read as a pattern that means nothing; the answer line and the notes inside say it */
/* no lone last words: headings balance their lines, running text avoids an orphan */
h1, h2, h3, .topic-a, .ck-big { text-wrap: balance; }
p, li, .topic-q, .why { text-wrap: pretty; }

/* line icons (#32): Lucide (ISC), navy at a fixed stroke on the slot's own grey tile. They are never cropped,
   masked or blended like the photos around them. */
html img[src*="/img/icons/"] { object-fit: contain; mix-blend-mode: normal; -webkit-mask: none; mask: none; }
