/* Manufacturing AI — design system
   Type: Newsreader (display), Geist (UI/body), Geist Mono (data labels). */
:root {
  --ink: #0b1220;
  --ink-2: #2b3445;
  --muted: #555f6e;
  --line: #e2e5ea;
  --line-2: #cfd4db;
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --bg-3: #eceef2;
  --brand-900: #0d1b4f;
  --brand-800: #13267a;
  --brand-700: #1a37b0;
  --brand: #2347d6;
  --brand-300: #9fb2f3;
  --brand-tint: #eef2fd;
  --accent: #c2410c;
  --accent-tint: #fff1e8;
  --ok: #157347;
  --ok-tint: #e7f5ee;
  --warn: #8a5a00;
  --warn-tint: #fdf4dc;
  --seq-0: #eef2fd; --seq-1: #cdd8fa; --seq-2: #9fb2f3; --seq-3: #6a87ea; --seq-4: #2347d6; --seq-5: #13267a;

  --f-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Type scale: each level at least ~1.25x the next */
  --fs-display: clamp(2.5rem, 1.55rem + 3.4vw, 4.125rem);
  --fs-1: clamp(2.125rem, 1.55rem + 2.1vw, 3.125rem);
  --fs-2: clamp(1.625rem, 1.35rem + 1.05vw, 2.25rem);
  --fs-3: clamp(1.3125rem, 1.2rem + .35vw, 1.4375rem);
  --fs-4: 1.0625rem;
  --fs-body: 1.0625rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;
  --fs-2xs: .75rem;

  --r-sm: 6px; --r: 10px; --r-lg: 14px;
  --shadow: 0 1px 2px rgba(11,18,32,.05), 0 4px 16px rgba(11,18,32,.05);
  --shadow-lg: 0 10px 40px rgba(11,18,32,.14);
  --wrap: 1240px;
  --gutter: 24px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--f-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-900); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1, h2, h3, .display { text-wrap: balance; }
p, li, blockquote, figcaption, dd { text-wrap: pretty; }
p { margin: 0 0 1em; max-width: 65ch; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { border-collapse: collapse; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--gray { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }

/* Type roles */
.h-display { font: 500 var(--fs-display)/1.04 var(--f-display); letter-spacing: -.02em; }
h1, .h1 { font: 500 var(--fs-1)/1.08 var(--f-display); letter-spacing: -.018em; }
h2, .h2 { font: 500 var(--fs-2)/1.15 var(--f-display); letter-spacing: -.012em; }
h3, .h3 { font: 600 var(--fs-3)/1.3 var(--f-sans); letter-spacing: -.01em; }
h4, .h4 { font: 600 var(--fs-4)/1.35 var(--f-sans); }
.eyebrow { display: block; margin: 0 0 14px; font: 500 var(--fs-2xs)/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); }
.lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.mono { font-family: var(--f-mono); }
.accent { color: var(--brand); }
em.accent { font-style: italic; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head h2 { max-width: 22ch; }
.section-head .lede { margin: 12px 0 0; }
.section-head__link { white-space: nowrap; font-weight: 500; text-decoration: none; }
.section-head__link::after { content: " →"; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font: 500 var(--fs-sm)/1.2 var(--f-sans); text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #1d2738; color: #fff; border-color: #1d2738; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg-2); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--sm { min-height: 36px; padding: 7px 13px; font-size: var(--fs-xs); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 500; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.0625rem/1 var(--f-sans); letter-spacing: -.01em; white-space: nowrap; }
.logo svg { width: 28px; height: 28px; flex: none; }
.logo span b { font-weight: 600; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border-radius: 6px; color: var(--ink-2); font: 500 .9rem/1 var(--f-sans); text-decoration: none; white-space: nowrap; background: none; border: 0; cursor: pointer; }
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--ink); background: var(--bg-2); }
.nav__link[aria-current="page"] { color: var(--brand-700); }
.nav__link svg { width: 10px; height: 10px; opacity: .6; }
.nav__menu { position: absolute; left: -8px; top: 100%; padding-top: 8px; display: none; }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { display: block; }
.nav__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px; min-width: 280px; }
.nav__panel--wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 540px; gap: 0 8px; }
.nav__panel a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.3; }
.nav__panel a small { display: block; color: var(--muted); font-size: .8rem; margin-top: 2px; }
.nav__panel a:hover { background: var(--bg-2); }
.nav__label { padding: 10px 12px 4px; font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); color: var(--muted); font: 400 .875rem/1 var(--f-sans); cursor: pointer; white-space: nowrap; }
.search-btn:hover { border-color: var(--line-2); color: var(--ink); }
.search-btn svg { width: 16px; height: 16px; }
.search-btn kbd { font: 500 .7rem/1 var(--f-mono); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 5px; background: #fff; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }

@media (max-width: 1180px) {
  .search-btn__text, .search-btn kbd { display: none; }
  .nav__link { padding: 8px 8px; }
}
@media (max-width: 1060px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 16px var(--gutter) 40px; z-index: 49; }
  .mobile-nav.is-open { display: block; }
  .mobile-nav details { border-bottom: 1px solid var(--line); }
  .mobile-nav summary { list-style: none; padding: 16px 0; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary::after { content: "+"; font-weight: 400; color: var(--muted); }
  .mobile-nav details[open] summary::after { content: "−"; }
  .mobile-nav details a { display: block; padding: 9px 0 9px 12px; color: var(--ink-2); text-decoration: none; }
  .mobile-nav > a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); text-decoration: none; }
  .mobile-nav .btn { width: 100%; margin-top: 20px; }
}

/* Hero (home) */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); background: linear-gradient(180deg, #fff 0%, var(--bg-2) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin: 22px 0 28px; }
.hero__search { position: relative; max-width: 560px; }
.hero__search input { width: 100%; height: 56px; padding: 0 130px 0 48px; border: 1px solid var(--line-2); border-radius: 12px; font: 400 1rem var(--f-sans); background: #fff; box-shadow: var(--shadow); color: var(--ink); }
.hero__search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.hero__search svg { position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; color: var(--muted); }
.hero__search .btn { position: absolute; right: 6px; top: 6px; min-height: 44px; }
.hero__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: var(--fs-xs); color: var(--muted); align-items: center; }
.hero__quick a { color: var(--ink-2); text-decoration: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.hero__quick a:hover { border-color: var(--ink-2); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.dash { padding: 20px; }
.dash__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.dash__title { font: 500 var(--fs-2xs)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dash__live { display: inline-flex; align-items: center; gap: 6px; font: 500 var(--fs-2xs)/1 var(--f-mono); color: var(--ok); }
.dash__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.dash__map svg { display: block; width: 100%; height: auto; }
.dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; gap: 12px; }
.dash__stats dt { font: 500 var(--fs-2xs)/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dash__stats dd { margin: 4px 0 0; font: 600 1.25rem/1.1 var(--f-sans); letter-spacing: -.01em; }
.dash__src { margin: 12px 0 0; font-size: var(--fs-2xs); color: var(--muted); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.stat { padding: 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__value { font: 500 clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem)/1 var(--f-display); letter-spacing: -.02em; }
.stat__label { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }
.stat__src { margin: 8px 0 0; font-size: var(--fs-2xs); color: var(--muted); }
.stat__src a { color: inherit; }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover, .card--link:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.card h3 { font: 600 var(--fs-4)/1.35 var(--f-sans); margin: 0 0 8px; }
.card p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0 0 12px; line-height: 1.55; }
.card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.card__kicker { font: 500 var(--fs-2xs)/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-xs); color: var(--muted); }
.card__icon { width: 40px; height: 40px; border-radius: 9px; background: var(--brand-tint); color: var(--brand-700); display: grid; place-items: center; margin-bottom: 16px; }
.card__icon svg { width: 20px; height: 20px; }
.card .stretched::after { content: ""; position: absolute; inset: 0; }
.card a.stretched { color: inherit; text-decoration: none; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); font: 500 var(--fs-2xs)/1.3 var(--f-sans); white-space: nowrap; text-decoration: none; }
a.tag:hover { border-color: var(--line-2); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Evidence badges: same shape and weight, the dot color and words carry the meaning */
.ev { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line); background: #fff; font: 500 var(--fs-2xs)/1.3 var(--f-sans); color: var(--ink-2); white-space: nowrap; }
.ev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.ev--independent::before { background: var(--ok); }
.ev--manufacturer::before { background: var(--brand); }
.ev--vendor::before { background: #c98a00; }

/* Logo tiles for vendors (initials, no fake logos) */
.mark { width: 44px; height: 44px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); font: 600 .95rem/1 var(--f-mono); color: var(--ink-2); letter-spacing: -.02em; }
.mark--lg { width: 64px; height: 64px; font-size: 1.25rem; border-radius: 14px; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { margin: 18px 0 0; }
.page-hero__row { display: flex; gap: 20px; align-items: flex-start; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 28px 0 0; padding: 0; }
.facts div { min-width: 120px; }
.facts dt { font: 500 var(--fs-2xs)/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.page-hero .btn-row { margin-top: 28px; }

/* Content layout with sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.layout--left { grid-template-columns: 260px minmax(0, 1fr); }
.sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.prose { max-width: 720px; }
.prose h2 { margin: 2.4em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.8em 0 .5em; font-size: var(--fs-4); }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin: .35em 0; }
.prose table { width: 100%; margin: 1.2em 0 1.6em; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--bg-2); }
.block { margin: 0 0 48px; }
.block > h2 { margin-bottom: 18px; }
.block > .lede { margin-top: -6px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 18px 18px 18px 64px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 18px; top: 18px; font: 500 .85rem/1.4 var(--f-mono); color: var(--brand-700); }
.steps h3 { font-size: var(--fs-4); margin: 0 0 4px; }
.steps p { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: var(--fs-sm); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.xlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.xlist li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: var(--fs-sm); }
.xlist li::before { content: "!"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font: 700 .7rem/18px var(--f-mono); text-align: center; }
.qlist { list-style: none; padding: 0; margin: 0; counter-reset: q; display: grid; gap: 0; border-top: 1px solid var(--line); }
.qlist li { counter-increment: q; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); font-size: var(--fs-sm); }
.qlist li::before { content: "Q" counter(q); position: absolute; left: 0; top: 14px; font: 500 .8rem/1.6 var(--f-mono); color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.box { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; }
.box h3 { font-size: var(--fs-4); margin: 0 0 12px; }
.box--gray { background: var(--bg-2); }

.side-box { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: #fff; margin-bottom: 20px; }
.side-box h2, .side-box h3 { font: 600 var(--fs-4)/1.35 var(--f-sans); margin: 0 0 10px; }
.side-box p { font-size: var(--fs-sm); color: var(--ink-2); }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.side-box li:first-child { border-top: 0; padding-top: 0; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); }
.toc a:hover { border-color: var(--brand); color: var(--ink); }
.toc__title { font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* Genvo blocks */
.genvo { border-radius: var(--r-lg); background: var(--brand-900); color: #dfe5fb; padding: 24px; }
.genvo h2, .genvo h3 { color: #fff; font: 600 var(--fs-4)/1.35 var(--f-sans); margin: 0 0 8px; }
.genvo p { color: #c7d0f2; font-size: var(--fs-sm); }
.genvo .btn { width: 100%; margin-top: 4px; }
.genvo .btn + .btn { margin-top: 8px; }
.genvo__by { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #9fb2f3; }
.genvo__note { margin: 14px 0 0; font-size: var(--fs-2xs) !important; color: #9fa9cf !important; }
.genvo__note a { color: #c7d0f2; }
.genvo-inline { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border: 1px solid var(--brand-300); background: var(--brand-tint); border-radius: var(--r-lg); padding: 24px 28px; margin: 48px 0; }
.genvo-inline h2 { font: 600 var(--fs-3)/1.3 var(--f-sans); margin: 0 0 6px; }
.genvo-inline p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.genvo-inline .xs { margin-top: 8px; color: var(--muted); }

.cta-band { background: var(--ink); color: #c9cfda; padding: clamp(56px, 7vw, 88px) 0; }
.cta-band__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: #b4bccb; margin: 16px 0 0; }
.cta-band .eyebrow { color: #9fb2f3; }
.cta-band__actions { display: grid; gap: 12px; }
.cta-band__actions .btn { justify-content: space-between; min-height: 56px; padding: 0 20px; font-size: 1rem; }
.cta-band__note { font-size: var(--fs-xs); color: #8e97a8; margin-top: 18px; }
.cta-band__note a { color: #c9cfda; }

/* Directory (filters + results) */
.dir { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-right: 6px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.filters legend { font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.filters label { display: flex; align-items: flex-start; gap: 9px; padding: 4px 0; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; line-height: 1.35; }
.filters input[type="checkbox"] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.filters .count { margin-left: auto; font: 400 var(--fs-2xs)/1.6 var(--f-mono); color: var(--muted); }
.filters__toggle { display: none; }
.dir__bar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.field-search { position: relative; flex: 1 1 280px; }
.field-search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line-2); border-radius: 9px; font: 400 var(--fs-sm) var(--f-sans); background: #fff; color: var(--ink); }
.field-search input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.select { height: 46px; padding: 0 36px 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23555f6e' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font: 400 var(--fs-sm) var(--f-sans); color: var(--ink); }
.dir__count { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 14px; }
.dir__count strong { color: var(--ink); }
.dir__empty { display: none; padding: 48px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.dir__empty.is-on { display: block; }
.dir__clear { background: none; border: 0; color: var(--brand-700); font: 500 var(--fs-sm) var(--f-sans); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.results { display: grid; gap: 14px; }
.results--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[hidden] { display: none !important; }

.row-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; position: relative; }
.row-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.row-card h3 { font: 600 var(--fs-4)/1.35 var(--f-sans); margin: 0 0 4px; }
.row-card h3 a { color: var(--ink); text-decoration: none; }
.row-card h3 a::after { content: ""; position: absolute; inset: 0; }
.row-card p { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.row-card__sub { font-size: var(--fs-xs); color: var(--muted); margin: 0 0 8px !important; }
.row-card__side { text-align: right; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.row-card .tags { position: relative; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.table { width: 100%; font-size: var(--fs-sm); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { background: var(--bg-2); font: 500 var(--fs-2xs)/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table a { font-weight: 500; text-decoration: none; }
.table a:hover { text-decoration: underline; }
.bar { position: relative; height: 6px; border-radius: 3px; background: var(--bg-3); min-width: 80px; }
.bar span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--brand); }

/* Charts (inline SVG built at build time) */
.chart { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 22px; }
.chart__head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-bottom: 14px; flex-wrap: wrap; }
.chart__title { font: 600 var(--fs-4)/1.35 var(--f-sans); margin: 0; }
.chart__value { font: 500 1.75rem/1 var(--f-display); }
.chart__sub { font-size: var(--fs-xs); color: var(--muted); margin: 4px 0 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 400 11px var(--f-mono); fill: var(--muted); }
.chart__src { font-size: var(--fs-2xs); color: var(--muted); margin: 12px 0 0; }
.chart__src a { color: inherit; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 76px; gap: 12px; align-items: center; font-size: var(--fs-xs); }
.hbar__label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__label a { color: inherit; text-decoration: none; }
.hbar__label a:hover { color: var(--brand-700); text-decoration: underline; }
.hbar__track { height: 10px; border-radius: 3px; background: var(--bg-3); position: relative; }
.hbar__fill { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--brand); }
.hbar__val { text-align: right; font-family: var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }

/* Map */
.map-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; min-height: 640px; }
.map-side { border-right: 1px solid var(--line); padding: 20px; background: #fff; overflow-y: auto; max-height: 780px; }
.map-side fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.map-side legend { font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.map-side label { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
.map-side input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(11,18,32,.25); }
.map-main { position: relative; background: #fbfbfc; }
.map-main svg { display: block; width: 100%; height: 100%; min-height: 560px; touch-action: none; cursor: grab; }
.map-main svg.is-drag { cursor: grabbing; }
.map-tools { position: absolute; right: 14px; top: 14px; display: grid; gap: 6px; z-index: 2; }
.map-tools button { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; font: 500 1rem var(--f-sans); cursor: pointer; color: var(--ink); }
.map-tools button:hover { border-color: var(--ink-2); }
.map-legend { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: var(--fs-2xs); color: var(--ink-2); z-index: 2; max-width: calc(100% - 28px); }
.map-legend__ramp { display: flex; margin: 6px 0 4px; }
.map-legend__ramp span { width: 30px; height: 8px; }
.map-legend__ends { display: flex; justify-content: space-between; font-family: var(--f-mono); color: var(--muted); }
.map-back { position: absolute; left: 14px; top: 14px; z-index: 2; display: flex; gap: 8px; align-items: center; }
.map-back button { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; padding: 7px 12px; font: 500 var(--fs-xs) var(--f-sans); cursor: pointer; color: var(--ink); }
.map-back span { font: 500 var(--fs-xs) var(--f-sans); background: rgba(255,255,255,.94); padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); }
.map-tip { position: absolute; pointer-events: none; z-index: 5; background: var(--ink); color: #fff; padding: 9px 11px; border-radius: 8px; font-size: var(--fs-xs); line-height: 1.4; max-width: 260px; box-shadow: var(--shadow-lg); display: none; }
.map-tip b { display: block; font-weight: 600; }
.map-tip span { color: #c2c9d6; }
.map-info { border-top: 1px solid var(--line); padding: 20px; background: #fff; }
.map-info h2 { font: 600 var(--fs-3)/1.3 var(--f-sans); margin: 0 0 6px; }
.map-info__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 14px 0; }
.map-info__grid dt { font: 500 var(--fs-2xs)/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.map-info__grid dd { margin: 4px 0 0; font: 600 1.125rem/1.2 var(--f-sans); }
.map-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.map-list li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); display: flex; gap: 10px; align-items: baseline; }
.map-list li .dot { transform: translateY(1px); }
.state-path { fill: var(--seq-1); stroke: #fff; stroke-width: .75; transition: fill .15s; cursor: pointer; }
.state-path:hover, .state-path:focus { stroke: var(--ink); stroke-width: 1.5; outline: none; }
.county-path { stroke: #fff; stroke-width: .3; cursor: pointer; }
.county-path:hover { stroke: var(--ink); stroke-width: 1; }
.pt { stroke: #fff; stroke-width: 1.2; cursor: pointer; }
.pt:hover, .pt:focus { stroke: var(--ink); stroke-width: 2; outline: none; }

/* Mini map (state pages / home) */
.minimap svg { display: block; width: 100%; height: auto; }
.minimap .s { fill: var(--bg-3); stroke: #fff; stroke-width: .8; }
.minimap .s.on { fill: var(--brand); }

/* Forms & tools */
.form { display: grid; gap: 16px; }
.form label, .form .label { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; font: 400 var(--fs-sm) var(--f-sans); color: var(--ink); background: #fff; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__hint { font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.form__status { font-size: var(--fs-sm); color: var(--ok); min-height: 1.4em; }
.tool { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.tool__panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 28px; }
.tool__result { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); padding: 24px; }
.tool__result h2 { font: 600 var(--fs-4)/1.35 var(--f-sans); margin: 0 0 14px; }
.big-num { font: 500 clamp(2.25rem, 1.8rem + 1.8vw, 3.25rem)/1 var(--f-display); letter-spacing: -.02em; }
.result-rows { display: grid; gap: 0; margin: 16px 0; }
.result-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.result-rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.result-rows dt { color: var(--ink-2); }
.q { border-top: 1px solid var(--line); padding: 22px 0; }
.q:first-child { border-top: 0; padding-top: 0; }
.q legend, .q__title { font: 600 var(--fs-4)/1.4 var(--f-sans); margin: 0 0 4px; padding: 0; }
.q__dim { font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: block; }
.q fieldset { border: 0; padding: 0; margin: 0; }
.opts { display: grid; gap: 8px; margin-top: 12px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: var(--fs-sm); color: var(--ink-2); background: #fff; }
.opt:hover { border-color: var(--line-2); }
.opt input { accent-color: var(--brand); margin: 3px 0 0; flex: none; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--ink); }
.meter { height: 10px; border-radius: 5px; background: var(--bg-3); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); border-radius: 5px; transition: width .3s; }
.dims { display: grid; gap: 12px; margin: 16px 0; }
.dims div { display: grid; grid-template-columns: 1fr 40px; gap: 4px 10px; font-size: var(--fs-xs); align-items: center; }
.dims .meter { grid-column: 1 / -1; height: 6px; }
.range { display: grid; gap: 6px; }
.range input[type="range"] { accent-color: var(--brand); width: 100%; }
.range output { font: 600 var(--fs-sm) var(--f-mono); }
.range__top { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); font-weight: 500; }

/* Article */
.article-hero { padding: clamp(40px, 6vw, 80px) 0 32px; }
.article-hero h1 { max-width: 24ch; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: var(--fs-xs); color: var(--muted); }
.takeaways { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--bg-2); margin: 0 0 40px; }
.takeaways h2 { font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }

/* News list */
.news-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-item time { font: 500 var(--fs-xs)/1.5 var(--f-mono); color: var(--muted); }
.news-item h3 { font: 600 var(--fs-4)/1.4 var(--f-sans); margin: 0 0 6px; }
.news-item h3 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover { color: var(--brand-700); }
.news-item p { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--ink-2); }

/* Pillars */
.pillar { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; display: flex; flex-direction: column; }
.pillar__num { font: 500 var(--fs-2xs)/1 var(--f-mono); color: var(--muted); letter-spacing: .06em; }
.pillar h3 { margin: 14px 0 8px; font: 600 var(--fs-4)/1.35 var(--f-sans); }
.pillar p { font-size: var(--fs-sm); color: var(--ink-2); }
.pillar ul { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.pillar li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); line-height: 1.4; }
.pillar li a { color: var(--ink); text-decoration: none; }
.pillar li a:hover { color: var(--brand-700); }
.pillar__all { margin-top: 14px; font-size: var(--fs-sm); }

/* Department tiles */
.tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); color: var(--ink); }
.tile h3 { font: 600 var(--fs-4)/1.35 var(--f-sans); }
.tile p { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.tile__n { font: 500 var(--fs-2xs)/1 var(--f-mono); color: var(--brand-700); margin-top: auto; padding-top: 8px; }

/* Newsletter */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 36px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.newsletter h2 { max-width: 18ch; }
.newsletter p { margin: 12px 0 0; color: var(--ink-2); }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1 1 220px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px; font: 400 var(--fs-sm) var(--f-sans); }
.newsletter .form__status { flex-basis: 100%; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* Search palette */
.palette { position: fixed; inset: 0; z-index: 90; display: none; background: rgba(11,18,32,.45); padding: 10vh 16px 16px; }
.palette.is-open { display: block; }
.palette__box { max-width: 680px; margin: 0 auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.palette__in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.palette__in svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.palette__in input { flex: 1; height: 60px; border: 0; font: 400 1.0625rem var(--f-sans); outline: none; color: var(--ink); min-width: 0; }
.palette__in kbd { font: 500 .7rem/1 var(--f-mono); border: 1px solid var(--line-2); border-radius: 4px; padding: 4px 6px; color: var(--muted); }
.palette__list { max-height: 56vh; overflow-y: auto; list-style: none; margin: 0; padding: 8px; }
.palette__list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.palette__list a small { grid-column: 1; color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__list a .tag { grid-row: 1 / 3; grid-column: 2; align-self: center; }
.palette__list a:hover, .palette__list a.is-active { background: var(--bg-2); }
.palette__empty { padding: 28px; text-align: center; color: var(--muted); font-size: var(--fs-sm); }

/* Footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid h2 { font: 500 var(--fs-2xs)/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand p { color: var(--ink-2); margin: 14px 0 0; max-width: 34ch; }
.footer-disclosure { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-xs); }
.footer-disclosure p { margin: 0; max-width: 90ch; }
.footer-disclosure a { color: var(--ink-2); }

/* Misc */
.notice { border-left: 3px solid var(--brand); background: var(--brand-tint); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-sm); color: var(--ink-2); margin: 0 0 24px; }
.notice p { margin: 0; }
.notice--warn { border-color: #c98a00; background: var(--warn-tint); }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 16px; margin: 0; font-size: var(--fs-sm); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: var(--fs-xs); color: var(--muted); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-weight: 400; font-size: 1.2rem; color: var(--muted); }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: var(--ink-2); margin: 0 0 18px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.state-grid a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--ink); font-size: var(--fs-sm); }
.state-grid a:hover { border-color: var(--line-2); }
.state-grid a span { font: 400 var(--fs-2xs)/1.6 var(--f-mono); color: var(--muted); }
.error-page { padding: 120px 0; text-align: center; }
.error-page h1 { margin: 0 auto; }
.error-page p { margin: 16px auto 28px; }

/* Responsive */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero__grid, .cta-band__grid, .newsletter, .tool { grid-template-columns: 1fr; }
  .layout, .layout--left, .dir { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sticky { position: static; }
  .filters { position: static; max-height: none; overflow: visible; border: 1px solid var(--line); border-radius: var(--r); padding: 0; }
  .filters__toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 14px 16px; background: #fff; border: 0; border-radius: var(--r); font: 600 var(--fs-sm) var(--f-sans); color: var(--ink); cursor: pointer; }
  .filters__body { display: none; padding: 4px 16px 8px; }
  .filters.is-open .filters__body { display: block; }
  .map-shell { grid-template-columns: 1fr; }
  .map-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .map-info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genvo-inline { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 60px; }
  .grid--2, .grid--3, .grid--4, .two-col, .results--grid, .form__row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .row-card { grid-template-columns: auto minmax(0, 1fr); }
  .row-card__side { grid-column: 2; text-align: left; }
  .hero__search input { padding-right: 16px; }
  .hero__search .btn { position: static; width: 100%; margin-top: 10px; }
  .dash__stats { grid-template-columns: 1fr 1fr 1fr; }
  .dash__stats dd { font-size: 1.05rem; }
  .stat { padding: 18px; }
  .hbar { grid-template-columns: 110px minmax(0, 1fr) 64px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .map-side { grid-template-columns: 1fr; }
  .map-list { grid-template-columns: 1fr; }
  .map-main svg { min-height: 340px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .newsletter { padding: 24px; }
  .tool__panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Overflow guards for long names, prices and tags on narrow screens */
.layout > *, .dir > *, .tool > *, .hero__grid > *, .row-card > div, .grid > * { min-width: 0; }
.tag { white-space: normal; max-width: 100%; }
.facts dd, .kv dd, .row-card p, .card p { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; }
  .facts div { min-width: 0; max-width: 100%; flex: 1 1 140px; }
  .page-hero__row { flex-direction: column; gap: 14px; }
}
main p, main li, main dd { overflow-wrap: break-word; }
.mono { overflow-wrap: anywhere; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
@media (min-width: 961px) { aside.sticky { max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: thin; padding-right: 2px; } }

/* Typography pass: hold body measure near 70 characters, give card grids room beside sidebars */
p { max-width: 54ch; }
.lede { max-width: 50ch; }
.prose p, .prose li { max-width: 60ch; }
.footer-disclosure p { max-width: 72ch; }
.card p, .box p, .tile p, .pillar p, .stat p, .chart p, .side-box p, .genvo p, .genvo-inline p { max-width: none; }
@media (max-width: 1200px) { .layout .grid--2, .layout .two-col { grid-template-columns: 1fr; } }
.footer-disclosure p { max-width: 58ch; }
.stat__value { font-size: clamp(1.625rem, 1.4rem + .8vw, 2rem); }
.big-num { font-size: clamp(2rem, 1.7rem + 1.2vw, 2.75rem); }
.page-hero h1.is-long, .article-hero h1.is-long { max-width: 28ch; }
.page-hero h1.is-xlong, .article-hero h1.is-xlong { font-size: var(--fs-2); max-width: 34ch; }
