/* The geotechnology map (sitebuild/geotech/mapv2.py, src/assets/geotech-mapv2.js; owner rulings WS-1018, WS-1020), the
   risk map's pattern in the site's style, phone first (W-115: no sideways scroll, the first stand-off headline on the
   first 375x667 screen). Copied into www/ only with site.config.json geotech.map_v2 on. No inline style anywhere (CSP):
   bars are the stepped classes gm-w5 to gm-w100.

   The shared map's key speaks of risks and its files belong to the world-risks lane, so this file hides, on this map only,
   what no option turns off (for the map lane, to give an option later): the Size = Impact item (.gg-sz), the band swatches
   Low / Elevated / High / Severe (.gg-sw), Dot = not named on the map (.gg-kdot), Square = risks outside the map (.gg-kfold),
   and the fold squares themselves (.gg-fold), whose tap card says "risks concern places outside this map". The list and the
   table beside the map name every place. Options passed: bandTitle false, arcName. */
.gm{--gm-blue:#2251ff;--gm-pale:#dbe4ff;font:15px/1.45 var(--sans);color:var(--ink)}
.gm *{box-sizing:border-box}
.gm-host .gg-k:has(.gg-sz),.gm-host .gg-k:has(.gg-sw),.gm-host .gg-k:has(.gg-kdot),.gm-host .gg-k:has(.gg-kfold),.gm-host .gg-fold{display:none}
/* a map with no marker (the mineral-only places) makes no promise about markers */
.gm-host.gm-nomark .gg-hint{display:none}
/* the chip supply layer in a zoom: no country shading, so no country's fill covers Taiwan or Korea */
.gm-nz .gm-host .gg-land,.gm-nz .gm-host .gg-land.gg-in{fill:var(--gg-land)}
.gm-top{display:flex;flex-direction:column;gap:6px;margin:0 0 10px;min-width:0}
.gm-chips,.gm-sub{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.gm-chips[hidden],.gm-sub[hidden]{display:none}
.gm-chip{font:600 13px/1.1 var(--sans);padding:8px 11px;border:1px solid var(--navy);background:#fff;color:var(--navy);cursor:pointer;min-height:34px;flex:none}
.gm-chip.sm{font-weight:400;padding:6px 9px;min-height:30px;border-color:var(--hair)}
.gm-chip.on{background:var(--navy);color:#fff}
.gm-draft{font:600 10.5px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;border:1px dashed currentColor;padding:1px 4px;margin-left:4px}
.gm-chip:focus-visible,.gm-row:focus-visible,.gm-open:focus-visible{outline:2px solid var(--gm-blue);outline-offset:1px}
.gm-intro{margin:2px 0 0;color:var(--graphite);font-size:14px;max-width:80ch}
.gm-intro.gm-isdraft{color:var(--ink);border-left:3px dashed var(--graphite);padding-left:8px}
.gm-key,.gm-src{font-size:12.5px;color:var(--graphite);margin:6px 0 0}
.gm-mapw{min-width:0}
.gm-host{min-width:0}
.gm-list{min-width:0;border-top:1px solid var(--navy);margin-top:10px}
.gm-rows{list-style:none;margin:0;padding:0}
.gm-h,.sec h2.gm-h{font:600 12px/1.3 var(--sans);letter-spacing:.05em;text-transform:uppercase;color:var(--graphite);margin:14px 0 4px;max-width:none}
.gm-row{padding:8px 4px;border-bottom:1px solid var(--hair)}
.gm-js .gm-row[data-id]{cursor:pointer}
.gm-row.on,.gm-row.hl{background:var(--gm-pale)}
.gm-rt{display:flex;gap:9px;align-items:flex-start}
.gm-rb{display:flex;flex-direction:column;min-width:0}
.gm-n{flex:none;width:22px;height:22px;border-radius:50%;background:var(--navy);color:#fff;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.gm-s{color:var(--graphite);font-size:12.5px}
.gm-sl{display:block;margin-top:2px}
.gm-bar{height:6px;background:var(--tint);margin:6px 0 0 31px}
.gm-bar i{display:block;height:100%;background:var(--gm-blue)}
.gm-w5{width:5%}.gm-w10{width:10%}.gm-w15{width:15%}.gm-w20{width:20%}.gm-w25{width:25%}.gm-w30{width:30%}.gm-w35{width:35%}.gm-w40{width:40%}.gm-w45{width:45%}.gm-w50{width:50%}.gm-w55{width:55%}.gm-w60{width:60%}.gm-w65{width:65%}.gm-w70{width:70%}.gm-w75{width:75%}.gm-w80{width:80%}.gm-w85{width:85%}.gm-w90{width:90%}.gm-w95{width:95%}.gm-w100{width:100%}
.gm-more{margin:6px 0 2px 31px;font-size:14px}
.gm-more p{margin:0 0 6px}
.gm-mv{list-style:none;margin:0;padding:0}
.gm-mv li{display:flex;flex-direction:column;padding:5px 0;border-top:1px solid var(--hair);font-size:13.5px}
.gm-mark{font:600 10.5px/1.2 var(--sans);letter-spacing:.05em;text-transform:uppercase;color:var(--graphite);border:1px solid currentColor;padding:0 4px;white-space:nowrap}
.gm-open{display:inline-block;color:var(--gm-blue);font:600 13px var(--sans);padding:7px 0;min-height:30px;text-decoration:none}
.gm-more .gm-srcl{margin:0 0 4px}
.gm-asof{font:600 12.5px var(--sans);color:var(--ink)}
.gm-note{font-size:12.5px;color:var(--ink);border-left:3px dashed var(--graphite);padding-left:8px}
.gm-none{color:var(--graphite);padding:12px 0;margin:0}
.gm-all{margin:10px 0 0}
.gm-sf .standfirst{margin:0;max-width:var(--measure)}
.opener .gm-back{margin:0;font:14px var(--sans)}
/* the place pages */
.gm-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;font-variant-numeric:tabular-nums;margin:10px 0}
.gm-stats div{display:flex;flex-direction:column;min-width:0}
.gm-stats b{font:500 24px/1.1 var(--serif)}
.gm-sec p{margin:0 0 8px;font-size:14px}
.gm-sec h3{font:500 18px/1.2 var(--serif);margin:0 0 4px;max-width:none}
.gm-so,.gm-dt{padding:8px 0;border-top:1px solid var(--hair)}
.gm-nx{color:var(--gm-blue);font-weight:600}
.gm-mrow{display:grid;grid-template-columns:96px minmax(0,1fr) 48px;gap:8px;align-items:center;font-size:13.5px;padding:3px 0;font-variant-numeric:tabular-nums}
.gm-mrow .gm-bar{margin:0}
.gm-mrow b{text-align:right}
.gm-acts summary{cursor:pointer;font-size:13.5px;color:var(--gm-blue);font-weight:600;min-height:28px}
.gm-srcl{font-size:12.5px;overflow-wrap:anywhere}
.gm-index{list-style:none;margin:0 0 20px;padding:0;font:15px/1.4 var(--sans)}
.gm-index li{padding:7px 0;border-bottom:1px solid var(--hair)}
.gm-c-top .opener{margin-bottom:0}
.gm-c-top.sec,.gm-c.sec{padding:12px 0}
.gm-sec .gf-card{margin:0 0 10px}
.gm-sec .gt-conf,.gm-sec .gt-sec,.gm-sec .gt-lang{font:12px var(--sans);color:var(--graphite)}
/* the hub (WS-1037, WS-1038): Themes | Story, the Layers menu, a country menu, the panel, the story bar */
.gm-hub .gm-top{flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 8px}
.gm-hub .gm-top[hidden]{display:none}
.gm-lay{position:relative}
.gm-hub .gm-menu{position:absolute;z-index:20;top:40px;left:0;display:block;background:#fff;border:1px solid var(--navy);min-width:250px;padding:6px 0;box-shadow:0 4px 14px rgba(5,28,44,.18)}
.gm-hub .gm-menu[hidden]{display:none}
.gm-menu button{display:block;width:100%;text-align:left;border:0;background:none;padding:9px 12px;font:14px var(--sans);cursor:pointer;color:var(--navy);min-height:38px}
.gm-menu button.on{background:var(--gm-pale);font-weight:600}
.gm-menu button:focus-visible{outline:2px solid var(--gm-blue);outline-offset:-2px}
.gm-menu hr{border:0;border-top:1px solid var(--hair);margin:4px 0}
.gm-sel select{font:14px var(--sans);padding:7px 8px;min-height:36px;border:1px solid var(--navy);background:#fff;color:var(--navy);max-width:220px}
.gm-leg{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;margin:6px 0;color:var(--ink)}
.gm-leg[hidden],.gm-cbar[hidden],.gm-sbar[hidden],.gm-sheet[hidden]{display:none}
.gm-leg span{display:inline-flex;align-items:center;gap:6px}
.gm-sw{display:inline-block;width:34px;height:0;border-top:3px solid #2251ff}
.gm-sw-out{border-top:3px dashed #b34700}
.gm-cbar,.gm-sbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0}
.gm-tl{display:flex;gap:4px;flex-wrap:wrap;flex-basis:100%}
.gm-tl button{min-width:34px;min-height:34px;border:1px solid var(--navy);background:#fff;font:600 12px var(--sans);cursor:pointer;color:var(--navy)}
.gm-tl button.on{background:#2251ff;color:#fff;border-color:#2251ff}
.gm-tl button.past{background:var(--gm-pale)}
.gm-date{font:500 22px/1 var(--serif);min-width:110px}
.gm-btn{background:#2251ff;color:#fff;border:0;padding:9px 14px;font:600 14px var(--sans);cursor:pointer;min-height:38px;margin:6px 6px 6px 0}
.gm-btn.alt{background:#fff;color:var(--navy);border:1px solid var(--navy)}
.gm-btn:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.gm-pn{padding:6px 0}
.gm-pn .gm-ch,.sec .gm-pn h2.gm-ch{font:500 22px/1.2 var(--serif);margin:6px 0 6px;max-width:none}
.gm-words{font-size:15px;margin:0 0 6px}
.gm-step{border:1px solid #a9bcff;background:#fff;padding:10px 12px;margin:6px 0}
.gm-step h3{font:500 20px/1.2 var(--serif);margin:0 0 4px;max-width:none}
.gm-step p{margin:0 0 6px;font-size:14.5px}
.gm-step .gm-mark,.gm-date .gm-mark{vertical-align:middle;border-color:#b34700;color:#8a3a00;font-size:10.5px}
.gm-pn .gm-row[tabindex]{cursor:pointer}
.gm-act{padding:6px 0;border-bottom:1px solid var(--hair);font-size:13.5px}
.gm-act b{display:block;font-weight:600}
.gm-w{margin-top:12px}
.gm-note2{margin:8px 0 0}
.gm-place-row[data-iso]{cursor:pointer}
.gm-sheet{position:fixed;left:0;right:0;bottom:0;max-height:52vh;overflow:auto;background:var(--paper);border-top:3px solid #2251ff;padding:10px 14px 18px;z-index:40;box-shadow:0 -6px 18px rgba(5,28,44,.2)}
.gm-x{float:right;background:#fff;border:1px solid var(--navy);min-width:40px;min-height:40px;font-size:18px;cursor:pointer;margin:0 0 6px 8px}
/* the exposure pages at this map's standard: the map straight under the heading, the method below it */
.sec.gt-ex-top{padding-bottom:8px}
.sec.gt-ex-main{padding-top:8px;border-top:0}
/* two line colours and what each means (WS-1038, an exception to palette B), never colour alone: the dash and the key.
   The orange is #b34700: at least 3:1 on white, the land and the soft fills (review m9); earlier story lines keep their
   colour and dash, thinner and fainter */
.gm-host .gg-arc[data-a$="-in"],.gm-host .gg-arc[data-a^="now-us"]{stroke:#2251ff;opacity:1}
.gm-host .gg-arc[data-a$="-out"],.gm-host .gg-arc[data-a^="now-cn"]{stroke:#b34700;stroke-dasharray:7 4;opacity:1}
.gm-host .gg-arc[data-a^="past-us"]{stroke:#2251ff;opacity:.38}
.gm-host .gg-arc[data-a^="past-cn"]{stroke:#b34700;stroke-dasharray:7 4;opacity:.38}
/* the hub's own key for its lines (blue solid in, orange dashed out): the shared map's navy line swatch is not shown */
.gm-lines .gm-host .gg-k:has(.gg-ar){display:none}
/* M7: the hub's own views shade softly (four light tints, no navy); a layer from the menu keeps its bands */
.gm-soft .gm-host{--gg-b1:#eef2ff;--gg-b2:#dce4ff;--gg-b3:#c3d0ff;--gg-b4:#9cb0ff}
/* ENGINE WORKAROUND (E1): the "Where you are" locator covers ends and lines and its zoom box can draw as a crescent;
   no option turns it off, so this map hides it. Remove when gps-globe gives a locator option. */
.gm .gm-host .gg-loc{display:none}
/* ENGINE WORKAROUND (E6): the shared hint speaks of numbers to tap; a country's lines and the story have none to explain */
.gm-lines .gm-host .gg-hint{visibility:hidden}
/* the step's own line, named over the map (M4); the lines' ends in words under a phone's map */
.gm-cap{display:flex;align-items:center;gap:6px;margin:4px 0;font:14px/1.3 var(--sans);color:var(--ink)}
.gm-cap[hidden],.gm-ends[hidden]{display:none}
.gm-cap b{font-weight:600}
.gm-ends ol{list-style:none;margin:4px 0;padding:0;display:flex;flex-direction:column;gap:3px;font-size:13px}
.gm-ends li{display:flex;align-items:center;gap:6px}
.gm-ni{background:#2251ff}.gm-no{background:#b34700}.gm-nb{background:var(--navy)}
.gm-dnote{margin:4px 0 0;font-size:12.5px;color:var(--ink)}
/* the controlling side's key swatch on this map's exposure views (geotech-exposure.css draws it only in .gt-ex-map) */
.gm-host .gg-sh.gg-b0{background:#fff;box-shadow:inset 0 0 0 1.5px var(--gg-b4,#051C2C)}
.gm-host .gg-land[data-iso="CHN"].gg-b0{fill:#fff;stroke:var(--gg-b4,#051C2C);stroke-width:1.2}
/* ENGINE WORKAROUND (E2): with the zoom clip spanning the map, lines can run under the margin names: each name line
   sits on a paper box (the filter #gm-lbg, which geotech-mapv2.js adds to the page once) */
.gm-host .gg-lab .gg-t,.gm-host .gg-lab .gg-m,.gm-host .gg-lab .gg-n{filter:url(#gm-lbg)}
.gm-defs{position:absolute;width:0;height:0;overflow:hidden}
.gm-dnote .gm-draft{margin:0 4px 0 0}
/* desktop: the map beside its list, as the risk map */
@media (min-width:900px){
  .gt-hub.gm-first .gt-hub-top.sec,.gt-page.gm-first .gt-top.sec{padding:32px 0 12px}
  .gm-strip.sec{padding:20px 0 48px;border-top:0}
  .gt-page.gm-first>.gt-charts{order:4}
  .gm-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
  /* M4: Story's bar under the map, so the map stays on the first screen; the key lines after it */
  .gm-hub .gm-mapw{display:flex;flex-direction:column}
  .gm-hub .gm-mapw>.gm-sbar{order:1}
  .gm-hub .gm-mapw>.gm-leg,.gm-hub .gm-mapw>.gm-cbar,.gm-hub .gm-mapw>.gm-ends,.gm-hub .gm-mapw>.gm-key,.gm-hub .gm-mapw>.gm-src{order:2}
  .gm-hub .gm-ends{display:none}
  /* round 3: Story on a desktop keeps Play, Back and Next on the first 860 px: one compact bar above the map, the intro
     left out (the step panel beside the map says what each step is) */
  .gm-hub.gm-instory .gm-mapw>.gm-sbar{order:0;flex-wrap:nowrap;gap:6px;margin:0 0 4px}
  .gm-hub.gm-instory .gm-intro{display:none}
  .gm-hub.gm-instory .gm-sbar .gm-btn{margin:0;padding:6px 11px;min-height:32px}
  .gm-hub.gm-instory .gm-date{font-size:18px;min-width:0;white-space:nowrap}
  .gm-hub.gm-instory .gm-count{white-space:nowrap}
  .gm-hub.gm-instory .gm-tl{flex-basis:auto;flex-wrap:nowrap;gap:3px}
  .gm-hub.gm-instory .gm-tl button{min-width:28px;min-height:30px;padding:0}
  /* ENGINE WORKAROUND (E2): a zoomed flat map is clipped to the part between the label columns, leaving a blank strip
     beside it; the clip rectangle spans the whole map here. Remove when gps-globe fits the zoom to the host. */
  .gm .gm-host clipPath rect{x:0;width:100%}
  .gm-grid>.gm-top{grid-column:1/-1;grid-row:1}
  .gm-grid>.gm-mapw{grid-column:1;grid-row:2;position:sticky;top:calc(var(--mh) + 8px)}
  .gm-grid>.gm-list{grid-column:2;grid-row:2;max-height:640px;overflow:auto;margin-top:0}
  .gm-place .gm-grid{grid-template-columns:minmax(0,1fr) minmax(0,420px)}
  .gm-place .gm-grid>.gm-mapw,.gm-place .gm-grid>.gm-body{grid-row:1}
  .gm-place .gm-grid>.gm-body{grid-column:2}
  .gt-hub.gm-first>.gm-sf{order:3}
  .gt-page.gm-first>.gm-tr-lead{order:3}
}
/* a phone (WS-1020 map 5): map first at 236 px, the layer buttons under it, the first stand-off headline on the first screen */
@media (max-width:599px){
  .gm-chips,.gm-sub{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  /* M3: Themes | Story | Layers on one line, the country menu at full width under them: nothing past the edge */
  .gm-hub .gm-top{flex-wrap:wrap;padding-bottom:3px}
  .gm-hub .gm-top>*{flex:none}
  .gm-hub .gm-top>.gm-sel{flex:1 1 100%;order:5}
  .gm-hub .gm-top>[data-back]{order:6}
  .gm-hub .gm-sel select{max-width:none;width:100%}
  .gm-hub .gm-menu{position:fixed;left:10px;right:10px;top:auto;bottom:10px;max-height:70vh;overflow:auto}
  .gm-hub .gm-intro{display:none}
  /* coordinator round 2 (a): on a phone the map comes first in Story too: the bar goes under the map, the draft note
     under the list; the top row's buttons are compact so Themes, Story and Layers share one line */
  .gm-hub .gm-mapw>.gm-sbar{order:1}
  .gm-hub .gm-mapw>.gm-leg,.gm-hub .gm-mapw>.gm-cbar,.gm-hub .gm-mapw>.gm-ends{order:1}
  .gm-hub .gm-dnote{order:4;margin:6px 0}
  .gm-hub .gm-top .gm-chip{padding:7px 8px;font-size:12.5px;min-height:34px}
  .gm-hub .gm-top .gm-draft{font-size:9.5px;padding:1px 3px;margin-left:3px}
  /* the first theme card on the first 375x667 screen (W-115): the key and source line go below the list */
  .gm-hub .gm-grid{display:flex;flex-direction:column}
  .gm-hub .gm-mapw{display:contents}
  .gm-hub .gm-list{order:2}
  .gm-hub .gm-key,.gm-hub .gm-src{order:3}
  .gm-sel select{max-width:220px}
  .gm-date{font-size:18px;min-width:0}
  .gm-hub .gm-host .gg-hint{display:none}
  .gm-sbar{gap:4px 6px;margin:2px 0 4px}
  .gm-tl{gap:3px}
  .gm-tl button{min-width:30px;min-height:32px;padding:0}
  .gm-btn{padding:8px 11px;margin:2px 4px 2px 0}
  .gm-host .gg-tools{gap:4px 8px}
  .gm-host .gg-seg{flex:none}
  .gm-host .gg-seg button{padding:4px 12px;min-height:28px}
  .gm-host .gg-chips{flex-wrap:nowrap;overflow-x:auto;flex:1 1 0;min-width:0}
  /* (b) the region row scrolls sideways: its right edge fades, so the cut chip reads as "more this way" */
  .gm .gm-host .gg-chips{-webkit-mask-image:linear-gradient(to right,#000 80%,transparent);mask-image:linear-gradient(to right,#000 80%,transparent);padding-right:24px}
  .gm-host .gg-chips button{flex:none;padding:3px 9px;min-height:28px}
  .gm-host .gg-hint{flex-basis:100%;font-size:11.5px;line-height:1.2}
  .gm-compact .gm-top{margin:6px 0 0}
  .gm-compact .gm-host .gg-foot,.gm-compact .gm-key,.gm-compact .gm-src{display:none}
  .gm-compact:not(.gm-liston) .gm-list,.gm-compact:not(.gm-liston) .gm-intro{display:none}
  /* the list open: the map stays in sight above it, as the risk map on a phone */
  .gm-compact.gm-liston .gm-mapw{position:sticky;top:var(--mh);z-index:3;background:var(--paper);border-bottom:1px solid var(--hair)}
  .gt-hub.gm-first .gt-hub-top.sec{padding:10px 0 6px}
  .gt-hub.gm-first .gt-hub-top .opener{gap:4px}
  .gm-strip.sec{padding:0 0 6px;border-top:0}
  .gt-hub.gm-first .gt-tr-strip.sec{padding:8px 0 24px;border-top:0}
  .gt-hub.gm-first .gt-tr-strip .gt-cards{margin-top:6px}
  .gt-hub.gm-first .gt-tr-strip>.wrap>.lbl{display:none}
  .gt-hub.gm-first .gt-tr-strip h2{font-size:22px;margin:0}
  .gt-hub.gm-first .gt-tr-strip .gt-card{padding:10px 12px}
  .gt-hub.gm-first .gt-tr-strip .gt-card h3{font-size:21px;line-height:1.15}
  /* the tracker in the same order */
  .gt-page.gm-first .gt-top.sec{padding:10px 0 6px}
  .gt-page.gm-first .gt-top h1{font-size:26px;line-height:1.12;margin:0}
  .gm-tr-first{padding:0 0 4px}
  .gt-page.gm-first .gt-so.sec{padding:6px 0 24px;border-top:0}
  .gt-page.gm-first .gt-so h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .gt-page.gm-first .gt-so .gt-intro{display:none}
  .gt-page.gm-first .gt-so .gt-card{padding:10px 12px}
}
