/*
  Officer & Frankston Barbers.
  Concept: the shop's black-and-white identity on porcelain tile, with one loud object, a
  split-flap departure board for the wait. Amber appears only where data is live; barber-pole
  red only for "you're up" and closed. Big Shoulders (Chicago signage) for display, Instrument
  Sans for reading.
*/

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/fonts/big-shoulders-display.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --porcelain: #edefee;
  --paper: #fbfbfa;
  --ink: #000;
  --steel: #5f6562;
  --rule: #c9cecb;
  --board: #1c1e1d;
  --flap: #2b2e2c;
  --flap-seam: #121312;
  --amber: #f2b705;
  --amber-dim: #a88004;
  --pole: #c8102e;

  --display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Classic scale: 14 16 18 21 24 30 36 48 60 72 */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.875rem, 1.4rem + 2vw, 2.25rem);
  --step-4: clamp(2.25rem, 1.6rem + 3.2vw, 3.75rem);
  --step-5: clamp(2.5rem, 1.5rem + 5vw, 4.5rem);

  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --measure: 66ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font: 400 var(--step-0) / 1.5 var(--body);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.98; letter-spacing: 0.005em; margin: 0; }

p { margin: 0 0 0.75em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

[hidden] { display: none !important; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip-link:focus { left: 0.5rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

/* ------------------------------------------------------------------ chrome */

.preview-banner {
  margin: 0;
  padding: 0.5rem var(--gutter);
  padding-top: calc(0.5rem + env(safe-area-inset-top, 0px));
  background: var(--ink);
  color: #fff;
  font-size: var(--step--1);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem var(--gutter) 0.75rem;
  border-bottom: 2px solid var(--ink);
}

.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
.crest { background: var(--ink); width: 3.25rem; height: 3.25rem; display: grid; place-items: center; padding: 0.35rem; flex: none; }
.crest img { width: 100%; height: auto; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: var(--step-2); line-height: 0.9; }
.brand-name span { display: block; font-weight: 600; }

.site-nav { display: flex; gap: 1.25rem; overflow-x: auto; order: 3; width: 100%; padding-bottom: 0.25rem; scrollbar-width: none; }
.site-nav a { text-decoration: none; font-weight: 600; white-space: nowrap; padding: 0.25rem 0; }
.site-nav a:hover { text-decoration: underline; }

.switch-shop { font-weight: 600; font-size: var(--step--1); border: 2px solid var(--ink); padding: 0.4rem 0.75rem; text-decoration: none; white-space: nowrap; }
.switch-shop:hover { background: var(--ink); color: #fff; }

@media (min-width: 60rem) {
  .site-nav { order: 0; width: auto; }
}

.site-footer { border-top: 2px solid var(--ink); padding: 2rem var(--gutter) 2.5rem; margin-top: 3rem; }
.footer-shops { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-bottom: 1.5rem; }
.footer-shops p { margin: 0 0 0.2rem; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: var(--step-2); }
.footer-small { color: var(--steel); font-size: var(--step--1); }

/* ------------------------------------------------------------------ buttons & forms */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 var(--step-1) / 1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--ink); color: #fff; }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: #2f3331; border-color: #2f3331; }
.button-quiet { border-style: dashed; font-size: var(--step-0); min-height: 2.75rem; }
.button-danger { border-color: var(--pole); color: var(--pole); }
.button-danger:hover { background: var(--pole); color: #fff; }
.button-wide { width: 100%; }
.button[disabled] { opacity: 0.45; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.field { display: block; margin-bottom: 1rem; }
.field-label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input, select, textarea {
  font: inherit;
  font-size: max(16px, 1rem);
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}
textarea { min-height: 5rem; resize: vertical; }
input[type='file'] { padding: 0.55rem; background: transparent; border-style: dashed; }
.hint, .optional { color: var(--steel); font-weight: 400; }
.optional { font-size: var(--step--1); margin-left: 0.35rem; }
.form-error { color: var(--pole); font-weight: 600; }

/* Radio "chips": a row of choices that read like signage tiles. */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 3rem; padding: 0.45rem 0.85rem;
  border: 2px solid var(--ink); background: var(--paper); cursor: pointer; line-height: 1.2;
}
.chip small { color: var(--steel); }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:checked + span small { color: #cfd3d1; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip input:disabled + span { opacity: 0.4; cursor: not-allowed; }

/* ------------------------------------------------------------------ the board */

.board {
  background: var(--board);
  color: #e9ebea;
  padding: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px #000, inset 0 2px 0 #343836;
}
.board :focus-visible { outline-color: var(--amber); }

.board-top {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--display); font-weight: 600; font-size: var(--step-1);
  color: #aeb3b1; border-bottom: 1px solid #3a3e3c; padding-bottom: 0.6rem; margin-bottom: 1rem;
}
.board-clock { color: var(--amber); font-variant-numeric: tabular-nums; }

.board-wait-label { margin: 0 0 0.4rem; color: #aeb3b1; font-size: var(--step--1); }
.board-wait { margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 0.75rem; }
.board-wait-label { flex-basis: 100%; }
.flaps-unit { font: 700 var(--step-3) / 1 var(--display); color: var(--amber); padding-bottom: 0.2em; }

/* Split-flap characters: each letter sits on its own flap with a seam across the middle. */
.flaps { display: flex; flex-wrap: wrap; gap: 0.08em; margin: 0; font-family: var(--display); font-weight: 800; line-height: 1; color: var(--amber); }
.flap {
  position: relative;
  display: inline-grid; place-items: center;
  min-width: 0.66em; height: 1.18em; padding: 0 0.04em;
  background: linear-gradient(to bottom, #333634 0 49%, var(--flap-seam) 49% 51%, var(--flap) 51% 100%);
  border-radius: 0.06em;
  box-shadow: 0 1px 0 #000;
}
.flap.is-space { background: transparent; box-shadow: none; min-width: 0.3em; }
.flap.is-flipping { animation: flap 380ms cubic-bezier(.3, .7, .4, 1) both; animation-delay: var(--delay, 0ms); }
@keyframes flap {
  0% { transform: perspective(300px) rotateX(-88deg); filter: brightness(1.6); }
  100% { transform: perspective(300px) rotateX(0); filter: brightness(1); }
}
.flaps-big { font-size: clamp(3.5rem, 2rem + 8vw, 6.5rem); }
.flaps-mid { font-size: clamp(2.25rem, 1.5rem + 4vw, 3.5rem); }
.flaps-small { font-size: 1.5rem; }
.flaps.is-closed { color: var(--pole); }

.board-rows { width: 100%; border-collapse: collapse; font-family: var(--display); font-size: var(--step-1); }
.board-rows th { text-align: left; font-weight: 600; font-size: var(--step--1); font-family: var(--body); color: #8e9491; padding: 0 0.5rem 0.35rem 0; }
.board-rows td { padding: 0.5rem 0.5rem 0.5rem 0; border-top: 1px solid #343836; font-weight: 700; letter-spacing: 0.03em; }
.board-rows td:last-child, .board-rows th:last-child { text-align: right; padding-right: 0; }
.board-rows .is-live { color: var(--amber); }
.board-rows .is-free { color: #fff; }
.board-rows .is-muted { color: #8e9491; }
.board-empty { color: #aeb3b1; font-family: var(--body); font-weight: 400; font-size: var(--step-0); letter-spacing: 0; }

.board-foot { margin: 1rem 0 0; padding-top: 0.75rem; border-top: 1px solid #3a3e3c; color: #aeb3b1; font-size: var(--step--1); }
.board-foot strong { color: var(--amber); font-weight: 600; }

/* ------------------------------------------------------------------ home: hero */

.hero {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem) var(--gutter) 1.5rem;
  grid-template-areas: 'title' 'board' 'actions' 'lede';
}
.hero-title { grid-area: title; font-size: var(--step-5); max-width: 12ch; }
.hero-lede { grid-area: lede; }
.hero-board { grid-area: board; }
.hero-actions { grid-area: actions; }
.lede { font-size: var(--step-1); line-height: 1.4; max-width: 38ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }
.actions .button { flex: 1 1 11rem; min-height: 3.5rem; font-size: var(--step-2); }
.today-line { color: var(--steel); font-size: var(--step--1); }

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: 'title board' 'lede board' 'actions board';
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .hero-actions .actions .button { flex: 0 1 auto; }
}

.promises { padding: 0 var(--gutter); }
.promises ul {
  list-style: none; margin: 0; padding: 1rem 0; display: grid; gap: 0.75rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.promises li { font-size: var(--step--1); }

/* On phones the two main actions stay within thumb reach while scrolling the shop page. */
.phone-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--porcelain); border-top: 2px solid var(--ink);
}
.phone-actions .button { min-height: 3.25rem; font-size: var(--step-2); }
body.has-phone-actions { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 56rem) {
  .phone-actions { display: none; }
  body.has-phone-actions { padding-bottom: 0; }
}

/* ------------------------------------------------------------------ home: sections */

.section { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--gutter) 0; }
.section-head { display: grid; gap: 0.5rem 2rem; margin-bottom: 1.5rem; align-items: end; }
.section-head h2 { font-size: var(--step-4); }
.section-head p { margin: 0; max-width: 46ch; color: var(--steel); }
@media (min-width: 48rem) {
  .section-head { grid-template-columns: auto 1fr; }
}

/* Style board: a numbered grid of real cuts, like a painted barbershop sign. */
.style-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .style-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .style-board { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.style-tile a { display: block; position: relative; text-decoration: none; }
.style-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #d6dad8; }
.style-number {
  position: absolute; top: 0; left: 0;
  min-width: 2.6rem; padding: 0.15rem 0.5rem 0.05rem;
  background: var(--porcelain); color: var(--ink);
  font: 900 2.25rem / 1 var(--display);
  text-align: center;
}
.style-caption { display: block; padding-top: 0.5rem; }
.style-name { display: block; font-family: var(--display); font-weight: 800; font-size: var(--step-1); line-height: 1.05; }
.style-meta { display: block; color: var(--steel); font-size: var(--step--1); }
.style-tile a:hover .style-name { text-decoration: underline; }

/* Prices: big plain numerals, like a painted price sign. */
.price-columns { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.price-group h3 { font-size: var(--step-2); padding-bottom: 0.4rem; border-bottom: 2px solid var(--ink); }
.price-list { margin: 0; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.price-row dt { font-weight: 600; }
.price-minutes { display: block; font-weight: 400; color: var(--steel); font-size: var(--step--1); }
.price-note { display: block; font-weight: 400; color: var(--steel); font-size: var(--step--1); max-width: 40ch; }
.price-row dd { margin: 0; font: 800 var(--step-2) / 1 var(--display); white-space: nowrap; }

.barber-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.barber-card { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: start; }
.barber-card img, .barber-initial { width: 6rem; height: 6rem; object-fit: cover; filter: grayscale(1) contrast(1.05); background: var(--ink); }
.barber-initial { display: grid; place-items: center; color: #fff; font: 900 3rem / 1 var(--display); }
.barber-card h3 { font-size: var(--step-3); margin-bottom: 0.2rem; }
.aka { font-weight: 600; font-size: 0.6em; color: var(--steel); }
.barber-card p { margin-bottom: 0.4rem; }
.barber-days { font-size: var(--step--1); color: var(--steel); }
.barber-days strong { color: var(--ink); }
.barber-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-weight: 600; }

.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.review-list blockquote { margin: 0 0 0.5rem; font-size: var(--step-1); line-height: 1.4; max-width: 40ch; }
.review-list blockquote::before { content: '“'; }
.review-list blockquote::after { content: '”'; }
.review-by { color: var(--steel); font-size: var(--step--1); }

.visit-grid { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 52rem) { .visit-grid { grid-template-columns: minmax(16rem, 2fr) 3fr; } }
.hours { border-collapse: collapse; width: 100%; }
.hours caption { text-align: left; font: 800 var(--step-2) / 1 var(--display); padding-bottom: 0.5rem; border-bottom: 2px solid var(--ink); }
.hours th, .hours td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-today th, .hours .is-today td { font-weight: 700; }
.today-tag { background: var(--ink); color: #fff; font-size: 0.75rem; padding: 0.1rem 0.35rem; margin-left: 0.35rem; vertical-align: 0.1em; }
.visit-address { font: 800 var(--step-3) / 1.05 var(--display); max-width: 20ch; }
.visit-details .button { margin: 0 0.4rem 0.5rem 0; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.feature-list li { border: 1px solid var(--ink); padding: 0.2rem 0.6rem; font-size: var(--step--1); }
.visit-photo { margin: 1.5rem 0 0; }
.visit-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1); }

/* ------------------------------------------------------------------ flows: queue & booking */

/* minmax(0, 1fr): without it the column grows to fit the sideways-scrolling style strip. */
.flow { padding: clamp(1.5rem, 1rem + 2vw, 3rem) var(--gutter) 0; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) {
  .flow { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: start; }
  .flow-head { position: sticky; top: 1rem; }
}
.flow-head h1 { font-size: var(--step-4); margin-bottom: 0.75rem; }
.flow-form { max-width: 40rem; min-width: 0; }
.step { border: 0; border-top: 2px solid var(--ink); margin: 0 0 1.75rem; padding: 1rem 0 0; min-width: 0; }
.step legend { font: 800 var(--step-2) / 1 var(--display); padding: 0 0.5rem 0 0; }
.submit-row { position: sticky; bottom: 0; background: var(--porcelain); padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--ink); }
.estimate { margin-bottom: 0.6rem; font-weight: 600; }

.mini-board { margin-top: 1.25rem; }
.mini-board .board { padding: 1rem; }

.person { border: 2px solid var(--ink); background: var(--paper); padding: 1rem; margin-bottom: 1rem; }
.person-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.person-head h3 { font-size: var(--step-2); }
.link-button { background: none; border: 0; padding: 0.25rem 0; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; color: var(--ink); }
.sub-label { display: block; font-weight: 600; margin: 0.75rem 0 0.35rem; }

.style-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem; scroll-snap-type: x proximity; }
.style-choice { flex: 0 0 5.5rem; scroll-snap-align: start; position: relative; }
.style-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.style-choice span { display: block; border: 2px solid transparent; cursor: pointer; }
.style-choice img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.style-none { display: block; aspect-ratio: 1; background: repeating-linear-gradient(135deg, var(--paper) 0 8px, var(--porcelain) 8px 16px); }
.style-choice b { position: absolute; top: 2px; left: 2px; background: var(--porcelain); color: var(--ink); font: 900 1.1rem / 1 var(--display); padding: 0.1rem 0.3rem; }
.style-choice small { display: block; font-size: 0.75rem; line-height: 1.2; padding: 0.2rem 0.1rem; }
.style-choice input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.style-choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.cut-card-details { border: 2px dashed var(--ink); padding: 0.6rem 0.9rem; margin-top: 1rem; }
.cut-card-details summary { cursor: pointer; font-weight: 600; min-height: 2rem; display: flex; align-items: center; }
.cut-card-grid { display: grid; gap: 0.25rem 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); margin-top: 0.75rem; }
.cut-card-grid .field { margin-bottom: 0.6rem; }

.photo-preview { width: 8rem; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); }

.day-strip { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1rem; scroll-snap-type: x proximity; }
.day-strip .chip { flex: none; scroll-snap-align: start; }
.day-strip .chip span { min-width: 4.5rem; text-align: center; }
.day-strip .chip b { font: 800 1.5rem / 1 var(--display); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: 0.5rem; }
.slot-grid .chip span { align-items: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.slot-empty { color: var(--steel); grid-column: 1 / -1; }

/* ------------------------------------------------------------------ ticket & booking */

.ticket-page { padding: clamp(1.5rem, 1rem + 2vw, 3rem) var(--gutter) 0; max-width: 46rem; }
.ticket-card { margin-bottom: 1.5rem; }
.ticket-card .board-wait { margin-bottom: 0.5rem; }
.ticket-status { font: 800 var(--step-4) / 1 var(--display); margin: 0 0 0.75rem; }
.ticket-status.is-up { color: var(--pole); }
.ticket-when { font-size: var(--step-1); margin-bottom: 1.25rem; }
.ticket-when strong { font-weight: 700; }
.party { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 2px solid var(--ink); }
.party li { padding: 0.75rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; }
.party-ticket { font: 900 var(--step-3) / 1 var(--display); min-width: 3ch; }
.party-detail { display: block; color: var(--steel); font-size: var(--step--1); }
.ticket-actions { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
@media (min-width: 40rem) { .ticket-actions { grid-template-columns: 1fr 1fr; } }
.up-alert { background: var(--pole); color: #fff; padding: 1rem 1.25rem; margin-bottom: 1.25rem; font-size: var(--step-1); }
.up-alert strong { font-family: var(--display); font-size: var(--step-3); display: block; line-height: 1; margin-bottom: 0.35rem; }
.notice { border-left: 4px solid var(--ink); padding: 0.25rem 0 0.25rem 0.9rem; margin: 0 0 1.25rem; }
.confirm-box { border: 2px solid var(--pole); padding: 1rem; margin-bottom: 1rem; }
.spec-list { margin: 0 0 1rem; display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; }
.spec-list dt { color: var(--steel); }
.spec-list dd { margin: 0; font-weight: 600; }
.loading { color: var(--steel); }

.chooser { padding: 2rem var(--gutter) 0; }
.chooser h1 { font-size: var(--step-5); margin-bottom: 1.5rem; }
.chooser-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.chooser-card { display: block; text-decoration: none; }
.chooser-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1); margin-bottom: 0.6rem; }
.chooser-name { display: block; font: 900 var(--step-4) / 1 var(--display); }

/* ------------------------------------------------------------------ TV display */

body.tv { background: #000; min-height: 100vh; padding: 2vw; }
.tv-board { min-height: calc(100vh - 4vw); font-size: 1.6vw; display: flex; flex-direction: column; }
.tv-board .board-top { font-size: 2.2vw; }
.tv-board .board-rows { font-size: 2.4vw; }
.tv-board .board-wait-label { font-size: 1.4vw; }
.tv-board .flaps-big { font-size: 9vw; }
.tv-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 4vw; flex: 1; }
.tv-queue { list-style: none; margin: 0; padding: 0; font-family: var(--display); font-size: 2.4vw; font-weight: 700; }
.tv-queue li { display: flex; justify-content: space-between; border-top: 1px solid #343836; padding: 0.4em 0; }
.tv-calling { min-height: 0; }
.tv-calling:not(:empty) { background: var(--pole); color: #fff; padding: 1vw 1.5vw; margin-bottom: 2vw; font: 800 3.4vw / 1.05 var(--display); }
