:root{color-scheme:dark;--bg:#101a1a;--panel:#182625;--text:#eff7ef;--muted:#b0c5bd;--line:#35504b;--accent:#baf2be;--ink:#14251b;--ocean:#142322;--land:#2d403b;--danger:#ffc5b8;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.55}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 90% 0,#263d35 0,transparent 50%),var(--bg);color:var(--text)}[hidden]{display:none!important}a{color:var(--accent);text-underline-offset:3px}button,input,select{font:inherit}button,a,input,select,summary{outline-offset:5px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--accent)}button,summary{cursor:pointer}button{min-height:44px;padding:10px 16px;background:var(--accent);color:var(--ink);border:1px solid var(--accent);border-radius:9px;font-weight:650}button:disabled{opacity:.6;cursor:wait}.wrap{width:min(1240px,calc(100% - 48px));margin:0 auto}.site-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 0;border-bottom:1px solid var(--line)}.brand{font-size:1rem;font-weight:750;letter-spacing:.12em;text-decoration:none;white-space:nowrap}.brand span{color:var(--muted);font-size:.75rem;letter-spacing:.08em}nav{display:flex;gap:18px;flex-wrap:wrap;font-size:.875rem}.full-page-link{display:none}main{padding:32px 0 26px}.page-heading{max-width:790px;margin-bottom:22px}.eyebrow{font-size:.75rem;letter-spacing:.11em;text-transform:uppercase;color:var(--accent);font-weight:650;margin:0 0 8px}h1{font-size:clamp(2rem,4.5vw,3.5rem);font-weight:650;line-height:1.07;letter-spacing:-.05em;margin:0 0 14px}h2{font-size:1.2rem;letter-spacing:-.02em;margin:0}p{margin:0 0 14px}.lede{max-width:710px;color:var(--muted);font-size:1.0625rem}.muted{color:var(--muted)}.small{font-size:.8125rem}.load-status{padding:28px 0}.load-status.error{color:var(--danger)}.load-status p{margin-bottom:12px}.map-stage{position:relative;width:100%}.world-map{display:block;width:100%;overflow:visible;touch-action:pan-y}.world-map .ocean{fill:var(--ocean);stroke:var(--line);stroke-width:.7}.world-map .graticule{fill:none;stroke:var(--line);stroke-width:.55;opacity:.7;pointer-events:none}.world-map .land{fill:var(--land);stroke:var(--line);stroke-width:.4;pointer-events:none}.world-map .hex{stroke:var(--bg);stroke-width:.55;stroke-linejoin:round;cursor:pointer}.world-map .hex:hover{stroke:var(--text);stroke-width:1.2}.world-map .country-lines{fill:none;stroke:var(--text);stroke-width:.35;opacity:.25;pointer-events:none}.world-map .selection-halo{fill:none;stroke:var(--bg);stroke-width:5;pointer-events:none}.world-map .selection-outline{fill:none;stroke:var(--text);stroke-width:2;pointer-events:none}.world-map .selection-dot{fill:var(--text);stroke:var(--bg);stroke-width:1.5;pointer-events:none}.map-caption{display:flex;align-items:center;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;margin:12px 0 28px;font-size:.8125rem}.legend,.legend-scale{display:flex;align-items:center;gap:6px}.legend{flex-wrap:wrap}.legend-scale{gap:3px}.legend-swatch{width:22px;height:9px;display:block}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:6px 20px;flex-wrap:wrap;margin-bottom:16px}.section-heading p{font-size:.875rem;margin:0}.weight-controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px}.preference-field{display:block;min-width:0}.weight-label{display:flex;align-items:baseline;justify-content:space-between;gap:7px;font-size:.875rem;font-weight:600}.weight-number{font-variant-numeric:tabular-nums;color:var(--accent);font-size:.95rem}.weight-note{display:flex;flex-direction:column;gap:2px;font-size:.75rem;color:var(--muted)}.weight-note .influence{font-variant-numeric:tabular-nums}.preference-field input{display:block;accent-color:var(--accent);width:100%;min-height:36px;margin:5px 0}.empty-state{padding:13px 0;margin:0;color:var(--accent);font-size:.875rem}.preferences{margin-bottom:26px}.selected-region{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px}.selection-controls label{display:block;font-size:.875rem;font-weight:650;margin-bottom:8px}.selection-controls .selection-sort{font-weight:400}.selection-controls select{display:block;width:100%;background:#101d1c;color:var(--text);border:1px solid #49625b;border-radius:9px;padding:12px 38px 12px 12px;min-height:48px;min-width:0;appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--accent) 50%),linear-gradient(135deg,var(--accent) 50%,transparent 50%);background-position:calc(100% - 19px) 20px,calc(100% - 13px) 20px;background-size:6px 6px;background-repeat:no-repeat}.selection-controls #choice-help{margin:8px 0 0}.selected-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 22px;flex-wrap:wrap;margin:22px 0 12px}.selected-head h2{font-size:1.65rem;letter-spacing:-.035em}.selected-head .eyebrow{margin-bottom:3px;font-size:.6875rem}.selected-coordinate{margin:4px 0 0}.selected-score{font-variant-numeric:tabular-nums;white-space:nowrap;padding-top:15px}.score-number{font-size:1.7rem;font-weight:600}.score-unit{font-size:.8125rem;color:var(--muted)}.paragraph{font-size:1rem;max-width:1000px;margin:0 0 24px}.breakdown{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}.breakdown-label{font-size:.875rem;display:block;margin-bottom:7px}.factor-values{display:flex;justify-content:space-between;gap:5px;flex-wrap:wrap;font-size:.8125rem;font-variant-numeric:tabular-nums}.factor-track{height:5px;background:#2b4439;margin:9px 0 0;overflow:hidden}.factor-fill{height:100%;background:var(--accent)}.model-note{margin:22px 0 0;font-size:.875rem;max-width:1000px}.model-note summary{color:var(--accent);padding:8px 0}.model-note p{color:var(--muted);margin:12px 0}.model-note strong{color:var(--text);font-weight:600}.source-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:18px}footer{padding:20px 0 28px;border-top:1px solid var(--line);display:flex;gap:12px 20px;justify-content:space-between;flex-wrap:wrap;font-size:.8125rem;color:var(--muted)}.embedded .wrap{width:calc(100% - 28px);max-width:1240px}.embedded .site-header{padding:14px 0}.embedded .site-header nav>a:not(.full-page-link){display:none}.embedded .full-page-link{display:inline}.embedded main{padding-top:20px}.embedded h1{font-size:clamp(1.9rem,4vw,2.8rem)}.embedded .page-heading{margin-bottom:16px}
@media(max-width:900px){.weight-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.weight-note{flex-direction:row;justify-content:space-between;flex-wrap:wrap}.wrap{width:calc(100% - 36px)}}
@media(max-width:600px){.wrap,.embedded .wrap{width:calc(100% - 24px)}.site-header{align-items:flex-start;gap:10px;padding:17px 0}.brand span{display:block;margin-top:3px}.site-header nav{font-size:.8125rem;gap:8px;justify-content:flex-end}main{padding-top:24px}.page-heading{margin-bottom:18px}.lede{font-size:1rem}.weight-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}.weight-label{font-size:.875rem}.weight-note{font-size:.75rem;flex-direction:column;gap:1px}.map-caption{margin:12px 0 24px;gap:9px}.legend-swatch{width:17px}.selected-region{padding:16px}.selected-head{margin-top:18px}.selected-score{padding-top:0}.selected-head h2{font-size:1.5rem}.breakdown{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px}.paragraph{font-size:.9375rem}.section-heading p{font-size:.8125rem}footer{font-size:.75rem}}
@media(max-width:360px){.weight-controls{grid-template-columns:1fr}.weight-note{flex-direction:row;justify-content:space-between}.brand{font-size:.875rem}.selection-sort{display:block}.legend-swatch{width:13px}.selected-score{white-space:normal}}
.map-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.kaleidoscope-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:9px 12px;background:var(--panel);border-color:#49625b;color:var(--text);font-size:.875rem;font-weight:600}
.kaleidoscope-toggle:hover{border-color:var(--accent)}
.kaleidoscope-toggle[aria-pressed="true"]{background:linear-gradient(120deg,#432942,#223c44 55%,#254135);border-color:#bfd5cb}
.kaleidoscope-icon{flex:none;width:20px;height:22px;clip-path:polygon(50% 0,94% 25%,94% 75%,50% 100%,6% 75%,6% 25%);background:conic-gradient(from 30deg,#ff8dba,#cda1ff,#87bfff,#8de8d5,#e9eb8f,#ffba8f,#ff8dba)}
.kaleidoscope-state{min-width:23px;color:var(--muted);font-size:.75rem;font-weight:500}
.kaleidoscope-toggle[aria-pressed="true"] .kaleidoscope-state{color:var(--accent)}
.kaleidoscope-pause{padding:9px 11px;background:transparent;color:var(--muted);border-color:var(--line);font-size:.8125rem;font-weight:500}
.kaleidoscope-pause:hover{color:var(--text);border-color:#6b867b}
.kaleidoscope-status{margin:0;color:var(--text);max-width:100%}
.kaleidoscope-status::before{content:"";display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:50%;background:conic-gradient(#ff8dba,#cda1ff,#87bfff,#8de8d5,#e9eb8f,#ffba8f,#ff8dba)}
.world-map .hex-layer{filter:none}
.world-map .hex-layer .hex{stroke:none}
.world-map .hex-layer .hex:hover{stroke:var(--text);stroke-width:1.2}
.world-map .hex-border{fill:none;stroke:var(--bg);stroke-width:.55;stroke-linejoin:round;pointer-events:none}
.world-map .hex-grid{pointer-events:none}
[data-color-mode="kaleidoscope"] .hex-layer{animation:kaleidoscope-drift 36s linear infinite;animation-play-state:paused}
[data-color-mode="kaleidoscope"][data-color-motion="running"] .hex-layer{animation-play-state:running;will-change:filter}
[data-color-motion="reduced"] .hex-layer{animation:none;filter:none}
@keyframes kaleidoscope-drift{from{filter:hue-rotate(0deg)}to{filter:hue-rotate(360deg)}}
@media(prefers-reduced-motion:reduce){[data-color-mode="kaleidoscope"] .hex-layer{animation:none;filter:none}}
@media(prefers-reduced-motion:no-preference){.factor-fill{transition:width 180ms ease}}
