/* GlobalClimateMonitor dashboard (P2-08). Layout ideas ported from the reference style.css;
   no country text or colour theme lives here. Phone width 390x844: flex rows wrap. */
:root{
  --bg:#f7f8fa; --panel:#ffffff; --border:#e1e4e9; --border-soft:#eceef1;
  --text:#1a2130; --text-muted:#5b6472; --text-faint:#8a92a0;
  --accent:#2458d6; --accent-soft:#e8eefd;
  --tier1:#2c7bb6; --tier2:#fdae61; --tier3:#d7191c;
  --map-bg:#e9edf2;
  --radius:10px;
  --shadow:0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  font-size:15px;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text); background:var(--bg); display:flex; flex-direction:column;
}
code{overflow-wrap:break-word; word-break:break-word}
[hidden]{display:none !important}
.muted{color:var(--text-muted)}
.row{display:flex; gap:14px; align-items:center}
.row.wrap{flex-wrap:wrap}
.grow{flex:1 1 320px; min-width:0}

/* ---------- header / nav ---------- */
header{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; padding:10px 18px;
  background:var(--panel); border-bottom:1px solid var(--border); flex:0 0 auto;
  /* above Leaflet's panes (400) and controls (1000) so the "More" menu opens over the map */
  position:relative; z-index:1100;
}
header h1{font-size:16px; margin:0; font-weight:650; letter-spacing:-.01em}
header .subtitle{font-size:12px; color:var(--text-muted); margin-top:1px}
.brand{display:flex; flex-direction:column}
nav.tabs{display:flex; gap:4px; flex-wrap:wrap}
nav.tabs button{
  border:none; background:transparent; padding:7px 14px; border-radius:999px;
  font-size:13.5px; font-weight:560; color:var(--text-muted); cursor:pointer;
}
nav.tabs button.active{background:var(--accent-soft); color:var(--accent)}
nav.tabs button:hover:not(.active){background:var(--border-soft)}
#status-badge{margin-left:auto; font-size:12px; color:var(--text-muted); display:flex; align-items:center; gap:8px}
.dot{width:8px; height:8px; border-radius:50%; background:#9aa4b2; flex:0 0 auto}
.dot.ok{background:#2e9d5b}
.dot.warn{background:var(--tier2)}
.dot.bad{background:var(--tier3)}

main{flex:1 1 auto; min-height:0; display:flex; flex-direction:column}
section[data-view]{flex:1 1 auto; min-height:0; overflow:auto}
section[data-view][hidden]{display:none}
.page{max-width:1200px; margin:0 auto; padding:16px 18px 40px; display:flex; flex-direction:column; gap:14px}

.card{background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:14px 16px; min-width:0}
.card h3{margin:0 0 10px; font-size:14px; font-weight:650}
.notice{background:#fff7e6; border:1px solid #f3d9a4; border-radius:var(--radius); padding:10px 14px; font-size:13.5px}
.tab-stub{color:var(--text-muted)}
/* Data freshness line (P7-16): quiet when fresh, a warning when stale, informational when frozen. */
.freshness{font-size:12.5px; color:var(--text-muted); overflow-wrap:anywhere}
.freshness.stale{background:#fff1e0; border:1px solid #f0b36b; color:#7a3d00; font-size:14px; font-weight:600; border-radius:var(--radius); padding:10px 14px}
.freshness.frozen{background:#eef4fb; border:1px solid #bcd3ee; color:#1f4a7a; border-radius:var(--radius); padding:8px 14px}
#map-freshness{padding:6px 18px 0}
#map-freshness.stale, #map-freshness.frozen{margin:8px 18px 0; padding:8px 14px}
@media (max-width:700px){ #map-freshness{padding:6px 12px 0} #map-freshness.stale, #map-freshness.frozen{margin:8px 12px 0} }

/* ---------- Home ---------- */
.hero{display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 24px; align-items:flex-end}
.hero h2{margin:2px 0 4px; font-size:24px; letter-spacing:-.02em}
.eyebrow{font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-faint); font-weight:600}
.hero-note{font-size:12.5px}
.tier-card{flex:1 1 200px; border-left:6px solid var(--border)}
.tier-card .big{font-size:30px; font-weight:700; line-height:1.1}
.tier-card .label{font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--text-muted); font-weight:600}
.tier-card .sub{font-size:13px; color:var(--text-muted); margin-top:4px}
.tier-1{border-left-color:var(--tier1)} .tier-2{border-left-color:var(--tier2)} .tier-3{border-left-color:var(--tier3)}
.popbar{display:flex; height:14px; border-radius:7px; overflow:hidden; background:var(--border-soft)}
.popbar span{display:block; height:100%}
.table-wrap{overflow-x:auto}
table.data{border-collapse:collapse; width:100%; font-size:13.5px}
table.data th{text-align:left; font-size:12px; color:var(--text-muted); font-weight:600; padding:5px 8px; border-bottom:1px solid var(--border)}
table.data td{padding:6px 8px; border-bottom:1px solid var(--border-soft); vertical-align:top}
table.data td.num, table.data th.num{text-align:right; font-variant-numeric:tabular-nums}
table.data tr.click{cursor:pointer}
table.data tr.click:hover td{background:var(--accent-soft)}
.chip{display:inline-block; padding:1px 9px; border-radius:999px; font-size:12px; font-weight:600; color:#fff; white-space:nowrap}
.chip.tier-1{background:var(--tier1)} .chip.tier-2{background:var(--tier2); color:#3a2500} .chip.tier-3{background:var(--tier3)}
.chip.st-ok{background:#2e9d5b} .chip.st-warn{background:var(--tier2); color:#3a2500} .chip.st-bad{background:var(--tier3)} .chip.st-off{background:#9aa4b2}

/* ---------- Map ---------- */
.map-toolbar{padding:8px 18px; background:var(--panel); border-bottom:1px solid var(--border); gap:10px 16px}
.map-toolbar label{display:flex; align-items:center; gap:6px; font-size:13px; color:var(--text-muted); font-weight:560}
.map-toolbar select, .map-toolbar input, .map-toolbar button{
  font:inherit; font-size:13.5px; color:var(--text); background:#fff; border:1px solid var(--border);
  border-radius:7px; padding:5px 8px;
}
.map-toolbar select{max-width:260px}
.map-toolbar button{cursor:pointer}
.map-toolbar button:hover{background:var(--border-soft)}
.date-ctl{display:inline-flex; gap:4px; align-items:center}
.map-wrap{display:flex; flex-wrap:wrap; gap:12px; padding:12px 18px 24px; align-items:flex-start}
#map{flex:1 1 480px; height:max(420px, calc(100vh - 190px)); background:var(--map-bg); border:1px solid var(--border); border-radius:var(--radius); min-width:0}
#zone-panel{flex:0 0 340px; max-width:100%; min-width:0}
.leaflet-container{font:inherit; background:var(--map-bg)}
.legend-box{background:rgba(255,255,255,.94); padding:8px 10px; border-radius:8px; box-shadow:var(--shadow); font-size:12px; line-height:1.5; max-width:230px}
.legend-title{font-weight:650; margin-bottom:3px}
.legend-toggle{background:none; border:0; padding:0; margin:0; font:inherit; font-weight:inherit; color:inherit; cursor:pointer; text-align:left}
.legend-toggle::after{content:" \25BE"; font-size:10px; color:var(--text-muted)}
.legend-box.collapsed .legend-toggle::after{content:" \25B8"}
.legend-box.collapsed .legend-row, .legend-box.collapsed .legend-caveat{display:none}
.legend-box.collapsed .legend-title{margin-bottom:0}
.legend-row{display:flex; align-items:center; gap:6px}
.legend-swatch{width:14px; height:14px; border-radius:3px; border:1px solid rgba(0,0,0,.15); flex:0 0 auto}
.legend-caveat{margin-top:4px; color:var(--text-muted); font-size:11px}
.info{display:inline-block; margin-left:4px; width:15px; height:15px; line-height:14px; text-align:center; border-radius:50%; border:1px solid var(--text-faint); color:var(--text-muted); font-size:10px; cursor:help}
.zp-title{font-size:17px; font-weight:700; margin:0 0 2px}
.zp-sub{font-size:12.5px; color:var(--text-muted); margin-bottom:10px}
.zp-headline{display:flex; align-items:baseline; gap:10px; margin-bottom:8px; flex-wrap:wrap}
.zp-headline .v{font-size:28px; font-weight:700}
.zp-chart{position:relative; height:180px; margin:8px 0}
.zp-dl{display:grid; grid-template-columns:1fr auto; gap:3px 12px; font-size:13px; margin:8px 0}
.zp-dl dt{color:var(--text-muted)} .zp-dl dd{margin:0; text-align:right; font-variant-numeric:tabular-nums}
.zp-actions{display:flex; gap:8px; flex-wrap:wrap; margin-top:8px}
.zp-actions button{font:inherit; font-size:13px; border:1px solid var(--border); background:#fff; border-radius:7px; padding:5px 10px; cursor:pointer}
.zp-actions button:hover{background:var(--border-soft)}
details.zp-more summary{cursor:pointer; font-size:13px; color:var(--accent); margin-top:6px}
.zone-tip{font-size:12.5px}

@media (max-width: 700px){
  header{padding:8px 12px}
  #status-badge{margin-left:0; width:100%}
  .page{padding:12px 12px 32px}
  .hero h2{font-size:20px}
  .map-toolbar{padding:8px 12px}
  .map-wrap{padding:10px 12px 20px}
  #map{flex-basis:100%; height:58vh; min-height:340px}
  #zone-panel{flex-basis:100%}
}

/* ---------- P2-08b: Analytics and Explore ---------- */
.an-toolbar{gap:10px 16px; padding:10px 16px}
.an-toolbar label, .slot-ctl{display:flex; align-items:center; gap:6px; font-size:13px; color:var(--text-muted); font-weight:560}
.an-toolbar select, .slot-ctl select, .mini{
  font:inherit; font-size:13.5px; color:var(--text); background:#fff; border:1px solid var(--border);
  border-radius:7px; padding:5px 8px; max-width:100%;
}
.an-toolbar select, .slot-ctl select{max-width:260px; min-width:0}
.mini{font-size:12.5px; padding:3px 9px; cursor:pointer}
.mini:hover{background:var(--border-soft)}
.an-hint{font-size:12px; margin-left:auto}
.slot-ctl{margin:0 0 8px; flex-wrap:wrap}
.chart-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap:14px}
.chart-slot{display:flex; flex-direction:column; gap:8px; min-width:0}
.chart-card{min-width:0}
.chart-head{display:flex; justify-content:space-between; align-items:flex-start; gap:8px; flex-wrap:wrap}
.chart-head h3{margin:0 0 8px}
.chart-actions{display:flex; gap:6px}
.chart-box{position:relative; height:240px; min-width:0}
.chart-note{font-size:12.5px; margin-top:6px}
.chart-card.expanded{grid-column:1 / -1}
.chart-card.expanded .chart-box{height:min(70vh, 520px)}
#an-overlay-slot .chart-box, #ex-scatter-card .chart-box{height:300px}
#an-overlay-slot .chart-card.expanded .chart-box, #ex-scatter-card .chart-card.expanded .chart-box{height:min(70vh, 520px)}
.matrix-wrap{max-height:70vh; overflow:auto}
table.matrix{border-collapse:separate; border-spacing:1px; font-size:10.5px}
table.matrix th{font-weight:600; color:var(--text-muted); background:var(--panel); position:sticky}
table.matrix th.vh{top:0; height:150px; vertical-align:bottom; padding:2px 0; z-index:2}
table.matrix th.vh span{display:inline-block; writing-mode:vertical-rl; transform:rotate(180deg); white-space:nowrap; max-height:146px; overflow:hidden; text-overflow:ellipsis}
table.matrix th.rh{left:0; text-align:right; padding:0 6px; white-space:nowrap; max-width:190px; overflow:hidden; text-overflow:ellipsis; z-index:1}
table.matrix th.corner{left:0; top:0; z-index:3}
table.matrix td.cc{width:30px; min-width:30px; height:24px; text-align:center; cursor:pointer; font-variant-numeric:tabular-nums}
table.matrix td.cc:hover, table.matrix td.cc:focus{outline:2px solid var(--text); outline-offset:-2px}

@media (max-width: 700px){
  .an-hint{margin-left:0}
  .chart-box{height:220px}
  table.matrix th.rh{max-width:120px}
}

/* P2-08c: Data, Methodology and What's changed tabs */
.sec-title{margin:0 0 6px; font-size:20px; letter-spacing:-.01em}
.small{font-size:12.5px}
.od-url{word-break:break-all; min-width:14em} .od-links{word-break:break-all} .od-cites{padding-left:1.2em; font-size:13.5px}
.dl-grid{align-items:stretch}
.dl-grid .card{flex:1 1 260px}
.field{display:flex; flex-direction:column; gap:3px; font-size:12.5px; color:var(--text-muted); font-weight:560; margin:8px 0}
.field select, .search{font:inherit; font-size:14px; padding:6px 8px; border:1px solid var(--border); border-radius:7px; background:#fff; color:var(--text); max-width:100%}
.search{width:100%; max-width:420px; margin-bottom:6px}
.dl-buttons{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
a.btn{display:inline-block; font-size:13.5px; font-weight:600; text-decoration:none; color:var(--accent); background:var(--accent-soft); border:1px solid var(--accent-soft); border-radius:7px; padding:6px 14px}
a.btn:hover{border-color:var(--accent)}
.dict-wrap{max-height:520px; overflow:auto}
table.data td.notes{min-width:220px; max-width:520px; overflow-wrap:anywhere}
table.data code{font-size:12px}
.doc-toc{display:flex; gap:14px; flex-wrap:wrap; font-size:13.5px}
.doc-toc a{color:var(--accent); text-decoration:none; font-weight:600}
.prose{font-size:14px; line-height:1.55; max-width:80ch}
.prose pre{background:var(--border-soft); border-radius:8px; padding:10px 12px; overflow-x:auto; font-size:12.5px}
.meth-domain{border-top:1px solid var(--border-soft); padding:6px 0}
.meth-domain summary{cursor:pointer; font-weight:600; font-size:14px; padding:4px 0}
.plugin-sec{border-top:1px solid var(--border-soft); padding:10px 0}
.plugin-sec h4{margin:0 0 2px; font-size:14px}
.citation{font-size:12.5px; color:var(--text-muted); font-style:italic; margin:6px 0 0}
.page.narrow{max-width:760px}
.timeline{list-style:none; margin:14px 0 0; padding:0 0 0 14px; border-left:2px solid var(--border)}
.timeline li{position:relative; padding:0 0 16px 14px}
.timeline li::before{content:""; position:absolute; left:-21px; top:5px; width:10px; height:10px; border-radius:50%; background:var(--accent)}
.timeline time{font-size:12px; font-weight:650; color:var(--text-faint); letter-spacing:.04em}
.timeline p{margin:2px 0 0; font-size:14.5px}
/* Changelog (owner 2026-11-18): versions in the header, releases on the Changelog tab */
.version-link{color:var(--text-faint); text-decoration:none; white-space:nowrap; padding-left:8px; border-left:1px solid var(--border)}
.version-link:hover{color:var(--accent); text-decoration:underline}
.release{padding:14px 0 6px; border-top:1px solid var(--border-soft)}
.release:first-child{border-top:none; padding-top:6px}
.release h3{font-size:15.5px; margin:0 0 8px; display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px}
.release-version{color:var(--accent); font-variant-numeric:tabular-nums}
.release time{font-size:12px; font-weight:600; color:var(--text-faint); margin-left:auto}
.release-changes{list-style:none; margin:0; padding:0}
.release-changes li{font-size:14.5px; margin:0 0 8px; padding-left:84px; position:relative}
/* plain labels, no coloured pills (owner 2026-11-18: no coloured accents) */
.change-tag{position:absolute; left:0; top:2px; width:74px; font-size:11px; font-weight:650;
  text-transform:uppercase; letter-spacing:.04em; color:var(--text-faint)}
@media (max-width:600px){
  .release-changes li{padding-left:0}
  .change-tag{position:static; display:inline-block; margin-right:6px}
}
@media (max-width: 700px){
  .sec-title{font-size:18px}
  .dict-wrap{max-height:420px}
}

/* Experimental tab (P3-14) */
.ex-section-title{margin:18px 0 8px; font-size:17px; letter-spacing:-.01em}
.ex-card{margin-bottom:12px}
.ex-head{display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-bottom:6px}
.ex-head h3{margin:0}
.ex-caveat{font-style:italic; font-size:13px; color:var(--text-muted); margin:6px 0}
.ex-tiles{display:flex; flex-wrap:wrap; gap:10px; margin:10px 0}
.ex-tile{border:1px solid var(--border-soft); border-radius:8px; padding:8px 12px; min-width:120px; flex:0 1 auto}
.ex-tile-label{font-size:12px; color:var(--text-muted)}
.ex-tile-value{font-size:20px; font-weight:650}
.ex-unit{font-size:12px; font-weight:500; color:var(--text-muted)}
.ex-block-title{margin:14px 0 6px; font-size:13.5px}
table.data td.num{text-align:right}
.ex-map{height:280px; width:100%; border:1px solid var(--border-soft); border-radius:8px; background:#e8ecf1}
.ex-legend{display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; margin:6px 0; font-size:12px; color:var(--text-muted)}
.ex-legend-bar{height:10px; width:100%; max-width:320px; border:1px solid var(--border-soft); border-radius:3px}
.ex-legend-labels{display:flex; justify-content:space-between; gap:12px; width:100%; max-width:320px}
.ex-dot{display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:3px}
.ex-grid-pick select{max-width:100%}
.ex-history{margin-top:8px}
@media (max-width: 700px){
  .ex-tile{flex:1 1 40%}
  .ex-map{height:220px}
}

/* P5-03: email alerts form */
.al-fieldset{border:1px solid var(--border); border-radius:7px; margin:10px 0; padding:6px 10px}
.al-fieldset legend{font-size:12.5px; color:var(--text-muted); font-weight:560; padding:0 4px}
.al-check{display:flex; gap:8px; align-items:flex-start; font-size:14px; margin:6px 0}
.al-trap{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
.al-bad{border-color:#d7191c}
button.btn{font:inherit; font-size:13.5px; font-weight:600; color:var(--accent); background:var(--accent-soft); border:1px solid var(--accent-soft); border-radius:7px; padding:6px 14px; cursor:pointer; margin-top:8px}
button.btn:disabled{opacity:.6; cursor:default}

/* P4-05: Basins & Lakes tab */
.hy-row{display:flex; flex-wrap:wrap; gap:12px; align-items:flex-start; margin-bottom:12px}
.hy-map-card{flex:2 1 460px; min-width:0}
.hy-detail-card{flex:1 1 300px; min-width:0}
.hy-map{height:460px; width:100%; border:1px solid var(--border-soft); border-radius:8px; background:#e8ecf1}
.hy-controls{display:flex; flex-wrap:wrap; gap:8px 16px; align-items:flex-end; margin:6px 0 10px}
.hy-check{font-size:13px}
@media (max-width: 700px){
  .hy-map{height:320px}
}

/* Thresholds tab (P7-09) */
.th-group{border:1px solid var(--border); border-radius:var(--radius); padding:8px 14px; margin:12px 0}
.th-group legend{font-weight:650; padding:0 4px}
.th-row{display:grid; grid-template-columns:1fr auto auto; gap:6px 12px; align-items:center; padding:5px 0; border-top:1px solid var(--border)}
.th-row:first-of-type{border-top:0}
.th-input input{width:7em; font:inherit; padding:4px 6px; border:1px solid var(--border); border-radius:6px}
.th-default{font-size:12px}
.th-actions{display:flex; flex-wrap:wrap; gap:8px 12px; align-items:flex-end; margin:12px 0}
.th-actions .field input{font:inherit; padding:5px 8px; border:1px solid var(--border); border-radius:7px}
.notice.ok{background:#eef8f0; border-color:#bfe3c8}
@media (max-width:600px){.th-row{grid-template-columns:1fr auto} .th-default{grid-column:1/-1}}

/* ---------- navigation: five main tabs + "More" (owner Q85, 2026-11-01) ---------- */
.more-wrap{position:relative}
.more-menu{position:absolute; right:0; top:calc(100% + 4px); background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius); box-shadow:0 8px 24px rgba(16,24,40,.12); padding:6px; min-width:220px; z-index:1000;
  display:flex; flex-direction:column}
.more-menu button{text-align:left; border-radius:8px !important}
nav.tabs #tab-more.active{background:var(--accent-soft); color:var(--accent)}

/* ---------- Home: landing page for end users ---------- */
.landing{display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:18px 26px; align-items:center;
  background:linear-gradient(135deg,#f3f7ff 0%,#ffffff 60%); padding:22px 24px}
.landing h2{margin:6px 0 8px; font-size:28px; letter-spacing:-.02em; line-height:1.15}
.landing .lead{font-size:16px; line-height:1.55; color:var(--text); margin:0 0 16px}
.landing-actions{display:flex; flex-wrap:wrap; gap:8px}
.btn{border:1px solid var(--border); background:var(--panel); color:var(--text); border-radius:999px; padding:9px 16px;
  font-size:14px; font-weight:600; cursor:pointer}
.btn:hover{border-color:var(--accent); color:var(--accent)}
.btn.primary{background:var(--accent); border-color:var(--accent); color:#fff}
.btn.primary:hover{filter:brightness(1.08); color:#fff}
.landing-figure{margin:0}
#home-minimap{height:280px; border-radius:var(--radius); border:1px solid var(--border); cursor:pointer; background:var(--map-bg)}
.landing-figure figcaption{font-size:12.5px; margin-top:6px}
.key{display:inline-block; width:11px; height:11px; border-radius:3px; margin:0 4px 0 8px; vertical-align:-1px}
.headline-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px}
.headline{border-left:6px solid var(--tier1)}
.headline.tone-2{border-left-color:var(--tier2)} .headline.tone-3{border-left-color:var(--tier3)}
.headline .big{font-size:28px; font-weight:700; margin:4px 0 6px; line-height:1.15}
.headline .sub{font-size:14px; margin-top:8px}
.headline p{margin:6px 0 0}
.section-head{margin:6px 0 -4px; font-size:15px}
.hazard-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px}
.hazard{text-align:left; font:inherit; color:inherit; cursor:pointer; display:flex; flex-direction:column; gap:4px;
  border-top:4px solid #cfd6e0; transition:box-shadow .15s, transform .15s}
.hazard:hover:not([disabled]){box-shadow:0 6px 18px rgba(16,24,40,.10); transform:translateY(-1px)}
.hazard[disabled]{cursor:default; opacity:.7}
.hazard.on{border-top-color:var(--tier2)}
.hazard .hz-icon{width:34px; height:34px; color:#7b8798}
.hazard.on .hz-icon{color:#d9822b}
.hz-rain.on .hz-icon{color:#2c7bb6} .hz-wind.on .hz-icon{color:#5b6bd6} .hz-flood.on .hz-icon{color:#1f8a9e}
.hz-heat.on .hz-icon{color:#d7191c} .hz-dry.on .hz-icon{color:#b7791f}
.hz-title{font-weight:700; font-size:15px}
.hz-line{font-size:14px; font-weight:600}
.hazard.calm .hz-line, .hazard.off .hz-line{color:var(--text-muted); font-weight:500}
.hz-about{font-size:12.5px; line-height:1.4}
.hz-go{font-size:12.5px; color:var(--accent); margin-top:auto; padding-top:4px}
.use-list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px}
.use-list li{line-height:1.4}
.linkish{border:none; background:none; padding:0; color:var(--accent); cursor:pointer; font:inherit}
.footnote{margin:0 4px}
@media (max-width: 800px){
  .landing{grid-template-columns:1fr; padding:16px}
  .landing h2{font-size:22px}
  #home-minimap{height:220px}
}
@media (max-width: 700px){
  header{padding:8px 12px}
  nav.tabs button{padding:6px 10px; font-size:13px}
  .more-menu{right:auto; left:0}
}
.landing-figure .leaflet-control-attribution{font-size:9.5px; line-height:1.3}

/* map panel: who lives here (owner Q89) */
.zp-pyramid{height:260px; margin:8px 0 4px}
.zp-people table.compact td, .zp-people table.compact th{padding:3px 6px; font-size:12.5px}
.hz-who{font-size:12.5px; color:var(--text-muted)}
/* home: areas needing attention, filters and sortable headers (2026-11-16) */
.toolbar-inline{display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; margin:4px 0 8px; font-size:13px}
.toolbar-inline select, .toolbar-inline input{margin-left:4px}
th.sortable{cursor:pointer; user-select:none; white-space:nowrap}
th.sortable:hover, th.sortable:focus{text-decoration:underline}
