/* Kim conference map — field atlas */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin-wght.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --field: #EDF2F0;
  --panel: #FFFFFF;
  --soft: #F6F9F8;
  --ink: #0D2B2A;
  --muted: #4B6362;
  --line: #CAD8D4;
  --land: #D9E5E1;
  --land-quiet: #E5ECE9;
  --border-land: #FFFFFF;
  --grat: #B9CBC6;
  --accent: #F2A900;
  --on-accent: #0D2B2A;
  --primary: #0F766E;
  --on-primary: #FFFFFF;
  --primary-soft: #DCEFEC;
  --bar-off: #C4D3CF;
  --on-cat: #FFFFFF;
  --dot-ring: #FFFFFF;
  --c-wl: #0F766E;
  --c-wb: #2563EB;
  --c-fa: #C2410C;
  --c-we: #4D7C0F;
  --c-pg: #BE185D;
  --c-mh: #0E7490;
  --c-mp: #475569;
  --shadow: 0 1px 2px rgba(13, 43, 42, .06), 0 8px 28px rgba(13, 43, 42, .08);
  --radius: 14px;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --field: #0B1B1F; --panel: #12292D; --soft: #0F2327; --ink: #E6F1EF; --muted: #9DB8B4;
    --line: #24454A; --land: #17383D; --land-quiet: #132F33; --border-land: #0B1B1F; --grat: #1E3E43;
    --on-accent: #0B1B1F; --primary: #2DD4BF; --on-primary: #0B1B1F; --primary-soft: #143D3E; --bar-off: #2B4D52;
    --on-cat: #0B1B1F; --dot-ring: #0B1B1F;
    --c-wl: #2DD4BF; --c-wb: #60A5FA; --c-fa: #FB923C; --c-we: #A3E635; --c-pg: #F472B6; --c-mh: #38BDF8; --c-mp: #A8B5C7;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --field: #0B1B1F; --panel: #12292D; --soft: #0F2327; --ink: #E6F1EF; --muted: #9DB8B4;
  --line: #24454A; --land: #17383D; --land-quiet: #132F33; --border-land: #0B1B1F; --grat: #1E3E43;
  --on-accent: #0B1B1F; --primary: #2DD4BF; --on-primary: #0B1B1F; --primary-soft: #143D3E; --bar-off: #2B4D52;
  --on-cat: #0B1B1F; --dot-ring: #0B1B1F;
  --c-wl: #2DD4BF; --c-wb: #60A5FA; --c-fa: #FB923C; --c-we: #A3E635; --c-pg: #F472B6; --c-mh: #38BDF8; --c-mp: #A8B5C7;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--field); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
a { color: var(--primary); }
button, input, select { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink);
  border-radius: 6px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--ink);
  font-weight: 600; font-size: .9375rem; cursor: pointer; text-decoration: none;
  transition: border-color .15s, background-color .15s;
}
.btn:hover { border-color: var(--primary); }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--primary); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--ink);
  font-size: .9375rem; font-weight: 500; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.chip .n { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8125rem; }
.chip[aria-pressed="true"] .n { color: var(--panel); opacity: .8; }
.chip svg { flex: none; }
.chip.zero { opacity: .55; }

/* Masthead */
.mast { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 6px; background: var(--field); color: var(--ink); }
.mast .kicker { margin: 0; }
.for { color: var(--muted); font-size: 1rem; margin-top: 10px; }
.mast-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Intro */
.intro { padding-top: 14px; padding-bottom: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end; }
.kicker { color: var(--primary); font-weight: 600; font-size: .8125rem; letter-spacing: .07em; text-transform: uppercase; }
h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem); font-weight: 760; letter-spacing: -.035em; line-height: .95; white-space: nowrap;
}
.titleblock { grid-column: 1; grid-row: 1; }
.lede { grid-column: 1; grid-row: 2; max-width: 46ch; margin-top: 14px; font-size: 1.125rem; line-height: 1.4; color: var(--ink); }
.stats { grid-column: 2; grid-row: 1 / span 2; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(120px, auto)); gap: 0; align-self: end;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { padding: 18px 22px; border-left: 1px solid var(--line); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat dt { font-size: .8125rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat dd { margin: 0; }
.stat .num { display: block; font-family: var(--display); font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; color: var(--ink); white-space: nowrap; }
.stat .cap { font-size: .8125rem; color: var(--muted); line-height: 1.3; margin-top: 2px; max-width: 18ch; }

/* Filters */
.filterzone { padding-bottom: 8px; }
.filters {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: grid; gap: 16px;
}
.sheet-head, .mbar-row { display: none; }
.frow { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; padding: 0; }
.hint { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.search { flex: 1 1 260px; }
.search input {
  width: 100%; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--soft); color: var(--ink);
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--soft); }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; min-height: 42px; padding: 0 14px; font-size: .9375rem; font-weight: 500; color: var(--ink); border-left: 1px solid var(--line); }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--ink); color: var(--panel); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; }
.more-btn[aria-expanded="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.more { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.more[hidden] { display: none; }
.stategrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: .9375rem; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; margin: 0; }
.check .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8125rem; }
.more-side { display: grid; gap: 18px; align-content: start; }
.watch { min-height: 44px; }
.watch > span { display: inline-flex; align-items: center; gap: 8px; }
.hollow { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; }

.phist { display: flex; align-items: flex-end; gap: 3px; height: 48px; padding: 0 9px; }
.phist span { flex: 1; background: var(--bar-off); border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s var(--ease), background-color .2s; }
.phist span.in { background: var(--primary); }
.dual { position: relative; height: 32px; margin-top: 2px; }
.dual input {
  position: absolute; left: 0; right: 0; top: 4px; width: 100%; margin: 0; height: 24px;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.dual input::-webkit-slider-runnable-track { height: 4px; background: var(--line); border-radius: 2px; }
.dual input + input::-webkit-slider-runnable-track { background: transparent; }
.dual input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: var(--panel); border: 3px solid var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.dual input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--panel); border: 3px solid var(--primary); cursor: grab; }
.dual input::-moz-range-track { background: transparent; }
.dual input:focus-visible { outline: none; box-shadow: none; }
.dual input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }
.dual input:focus-visible::-moz-range-thumb { outline: 3px solid var(--accent); outline-offset: 2px; }
#pOut { display: block; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }

.activerow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 0 6px; }
.active { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.active button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 8px 0 12px;
  border-radius: 999px; border: 1px solid var(--primary); background: var(--primary-soft); color: var(--ink);
  font-size: .875rem; font-weight: 500; cursor: pointer; position: relative;
}
.active button::after { content: ""; position: absolute; inset: -4px 0; }
.active .x { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--panel); font-size: .75rem; line-height: 1; }
.count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9375rem; }
.count b { color: var(--ink); }

/* Explore grid */
.explore { padding-top: 10px; padding-bottom: 40px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.stage { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.topicbar { margin-top: -6px; }
.topicl { font-size: .8125rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.topicbar .chips { gap: 6px; }
.topicbar .chip { min-height: 40px; padding: 0 11px; font-size: .84375rem; gap: 6px; }
.stage[data-view="list"] .topicbar, .stage[data-view="cal"] .topicbar { margin-top: 0; }
.stage[data-view="list"] > .nextup, .stage[data-view="cal"] > .nextup { display: none; }

.tabs { display: inline-flex; align-self: flex-start; margin-right: 8px; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.tabs button {
  min-height: 40px; min-width: 88px; padding: 0 16px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; font-size: .9375rem;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--panel); }
.panel[hidden] { display: none; }

/* Map */
.mapframe {
  position: relative; aspect-ratio: 960 / 600; width: 100%;
  background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
#map { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
#map.dragging { cursor: grabbing; }
.sea { fill: var(--field); }
.gratdot { fill: var(--grat); }
#land path { fill: var(--land); stroke: var(--border-land); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .3s var(--ease); }
#land path.has { cursor: pointer; }
#land path.quiet { fill: var(--land-quiet); }
#land path.has:hover { fill: var(--primary-soft); }
#land path.sel, #land path.sel:hover { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
#land path:focus-visible { outline: none; }

.city { cursor: pointer; }
.city .hit { fill: transparent; }
.city .mk {
  transform-box: view-box; transform: scale(var(--s, 0)); opacity: 1;
  transition: transform .42s var(--ease), opacity .3s var(--ease);
}
.city .mk path { stroke: var(--dot-ring); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.city text { font-family: var(--text); font-weight: 700; fill: var(--on-cat); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: opacity .3s; font-variant-numeric: tabular-nums; }
.city.off { pointer-events: none; }
.city.off .mk { transform: scale(0); opacity: 0; }
.city.off text { opacity: 0; }
.city:hover .mk path, .city.sel .mk path, .city:focus-visible .mk path { stroke: var(--accent); stroke-width: 3; }
.city:focus-visible { outline: none; }
.city .ring { fill: none; stroke: var(--accent); stroke-width: 3; opacity: 0; vector-effect: non-scaling-stroke; transition: opacity .2s; }
.city.sel .ring, .city:focus-visible .ring { opacity: 1; }
.cat-wl { fill: var(--c-wl); } .cat-wb { fill: var(--c-wb); } .cat-fa { fill: var(--c-fa); } .cat-we { fill: var(--c-we); }
.cat-pg { fill: var(--c-pg); } .cat-mh { fill: var(--c-mh); } .cat-mp { fill: var(--c-mp); }

.wdot { cursor: pointer; }
.wdot .hit { fill: transparent; }
.wdot circle.o { fill: var(--panel); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; transition: opacity .3s, transform .4s var(--ease); transform-box: fill-box; transform-origin: center; }
.wdot.off { pointer-events: none; }
.wdot.off circle.o { opacity: 0; transform: scale(0); }
.wdot:hover circle.o, .wdot:focus-visible circle.o { stroke: var(--accent); stroke-width: 3; }
#watchLayer.hide { display: none; }

.zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.zbtn {
  min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font-size: 1.25rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow);
}
.zbtn.reset { font-size: .8125rem; padding: 0 6px; }
.zbtn:hover { border-color: var(--primary); }
.tip {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  background: var(--ink); color: var(--panel); padding: 6px 10px; border-radius: 8px;
  font-size: .8125rem; font-weight: 600; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px));
  box-shadow: var(--shadow);
}
.tip span { font-weight: 400; opacity: .85; }
.maphint { position: absolute; left: 14px; bottom: 10px; font-size: .8125rem; color: var(--muted); background: var(--field); padding: 2px 8px; border-radius: 6px; }

.legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8125rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend li[hidden] { display: none; }

/* Scrubber: the signature */
.scrub { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 14px; }
.scrub-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.winlabel { font-family: var(--display); font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.winlabel .dim { color: var(--muted); font-weight: 500; font-size: 1rem; letter-spacing: 0; margin-left: 6px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.track { position: relative; height: 156px; margin: 0 4px; touch-action: none; }
.bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); }
.mbar {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch;
  height: 100%; padding: 0 3px; border: 0; background: none; cursor: pointer; color: var(--ink); min-width: 0;
}
.mbar .n { font-size: .75rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); margin-bottom: 3px; transition: color .2s; }
.mbar .b { display: block; height: calc(var(--h, 0) * 88px + 2px); border-radius: 4px 4px 0 0; background: var(--bar-off); transition: height .42s var(--ease), background-color .25s; }
.mbar .m { display: block; height: 40px; padding-top: 8px; text-align: center; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.mbar .m b { display: block; font-weight: 700; color: var(--ink); font-size: .6875rem; line-height: 1; margin-top: 1px; }
.mbar.in .b { background: var(--primary); }
.mbar.in .n { color: var(--ink); }
.mbar:hover .b { background: var(--muted); }
.mbar.in:hover .b { background: var(--ink); }
.mbar:focus-visible { outline-offset: -2px; }
.band {
  position: absolute; top: 0; bottom: 40px; left: 0; width: 100%; pointer-events: none;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-left: 2px solid var(--accent); border-right: 2px solid var(--accent);
  transition: left .42s var(--ease), width .42s var(--ease);
}
.track.live .band, .track.live .handle { transition: none; }
.handle {
  position: absolute; top: -6px; bottom: 34px; width: 44px; margin-left: -22px; cursor: ew-resize; z-index: 2;
  touch-action: none; transition: left .42s var(--ease); border-radius: 8px;
}
.handle::before {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 16px; height: 30px; border-radius: 6px; background: var(--accent); border: 2px solid var(--on-accent);
}
.handle::after {
  content: ""; position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%);
  width: 6px; height: 12px; border-left: 2px solid var(--on-accent); border-right: 2px solid var(--on-accent);
}
.handle:focus-visible { outline: none; box-shadow: none; }
.handle:focus-visible::before { outline: 3px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 5px var(--ink); }
.handle:hover::before, .handle.grab::before { transform: translateX(-50%) scale(1.12); }
.scrub-hint { font-size: .8125rem; color: var(--muted); margin-top: 8px; }

/* Next up */
.nextup { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.uplist { list-style: none; margin: 12px 0 14px; padding: 0; }
.uplist li { border-top: 1px solid var(--line); }
.uplist li:first-child { border-top: 0; }
.uprow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 10px 0; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; min-height: 44px; }
.uprow:hover .ev-name { text-decoration: underline; text-underline-offset: 3px; }
.datechip { display: grid; justify-items: center; line-height: 1.05; padding: 6px 0; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
.datechip .mo { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.datechip .dy { font-family: var(--display); font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ev-name { font-weight: 600; display: block; }
.ev-meta { font-size: .875rem; color: var(--muted); display: block; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { color: var(--muted); padding: 24px 4px; }

/* Shapes inline */
.sh { width: 14px; height: 14px; flex: none; }
.sh path { stroke: var(--dot-ring); stroke-width: .25; }

/* List */
.listview { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tbl th { text-align: left; font-size: .8125rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: var(--soft); border-bottom: 1px solid var(--line); padding: 0; position: sticky; top: 0; z-index: 1; }
.tbl th button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 0 12px; background: none; border: 0; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; text-align: left; }
.tbl th.r button { justify-content: flex-end; }
.tbl th .thl { display: block; padding: 0 12px; }
.tbl th button::after { content: ""; width: 0; height: 0; border: 4px solid transparent; opacity: 0; }
.tbl th[aria-sort="ascending"] button::after { border-bottom-color: currentColor; border-top-width: 0; opacity: 1; }
.tbl th[aria-sort="descending"] button::after { border-top-color: currentColor; border-bottom-width: 0; opacity: 1; }
.tbl th[aria-sort="ascending"], .tbl th[aria-sort="descending"] { color: var(--ink); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r { text-align: right; }
.tbl .nm { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-align: left; cursor: pointer; line-height: 1.35; min-height: 24px; }
.tbl .nm:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--primary); }
.tbl .org { display: block; font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .ptxt { display: block; font-size: .75rem; color: var(--muted); max-width: 22ch; margin-left: auto; line-height: 1.3; margin-top: 2px; }
.tbl .catc { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; }
.tbl .tag { display: inline-block; font-size: .6875rem; font-weight: 600; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 4px; color: var(--muted); }
.tbl a { font-weight: 600; white-space: nowrap; display: inline-flex; min-height: 24px; align-items: center; }

/* Calendar */
.calview { display: grid; gap: 18px; }
.calmonth { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.calmonth h3 { font-size: 1.25rem; display: flex; align-items: baseline; gap: 10px; }
.calmonth h3 span { font-family: var(--text); font-size: .875rem; color: var(--muted); font-weight: 500; }
.calmonth ol { list-style: none; margin: 10px 0 0; padding: 0; }
.calmonth li { border-top: 1px solid var(--line); }
.calmonth li:first-child { border-top: 0; }

/* Assess */
.assess { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 8px; box-shadow: var(--shadow); }
.assess > h2 { font-size: 1.375rem; }
.sum { color: var(--muted); margin-top: 6px; }
.block { padding: 18px 0; border-top: 1px solid var(--line); }
.assess > .sum + .block { margin-top: 14px; }
.block h3 { margin-bottom: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.big { display: grid; }
.big > span:first-child { font-family: var(--display); font-size: 1.5rem; white-space: nowrap; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.cap { font-size: .8125rem; color: var(--muted); }
.verdict { margin: 12px 0 10px; font-weight: 600; }
.hbars { display: grid; gap: 5px; }
.hb { display: grid; grid-template-columns: 82px minmax(0, 1fr) 30px; align-items: center; gap: 8px; font-size: .8125rem; }
.hb .l { color: var(--muted); font-variant-numeric: tabular-nums; }
.hb .t { height: 10px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.hb .f { display: block; height: 100%; background: var(--primary); border-radius: 3px; transform-origin: left; transition: width .42s var(--ease); }
.hb .c { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.mix { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--soft); gap: 2px; }
.mix span { display: block; height: 100%; transition: flex-grow .42s var(--ease); min-width: 0; }
.mixkey { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: .8125rem; }
.mixkey li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.mixkey .c { font-variant-numeric: tabular-nums; color: var(--muted); }
.mixkey li.zero { opacity: .5; }
.months { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 3px; align-items: end; height: 64px; }
.months span { display: block; background: var(--primary); border-radius: 2px 2px 0 0; min-height: 2px; transition: height .42s var(--ease); }
.months span.zero { background: var(--line); }
.months + .cap { margin-top: 6px; }
.topcities { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.topcities button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; width: 100%; min-height: 40px; padding: 4px 0; background: none; border: 0; color: var(--ink); cursor: pointer; text-align: left; align-items: center; }
.topcities .nm { font-weight: 600; }
.topcities .bar { grid-column: 1 / -1; height: 4px; background: var(--soft); border-radius: 2px; overflow: hidden; margin-top: -2px; }
.topcities .bar i { display: block; height: 100%; background: var(--primary); transition: width .42s var(--ease); }
.topcities button:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.topcities .c { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .875rem; }
.clusters { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.clusters button { width: 100%; text-align: left; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--ink); cursor: pointer; }
.clusters button:hover { border-color: var(--primary); }
.clusters b { display: block; font-weight: 600; }
.clusters span { display: block; font-size: .8125rem; color: var(--muted); }

/* How to */
.howto { padding-bottom: 32px; }
.howto details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.howto summary { cursor: pointer; padding: 0 20px; min-height: 56px; display: flex; align-items: center; font-family: var(--display); font-weight: 650; font-size: 1.125rem; list-style: none; }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--muted); font-weight: 400; }
.howto details[open] summary::after { content: "\2212"; }
.howto ul { margin: 0; padding: 0 20px 18px 40px; display: grid; gap: 6px; max-width: 80ch; }
.foot { padding-bottom: 40px; color: var(--muted); font-size: .875rem; }

/* Drawer */
.drawer {
  position: fixed; z-index: 30; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: var(--panel); color: var(--ink); border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(0, 0, 0, .14); display: flex; flex-direction: column;
  transform: translateX(0); transition: transform .32s var(--ease);
}
.drawer.closing { transform: translateX(105%); }
.drawer[hidden] { display: none; }
.dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.dhead h2 { font-size: 1.5rem; }
.dsub { color: var(--muted); font-size: .9375rem; margin-top: 4px; }
.dbody { overflow-y: auto; padding: 6px 22px 28px; overscroll-behavior: contain; }
.ev { padding: 18px 0; border-top: 1px solid var(--line); }
.ev:first-child { border-top: 0; }
.ev h3 { font-size: 1.125rem; line-height: 1.25; }
.ev .cat { display: flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.ev dl { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 6px 12px; margin: 12px 0 14px; font-size: .9375rem; }
.ev dt { color: var(--muted); font-size: .8125rem; padding-top: 2px; }
.ev dd { margin: 0; overflow-wrap: anywhere; }
.ev .fee { display: block; font-size: .8125rem; color: var(--muted); }
.ev .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ev .acts .btn { font-size: .875rem; padding: 0 12px; }
.ev .nopx { display: inline-block; font-size: .8125rem; font-weight: 600; border: 1px dashed var(--muted); border-radius: 6px; padding: 1px 8px; color: var(--ink); }
.ev.off { opacity: .6; }
.dnote { font-size: .875rem; color: var(--muted); padding: 14px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 40;
  background: var(--ink); color: var(--panel); padding: 10px 18px; border-radius: 10px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.fatal { padding: 24px; background: var(--accent); color: var(--on-accent); }

/* Entrance */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.intro > * { animation: rise .6s var(--ease) both; }
.intro > h1 { animation-delay: .05s; }
.intro > .lede { animation-delay: .12s; }
.intro > .stats { animation-delay: .2s; }

/* Medium */
@media (max-width: 1180px) {
  .intro { grid-template-columns: 1fr; }
  .stats { grid-column: 1; grid-row: 3; margin-top: 20px; justify-self: start; }
  .grid { grid-template-columns: 1fr; }
  .assess { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .assess > h2, .assess > .sum { grid-column: 1 / -1; }
  .assess > .sum + .block { margin-top: 0; }
  .assess > .sum { margin-bottom: 14px; }
}

/* Mobile */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .mast { flex-wrap: wrap; padding-top: 10px; gap: 4px 12px; }
  .mast .kicker { flex: 1 1 100%; }
  .mast-actions { justify-content: flex-start; }
  .mast .btn { min-height: 44px; padding: 0 10px; font-size: .8125rem; }
  .intro { padding-top: 10px; padding-bottom: 18px; grid-template-columns: 1fr; }
  h1 { white-space: normal; font-size: 2.5rem; }
  .for { margin-top: 6px; font-size: .9375rem; }
  .lede { grid-column: 1; font-size: 1.0625rem; margin-top: 12px; }
  .stats { grid-column: 1; grid-row: 3; }
  .topicbar .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; }
  .topicbar .chip { min-height: 44px; flex: none; }
  .activerow { gap: 10px; }
  .stats { grid-template-columns: 1fr 1fr; width: 100%; }
  .stat { padding: 14px 16px; border-left: 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat .num { font-size: 1.75rem; }
  .mbar-row { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 12; background: var(--field); padding: 8px 0; }
  .mcount { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
  .badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--primary); color: var(--on-primary); font-size: .75rem; }
  .badge[hidden] { display: none; }
  .filterzone { padding-bottom: 0; }
  .filters {
    position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto;
    border-radius: 18px 18px 0 0; border-bottom: 0; padding: 0 16px 24px;
    transform: translateY(105%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .2); overscroll-behavior: contain;
  }
  .filters.open { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--panel); padding: 14px 0 10px; z-index: 1; border-bottom: 1px solid var(--line); }
  .scrim { position: fixed; inset: 0; z-index: 24; background: rgba(5, 15, 17, .45); }
  .scrim[hidden] { display: none; }
  .more-btn { display: none; }
  .more, .more[hidden] { display: grid; grid-template-columns: 1fr; }
  .stategrid { grid-template-columns: 1fr 1fr; }
  .frow { gap: 14px; }
  .seg { display: flex; width: 100%; }
  .seg label { flex: 1; }
  .seg span { justify-content: center; text-align: center; padding: 0 6px; font-size: .875rem; line-height: 1.15; min-height: 44px; }
  .activerow .count { display: none; }
  .activerow #csvBtn { width: 100%; }
  .activerow:not(:has(li)) { padding-top: 6px; }
  .tabs { flex: 1 1 100%; margin-right: 0; order: -1; }
  .tabs button { flex: 1; min-width: 0; min-height: 44px; }
  .mapframe { border-radius: 12px; }
  .maphint { display: none; }
  .zoom { right: 8px; top: 8px; flex-direction: row; }
  .zoom .zbtn { min-width: 44px; min-height: 44px; }
  .scrub { padding: 14px 12px 12px; }
  .track { height: 136px; margin: 0; }
  .mbar { padding: 0 1px; }
  .mbar .n { font-size: .6875rem; }
  .mbar .b { height: calc(var(--h, 0) * 74px + 2px); }
  .mbar .m { font-size: .625rem; letter-spacing: -.02em; }
  .winlabel { font-size: 1.25rem; }
  .grid { gap: 18px; }
  .assess { display: block; padding: 18px 16px 4px; }
  .uprow { grid-template-columns: 52px minmax(0, 1fr); }
  .uprow .price { grid-column: 2; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl td { border: 0; padding: 2px 0; }
  .tbl td.r { text-align: left; }
  .tbl td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: .8125rem; }
  .tbl .ptxt { margin-left: 0; max-width: none; }
  .tbl td.lk a, .tbl .nm { min-height: 44px; }
  .drawer { top: auto; left: 0; width: 100%; max-height: 82vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -18px 40px rgba(0, 0, 0, .2); }
  .drawer.closing { transform: translateY(105%); }
  .dhead { padding: 16px 16px 12px; }
  .dbody { padding: 4px 16px 24px; }
  .ev dl { grid-template-columns: 74px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.legend:not(:has(li:not([hidden]))) { display: none; }
