/* Page layout foundation. Shared design contracts: redesign.css; composition: direction.css. */

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --ink: #15191b; --ink-2: #15191b; --paper: #ffffff; --soft: #f5f6f6; --soft-2: #f5f6f6;
    --line: #f5f6f6; --line-2: #e2e4e4; --muted: #5d6366; --muted-2: #929798;
    --accent: #06bcd4; --accent-d: #15191b; --accent-wash: #f5f6f6;   /* BLUE accent for flood-map page */
    --low: #00e676; --mod: #fe5252; --high: #fe5252; --crit: #15191b; --dark: #15191b;
    --r: 8px; --r-lg: 14px; --r-xl: 20px;
  }
  html { scroll-behavior: smooth; }
  body { font-family: 'Inter', sans-serif; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
  h1,h2,h3,h4,h5 { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -0.02em; color: var(--ink); }
  ::selection { background: var(--accent); color: #ffffff; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
  .btn { display: inline-flex; align-items: center; gap: 9px; font-family: 'Plus Jakarta Sans'; font-weight: 600; font-size: 14.5px; padding: 12px 20px; border-radius: var(--r); cursor: pointer; transition: transform .15s, background .18s, border-color .18s; white-space: nowrap; }
  .btn-dark { background: var(--ink); color: #ffffff; border: 1px solid var(--ink); } .btn-dark:hover { background: #15191b; transform: translateY(-1px); }
  .btn-outline { background: #ffffff; color: var(--ink); border: 1px solid var(--line-2); } .btn-outline:hover { border-color: var(--ink); }
  .lnk { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 600; font-family: 'Plus Jakarta Sans'; font-size: 15px; } .lnk:hover { gap: 11px; }
  .eyebrow { font-family: 'Plus Jakarta Sans'; font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
  h2.sec { font-size: clamp(28px, 3.3vw, 42px); font-weight: 800; line-height: 1.1; }
  .sec-sub { color: var(--muted); font-size: 17px; max-width: 620px; line-height: 1.6; }
  section { padding: 92px 0; } .soft { background: var(--soft); }

  /* (legacy bare nav{} removed — it painted a white box behind the .gmenu <nav>; the live header is .gnav) */
  .nav-in { max-width: 1240px; margin: 0 auto; padding: 0 32px; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .brand { display: flex; align-items: center; gap: 10px; } .brand img { height: 30px; } .brand b { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
  .nav-links { display: flex; gap: 24px; list-style: none; } .nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .18s; } .nav-links a:hover, .nav-links a.on { color: var(--accent); }
  .nav-right { display: flex; align-items: center; gap: 14px; } .nav-right .login { font-size: 14.5px; font-weight: 500; }
  .hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; } .hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
  .hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);} .hamburger.open span:nth-child(2){opacity:0;} .hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
  .mmenu { display: none; position: fixed; top: 76px; left: 0; right: 0; background: #ffffff; border-bottom: 1px solid var(--line); padding: 18px 32px; flex-direction: column; z-index: 99; } .mmenu.open { display: flex; }
  .mmenu a { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 500; } .mmenu a:last-child { border: none; } .mmenu .mcta { margin-top: 12px; text-align: center; background: var(--ink); color: #ffffff; border-radius: var(--r); padding: 13px; }

  .hero { padding: 74px 0 30px; text-align: center; }
  .hero h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; max-width: 780px; margin: 0 auto; }
  .hero p.lead { font-size: 17.5px; color: var(--muted); margin: 20px auto 30px; max-width: 620px; }
  .hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
  .mapnote { text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: 16px; }
  .map-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
  .map-links a { display: inline-flex; align-items: center; gap: 6px; font-family: 'Plus Jakarta Sans'; font-weight: 600; font-size: 13.5px; color: var(--accent-d); }
  .map-links a:hover { gap: 9px; }
  .ladder3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 34px; }
  .ladder3 .rung { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: #ffffff; }
  .ladder3 .rung .k { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--accent-d); margin-bottom: 8px; }
  .ladder3 .rung h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
  .ladder3 .rung p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
  @media (max-width: 760px){ .ladder3 { grid-template-columns: 1fr; } }
  /* ===== Flood-risk data-app ===== */
  .mapapp { --d-bg:#15191b; --d-pan:#15191b; --d-bd:#15191b; --d-tx:#f5f6f6; --d-mut:#929798;
    max-width: 1180px; margin: 0 auto; border: 1px solid var(--d-bd); border-radius: var(--r-xl);
    overflow: hidden; background: var(--d-bg); box-shadow: 0 30px 60px rgba(6,188,212,0.16); text-align: left; }
  .app-head { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center;
    padding: 15px 18px; border-bottom: 1px solid var(--d-bd); background: var(--d-pan); }
  .app-title { display: flex; align-items: center; gap: 9px; font-family: 'Plus Jakarta Sans'; font-weight: 800;
    font-size: 14px; color: var(--d-tx); white-space: nowrap; }
  .app-title .app-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(6,188,212,.18); }
  .app-title .sbadge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: var(--accent); background: rgba(6,188,212,.12); border: 1px solid rgba(6,188,212,.3); padding: 2px 8px; border-radius: 100px; }
  .app-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
  .kpi { border-left: 1px solid var(--d-bd); padding: 1px 0 1px 14px; }
  .kpi .kl { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--d-mut); font-weight: 600; }
  .kpi .kv { display: block; font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--d-tx); }
  .kpi .ks { display: block; font-size: 10.5px; color: var(--d-mut); }
  .app-main { display: grid; grid-template-columns: 1fr 300px; }
  .app-map { position: relative; }
  #floodmap { width: 100%; height: 560px; background: var(--d-bg); }
  .ov { position: absolute; z-index: 5; background: rgba(6,188,212,.82); backdrop-filter: blur(8px);
    border: 1px solid var(--d-bd); border-radius: 12px; color: var(--d-tx); }
  .ov-scope { top: 14px; left: 14px; display: flex; padding: 3px; gap: 3px; }
  .segb { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-size: 12px; color: var(--d-mut);
    background: transparent; border: none; padding: 6px 13px; border-radius: 9px; cursor: pointer; transition: .18s; }
  .segb.on { background: var(--accent); color: #ffffff; }
  .segb:not(.on):hover { color: var(--d-tx); }
  .ov-legend { bottom: 14px; left: 14px; display: flex; gap: 12px; flex-wrap: wrap; padding: 8px 13px; }
  .ov-legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--d-tx); }
  .ov-legend .lg .d { width: 9px; height: 9px; border-radius: 50%; }
  .lg.low .d{background:var(--low)} .lg.mod .d{background:var(--mod)} .lg.high .d{background:var(--high)} .lg.crit .d{background:var(--crit)}
  .app-side { border-left: 1px solid var(--d-bd); background: var(--d-pan); display: flex; flex-direction: column; min-height: 0; }
  .side-head { padding: 14px 14px 11px; border-bottom: 1px solid var(--d-bd); }
  .side-title { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 14px; color: var(--d-tx); }
  .side-sub { font-size: 11px; color: var(--d-mut); margin-top: 1px; }
  .side-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
  .lf { font-family: 'Inter'; font-size: 11px; color: var(--d-mut); background: transparent; border: 1px solid var(--d-bd);
    padding: 4px 9px; border-radius: 100px; cursor: pointer; transition: .16s; }
  .lf.on { color: #ffffff; background: var(--accent); border-color: var(--accent); }
  .lf:not(.on):hover { color: var(--d-tx); border-color: var(--d-mut); }
  .side-list { overflow-y: auto; max-height: 493px; padding: 6px; }
  .side-tabs { display: flex; gap: 4px; margin-bottom: 9px; }
  .stab { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-size: 12px; color: var(--d-mut); background: transparent; border: none; padding: 5px 11px; border-radius: 8px; cursor: pointer; transition: .16s; }
  .stab.on { background: rgba(6,188,212,.14); color: var(--accent); }
  .stab:not(.on):hover { color: var(--d-tx); }
  .side-break { overflow-y: auto; max-height: 493px; padding: 15px 14px; }
  .bd-h { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--d-mut); margin-bottom: 10px; }
  .bd-d { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 8px; margin-bottom: 8px; }
  .bd-dk { font-size: 11.5px; color: var(--d-tx); display: flex; align-items: center; gap: 6px; }
  .bd-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .bd-dbar, .bd-gbar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
  .bd-dbar i, .bd-gbar i { display: block; height: 100%; border-radius: 3px; }
  .bd-dn { font-size: 11px; color: var(--d-mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .bd-g { display: grid; grid-template-columns: 1fr 64px auto; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--d-bd); }
  .bd-gk { font-size: 12px; color: var(--d-tx); line-height: 1.3; }
  .bd-gv { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 14px; color: var(--d-tx); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .bd-gv em { font-style: normal; font-weight: 500; font-size: 10.5px; color: var(--d-mut); margin-left: 5px; }
  .row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; width: 100%;
    background: transparent; border: none; padding: 8px; border-radius: 9px; cursor: pointer; text-align: left; transition: background .15s; }
  .row:hover { background: rgba(255,255,255,.045); }
  .row-rank { font-size: 11px; color: var(--d-mut); font-variant-numeric: tabular-nums; text-align: right; }
  .row-main { min-width: 0; }
  .row-name { display: block; font-size: 12.5px; color: var(--d-tx); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .row-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.07); margin-top: 5px; overflow: hidden; }
  .row-bar i { display: block; height: 100%; border-radius: 2px; }
  .row-score { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
  .side-empty { padding: 26px 14px; text-align: center; color: var(--d-mut); font-size: 12.5px; }
  .maplibregl-popup-content { border-radius: 13px; padding: 13px 15px; box-shadow: 0 18px 44px rgba(0,0,0,.34); }
  .maplibregl-popup-close-button { font-size: 17px; color: var(--muted-2); padding: 1px 7px; }
  .maplibregl-ctrl-group { border-radius: 10px !important; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.28) !important; }
  @media (max-width: 900px){ .app-main { grid-template-columns: 1fr; } .app-side { border-left: none; border-top: 1px solid var(--d-bd); }
    .side-list { max-height: 320px; } .app-kpis { grid-template-columns: repeat(2,1fr); gap: 12px 10px; } .app-head { grid-template-columns: 1fr; gap: 13px; } }
  @media (max-width: 620px){ #floodmap { height: 480px; } .fpop { width: 248px; } }
  .fpop { width: 264px; max-width: 78vw; font-family: 'Inter', sans-serif; }
  .fpop .fp-top { display: flex; gap: 11px; align-items: flex-start; }
  .fpop .fp-emblem { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; }
  .fpop .fp-emblem svg { width: 23px; height: 23px; }
  .fpop .fp-htext { min-width: 0; padding-top: 1px; }
  .fpop .fp-h { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 15px; line-height: 1.15; color: var(--ink); }
  .fpop .fp-score { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; }
  .fpop .fp-score b { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: -0.02em; }
  .fpop .fp-score span { font-size: 10.5px; color: var(--muted); }
  .fpop .fp-pill { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 4px 9px; border-radius: 100px; }
  .fpop .fp-pill .d { width: 6px; height: 6px; border-radius: 50%; }
  .fpop .fp-rows { margin: 11px 0; border-top: 1px solid var(--line); padding-top: 11px; display: grid; gap: 9px; }
  .fpop .fp-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; }
  .fpop .fp-ic { width: 28px; height: 28px; border-radius: 8px; background: #f5f6f6; color: #5d6366; display: grid; place-items: center; }
  .fpop .fp-ic svg { width: 15px; height: 15px; }
  .fpop .fp-rk { font-size: 11.5px; color: var(--muted); }
  .fpop .fp-rv { font-size: 12px; color: var(--ink); font-weight: 700; text-align: right; }
  .fpop .fp-why { display: flex; gap: 8px; background: #f5f6f6; border-radius: 10px; padding: 9px 10px; margin-bottom: 10px; }
  .fpop .fp-why .wi { color: #5d6366; flex-shrink: 0; margin-top: 1px; }
  .fpop .fp-why .wi svg { width: 15px; height: 15px; }
  .fpop .fp-why .wt b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 11.5px; color: var(--ink); margin-bottom: 2px; }
  .fpop .fp-why .wt p { font-size: 11px; color: var(--muted); line-height: 1.45; }
  .fpop .fp-note { font-size: 10.5px; color: var(--muted-2); text-align: center; margin-bottom: 10px; line-height: 1.4; }
  .fpop .fp-cta { display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--ink); color: #ffffff !important; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 12.5px; padding: 11px; border-radius: 10px; text-decoration: none; }
  .fpop .fp-cta:hover { background: #15191b; }
  .method { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 30px; }
  .method .m { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: #ffffff; }
  .method .m .mi { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-wash); color: var(--accent-d); display: grid; place-items: center; margin-bottom: 12px; }
  .method .m h4 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
  .method .m p { font-size: 13px; color: var(--muted); line-height: 1.55; }
  .method-note { font-size: 14px; color: var(--muted); margin-top: 22px; max-width: 700px; }
  @media (max-width: 820px){ .method { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px){ .method { grid-template-columns: 1fr; } }
  @media (max-width: 620px) { #floodmap { height: 420px; } }

  .zone-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 52px; }
  .zone { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: #ffffff; transition: transform .2s, box-shadow .2s, border-color .2s; }
  .zone:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -14px rgba(6,188,212,0.18); border-color: var(--accent); }
  .zone .zh { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .zone .zi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
  .zone .zi.extreme { background: #f5f6f6; color: var(--high); } .zone .zi.high { background: #f5f6f6; color: var(--mod); } .zone .zi.mod { background: var(--accent-wash); color: var(--accent-d); } .zone .zi.low { background: #f5f6f6; color: #00e676; }
  .zone h3 { font-size: 16.5px; font-weight: 700; line-height: 1.2; flex: 1; }
  .risk-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; padding: 4px 9px; border-radius: 100px; flex-shrink: 0; }
  .risk-tag .d { width: 6px; height: 6px; border-radius: 50%; }
  .risk-tag.extreme { background: #f5f6f6; color: #fe5252; } .risk-tag.extreme .d { background: var(--high); }
  .risk-tag.high { background: #f5f6f6; color: #15191b; } .risk-tag.high .d { background: var(--mod); }
  .risk-tag.mod { background: var(--accent-wash); color: var(--accent-d); } .risk-tag.mod .d { background: var(--accent); }
  .risk-tag.low { background: #f5f6f6; color: #00e676; } .risk-tag.low .d { background: var(--low); }
  .zmeter { height: 6px; border-radius: 3px; background: var(--soft-2); overflow: hidden; margin-bottom: 14px; }
  .zmeter span { display: block; height: 100%; border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.16,.8,.24,1); }
  .zone:hover .zmeter span { transform: scaleX(1); }
  @media (prefers-reduced-motion: reduce) { .zmeter span { transform: none; transition: none; } }
  .zone p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
  .zareas { display: flex; flex-wrap: wrap; gap: 6px; }
  .zarea { font-size: 11px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 100px; padding: 3px 10px; }

  .events { max-width: 820px; margin: 48px auto 0; }
  .ev { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .ev .yr { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 15px; color: var(--accent); }
  .ev h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 3px; } .ev p { font-size: 13.5px; color: var(--muted); }
  .ev:last-child { border-bottom: none; }
  .ev-group { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-d); margin: 8px 0 2px; }
  .ev-group.second { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
  .ev-src { margin-top: 9px; font-size: 12px; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; }
  .ev-src .lbl { font-weight: 700; text-transform: uppercase; letter-spacing: .4px; font-size: 10px; color: var(--muted-2); }
  .ev-src a { color: var(--accent-d); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
  .ev-src a:hover { color: var(--accent); }
  .ev-src .sep { color: var(--line-2); }
  .refs-note { max-width: 820px; font-size: 12px; color: var(--muted-2); margin-top: 26px; line-height: 1.5; }

  .sources { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
  .chip { font-size: 12.5px; border: 1px solid var(--line); border-radius: 100px; padding: 6px 12px; color: var(--ink); background: #ffffff; }

  .cta { background: var(--dark); padding: 80px 0; } .cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
  .cta h2 { color: #ffffff; font-size: clamp(26px,3vw,38px); font-weight: 800; max-width: 640px; } .cta .btn-invert { background: var(--accent); color: #ffffff; border-color: var(--accent); } .btn-invert:hover { filter: brightness(1.08); transform: translateY(-1px); }
  footer { border-top: 1px solid var(--line); padding: 54px 0 30px; }
  .f-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; } .f-brand p { font-size: 13.5px; color: var(--muted); max-width: 260px; margin-top: 12px; }
  .f-links { display: flex; gap: 60px; flex-wrap: wrap; } .f-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted-2); margin-bottom: 14px; } .f-col a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; } .f-col a:hover { color: var(--accent); }
  .f-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }

  @media (prefers-reduced-motion: no-preference) { .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.16,.8,.24,1), transform .7s cubic-bezier(.16,.8,.24,1); } .reveal.in { opacity: 1; transform: none; } }
  @media (max-width: 1024px) { .nav-links, .nav-right .login, .nav-right .btn { display: none; } .hamburger { display: flex; } .zone-grid { grid-template-columns: 1fr 1fr; } section { padding: 68px 0; } }
  @media (max-width: 620px) { .wrap { padding: 0 20px; } .nav-in { padding: 0 20px; } .zone-grid { grid-template-columns: 1fr; } .ev { grid-template-columns: 70px 1fr; gap: 14px; } .cta-in { flex-direction: column; align-items: flex-start; } .maptop { position: static; padding: 12px; flex-direction: column; } }

  /* ── Dark zone: hero → events on black. CTA + footer keep their original styling ── */
  .dark-zone {
    --ink: #ffffff; --ink-2: #b9bcbc; --paper: #15191b; --soft: #15191b; --soft-2: #15191b;
    --line: rgba(255,255,255,0.13); --line-2: rgba(255,255,255,0.22); --muted: #929798; --muted-2: #929798;
    --accent: #06bcd4; --accent-d: #06bcd4; --accent-wash: rgba(6,188,212,0.14);
    background: #15191b; color: var(--ink);
  }
  .dark-zone .soft { background: #15191b; }
  .dark-zone .btn-dark { background: var(--accent); border-color: var(--accent); color: #15191b; }
  .dark-zone .btn-dark:hover { background: #06bcd4; border-color: #06bcd4; }
  .dark-zone .btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
  .dark-zone .btn-outline:hover { border-color: #ffffff; }
  .dark-zone .ladder3 .rung, .dark-zone .method .m, .dark-zone .zone, .dark-zone .chip { background: #15191b; border-color: var(--line); box-shadow: none; }
  .dark-zone .zone:hover { background: rgba(255,255,255,0.04); }
  /* zone meters fill automatically when scrolled into view (no hover needed) */
  .zone.inview .zmeter span { transform: scaleX(1); }
  /* map app: neutralise the blue-tinted darks to true black */
  .mapapp { --d-bg: #15191b; --d-pan: #15191b; --d-bd: rgba(255,255,255,0.12); --d-tx: #ffffff; --d-mut: #929798; }
  /* full-bleed, full-height map (override the 1180px cap) */
  .mapapp { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; border-left: 0; border-right: 0; }
  #floodmap { height: 78vh; min-height: 520px; }
  @media (max-width: 620px) { #floodmap { height: 70vh; } }
  /* hide the map attribution / info control */
  .maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib-button { display: none !important; }
  /* map click popup → dark (was white default, which hid the white text/CTA) */
  .maplibregl-popup-content { background: #15191b !important; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 20px 48px rgba(0,0,0,0.6); }
  .maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: #15191b; }
  .maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: #15191b; }
  .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #15191b; }
  .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #15191b; }
  .maplibregl-popup-close-button { color: rgba(255,255,255,0.55); }
  .fpop .fp-ic { background: rgba(255,255,255,0.08) !important; }
  .fpop .fp-why { background: rgba(255,255,255,0.06) !important; }
  .fp-cta { background: var(--accent) !important; color: #15191b !important; }
  .fp-cta:hover { background: #06bcd4 !important; }
