/* Europa Specials — shared geography styles (v1.39.0): the map, its colour scale, the ranking lists, the stacked bars and the hours chart.
   ONE copy for the admin Dashboard › Geography tab and the vendor portal's Audience tab; builders: assets/shared/geo.js (window.EsGeo).
   Colours are CSS variables (light + dark): the same blue ramp on both sites in light mode, the same gold ramp in dark mode. */
:root{ --geo-lo:#e9eef9; --geo-hi:#1b3a9a; --geo-sea:#e8eef9; --geo-land:#f0f2f8; --geo-ink:#00114A; }
:root[data-theme="dark"]{ --geo-lo:#223049; --geo-hi:#FFCC00; --geo-sea:#101a2a; --geo-land:#1d283a; --geo-ink:#0d1420; }
.geo-map {width:100%; height:auto; display:block; border-radius:8px; background:var(--geo-sea);}
.geo-land {fill:var(--geo-land); stroke:var(--surface); stroke-width:.6; stroke-linejoin:round;}
.geo-c {fill:var(--geo-land); stroke:var(--surface); stroke-width:.7; stroke-linejoin:round; cursor:pointer;}
.geo-c.faded {opacity:.55;}
.geo-sel-outer {fill:none; stroke:var(--geo-ink); stroke-width:4.4; stroke-linejoin:round; pointer-events:none;}
.geo-sel {fill:none; stroke:#FFCC00; stroke-width:2.2; stroke-linejoin:round; pointer-events:none;}
.geo-city {fill:#FFCC00; fill-opacity:.85; stroke:var(--geo-ink); stroke-width:1.2;}
.geo-scale {display:inline-flex; align-items:center; gap:8px;}
.geo-scale-bar {display:inline-block; width:150px; height:10px; border-radius:5px; background:linear-gradient(90deg, var(--geo-lo), var(--geo-hi)); box-shadow:inset 0 0 0 1px var(--line);}
.geo-stack {display:flex; gap:2px; height:16px; border-radius:8px; overflow:hidden;}
.geo-seg {display:block; height:100%;}
.geo-legend {display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:10px; font-size:12.5px;}
.geo-leg {display:inline-flex; align-items:center; gap:6px;}
.geo-sw {display:inline-block; width:10px; height:10px; border-radius:3px;}
/* v1.44.2 — scoped to the geo swatches / segments: bare .s1… also hit the time-chart series (.ec-sw.s1…) on the portal and recoloured its legend */
.geo-seg.s0, .geo-sw.s0 {background:#00114A;} .geo-seg.s1, .geo-sw.s1 {background:#2b4fb8;} .geo-seg.s2, .geo-sw.s2 {background:#5b86df;} .geo-seg.s3, .geo-sw.s3 {background:#93b0ec;} .geo-seg.s4, .geo-sw.s4 {background:#c3d3f4;}
:root[data-theme="dark"] .geo-seg.s0, :root[data-theme="dark"] .geo-sw.s0 {background:#FFCC00;} :root[data-theme="dark"] .geo-seg.s1, :root[data-theme="dark"] .geo-sw.s1 {background:#d9a900;} :root[data-theme="dark"] .geo-seg.s2, :root[data-theme="dark"] .geo-sw.s2 {background:#a88400;} :root[data-theme="dark"] .geo-seg.s3, :root[data-theme="dark"] .geo-sw.s3 {background:#775e00;} :root[data-theme="dark"] .geo-seg.s4, :root[data-theme="dark"] .geo-sw.s4 {background:#4a3b00;}
.geo-map-wrap{ position:relative; }
.geo-tip{ position:absolute; left:12px; bottom:12px; max-width:250px; background:var(--navy); color:#fff; border-radius:10px; padding:10px 12px; box-shadow:0 6px 20px rgba(0,17,74,.25); display:flex; flex-direction:column; gap:2px; font-size:12.5px; pointer-events:none; }
.geo-tip[hidden]{ display:none; }
.geo-tip b{ font-size:14px; } .geo-tip span{ color:rgba(255,255,255,.8); }
:root[data-theme="dark"] .geo-tip{ background:#0b111c; border:1px solid var(--line); }
.geo-c.has:hover{ stroke:var(--text); stroke-width:1.3; }
.geo-city{ cursor:pointer; } .geo-city:hover, .geo-city.on{ stroke-width:2.4; }
.geo-legend-city{ display:inline-flex; align-items:center; gap:5px; margin-left:6px; }
.geo-legend-city i{ display:block; width:12px; height:12px; border-radius:50%; background:#FFCC00; border:1.5px solid var(--geo-ink); box-sizing:border-box; }
/* ranking: countries, cities… (one list on both sites; the bar is the map's colour) */
.geo-rank-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.geo-rank, .geo-rank:hover{ display:grid; grid-template-columns:32px minmax(0,1fr) 44px; gap:10px; align-items:center; width:100%; text-align:left; border:1px solid transparent; background:none; padding:6px 8px; border-radius:9px; cursor:pointer; color:var(--text); font-family:'Outfit',sans-serif; font-size:13.5px; }
.geo-rank:hover{ border-color:var(--line); }
.geo-rank.on, .geo-rank.on:hover{ border-color:var(--gold); background:var(--bg); }
.geo-rank.static, .geo-rank.static:hover{ cursor:default; border-color:transparent; background:none; }
.geo-rank.faded{ opacity:.6; }
.geo-chip{ font-size:11px; font-weight:700; background:var(--geo-lo); color:var(--text); border-radius:6px; padding:3px 0; text-align:center; }
.geo-rank-main{ min-width:0; display:block; }
.geo-rank-top{ display:flex; justify-content:space-between; gap:8px; }
.geo-rank-top b{ font-size:13.5px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.geo-rank-link{ color:inherit; text-decoration:none; }
.geo-rank-link:hover{ text-decoration:underline; }
.geo-badge{ font-style:normal; font-size:10.5px; font-weight:600; letter-spacing:.02em; text-transform:uppercase; color:var(--gray); border:1px solid currentColor; border-radius:99px; padding:1px 7px; margin-left:6px; vertical-align:1px; }
.geo-rank-top small{ font-weight:400; color:var(--gray); }
.geo-rank-top > span{ color:var(--gray); font-variant-numeric:tabular-nums; white-space:nowrap; }
.geo-bar{ display:block; height:6px; border-radius:3px; background:var(--bg); margin-top:5px; overflow:hidden; }
.geo-bar > span{ display:block; height:100%; border-radius:3px; background:var(--geo-hi); }
.geo-rank-sub{ display:block; margin-top:3px; font-size:12px; color:var(--gray); font-variant-numeric:tabular-nums; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.geo-rank-share{ text-align:right; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
/* clicks by hour of the day */
.geo-hours{ display:flex; align-items:flex-end; gap:4px; height:66px; }
.geo-hour{ flex:1 1 0; min-width:0; border-radius:3px 3px 0 0; background:color-mix(in srgb, var(--geo-hi) 35%, var(--geo-lo)); }
.geo-hour.hot{ background:var(--geo-hi); }
.geo-hours-axis{ display:flex; justify-content:space-between; margin-top:6px; font-size:11px; color:var(--gray); }
/* clicks by weekday × hour — the mosaic (admin Geography tab + vendor portal Audience tab) */
.geo-heat-wrap{ overflow-x:auto; }
.geo-heat{ min-width:560px; display:flex; flex-direction:column; gap:3px; }
.geo-heat-row{ display:grid; grid-template-columns:38px repeat(24, minmax(0,1fr)); gap:3px; align-items:center; }
.geo-heat-h{ font-size:10.5px; color:var(--gray); white-space:nowrap; }
.geo-heat-d{ font-size:11.5px; color:var(--gray); }
.geo-heat-c{ display:block; height:20px; border-radius:3px; }
/* the metric / group switch above a map or a list (pill, gold when selected — same on both sites) */
.geo-seg-ctl{ display:inline-flex; border:1px solid var(--line); border-radius:999px; padding:3px; }
.geo-seg-ctl button, .geo-seg-ctl button:hover{ font-family:'Outfit',sans-serif; font-size:12.5px; font-weight:600; color:var(--gray); background:none; border:none; border-radius:999px; padding:6px 13px; cursor:pointer; }
.geo-seg-ctl button.on, .geo-seg-ctl button[aria-pressed="true"]{ background:var(--gold); color:#00114A; font-weight:700; }
/* variants of the stacked bar / legend */
.geo-stack.slim{ height:12px; border-radius:6px; }
.geo-seg.other, .geo-sw.other{ background:var(--line); }
.geo-more, .geo-more:hover{ border:0; background:none; padding:12px 0 0; font-weight:600; font-size:13px; text-decoration:underline; color:var(--text); text-align:left; cursor:pointer; align-self:flex-start; }
.geo-legend.top{ margin:0 0 8px; font-size:12px; color:var(--gray); }
.geo-legend-row-inline{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; color:var(--gray); }
