/* ============================================================
   PLATFORM 48 — a departures board for one weekend
   Neo-brutalist poster · cream paper / ink / orange-blue clash
   ============================================================ */

@font-face {
  font-family: "Oswald";
  src: url("assets/oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --paper: #FFF7E4;
  --cream: #FBF3DE;
  --ink: #161513;
  --board: #191713;
  --board-row-hover: #242019;
  --accent: #FF4911;
  --accent-ink: #161513;
  --blue: #2436FF;
  --muted: #6E675B;
  --muted-on-dark: #C2B9A5;
  --line: #161513;
  --hairline-on-dark: rgba(251, 243, 222, 0.28);
  --shadow: 8px 8px 0 var(--ink);
  --shadow-lift: 12px 12px 0 var(--ink);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

#board, #notes, #top { scroll-margin-top: 92px; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

/* ---------- focus & selection ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.board :focus-visible,
.footer :focus-visible,
.hero-board :focus-visible {
  outline-color: var(--accent);
}
.ticket :focus-visible { outline-color: var(--blue); }

::selection { background: var(--accent); color: var(--paper); }

/* ---------- skip link ---------- */
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 12px 18px;
  transition: top 180ms var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lift); }
  .btn-primary:hover { background: #FF5D2B; }
}
.btn:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}
.masthead-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  padding-block: 10px;
}
.roundel { width: 42px; height: 42px; color: var(--ink); flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.masthead-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: 8px;
}
.masthead-nav::-webkit-scrollbar { display: none; }
.masthead-nav a {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color 160ms var(--ease);
}
.masthead-nav a.masthead-cta {
  background: var(--ink);
  color: var(--paper);
  margin-inline: 6px;
}
@media (hover: hover) and (pointer: fine) {
  .masthead-nav a:hover { border-bottom-color: var(--accent); }
  .masthead-nav a.masthead-cta:hover { border-bottom-color: var(--accent); background: #2A2822; }
}
.masthead-nav a:active { transform: translateY(1px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: clamp(64px, 9vw, 120px) 0;
  overflow-x: clip;
  border-bottom: 3px solid var(--ink);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(48px, 6vw, 88px);
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  background: var(--accent);
  flex: none;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.1rem, 9vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); }
.hero-title .outline {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
  text-shadow: none;
}
.hero-sub {
  max-width: 46ch;
  font-size: 1.08rem;
  margin-bottom: 32px;
}
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-count { color: var(--muted); }

/* entrance */
.hero-copy > * {
  animation: settle 520ms var(--ease) both;
}
.hero-copy > *:nth-child(2) { animation-delay: 70ms; }
.hero-copy > *:nth-child(3) { animation-delay: 140ms; }
.hero-copy > *:nth-child(4) { animation-delay: 210ms; }
@keyframes settle {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* --- dark flap panel --- */
.hero-board {
  background: var(--board);
  color: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  animation: settle 520ms var(--ease) 160ms both;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--hairline-on-dark);
}
.panel-label { text-transform: uppercase; }
.panel-label.dim { color: var(--muted-on-dark); }
.mini-board { list-style: none; }
.mini-board li { border-bottom: 1px solid var(--hairline-on-dark); }
.mini-board li:last-child { border-bottom: 0; }
.mini-open {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  align-items: baseline;
  text-align: left;
  background: none;
  border: 0;
  color: var(--cream);
  font-family: var(--font-mono);
  cursor: pointer;
  padding: 16px 18px;
  min-height: 44px;
  transition: background-color 160ms var(--ease);
}
.mini-time {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.mini-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.15;
}
.mini-meta {
  grid-column: 2;
  font-size: 0.78rem;
  color: var(--muted-on-dark);
  letter-spacing: 0.05em;
}
@media (hover: hover) and (pointer: fine) {
  .mini-open:hover { background: var(--board-row-hover); }
  .mini-open:hover .mini-title { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
}
.mini-open:active { background: #2E2820; }
.panel-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-top: 2px solid var(--hairline-on-dark);
}
.station-clock { width: 64px; height: 64px; flex: none; }
.clock-caption { line-height: 1.5; }
.dim { color: var(--muted-on-dark); }

/* --- ticker --- */
.ticker {
  border-top: 3px solid var(--ink);
  background: var(--accent);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  padding-block: 10px;
  animation: ticker 36s linear infinite;
}
.ticker-run {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-right: 56px;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   TOOLBAR
   ============================================================ */
.tools-band {
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  padding-block: 28px;
}
.tools {
  display: flex;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}
.input {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 2px;
  padding: 10px 14px;
  min-height: 48px;
  min-width: 240px;
  transition: box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}
.input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  background: #fff;
}
.input::placeholder { color: var(--muted); opacity: 1; }
.select { font-family: var(--font-body); cursor: pointer; }
.field-toggle .btn-toggle {
  min-height: 48px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease);
}
.btn-toggle .dot {
  width: 14px;
  height: 14px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  flex: none;
  transition: background-color 160ms var(--ease);
}
.btn-toggle[aria-pressed="true"] { background: var(--accent); }
.btn-toggle[aria-pressed="true"] .dot { background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .field-toggle .btn-toggle:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lift); }
}
.field-toggle .btn-toggle:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.count { margin-left: auto; color: var(--muted); align-self: center; }

/* ============================================================
   THE BOARD — inverted full-bleed band
   ============================================================ */
.board {
  position: relative;
  background: var(--board);
  color: var(--cream);
  padding-block: clamp(72px, 8vw, 112px);
}
.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.board-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.board-dates { color: var(--muted-on-dark); font-size: 0.85rem; }

.rows { list-style: none; }
.row {
  display: grid;
  grid-template-columns: 64px 130px 1fr auto auto;
  gap: 8px 24px;
  align-items: center;
  padding: 22px 8px;
  border-bottom: 1px solid var(--hairline-on-dark);
  animation: flap 340ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: background-color 160ms var(--ease);
}
.row:first-child { border-top: 1px solid var(--hairline-on-dark); }
@keyframes flap {
  0% { opacity: 0.25; transform: perspective(600px) rotateX(55deg); }
  70% { opacity: 1; transform: perspective(600px) rotateX(-8deg); }
  100% { opacity: 1; transform: perspective(600px) rotateX(0deg); }
}
@media (hover: hover) and (pointer: fine) {
  .row:hover { background: var(--board-row-hover); }
}
.row-index {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted-on-dark);
}
.row-time {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  white-space: nowrap;
}
.row-time .day { color: var(--accent); display: block; font-size: 0.78rem; letter-spacing: 0.12em; }
.row-open {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  padding: 6px 8px 6px 0;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  transition: color 160ms var(--ease);
}
.row-title { overflow-wrap: anywhere; }
.row-open .arrow {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 200ms var(--ease);
  flex: none;
}
@media (hover: hover) and (pointer: fine) {
  .row-open:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
  .row-open:hover .arrow { transform: translateX(6px); }
}
.row-open:active { color: var(--accent); }
.row-meta {
  grid-column: 3;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted-on-dark);
}
.saved-stamp {
  display: inline-block;
  transform: rotate(-4deg);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 2px 7px;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  margin-left: 8px;
}
.chip {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  border: 2px solid var(--blue);
  background: var(--blue);
  padding: 6px 12px;
  border-radius: 2px;
  white-space: nowrap;
}
.row-price {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--cream);
  min-width: 64px;
  text-align: right;
}
.row-price.free { color: var(--accent); }
.row { position: relative; }

.row:focus-within { background: var(--board-row-hover); }

/* ---------- empty state ---------- */
.empty {
  border: 3px dashed var(--hairline-on-dark);
  padding: clamp(32px, 5vw, 64px);
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.empty-big {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  font-weight: 600;
}
.empty-sub { max-width: 48ch; color: var(--muted-on-dark); }

/* ---------- sideways label ---------- */
.side-label {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

/* ============================================================
   STATION NOTES
   ============================================================ */
.notes {
  padding-block: clamp(72px, 9vw, 128px);
  border-bottom: 3px solid var(--ink);
}
.notes-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 10px;
}
.lede { font-size: 1.08rem; color: var(--muted); margin-bottom: 36px; max-width: 44ch; }
.rules-list { display: grid; gap: 0; }
.rule-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 24px;
  padding-block: 18px;
  border-top: 2px solid var(--ink);
}
.rule-row:last-child { border-bottom: 2px solid var(--ink); }
.rule-row dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.rule-row dd { color: #3E3930; }
.sub-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.key-table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--cream);
  margin-bottom: 28px;
}
.table-cap {
  caption-side: top;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-bottom: 10px;
}
.key-table th, .key-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(22, 21, 19, 0.25);
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.key-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 0;
}
.key-table td.num, .key-table th.num { text-align: right; font-weight: 600; }
.key-table tbody tr:last-child td { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  .key-table tbody tr:hover { background: #F3E9CE; }
}
.fine-print { font-size: 0.9rem; color: var(--muted); max-width: 40ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 48px;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-brand .mono { color: var(--muted-on-dark); font-size: 0.8rem; }
.footer-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  padding: 12px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: border-color 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover { border-bottom-color: var(--accent); }
}
.footer-fine { color: var(--muted-on-dark); }

/* ============================================================
   TICKET DIALOG
   ============================================================ */
.ticket {
  border: 3px solid var(--ink);
  border-radius: 2px;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  width: min(680px, 94vw);
  max-height: 92vh;
  margin: auto;
  box-shadow: 14px 14px 0 rgba(22, 21, 19, 0.9);
  overscroll-behavior: contain;
}
.ticket::backdrop {
  background: rgba(22, 21, 19, 0.72);
}
.ticket-inner { display: flex; flex-direction: column; max-height: 92vh; }
.ticket-head {
  background: var(--board);
  color: var(--cream);
  padding: 24px 24px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: start;
  flex: none;
}
.ticket-kicker { color: var(--accent); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }
.ticket-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0;
}
.ticket-close {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 48px;
  height: 48px;
  border: 3px solid var(--cream);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.ticket-close svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .ticket-close:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
}
.ticket-close:active { transform: scale(0.94); }

.perf {
  display: flex;
  align-items: center;
  gap: 0;
  flex: none;
  position: relative;
  height: 0;
  z-index: 1;
}
.punch-hole {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ink);
  flex: none;
  margin: -11px 0 0 -13px;
}
.punch-hole.bottom { margin: -11px -13px 0 0; margin-left: auto; }
.perf-line {
  flex: 1;
  border-top: 3px dashed rgba(22, 21, 19, 0.45);
}

.ticket-bodywrap {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  gap: 22px;
}
.ticket-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 3px solid var(--ink);
}
.photo-cap { font-size: 0.72rem; color: var(--muted); margin-top: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.ticket-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 3px solid var(--ink);
  background: var(--paper);
}
.ticket-specs > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(22, 21, 19, 0.25);
  font-size: 0.88rem;
}
.ticket-specs > div:nth-last-child(-n+2) { border-bottom: 0; }
.ticket-specs dt {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 2px;
}
.ticket-specs dd { text-align: right; font-weight: 600; }
.ticket-body { display: grid; gap: 14px; max-width: 58ch; }
.ticket-body p { line-height: 1.65; }
.ticket-actions { padding-top: 4px; }
.btn-punch { width: 100%; justify-content: center; }
.btn-punch .punch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid var(--accent-ink);
  flex: none;
  transition: background-color 160ms var(--ease);
}
.btn-punch[aria-pressed="true"] {
  background: var(--board);
  color: var(--cream);
}
.btn-punch[aria-pressed="true"] .punch-dot {
  background: var(--accent);
  border-color: var(--accent);
}
.ticket .btn-punch:focus-visible { outline-color: var(--accent); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-board { max-width: 560px; }
  .notes-grid { grid-template-columns: 1fr; }
  .row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "time title chip"
      "meta meta price";
    padding: 20px 4px;
  }
  .row-index { display: none; }
  .row-time { grid-area: time; align-self: start; }
  .row-open { grid-area: title; }
  .chip { grid-area: chip; justify-self: end; }
  .row-meta { grid-area: meta; }
  .row-price { grid-area: price; align-self: end; }
  .side-label { display: none; }
  .rule-row { grid-template-columns: 1fr; }
  .ticket-specs { grid-template-columns: 1fr; }
  .ticket-specs > div:nth-last-child(-n+2) { border-bottom: 1px solid rgba(22, 21, 19, 0.25); }
  .ticket-specs > div:last-child { border-bottom: 0; }
  .count { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .masthead-grid { flex-wrap: wrap; padding-block: 10px; }
  #board, #notes { scroll-margin-top: 140px; }
  .hero-title { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  .tools { flex-direction: column; align-items: stretch; }
  .input { min-width: 0; width: 100%; }
  .ticket { width: 100vw; max-height: 100vh; height: 100dvh; border: 0; box-shadow: none; }
  .ticket-inner { max-height: 100dvh; }
  .ticket-bodywrap { padding: 18px; }
  .ticket-head { padding: 18px 18px 16px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-board, .row {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
  .btn, .btn-toggle, .mini-open, .row-open, .ticket-close, .masthead-nav a, .row, .input {
    transition: none;
  }
}
