/* Map-only treatment: geographic colors never replace connectivity states. */
.map-vivid{background:#eaf2f7;border-color:#bdd1e2;border-radius:10px;--map-ink:#153d64;--map-accent:#1e64a5;--ease-out:cubic-bezier(.23,1,.32,1)}
.map-vivid .province-label{font-size:11px;letter-spacing:.01em;color:var(--map-ink);text-shadow:none}
.map-vivid .province-label span{display:inline-block;max-width:120px;padding:4px 7px;background:#fffffff2;border-radius:5px;box-shadow:0 2px 5px #153d641c;line-height:1.25}
.map-vivid .district-label{color:#244b69;text-shadow:0 1px 2px #fff,0 -1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff}
.map-vivid .cluster-ring{box-shadow:0 3px 9px #153d6433;outline:2px solid #ffffffdb}
.map-vivid .cluster-ring>span{background:#fff;color:#153d64;font-weight:700;font-variant-numeric:tabular-nums}
.map-vivid .school-pin{box-shadow:0 3px 8px #153d6440}
.map-vivid .leaflet-control-zoom{border:0;box-shadow:0 3px 12px #153d6426;border-radius:8px;overflow:hidden}
.map-vivid .leaflet-control-zoom a{color:#174f84;background:#fff;width:34px;height:34px;line-height:34px}
.map-vivid .leaflet-control-zoom a:hover{background:#e9f3fd;color:#123b64}
.map-vivid .leaflet-control-zoom a.leaflet-disabled{color:#71879b;background:#f0f4f7}
.map-vivid .leaflet-control a:focus-visible{outline:3px solid #1e64a5;outline-offset:-3px}
.map-vivid-legend{gap:10px 18px;color:#375772;font-size:11px;align-items:center}
.map-vivid-legend .dot{width:9px;height:9px;box-shadow:0 0 0 2px #fff}
@media(max-width:680px){.map-vivid .province-label{font-size:10px}.map-vivid .province-label span{padding:3px 5px}.map-vivid-legend{gap:9px 14px}}

#public-map.map-vivid{border-radius:0}
.public-map-page .territory-key .province-colors{border:1px solid #527f9b;background:linear-gradient(90deg,#42a9ba 0 33%,#a898c7 33% 66%,#69b3a8 66%)}
.map-vivid .cluster-ring,.map-vivid .school-pin,.map-vivid .province-label span{transition:transform 160ms var(--ease-out),opacity 160ms var(--ease-out)}
.map-vivid .province-label.is-selected span{background:#174f84;color:#fff}
.map-vivid .province-label.is-hovered span{background:#e8f3fb;color:#174f84}
@media(hover:hover) and (pointer:fine){
 .map-vivid .gier-cluster:hover .cluster-ring{transform:translateY(-2px) scale(1.06)}
 .map-vivid .gier-marker:hover .school-pin{transform:translateY(-3px) scale(1.05)}
 .map-vivid .province-label.is-hovered span{transform:translateY(-2px)}
}
@media(prefers-reduced-motion:reduce){.map-vivid .cluster-ring,.map-vivid .school-pin,.map-vivid .province-label span{transition:opacity 125ms ease}.map-vivid .gier-cluster:hover .cluster-ring,.map-vivid .gier-marker:hover .school-pin,.map-vivid .province-label.is-hovered span{transform:none}}
.public-registration-progress{height:64px;box-sizing:border-box;display:grid;grid-template-columns:auto minmax(120px,1fr) auto;align-items:center;gap:24px;padding:10px 22px;background:#f1f7fc;color:#153d64;border-bottom:1px solid #d6e5ef}
.public-registration-progress strong{display:block;font-size:13px;font-weight:600}
.public-registration-progress span{display:block;margin-top:3px;font-size:11px;color:#375772}
.public-registration-progress progress{width:100%;height:8px;border:0;border-radius:6px;overflow:hidden;appearance:none;background:#d6e5ef;accent-color:#167e83}
.public-registration-progress progress::-webkit-progress-bar{background:#d6e5ef;border-radius:6px}
.public-registration-progress progress::-webkit-progress-value{background:#167e83;border-radius:6px}
.public-registration-progress progress::-moz-progress-bar{background:#167e83;border-radius:6px}
.public-registration-progress .registration-percent{font-size:19px;font-variant-numeric:tabular-nums;color:#17666c}
.has-public-progress .minimal-map{height:calc(100dvh - 128px)}
@media(max-width:700px){.public-registration-progress{height:78px;grid-template-columns:1fr auto;gap:8px 16px;padding:9px 12px}.public-registration-progress progress{grid-column:1/-1;grid-row:2;height:6px}.public-registration-progress strong{font-size:12px}.public-registration-progress span{font-size:10px}.public-registration-progress .registration-percent{font-size:18px}.has-public-progress .minimal-map{height:calc(100dvh - 142px)}}
.map-dependency-progress{position:absolute;z-index:750;right:16px;bottom:30px;width:284px;max-width:calc(100% - 32px);background:#fff;color:#153d64;border-radius:12px;box-shadow:0 6px 24px #153d6426;overflow:hidden}
.map-dependency-progress summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;cursor:pointer;list-style:none;font-size:13px;font-weight:600}
.map-dependency-progress summary::-webkit-details-marker{display:none}
.map-dependency-progress summary .icon{width:16px;height:16px}
.map-dependency-progress[open] summary .icon{transform:rotate(180deg)}
.map-dependency-progress summary:focus-visible{outline:3px solid #1e64a5;outline-offset:-3px}
.dependency-progress-list{max-height:min(620px,calc(100dvh - 260px));overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a8bfd1 #f1f7fc;padding:0 16px 14px}
.dependency-progress-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 12px;padding:6px 0;border-top:1px solid #e5edf4}
.dependency-progress-label{display:flex;align-items:baseline;justify-content:space-between;gap:10px;grid-column:1/-1;margin:0;font-size:12px;line-height:1.25}
.dependency-progress-label strong{font-weight:500}
.dependency-progress-label>span{font-variant-numeric:tabular-nums;color:#17666c;font-weight:600;white-space:nowrap}
.dependency-progress-row progress{display:block;width:100%;height:5px;border:0;border-radius:4px;overflow:hidden;appearance:none;background:#e3edf3;accent-color:#167e83}
.dependency-progress-row progress::-webkit-progress-bar{background:#e3edf3;border-radius:4px}
.dependency-progress-row progress::-webkit-progress-value{background:#167e83;border-radius:4px}
.dependency-progress-row progress::-moz-progress-bar{background:#167e83;border-radius:4px}
.dependency-progress-row small{display:block;margin:0;line-height:1.2;font-size:10px;color:#375772;font-variant-numeric:tabular-nums}
.dependency-progress-row.is-institutes{margin-top:4px;padding:10px 0 0}
.dependency-progress-row.is-institutes .dependency-progress-label strong{font-weight:600;color:#174f84}
@media(max-width:700px){.map-dependency-progress{right:12px;bottom:auto;top:112px;width:210px;max-width:calc(100% - 24px)}.map-dependency-progress summary{padding:11px 12px;font-size:12px;min-height:44px;box-sizing:border-box}.dependency-progress-list{max-height:min(230px,34dvh);padding:0 12px 10px}.dependency-progress-row{padding:8px 0}}
.map-vivid .province-relief,.map-vivid .province-relief path{pointer-events:none}
.map-vivid .province-relief path{transition:transform 220ms var(--ease-out),opacity 220ms var(--ease-out);transform:translateY(0);opacity:0}
.map-vivid .province-relief .province-relief-shadow{transform:translate(2px,4px);filter:blur(3px)}
.map-vivid .province-relief.is-raised .province-relief-shadow{opacity:.18}
.map-vivid .province-relief.is-raised .province-relief-side{opacity:.65;transform:translateY(calc(var(--relief-step) * -1.2px))}
.map-vivid .province-relief.is-raised .province-relief-face{opacity:1;transform:translateY(-6px)}
@media(hover:hover) and (pointer:fine){.map-vivid .province-label.is-hovered span{transform:translateY(-6px)}}
@media(prefers-reduced-motion:reduce){.map-vivid .province-relief{display:none}.map-vivid .province-label.is-hovered span{transform:none}}
.map-vivid .district-label span{display:inline-block;padding:3px 5px;border-radius:4px;transition:transform 220ms var(--ease-out)}
.map-vivid .district-label.is-hovered span{background:#e8f3fb;color:#174f84;text-shadow:none}
@media(hover:hover) and (pointer:fine){.map-vivid .district-label.is-hovered span{transform:translateY(-6px)}}
@media(prefers-reduced-motion:reduce){.map-vivid .district-label span{transition:none}.map-vivid .district-label.is-hovered span{transform:none}}

/* SVG territories use their geographic stroke for focus, never a bounding box. */
.map-vivid path.leaflet-interactive:focus{outline:none}
.map-vivid path.leaflet-interactive:focus-visible{outline:none;stroke:#174d86;stroke-width:3.5px}

/* A quieter frame lets the geographic data remain the main content. */
.public-map-page .map-floating-actions .btn{border:0;border-radius:9px;color:#174f84;box-shadow:0 3px 12px #153d6420;font-weight:500}
.public-map-page .map-floating-actions .btn:hover{background:#edf5fc}
.public-map-page .minimal-map-count{border-radius:9px;color:#375772;box-shadow:0 3px 12px #153d6414;font-variant-numeric:tabular-nums}
.public-map-page .minimal-map-info{border:0;border-radius:12px;background:#fff;box-shadow:0 6px 24px #153d6426;padding:0 14px 12px}
.public-map-page .minimal-map-info>h2{padding-top:13px;font-size:12px;font-weight:600;color:#153d64}
.public-map-page .minimal-map-info .map-legend{font-size:11px;gap:9px 12px;padding:12px 0}
.public-map-page .minimal-map-info .dot{width:8px;height:8px}
.map-dependency-progress summary small{display:block;margin-top:4px;font-size:10px;font-weight:400;color:#375772}
.map-vivid .district-label.is-selected span{background:#174f84;color:#fff;text-shadow:none}
@media(max-width:380px){.public-registration-progress{height:94px}.has-public-progress .minimal-map{height:calc(100dvh - 158px)}}
