/* The world map component (design system: docs/design-system/components.md, section 9; numbers in engine/map-spec.json).
   One stylesheet for both places it is drawn: static pages (site/event_map.py: numbered pins) and the card feed's World
   map (engine/world-map.js + feed.js: dots); the build appends it to the feed's stylesheet. The land is the feed's dotted
   world (tokens --mapbg, --land); markers take the colour of the category's family (--pin, set from --pf-*) (the white number passes 4.5:1 on every
   hue in light mode; dark mode has light pins with dark numbers, --onpin). A marker with a dashed ring (pin) or a hollow
   dot (feed) is placed by region only. */
.emap{margin:28px 0 8px}
.emap h2{margin-top:0}
/* phones: the map runs edge to edge (the page's 16px gutters given back) so the pins have room */
/* phones: the map is drawn 720px wide in a sideways scroller that runs edge to edge (the page's 16px gutters given back);
   the page itself never scrolls sideways */
.em-scroll{position:relative}
@media (max-width:599px){
  .em-scroll{margin:0 -16px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  .em-stage,.em-land{border-radius:0}
  .em-stage{width:720px;border:0}
  .em-l-wide{display:none}
}
.em-stage{position:relative;aspect-ratio:var(--emar,2.63);background:var(--mapbg);border-radius:16px;border:1px solid var(--line)}
.em-land{position:absolute;inset:0;border-radius:16px}
.em-live .em-land{background:var(--land);-webkit-mask:url(/engine/map-land.svg) 0 0/100% 100% no-repeat;mask:url(/engine/map-land.svg) 0 0/100% 100% no-repeat}
.em-pin{position:absolute;z-index:1;left:var(--x);top:var(--y);width:24px;height:24px;margin:-12px 0 0 -12px;display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:12.5px;line-height:1;color:var(--onpin)!important;text-decoration:none;border-radius:50%;
  font-variant-numeric:tabular-nums}
.em-pin::before{content:"";position:absolute;inset:1px;z-index:-1;border-radius:50%;background:var(--pin);
  box-shadow:0 0 0 2px var(--sheet)}
.em-pin:hover::before{box-shadow:0 0 0 2px var(--sheet),0 0 0 4px var(--ink)}
/* placed by region only: a dashed ring */
.em-pin.em-rg::before{outline:2px dashed var(--ink);outline-offset:2px}
/* a pin pushed off its spot by a neighbour: a thin line back to the spot (inline SVG, one per layout) */
.em-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.em-lines line{stroke:var(--ink);stroke-width:1.25;vector-effect:non-scaling-stroke;opacity:.7}
.em-lines circle{fill:var(--ink)}
.em-tip{position:fixed;z-index:120;max-width:min(320px,calc(100vw - 16px));padding:7px 10px;border-radius:var(--r-s);background:var(--ink);color:var(--sheet);
  font-size:14px;line-height:1.35;pointer-events:none;box-shadow:0 4px 14px var(--shade-25)}
.em-tip[hidden]{display:none}
.em-tip b{display:block;font-weight:700}
.em-tip span{display:block}
.em-offrow{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin:8px 0 0;font-size:15px;color:var(--mute)}
.em-offrow .em-pin{position:relative;left:auto;top:auto;margin:0;width:30px;height:30px;font-size:14px}
.em-offrow .em-pin::before{inset:2px}
.em-k{font-size:12.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--mute);margin-right:4px}
.em-offw{margin-left:4px}
.em-leg{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:15px;color:var(--ink)}
.em-leg li{display:flex;align-items:center;gap:7px}
.em-sw{width:14px;height:14px;border-radius:50%;background:var(--pin);flex:none}
.em-note{margin:8px 0 0;font-size:15px;color:var(--mute);line-height:1.45}
.em-ph{display:none}
@media (max-width:599px){.em-ph{display:inline}}
/* the pin's number on its card, so the map and the cards read together */
.pg .em-no{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 4px;border-radius:12px;
  background:var(--pin);color:var(--onpin);font-weight:800;font-size:13px;line-height:1;
  font-variant-numeric:tabular-nums}
@media (min-width:600px){
  .emap{margin-top:36px}
  .em-pin{left:var(--X);top:var(--Y);width:30px;height:30px;margin:-15px 0 0 -15px;font-size:14px}
  .em-pin::before{inset:2px}
  .em-l-phone{display:none}
}
/* ---- the card feed's World map (engine/world-map.js): dots, and the list under the map ---- */
.mv-wm{flex:1;min-height:0;overflow-y:auto;touch-action:auto;user-select:text;-webkit-user-select:text;padding:0 16px 16px;color:var(--mapink)}
.mv-wm[hidden],.mv-stage[hidden],.mv-foot [hidden]{display:none}
.em-feed{margin:0 auto;max-width:1100px}
.em-feed .em-scroll{touch-action:auto}
.em-dot{position:absolute;z-index:1;left:var(--x);top:var(--y);width:var(--d);height:var(--d);margin:calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  padding:0;border:0;border-radius:50%;background:var(--pin);box-shadow:0 0 0 1.5px var(--sheet);cursor:pointer}
.em-dot::before{content:"";position:absolute;inset:-9px;border-radius:50%}   /* a bigger target for a finger */
.em-dot::after{content:"";position:absolute;inset:0;border-radius:50%;border:1.5px solid var(--pin);
  animation:em-pulse 2.6s ease-out infinite;animation-delay:var(--ph,0s);pointer-events:none}
.em-dot.em-rg{background:transparent;box-shadow:none;border:2px dashed var(--pin)}
.em-dot.em-rg::after{display:none}
.em-dot:hover{box-shadow:0 0 0 1.5px var(--sheet),0 0 0 3px var(--ink);z-index:2}
@keyframes em-pulse{from{transform:scale(1);opacity:.75}to{transform:scale(3.2);opacity:0}}
@media (prefers-reduced-motion:reduce){.em-dot::after{animation:none;display:none}}
.em-feed .em-leg,.em-feed .em-note{color:var(--mapink)}
.em-feed .em-note{color:var(--mapmute)}
.em-lh{font-size:15px;font-weight:800;margin:16px 0 6px}
.em-list{list-style:none;margin:0;padding:0}
.em-list button{display:flex;gap:10px;align-items:flex-start;width:100%;min-height:44px;text-align:left;border:0;border-radius:12px;
  margin-top:6px;padding:9px 12px;background:var(--sheet);color:var(--sheetink);font:inherit;font-size:14.5px;font-weight:600;cursor:pointer}
.em-list button .em-sw{margin-top:3px}
.em-list button small{display:block;font-weight:500;color:var(--sheetmute);font-size:12.5px;margin-top:2px}
