/* Migration map and home hero. Loaded only on pages with the map; tokens come from base.css. */
.wm {
  /* light only, white base: the density ramp (base.css --map-ramp-0..6) in 20 steps for the SVG map */
  --wm-z: #F6F8FA;
  --wm-low: #EEF1F5;
  --c3: #fef3c7;
  --c4: #fde9a0;
  --c5: #fddf7a;
  --c6: #fcd553;
  --c7: #c7d361;
  --c8: #88d379;
  --c9: #49d391;
  --c10: #2dcd9c;
  --c11: #23c5a0;
  --c12: #19bca4;
  --c13: #13b5b1;
  --c14: #11afc6;
  --c15: #0fa9db;
  --c16: #109ee9;
  --c17: #1889ea;
  --c18: #1f74ea;
  --c19: #2561e6;
  --c20: #2254c7;
  --c21: #2047a9;
  --c22: #1e3a8a;
}
/* levels: 0 no data, 1 few checklists, 2 reported on none, 3..22 the ramp */
.wm .l0 { fill: #EEF1F5; }
.wm .l1 { fill: var(--wm-low); }
.wm .l2 { fill: var(--wm-z); }
.wm .l3{fill:var(--c3)}
.wm .l4{fill:var(--c4)}
.wm .l5{fill:var(--c5)}
.wm .l6{fill:var(--c6)}
.wm .l7{fill:var(--c7)}
.wm .l8{fill:var(--c8)}
.wm .l9{fill:var(--c9)}
.wm .l10{fill:var(--c10)}
.wm .l11{fill:var(--c11)}
.wm .l12{fill:var(--c12)}
.wm .l13{fill:var(--c13)}
.wm .l14{fill:var(--c14)}
.wm .l15{fill:var(--c15)}
.wm .l16{fill:var(--c16)}
.wm .l17{fill:var(--c17)}
.wm .l18{fill:var(--c18)}
.wm .l19{fill:var(--c19)}
.wm .l20{fill:var(--c20)}
.wm .l21{fill:var(--c21)}
.wm .l22{fill:var(--c22)}
.wm-ramp .l0 { background: var(--map-nodata); box-shadow: inset 0 0 0 1px var(--map-line); }
.wm-sw .l1 { background: var(--wm-low); }
.wm-sw .l0 { background: var(--map-nodata); box-shadow: inset 0 0 0 1px var(--map-line); }
.wm-ramp .l3{background:var(--c3)}
.wm-ramp .l4{background:var(--c4)}
.wm-ramp .l5{background:var(--c5)}
.wm-ramp .l6{background:var(--c6)}
.wm-ramp .l7{background:var(--c7)}
.wm-ramp .l8{background:var(--c8)}
.wm-ramp .l9{background:var(--c9)}
.wm-ramp .l10{background:var(--c10)}
.wm-ramp .l11{background:var(--c11)}
.wm-ramp .l12{background:var(--c12)}
.wm-ramp .l13{background:var(--c13)}
.wm-ramp .l14{background:var(--c14)}
.wm-ramp .l15{background:var(--c15)}
.wm-ramp .l16{background:var(--c16)}
.wm-ramp .l17{background:var(--c17)}
.wm-ramp .l18{background:var(--c18)}
.wm-ramp .l19{background:var(--c19)}
.wm-ramp .l20{background:var(--c20)}
.wm-ramp .l21{background:var(--c21)}
.wm-ramp .l22{background:var(--c22)}

/* ---- the map ---- */
.wm { margin: var(--space-4) 0 var(--space-5); font-family: var(--font-sans); }
.wm-stage { position: relative; width: 100%; aspect-ratio: var(--ar); margin: 0 auto; }
.wm-svg { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.wm-c path { stroke: var(--map-surface); stroke-width: var(--sw); stroke-linejoin: round; cursor: crosshair; }
.wm-c path.o { opacity: 0.3; }
.wm-bd { fill: none; stroke: #CBD5E1; stroke-opacity: 1; stroke-width: calc(var(--sw) * 2.2); stroke-linejoin: round; pointer-events: none; }
.wm-hl { fill: none; stroke: var(--map-ink); stroke-width: calc(var(--sw) * 4); stroke-linejoin: round; pointer-events: none; }
.wm.busy .wm-svg { opacity: 0.55; transition: opacity 0.15s; }
.wm-tip { position: absolute; z-index: 4; pointer-events: none; background: #fff; color: #0F172A; border: 1px solid #E2E8F0; box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.3); font: 0.8rem/1.35 var(--font-sans); padding: 7px 10px; border-radius: 10px; white-space: nowrap; }
.wm-tip b { display: block; font-weight: 600; }
.wm-tip span { opacity: 0.85; }

.wm-ctl { display: flex; align-items: flex-end; gap: var(--space-4); margin-top: var(--space-3); }
.wm-play { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; font: 600 0.95rem var(--font-sans); background: var(--map-accent); color: var(--accent-ink); border: 1px solid var(--map-accent); border-radius: var(--radius); cursor: pointer; }
.wm-play:hover { filter: brightness(1.12); }
.wm-play svg { fill: currentColor; }
.wm-play .ic-pause { display: none; }
.wm-play[aria-pressed="true"] .ic-pause { display: inline; }
.wm-play[aria-pressed="true"] .ic-play { display: none; }
.wm-tl { position: relative; flex: 1; min-width: 0; padding-top: 16px; touch-action: pan-y; cursor: ew-resize; outline-offset: 3px; user-select: none; -webkit-user-select: none; }
.wm-bars { display: flex; align-items: flex-end; gap: 2px; height: 44px; }
.wm-bars i { flex: 1; background: var(--map-bar-low); min-height: 2px; border-radius: 1px 1px 0 0; }
.wm-bars i.on { background: var(--map-accent); }
.wm-mo { display: flex; margin-top: 3px; font: 600 10px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--map-muted); }
.wm-mo b { flex: 1; font-weight: 600; border-left: 1px solid var(--map-line); padding-left: 3px; overflow: hidden; }
.wm-now { position: absolute; top: 0; transform: translateX(-50%); font: 700 9px var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: #0F172A; background: var(--goldfinch, #FACC15); padding: 1px 4px; border-radius: 4px; pointer-events: none; }
.wm-now::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 6px; margin-left: -1px; background: var(--goldfinch, #FACC15); }
.wm-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-top: var(--space-3); min-height: 3.4rem; }
.wm-wk { font: 600 clamp(1.5rem, 3.2vw, 2.3rem)/1.1 var(--font-serif); letter-spacing: -0.01em; }
.wm-stat { font: 0.9rem var(--font-sans); color: var(--map-muted); margin-left: 6px; }
.wm-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 0.76rem var(--font-sans); color: var(--map-muted); }
.wm-ramp { display: inline-flex; }
.wm-ramp i { width: 8px; height: 11px; }
.wm-sw { display: inline-flex; align-items: center; gap: 5px; }
.wm-sw i { width: 11px; height: 11px; }
.wm-note { font: 0.82rem/1.5 var(--font-sans); color: var(--map-muted); max-width: 70ch; margin: var(--space-3) 0 0; }
/* the quiet link to the embed builder under a species page's map */
.wm-embed { margin: calc(var(--space-3) - var(--space-5)) 0 var(--space-5); font: 0.82rem var(--font-sans); color: var(--map-muted); }
html:not(.js) .wm-ctl, html:not(.js) .wm-foot .wm-stat { display: none; }
.chart .bar.cur { fill: var(--map-accent); }
.chart .bar { cursor: pointer; }

/* ---- the home hero ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js-only { display: none; }
.js .js-only { display: block; }
.hero { border-bottom: 1px solid var(--map-line); }
.hero-in { max-width: 1280px; margin: 0 auto; padding: var(--space-4) var(--space-4) var(--space-5); display: grid; grid-template-columns: minmax(280px, 370px) minmax(0, 1fr); gap: var(--space-5) var(--space-6); align-items: start; }
.hero-text { padding-top: var(--space-4); }
.hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.03; letter-spacing: -0.025em; margin: 0.25em 0 0.35em; }
.hero .kicker { margin: 0; color: var(--map-accent); }
.hero-sub { font-size: 1.08rem; line-height: 1.5; color: var(--map-muted); max-width: 34ch; }
.hero .wm { margin: 0; }
.hero .wm-stage { max-width: calc(var(--ar) * min(70vh, 640px)); }
.wm-pick { position: relative; max-width: 22rem; margin-bottom: var(--space-3); }
.wm-pick input { display: block; width: 100%; font: 1rem var(--font-sans); padding: 11px 12px; border: 1px solid var(--map-ink); background: var(--map-surface); color: var(--map-ink); border-radius: var(--radius); }
#wm-sug { position: absolute; z-index: 6; left: 0; right: 0; top: 100%; margin: 0; padding: 0; list-style: none; background: var(--map-surface); border: 1px solid var(--map-ink); border-top: 0; max-height: 280px; overflow: auto; max-width: none; }
#wm-sug li { margin: 0; padding: 9px 12px; font: 0.95rem var(--font-sans); cursor: pointer; border-bottom: 1px solid var(--map-line); }
#wm-sug li[aria-selected="true"], #wm-sug li:hover { background: var(--map-accent); color: var(--accent-ink); }
.wm-chips { margin: 0 0 var(--space-3); }
.wm-chips .label { display: block; margin-bottom: 6px; }
.wm-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; margin: 0 6px 6px 0; border: 1px solid var(--map-line); border-radius: 999px; font: 600 0.86rem var(--font-sans); color: var(--map-ink); text-decoration: none; }
.wm-chips a:hover { border-color: var(--map-ink); }
.wm-chips a.on { border-color: var(--map-accent); color: var(--map-accent); background: var(--accent-soft); }
.hero-link { font: 0.9rem var(--font-sans); }
html:not(.js) .wm-pick { display: none; }

/* ---- around you, arriving now ---- */
.around-lede { color: var(--map-muted); max-width: 52ch; }
.around-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.around-or { font: 0.92rem var(--font-sans); color: var(--map-muted); }
.around-or select { font: 0.95rem var(--font-sans); padding: 8px; border: 1px solid var(--map-ink); background: var(--map-surface); color: var(--map-ink); border-radius: var(--radius); margin-left: 4px; }
.around-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--space-4) var(--space-5); }
.around-cols h3 { margin: 0 0 var(--space-2); font: 600 0.72rem var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--map-muted); }
.around-cols ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.around-cols li { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--map-line); font: 0.95rem var(--font-sans); }
.around-cols li small { grid-column: 1 / -1; height: 3px; background: var(--map-line); display: block; margin-top: -2px; }
.around-cols li small i { display: block; height: 3px; background: var(--map-bar); }
.around-cols .pc { font-variant-numeric: tabular-nums; color: var(--map-muted); }
.around-where { font: 0.9rem var(--font-sans); color: var(--map-muted); margin: 0 0 var(--space-3); }
.arrive { list-style: none; padding: 0; margin: 0 0 var(--space-4); max-width: none; column-width: 24rem; column-gap: var(--space-5); }
.arrive li { display: grid; grid-template-columns: 1fr 96px 8.5rem; align-items: center; gap: var(--space-2); padding: 6px 0; border-bottom: 1px solid var(--map-line); font: 0.95rem var(--font-sans); break-inside: avoid; }
.arrive .arrive-d { text-align: right; color: var(--map-muted); font-size: 0.85rem; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: var(--space-3); padding-top: var(--space-2); }
  .hero-text { padding-top: 0; }
  .hero-sub { max-width: 46ch; }
}
@media (max-width: 560px) {
  .wm-ctl { flex-wrap: wrap; gap: var(--space-3); }
  .wm-play { width: 100%; height: 48px; }
  .wm-tl { flex-basis: 100%; }
  .wm-bars { height: 52px; }
  .wm-mo { font-size: 9px; letter-spacing: 0.02em; }
  .arrive li { grid-template-columns: 1fr 72px; }
  .arrive .arrive-d { grid-column: 1 / -1; text-align: left; }
  .arrive svg.spark { width: 72px; }
}
@media (prefers-reduced-motion: reduce) { .wm.busy .wm-svg { transition: none; } }

/* ---- compact link grids on the home page ---- */
.grid2 { list-style: none; margin: 0 0 var(--space-4); padding: 0; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-4); }
.grid2 li { margin: 0; padding: 5px 0; border-bottom: 1px solid var(--map-line); font: 0.9rem/1.3 var(--font-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid2.states a { display: flex; gap: 8px; text-decoration: none; }
.grid2.states b { flex: none; width: 1.7em; color: var(--map-accent); font-weight: 700; }
.grid2.states span { overflow: hidden; text-overflow: ellipsis; color: var(--map-ink); }
@media (min-width: 900px) { .grid2.states { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid2:not(.states) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.arrive li { padding: 3px 0; }
@media (max-width: 900px) {
  .hero-text { display: contents; }
  .hero-in .kicker { order: 1; }
  .hero-in h1 { order: 2; margin: 0; }
  .hero-in .wm { order: 3; }
  .hero-in .wm-pick { order: 4; width: 100%; max-width: none; }
  .hero-in .hs-hero { order: 3; width: 100%; max-width: none; margin: 0; }
  .hero-in .wm-chips { order: 5; display: flex; gap: 6px; overflow-x: auto; margin: 0; padding-bottom: 4px; }
  .hero-in .wm-chips .label { display: none; }
  .hero-in .wm-chips a { flex: none; margin: 0; }
  .hero-in .hero-link { order: 6; margin: 0; }
  .hero-in .hero-sub { display: none; }
}
@media (max-width: 560px) {
  .hero-in h1 { font-size: 1.7rem; }
  .arrive li { grid-template-columns: 1fr 72px auto; }
  .arrive .arrive-d { grid-column: auto; text-align: right; font-size: 0.78rem; }
}
.grid2:not(.states) li { white-space: normal; font-size: 0.86rem; }
.wm-fb { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- explore ---- */
.ex { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-4) var(--space-5); max-width: 1320px; margin: 0 auto; padding: var(--space-3) var(--space-4) var(--space-5); align-items: start; }
.ex .wm-stage { max-width: none; }
.ex-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-2); min-height: 40px; }
.ex-crumb { font: 0.95rem var(--font-sans); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ex-crumb a { color: var(--map-accent); }
.ex-crumb b { font-weight: 700; }
.ex-crumb .sep { color: var(--map-muted); }
.ex-modes { display: inline-flex; border: 1px solid var(--map-ink); border-radius: var(--radius); overflow: hidden; }
.ex-modes button { font: 600 0.85rem var(--font-sans); padding: 7px 14px; background: transparent; color: var(--map-ink); border: 0; cursor: pointer; }
.ex-modes button.on { background: var(--map-ink); color: var(--map-surface); }
.ex-pick { margin-bottom: var(--space-2); }
.ex-pick[hidden] { display: none; }
.ex-back { position: absolute; top: 8px; left: 8px; z-index: 3; font: 600 0.85rem var(--font-sans); padding: 7px 12px; background: var(--map-surface); color: var(--map-ink); border: 1px solid var(--map-ink); border-radius: var(--radius); cursor: pointer; }
.ex-back[hidden] { display: none; }
.ex-stage.busy-x { background: var(--map-nodata); }
.ex-stage .wm-svg { touch-action: manipulation; }
.ex-dot { fill: var(--map-surface); stroke: var(--map-ink); cursor: pointer; }
.ex-dot:hover, .ex-dot.on { fill: var(--map-accent); }
.ex-dots { pointer-events: all; }
.ex-l0 .l3{stroke:var(--c3)}
.ex-l0 .l4{stroke:var(--c4)}
.ex-l0 .l5{stroke:var(--c5)}
.ex-l0 .l6{stroke:var(--c6)}
.ex-l0 .l7{stroke:var(--c7)}
.ex-l0 .l8{stroke:var(--c8)}
.ex-l0 .l9{stroke:var(--c9)}
.ex-l0 .l10{stroke:var(--c10)}
.ex-l0 .l11{stroke:var(--c11)}
.ex-l0 .l12{stroke:var(--c12)}
.ex-l0 .l13{stroke:var(--c13)}
.ex-l0 .l14{stroke:var(--c14)}
.ex-l0 .l15{stroke:var(--c15)}
.ex-l0 .l16{stroke:var(--c16)}
.ex-l0 .l17{stroke:var(--c17)}
.ex-l0 .l18{stroke:var(--c18)}
.ex-l0 .l19{stroke:var(--c19)}
.ex-l0 .l20{stroke:var(--c20)}
.ex-l0 .l21{stroke:var(--c21)}
.ex-l0 .l22{stroke:var(--c22)}
.ex-l0 .wm-bd { stroke-opacity: 0.55; }
.ex-panel { position: sticky; top: var(--space-3); max-height: calc(100vh - 2 * var(--space-3)); overflow-y: auto; border-left: 1px solid var(--map-line); padding-left: var(--space-4); font-family: var(--font-sans); }
.ex-panel h2 { border: 0; padding: 0; margin: 0 0 4px; font-size: 1.5rem; }
.ex-sub { margin: 0 0 var(--space-3); font-size: 0.95rem; color: var(--map-muted); }
.ex-hint { color: var(--map-muted); font-size: 0.92rem; }
.ex-sec { margin: var(--space-3) 0; }
.ex-sec h3 { margin: 0 0 6px; font: 600 0.72rem var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--map-muted); }
.ex-birds, .ex-list { list-style: none; margin: 0; padding: 0; max-width: none; }
.ex-bird { display: grid; grid-template-columns: 36px 1fr auto 96px; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--map-line); font-size: 0.92rem; margin: 0; }
.ex-bird .th { width: 36px; height: 36px; object-fit: cover; border-radius: var(--radius); background: var(--map-nodata); }
.ex-bird a { color: var(--map-ink); text-decoration: none; font-weight: 600; }
.ex-bird a:hover { text-decoration: underline; }
.ex-bird .pc, .ex-list .pc { color: var(--map-muted); font-variant-numeric: tabular-nums; font-size: 0.85rem; }
.ex-bird .spark { width: 96px; height: 18px; }
.ex-bird .spark .bar.cur { fill: var(--map-accent); }
.ex-list li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--map-line); margin: 0; font-size: 0.92rem; }
.ex-link { background: none; border: 0; padding: 0; font: inherit; color: var(--map-accent); text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ex-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: var(--space-4) 0; font-size: 0.92rem; }
@media (max-width: 899px) {
  .ex { grid-template-columns: minmax(0, 1fr); padding-bottom: 12rem; }
  .ex-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; max-height: 44vh; background: var(--map-surface); border: 0; border-top: 2px solid var(--map-ink); padding: var(--space-3) var(--space-4) var(--space-4); transform: translateY(100%); transition: transform 0.25s ease; }
  .ex-panel.open { transform: none; }
  .ex-panel.open:not(.expanded) { max-height: 4.2rem; overflow: hidden; }
  .ex-panel h2 { font-size: 1.2rem; cursor: pointer; }
  .ex-panel h2::after { content: ""; display: inline-block; margin-left: 8px; border: 5px solid transparent; border-top-color: currentColor; vertical-align: middle; }
  .ex-bird { grid-template-columns: 36px 1fr auto 72px; }
  .ex-bird .spark { width: 72px; }
}
@media (prefers-reduced-motion: reduce) { .ex-panel { transition: none; } }

/* ---- the WebGL flow layer (flow.js): density, particles, the centre-of-reports path ---- */
.wm-gl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.35s ease-out; }
.wm.gl .wm-gl { opacity: 1; }
.wm.gl .wm-bd, .wm.gl .wm-hl { visibility: hidden; }
.wm-head { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; white-space: nowrap; font: 600 0.78rem/1 var(--font-sans); letter-spacing: 0.01em; color: #0F172A; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px #E2E8F0; padding: 4px 7px; border-radius: var(--radius); will-change: transform; }
.wm-lay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); }
.wm-tg, .wm-sp { display: inline-flex; border: 1px solid var(--map-line); border-radius: var(--radius); }
.wm-lay button { font: 600 0.82rem var(--font-sans); min-height: 36px; min-width: 44px; padding: 0 12px; background: transparent; color: var(--map-muted); border: 0; border-left: 1px solid var(--map-line); cursor: pointer; }
.wm-lay button:first-child { border-left: 0; }
.wm-lay button[aria-pressed="true"], .wm-lay button[aria-checked="true"] { background: var(--map-accent); color: var(--accent-ink); }
.wm-lay button:hover { color: var(--map-ink); }
.wm-lay button[aria-pressed="true"]:hover, .wm-lay button[aria-checked="true"]:hover { color: var(--accent-ink); }
@media (pointer: coarse) { .wm-lay button { min-height: 44px; } }
.wm-li { display: inline-flex; align-items: center; gap: 6px; }
.li-d i { display: inline-block; width: 120px; height: 10px; border-radius: 1px; }
.li-f i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 6px 1px currentColor; }
.li-n i, .li-s i { display: inline-block; width: 22px; height: 0; border-top: 2px solid; }
.li-s i { border-top-style: dashed; }
.wm-playhead { position: absolute; bottom: 17px; width: 2px; height: 50px; margin-left: -1px; background: var(--map-ink); opacity: 0.55; pointer-events: none; border-radius: 1px; }
.wm-kind[hidden] { display: none; }
.wm-lay { justify-content: flex-start; }
.wm-lay .wm-sp { margin-left: auto; }
.wm-front { font: 700 0.86rem/1 var(--font-sans); background: var(--map-surface); box-shadow: 0 0 0 1px var(--map-line); }
.wm-pill { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 3; pointer-events: none; font: 600 0.82rem/1 var(--font-sans); color: var(--map-ink); background: var(--map-surface); border: 1px solid var(--map-line); padding: 7px 11px; border-radius: var(--radius); white-space: nowrap; }
.li-w .wm-bands { display: inline-flex; margin: 0 4px; }
.li-w .wm-bands i { width: 12px; height: 10px; }
.li-fr i { display: inline-block; width: 22px; height: 0; border-top: 2px solid; }
.li-sw i { display: inline-block; width: 11px; height: 11px; }
/* the home map's first paint (a picture), under the live map until it has drawn */
.wm-ph { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.4s ease-out; }
.wm-ph img { display: block; width: 100%; height: 100%; }
.wm.gl .wm-ph, .wm.painted .wm-ph { opacity: 0; }
/* below the home hero: skip layout and paint of off-screen sections until they are near */
.hero ~ .wrap > section, .hero ~ .wrap > ul, .hero ~ .wrap > .sgrid { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* ---- county panel (map.js; the same blocks as /explore/'s panel, from place.js) ---- */
.wm { position: relative; }
.wm-panel { position: absolute; z-index: 6; top: 8px; right: 8px; width: min(340px, 46%); max-height: calc(100% - 16px); overflow: auto; background: #fff; color: #0F172A; border: 1px solid #E2E8F0; border-radius: 14px; box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.35); padding: 12px 14px; font: 0.92rem/1.45 var(--font-sans); }
.wm-panel-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wm-panel h2 { margin: 0 0 6px; padding: 0; border: 0; font: 700 1.1rem/1.25 var(--font-sans); }
.wm-panel h2:focus { outline: none; }
.wm-x { flex: none; width: 32px; height: 32px; border: 1px solid var(--map-line); border-radius: 999px; background: transparent; color: var(--map-ink); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.pl-facts { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0 0 8px; }
.pl-facts dt { color: var(--map-muted); }
.pl-facts dd { margin: 0; font-weight: 600; }
.pl-spark { display: block; width: 100%; height: 40px; }
.spark .bar { fill: var(--map-bar-low); }
.spark .bar.cur { fill: var(--map-accent); }
.pl-spark .bar { fill: var(--bluebird, #2563EB); }
.pl-spark .bar.low { fill: #E2E8F0; }
.pl-spark .bar.cur { fill: var(--chickadee, #0F172A); }
.wm-panel .ex-links { margin: var(--space-3) 0 0; }
.wm-back { position: absolute; z-index: 5; left: 8px; top: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--map-line); border-radius: 999px; background: var(--map-surface); color: var(--map-ink); font: 600 0.85rem var(--font-sans); cursor: pointer; }
.wm-back[hidden] { display: none; }
/* the state picker uses the site's select (base.css), as a pill like the other map controls */
.wm-stsel { margin: var(--space-3) 0 0; min-width: 13rem; border-radius: 999px; padding-left: 18px; }
@media (max-width: 699px) {
  .wm-panel { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 62vh; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 28px -12px rgba(0, 0, 0, 0.4); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* the panel docked beside the map (>= 1100px): the map narrows, the panel takes the right column; on
   the home hero it takes the text column's place */
.wm { transition: padding-right 0.3s ease; }
.wm.wm-docked { padding-right: 376px; }
.wm-panel.wm-panel-side { top: 0; right: 0; width: 360px; max-height: min(640px, calc(100vh - 32px)); animation: wm-slide 0.3s ease; }
.hero-in.wm-hero-open .hero-text { display: none; }
.wm-panel.wm-panel-hero { position: sticky; top: 16px; right: auto; width: auto; max-height: calc(100vh - 32px); animation: wm-slide 0.3s ease; }
@keyframes wm-slide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wm { transition: none; } .wm-panel { animation: none !important; } }
.ex-bird .th.av { display: inline-flex; align-items: center; justify-content: center; font: 700 0.78rem var(--font-sans); letter-spacing: 0.02em; border-radius: 10px; }
.ex-bird .th { border-radius: 10px; }
.pl-note { margin: 0 0 10px; padding: 8px 10px; border-radius: 10px; background: #FEF9C3; color: #0F172A; font-size: 0.88rem; }
/* bigger hit areas without changing the look: the week timeline reaches 10px past its edges, and each
   bar of a species chart (which sets the map's week on hover/tap) takes a transparent 6px stroke */
.wm-tl::before { content: ""; position: absolute; left: -4px; right: -4px; top: -10px; bottom: -10px; }
.chart .bar { stroke: transparent; stroke-width: 6px; }
/* national view: states; the tip says a click opens the state's counties */
.wm-tip .wm-tip-hint { display: block; margin-top: 2px; color: #2563EB; opacity: 1; font-size: 0.74rem; font-weight: 600; }
.wm-states .wm-svg { cursor: pointer; }
.ex-more { margin-top: 6px; padding: 6px 0; border: 0; background: none; color: var(--map-accent); font: 600 0.88rem var(--font-sans); cursor: pointer; }
.ex-more:hover { text-decoration: underline; }
.ex-more:focus-visible { outline: 2px solid var(--map-accent); outline-offset: 2px; border-radius: 4px; }
