/* =========================================================================
   Pets Grants Finder — Design System & Stylesheet
   Mobile-first, no build step, no framework, no external fonts — every rule
   below is written to run unmodified on shared hosting while still feeling
   like a premium, funded software product. Organized as a token layer
   followed by components, written mobile-first (base rules target small
   phones; min-width media queries progressively enhance for tablet/desktop).
   ========================================================================= */

/* ---------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------- */
:root {
  /* Color — care + trust + technology, restrained palette */
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-sunken: #f1f3ee;
  --surface-elevated: #ffffff;
  --border: #e2e6df;
  --border-strong: #d1d8cc;
  --text: #16211a;
  --text-muted: #5a6a5e;
  --text-faint: #8a978c;

  --primary: #1b6e45;
  --primary-hover: #155537;
  --primary-active: #10402a;
  --primary-tint: #e9f4ee;
  --primary-tint-strong: #d5ebdd;
  --on-primary: #ffffff;

  --accent: #b6551d;
  --accent-tint: #fbeee2;

  --success-bg: #e6f6ec; --success-fg: #147a3f;
  --warning-bg: #fff2df; --warning-fg: #9a5b00;
  --info-bg: #e8f0fe;    --info-fg: #1a56b0;
  --violet-bg: #f1eafe;  --violet-fg: #5b2fae;
  --neutral-bg: #eef0ec; --neutral-fg: #5a6a5e;
  --danger-bg: #fdeceb;  --danger-fg: #a3352f;
  --danger: #b3261e;
  --danger-hover: #921f19;

  --focus-ring: #1b6e45;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadow — soft, warm-tinted, restrained */
  --shadow-xs: 0 1px 2px rgba(17, 33, 24, .06);
  --shadow-sm: 0 2px 8px rgba(17, 33, 24, .07);
  --shadow-md: 0 8px 24px rgba(17, 33, 24, .10);
  --shadow-lg: 0 20px 48px rgba(17, 33, 24, .16);

  /* Type scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, Helvetica, Arial, sans-serif;
  --text-display: clamp(1.9rem, 1.55rem + 1.6vw, 2.75rem);
  --text-h1: clamp(1.5rem, 1.32rem + .8vw, 1.9rem);
  --text-h2: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  --text-h3: 1.05rem;
  --text-body: 1rem;
  --text-body-sm: .9375rem;
  --text-small: .8125rem;
  --text-micro: .6875rem;

  /* Motion */
  --transition-fast: 120ms ease;
  --transition-base: 180ms cubic-bezier(.2, .8, .2, 1);

  /* Layout */
  --header-h: 64px;
  --nav-h: 48px;
  --container-max: 1240px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  font-size: 16px;
}

@media (min-width: 700px) {
  :root { --header-h: 76px; }
}

/* ---------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { line-height: 1.22; margin: 0; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p { margin: 0 0 var(--space-3); }
a { color: var(--primary-hover); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 700px) { .container { padding: 0 var(--space-5); } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link {
  position: absolute; left: var(--space-3); top: -60px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: var(--text-small); transition: top var(--transition-base);
}
.skip-link:focus { top: var(--space-3); text-decoration: none; }

/* Global focus visibility — component-specific rules below may refine it. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Utility */
.text-muted { color: var(--text-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-micro); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}

/* ---------------------------------------------------------------------
   3. Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  font-size: var(--text-body-sm); font-weight: 700; font-family: inherit;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface-sunken); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-sunken); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; border-radius: var(--radius-md); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--text-small); border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: transparent; color: var(--text); cursor: pointer; flex-shrink: 0;
  transition: background var(--transition-fast);
}
.btn-icon:hover { background: var(--surface-sunken); }
.btn-icon svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------------
   4. Forms
   --------------------------------------------------------------------- */
label, .field-label { font-size: var(--text-small); font-weight: 700; color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field .field-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; font-size: var(--text-micro); }
.field-help { font-size: var(--text-small); color: var(--text-faint); }
.field-error { font-size: var(--text-small); color: var(--danger); font-weight: 600; }

input[type="text"], input[type="search"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="url"], input[type="tel"],
select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-body-sm);
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
textarea { min-height: 96px; padding-top: 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 110, 69, .16);
}
select { appearance: none; -webkit-appearance: none; background: var(--surface)
    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" stroke="%235a6a5e" stroke-width="1.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') no-repeat right 14px center;
  padding-right: 36px;
}
input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary); margin: 0;
}
.check-row { display: flex; align-items: center; gap: 10px; min-height: 34px; cursor: pointer; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: var(--text-small); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; padding: 0; margin-bottom: var(--space-2); }

/* ---------------------------------------------------------------------
   5. Badges / pills / tags
   --------------------------------------------------------------------- */
.tag {
  display: inline-block; background: var(--surface-sunken); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 2px 10px; font-size: var(--text-micro);
  font-weight: 600; color: var(--text-muted); line-height: 1.6;
}
.tag-demo { background: #fff6e0; border-color: #f0d78c; color: #8a6a00; font-weight: 700; }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }

.status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: var(--radius-pill); font-size: var(--text-micro); font-weight: 800; white-space: nowrap; letter-spacing: .01em; }
.status-open { background: var(--success-bg); color: var(--success-fg); }
.status-closing-soon { background: var(--warning-bg); color: var(--warning-fg); }
.status-rolling { background: var(--info-bg); color: var(--info-fg); }
.status-upcoming { background: var(--violet-bg); color: var(--violet-fg); }
.status-closed, .status-expired, .status-suspended { background: var(--neutral-bg); color: var(--neutral-fg); }
.status-verification-needed { background: var(--danger-bg); color: var(--danger-fg); }
.status-default { background: var(--neutral-bg); color: var(--neutral-fg); }

.badge-flag { font-size: var(--text-micro); font-weight: 800; color: #fff; background: var(--accent); border-radius: 6px; padding: 2px 7px; letter-spacing: .01em; }
.badge-flag--updated { background: #1a56b0; }
.verified-badge, .verified-mini { color: var(--primary-hover); font-size: var(--text-small); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.verified-mini { font-size: var(--text-micro); }
.verified-mini svg, .verified-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------------------------------------------------------------------
   6. Surfaces / cards
   --------------------------------------------------------------------- */
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

/* ---------------------------------------------------------------------
   7. Header & primary navigation
   --------------------------------------------------------------------- */
.site-header {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 60;
}
.site-header__bar {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: var(--space-3);
  padding-top: 10px; padding-bottom: 10px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--primary-active); flex-shrink: 0; }
.logo__mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; }
.logo__mark svg { width: 34px; height: 34px; fill: var(--accent); stroke: var(--primary-active); stroke-width: 2.2; }
.logo__wordmark { font-size: 1.08rem; font-weight: 850; letter-spacing: -.01em; line-height: 1.1; }
.logo__tagline { display: none; }

.site-nav { display: none; }
.header-cta { display: none; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.header-search-toggle { display: inline-flex; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; flex-shrink: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
body.mobile-nav-open .nav-toggle .icon-open { display: none; }
body.mobile-nav-open .nav-toggle .icon-close { display: block; }

/* Header search (desktop inline, hidden on phones in favor of the hero) */
.header-search { position: relative; display: none; }
.header-search input { width: 240px; height: 42px; padding: 0 14px 0 38px; border-radius: 10px; }
.header-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.header-search__icon svg { width: 17px; height: 17px; }

/* Mobile full-screen nav sheet */
.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  visibility: hidden;
}
/* Works with zero JavaScript: the header toggle is a real link to
   #mobileNav (:target), so the sheet opens even with JS disabled. When JS
   runs, it intercepts the click and drives the same look via the
   .mobile-nav-open body class instead (see public/assets/js/site.js), which
   keeps the URL hash clean during normal use. */
body.mobile-nav-open .mobile-nav, .mobile-nav:target { transform: translateX(0); visibility: visible; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); border-bottom: 1px solid var(--border); min-height: var(--header-h); }
.mobile-nav__body { flex: 1; overflow-y: auto; padding: var(--space-5) var(--space-4) var(--space-4); }
.mobile-nav__search { margin-bottom: var(--space-5); }
.mobile-nav__search input { height: 50px; padding-left: 40px; border-radius: var(--radius-md); }
.mobile-nav__search-wrap { position: relative; }
.mobile-nav__search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-faint); }
.mobile-nav__links { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--space-5); }
.mobile-nav__links a {
  display: flex; align-items: center; min-height: 56px; padding: 0 var(--space-2);
  font-size: 1.1rem; font-weight: 750; color: var(--text); border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
}
.mobile-nav__links a:hover, .mobile-nav__links a:focus-visible { background: var(--surface-sunken); text-decoration: none; }
.mobile-nav__cta { margin-bottom: var(--space-5); }
.mobile-nav__foot { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.mobile-nav__foot a { font-size: var(--text-body-sm); color: var(--text-muted); min-height: 40px; display: flex; align-items: center; }
body.mobile-nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .logo__tagline { display: block; font-weight: 500; font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
  .site-nav {
    display: flex; align-items: center; gap: 2px; margin-left: var(--space-5);
  }
  .site-nav a {
    display: flex; align-items: center; height: 40px; padding: 0 14px; border-radius: var(--radius-sm);
    font-size: var(--text-body-sm); font-weight: 700; color: var(--text);
  }
  .site-nav a:hover, .site-nav a.is-active { background: var(--surface-sunken); color: var(--primary-active); text-decoration: none; }
  .header-cta { display: inline-flex; }
  .header-search { display: block; }
  .nav-toggle, .mobile-nav { display: none; }
}
@media (min-width: 700px) and (max-width: 899px) {
  .header-search { display: block; }
  .header-search input { width: 190px; }
}

/* ---------------------------------------------------------------------
   8. Hero + search
   --------------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, #f0f6f2 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: var(--space-6) 0 var(--space-6);
}
.hero__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.hero__inner .eyebrow { margin-bottom: var(--space-3); }
.hero__title {
  font-size: var(--text-display); font-weight: 850; letter-spacing: -.02em;
  color: #102c1e; margin: 0 0 var(--space-3);
}
.hero__subtitle { color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; margin: 0 0 var(--space-5); max-width: 52ch; margin-left: auto; margin-right: auto; }

.hero-search {
  position: relative; display: flex; align-items: center; gap: var(--space-2);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 6px 6px 6px 16px; box-shadow: var(--shadow-md);
}
.hero-search__icon { flex-shrink: 0; color: var(--text-faint); display: flex; }
.hero-search__icon svg { width: 20px; height: 20px; }
.hero-search input { flex: 1; border: 0; outline: none; background: transparent; font-size: 1rem; padding: 13px 4px; min-width: 0; }
.hero-search input:focus { box-shadow: none; }
.hero-search__submit { flex-shrink: 0; height: 46px; padding: 0 20px; border-radius: 10px; }
.hero-search__submit .hide-mobile-label { display: none; }
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,110,69,.16), var(--shadow-md); }

.hero-suggestions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; margin-top: var(--space-4); }
.hero-suggestions span { font-size: var(--text-small); color: var(--text-faint); align-self: center; margin-right: 2px; }
.suggestion-chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border);
  font-size: var(--text-small); font-weight: 600; color: var(--text-muted);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.suggestion-chip:hover { border-color: var(--primary); color: var(--primary-hover); background: var(--primary-tint); text-decoration: none; }

@media (min-width: 700px) {
  .hero { padding: var(--space-8) 0 var(--space-7); }
  .hero-search__submit span.hide-mobile-label { display: inline; }
}

/* ---------------------------------------------------------------------
   9. Ad slot
   --------------------------------------------------------------------- */
/* Deliberately no min-height/background/border chrome here by default —
   "No ad → no giant empty rectangle" (spec). No JavaScript ever touches
   Google's ad markup; both rules below only react to the data-ad-status
   attribute Google's own adsbygoogle.js already sets on the <ins> when it
   has nothing to fill it with — this is Google's own documented pattern
   for a graceful zero-size collapse, not custom DOM manipulation.
   Two layers, so there is no gap in browser support:
   - Layer one: a plain attribute-selector rule collapses the <ins> itself
     in every browser (this is belt-and-suspenders — adsbygoogle.js
     normally applies an equivalent inline style on its own).
   - Layer two: the :has() rule (supported in all major browsers since
     2023/24 — Chrome/Edge 105+, Safari 15.4+, Firefox 121+) goes one step
     further and collapses the whole .ad-slot, including the small label
     and its margin, so nothing is left behind at all. In the remaining
     older browsers without :has(), layer one still guarantees no empty
     box — the only visible remnant is the small uppercase label with a
     zero-height ad beneath it, never a large blank rectangle.
   Neither rule reserves a min-height for a not-yet-loaded ad, so a filled
   ad still causes a one-time size change when it arrives — that's an
   unavoidable tradeoff of not fixing every ad slot to one size, and it's
   the same tradeoff Google's own docs describe for these formats. What
   this CSS controls is that an *unfilled* slot never leaves any visible
   footprint, and that no slot ever renders as a large empty box while
   waiting. */
.ad-slot {
  margin: var(--space-6) 0;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; margin: 0; }
.ad-slot__label {
  font-size: var(--text-micro); font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-faint);
}
.ad-slot__unit {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
}
.ad-slot--inline { margin: var(--space-5) 0; }

/* ---------------------------------------------------------------------
   10. Popular categories
   --------------------------------------------------------------------- */
.category-section { margin: var(--space-6) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto var(--space-5); }
.section-head p { color: var(--text-muted); margin: var(--space-2) 0 0; }
.category-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3);
}
.category-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4); border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); text-decoration: none; transform: translateY(-1px); }
.category-card__icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--primary-tint); color: var(--primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.category-card__icon svg { width: 21px; height: 21px; }
.category-card__title { font-weight: 750; font-size: var(--text-body-sm); }
.category-card__desc { font-size: var(--text-small); color: var(--text-muted); }

@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .category-grid { grid-template-columns: repeat(6, 1fr); } .category-card { text-align: center; align-items: center; } }

/* ---------------------------------------------------------------------
   11. Board intro / stats / results toolbar / active filters
   --------------------------------------------------------------------- */
.board-intro { padding: var(--space-4) 0 var(--space-2); }
.board-intro h1 { margin-bottom: var(--space-2); }
.stats-strip { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: baseline; font-size: var(--text-small); color: var(--text-muted); }
.stats-strip strong { color: var(--primary-active); font-size: 1.05rem; }
.stats-strip__note { display: none; }
@media (min-width: 700px) { .stats-strip__note { display: inline; margin-left: auto; } }

.results-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-3) 0; font-size: var(--text-small); color: var(--text-muted); }

.active-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin: var(--space-2) 0 var(--space-2); font-size: var(--text-small); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-tint); color: var(--primary-active);
  border-radius: var(--radius-pill); padding: 5px 8px 5px 13px; font-weight: 650;
}
.chip a { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: inherit; font-size: 1rem; line-height: 1; }
.chip a:hover { background: rgba(16, 64, 42, .14); text-decoration: none; }
.clear-all { color: var(--text-muted); font-weight: 700; font-size: var(--text-small); }

/* ---------------------------------------------------------------------
   12. Filter navigation — desktop dropdown bar + mobile bottom sheet
   --------------------------------------------------------------------- */
.location-badge {
  background: var(--primary-tint); color: var(--primary-active);
  font-size: var(--text-small); padding: var(--space-2) 0;
}
.location-badge__inner { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.location-badge__change { font-weight: 700; text-decoration: underline; }

.mobile-filter-bar { display: flex; align-items: center; gap: var(--space-2); padding: 10px 0; }
.mobile-filter-bar__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface);
  font-weight: 700; font-size: var(--text-body-sm); color: var(--text); cursor: pointer;
}
.mobile-filter-bar__btn svg { width: 17px; height: 17px; }
.mobile-filter-bar__sort {
  height: 42px; padding: 0 14px 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--surface); font-size: var(--text-small); font-weight: 650; min-height: 0;
}
.mobile-filter-bar__clear { margin-left: auto; font-size: var(--text-small); font-weight: 700; color: var(--text-muted); }

.board-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.board-nav__sheet-head, .board-nav__sheet-foot { display: none; }

/* Phone: filters live in a full sheet, opened by .mobile-filter-bar__btn.
   Works with zero JavaScript — the trigger is a real link to
   #boardNavSheet (:target); JS enhances it with the .filters-sheet-open
   body class instead so the URL hash stays clean during normal use. */
@media (max-width: 899px) {
  .board-nav { display: none; }
  body.filters-sheet-open .board-nav, .board-nav:target {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 95; border: 0;
  }
  body.filters-sheet-open .board-nav__sheet-head, .board-nav:target .board-nav__sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-4); border-bottom: 1px solid var(--border); min-height: var(--header-h); flex-shrink: 0;
  }
  body.filters-sheet-open .board-nav__inner, .board-nav:target .board-nav__inner {
    flex: 1; overflow-y: auto; display: flex; flex-direction: column; padding: 0 var(--space-4);
    width: 100%;
  }
  body.filters-sheet-open .board-nav__all, .board-nav:target .board-nav__all { display: none; }
  body.filters-sheet-open .board-nav__form, .board-nav:target .board-nav__form { display: flex; flex-direction: column; gap: 0; padding-bottom: var(--space-4); }
  body.filters-sheet-open .board-dd, .board-nav:target .board-dd { border-bottom: 1px solid var(--border); }
  body.filters-sheet-open .board-dd > summary, .board-nav:target .board-dd > summary {
    height: 56px; padding: 0 2px; font-size: 1rem; border-bottom: 0; justify-content: space-between;
  }
  body.filters-sheet-open .board-dd > summary:hover, .board-nav:target .board-dd > summary:hover,
  body.filters-sheet-open .board-dd[open] > summary, .board-nav:target .board-dd[open] > summary { background: transparent; color: var(--text); }
  body.filters-sheet-open .board-dd__panel, .board-nav:target .board-dd__panel {
    position: static; box-shadow: none; border: 0; width: auto; min-width: 0; max-width: none;
    max-height: none; padding: 0 2px var(--space-4); margin: 0; animation: none; background: transparent;
  }
  body.filters-sheet-open .board-dd__panel--wide, .board-nav:target .board-dd__panel--wide { width: auto; min-width: 0; max-width: none; }
  body.filters-sheet-open .board-dd__panel::before, .board-nav:target .board-dd__panel::before { display: none; }
  body.filters-sheet-open .board-dd__apply, .board-nav:target .board-dd__apply { display: none; }
  body.filters-sheet-open .board-nav__sheet-foot, .board-nav:target .board-nav__sheet-foot {
    display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4) calc(var(--space-3) + var(--safe-b));
    border-top: 1px solid var(--border); flex-shrink: 0; background: var(--surface);
  }
  body.filters-sheet-open .board-nav__sheet-foot .btn, .board-nav:target .board-nav__sheet-foot .btn { flex: 1; }
  body.filters-sheet-open { overflow: hidden; }
}

/* Tablet / desktop: horizontal dropdown bar, sticky under the header */
@media (min-width: 900px) {
  .mobile-filter-bar { display: none; }
  .board-nav {
    position: sticky; top: var(--header-h); z-index: 45;
    box-shadow: 0 3px 14px rgba(20, 48, 36, .05);
  }
  .board-nav__inner {
    max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-5);
    display: flex; align-items: stretch; flex-wrap: wrap;
  }
  .board-nav__form { display: contents; }
  .board-nav__all, .board-dd > summary {
    min-height: 50px; padding: 0 16px; display: flex; align-items: center; gap: 6px;
    border: 0; border-bottom: 3px solid transparent; background: transparent;
    color: var(--text); font-size: var(--text-body-sm); font-weight: 700;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  }
  .board-nav__all:hover, .board-dd > summary:hover, .board-dd[open] > summary, .board-nav__all.is-active {
    background: var(--primary-tint); color: var(--primary-active); border-bottom-color: var(--primary); text-decoration: none;
  }
  .board-dd > summary { cursor: pointer; user-select: none; list-style: none; }
  .board-dd > summary::-webkit-details-marker { display: none; }
  .board-dd > summary::after { content: '⌄'; font-size: .8rem; color: var(--text-faint); }
  .board-dd[open] > summary::after { transform: rotate(180deg); }
  .board-dd { position: relative; }
  .board-dd__panel {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 100;
    width: 300px; max-width: min(380px, calc(100vw - 32px)); max-height: min(66vh, 540px);
    overflow-y: auto; padding: var(--space-4);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: g4pDropdownIn .14s ease-out;
  }
  .board-dd__panel--wide { width: 360px; max-width: min(430px, calc(100vw - 32px)); }
  .board-dd:nth-last-child(-n+2) .board-dd__panel { left: auto; right: 0; }
}
@keyframes g4pDropdownIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.board-dd__search { width: 100%; min-height: 40px; margin-bottom: var(--space-2); }
.board-dd__options { display: flex; flex-direction: column; gap: 2px; }
.board-dd__options label, .board-dd__group label {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 8px;
  border-radius: 8px; font-size: var(--text-body-sm); cursor: pointer;
}
.board-dd__options label:hover, .board-dd__group label:hover { background: var(--surface-sunken); }
.board-dd__group { padding-bottom: var(--space-2); margin-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.board-dd__group:last-of-type { border-bottom: 0; margin-bottom: 0; }
.board-dd__group > strong { display: block; font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); margin-bottom: 6px; }
.board-dd__hint { color: var(--text-muted); font-size: var(--text-small); margin: 0 0 var(--space-2); }
.board-dd__apply { width: 100%; margin-top: var(--space-3); }
.board-dd__count { background: var(--primary); color: #fff; border-radius: 999px; font-size: .68rem; font-weight: 800; padding: 0 6px; min-width: 16px; text-align: center; line-height: 1.5; }

/* ---------------------------------------------------------------------
   13. Grant result cards
   --------------------------------------------------------------------- */
.grant-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-3) 0; }
.grant-list__ad { margin: var(--space-2) 0; }

.grant-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-4); box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.grant-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.grant-card__title { font-size: 1.02rem; margin: 0 0 6px; line-height: 1.3; font-weight: 750; }
.grant-card__title a { color: var(--text); }
.grant-card__title a:hover { color: var(--primary-hover); text-decoration: none; }
/* "Who can apply" — the one thing about eligibility that belongs on the
   card; everything else (org name, full description, tag chips) moved to
   the grant detail page. Value is a real one-line eligibility summary when
   the provider gave one — kept to a single line (ellipsis, not wrap) so a
   card never grows into a paragraph. */
.grant-card__who { margin: 0 0 var(--space-3); min-width: 0; }
.grant-card__who-label { display: block; font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .03em; color: var(--text-faint); font-weight: 700; margin-bottom: 2px; }
.grant-card__who-text { margin: 0; color: var(--text-muted); font-size: var(--text-body-sm); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Amount + Deadline — the two decision-critical facts, given real visual
   weight instead of competing with half a dozen small icon/text pairs. */
.grant-card__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-1) var(--space-4); }
.grant-card__stat { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.grant-card__stat-label { font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .03em; color: var(--text-faint); font-weight: 700; }
.grant-card__stat-value { font-size: var(--text-body-sm); font-weight: 750; color: var(--text); overflow-wrap: anywhere; }

/* Status + verification — a single small, muted line. Deliberately not a
   colored pill/badge here (that lives on the grant detail page instead) so
   it never competes with the name/who-can-apply/amount/deadline/Apply Now
   hierarchy above it. data-status carries the same status_label() class
   name .status-pill uses elsewhere, but scoped as an attribute so it can't
   accidentally pick up the bold pill background/color rules. */
.grant-card__indicators { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }
.status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-micro); font-weight: 700; color: var(--text-muted); }
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); flex-shrink: 0; }
.status-dot[data-status="status-open"]::before,
.status-dot[data-status="status-closing-soon"]::before,
.status-dot[data-status="status-rolling"]::before { background: var(--primary); }
.status-dot[data-status="status-upcoming"]::before { background: var(--violet-fg); }
.status-dot[data-status="status-verification-needed"]::before { background: var(--danger); }
.grant-card__verified { font-size: var(--text-micro); font-weight: 700; color: var(--primary-hover); }
.grant-card__apply { width: 100%; }

@media (min-width: 560px) {
  .grant-card__apply { width: auto; }
}
@media (min-width: 900px) {
  .grant-card { flex-direction: row; align-items: stretch; padding: var(--space-4) var(--space-5); }
  .grant-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); justify-content: center; }
  .grant-card__side { flex: 0 0 176px; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: var(--space-3); text-align: right; }
  .grant-card__indicators { justify-content: flex-end; margin-top: 0; }
  .grant-card__apply { width: 100%; }
}

/* ---------------------------------------------------------------------
   14. Pagination
   --------------------------------------------------------------------- */
.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin: var(--space-5) 0 var(--space-7); flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: var(--text-small); color: var(--text); background: var(--surface);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary-hover); text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ---------------------------------------------------------------------
   15. Empty state / skeleton loaders
   --------------------------------------------------------------------- */
.empty-state { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-4); text-align: center; margin: var(--space-4) 0; box-shadow: var(--shadow-xs); }
.empty-state__icon { width: 48px; height: 48px; margin: 0 auto var(--space-3); color: var(--text-faint); }
.empty-state__icon svg { width: 100%; height: 100%; }
.empty-state h2 { margin: 0 0 6px; font-size: 1.1rem; }
.empty-state p { margin: 0 0 var(--space-4); color: var(--text-muted); }
.empty-state__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }

.skeleton { position: relative; overflow: hidden; background: var(--surface-sunken); border-radius: var(--radius-sm); }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.grant-card-skeleton { height: 132px; border-radius: var(--radius-md); }

/* ---------------------------------------------------------------------
   16. Breadcrumbs
   --------------------------------------------------------------------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--text-small); color: var(--text-muted); margin: var(--space-4) 0 0; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------------
   17. Grant detail page
   --------------------------------------------------------------------- */
.grant-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); margin: var(--space-3) 0 var(--space-5); box-shadow: var(--shadow-xs); }
.grant-detail__header { display: flex; flex-direction: column; gap: var(--space-3); border-bottom: 1px solid var(--border); padding-bottom: var(--space-4); margin-bottom: var(--space-4); }
.grant-detail__header-status { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.grant-detail h1 { margin: 0 0 6px; font-size: var(--text-h1); }
.grant-detail__org { color: var(--text-muted); font-size: var(--text-body-sm); }
.grant-detail__summary { font-size: var(--text-body-sm); color: var(--text-muted); line-height: 1.65; }
.grant-detail__apply-top { display: none; }
.grant-detail__apply-note { font-size: var(--text-small); color: var(--text-muted); }
.grant-detail__not-specified { color: var(--text-faint); font-style: italic; }
.grant-detail__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin: var(--space-4) 0; }
.fact-box { background: var(--surface-sunken); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-3); }
.fact-box .label { font-size: var(--text-micro); text-transform: uppercase; color: var(--text-muted); font-weight: 700; letter-spacing: .03em; }
.fact-box .value { font-size: 1.02rem; font-weight: 750; margin-top: 3px; overflow-wrap: anywhere; }
.grant-detail__section { margin: var(--space-5) 0; }
.grant-detail__section h2 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.grant-detail__section p { color: var(--text); }
.cta-row { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.ready-to-apply { background: var(--primary-tint); border: 1px solid var(--primary-tint-strong); border-radius: var(--radius-lg); padding: var(--space-5); margin: var(--space-3) 0 var(--space-6); text-align: center; }
.ready-to-apply h2 { margin: 0 0 6px; font-size: 1.2rem; color: var(--primary-active); }
.ready-to-apply p { color: var(--text-muted); margin: 0 auto 4px; max-width: 46em; }
.ready-to-apply .cta-row { justify-content: center; }
.source-transparency { background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: var(--text-small); color: var(--text-muted); margin-top: var(--space-4); display: flex; flex-direction: column; gap: 4px; }
.source-transparency strong { color: var(--text); }
.disclaimer-box { background: #fdf7e8; border: 1px solid #f0d78c; border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: var(--text-small); color: #6b5300; margin-top: var(--space-3); }

/* Sticky mobile apply bar */
.sticky-apply-bar {
  position: sticky; bottom: 0; z-index: 40;
  display: flex; gap: var(--space-2); align-items: center;
  background: rgba(255,255,255,.97); backdrop-filter: blur(6px);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(17,33,24,.08);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + var(--safe-b));
  margin: 0 calc(-1 * var(--space-4));
}
.sticky-apply-bar__info { flex: 1; min-width: 0; }
.sticky-apply-bar__label { font-size: var(--text-micro); color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.sticky-apply-bar__value { font-size: var(--text-body-sm); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-apply-bar .btn { flex-shrink: 0; }

@media (min-width: 700px) {
  .grant-detail { padding: var(--space-6); }
  .grant-detail__header { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .grant-detail__header-status { flex-direction: column; align-items: flex-end; }
  .grant-detail__apply-top { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-4) 0 0; padding: var(--space-4); background: var(--primary-tint); border-radius: var(--radius-md); }
  .grant-detail__facts { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .sticky-apply-bar { display: none; }
}

/* ---------------------------------------------------------------------
   18. Trust / how-it-works / resources / final CTA
   --------------------------------------------------------------------- */
.trust-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-6);
  margin: var(--space-6) 0 0; padding: var(--space-4); background: var(--primary-tint);
  border-radius: var(--radius-md); font-size: var(--text-small); font-weight: 650; color: var(--primary-active);
}
.trust-strip__item { display: flex; align-items: center; gap: 8px; }
.trust-strip__item svg { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; }

.how-it-works { margin: var(--space-6) 0 0; text-align: center; }
.how-it-works__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); text-align: left; margin-top: var(--space-5); }
.how-it-works__step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4); }
.how-it-works__num { font-size: var(--text-small); font-weight: 900; color: var(--primary); letter-spacing: .06em; margin-bottom: var(--space-2); }
.how-it-works__step h3 { margin: 0 0 6px; font-size: 1rem; }
.how-it-works__step p { margin: 0; color: var(--text-muted); font-size: var(--text-body-sm); line-height: 1.55; }

.value-props { margin: var(--space-6) 0 0; }
.value-props__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-5); }
.value-prop { display: flex; gap: var(--space-3); }
.value-prop__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-tint); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.value-prop__icon svg { width: 22px; height: 22px; }
.value-prop h3 { font-size: var(--text-body-sm); margin-bottom: 3px; }
.value-prop p { font-size: var(--text-body-sm); color: var(--text-muted); margin: 0; }

.ai-trust-note { margin: var(--space-6) 0 0; padding: var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }
.ai-trust-note h2 { margin: 0 0 var(--space-2); font-size: 1.05rem; color: #123b28; }
.ai-trust-note p { margin: 0; color: var(--text-muted); font-size: var(--text-body-sm); line-height: 1.6; }

.resource-links { margin: var(--space-6) 0 0; }
.resource-links__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2); margin-top: var(--space-3); }
/* Compact nav-card treatment (spec: replace dominant decorative arrows with
   a subtle chevron) — tighter padding than the old oversized tiles, and a
   deliberately small, muted chevron rather than a bare unsized <svg> (an
   <svg> with no explicit width/height renders at the browser default of
   300x150px, which is what made these arrows "dominant" in the first
   place). */
.resource-link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); }
.resource-link:hover { border-color: var(--primary); text-decoration: none; }
.resource-link strong { display: block; font-size: var(--text-body-sm); font-weight: 700; }
.resource-link span.desc { display: block; font-size: var(--text-small); color: var(--text-muted); margin-top: 1px; }
.resource-link .arrow { flex-shrink: 0; width: 16px; height: 16px; color: var(--text-faint); }
.resource-link:hover .arrow { color: var(--primary); }

.final-cta { margin: var(--space-6) 0 var(--space-5); text-align: center; padding: var(--space-6) var(--space-4); background: linear-gradient(160deg, var(--primary-active), var(--primary)); border-radius: var(--radius-lg); color: #fff; }
.final-cta h2 { color: #fff; font-size: var(--text-h1); margin: 0 0 var(--space-2); }
.final-cta p { color: rgba(255,255,255,.85); max-width: 44ch; margin: 0 auto var(--space-4); }
.final-cta .btn-primary { background: #fff; color: var(--primary-active); }
.final-cta .btn-primary:hover { background: #f0f3ee; }

@media (min-width: 700px) {
  .how-it-works__grid { grid-template-columns: repeat(3, 1fr); }
  .value-props__grid { grid-template-columns: repeat(2, 1fr); }
  .resource-links__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------------------------------------------------------------
   19. Content / legal pages
   --------------------------------------------------------------------- */
.content-page { max-width: 760px; padding-top: var(--space-5); padding-bottom: var(--space-8); }
.content-page h1 { margin-bottom: var(--space-2); }
.content-page h2 { margin-top: var(--space-6); margin-bottom: var(--space-2); font-size: 1.15rem; }
.content-page p, .content-page li { color: var(--text); line-height: 1.7; }
.content-page ul, .content-page ol { padding-left: 1.3em; margin: 0 0 var(--space-3); }
.content-page li { margin-bottom: 6px; }
.content-page code { background: var(--surface-sunken); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.content-page .lede { font-size: var(--text-small); color: var(--text-faint); }

/* ---------------------------------------------------------------------
   20. Footer
   --------------------------------------------------------------------- */
.site-footer { margin-top: var(--space-6); padding: var(--space-6) 0 0; background: #102d22; color: #c9d8d0; font-size: var(--text-body-sm); }
.footer-main { display: grid; grid-template-columns: 1fr; gap: var(--space-5); padding-bottom: var(--space-5); }
.footer-brand { max-width: 400px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.2rem; font-weight: 850; letter-spacing: -.02em; }
.footer-logo:hover { text-decoration: none; }
.footer-logo__mark { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; }
.footer-logo__mark svg { width: 34px; height: 34px; fill: var(--accent); stroke: #fff; stroke-width: 2.2; }
.footer-tagline { margin: var(--space-3) 0 0; color: #8fb39f; font-size: var(--text-small); font-weight: 650; }
.footer-description { margin: var(--space-2) 0 var(--space-3); line-height: 1.7; color: #b9cbc1; }
.footer-discovery-note { margin: 0; color: #e0ebe5; font-size: var(--text-small); font-weight: 650; display: flex; align-items: center; gap: 6px; }
.footer-discovery-note svg { width: 14px; height: 14px; color: #67c48c; }
.footer-provider-note { margin: var(--space-3) 0 0; font-size: var(--text-micro); color: #7d9689; }
.footer-provider-note a { color: #9fc2b0; }
.footer-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-4); }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-column h2 { margin: 0 0 4px; color: #fff; font-size: var(--text-micro); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.footer-column a { color: #b9cbc1; }
.footer-column a:hover { color: #fff; text-decoration: none; }
.footer-location address { margin: 0; color: #b9cbc1; font-style: normal; line-height: 1.75; }
.footer-disclaimer-row { border-top: 1px solid rgba(255,255,255,.12); padding: var(--space-4) 0; color: #9fb8ab; font-size: var(--text-small); line-height: 1.6; max-width: 900px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; color: #8fa99c; font-size: var(--text-micro); padding-bottom: var(--space-4); }
.footer-tagline-bottom { color: #7d9689; }

@media (min-width: 700px) {
  .footer-columns { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 980px) {
  .footer-main { grid-template-columns: minmax(240px, 1.4fr) minmax(0, 2.4fr); }
}

/* ---------------------------------------------------------------------
   21. Admin login shell (shared with admin.css)
   --------------------------------------------------------------------- */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: var(--bg); }
