:root {
  --bg: #e9dfc6; --surface: #f2ead6; --ink: #2b2723; --muted: #716957; --line: #c8bd9f;
  --accent: #7a5c14; --olive: #b08a2e; --olive-ink: #7a5c14;
  --map-bg: #efe7d0; --land: #d0c6ab; --land-line: #efe7d0;
  --callout-bg: rgba(242,234,214,.9); --callout-line: rgba(122,92,20,.5);
  --warn-bg: #f3e4b8; --warn-ink: #5e4510; --cream: #f4ecd6;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --display: "Futura", "Avenir Next", "Century Gothic", "Trebuchet MS", ui-sans-serif, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151a; --surface: #1a1e25; --ink: #ece4cf; --muted: #9a9484; --line: #333943;
    --accent: #d9b45a; --olive: #d0a94a; --olive-ink: #e2c777;
    --map-bg: #151a21; --land: #2a313b; --land-line: #151a21;
    --callout-bg: rgba(26,30,37,.9); --callout-line: rgba(208,169,74,.5);
    --warn-bg: #2d2411; --warn-ink: #f0d58a; --cream: #ece4cf;
  }
}
:root[data-theme="dark"] {
  --bg: #12151a; --surface: #1a1e25; --ink: #ece4cf; --muted: #9a9484; --line: #333943;
  --accent: #d9b45a; --olive: #d0a94a; --olive-ink: #e2c777;
  --map-bg: #151a21; --land: #2a313b; --land-line: #151a21;
  --callout-bg: rgba(26,30,37,.9); --callout-line: rgba(208,169,74,.5);
  --warn-bg: #2d2411; --warn-ink: #f0d58a; --cream: #ece4cf;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font);
  display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden;
}
a { color: var(--accent); }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

header.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 12px 16px 0; flex-wrap: wrap; }
.brand h1 { font: 600 clamp(22px, 4vw, 30px)/1.1 var(--serif); margin: 0; letter-spacing: -.01em; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 2px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 8px 14px; cursor: pointer; color: var(--muted); font-weight: 600; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--olive); }

.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
#q { flex: 1 1 200px; min-width: 0; max-width: 320px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); display: inline-flex; gap: 6px; align-items: center; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.field { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.field select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.field.check { cursor: pointer; }
.count { margin-left: auto; font-size: 12px; color: var(--muted); }

main#views { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.view { flex: 1; min-height: 0; }
.view[hidden] { display: none; }
#view-map:not([hidden]) { display: flex; flex-direction: column; }
.stage { flex: 1; min-height: 280px; display: flex; position: relative; }
.mapwrap { position: relative; flex: 1; min-width: 0; background: var(--map-bg); overflow: hidden; }
#map { position: absolute; inset: 0; background: var(--map-bg); font-family: var(--font); }
#stems { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 650; }
#stems line { stroke: var(--olive); stroke-width: 1.5; }
#stems line.sel { stroke-width: 2.5; }
#callouts { position: absolute; inset: 0; pointer-events: none; z-index: 660; }
.callout {
  position: absolute; pointer-events: auto; cursor: pointer; text-align: left;
  background: var(--callout-bg); border: 1px solid var(--callout-line); border-radius: 4px;
  padding: 6px 9px; overflow: hidden; backdrop-filter: blur(2px);
}
.callout b { display: block; font-size: 13px; line-height: 1.2; margin-bottom: 2px; }
.callout span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.callout small { color: var(--olive-ink); font-weight: 600; }
.callout[aria-current="true"] { border-color: var(--olive); box-shadow: 0 0 0 2px var(--olive); }
.maptools { position: absolute; right: 10px; top: 10px; z-index: 700; }
.maptools button, .tlbtns button {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; min-width: 32px;
}

.pin { background: none; border: 0; }
.pin svg { display: block; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); cursor: pointer; }
.pin .ring { fill: var(--olive); }
.pin .hole { fill: #fff; }
.pin.hollow .ring { fill: #fff; stroke: var(--olive); stroke-width: 3; }
.pin.hollow .hole { fill: var(--olive); }
.pin.sel svg { filter: drop-shadow(0 0 0 #000) drop-shadow(0 0 4px var(--olive)); }
.pin.sel .ring { stroke: #fff; stroke-width: 2; }
.cluster { background: var(--olive); color: #fff; border-radius: 50%; border: 2px solid #fff; font: 700 12px/1 var(--font); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.4); cursor: pointer; }
.leaflet-control-attribution { font-size: 10px; }

.panel {
  width: 380px; max-width: 45%; overflow: auto; background: var(--surface); border-left: 1px solid var(--line); padding: 0 16px 18px;
}
.panel[hidden] { display: none; }
.panel .close { flex: none; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 2px; }
.panel .close:hover { color: var(--ink); }
.phead { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; gap: 12px; margin: 0 -16px 10px; padding: 14px 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.phead h2, .chead h2 { flex: 1; min-width: 0; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12.5px; color: var(--muted); align-items: center; margin-bottom: 8px; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.badge.cat { color: #fff; border-color: transparent; background: var(--c); }
.badge.primary { background: #e8f3e8; color: #1c5a1c; border-color: #bcd9bc; }
.badge.secondary { background: var(--warn-bg); color: var(--warn-ink); border-color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.primary { background: #1a2e1a; color: #a9dca9; border-color: #2f5030; } }
.score { font-weight: 700; color: var(--olive-ink); }
.panel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 4px; }
.panel p { margin: 4px 0; }
.caveat { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; margin: 10px 0; }
.srcs { list-style: none; padding: 0; margin: 0; }
.srcs li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.srcs .sub { color: var(--muted); font-size: 12px; display: block; }
.role { font-size: 10.5px; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; background: var(--line); margin-right: 6px; }
.role.primary { background: var(--olive); color: #fff; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; text-align: left; }
.related { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }

/* timeline */
.timeline { border-top: 1px solid var(--line); background: var(--surface); padding: 6px 12px 8px; }
.tlbar { display: flex; align-items: center; gap: 12px; font-size: 12.5px; padding: 2px 0 6px; }
.tllabel { font-weight: 700; }
.tlhint { color: var(--muted); }
.tlbtns { margin-left: auto; display: flex; gap: 4px; }
.tlsvgwrap { height: 140px; touch-action: none; user-select: none; cursor: grab; }
.tlsvgwrap:active { cursor: grabbing; }
#tl { width: 100%; height: 100%; display: block; }
#tl text { font-family: var(--font); }
#tl .seglabel { fill: #fff; font-weight: 700; font-size: 17px; pointer-events: none; }
#tl .divider { fill: var(--olive); }
#tl .mk { cursor: pointer; }
#tl .mk circle { fill: var(--olive); stroke: #fff; stroke-width: 1.5; }
#tl .mk.sel circle { fill: var(--ink); stroke: var(--olive); stroke-width: 3; }
#tl .mk line, #tl .mk .span { stroke: var(--olive); stroke-width: 1; }
#tl .mk .span { stroke-width: 4; stroke-linecap: round; opacity: .8; }
#tl .mk text { fill: var(--ink); font-size: 12px; }
#tl .mk.sel text { font-weight: 700; }
#tl .mk:focus-visible circle { stroke: var(--accent); stroke-width: 3; }
#tl .mk:focus { outline: none; }

/* list + about */
.view#view-about { overflow: auto; padding: 8px 16px 40px; }
#view-list { position: relative; }
#view-list:not([hidden]) { display: flex; }
.listcol { flex: 1; min-width: 0; overflow: auto; padding: 8px 16px 40px; }
.inner { max-width: 820px; margin: 0 auto; }
.year { font: 600 20px/1 var(--serif); color: var(--muted); margin: 26px 0 10px; display: flex; gap: 12px; align-items: center; }
.year::after { content: ""; flex: 1; height: 1px; background: var(--line); }
article.card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px; }
article.card h3 { margin: 2px 0 4px; font: 600 16px/1.3 var(--serif); }
article.card p { margin: 4px 0; }
.about h2 { font: 600 20px/1.2 var(--serif); margin: 26px 0 8px; }
.about ul { padding-left: 20px; }
.about table { border-collapse: collapse; width: 100%; font-size: 14px; }
.about td, .about th { text-align: left; padding: 5px 8px; border-top: 1px solid var(--line); vertical-align: top; }

.filters:not(.open) .chips, .filters:not(.open) .field { display: none; }
#ftoggle { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
@media (max-width: 760px) {
  #ftoggle { display: inline-block; }
  .filters:not(.open) .chips, .filters:not(.open) .field { display: none; }
  .filters { padding: 8px 12px; }
  .brand p { display: none; }
  .leaflet-top.leaflet-left { display: none; }
  .stage { min-height: 200px; }
  .stage { flex-direction: column; }
  .panel { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 62%; border-left: 0; border-top: 1px solid var(--line); z-index: 1000; box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
  .tlhint { display: none; }
  .callout span { -webkit-line-clamp: 2; }
  .count { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

path.land { fill: var(--land); stroke: var(--land-line); fill-opacity: 1; }
.maptools { display: flex; gap: 6px; }
path.state { stroke: var(--land-line); stroke-width: 1; fill: none; }

/* ---- vintage space-program styling ---- */
header.top { position: relative; padding-left: 56px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
header.top::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; opacity: .55;
  background: radial-gradient(circle, var(--ink) 1.3px, transparent 1.6px) 0 0 / 6px 6px;
}
.brand h1 { font: 500 clamp(20px, 3.6vw, 30px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .34em; }
.brand h1 .lead { color: var(--olive); }
.brand h1::after { content: ""; display: block; width: 34px; height: 0; border-top: 2px solid var(--ink); margin-top: 8px; box-shadow: 44px 0 0 0 var(--ink); opacity: .75; }
.brand p { font: 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .14em; margin-top: 8px; }
.tabs button, .chip, .field, .count, .tlbar, .maptools button, .tlbtns button, #ftoggle {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px;
}
.tabs button { font-weight: 600; letter-spacing: .16em; }
.chip { border-radius: 0; font-weight: 500; }
#q, .field select { border-radius: 0; font-family: var(--mono); font-size: 12px; }
.maptools button, .tlbtns button, #ftoggle { border-radius: 0; background: transparent; border: 1px solid var(--ink); padding: 6px 12px; }
.maptools button:hover, .tlbtns button:hover { background: var(--ink); color: var(--bg); }
.callout { border-radius: 0; font-family: var(--mono); background: var(--callout-bg); }
.callout b { font: 600 11.5px/1.25 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.callout small { font-size: 10px; letter-spacing: .06em; }
.callout span { font-size: 10.5px; }
.panel { border-left: 1px solid var(--ink); background: var(--surface); }
.panel h2 { font: 500 17px/1.3 var(--display); text-transform: uppercase; letter-spacing: .07em; }
.panel h3 { font-family: var(--mono); letter-spacing: .14em; }
.badge { border-radius: 0; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.caveat { border-radius: 0; border-left: 3px solid var(--olive); }
.timeline { background: var(--surface); border-top: 1px solid var(--ink); }
#tl .seglabel { fill: var(--cream); font-family: var(--display); font-weight: 500; letter-spacing: .12em; font-size: 16px; }
#tl .mk text { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; }
.year { font: 500 18px/1 var(--display); letter-spacing: .2em; }
article.card { border-radius: 0; }
article.card h3, .about h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; }
.about h2 { font-size: 17px; }
.cluster { font-family: var(--mono); }
@media (max-width: 760px) { header.top { padding-left: 52px; } }

.lrow { display: grid; grid-template-columns: 8px 9.5em 1fr 1.6em; gap: 10px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 4px; cursor: pointer; font: inherit; color: inherit; }
.lrow:hover { background: var(--surface); }
.lrow[aria-current="true"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--olive); }
.lrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); align-self: center; }
.lrow .ld { font: 11px/1.3 var(--mono); letter-spacing: .04em; color: var(--muted); }
.lrow .lt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .ls { font: 700 11px/1 var(--mono); color: var(--olive-ink); text-align: right; }
.more { display: block; margin: 16px auto; background: transparent; border: 1px solid var(--ink); padding: 8px 14px; cursor: pointer; font: 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.empty { color: var(--muted); padding: 16px 4px; }
@media (max-width: 760px) { .lrow { grid-template-columns: 8px 1fr 1.6em; } .lrow .ld { grid-column: 2; } .lrow .lt { grid-column: 2; white-space: normal; } .lrow .ls { grid-row: 1; grid-column: 3; } }

#tl .seg { cursor: pointer; }
#tl .seg:hover { filter: brightness(1.12); }
.tlpresets { display: flex; gap: 4px; flex-wrap: wrap; }
.tlpreset { font: inherit; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 4px 9px; border-radius: 0; cursor: pointer; }
.tlpreset:hover { background: var(--ink); color: var(--bg); }
.tlpreset.on { background: var(--olive); border-color: var(--olive); color: #fff; }
@media (max-width: 700px) { .tlbar { flex-wrap: wrap; } .tlpresets { order: 3; width: 100%; } }

#tl .cl { cursor: pointer; }
#tl .cl circle { fill: var(--ink); stroke: var(--olive); stroke-width: 2.5; }
#tl .cl text { fill: #fff; font: 700 11px var(--mono); pointer-events: none; }
#tl .cl:hover circle { fill: var(--olive); stroke: var(--ink); }
#tl .cl:focus { outline: none; }
#tl .cl:focus-visible circle { stroke: var(--accent); stroke-width: 3.5; }
#tl .segcount { fill: var(--cream); opacity: .85; font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }

.cluster.has-sel { background: var(--ink); border-color: var(--olive); }
#tl .cl.sel circle { fill: var(--olive); stroke: var(--ink); stroke-width: 3; }
.grp { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.grpitem { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.grpitem:hover { border-color: var(--olive); background: rgba(176,138,46,.12); }
.grpitem small { color: var(--muted); }

#tltoggle { width: auto; }
.timeline.collapsed .tlsvgwrap, .timeline.collapsed .tlhint, .timeline.collapsed .tlpresets, .timeline.collapsed #zin, .timeline.collapsed #zout, .timeline.collapsed #zreset { display: none; }
.timeline.collapsed { padding-bottom: 2px; }
@media (max-width: 700px) { #zin, #zout { display: none; } .tlbar { gap: 6px 10px; } .tlpreset { padding: 5px 8px; } }

/* ---- short screens (phones in landscape): keep map, timeline and controls all on screen ---- */
#callouts.compact .callout span { display: none; }
#callouts.compact .callout { padding: 4px 8px; }
@media (max-height: 520px) {
  header.top { padding-top: 4px; padding-bottom: 0; flex-wrap: nowrap; align-items: center; padding-left: 48px; }
  header.top::before { top: 9px; left: 14px; width: 18px; height: 18px; }
  .brand h1 { font-size: 16px; letter-spacing: .26em; }
  .brand h1::after, .brand p { display: none; }
  .tabs button { padding: 6px 12px; }
  #ftoggle { display: inline-block; padding: 4px 10px; }
  .filters { padding: 5px 12px; gap: 6px 10px; flex-wrap: nowrap; }
  .filters:not(.open) .chips, .filters:not(.open) .field { display: none; }
  .filters.open { flex-wrap: wrap; max-height: 55vh; overflow-y: auto; }
  #q { padding: 4px 8px; }
  .count { margin-left: auto; width: auto; white-space: nowrap; }
  .stage { min-height: 0; }
  .timeline { padding: 2px 12px 4px; }
  .tlsvgwrap { height: 84px; }
  .tlhint { display: none; }
  .tlbar { padding: 0 0 3px; flex-wrap: nowrap; }
  .tlpreset, .tlbtns button { padding: 3px 8px; }
  .leaflet-top.leaflet-left { display: none; }
}

.timeline:not(.collapsed) #tltoggle { display: none; }  /* only offered as "Show timeline" while a card has it collapsed */

#tl .segcount { opacity: 1; font-weight: 700; font-size: 11px; fill: #fff; }
#tl .seglabel { fill: #fff; }

/* timeline group badges: light disc, dark number, readable on the dark bar */
#tl .cl circle { fill: #fbf5e4; stroke: var(--olive); stroke-width: 2.5; }
#tl .cl text { fill: #1f1c17; font: 700 13px var(--mono); }
#tl .cl:hover circle { fill: var(--olive); stroke: #fbf5e4; }
#tl .cl:hover text { fill: #fff; }
#tl .cl.sel circle { fill: var(--olive); stroke: #fbf5e4; stroke-width: 3; }
#tl .cl.sel text { fill: #fff; }

.maptools { align-items: stretch; }
.maptools .follow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--ink); background: var(--bg); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.winbar { padding: 8px 12px; margin: 0 0 8px; border: 1px solid var(--olive); background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; }
@media (max-width: 700px) { .maptools .follow { padding: 4px 7px; font-size: 10px; } }

.tlbar .follow { display: inline-flex; align-items: center; gap: 6px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; white-space: nowrap; border: 0; background: none; padding: 0; }
@media (max-width: 700px) { .tlbar .follow { font-size: 10px; } }
@media (max-height: 520px) { .tlbar .follow { display: none; } }
.tllabel, .tlhint { white-space: nowrap; }

/* about overview */
.about h3{margin:14px 0 6px;font-size:15px}
.about .bars{display:grid;gap:4px;margin:4px 0 8px}
.about .bar{display:grid;grid-template-columns:minmax(120px,38%) 1fr 2.5em;gap:8px;align-items:center;font-size:13px}
.about .bar i{display:block;height:10px;width:var(--w);min-width:2px;background:var(--muted);border-radius:2px}
.about .bar b{text-align:right}
.about .sub{color:var(--muted);font-size:13px}

/* list groupings */
.field.group { display: flex; gap: 6px; align-items: center; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field.group select { font: inherit; text-transform: none; letter-spacing: 0; padding: 3px 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 3px; }
.gbar { font-size: 13px; color: var(--muted); margin: 6px 0 4px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
details.lgrp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 18px 0 8px; position: sticky; top: 0; background: var(--bg); z-index: 1; }
details.lgrp > summary::-webkit-details-marker { display: none; }
details.lgrp > summary .year { flex: 1; margin: 0; }
details.lgrp > summary::before { content: "\25BE"; color: var(--muted); font-size: 16px; line-height: 1; transition: transform .15s; }
details.lgrp:not([open]) > summary::before { transform: rotate(-90deg); }
details.lgrp > summary .gcount { font-size: 12px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--olive, #b08d2e); padding: 0 6px; }

/* region label under a map group */
.cluster { position: relative; }
.cluster .clabel { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 10px/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; pointer-events: none; }
.cluster .clabel.above { top: auto; bottom: calc(100% + 3px); }
.field[hidden] { display: none; }

/* Text copy of an event for crawlers and screen readers on /event/<id>/; the app removes it once it loads. */
.seo-static { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
