/* LLCbyState — main.css
   Editorial / publication design system. <1.5s LCP target.
   One self-hosted webfont family, Barlow, in four weights (latin subset, ~22 KB each,
   font-display: swap), used for body, UI and headings. System stacks are the fallback.

   Palette philosophy:
     - Warm off-white background (#fafaf7) instead of pure white
     - Warm near-black text (#1c1d23) instead of cold #111827
     - Mauve-grey muted (#5b5d6b) instead of cold #6B7280
     - Deep warm navy primary (#1F3A4D) — distinctive, publication-feel
     - Deep teal secondary (#0D7B73)
     - Bronze accent (#B8895A) — replaces bright amber for warmth
*/

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* --- Surfaces --- */
  --c-bg:        #fafaf7;
  --c-surface:   #ffffff;
  --c-bg-soft:   #f4f3ee;
  --c-border:    #e3e0d8;
  --c-border-strong: #d6d2c4;

  /* --- Text --- */
  --c-text:      #1c1d23;
  --c-muted:     #5b5d6b;

  /* --- Brand --- */
  --c-primary:       #1F3A4D;
  --c-primary-dark:  #15293a;
  --c-primary-light: #2e5470;
  --c-secondary:     #0D7B73;
  --c-accent:        #B8895A;
  --c-accent-dark:   #8b6538;

  /* --- Semantic --- */
  --c-link:       #1F3A4D;
  --c-link-hover: #B8895A;
  --c-success:    #2e8540;
  --c-danger:     #c93025;

  /* --- Brand-tinted backgrounds (computed without color-mix for older browser fallback) --- */
  --c-primary-tint:   rgba(31, 58, 77, 0.08);
  --c-primary-border: rgba(31, 58, 77, 0.18);
  --c-accent-tint:    rgba(184, 137, 90, 0.10);
  --c-accent-border:  rgba(184, 137, 90, 0.22);

  /* --- Radii --- */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-pill: 999px;

  /* Backward-compat (existing rules use --radius) */
  --radius: var(--r-md);

  /* --- Shadows (subtle elevation; no heavy drops) --- */
  --shadow-xs: 0 1px 2px rgba(20, 22, 28, .04);
  --shadow-sm: 0 1px 3px rgba(20, 22, 28, .06), 0 1px 2px rgba(20, 22, 28, .04);
  --shadow-md: 0 4px 12px rgba(20, 22, 28, .08), 0 1px 3px rgba(20, 22, 28, .04);
  --shadow-lg: 0 10px 30px rgba(20, 22, 28, .10), 0 2px 6px rgba(20, 22, 28, .04);

  /* --- Type --- */
  --font:         "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* --- Layout --- */
  --container-max: 1180px;
  --header-h: 64px;

  /* --- Motion --- */
  --t-fast: 120ms;
  --t-base: 180ms;
  --t-slow: 280ms;
  --ease:   cubic-bezier(.4, 0, .2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a {
  color: var(--c-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--c-accent-border);
  transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease);
}
a:hover {
  color: var(--c-link-hover);
  text-decoration-color: var(--c-accent);
}

/* Headings — display serif on hero/h1 only, sans for the rest (cleaner contrast) */
h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--c-primary);
  font-weight: 700;
  margin: 1.5em 0 .5em;
  letter-spacing: -0.01em;
}
h1 {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h2 {
  font-size: 1.55rem;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: .35em;
}
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .25em; }
table { border-collapse: collapse; width: 100%; margin: 1em 0; }
th, td {
  border: 1px solid var(--c-border);
  padding: .65em .85em;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--c-bg-soft);
  font-weight: 600;
  color: var(--c-primary);
}
code {
  font-family: var(--font-mono);
  background: var(--c-bg-soft);
  padding: .1em .35em;
  border-radius: var(--r-sm);
  font-size: .9em;
}
hr { border: 0; border-top: 1px solid var(--c-border); margin: 2rem 0; }

::selection { background: var(--c-accent-tint); color: var(--c-text); }

/* ---- A11y ---- */
.sr-only { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link {
  position: absolute; left: -10000px; top: 0;
  padding: .6em 1em;
  background: var(--c-primary); color: #fff;
  z-index: 100;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; top: 0; }
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ---- Layout ---- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
.main { padding: 2rem 1.25rem 4rem; }

/* ---- Header (sticky, frosted) ---- */
.site-header {
  border-bottom: 1px solid var(--c-border);
  background: rgba(250, 250, 247, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--c-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand__mark {
  background: var(--c-primary);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: var(--shadow-xs);
}
.brand__accent { color: var(--c-accent); }

.nav-primary__menu {
  display: flex;
  gap: .15rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav-primary__menu a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem .75rem;
  border-radius: var(--r-md);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-primary__menu a:hover {
  color: var(--c-primary);
  background: var(--c-primary-tint);
  text-decoration: none;
}
.nav-primary__menu .nav-icon {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; border-radius: var(--r-sm); }
.nav-toggle:hover { background: var(--c-bg-soft); }
.nav-toggle__bar { display: block; width: 22px; height: 2px; background: var(--c-text); margin: 4px 0; border-radius: 2px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-primary__menu {
    position: absolute; top: 60px; right: 1rem;
    background: var(--c-surface);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: .5rem;
    flex-direction: column;
    gap: .15rem;
    align-items: stretch;
    display: none;
    min-width: 180px;
  }
  .nav-primary__menu--open { display: flex; }
  .nav-primary__menu a { padding: .65rem .8rem; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--c-bg-soft);
  border-top: 1px solid var(--c-border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  color: var(--c-text);
}
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__heading {
  color: var(--c-primary);
  font-size: .95rem;
  font-weight: 600;
  margin: 0 0 .9rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: .5rem; }
.footer__col a {
  color: var(--c-muted);
  text-decoration: none;
  font-size: .95rem;
  transition: color var(--t-fast) var(--ease);
}
.footer__col a:hover { color: var(--c-primary); text-decoration: none; }
.footer__rule { border: 0; border-top: 1px solid var(--c-border); margin: 2rem 0 1rem; }
.footer__legal p { font-size: .9rem; color: var(--c-muted); margin: .3rem 0; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(circle at 15% 20%, var(--c-primary-tint), transparent 45%),
    radial-gradient(circle at 85% 70%, var(--c-accent-tint), transparent 50%),
    linear-gradient(180deg, #fafaf7 0%, var(--c-bg) 100%);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.hero__h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  max-width: 860px;
  margin: 0 0 1rem;
  color: var(--c-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.hero__sub {
  font-size: 1.15rem;
  max-width: 720px;
  color: var(--c-text);
  margin: 0 0 1.8rem;
  line-height: 1.6;
}
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (min-width: 760px) {
  .hero__h1 { font-size: 3rem; }
}

/* ---- Buttons ---- */
.btn-primary, .btn-outline, .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  letter-spacing: .005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}
.btn-primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-outline {
  background: var(--c-surface);
  color: var(--c-primary);
  border-color: var(--c-border-strong);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  text-decoration: none;
}
.btn-sm { padding: .5rem 1rem; font-size: .9rem; border-radius: var(--r-sm); }

/* ---- Pill badges ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .7rem;
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 500;
  background: var(--c-primary-tint);
  color: var(--c-primary);
  border: 1px solid var(--c-primary-border);
  text-decoration: none;
  line-height: 1.4;
}
.pill--accent { background: var(--c-accent-tint); color: var(--c-accent-dark); border-color: var(--c-accent-border); }
.pill--muted  { background: var(--c-bg-soft); color: var(--c-muted); border-color: var(--c-border); }
.pill--success{ background: rgba(46,133,64,.10); color: var(--c-success); border-color: rgba(46,133,64,.22); }

/* ---- Breadcrumbs ---- */
.breadcrumbs { font-size: .9rem; color: var(--c-muted); margin: 0 0 1.25rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; gap: .3em; align-items: center; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; transition: color var(--t-fast) var(--ease); }
.breadcrumbs a:hover { color: var(--c-primary); text-decoration: underline; }
.breadcrumbs__sep { margin: 0 .35em; color: var(--c-border-strong); }

/* ---- Article ---- */
.article { max-width: 1180px; margin: 0 auto; }
.article__header { margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--c-border); }
.article__h1 {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 700;
  margin: 0 0 .65rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
@media (min-width: 760px) { .article__h1 { font-size: 2.5rem; } }
.article__intro {
  font-size: 1.12rem;
  color: var(--c-text);
  margin: .75rem 0 1rem;
  line-height: 1.6;
  max-width: 760px;
}
.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 960px) { .article__layout { grid-template-columns: 1fr; } }
.article__rail { position: sticky; top: calc(var(--header-h) + 16px); }

.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul li::marker { color: var(--c-accent); }
.prose table th, .prose table td { font-size: .97rem; }
.prose a { color: var(--c-link); }

.byline { font-size: .92rem; color: var(--c-muted); margin: .5rem 0 1rem; line-height: 1.6; }
.byline a { color: var(--c-primary); font-weight: 500; }
.byline__author, .byline__reviewer, .byline__dates { display: block; }
.byline__role, .byline__creds { color: var(--c-muted); }

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  color: var(--c-muted);
  margin: .5rem 0 1rem;
  padding: .25rem .7rem;
  background: var(--c-bg-soft);
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
}

/* ---- TOC ---- */
.toc {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow-xs);
}
.toc__heading { font-size: 1rem; margin: 0 0 .5rem; border: 0; padding: 0; color: var(--c-primary); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .97rem; }
.toc li { margin-bottom: .35em; }
.toc a { color: var(--c-text); text-decoration: none; }
.toc a:hover { text-decoration: underline; color: var(--c-primary); }

/* ---- FAQ ---- */
.faq { margin: 2.5rem 0; }
.faq__item {
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  margin-bottom: .65rem;
  padding: 0;
  background: var(--c-surface);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.faq__item:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-xs); }
.faq__item[open] { border-color: var(--c-primary-border); box-shadow: var(--shadow-sm); }
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--c-primary);
  padding: 1rem 1.25rem;
  list-style: none;
  border-radius: var(--r-lg);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  float: right;
  font-size: 1.3rem;
  color: var(--c-accent);
  line-height: 1;
  font-weight: 400;
  transition: transform var(--t-fast) var(--ease);
}
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 1.25rem 1rem; }

/* ---- Sources ---- */
.sources {
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-secondary);
  box-shadow: var(--shadow-xs);
}
.sources h2 { margin-top: 0; border: 0; font-size: 1.15rem; padding-bottom: 0; }
.sources ul { margin: 0; padding-left: 1.2em; }
.sources li { margin-bottom: .4em; }

/* ---- Sibling-topic / sibling-state nav ---- */
.sibling-topics, .sibling-states {
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.sibling-topics h2, .sibling-states h2 {
  margin-top: 0;
  border: 0;
  padding-bottom: 0;
  font-size: 1.1rem;
}
.sibling-topics__list {
  list-style: none;
  padding: 0;
  margin: .75rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.sibling-topics__list li { margin: 0; }
.sibling-topics__list a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .9rem;
  background: var(--c-primary-tint);
  border: 1px solid var(--c-primary-border);
  border-radius: var(--r-pill);
  color: var(--c-primary);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.sibling-topics__list a:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  text-decoration: none;
  transform: translateY(-1px);
}
.sibling-topics__hub { margin: .25rem 0 0; font-size: .92rem; }
.sibling-topics__hub a { color: var(--c-primary); font-weight: 500; }

/* ---- Disclosure / YMYL note ---- */
.ymyl-note {
  background: var(--c-accent-tint);
  border-left: 4px solid var(--c-accent);
  padding: .9rem 1.2rem;
  border-radius: var(--r-md);
  font-size: .95rem;
  margin: 2rem 0;
  color: var(--c-text);
}
.ymyl-note strong { color: var(--c-accent-dark); }
.affiliate-disclosure {
  background: var(--c-bg-soft);
  padding: .8rem 1.1rem;
  border-radius: var(--r-md);
  font-size: .9rem;
  color: var(--c-muted);
  margin: 1.2rem 0;
  border: 1px solid var(--c-border);
}

/* ---- Ad slots ---- */
.ad-slot { margin: 2rem auto; text-align: center; min-height: 90px; }
.ad-slot::before {
  content: "Advertisement";
  display: block;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: .35rem;
}
.ad-slot--sidebar_sticky { min-height: 250px; position: sticky; top: calc(var(--header-h) + 16px); }

/* ---- Link lists ---- */
.link-list { list-style: none; padding: 0; margin: 1rem 0; }
.link-list li { padding: .85rem 0; border-bottom: 1px solid var(--c-border); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { color: var(--c-primary); font-weight: 500; text-decoration: none; }
.link-list a:hover { color: var(--c-accent-dark); text-decoration: underline; }
.link-list__meta { display: block; font-size: .87rem; color: var(--c-muted); margin-top: .2rem; }
.link-list--two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 680px) { .link-list--two-col { grid-template-columns: 1fr; } }

/* ---- Home-specific ---- */
.home-section { margin: 3rem 0; }
.home-section h2 {
  font-size: 1.5rem;
  border-bottom: none;
  padding-bottom: 0;
  position: relative;
  display: inline-block;
  padding-right: 0;
}
.home-section h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  margin-top: .35rem;
}
.home-section--note {
  background: var(--c-surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-secondary);
  box-shadow: var(--shadow-xs);
}

.state-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.state-grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: .9rem 1.1rem;
  text-decoration: none;
  color: var(--c-text);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.state-grid a:hover {
  border-color: var(--c-primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.state-grid__name { font-weight: 600; color: var(--c-primary); }
.state-grid__fee { font-size: .87rem; color: var(--c-muted); }

.entity-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.entity-grid a {
  display: block;
  padding: 1.3rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--c-text);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.entity-grid a:hover {
  border-color: var(--c-primary-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.entity-grid strong { display: block; color: var(--c-primary); margin-bottom: .4rem; font-size: 1.1rem; font-weight: 600; }
.entity-grid p { margin: 0; font-size: .95rem; color: var(--c-muted); }

/* ---- State hub fees ---- */
.state-fees { margin: 2rem 0; }
.fee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; margin: 1rem 0; }
.fee-card {
  background: var(--c-surface);
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.fee-card:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow-sm); }
.fee-card__label {
  display: block;
  font-size: .78rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .35rem;
  font-weight: 500;
}
.fee-card__val {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-primary);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.fee-card--wide { grid-column: 1 / -1; }

/* ---- State overview / general content sections ---- */
.state-overview { margin: 2rem 0; }
.state-pages { margin: 2rem 0; }

/* ---- Sidebar rail card ---- */
.rail__card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-xs);
}
.rail__card h3 {
  margin: 0 0 .75rem;
  font-size: 1rem;
  color: var(--c-primary);
}
.rail__facts { list-style: none; padding: 0; margin: 0; }
.rail__facts li {
  padding: .55rem 0;
  border-bottom: 1px solid var(--c-border);
  font-size: .92rem;
}
.rail__facts li:last-child { border-bottom: 0; }
.rail__facts strong { color: var(--c-text); }
.rail__facts a { color: var(--c-primary); }

/* ---- Cookie table ---- */
.cookie-table th, .cookie-table td { font-size: .92rem; }

/* ---- Contact ---- */
.contact-list dt { font-weight: 700; color: var(--c-primary); margin-top: 1rem; }
.contact-list dd { margin: 0 0 .5rem; }
.contact-form { max-width: 38rem; margin: 1.5rem 0 1rem; }
.contact-form__field { margin-bottom: 1rem; }
.contact-form label { display: block; font-weight: 600; color: var(--c-primary); margin-bottom: .3rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: .65rem .8rem;
  font: inherit;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-sm);
}
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: 1px;
}
.contact-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: .6; cursor: default; }
.contact-form__status { margin: 1rem 0 0; font-weight: 600; }
.contact-form__status:empty { display: none; }
.contact-form__status--ok { color: #1a6b3c; }
.contact-form__status--error { color: #a32020; }
.contact-form__note { font-size: .9rem; color: var(--muted, #5b5d6b); }

/* ---- 404 ---- */
.error-404 { text-align: center; padding: 4rem 1rem; }
.error-404 h1 { font-size: 2.5rem; }
.error-404 ul { list-style: none; padding: 0; }
.error-404 li { padding: .4rem 0; }

/* ---- Consent bar ---- */
.consent-bar {
  position: fixed;
  inset: auto 0 0 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 20px rgba(20, 22, 28, .08);
  padding: 1rem;
  z-index: 50;
}
.consent-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.consent-bar p { margin: 0; font-size: .95rem; }
.consent-bar__btns { display: flex; gap: .5rem; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .btn-primary:hover, .state-grid a:hover, .entity-grid a:hover, .sibling-topics__list a:hover { transform: none; }
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .ad-slot, .article__rail, .hero__cta, .sibling-topics, .sibling-states { display: none !important; }
  .article { max-width: 100%; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
}

/* ---- Wide data tables scroll instead of overflowing on phones ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0; }
.table-wrap table { margin: 0; min-width: 34rem; }
.prose table { display: block; overflow-x: auto; max-width: 100%; }
.prose table th { text-align: left; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.stat-card { border: 1px solid var(--border, #e3e2dc); border-radius: 10px; padding: 1rem 1.1rem; background: #fff; }
.stat-card__label { display: block; font-size: .85rem; color: var(--muted, #5b5d6b); }
.stat-card__val { display: block; font-size: 1.5rem; font-weight: 700; margin-top: .15rem; }
.stat-card__note { display: block; font-size: .85rem; color: var(--muted, #5b5d6b); margin-top: .2rem; }
