/* World Cup map /wm-karte (2026-12-04): map shell, overlays, tooltips, panel, period slider. Site colours via CSS variables. */
.wmk{--wmk-ink:#0f172a;--wmk-muted:#64748b;--wmk-line:#e2e8f0;--wmk-bg:#fff;--wmk-sea:#e8f0f6;--wmk-gold:#d4a017;margin:0 0 24px}
.wmk-intro p{max-width:none;margin:0 0 12px}
.wmk-shell{position:relative;border:1px solid var(--wmk-line);border-radius:12px;overflow:hidden;background:var(--wmk-sea)}
.wmk-map{height:min(72vh,680px);min-height:420px;background:var(--wmk-sea);font:inherit}
.wmk-map.leaflet-container{background:var(--wmk-sea);font-family:inherit}
.wmk-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px;text-align:center;color:var(--wmk-muted);font-size:14px}
.wmk-loading p{margin:0;max-width:none}
.wmk-progress{width:min(320px,70%);height:8px;border-radius:4px;background:#d6dee7;overflow:hidden}
.wmk-progress-bar{width:0;height:100%;border-radius:4px;background:var(--color-green,#4f8d3f);transition:width .15s linear}
.wmk-progress-pct{font-variant-numeric:tabular-nums;font-weight:700;color:var(--wmk-ink)}
/* top left: search + confederations */
.wmk-bar{position:absolute;z-index:500;top:10px;left:10px;display:flex;flex-direction:column;gap:6px;max-width:min(600px,calc(100% - 300px))}
.wmk-search{position:relative}
.wmk-search input{width:100%;box-sizing:border-box;padding:8px 12px;border:1px solid var(--wmk-line);border-radius:8px;font-size:14px;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.12)}
.wmk-q-list{position:absolute;left:0;right:0;top:100%;margin:4px 0 0;padding:4px;list-style:none;background:#fff;border:1px solid var(--wmk-line);border-radius:8px;box-shadow:0 6px 18px rgba(15,23,42,.18);max-height:280px;overflow:auto}
.wmk-q-list li{padding:6px 8px;border-radius:6px;cursor:pointer;display:flex;align-items:center;gap:6px;font-size:14px}
.wmk-q-list li:hover,.wmk-q-list li.is-cur{background:#f1f5f9}
.wmk-conf{display:flex;flex-wrap:wrap;gap:4px}
.wmk-conf button{display:inline-flex;align-items:center;gap:5px;padding:3px 10px 3px 4px;border:1px solid var(--wmk-line);border-radius:999px;background:#fff;font-size:12px;font-weight:600;color:var(--wmk-ink);cursor:pointer;box-shadow:0 1px 3px rgba(15,23,42,.1)}
.wmk-conf button:hover{background:#f1f5f9}
.wmk-conf button.is-active{background:var(--wmk-ink);color:#fff;border-color:var(--wmk-ink)}
.wmk--embed{margin-top:8px}
.wmk-conf img{width:20px;height:20px;object-fit:contain;flex:none}
.wmk-globe{font-size:16px;line-height:20px;width:20px;text-align:center}
/* top right: layers */
.wmk-layers{position:absolute;z-index:500;top:10px;right:10px;width:250px;background:#fff;border:1px solid var(--wmk-line);border-radius:10px;box-shadow:0 2px 10px rgba(15,23,42,.15);font-size:13px;transition:right .2s}
.wmk-layers summary{padding:8px 12px;font-weight:700;cursor:pointer;list-style:none}
.wmk-layers summary::-webkit-details-marker{display:none}
.wmk-layers-body{padding:0 12px 10px;max-height:min(56vh,520px);overflow:auto}
.wmk-opt{display:flex;gap:6px;align-items:flex-start;padding:3px 0;cursor:pointer;line-height:1.3}
.wmk-opt input{margin:2px 0 0}
.wmk-sub{padding-left:20px}
.wmk-sub[hidden]{display:none}
#wmk-modes.is-off{opacity:.5}
/* legend bottom left */
.wmk-legend{position:absolute;z-index:500;left:10px;bottom:24px;background:rgba(255,255,255,.95);border:1px solid var(--wmk-line);border-radius:8px;padding:8px 10px;font-size:12px;box-shadow:0 1px 6px rgba(15,23,42,.12);max-width:220px}
.wmk-legend ul{list-style:none;margin:4px 0 0;padding:0}
.wmk-legend li{display:flex;align-items:center;gap:6px;line-height:1.6}
.wmk-legend i{width:16px;height:11px;border-radius:2px;flex:none;border:1px solid rgba(0,0,0,.08)}
.wmk-hint{position:absolute;z-index:600;top:10px;left:50%;transform:translateX(-50%);background:var(--wmk-ink);color:#fff;padding:7px 14px;border-radius:999px;font-size:13px;font-weight:600;box-shadow:0 2px 10px rgba(0,0,0,.25);max-width:80%;text-align:center}
/* tooltip */
.leaflet-tooltip.wmk-tt{padding:10px 12px;border:0;border-radius:10px;box-shadow:0 6px 22px rgba(15,23,42,.25);font-size:13px;line-height:1.4;color:var(--wmk-ink);max-width:320px;white-space:normal;width:max-content}
.wmk-tt p,.wmk-panel p{margin:4px 0;max-width:none}
.wmk-tt-head{display:flex;align-items:center;gap:6px;font-size:15px;margin-bottom:4px}
.wmk-muted{color:var(--wmk-muted)}
.wmk-note{font-size:12px;color:var(--wmk-muted);font-style:italic}
.wmk-hint-line{font-size:12px;color:var(--wmk-muted);border-top:1px solid var(--wmk-line);padding-top:5px;margin-top:6px!important}
.wmk-final{color:#8a6a00;font-weight:700}
.wmk-years{display:inline-flex;flex-wrap:wrap;gap:3px;vertical-align:middle}
.wmk-yb{display:inline-block;padding:0 6px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.7;color:#fff;background:var(--c);text-shadow:0 0 2px rgba(0,0,0,.35)}
.wmk-yb.is-out{opacity:.35}
.wmk-sub-head{font-weight:700;margin-top:6px!important}
.wmk-missed{list-style:none;margin:2px 0;padding:0;font-size:12px}
.wmk-missed li{padding:2px 0;border-bottom:1px dashed var(--wmk-line)}
.wmk-cat{display:inline-block;font-weight:700;padding:0 6px;border-radius:4px;margin-right:4px;font-size:11px;line-height:1.7}
.wmk-cat-sport{background:#fde4e4;color:#9b1c1c}.wmk-cat-boycott{background:#ffedd5;color:#9a3412}.wmk-cat-banned{background:#1f2937;color:#fff}
.wmk-cat-noassoc{background:#f1f5f9;color:#334155;border:1px solid #cbd5e1}.wmk-cat-none{background:#f8fafc;color:#64748b;border:1px dashed #cbd5e1}
/* stadium pins + clusters */
.wmk-pin{border-radius:50%;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35))}
.wmk-pin svg{display:block}
.wmk-pin .wmk-cup{position:absolute;top:-11px;right:-9px;font-size:12px;line-height:1}
.wmk-pin.is-final{z-index:1000!important}
.wmk-cluster span{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.35);border:2px solid #fff;box-sizing:border-box}
.wmk-cluster.is-final span{border-color:var(--wmk-gold)}
.wmk-cluster b{display:flex;align-items:center;justify-content:center;width:62%;height:62%;border-radius:50%;background:#fff;color:var(--wmk-ink);font-size:12px}
/* panel: side panel on desktop, bottom sheet on phones */
.wmk-panel{position:absolute;z-index:700;top:0;right:0;bottom:0;width:min(640px,50%);max-width:100%;background:#fff;border-left:1px solid var(--wmk-line);box-shadow:-6px 0 20px rgba(15,23,42,.12);display:flex;flex-direction:column}
.wmk-panel[hidden]{display:none}
.wmk-panel-body{overflow:auto;padding:14px 16px 18px;font-size:14px;line-height:1.45}
.wmk-panel h3{margin:0 28px 6px 0;font-size:18px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.wmk-panel h4{margin:14px 0 6px;font-size:14px}
.wmk-x{position:absolute;top:6px;right:8px;z-index:1;width:32px;height:32px;border:0;border-radius:50%;background:#f1f5f9;font-size:20px;line-height:1;cursor:pointer}
.wmk-shell.has-panel .wmk-layers{right:calc(min(640px,50%) + 12px)}
.wmk-dl{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;margin:6px 0}
.wmk-dl dt{color:var(--wmk-muted)}.wmk-dl dd{margin:0;font-weight:600}
.wmk-matches,.wmk-facts{list-style:none;margin:0;padding:0}
.wmk-facts li{padding:3px 0}
.wmk-match{padding:6px 0;border-bottom:1px solid var(--wmk-line);display:flex;flex-direction:column;gap:2px}
.wmk-match.is-final{background:linear-gradient(90deg,#fdf6dc,transparent)}
.wmk-md{font-size:12px;color:var(--wmk-muted)}
.wmk-mt{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.wmk-mt b{background:#f1f5f9;border-radius:4px;padding:0 6px;font-variant-numeric:tabular-nums}
.wmk-btn{display:inline-block;margin-top:10px;padding:9px 14px;border:0;border-radius:8px;background:var(--color-primary,#b3202a);color:#fff;font-weight:700;font-size:14px;cursor:pointer;text-decoration:none}
.wmk-btn:hover{filter:brightness(1.08);color:#fff}
.wmk-reset{border:0;background:none;color:var(--wmk-muted);text-decoration:underline;cursor:pointer;padding:0;font-size:13px}
.wmk-swap{border:1px solid var(--wmk-line);background:#fff;border-radius:50%;width:30px;height:30px;cursor:pointer;font-size:16px}
.wmk-other{display:flex;gap:6px;align-items:center;font-size:13px;color:var(--wmk-muted)}
.wmk-other select{flex:1;padding:4px 6px;border:1px solid var(--wmk-line);border-radius:6px}
.wmk-rec{font-weight:600}
.wmk-wdl{display:flex;height:8px;border-radius:4px;overflow:hidden;margin:4px 0 8px;background:#e2e8f0}
.wmk-bars{width:100%;border-collapse:collapse;margin-top:12px;font-size:12px}
.wmk-bars th{font-weight:600;text-align:center;padding:4px 6px;white-space:nowrap;color:var(--wmk-muted)}
.wmk-bars td{padding:4px 0}
.wmk-bars .wmk-bv{width:2.6em;font-weight:700;font-variant-numeric:tabular-nums}
.wmk-bars tr td:last-child{text-align:right}
.wmk-bl,.wmk-br{width:30%}
.wmk-bl i,.wmk-br i{display:block;height:9px;border-radius:5px;background:var(--color-green,#4f8d3f)}
.wmk-bl i{margin-left:auto}
.wmk-br i{background:#1f5fa8}
/* period slider */
.wmk-time{margin-top:12px;padding:12px 14px 6px;border:1px solid var(--wmk-line);border-radius:12px;background:#fff}
.wmk-time-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.wmk-play{width:36px;height:36px;border-radius:50%;border:0;background:var(--color-green,#4f8d3f);color:#fff;font-size:14px;cursor:pointer;flex:none}
.wmk-play.is-playing{background:var(--color-primary,#b3202a)}
.wmk-range-label{font-size:18px;font-variant-numeric:tabular-nums;min-width:7.5em}
.wmk-chips{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}
.wmk-chip{padding:4px 10px;border-radius:999px;border:1px solid var(--wmk-line);background:#f8fafc;font-size:12px;font-weight:600;cursor:pointer;color:var(--wmk-ink)}
.wmk-chip.is-active{background:var(--wmk-ink);color:#fff;border-color:var(--wmk-ink)}
.wmk-ticks{position:relative;height:30px;margin:14px 10px 0}
.wmk-tick{position:absolute;top:0;transform:translateX(-50%);border:0;background:none;padding:0;cursor:pointer;display:flex;flex-direction:column;align-items:center}
.wmk-tick::before{content:'';width:11px;height:11px;border-radius:50%;background:var(--c);opacity:.3;box-shadow:0 0 0 2px #fff}
.wmk-tick.is-in::before{opacity:1}
.wmk-tick span{font-size:10px;color:var(--wmk-muted);margin-top:2px;font-variant-numeric:tabular-nums}
.wmk-slider{position:relative;height:28px;margin:0 10px}
.wmk-slider::before{content:'';position:absolute;left:0;right:0;top:12px;height:4px;border-radius:2px;background:#e2e8f0}
.wmk-slider::after{content:'';position:absolute;left:var(--a,0%);right:calc(100% - var(--b,100%));top:12px;height:4px;border-radius:2px;background:var(--wmk-ink)}
.wmk-slider input{position:absolute;left:-10px;right:-10px;width:calc(100% + 20px);top:0;height:28px;margin:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none;z-index:2}
.wmk-slider input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:20px;height:20px;border-radius:50%;background:#fff;border:3px solid var(--wmk-ink);cursor:grab;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.wmk-slider input::-moz-range-thumb{pointer-events:auto;width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid var(--wmk-ink);cursor:grab}
.wmk-slider input::-webkit-slider-runnable-track{background:none}
.wmk-slider input::-moz-range-track{background:none}
.wmk-slider input:focus-visible::-webkit-slider-thumb{outline:3px solid #93c5fd}
.wmk-source{font-size:12px;color:var(--wmk-muted);margin-top:10px;max-width:none}
/* phones */
@media (max-width:720px){
.wmk-map{height:calc(54vw + 100px);min-height:0}
.wmk-bar{left:10px;top:10px;max-width:calc(100% - 70px)}
.wmk-conf{display:none}
.wmk-layers{top:10px;right:10px;width:auto;max-width:calc(100% - 20px)}
.wmk-layers summary{padding:8px 10px}
.wmk-layers[open]{width:260px}
.wmk-shell.has-panel .wmk-layers{right:10px}
.wmk-shell.has-panel .leaflet-bottom,.wmk-shell.has-panel .wmk-legend{display:none}
.wmk-panel{position:fixed;z-index:1200;top:auto;left:0;right:0;bottom:0;width:auto;height:auto;min-height:40vh;max-height:calc(100dvh - 54vw - 170px);border-left:0;border-top:1px solid var(--wmk-line);border-radius:14px 14px 0 0;box-shadow:0 -6px 20px rgba(15,23,42,.18)}
.wmk-legend{bottom:8px;left:8px;font-size:11px;max-width:calc(100% - 70px);padding:6px 8px}
.wmk-legend ul{display:flex;flex-wrap:wrap;gap:2px 8px}
.wmk-legend li{line-height:1.4}
.wmk-chips{margin-left:0}
}
html.dark .wmk{--wmk-ink:#e2e8f0;--wmk-muted:#94a3b8;--wmk-line:#334155;--wmk-sea:#0f1b27}
html.dark .wmk-layers,html.dark .wmk-panel,html.dark .wmk-time,html.dark .wmk-search input,html.dark .wmk-q-list,html.dark .wmk-conf button,html.dark .wmk-legend,html.dark .leaflet-tooltip.wmk-tt{background:#16202a;color:#e2e8f0}
html.dark .wmk-chip{background:#1e293b;color:#e2e8f0}
html.dark .wmk-conf button.is-active,html.dark .wmk-chip.is-active{background:#e2e8f0;color:#0f172a}

/* country card (tooltip + panel, 2026-12-04 mockup) */
.leaflet-tooltip.wmk-card{width:380px;max-width:min(380px,80vw);padding:16px 18px 12px;border-radius:16px;box-shadow:0 10px 32px rgba(15,23,42,.22)}
.wmk-card-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.wmk-card-head .flag-icon{width:34px;height:24px;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.2);background-size:cover;flex:none}
.wmk-card-head strong{font-size:24px;line-height:1.1;flex:1;min-width:0}
.wmk-pill{flex:none;padding:4px 10px;border-radius:8px;background:#e5e8ee;font-size:13px;font-weight:600;white-space:nowrap}
.wmk-pill.is-gold{background:#fbefc8;color:#7a5a00}
.wmk-card-years{margin:-4px 0 8px!important}
.wmk-tiles{display:grid;grid-template-columns:1fr 1.15fr 1.15fr;gap:8px;margin:6px 0 10px}
.wmk-tiles.is-one{grid-template-columns:1fr}
.wmk-tile{background:#eef1f5;border-radius:10px;padding:10px 6px 8px;text-align:center;display:flex;flex-direction:column;gap:2px;min-width:0}
.wmk-tile b{font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums;white-space:nowrap}
.wmk-tile b small{font-size:.75em;font-weight:600}
.wmk-tile span{font-size:12px;color:#334155;line-height:1.25}
.wmk-lines p{margin:6px 0}
.wmk-i{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#94a3b8;color:#fff;font:700 11px/1 Georgia,serif;font-style:italic;vertical-align:middle;margin-left:4px;cursor:help}
.wmk-card-foot{margin:10px 0 0!important;padding-top:8px;border-top:1px solid var(--wmk-line);text-align:right;font-weight:700;color:#1f5fa8}
.wmk-panel .wmk-card-head strong{font-size:22px}
.wmk-panel .wmk-card-head{padding-right:34px}
html.dark .wmk-tile{background:#1e293b}html.dark .wmk-tile span{color:#cbd5e1}html.dark .wmk-pill{background:#334155}

/* layer box with icons and tree lines (2026-12-04 mockup) */
.wmk-layers{width:300px;border-radius:14px}
.wmk-layers summary{padding:10px 14px;font-size:15px}
.wmk-layers-body{padding:0 14px 12px}
.wmk-opt{align-items:center;gap:7px;padding:4px 0;font-size:14px}
.wmk-opt input{margin:0;width:17px;height:17px;flex:none;accent-color:#2563eb;cursor:pointer}
.wmk-ico{width:20px;text-align:center;flex:none;font-size:16px;line-height:1}
.wmk-cards{display:inline-block;width:16px;height:14px;position:relative;vertical-align:middle}
.wmk-cards::before,.wmk-cards::after{content:'';position:absolute;top:0;width:9px;height:13px;border-radius:2px}
.wmk-cards::before{left:0;background:#facc15;transform:rotate(-8deg)}
.wmk-cards::after{left:6px;top:1px;background:#dc2626;transform:rotate(6deg)}
.wmk-sub{position:relative;margin-left:8px;padding-left:18px}
/* tree lines: elbow per option, vertical line down to the last visible option (.is-last, set by the script) */
.wmk-sub > .wmk-opt,.wmk-sub > .wmk-sub{position:relative}
.wmk-sub > .wmk-opt::before{content:'';position:absolute;left:-18px;top:50%;width:13px;border-top:1.5px solid #cbd5e1}
.wmk-sub > .wmk-opt::after{content:'';position:absolute;left:-18px;top:0;bottom:0;border-left:1.5px solid #cbd5e1}
.wmk-sub > .wmk-opt:first-child::after{top:-3px}
.wmk-sub > .wmk-opt.is-last::after{bottom:50%}
.wmk-sub > .wmk-sub:not(.is-after)::before{content:'';position:absolute;left:-26px;top:0;bottom:0;border-left:1.5px solid #cbd5e1}
#wmk-st-sub.is-off,#wmk-modes.is-off{opacity:.45}

.leaflet-tooltip.wmk-card{pointer-events:auto;cursor:default}
.wmk-card-foot button{border:0;background:none;padding:0;font:inherit;font-weight:700;color:#1f5fa8;cursor:pointer}
.wmk-card-foot button:hover{text-decoration:underline}
/* phones (2026-12-04, user: hard to use): last in the file so it wins over the desktop rules above */
@media (max-width:720px){
.wmk-map{height:calc(54vw + 100px);min-height:0} /* just the whole world (2026-12-05) */
.wmk-bar{left:8px;top:8px;right:118px;max-width:none}
.wmk-search input{padding:7px 10px;font-size:14px}
.wmk-layers{top:8px;right:8px;width:auto;max-width:none;border-radius:10px}
.wmk-layers summary{padding:8px 12px;font-size:14px}
.wmk-layers[open]{left:8px;width:auto;z-index:650}
.wmk-layers-body{max-height:52vh}
.wmk-legend{left:8px;right:56px;bottom:8px;max-width:none;padding:5px 8px;font-size:10px;border-radius:8px}
.wmk-legend strong{font-size:11px}
.wmk-legend ul{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:2px 8px;margin-top:3px;scrollbar-width:none}
.wmk-legend li{white-space:nowrap;flex:none}
.wmk-legend i{width:12px;height:9px}
.leaflet-control-attribution{font-size:9px}
.wmk-shell.has-panel .wmk-layers{display:none}
.wmk-panel .wmk-card-head{padding-right:38px;flex-wrap:wrap}
.wmk-panel .wmk-pill{font-size:12px}
.wmk-tile b{font-size:20px}
.wmk-tile span{font-size:11px}
}

/* duel record board (2026-12-04): flags, W/D/L tiles in the project colours, bar, goals */
.wmk-rec-board{margin:6px 0 10px}
.wmk-rec-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;margin-bottom:8px}
.wmk-rec-teams > span{display:flex;align-items:center;gap:6px;min-width:0}
.wmk-rec-teams > span:last-child{justify-content:flex-end}
.wmk-rec-teams b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wmk-rec-teams .flag-icon{width:24px;height:17px;border-radius:3px;flex:none;background-size:cover}
.wmk-rec-n{font-size:12px;color:var(--wmk-muted);white-space:nowrap}
.wmk-rec-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.wmk-rec-tiles div{border-radius:10px;padding:8px 4px 6px;text-align:center;display:flex;flex-direction:column}
.wmk-rec-tiles b{font-size:26px;line-height:1.05;font-variant-numeric:tabular-nums}
.wmk-rec-tiles span{font-size:11px;font-weight:600}
.wmk-rec-tiles .is-w{background:#e7f1e3;color:var(--color-green-dark,#397944)}
.wmk-rec-tiles .is-d{background:#eef1f5;color:#5b6675}
.wmk-rec-tiles .is-l{background:#f8e3e4;color:var(--color-primary,#b3202a)}
.wmk-rec-board .wmk-wdl{margin:8px 0 4px}
.wmk-rec-goals{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:8px;font-size:13px;font-weight:600;color:var(--wmk-muted)}
.wmk-rec-goals b{padding:3px 12px;border-radius:8px;background:#eef1f5;color:var(--wmk-ink);font-size:18px;font-variant-numeric:tabular-nums;letter-spacing:.02em}
html.dark .wmk-rec-goals b{background:#1e293b}
html.dark .wmk-rec-tiles .is-w{background:#1f3324}html.dark .wmk-rec-tiles .is-d{background:#1e293b;color:#cbd5e1}html.dark .wmk-rec-tiles .is-l{background:#3a1d20}

/* searchable country picker in the duel panel (2026-12-04) */
.wmk-other{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--wmk-muted)}
.wmk-combo{position:relative;flex:1;min-width:0}
.wmk-combo-btn{width:100%;display:flex;align-items:center;gap:7px;padding:6px 10px;border:1px solid var(--wmk-line);border-radius:8px;background:#fff;font:inherit;font-size:14px;color:var(--wmk-ink);cursor:pointer;text-align:left}
.wmk-combo-btn[aria-expanded="true"],.wmk-combo-btn:focus-visible{border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.2);outline:0}
.wmk-combo-btn > span:not(.flag-icon){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wmk-combo-btn .flag-icon,.wmk-combo-pop .flag-icon{flex:none}

.wmk-combo-pop{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid var(--wmk-line);border-radius:10px;box-shadow:0 10px 26px rgba(15,23,42,.2);padding:6px}
.wmk-combo-pop[hidden]{display:none}
.wmk-combo-pop input{width:100%;box-sizing:border-box;padding:7px 9px;border:1px solid var(--wmk-line);border-radius:7px;font-size:14px;margin-bottom:4px}
.wmk-combo-pop ul{list-style:none;margin:0;padding:0;max-height:240px;overflow:auto}
.wmk-combo-pop li{display:flex;align-items:center;gap:7px;padding:6px 8px;border-radius:6px;cursor:pointer;font-size:14px;color:var(--wmk-ink)}
.wmk-combo-pop li:hover,.wmk-combo-pop li.is-cur{background:#eef2f7}
.wmk-combo-pop li.is-sel{font-weight:700}
html.dark .wmk-combo-btn,html.dark .wmk-combo-pop,html.dark .wmk-combo-pop input{background:#16202a;color:#e2e8f0}
html.dark .wmk-combo-pop li:hover,html.dark .wmk-combo-pop li.is-cur{background:#1e293b}

/* W/D/L in the matches tile (2026-12-04): small coloured counts like the duel board */
.wmk-sun{display:flex;justify-content:center;gap:4px;margin-top:3px}
.wmk-sun i{font-style:normal;font-size:11px;font-weight:700;padding:0 5px;border-radius:5px;line-height:1.6;white-space:nowrap}
.wmk-sun .is-w{background:#e7f1e3;color:var(--color-green-dark,#397944)}
.wmk-sun .is-d{background:#e2e6ec;color:#5b6675}
.wmk-sun .is-l{background:#f8e3e4;color:var(--color-primary,#b3202a)}
.wmk-tile .wmk-tile-bar{display:flex;height:6px;margin:6px 6px 0;border-radius:3px;overflow:hidden}
.wmk-part-years{gap:3px}
.wmk-part-years .wmk-yb.is-champ{box-shadow:0 0 0 2px #d4a017}

/* WM 2030 (planned): dashed tick, note in tooltip/panel */
.wmk-tick.is-planned::before{background:var(--c);box-shadow:inset 0 0 0 2px #94A3B8,0 0 0 2px #fff;opacity:1}

.wmk-planned{color:#0e7490;font-weight:700}

/* hover card fixed top left (below search + chips) */
.wmk-hover{position:absolute;z-index:800;top:92px;left:10px;width:380px;max-width:calc(100% - 20px);max-height:calc(100% - 104px);overflow:auto;box-sizing:border-box;background:#fff;color:var(--wmk-ink);padding:16px 18px 12px;border-radius:16px;box-shadow:0 10px 32px rgba(15,23,42,.22);font-size:13px;line-height:1.4}
.wmk-hover[hidden]{display:none}
.wmk-hover p{margin:4px 0;max-width:none}
html.dark .wmk-hover{background:#16202a;color:#e2e8f0}
.wmk-hover.is-right{left:auto;right:10px;top:10px;max-height:calc(100% - 20px)}
.wmk-shell.has-panel .wmk-hover.is-right{right:calc(min(640px,50%) + 12px)}

/* site-standard caret (Phosphor ph-caret-down, turns when open – as the legends dropdown) */
.wmk-layers summary{display:flex;align-items:center;justify-content:space-between;gap:8px}
.wmk-caret{font-size:14px;color:#5b6372;transition:transform .15s;flex:none}
.wmk-layers[open] summary .wmk-caret,.wmk-combo-btn[aria-expanded="true"] .wmk-caret{transform:rotate(180deg)}

/* schedule include inside the panel (narrow): compact, no horizontal scroll where possible */
.wmk-ml{margin:0 -4px}
.wmk-ml .table-scroll{overflow-x:auto}
.wmk-ml table.tands{font-size:13px}
.wmk-hover{pointer-events:none}
.wmk-hover .wmk-card-foot{color:var(--wmk-muted);font-weight:600;text-align:left}
button.wmk-i{border:0;padding:0}
.follow-pop.wmk-ipop{max-width:280px;font-size:13px}

.wmk-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.wmk-actions .wmk-btn{margin-top:0}
.wmk-btn--ghost{background:#fff;color:var(--wmk-ink);border:1.5px solid #cbd5e1}
.wmk-btn--ghost:hover{background:#f1f5f9;color:var(--wmk-ink);filter:none;border-color:#94a3b8}
.wmk-btn--ghost span{color:var(--color-primary,#b3202a);margin-right:2px}
html.dark .wmk-btn--ghost{background:#16202a;color:#e2e8f0;border-color:#334155}
.wmk-btn{font-family:inherit}

/* shoot-out record as a graphic */
.wmk-pens{display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:4px 8px;margin:8px 0 4px}
.wmk-pens-l{white-space:nowrap}
.wmk-pens .wmk-sun{margin:0;justify-content:flex-start}
.wmk-pens-p{justify-self:end;font-size:15px;font-variant-numeric:tabular-nums}
.wmk-pens-bar{grid-column:1/-1;display:flex;height:6px;margin:2px 0 0;border-radius:3px;overflow:hidden}
.wmk-pens-last{grid-column:1/-1;font-size:12px}
.wmk-tile-sub{font-size:11px!important;color:var(--wmk-muted)!important;margin-top:2px}

/* every tick labelled: full year, two digits on phones */
.wmk-tick .wmk-y-short{display:none}
.wmk-tick.is-in span{color:var(--wmk-ink);font-weight:600}
@media (max-width:720px){.wmk-tick .wmk-y-full{display:none}.wmk-tick .wmk-y-short{display:inline;font-size:9px}}
/* before the script has run: only the top-level options, no empty legend */
.wmk:not(.is-ready) #wmk-modes .wmk-sub[data-for]{display:none}
.wmk-legend:empty{display:none}

/* schedule include in the panel: the compact sizes of the phone layout (the panel is narrow; table.tands td is 18 px) */
.wmk .wmk-ml table.tands td{font-size:15px;padding-top:6px;padding-bottom:6px}
.wmk .wmk-ml table.tands td.weekdaytime{font-size:12.5px}
.wmk .wmk-ml table.tands th{font-size:13px}

/* phones: one finger scrolls the page, two fingers move/zoom the map (hint on a one-finger swipe) */
.wmk-2f{position:absolute;inset:0;z-index:650;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.45);color:#fff;font-weight:700;font-size:15px;text-align:center;padding:20px;opacity:0;transition:opacity .2s;pointer-events:none}
.wmk-2f.is-on{opacity:1}
@media (max-width:720px){.wmk:not(.is-ready) .wmk-layers-body{display:none}.wmk:not(.is-ready) .wmk-layers .wmk-caret{transform:none}}
