/* interactive coverage map */
/* Round 2: the firm wanted the map bigger and the sea white. The stage is now paper, the land is
   sand, the jurisdictions bark and gold, and the region filter sits below rather than beside it. */
.mapgrid{display:grid;grid-template-columns:1fr;border:1px solid var(--line-d)}
/* The stage follows the map's own proportions instead of a fixed height, so there is no dead band
   above and below the world on any screen. On a phone the box is taller and the map opens on the
   Mediterranean (see map.js), because a whole world 350px wide says nothing. */
.mapstage{position:relative;overflow:hidden;background:#DCD6CB;width:100%;height:auto;aspect-ratio:1000/430;max-height:640px}
@media(max-width:700px){.mapstage{aspect-ratio:1000/900;max-height:none}}
#map{width:100%;height:100%;display:block;cursor:grab;touch-action:none}
#map:active{cursor:grabbing}
#map.zoomed{cursor:grab}
#map .c{fill:#C9BFB0;stroke:#DCD6CB;stroke-width:.5;transition:fill .3s;
        vector-effect:non-scaling-stroke}
#map .c.on{fill:#6B4C39;cursor:pointer;transition:fill .3s}
#map .c.on:hover{fill:var(--sand)}
#map .c.pre{fill:#9C7A5C}
#map .c.hot{fill:var(--sand)}
#map .c.dim{fill:#D3CBBE}
#map .c.sel{fill:#241C17;stroke:var(--sand);stroke-width:1.4}
#map .arc{fill:none;stroke:var(--sand);stroke-width:1;opacity:.8;pointer-events:none;
          transition:stroke .4s,opacity .4s;vector-effect:non-scaling-stroke}
#map .arc.lit{stroke:#4A342A;opacity:1}
/* markers must not grow with the zoom transform */
#map .marker{pointer-events:none}
#map .marker circle{fill:var(--sand);stroke:#241C17;stroke-width:1.2}
#map .marker text{fill:#241C17;font-size:11.5px;font-weight:500;font-family:'Outfit',sans-serif;letter-spacing:.06em;text-transform:uppercase}
#map .pulse{fill:none;stroke:var(--sand);stroke-width:1.2;opacity:.7;transform-origin:center;transform-box:fill-box;animation:mapPulse 2.4s ease-out infinite}
@keyframes mapPulse{0%{transform:scale(.6);opacity:.8}100%{transform:scale(2.2);opacity:0}}
@media(prefers-reduced-motion:reduce){#map .pulse{animation:none}}

.maptip{position:absolute;pointer-events:none;background:var(--bistre);color:var(--sand);padding:7px 11px;
        font-size:12px;letter-spacing:.04em;opacity:0;transform:translate(-50%,-170%);transition:opacity .2s;border-bottom:1px solid var(--gold);
        white-space:nowrap;z-index:4}

/* zoom controls */
.mctl{position:absolute;right:14px;top:14px;display:flex;flex-direction:column;gap:6px;z-index:5}
.mctl button{all:unset;cursor:pointer;width:36px;height:36px;display:flex;align-items:center;
             justify-content:center;background:var(--bistre);color:var(--sand);font-size:16px;
             border:1px solid var(--bistre);transition:background .3s,color .3s,opacity .3s}
.mctl button:hover{background:var(--gold);color:var(--bistre);border-color:var(--gold)}
.mctl #mReset{font-size:11px;letter-spacing:.05em;opacity:0;pointer-events:none}
.mctl #mReset.on{opacity:1;pointer-events:auto}
/* .mapstage prefix: the hint is a <p> inside a dark band, and .dk p would otherwise recolour it */
.mapstage .mhint{position:absolute;left:14px;bottom:12px;z-index:5;font-size:12px;letter-spacing:.05em;
       color:#4A342A;background:rgba(242,241,238,.85);padding:6px 10px;pointer-events:none;margin:0}

/* selected country panel */
.mpanel{position:absolute;left:14px;top:14px;z-index:5;background:rgba(36,28,23,.92);
        backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.14);padding:18px 20px;
        max-width:270px;opacity:0;transform:translateY(-8px);pointer-events:none;
        transition:opacity .35s,transform .35s}
.mpanel.on{opacity:1;transform:none}
.mpanel .pr{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.mpanel .pn{font-size:19px;font-weight:300;color:#fff;margin:8px 0 10px}
.mpanel .pd{font-size:13.5px;line-height:1.6;color:rgba(255,255,255,.6)}

.mapside{border-top:1px solid var(--line-d);display:grid;grid-template-columns:auto 1fr auto;
         align-items:center;min-height:0}
@media(max-width:980px){.mapside{grid-template-columns:1fr}}
.mapside .top{padding:20px 28px;border-right:1px solid var(--line-d);display:flex;align-items:baseline;gap:14px}
.mapside .top .lab{margin:0!important}
.regions{display:flex;flex-wrap:wrap}
.regions button{border-bottom:0;border-right:1px solid var(--hair-d)}
@media(max-width:980px){.mapside .top{border-right:0;border-bottom:1px solid var(--line-d)}
                        .regions{flex-direction:column} .regions button{border-right:0;border-bottom:1px solid var(--hair-d)}}
.mapside .big{font-weight:300;font-size:40px;line-height:1;letter-spacing:-.03em;color:var(--gold)}
.regions button{all:unset;cursor:pointer;padding:14px 24px;border-bottom:1px solid var(--hair-d);
                font-size:13.5px;display:flex;justify-content:space-between;gap:12px;
                font-family:var(--f);font-weight:300;color:rgba(255,255,255,.72);transition:.3s}
.regions button span{color:rgba(255,255,255,.55);font-size:12px}
.regions button:hover{background:rgba(255,255,255,.05);color:#fff;padding-left:29px}
.regions button.act{background:var(--gold);color:var(--bistre)}
.regions button.act span{color:var(--bistre);opacity:.72} /* grey on gold read at 1.85:1 */
/* the actual countries, listed */
/* every jurisdiction listed at once, so there is nothing to scroll */
.clist{grid-column:1/-1;border-top:1px solid var(--line-d);padding:22px clamp(20px,2.4vw,30px) 26px}
.clist .grid{display:grid;grid-template-columns:repeat(5,1fr);column-gap:clamp(14px,2vw,30px)}
@media(max-width:900px){.clist .grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.clist .grid{grid-template-columns:repeat(2,1fr)}}
.clist p.h{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.55);
           margin-bottom:9px}
.clist button{all:unset;cursor:pointer;display:block;width:100%;box-sizing:border-box;
              padding:6px 0;font-size:13px;white-space:nowrap;overflow:hidden;
              text-overflow:ellipsis;border-bottom:1px solid var(--hair-d);
              color:rgba(255,255,255,.66);transition:color .25s,padding-left .25s}
.clist button:hover{color:#fff;padding-left:5px}
.clist button.sel{color:var(--gold)}
.mapfoot{padding:16px 24px;font-size:12.5px;color:rgba(230,220,208,.66);line-height:1.6;max-width:30ch}
@media(max-width:980px){.mapfoot{max-width:none}}

/* The map hint told a phone to scroll to zoom and hover a country, neither of which a touch
   device can do, and "scroll to zoom" competes with scrolling the page. One line per input. */
.mhint .coarse{display:none}
@media (pointer:coarse){
  .mhint .fine{display:none}
  .mhint .coarse{display:inline}
}

/* The country list sets 6px padding on a 13px line, which is a 29px target. Countries are the
   one thing on this page a visitor is meant to tap, so they get the full 44 on touch. */
@media (pointer:coarse){
  .clist button{padding:13px 0}
  /* zoom and reset are 34px squares, which is a small thing to hit with a thumb on a map you are
     also dragging */
  .mctl button{width:44px;height:44px}
}

/* Region tabs between 980 and 1280 wrapped into ragged rows: an even grid instead. */
@media(min-width:981px){.regions{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
  .regions button{border-bottom:1px solid var(--hair-d)}}
