/* EU regional risk map, site-native version for genbutsu.net/map (build_sonar_region_map.py --site; script in
   eu-map.js). Every rule is scoped under #eu-map. Site tokens; the family colours come with the data.
   Created with the support of artificial-intelligence tools. */
@font-face{font-family:"Manrope";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/manrope-400.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/manrope-600.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/manrope-700.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:800;font-display:swap;src:url("/fonts/manrope-800.woff2") format("woff2")}
#eu-map{
  --cream:#FAF5EE; --paper:#F3ECE1; --line:#E4D9C9; --ink:#2B2723; --ink-soft:#4A443D; --muted:#9A8C7B; --amber:#D98E38;
  --sans:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  /* the map's own ground and fills, read by eu-map.js: a light warm ground, warm greys for 'not assessed' and
     'not covered', sand a step deeper than the ground for 'too few to read' */
  --map-ground:#FFFDF9; --map-neutral:#ECE4D7; --map-nodata:#EFE6D5; --map-na:#C4BAAD;
  --map-hatch:#E2DACE; --map-hatch2:#C2B7A8; --map-ink:#2B2723; --map-border:rgba(43,39,35,.7);
  --map-inset:rgba(43,39,35,.45); --map-inset-text:rgba(43,39,35,.75);
  color:var(--ink); font-family:var(--sans); font-size:13.5px; line-height:1.45; text-align:left;
}
#eu-map *,#eu-map *::before,#eu-map *::after{box-sizing:border-box}
#eu-map [hidden]{display:none!important}
#eu-map p,#eu-map h3{margin:0}
#eu-map a{color:inherit}
#eu-map a:hover{color:var(--amber)}
#eu-map :focus-visible{outline:2px solid var(--amber);outline-offset:2px}
#eu-map input[type=checkbox],#eu-map input[type=range]{accent-color:var(--amber)}
/* small labels: mono, uppercase, wide. Ink-soft, not muted: #9A8C7B is 3.0:1 on cream, too faint for 10.5px text */
#eu-map .em-eyebrow{font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:8px}
#eu-map .em-stats{display:flex;flex-wrap:wrap;gap:6px 22px;align-items:baseline;margin:0 0 12px;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-soft)}
#eu-map .em-stat .em-v{font-family:var(--sans);font-size:16px;font-weight:800;letter-spacing:0;color:var(--ink);font-variant-numeric:tabular-nums}
#eu-map .em-app{display:grid;grid-template-columns:minmax(290px,340px) minmax(0,1fr);gap:14px;align-items:start}
#eu-map .em-left{background:var(--cream);border:1px solid var(--line);border-radius:14px;min-width:0}
#eu-map .em-side{padding:16px 18px 8px}
#eu-map .em-side-top{padding-bottom:4px}
#eu-map .em-ctl{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 18px;display:flex;flex-direction:column;gap:14px}
#eu-map .em-ctl .em-eyebrow{margin-bottom:0}
#eu-map .em-lnk{color:inherit}
#eu-map .em-comb{cursor:pointer;text-transform:none;letter-spacing:0}
#eu-map .em-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
#eu-map .em-chips button{font-family:var(--sans);font-weight:600;font-size:12.5px;line-height:1.2;padding:6px 12px;
  border:1px solid var(--line);background:#FFFDF9;color:var(--ink);border-radius:14px;cursor:pointer;display:flex;align-items:center;gap:7px;margin:0}
#eu-map .em-chips button[aria-pressed=true]{background:var(--ink);color:var(--cream);border-color:var(--ink)}
/* the family colours are the approved palette, unchanged: the light ones (digital, social) are under 3:1 on cream,
   so every swatch, chip dot and bar carries a thin ink outline that gives it its edge */
#eu-map .em-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto;box-shadow:0 0 0 1px rgba(43,39,35,.45)}
#eu-map .em-chips button[aria-pressed=true] .em-dot{box-shadow:0 0 0 1px rgba(250,245,238,.6)}
#eu-map .em-dotbox{display:flex;gap:8px;align-items:center;margin-top:8px;font-size:12px}
#eu-map .em-dotlab{cursor:pointer}
#eu-map .em-dotbox input[type=range]{width:90px}
#eu-map .em-blk{margin-bottom:20px}
#eu-map .em-lg{display:flex;align-items:center;gap:8px;font-size:11.5px;line-height:1.4;padding:3px 0}
#eu-map .em-sw{width:12px;height:12px;border-radius:2px;border:1px solid rgba(43,39,35,.45);flex:0 0 auto;align-self:flex-start;margin-top:2px}
#eu-map .em-sw-np{background:repeating-linear-gradient(135deg,#E2DACE 0 4px,#C2B7A8 4px 5px)}
#eu-map .em-note{font-size:11.5px;color:var(--ink-soft);line-height:1.45}
#eu-map .em-mt4{margin-top:4px}
#eu-map .em-mt6{margin-top:6px}
#eu-map .em-mt8{margin-top:8px}
#eu-map .em-card h3{font-size:17px;font-weight:800;letter-spacing:-.01em}
#eu-map .em-sub{font-family:var(--mono);font-size:11px;color:var(--ink-soft);margin-top:2px}
#eu-map .em-tbar{margin-top:10px}
#eu-map .em-row{display:grid;grid-template-columns:118px 1fr 52px;gap:8px;align-items:center;font-size:12px;padding:3px 0}
#eu-map .em-row.em-sel{font-weight:700}
#eu-map .em-track{position:relative;height:9px;background:#EAE2D5;border-radius:3px}
#eu-map .em-fill{position:absolute;left:0;top:0;bottom:0;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(43,39,35,.3)}
#eu-map .em-nat{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--ink)}
#eu-map .em-num{font-family:var(--mono);font-size:11px;text-align:right}
#eu-map .em-drv{margin-top:12px}
#eu-map .em-r{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:4px 0;border-bottom:1px dotted var(--line)}
#eu-map .em-v{font-family:var(--mono);font-size:11px;white-space:nowrap}
#eu-map .em-foot{padding:6px 18px 18px;font-size:11px;color:var(--ink-soft)}
/* the map: sticky beside the legend on desktop, so it stays in view while the page scrolls */
#eu-map .em-right{position:sticky;top:16px;min-width:0}
#eu-map .em-mapwrap{position:relative;width:100%;aspect-ratio:var(--ar,1000/900);max-height:calc(100vh - 32px);
  background:var(--map-ground);border:1px solid var(--line);border-radius:14px;overflow:hidden}
#eu-map canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:pan-y}
#eu-map canvas.em-zoomed{touch-action:none}
#eu-map canvas.em-drag{cursor:grabbing}
#eu-map .em-tip{position:absolute;pointer-events:none;background:var(--ink);color:#FFFDF9;font-size:12px;padding:6px 9px;border-radius:8px;
  white-space:nowrap;transform:translate(12px,12px);z-index:5}
#eu-map .em-tip .em-m{font-family:var(--mono);font-size:11px;opacity:.85}
#eu-map .em-hint{position:absolute;left:50%;top:12px;transform:translateX(-50%);background:var(--ink);color:#FFFDF9;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;padding:6px 10px;border-radius:14px;pointer-events:none;z-index:6}
#eu-map .em-zoom{position:absolute;right:10px;bottom:10px;display:flex;flex-direction:column;gap:4px;z-index:4}
#eu-map .em-zoom button{width:30px;height:30px;font-size:16px;line-height:1;padding:0;border:1px solid var(--line);background:#FFFDF9;
  border-radius:10px;cursor:pointer;color:var(--ink)}
@media (max-width:899px){     /* phones: the map first, the legend and controls below it; the page scrolls */
  #eu-map .em-app{grid-template-columns:1fr}
  #eu-map .em-right{order:-1;position:static}
  #eu-map .em-mapwrap{max-height:none}
}
/* world map: continent label boxes on top of the map (JT 5 Nov 2026) */
#eu-map .em-link{position:absolute;transform:translate(-50%,-50%);z-index:3;background:rgba(11,33,64,.88);color:#fff;border:1px solid rgba(255,255,255,.55);border-radius:9px;padding:5px 11px;font:600 12px/1.25 var(--sans);text-decoration:none;white-space:nowrap;box-shadow:0 2px 8px rgba(0,0,0,.25);text-align:center}
#eu-map .em-link:hover,#eu-map .em-link:focus-visible{background:#FFB51B;color:#0B2140;border-color:#FFB51B;outline:none}
#eu-map .em-link-soon{background:rgba(11,33,64,.55);cursor:default}
#eu-map .em-link small{display:block;font-weight:400;font-size:10px;opacity:.8}
@media (max-width:600px){#eu-map .em-link{padding:3px 7px;font-size:10px}#eu-map .em-link small{display:none}}
/* wide maps (the world): the map full width on top, legend and controls in columns below (JT 5 Nov 2026) */
#eu-map.em-wide .em-app{grid-template-columns:1fr}
#eu-map.em-wide .em-right{order:-1;position:static}
#eu-map.em-wide .em-mapwrap{max-height:none}
#eu-map.em-wide .em-left{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));align-items:start}
#eu-map.em-wide .em-left>*{min-width:0}
/* explore layout (JT 5 Nov 2026): the map fills the frame, the panel floats on it and folds away; search top right */
#eu-map .em-xtop,#eu-map .em-panelbtn{display:none}
#eu-map.em-explore .em-app{display:block;position:relative;height:calc(100vh - 96px);min-height:560px}
#eu-map.em-explore .em-right{position:absolute;inset:0}
#eu-map.em-explore .em-mapwrap{height:100%;aspect-ratio:auto;max-height:none;border-radius:16px;overflow:hidden}
#eu-map.em-explore .em-left{position:absolute;top:12px;left:12px;bottom:12px;width:350px;overflow:auto;z-index:4;
  background:rgba(250,245,238,.94);backdrop-filter:blur(6px);box-shadow:0 6px 24px rgba(0,0,0,.18)}
#eu-map.em-explore.em-panel-off .em-left{display:none}
#eu-map.em-explore .em-xtop{display:block;position:absolute;top:12px;right:12px;z-index:5}
#eu-map.em-explore .em-xtop input{width:260px;max-width:60vw;font:14px var(--sans);padding:9px 12px;border-radius:10px;
  border:1px solid rgba(255,255,255,.5);background:rgba(250,245,238,.94);color:var(--ink);box-shadow:0 4px 14px rgba(0,0,0,.18)}
#eu-map.em-explore .em-panelbtn{display:block;position:absolute;top:12px;left:374px;z-index:5;font:600 12px var(--sans);
  padding:8px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.5);background:rgba(11,33,64,.88);color:#fff;cursor:pointer}
#eu-map.em-explore.em-panel-off .em-panelbtn{left:12px}
#eu-map.em-explore .em-stats{margin-bottom:8px}
@media (max-width:899px){
  #eu-map.em-explore .em-app{height:auto;min-height:0;display:flex;flex-direction:column}
  #eu-map.em-explore .em-right{position:static;order:-1}
  #eu-map.em-explore .em-mapwrap{width:100%;height:auto;aspect-ratio:var(--ar,1000/900);max-height:75vh}
  #eu-map.em-explore .em-left{position:static;width:auto;box-shadow:none;margin-top:12px}
  #eu-map.em-explore.em-panel-off .em-left{display:block}
  #eu-map.em-explore .em-panelbtn{display:none}
  #eu-map.em-explore .em-xtop input{width:180px}
}
@media (max-width:600px){#eu-map.em-explore .em-link{display:none}#eu-map.em-explore .em-xtop{top:8px;right:8px}#eu-map.em-explore .em-xtop input{width:150px;padding:6px 9px;font-size:13px}}
/* explore v2 (JT 5 Nov 2026): full-screen map, collapsible panel sections, room for a page top bar (--em-top) */
#eu-map.em-explore .em-sechead{cursor:pointer;user-select:none}
#eu-map.em-explore .em-sechead::before{content:"▾";display:inline-block;margin-right:6px;font-size:11px;transition:transform .15s}
#eu-map.em-explore .em-closed>.em-sechead::before{transform:rotate(-90deg)}
#eu-map.em-explore .em-sec.em-closed>:not(.em-sechead){display:none}
#eu-map.em-explore .em-sec{padding-bottom:6px;border-bottom:1px solid var(--line)}
#eu-map.em-explore .em-left{top:var(--em-top,12px);bottom:auto;max-height:calc(100% - var(--em-top,12px) - 12px);width:320px}
#eu-map.em-explore .em-xtop,#eu-map.em-explore .em-panelbtn{top:var(--em-top,12px)}
#eu-map.em-explore .em-panelbtn{left:344px}
#eu-map.em-explore .em-stats{position:absolute;right:64px;bottom:12px;z-index:4;margin:0;padding:6px 10px;border-radius:10px;
  background:rgba(250,245,238,.9);font-size:11px;gap:12px}
#eu-map.em-explore{position:relative}
@media (max-width:899px){#eu-map.em-explore .em-stats{position:static;background:none;padding:0;margin-bottom:8px}
  #eu-map.em-explore .em-left{max-height:none}}
/* view switch above the map (JT 24 Nov 2026): regions and lights are two kinds of picture, so the choice sits on top,
   large, each with a one-line description */
#eu-map .em-view{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:0 0 10px}
#eu-map .em-view[hidden],#eu-map .em-view button[hidden]{display:none}
#eu-map .em-view button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;cursor:pointer;
  padding:10px 14px;border-radius:12px;border:1px solid var(--line);background:#FFFDF9;color:var(--ink);font-family:var(--sans)}
#eu-map .em-view button:hover{border-color:var(--ink-soft)}
#eu-map .em-view button[aria-pressed="true"]{background:#0B2140;border-color:#0B2140;color:#fff}
#eu-map .em-view .em-vt{font-weight:800;font-size:16px;line-height:1.2}
#eu-map .em-view .em-vd{font-size:12.5px;line-height:1.35;opacity:.85}
@media (min-width:900px){
  #eu-map.em-explore{display:flex;flex-direction:column;height:calc(100vh - 96px);min-height:620px}
  #eu-map.em-explore .em-app{flex:1 1 auto;height:auto;min-height:0}
}
@media (max-width:600px){#eu-map .em-view{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:1fr;gap:6px}#eu-map .em-view button{padding:8px 10px}#eu-map .em-view .em-vt{font-size:14px}#eu-map .em-view .em-vd{display:none}}
/* zoomable world map (JT 25 Nov 2026): loading cue while a continent's detail loads; continent boxes as zoom buttons */
#eu-map .em-load{position:absolute;left:50%;top:56px;transform:translateX(-50%);z-index:6;background:rgba(11,33,64,.92);color:#fff;
  font:600 12px/1.3 var(--sans);padding:6px 12px;border-radius:9px;box-shadow:0 2px 8px rgba(0,0,0,.25);max-width:80%;text-align:center}
#eu-map .em-load[hidden]{display:none}
#eu-map button.em-link{cursor:pointer}
#eu-map .em-link[hidden]{display:none}
@media (min-width:900px){#eu-map.em-explore .em-stats{max-width:calc(100% - 430px);flex-wrap:wrap;row-gap:2px}}
/* compact embed for the portal's country pages (JT 25 Nov 2026): fixed frame, panel folded, no view switch or search,
   a link to the full map */
#eu-map.em-compact{height:auto;min-height:0;display:block}
#eu-map.em-compact .em-view,#eu-map.em-compact .em-xtop{display:none}
#eu-map.em-compact .em-app{height:var(--em-h,420px);min-height:0;position:relative}
#eu-map.em-compact .em-left{max-height:calc(var(--em-h,420px) - 24px)}
#eu-map.em-compact .em-stats{position:absolute;left:12px;right:auto;bottom:12px;max-width:calc(100% - 80px)}
#eu-map .em-full{display:none}
#eu-map.em-compact .em-full{display:block;position:absolute;top:12px;right:12px;z-index:5;font:600 12px var(--sans);padding:8px 12px;
  border-radius:10px;background:rgba(250,245,238,.94);color:var(--ink);text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.18)}
#eu-map.em-compact .em-full[hidden]{display:none}
@media (max-width:899px){
  #eu-map.em-compact .em-app{height:var(--em-h,420px);display:block}
  #eu-map.em-compact .em-right{position:absolute;inset:0}
  #eu-map.em-compact .em-mapwrap{height:100%;aspect-ratio:auto;max-height:none}
  #eu-map.em-compact .em-left{display:none}
  #eu-map.em-compact .em-stats{position:absolute;background:rgba(250,245,238,.9);padding:4px 8px;font-size:10.5px}
}
#eu-map .em-cred{display:none}
#eu-map.em-compact .em-cred{display:block;position:absolute;left:12px;top:12px;z-index:4;font:11px/1.3 var(--sans);color:var(--ink);
  background:rgba(250,245,238,.9);padding:4px 8px;border-radius:8px;margin-left:136px}
#eu-map.em-compact .em-cred[hidden]{display:none}
#eu-map.em-compact .em-cred a{color:inherit}
#eu-map.em-compact.em-panel-off .em-cred{margin-left:136px}
#eu-map.em-compact:not(.em-panel-off) .em-cred{display:none}
@media (max-width:899px){#eu-map.em-compact .em-cred{margin-left:0;top:auto;bottom:40px}#eu-map.em-compact .em-panelbtn{display:none}}
@media (max-width:899px){
  #eu-map.em-compact .em-cred{top:12px;bottom:auto;left:12px;margin:0;max-width:calc(100% - 160px);font-size:10.5px}
  #eu-map.em-compact .em-stats{display:flex;flex-wrap:wrap;gap:2px 10px;right:56px;font-size:10px}
  #eu-map.em-compact .em-stats .em-stat:nth-child(3){display:none}
}
@media (max-width:899px){#eu-map.em-compact.em-panel-off .em-cred{margin:0;top:auto;bottom:62px;left:12px;max-width:calc(100% - 80px)}}
/* Lights tint key and the first-visit swipe intro (JT 25 Nov 2026) */
#eu-map .em-sw-tint{background:linear-gradient(135deg,rgba(47,125,65,.35),rgba(210,64,58,.35),rgba(110,80,220,.35));border-color:rgba(255,255,255,.25)}
#eu-map .em-swipe{position:absolute;inset:0;z-index:5;pointer-events:none}
#eu-map .em-swipe[hidden]{display:none}
#eu-map .em-swl,#eu-map .em-swr{position:absolute;top:58px;font:600 12px var(--sans);color:#fff;background:rgba(11,33,64,.85);padding:5px 10px;border-radius:8px}
#eu-map .em-swh{position:absolute;top:50%;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;border:2px solid #0B2140;
  background:#fff;cursor:ew-resize;pointer-events:auto;box-shadow:0 2px 10px rgba(0,0,0,.4);touch-action:none}
#eu-map .em-swh::before{content:"\25C0 \25B6";font:11px/36px var(--sans);color:#0B2140;display:block;text-align:center}
#eu-map .em-swh:focus-visible{outline:3px solid #FFB51B;outline-offset:2px}
#eu-map .em-swskip{position:absolute;bottom:60px;left:50%;transform:translateX(-50%);pointer-events:auto;font:600 12px var(--sans);
  padding:7px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.5);background:rgba(11,33,64,.9);color:#fff;cursor:pointer}
.em-more summary{cursor:pointer;font-weight:600;text-decoration:underline;text-underline-offset:2px}
.em-more summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}
/* Heat: "Dim sparse areas" switch (JT 1 Dec 2026) */
#eu-map .em-sz{display:block;width:100%;margin:0 0 8px;padding:6px 8px;font:inherit;font-size:12.5px;text-align:left;cursor:pointer;
  border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;opacity:.75}
#eu-map .em-sz::before{content:"\25CB  "}
#eu-map .em-sz[aria-pressed="true"]{opacity:1;font-weight:600}
#eu-map .em-sz[aria-pressed="true"]::before{content:"\25CF  "}
/* phones, explore: side gutter for the view switch and the counter line (WEBSITE, 1 Dec 2026) */
@media (max-width:600px){#eu-map.em-explore .em-view,#eu-map.em-explore .em-stats{margin-left:16px;margin-right:16px}}
