:root{
  /* warm terracotta/ochre earth tones — echoes the satellite basemap's own
     colours (sun-baked soil, dry savanna) instead of a generic near-black */
  --bg:#2A1D12; --panel:#3A2818; --panel-2:#4A331E; --line:#6B4E30;
  --text:#F7EAD6; --muted:#D8BD98; --faint:#B0906A;
  --normal:#34B44B; --alert:#F0B22E; --alarm:#E8834A; --emergency:#ED1C24;
  --water:#6FA3B4; --radius:10px;
  --pacida-green:#34B44B; --pacida-red:#ED1C24; --pacida-green-dark:#0C6B2E;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:'Archivo',system-ui,sans-serif;font-size:15px;line-height:1.5;min-height:100vh;overflow-x:hidden}
.mono{font-family:'IBM Plex Mono',monospace}
.disp{font-family:'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:.06em}

/* skip link — hidden until keyboard-focused, jumps past the map/header to main content */
.skip-link{
  position:fixed;top:-60px;left:12px;z-index:2000;background:var(--pacida-green);color:#08210F;
  padding:12px 20px;border-radius:8px;font-family:'Barlow Condensed';font-weight:700;
  text-transform:uppercase;letter-spacing:.06em;text-decoration:none;transition:top .2s ease;
}
.skip-link:focus{top:12px}

/* NOTE: do not add overflow-x:hidden/clip to html or body — Chrome breaks
   position:sticky (used by header) the moment overflow-x is non-visible on
   the root element, regardless of overflow-y. Fix overflow bugs at their
   source instead (see #map below, and wrap any wide table in .table-scroll). */

/* shell: a full-width header sits above everything (spans both panes, no
   confinement to one side), then the interactive map / content panes-row
   below it. The content pane gets its own second, non-interactive decorative
   map as a backdrop, with glass panels floating on top of it — so both sides
   show map, one drivable, one not, and header uses the same glass treatment
   with no border so it reads as one continuous surface, not a boxed toolbar.
   Mobile-first order: map on top, content below (DOM order, no override).
   Desktop: content on the left, map on the right (order-swapped below). */
.page-shell{display:flex;flex-direction:column;min-height:100vh}
.panes-row{display:flex;flex-direction:column;align-items:stretch;flex:1}
.map-pane{position:relative;top:auto;width:100%;height:52vh;flex:none;background:#1D140C;overflow:hidden}
.map-pane #map{width:100%;height:100%}
.content-pane{position:relative;width:100%;min-width:0;background:var(--bg)}

/* decorative background map for the content side — sticky + negative margin
   keeps it pinned behind the scrolling content instead of pushing it down */
.content-bg-map{position:sticky;top:0;height:100vh;margin-bottom:-100vh;z-index:0;overflow:hidden;background:#1D140C}
.content-inner{position:relative;z-index:1}
/* header now floats over the top of both panes (see header.header-overlay) —
   the map-pane is left unpadded on purpose so it extends full-height behind
   the header for the blend; content-inner needs the padding since its cards
   would otherwise start underneath the floating header. The extra +36px
   leaves a strip of bare (softly faded) backdrop map visible right below the
   header instead of cards butting straight up against the header's bottom
   edge — without it the header-to-map fade above has no room to show. */
header.header-overlay ~ .panes-row .content-inner,
header.header-overlay ~ .content-pane .content-inner{padding-top:calc(var(--header-h,110px) + 36px)}
/* header-adjacent top fades — separate from the map-pane/content-pane seam
   fades below (which handle the pane-to-pane edge, not the header edge).
   map-pane's applies at every breakpoint since the map sits at page-top in
   both mobile (stacked) and desktop (side-by-side) layouts; content-pane's
   only matters on desktop, where it's ALSO a page-top column (on mobile it
   follows the map-pane lower down the page, out from under the header). */
header.header-overlay ~ .panes-row .map-pane::before{
  content:"";position:absolute;top:0;left:0;right:0;height:170px;z-index:850;pointer-events:none;
  background:linear-gradient(to bottom, rgba(28,19,11,.42) 0%, rgba(28,19,11,.16) 55%, transparent 100%);
}
@media(min-width:1021px){
  header.header-overlay ~ .panes-row .content-pane::before{
    content:"";position:absolute;top:0;left:0;right:0;height:170px;z-index:0;pointer-events:none;
    background:linear-gradient(to bottom, rgba(28,19,11,.42) 0%, rgba(28,19,11,.16) 55%, transparent 100%);
  }
}
/* single-pane header-overlay layout (index.html): the map fills the whole
   background now, not a separate 46%-wide pane, so it just needs the same
   header-adjacent top fade applied once to #map itself. */
header.header-overlay ~ .content-pane > .content-bg-map::before{
  content:"";position:absolute;top:0;left:0;right:0;height:170px;z-index:850;pointer-events:none;
  background:linear-gradient(to bottom, rgba(28,19,11,.42) 0%, rgba(28,19,11,.16) 55%, transparent 100%);
}

/* seam blend — both sides now show live map imagery (the interactive map-pane,
   and the content-pane's own decorative backdrop map), so the seam is softened
   with a low-opacity tint that peaks gently right at the shared edge and fades
   out on BOTH sides symmetrically. An earlier version faded the map-pane edge
   to a fully-opaque flat colour — that read as a hard block of solid colour
   sitting right next to vivid, untouched map imagery on the content side,
   which was itself a visible seam, just a different one. content-pane::after
   sits at z-index:0 (above the backdrop map, below content-inner's z-index:1)
   so cards stay crisp and only the open map gap near the edge gets tinted. */
.map-pane::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:160px;z-index:850;pointer-events:none;
  background:linear-gradient(to top, rgba(42,29,18,.4) 0%, rgba(42,29,18,.18) 50%, transparent 100%);
}
.content-pane::after{
  content:"";position:absolute;left:0;right:0;top:0;height:120px;z-index:0;pointer-events:none;
  background:linear-gradient(to bottom, rgba(42,29,18,.4) 0%, rgba(42,29,18,.15) 55%, transparent 100%);
}

@media(min-width:1021px){
  .panes-row{flex-direction:row;align-items:flex-start}
  .content-pane{flex:1;order:1}
  .map-pane{position:sticky;top:0;width:46%;height:100vh;order:2}
  .map-pane::after{left:0;right:auto;bottom:0;top:0;width:200px;height:auto;
    background:linear-gradient(to right, rgba(42,29,18,.4) 0%, rgba(42,29,18,.15) 45%, transparent 100%)}
  .content-pane::after{left:auto;right:0;top:0;bottom:0;width:200px;height:auto;
    background:linear-gradient(to left, rgba(42,29,18,.4) 0%, rgba(42,29,18,.15) 45%, transparent 100%)}
}

/* glass again — panels are translucent + blurred so the decorative map (or,
   on the map-legend, the live map) shows through softly behind them. Opacity
   kept fairly high (not the original .55) — a much lower value made text
   unreadable against bright map imagery in an earlier version of this site. */
.glass{
  background:rgba(42,29,18,.82);
  -webkit-backdrop-filter:blur(16px) saturate(1.15);
  backdrop-filter:blur(16px) saturate(1.15);
  border:1px solid rgba(247,234,214,.14);
  box-shadow:0 10px 34px rgba(0,0,0,.4);
}
@supports not (backdrop-filter:blur(2px)){ .glass{background:rgba(38,26,16,.96)} }
/* header spans the full page width now (sibling of panes-row, not nested in
   one pane) — no border/radius/shadow, so it blends into whatever is below
   it (map-pane or content-pane) instead of reading as a separate boxed bar */
header.glass{border:none;box-shadow:none}
/* header-overlay pages: the header floats directly over live map imagery
   (see header.header-overlay above), so it needs to be genuinely see-through
   for the blend to read as one continuous surface — .glass's normal .82
   opacity is too dark to show anything behind it, it just looks like a flat
   bar again despite the blur technically being active. Dropped much lower
   here, with a text-shadow safety net so nav/brand text stays legible over
   bright satellite imagery at any opacity. */
header.header-overlay.glass{background:rgba(28,19,11,.46)}
@supports not (backdrop-filter:blur(2px)){ header.header-overlay.glass{background:rgba(28,19,11,.9)} }
header.header-overlay .brand h1,header.header-overlay .brand .sub,
header.header-overlay nav.site a,header.header-overlay .livepill,header.header-overlay .clock{
  text-shadow:0 1px 4px rgba(0,0,0,.7);
}

/* the one exception: things that genuinely still sit on top of the live map
   (the legend) keep the translucent glass treatment */
.map-overlay{
  background:rgba(33,23,14,.88);
  -webkit-backdrop-filter:blur(18px) saturate(1.15);
  backdrop-filter:blur(18px) saturate(1.15);
  border:1px solid rgba(247,234,214,.16);
  box-shadow:0 10px 34px rgba(0,0,0,.5);
}
@supports not (backdrop-filter:blur(2px)){ .map-overlay{background:rgba(30,21,13,.97)} }

/* header + nav
   header-overlay (map pages: index, county pages, areas.html) makes the
   header float ON TOP of the map/content instead of pushing it down, so its
   glass blur actually has live imagery behind it to blend with — the earlier
   version had nothing behind the header at all (panes-row started only after
   the header's own box), so "glass" just rendered as a flat opaque bar with a
   hard line under it. Plain header (impact.html, no adjacent map) stays
   sticky/in-flow as before — there's nothing to blend there. --header-h is
   measured in JS (attachHeaderHeightVar) and used to pad content that would
   otherwise sit under the floating header. */
header{padding:12px 22px;display:flex;align-items:center;gap:18px;flex-wrap:wrap;position:sticky;top:0;z-index:1200;width:100%}
header.header-overlay{position:fixed;top:0;left:0;right:0}
.brand{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.brand-logo{height:34px;width:auto;display:block;flex:none}
.brand h1{font-family:'Barlow Condensed';font-weight:700;font-size:24px;letter-spacing:.08em;text-transform:uppercase}
.brand h1 a{color:inherit;text-decoration:none}
.brand h1 span{color:var(--alert)}
.brand .sub{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.14em;font-family:'Barlow Condensed';font-weight:500}
nav.site{display:flex;gap:4px;flex-wrap:wrap}
nav.site a{
  color:var(--muted);text-decoration:none;font-family:'Barlow Condensed';font-weight:600;
  text-transform:uppercase;letter-spacing:.08em;font-size:13.5px;padding:6px 11px;border-radius:6px;
  border:1px solid transparent;transition:.15s;
}
nav.site a:hover{color:var(--text);border-color:var(--line)}
nav.site a.active{color:#0A0805;background:var(--alert);border-color:var(--alert)}
nav.site a:focus-visible{outline:2px solid var(--alert);outline-offset:2px}

/* Counties dropdown — every page's header nav is now the same full set of
   site-wide links (Home / Operational Areas / Impact Dashboard / Counties /
   About) so any page can reach any other page from its own header; the 4
   county pages are grouped into this dropdown instead of 4 separate nav
   links so the row stays short. Click-toggled (not hover-only) so it works
   identically with mouse, keyboard and touch. */
.nav-dd{position:relative}
.nav-dd-btn{
  background:none;color:var(--muted);border:1px solid transparent;cursor:pointer;
  font-family:'Barlow Condensed';font-weight:600;text-transform:uppercase;letter-spacing:.08em;
  font-size:13.5px;padding:6px 11px;border-radius:6px;display:inline-flex;align-items:center;gap:5px;
  transition:.15s;
}
.nav-dd-btn:hover{color:var(--text);border-color:var(--line)}
.nav-dd-btn:focus-visible{outline:2px solid var(--alert);outline-offset:2px}
.nav-dd-btn.active{color:#0A0805;background:var(--alert);border-color:var(--alert)}
.nav-dd-btn .caret{font-size:9px;transition:transform .15s}
.nav-dd.open .nav-dd-btn .caret{transform:rotate(180deg)}
.nav-dd-menu{
  display:none;position:absolute;top:calc(100% + 6px);left:0;min-width:170px;z-index:1300;
  background:rgba(23,19,12,.97);border:1px solid var(--line);border-radius:8px;
  box-shadow:0 10px 30px rgba(0,0,0,.5);padding:6px;
}
.nav-dd.open .nav-dd-menu{display:block}
.nav-dd-menu a{
  display:block;padding:8px 12px;border-radius:6px;color:var(--muted);text-decoration:none;
  font-family:'Barlow Condensed';font-weight:600;text-transform:uppercase;letter-spacing:.06em;font-size:13px;
}
.nav-dd-menu a:hover{color:var(--text);background:rgba(240,178,46,.14)}
.nav-dd-menu a.active{color:#0A0805;background:var(--alert)}
.nav-dd-menu a:focus-visible{outline:2px solid var(--alert);outline-offset:2px}

.head-right{margin-left:auto;display:flex;align-items:center;gap:14px;flex-wrap:wrap}

/* hamburger toggle + collapsible nav panel — desktop: nav-collapse is
   display:contents so its children (nav.site, .head-right) sit directly in
   header's own flex row exactly as before, and the toggle button is hidden.
   Mobile: the toggle appears, nav-collapse becomes a real dropdown panel
   pinned below the header instead of wrapping the header into 5+ tall rows
   (which used to eat most of the screen and hide the map/content beneath). */
.navToggle{
  display:none;margin-left:auto;background:rgba(38,33,21,.7);color:var(--text);
  border:1px solid var(--line);border-radius:6px;width:40px;height:40px;flex:none;
  align-items:center;justify-content:center;font-size:19px;line-height:1;cursor:pointer;
}
.navToggle:hover{border-color:var(--alert)}
.navToggle:focus-visible{outline:2px solid var(--alert);outline-offset:2px}
.nav-collapse{display:contents}

/* kiosk / presentation mode toggle — a plain sibling of nav-collapse (not inside it) so it
   stays visible even once kiosk-active hides everything else in the header, on every
   breakpoint: last item in the row on desktop, next to the hamburger on mobile. */
.kioskBtn{
  display:flex;align-items:center;justify-content:center;flex:none;
  background:rgba(38,33,21,.7);color:var(--text);border:1px solid var(--line);border-radius:6px;
  width:40px;height:40px;font-size:16px;line-height:1;cursor:pointer;
}
.kioskBtn:hover{border-color:var(--alert)}
.kioskBtn:focus-visible{outline:2px solid var(--alert);outline-offset:2px}

body.kiosk-active .nav-collapse{display:none !important}
body.kiosk-active .navToggle{display:none !important}
body.kiosk-active .brand .sub{display:none}
body.kiosk-active header{padding-top:8px;padding-bottom:8px}
body.kiosk-active .kioskBtn{border-color:var(--emergency);color:var(--emergency)}
/* This is a DIFFERENT breakpoint from the 1020/1021px one used for the
   map-pane/content-pane side-by-side layout above — that one's about screen
   real estate for two panes, this one's about whether the header's own nav
   (now 5 links + a dropdown, plus the whole search/live/unit/glossary/
   export/refresh cluster) fits on one row without wrapping. Measured: it
   only reliably fits at >=1520px, and unpredictably wraps into 2 rows
   anywhere below that (flex-wrap jumps between 1 and 2 rows
   non-monotonically as items reflow near the edge — even 1440px, a common
   "wide laptop" width, wraps). 1560px gives real clearance instead of
   sitting right on the edge of that instability, so mid-size laptop
   screens reliably get the clean compact header instead of an occasional
   2-row one. */
@media(max-width:1560px){
  .navToggle{display:flex}
  .nav-collapse{
    display:none;position:fixed;top:var(--header-h,68px);left:0;right:0;z-index:1190;
    flex-direction:column;align-items:stretch;gap:14px;
    background:rgba(23,19,12,.97);border-bottom:1px solid var(--line);
    padding:16px 20px 20px;max-height:calc(100vh - var(--header-h,68px));overflow-y:auto;
  }
  .nav-collapse.open{display:flex}
  .nav-collapse nav.site{flex-direction:column;gap:6px}
  /* inside the mobile panel the dropdown opens inline (pushes the links
     below it down) rather than floating over the panel like on desktop */
  .nav-collapse .nav-dd-btn{width:100%;justify-content:space-between}
  .nav-collapse .nav-dd-menu{
    position:static;top:auto;left:auto;box-shadow:none;border:none;
    background:rgba(0,0,0,.22);margin-top:4px;min-width:0;
  }
  .nav-collapse .head-right{margin-left:0;flex-direction:column;align-items:stretch;gap:10px}
  .nav-collapse .search-wrap input{width:100%}
  .brand .sub{display:none}
  .brand h1{font-size:19px}
  /* two icon buttons (hamburger + kiosk) now sit beside a compact brand row —
     the default 18px header gap and 40px buttons were sized for one button
     alone and don't leave room for both on narrow phones, wrapping to a
     second row. Tighter here specifically. */
  header{gap:8px;padding-left:14px;padding-right:14px}
  .navToggle,.kioskBtn{width:34px;height:34px;font-size:16px}
}
@media(max-width:420px){
  .brand h1{font-size:14.5px}
  .brand-logo{height:24px}
}
.livepill{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);letter-spacing:.08em;text-transform:uppercase;font-family:'Barlow Condensed';font-weight:600}
.dot{width:8px;height:8px;border-radius:50%;background:var(--normal);animation:pulse 1.6s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(127,166,83,.5)}70%{box-shadow:0 0 0 8px rgba(127,166,83,0)}100%{box-shadow:0 0 0 0 rgba(127,166,83,0)}}
.clock{font-family:'IBM Plex Mono';font-size:13px}
button.refresh{background:rgba(38,33,21,.7);color:var(--text);border:1px solid var(--line);padding:7px 14px;border-radius:6px;font-family:'Barlow Condensed';font-weight:600;letter-spacing:.08em;text-transform:uppercase;font-size:13px;cursor:pointer;transition:border-color .2s;pointer-events:auto}
button.refresh:hover{border-color:var(--alert)}
button.refresh:focus-visible{outline:2px solid var(--alert);outline-offset:2px}

/* stat strip — a coloured top accent per cell signals what kind of number it is (live
   climate signal / alert count / static census / brand context) at a glance, before you've
   even read the label. The need-index cell is the lead KPI so it's wider and carries the same
   Watch/Elevated/High/Critical gauge used on the county pages, instead of a bare number, so the
   colour-band context reads immediately rather than needing a click-through to a detail page. */
.strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(165px,100%),1fr));gap:10px;padding:14px 22px;max-width:1440px;margin:0 auto}
.strip .cell{padding:13px 16px 14px;border-radius:10px;position:relative;overflow:hidden}
.strip .cell::before{content:"";position:absolute;top:0;left:0;right:0;height:3px}
.cell-accent-brand::before{background:var(--pacida-green)}
.cell-accent-static::before{background:var(--line)}
.cell-accent-alert::before{background:var(--alarm)}
.cell-hero::before{background:var(--alert)}
.cell .k{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.14em;font-family:'Barlow Condensed';font-weight:600;margin-bottom:4px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.cell .v{font-family:'IBM Plex Mono';font-size:22px;font-weight:600}
.cell .n{font-size:11.5px;color:var(--faint);margin-top:2px}

.cell-hero{grid-column:span 2}
.cell-hero .v{font-size:32px;line-height:1}
.cell-hero .gauge{margin:10px 0 5px}
.cell-hero .gauge-labels{font-size:9.5px}

.live-tag{display:inline-flex;align-items:center;gap:4px;font-size:9px;letter-spacing:.1em;color:var(--normal);font-weight:700}
.live-tag .dot{width:5px;height:5px}
.static-tag{
  font-size:9px;letter-spacing:.05em;color:var(--faint);font-weight:600;text-transform:none;
  background:rgba(176,144,106,.16);padding:2px 6px;border-radius:3px;font-family:'Archivo';
}

.zone-dots{display:flex;gap:5px;margin-top:7px}
.zone-dots .zd{width:9px;height:9px;border-radius:50%;background:var(--line);transition:background .3s}

@media(max-width:520px){.cell-hero{grid-column:span 1}}

/* main layout */
main{display:block}
.map-legend{position:absolute;bottom:14px;left:14px;right:14px;z-index:900;border-radius:10px;padding:12px 14px;font-size:12px;max-width:270px}
.map-legend h4{font-family:'Barlow Condensed';text-transform:uppercase;letter-spacing:.1em;font-size:12px;color:var(--muted);margin-bottom:8px}
.lg-row{display:flex;align-items:center;gap:8px;margin-bottom:5px}
.lg-swatch{width:12px;height:12px;border-radius:50%;flex:none}
.lg-note{color:var(--faint);font-size:11px;margin-top:6px;line-height:1.4}
/* index.html: map now fills the whole background, so on desktop the legend
   needs to sit over the visible (unobstructed) right-hand portion of it, not
   bottom-left where the content column now lives on top of the map.
   position:fixed (not the inherited absolute) because its ancestor is now
   .content-pane — the full scrolling page height, not a viewport-height
   sticky pane like the old map-pane was — so absolute positioning would
   anchor "bottom" to the bottom of the whole 2500px+ page instead of the
   visible viewport corner. Mobile: content-inner is full-width (no
   unobstructed "other side" to float over), so a fixed legend would just
   sit glued on top of whatever card happens to scroll underneath it —
   hidden there instead, same as the map itself being mostly covered. */
.legend-right{display:none}
@media(min-width:1021px){
  .legend-right{display:block;position:fixed;left:auto;right:14px;bottom:14px}
}

/* index.html: the content column reads as "one side" of the full-bleed map —
   the map itself is always the whole background and stays fully interactive
   (drag/zoom/pan) everywhere, including the portion visually behind this
   column; this is a plain CSS width constraint on a normal-flow element, so
   nothing the map does can ever move or affect it. Full width on mobile,
   where there isn't room for a visible "other side" anyway. */
@media(min-width:1021px){
  .index-hero-col{max-width:56%}
}

/* areas.html — a full-screen, map-only view: header takes its natural
   height, the map fills the rest of the viewport, no page scroll */
.areas-shell{display:flex;flex-direction:column;height:100vh;overflow:hidden}
.areas-body{position:relative;flex:1;min-height:0}
.areas-body #map{position:absolute;inset:0}
/* header.header-overlay takes areas.html's header out of flow entirely, so
   .areas-body naturally fills the full 100vh (map runs edge-to-edge behind
   the header) — the area-picker just needs pushing down below the header. */
.areas-body::before{
  content:"";position:absolute;top:0;left:0;right:0;height:170px;z-index:850;pointer-events:none;
  background:linear-gradient(to bottom, rgba(28,19,11,.42) 0%, rgba(28,19,11,.16) 55%, transparent 100%);
}
.area-picker{position:absolute;top:calc(var(--header-h,68px) + 14px);left:14px;z-index:900;border-radius:10px;padding:12px 14px;max-width:220px}
.area-picker h4{font-family:'Barlow Condensed';text-transform:uppercase;letter-spacing:.1em;font-size:12px;color:var(--muted);margin-bottom:8px}
#areaButtons{display:flex;flex-direction:column;gap:6px}
.area-btn{
  background:rgba(38,33,21,.7);color:var(--text);border:1px solid var(--line);
  padding:8px 12px;border-radius:6px;font-family:'Barlow Condensed';font-weight:600;
  letter-spacing:.05em;text-transform:uppercase;font-size:13px;cursor:pointer;text-align:left;
  transition:border-color .2s;
}
.area-btn:hover{border-color:var(--alert)}
.area-btn:focus-visible{outline:2px solid var(--alert);outline-offset:2px}
@media(max-width:640px){
  /* Short viewports (mobile, header taking several wrapped rows) leave little
     room for the map — keep both overlay panels compact so the map itself,
     not two stacked info boxes, stays the dominant thing on screen. */
  .area-picker{max-width:calc(100% - 28px);padding:8px 10px}
  .area-picker h4{margin-bottom:6px}
  #areaButtons{flex-direction:row;flex-wrap:wrap;gap:5px}
  .area-btn{padding:6px 10px;font-size:11.5px}
  .map-legend{padding:8px 10px;max-width:none}
  .map-legend h4{margin-bottom:5px}
  .lg-row{margin-bottom:3px;font-size:11px}
  .lg-note{display:none}
}

/* cards */
.cards{display:flex;flex-direction:column;gap:14px}
/* minmax(min(320px,100%),1fr) not a plain 320px — a bare 320px minimum doesn't
   account for the container's own side padding, so any viewport narrower than
   ~364px (320px + padding) forced this grid wider than the page itself. min()
   caps the minimum at whatever's actually available instead of a fixed guess. */
.cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:14px;margin-top:10px}

/* entry-point cards */
.entry-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:14px;max-width:1440px;margin:0 auto;padding:0 22px}
.entry-card{
  display:block;border-radius:14px;padding:20px 22px;text-decoration:none;color:inherit;
  transition:border-color .2s,transform .2s;position:relative;
}
a.entry-card:hover,a.entry-card:focus-visible{border-color:var(--pacida-green);transform:translateY(-2px)}
a.entry-card:focus-visible{outline:2px solid var(--pacida-green);outline-offset:2px}
.entry-card.current{border-color:rgba(52,180,75,.4)}
.entry-eyebrow{display:block;font-family:'IBM Plex Mono';font-size:11px;color:var(--pacida-green);letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}
.entry-card h3{font-family:'Barlow Condensed';font-weight:600;font-size:19px;letter-spacing:.04em;text-transform:uppercase;margin-bottom:8px}
.entry-card h3 .arrow-mark{color:var(--alert);margin-left:4px}
.entry-card p{color:var(--muted);font-size:12.5px;line-height:1.5}

/* about.html — Strategic Vision 2026-2030 section, drawn from PACIDA's own strategic plan */
.vision-callout{
  border-left:3px solid var(--pacida-green);padding:4px 0 4px 20px;margin:16px 0 20px;
}
.vision-callout .vc-label{
  font-family:'Barlow Condensed';font-weight:600;font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--pacida-green);margin-bottom:6px;
}
.vision-callout .vc-text{
  font-family:'Barlow Condensed';font-weight:600;font-size:22px;letter-spacing:.01em;color:var(--text);
  line-height:1.35;
}
.vision-callout.mission{border-left-color:var(--alert)}
.vision-callout.mission .vc-label{color:var(--alert)}
.vision-callout.mission .vc-text{font-family:'Archivo';font-weight:500;font-size:15px;text-transform:none}

.goal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:14px;margin:18px 0}
.goal-card{
  border:1px solid rgba(237,227,204,.14);border-radius:12px;padding:16px 18px;
  background:rgba(38,33,21,.5);position:relative;overflow:hidden;
}
.goal-card::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--alert)}
.goal-card .gc-num{
  font-family:'IBM Plex Mono';font-size:11px;color:var(--faint);letter-spacing:.1em;text-transform:uppercase;margin-bottom:6px;
}
.goal-card h4{font-family:'Barlow Condensed';font-weight:600;font-size:15px;text-transform:uppercase;letter-spacing:.03em;margin-bottom:6px;color:var(--text)}
.goal-card p{color:var(--muted);font-size:12.5px;line-height:1.5}

.value-pills{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.value-pill{
  border:1px solid var(--line);border-radius:20px;padding:6px 14px;font-size:12px;
  font-family:'Barlow Condensed';font-weight:600;letter-spacing:.04em;color:var(--muted);
  background:rgba(38,33,21,.5);
}

.expansion-note{
  border:1px dashed rgba(52,180,75,.5);border-radius:10px;padding:14px 16px;margin-top:16px;
  background:rgba(52,180,75,.06);
}
.expansion-note b{color:var(--pacida-green)}
.expansion-note .flagship-label{
  font-family:'Barlow Condensed';font-weight:600;font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--alert);margin:12px 0 8px;
}
.flagship-pills{display:flex;flex-wrap:wrap;gap:8px}
.flagship-pill{
  border:1px solid rgba(240,178,46,.4);border-radius:20px;padding:6px 14px;font-size:12px;
  font-family:'Barlow Condensed';font-weight:600;letter-spacing:.04em;color:var(--text);
  background:rgba(240,178,46,.1);
}

/* latest updates carousel */
.updates-carousel{display:flex;align-items:stretch;gap:12px;margin-top:14px}
.uc-nav{
  flex:none;width:40px;border-radius:8px;background:rgba(38,33,21,.7);border:1px solid var(--line);
  color:var(--text);cursor:pointer;font-size:16px;transition:border-color .2s;
}
.uc-nav:hover{border-color:var(--alert)}
.uc-nav:focus-visible{outline:2px solid var(--alert);outline-offset:2px}
.uc-slide{flex:1;min-width:0;padding:6px 4px}
.uc-year{font-family:'IBM Plex Mono';color:var(--alert);font-size:13px;margin-bottom:6px}
.uc-year .now-badge{background:var(--pacida-green);color:#08210F;font-family:'Barlow Condensed';font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:10px;padding:2px 8px;border-radius:3px;margin-left:8px;vertical-align:1px}
.uc-text{font-size:13.5px;color:var(--muted);line-height:1.6}
.uc-sources{font-size:11px;color:var(--faint);margin-top:8px;line-height:1.5}
.uc-sources a{color:var(--faint);text-decoration:underline;text-underline-offset:2px}
.uc-sources a:hover{color:var(--alert)}
.uc-sources:empty{display:none}
.uc-foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px}
.uc-dots{display:flex;gap:6px}
.uc-dot{width:8px;height:8px;border-radius:50%;background:var(--line);border:none;cursor:pointer;padding:0}
.uc-dot.active{background:var(--alert);width:20px;border-radius:4px;transition:width .2s}
.uc-dot:focus-visible{outline:2px solid var(--alert);outline-offset:2px}
.uc-pause{background:none;border:1px solid var(--line);color:var(--muted);border-radius:6px;padding:5px 10px;font-size:11px;cursor:pointer;font-family:'IBM Plex Mono'}
.uc-pause:hover{border-color:var(--alert);color:var(--text)}
.uc-pause:focus-visible{outline:2px solid var(--alert);outline-offset:2px}

/* key resources grid */
.resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:12px;margin-top:14px}
.resource-card{
  display:block;text-align:left;border:1px solid rgba(237,227,204,.12);border-radius:10px;padding:14px 16px;
  background:rgba(38,33,21,.5);text-decoration:none;color:inherit;cursor:pointer;font-family:inherit;
  transition:border-color .2s;width:100%;
}
.resource-card:hover,.resource-card:focus-visible{border-color:var(--alert)}
.resource-card:focus-visible{outline:2px solid var(--alert);outline-offset:2px}
.resource-card b{display:block;font-family:'Barlow Condensed';font-weight:600;font-size:14.5px;letter-spacing:.03em;text-transform:uppercase;margin-bottom:5px;color:var(--text)}
.resource-card span{font-size:12px;color:var(--muted);line-height:1.5}
.resource-card .ext-mark{color:var(--alert);margin-left:4px}
.card{border-radius:12px;padding:16px 18px;transition:border-color .2s}
.card.clickable{cursor:pointer}
.card.clickable:hover{border-color:var(--muted)}
.card:focus-visible{outline:2px solid var(--alert);outline-offset:2px}
.card-top{display:flex;align-items:flex-start;gap:12px}
.card h3{font-family:'Barlow Condensed';font-weight:600;font-size:19px;letter-spacing:.05em;text-transform:uppercase}
.card .zone{font-size:11.5px;color:var(--muted)}
.badge{margin-left:auto;flex:none;font-family:'Barlow Condensed';font-weight:700;font-size:12.5px;letter-spacing:.1em;text-transform:uppercase;padding:4px 10px;border-radius:4px;color:#0A0805;text-shadow:0 1px 0 rgba(255,255,255,.12)}
.gauge{margin:13px 0 9px}
.gauge-track{height:10px;border-radius:5px;position:relative;background:linear-gradient(90deg,var(--normal) 0%,var(--alert) 45%,var(--alarm) 70%,var(--emergency) 100%);opacity:.92}
.gauge-marker{position:absolute;top:-4px;width:4px;height:18px;background:var(--text);border-radius:2px;box-shadow:0 0 0 2px rgba(0,0,0,.6);transition:left 1s ease}
.gauge-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--faint);text-transform:uppercase;letter-spacing:.1em;margin-top:5px;font-family:'Barlow Condensed';font-weight:600}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
@media(max-width:460px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.m .mk{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-family:'Barlow Condensed';font-weight:600}
.m .mv{font-family:'IBM Plex Mono';font-size:16px;font-weight:500;margin-top:2px}
.m .mv small{font-size:11px;color:var(--muted)}
.hh-line{display:flex;gap:16px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--line);font-size:12.5px;color:var(--muted);flex-wrap:wrap}
.hh-line b{color:var(--text);font-family:'IBM Plex Mono';font-weight:500}
.spark .mk{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;font-family:'Barlow Condensed';font-weight:600;margin:12px 0 4px}
.spark svg{width:100%;height:46px;display:block}
.loading{color:var(--faint);font-size:13px;font-family:'IBM Plex Mono';position:relative;overflow:hidden;display:inline-block}
.loading::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,transparent,rgba(251,247,236,.12),transparent);
  animation:shimmer 1.6s infinite;
}
@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}

/* wide panels */
.wide{max-width:1440px;margin:0 auto;padding:0 22px 40px}
.panel{border-radius:14px;padding:20px 22px;margin-top:22px}
.panel h2{font-family:'Barlow Condensed';font-weight:600;font-size:19px;letter-spacing:.07em;text-transform:uppercase;margin-bottom:12px}
.panel h2 .tag{font-size:12px;color:var(--muted);letter-spacing:.1em;margin-left:8px}
.panel p{color:var(--muted);font-size:13.5px;max-width:960px;margin-bottom:10px}
.panel p b{color:var(--text)}
.src-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:14px;margin-top:14px}
.src{border:1px solid rgba(237,227,204,.12);border-radius:8px;padding:12px 14px;font-size:12.5px;background:rgba(38,33,21,.5)}
.src > b{display:block;font-family:'Barlow Condensed';text-transform:uppercase;letter-spacing:.08em;font-size:13px;margin-bottom:4px}
.src span{color:var(--muted)}
.src a{color:var(--alert);text-decoration:none}
.src a:hover{text-decoration:underline}

/* about.html — "how this site works" mini-guide */
.howit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:14px;margin-top:6px}
.howit{border:1px solid rgba(237,227,204,.12);border-radius:8px;padding:12px 14px;font-size:12.5px;background:rgba(38,33,21,.5)}
.howit > b{display:block;font-family:'Barlow Condensed';text-transform:uppercase;letter-spacing:.08em;font-size:13px;margin-bottom:4px;color:var(--alert)}
.howit span{color:var(--muted);line-height:1.5}
footer{margin:22px;border-radius:12px;padding:16px 22px;color:var(--muted);font-size:12px;display:flex;gap:14px;flex-wrap:wrap;justify-content:space-between;align-items:center}
footer .foot-brand{display:flex;align-items:center;gap:10px}
footer .brand-logo{height:24px}

/* tables */
.ptable{width:100%;border-collapse:collapse;font-size:12.5px;margin-top:8px}
.ptable th{text-align:left;font-family:'Barlow Condensed';text-transform:uppercase;letter-spacing:.08em;font-size:12px;color:var(--muted);font-weight:600;padding:8px 10px;border-bottom:1px solid var(--line)}
.ptable td{padding:9px 10px;border-bottom:1px solid rgba(58,51,32,.7);vertical-align:top}
.ptable tr:last-child td{border-bottom:none}
.ptable td.mono,.ptable td .mono{font-family:'IBM Plex Mono';white-space:nowrap}
.ptable td small{color:var(--faint)}
.chip{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:7px;vertical-align:-1px}
.table-scroll{overflow-x:auto;max-width:100%}

/* livelihood bars */
.lz{margin-top:10px}
.lz-row{display:grid;grid-template-columns:190px 1fr 52px;gap:10px;align-items:center;margin-bottom:9px;font-size:12.5px}
@media(max-width:560px){.lz-row{grid-template-columns:130px 1fr 44px}}
.lz-bar{height:12px;border-radius:6px;background:rgba(237,227,204,.08);overflow:hidden}
.lz-fill{height:100%;border-radius:6px}
.lz-pct{font-family:'IBM Plex Mono';text-align:right;color:var(--muted)}

/* seasonal calendar */
.season{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;margin-top:12px}
.season .mo{border-radius:6px;padding:8px 2px 6px;text-align:center;font-family:'Barlow Condensed';font-weight:600;font-size:12px;letter-spacing:.08em;border:1px solid rgba(237,227,204,.1)}
.season .mo small{display:block;font-family:'Archivo';font-weight:400;font-size:9.5px;color:rgba(42,29,18,.85);letter-spacing:0;margin-top:2px;text-transform:none}
.mo.rain{background:var(--water);color:#EDF5F7}
.mo.rain small{color:rgba(237,245,247,.85)}
.mo.dry{background:rgba(217,108,43,.3);color:var(--text)}
.mo.dry small{color:var(--muted)}
.season-note{font-size:12px;color:var(--faint);margin-top:8px}

/* timeline */
.timeline{margin-top:12px;border-left:2px solid var(--line);padding-left:18px}
.tl{position:relative;padding-bottom:14px}
.tl:before{content:"";position:absolute;left:-24px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--alarm);border:2px solid var(--bg)}
.tl.now:before{background:var(--emergency);animation:pulse 1.6s infinite}
.tl .yr{font-family:'IBM Plex Mono';font-size:13px;color:var(--alert)}
.tl .tx{font-size:13px;color:var(--muted);max-width:820px}
.tl .tx b{color:var(--text)}

/* live site grid */
.sites{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(215px,100%),1fr));gap:12px;margin-top:12px}
.site-card{border-radius:10px;padding:12px 14px;border:1px solid rgba(237,227,204,.12);background:rgba(38,33,21,.5)}
.site-card h4{font-family:'Barlow Condensed';font-weight:600;font-size:15px;letter-spacing:.05em;text-transform:uppercase;display:flex;align-items:center;gap:8px}
.site-dot{width:9px;height:9px;border-radius:50%;flex:none}
.site-card .sc-sub{font-size:10.5px;color:var(--faint);margin-bottom:8px}
.site-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);padding:2px 0}
.site-row b{font-family:'IBM Plex Mono';font-weight:500;color:var(--text)}

/* leaflet theme */
.leaflet-container{background:#1D140C;font-family:'Archivo'}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:var(--panel);color:var(--text);border:1px solid var(--line)}
.leaflet-popup-content{margin:12px 14px;font-size:13px;line-height:1.5}
.leaflet-popup-content h4{font-family:'Barlow Condensed';text-transform:uppercase;letter-spacing:.07em;font-size:16px;margin-bottom:4px}
.pop-k{color:var(--muted)} .pop-v{font-family:'IBM Plex Mono'}
.pop-reach{margin-top:8px;padding-top:8px;border-top:1px dashed var(--line)}
.pop-reach .pop-v{font-family:'Archivo';color:var(--text);display:block;margin-top:2px}
.popup-cta{
  display:block;margin-top:10px;text-align:center;background:var(--pacida-green);color:#08210F;
  text-decoration:none;font-family:'Barlow Condensed';font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;font-size:12.5px;padding:8px 10px;border-radius:6px;transition:background .15s;
}
.popup-cta:hover,.popup-cta:focus-visible{background:var(--alert)}
.popup-cta:focus-visible{outline:2px solid var(--text);outline-offset:1px}
.leaflet-control-layers{background:rgba(31,27,18,.93) !important;color:var(--text) !important;border:1px solid var(--line) !important;border-radius:8px !important;font-family:'Archivo';font-size:12.5px}
.leaflet-control-layers label{margin:2px 0}
.shade-tip{background:rgba(31,27,18,.95);color:var(--text);border:1px solid var(--line);border-radius:6px;font-family:'Archivo';font-size:12.5px}
.region-label{font-family:'Barlow Condensed';font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text);text-shadow:0 1px 4px #000,0 0 10px #000;font-size:13px;white-space:nowrap}
.site-label{font-family:'Barlow Condensed';font-weight:600;letter-spacing:.06em;color:#fff;text-shadow:0 1px 3px #000,0 0 8px #000;font-size:11px;white-space:nowrap}
.village-label{font-family:'Archivo';font-weight:500;letter-spacing:.02em;color:#EDE3CC;text-shadow:0 1px 3px #000,0 0 6px #000;font-size:10px;white-space:nowrap;opacity:.9}

/* header search box */
.search-wrap{position:relative;pointer-events:auto}
.search-wrap input{
  background:rgba(38,33,21,.7);color:var(--text);border:1px solid var(--line);border-radius:6px;
  padding:7px 12px;font-family:'Archivo';font-size:13px;width:190px;outline:none;transition:border-color .2s;
}
.search-wrap input::placeholder{color:var(--faint)}
.search-wrap input:focus{border-color:var(--alert)}
.search-results{
  position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:1300;display:none;
  background:rgba(23,19,12,.97);border:1px solid var(--line);border-radius:8px;overflow:hidden;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
}
.sr-item{padding:8px 12px;font-size:12.5px;cursor:pointer;border-bottom:1px solid var(--line)}
.sr-item:last-child{border-bottom:none}
.sr-item:hover,.sr-item.active{background:rgba(224,162,27,.15);color:var(--text)}

/* glossary panel */
.gl-panel{
  position:fixed;top:0;right:0;height:100vh;width:min(360px,90vw);z-index:1400;
  background:rgba(23,19,12,.97);border-left:1px solid var(--line);
  transform:translateX(100%);transition:transform .25s ease;pointer-events:auto;
  display:flex;flex-direction:column;
}
.gl-panel.open{transform:translateX(0)}
.gl-head{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line)}
.gl-head h3{font-family:'Barlow Condensed';text-transform:uppercase;letter-spacing:.08em;font-size:16px;flex:1}
.gl-close{background:none;border:1px solid var(--line);color:var(--text);border-radius:6px;width:30px;height:30px;cursor:pointer;font-size:16px;line-height:1}
.gl-close:hover{border-color:var(--alert)}
.gl-close:focus-visible,.gl-search:focus-visible{outline:2px solid var(--alert);outline-offset:2px}
.gl-search{margin:12px 18px;background:rgba(38,33,21,.7);border:1px solid var(--line);border-radius:6px;color:var(--text);padding:8px 12px;font-size:13px;font-family:'Archivo'}
.gl-body{overflow-y:auto;padding:0 18px 18px;flex:1}
.gl-item{padding:10px 0;border-bottom:1px solid var(--line)}
.gl-item b{display:block;font-family:'Barlow Condensed';text-transform:uppercase;letter-spacing:.06em;font-size:13px;color:var(--alert);margin-bottom:3px}
.gl-item span{font-size:12.5px;color:var(--muted)}
.gl-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:1390;display:none;pointer-events:auto}
.gl-panel.open ~ .gl-backdrop, .gl-panel.open + .gl-backdrop{display:block}

/* header icon buttons (unit toggle, glossary, export) */
button.iconbtn{
  background:rgba(38,33,21,.7);color:var(--text);border:1px solid var(--line);
  padding:7px 12px;border-radius:6px;font-family:'IBM Plex Mono';font-weight:500;
  font-size:12.5px;cursor:pointer;transition:border-color .2s;pointer-events:auto;
}
button.iconbtn:hover{border-color:var(--alert)}
button.iconbtn:focus-visible{outline:2px solid var(--alert);outline-offset:2px}

/* sortable compare table */
.ptable th.sortable{cursor:pointer;user-select:none}
.ptable th.sortable:hover{color:var(--text)}
.ptable th.sortable:focus-visible{outline:2px solid var(--alert);outline-offset:-2px}
.ptable th.sortable .arrow{display:inline-block;margin-left:4px;opacity:.6;font-size:10px}
.ptable th.sortable.active .arrow{opacity:1;color:var(--alert)}
.row-name-link{color:inherit;text-decoration:none}
.row-name-link:hover,.row-name-link:focus-visible{text-decoration:underline}
.row-name-link:focus-visible{outline:2px solid var(--alert);outline-offset:2px}

/* accordions (sector deep-dive) */
.acc-list{margin-top:10px}

/* priority needs */
.needs-list{display:flex;flex-direction:column;gap:2px}
.need-row{display:flex;gap:14px;padding:12px 4px;border-bottom:1px dashed var(--line)}
.need-row:last-child{border-bottom:none}
.need-num{font-family:'IBM Plex Mono';font-size:20px;font-weight:600;color:var(--alarm);flex:none;width:34px}
.need-row b{display:block;font-family:'Barlow Condensed';font-weight:600;font-size:14.5px;letter-spacing:.03em;text-transform:uppercase;margin-bottom:4px;color:var(--text)}
.need-row span{font-size:13px;color:var(--muted);line-height:1.55}
details.acc{border:1px solid rgba(237,227,204,.12);border-radius:8px;background:rgba(38,33,21,.5);margin-bottom:10px;overflow:hidden}
details.acc summary{
  padding:12px 14px;cursor:pointer;list-style:none;font-family:'Barlow Condensed';
  text-transform:uppercase;letter-spacing:.08em;font-size:13px;display:flex;align-items:center;gap:8px;
}
details.acc summary::-webkit-details-marker{display:none}
details.acc summary:before{content:"+";color:var(--alert);font-family:'IBM Plex Mono';width:14px;flex:none}
details.acc[open] summary:before{content:"–"}
details.acc summary:hover{color:var(--text)}
details.acc .acc-body{padding:0 14px 14px;font-size:12.5px;color:var(--muted)}

/* history chart panel */
.hist-cap{font-size:12px;color:var(--faint);margin-top:6px}
.hist-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:6px;padding-top:10px;border-top:1px solid var(--line)}
.hist-legend span{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);font-family:'Barlow Condensed';font-weight:500;letter-spacing:.02em}
.hist-sw{width:13px;height:13px;border-radius:3px;flex:none;display:inline-block}
.hist-sw-past{background:#6FA3B4;opacity:.9}
.hist-sw-now{background:#F0B22E;opacity:.32;border:1.5px dashed #F0B22E;box-sizing:border-box}
.hist-sw-norm{background:none;border-top:2px dashed #F0B22E;height:0;align-self:center}
.hist-sw-season{background:#34B44B;opacity:.28}
@media(max-width:520px){.hist-legend{gap:10px 16px}}

/* PACIDA interventions */
.office-pin{color:var(--pacida-red);font-size:18px;text-shadow:0 0 3px #000,0 0 7px #000,0 0 2px #fff;line-height:1}
.interv-list{display:flex;flex-direction:column;gap:2px;margin-top:10px;max-height:420px;overflow-y:auto}
.interv-row{display:flex;gap:10px;padding:9px 4px;border-bottom:1px solid var(--line)}
.interv-dot-sw{width:10px;height:10px;border-radius:50%;flex:none;margin-top:4px}
.interv-title{font-size:13px;color:var(--text)}
.interv-meta{font-size:11.5px;color:var(--muted);margin-top:2px}
.status-ongoing{color:var(--alert);font-weight:600}
.status-done{color:var(--faint)}

/* impact dashboard */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));gap:12px;margin-top:12px}
.stat-tile{border:1px solid rgba(251,247,236,.12);border-radius:10px;padding:14px 16px;background:rgba(38,33,21,.5)}
.stat-tile .sn{font-family:'IBM Plex Mono';font-size:26px;font-weight:600;color:var(--alert)}
.stat-tile .sl{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4}
.split{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:12px}
@media(max-width:800px){.split{grid-template-columns:1fr}}
.split h3{font-family:'Barlow Condensed';text-transform:uppercase;letter-spacing:.08em;font-size:14px;margin-bottom:10px;color:var(--text)}
.split.done h3{color:var(--normal)}
.split.needs h3{color:var(--alarm)}
.ach-row{display:flex;gap:10px;padding:8px 0;border-bottom:1px dashed var(--line);align-items:baseline}
.ach-row .an{font-family:'IBM Plex Mono';font-weight:700;color:var(--normal);flex:none;min-width:64px}
.ach-row .al{font-size:12.5px;color:var(--muted)}
.chal-row{padding:10px 0;border-bottom:1px dashed var(--line)}
.chal-row .cc{font-size:12.5px;color:var(--text);font-weight:600}
.chal-row .cm{font-size:12px;color:var(--muted);margin-top:3px}
.legend-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;justify-content:center}

/* partner/donor pills */
.partner-grid{display:flex;flex-wrap:wrap;gap:8px}
.partner-pill{
  background:rgba(52,180,75,.1);border:1px solid rgba(52,180,75,.35);color:var(--text);
  padding:6px 13px;border-radius:20px;font-size:12.5px;font-family:'Archivo';
}
.legend-item{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.legend-sw{width:10px;height:10px;border-radius:50%;flex:none}
.hero-logo-row{display:flex;gap:20px;align-items:center;flex-wrap:wrap}
.hero-logo{height:64px;width:auto;flex:none}
.hero-stats{display:flex;gap:28px;flex-wrap:wrap;margin-top:14px}
.hero-stats .hs{text-align:left}
.hero-stats .hn{font-family:'IBM Plex Mono';font-size:30px;font-weight:700;color:var(--text)}
.hero-stats .hl{font-size:11.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-family:'Barlow Condensed';font-weight:600}
.chart-row{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:center}
@media(max-width:700px){.chart-row{grid-template-columns:1fr}}

/* filter chips */
.chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
button.chip-filter{
  background:rgba(38,33,21,.7);color:var(--muted);border:1px solid var(--line);
  padding:6px 13px;border-radius:20px;font-family:'Barlow Condensed';font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;font-size:12.5px;cursor:pointer;transition:.15s;
}
button.chip-filter:hover{color:var(--text);border-color:var(--muted)}
button.chip-filter.active{background:var(--alert);color:#0A0805;border-color:var(--alert)}
button.chip-filter:focus-visible{outline:2px solid var(--alert);outline-offset:2px}
.ptable tr.row-link{cursor:pointer}
.ptable tr.row-link:hover td{background:rgba(240,178,46,.08)}
.pacida-tag{display:inline-block;margin-left:6px;font-size:9.5px;padding:1px 6px;border-radius:3px;background:var(--pacida-green);color:#08210F;font-family:'Barlow Condensed';font-weight:700;letter-spacing:.06em;vertical-align:1px}

@media(max-width:640px){.search-wrap input{width:130px}}

/* touch targets: header controls meet the 44px minimum on touch-sized screens */
@media(max-width:760px){
  button.iconbtn,button.refresh{padding:11px 14px;min-height:44px}
  .search-wrap input{min-height:44px;padding:11px 12px}
  nav.site a{padding:11px 12px;min-height:44px;display:inline-flex;align-items:center}
  .gl-close{width:44px;height:44px}
  .chip-filter{min-height:40px;padding:9px 14px}
}
@media(prefers-reduced-motion:reduce){.dot,.tl.now:before,.loading::after{animation:none}.gauge-marker{transition:none}.halo-pulse{animation:none !important}}
