/* =====================================================================
   GramMitra Connect — public site design system (UI refresh).

   Direction: light-first, warm rural-marketplace visual language.
   Cream/sand surfaces, a deep forest-green brand colour, an earthy
   orange accent for primary actions, and a muted teal/indigo pair for
   category identity. Subtle borders + soft shadows replace the previous
   thick painted-board outlines. One intentional dark section (footer)
   provides contrast instead of a site-wide dark theme.

   System font stack only — no webfont download — so the page stays
   light for mobile / low-bandwidth rural connections. WhatsApp green is
   reserved exclusively for real WhatsApp actions.
   ===================================================================== */

:root {
  /* ---- Surfaces ---- */
  --color-bg: #fbf6ea;
  --color-bg-alt: #e9e4cd;
  --color-surface: #ffffff;
  --color-surface-sunken: #efe9d6;
  --color-border: #e3d6b8;
  --color-border-strong: #d3c29a;

  /* ---- Text ---- */
  --color-ink: #1f2a22;
  --color-ink-soft: #55594c;
  --color-ink-faint: #666452;
  --color-ink-inverse: #f5f1e4;
  --color-ink-inverse-soft: #c9cbb9;

  /* ---- Brand ---- */
  --color-forest: #1e5b3f;
  --color-forest-dark: #123b29;
  --color-forest-tint: #e4efe6;

  /* ---- Accent (principal CTA colour) ---- */
  --color-accent: #b25417;
  --color-accent-dark: #8a4110;
  --color-accent-tint: #f3e0cb;
  --color-on-accent: #ffffff;

  /* ---- Category colours ---- */
  --color-terracotta: #b25417;
  --color-terracotta-dark: #8a4110;
  --color-terracotta-tint: #f3e0cb;
  --color-indigo: #3a5b7d;
  --color-indigo-dark: #24405b;
  --color-indigo-tint: #e5ecf2;
  --color-teal: #1e7a72;
  --color-teal-dark: #145550;
  --color-teal-tint: #e0efed;

  /* ---- Utility colours ---- */
  --color-marigold: #b9812a;
  --color-marigold-tint: #f6e6c8;
  --color-focus: #1257de;
  --color-success: #1e7a46;

  /* ---- WhatsApp (reserved for genuine WhatsApp actions only) ---- */
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1a9e4c;
  --color-whatsapp-ink: #0b3d1f;

  /* ---- Intentional dark section (footer) ---- */
  --color-surface-dark: #16281f;
  --color-surface-dark-raised: #1e3327;
  --color-border-dark: #2e4536;

  /* ---- Shape ---- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ---- Elevation (subtle, layered with borders — no hard offsets) ---- */
  --shadow-xs: 0 1px 2px rgba(31, 42, 34, 0.06);
  --shadow-sm: 0 2px 6px rgba(31, 42, 34, 0.08);
  --shadow-md: 0 8px 20px -6px rgba(31, 42, 34, 0.16);
  --shadow-lg: 0 20px 40px -16px rgba(31, 42, 34, 0.22);

  /* ---- Spacing scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 56px;
  --space-10: 72px;
  --space-11: 96px;

  /* ---- Typography scale ---- */
  --font-display: ui-rounded, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* System serif stack (no web-font download) for the editorial-style big
     headlines only — mirrors the approved reference's serif/italic display
     type without adding a remote font dependency. */
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif", serif;

  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(1.6rem, 3.2vw, 2rem);
  --text-3xl: clamp(2rem, 4.4vw, 2.6rem);
  --text-4xl: clamp(2.3rem, 5.6vw, 3.15rem);

  --leading-tight: 1.15;
  --leading-snug: 1.32;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* ---- Layout ---- */
  --container: 1200px;
  --prose-width: 68ch;
  --header-h: 72px;
  --header-h-mobile: 64px;

  /* ---- Motion ---- */
  --transition-fast: 120ms ease;
  --transition: 200ms ease;

  /* Deliberately no @media (prefers-color-scheme: dark) override: the
     photo-led editorial direction (real photography, warm duotone tint,
     earthy palette) is built around light, sunlit surfaces and doesn't
     translate to a dark theme without looking muddy — confirmed by an
     actual dark-mode browser screenshot showing exactly that. Every
     visitor now sees the one designed light palette regardless of their
     OS/browser theme preference, same as most photo-led brand sites. */
  color-scheme: light;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; }

/* ---- Focus & motion ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 12px 18px;
  font-weight: 700;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Typography ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent-dark);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Editorial serif display type, used sparingly on a few big headlines only —
   system stack, no web-font download. `em` inside gets the italic variant,
   matching the mixed roman/italic headline device from the approved
   reference. */
.font-serif { font-family: var(--font-serif); font-weight: 400; }
.font-serif em { font-style: italic; }

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-3xl);
  line-height: var(--leading-tight);
  color: var(--color-ink);
}
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  color: var(--color-ink);
}
.lede {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--color-ink-soft);
  max-width: 62ch;
}
.caption {
  font-size: var(--text-xs);
  color: var(--color-ink-faint);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  min-height: 48px;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }

.btn-outline {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-border-strong);
}
.btn-outline:hover { border-color: var(--color-accent); background: var(--color-accent-tint); }

.btn-quiet {
  background: transparent;
  color: var(--color-ink);
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
}
.btn-quiet:hover { color: var(--color-accent-dark); }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-whatsapp-ink);
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); box-shadow: var(--shadow-md); }

.btn-sm { padding: 11px 16px; font-size: var(--text-sm); min-height: 44px; }
.btn-block { width: 100%; }

.icon-wa { width: 20px; height: 20px; flex: none; }

/* ---- Header ---- */
.site-header {
  /* No transform/filter/backdrop-filter here — any of those would create a
     containing block for descendants, breaking the mobile nav's
     `position: fixed` (it would anchor to this header box instead of the
     viewport). Keep this element free of those properties. */
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h-mobile);
}
@media (min-width: 1040px) {
  .site-header .container { min-height: var(--header-h); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-ink);
  flex: none;
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.bm-badge { fill: var(--color-forest); }
.bm-route { stroke: var(--color-ink-inverse); }
.bm-dot-a, .bm-dot-c { fill: var(--color-accent); }
.bm-dot-b { fill: var(--color-marigold); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  flex: none;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
  position: relative;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-list { display: flex; align-items: center; gap: var(--space-6); font-weight: 600; font-size: 0.96rem; }
.nav-list a {
  text-decoration: none;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  color: var(--color-ink);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.nav-list a:hover { color: var(--color-accent-dark); }
.nav-list a[aria-current="page"] { border-bottom-color: var(--color-accent); color: var(--color-accent-dark); }
.nav-cta { display: flex; align-items: center; }

@media (max-width: 1039px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h-mobile) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-2);
    background: var(--color-bg);
    padding: var(--space-5) 20px var(--space-8);
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }
  .primary-nav[data-open="false"] { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    width: 100%;
    padding: 14px 6px;
    font-size: 1.05rem;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .nav-list a:not(:first-child) { border-top: 1px solid var(--color-border); }
  /* Active state gets its own left-accent + tint instead of sharing the
     row-divider border — on the desktop horizontal layout a bottom-border
     reads as an underline, but stacked vertically with a 2px gap it read as
     a strike-through the top of the next link. */
  .nav-list a[aria-current="page"] {
    border-bottom-color: transparent;
    border-left-color: var(--color-accent);
    background: var(--color-surface-sunken);
    padding-left: 3px;
  }
  .nav-cta { margin-top: var(--space-4); }
  .nav-cta .btn { width: 100%; }
}
@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .primary-nav[data-open="false"] { display: flex; }
}

/* ---- Surface panel (used sparingly, not as the default for every block) ---- */
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---- Hero ---- */
.hero { padding: var(--space-8) 0 var(--space-9); }
.hero-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-9); }
}
.hero-content { display: grid; gap: var(--space-5); }
.hero-content h1 { margin-top: var(--space-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-2); }
.hero-note {
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 52ch;
}
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-marigold); margin-top: 6px; flex: none; }

.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
  padding: 0;
}
.trust-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-soft);
  background: var(--color-surface-sunken);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
}
.trust-points svg { width: 16px; height: 16px; color: var(--color-forest); flex: none; }

.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-art img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 32px rgba(31, 42, 34, 0.28));
}
@media (max-width: 959px) {
  .hero-art { order: 2; margin: 0 auto; }
  .hero-content { order: 1; }
}

/* ---- Angled photo corner (signature motif from the approved reference) ----
   A diagonal notch cut from the top-right corner, used consistently across
   every real photo on the page. Cards with overflow:hidden + a white/cream
   background show through the notch, which is the intended "torn corner"
   look rather than a bug. */
.photo-clip { clip-path: polygon(0 0, 80% 0, 100% 13%, 100% 100%, 0 100%); }
.photo-clip-wide { clip-path: polygon(0 0, 93% 0, 100% 28%, 100% 100%, 0 100%); }

/* Warm, semi-transparent duotone wash over every photo, so images from
   different sources read as one colour system — fades on hover to reveal
   the true photo. */
.cat-photo, .hero-art, .route-photo, .coverage-art, .provider-card .card-photo {
  position: relative;
  overflow: hidden;
}
.cat-photo::after, .hero-art::after, .route-photo::after, .coverage-art::after, .provider-card .card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(30, 91, 63, 0.22) 0%, rgba(178, 84, 23, 0.12) 100%);
  clip-path: polygon(0 0, 80% 0, 100% 13%, 100% 100%, 0 100%);
  mix-blend-mode: multiply;
  opacity: 0.8;
  pointer-events: none;
  transition: opacity var(--transition);
}
.coverage-art::after { clip-path: polygon(0 0, 93% 0, 100% 28%, 100% 100%, 0 100%); }
.cat-card:hover .cat-photo::after { opacity: 0.35; }

/* Gentle zoom on the photo itself when its card/link is hovered or focused. */
.cat-photo img, .provider-card .card-photo img {
  transition: transform var(--transition);
}
.cat-card:hover .cat-photo img, .cat-card:focus-visible .cat-photo img { transform: scale(1.06); }

/* ---- Honest WhatsApp-status strip (shown once, directly under the hero) ---- */
.status-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: var(--space-3) 0;
}
.status-strip .hero-note { max-width: none; justify-content: center; margin: 0 auto; }

/* ---- Section rhythm ---- */
.section { padding: var(--space-9) 0; }
.section-head { max-width: 68ch; margin-bottom: var(--space-7); display: grid; gap: var(--space-3); }
.section-tint { background: var(--color-bg-alt); }
.section-dark {
  background: var(--color-surface-dark);
  color: var(--color-ink-inverse);
}
.section-dark .eyebrow { color: var(--color-marigold); }
.section-dark h2, .section-dark h3 { color: var(--color-ink-inverse); }
.section-dark .lede { color: var(--color-ink-inverse-soft); }

/* ---- Category colour mapping ---- */
.cat-terracotta { --cat: var(--color-terracotta); --cat-dark: var(--color-terracotta-dark); --cat-tint: var(--color-terracotta-tint); }
.cat-indigo { --cat: var(--color-indigo); --cat-dark: var(--color-indigo-dark); --cat-tint: var(--color-indigo-tint); }
.cat-teal { --cat: var(--color-teal); --cat-dark: var(--color-teal-dark); --cat-tint: var(--color-teal-tint); }

/* ---- Category overview cards (home) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  overflow: hidden;
}
.cat-card:hover, .cat-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-photo { aspect-ratio: 4 / 3; border-bottom: 3px solid var(--cat); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }
.cat-icon {
  width: 52px;
  height: 52px;
  padding: 11px;
  background: var(--cat-tint);
  color: var(--cat-dark);
  border-radius: var(--radius-md);
}
.cat-card h3 { font-size: var(--text-lg); }
.cat-card p { color: var(--color-ink-soft); font-size: var(--text-sm); }
.cat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
}
.cat-count { color: var(--color-ink-faint); font-weight: 600; }
.cat-link { color: var(--cat-dark); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.cat-card:hover .cat-link, .cat-card:focus-visible .cat-link { text-decoration: underline; }

/* ---- Services directory ---- */
.quick-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-ink);
}
.quick-nav a:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.quick-nav .swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--color-accent)); flex: none; }

.category-block { margin-bottom: var(--space-10); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.category-block:last-child { margin-bottom: 0; }
.category-block-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.category-block-head .cat-icon { width: 46px; height: 46px; padding: 9px; flex: none; }
.category-block-head h2 { font-size: var(--text-2xl); }
.category-block-head .lede { margin-top: 4px; font-size: var(--text-base); }

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.service-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.service-card .cat-icon { width: 44px; height: 44px; padding: 9px; }
.service-card h3 { margin-top: 2px; }
.service-card > p { color: var(--color-ink-soft); font-size: var(--text-sm); }
.example-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.example-tags li {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--cat-dark);
  background: var(--cat-tint);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
}
.service-card .card-actions { margin-top: auto; padding-top: var(--space-2); }

/* ---- How it works ---- */
.route-layout { display: grid; gap: var(--space-7); }
@media (min-width: 860px) { .route-layout { grid-template-columns: 1fr 300px; align-items: start; } }
.route-photo { display: none; }
@media (min-width: 860px) {
  .route-photo { display: block; position: sticky; top: calc(var(--header-h) + var(--space-5)); }
  .route-photo img { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 20px rgba(31, 42, 34, 0.22)); }
}
.route { display: grid; gap: 0; counter-reset: step; }
.route-step { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); position: relative; padding-bottom: var(--space-7); }
.route-step:last-child { padding-bottom: 0; }
.route-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-forest);
  color: var(--color-ink-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}
.route-step svg { width: 20px; height: 20px; }
.route-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -4px;
  width: 0;
  border-left: 2px dashed var(--color-border-strong);
}
.route-body { padding-top: 8px; }
.route-body h3 { margin-bottom: 4px; }
.route-body p { color: var(--color-ink-soft); font-size: var(--text-sm); }

@media (min-width: 720px) {
  .route { grid-template-columns: repeat(3, 1fr); gap: var(--space-6) var(--space-5); }
  .route-step { grid-template-columns: 1fr; padding-bottom: 0; }
  .route-step::before { display: none; }
  .route-marker { margin-bottom: var(--space-3); }
}

/* ---- Benefits ---- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}
.benefit-card {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) 0 0;
  border-top: 2px solid var(--color-border-strong);
}
.benefit-card .icon-chip {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-forest-dark);
  flex: none;
}
.benefit-card h3 { font-size: var(--text-base); margin-bottom: 2px; }
.benefit-card p { color: var(--color-ink-soft); font-size: var(--text-sm); }

/* ---- Coverage ---- */
.coverage-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 860px) { .coverage-grid { grid-template-columns: 1.1fr 0.9fr; } }
.coverage-art { display: flex; justify-content: center; }
.coverage-art img { width: 100%; height: auto; display: block; }

/* ---- Notices ---- */
.notice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  background: var(--color-surface-sunken);
}
.notice svg { width: 20px; height: 20px; color: var(--color-forest); flex: none; margin-top: 2px; }
.notice strong { color: var(--color-ink); }
.notice-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
}
.notice-inline .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-marigold); flex: none; }

/* ---- Photo credits (required by the CC BY / CC BY-SA licenses on the
   home-page photography) ---- */
.photo-credits { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--color-ink-inverse-soft); }
.photo-credits a { color: inherit; text-decoration: underline; }

/* ---- Two column feature ---- */
.split { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr 0.9fr; } }

/* ---- Provider section ---- */
.provider-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-5) 0 var(--space-6); }
.provider-tags li {
  padding: 9px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-weight: 600;
  font-size: var(--text-sm);
}
.provider-card { padding: var(--space-6); overflow: hidden; }
.provider-card .card-photo {
  margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-4);
  aspect-ratio: 16 / 9;
}
.provider-card .card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.provider-card .icon-chip {
  width: 48px; height: 48px; padding: 10px;
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  border-radius: var(--radius-md);
}
.provider-card h3 { margin-top: var(--space-3); }
.provider-card p { color: var(--color-ink-soft); margin-top: var(--space-2); font-size: var(--text-sm); }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-surface-dark);
  color: var(--color-ink-inverse);
  padding: var(--space-9) 0 var(--space-6);
}
.site-footer a { text-decoration: none; color: var(--color-ink-inverse-soft); }
.site-footer a:hover { color: var(--color-ink-inverse); text-decoration: underline; }
.footer-top { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: space-between; padding-bottom: var(--space-7); border-bottom: 1px solid var(--color-border-dark); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--color-ink-inverse); max-width: 320px; }
.footer-brand p { font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); color: var(--color-ink-inverse-soft); margin-top: var(--space-2); }
.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--color-border-dark);
}
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-inverse-soft);
  margin-bottom: var(--space-3);
}
.footer-grid ul { display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.footer-disclosure { padding-top: var(--space-6); font-size: var(--text-sm); color: var(--color-ink-inverse-soft); max-width: 82ch; line-height: var(--leading-relaxed); }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-dark);
  font-size: var(--text-xs);
  color: var(--color-ink-inverse-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---- Prose / legal pages ---- */
.prose { max-width: var(--prose-width); display: grid; gap: var(--space-5); }
.prose h2 { margin-top: var(--space-6); font-size: var(--text-2xl); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.prose h3 { margin-top: var(--space-3); font-size: var(--text-md); }
.prose p { line-height: var(--leading-relaxed); }
.prose ul { padding-left: 1.3em; list-style: disc; display: grid; gap: var(--space-2); }
.prose ol { padding-left: 1.3em; list-style: decimal; display: grid; gap: var(--space-2); }
.prose a { color: var(--color-forest); text-decoration: underline; text-underline-offset: 2px; }

.about-point {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-top: var(--space-8);
}
.about-point:first-child { margin-top: var(--space-6); }
.about-point .icon-chip {
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: var(--radius-md);
  background: var(--color-forest-tint);
  color: var(--color-forest-dark);
  flex: none;
}
.about-point h2 { margin-top: 4px; }
.about-point .provider-tags,
.prose .provider-tags {
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-4);
}

.legal-layout { display: grid; gap: var(--space-8); }
@media (min-width: 960px) { .legal-layout { grid-template-columns: 240px 1fr; align-items: start; } }
.toc {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  position: static;
}
@media (min-width: 960px) { .toc { position: sticky; top: calc(var(--header-h) + var(--space-4)); } }
.toc h2 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.toc ol { list-style: decimal; padding-left: 1.1em; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.toc a { color: var(--color-ink-soft); text-decoration: none; }
.toc a:hover { color: var(--color-accent-dark); text-decoration: underline; }
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-7);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-forest);
  text-decoration: none;
}
.back-to-top:hover { text-decoration: underline; }

.page-header { padding: var(--space-8) 0 var(--space-4); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-5); margin: var(--space-6) 0; }
.contact-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.contact-card h2 { font-size: var(--text-lg); margin-bottom: var(--space-2); margin-top: var(--space-3); }
.contact-card p { color: var(--color-ink-soft); margin-bottom: var(--space-3); font-size: var(--text-sm); }
.contact-card .icon-chip { width: 44px; height: 44px; padding: 9px; border-radius: var(--radius-md); }

/* ---- 404 ---- */
.error-page { min-height: 56vh; display: flex; align-items: center; justify-content: center; padding: var(--space-9) 0; }
.error-board { text-align: center; display: grid; gap: var(--space-4); justify-items: center; max-width: 480px; }
.error-art { width: 140px; height: auto; margin-bottom: var(--space-2); }
.error-code {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--color-accent-dark);
  text-transform: uppercase;
}

/* ---- Utility ---- */
.stack { display: grid; gap: var(--space-3); }
.mt-lg { margin-top: var(--space-7); }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .skip-link, .nav-toggle, .toc, .back-to-top, .hero-art, .coverage-art { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
  a { color: #000; text-decoration: underline; }
  .legal-layout { display: block; }
}
