/* ---------- interactive US map ---------- */
.usm{--sea:#e8efe9;--land0:#efe7d8;--land1:#cfe3d4;--land2:#7fb89a;--landS:#2f6b4f;--edge:#ffffff;--hl:#e08a3c;
  position:relative;background:linear-gradient(160deg,var(--surface),var(--sea));border:1px solid var(--line);border-radius:22px;
  padding:16px;box-shadow:0 1px 2px rgba(31,42,36,.06),0 18px 50px -20px rgba(31,42,36,.35);margin:10px 0 26px;
  display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:auto auto auto;gap:10px 18px;overflow:hidden}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .usm{--sea:#17211c;--land0:#2a302b;--land1:#2c4636;--land2:#3f7d5c;--landS:#6fbf95;--edge:#141a17;--hl:#f0a463}}
.usm-bar{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.usm-crumb{display:flex;align-items:center;gap:10px;font-family:"Fraunces",Georgia,serif;font-size:1.25rem;font-weight:600}
.usm-crumb a{color:inherit;text-decoration:none;opacity:.6}.usm-crumb a:hover{opacity:1}
.usm-back{font:inherit;font-family:"Source Sans 3",sans-serif;font-size:.9rem;font-weight:700;background:var(--brand);color:var(--brand-ink);border:0;border-radius:999px;padding:7px 14px;cursor:pointer;animation:usmPop .35s both}
.usm-tools{display:flex;gap:8px;flex:1 1 380px;justify-content:flex-end;flex-wrap:wrap}
.usm-search{position:relative;flex:1 1 260px;max-width:420px}
.usm-search input{width:100%;font:inherit;padding:10px 14px 10px 38px;border:1.5px solid var(--line);border-radius:999px;background:var(--surface) no-repeat 13px 50%/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6b63' stroke-width='2.4'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");color:var(--ink)}
.usm-search input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px color-mix(in srgb,var(--brand) 18%,transparent)}
.usm-sugg{position:absolute;z-index:6;top:calc(100% + 6px);left:0;right:0;margin:0;padding:6px;list-style:none;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 30px -8px rgba(0,0,0,.25)}
.usm-sugg li{padding:8px 10px;border-radius:9px;cursor:pointer;display:flex;justify-content:space-between;gap:10px}
.usm-sugg li span{color:var(--muted);font-size:.85rem}
.usm-sugg li.on,.usm-sugg li:hover{background:var(--chip)}
.usm-sugg li.none{color:var(--muted);cursor:default}
.usm-loc{font:inherit;font-weight:700;display:inline-flex;align-items:center;gap:8px;background:var(--chip);color:var(--chip-ink);border:0;border-radius:999px;padding:9px 16px;cursor:pointer}
.usm-loc:hover{background:var(--brand);color:var(--brand-ink)}
.usm-dot{width:9px;height:9px;border-radius:50%;background:var(--hl);box-shadow:0 0 0 0 var(--hl);animation:usmBeat 2s infinite}
.usm-loc.busy .usm-dot{animation-duration:.6s}

.usm-stage{position:relative;grid-column:1;grid-row:2;min-width:0;border-radius:16px;overflow:hidden;
  background:radial-gradient(120% 90% at 50% 40%,color-mix(in srgb,var(--surface) 70%,transparent),transparent 70%)}
.usm-svg{display:block;width:100%;height:auto;aspect-ratio:975/610;touch-action:manipulation}
.usm-svg path{vector-effect:non-scaling-stroke}
.usm-svg :focus{outline:none}.usm-svg :focus-visible{outline:none;stroke:var(--hl);stroke-width:3}
.usm-nation{fill:none;stroke:color-mix(in srgb,var(--brand) 25%,transparent);stroke-width:5;filter:blur(3px)}
.usm-st{stroke:var(--edge);stroke-width:1.2;cursor:pointer;opacity:0;scale:.92;transform-box:fill-box;transform-origin:center;
  transition:transform .28s cubic-bezier(.2,.9,.3,1.3),fill .25s,opacity .4s,filter .25s}
.usm-svg.ready .usm-st{animation:usmIn .7s cubic-bezier(.2,.8,.3,1) both}
.usm-st.t-none{fill:url(#usmHatch)}
.usm-hbg{fill:var(--land0)}.usm-hln{stroke:color-mix(in srgb,var(--muted) 22%,transparent);stroke-width:2}
.usm-st.t-some{fill:var(--land1)}
.usm-st.t-full{fill:var(--land2)}
.usm-svg.hovering .usm-st:not(.hov){opacity:.55}
.usm-st.hov{opacity:1!important}
.usm-st:focus-visible{outline:none;fill:var(--hl)}
.usm-lift{pointer-events:none}
.usm-lifted{pointer-events:none;fill:var(--hl);stroke:#fff;stroke-width:2;transform-box:fill-box;transform-origin:center;transform:scale(1);filter:url(#usmLift);
  transition:transform .3s cubic-bezier(.2,.9,.3,1.35),opacity .18s;opacity:.0}
.usm-lifted.up{opacity:1;transform:scale(1.1)}
.usm-lifted.rg.up{transform:scale(1.07)}
.usm-rlbl.lifted{opacity:1;animation:none;font-weight:800;fill:#fff;stroke:rgba(60,30,0,.35);stroke-width:2px}
.usm-mesh{fill:none;stroke:var(--edge);stroke-width:1.2;pointer-events:none;opacity:0;transition:opacity .4s}
.usm-svg.ready .usm-mesh{opacity:1;transition-delay:1.2s}
.usm-svg.hovering .usm-mesh{opacity:0}
/* neighbour labels keep the same on-screen size at any zoom */
.usm-ab{font-size:calc(11px / var(--z,1));font-family:"Source Sans 3",sans-serif;font-weight:700;text-anchor:middle;dominant-baseline:middle;fill:var(--ink);opacity:0;pointer-events:none;paint-order:stroke;stroke:color-mix(in srgb,var(--surface) 80%,transparent);stroke-width:2.5px;letter-spacing:.04em}
.usm-svg.ready .usm-ab{animation:usmFade .6s .5s both}
.usm-labels.off .usm-ab{opacity:.45;animation:none}
.usm-svg .usm-labels .usm-ab.cur{opacity:0!important}
.usm-rlbl.tiny{opacity:0!important}
.usm-svg.hovering .usm-ab{opacity:.25!important}
.usm-spot{pointer-events:none;mix-blend-mode:soft-light;transition:opacity .3s}
.usm-svg.zoomed .usm-spot{opacity:0}

/* zoomed into a state */
.usm-svg.zoomed .usm-st{opacity:.35;filter:saturate(.4);stroke-width:.8}
.usm-svg.zoomed .usm-st:hover{opacity:.6}
.usm-svg.zoomed .usm-st.cur{opacity:0}
.usm-svg.zoomed .usm-mesh{opacity:.5}
.usm-rg{stroke:var(--edge);stroke-width:1.6;cursor:pointer;opacity:0;scale:.6;transform-box:fill-box;transform-origin:center;
  animation:usmGrow .55s cubic-bezier(.2,.9,.3,1.2) both;transition:transform .25s cubic-bezier(.2,.9,.3,1.4),fill .2s,filter .2s,opacity .2s}
.usm-rg.tint0{fill:#8cc3a5}.usm-rg.tint1{fill:#b9d8a8}.usm-rg.tint2{fill:#f2c8a0}.usm-rg.tint3{fill:#a9c9df}.usm-rg.tint4{fill:#ead690}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .usm-rg.tint0{fill:#3f6f57}:root:not([data-theme="light"]) .usm-rg.tint1{fill:#4d6a3e}:root:not([data-theme="light"]) .usm-rg.tint2{fill:#7a5536}:root:not([data-theme="light"]) .usm-rg.tint3{fill:#3d5a70}:root:not([data-theme="light"]) .usm-rg.tint4{fill:#6e6334}}
.usm-rg.empty{fill:url(#usmHatch)}
.usm-svg.hovering .usm-rg:not(.hov){opacity:.6}
.usm-rg.hov{opacity:1!important}
.usm-rg:focus-visible{outline:none;fill:var(--hl)}
.usm-rg.picked{fill:var(--brand);stroke-width:2.6}
.usm-rg.pop{animation:usmClick .3s both}
.usm-rlbl{font-family:"Source Sans 3",sans-serif;font-weight:700;text-anchor:middle;dominant-baseline:middle;fill:var(--ink);pointer-events:none;opacity:0;
  paint-order:stroke;stroke:color-mix(in srgb,var(--surface) 85%,transparent);stroke-width:3px;stroke-linejoin:round;animation:usmFade .5s both;transition:opacity .2s}
.usm-svg.hovering .usm-rlbl:not(.hov){opacity:.35!important}
.usm-rlbl.hov{opacity:1!important;font-weight:800}
.usm-ring{fill:none;stroke:var(--hl);stroke-width:2.5;animation:usmRing 1.8s ease-out infinite;transform-box:fill-box;transform-origin:center}
.usm-pin{fill:var(--hl);stroke:#fff;stroke-width:2}

.usm-tip{position:absolute;left:0;top:0;z-index:4;pointer-events:none;max-width:260px;background:color-mix(in srgb,var(--ink) 92%,transparent);color:var(--bg);
  padding:10px 13px;border-radius:12px;box-shadow:0 10px 26px -8px rgba(0,0,0,.45);backdrop-filter:blur(6px);font-size:.88rem;line-height:1.35;transition:transform .08s linear}
.usm-tip b{display:block;font-family:"Fraunces",Georgia,serif;font-size:1.05rem;font-weight:600}
.usm-tip span{display:block;opacity:.8}
.usm-tip em{display:block;font-style:normal;font-weight:700;color:var(--hl);margin-top:4px}
.usm-tip em.soon{color:inherit;opacity:.7;font-weight:600}
.usm-toast{position:absolute;left:50%;bottom:14px;translate:-50% 0;z-index:5;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-left:4px solid var(--hl);
  padding:10px 14px;border-radius:12px;box-shadow:0 12px 30px -10px rgba(0,0,0,.35);max-width:min(440px,90%);font-size:.93rem;animation:usmPop .3s both}

.usm-small{grid-column:1;grid-row:3;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.usm-small::before{content:"Small states:";color:var(--muted);font-size:.82rem;margin-right:2px}
.usm-chip{font:inherit;font-size:.8rem;font-weight:700;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:8px;padding:3px 9px;cursor:pointer;transition:all .15s}
.usm-chip.has{background:var(--land1);color:var(--ink);border-color:transparent}
.usm-chip:hover{background:var(--hl);color:#fff;transform:translateY(-2px)}

.usm-side{grid-column:2;grid-row:2/4;min-width:0;max-height:560px;overflow:auto;padding-right:2px}
.usm-head h2{margin:0 0 4px;font-size:1.5rem}
.usm-head p{margin:0 0 12px;color:var(--muted);font-size:.93rem}
.usm-legend{display:block;margin-top:8px;font-size:.82rem}
.usm-legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin:0 4px -1px 8px;vertical-align:baseline}
.usm-legend i:first-child{margin-left:0}
.lg-full{background:var(--land2)}.lg-some{background:var(--land1)}.lg-none{background:var(--land0);outline:1px dashed color-mix(in srgb,var(--muted) 40%,transparent)}
.usm-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.usm-stats div{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 8px;text-align:center}
.usm-stats b{display:block;font-family:"Fraunces",Georgia,serif;font-size:1.45rem;color:var(--brand);line-height:1.1}
.usm-stats span{font-size:.75rem;color:var(--muted);line-height:1.2;display:block}
.usm-stlist{display:flex;flex-direction:column;gap:4px}
.usm-stlist button{font:inherit;display:flex;justify-content:space-between;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 12px;cursor:pointer;color:var(--ink);text-align:left;transition:all .15s}
.usm-stlist button em{font-style:normal;font-weight:700;color:var(--brand);font-size:.88rem}
.usm-stlist button:hover{border-color:var(--hl);transform:translateX(4px)}
.usm-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.usm-list a{display:grid;grid-template-columns:1fr auto;gap:0 8px;padding:8px 10px;border-radius:10px;text-decoration:none;color:var(--ink);cursor:pointer;transition:background .12s,transform .12s}
.usm-list a:hover,.usm-list a.hl{background:var(--chip);transform:translateX(3px)}
.usm-list strong{font-size:.95rem}
.usm-list span{grid-column:1/-1;color:var(--muted);font-size:.78rem;line-height:1.3}
.usm-list em{font-style:normal;color:var(--chip-ink);font-weight:700;font-size:.8rem;grid-row:1;grid-column:2}
.usm-list a.soon em{color:var(--muted);font-weight:600}
.usm-loading{color:var(--muted);padding:20px 0}

@keyframes usmIn{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
@keyframes usmGrow{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
@keyframes usmFade{from{opacity:0}to{opacity:1}}
@keyframes usmPop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes usmClick{50%{transform:scale(1.14)}100%{transform:scale(1.02)}}
@keyframes usmRing{from{transform:scale(1);opacity:1}to{transform:scale(7);opacity:0}}
@keyframes usmBeat{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--hl) 60%,transparent)}100%{box-shadow:0 0 0 10px transparent}}
@media (prefers-reduced-motion:reduce){.usm *{animation:none!important;transition:none!important}.usm-st,.usm-rg,.usm-rlbl,.usm-ab{opacity:1;scale:1}}
@media (max-width:900px){.usm{grid-template-columns:1fr;padding:10px;border-radius:16px}.usm-side{grid-column:1;grid-row:4;max-height:none}.usm-small{grid-row:3}
  .usm-lifted.up{transform:scale(1.05)}}

/* static state minimap on region pages */
.stmap{width:100%;height:auto;display:block}
.stmap path{stroke:var(--surface);stroke-width:1;vector-effect:non-scaling-stroke;fill:var(--land0,#efe7d8);transition:fill .15s}
.stmap a path{fill:#b9d8a8}.stmap a:hover path{fill:var(--accent)}
.stmap path.on{fill:var(--brand)!important}
