/* ============================================================
   StatuteLimits.com — Complete Stylesheet v3
   ============================================================ */

/* SEO-only static H1 — visible to crawlers, not visually shown
   (visible H1s are rendered inside #page-header by JavaScript) */
.sr-h1 {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --navy:        #0d1b2a;
  --navy-mid:    #1b3a5c;
  --gold:        #c9a84c;
  --gold-light:  #e2c97e;
  --bg:          #f4f6f9;
  --white:       #ffffff;
  --text:        #1a2332;
  --text-mid:    #4a5568;
  --text-light:  #718096;
  --border:      #e2e8f0;
  --accent-light:#f0f4ff;
  --green:       #166534;
  --green-bg:    #dcfce7;
  --amber:       #854d0e;
  --amber-bg:    #fef3c7;
  --red:         #991b1b;
  --red-bg:      #fee2e2;
  --blue:        #1e40af;
  --blue-bg:     #dbeafe;
  --purple:      #6b21a8;
  --purple-bg:   #f3e8ff;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 1px 2px rgba(0,0,0,.04), 0 4px 8px rgba(0,0,0,.04), 0 12px 24px rgba(0,0,0,.06);
  --shadow-lg:   0 2px 4px rgba(0,0,0,.04), 0 8px 16px rgba(0,0,0,.06), 0 20px 40px rgba(0,0,0,.08);
  --max-width:   1100px;
  --header-h:    64px;
}

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.4rem,  3vw, 2rem);    font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.1rem,  2vw, 1.35rem); font-weight: 700; line-height: 1.35; }
h4 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; }

p  { margin-bottom: 1rem; color: var(--text-mid); max-width: 680px; }
p:last-child { margin-bottom: 0; }

a  { color: var(--navy-mid); text-decoration: none; }
a:hover { color: var(--gold); }

ul, ol { padding-left: 1.4rem; }
li     { margin-bottom: .35rem; color: var(--text-mid); }

code, pre {
  font-family: 'Courier New', Courier, monospace;
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  font-size: .9em;
}
code { padding: .1em .35em; }

img  { max-width: 100%; height: auto; display: block; }

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

.section {
  padding: 72px 0;
}
.section + .section { border-top: 1px solid var(--border); }
.section:nth-child(even) { background: var(--white); }
.section:nth-child(odd)  { background: var(--bg); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: .5rem auto 0;
}

/* ── Header ─────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 44px !important;
  width: auto !important;
  display: block !important;
  max-width: none !important;
}
.logo span { color: var(--gold); }

.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.main-nav a {
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 500;
  padding: .45rem .85rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 1.25rem;
  padding: .3rem .6rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  padding: .5rem 1.25rem 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--gold); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: #0a1628;
  color: rgba(255,255,255,.7);
  border-top: 3px solid var(--gold);
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(6, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.footer-brand {
  /* sits in the first column inline with the other 6 link columns */
}

.footer-brand .footer-logo img {
  height: 40px !important;
  width: auto !important;
  display: block !important;
  max-width: none !important;
  margin-bottom: .75rem;
}
.footer-brand .footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
}
.footer-brand .footer-logo:hover { color: var(--gold-light); }
.footer-brand .footer-tagline {
  font-size: .82rem;
  line-height: 1.55;
  color: rgba(255,255,255,.7);
  margin-bottom: .85rem;
  max-width: 100%;
}
.footer-brand .footer-desc {
  font-size: .75rem;
  line-height: 1.6;
  color: rgba(255,255,255,.45);
  max-width: 100%;
  margin-bottom: 1rem;
}
.footer-social { display: flex; gap: .75rem; margin-bottom: 1rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.1); }
.footer-updated {
  display: inline-block;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .65rem;
  border-radius: 100px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .855rem;
  margin-bottom: .5rem;
  transition: color .15s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--gold); }

.footer-disclaimer-full {
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 1.25rem 0;
  margin-bottom: 1.25rem;
}
.footer-disclaimer-full p {
  font-size: .75rem;
  line-height: 1.65;
  color: rgba(255,255,255,.4);
  font-style: italic;
  max-width: 100%;
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom span {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom span.footer-center {
  color: rgba(255,255,255,.35);
  font-style: italic;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.012) 0px,
    rgba(255,255,255,.012) 1px,
    transparent 1px,
    transparent 12px
  );
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--white); max-width: 760px; margin: 0 auto .75rem; }
.hero p   { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 640px; margin: 0 auto 2rem; }

.hero-search {
  display: flex;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  flex: 1;
  padding: .85rem 1.1rem;
  border: 2px solid rgba(255,255,255,.2);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
.hero-search input::placeholder { color: rgba(255,255,255,.5); }
.hero-search input:focus { border-color: var(--gold); }
.hero-search button {
  padding: .85rem 1.4rem;
  background: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--gold-light); border-color: var(--gold-light); }

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 50;
  margin-top: .25rem;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-align: left;
  transition: background .12s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg); }
.search-result-item .sri-icon { font-size: 1.2rem; }
.search-result-item .sri-label { font-weight: 600; font-size: .95rem; }
.search-result-item .sri-type { font-size: .78rem; color: var(--text-light); margin-left: auto; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.stat-chip {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: .45rem 1.1rem;
  font-size: .875rem;
  color: rgba(255,255,255,.9);
}
.stat-chip strong { color: var(--gold); }

/* ── State Grid ─────────────────────────────────────────────── */
.state-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 24px .6rem;
}

.state-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
  padding: .75rem .4rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: block;
}
.state-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border);
  border-left-color: var(--gold);
  background: #fffdf5;
  color: inherit;
}
.state-card .abbr {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.state-card .state-name {
  display: block;
  font-size: .65rem;
  color: var(--text-light);
  margin-top: .1rem;
  line-height: 1.2;
}
.state-card .state-pi-chip {
  display: inline-block;
  background: var(--blue-bg);
  color: var(--blue);
  font-size: .6rem;
  font-weight: 700;
  padding: .1rem .35rem;
  border-radius: 100px;
  margin-top: .35rem;
  white-space: nowrap;
}

/* ── Case Type Grid ─────────────────────────────────────────── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 1.25rem;
  text-align: center;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow);
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-mid);
  border-top: 3px solid var(--gold);
  color: inherit;
}
.case-card .cc-icon { font-size: 2rem; margin-bottom: .5rem; display: block; }
.case-card .cc-label {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
  margin-bottom: .4rem;
}
.case-card .cc-desc { font-size: .82rem; color: var(--text-light); line-height: 1.4; max-width: unset; }

/* ── Info & Warning Cards ───────────────────────────────────── */
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  cursor: default;
  transition: all 0.25s ease;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}
.info-card h3 { margin-bottom: .6rem; }

.warning-card {
  background: var(--amber-bg);
  border: 1px solid #fcd34d;
  border-left: 4px solid #92400e;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.warning-card h4 { color: #92400e; margin-bottom: .35rem; }
.warning-card p  { color: #78350f; max-width: unset; }

.law-change-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Info Boxes Grid ────────────────────────────────────────── */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Years Badge ────────────────────────────────────────────── */
.years-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  gap: .4rem;
}
.years-badge::before {
  content: '●';
  font-size: .5rem;
  flex-shrink: 0;
}
.years-1  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.years-1::before  { color: #991b1b; }
.years-2  { background: #fef3c7; color: #854d0e; border: 1px solid #fde047; }
.years-2::before  { color: #854d0e; }
.years-3  { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.years-3::before  { color: #1e40af; }
.years-4,
.years-5  { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.years-4::before,
.years-5::before  { color: #166534; }
.years-6p { background: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe; }
.years-6p::before { color: #6b21a8; }

/* ── Table ──────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.table-wrap::after {
  content: '← scroll to see more →';
  display: none;
  text-align: center;
  font-size: .72rem;
  color: var(--text-light);
  padding: .4rem;
  background: var(--bg);
}

.sol-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
}
.sol-table thead { background: var(--navy); color: var(--white); }
.sol-table thead th {
  position: sticky;
  top: 60px;
  z-index: 10;
  padding: .9rem 1rem;
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  background: var(--navy);
}
.sol-table thead th:hover { background: var(--navy-mid); }
.sol-table thead th .sort-arrow { opacity: .5; margin-left: .25rem; }
.sol-table thead th.sorted .sort-arrow { opacity: 1; color: var(--gold); }

.sol-table tbody tr:nth-child(even) { background: #f8fafc; }
.sol-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.sol-table tbody tr:last-child { border-bottom: none; }
.sol-table tbody tr:hover { background: #eff6ff; }
.sol-table tbody tr:hover td:first-child { border-left: 3px solid var(--gold); }

.sol-table td {
  padding: .8rem 1rem;
  vertical-align: middle;
}
.sol-table td a { color: var(--navy-mid); font-weight: 500; }
.sol-table td a:hover { color: var(--gold); text-decoration: underline; }
.sol-table td code { font-size: .8rem; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  padding: .85rem 0;
  font-size: .875rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { color: var(--text-mid); font-weight: 500; }

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: .5rem; }
.page-header .subtitle { font-size: 1rem; color: var(--text-mid); max-width: 680px; }
.page-header .badge {
  display: inline-block;
  background: var(--green-bg);
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .7rem;
  margin-top: .75rem;
}

/* ── Key Facts Box ──────────────────────────────────────────── */
.key-facts {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.key-fact {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 1.5rem;
  flex: 1;
  min-width: 150px;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}
.key-fact:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); }
.key-fact .kf-label { font-size: .75rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; }
.key-fact .kf-value { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.key-fact .kf-sub   { font-size: .8rem; color: var(--text-light); }

/* ── Deadline Display (State Pages) ────────────────────────── */
.deadline-display {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  min-width: 120px;
}
.deadline-display .dd-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.deadline-display .dd-label { font-size: .75rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .07em; margin-top: .25rem; }

/* ── Case Detail Card ───────────────────────────────────────── */
.case-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  transition: all 0.25s ease;
}
.case-detail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cdc-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.cdc-header h3 { color: var(--white); font-size: 1.1rem; margin: 0; }
.cdc-icon { font-size: 1.4rem; }
.cdc-body {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
}
.cdc-info h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin-bottom: .25rem; font-family: 'Inter', sans-serif; }
.cdc-info p  { margin-bottom: 0; font-size: .9rem; max-width: unset; }
.cdc-info code { font-size: .82rem; color: var(--navy-mid); }
.cdc-info ul { margin-top: .35rem; }
.cdc-info li { font-size: .875rem; }
.cdc-link { font-size: .875rem; font-weight: 600; color: var(--navy-mid); display: inline-block; margin-top: 1rem; }
.cdc-link:hover { color: var(--gold); }

/* ── Calculator ─────────────────────────────────────────────── */
.calc-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
}

.calc-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-group select,
.form-group input[type="date"],
.form-group input[type="email"],
.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color .15s, outline .15s;
  font-family: 'Inter', sans-serif;
}
.form-group select:focus,
.form-group input[type="date"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(201,168,76,.25);
  outline-offset: 2px;
}
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.btn-calc {
  width: 100%;
  padding: .9rem 1.5rem;
  background: linear-gradient(135deg, #c9a84c, #b8973f);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
  letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-calc:hover {
  background: linear-gradient(135deg, #d4b45a, #c9a84c);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201,168,76,.3);
}
.btn-calc:active { transform: translateY(0); }

.calc-result {
  display: none;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.calc-result.show {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.result-date-box {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.result-date-box.green  { background: var(--green-bg);  border: 1px solid #86efac; }
.result-date-box.amber  { background: var(--amber-bg);  border: 1px solid #fde047; }
.result-date-box.red    { background: var(--red-bg);    border: 1px solid #fca5a5; }
.result-date-box.expired{ background: #f1f5f9; border: 1px solid var(--border); }

.result-label  { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--text-light); margin-bottom: .4rem; }
.result-date   { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; letter-spacing: -0.02em; }
.result-days   { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.result-days.green  { color: #166534; }
.result-days.amber  { color: #854d0e; }
.result-days.red    { color: #991b1b; }
.result-days.expired{ color: var(--text-light); }

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #991b1b;
  animation: pulse-dot 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

.progress-bar-wrap {
  background: var(--border);
  border-radius: 100px;
  height: 12px;
  margin: 1rem 0;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 100px;
  transition: width .5s ease;
}
.progress-bar.green  { background: linear-gradient(90deg, #16a34a, #4ade80); }
.progress-bar.amber  { background: linear-gradient(90deg, #d97706, #fbbf24); }
.progress-bar.red    { background: linear-gradient(90deg, #dc2626, #f87171); }
.progress-bar.expired{ background: var(--text-light); }

.result-statute-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  margin-bottom: .85rem;
  font-size: .875rem;
}
.result-statute-box strong { color: var(--text); }

.result-warning {
  background: var(--amber-bg);
  border: 1px solid #fde047;
  border-left: 3px solid #d97706;
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .82rem;
  color: #78350f;
  margin-bottom: 1rem;
}

.result-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-action {
  padding: .55rem 1.1rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: 'Inter', sans-serif;
  letter-spacing: .01em;
}
.btn-primary { background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── Related States Grid ────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  transition: all 0.25s ease;
  display: block;
  cursor: pointer;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; border-top: 3px solid var(--gold); }
.related-card .rc-abbr { font-size: 1.5rem; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--navy); }
.related-card .rc-name { font-size: .8rem; color: var(--text-light); margin-top: .1rem; }
.related-card .rc-pi   { font-size: .82rem; color: var(--text-mid); margin-top: .5rem; }

/* ── CTA Box ─────────────────────────────────────────────────── */
.cta-box {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}
.cta-box h2 { color: var(--gold); margin-bottom: .65rem; }
.cta-box p  { color: rgba(255,255,255,.78); max-width: 520px; margin: 0 auto 1.5rem; }

.btn-gold {
  display: inline-block;
  padding: .75rem 2rem;
  background: linear-gradient(135deg, #c9a84c, #b8973f);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  transition: all .2s;
  letter-spacing: .01em;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-gold:hover { background: linear-gradient(135deg, #d4b45a, #c9a84c); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(201,168,76,.3); color: var(--navy); }

.btn-outline-navy {
  display: inline-block;
  padding: .75rem 2rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.6);
  transition: all .2s;
  letter-spacing: .01em;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.btn-outline-navy:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }

/* ── Disclaimer ─────────────────────────────────────────────── */
.disclaimer-box {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-left: 4px solid var(--text-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.disclaimer-box strong { color: var(--text); }
.disclaimer-box p { max-width: unset; }

/* ── Ad Placeholders ────────────────────────────────────────── */
.ad-placeholder {
  background: #f1f5f9;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 1.5rem auto;
}
.ad-leaderboard { width: 100%; max-width: 728px; height: 90px; }
.ad-rectangle   { width: 336px; height: 280px; }
.ad-banner      { width: 100%; height: 60px; }

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .12s;
  letter-spacing: -0.01em;
}
.faq-q:hover { background: #f8fafc; }
.faq-arrow { font-size: 1.1rem; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 1.25rem 1.1rem;
  font-size: .9rem;
  color: var(--text-mid);
  line-height: 1.75;
}
.faq-a p { max-width: unset; }
.faq-item.open .faq-a { display: block; }

/* ── How It Works / Step Boxes ──────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}
.step-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ── State comparison inline calc ──────────────────────────── */
.inline-calc-wrap {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}
.inline-calc-wrap h3 { color: var(--gold); margin-bottom: 1.25rem; }
.inline-calc-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: flex-end; }
.inline-calc-grid label { color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 600; }
.inline-calc-grid select,
.inline-calc-grid input[type="date"] {
  width: 100%;
  padding: .65rem .85rem;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: .9rem;
  outline: none;
  min-height: 44px;
}
.inline-calc-grid select option { background: var(--navy); }
.inline-calc-grid .btn-calc-sm {
  padding: .65rem 1.25rem;
  background: linear-gradient(135deg, #c9a84c, #b8973f);
  color: var(--navy);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  transition: all .2s;
  letter-spacing: .01em;
}
.inline-calc-grid .btn-calc-sm:hover { transform: translateY(-1px); }
.inline-calc-result { margin-top: 1.25rem; display: none; }
.inline-calc-result.show { display: block; }

/* ── About / Privacy Prose ──────────────────────────────────── */
.prose h2 { margin-top: 2rem; margin-bottom: .75rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: .5rem; }
.prose ul { margin-bottom: 1rem; }
.prose li { margin-bottom: .5rem; }
.prose a  { color: var(--navy-mid); text-decoration: underline; }
.prose p  { max-width: unset; }

/* ── Accent Box ─────────────────────────────────────────────── */
.accent-box {
  background: var(--accent-light);
  border: 1px solid #c7d2fe;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.accent-box p { color: var(--blue); max-width: unset; margin: 0; font-size: .9rem; }

/* ── Scenario Cards ─────────────────────────────────────────── */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 1.5rem;
}
.scenario-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
}
.scenario-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); }
.scenario-card .sc-icon { font-size: 1.75rem; margin-bottom: .6rem; display: block; }
.scenario-card h4 { margin-bottom: .5rem; color: var(--navy); }

/* ── Popular State Cards ────────────────────────────────────── */
.popular-states-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.popular-state-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: block;
  transition: all 0.25s ease;
  cursor: pointer;
}
.popular-state-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); color: inherit; }
.popular-state-card .psc-abbr { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--navy); display: block; margin-bottom: .25rem; }
.popular-state-card .psc-name { font-size: .9rem; color: var(--text-mid); display: block; margin-bottom: .5rem; }
.popular-state-card .psc-pi   { font-size: .82rem; }

/* ── Exceptions Warning Box ─────────────────────────────────── */
.exceptions-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #ea580c;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.exceptions-box h4 { color: #c2410c; margin-bottom: .5rem; }
.exceptions-box li { color: #7c2d12; font-size: .875rem; }

/* ── Form Wrapper (feedback/contact) ───────────────────────── */
.form-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 680px;
}
.form-wrapper .form-group { margin-bottom: 1.25rem; }

/* ── Contact Cards ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); }
.contact-card .cc-icon-lg { font-size: 2.5rem; margin-bottom: 1rem; display: block; }

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-light); }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: 1rem; }
.mb-4  { margin-bottom: 2rem; }
.hidden { display: none; }
.max-680 { max-width: 680px; }

/* ── 404 Page ───────────────────────────────────────────────── */
.error-page {
  text-align: center;
  padding: 80px 20px;
}
.error-404-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .25rem;
  letter-spacing: -0.02em;
}
.error-page h1 { margin-bottom: 1rem; }
.error-page p  { max-width: 480px; margin: 0 auto 2rem; }
.error-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── Sitemap ────────────────────────────────────────────────── */
.sitemap-section { margin-bottom: 2rem; }
.sitemap-section h3 { margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.sitemap-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem .75rem; }
.sitemap-links a { font-size: .875rem; color: var(--navy-mid); }
.sitemap-links a:hover { color: var(--gold); }

/* ── Responsive ─────────────────────────────────────────────── */

/* Tablet: 768px – 1024px */
@media (max-width: 1024px) {
  .section { padding: 48px 0; }
  .state-grid  { grid-template-columns: repeat(5, 1fr); }
  .case-grid   { grid-template-columns: repeat(2, 1fr); }
  .info-boxes  { grid-template-columns: repeat(2, 1fr); }
  .steps-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; max-width: 760px; padding-bottom: 1.5rem; margin-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer-brand .footer-tagline, .footer-brand .footer-desc { max-width: 720px; font-size: .85rem; }
  .law-change-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .inline-calc-grid { grid-template-columns: 1fr 1fr; }
  .inline-calc-grid .btn-calc-sm { grid-column: 1 / -1; }
  .cdc-body { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .popular-states-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap-links { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: < 768px */
@media (max-width: 768px) {
  .section { padding: 36px 0; }
  .main-nav  { display: none; }
  .hamburger { display: block; }

  .state-grid  { grid-template-columns: repeat(4, 1fr); gap: .4rem; }
  .case-grid   { grid-template-columns: repeat(2, 1fr); }
  .info-boxes  { grid-template-columns: 1fr; }
  .steps-grid  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .inline-calc-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .popular-states-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .sitemap-links { grid-template-columns: repeat(2, 1fr); }
  .law-change-grid { grid-template-columns: 1fr; }

  .hero   { padding: 3rem 0 2.5rem; }

  .hero-search { flex-direction: column; }
  .hero-search input  { border-radius: var(--radius); border: 2px solid rgba(255,255,255,.2); border-right: 2px solid rgba(255,255,255,.2); }
  .hero-search button { border-radius: var(--radius); }

  .cta-box { padding: 1.75rem 1.25rem; }

  .ad-leaderboard { height: 60px; }
  .ad-rectangle   { width: 100%; height: 100px; }

  .key-facts { flex-direction: column; }
  .key-fact  { min-width: unset; }

  .sol-table td, .sol-table th { padding: .6rem .7rem; font-size: .82rem; }
  .table-wrap::after { display: block; }

  .result-actions { flex-direction: column; }
  .btn-action { width: 100%; text-align: center; }

  .form-group select,
  .form-group input[type="date"],
  .form-group input[type="email"],
  .form-group input[type="text"],
  .form-group textarea { min-height: 52px; font-size: 1rem; }

  .error-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .state-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .sitemap-links { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.5rem; }
}

@media (max-width: 360px) {
  .state-grid { grid-template-columns: repeat(2, 1fr); }
}
