/* kiez — Stipple identity. Tokens and rules: DESIGN.md · brand book: /lab/brand.html */
:root {
  --bg: #1a0e17; --surface: #241420; --surface-2: #2e1a2a; --line: #3a2436;
  --fg: #f7ebf1; --muted: #b195a5;
  --rose: #ff7aa6; --peach: #ffc2a8; --lilac: #b48cff;
  --accent: var(--rose); --accent-fg: #1a0e17;
  --sans: 'Geologica', system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --top: 60px;
  --stipple-bg: var(--bg);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f7f2f6; --surface: #ffffff; --surface-2: #efe7ee; --line: #e6d9e3; --fg: #241420; --muted: #6e5568;
    --rose: #c2336b; --peach: #a34a2d; --lilac: #6e4fd6; --accent-fg: #ffffff; color-scheme: light; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--rose); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 8px; }
.sharp { font-variation-settings: "SHRP" 100; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr:focus-visible { width: auto; height: auto; clip-path: none; padding: 6px 10px; border-radius: 99px; background: var(--surface); font-size: 13px; }
canvas[data-stipple] { display: block; }

/* ---------- icons (7×7 dot grid, see lib/icons.js) ---------- */
.ic { display: inline-block; width: 20px; height: 20px; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ic circle { fill: currentColor; opacity: .8; transition: opacity .25s var(--ease); transition-delay: calc(var(--d) * 22ms); }
a:hover .ic circle, button:hover .ic circle, :focus-visible .ic circle { opacity: 1; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); background: var(--bg); }
.mark { display: inline-flex; align-items: flex-end; gap: .05em; font: 700 28px/1 var(--sans); font-variation-settings: "SHRP" 100; letter-spacing: -.045em; }
.mark canvas { width: .5em; height: .5em; border-radius: 50%; margin-bottom: 0; }
.top-r { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }
.top-r a:hover, .top-r button:hover { color: var(--fg); }
.clock { font-variant-numeric: tabular-nums; }
.saved-link b { margin-left: 5px; color: var(--rose); font-weight: 600; font-variant-numeric: tabular-nums; }
.saved-link b:empty { display: none; }
.map-toggle { display: none; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- agenda layout ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 40%); }
.list { min-width: 0; padding: 0 var(--pad) 40px; }
.band { position: relative; display: flex; align-items: center; height: 96px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow: hidden; }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.band span { position: relative; padding: 11px 18px; border-radius: 999px; background: var(--bg); font-size: 15px; font-weight: 600; transition: transform .18s var(--ease, ease-out); }
.band b { color: var(--rose); margin-left: 4px; }
.band:hover span { transform: translateY(-1px); }
.map-wrap { position: sticky; top: var(--top); height: calc(100dvh - var(--top)); }
#map { position: absolute; inset: 0; background: var(--surface); }
@media (prefers-color-scheme: dark) { #map canvas { filter: invert(.9) hue-rotate(160deg) saturate(.45) brightness(.82) contrast(.95); } }

.filters { padding: 14px 0 4px; display: grid; gap: 8px; }
.row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.row::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; font: 500 13px/1 var(--sans); padding: 8px 13px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: color .18s var(--ease), background .18s var(--ease); }
.chip:hover { color: var(--fg); background: var(--surface); }
.chip.on { background: var(--fg); color: var(--bg); box-shadow: none; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cats .chip { font-size: 12.5px; padding: 7px 12px; }

.day { padding-top: 22px; }
.day h2 { position: sticky; top: var(--top); z-index: 5; display: flex; align-items: baseline; gap: 10px; margin: 0 calc(-1 * var(--pad)); padding: 12px var(--pad) 10px; background: var(--bg); box-shadow: 0 1px 0 var(--line);
  font: 700 30px/1 var(--sans); font-variation-settings: "SHRP" 100; letter-spacing: -.025em; }
.day h2 small { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* event row: swipe right to save */
.ev { position: relative; margin: 0 calc(-1 * var(--pad)); touch-action: pan-y; overflow: hidden; }
.ev::before { content: ''; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--line); z-index: 1; }
.ev.saved::before, .ev.saved + .ev::before { left: 0; right: 0; }
.ev-under { position: absolute; inset: 0; display: flex; align-items: center; padding-left: var(--pad); gap: 10px; color: var(--accent-fg); background: var(--rose); opacity: 0; font-weight: 600; font-size: 14px; }
.ev-under canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ev-under span { position: relative; transition: transform .2s var(--ease); }
.ev-under.armed span { transform: scale(1.08); }
.ev-track { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 14px var(--pad); background: var(--bg);
  transition: transform .32s var(--ease), background .32s var(--ease); will-change: transform; }
.ev.drag .ev-track { transition: none; }
.ev time { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.ev time.soft { font-weight: 400; color: var(--muted); }
.ev-m h3 { font-size: 15.5px; font-weight: 600; line-height: 1.3; text-wrap: pretty; transition: color .18s var(--ease); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ev-a { -webkit-user-drag: none; }
.ev-a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.ev.drag { user-select: none; -webkit-user-select: none; }
.ev:hover h3 { color: var(--rose); }
.ev-m p { margin-top: 2px; font-size: 13px; color: var(--muted); }
.ev-r { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; transition: transform .32s var(--ease); }
.price { font-size: 13px; font-variant-numeric: tabular-nums; }
.tag { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tag i { width: 6px; height: 6px; border-radius: 50%; }
.ev .glow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.ev-track > *:not(.glow) { position: relative; }
.ev.saved .glow { opacity: .42; }
.ev.hl .ev-track { background: var(--surface); }
.ev-save { position: absolute; z-index: 2; right: 0; top: 0; }

.live { font-weight: 600; color: var(--rose); }
.empty { padding: 72px 0; display: grid; gap: 16px; justify-items: start; }
.empty canvas { width: 140px; height: 140px; border-radius: 50%; }
.empty p { font: 700 26px/1.15 var(--sans); font-variation-settings: "SHRP" 100; letter-spacing: -.02em; }
.foot { display: flex; flex-wrap: wrap; gap: 20px; padding: 48px 0 8px; font-size: 13px; color: var(--muted); }
.foot a:hover { color: var(--fg); }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); font-size: 14px; overflow: hidden; position: relative; }
.banner canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.banner span, .banner b { position: relative; }
.banner b { color: var(--rose); font-weight: 600; white-space: nowrap; }

/* map pins */
.pin { width: 12px; height: 12px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 12px var(--rose); cursor: pointer; transition: transform .2s var(--ease); }
.pin.quiet { background: var(--muted); box-shadow: none; width: 6px; height: 6px; opacity: .55; }
.pin.hl { transform: scale(1.7); }
.maplibregl-popup-content { background: var(--surface); color: var(--fg); border-radius: 16px; padding: 12px 14px; font: 13px/1.35 var(--sans); box-shadow: inset 0 0 0 1px var(--line); }
.maplibregl-popup-content b { display: block; font: 700 18px/1.1 var(--sans); font-variation-settings: "SHRP" 100; margin-bottom: 3px; }
.maplibregl-popup-content span { color: var(--muted); font-size: 12px; }
[class*="maplibregl-popup-anchor-bottom"] .maplibregl-popup-tip { border-top-color: var(--surface); }
[class*="maplibregl-popup-anchor-top"] .maplibregl-popup-tip { border-bottom-color: var(--surface); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--surface); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--surface); }
.maplibregl-ctrl-attrib { font-size: 10px; background: color-mix(in srgb, var(--bg) 80%, transparent) !important; color: var(--muted) !important; }
.maplibregl-ctrl-group { background: var(--surface) !important; border-radius: 999px !important; box-shadow: inset 0 0 0 1px var(--line) !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 40px !important; height: 40px !important; }
.maplibregl-ctrl-group button:focus-visible { outline: 2px solid var(--rose); outline-offset: -2px; }
.maplibregl-ctrl-geolocate { color: var(--fg); }
.maplibregl-ctrl-geolocate-active, .maplibregl-ctrl-geolocate-background { color: var(--lilac); }
.maplibregl-ctrl-geolocate-waiting { color: var(--muted); }
.maplibregl-ctrl-geolocate-error { color: var(--rose); }
.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon { background: currentColor !important; animation: none !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E") center / 22px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='6.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E") center / 22px no-repeat; }
@media (prefers-color-scheme: dark) { .maplibregl-ctrl-attrib-button { filter: invert(1); } }
.maplibregl-user-location-dot, .maplibregl-user-location-dot::before { background-color: var(--lilac) !important; }
.maplibregl-user-location-accuracy-circle { background-color: color-mix(in srgb, var(--lilac) 18%, transparent) !important; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }

/* ---------- detail pages ---------- */
.cover { position: relative; height: clamp(180px, 30vw, 300px); }
.cover canvas { width: 100%; height: 100%; }
.detail { max-width: 760px; padding: 24px var(--pad) 80px; }
.detail.wide { max-width: 1000px; }
.detail.narrow { max-width: 480px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.back:hover { color: var(--fg); }
.when { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.when span { color: var(--fg); margin-left: 8px; font-weight: 600; }
.detail h1 { font: 700 clamp(40px, 7vw, 68px)/1 var(--sans); font-variation-settings: "SHRP" 100; letter-spacing: -.035em; margin: 10px 0 18px; text-wrap: balance; }
.venue-link { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; }
.venue-link canvas { width: 26px; height: 26px; border-radius: 50%; }
.venue-link:hover { color: var(--rose); }
.addr { margin-top: 6px; color: var(--muted); font-size: 14px; }
.addr a:hover { color: var(--fg); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 30px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.facts dd { font-size: 16px; }
.desc { margin-top: 26px; font-size: 17px; line-height: 1.6; max-width: 62ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15px/1 var(--sans); padding: 13px 20px; border-radius: 99px; background: var(--rose); color: var(--accent-fg); transition: transform .18s var(--ease), filter .18s var(--ease); position: relative; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.save-btn canvas { position: absolute; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); border-radius: 999px; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); }
.save-btn.burst canvas { opacity: 1; }
.save-btn span { position: relative; }
.save-btn[aria-pressed=true] { box-shadow: inset 0 0 0 1px var(--rose); color: var(--rose); }
.via { margin-top: 18px; font-size: 13px; color: var(--muted); }
.unconfirmed { display: block; margin-top: 6px; color: var(--peach); font-size: 13px; }
.unconfirmed a { border-bottom: 1px solid currentColor; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.links a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; padding: 8px 13px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.links a:hover { box-shadow: inset 0 0 0 1px var(--muted); }
.upcoming { margin-top: 28px; }
.claim { margin-top: 44px; font-size: 13px; color: var(--muted); }
.claim a { border-bottom: 1px solid var(--line); }
.muted { color: var(--muted); }
.accolades { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.accolades li { font-size: 12px; padding: 6px 10px; border-radius: 99px; color: var(--peach); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--peach) 40%, transparent); }

.vlist { list-style: none; margin-top: 8px; }
.vlist a { display: grid; grid-template-columns: 34px 1fr auto 44px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.vlist canvas { width: 34px; height: 34px; border-radius: 50%; }
.vlist span { font: 700 22px/1.15 var(--sans); font-variation-settings: "SHRP" 100; letter-spacing: -.02em; }
.vlist a:hover span { color: var(--rose); }
.vlist em { font-style: normal; font-size: 13px; color: var(--muted); text-align: right; }
.vlist small { font-size: 13px; color: var(--rose); text-align: right; font-variant-numeric: tabular-nums; }

/* BCB */
.hero { padding-bottom: 14px; }
.hero-art { position: relative; margin: 0 calc(-1 * var(--pad)) 18px; padding: 28px var(--pad) 26px; overflow: hidden; }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.hero-art > :not(canvas) { position: relative; }
.hero-art .when { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--bg); color: var(--fg); font-size: 14px; font-weight: 600; }
.hero h1 { font: 700 clamp(56px, 10vw, 96px)/.92 var(--sans); font-variation-settings: "SHRP" 100; letter-spacing: -.04em; margin: 14px 0 0; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-meta span:first-child { color: var(--fg); font-weight: 600; }

/* ---------- forms ---------- */
.fix { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 16px; }
summary { cursor: pointer; font-size: 14px; color: var(--muted); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--fg); }
.form { display: grid; gap: 16px; margin-top: 18px; }
.form.grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.form .full { grid-column: 1 / -1; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
label em { font-style: normal; opacity: .7; }
label.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg); }
input, textarea, select { width: 100%; font: 400 15px/1.3 var(--sans); color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; border-radius: 0; }
select[multiple] { border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--rose); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--rose); }
.form .btn { justify-self: start; }
.flash { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--surface); font-size: 15px; }
.err { color: var(--rose); font-size: 13px; }

/* dashboard / admin */
.panel { margin-top: 26px; background: var(--surface); border-radius: 20px; padding: 20px 22px 22px; }
.panel > header { display: flex; justify-content: space-between; align-items: baseline; }
.panel h2 { font: 700 26px/1.1 var(--sans); font-variation-settings: "SHRP" 100; letter-spacing: -.02em; }
.panel h3 { margin-top: 24px; font-size: 13px; font-weight: 500; color: var(--muted); }
.panel > header a, .panel > header em { font-size: 13px; color: var(--muted); font-style: normal; }
.panel details { margin-top: 18px; }
.panel code { font-weight: 600; color: var(--rose); }
.claim-box p { margin: 12px 0; max-width: 60ch; }
.mini { margin-top: 8px; }
.mini-row { display: grid; grid-template-columns: 130px 1fr auto auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-row time, .mini-row em { font-size: 12px; color: var(--muted); font-style: normal; font-variant-numeric: tabular-nums; }
.link { font-size: 13px; color: var(--muted); }
.link:hover { color: var(--rose); }
.ig-row { display: flex; gap: 14px; align-items: center; margin-top: 18px; font-size: 14px; }
.row-form { grid-template-columns: 1fr auto; align-items: end; }
.stats { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.stats b { display: block; font: 700 32px/1 var(--sans); color: var(--fg); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.sec { margin-top: 40px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font: 700 24px/1 var(--sans); font-variation-settings: "SHRP" 100; }
.sec small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.qrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) 130px 90px 110px auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.qrow:has(> .q-act:nth-child(2)) { grid-template-columns: 1fr auto; }
.qrow.run { grid-template-columns: 110px 260px 1fr; font-size: 13px; }
.qrow.run em { color: var(--muted); font-style: normal; font-size: 12px; }
.q-src p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.q-src a { color: var(--rose); }
.q-act { display: flex; gap: 6px; }
.q-act .btn { padding: 9px 14px; font-size: 12.5px; }

/* analytics */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 22px 0 10px; }
.tile { padding: 16px 14px; border-radius: 16px; background: var(--surface); }
.tile b { display: block; font: 700 32px/1 var(--sans); font-variant-numeric: tabular-nums; }
.tile span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.chart { margin-top: 34px; }
.chart figcaption, .rank h3 { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
.bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; height: 160px; align-items: end; border-bottom: 1px solid var(--line); }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; outline: none; }
.bar i { display: block; min-height: 1px; background: var(--rose); border-radius: 4px 4px 0 0; opacity: .85; }
.bar:hover i, .bar:focus i { opacity: 1; }
.bar span { position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; text-align: center; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.bars[style*="--n:30"] .bar:not(:nth-child(5n+1)) span, .bars[style*="--n:90"] .bar:not(:nth-child(15n+1)) span { visibility: hidden; }
.bar:hover::after, .bar:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 3;
  background: var(--fg); color: var(--bg); font-size: 11px; padding: 7px 9px; border-radius: 8px; pointer-events: none; }
.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 36px; margin-top: 44px; }
.rank { margin-top: 40px; }
.ranks .rank { margin-top: 0; }
.rank table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank td, .rank th { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rank th { font-size: 12px; color: var(--muted); font-weight: 500; }
.rank th:not(:first-child) { text-align: right; }
.rank .num { text-align: right; font-size: 13px; padding-left: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank .rk { position: relative; }
.rk .fill { position: absolute; left: 0; top: 4px; bottom: 4px; background: color-mix(in srgb, var(--rose) 18%, transparent); border-radius: 0 4px 4px 0; }
.rk .lbl { position: relative; padding-left: 6px; word-break: break-word; }
.rank a:hover { color: var(--rose); }
.stream td { font-size: 12.5px; }

.legal h2 { font: 700 22px/1.2 var(--sans); font-variation-settings: "SHRP" 100; margin: 32px 0 8px; }
.legal p { max-width: 64ch; line-height: 1.65; margin-top: 8px; }
.legal a { border-bottom: 1px solid var(--rose); }

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

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .split { display: block; }
  .map-toggle { display: inline-flex; }
  .clock { display: none; }
  .map-wrap { display: none; position: fixed; inset: var(--top) 0 0; height: auto; z-index: 15; }
  body.show-map .map-wrap { display: block; }
  body.show-map .map-toggle { background: var(--fg); color: var(--bg); box-shadow: none; }
  .ev-track { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; }
  .band { height: 88px; }
  .qrow { grid-template-columns: 1fr 1fr; }
  .qrow .q-src { grid-column: 1 / -1; }
  .mini-row { grid-template-columns: 1fr auto; }
  .mini-row span { grid-column: 1 / -1; order: -1; }
  .vlist a { grid-template-columns: 30px 1fr 36px; }
  .vlist em { display: none; }
  .rank.wide { overflow-x: auto; }
}
