/* ============================================================
   ZIM THEME — Low-End Guide Zimbabwe
   "It is Zimbabwe, sunshine, open spaces."
   White background · flag colours (green / gold / red / black)
   Big Cooper-style serif headings · Times New Roman body
   WCAG 2.2 AA — every text colour below is verified on white
   ============================================================ */

/* --- CUSTOM PROPERTIES --- */
:root {
  /* Zimbabwe flag palette (flag colours used decoratively) */
  --green: #006400;        /* flag green — links, primary actions, accents */
  --green-deep: #004d00;   /* hover state */
  --gold: #fcd116;         /* flag gold — DECORATIVE ONLY (fails as text on white) */
  --gold-deep: #7a5c00;    /* darkened gold — text-safe on white */
  --red: #c8102e;          /* flag red, darkened — text-safe on white */
  --red-deep: #a50f24;     /* hover state */
  --ink: #111111;          /* near-black — body text */

  /* Light, sunny surfaces */
  --bg: #ffffff;
  --bg-soft: #faf7ef;      /* warm sunlit cream for panels/cards */
  --bg-hover: #f3eee2;
  --text-secondary: #333333;
  --text-muted: #555555;
  --border: #e3ddcd;       /* decorative dividers */
  --border-strong: #8a8272;/* interactive element borders (3.8:1) */
  --green-soft: #e9f2e2;   /* green tint chip background */
  --red-soft: #f9e6e8;     /* red tint chip background */
  --focus: #006400;

  /* Typography — system stacks only, no webfont downloads */
  --font-display: 'Cooper Black', Cooper, 'Rockwell', Georgia, 'Times New Roman', serif;
  --font-body: 'Times New Roman', Times, Georgia, serif;
  --font-accent: Algerian, 'Cooper Black', 'Rockwell', Georgia, serif;

  --radius: 6px;
  --max-width: 1200px;
  --transition: 150ms ease;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- SKIP TO CONTENT --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  top: 0;
}

/* --- HEADINGS: big display serif in the spirit of Cooper --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: 2.5rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

/* --- ANCHORS & LINKS --- */
a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
a:hover {
  color: var(--green-deep);
}
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ============================================================
   NAVIGATION — flag tricolor strip on top of both nav variants
   ============================================================ */
.top-nav, .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
/* Green–gold–red flag stripe (decorative) */
.top-nav::before, .site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
    var(--green) 0 33.33%,
    var(--gold) 33.33% 66.66%,
    var(--red) 66.66% 100%);
}

.top-nav-inner, .main-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
  padding: 0 1rem;
}

/* Brand wordmark — Cooper-style display serif, normal case */
.site-title, .nav-brand a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-title:hover, .nav-brand a:hover {
  color: var(--green-deep);
}

.top-nav nav {
  display: flex;
}
.top-nav nav a, .nav-links a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.3rem 0;
  margin-left: 1.5rem;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.top-nav nav a:hover, .nav-links a:hover,
.top-nav nav a[aria-current="page"], .nav-links a[aria-current="page"] {
  color: var(--green);
  border-bottom-color: var(--gold);
}
.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

/* --- BREADCRUMBS (both spellings used in the codebase) --- */
.breadcrumbs, .breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1rem 0;
  font-size: 0.875rem;
}
.breadcrumbs ol, .breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
}
.breadcrumbs li, .breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumbs li + li::before, .breadcrumb li + li::before {
  content: "›";
  color: var(--gold-deep);
  margin-right: 0.5rem;
}
.breadcrumbs a, .breadcrumb a {
  color: var(--green);
  text-decoration: none;
}
.breadcrumbs a:hover, .breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumbs [aria-current="page"], .breadcrumb [aria-current="page"] {
  color: var(--text-muted);
}

/* --- MAIN CONTAINERS --- */
.main-container, .main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  width: 100%;
  flex: 1;
}
/* bare <main> on a few pages (homepage, a handful of districts) */
main:not([class]) {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem 3rem;
  width: 100%;
  flex: 1;
}

/* --- HERO (homepage) — 1/3 + 2/3 split, left empty, right text box --- */
.hero {
  background: radial-gradient(120% 100% at 50% 0%,
    rgba(252, 209, 22, 0.14) 0%,
    rgba(255, 255, 255, 0) 60%);
  padding: 3.5rem 1rem 3rem;
}
.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  align-items: start;
}
.hero-spacer {
  /* intentionally empty — 1/3 page-width gutter, no content */
}
.hero-text {
  text-align: left;
  border: 0;
  background: none;
  color: var(--text-secondary);
}
/* Hero title — Cooper display serif, red, 14pt (client spec) */
.hero-text h1 {
  font-family: var(--font-display);
  font-size: 14pt;
  line-height: 1.2;
  color: var(--red);
  margin-bottom: 1rem;
}
/* Intro copy — 12pt Times New Roman body (all site text), per client */
.hero-description {
  color: var(--text-secondary);
  font-size: 12pt;
  line-height: 1.7;
  margin: 0 0 1rem;
}
/* Emphasis line — ALL CAPS, bold, 12pt TNR */
.hero-emphasis {
  font-size: 12pt;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
}
.hero-badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* --- PANEL / CARD --- */
.panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.panel h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--green);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.panel--info {
  border-left: 4px solid var(--green);
}
.panel--accent {
  border-left: 4px solid var(--red);
}

/* --- PROVINCE STATS BAR --- */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-item {
  flex: 1;
  min-width: 120px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
}
.stat-item .stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1.15;
}
.stat-item .stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --- DISTRICT CARDS GRID (on province page) --- */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.district-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.district-card:hover {
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
.district-card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.district-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.district-card .district-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.district-card .district-count {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  margin-top: 0.6rem;
}

/* --- LOCATION CARDS GRID (on district page) --- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.location-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.location-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.location-card:hover {
  border-color: var(--green);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
.location-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.location-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.location-card .card-content h3 {
  margin-bottom: 0;
}
.meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* --- BADGES --- */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border: 1px solid;
  border-radius: 999px;
}
.badge-price {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
}
.badge-member {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-soft);
}
.badge-updated {
  color: var(--text-muted);
  border-color: var(--border-strong);
}
.location-card .badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.location-card .location-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.25rem;
  flex: 1;
}
.location-card .location-footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* --- CONTENT PAGES: SECTIONS --- */
.section {
  margin-bottom: 2.5rem;
}
.main-content h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--ink);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--gold);
}
.main-content h2 {
  font-size: 1.5rem;
  color: var(--green);
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.main-content h3 {
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.main-content p {
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 720px;
}
.main-content ul,
.main-content ol {
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.main-content li {
  margin-bottom: 0.5rem;
}
.main-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-style: italic;
  max-width: 680px;
}
.data-panel {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.tag--green {
  background: var(--green-soft);
  color: var(--green);
}
.tag--orange {
  background: #fbf3d9;
  color: var(--gold-deep);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.benefit-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.benefit-item__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}
.benefit-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.benefit-item__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.fee-highlight {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  padding: 1.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  max-width: 420px;
  margin: 1.5rem 0;
}
.contact-block {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  max-width: 420px;
}
.contact-block__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.contact-block__detail {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.contact-block a {
  color: var(--green);
  text-decoration: none;
}
.contact-block a:hover {
  text-decoration: underline;
}
/* .mono now styles metadata labels (serif, muted) */
.mono {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- SECTION HEADERS (index, district pages) --- */
.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.section-header h2 {
  font-size: 1.75rem;
}
.section-subtitle {
  color: var(--text-muted);
  font-style: italic;
  max-width: 560px;
  margin: 0.5rem auto 0;
}

/* --- MAP SECTIONS --- */
.map-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}
.map-container {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.map-container svg,
.map-container object {
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
  margin: 0 auto;
}
.province-labels text {
  pointer-events: bounding-box;
}
/* District labels: free-floating text on each district, NOT clickable.
   Per client (Michael Laban, 2026-08-14): "district words are just words,
   no links to anything" — only the province labels above are links. The
   province shapes and province labels remain clickable underneath. */
.district-labels text {
  pointer-events: none !important;
}
.district-label {
  font-family: var(--font-body);
  font-size: 6.5px;
  fill: #4a4a4a;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.map-container .map-caption {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.map-container .map-fallback {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 2rem 1rem;
}
.map-container .map-fallback a {
  color: var(--green);
}
.province-map {
  max-width: 100%;
  height: auto;
}

/* --- SEARCH / FILTER INPUT --- */
/* Removed (client feedback: no search box on homepage) */

/* --- PROVINCE HEADER --- */
.province-header {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
}
.province-header h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--ink);
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}
/* The single sanctioned ALL-CAPS accent (client: only for specific
   one/two-word labels — the province sector ID) */
.province-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.province-stats {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --- DISTRICT HEADER --- */
.district-header {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem;
}
.district-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}
.district-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

/* --- PROVINCE INDEX (homepage flat list: province → district → places) --- */
/* Client spec (2026-08-02): all 10 provinces visible on the front page,
   province headings in Cooper green 12pt, district headings in Cooper
   yellow 12pt, every name an internal hyperlink. No boxes/cards. */
.province-index-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}
.province-index {
  list-style: none;
  padding: 0;
  margin: 0;
}
.index-block {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.index-block:last-child {
  border-bottom: none;
}
/* Province heading — Cooper (display serif), green, 12pt (client spec) */
.index-province {
  font-family: var(--font-display);
  font-size: 12pt;
  font-weight: 700;
  line-height: 1.3;
  color: var(--green);
  margin: 0 0 0.5rem;
}
.index-province a {
  color: inherit;
  text-decoration: none;
}
.index-province a:hover,
.index-province a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.index-province a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
/* District heading — Cooper (display serif), yellow, 12pt (client spec).
   Flag yellow #fcd116 fails WCAG AA as text on white, so use the
   darkened text-safe gold (--gold-deep) — still reads as yellow. */
.index-district {
  font-family: var(--font-display);
  font-size: 12pt;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gold-deep);
  margin: 0.75rem 0 0.25rem;
}
.index-district a {
  color: inherit;
  text-decoration: none;
}
.index-district a:hover,
.index-district a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.index-district a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.index-districts {
  list-style: none;
  padding: 0;
  margin: 0;
}
.index-district-block {
  margin: 0;
  break-inside: avoid;
}
/* Places under a district (or directly under Byo/Harare) */
.index-places {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}
.index-places li {
  margin: 0.15rem 0;
}
.index-places a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.index-places a:hover {
  color: var(--green-deep);
}
.index-places a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* --- BACK TO TOP (homepage) --- */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--green);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: var(--green-deep);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .back-to-top {
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    padding: 0.5rem 0.85rem;
  }
}

/* --- HOMEPAGE EXPLAINER & CTA --- */
.about-explain {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.about-explain p {
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.cta-section {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 2.5rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-section p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 1.25rem;
}
.cta-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cta-link:hover {
  color: var(--green-deep);
}
.cta-button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--green);
}
.cta-button:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
.cta-button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  text-decoration: none;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--green);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.btn:hover {
  background: var(--green-soft);
}
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

/* --- FOOTERS --- */
.site-footer, .page-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 1.75rem 1rem;
  margin-top: auto;
}
.footer-inner, .footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-footer p, .page-footer span, .footer-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-meta {
  margin-top: 0.25rem;
}
.site-footer a, .page-footer a {
  color: var(--green);
  text-decoration: none;
}
.site-footer a:hover, .page-footer a:hover {
  text-decoration: underline;
}

/* --- SVG MAP REGIONS (inline schematics) --- */
.map-region:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.province-shape {
  fill: var(--green-soft);
  stroke: var(--border-strong);
  stroke-width: 1;
}
.province-label {
  fill: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 10px;
  text-anchor: middle;
  pointer-events: none;
  dominant-baseline: central;
}

/* --- RESPONSIVE --- */
@media (max-width: 767px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .top-nav nav a, .nav-links a {
    font-size: 0.8125rem;
    margin-left: 0.75rem;
  }
  /* Homepage header: nav links wrap to a new row on small screens */
  .home-header .main-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0.5rem 1rem;
    row-gap: 0.375rem;
  }
  .home-header .nav-links {
    order: 2;
    width: 100%;
    justify-content: flex-end;
  }
  /* Hero: collapse to single column on mobile, hide the empty 1/3 spacer */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-spacer {
    display: none;
  }
  .stat-item { min-width: 100px; }
  .district-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .district-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
  }
}

/* --- PRINT --- */
@media print {
  .top-nav, .site-header, .site-footer, .page-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .panel, .location-card, .district-card, .stats-bar, .map-container, .benefit-item {
    border-color: #ccc;
    background: #fff;
  }
  .stat-item { background: #fff; }
  .stat-item .stat-value { color: #000; }
  .badge-price { color: #000; border-color: #000; }
  a { color: #000; }
}
