/* Client map (scripts/client-map.mjs + js/client-map.js): dot-grid world on navy,
   a pin per country, the venue list beside it. Map geometry is in map units
   (one unit per grid step), so dot and arc widths are unit-based and scale
   with the map. */
.client-map.section.shell{width:100%;max-width:none;margin:0;padding-inline:max(24px,calc((100% - 1186px)/2));background:var(--navy);color:#cbd5e1;overflow:hidden}
.cm-head{display:grid;grid-template-columns:1.3fr .7fr;gap:64px;align-items:end}
.cm-head h2{color:var(--white)}
.cm-lede{font-size:20px;line-height:1.45;color:#aeb9cb;font-weight:600}
.cm-grid{display:grid;grid-template-columns:330px minmax(0,1fr);gap:56px;align-items:center;margin-top:56px}

/* Venue list: one exclusive <details> per country */
.cm-list{border-top:1px solid rgba(255,255,255,.12)}
.cm-country{border-bottom:1px solid rgba(255,255,255,.12)}
.cm-country summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:16px 0;color:var(--white)}
.cm-country summary::-webkit-details-marker{display:none}
.cm-country summary:focus-visible{outline:3px solid var(--mint);outline-offset:4px;border-radius:6px}
.cm-name{font-size:20px;font-weight:700;letter-spacing:-.03em;transition:color .25s ease}
.cm-count{margin-left:auto;color:#8391a7;font-size:14px;font-weight:600;letter-spacing:0}
.cm-country summary::after{content:"+";width:28px;height:28px;flex:none;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);color:var(--white);font-size:16px;font-weight:800;transition:transform .35s ease,background-color .25s ease,color .25s ease}
.cm-country[open] summary::after{transform:rotate(45deg);background:var(--mint);color:var(--navy)}
.cm-country[open] .cm-name,.cm-country.is-hover .cm-name{color:var(--mint)}
.cm-country ul{list-style:none;padding:0 0 16px}
.cm-country li{display:grid;grid-template-columns:1fr auto;column-gap:16px;padding:7px 0}
.cm-venue{justify-self:start;color:var(--white);font-weight:700;font-size:16px;letter-spacing:-.02em;text-decoration:underline;text-decoration-color:rgba(93,254,194,.4);text-decoration-thickness:1.5px;text-underline-offset:4px;transition:text-decoration-color .2s}
.cm-place{grid-column:1;color:#8391a7;font-size:14px;letter-spacing:0}
.cm-story{grid-column:2;grid-row:1/span 2;align-self:center;color:#cbd5e1;font-size:13px;font-weight:700;letter-spacing:0;text-decoration:underline;text-decoration-color:rgba(203,213,225,.35);text-underline-offset:3px;transition:color .2s,text-decoration-color .2s}
@media(hover:hover){
  .cm-venue:hover{text-decoration-color:var(--mint)}
  .cm-story:hover{color:var(--mint);text-decoration-color:var(--mint)}
  .cm-country summary:hover .cm-name{color:var(--mint)}
}

/* The map */
.cm-stage{min-width:0}
.cm-canvas{position:relative}
.cm-svg{display:block;width:100%;height:auto;overflow:visible}
/* The frame cuts through Europe, Africa and Siberia: fade the edges rather than crop. */
.cm-svg{-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 94%,transparent),linear-gradient(180deg,transparent,#000 9%,#000 92%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 7%,#000 94%,transparent),linear-gradient(180deg,transparent,#000 9%,#000 92%,transparent);mask-composite:intersect}
.cm-land{fill:none;stroke:rgba(203,213,225,.17);stroke-width:.56;stroke-linecap:round}
.cm-active{fill:none;stroke:var(--peri);stroke-opacity:.55;stroke-width:.64;stroke-linecap:round;transition:stroke .35s ease,stroke-opacity .35s ease}
.cm-active.is-on{stroke:var(--mint);stroke-opacity:1}
.cm-arcs path{fill:none;stroke:var(--mint);stroke-opacity:.32;stroke-width:.26;stroke-linecap:round;stroke-dasharray:1 1;transition:stroke-opacity .35s ease}
.cm-arcs path.is-on{stroke-opacity:.95}
.cm-spots circle{fill:var(--white);opacity:0;transition:opacity .35s ease}
.cm-spots circle.is-on{opacity:1}

.cm-pin{position:absolute;left:var(--x);top:var(--y);z-index:2;width:30px;height:30px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:#eef0ff;color:var(--navy);font:800 13px/1 "Albert Sans",sans-serif;letter-spacing:0;cursor:pointer;transform:translate(-50%,-50%) scale(var(--s,1));box-shadow:0 0 0 5px rgba(122,140,233,.22),0 8px 20px rgba(0,0,0,.35);transition:transform .3s cubic-bezier(.3,1.4,.5,1),background-color .25s ease,box-shadow .25s ease}
.cm-pin b{position:absolute;left:calc(100% + 9px);top:50%;transform:translateY(-50%);color:#e2e8f0;font-size:13px;font-weight:700;white-space:nowrap;pointer-events:none;text-shadow:0 0 2px var(--navy),0 0 4px var(--navy),0 0 8px var(--navy);transition:color .25s ease}
.cm-pin-left b{left:auto;right:calc(100% + 9px)}
.cm-pin.is-on{--s:1.18;z-index:3;background:var(--mint);box-shadow:0 0 0 6px rgba(93,254,194,.22),0 10px 24px rgba(0,0,0,.4)}
.cm-pin.is-on b{color:var(--mint)}
.cm-pin:focus-visible{outline:3px solid var(--mint);outline-offset:4px}
@media(hover:hover){.cm-pin:hover{--s:1.12}}

.cm-home{position:absolute;left:var(--x);top:var(--y);z-index:1;width:12px;height:12px;border-radius:50%;border:2.5px solid var(--white);background:var(--navy);transform:translate(-50%,-50%);pointer-events:none}
.cm-legend{display:flex;align-items:center;gap:8px;margin-top:10px;color:#8391a7;font-size:13px;font-weight:700;letter-spacing:0}
.cm-legend i{width:11px;height:11px;flex:none;border-radius:50%;border:2.5px solid var(--white)}

/* Entrance, only once js/client-map.js has marked the section (no JS = no hiding). */
@media(prefers-reduced-motion:no-preference){
  .client-map[data-cm-ready] .cm-arcs path{stroke-dashoffset:1;transition:stroke-dashoffset 1.3s cubic-bezier(.6,0,.2,1) calc(.35s + var(--i)*.14s),stroke-opacity .35s ease}
  .client-map[data-cm-ready] .cm-pin{--s:0}
  .client-map[data-cm-ready] .cm-pin,.client-map[data-cm-ready] .cm-home{opacity:0}
  .client-map[data-cm-ready] .cm-pin{transition:transform .5s cubic-bezier(.3,1.4,.5,1) calc(1.1s + var(--i)*.14s),opacity .2s ease calc(1.1s + var(--i)*.14s),background-color .25s ease,box-shadow .25s ease}
  .client-map[data-cm-ready] .cm-home{transition:opacity .4s ease .1s}
  .client-map.is-in .cm-arcs path{stroke-dashoffset:0}
  .client-map.is-in .cm-pin{--s:1;opacity:1}
  .client-map.is-in .cm-pin.is-on{--s:1.18}
  .client-map.is-in .cm-home{opacity:1}
  .client-map.is-settled .cm-pin{transition:transform .3s cubic-bezier(.3,1.4,.5,1),background-color .25s ease,box-shadow .25s ease}
  @media(hover:hover){.client-map.is-in .cm-pin:hover{--s:1.12}.client-map.is-in .cm-pin.is-on:hover{--s:1.18}}
}

/* Narrow: heading, then the map, then the list */
@media(max-width:900px){
  .cm-head{grid-template-columns:1fr;gap:22px}
  .cm-grid{grid-template-columns:1fr;gap:32px;margin-top:40px}
  .cm-stage{order:-1;margin-inline:-8px}
}
@media(max-width:600px){
  .cm-lede{font-size:18px}
  .cm-pin{width:24px;height:24px;font-size:11px;box-shadow:0 0 0 3px rgba(122,140,233,.22),0 6px 14px rgba(0,0,0,.35)}
  .cm-pin b{display:none}
  .cm-pin.is-on b{display:block;font-size:12px}
  .cm-home{width:10px;height:10px;border-width:2px}
}
