/* Club colours: TTC green #75ae4d (as on the club homepage, Max 2026-09-30) with white. White text on it is too
   faint (2.65:1), so green surfaces carry dark text (6.35:1) and green text uses the darker --brand-text, the same
   hue at 5.1:1 on white. */
:root {
  --bg: #ffffff;
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --line: #d8d8dc;
  --brand: #75ae4d;
  --brand-text: #517835;
  --on-brand: #1d1d1f;
  /* Selected seats: blue, far from the green, yellow and purple price categories. */
  --selected: #1a5fb4;
  --error: #b00020;
  --table: #8e9097;
  --held: #c9c9ce;
  --booked: #4a4a50;
  /* Reserved without names (FR-15), organiser view only: orange, apart from the categories and the selection. */
  --reserved: #e8590c;
  --floor: #f4f4f6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171a;
    --fg: #ececf0;
    --muted: #a0a0a8;
    --line: #3a3a40;
    --brand-text: #75ae4d;
    --selected: #6ea8ff;
    --error: #ff6b7f;
    --table: #5c5e66;
    --held: #55555c;
    --booked: #2a2a2e;
    --reserved: #ff922b;
    --floor: #222226;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.5 system-ui, sans-serif; }
header .banner-link { display: block; max-width: 1100px; margin: 0 auto; }
header .banner { display: block; width: 100%; max-width: 1100px; height: auto; margin: 0 auto; }
header .inner, main { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
header .inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 16px; padding-bottom: 12px;
  border-bottom: 3px solid var(--brand); }
/* The links, not the images, are hidden, so a hidden logo leaves no empty flex item and no tab stop. */
header .logo-link { display: none; }
header .logo { display: block; width: 240px; max-width: 60vw; height: auto; }
header h1 { margin: 0; font-size: 1.5rem; }
header p { margin: 0; color: var(--muted); }
a { color: var(--brand-text); }
h2 { font-size: 1.25rem; margin-top: 24px; }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 6px; vertical-align: -2px; }
.dot.selected { background: var(--selected); box-shadow: 0 0 0 2px var(--fg); }
.dot.held { background: var(--held); }
.dot.booked { background: var(--booked); border: 1px solid var(--line); }
.dot.reserved { background: var(--reserved); }
.map-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.seatmap { display: block; width: 100%; min-width: 900px; height: auto; }
.dancefloor { fill: var(--floor); stroke: var(--line); }
.floor-label, .stage-label { fill: var(--muted); font-size: 28px; text-anchor: middle; dominant-baseline: middle; }
.table { fill: var(--table); }
.table-label { fill: #fff; font-size: 18px; font-weight: 700; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.seat { fill: var(--pk); stroke: var(--bg); stroke-width: 2; cursor: pointer; }
.seat:focus { outline: none; stroke: var(--fg); stroke-width: 3; }
/* Before .seat.selected: the organiser selects reserved seats to book them (review 2026-10-09). */
.seat.reserved { fill: var(--reserved); }
.seat.selected { fill: var(--selected); stroke: var(--fg); stroke-width: 3; }
.seat.held { fill: var(--held); cursor: not-allowed; }
.seat.booked { fill: var(--booked); cursor: not-allowed; }
/* The organiser picks booked seats to move them (Max, 2026-11-06); after .seat.booked so the cursor wins. */
.seatmap.organiser .seat.booked { cursor: pointer; }
.seat.move-from { stroke: var(--error); stroke-width: 4; }
button { font: inherit; font-weight: 600; padding: 12px 20px; border: none; border-radius: 8px; background: var(--brand); color: var(--on-brand); cursor: pointer; margin: 8px 8px 8px 0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--selected); outline-offset: 2px; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.secondary { background: transparent; color: var(--brand-text); border: 1px solid var(--brand-text); }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 16px; padding: 12px 16px; }
legend { font-weight: 700; padding: 0 4px; }
label { display: block; margin: 8px 0; }
label.inline { display: flex; gap: 8px; align-items: center; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=datetime-local], select {
  display: block; width: 100%; font: inherit; padding: 10px; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg);
}
.price { font-size: 1.1rem; margin: 12px 0; }
.error { color: var(--error); font-weight: 600; }
.notice { font-weight: 600; padding: 10px 14px; border-left: 4px solid var(--brand); background: var(--floor); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.cancelled td { color: var(--muted); text-decoration: line-through; }
/* After the general logo rules, which it overrides. */
/* Dark mode: the banner's white curve would clash with the dark page, so the white logo replaces it. */
@media (prefers-color-scheme: dark) {
  header .banner-link { display: none; }
  header { border-top: 8px solid var(--brand); }
  header .logo-link { display: block; }
}
/* Hold countdown pinned to the bottom of the screen for the whole flow (FR-29); main gets room for it. */
.hold-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 16px; text-align: center;
  background: var(--brand); color: var(--on-brand); }
.hold-bar.urgent { background: var(--error); color: var(--bg); }
/* On the body, not on main: the footer below main must stay readable above the pinned bar. */
body:has(.hold-bar:not([hidden])) { padding-bottom: 80px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
dialog { max-width: 480px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg); }
dialog::backdrop { background: rgb(0 0 0 / 0.4); }
dialog h2 { margin-top: 0; }
.summary-block { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 16px; padding: 8px 16px; }
.summary-block h3 { margin: 4px 0 8px; font-size: 1.05rem; }
.summary-block dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
.summary-block dt { color: var(--muted); }
.summary-block dd { margin: 0; overflow-wrap: anywhere; }
/* Organiser tabs (FR-32). */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; border-bottom: 2px solid var(--line); }
.tabs [role=tab] { margin: 0; border-radius: 8px 8px 0 0; background: transparent; color: var(--brand-text); }
.tabs [role=tab][aria-selected=true] { background: var(--brand); color: var(--on-brand); }
/* Why a field on the guest edit page is locked (FR-30). */
.hint { color: var(--muted); margin: -4px 0 8px; font-size: 0.95rem; }
footer { max-width: 1100px; margin: 32px auto 0; padding: 16px; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 8px 0 0; }
/* Summary table (FR-25, Max 2026-10-06): on a phone it scrolls sideways with seat and name pinned on the left. The
   pinned cells use border-box widths so the name column's left offset equals the seat column's width. */
/* Separate borders: Chromium leaves collapsed borders behind when a sticky cell moves. */
.summary-table { margin: 0 0 16px; border-collapse: separate; border-spacing: 0; }
.summary-table .num { text-align: right; white-space: nowrap; }
/* Menu page (FR-39): prices right-aligned on one line. */
.menu-table .num { text-align: right; white-space: nowrap; }
.summary-table tfoot td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: none; }
.summary-table :is(th, td):nth-child(-n+2) { position: sticky; background: var(--bg); z-index: 1; box-sizing: border-box; }
.summary-table :is(th, td):nth-child(1) { left: 0; width: 6.5rem; min-width: 6.5rem; max-width: 6.5rem;
  overflow-wrap: anywhere; }
.summary-table :is(th, td):nth-child(2) { left: 6.5rem; min-width: 8rem; }
.summary-table :is([data-col="main"], [data-col="intolerances"]) { min-width: 10rem; }
/* Set apart from the summary so it is not read as part of the booking details (Max, 2026-10-06). */
.hint.withdrawal { margin-top: 32px; }
label.slot-option { align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.slot-option:last-child { border-bottom: none; }
.slot-option input { margin-top: 6px; }
.slot-option .hint { margin: 0; }
