/* ============================================================
   COTTAGE FOOD HUB — Design System
   cottagefoodlaws.pages.dev
   Warm editorial aesthetic — Playfair Display + Lora
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --cream:         #F7F3EB;
  --cream-dark:    #EDE7D8;
  --cream-deeper:  #E3DAC8;
  --terra:         #C4612A;
  --terra-dark:    #9B3D0F;
  --terra-light:   #EBCCB5;
  --terra-pale:    #FBF0E8;
  --sage:          #5E7E5F;
  --sage-dark:     #3D5E3F;
  --sage-light:    #D0E0D0;
  --sage-pale:     #F0F5F0;
  --espresso:      #2A1A0E;
  --brown-mid:     #5C3D20;
  --brown-light:   #9B7B5A;
  --border:        #D9CEBC;
  --border-light:  #EDE7D8;
  --white:         #FDFAF5;
  --text:          #2A1A0E;
  --text-mid:      #5C3D20;
  --text-muted:    #9B7B5A;
  --link:          #9B3D0F;
  --link-hover:    #C4612A;

  --font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:     'Lora', Georgia, 'Times New Roman', serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;

  --radius:        6px;
  --radius-lg:     12px;
  --shadow-sm:     0 1px 4px rgba(42,26,14,0.08);
  --shadow:        0 4px 16px rgba(42,26,14,0.10);
  --shadow-lg:     0 8px 32px rgba(42,26,14,0.14);

  --max-w:         1100px;
  --max-w-narrow:  720px;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Parchment texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

main { position: relative; z-index: 1; flex: 1; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--espresso);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
a:hover { color: var(--link-hover); }

strong { font-weight: 600; color: var(--espresso); }
em { font-style: italic; }

ul, ol { padding-left: 1.5em; margin-bottom: 1.2em; }
li { margin-bottom: 0.4em; }
li:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--terra);
  padding: 0.75em 1.25em;
  margin: 1.5em 0;
  background: var(--terra-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-mid);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--cream-dark);
  padding: 0.15em 0.45em;
  border-radius: 3px;
  color: var(--terra-dark);
}

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

.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }

/* ── Navigation ────────────────────────────────────────────── */
.site-nav {
  background: var(--espresso);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--terra);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  gap: 1.5rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream) !important;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.nav-brand span {
  color: var(--terra);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  padding: 0.35rem 0.75rem;
  color: #C9B99A;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
  border-radius: var(--radius);
}

.nav-links a:hover {
  color: var(--cream);
  background: rgba(196,97,42,0.2);
}

.nav-links .nav-cta a {
  background: var(--terra);
  color: var(--white);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius);
}

.nav-links .nav-cta a:hover {
  background: var(--terra-dark);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(201,185,154,0.3);
  color: var(--cream);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ── Hero Sections ─────────────────────────────────────────── */
.hero {
  background: var(--espresso);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(196,97,42,0.08) 100%);
  pointer-events: none;
}

.hero-decorative {
  position: absolute;
  top: -40px; right: -40px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(196,97,42,0.15);
  border-radius: 50%;
  pointer-events: none;
}

.hero-decorative::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(196,97,42,0.1);
  border-radius: 50%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--terra);
}

.hero h1 {
  color: var(--cream);
  margin-bottom: 1.25rem;
  max-width: 780px;
}

.hero-lead {
  font-size: 1.15rem;
  color: #C9B99A;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Page hero (for interior pages) */
.page-hero {
  background: var(--espresso);
  padding: 3rem 0 2.5rem;
  border-bottom: 3px solid var(--terra);
}

.page-hero h1 {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #9B7B5A;
  margin-bottom: 0.75rem;
}

.page-hero .breadcrumb a {
  color: #9B7B5A;
  text-decoration: none;
}

.page-hero .breadcrumb a:hover {
  color: var(--terra);
}

.page-hero .page-lead {
  color: #C9B99A;
  font-size: 1.05rem;
  max-width: 640px;
}

/* State hero variant */
.state-hero {
  background: var(--espresso);
  padding: 3rem 0 0;
}

.state-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-bottom: 2.5rem;
  border-bottom: 3px solid var(--terra);
}

.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(196,97,42,0.2);
  border: 1px solid rgba(196,97,42,0.3);
  border-radius: var(--radius);
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--terra);
  margin-bottom: 0.75rem;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.card-terra {
  border-top: 4px solid var(--terra);
}

.card-sage {
  border-top: 4px solid var(--sage);
}

/* ── Quick Info Box (State pages) ─────────────────────────── */
.quick-info {
  background: var(--espresso);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.quick-info-item {
  text-align: center;
}

.quick-info-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9B7B5A;
  display: block;
  margin-bottom: 0.35rem;
}

.quick-info-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
  display: block;
  line-height: 1.2;
}

.quick-info-value.yes { color: #8FBF8F; }
.quick-info-value.no { color: #CF8A7A; }
.quick-info-value.limited { color: #E8CC88; }

/* ── Status Badges ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-weight: 500;
  text-transform: uppercase;
}

.badge-green  { background: #DCF0DC; color: #2D6E2D; }
.badge-red    { background: #F5DDD8; color: #8B2A1A; }
.badge-yellow { background: #FBF2D0; color: #7A5C00; }
.badge-grey   { background: var(--cream-dark); color: var(--text-muted); }

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tier-1 { background: #DCF0DC; color: #2D6E2D; }
.tier-2 { background: #FBF2D0; color: #7A5C00; }
.tier-3 { background: #F5DDD8; color: #8B2A1A; }

/* ── Info Callout Boxes ─────────────────────────────────────── */
.callout {
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-left: 4px solid;
}

.callout-terra {
  background: var(--terra-pale);
  border-color: var(--terra);
}

.callout-sage {
  background: var(--sage-pale);
  border-color: var(--sage);
}

.callout-warning {
  background: #FBF2D0;
  border-color: #C49B00;
}

.callout-info {
  background: #EEF4FB;
  border-color: #4A7FAA;
}

.callout-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-mid);
}

/* ── FAQ Component ─────────────────────────────────────────── */
.faq-list { margin: 0; list-style: none; padding: 0; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--espresso);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--sage-pale); }
.faq-question[aria-expanded="true"] { background: var(--sage-pale); color: var(--sage-dark); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.2s;
  color: var(--terra);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--sage-dark);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.faq-answer.open { display: block; }

/* ── State Grid ─────────────────────────────────────────────── */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.state-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.state-card:hover {
  border-color: var(--terra);
  background: var(--terra-pale);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.state-card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--espresso);
  margin-bottom: 0.35rem;
}

.state-card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* ── Article Layout ────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
}

.article-body h2 {
  margin: 2.25rem 0 1rem;
  padding-top: 0.5rem;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  margin: 1.75rem 0 0.75rem;
}

.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.sidebar-list a:hover { color: var(--terra); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  line-height: 1;
}

.btn-terra {
  background: var(--terra);
  color: var(--white);
}
.btn-terra:hover {
  background: var(--terra-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196,97,42,0.3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--terra);
  color: var(--terra);
}
.btn-outline:hover {
  background: var(--terra);
  color: var(--white);
}

.btn-sage {
  background: var(--sage);
  color: var(--white);
}
.btn-sage:hover {
  background: var(--sage-dark);
  color: var(--white);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 0.88rem;
}

/* ── Law Finder Tool ────────────────────────────────────────── */
.law-finder {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.law-finder-header {
  background: var(--espresso);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.law-finder-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin: 0;
}

.law-finder-body {
  padding: 2rem;
}

.law-finder-select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text);
  cursor: pointer;
  margin-bottom: 1.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239B3D0F' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.law-finder-select:focus {
  outline: none;
  border-color: var(--terra);
}

.law-finder-result {
  display: none;
}

.law-finder-result.active {
  display: block;
}

.lf-state-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 0.25rem;
}

.lf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.lf-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}

.lf-item-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.lf-item-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--espresso);
}

.lf-products, .lf-channels {
  margin-top: 1rem;
}

.lf-section-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.lf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lf-tag {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.82rem;
  color: var(--text-mid);
}

.lf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--terra);
  text-decoration: none;
}
.lf-link:hover { color: var(--terra-dark); }

/* ── Label Checklist Tool ───────────────────────────────────── */
.checklist-tool {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.checklist-item:last-child { border-bottom: none; }
.checklist-item:hover { background: var(--cream); }
.checklist-item.checked { background: var(--sage-pale); }

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--sage);
  cursor: pointer;
}

.checklist-label {
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
}

.checklist-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Product/Channel Cards ─────────────────────────────────── */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.topic-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--terra);
  transform: scaleX(0);
  transition: transform 0.2s;
  transform-origin: left;
}

.topic-card:hover::before { transform: scaleX(1); }

.topic-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.topic-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.topic-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--espresso);
}

.topic-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Two-column content grid ────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── Section Header ─────────────────────────────────────────── */
.section-header {
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--terra);
}

/* ── Table ──────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.data-table th {
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.data-table tr:hover td { background: var(--cream); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ── Update Banner ──────────────────────────────────────────── */
.update-banner {
  background: var(--terra-pale);
  border: 1px solid var(--terra-light);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.update-dot {
  width: 8px;
  height: 8px;
  background: var(--terra);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── Disclaimer ─────────────────────────────────────────────── */
.disclaimer {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 2rem 0;
}

.disclaimer strong { color: var(--text-mid); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--espresso);
  color: #C9B99A;
  padding: 4rem 0 2rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer-brand span { color: var(--terra); }

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #9B7B5A;
  margin-bottom: 0;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: #9B7B5A;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--terra); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(201,185,154,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.78rem;
  color: #6B5040;
}

.footer-legal a {
  color: #6B5040;
  text-decoration: none;
}
.footer-legal a:hover { color: var(--terra); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .state-hero-inner { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .quick-info { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .three-col { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--espresso); padding: 1rem; border-top: 1px solid rgba(196,97,42,0.3); z-index: 99; }
  .nav-toggle { display: block; }
  .site-nav { position: relative; }
  .site-nav .container { flex-wrap: wrap; }
  .hero-decorative { display: none; }
}

/* ── Utility classes ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.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; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.align-center { align-items: center; }
.inline-block { display: inline-block; }

/* Ads placeholder */
.ads-slot {
  background: var(--cream-dark);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  margin: 1.5rem 0;
}

/* Print */
@media print {
  .site-nav, .site-footer, .ads-slot { display: none; }
  body { background: white; }
  .hero, .page-hero, .state-hero { background: white; color: black; }
  .hero h1, .page-hero h1 { color: black; }
}
