/* ============================================================
   FoodCardKY.com — Main Stylesheet
   Aesthetic: Editorial Utilitarian — clean government-adjacent
   but human, warm, and trustworthy. Not corporate, not sterile.
   Fonts: Libre Baskerville (body serif authority) +
          DM Sans (UI labels, nav, badges)
   Color: Deep forest green authority + warm cream ground +
          amber accent for urgency/action
   ============================================================ */

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

/* ── Variables ────────────────────────────────────────────── */
:root {
  --green-deep:   #1a3a2a;
  --green-mid:    #2d5a3d;
  --green-light:  #4a8c5c;
  --green-pale:   #e8f0eb;
  --cream:        #faf8f3;
  --cream-dark:   #f0ece0;
  --amber:        #c8821a;
  --amber-light:  #f5a623;
  --amber-pale:   #fef3dc;
  --red-alert:    #b83232;
  --text-dark:    #1c1c1c;
  --text-mid:     #3d3d3d;
  --text-muted:   #6b6b6b;
  --text-light:   #9a9a9a;
  --border:       #d8d4c8;
  --border-light: #ece8de;
  --white:        #ffffff;
  --shadow-sm:    0 1px 3px rgba(26,58,42,0.08);
  --shadow-md:    0 4px 12px rgba(26,58,42,0.12);
  --shadow-lg:    0 8px 28px rgba(26,58,42,0.16);
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    14px;
  --max-width:    960px;
  --font-serif:   'Libre Baskerville', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-mid); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

/* ── Skip Link ────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -40px; left: 1rem;
  background: var(--green-deep); color: var(--white);
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 0.85rem;
  z-index: 1000; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  background: var(--green-deep);
  border-bottom: 3px solid var(--amber);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-logo .logo-accent { color: var(--amber-light); }
.site-logo .logo-badge {
  background: var(--amber);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}
.site-nav a:hover,
.site-nav a.active { background: rgba(255,255,255,0.12); color: var(--white); }
.nav-tool-link {
  background: var(--amber) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
}
.nav-tool-link:hover { background: var(--amber-light) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 0.5rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-bar {
  background: var(--green-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
.breadcrumb-inner a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb-inner a:hover { color: var(--white); }
.breadcrumb-inner .sep { margin: 0 0.4rem; opacity: 0.4; }

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.page-hero .hero-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  line-height: 1.55;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.hero-badge {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.9);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.hero-badge.urgent {
  background: var(--amber);
  border-color: var(--amber-light);
  color: var(--white);
}

/* ── Homepage Hero (larger) ───────────────────────────────── */
.home-hero {
  background: linear-gradient(150deg, var(--green-deep) 0%, #1f4a30 60%, var(--green-mid) 100%);
  color: var(--white);
  padding: 5rem 1.25rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.home-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.home-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  max-width: 680px;
}
.home-hero h1 em {
  font-style: normal;
  color: var(--amber-light);
}
.home-hero .hero-lead {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.18s;
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200,130,26,0.4);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}
.btn-green {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}
.btn-green:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--white);
}
.btn-sm {
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
}

/* ── Main Layout ──────────────────────────────────────────── */
.page-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.page-main.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 760px;
}
.page-main.wide {
  grid-template-columns: 1fr;
  max-width: var(--max-width);
}

/* ── Article / Prose ──────────────────────────────────────── */
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-top: 2.25rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--border-light);
  letter-spacing: -0.02em;
}
.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol {
  margin: 0 0 1.1rem 1.5rem;
}
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--green-deep); font-weight: 700; }
.prose a { color: var(--green-mid); font-weight: 500; }
.prose blockquote {
  border-left: 4px solid var(--amber);
  padding: 0.75rem 1.25rem;
  background: var(--amber-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-mid);
}

/* ── County Info Card ─────────────────────────────────────── */
.county-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}
.county-card-header {
  background: var(--green-deep);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.county-card-header h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--white);
}
.required-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}
.required-badge.yes {
  background: var(--amber);
  color: var(--white);
}
.required-badge.no {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}
.county-card-body {
  padding: 1.5rem;
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.fact-item {
  background: var(--green-pale);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}
.fact-item .fact-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.fact-item .fact-value {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
}
.fact-item .fact-value.highlight { color: var(--amber); }

/* ── Alert / Notice Boxes ─────────────────────────────────── */
.alert {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.25rem 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.5;
}
.alert-icon { flex-shrink: 0; font-size: 1.1rem; margin-top: 0.1rem; }
.alert.alert-warning {
  background: var(--amber-pale);
  border: 1px solid #e8c07a;
  color: #7a4a0a;
}
.alert.alert-info {
  background: var(--green-pale);
  border: 1px solid #a8c8b4;
  color: var(--green-deep);
}
.alert.alert-required {
  background: #fef2f2;
  border: 1px solid #f5c6c6;
  color: #7a1a1a;
}

/* ── Step List ────────────────────────────────────────────── */
.step-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  counter-reset: steps;
}
.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.step-list li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}
.step-list li .step-content { flex: 1; }
.step-list li .step-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-deep);
  display: block;
  margin-bottom: 0.2rem;
}

/* ── FAQ Section ──────────────────────────────────────────── */
.faq-section { margin-top: 2.5rem; }
.faq-section h2 {
  font-size: 1.4rem;
  color: var(--green-deep);
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
}
.faq-question {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-deep);
  padding: 1rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: transform 0.2s, background 0.2s;
}
details[open] .faq-arrow {
  transform: rotate(180deg);
  background: var(--green-mid);
  color: var(--white);
}
.faq-answer {
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 0 0 1rem;
  color: var(--text-mid);
}

/* ── County Directory Table ───────────────────────────────── */
.county-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
}
.county-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  background: var(--white);
}
.county-table thead th {
  background: var(--green-deep);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.county-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}
.county-table tbody tr:last-child { border-bottom: none; }
.county-table tbody tr:hover { background: var(--green-pale); }
.county-table tbody td {
  padding: 0.7rem 1rem;
  color: var(--text-mid);
  vertical-align: top;
}
.county-table tbody td:first-child {
  font-weight: 600;
  color: var(--green-deep);
}
.county-table tbody td a {
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 600;
}
.county-table tbody td a:hover { text-decoration: underline; }
.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill-req { background: #fde8e8; color: #8b1a1a; }
.pill-vol { background: var(--green-pale); color: var(--green-deep); }
.pill-check { background: var(--amber-pale); color: #7a4a0a; }

/* ── Tool Widget ──────────────────────────────────────────── */
.tool-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.tool-widget h2 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}
.tool-widget .tool-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.tool-select-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.tool-select-group label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  display: block;
}
.tool-select-group select,
.tool-select-group input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b6b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.tool-select-group select:focus,
.tool-select-group input:focus {
  outline: none;
  border-color: var(--green-mid);
  background-color: var(--white);
}
.tool-result {
  margin-top: 1.25rem;
  display: none;
}
.tool-result.visible { display: block; }
.result-card {
  background: var(--green-pale);
  border: 1px solid #a8c8b4;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.result-card .result-county {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(26,58,42,0.1);
  font-family: var(--font-sans);
  font-size: 0.88rem;
}
.result-row:last-child { border-bottom: none; }
.result-row .rkey {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 120px;
}
.result-row .rval {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
}
.result-row .rval.req { color: var(--red-alert); }
.result-row .rval.vol { color: var(--green-mid); }
.result-row .rval a { color: var(--green-mid); font-weight: 600; }
.result-not-found {
  background: var(--amber-pale);
  border: 1px solid #e8c07a;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #7a4a0a;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-header {
  background: var(--green-deep);
  color: var(--white);
  padding: 0.75rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sidebar-card-body { padding: 1rem 1.1rem; }
.sidebar-nav-list {
  list-style: none;
  padding: 0; margin: 0;
}
.sidebar-nav-list li { border-bottom: 1px solid var(--border-light); }
.sidebar-nav-list li:last-child { border-bottom: none; }
.sidebar-nav-list a {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.55rem 0;
  transition: color 0.15s, padding-left 0.15s;
}
.sidebar-nav-list a:hover { color: var(--green-deep); padding-left: 0.3rem; }
.sidebar-nav-list a.active { color: var(--green-deep); font-weight: 700; }
.sidebar-card .adsense-placeholder {
  background: var(--cream-dark);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-light);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Grid Sections (Homepage) ─────────────────────────────── */
.section { padding: 3.5rem 1.25rem; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.section-sub {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.section-alt { background: var(--cream-dark); }
.section-dark {
  background: var(--green-deep);
  color: var(--white);
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: rgba(255,255,255,0.65); }

/* Card Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--green-light);
  margin-bottom: 0.4rem;
}
.card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.card p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.card-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-mid);
}

/* State Hub Cards */
.state-hub-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.state-hub-card:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.state-hub-flag {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}
.state-hub-card h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.35rem;
}
.state-hub-card p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
.state-hub-count {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--green-pale);
  color: var(--green-deep);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

/* ── Banner CTA ───────────────────────────────────────────── */
.banner-cta {
  background: linear-gradient(135deg, var(--amber) 0%, #e8921f 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.banner-cta-text h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.banner-cta-text p {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.banner-cta .btn-white {
  background: var(--white);
  color: var(--amber);
  border-color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}
.banner-cta .btn-white:hover {
  background: var(--cream);
  color: var(--amber);
}

/* ── Disclaimer ───────────────────────────────────────────── */
.disclaimer {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.disclaimer strong { color: var(--text-mid); }

/* ── Internal Links Block ─────────────────────────────────── */
.related-pages {
  background: var(--green-pale);
  border: 1px solid #a8c8b4;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 2rem 0;
}
.related-pages h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-mid);
  margin-bottom: 0.75rem;
}
.related-pages ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.related-pages ul li a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
  text-decoration: none;
  background: var(--white);
  border: 1px solid #a8c8b4;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
  display: inline-block;
}
.related-pages ul li a:hover {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}

/* ── AdSense Placeholders ─────────────────────────────────── */
.ad-slot {
  background: var(--cream-dark);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}
.ad-slot-leaderboard { height: 90px; }
.ad-slot-rectangle { height: 250px; }
.ad-slot-banner { height: 60px; }

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.65);
  padding: 3rem 1.25rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .footer-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.6rem;
}
.footer-brand .footer-logo span { color: var(--amber-light); }
.footer-brand p {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}
.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-col ul li {
  margin-bottom: 0.45rem;
}
.footer-col ul li a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-main {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 3rem;
  }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--green-deep);
    flex-direction: column;
    padding: 0.75rem;
    border-bottom: 2px solid var(--amber);
    gap: 0.1rem;
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 0.9rem; padding: 0.6rem 0.9rem; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .banner-cta { flex-direction: column; text-align: center; }
  .home-hero { padding: 3.5rem 1rem 3rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .sidebar, .ad-slot, .nav-toggle { display: none; }
  .page-main { grid-template-columns: 1fr; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; }
}
