/* ============================================================================
   RuleGrid — "The Regulatory Atlas" design system.
   Modern editorial data-almanac: near-black hero, warm-ivory body, petrol+gold
   accent, hairline blueprint grid motif, Space Grotesk / IBM Plex Sans + Mono.
   Class names are kept stable so app.js + the page templates keep working.
   ============================================================================ */

:root {
  /* Surfaces */
  --paper:      #F2EFE6;   /* warm ivory-linen base */
  --raise:      #FBFAF4;   /* cards / raised surfaces */
  --panel:      #E9E4D6;   /* subtle panels */
  --ink-bg:     #14120D;   /* near-black bands (hero, footer) */
  --ink-bg-2:   #1E1B14;   /* raised on dark */

  /* Text */
  --ink:        #171510;   /* primary text on light */
  --ink-soft:   #59533f;   /* muted text on light */
  --paper-ink:  #EFEBDF;   /* primary text on dark */
  --paper-soft: #A9A288;   /* muted text on dark */

  /* Lines */
  --line:       #D8D1BE;   /* hairlines on light */
  --line-dark:  #322D20;   /* hairlines on dark */
  --rule:       #171510;   /* bold rule / borders */

  /* Brand */
  --brand:      #0E5B60;   /* petrol teal — links, primary CTA */
  --brand-deep: #0A4448;   /* hover */
  --brand-tint: #DDE9E7;   /* tinted brand backgrounds on light */
  --brand-lift: #4FD1D9;   /* petrol on dark bands */
  --gold:       #C0912F;   /* premium accent (sparing) */
  --gold-soft:  #E4C878;

  /* Functional STR status colors */
  --st-allowed:  #2C6E49;
  --st-reg:      #2A5FA6;
  --st-restr:    #A8781B;
  --st-prohib:   #B0392C;
  --st-unknown:  #726B57;

  /* Type */
  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1160px;
  --radius: 4px;   /* deliberately tight/architectural */
  --shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(23,21,16,.4);
}

/* ---- reset-ish ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: "ss01","cv05";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
::selection { background: var(--brand); color: #fff; }

/* ---- layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.narrow { max-width: 760px; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }

/* Mono eyebrow label */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--rule); display: inline-block; }
.lede { font-size: clamp(1.1rem, 2.1vw, 1.4rem); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.muted { color: var(--ink-soft); }

/* ---- blueprint grid motif ------------------------------------------------- */
.gridlines {
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: -1px -1px;
}

/* ---- header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-family: var(--f-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand img { width: 26px; height: 26px; }
.brand:hover { color: var(--ink); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-size: .95rem; color: var(--ink); font-weight: 500; }
.nav a:not(.btn) { position: relative; padding-block: .3rem; }
.nav a:not(.btn):hover { color: var(--brand-deep); }
.nav a.active:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--brand); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 1.1rem; width: 40px; height: 38px; margin-left: auto; cursor: pointer; }

/* ---- buttons -------------------------------------------------------------- */
.btn, .btn-lg {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-body); font-weight: 600; font-size: .95rem;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  border-radius: var(--radius); padding: .6rem 1.1rem; cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover, .btn-lg:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn:active, .btn-lg:active { transform: translateY(1px); }
.btn-lg { font-size: 1.02rem; padding: .85rem 1.5rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-on-dark { background: var(--gold); border-color: var(--gold); color: #1a150a; }
.btn-on-dark:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: #1a150a; }

/* ---- hero (dark band) ----------------------------------------------------- */
.hero { position: relative; background: var(--ink-bg); color: var(--paper-ink); overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 46px 46px; -webkit-mask-image: radial-gradient(120% 90% at 80% 0%, #000 40%, transparent 78%); mask-image: radial-gradient(120% 90% at 80% 0%, #000 40%, transparent 78%); }
.hero .wrap { position: relative; padding-block: clamp(3.4rem, 8vw, 6.2rem); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 .hl { color: var(--brand-lift); }
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold); }
.hero .lede { color: var(--paper-soft); max-width: 52ch; margin-top: 1.4rem; font-size: clamp(1.05rem,1.8vw,1.3rem); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); }
.hero-stat b { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; color: #fff; display: block; letter-spacing: -.02em; }
.hero-stat span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-soft); }

/* ---- lookup / search ------------------------------------------------------ */
.lookup { margin-top: 2.4rem; max-width: 620px; }
.lookup form { display: flex; gap: .5rem; }
.field {
  flex: 1; display: flex; align-items: center; gap: .6rem;
  background: var(--raise); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 0 .3rem 0 .9rem;
}
.field:focus-within { outline: 2px solid var(--brand-lift); outline-offset: 1px; }
.field input {
  flex: 1; border: 0; background: transparent; color: var(--ink);
  font-family: var(--f-body); font-size: 1.02rem; padding: .85rem .2rem; outline: none;
}
.hint { font-family: var(--f-mono); font-size: .72rem; color: var(--paper-soft); margin-top: .7rem; letter-spacing: .04em; }

/* ---- pills / status ------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 2px; border: 1px solid transparent; white-space: nowrap;
}
.pill.level { background: var(--panel); color: var(--ink-soft); border-color: var(--line); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.level::before { display: none; }
.status-allowed { color: var(--st-allowed); background: color-mix(in srgb, var(--st-allowed) 12%, var(--raise)); border-color: color-mix(in srgb, var(--st-allowed) 30%, transparent); }
.status-allowed_with_registration { color: var(--st-reg); background: color-mix(in srgb, var(--st-reg) 12%, var(--raise)); border-color: color-mix(in srgb, var(--st-reg) 30%, transparent); }
.status-restricted { color: var(--st-restr); background: color-mix(in srgb, var(--st-restr) 14%, var(--raise)); border-color: color-mix(in srgb, var(--st-restr) 32%, transparent); }
.status-mostly_prohibited { color: var(--st-prohib); background: color-mix(in srgb, var(--st-prohib) 12%, var(--raise)); border-color: color-mix(in srgb, var(--st-prohib) 30%, transparent); }
.status-unknown { color: var(--st-unknown); background: var(--panel); border-color: var(--line); }

.verified-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft);
  padding: .2rem .5rem; border: 1px solid var(--line); border-radius: 2px; background: var(--raise);
}
.verified-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st-unknown); }
.verified-badge.verified::before { background: var(--st-allowed); }
.verified-badge.needs_review::before { background: var(--st-restr); }
.verified-badge.stale::before { background: var(--st-prohib); }

/* ---- cards / panels ------------------------------------------------------- */
.rules-card { background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.9rem); margin: 1.25rem 0; box-shadow: var(--shadow); }
.rules-card > h2, .rules-card > h3, .rules-card > h4 { margin-top: 0; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.4rem; margin: 0; }
.kv dt { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 500; }

/* Feature / step grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--paper); padding: 1.6rem 1.5rem; }
.feature .n { font-family: var(--f-mono); font-size: .78rem; color: var(--brand); letter-spacing: .1em; }
.feature h3 { margin: .7rem 0 .4rem; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---- data table ----------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
thead th { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); text-align: left; padding: .6rem .8rem; border-bottom: 2px solid var(--rule); }
tbody td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
.rate, td.rate, th.rate { font-family: var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.tax-table tbody tr:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }

/* ---- requirement / source lists ------------------------------------------ */
.req-list, .source-list { list-style: none; margin: 0; padding: 0; }
.req-list > li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.req-list > li:first-child { padding-top: .3rem; }
.req-list > li:last-child { border-bottom: 0; }
.req-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.req-name { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }
.req-meta { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); margin-top: .4rem; }
.req-fee { color: var(--ink); }
.source-list > li { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.source-list > li:last-child { border-bottom: 0; }
.src-kind { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--ink); padding: .16rem .45rem; border-radius: 2px; }
.src-dates { font-family: var(--f-mono); font-size: .74rem; color: var(--ink-soft); margin-left: auto; }
.link-action { color: var(--brand); font-weight: 500; border-bottom: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.link-action:hover { color: var(--brand-deep); border-bottom-color: var(--brand-deep); }

/* ---- disclaimer / trust --------------------------------------------------- */
.trust-line { font-family: var(--f-mono); font-size: .8rem; line-height: 1.6; color: var(--ink-soft); letter-spacing: .01em; }
.disclaimer { font-size: .86rem; color: var(--ink-soft); border-left: 2px solid var(--gold); padding: .3rem 0 .3rem .9rem; margin-top: 1.6rem; }

/* ---- jurisdiction hub grid ------------------------------------------------ */
.level-group { margin-top: 2.5rem; }
.level-group > h2 { display: flex; align-items: baseline; gap: .8rem; padding-bottom: .7rem; border-bottom: 2px solid var(--rule); }
.level-group .count { font-family: var(--f-mono); font-size: .78rem; font-weight: 400; letter-spacing: .06em; color: var(--ink-soft); }
.juris-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1.2rem; }
.juris-card { display: flex; flex-direction: column; gap: .7rem; background: var(--raise); padding: 1.15rem 1.2rem; color: var(--ink); position: relative; transition: background .12s ease; }
.juris-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); opacity: 0; transition: opacity .12s ease; }
.juris-card:hover { background: var(--paper); color: var(--ink); }
.juris-card:hover::before { opacity: 1; }
.jc-name { font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.jc-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.jc-verified { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-soft); }

/* Hub controls */
.hub-controls { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.hub-controls input, .hub-controls select {
  font-family: var(--f-body); font-size: .95rem; color: var(--ink); background: var(--raise);
  border: 1px solid var(--rule); border-radius: var(--radius); padding: .6rem .8rem;
}
.hub-controls input { flex: 1; min-width: 200px; }
.hub-controls input:focus, .hub-controls select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---- notices / spinner ---------------------------------------------------- */
.notice { border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; font-size: .95rem; background: var(--raise); margin: 1rem 0; }
.notice.info { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--brand-tint); }
.notice.error { border-color: color-mix(in srgb, var(--st-prohib) 45%, var(--line)); background: color-mix(in srgb, var(--st-prohib) 8%, var(--raise)); }
.spinner { display: inline-block; width: 13px; height: 13px; margin-right: .5rem; border: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-top-color: var(--brand); border-radius: 50%; vertical-align: -1px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-hidden { display: none !important; }

/* ---- hero meta line ------------------------------------------------------- */
.hero-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .4rem 0 1.4rem; }

/* ---- collapsible stack layer --------------------------------------------- */
.stack-layer { border: 1px solid var(--line); border-radius: var(--radius); margin: .6rem 0; background: var(--raise); overflow: hidden; }
.stack-layer > summary { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.stack-layer > summary::-webkit-details-marker { display: none; }
.layer-name { font-family: var(--f-display); font-weight: 600; }
.layer-toggle { margin-left: auto; font-family: var(--f-mono); font-size: .72rem; color: var(--ink-soft); }
.layer-body { padding: 0 1rem 1rem; }

/* ---- docs ----------------------------------------------------------------- */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; align-items: start; }
.doc-nav { position: sticky; top: 82px; font-size: .92rem; }
.doc-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.doc-nav a { display: block; color: var(--ink-soft); padding: .3rem .6rem; border-left: 2px solid var(--line); }
.doc-nav a:hover { color: var(--ink); border-left-color: var(--brand); }
.doc-nav .grp { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin: 1rem 0 .4rem; }
.endpoint { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.method { font-family: var(--f-mono); font-size: .72rem; font-weight: 600; background: var(--brand); color: #fff; padding: .12rem .45rem; border-radius: 2px; letter-spacing: .06em; }
.path-badge { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-soft); margin-left: .5rem; }
.path-badge.public { color: var(--st-allowed); }
.code-label { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin: 1rem 0 .35rem; }
pre { background: var(--ink-bg); color: var(--paper-ink); border-radius: var(--radius); padding: 1rem 1.15rem; overflow-x: auto; border: 1px solid var(--rule); }
pre code { font-family: var(--f-mono); font-size: .82rem; line-height: 1.6; color: var(--paper-ink); background: none; padding: 0; }
code { font-family: var(--f-mono); font-size: .86em; background: var(--panel); padding: .08em .35em; border-radius: 3px; }
.error-table code { background: var(--panel); }

/* ---- pricing -------------------------------------------------------------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.price-card { display: flex; flex-direction: column; background: var(--raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.price-card .tier { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.price-card .amt { font-family: var(--f-display); font-size: 2.4rem; font-weight: 600; letter-spacing: -.02em; margin: .5rem 0 .1rem; }
.price-card .amt span { font-family: var(--f-mono); font-size: .9rem; color: var(--ink-soft); font-weight: 400; }
.price-card ul { list-style: none; margin: 1.1rem 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .93rem; }
.price-card ul li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
.price-card ul li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border: 1.5px solid var(--brand); border-radius: 50%; }
.price-card .btn, .price-card .btn-ghost { margin-top: auto; }

/* ---- footer (dark band) --------------------------------------------------- */
.site-footer { background: var(--ink-bg); color: var(--paper-soft); border-top: 1px solid var(--rule); margin-top: 4rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 46px 46px; -webkit-mask-image: radial-gradient(90% 120% at 0% 100%, #000 30%, transparent 72%); mask-image: radial-gradient(90% 120% at 0% 100%, #000 30%, transparent 72%); }
.site-footer .wrap { position: relative; padding-block: 3.2rem 2.4rem; }
.footer-cols { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line-dark); }
.site-footer .brand { color: #fff; }
.site-footer .col h4 { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--paper-soft); margin: 0 0 .8rem; }
.site-footer .col a { display: block; color: var(--paper-ink); font-size: .95rem; padding: .18rem 0; }
.site-footer .col a:hover { color: var(--brand-lift); }
.site-footer .trust-line { color: var(--paper-soft); margin-top: 1.8rem; }

/* ---- responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { position: fixed; inset: 66px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem;
    transform: translateY(-140%); transition: transform .22s ease; margin: 0; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: .6rem; justify-content: center; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .lookup form { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-stats { gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition: none !important; } html { scroll-behavior: auto; } }
