/* Inter, vendored so the site keeps NBS360's typography offline.
   Variable font, weights 300-700. Same family the live NBS360 portal loads
   from Google Fonts — but self-hosted, because this map must work without
   internet (only the basemap tiles need a connection). */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:300 700;
  font-display:swap;
  src:url('../vendor/fonts/inter-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,
    U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,
    U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:300 700;
  font-display:swap;
  src:url('../vendor/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,
    U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,
    U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ACT-GREEN — citizen-facing map. Palette from the NBS360 design system.
   Layout: left column (nav + controls + layers); a collapsible bar across the
   top of the map (parks, map-by, opacity, legend, background); time player at
   the bottom. Nothing floats over the map except the bar and the player. */
:root{
  /* Neuralio design system palette (Neuralio_Design_System/tokens/colors.css), 21 Oct 2026.
     Old NBS360 values: see git tag v1-pre-neuralio. Variable names kept so every rule follows. */
  --bg:#FAFAFA; --surface:#FFFFFF; --line:#E9ECEF;
  --p50:#EDF5FB; --p500:#066CB6; --p800:#05132E; --p900:#05132E;
  --teal:#066CB6; --green:#2D7019; --muted:#6B7785;
  --shadow:0 12px 32px rgba(5,19,46,.12);
  /* status, from the design system */
  --critical:#B3261E; --critical-light:#FCEEED;
  --warning:#B4700A;  --warning-light:#FDF3E2;
  --info:#066CB6;     --info-light:#EDF5FB;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;background:var(--bg);color:var(--p900);
  font-family:'Inter',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:14px;
  font-feature-settings:'cv11','ss01';font-optical-sizing:auto;
  -webkit-text-size-adjust:100%}
#app{display:flex;height:100%}

/* ---------- left column ---------- */
#side{width:312px;min-width:312px;background:var(--surface);border-right:1px solid var(--line);
  display:flex;flex-direction:column;min-height:0}
.brand{display:flex;align-items:center;gap:9px;padding:15px 16px;border-bottom:1px solid var(--line);flex:none}
.brand .dot{width:14px;height:14px;border-radius:50%;background:var(--green);flex:none}
.brand h1{font-size:15px;margin:0;font-weight:600;color:var(--p800);line-height:1.25}
.brand small{display:block;color:var(--muted);font-size:11px;font-weight:400}
nav{padding:8px;flex:none;border-bottom:1px solid var(--line)}
nav button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;padding:10px 12px;
  margin:2px 0;border:0;background:none;border-radius:8px;font:inherit;font-size:13.5px;
  color:var(--p900);cursor:pointer}
nav button:hover{background:var(--bg)}
nav button.on{background:var(--p50);color:var(--p800);font-weight:600;box-shadow:inset 3px 0 0 var(--teal)}
.ic{width:18px;height:18px;flex:none;stroke:currentColor}
nav button .ic{color:var(--muted)}
nav button.on .ic{color:var(--teal)}

#sideScroll{flex:1;overflow-y:auto;min-height:0}
.sect{padding:14px 16px;border-bottom:1px solid var(--line)}
.sect:last-child{border-bottom:0}
#viewTitle{font-size:14px;margin:0 0 12px;color:var(--p800);font-weight:600;line-height:1.35}
.sectTitle{font-size:10.5px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);
  margin:0 0 8px;font-weight:700}
.sideFoot{padding:12px 16px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);
  line-height:1.6;flex:none}

/* icon list for the variable picker */
#varList{display:flex;flex-direction:column;gap:2px}
.varRow{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:8px;cursor:pointer;
  font-size:13px;border:1px solid transparent;line-height:1.25}
.varRow:hover{background:var(--bg)}
.varRow input{position:absolute;opacity:0;pointer-events:none}
.varRow .ic{width:19px;height:19px;color:var(--muted)}
.varRow.on{background:var(--p50);border-color:#D2E6F5;font-weight:600;color:var(--p800)}
.varRow.on .ic{color:var(--teal)}

.fld{display:block;margin-bottom:10px}
.fld>span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.6px;
  color:var(--muted);margin-bottom:4px;font-weight:600}
select{width:100%;padding:8px;border:1px solid #CED4DA;border-radius:8px;font:inherit;font-size:13px;background:#fff}
.explain{font-size:12px;color:var(--muted);line-height:1.55;margin:0 0 12px}
.two{display:flex;gap:8px}.two>*{flex:1;min-width:0}
.muted{color:var(--muted);font-size:11px;line-height:1.5;margin:4px 0 0}

.seg{display:flex;background:#E9ECEF;border-radius:9px;padding:3px;margin-bottom:10px}
.seg button{flex:1;border:0;background:none;padding:7px 6px;border-radius:7px;font:inherit;
  font-size:12.5px;color:var(--p900);cursor:pointer}
.seg button.on{background:var(--p800);color:#fff;font-weight:600}
.chk{display:flex;align-items:center;gap:7px;font-size:12px;margin-top:8px;cursor:pointer}
input[type=checkbox],input[type=range]{accent-color:var(--teal)}

details{margin-top:10px;border-top:1px dashed var(--line);padding-top:8px}
details summary{cursor:pointer;font-size:12px;color:var(--p500);font-weight:600;list-style:none}
details summary::-webkit-details-marker{display:none}
details summary::before{content:"▸ ";}
details[open] summary::before{content:"▾ ";}
.prov{margin-top:0;border-top:0;padding-top:0}
.prov p{font-size:11px;color:var(--muted);line-height:1.55;margin:6px 0 0}

table.mx{border-collapse:collapse;font-size:10px;margin-top:6px}
table.mx th{color:var(--muted);font-weight:600;padding:1px 2px}
table.mx td{padding:0;text-align:center}
table.mx td.yr{padding-right:5px;font-size:10.5px;color:var(--p800);cursor:pointer;text-align:right}
table.mx input{margin:1px;transform:scale(.85);cursor:pointer}
.presets{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 2px}
.presets button{font-size:11px;padding:4px 10px;border:1px solid var(--line);border-radius:999px;
  background:var(--bg);cursor:pointer;color:var(--p800)}
.presets button:hover{background:var(--p50)}
.count{font-size:11px;color:var(--muted);margin-top:5px}

/* layer list in the sidebar */
#ovBox label{display:flex;align-items:center;gap:8px;font-size:12.5px;padding:5px 0;
  cursor:pointer;line-height:1.3}
.sw{width:20px;height:14px;border-radius:3px;border:1px solid var(--line);flex:none}

/* ---------- park browser ---------- */
#pkSearch{width:100%;padding:8px 10px;border:1px solid #CED4DA;border-radius:8px;font:inherit;font-size:13px}
#pkList{margin-top:8px;display:flex;flex-direction:column;gap:2px}
.pkRow{display:flex;align-items:center;gap:9px;padding:8px 9px;border-radius:8px;cursor:pointer;
  font-size:13px;border:1px solid transparent;line-height:1.3}
.pkRow:hover{background:var(--bg)}
.pkRow.pilot{background:var(--p50);border-color:#D2E6F5;font-weight:600}
.pilotTag{font-size:9px;font-weight:700;letter-spacing:.5px;padding:2px 6px;border-radius:999px;
  background:var(--teal);color:#fff;vertical-align:middle;margin-left:4px}
.pkRow .pkMeta{margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap;
  font-variant-numeric:tabular-nums}
.pkRow .leafdot{width:8px;height:8px;border-radius:50%;background:var(--green);flex:none}
.linkBtn{border:0;background:none;color:var(--p500);font:inherit;font-size:12px;font-weight:600;
  cursor:pointer;padding:0;margin-bottom:8px}
#pkPhoto{width:100%;border-radius:10px;margin-bottom:10px;background:var(--bg);aspect-ratio:16/10;object-fit:cover}
#pkName{font-size:15px;margin:0;color:var(--p800)}
#pkNameEl{margin:2px 0 10px}
.statGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.stat{background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:8px 10px}
.stat b{display:block;font-size:16px;color:var(--p800);font-variant-numeric:tabular-nums;line-height:1.2}
.stat span{font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.stat.na b{font-size:12px;color:var(--muted);font-weight:500;font-style:italic}
.pkFeat{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.pkFeat span{font-size:11px;padding:3px 9px;border-radius:999px;background:var(--p50);color:var(--p800)}
textarea{width:100%;padding:8px;border:1px solid #CED4DA;border-radius:8px;font:inherit;font-size:12.5px;
  resize:vertical}
.btnPrimary{background:var(--teal);color:#fff;border:0;border-radius:8px;padding:9px;font:inherit;
  font-size:12.5px;font-weight:600;cursor:pointer}
.btnPrimary:hover{background:#04497B}
.btnGhost{background:#fff;color:var(--p800);border:1px solid var(--line);border-radius:8px;padding:9px;
  font:inherit;font-size:12.5px;cursor:pointer}
.btnGhost:hover{background:var(--bg)}
#pkSaved{color:var(--green);font-weight:600}

/* ---------- map ---------- */
#mapWrap{flex:1;position:relative;min-width:0}
#map{position:absolute;inset:0}
#mobbar{display:none}

/* ---------- full park page ---------- */
#parkPage{position:absolute;inset:0;z-index:1100;background:var(--bg);overflow-y:auto}
.ppBar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:16px;padding:12px 22px;
  background:rgba(255,255,255,.97);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.ppTitle{flex:1;min-width:0}
.ppTitle h1{font-size:19px;margin:0;color:var(--p800);font-weight:600;line-height:1.2}
.ppBody{max-width:1080px;margin:0 auto;padding:20px 22px 60px;display:flex;flex-direction:column;gap:16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px;
  box-shadow:0 1px 2px rgba(5,19,46,.05)}
.cardTitle{font-size:13px;margin:0 0 12px;color:var(--p800);font-weight:600}
.ppHero{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ppPhotoCard{margin:0;padding:0;overflow:hidden}
#ppPhoto{width:100%;height:260px;object-fit:cover;display:block;background:var(--bg)}
.ppPhotoCard figcaption{padding:8px 12px}
.ppMapCard{padding:0;overflow:hidden}
#ppMap{height:calc(260px + 33px)}
.ppKpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.kpi{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--p500);
  border-radius:12px;padding:12px 14px}
.kpi.good{border-left-color:var(--accent-green,#3f9d5a)}
.kpi.warn{border-left-color:var(--warning)}
.kpi.bad{border-left-color:var(--critical)}
.kpi.na{border-left-color:#CED4DA}
.kpi b{display:block;font-size:22px;color:var(--p900);font-variant-numeric:tabular-nums;line-height:1.15}
.kpi.na b{font-size:12.5px;color:var(--muted);font-weight:500;font-style:italic;padding:5px 0}
.kpi span{font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px}
.ppGrid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.surfBar{display:flex;height:22px;border-radius:6px;overflow:hidden;border:1px solid var(--line)}
.surfBar i{display:block}
.surfKey{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.surfKey span{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--p900)}
.surfKey i{width:11px;height:11px;border-radius:3px;display:inline-block}
.chartLegend{display:flex;gap:14px;margin-bottom:6px}
.chartLegend span{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted)}
.chartLegend i{width:14px;height:3px;border-radius:2px}
.ppActions{display:flex;align-items:center;gap:10px;margin-top:6px}
.ppActions .btnPrimary,.ppActions .btnGhost{padding:9px 16px}
@media (max-width:860px){
  .ppHero,.ppGrid{grid-template-columns:1fr}
  .ppKpis{grid-template-columns:repeat(2,1fr)}
  #ppMap{height:240px}
}

/* ---------- collapsible top bar ---------- */
#bar{position:absolute;z-index:1001;top:12px;left:12px;right:auto;max-width:calc(100% - 24px);
  display:flex;align-items:center;gap:10px;padding:7px 9px;background:rgba(255,255,255,.97);
  backdrop-filter:blur(8px);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}
#bar.collapsed{padding:6px}
#bar.collapsed .barBody{display:none}
#barToggle{width:28px;height:28px;flex:none;align-self:center;border:1px solid var(--line);
  background:#fff;border-radius:7px;font-size:16px;line-height:1;color:var(--p800);cursor:pointer;
  display:grid;place-items:center;font-weight:600}
#barToggle:hover{background:var(--p50)}
.barBody{display:flex;align-items:center;gap:13px;min-width:0;overflow-x:auto;
  scrollbar-width:none;-ms-overflow-style:none}
.barBody::-webkit-scrollbar{display:none}
.barGroup{display:flex;align-items:center;gap:8px;flex:none}
.barLbl{font-size:10px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);font-weight:700}
.barSpacer{display:none}
.barGroup select{width:auto;padding:5px 8px;font-size:12px}
.barGroup b{font-size:11px;color:var(--p800);font-variant-numeric:tabular-nums}

#ovTop{display:flex;align-items:center;gap:7px;flex:none}
.chip{display:flex;align-items:center;gap:7px;padding:6px 11px;border-radius:999px;
  border:1px solid var(--line);background:#fff;font-size:12.5px;color:var(--p900);cursor:pointer;
  white-space:nowrap;line-height:1}
.chip:hover{background:var(--bg)}
.chip.on{background:var(--p50);border-color:#D2E6F5;color:var(--p800);font-weight:600}
.chip .sw{width:16px;height:11px}

/* legend, inline in the bar */
.legendGroup{align-items:flex-start}
.legendWrap{min-width:170px;max-width:250px}
#legCap{font-size:10.5px;font-weight:600;color:var(--p800);margin-bottom:4px;line-height:1.3;
  max-width:230px;white-space:normal;overflow-wrap:anywhere}
#legBar{height:10px;border-radius:4px;border:1px solid var(--line)}
/* three equal columns, text pushed to the outside edges, so long words cannot collide */
#legTicks{display:flex;font-size:9.5px;color:var(--muted);margin-top:3px;gap:6px;
  font-variant-numeric:tabular-nums}
#legTicks>span{flex:1 1 0;min-width:0}
#legTicks>span:nth-child(1){text-align:left}
#legTicks>span:nth-child(2){text-align:center}
#legTicks>span:nth-child(3){text-align:right}
#legCat{display:flex;gap:10px;flex-wrap:wrap}
.catrow{display:flex;align-items:center;gap:6px;font-size:11px;margin:0}
.nodata{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted);margin-left:6px;
  max-width:96px;line-height:1.25}
.nodata i{width:16px;height:11px;border:1px solid var(--line);border-radius:3px;flex:none;
  background:repeating-linear-gradient(45deg,#E9ECEF,#E9ECEF 3px,#CED4DA 3px,#CED4DA 6px)}

/* ---------- time player ---------- */
#player{position:absolute;z-index:1000;left:50%;transform:translateX(-50%);bottom:22px;
  display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);
  border:1px solid var(--line);border-radius:999px;box-shadow:var(--shadow);padding:8px 14px;
  width:min(560px,calc(100% - 40px))}
#playBtn{width:38px;height:38px;flex:none;border:0;border-radius:50%;background:var(--p800);color:#fff;
  font-size:14px;cursor:pointer;display:grid;place-items:center}
#playBtn:hover{background:var(--p900)}
.pTrack{flex:1;min-width:0}
.pTrack input{width:100%;margin:0}
.pLabels{display:flex;justify-content:space-between;font-size:10.5px;color:var(--muted);margin-top:2px}
.pLabels b{color:var(--p800);font-size:12px;font-variant-numeric:tabular-nums}
#speed{width:auto;padding:5px 6px;font-size:11px;flex:none}

#loading{position:absolute;z-index:1200;top:64px;left:50%;transform:translateX(-50%);
  background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:999px;
  padding:7px 16px;font-size:12px;box-shadow:var(--shadow);display:none}
table.pop{font-size:12px;border-collapse:collapse}
table.pop td{padding:2px 6px 2px 0}
table.pop td:first-child{color:var(--muted)}
.pill{display:inline-block;font-size:10px;padding:1px 6px;border-radius:999px;background:var(--p50);
  color:var(--p800);margin-left:4px}

/* ---------- mobile ---------- */
@media (max-width:900px){
  #app{flex-direction:column}
  /* the desktop left column becomes a BOTTOM SHEET you drag/scroll — never a left panel */
  #side{position:fixed;z-index:1400;left:0;right:0;bottom:0;top:auto;width:auto;min-width:0;
    max-height:80vh;border-right:0;border-top:1px solid var(--line);border-radius:16px 16px 0 0;
    transform:translateY(100%);transition:transform .24s ease;box-shadow:0 -10px 30px rgba(5,19,46,.22);
    display:flex;flex-direction:column}
  #side.open{transform:none}
  #sheetHandle{display:flex;justify-content:center;padding:9px 0 4px;flex:none;touch-action:none;cursor:grab}
  #sheetHandle span{width:42px;height:5px;border-radius:3px;background:#CED4DA}
  #side nav,#side .brand,#side .sideFoot{display:none}   /* nav is home/launcher/pager */
  #varField{display:none!important}                      /* layer choice lives on the left (icon grid); beats JS inline style */
  #mobbar{display:flex;align-items:center;gap:6px;padding:8px;background:var(--surface);
    border-bottom:1px solid var(--line);position:relative;z-index:1300}
  #mapWrap{flex:1}
  #bar{top:8px;left:8px;right:8px;padding:6px 8px;gap:8px}
  /* wrap onto two lines instead of scrolling sideways */
  .barBody{gap:9px 12px;flex-wrap:wrap;overflow-x:visible}
  .legendGroup{flex:1 1 100%}         /* legend drops to its own full-width line */
  .legendWrap{min-width:150px;max-width:100%}
  #player{bottom:14px;width:calc(100% - 24px);padding:7px 10px;gap:9px}
  #playBtn{width:34px;height:34px}
}

/* characteristics of a neighbourhood — named flags, not a score */
.chips{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 6px}
.chip{font-size:11px;font-weight:600;line-height:1;padding:5px 8px;border-radius:999px;
  background:var(--brand-50,#e6f4f1);color:var(--brand,#0e7c66);
  border:1px solid rgba(14,124,102,.22);cursor:help;white-space:nowrap}
.chip:hover{background:var(--brand,#0e7c66);color:#fff}

/* ============ vulnerability view ============ */
.dnWrap{display:flex;align-items:center;gap:10px;margin:10px 0 2px}
.dnWrap input[type=range]{flex:1}
.dnIcon{font-size:17px;line-height:1;opacity:.75}
.dnLabel{text-align:center;font-size:12px;font-weight:600;color:var(--p500);margin-bottom:6px}

.wGroup{margin-top:10px}
.wHead{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
       color:#6B7785;margin:6px 0 4px}
.wRow{display:grid;grid-template-columns:1fr 74px 34px;align-items:center;gap:6px;margin:3px 0}
.wRow label{font-size:11.5px;color:#2A3442;cursor:help}
.wRow input[type=range]{width:100%}
.wRow b{font-size:11px;text-align:right;color:#6B7785;font-variant-numeric:tabular-nums}
.wRow.off label{opacity:.45;text-decoration:line-through}
.linkish{background:none;border:0;color:var(--teal);font-size:11.5px;cursor:pointer;
         padding:6px 0 0;text-decoration:underline}

.caution{margin-top:12px;border-left:3px solid #d98014;background:#fffbf4;
         padding:8px 10px;font-size:11.4px;color:#4b4235;line-height:1.5;border-radius:0 4px 4px 0}
.caution b{color:#8a5a12}

.vuTable{width:100%;border-collapse:collapse;font-size:11.5px;margin-top:6px}
.vuTable th{text-align:left;font-weight:600;color:#6B7785;padding:2px 4px;border-bottom:1px solid #E9ECEF}
.vuTable td{padding:2px 4px;border-bottom:1px solid #E9ECEF;font-variant-numeric:tabular-nums}
.vuTable td.n{text-align:right}
.vuBar{display:inline-block;height:7px;border-radius:3px;background:#dc2626;vertical-align:middle}
.stab{display:inline-block;padding:1px 6px;border-radius:9px;font-size:10.5px;font-weight:700}
.stab.hi{background:#dcfce7;color:#166534}
.stab.mid{background:#fef9c3;color:#854d0e}
.stab.lo{background:#fee2e2;color:#991b1b}
.wHint{font-weight:400;text-transform:none;letter-spacing:0;color:#6B7785;font-size:10px}
.spread{display:block;font-size:9.6px;color:#6B7785;font-variant-numeric:tabular-nums}
.dnSub{display:block;font-weight:400;font-size:10px;color:#6B7785;margin-top:2px;line-height:1.35}
.dnTicks{display:flex;justify-content:space-between;font-size:9.5px;color:#6B7785;
         padding:0 22px;margin:-2px 0 4px;font-variant-numeric:tabular-nums}
.chipHint{font-size:11.5px;color:#6B7785;margin:10px 0 6px;line-height:1.45}
.chipBox{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:flex;flex-direction:column;align-items:flex-start;gap:1px;
      border:1.5px solid #E9ECEF;background:#fff;border-radius:9px;
      padding:6px 9px;cursor:pointer;text-align:left;min-width:96px;flex:1 1 44%;
      transition:border-color .12s,background .12s}
.chip:hover{border-color:#CED4DA}
.chip .chipTick{display:none;font-size:10px;color:var(--teal);font-weight:700;line-height:1}
.chip .chipName{font-size:11.8px;font-weight:600;color:#6B7785;line-height:1.25}
.chip.on{border-color:var(--teal);background:#EDF5FB}
.chip.on .chipTick{display:block}
.chip.on .chipName{color:var(--p900,#05132E)}
.chip.unavail{opacity:.4;cursor:not-allowed;background:#FAFAFA}
.chip .spread{font-size:9.6px;color:#6B7785}
.seasonSeg{margin-top:8px}
.seasonSeg button{font-size:11.5px;padding:5px 4px}
#vuModeSeg{margin-top:10px}
#vuModeSeg button{font-size:11.5px;padding:5px 6px}
.vuBandRow{display:flex;align-items:center;gap:6px;margin:5px 0 7px}
.vuBand{display:inline-block;width:13px;height:13px;border-radius:3px;flex:none;
        border:1px solid rgba(0,0,0,.35)}
.incBox{margin-top:4px}
.inc{display:grid;grid-template-columns:12px 1fr auto;align-items:baseline;gap:7px;
     padding:3px 0;border-bottom:1px solid #E9ECEF}
.inc:last-child{border-bottom:0}
.incDot{width:6px;height:6px;border-radius:50%;background:var(--teal);
        align-self:center;cursor:help}
.incName{font-size:11.6px;color:#2A3442}
.inc .spread{display:inline;font-size:10px;color:#6B7785;text-align:right}
.inc.off{opacity:.42}
.inc.off .incDot{background:#CED4DA}
#vuIndexSeg,#vuUnitSeg{margin-top:8px}
#vuIndexSeg button,#vuUnitSeg button{font-size:11.5px;padding:5px 6px}
.sunMoon{display:flex;gap:0}
.sunMoon button{font-size:12px;padding:5px 10px;white-space:nowrap}
#sunMoonWrap .seg{margin-bottom:0}
#sunMoonWrap .seg button{padding:5px 10px;font-size:12px;white-space:nowrap}
.legWordMain{display:block;font-size:10px;color:var(--p900,#05132E);font-weight:600;
             text-transform:none;letter-spacing:0;line-height:1.15;
             overflow-wrap:anywhere;hyphens:auto}
.legNum{display:block;font-size:9px;color:#6B7785;font-weight:400;line-height:1.2;margin-top:1px}
.cellWord{display:block;font-size:9.5px;color:#6B7785;font-weight:400;text-align:right;margin-top:1px}
.navSec{font-size:9.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
        color:#6B7785;margin:10px 0 3px;padding-left:2px}
nav button:first-of-type{margin-top:0}
.cmpErr{margin-top:7px;font-size:11.5px;color:#b91c1c;background:#fef2f2;
        border-left:3px solid #dc2626;padding:6px 9px;border-radius:0 4px 4px 0;line-height:1.4}
#compareBox input[type=text]{width:100%;padding:6px 8px;font:inherit;font-size:12.5px;
        border:1px solid var(--line);border-radius:7px;font-variant-numeric:tabular-nums}

/* ============ parks: small map + gallery ============ */
/* In park mode the map shrinks to a column beside the sidebar and the rest of the
   window becomes a card gallery. Leaflet must be told its container changed
   (map.invalidateSize) or it renders into the old, wider box. */
#mapWrap.pkMode #map{right:auto;width:340px;border-right:1px solid var(--line)}
/* The bar controls the MAP, so in park mode it stays over the map column and
   wraps rather than floating across the gallery. */
#mapWrap.pkMode #bar{left:12px;right:auto;max-width:316px;flex-wrap:wrap;row-gap:6px}
#mapWrap.pkMode #unitWrap{display:none}
#mapWrap.pkMode #ovTop{display:none}          /* not a choice, so not a button */
.pkChipLbl{font-size:12px;font-weight:600;color:var(--p900,#05132E)}
#pkGallery{position:absolute;top:0;right:0;bottom:0;left:340px;overflow-y:auto;
           background:var(--bg);padding:14px 16px 24px}
.pkGridHead{display:flex;align-items:baseline;gap:10px;margin:2px 0 12px}
.pkGridHead h2{font-size:15px;margin:0;color:var(--p900,#05132E)}
.pkGridHead .count{font-size:11.5px;color:var(--muted)}
.pkGrid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(212px,1fr))}
.pkCard{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;
        cursor:pointer;display:flex;flex-direction:column;
        transition:box-shadow .13s,border-color .13s,transform .13s}
.pkCard:hover{border-color:var(--teal);box-shadow:0 4px 14px rgba(5,19,46,.10);transform:translateY(-1px)}
.pkCard.pilot{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal) inset}
.pkThumb{aspect-ratio:16/10;background:#e8f2ec;position:relative;overflow:hidden}
.pkThumb img{width:100%;height:100%;object-fit:cover;display:block}
.pkThumb .noimg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
        background:linear-gradient(135deg,#e6f2ea,#cfe6d8);color:#3f9d5a}
.pkThumb .noimg svg{width:30px;height:30px}
.pkPilotTag{position:absolute;top:7px;left:7px;background:var(--teal);color:#fff;
        font-size:9px;font-weight:700;letter-spacing:.06em;padding:2px 6px;border-radius:5px}
.pkBody{padding:9px 10px 11px;display:flex;flex-direction:column;gap:4px;flex:1}
.pkName{font-size:12.6px;font-weight:600;line-height:1.28;color:var(--p900,#05132E)}
.pkFacts{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto}
.pkFact{font-size:10px;color:#2A3442;background:#E9ECEF;border-radius:5px;padding:2px 6px;
        font-variant-numeric:tabular-nums}
.pkFact.hot{background:#fdecea;color:#a3352c}
.pkFact.green{background:#e8f5ec;color:#256b3a}
@media(max-width:900px){
  #mapWrap.pkMode #map{position:relative;width:auto;height:210px;inset:auto;border-right:0;
        border-bottom:1px solid var(--line)}
  #mapWrap.pkMode #bar{left:0}
  #pkGallery{position:relative;left:0;inset:auto;padding:12px}
  #mapWrap.pkMode{overflow-y:auto}
}
.fine{margin-top:8px}
.fine>summary{cursor:pointer;font-size:11px;color:var(--p500,#066CB6);font-weight:600;list-style:none}
.fine>summary::-webkit-details-marker{display:none}
.fine>summary::before{content:'▸ ';color:#6B7785}
.fine[open]>summary::before{content:'▾ '}
.fine{font-size:11px;color:#6B7785;line-height:1.5}
.fine[open]{background:#FAFAFA;border-radius:6px;padding:6px 9px;margin-top:6px}
.varGroupHead{font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:#6B7785;margin:9px 0 3px;padding-left:2px}
.varGroupHead:first-child{margin-top:2px}
.lensLabel{font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:#6B7785;margin:10px 0 3px;padding-left:2px}
.lensSeg{flex-wrap:wrap}
.lensSeg button{flex:1 1 auto;font-size:11px;padding:5px 7px;white-space:nowrap}

/* ============ what-if (NBS painter) ============ */
.wiLabel{font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  color:#6B7785;margin:12px 0 6px;padding-left:2px}
#wiList{display:flex;flex-direction:column;gap:7px}
.wiCard{border:1px solid var(--line);border-radius:10px;padding:9px 11px;cursor:pointer;
  background:#fff;transition:border-color .12s,box-shadow .12s}
.wiCard:hover{border-color:#CED4DA}
.wiCard.on{border-color:var(--teal);background:#EDF5FB;box-shadow:0 0 0 1px var(--teal) inset}
.wiCardTop{display:flex;align-items:center;gap:8px}
.wiCardTop .wIc{width:19px;height:19px;flex:none;color:var(--teal);stroke:currentColor}
.wiCardName{font-size:12.8px;font-weight:600;color:var(--p900,#05132E);line-height:1.2}
.wiCardScale{margin-left:auto;font-size:9px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:#6B7785;border:1px solid var(--line);border-radius:5px;padding:2px 5px}
.wiCardDesc{font-size:11.3px;color:#6B7785;line-height:1.4;margin:6px 0 0}
.wiBens{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.wiBen{display:flex;align-items:center;gap:4px;font-size:10px;font-weight:600;color:#3f6f5e;
  background:#eefaf6;border-radius:6px;padding:3px 6px}
.wiBen svg{width:12px;height:12px;stroke:currentColor;flex:none}
.wiBen.cool{color:#1d6fa5;background:#eaf4fb}
.wiCost{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:10.5px;color:#6B7785}
.wiCost .wiEuro{display:inline-flex;gap:1px;color:#b0803f}
.wiCost .wiEuro svg{width:12px;height:12px;stroke:currentColor}
.wiCost .dim{opacity:.28}
.wiActions{display:flex;gap:8px;margin-top:12px}
.wiActions button{flex:1;padding:8px;font-size:12px}
.wiActions button:disabled{opacity:.4;cursor:not-allowed}

/* running result panel over the map */
#wiPanel{position:absolute;right:12px;bottom:16px;width:290px;max-width:calc(100% - 24px);
  background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);
  z-index:600;overflow:hidden}
#wiPanel.min #wiPanelBody{display:none}
.wiPanelHead{display:flex;align-items:center;gap:8px;padding:10px 13px;border-bottom:1px solid var(--line);
  background:var(--p50)}
.wiPanelHead b{font-size:12.5px;color:var(--p800)}
#wiPanelMin{margin-left:auto;border:0;background:none;font-size:18px;line-height:1;color:#6B7785;
  cursor:pointer;width:22px;height:22px;border-radius:6px}
#wiPanelMin:hover{background:#D2E6F5}
#wiPanelBody{padding:12px 13px;max-height:46vh;overflow-y:auto}
.wiBig{display:flex;align-items:baseline;gap:7px;margin:0 0 3px}
.wiBig .n{font-size:26px;font-weight:700;color:#1d6fa5;font-variant-numeric:tabular-nums;line-height:1}
.wiBig .u{font-size:12px;color:#6B7785}
.wiSub{font-size:11px;color:#6B7785;line-height:1.45;margin:0 0 10px}
.wiRow{display:flex;justify-content:space-between;gap:10px;font-size:11.8px;padding:4px 0;
  border-bottom:1px solid #E9ECEF;font-variant-numeric:tabular-nums}
.wiRow span:first-child{color:#2A3442}
.wiRow .n{font-weight:600;color:var(--p900,#05132E)}
.wiRowIc{display:flex;align-items:center;gap:6px}
.wiRowIc .sw{width:11px;height:11px;border-radius:3px;flex:none}
.wiEmpty{font-size:11.8px;color:#6B7785;line-height:1.5;text-align:center;padding:10px 4px}
.wiNote{font-size:10.3px;color:#6B7785;line-height:1.45;margin-top:10px;
  border-top:1px dashed var(--line);padding-top:8px}
@media(max-width:900px){
  #wiPanel{right:8px;left:8px;bottom:8px;width:auto}
  #wiPanelBody{max-height:38vh}
}

/* ---- what-if v2: drag-drop palette, pins, species card ---- */
.wiPalette{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.wiTile{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;
  padding:8px 9px;background:#fff;cursor:grab;font:inherit;text-align:left;touch-action:none;
  transition:border-color .12s,box-shadow .12s}
.wiTile:hover{border-color:#CED4DA}
.wiTile:active{cursor:grabbing}
.wiTile.on{border-color:var(--teal);background:#EDF5FB;box-shadow:0 0 0 1px var(--teal) inset}
.wiTileIc{width:26px;height:26px;flex:none;border-radius:7px;display:flex;align-items:center;
  justify-content:center;background:color-mix(in srgb,var(--c) 16%,#fff);color:var(--c)}
.wiTileIc svg{width:17px;height:17px;stroke:currentColor;fill:none}
.wiTileIc.sm{width:30px;height:30px;border-radius:8px}
.wiTileIc.sm svg{width:19px;height:19px}
/* Noun Project icons are filled and detailed: a larger tile so they read */
.wiTileIc.n{width:34px;height:34px;border-radius:8px}
.wiTileIc.n svg{width:24px;height:24px}
.wiTileName{font-size:11.6px;font-weight:600;color:var(--p900,#05132E);line-height:1.15}
/* drag ghost following the pointer */
.wiGhost{position:fixed;z-index:4000;pointer-events:none;transform:translate(-50%,calc(-100% - 14px));
  width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:color-mix(in srgb,var(--c) 16%,#fff);border:2px solid var(--c);color:var(--c);
  box-shadow:0 10px 24px rgba(5,19,46,.28)}
.wiGhost svg{width:24px;height:24px;stroke:currentColor;fill:none}
/* drop point under the pointer */
.wiGhost i{position:absolute;left:50%;top:calc(100% + 14px);width:10px;height:10px;margin:-5px 0 0 -5px;
  border-radius:50%;background:var(--c);border:2px solid #fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 30%,transparent)}
/* map pin for a placed solution */
.wiPinWrap{background:none;border:0}
.wiPin{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;
  background:#fff;border:2px solid var(--c);color:var(--c);box-shadow:0 2px 6px rgba(5,19,46,.3)}
.wiPin svg{width:18px;height:18px;stroke:currentColor;fill:none}
.wiPin.up{position:relative}
.wiPin.up::after{content:"";position:absolute;left:50%;bottom:-8px;margin-left:-5px;
  border:5px solid transparent;border-top:6px solid var(--c);border-bottom:0}
/* the benefit card, inside a leaflet popup */
.leaflet-popup.wiPop .leaflet-popup-content{margin:0;width:248px!important;max-height:72vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
.leaflet-popup.wiPop .leaflet-popup-content-wrapper{border-radius:12px;padding:0}
.wiCard2{padding:13px 14px 14px}
.wiCard2 .wiCardTop{display:flex;align-items:center;gap:8px}
.wiCard2 .wiCardName{font-size:13.5px;font-weight:600;color:var(--p900,#05132E)}
.wiCard2 .wiCardScale{margin-left:auto;font-size:9px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:#6B7785;border:1px solid var(--line);border-radius:5px;padding:2px 5px}
.wiCard2 .wiCardDesc{font-size:11.6px;color:#6B7785;line-height:1.45;margin:8px 0 0}
.wiSppRow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:9px;
  border-top:1px dashed var(--line);padding-top:9px}
.wiSppLbl{font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#6B7785}
.wiSp{display:flex;align-items:center;gap:4px;font-size:10.5px;font-weight:600;color:#5b7c53}
.wiSp svg{width:15px;height:15px;stroke:currentColor;fill:none}
.wiRemove{margin-top:11px;width:100%;border:1px solid var(--line);background:#fff;color:#b4443a;
  border-radius:8px;padding:7px;font:inherit;font-size:11.5px;font-weight:600;cursor:pointer}
.wiRemove:hover{background:#fdf2f1;border-color:#e7c3bf}

/* benefit radar on the card */
.wiRadar{width:100%;height:auto;display:block;margin:10px auto 0;overflow:visible;
  background:#fff;border:1px solid #E9ECEF;border-radius:12px;padding:6px 4px;box-sizing:border-box}
.wiRadarLbl{font-size:10px;fill:#2A3442;font-weight:600}
.wiRadarCap{font-size:9.3px;color:#6B7785;text-align:center;margin:0 0 2px}

/* ---- what-if: mobile bottom palette strip ---- */
#wiStrip{position:absolute;left:0;right:0;bottom:0;z-index:1000;display:flex;gap:7px;
  padding:8px 10px;padding-bottom:calc(8px + env(safe-area-inset-bottom));overflow-x:auto;
  background:rgba(255,255,255,.97);backdrop-filter:blur(8px);border-top:1px solid var(--line);
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
#wiStrip::-webkit-scrollbar{display:none}
/* the base .wiTile rule sets touch-action:none for the desktop/vertical sidebar
   palette (#wiList), where a drag can go any direction. Inside the mobile strip
   the tiles fill nearly the whole scrollable width (only a 7px gap between them),
   so a swipe meant to SCROLL the strip almost always starts ON a tile — with
   touch-action:none that swipe got hijacked into an accidental drag instead of
   scrolling, so item further right were effectively unreachable/"not sticking".
   pan-x lets the browser scroll the strip natively on a horizontal swipe while
   still blocking vertical/pinch gestures, so an upward drag toward the map is
   never native-scroll-hijacked and still reaches our own pointer handlers. */
#wiStrip .wiTile{touch-action:pan-x;flex:none;flex-direction:column;align-items:center;gap:4px;min-width:58px;
  padding:7px 5px;border-radius:11px}
#wiStrip .wiTileIc{width:30px;height:30px}
#wiStrip .wiTileIc.n{width:38px;height:38px}
#wiStrip .wiTileName{font-size:9.3px;text-align:center;line-height:1.08;max-width:64px}
@media(min-width:901px){#wiStrip{display:none!important}}   /* desktop uses the sidebar palette */
@media(max-width:900px){
  #wiPanel{bottom:calc(84px + env(safe-area-inset-bottom))}  /* sit above the strip */
  #wiPanelBody{max-height:32vh}
}

/* ================= mobile navigation shell ================= */
#mHome,#mLaunch{display:none}                 /* JS shows these on mobile */
@media(min-width:901px){ #mHome,#mLaunch{display:none!important} }

/* home: tree poster. Sand ground with soft green glows, one tree, the title set
   like a poster around it, two green-glass cards at the foot of the trunk.
   Design size 402 x 874. Inside .mhPoster (a size container) one design px is
   --u = min(width/402, height/395); the tree and the lower title lines hang from
   the poster bottom so the trunk always runs down behind the cards.
   Fonts (SIL OFL): "PosterOswald" = Oswald 700; "HomeInter" = Inter 400-900
   variable. Named HomeInter because the app's own 'Inter' (300-700) is global;
   both are used only inside #mHome. */
@font-face{font-family:"PosterOswald";font-weight:900;font-display:swap;src:url('../fonts/Oswald-700.woff') format('woff')}
@font-face{font-family:"HomeInter";font-style:normal;font-weight:400 900;font-display:swap;
  src:url('../fonts/Inter-var.woff2') format('woff2')}
#mHome{position:fixed;inset:0;z-index:1500;flex-direction:column;overflow-x:hidden;overflow-y:auto;
  background:#FAFAFA;color:#05132E;font-family:"HomeInter",'Inter',system-ui,-apple-system,sans-serif;
  -webkit-overflow-scrolling:touch}
@keyframes mhDrift1{from{transform:translate(0,0) scale(1)}to{transform:translate(-16px,12px) scale(1.06)}}
@keyframes mhDrift2{from{transform:translate(0,0) scale(1)}to{transform:translate(14px,-10px) scale(1.05)}}
@keyframes mhRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes mhPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.07)}}
/* ambient glows (z 0) */
.mhGlow{position:absolute;border-radius:50%;filter:blur(60px);pointer-events:none;z-index:0}
.mhG1{width:380px;height:360px;left:calc(50% - 191px);top:150px;
  background:radial-gradient(closest-side,rgba(176,214,120,.55),rgba(176,214,120,0));animation:mhDrift1 14s ease-in-out infinite alternate}
.mhG2{width:300px;height:260px;left:-120px;top:520px;
  background:radial-gradient(closest-side,rgba(232,214,170,.9),rgba(232,214,170,0));animation:mhDrift2 16s ease-in-out infinite alternate}
.mhG3{width:260px;height:240px;right:-110px;top:40px;
  background:radial-gradient(closest-side,rgba(205,228,170,.7),rgba(205,228,170,0));animation:mhDrift2 18s ease-in-out infinite alternate-reverse}
/* brand + coordinates */
.mhTop{position:relative;z-index:3;flex:none;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
  padding:max(12px, calc(env(safe-area-inset-top) + 4px)) clamp(18px,6.5vw,26px) 0 clamp(18px,7vw,28px);
  animation:mhRise .5s cubic-bezier(.2,.8,.3,1) both}
.mhBrand b{display:block;font-size:clamp(26px,7.5vw,30px);font-weight:900;letter-spacing:-.01em;line-height:1}
.mhBrand small{display:block;margin-top:5px;font-size:13px;font-weight:500;letter-spacing:.01em;color:#6B7785}
.mhCoords{margin-top:6px;text-align:right;font-size:10px;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;
  color:#6b7c8c;font-variant-numeric:tabular-nums;white-space:nowrap}
/* poster: tree (z 1) and title (z 2) */
.mhPoster{position:relative;z-index:1;flex:1 1 0;min-height:220px;container-type:size;
  animation:mhRise .6s cubic-bezier(.2,.8,.3,1) .05s both}
.mhPoster>*{--u:min(calc(100cqw / 402), calc(100cqh / 395))}
.mhTree{position:absolute;display:block;left:50%;bottom:calc((-89 - 82) * var(--u));z-index:1;
  width:calc(400 * var(--u) * 1.56);height:auto;transform:translateX(-50%);pointer-events:none;user-select:none}
.mhTitle{position:absolute;inset:0;z-index:2;margin:0;pointer-events:none;
  font-family:"PosterOswald","HomeInter",'Inter',sans-serif;font-weight:900;
  font-size:clamp(44px, calc(76 * var(--u)), 82px);line-height:.86;letter-spacing:-.025em;
  text-shadow:0 4px 10px rgba(5,19,46,.25);white-space:nowrap}
.mhTitle span{position:absolute;display:block}
.mhL1{left:clamp(18px,6.5vw,26px);top:calc(12 * var(--u))}
.mhL2{right:clamp(18px,6.5vw,26px);top:calc(100cqh - 310 * var(--u));color:#1e5a30}
.mhL3{left:clamp(18px,6.5vw,26px);top:calc(100cqh - 155 * var(--u))}
/* cards (z 3): EAGLE glass recipe, lightened and tinted green */
.mhCards{position:relative;z-index:3;flex:none;display:grid;grid-template-columns:1fr 1fr;gap:11px;
  padding:0 clamp(14px,6.7vw,27px);margin-bottom:clamp(12px, calc(14vh - 80px), 24px)}
.mhCard{position:relative;display:flex;flex-direction:column;gap:10px;margin:0;width:100%;min-width:0;
  min-height:clamp(200px,28vh,245px);padding:12px 12px 14px;border-radius:22px;text-align:left;color:inherit;
  font:inherit;cursor:pointer;overflow:hidden;
  border:1px solid rgba(255,255,255,.78);
  background:linear-gradient(155deg,rgba(255,255,255,.66) 0%,rgba(236,246,220,.42) 52%,rgba(186,224,150,.34) 100%);
  -webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -14px 28px rgba(120,184,88,.14),
             0 14px 34px rgba(31,74,36,.16),0 2px 6px rgba(31,74,36,.08);
  transition:transform .12s ease;animation:mhRise .5s cubic-bezier(.2,.8,.3,1) both}
.mhCard::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(90% 55% at 8% 0%,rgba(255,255,255,.6),rgba(255,255,255,0) 70%),
  linear-gradient(115deg,rgba(255,255,255,0) 58%,rgba(214,240,190,.35) 72%,rgba(255,255,255,0) 86%)}
.mhCard>*{position:relative}
.mhCards .mhCard:nth-child(1){animation-delay:.12s}
.mhCards .mhCard:nth-child(2){animation-delay:.19s}
.mhCard:active{transform:scale(.985)}
.mhCard:focus-visible{outline:2px solid #066CB6;outline-offset:3px}
.mhTile{display:block;flex:none;height:clamp(60px,10.2vh,89px);border-radius:13px;overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(5,19,46,.06)}
.mhTile img{display:block;width:100%;height:100%}
.mhTileIcon{display:grid;place-items:center;color:#066CB6;
  background:linear-gradient(150deg,rgba(255,255,255,.7),rgba(196,228,160,.55));box-shadow:inset 0 0 0 1px rgba(255,255,255,.8)}
.mhPin{width:44px;height:44px}
.mhYrs{display:flex;justify-content:space-between;margin-top:-4px;font-size:10px;line-height:1.4;letter-spacing:.06em;
  color:#6B7785;font-variant-numeric:tabular-nums}
.mhHead{display:block;font-size:15.5px;font-weight:700;
  letter-spacing:-.02em;line-height:1.15;color:#05132E;overflow-wrap:break-word}
.mhNw{white-space:nowrap}
.mhArrow{display:inline-block;width:16px;height:16px;margin-left:3px;vertical-align:-2px;fill:none;stroke:#066CB6;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mhBody{display:block;margin-top:-4px;font-size:13px;font-weight:400;line-height:1.4;color:#2A3442;
  white-space:normal;overflow-wrap:break-word;hyphens:auto}
@media(prefers-reduced-motion:reduce){
  .mhCard{transition:none}
  .mhCard:active{transform:none}
  .mhTop,.mhPoster,.mhCard,.mhGlow{animation:none}
}

/* icon launcher */
#mLaunch{position:fixed;inset:0;z-index:1500;flex-direction:column;background:var(--bg)}
.mlHead{display:flex;align-items:center;gap:8px;padding:13px 12px;border-bottom:1px solid var(--line);flex:none}
.mlHead button{border:0;background:none;padding:5px 6px;color:var(--p800);cursor:pointer}
.mlHead b{font-size:16px;color:var(--p900,#05132E)}
.mlGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px;align-content:start;overflow-y:auto}
.mlTile{border:1px solid var(--line);background:#fff;border-radius:18px;padding:22px 12px;display:flex;
  flex-direction:column;align-items:center;gap:11px;cursor:pointer;text-align:center;font:inherit}
.mlTile:active{border-color:var(--teal)}
.mlTile .li{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;color:#fff}
.mlTile .li .ic{width:26px;height:26px}
.mlTile span{font-size:13px;font-weight:600;color:var(--p900,#05132E);line-height:1.2}
.bg-heat{background:linear-gradient(135deg,#ef6b43,#e4572e)}
.bg-green{background:linear-gradient(135deg,#4bb268,#3f9d5a)}
.bg-teal{background:linear-gradient(135deg,#2bb9b3,#0ea5a3)}

/* in-view mobile top bar (reuses #mobbar) */
@media(max-width:900px){
  #mobbar{gap:10px}
  #mobbar #mBack,#mobbar #mGear{border:0;background:none;padding:5px 7px;color:var(--p800);
    cursor:pointer;display:grid;place-items:center}
  #mobbar #mGear{margin-left:auto}
  #mobbar #mTitle{font-size:15px;font-weight:600;color:var(--p900,#05132E)}
}

/* ---- mobile in-view bar (home · pager · title · layers) + layer grid ---- */
@media(max-width:900px){
  #mobbar{gap:6px;padding:8px 16px;justify-content:space-evenly}   /* spread the icons evenly */
  #mobbar button{border:0;background:none;padding:6px 7px;color:var(--p800);cursor:pointer;display:grid;place-items:center}
  #mobbar #mHomeBtn .ic,#mobbar #mLayersBtn .ic{width:22px;height:22px}
  /* the title opens the page menu (a full page), so it gets a tappable pill, not a ▾ */
  #mobbar #mTitleBtn{flex:0 1 auto;min-width:0;display:flex;align-items:center;padding:6px 4px;cursor:default}
  #mobbar #mTitleBtn b{font-size:15px;font-weight:600;color:var(--p900,#05132E);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #mobbar .mTitleChev{display:none}                /* no down-chevron: nothing drops "down" */
  #mobbar #mTitleBtn.hasMenu{cursor:pointer;background:var(--p50);border-radius:8px;padding:6px 12px}
  #mobbar #mTitleBtn.hasMenu b{color:var(--p800)}
  #mobbar #mHelpBtn{font-size:16px;font-weight:700;color:var(--p500,#066CB6)}
  #helpBtn{display:none!important}                 /* on mobile the ? lives in the bar */
}
#mLayers{display:none}
@media(min-width:901px){#mLayers{display:none!important}}
/* same family as the home screen and the Nicosia-area launcher: dusk gradient +
   soft glows behind the header and the list-style layer rows. The day/night/
   greenery scene bands (.mlBands, below) already have their own crafted look and
   are left as-is; only the plain grouped list (.mlList/.mlRow) gets the same
   glass-card + icon-badge treatment as the other two screens. */
#mLayers{position:fixed;inset:0;z-index:1550;flex-direction:column;overflow:hidden;
  background:linear-gradient(175deg,#3f6f94 0%,#2b5a80 30%,#1c4463 62%,#123249 100%)}
#mLayers::before,#mLayers::after{content:"";position:absolute;border-radius:50%;pointer-events:none;
  filter:blur(46px)}
#mLayers::before{width:220px;height:220px;top:-60px;right:-40px;background:rgba(245,158,11,.24);
  animation:mhDrift1 10s ease-in-out infinite alternate}
#mLayers::after{width:260px;height:260px;bottom:-50px;left:-70px;background:rgba(63,157,90,.22);
  animation:mhDrift2 12s ease-in-out infinite alternate}
#mLayers .mlHead{position:relative;z-index:1;justify-content:space-between;background:transparent;
  border-bottom:1px solid rgba(255,255,255,.18)}
#mLayers .mlHead b{font-size:16px;color:#fff}
#mLayers .mlHead button{border:0;background:none;color:#fff;cursor:pointer;padding:5px}
@media(prefers-reduced-motion:reduce){ #mLayers::before,#mLayers::after{animation:none} }
.mlTile.on{border-color:var(--teal);box-shadow:0 0 0 1px var(--teal) inset}
.mMore{margin:2px 16px calc(20px + env(safe-area-inset-bottom));padding:12px;border:1px solid var(--line);
  border-radius:12px;background:#fff;color:var(--p800);font:inherit;font-size:13px;font-weight:600;cursor:pointer}

/* ---- what-if: swipeable panel, drag handle, centred benefit modal ---- */
#sheetHandle{display:none}                         /* desktop: no handle */
.wiPanelHead{cursor:grab;user-select:none;touch-action:none;position:relative}
.wiPanelGrab{display:none}
@media(max-width:900px){
  .wiPanelGrab{display:block;position:absolute;top:5px;left:50%;transform:translateX(-50%);
    width:38px;height:4px;border-radius:3px;background:#CED4DA}
  .wiPanelHead{padding-top:14px}
  #wiPanel.min #wiPanelBody{display:none}
}
/* centred benefit card modal */
#wiModal{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:18px}
.wiModalBack{position:absolute;inset:0;background:rgba(5,19,46,.45)}
.wiModalCard{position:relative;z-index:1;background:#fff;border-radius:16px;box-shadow:var(--shadow);
  width:min(360px,94vw);max-height:86vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
.wiModalCard .wiCard2{padding:16px 18px 18px}
.wiModalClose{position:absolute;top:9px;right:9px;z-index:2;border:0;background:#E9ECEF;border-radius:50%;
  width:30px;height:30px;display:grid;place-items:center;color:#2A3442;cursor:pointer}
.wiModalClose .ic{width:18px;height:18px}

/* ---- time slider: touch-friendly, bigger on mobile ---- */
#month{-webkit-appearance:none;appearance:none;height:6px;border-radius:5px;background:#E9ECEF;outline:none}
#month::-webkit-slider-runnable-track{height:6px;border-radius:5px}
#month::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;
  background:var(--teal);border:3px solid #fff;box-shadow:0 1px 5px rgba(5,19,46,.4);cursor:pointer;margin-top:-9px}
#month::-moz-range-track{height:6px;border-radius:5px;background:#E9ECEF}
#month::-moz-range-thumb{width:24px;height:24px;border:3px solid #fff;border-radius:50%;background:var(--teal);cursor:pointer}
@media(max-width:900px){
  #player{bottom:14px;padding:11px 15px;gap:13px;width:calc(100% - 20px)}
  #playBtn{width:48px;height:48px;font-size:17px;flex:none}
  #month{height:9px}
  #month::-webkit-slider-runnable-track{height:9px}
  #month::-webkit-slider-thumb{width:32px;height:32px;margin-top:-12px}
  #month::-moz-range-track{height:9px}
  #month::-moz-range-thumb{width:32px;height:32px}
  .pLabels{font-size:12px;margin-top:5px}
  .pLabels b{font-size:14.5px}
  #speed{font-size:13px;padding:8px 9px}
}

/* ---- footer links + about/contact page ---- */
.footLinks{margin-top:7px;display:flex;gap:7px;align-items:center}
.footLink{border:0;background:none;padding:0;color:var(--p500);font:inherit;font-size:11.5px;
  font-weight:600;cursor:pointer;text-decoration:underline}
.footLink:hover{color:var(--teal)}
.mhFoot{position:relative;z-index:4;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:auto;padding:14px 22px calc(14px + env(safe-area-inset-bottom)) 18px;background:#fff}
.mhFunders{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.mhFunders img{height:40px;width:auto;display:block}          /* EU emblem: min. height 1 cm */
.mhFootLinks{display:flex;gap:6px;align-items:center}
.mhFoot .footLink{font-size:13px;font-weight:600;color:#2A3442;text-decoration:none;padding:6px 2px}
.mhFoot span{color:#6B7785}

#infoPage{position:fixed;inset:0;z-index:1600;background:var(--bg);
  overflow-y:auto;-webkit-overflow-scrolling:touch}
#infoPage .ppBar{position:sticky;top:0;z-index:1;background:var(--bg);border-bottom:1px solid var(--line)}
#infoPage .ppBody{padding:20px 18px 64px}
.infoWrap{max-width:680px;margin:0 auto;display:flex;flex-direction:column;gap:16px}
.infoLede{font-size:15px;line-height:1.6;color:var(--p900,#05132E);margin:0}
.infoCard{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.infoCard h2{font-size:14px;margin:0 0 8px;color:var(--p800)}
.infoCard p{font-size:13.5px;line-height:1.6;color:#2A3442;margin:0 0 8px}
.infoCard p:last-child{margin-bottom:0}
.infoList{margin:0;padding-left:18px;font-size:13.5px;line-height:1.7;color:#2A3442}
.infoPartners{display:grid;gap:11px}
.infoPartner{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px 15px}
.infoPartnerTxt{min-width:0}
.infoPartner h3{font-size:13.5px;margin:0 0 4px;color:var(--p900,#05132E)}
.infoRole{font-size:12.5px;line-height:1.5;color:#2A3442;margin:0 0 7px}
.infoMeta{font-size:11.5px;color:var(--muted)}
.infoMeta a{color:var(--p500);font-weight:600}
.infoEU{font-size:11px;line-height:1.55;color:var(--muted);border-top:1px dashed var(--line);
  padding-top:12px;margin-top:2px}

/* ---- per-view help: ? button + "how to use" card ---- */
#helpBtn{position:absolute;right:11px;top:46%;z-index:1000;width:34px;height:34px;border-radius:50%;
  border:1px solid var(--line);background:rgba(255,255,255,.97);color:var(--p800);font-weight:700;
  font-size:16px;cursor:pointer;box-shadow:var(--shadow);display:grid;place-items:center;line-height:1}
#helpBtn:hover{background:var(--p50)}
#helpModal{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px}
.helpCard{position:relative;z-index:1;background:#fff;border-radius:16px;box-shadow:var(--shadow);
  width:min(380px,94vw);max-height:82vh;overflow-y:auto;padding:20px 20px 18px}
.helpTitle{font-size:16px;margin:0 0 12px;color:var(--p800)}
.helpList{margin:0 0 16px;padding-left:20px;display:flex;flex-direction:column;gap:9px}
.helpList li{font-size:13.5px;line-height:1.5;color:#2A3442}
.helpCard .helpGot{width:100%}
.helpCard .wiModalClose{position:absolute;top:10px;right:10px;border:0;background:#E9ECEF;border-radius:50%;
  width:30px;height:30px;display:grid;place-items:center;color:#2A3442;cursor:pointer}
.helpCard .wiModalClose .ic{width:18px;height:18px}

/* ---- Nicosia-area launcher: four full-screen coloured question bands ---- */
.bg-amber{background:linear-gradient(135deg,#f4a836,#d98014)}
#mLaunch #mlGrid{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;padding:0;
  overflow:hidden;grid-template-columns:none}
.mlBand{flex:1;min-height:0;width:100%;border:0;display:flex;flex-direction:column;
  justify-content:center;align-items:flex-start;gap:11px;padding:20px 22px;color:#fff;
  text-align:left;cursor:pointer;font:inherit}
.mlBand:active{filter:brightness(.95)}
.mlBandIc{width:32px;height:32px;flex:none;color:rgba(255,255,255,.95);stroke:currentColor}
.mlBandTxt{font-size:17px;font-weight:600;line-height:1.28;max-width:90%;text-wrap:balance}

/* ---- Nicosia-area launcher: same family as the home screen (dusk gradient, glass
   cards, icon badges, faint index numerals, chevrons) — scoped to #mLaunch only so
   the day/night/greenery layer picker (#mLayersGrid.mlBands, its own scene style)
   and the base .mlBand rules it shares are left untouched ---- */
#mLaunch{background:linear-gradient(175deg,#3f6f94 0%,#2b5a80 30%,#1c4463 62%,#123249 100%);
  overflow:hidden}
#mLaunch::before,#mLaunch::after{content:"";position:absolute;border-radius:50%;pointer-events:none;
  filter:blur(46px)}
#mLaunch::before{width:220px;height:220px;top:-60px;right:-40px;background:rgba(245,158,11,.28);
  animation:mhDrift1 10s ease-in-out infinite alternate}
#mLaunch::after{width:260px;height:260px;bottom:-50px;left:-70px;background:rgba(63,157,90,.26);
  animation:mhDrift2 12s ease-in-out infinite alternate}
#mLaunch .mlHead{position:relative;z-index:1;background:transparent;border-bottom:1px solid rgba(255,255,255,.18)}
#mLaunch .mlHead button{color:#fff}
#mLaunch .mlHead b{color:#fff}
#mLaunch #mlGrid{position:relative;z-index:1;gap:12px;padding:14px 16px calc(14px + env(safe-area-inset-bottom))}
#mLaunch .mlBand{position:relative;overflow:hidden;flex-direction:row;align-items:center;gap:13px;
  padding:18px 18px;border:1px solid rgba(255,255,255,.28);border-radius:18px;
  -webkit-backdrop-filter:blur(16px) saturate(1.3);backdrop-filter:blur(16px) saturate(1.3);
  box-shadow:0 10px 28px rgba(9,26,44,.28);transition:transform .12s ease,filter .12s ease;
  animation:mhRise .5s cubic-bezier(.2,.8,.3,1) both}
#mLaunch .mlBand:nth-child(1){animation-delay:.08s}
#mLaunch .mlBand:nth-child(2){animation-delay:.15s}
#mLaunch .mlBand:nth-child(3){animation-delay:.22s}
#mLaunch .mlBand:nth-child(4){animation-delay:.29s}
#mLaunch .mlBand:active{transform:scale(.985);filter:brightness(1.1)}
#mLaunch .mlBand[data-v="ts"]  {background:linear-gradient(115deg,rgba(63,157,90,.55),rgba(5,19,46,.46))}
#mLaunch .mlBand[data-v="qt"]  {background:linear-gradient(115deg,rgba(217,149,0,.55),rgba(5,19,46,.46))}
#mLaunch .mlBand[data-v="vu"]  {background:linear-gradient(115deg,rgba(228,87,46,.55),rgba(5,19,46,.46))}
#mLaunch .mlBand[data-v="cool"]{background:linear-gradient(115deg,rgba(44,147,209,.55),rgba(5,19,46,.46))}
/* faint index numeral, same editorial touch as the home cards */
#mLaunch .mlBandNum{position:absolute;top:-10px;right:10px;z-index:0;font-size:44px;font-weight:800;
  line-height:1;letter-spacing:-.02em;color:rgba(255,255,255,.16);pointer-events:none;
  font-variant-numeric:tabular-nums}
/* icon badge, same treatment as .mhIco */
#mLaunch .mlBandIco{position:relative;z-index:1;flex:none;width:46px;height:46px;border-radius:14px;
  display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);
  animation:mhPulse 3.4s ease-in-out infinite}
#mLaunch .mlBandIco .mlBandIc{position:static;width:28px;height:28px;color:#fff;stroke:currentColor}
#mLaunch .mlBand[data-v="ts"]   .mlBandIco{background:linear-gradient(135deg,#6fce8f,#066CB6)}
#mLaunch .mlBand[data-v="qt"]   .mlBandIco{background:linear-gradient(135deg,#f2b60c,#c2660c)}
#mLaunch .mlBand[data-v="vu"]   .mlBandIco{background:linear-gradient(135deg,#f37a52,#c2401b)}
#mLaunch .mlBand[data-v="cool"] .mlBandIco{background:linear-gradient(135deg,#4fb6e8,#1d6fa5)}
#mLaunch .mlBand:nth-child(2) .mlBandIco{animation-delay:.4s}
#mLaunch .mlBand:nth-child(3) .mlBandIco{animation-delay:.8s}
#mLaunch .mlBand:nth-child(4) .mlBandIco{animation-delay:1.2s}
#mLaunch .mlBandTxt{position:relative;z-index:1;font-size:19px;font-weight:700;line-height:1.28;
  max-width:74%;text-wrap:balance;color:#fff}
#mLaunch .mlBandChev{position:relative;z-index:1;margin-left:auto;flex:none;color:rgba(255,255,255,.8)}
#mLaunch .mlBandChev .ic{width:18px;height:18px}
#mLaunch .mlBand[data-v="ts"]   .mlBandChev{color:#5fc484}
#mLaunch .mlBand[data-v="qt"]   .mlBandChev{color:#f5c451}
#mLaunch .mlBand[data-v="vu"]   .mlBandChev{color:#f4805a}
#mLaunch .mlBand[data-v="cool"] .mlBandChev{color:#63c2e8}
@media(prefers-reduced-motion:reduce){
  #mLaunch::before,#mLaunch::after,#mLaunch .mlBand,#mLaunch .mlBandIco{animation:none}
  #mLaunch .mlBand{transition:none}
  #mLaunch .mlBand:active{transform:none}
}

/* ---- over-the-years: coloured layer bands + on-map compare ---- */
.bg-orange{background:linear-gradient(135deg,#fb8c3b,#ef6c14)}
.bg-blue{background:linear-gradient(135deg,#3a97d4,#1d6fa5)}
.mlBands{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px;
  padding:12px 16px calc(14px + env(safe-area-inset-bottom));overflow-y:auto}

.barCompare{border:1px solid var(--teal);background:var(--p50);color:var(--p800);border-radius:8px;
  padding:6px 11px;font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
.barCompare:hover{background:#D2E6F5}
.futPaths{display:inline-flex;gap:4px;vertical-align:middle}
.futPaths button{max-width:130px;white-space:normal;line-height:1.15;text-align:center;font-size:11.5px;
  padding:4px 8px;border:1px solid #CED4DA;background:#fff;color:#05132E;border-radius:8px;cursor:pointer}
.futPaths button.on{border-color:var(--teal);background:var(--p50);color:var(--p800);font-weight:600}
/* phone: the row wraps; year and the two scenarios sit on their own line, buttons share the width */
@media(max-width:900px){
  #seaCompareWrap{flex:1 1 100%;min-width:0;max-width:100%;flex-wrap:wrap;justify-content:center;row-gap:6px}
  #futPick{flex-basis:100%;flex-wrap:nowrap;align-items:stretch;gap:5px;min-width:0}
  .futPaths{display:flex;flex:1;min-width:0;gap:5px}
  .futPaths button{flex:1;max-width:none;min-width:0;font-size:12px;padding:5px 6px}
}
#seaChangePanel{position:absolute;right:12px;top:70px;z-index:1000;width:262px;max-width:calc(100% - 24px);
  background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:12px 13px}
.scHead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.scHead b{font-size:12.5px;color:var(--p800)}
#seaChangePanel .two{gap:8px}
#seaChangePanel .fld{margin-bottom:0}
#seaChangePanel .two{display:block}
#seaChangePanel .fld+.fld{margin-top:8px}
.seaPick{display:flex;gap:6px}
.seaPick select{flex:1;min-width:0}
#seaChangeNote{font-size:11.5px;color:var(--p800);margin-top:9px;font-weight:600}
@media(max-width:900px){ #seaChangePanel{right:8px;left:8px;width:auto;top:auto;bottom:14px} }
.scHint{display:block;margin-top:6px;color:var(--muted);font-weight:400}

/* Background control shares the legend's line, pushed to the right */
.legendGroup{gap:12px}
#bgWrap{align-self:center;gap:6px}
#bgWrap select{padding:5px 8px;font-size:12px}
@media(max-width:900px){ #bgWrap .barLbl{display:none} }   /* tight on phones: just the dropdown */

/* spread the top-bar content evenly on phones (use the whole width, balanced) */
@media(max-width:900px){
  .barBody{justify-content:space-evenly;gap:10px 16px}
  .legendGroup{justify-content:space-evenly;width:100%}
  #bgWrap{margin:0}
}

/* layers page (Over the years) — same card language as the Nicosia-area launcher
   (rounded corners, real gaps between cards, icon-in-a-badge) applied to the
   three gradient colour identities, WITHOUT the launcher's large faint index
   numeral (the owner explicitly doesn't want that decoration here). */
#mLayersGrid.mlBands .mlBand{position:relative;flex-direction:row;align-items:center;
  justify-content:flex-start;gap:14px;padding:18px;
  border:1px solid rgba(255,255,255,.28);border-radius:18px;
  box-shadow:0 10px 26px rgba(9,26,44,.26)}
#mLayersGrid.mlBands .mlBandIco{position:relative;flex:none;width:44px;height:44px;
  border-radius:13px;display:grid;place-items:center;background:rgba(255,255,255,.18);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
#mLayersGrid.mlBands .mlBandIc{display:block;width:24px;height:24px;flex:none;
  color:#fff;stroke:currentColor}
#mLayersGrid.mlBands .mlBandInfo{display:flex;flex-direction:column;gap:5px;min-width:0}
#mLayersGrid.mlBands .mlBandTxt{text-transform:uppercase;letter-spacing:.02em;
  font-size:16px;font-weight:700}
#mLayersGrid.mlBands .mlBandSub{font-size:12.5px;font-weight:500;line-height:1.35;
  color:rgba(255,255,255,.92);max-width:34ch}
/* selected card: an outer ring, same treatment as the other layer-picker surfaces */
#mLayersGrid.mlBands .mlBand.on{box-shadow:0 0 0 2.5px #fff,0 10px 26px rgba(9,26,44,.26)}

/* day — amber/orange diagonal */
#mLayersGrid.mlBands .mlBand[data-v="lst"]{background:linear-gradient(135deg,#ffb75e,#ed8f1c 55%,#d9720a)}
/* night — dark navy diagonal */
#mLayersGrid.mlBands .mlBand[data-v="lstn"]{background:linear-gradient(135deg,#2c4a72,#17304e 55%,#0b1c30)}
/* greenness — green diagonal */
#mLayersGrid.mlBands .mlBand[data-v="ndvi"]{background:linear-gradient(135deg,#5cc078,#3a9457 55%,#276f3f)}

/* each-area layer picker: a springboard of colour-coded icon TILES grouped into
   two bordered "shelves" — not a flat list of similar rows. Every variable gets
   its own accent (not just one colour per group), so the grid reads with the
   same distinctiveness as the launcher's four cards. */
#mLayersGrid.mlList{position:relative;z-index:1;flex:1;min-height:0;display:flex;flex-direction:column;
  gap:16px;padding:12px 16px calc(16px + env(safe-area-inset-bottom));overflow-y:auto}
.mlSection{flex:none;border:1px solid rgba(255,255,255,.16);border-radius:20px;
  background:rgba(255,255,255,.06);padding:6px 10px 12px;
  animation:mhRise .4s cubic-bezier(.2,.8,.3,1) both}
.mlSection+.mlSection{animation-delay:.08s}
.mlHdr{flex:none;background:transparent;color:rgba(255,255,255,.8);font-size:11.5px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;padding:10px 6px 8px}
.mlTileGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.mlRow{min-height:104px;border:1px solid rgba(255,255,255,.26);border-radius:16px;width:100%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
  padding:16px 8px 12px;color:#fff;font:inherit;font-size:12.5px;font-weight:700;text-align:center;
  cursor:pointer;-webkit-backdrop-filter:blur(14px) saturate(1.3);backdrop-filter:blur(14px) saturate(1.3);
  box-shadow:0 8px 18px rgba(9,26,44,.26);transition:transform .12s ease,filter .12s ease}
.mlRow:active{transform:scale(.96);filter:brightness(1.1)}
.mlRow.on{box-shadow:0 0 0 2.5px #fff,0 8px 18px rgba(9,26,44,.26)}
.mlRowIco{flex:none;width:46px;height:46px;border-radius:14px;display:grid;place-items:center;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.32),0 3px 8px rgba(0,0,0,.18)}
.mlRowIco .ic{width:24px;height:24px;stroke:currentColor;fill:none;color:#fff}
.mlRowTxt{line-height:1.22;max-width:92%;text-wrap:balance}
/* one accent per variable — heat/green family */
.mlRow[data-v="lst"]     {background:linear-gradient(150deg,rgba(228,87,46,.5),rgba(5,19,46,.5))}
.mlRow[data-v="lst"]     .mlRowIco{background:linear-gradient(135deg,#f37a52,#c2401b)}
.mlRow[data-v="ndvi"]    {background:linear-gradient(150deg,rgba(63,157,90,.5),rgba(5,19,46,.5))}
.mlRow[data-v="ndvi"]    .mlRowIco{background:linear-gradient(135deg,#6fce8f,#066CB6)}
.mlRow[data-v="tree"]    {background:linear-gradient(150deg,rgba(31,92,52,.6),rgba(5,19,46,.5))}
.mlRow[data-v="tree"]    .mlRowIco{background:linear-gradient(135deg,#4a9d63,#1f5c34)}
.mlRow[data-v="shade"]   {background:linear-gradient(150deg,rgba(14,140,120,.55),rgba(5,19,46,.5))}
.mlRow[data-v="shade"]   .mlRowIco{background:linear-gradient(135deg,#3fd0b8,#0b7c6e)}
.mlRow[data-v="built"]   {background:linear-gradient(150deg,rgba(120,101,79,.55),rgba(5,19,46,.5))}
.mlRow[data-v="built"]   .mlRowIco{background:linear-gradient(135deg,#a9957c,#6b5a45)}
.mlRow[data-v="parkacc"] {background:linear-gradient(150deg,rgba(32,150,200,.5),rgba(5,19,46,.5))}
.mlRow[data-v="parkacc"] .mlRowIco{background:linear-gradient(135deg,#4fd1e0,#1088a0)}
.mlRow[data-v="desert"]  {background:linear-gradient(150deg,rgba(201,162,39,.5),rgba(5,19,46,.5))}
.mlRow[data-v="desert"]  .mlRowIco{background:linear-gradient(135deg,#e0b83f,#a17a12)}
/* one accent per variable — people family */
.mlRow[data-v="pop"]     {background:linear-gradient(150deg,rgba(58,110,180,.5),rgba(5,19,46,.5))}
.mlRow[data-v="pop"]     .mlRowIco{background:linear-gradient(135deg,#5b9bdb,#2b5aa0)}
.mlRow[data-v="eld"]     {background:linear-gradient(150deg,rgba(107,90,190,.5),rgba(5,19,46,.5))}
.mlRow[data-v="eld"]     .mlRowIco{background:linear-gradient(135deg,#a08ce0,#5b4bb0)}
.mlRow[data-v="chi"]     {background:linear-gradient(150deg,rgba(217,90,130,.5),rgba(5,19,46,.5))}
.mlRow[data-v="chi"]     .mlRowIco{background:linear-gradient(135deg,#f28aa8,#c94a72)}
@media(prefers-reduced-motion:reduce){
  .mlSection{animation:none}
  .mlRow{transition:none}
  .mlRow:active{transform:none}
}

/* Heat risk: hide the wordy grading controls (locked to summer, plain legend) */
#seasonSeg,#vuCtl .lensLabel,#lensSeg,#vuWhat,#vuCaution{display:none!important}

/* Nicosia-area band colours: yellow (gold, keeps white text legible) + light blue */
.bg-yellow{background:linear-gradient(135deg,#f2b60c,#d99500)}
.bg-lblue{background:linear-gradient(135deg,#4fb6e8,#2c93d1)}

/* what-if: Engomi park picker (over the map) */
#wiPick{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1001;
  width:320px;max-width:calc(100% - 32px);background:#fff;border-radius:16px;padding:18px;
  box-shadow:0 10px 30px rgba(5,19,46,.25)}
#wiPick h2{margin:0 0 4px;font-size:19px}
#wiPick p{margin:0 0 12px;font-size:14px;color:#2A3442}
.wiPickCard{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;
  min-height:56px;margin-top:8px;padding:10px 14px;border:1.5px solid #E9ECEF;border-radius:12px;
  background:#fff;font:inherit;text-align:left;cursor:pointer}
.wiPickCard b{font-size:16px}
.wiPickCard span{font-size:13px;color:#6B7785}
.wiPickCard:hover,.wiPickCard:focus-visible{border-color:#066CB6;outline:none}
#wiPickBtn{position:absolute;top:70px;left:50%;transform:translateX(-50%);z-index:1001;
  min-height:44px;padding:0 16px;border:0;border-radius:999px;background:#066CB6;color:#fff;
  font:inherit;font-weight:600;box-shadow:0 4px 12px rgba(5,19,46,.2);cursor:pointer}

/* ---- launch screen in the home palette (sand, white cards, navy ink) ---- */
#mLaunch{background:#FAFAFA}
#mLaunch::before{display:none}                 /* no green hue at the top */
#mLaunch::after{background:rgba(232,214,170,.85)}
#mLaunch .mlHead{border-bottom:1px solid rgba(5,19,46,.12)}
#mLaunch .mlHead button,#mLaunch .mlHead b{color:#05132E}
/* same green glass as the intro cards (.mhCard) */
#mLaunch .mlBand,#mLaunch .mlBand[data-v]{border:1px solid rgba(255,255,255,.78);
  background:radial-gradient(90% 55% at 8% 0%,rgba(255,255,255,.6),rgba(255,255,255,0) 70%),
    linear-gradient(115deg,rgba(255,255,255,0) 58%,rgba(214,240,190,.35) 72%,rgba(255,255,255,0) 86%),
    linear-gradient(155deg,rgba(255,255,255,.66) 0%,rgba(236,246,220,.42) 52%,rgba(186,224,150,.34) 100%);
  -webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -14px 28px rgba(120,184,88,.14),
             0 14px 34px rgba(31,74,36,.16),0 2px 6px rgba(31,74,36,.08)}
#mLaunch .mlBand,#mLaunch .mlBand *{color:#05132E}
#mLaunch .mlBandIco .mlBandIc{color:#fff}
#mLaunch .mlBandNum{color:rgba(5,19,46,.06)}

/* ---- phones: keep the top of every page clear of the notch / Dynamic Island
   (same rule as the home screen: the device safe area + 4px, at least 12px) ---- */
@media(max-width:900px){
  #mobbar,#mLaunch .mlHead,#mLayers .mlHead,#infoPage .ppBar,#parkPage .ppBar{
    padding-top:max(12px, calc(env(safe-area-inset-top) + 4px))}
}

/* Greener park: plain-language results, tap prompt, suggested ideas (12 Oct) */
.wiTapNow{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;
  font-size:15px;line-height:1.4;color:var(--p900,#05132E);padding:6px 2px}
.wiTapNow span:last-child{font-size:13px;color:#6B7785}
.wiLifeHead{font-size:14px;font-weight:600;color:var(--p900,#05132E);line-height:1.4;margin:0 0 8px}
.wiLife{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid #E9ECEF}
.wiLife .ic{width:22px;height:22px;flex:none;color:#2f9e5a;margin-top:1px}
.wiLife b{display:block;font-size:15px;font-weight:600;line-height:1.35;color:var(--p900,#05132E)}
.wiLife span{display:block;font-size:12.5px;color:#6B7785;line-height:1.4;margin-top:2px}

/* ---- "Choose what to show" picker in the home / launcher style: sand ground, green glass tiles ---- */
#mLayers{background:#FAFAFA}
#mLayers::before{display:none}
#mLayers::after{background:rgba(232,214,170,.85)}
#mLayers .mlHead{border-bottom:1px solid rgba(5,19,46,.12)}
#mLayers .mlHead b,#mLayers .mlHead button{color:#05132E}
#mLayers .mlSection{border:1px solid rgba(5,19,46,.08);background:rgba(255,255,255,.35)}
#mLayers .mlHdr{color:#6B7785}
#mLayers .mlRow,#mLayers .mlRow[data-v]{color:#05132E;border:1px solid rgba(255,255,255,.78);
  background:radial-gradient(90% 55% at 8% 0%,rgba(255,255,255,.6),rgba(255,255,255,0) 70%),
    linear-gradient(115deg,rgba(255,255,255,0) 58%,rgba(214,240,190,.35) 72%,rgba(255,255,255,0) 86%),
    linear-gradient(155deg,rgba(255,255,255,.66) 0%,rgba(236,246,220,.42) 52%,rgba(186,224,150,.34) 100%);
  -webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -14px 28px rgba(120,184,88,.14),
             0 10px 24px rgba(31,74,36,.12),0 2px 6px rgba(31,74,36,.08)}
#mLayers .mlRow .mlRowTxt{color:#05132E}
#mLayers .mlRow:active{filter:none}
#mLayers .mlRow.on{box-shadow:0 0 0 2.5px #066CB6,inset 0 1px 0 rgba(255,255,255,.95),0 10px 24px rgba(31,74,36,.16)}

/* ---- map screens on phones: same green glass + sand as home / launcher.
   Floating panels use a more opaque glass so they stay legible over the map colours. ---- */
@media(max-width:900px){
  #mobbar{background:rgba(246,241,231,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(5,19,46,.10)}
  #bar,#player,#wiPanel,.wiModalCard,.leaflet-popup-content-wrapper,.leaflet-control-zoom a{
    border:1px solid rgba(255,255,255,.85);color:#05132E;
    background:radial-gradient(90% 55% at 8% 0%,rgba(255,255,255,.7),rgba(255,255,255,0) 70%),
      linear-gradient(155deg,rgba(255,255,255,.9) 0%,rgba(244,250,236,.84) 55%,rgba(214,236,190,.8) 100%);
    -webkit-backdrop-filter:blur(18px) saturate(170%);backdrop-filter:blur(18px) saturate(170%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 10px 26px rgba(31,74,36,.16),0 2px 6px rgba(31,74,36,.08)}
  #bar,#wiPanel{border-radius:16px}
  .wiModalCard{border-radius:20px}
  .leaflet-popup-content-wrapper{border-radius:14px}
  .leaflet-popup-tip{background:rgba(244,250,236,.95);box-shadow:none}
  .leaflet-control-zoom{border:0!important;box-shadow:none!important}
  .leaflet-control-zoom a{margin-bottom:6px;border-radius:12px!important;color:#05132E}
  #side{background:linear-gradient(180deg,rgba(250,247,240,.96),rgba(240,246,232,.96));
    -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-top:1px solid rgba(255,255,255,.9);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 -12px 30px rgba(31,74,36,.16)}
  .seg{background:rgba(5,19,46,.06);border-radius:11px}
  .seg button{border-radius:9px;color:#05132E}
  .seg button.on{background:#066CB6;color:#fff;box-shadow:0 2px 6px rgba(31,74,36,.25)}
}

/* park plan toggle, under "Change park" (12 Oct) */
#wiPlanBtn{position:absolute;top:122px;left:50%;transform:translateX(-50%);z-index:1001;
  min-height:36px;padding:0 14px;border:1px solid #CED4DA;border-radius:999px;background:#fff;color:#05132E;
  font:inherit;font-size:13px;font-weight:600;box-shadow:0 2px 8px rgba(5,19,46,.15);cursor:pointer}

/* placed items: no browser focus ring on map shapes (12 Oct) */
#map .leaflet-interactive:focus,#map svg:focus,#map path:focus{outline:none}

/* ---- every layer list in the band style of the day/night picker:
   full-width coloured card, glass icon square, uppercase title + one-line explanation ---- */
#mLayers .mlTileGrid{grid-template-columns:1fr;gap:10px}
#mLayers .mlRow,#mLayers .mlRow[data-v]{min-height:92px;flex-direction:row;align-items:center;justify-content:flex-start;
  gap:16px;padding:18px 18px;border-radius:20px;text-align:left;color:#fff;border:1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 10px 24px rgba(5,19,46,.18)}
#mLayers .mlRow .mlRowIco{width:46px;height:46px;border-radius:13px;background:rgba(255,255,255,.22)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.38)}
#mLayers .mlRow .mlRowIco .ic{color:#fff}
.mlRowInfo{display:flex;flex-direction:column;gap:5px;min-width:0}
#mLayers .mlRow .mlRowTxt{color:#fff;max-width:none;text-transform:uppercase;letter-spacing:.02em;font-size:15px;font-weight:800;line-height:1.2}
.mlRowSub{font-size:12.5px;font-weight:500;line-height:1.35;color:rgba(255,255,255,.92)}
#mLayers .mlRow.on{box-shadow:0 0 0 2.5px #fff,0 10px 26px rgba(5,19,46,.26)}
#mLayers .mlRow[data-v="lst"]    {background:linear-gradient(135deg,#ffb75e,#ed8f1c 55%,#d9720a)}
#mLayers .mlRow[data-v="ndvi"]   {background:linear-gradient(135deg,#5cc078,#3a9457 55%,#276f3f)}
#mLayers .mlRow[data-v="tree"]   {background:linear-gradient(135deg,#4a9d63,#2f7a46 55%,#1f5c34)}
#mLayers .mlRow[data-v="shade"]  {background:linear-gradient(135deg,#3fd0b8,#1aa18e 55%,#0b7c6e)}
#mLayers .mlRow[data-v="built"]  {background:linear-gradient(135deg,#b3a089,#8c7860 55%,#6b5a45)}
#mLayers .mlRow[data-v="parkacc"]{background:linear-gradient(135deg,#4fd1e0,#22a8c0 55%,#1088a0)}
#mLayers .mlRow[data-v="desert"] {background:linear-gradient(135deg,#e6c04a,#c49a22 55%,#a17a12)}
#mLayers .mlRow[data-v="pop"]    {background:linear-gradient(135deg,#6aa6e2,#3d75bf 55%,#2b5aa0)}
#mLayers .mlRow[data-v="eld"]    {background:linear-gradient(135deg,#a993e6,#7d68c8 55%,#5b4bb0)}
#mLayers .mlRow[data-v="chi"]    {background:linear-gradient(135deg,#f08aa8,#d9607f 55%,#b8456a)}

/* ---- what-if: "Choose a park" is its own calm page (sand, no map, no bars, no tools) ---- */
@media(max-width:900px){
  #wiPick{position:fixed!important;inset:0!important;z-index:1290!important;margin:0!important;transform:none!important;
    width:auto!important;max-width:none!important;border-radius:0!important;
    background:#FAFAFA!important;box-shadow:none!important;border:0!important;
    padding:max(110px, calc(env(safe-area-inset-top) + 70px)) 20px 24px!important;overflow-y:auto}
  #wiPick #wiPickH{font-size:26px;color:#05132E;margin:0 0 6px}
  #wiPick #wiPickP{color:#2A3442;margin:0 0 18px}
  #wiPick .wiPickCard{display:block;width:100%;text-align:left;margin:0 0 12px;padding:18px 18px;border-radius:20px;
    color:#05132E;border:1px solid rgba(255,255,255,.78);
    background:radial-gradient(90% 55% at 8% 0%,rgba(255,255,255,.6),rgba(255,255,255,0) 70%),
      linear-gradient(155deg,rgba(255,255,255,.66) 0%,rgba(236,246,220,.42) 52%,rgba(186,224,150,.34) 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.95),inset 0 -14px 28px rgba(120,184,88,.14),0 12px 28px rgba(31,74,36,.14)}
  body:has(#wiPick[style*="block"]) #side,
  body:has(#wiPick[style*="block"]) #wiPanel,
  body:has(#wiPick[style*="block"]) #bar,
  body:has(#wiPick[style*="block"]) .leaflet-control-container{display:none!important}
}

/* ================= 13 Oct change list ================= */
/* intro: soft shade under the title */
.mhTitle{text-shadow:0 2px 3px rgba(5,19,46,.18),0 10px 26px rgba(5,19,46,.38)}
/* intro: bigger, glassier entry cards (about half the screen); tree + title shrink above them */
.mhCard{min-height:clamp(250px,44vh,420px);gap:12px;padding:14px 14px 16px;border-radius:26px;
  border:1px solid rgba(255,255,255,.9);
  background:linear-gradient(155deg,rgba(255,255,255,.48) 0%,rgba(236,246,220,.26) 55%,rgba(186,224,150,.22) 100%);
  -webkit-backdrop-filter:blur(26px) saturate(185%);backdrop-filter:blur(26px) saturate(185%);
  box-shadow:inset 0 1px 0 #fff,inset 0 0 0 1px rgba(255,255,255,.35),inset 0 -18px 34px rgba(120,184,88,.16),
             0 18px 40px rgba(31,74,36,.18),0 2px 6px rgba(31,74,36,.08)}
.mhTile{flex:1 1 auto;height:auto;min-height:clamp(96px,20vh,210px);border-radius:16px}
.mhHead{font-size:17.5px}
.mhBody{font-size:13.5px}
.mhPoster{min-height:170px}
.mhTitle{font-size:clamp(36px, calc(70 * var(--u)), 74px)}

/* every layer / choice list: coloured band card with a lighter hue glowing on the right */
#mLayersGrid.mlBands .mlBand,#mLayers .mlRow,#mLaunch .mlBand{position:relative;overflow:hidden;isolation:isolate}
#mLayersGrid.mlBands .mlBand::after,#mLayers .mlRow::after,#mLaunch .mlBand::after,#wiPick .wiPickCard::after{
  content:"";position:absolute;z-index:-1;top:-30%;bottom:-30%;right:-18%;width:62%;border-radius:50%;
  background:radial-gradient(closest-side,rgba(232,214,170,.85),rgba(232,214,170,0));pointer-events:none}

/* Explore Nicosia launcher: same card format as the day / night / greenery picker */
#mLaunch #mlGrid{gap:10px}
#mLaunch .mlBand,#mLaunch .mlBand[data-v]{gap:14px;padding:18px;border:1px solid rgba(255,255,255,.28);border-radius:18px;
  -webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 10px 26px rgba(9,26,44,.22)}
#mLaunch .mlBand[data-v="ts"]  {background:linear-gradient(135deg,#5cc078,#3a9457 55%,#276f3f)}
#mLaunch .mlBand[data-v="qt"]  {background:linear-gradient(135deg,#f5c242,#d99500 55%,#b87700)}
#mLaunch .mlBand[data-v="vu"]  {background:linear-gradient(135deg,#f37a52,#e4572e 55%,#b8401b)}
#mLaunch .mlBand[data-v="cool"]{background:linear-gradient(135deg,#4fb6e8,#2c93d1 55%,#1d6fa5)}
#mLaunch .mlBand,#mLaunch .mlBand *{color:#fff}
#mLaunch .mlBandIco,#mLaunch .mlBand[data-v] .mlBandIco{width:44px;height:44px;border-radius:13px;
  background:rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
#mLaunch .mlBandIco .mlBandIc{width:24px;height:24px}
#mLaunch .mlBandInfo{display:flex;flex-direction:column;gap:5px;min-width:0}
#mLaunch .mlBandTxt{max-width:none;text-transform:uppercase;letter-spacing:.02em;font-size:16px;font-weight:700}
#mLaunch .mlBandSub{font-size:12.5px;font-weight:500;line-height:1.35;color:rgba(255,255,255,.92)}
#mLaunch .mlBand[data-v] .mlBandChev{color:rgba(255,255,255,.85)}

/* Choose a park (phone): the same green band cards */
@media(max-width:900px){
  #wiPick .wiPickCard{position:relative;overflow:hidden;isolation:isolate;color:#fff;
    border:1px solid rgba(255,255,255,.28);
    background:linear-gradient(135deg,#5cc078,#3a9457 55%,#276f3f);box-shadow:0 10px 26px rgba(9,26,44,.2)}
  #wiPick .wiPickCard b{display:block;color:#fff;text-transform:uppercase;letter-spacing:.02em;font-size:16px;font-weight:700}
  #wiPick .wiPickCard span{color:rgba(255,255,255,.92)}
}

/* small close / undo / clear buttons */
.xBtn{border:0;background:rgba(5,19,46,.06);color:#2A3442;width:30px;height:30px;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;flex:none;padding:0}
.xBtn .ic{width:16px;height:16px}
.xBtn:hover{background:rgba(5,19,46,.12)}
#wiPickClose{position:absolute;top:12px;right:12px}
@media(max-width:900px){ #wiPickClose{top:max(62px, calc(env(safe-area-inset-top) + 22px));right:16px} }
.miniBtn{border:1px solid var(--line,#E9ECEF);background:#fff;color:#2A3442;border-radius:999px;
  padding:3px 9px;font:inherit;font-size:11.5px;font-weight:600;cursor:pointer}
.miniBtn:hover{background:#E9ECEF}
.wiPanelHead .miniBtn:first-of-type{margin-left:auto}
.wiPanelHead #wiPanelMin{margin-left:4px}

/* opacity slider in the map bar */
#opWrap{align-self:center;gap:6px}
#opRange{width:90px;accent-color:#066CB6}
@media(max-width:900px){ #opWrap .barLbl{font-size:11px} #opRange{width:76px} }

/* "?" card: visitor questions */
.helpCard{max-height:calc(100vh - 40px);overflow-y:auto}
.faqHead{font-size:13px;margin:4px 0 8px;color:var(--p800);text-transform:uppercase;letter-spacing:.04em}
.faq details{border-top:1px solid #E9ECEF;padding:9px 0}
.faq details:last-child{border-bottom:1px solid #E9ECEF}
.faq summary{cursor:pointer;font-size:13.5px;font-weight:600;color:#05132E}
.faq p{margin:7px 0 0;font-size:13px;line-height:1.5;color:#2A3442}
.helpTour{display:block;margin:12px 0 10px}

/* first-visit tour */
#tour{position:fixed;inset:0;z-index:2100}
.tourRing{position:fixed;border-radius:14px;box-shadow:0 0 0 2.5px #fff,0 0 0 9999px rgba(5,19,46,.55);
  transition:all .25s ease;pointer-events:none}
.tourTip{position:fixed;width:300px;max-width:calc(100vw - 24px);background:#fff;border-radius:16px;padding:14px 15px;
  box-shadow:0 14px 34px rgba(5,19,46,.3);transition:top .25s ease,left .25s ease}
.tourTip b{display:block;font-size:15px;color:#05132E;margin-bottom:4px}
.tourTip p{margin:0 0 12px;font-size:13.5px;line-height:1.45;color:#2A3442}
.tourNav{display:flex;align-items:center;gap:10px}
.tourSkip{border:0;background:none;color:#6B7785;font:inherit;font-size:13px;cursor:pointer;padding:6px 2px}
.tourDots{margin-left:auto;font-size:12px;color:#6B7785}
.tourNext{padding:7px 16px}

/* ================= Figma "mobile home" frames, 13 Oct ================= */
@media(max-width:900px){
  /* --- intro: big tree reaching the first card, big title over it, stacked row cards --- */
  /* tree + title: her values from the on-phone tuning panel (13 Oct, px on her phone) */
  .mhPoster{overflow:visible}
  .mhTree{bottom:-149px;left:50%;width:473px;height:auto;max-width:none;transform:translateX(calc(-50% - 1px))}
  .mhTitle{font-size:54px;line-height:.86;
    text-shadow:0 3px 2px rgba(5,19,46,.38),0 8px 18px rgba(5,19,46,.22)}
  .mhL1{left:28px;top:16px}
  .mhL2{right:42px;top:69px}
  .mhL3{left:24px;top:136px}
  .mhCards{grid-template-columns:1fr;gap:16px;padding:0 18px}
  .mhCard{display:grid;grid-template-columns:140px 1fr;grid-template-rows:auto 1fr;column-gap:16px;row-gap:8px;
    min-height:133px;height:133px;padding:12px 44px 12px 14px;align-content:start}
  .mhCard .mhTile{grid-row:1 / 3;grid-column:1;width:140px;height:109px;min-height:0;flex:none}
  .mhCard .mhYrs{display:none}
  .mhCard .mhHead{grid-column:2;position:static;margin-top:6px;font-size:18px}
  .mhCard .mhBody{grid-column:2;margin-top:0;font-size:14px}
  .mhCard .mhArrow{position:absolute;right:18px;bottom:18px;width:20px;height:20px;margin:0}

  /* --- Explore Nicosia list: plain gradient cards, centred title --- */
  #mLaunch .mlBand::after{display:none}
  #mLaunch .mlHead{position:relative;justify-content:center}
  #mLaunch #mlBack{position:absolute;left:12px}

  /* --- map page: buttons float over a full-screen map --- */
  #mobbar{position:fixed;top:0;left:0;right:0;z-index:1300;justify-content:space-between;gap:8px;
    padding:max(12px, calc(env(safe-area-inset-top) + 4px)) 10px 0;
    background:transparent!important;border:0!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    pointer-events:none}
  #mobbar button{pointer-events:auto;flex:none;width:44px;height:44px;padding:0;border-radius:50%;
    background:#fff;box-shadow:0 2px 10px rgba(5,19,46,.16);color:#05132E}
  #mobbar #mTitleBtn,#mobbar #mTitleBtn.hasMenu{flex:1 1 auto;width:auto;border-radius:22px;padding:0 16px;
    background:#fff;justify-content:space-between;gap:6px}
  #mobbar #mTitleBtn b{font-size:17px;font-weight:700;color:#05132E}
  #mobbar #mTitleBtn.hasMenu .mTitleChev{display:block;width:18px;height:18px}
  #mobbar #mHelpBtn{font-size:19px;color:#05132E}
  #barToggle{display:none}
  #bar{top:calc(max(12px, calc(env(safe-area-inset-top) + 4px)) + 54px);left:10px;right:10px;padding:10px 14px}
  #bar .barBody,#bar .legendGroup{justify-content:center}
  #bar .legendWrap{margin:0 auto;text-align:center;width:min(100%, 280px)}
  #player{bottom:calc(76px + env(safe-area-inset-bottom))}
  .leaflet-bottom.leaflet-left .leaflet-control-zoom{display:flex;margin:0 0 calc(14px + env(safe-area-inset-bottom)) 10px;
    border-radius:12px;overflow:hidden;box-shadow:0 2px 10px rgba(5,19,46,.16)!important}
  .leaflet-bottom.leaflet-left .leaflet-control-zoom a{margin:0;border-radius:0!important;width:44px;height:40px;line-height:40px}
  #mapFoot{position:absolute;right:10px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:1000;
    display:flex;align-items:center;gap:8px}
  #mapFoot .barGroup{display:flex;align-items:center;gap:6px;background:#fff;border-radius:12px;padding:0 10px;height:40px;
    box-shadow:0 2px 10px rgba(5,19,46,.16)}
  #mapFoot select{border:0;background:none;font:inherit;font-size:14px;color:#05132E}
  #mapFoot #bgWrap .barLbl{display:none}
}
@media(max-width:900px){ #wiPickBtn{top:calc(max(12px, calc(env(safe-area-inset-top) + 4px)) + 58px)} }
/* intro cards: identical fixed layout in both cards (13 Oct) */
@media(max-width:900px){
  .mhCard{display:block;padding:12px 44px 12px 170px}
  .mhCard .mhTile{position:absolute;left:14px;top:12px;bottom:12px;width:140px;height:auto;min-height:0;margin:0}
  .mhCard .mhTile img{width:100%;height:100%}
  .mhCard .mhHead{display:block;position:static;margin:0;line-height:1.2}
  .mhCard .mhBody{display:block;margin:6px 0 0;line-height:1.4}
  .mhCard .mhArrow{right:16px;bottom:14px}
}
/* list cards clean: no sand glow on the cards, no sand blob behind the lists (13 Oct) */
#mLayersGrid.mlBands .mlBand::after,#mLayers .mlRow::after,#mLaunch .mlBand::after,#wiPick .wiPickCard::after{display:none!important}
#mLayers::before,#mLayers::after,#mLaunch::before,#mLaunch::after{display:none!important}
/* white outline on every list card; the chosen layer adds a navy ring outside it (13 Oct) */
#mLayersGrid.mlBands .mlBand,#mLayers .mlRow,#mLayers .mlRow[data-v],#mLaunch .mlBand,#mLaunch .mlBand[data-v],#wiPick .wiPickCard{
  border-color:transparent!important;box-shadow:0 0 0 2.5px #fff,0 10px 26px rgba(9,26,44,.22)!important}
#mLayersGrid.mlBands .mlBand.on,#mLayers .mlRow.on{
  box-shadow:0 0 0 2.5px #fff,0 0 0 5px #05132E,0 10px 26px rgba(9,26,44,.26)!important}
/* maps on phones: every panel and control plain white; tidy bottom row (13 Oct) */
@media(max-width:900px){
  #bar,#player,#wiPanel,#seaChangePanel,.wiModalCard,.leaflet-popup-content-wrapper,.leaflet-control-zoom a,#mapFoot .barGroup{
    background:#fff!important;border:0!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    box-shadow:0 2px 10px rgba(5,19,46,.16)!important;color:#05132E}
  .leaflet-popup-tip{background:#fff}
  .barCompare,.barCompare.on{background:#fff;border:1px solid #CED4DA;color:#05132E;border-radius:999px;padding:7px 14px;font-size:13px}
  /* bottom row: zoom left, opacity + background right; attribution small underneath */
  #mapFoot{bottom:calc(22px + env(safe-area-inset-bottom))}
  .leaflet-bottom.leaflet-left .leaflet-control-zoom{margin-bottom:calc(22px + env(safe-area-inset-bottom))}
  #player{bottom:calc(76px + env(safe-area-inset-bottom))}
  #seaChangePanel{bottom:calc(76px + env(safe-area-inset-bottom))!important}
  .leaflet-control-attribution{font-size:8.5px!important;line-height:1.3;background:rgba(255,255,255,.55)!important;padding:0 4px!important}
  #mapFoot .barLbl{text-transform:none;letter-spacing:0;font-size:12px;font-weight:600;color:#05132E}
  #mapFoot select{font-size:13px}
  #opRange{-webkit-appearance:none;appearance:none;width:80px;height:4px;border-radius:2px;background:#CED4DA;outline:none}
  #opRange::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background:#066CB6;border:0}
  #opRange::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#066CB6;border:0}
}
/* legend: caption, bar and words centred in the card (13 Oct) */
@media(max-width:900px){
  #bar .barBody{width:100%}
  #bar .legendGroup{width:100%;justify-content:center;flex-direction:column;align-items:center}
  #bar .legendWrap{display:flex;flex-direction:column;align-items:center;width:min(100%, 300px);margin:0 auto}
  #legCap{width:100%;text-align:center}
  #legBar,#legTicks,#legCat{width:100%}
  #legCat{justify-content:center}
}

/* idea card: mini picture centred above the name (park ideas), 16 Oct 2026 */
.wiCard2 .wiCardPic{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;margin:2px 0 4px}
.wiCard2 .wiCardPic img{width:132px;height:88px;display:block}
.wiCard2 .wiCardPic .wiCardName{font-size:16px;font-weight:700}
.wiCard2 .wiCardPic .wiTileIc.big{width:88px;height:88px;border-radius:18px}
.wiCard2 .wiCardPic .wiTileIc.big svg{width:60px;height:60px}

/* park view on phones: the control strip is empty there and sat behind the orange park button (16 Oct 2026) */
@media(max-width:900px){ body[data-view="wi"] #bar{display:none!important} }

/* no capital-letter styling anywhere: sentence case like the intro page (16 Oct 2026) */
#mLaunch .mlBandTxt,
#mLayers .mlRow .mlRowTxt,
#mLayersGrid.mlBands .mlBandTxt,
#wiPick .wiPickCard b,
.barLbl,
.faqHead,
.fld>span,
.kpi span,
.lensLabel,
.mhCoords,
.mlHdr,
.navSec,
.sectTitle,
.stat span,
.varGroupHead,
.wHead,
.wiCard2 .wiCardScale,
.wiCardScale,
.wiLabel,
.wiSppLbl{text-transform:none!important;letter-spacing:normal!important}
#mLayersGrid.mlBands .mlBandTxt,#mLayers .mlRow .mlRowTxt,#mLaunch .mlBandTxt,#wiPick .wiPickCard b{font-size:18px!important;font-weight:700!important;letter-spacing:-.02em!important;line-height:1.2!important}

/* park panel: future summer pick + demo share button (16 Oct 2026) */
.wiFutPick{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 10px}
.wiSeg{display:inline-flex;background:#E9ECEF;border-radius:9px;padding:2px}
.wiSeg button{border:0;background:none;font:inherit;font-size:12.5px;padding:4px 10px;border-radius:7px;color:#2A3442;cursor:pointer}
.wiSeg button.on{background:#fff;color:var(--p900,#05132E);font-weight:600;box-shadow:0 1px 2px #0002}
.wiFutPick select{font:inherit;font-size:12.5px;padding:3px 6px;border:1px solid #E9ECEF;border-radius:8px;background:#fff;color:var(--p900,#05132E)}
.wiShareBtn{display:block;width:100%;margin-top:12px;padding:9px;border:1px dashed #6B7785;border-radius:10px;background:none;color:#2A3442;font:inherit;font-size:13px;cursor:pointer}
.shareNote{font-size:13px;color:#b4772a;margin:0 0 10px}
.shareLbl{display:block;font-size:13px;color:#2A3442;margin:8px 0}
.shareLbl input,.shareLbl textarea{display:block;width:100%;margin-top:4px;font:inherit;font-size:13px;box-sizing:border-box}
/* bigger icons on the launcher and layer cards: the Noun icons carry their own padding (20 Oct) */
#mLaunch .mlBandIco,#mLaunch .mlBand[data-v] .mlBandIco,#mLayersGrid.mlBands .mlBandIco{width:72px;height:72px;border-radius:18px}
#mLaunch .mlBandIco .mlBandIc,#mLayersGrid.mlBands .mlBandIc{width:58px;height:58px}
/* Neighbourhoods layer tiles: the icon fills most of its square (20 Oct) */
#mLayers .mlRow .mlRowIco .ic{width:38px;height:38px}
/* Heat and people: colour-blind colours switch under the legend (20 Oct) */
.cbBtn{margin-top:6px;align-items:center;gap:5px;font:inherit;font-size:11px;font-weight:600;color:var(--p800);
  background:#fff;border:1px solid #CED4DA;border-radius:999px;padding:3px 10px;cursor:pointer}
.cbBtn.on{background:var(--p50);border-color:var(--teal)}
/* Choose a park: number badges and the small map of the pilot sites (20 Oct) */
.wiPickNum{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:9px;border-radius:50%;
  background:#fff;color:#066CB6;font-style:normal;font-size:13px;font-weight:800;vertical-align:2px}
.wiPickMap{margin-top:4px;border-radius:18px;overflow:hidden;box-shadow:0 6px 18px rgba(5,19,46,.14);background:#eceee9}
.wiPickMap svg{display:block;width:100%;height:auto}
.wiPickMap .out{fill:#e6e8e3}
.wiPickMap .nic{fill:#fbfaf6}
.wiPickMap .pk{fill:#cfe7c4;stroke:#a9d39a;stroke-width:.6}
.wiPickMap .rm{fill:none;stroke:#cdd2d8;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.wiPickMap .rs{fill:none;stroke:#e1e4e8;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.wiPickMap .q{fill:none;stroke:#6B7785;stroke-width:1;stroke-dasharray:4 3}
.wiPickMap .nicb{fill:none;stroke:#05132E;stroke-width:2.2}
.wiPickMap .pin{cursor:pointer}
.wiPickMap .pin path{fill:#066CB6;stroke:#fff;stroke-width:2.2}
.wiPickMap .pin text{fill:#fff;font:800 13px Inter,system-ui,sans-serif;text-anchor:middle}
/* phone: the park name sits in the title bar, so no orange "Change" button (20 Oct) */
@media(max-width:900px){ #wiPickBtn{display:none!important} }
/* "How do they help the city?" slider picture */
.nbsViz{margin:10px 0 2px}
.nbsViz canvas{display:block;width:100%;height:170px;border-radius:10px;background:#eef6fb}
.nbsSlide{display:flex;align-items:center;gap:8px;margin:8px 0 6px;font-size:11.5px;color:#2A3442}
.nbsSlide input{flex:1;accent-color:#066CB6;min-width:0}
.nbsBars{display:grid;gap:5px}
.nbsBar{display:grid;grid-template-columns:1fr 42%;align-items:center;gap:8px;font-size:12px;color:#2A3442}
.nbsBar i{display:block;height:7px;background:#E9ECEF;border-radius:4px;overflow:hidden}
.nbsBar b{display:block;height:100%;border-radius:4px;transition:width .25s}
.nbsBar b[data-k=run]{background:#6B7785}.nbsBar b[data-k=soak]{background:#2f8fb0}
.nbsBar b[data-k=heat]{background:#d9534f}.nbsBar b[data-k=life]{background:#d98a1f}
.nbsCv{position:relative}
.nbsPlay{position:absolute;top:6px;right:6px;min-width:32px;height:32px;padding:0 10px;border-radius:16px;border:0;background:rgba(255,255,255,.9);color:#2A3442;font-size:11.5px;font-weight:600;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.15)}
/* plant picker in the meadow, pollinator bed and community garden cards */
.wiPlants{margin:12px 0 4px;padding-top:10px;border-top:1px dashed #E9ECEF}
.wiPlants .wiSppLbl{display:block;margin-bottom:6px}
.wiPlIntro{margin:0 0 8px;font-size:12.5px;color:#2A3442}
.wiPlChips{display:flex;flex-wrap:wrap;gap:6px}
.wiPlChip{border:1px solid #E9ECEF;background:#fff;border-radius:999px;padding:5px 11px;font-size:12.5px;color:#2A3442;cursor:pointer}
.wiPlChip.on{background:var(--c);border-color:var(--c);color:#fff}
.wiPlPanel{margin-top:10px;padding:10px 12px;background:#FAFAFA;border-radius:10px}
.wiPlName{font-size:13.5px;color:#05132E;margin-bottom:8px}
.wiPlName i{color:#6B7785;font-size:12px}
.wiPlRow{display:grid;grid-template-columns:62px 1fr;align-items:center;gap:6px;margin-bottom:4px;font-size:11.5px;color:#6B7785}
.wiPlMonths{display:grid;grid-template-columns:repeat(12,1fr);gap:2px}
.wiPlMonths i{font-style:normal;text-align:center;font-size:10px;line-height:20px;border-radius:4px;background:#E9ECEF;color:#6B7785}
.wiPlMonths i.fl{background:var(--c);color:#fff}
.wiPlMonths i.pl{background:#c9a26b;color:#fff}
.wiPlMonths i.pk{background:var(--c);color:#fff}
.wiPlGauges{display:flex;gap:18px;margin:8px 0 2px}
.wiPlGauge{display:flex;align-items:center;gap:4px;font-size:11.5px;color:#6B7785}
.wiPlGauge span{margin-right:3px}
.wiPlGauge b{width:9px;height:9px;border-radius:50%;background:#E9ECEF}
.wiPlGauge b.on{background:var(--c)}
.wiPlNote{margin:6px 0 0;font-size:12.5px;line-height:1.45;color:#2A3442}
/* solution pages: one fixed size, the content scrolls inside */
#wiModalCard{height:min(640px,86vh)}
/* OpenStreetMap turned into quiet grey backgrounds so the data colours stand out */
.tilesLight{filter:grayscale(1) brightness(1.12) contrast(.82)}
.tilesDark{filter:grayscale(1) invert(1) brightness(.78) contrast(.9)}
/* About: icon credits as a grid of the icons themselves */
.infoSub{font-size:13px;margin:16px 0 4px;color:var(--p800)}
.icoGrpH{font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#6B7785;margin:10px 0 6px}
.icoGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 12px}
.icoCred{display:flex;align-items:center;gap:8px;min-width:0}
.icoCred svg{width:26px;height:26px;flex:none;color:#3a7a55}
.icoCred span{display:flex;flex-direction:column;font-size:11.5px;line-height:1.3;color:#6B7785;min-width:0}
.icoCred b{color:#05132E;font-weight:600}
