/* ==========================================================================
   Better Pangasinan — shared civic design system
   Existing Better LGU palette retained for provincial continuity:
     blue-deep    #01407F  (nav, headings, primary brand color)
     blue-bright  #1A6FD1  (links, interactive accents)
     gold         #FBC711  (highlights, CTAs)
     gold-ink     #8A6400  (gold used as TEXT — darkened for contrast)
     brown-earth  #74381C  (secondary accent — fields/community)
     bg           #F3F6FA  (page background — cool, not warm cream)
     paper        #FFFFFF  (card background)
     ink          #13202C  (body text)
     ink-soft     #4B5B6B  (secondary text)
     line         #DBE3EC  (hairline borders)

   Type: Space Grotesk (display, geometric sans) + Lora (body, serif) —
   preserving the original geometric display and editorial body pairing.
   ========================================================================== */

:root {
  --blue-deep: #01407f;
  --blue-bright: #1a6fd1;
  --gold: #fbc711;
  --gold-ink: #8a6400;
  --gold-soft: #fdf1cd;
  --brown-earth: #74381c;
  --brown-soft: #f3e6dd;
  --bg: #f3f6fa;
  --paper: #ffffff;
  --ink: #13202c;
  --ink-soft: #4b5b6b;
  --line: #dbe3ec;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lora", "Iowan Old Style", Georgia, serif;

  --max-w: 1360px;
  --radius: 4px;
}

.home-fold { min-height: calc(100vh - max(var(--site-header-height, 67px), 64px)); min-height: calc(100dvh - max(var(--site-header-height, 67px), 64px)); display: flex; flex-direction: column; }
.home-fold > .hero { flex: 0.9 1 auto; display: flex; flex-direction: column; justify-content: center; }
.home-fold > #province-summary { flex: 1.1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.home-fold + .section { border-top: 1px solid var(--line); }
#province-summary.section { padding: clamp(20px, 2.8vh, 36px) 0 clamp(18px, 2.5vh, 32px); }
#province-summary .wrap { width: 100%; }
#province-summary .section-head { margin-inline: auto; text-align: center; margin-bottom: clamp(6px, 1vh, 12px); }
#province-summary .section-eyebrow { font-size: clamp(12px, 1.5vh, 13.5px); margin-bottom: 5px; }
#province-summary .section-head h2 { font-size: clamp(24px, min(3vw, 3.6vh), 35px); margin-bottom: 0; }
#province-summary [data-province-status] { text-align: center; font-size: clamp(15px, min(1.4vw, 2vh), 16.5px); margin-bottom: clamp(12px, 1.8vh, 20px); }
.province-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vh, 16px); font-family: var(--font-display); }
.province-kpi { min-width: 0; padding: clamp(12px, 1.8vh, 22px) 16px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.province-kpi span, .province-kpi small { display: block; color: var(--ink-soft); font-size: clamp(13px, 1.65vh, 14.5px); line-height: 1.35; }
.province-kpi strong { display: block; margin: clamp(4px, 0.6vh, 8px) 0; font-size: clamp(24px, min(3vw, 4vh), 38px); line-height: 1.15; color: var(--blue-deep); overflow-wrap: anywhere; }
.source-line { font-size: 13px; color: var(--ink-soft); overflow-wrap: anywhere; }
.source-line a { display: inline-block; margin-right: 12px; }
.explore-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; font-family: var(--font-display); font-size: 14px; }
.explore-links a { display: inline-flex; align-items: center; min-height: 44px; }
.profile-barangays { margin: 24px 0; }
.profile-barangays input { max-width: 100%; width: 400px; min-height: 44px; padding: 10px; border: 1px solid var(--line); font: inherit; }
.profile-barangays li { padding-block: 5px; }
.preview-banner { padding: 14px 24px; border-block: 2px solid var(--gold-ink); background: var(--gold-soft); font: 14px/1.6 var(--font-display); color: var(--ink); }
.lgu-directory-card h2 { font-size: 22px; }
.lgu-directory-card > p { font: 15px/1.6 var(--font-display); }
.province-source-details { margin-block: clamp(6px, 1vh, 12px) 0; font: 14px/1.6 var(--font-display); }
.province-source-details summary { min-height: 44px; padding-block: 8px; cursor: pointer; color: var(--blue-deep); }
.home-snapshot { font-family: var(--font-display); }
.home-snapshot [hidden] { display: none !important; }
.home-transparency { background: var(--bg); border-block: 1px solid var(--line); }
.home-snapshot-heading { max-width: 780px; margin-bottom: 26px; }
.home-snapshot-heading h2 { font-size: clamp(27px, 3.5vw, 38px); line-height: 1.2; margin-bottom: 14px; }
.home-snapshot-heading > p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin-bottom: 0; }
.home-transparency-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-feature { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--blue-deep); }
.home-feature-index { color: var(--ink-soft); font-size: 12px; margin-bottom: 18px; }
.home-feature h3 { font-size: 19px; line-height: 1.4; margin-bottom: 10px; }
.home-feature p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 18px; }
.home-feature-metric { display: block; margin-top: auto; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.home-feature-metric strong { display: block; color: var(--blue-deep); font-size: 30px; line-height: 1.2; margin: 6px 0; font-variant-numeric: tabular-nums; }
.home-snapshot-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.home-snapshot-actions > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; }
.home-snapshot-note { margin: 16px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.home-government { background: var(--paper); }
.home-government-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; gap: 44px; }
.home-government-layout > .home-snapshot-heading { margin-bottom: 0; }
.home-government-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-government-feature { display: flex; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--blue-deep); min-width: 0; }
.home-feature-icon { width: 28px; height: 28px; flex: 0 0 28px; margin-top: 2px; }
.home-government-feature h3 { font-size: 17px; line-height: 1.4; margin-bottom: 8px; }
.home-government-feature p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.home-government-feature small { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.home-government-feature .home-feature-metric { margin-top: 8px; }
.home-government-feature .home-feature-metric strong { display: inline; font-size: 16px; }
.home-feature:hover, .home-government-feature:hover { border-color: var(--blue-deep); }
.home-snapshot a:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 4px; }
.home-public-knowledge { border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .home-transparency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-government-layout { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 480px) { .home-transparency-grid, .home-government-grid { grid-template-columns: 1fr; } .home-feature { padding: 20px; } .home-feature-index { margin-bottom: 10px; } }
.lgu-directory-card details { margin-top: 14px; }
.lgu-directory-card summary { cursor: pointer; color: var(--blue-deep); font: 13px var(--font-display); min-height: 44px; padding-block: 10px; }
#lgu-show-more { margin-block: 24px; }
[data-filters][hidden] { display: none !important; }
.lgu-profile-shortcut { padding: 16px 24px; border-left: 3px solid var(--blue-deep); background: var(--paper); margin-block: 16px; font: 15px/1.6 var(--font-display); }
@media (max-width: 700px) { .province-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .province-kpi { padding: 10px 8px; } .province-kpi span, .province-kpi small { font-size: 12px; } .province-kpi strong { font-size: clamp(20px, 5.5vw, 26px); } }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-deep);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-bright);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-deep);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--blue-deep);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.brand-text {
  font-family: var(--font-display);
  line-height: 1.05;
}

.brand-text .top {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-deep);
}

.brand-text .bottom {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-style: italic;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.nav-links a:hover {
  background: var(--bg);
  color: var(--blue-deep);
}

.nav-links a[aria-current="page"], .nav-links a[aria-current="location"] {
  color: var(--blue-deep);
  background: var(--gold-soft);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--blue-deep);
  color: #fff;
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  width: 100%;
  padding: clamp(20px, 3vh, 42px) 28px clamp(56px, 7.5vh, 88px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(10px, 1.5vh, 16px);
}

.hero .eyebrow {
  justify-content: center;
  flex-wrap: wrap;
}

.eyebrow::before,
.hero .eyebrow::after {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.hero h1 {
  color: #fff;
  font-size: clamp(32px, min(4.8vw, 5.8vh), 62px);
  max-width: 24ch;
  margin-inline: auto;
  margin-bottom: 0.22em;
  letter-spacing: -0.02em;
}

.hero .lede {
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 0;
  font-size: clamp(16px, min(1.6vw, 2.2vh), 20.5px);
  line-height: 1.45;
  font-family: var(--font-body);
  color: #e3ecf8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(16px, 2.4vh, 26px);
  flex-wrap: wrap;
}

.hero-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(44px, 6vh, 62px);
  line-height: 0;
}

.hero-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: #2b1f00;
}

.btn-primary:hover {
  background: #ffd63c;
  color: #2b1f00;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  border-color: var(--blue-deep);
  color: var(--blue-deep);
}

.btn-outline:hover {
  background: var(--blue-deep);
  color: #fff;
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--blue-deep);
  color: #fff;
  position: relative;
}

/* Interior and dashboard heroes share the homepage's decorative wave. */
.page-hero::after,
.wave-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  background: url("hero-wave.svg") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
.page-hero > .hero-divider { display: none; }
.wave-hero { position: relative; background: var(--blue-deep); color: #fff; padding: 32px 0 80px; }
.wave-hero h1 { color: #fff; font-size: clamp(27px, 3.6vw, 38px); margin-bottom: 12px; }
.wave-hero p { color: #e3ecf8; max-width: 76ch; margin-bottom: 0; }
.wave-hero a { color: var(--gold); }
.wave-hero :focus-visible { outline-color: var(--gold); }

.page-hero .wrap {
  padding: 52px 28px 86px;
  position: relative;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(27px, 3.6vw, 38px);
  margin-bottom: 10px;
}

.page-hero .lede {
  color: #e3ecf8;
  font-family: var(--font-body);
  max-width: 68ch;
  margin: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--paper);
}

.section-head {
  max-width: 74ch;
  margin-bottom: 36px;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(23px, 2.8vw, 30px);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Grids / cards ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 0;
}

/* Circular medallion icon, echoing the seal's ring */
.medallion {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue-deep);
}

.medallion svg {
  width: 22px;
  height: 22px;
}

.card--gold .medallion {
  border-color: var(--gold-ink);
  color: var(--gold-ink);
}

.card--brown .medallion {
  border-color: var(--brown-earth);
  color: var(--brown-earth);
}

/* ---------- Pull quote (used on About) ---------- */

.pull-rule {
  border: none;
  border-top: 3px solid var(--gold);
  width: 64px;
  margin: 0 0 24px;
}

.lead-text {
  font-size: 18px;
  color: var(--ink);
}

.card--narrow {
  max-width: 60rem;
}

/* ---------- Status / notice panel (used on Projects) ---------- */

.notice {
  background: var(--brown-soft);
  border: 1px solid #e6d0bf;
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.notice .medallion {
  flex-shrink: 0;
  margin-bottom: 0;
  border-color: var(--brown-earth);
  color: var(--brown-earth);
  background: var(--paper);
}

.notice h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.notice p {
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.notice p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.site-footer .wrap {
  padding: 48px 28px 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.6fr 1.15fr 0.85fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  gap: 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-brand .name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--blue-deep);
  font-weight: 700;
}

.footer-brand p {
  font-size: 13.5px;
  margin-top: 10px;
  max-width: 36ch;
  color: var(--ink-soft);
}

.site-footer h5 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.site-footer ul.footer-links-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(6, auto);
  gap: 9px 24px;
}

.site-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}

.footer-grid > * {
  min-width: 0;
}

.footer-label-mobile {
  display: none;
}

.site-footer a:hover {
  color: var(--blue-deep);
}

.footer-bottom {
  padding-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-bottom strong {
  color: var(--ink);
}

.cost-chip {
  display: inline-block;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  color: var(--gold-ink);
  font-weight: 700;
  margin-top: 10px;
}

/* ---------- Utility ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.15fr 1.35fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 6px 24px 14px;
    display: flex;
  }

  .js .nav-links { display: none; }

  .js .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav-toggle {
    display: none;
  }

  .js .nav-toggle { display: block; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav { width: 100%; }
  html:not(.js) .nav-links { position: static; width: 100%; padding: 12px 0 0; }

  .wrap { padding: 0 24px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .footer-brand-col, .footer-site-col { grid-column: 1 / -1; }
  .footer-label-desktop { display: none; }
  .footer-label-mobile { display: inline; }
  .site-footer .wrap { padding: 40px 24px 24px; }
  .notice { flex-direction: column; }
  .hero .wrap { padding: clamp(18px, 2.2vh, 26px) 24px clamp(48px, 6vh, 64px); }
  .page-hero .wrap { padding: 44px 24px 76px; }
}

@media (max-width: 480px) {
  .hero .eyebrow {
    font-size: 11px;
    letter-spacing: 0.07em;
  }
  .hero .eyebrow::before,
  .hero .eyebrow::after {
    width: 12px;
  }
  .hero-actions .btn {
    padding: 10px 15px;
    font-size: 13.5px;
  }
  .site-footer ul.footer-links-split {
    gap: 9px 14px;
  }
  .site-footer a {
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Provincial discovery: built on the shared civic palette and type system. */
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -80px; left: 16px; padding: 12px 20px; background: var(--gold); color: var(--ink); z-index: 100; }
.skip-link:focus { top: 8px; }
input, select, textarea { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #8193a5; border-radius: var(--radius); background: var(--paper); color: var(--ink); padding: 12px 14px; font: 16px var(--font-display); }
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
label, legend { display: block; margin-bottom: 8px; font: 600 14px var(--font-display); color: var(--blue-deep); }
.search-panel { padding: 28px; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); background: var(--paper); margin-bottom: 32px; }
.search-panel p { margin: 14px 0 0; color: var(--ink-soft); font-size: 14px; }
.search-row { display: flex; gap: 12px; }
.search-row .btn { flex-shrink: 0; }
.filter-grid, .filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.feature-number { display: block; font: 700 11px var(--font-display); letter-spacing: .08em; color: var(--ink-soft); margin: 8px 0 14px; }
.card-link { display: block; font: 700 14px var(--font-display); margin-top: 22px; text-decoration: none; }
.card--gold { border-top: 3px solid var(--gold); }
.card--brown { border-top: 3px solid var(--brown-earth); }
.editorial-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.editorial-grid h2 { font-size: clamp(26px, 3vw, 36px); }
.editorial-grid p { color: var(--ink-soft); }
.resource-list { border-top: 1px solid var(--line); }
.resource-list > a { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.resource-list strong { font: 700 18px var(--font-display); }
.resource-list small { display: block; color: var(--ink-soft); font-size: 14px; margin-top: 5px; }
.empty-state { padding: 32px; border: 1px dashed #9cabbc; border-radius: var(--radius); background: var(--bg); margin: 24px 0; }
.empty-state h2, .empty-state h3 { font-size: 21px; }
.empty-state p { max-width: 72ch; color: var(--ink-soft); }
.community-band { background: var(--blue-deep); color: #e3ecf8; padding: 48px 0; }
.community-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.community-band h2 { color: white; }
.community-band .section-eyebrow { color: var(--gold); }
.community-band p { margin-bottom: 0; }
.community-band .btn { flex-shrink: 0; }
.back-link { display: inline-block; color: white; margin-bottom: 20px; font-family: var(--font-display); }
.badge, .status-chip { display: inline-block; font: 600 12px var(--font-display); padding: 5px 10px; background: var(--gold-soft); color: #624700; border-radius: 3px; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 14px; }
caption { text-align: left; padding: 12px 0; font-weight: 700; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-display); color: var(--blue-deep); }
dt { font: 700 14px var(--font-display); color: var(--blue-deep); margin-top: 16px; }
dd { margin: 4px 0 0; color: var(--ink-soft); }
.map-shell, #province-map, #map { min-height: 350px; border: 1px solid var(--line); border-radius: var(--radius); background: #e8eef4; }
.module-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
[data-filters] { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: end; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 24px; margin: 24px 0; }
[data-filters] label { margin: 0; }
[data-filters] input, [data-filters] select { margin-top: 8px; }
[data-filters] .btn { justify-content: center; min-height: 48px; }
[data-filters] .btn:not(.btn-outline) { background: var(--gold); color: #2b1f00; }
[data-results] > .card { margin-bottom: 20px; }
[data-status] { padding: 20px 24px; background: var(--paper); border-left: 3px solid var(--blue-deep); color: var(--ink-soft); }
meter { display: block; width: 100%; height: 20px; accent-color: var(--blue-deep); }
#project-map { height: 420px; max-height: 65vh; background: #e8eef4; }
.brand img, .footer-brand img { object-fit: contain; border-radius: 0; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.nav-links a { min-height: 44px; }
.card, .wrap, .editorial-grid > *, .grid > * { min-width: 0; }
h1, h2, h3, p, a { overflow-wrap: break-word; }
@media (max-width: 980px) { .nav { gap: 8px; } .nav-links { gap: 0; } .nav-links a { padding-inline: 8px; font-size: 13px; } .brand-text .top { font-size: 16px; } }
@media (max-width: 720px) {
  .editorial-grid { grid-template-columns: 1fr; gap: 32px; }
  .community-band .wrap { align-items: flex-start; flex-direction: column; }
  .search-row { flex-direction: column; }
  .search-row .btn { justify-content: center; }
  .search-panel, .empty-state { padding: 22px 18px; }
  .section { padding: 44px 0; }
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text .top { font-size: 16px; }
  .nav-links a { font-size: 15px; }
}
@media (max-width: 360px) { .wrap { padding-inline: 18px; } .brand-text .top { font-size: 14px; } .brand-text .bottom { font-size: 10px; } .hero .wrap, .page-hero .wrap, .site-footer .wrap { padding-inline: 18px; } }
