/* ============ AI Laws USA — design system ============ */
:root {
  /* Brand foundation */
  --navy: #1E3A8A; --navy-dark: #1E293B;
  --gold: #C8A050;
  --paper: #FAFAF7;

  /* Topic / status palette */
  --fed: #1E40AF; --fed-soft: #DBEAFE;
  --state: #7C3AED; --state-soft: #EDE9FE;
  --county: #0D9488; --county-soft: #CCFBF1;
  --city: #16A34A; --city-soft: #DCFCE7;
  --dc: #F97316; --dc-soft: #FFEDD5;
  --bio: #DC2626; --bio-soft: #FEE2E2;
  --img: #EC4899; --img-soft: #FCE7F3;
  --emp: #CA8A04; --emp-soft: #FEF9C3;
  --priv: #0891B2; --priv-soft: #CFFAFE;
  --pub: #4F46E5; --pub-soft: #E0E7FF;

  /* Ink + surface */
  --ink: #0F172A; --ink-2: #334155; --ink-3: #64748B;
  --bg: var(--paper); --card: #FFFFFF; --line: #E2E8F0;
  --accent: var(--navy);

  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15,23,42,.08), 0 8px 24px rgba(15,23,42,.07);
  --shadow-lg: 0 4px 12px rgba(15,23,42,.1), 0 16px 48px rgba(15,23,42,.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Space Grotesk', var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.55;
}
img, svg { vertical-align: middle; }
a { color: var(--accent); }
h1,h2,h3,h4 { font-family: var(--display); line-height: 1.2; }
.skip-link { position: absolute; left: -9999px; top: 0; background:#fff; padding:.6rem 1rem; z-index: 3000; border-radius: 0 0 8px 0;}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---- top nav ---- */
.topnav {
  position: sticky; top: 0; z-index: 1200; display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1.2rem; background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
/* Four-bar stack: federal -> state -> county -> city. Same colors as the address-result panel. */
.brand-mark {
  width: 28px; height: 28px; display: flex; flex-direction: column;
  justify-content: center; gap: 2px; flex: none; font-size: 0; line-height: 0;
}
.brand-mark > span { display: block; height: 4px; border-radius: 1.5px; }
.brand-mark > .bm-federal { width: 100%; background: var(--fed); }
.brand-mark > .bm-state   { width: 78%;  background: var(--state); }
.brand-mark > .bm-county  { width: 56%;  background: var(--county); }
.brand-mark > .bm-city    { width: 34%;  background: var(--city); }
.brand-name {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0; line-height: 1; color: var(--ink);
}
.brand-name strong { font-weight: 700; color: var(--ink); }
.brand-name em {
  font-style: normal; font-weight: 700; color: var(--ink);
  background: none; -webkit-background-clip: initial; background-clip: initial;
}
.nav-links { margin-left: auto; display: flex; gap: .25rem; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .92rem;
  padding: .45rem .7rem; border-radius: 999px; transition: background .15s;
}
.nav-links a:hover { background: var(--bg); }
.nav-links a.active { background: var(--ink); color: #fff; }
.nav-links a.nav-cta { background: var(--accent); color: #fff; }
.nav-toggle { display: none; margin-left: auto; font-size: 1.4rem; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .2rem .6rem; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: .8rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem 1rem; font-size: 1rem; }
}

/* ---- hero ---- */
.hero {
  position: relative; padding: 2.6rem 1.2rem 1.6rem; text-align: center;
  background:
    radial-gradient(1100px 420px at 15% -10%, rgba(124,58,237,.14), transparent 60%),
    radial-gradient(900px 420px at 85% -10%, rgba(37,99,235,.16), transparent 60%),
    radial-gradient(700px 380px at 50% 110%, rgba(236,72,153,.10), transparent 60%);
}
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.7rem); margin: 0 0 .4rem; letter-spacing: -.02em; }
.hero p.sub { color: var(--ink-2); max-width: 760px; margin: 0 auto 1.4rem; font-size: 1.05rem; }
.hero p.sub strong { display: block; margin-top: .45rem; }
.search-wrap { max-width: 720px; margin: 0 auto; position: relative; }
.search-bar {
  display: flex; gap: .5rem; background: #fff; padding: .5rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.search-bar input {
  flex: 1; border: none; font-size: 1.05rem; padding: .65rem 1rem; border-radius: 999px;
  font-family: var(--font); min-width: 0;
}
.search-bar input:focus { outline: none; background: var(--bg); }
.search-bar button {
  background: linear-gradient(135deg, var(--accent), var(--state)); color: #fff; border: none;
  padding: .65rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 1rem; cursor: pointer;
  font-family: var(--font); white-space: nowrap;
}
.search-bar button:hover { filter: brightness(1.08); }
.search-bar button:disabled { opacity: .6; cursor: wait; }
.search-hint { font-size: .85rem; color: var(--ink-3); margin-top: .55rem; }
.demo-chips { display: flex; gap: .45rem; flex-wrap: wrap; justify-content: center; margin-top: .8rem; }
.demo-chips button {
  border: 1px solid var(--line); background: rgba(255,255,255,.8); padding: .35rem .8rem; border-radius: 999px;
  font-size: .83rem; cursor: pointer; color: var(--ink-2); font-family: var(--font);
}
.demo-chips button:hover { border-color: var(--accent); color: var(--accent); }
.search-status { margin-top: .8rem; font-size: .92rem; min-height: 1.4em; }
.search-status.err { color: #b91c1c; font-weight: 500; }

/* ---- topic chips ---- */
.topic-chip-bar {
  display: flex; gap: .4rem; flex-wrap: nowrap; justify-content: center; align-items: center;
  padding: .9rem 1.2rem 0; max-width: 1380px; margin: 0 auto; overflow-x: auto;
  scrollbar-width: thin;
}
.tchip {
  display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .32rem .7rem;
  font-size: .8rem; font-weight: 500; cursor: pointer; border: 1.5px solid transparent; font-family: var(--font);
  transition: transform .12s; white-space: nowrap; flex: 0 0 auto;
}
.tchip:hover { transform: translateY(-1px); }
.tchip[aria-pressed="true"] { border-color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }

/* ---- map layout ---- */
.map-shell {
  display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 1rem;
  max-width: 1380px; margin: 1.1rem auto 2rem; padding: 0 1.2rem; align-items: start;
}
@media (max-width: 980px) { .map-shell { grid-template-columns: 1fr; } }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
#map { height: 560px; width: 100%; }
@media (max-width: 980px) { #map { height: 420px; } }
.map-note { padding: .5rem .9rem; font-size: .8rem; color: var(--ink-3); border-top: 1px solid var(--line); background: #fff; }

/* layer toggle panel */
.layer-panel {
  position: absolute; top: 12px; right: 12px; z-index: 450; background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: .6rem .7rem;
  max-width: 210px; font-size: .82rem; border: 1px solid var(--line);
}
/* Kill the browser's SVG focus rectangle on clicked state polygons */
.leaflet-interactive:focus, .leaflet-container path:focus { outline: none; }
.layer-panel h4 { margin: 0 0 .35rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.layer-panel label { display: flex; align-items: center; gap: .45rem; padding: .17rem 0; cursor: pointer; }
.layer-panel .swatch { width: 13px; height: 13px; border-radius: 4px; flex: none; }

/* legend (v2 — gradient strength scale + topic pills) */
.legend-card-v2 {
  margin-top: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.2rem 1rem;
}
.legend-eyebrow {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-3); margin-bottom: .6rem; font-family: var(--font);
}
.legend-strength-block { padding-bottom: .25rem; }
.legend-gradient-bar {
  display: flex; height: 12px; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(15,23,42,.08);
}
.legend-gradient-bar > span { flex: 1; }
.legend-gradient-labels {
  display: flex; justify-content: space-between; gap: .5rem;
  margin-top: .35rem; font-size: .72rem; color: var(--ink-2); font-weight: 500;
}
.legend-gradient-labels > span { flex: 1; text-align: center; line-height: 1.2; }
.legend-gradient-labels > span:first-child { text-align: left; }
.legend-gradient-labels > span:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.legend-divider {
  height: 1px; background: var(--line); margin: 1rem 0 .9rem;
}
.legend-topic-pills {
  display: flex; flex-wrap: wrap; gap: .35rem .4rem;
}
.legend-topic-pills .lp {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .55rem .25rem .4rem; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c); font-size: .76rem; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--c) 20%, transparent);
  line-height: 1;
}
.legend-topic-pills .lp > span { color: var(--ink-2); font-weight: 500; }
.legend-footnote {
  margin-top: .85rem; padding-top: .75rem; border-top: 1px dashed var(--line);
  font-size: .72rem; color: var(--ink-3); line-height: 1.5;
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }

/* Explore section (homepage) */
.explore { max-width: 1380px; margin: 2rem auto 3rem; padding: 0 1.2rem; }
.explore-head { margin-bottom: 1rem; }
.explore-head h2 { font-family: var(--display); font-size: 1.45rem; margin: 0 0 .25rem; letter-spacing: -.01em; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.explore-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: .35rem;
  transition: transform .12s, box-shadow .15s, border-color .15s;
}
.explore-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--ink-3); }
.explore-card h3 { font-family: var(--display); font-size: 1.08rem; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.explore-card p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.explore-glyph { font-size: 1.5rem; line-height: 1; margin-bottom: .2rem; }
.explore-tag {
  align-self: flex-start; background: linear-gradient(95deg, var(--fed), var(--state), var(--img));
  color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  padding: .22rem .55rem; border-radius: 999px; text-transform: uppercase; margin-bottom: .25rem;
}
.explore-card-feature {
  grid-column: span 2; background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
  border-color: var(--ink); border-width: 1.5px;
}
@media (max-width: 720px) { .explore-card-feature { grid-column: span 1; } }
.explore-cta { color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: .4rem; }
.explore-card-teams {
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%); color: #fff;
  border-color: var(--ink);
}
.explore-card-teams:hover { transform: translateY(-2px); border-color: var(--ink); }
.explore-card-teams h3 { color: #fff; }
.explore-card-teams p { color: #cbd5e1; }

/* ---- Home-page full-width bands ----
   Bills Tracker and For Compliance Teams each get their own bleed-edge band
   with distinct background so they break up the home scroll and don't get
   lost as one tile among the explore-grid cards. */
.band-tracker, .band-teams {
  width: 100%; margin: 2.5rem 0 0; padding: 3rem 1.2rem;
}
.band-tracker {
  background: linear-gradient(180deg, #f1f5f9 0%, #e0e7ff 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.band-teams {
  background:
    radial-gradient(circle at 20% 0%, rgba(99, 102, 241, .18) 0%, transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(56, 189, 248, .12) 0%, transparent 60%),
    linear-gradient(135deg, #0b1224 0%, #131c33 50%, #1b2547 100%);
  color: #fff;
  /* Extra bottom padding so the For-Teams band breathes into the footer
     instead of clashing with it (footer is also dark navy). */
  padding-bottom: 4rem;
  margin-bottom: 0;
}
.band-inner { max-width: 1380px; margin: 0 auto; }
.band-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); background: rgba(99, 102, 241, .08);
  padding: .3rem .65rem; border-radius: 999px; margin-bottom: .85rem;
}
.band-eyebrow-light { color: #c7d2fe; background: rgba(199, 210, 254, .12); }
.band-tracker h2, .band-teams h2 {
  font-family: var(--display); font-size: 2rem; margin: 0 0 .4rem; letter-spacing: -.02em;
}
.band-teams h2 { color: #fff; }
.band-lead {
  font-size: 1.04rem; max-width: 760px; margin: 0 0 1.6rem; color: var(--ink-2); line-height: 1.5;
}
.band-lead-light { color: #cbd5e1; }
.band-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: .9rem; margin: 0 0 1.6rem;
}
.band-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.band-stat-n { font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--ink); line-height: 1; }
.band-stat-l { color: var(--ink-2); font-size: .82rem; margin-top: .25rem; }
.band-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .9rem; margin: 0 0 1.6rem;
}
.band-card {
  background: linear-gradient(180deg, rgba(99, 102, 241, .10) 0%, rgba(255, 255, 255, .03) 100%);
  border: 1px solid rgba(199, 210, 254, .20);
  border-radius: var(--radius); padding: 1.05rem 1.15rem; color: #e2e8f0;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.band-card:hover {
  border-color: rgba(199, 210, 254, .42);
  background: linear-gradient(180deg, rgba(99, 102, 241, .16) 0%, rgba(255, 255, 255, .05) 100%);
  transform: translateY(-2px);
}
.band-card h4 {
  color: #e0e7ff; font-size: .98rem; margin: 0 0 .4rem; font-weight: 600; letter-spacing: -.01em;
}
.band-card p { margin: 0; color: #cbd5e1; font-size: .87rem; line-height: 1.5; }
.band-cta {
  display: inline-block; background: var(--accent); color: #fff; padding: .75rem 1.25rem;
  border-radius: 999px; font-weight: 600; text-decoration: none; font-size: .95rem;
  transition: transform .12s, box-shadow .15s;
}
.band-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99, 102, 241, .35); }
.band-cta-light { background: #fff; color: var(--ink); }
.band-cta-light:hover { box-shadow: 0 6px 18px rgba(255, 255, 255, .25); }
@media (max-width: 720px) {
  .band-tracker, .band-teams { padding: 2.2rem 1rem; }
  .band-tracker h2, .band-teams h2 { font-size: 1.5rem; }
}

/* Tracker level-jump nav — a row of "Federal · State · Local" buttons above
   the section list so users can jump to any level without scrolling past the
   others. Sticky scroll-margin-top on the sections themselves so anchored
   jumps don't land flush against the page top. */
.trk-jump {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  margin: 1.25rem 0 1.5rem; padding: .9rem 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.trk-jump-label {
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
  margin-right: .35rem; letter-spacing: .01em;
}
.trk-jump-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-size: .9rem; font-weight: 600;
  text-decoration: none; transition: border-color .12s, background .12s, transform .12s;
}
.trk-jump-btn:hover {
  border-color: var(--accent);
  background: #eef2ff;
  transform: translateY(-1px);
}
.trk-jump-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.4em; padding: 0 .4em;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-size: .72rem; font-weight: 700;
  line-height: 1.5;
}
.trk-jump-btn-secondary {
  background: transparent; font-weight: 500; font-size: .85rem;
}
.trk-jump-btn-secondary .trk-jump-count {
  background: #64748b;
}
.paginated-section { scroll-margin-top: 80px; }
@media (max-width: 720px) {
  .trk-jump { padding: .75rem .8rem; }
  .trk-jump-btn { padding: .4rem .7rem; font-size: .85rem; }
  .trk-jump-btn-secondary { font-size: .8rem; }
}

/* Tracker map (Bill Tracker page) */
.tracker-map-shell {
  display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; margin-bottom: 1.5rem;
}
@media (max-width: 720px) { .tracker-map-shell { grid-template-columns: 1fr; } }
#tracker-map { height: 320px; width: 100%; background: #f8fafc; border-radius: var(--radius-sm); }
.tracker-map-legend h4 { margin: 0 0 .35rem; font-size: .82rem; font-weight: 700; }
.tracker-legend-scale { display: flex; align-items: center; gap: .35rem .55rem; flex-wrap: wrap; font-size: .8rem; color: var(--ink-2); }
.tracker-legend-scale .t-sw { display: inline-block; width: 16px; height: 16px; border-radius: 3px; border: 1px solid rgba(15,23,42,.08); }
.pcard[data-tracker-state] { scroll-margin-top: 80px; }

/* Coverage atlas (Vega-Lite multi-view) */
.cov-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .8rem; margin-bottom: 1.4rem;
}
.cov-stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .85rem 1rem;
}
.cov-stat-num {
  font-family: var(--display); font-weight: 600; font-size: 1.85rem; line-height: 1;
  color: var(--ink); letter-spacing: -.02em;
}
.cov-stat-lbl {
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3); margin-top: .35rem;
}
.cov-chart-vega {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1rem; box-shadow: var(--shadow); overflow: auto;
}
.cov-chart-vega .vega-embed { width: 100%; }
.cov-chart-vega svg { display: block; }
.cov-note {
  margin-top: .9rem; color: var(--ink-3); font-size: .82rem; line-height: 1.5;
  max-width: 720px;
}

/* Auth: nav slot, dropdown menu, sign-in modal */
.nav-auth {
  font-size: .88rem; font-weight: 500; padding: .45rem .85rem; border-radius: 999px;
  background: var(--ink); color: #fff !important; cursor: pointer; text-decoration: none;
  border: 0; font-family: var(--font);
}
.nav-auth:hover { filter: brightness(1.1); }
.auth-menu {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: .55rem; min-width: 220px; z-index: 4000;
}
.auth-menu-email {
  padding: .35rem .55rem .6rem; font-size: .82rem; color: var(--ink-3);
  border-bottom: 1px solid var(--line); margin-bottom: .35rem; word-break: break-all;
}
.auth-menu button {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: .5rem .55rem; border-radius: 6px; cursor: pointer;
  font-family: var(--font); font-size: .9rem; color: var(--ink-2);
}
.auth-menu button:hover { background: rgba(15,23,42,.05); color: var(--ink); }
.auth-modal {
  position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center;
}
.auth-modal-bg {
  position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
}
.auth-modal-card {
  position: relative; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 2rem 2.2rem 1.6rem;
  width: min(440px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow: auto;
}
.auth-modal-close {
  position: absolute; top: 12px; right: 12px; background: transparent; border: 0;
  width: 30px; height: 30px; border-radius: 6px; cursor: pointer; font-size: 1rem;
  color: var(--ink-3);
}
.auth-modal-close:hover { background: var(--bg); color: var(--ink); }
.auth-modal-card h2 {
  font-family: var(--display); font-size: 1.45rem; margin: 0 0 .4rem; letter-spacing: -.01em;
}
.auth-modal-sub {
  color: var(--ink-2); font-size: .92rem; margin: 0 0 1.3rem; line-height: 1.5;
}
.auth-form label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2);
  margin-bottom: .4rem;
}
.auth-form input {
  width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; font-family: var(--font); background: var(--bg);
}
.auth-form input:focus { outline: none; border-color: var(--accent); background: #fff; }
.auth-submit {
  width: 100%; margin-top: .85rem; padding: .75rem 1rem; background: var(--accent);
  color: #fff; border: 0; border-radius: 8px; font-weight: 600; font-size: .95rem;
  cursor: pointer; font-family: var(--font);
}
.auth-submit:hover { filter: brightness(1.07); }
.auth-submit:disabled { opacity: .65; cursor: wait; }
.auth-status { margin: .85rem 0 0; font-size: .87rem; min-height: 1.2em; }
.auth-status.ok { color: #15803D; }
.auth-status.err { color: #B91C1C; }
.auth-fine {
  margin: 1.2rem 0 0; font-size: .73rem; color: var(--ink-3); line-height: 1.5;
}

/* Watchlist sign-in card */
.watchlist-signin-card {
  background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem 2.2rem; margin: 1.5rem 0; text-align: center; box-shadow: var(--shadow);
}
.watchlist-signin-card .icon { font-size: 2.2rem; margin-bottom: .5rem; display: block; }
.watchlist-signin-card h3 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 .4rem; }
.watchlist-signin-card p { color: var(--ink-2); margin: 0 0 1.2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.watchlist-signin-btn {
  padding: .7rem 1.4rem; background: var(--accent); color: #fff; border: 0;
  border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer;
  font-family: var(--font);
}

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem; margin: 1.5rem 0 2.5rem; max-width: 1100px;
}
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.8rem; display: flex; flex-direction: column;
  position: relative; transition: transform .12s, box-shadow .15s;
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.price-card-feature {
  border-color: var(--ink); border-width: 2px;
  background: linear-gradient(180deg, #FAFBFC 0%, #fff 60%);
}
.price-recommended {
  position: absolute; top: -10px; left: 1.5rem;
  background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; padding: .25rem .65rem;
  border-radius: 999px;
}
.price-tier {
  font-family: var(--display); font-size: 1.1rem; font-weight: 600;
  color: var(--ink-2); margin-bottom: .35rem; letter-spacing: -.005em;
}
.price-amount {
  font-family: var(--display); font-size: 2.4rem; font-weight: 600;
  line-height: 1; letter-spacing: -.02em; color: var(--ink);
  margin-bottom: .85rem;
}
.price-amount span { font-size: .85rem; font-weight: 500; color: var(--ink-3); margin-left: .25rem; }
.price-pitch { color: var(--ink-2); font-size: .92rem; margin: 0 0 1.1rem; min-height: 3.6em; }
.price-feats { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.price-feats li { font-size: .9rem; padding: .35rem 0; color: var(--ink-2); border-bottom: 1px solid #F1F5F9; }
.price-feats li:last-child { border-bottom: 0; }
.price-cta {
  display: inline-block; text-align: center; padding: .7rem 1rem;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; font-weight: 600; text-decoration: none; font-size: .92rem;
}
.price-cta:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.price-cta-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.price-cta-primary:hover { filter: brightness(1.08); background: var(--accent); color: #fff; }
.price-prelaunch { margin-top: auto; }
.price-addon {
  background: linear-gradient(135deg, #fafbfc 0%, #f4f4ef 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 2rem; margin: 0 0 2rem; max-width: 1100px;
}
.price-addon h2 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 .55rem; letter-spacing: -.01em; }
.price-addon p { color: var(--ink-2); margin: 0 0 1.2rem; max-width: 700px; }
.price-faq { color: var(--ink-3); font-size: .88rem; margin-top: 2rem; max-width: 1100px; }

/* Lead form */
.lead-form { display: grid; gap: .65rem; }
.lead-field { display: flex; flex-direction: column; gap: .3rem; }
.lead-field label { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.lead-field input, .lead-field textarea {
  padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 7px;
  font-family: var(--font); font-size: .92rem; background: #fff;
}
.lead-field input:focus, .lead-field textarea:focus { outline: none; border-color: var(--accent); }
.lead-submit {
  margin-top: .35rem; padding: .65rem 1rem; background: var(--ink); color: #fff;
  border: 0; border-radius: 8px; font-weight: 600; cursor: pointer;
  font-family: var(--font); font-size: .9rem;
}
.lead-submit:hover { filter: brightness(1.1); }
.lead-submit:disabled { opacity: .65; cursor: wait; }
.lead-status { margin: .35rem 0 0; font-size: .85rem; min-height: 1.1em; }
.lead-status.ok { color: #15803D; }
.lead-status.err { color: #B91C1C; }

/* For-teams page */
.ft-hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem;
  background: linear-gradient(135deg, #fafbfc 0%, #ede9fe 60%, #fff 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 2.2rem; margin: 1.5rem 0 2rem; align-items: center;
}
@media (max-width: 760px) { .ft-hero { grid-template-columns: 1fr; } }
.ft-hero h2 { font-family: var(--display); font-size: 1.9rem; margin: 0 0 .8rem; letter-spacing: -.02em; line-height: 1.15; }
.ft-hero p { font-size: 1.02rem; color: var(--ink-2); margin: 0 0 1.4rem; line-height: 1.5; }
.ft-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ft-hero-stats > div {
  background: rgba(255,255,255,.7); border: 1px solid rgba(15,23,42,.06);
  border-radius: 10px; padding: 1rem;
}
.ft-stat-n { font-family: var(--display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.ft-stat-l { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-top: .3rem; }
.ft-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem; margin: 0 0 2rem;
}
.ft-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.2rem 1.3rem;
}
.ft-card-icon { font-size: 1.5rem; margin-bottom: .5rem; line-height: 1; }
.ft-card h3 { font-family: var(--display); font-size: 1.05rem; margin: 0 0 .35rem; letter-spacing: -.005em; }
.ft-card p { font-size: .92rem; color: var(--ink-2); margin: 0; line-height: 1.5; }
.ft-pull-quote {
  background: var(--ink); color: #fff; padding: 1.8rem 2rem;
  border-radius: var(--radius); margin: 0 0 2rem;
}
.ft-pull-quote blockquote {
  font-family: var(--display); font-size: 1.35rem; line-height: 1.35;
  margin: 0 0 .9rem; font-weight: 500; letter-spacing: -.01em;
}
.ft-pull-attr { color: #94A3B8; font-size: .85rem; }
.ft-contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 2.2rem;
}
@media (max-width: 760px) { .ft-contact { grid-template-columns: 1fr; } }
.ft-contact h2 { font-family: var(--display); font-size: 1.45rem; margin: 0 0 .55rem; letter-spacing: -.01em; }
.ft-contact p { color: var(--ink-2); margin: 0 0 .8rem; }

/* Account dashboard */
.acct-header {
  display: flex; gap: 1.2rem; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin: 1rem 0 1.6rem; flex-wrap: wrap;
}
.acct-id { display: flex; align-items: center; gap: 1rem; }
.acct-avatar {
  width: 52px; height: 52px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 100%);
  color: #fff; font-weight: 700; font-size: 1.5rem; font-family: var(--display);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.acct-email { font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.acct-meta { font-size: .82rem; color: var(--ink-3); margin-top: .25rem; }
.acct-tier {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 999px; letter-spacing: .07em;
  vertical-align: 1px;
}
.acct-tier-free { background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); }
.acct-tier-pro {
  background: linear-gradient(95deg, #2563EB 0%, #7C3AED 60%, #EC4899 100%);
  color: #fff;
}
.acct-cta { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.acct-signout {
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  padding: .55rem .95rem; border-radius: 8px; cursor: pointer;
  font-family: var(--font); font-size: .88rem; font-weight: 500;
}
.acct-signout:hover { background: var(--bg); color: var(--ink); border-color: var(--ink-3); }

.acct-section {
  font-family: var(--display); font-size: 1.25rem; margin: 1.4rem 0 .8rem;
  letter-spacing: -.01em; display: flex; align-items: baseline; gap: .55rem;
}
.acct-subhead { font-family: var(--display); font-size: 1.05rem; margin: 1rem 0 .55rem; font-weight: 600; color: var(--ink-2); }
.acct-usage-bar {
  width: 100%; max-width: 360px; height: 8px; background: var(--bg);
  border-radius: 4px; overflow: hidden; margin-bottom: .55rem;
}
.acct-usage-bar > div {
  height: 100%; background: linear-gradient(90deg, var(--accent), #7C3AED);
  transition: width .35s ease;
}
.acct-usage-note { color: var(--ink-3); font-size: .85rem; margin: 0 0 1rem; }

.acct-feat-grid {
  display: grid; grid-template-columns: 1fr; gap: .55rem;
  max-width: 800px;
}
.acct-feat {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .95rem 1.1rem; transition: border-color .12s;
}
.acct-feat-icon { font-size: 1.4rem; line-height: 1; flex: none; }
.acct-feat-text { flex: 1; font-size: .92rem; line-height: 1.45; }
.acct-feat-text strong { color: var(--ink); }
.acct-feat-locked { background: linear-gradient(135deg, #fafbfc 0%, #f4f4ef 100%); }
.acct-feat-locked .acct-feat-text strong { color: var(--ink-2); }
.acct-feat-upgrade {
  flex: none; background: var(--ink); color: #fff;
  padding: .45rem .85rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; text-decoration: none;
  letter-spacing: .03em;
}
.acct-feat-upgrade:hover { background: var(--accent); }
.acct-feat-yes {
  flex: none; color: #15803D; font-size: .82rem; font-weight: 600;
}

/* Paywall card on /protection/<id> for signed-out users */
.paywall-card {
  background: linear-gradient(135deg, #fff 0%, #ede9fe 60%, #fff 100%);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 1.8rem 2rem; margin-top: 1rem; max-width: 720px;
}
.paywall-icon { font-size: 2rem; line-height: 1; margin-bottom: .3rem; }
.paywall-card h3 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 .55rem; letter-spacing: -.01em; }
.paywall-card > p { color: var(--ink-2); margin: 0 0 1rem; max-width: 580px; }
.paywall-feats { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.paywall-feats li { padding: .25rem 0; color: var(--ink-2); font-size: .92rem; }
.paywall-cta {
  background: var(--ink); color: #fff; border: 0; padding: .8rem 1.6rem;
  border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer;
  font-family: var(--font);
}
.paywall-cta:hover { background: var(--accent); }
.paywall-fine { color: var(--ink-3); font-size: .78rem; margin: .7rem 0 0; }

/* Terms / Acceptable Use page */
.terms-doc { max-width: 760px; line-height: 1.65; }
.terms-doc h2 { font-family: var(--display); font-size: 1.2rem; margin: 1.6rem 0 .55rem; letter-spacing: -.005em; }
.terms-doc ul { padding-left: 1.2rem; margin: .4rem 0 1rem; }
.terms-doc ul li { margin-bottom: .35rem; }
.terms-doc code { background: var(--bg); padding: 1px 6px; border-radius: 4px; font-size: .88em; }

/* "Not a law firm" disclaimer band — used near consulting CTAs */
.lawfirm-disclaimer {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #d97706;
  border-radius: 0 8px 8px 0;
  padding: .8rem 1rem;
  font-size: .85rem;
  color: #78350f;
  line-height: 1.5;
  max-width: 760px;
  margin: 1.2rem 0;
}
.lawfirm-disclaimer strong { color: #7c2d12; }

/* Voluntary / non-binding badge — distinct from law badges, signals 'advisory' */
.badge.badge-voluntary {
  background: #fff7ed;
  color: #9a3412;
  border: 1px dashed #fb923c;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 2px 8px;
}

/* ---- result panel ---- */
.result-panel { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.panel-card {
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem;
}
.panel-card h2 { margin: 0 0 .2rem; font-size: 1.22rem; }
.panel-card .addr { color: var(--ink-3); font-size: .9rem; margin: 0 0 .8rem; }
.juris-badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .4rem; }
.jbadge {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600;
  padding: .28rem .7rem; border-radius: 999px; color: #fff; border: 0; cursor: pointer;
  font-family: var(--font); transition: opacity .15s, transform .12s;
}
.jbadge:hover { transform: translateY(-1px); }
.jbadge.jbadge-off { opacity: .35; text-decoration: line-through; }
.jbadge.jbadge-off:hover { opacity: .55; }

/* When an address result is rendered, drop the right column so results take full width below the map */
.map-shell.has-result { grid-template-columns: 1fr; }
.map-shell.has-result .result-panel { margin-top: 1rem; }

/* In-effect / Upcoming / Pending sub-groups inside a level section */
.level-group { margin-top: .9rem; }
.level-group:first-of-type { margin-top: .3rem; }
.level-group-label {
  display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap;
  margin: 0 0 .5rem; padding: .3rem .55rem; border-radius: 6px;
  background: #f1f5f9; font-size: .78rem; font-weight: 600;
  color: #334155; text-transform: uppercase; letter-spacing: .04em;
}
.level-group-count {
  background: #fff; border: 1px solid #cbd5e1; color: #475569;
  font-weight: 600; font-size: .72rem; padding: .05rem .42rem; border-radius: 999px;
  text-transform: none; letter-spacing: 0;
}
.level-group-hint { color: #64748b; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: .76rem; }

/* Blog */
.blog-card { transition: transform .12s, box-shadow .12s; margin-bottom: .85rem; }
.blog-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.blog-card h2 a { color: var(--ink-1); text-decoration: none; }
.blog-card h2 a:hover { color: #0066cc; }
.blog-items .blog-item {
  padding: .85rem 1rem; background: #fafbfc; border-left: 3px solid #0066cc;
  border-radius: 0 6px 6px 0;
}
.blog-item h3 { font-size: 1rem; line-height: 1.3; }
.blog-item-num {
  display: inline-block; font-weight: 700; margin-right: .15rem;
  font-size: 1.05rem;
}
.blog-item-badge {
  flex: none; color: #fff; font-size: .65rem; font-weight: 700;
  padding: .2rem .5rem; border-radius: 4px;
  letter-spacing: .06em; line-height: 1; white-space: nowrap;
  text-transform: uppercase;
}
.level-section { margin-top: 1rem; }
.level-section > h3 {
  display: flex; align-items: center; gap: .5rem; font-size: .95rem; margin: 0 0 .5rem;
  padding-bottom: .35rem; border-bottom: 2px solid var(--line);
}
.level-section > h3 .count { margin-left: auto; font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.level-dot { width: 12px; height: 12px; border-radius: 4px; }
.level-empty { font-size: .86rem; color: var(--ink-3); font-style: italic; margin: .2rem 0 .4rem; }

/* protection cards */
.pcard {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .85rem; margin-bottom: .55rem;
  background: #fff; transition: box-shadow .15s;
}
.pcard:hover { box-shadow: var(--shadow); }
.pcard-head { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; }
.pcard-head h4 { margin: 0; font-size: .95rem; font-family: var(--font); font-weight: 600; flex: 1; }
.pcard-head h4 a { color: var(--ink); text-decoration: none; }
.pcard-head h4 a:hover { color: var(--accent); }
.pcard-meta { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .45rem; }
.badge {
  font-size: .7rem; font-weight: 600; padding: .16rem .55rem; border-radius: 999px; letter-spacing: .015em;
  display: inline-flex; align-items: center; gap: .25rem;
}
.badge.outline { background: transparent; border: 1px solid currentColor; }
.pcard-summary { font-size: .87rem; color: var(--ink-2); margin: .5rem 0 0; }
.pcard-foot { display: flex; gap: .8rem; align-items: center; margin-top: .55rem; font-size: .78rem; color: var(--ink-3); flex-wrap: wrap; }
.pcard-foot a { font-weight: 500; }
.stale-warn { color: #b45309; font-weight: 600; }

/* detail drawers */
details.cite-drawer { margin-top: .55rem; border-top: 1px dashed var(--line); padding-top: .5rem; }
details.cite-drawer summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--accent); }
details.cite-drawer[open] summary { margin-bottom: .45rem; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: .25rem .8rem; font-size: .84rem; }
.kv dt { color: var(--ink-3); font-weight: 500; }
.kv dd { margin: 0; color: var(--ink); }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: .35rem; } }

/* ---- generic page shells ---- */
.page { max-width: 1180px; margin: 0 auto; padding: 1.8rem 1.2rem 3rem; }
.page-head { margin-bottom: 1.4rem; }
.page-head h1 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0 0 .3rem; letter-spacing: -.02em; }
.page-head p { color: var(--ink-2); max-width: 760px; margin: 0; }
.grad-band { height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--fed), var(--state), var(--county), var(--city), var(--dc), var(--img)); margin-bottom: 1.1rem; max-width: 260px; }

/* directory filters */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .8rem .9rem; box-shadow: var(--shadow); margin-bottom: 1.1rem;
}
.filter-bar select, .filter-bar input[type="search"] {
  font-family: var(--font); font-size: .88rem; padding: .45rem .6rem; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); max-width: 100%;
}
.filter-bar input[type="search"] { flex: 1; min-width: 160px; }
.view-toggle { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.view-toggle button { border: none; background: #fff; padding: .42rem .8rem; cursor: pointer; font-family: var(--font); font-size: .85rem; }
.view-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.result-count { font-size: .85rem; color: var(--ink-3); margin: 0 0 .8rem; }

/* directory pagination */
.dir-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55rem .8rem; box-shadow: var(--shadow); margin: 0 0 .9rem;
}
#dir-pager-bottom { margin: 1rem 0 0; }
.dir-pager-status { font-size: .82rem; color: var(--ink-3); }
.dir-pager-controls { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.dir-pager-btn {
  font-family: var(--font); font-size: .82rem; padding: .35rem .65rem; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; line-height: 1;
}
.dir-pager-btn:hover:not([disabled]) { background: var(--ink); color: #fff; border-color: var(--ink); }
.dir-pager-btn[disabled] { opacity: .45; cursor: not-allowed; }
.dir-pager-indicator { font-size: .82rem; color: var(--ink-2); padding: 0 .4rem; font-weight: 500; }
@media (max-width: 720px) {
  .dir-pager { flex-direction: column; align-items: stretch; }
  .dir-pager-controls { justify-content: center; }
  .dir-pager-status { text-align: center; }
}

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: .9rem; }
@media (max-width: 700px) { .card-grid { grid-template-columns: 1fr; } }

/* table view */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.dir-table { border-collapse: collapse; width: 100%; font-size: .86rem; min-width: 760px; }
.dir-table th, .dir-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.dir-table th { background: var(--bg); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); position: sticky; top: 0; }
.dir-table tbody tr:hover { background: #f1f5f9; }

/* timeline */
.timeline { position: relative; margin: 1rem 0 0; padding-left: 1.4rem; border-left: 3px solid var(--line); }
.tl-item { position: relative; margin-bottom: 1.1rem; }
.tl-item::before { content: ""; position: absolute; left: -1.78rem; top: .35rem; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tl-date { font-size: .78rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }

/* topic hubs */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: .9rem; }
.hub-card {
  border-radius: var(--radius); padding: 1.1rem 1.2rem; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: block; transition: transform .15s, box-shadow .15s;
  border-top: 4px solid var(--accent);
}
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hub-card .hub-icon { font-size: 1.6rem; }
.hub-card h3 { margin: .4rem 0 .25rem; font-size: 1.05rem; }
.hub-card p { margin: 0; font-size: .85rem; color: var(--ink-2); }
.hub-card .hub-count { display: inline-block; margin-top: .6rem; font-size: .76rem; font-weight: 700; color: var(--ink-3); }

/* stat tiles */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: .8rem; margin: 1.2rem 0; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow);
}
.stat .num { font-family: var(--display); font-size: 1.7rem; font-weight: 700; }
.stat .lbl { font-size: .8rem; color: var(--ink-3); }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; max-width: 720px; }
.form-card label { display: block; font-weight: 600; font-size: .9rem; margin: .9rem 0 .3rem; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; font-family: var(--font); font-size: .95rem; padding: .6rem .7rem; border-radius: 8px; border: 1px solid var(--line);
}
.form-card textarea { min-height: 120px; resize: vertical; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: none; padding: .65rem 1.3rem;
  border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer; font-family: var(--font); text-decoration: none;
}
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn:hover { filter: brightness(1.07); }

/* callouts */
.callout { border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .9rem; margin: 1rem 0; border: 1px solid; }
.callout.info { background: var(--fed-soft); border-color: #bfdbfe; color: #1e3a8a; }
.callout.warn { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.callout.danger { background: var(--bio-soft); border-color: #fecaca; color: #991b1b; }
.callout.ok { background: var(--city-soft); border-color: #bbf7d0; color: #166534; }

/* empty states */
.empty-state { text-align: center; padding: 2.4rem 1rem; color: var(--ink-3); }
.empty-state .glyph { font-size: 2.4rem; display: block; margin-bottom: .5rem; }
.empty-state h3 { color: var(--ink-2); margin: .2rem 0 .35rem; }
.empty-state p { max-width: 460px; margin: 0 auto; font-size: .9rem; }

/* Visually mark archived (repealed / vetoed / expired / court-blocked) entries
   so users can tell at a glance they're historical references, not current law. */
.pcard.pcard-archived { opacity: .72; background: #f8fafc; border-left: 4px solid #94a3b8; }
.pcard.pcard-archived h4 a { color: #475569; }
.pcard.pcard-archived .pcard-summary { color: #64748b; }

/* Lock the footer's minimum vertical position so it doesn't shift when the
   SPA hydrates #app. Without this, footer paints right under the header on
   first paint (empty #app), then gets shoved down when JS injects route
   content — produced CLS ~0.44 on .site-footer. Applied to main (not #app)
   so the reservation holds AFTER hydration too, preventing footer-jump on
   short routes. */
main#main { min-height: calc(100vh - 220px); display: block; }

/* footer */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 2.2rem 1.4rem 1.2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; max-width: 1180px; margin: 0 auto; }
.site-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; }
.site-footer a { color: #93c5fd; display: block; text-decoration: none; padding: .15rem 0; font-size: .9rem; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .tagline { font-size: .88rem; margin: .2rem 0; }
.site-footer .freshness { font-size: .78rem; color: #94a3b8; }
.site-footer .privacy-note { font-size: .76rem; color: #94a3b8; margin-top: .6rem; }
.legal-disclaimer {
  max-width: 1180px; margin: 1.6rem auto 0; border-top: 1px solid #334155; padding-top: 1rem;
  font-size: .8rem; color: #94a3b8;
}
.legal-disclaimer strong { color: #e2e8f0; }

/* leaflet popup font */
.leaflet-popup-content { font-family: var(--font); font-size: .86rem; }
.leaflet-popup-content h4 { margin: 0 0 .3rem; font-family: var(--display); }
.leaflet-container { font-family: var(--font); }

/* compare mode */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }

/* admin */
.queue-item { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .2rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.queue-item .flag { font-size: 1.1rem; }

/* watch button */
.watch-btn {
  font-family: var(--font); font-size: .78rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: .2rem .6rem; border-radius: 999px; transition: all .15s;
}
.watch-btn:hover { border-color: #f59e0b; color: #b45309; }
.watch-btn[aria-pressed="true"] { background: #fef3c7; border-color: #f59e0b; color: #92400e; }

/* misc */
.muted { color: var(--ink-3); font-size: .85rem; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.spinner { display:inline-block; width: 16px; height: 16px; border: 2.5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
