/* DanceDateFun: the look ("The Floor", mockups/a), for every page. Dark only, stage-lit.
   One accent colour per dance style: --accent on :root for the page, --c on a card or chip. */

@font-face { font-family: "Instrument Serif"; src: url(../../vendor/fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../../vendor/fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(../../vendor/fonts/manrope-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(../../vendor/fonts/manrope-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(../../vendor/fonts/manrope-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #07060a;
  --bg-2: #0e0c13;
  --surface: #14111b;
  --surface-2: #1c1826;
  --line: rgba(255, 240, 225, 0.09);
  --line-2: rgba(255, 240, 225, 0.16);
  --text: #f6f0e8;
  --muted: #b1a9bb;
  --dim: #8a8295;
  --accent: #ffd38a;
  --fresh: #7ee2a8;
  --stale: #f3b86b;
  --bad: #ff8b8b;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --radius: 18px;
  --wide: 1280px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--sans);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body > main { flex: 1; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
code { font-size: .92em; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 6px; }

/* ---------- top bar ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
}
.top.solid { position: relative; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { position: relative; width: 22px; height: 26px; }
.logo-mark i {
  position: absolute; width: 9px; height: 17px; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: background .6s, box-shadow .6s;
}
.logo-mark i:first-child { left: 0; top: 8px; transform: rotate(-10deg); opacity: .75; }
.logo-mark i:last-child { right: 0; top: 0; transform: rotate(10deg); }
.logo-word { font: 800 17px/1 var(--sans); letter-spacing: -0.02em; }
.logo-word em, .foot-name em { font: italic 400 1.22em/1 var(--serif); color: var(--accent); letter-spacing: 0; padding: 0 1px; transition: color .6s; }
.top-nav { display: flex; margin-left: auto; gap: 16px; align-items: center; font-size: 14px; font-weight: 600; }
.top-nav a { text-decoration: none; color: var(--muted); transition: color .2s; white-space: nowrap; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--text); }
.top-nav .wide-only, .top .wide-only-flex { display: none; }
.top-nav .me-link {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text);
  background: rgba(20, 17, 27, .6); max-width: 9em; overflow: hidden; text-overflow: ellipsis;
}
.city {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  background: rgba(20, 17, 27, .6); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.pin { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- buttons ---------- */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 0 20px; border-radius: 999px; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, background .6s, box-shadow .6s, border-color .2s;
  background: var(--accent); color: #120d08;
}
.btn:active, .button:active { transform: scale(.97); }
.btn[disabled], .button[disabled] { opacity: .5; cursor: default; }
.btn-main { background: var(--accent); color: #120d08; box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost, .button.quiet {
  border-color: var(--line-2); background: rgba(14, 12, 19, .55); color: var(--text);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: none;
}
.btn-ghost:hover, .button.quiet:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.button.small, .btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.button.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 680px; height: 100svh; max-height: 900px;
  display: flex; flex-direction: column; background: var(--bg);
}
.floor-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.floor-fallback {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 32% at 50% 74%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
    radial-gradient(ellipse 120% 70% at 50% 100%, #2a1b12 0%, #120c0a 55%, var(--bg) 85%);
}
.floor-fallback::after {
  content: ""; position: absolute; inset: 45% -20% -10%;
  background: repeating-linear-gradient(90deg, rgba(255, 220, 180, .05) 0 1px, transparent 1px 64px);
  transform: perspective(500px) rotateX(58deg); transform-origin: 50% 0;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.floor-on .floor-fallback { display: none; }
.no-webgl .floor-canvas { display: none; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 6, 10, .9) 0%, rgba(7, 6, 10, .72) 30%, rgba(7, 6, 10, .15) 55%, transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 6, 10, 0) 14%);
}
.hero-copy { position: relative; z-index: 2; padding: 92px var(--gutter) 0; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1 { font: 400 clamp(44px, 11vw, 84px)/.95 var(--serif); letter-spacing: -0.02em; }
.hero h1 { margin-top: 14px; font-size: clamp(52px, 15vw, 128px); line-height: .9; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
h1 em { color: var(--accent); transition: color .6s; text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent); }
.lede { margin-top: 16px; max-width: 30em; color: #ddd5e3; font-size: 16px; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.hud {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 22px;
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: end;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(10, 9, 14, .62); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hud-label { grid-column: 1 / -1; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.hud-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.hud-name { font: italic 400 24px/1.1 var(--serif); flex: 1; min-width: 0; }
.hud-nav { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: var(--text, #f5efe6); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); transition: background .12s, transform .12s; }
.hud-nav:hover { background: rgba(255, 255, 255, .14); }
.hud-nav:active { transform: scale(.94); }
.no-webgl .hud-nav { display: none; }
.hud-tempo { grid-column: 1; font-size: 13px; color: var(--muted); }
.hud-counts { grid-column: 2; grid-row: 3; list-style: none; margin: 0; padding: 0; display: flex; gap: 3px; align-self: center; flex-wrap: wrap; justify-content: flex-end; max-width: 210px; }
.hud-counts li {
  min-width: 22px; height: 28px; padding: 0 3px; display: grid; place-items: center; border-radius: 7px;
  font: 800 13px/1 var(--sans); color: var(--dim); background: rgba(255, 255, 255, .04);
  transition: background .12s, color .12s, transform .12s;
}
.hud-counts li.rest { color: #4b4554; }
.hud-counts li.slow { padding: 0 7px; letter-spacing: 0.06em; }   /* a slow step: two beats in one wider box */
.hud-counts li.on { background: var(--accent); color: #120d08; transform: translateY(-2px); }
.hud-key { grid-column: 1 / -1; margin-top: 8px; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.hud-key label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 28px; }
/* the tick-box is the colour key: dark with a pale rim for the lead, pink for the follow; a tick when shown */
.hud-key input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; cursor: pointer;
  display: inline-grid; place-items: center; transition: opacity .12s, box-shadow .12s; }
.hud-key input::after { content: ""; width: 10px; height: 5px; border-left: 2.5px solid; border-bottom: 2.5px solid; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.hud-key input:checked::after { opacity: 1; }
.hud-key input:not(:checked) { opacity: .45; }
.hud-key input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hud-key .k-lead { background: #0e0b09; color: #ffd9a0; box-shadow: 0 0 0 1.5px #ffd9a0, 0 0 6px #ffd9a066; }
.hud-key .k-follow { background: #ff4fa3; color: #2a0716; box-shadow: 0 0 8px #ff4fa3; }
.no-webgl .hud-key { display: none; }

/* ---------- style chips ---------- */
.chips {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 6, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px var(--gutter); scroll-padding-inline: var(--gutter); }
.chips-row::-webkit-scrollbar { display: none; }
.chip {
  --c: #ffd38a;
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 15px 0 12px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); text-decoration: none;
  font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .25s, border-color .25s, color .25s;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.chip:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.chip[aria-pressed="true"], .chip[aria-current="true"], .chip:has(input:checked) {
  background: color-mix(in srgb, var(--c) 18%, var(--surface)); border-color: var(--c); color: #fff;
}
.chip .n { font-size: 12px; color: var(--dim); font-weight: 800; }
.chip[aria-pressed="true"] .n, .chip[aria-current="true"] .n { color: var(--c); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- the week ---------- */
.week { padding: 40px var(--gutter) 24px; max-width: var(--wide); margin: 0 auto; scroll-margin-top: 40px; }
.week-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 18px; }
h2 { font: 400 clamp(34px, 8vw, 56px)/1 var(--serif); letter-spacing: -0.01em; }
h2 em { color: var(--accent); transition: color .6s; }
.week-sub { color: var(--muted); font-size: 14px; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.filters label { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.filters select { width: auto; min-height: 40px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.filters .solo-box { min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; }
.filters .solo-box:has(input:checked) { border-color: var(--accent); }
.filters input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; }
.demo-note { margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; font-size: 14px; color: var(--muted); border: 1px dashed var(--line-2); }
.demo-note b { color: var(--accent); }
.demo-note.filling-note { border-style: solid; }
.filters .area-pick { gap: 0; position: relative; }
.filters .area-pick .pin { position: absolute; left: 13px; pointer-events: none; }
.filters .area-pick select { padding-left: 30px; color: var(--text); font-weight: 700; max-width: 100%; }

/* the search: a date and a place, above the list */
.search {
  display: grid; gap: 14px; margin: 0 0 28px; padding: 16px;
  border-radius: var(--radius); border: 1px solid var(--line-2);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface-2)), var(--surface) 70%);
}
.search .search-lbl { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.when-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.when-chip { --c: var(--accent); padding: 0 15px; }
.date-pick { margin: 0; flex: 1 1 100%; }
.date-pick input, .near-row input { min-height: 44px; border-radius: 999px; padding: 8px 16px; background: rgba(0, 0, 0, .35); }
.near-row { display: flex; gap: 8px; }
.near-row input { flex: 1; min-width: 0; }
.near-me { flex: none; gap: 8px; min-height: 44px; padding: 0 14px; font-size: 14px; }
.near-me[aria-pressed="true"] { border-color: var(--accent); }
.search-go { width: 100%; }
.search-msg { font-size: 14px; color: var(--muted); }
.search-msg:empty { display: none; }
.search-msg.error { color: var(--stale); }
.time-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.dist {
  flex: none; display: inline-flex; align-items: center; gap: 7px; margin-bottom: 1px;
  padding: 4px 11px; border-radius: 999px; font-size: 14px; font-weight: 800; white-space: nowrap;
  color: var(--text); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.dist i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.dist.about { font-weight: 600; color: var(--muted); border-style: dashed; }
.day-cards { display: grid; gap: 14px; min-width: 0; }
.nodist-head { margin: 8px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.nodist { display: grid; gap: 12px; }
.nodist .dist { display: none; }

.day { padding: 22px 0 8px; border-top: 1px solid var(--line); }
.day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.day-name { font: 400 28px/1 var(--serif); }
.day-date { font-size: 13px; color: var(--muted); font-weight: 600; }
.day-tag { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }

.card {
  --c: #ffd38a; --gx: 50%; --gy: 0%;
  position: relative; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--line);
  /* each card has its own depth, so a card far down a long list does not drift off its box */
  transform: perspective(900px);
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .3s, opacity .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--gx) var(--gy), color-mix(in srgb, var(--c) 16%, transparent), transparent 55%);
  opacity: .7; transition: opacity .3s;
}
.card::after {
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c), transparent); box-shadow: 0 0 14px var(--c);
}
.card.tilting { transition: transform .08s linear, border-color .3s; border-color: color-mix(in srgb, var(--c) 40%, transparent); will-change: transform; }
.card.tilting::before { opacity: 1; }
.card:focus-within { border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.card-in { position: relative; padding: 18px 18px 16px; transform: translateZ(24px); }
.card-top { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 800; flex-wrap: wrap; }
.style-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--c); }
.style-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.kind { color: var(--muted); font-weight: 600; }
.kind::before { content: "/"; margin-right: 8px; color: var(--dim); }
.price { margin-left: auto; font: 800 14px/1.2 var(--sans); text-align: right; max-width: 11em; }
/* a long price on a card: at most two lines, then an ellipsis; the event page shows it whole */
.card .price {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; overflow-wrap: anywhere; max-width: 16em;
}
.badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--muted);
}
.badge.demo { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.badge.warn { color: var(--stale); border-color: color-mix(in srgb, var(--stale) 50%, transparent); border-style: solid; }
.time { margin-top: 10px; font: 800 26px/1 var(--sans); letter-spacing: -0.02em; }
.time span { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.time.no-time { font-size: 17px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.act { margin-top: 4px; font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--c, var(--accent)) 55%, var(--text)); }
.ev-act { font-size: 17px; margin-top: 6px; }
.card h3 { margin-top: 6px; font: 400 26px/1.1 var(--serif); }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:focus-visible { outline: none; }
.where { margin-top: 4px; color: var(--muted); font-size: 14px; }
.where b { color: var(--text); font-weight: 600; }
.facts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facts li { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: #d9d2df; }
.facts li.with-class { color: var(--text); border-style: dashed; border-color: var(--line-2); }
.facts li.solo { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.note.change { color: var(--stale); }
.fresh { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.fresh i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--fresh); transform: translateY(-1px); }
.fresh.fading i { background: var(--stale); }
.fresh.fading { color: #d9b98c; }
.fresh.lapsed i { background: var(--bad); }
.fresh.lapsed { color: var(--bad); }
.fresh b { font-weight: 700; }
.empty { padding: 30px 0; color: var(--muted); }
.empty button, .empty a { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; }
.days.swap { animation: swap .45s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }
.ahead { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 22px 0 0; border-top: 1px solid var(--line); margin-top: 14px; }

/* ---------- tell us about a dance ---------- */
.tell { margin-top: 40px; padding: 56px var(--gutter); border-top: 1px solid var(--line); }
.tell-card {
  max-width: 860px; margin: 0 auto; padding: 28px 20px; border-radius: 24px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 55%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.tell-card h2, .tell-card h1 { font-size: clamp(32px, 7vw, 48px); margin: 0; }
.tell-card > p { margin-top: 10px; color: var(--muted); max-width: 36em; }
.tip-form textarea { min-height: 140px; }
.tip-form .form-actions { margin-top: 16px; }
.tip-thanks { margin-top: 20px; }
.tell-note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.tell-note a { color: var(--accent); }
.page .tell-card { margin-top: 8px; }

/* ---------- footer ---------- */
.foot { width: 100%; padding: 36px var(--gutter) 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot > * { max-width: var(--wide); margin-inline: auto; }
.foot-name { font: 800 20px/1 var(--sans); color: var(--text); margin-bottom: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-weight: 600; }
.foot-links a { color: var(--text); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-small { margin-top: 8px; font-size: 12.5px; color: var(--dim); }

/* ---------- ordinary pages ---------- */
.page { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 32px var(--gutter) 56px; }
.page.narrow { max-width: 760px; }
.page h1 { margin: 8px 0 14px; }
.page h2 { margin: 40px 0 14px; font-size: clamp(30px, 6vw, 40px); }
.page h3 { font: 800 17px/1.3 var(--sans); margin: 22px 0 8px; }
.page p + p, .page p + ul, .page ul + p { margin-top: 12px; }
.page ul { padding-left: 1.2em; }
.page li + li { margin-top: 6px; }
.page a { color: var(--accent); }
.prose p, .prose li { color: #ddd5e3; max-width: 40em; }
.panel { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel + .panel { margin-top: 14px; }
.notice { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); margin: 14px 0; }
.notice.ok { border-color: color-mix(in srgb, var(--fresh) 50%, transparent); }
.notice.warn { border-color: color-mix(in srgb, var(--stale) 55%, transparent); color: #f1d4ab; }
.notice.demo { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.status { min-height: 1.5em; margin: 10px 0; font-size: 14px; color: var(--muted); }
.status.error { color: var(--bad); }
.card-list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 12px; }
.card-list > li { margin: 0 !important; }
.card-list .panel a { text-decoration: none; }
.card-list .title { font: 400 24px/1.15 var(--serif); color: var(--text); }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
label .hint, .hint { font-weight: 400; color: var(--dim); font-size: 13px; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], input[type="date"], input[type="time"], input[type="search"], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); font-size: 16px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type="date"], input[type="time"] { color-scheme: dark; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 18px; margin: 22px 0 0; background: rgba(255, 255, 255, .015); min-width: 0; }
legend { padding: 0 8px; font: 400 24px/1.2 var(--serif); }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 10px 0 0; cursor: pointer; }
.choice input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choices .chip { margin: 0; position: relative; }
.grid2 { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.grid2 > div, .grid3 > div { min-width: 0; }
.grid3 { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.list-rows { display: grid; gap: 10px; margin-top: 10px; }
.list-row { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.list-row label { margin: 0 0 4px; font-size: 13px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.hp { position: absolute; left: -9999px; }
.human { margin-top: 16px; }
.signin { max-width: 30em; }
.signin .code { letter-spacing: .3em; font-size: 22px; max-width: 10em; }
.spam-hint p { margin-top: 6px; }

/* ---------- one event ---------- */
.ev-head { display: grid; gap: 24px; align-items: start; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; font-weight: 800; }
.ev-when { margin-top: 12px; font: 800 22px/1.25 var(--sans); letter-spacing: -0.01em; }
.ev-when span { color: var(--muted); font-weight: 600; font-size: 16px; }
.ev-where { margin-top: 8px; color: var(--muted); }
.ev-where a { color: var(--text); font-weight: 600; }
.ev-head .fresh { max-width: 34em; }
.ev-actions { margin-top: 18px; }
.floor-box {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--bg);
}
.floor-box .hud { left: 10px; right: 10px; bottom: 10px; padding: 10px 12px; }
.floor-box .hud-name { font-size: 20px; }
.floor-box .hud-counts li { min-width: 18px; height: 24px; font-size: 12px; }
.facts-table { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.facts-table dt { color: var(--muted); font-size: 14px; font-weight: 600; padding-top: 2px; }
.facts-table dd { margin: 0; overflow-wrap: anywhere; }
.parts, .coming, .sources, .replies { list-style: none; padding: 0 !important; margin: 0; }
.parts li, .coming li, .sources li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.parts .t, .coming .t { font-weight: 800; min-width: 8.5em; }
.part-class { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px dashed var(--line); color: #d9d2df; }
.part-class-box { margin: 0; align-self: end; padding-bottom: 10px; }
.level-off { display: none; }
.coming .d { min-width: 15em; font-weight: 600; }
.coming .x { color: var(--stale); font-size: 14px; width: 100%; }
.sources .agree { color: var(--fresh); font-size: 13px; }
.sources .said { width: 100%; color: var(--muted); }
.replies li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.reply-kind { font-weight: 800; }
.reply-kind.running { color: var(--fresh); }
.reply-kind.changed { color: var(--stale); }
.reply-kind.stopped { color: var(--bad); }
.reply-meta { color: var(--dim); font-size: 13px; }
.reply-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.reply-form { margin-top: 12px; }

/* comments on one event, newest first (2026-12-02) */
.comments { margin-top: 8px; }
.comment-form { margin-top: 14px; }
.comment-form textarea { min-height: 84px; resize: vertical; }
.comment-send { display: flex; justify-content: flex-end; margin-top: 10px; }
.comment-list { list-style: none; padding: 0 !important; margin: 6px 0 0; }
.comment-list > li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.comment-meta { margin: 0; font-size: 14px; color: var(--dim); }
.comment-meta a { font-weight: 800; color: var(--text); text-decoration: none; }
.comment-meta a:hover { text-decoration: underline; }
.comment-meta span::before { content: ", "; }
.comment-text { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { margin: 6px 0 0; font-size: 13px; color: var(--dim); display: flex; gap: 14px; }
.comment-actions a { color: var(--dim); }
.comment-owner { margin: 6px 0 0; font-size: 13px; color: var(--stale); }

/* owners only: contacts and the comment check */
.owner-contacts { margin-top: 24px; border-style: dashed; }
.owner-contacts h2 { margin-top: 0; }
.owner-contacts h3 { font-size: 15px; margin: 16px 0 4px; font-family: var(--sans); font-weight: 800; }
.contact-rows { list-style: none; padding: 0 !important; margin: 0; }
.contact-rows > li { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0 !important; overflow-wrap: anywhere; }
.contact-rows > li:last-child { border-bottom: 0; }
.contact-rows p { margin: 4px 0; }
.contact-value { font-weight: 800; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.contact-note { display: block; margin-top: 4px; }
.tag-weak { color: var(--stale); font-size: 13px; font-weight: 700; }
.contact-form { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.contact-form label { display: grid; gap: 4px; margin: 0; }
.contact-form .choice { display: inline-flex; gap: 6px; align-items: center; }
.comment-check.is-look { border-color: color-mix(in srgb, var(--stale) 60%, transparent); }
.comment-check.is-hidden .check-state { color: var(--stale); }
.comment-check.is-shown .check-state { color: var(--fresh); }
.answer-words { margin: 6px 0; padding-left: 18px; color: var(--muted); }
.place-head .where { font-size: 16px; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .tell-card { padding: 40px; }
  .grid3 { grid-template-columns: 1fr 1fr 1fr; }
  .list-row.part { grid-template-columns: 2fr 1fr 1fr; align-items: end; }
  .list-row.part > button { grid-column: 1 / -1; justify-self: end; }
  .list-row.part .level-off { display: block; visibility: hidden; }
  .list-row.season { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .top-nav { gap: 22px; }
  .search { grid-template-columns: 1fr 1fr; align-items: start; padding: 20px 22px; }
  .date-pick { flex: 1 1 150px; }
  .search-go, .search-msg { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .search { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; }
  .search-go { grid-column: auto; width: auto; align-self: end; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  .top-nav .wide-only { display: inline; }
  .top .wide-only-flex { display: inline-flex; margin-left: 4px; }
  .hero { height: 92vh; min-height: 700px; }
  .hero-copy { padding-top: 0; margin-top: auto; margin-bottom: auto; max-width: 720px; }
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(7, 6, 10, .92) 0%, rgba(7, 6, 10, .6) 32%, transparent 55%),
      linear-gradient(0deg, var(--bg) 0%, rgba(7, 6, 10, 0) 16%);
  }
  .lede { font-size: 18px; }
  .hero .hud { left: auto; right: var(--gutter); bottom: 32px; width: 400px; }
  .day { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 28px 0 14px; }
  .day-head { flex-direction: column; gap: 6px; position: sticky; top: 84px; align-self: start; }
  .day-name { font-size: 36px; }
  .ev-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; }
  .ev-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
}

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

/* links styled as buttons keep their own colours inside ordinary pages */
.page a.btn-main, .page a.button { color: #120d08; text-decoration: none; }
.page a.btn-ghost, .page a.button.quiet { color: var(--text); text-decoration: none; }
.floor-box { aspect-ratio: 1 / 1; }
.floor-box .hud-tempo { display: none; }
.floor-box .hud-counts { grid-row: 2; }
@media (min-width: 720px) { .floor-box { aspect-ratio: 4 / 3; } }
/* cards inside ordinary pages look as they do on the home page */
.page .cards, .page .facts { padding: 0; }
.page .facts li + li, .page .cards > li + li { margin-top: 0; }
.page .card h3 { margin: 6px 0 0; font: 400 26px/1.1 var(--serif); }
.page .card h3 a { color: var(--text); }
/* the week filters: two to a row on phones, one line on wider screens */
@media (max-width: 719px) {
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filters label, .filters select { width: 100%; min-width: 0; }
  .filters .solo-box { grid-column: 1 / -1; }
}

/* a card's comment count (2026-12-02): above the card's own link, which covers the whole card */
.card-comments { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; }
.card-comments:hover, .card-comments:focus-visible { color: var(--c, var(--accent)); text-decoration: underline; }
.card-comments i { width: 12px; height: 10px; border: 1.5px solid currentColor; border-radius: 3px 3px 3px 0; flex: none; }

/* "Any dance": a dance with no events here stays listed, greyed (2026-12-02) */
.filters option.none { color: var(--dim); }

/* every ceroc event (2026-12-02, the owner): a yellow card with black text */
.card.ceroc {
  --text: #000; --muted: #000; --dim: #000; --line: rgba(0, 0, 0, .35); --line-2: rgba(0, 0, 0, .5);
  background: #ffd800; color: #000; border-color: #000;
}
.card.ceroc::before { display: none; }
.card.ceroc::after { background: #000; box-shadow: none; }
.card.ceroc :is(.style-tag, .kind, .price, .time, .time span, .act, .where, .where b, .note, .fresh, .dist, .card-comments, .badge, h3 a, .facts li) { color: #000; }
.card.ceroc :is(.style-tag i, .dist i) { background: #000; box-shadow: none; }
.card.ceroc .facts li { background: rgba(0, 0, 0, .08); }
.card.ceroc .badge { border-color: #000; }
