/* Self-hosted brand fonts (OFL) — no Google Fonts dependency */
@font-face {
  font-family: "Cormorant SC";
  src: url("/fonts/cormorant-sc-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant SC";
  src: url("/fonts/cormorant-sc-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond.woff2") format("woff2-variations"),
       url("/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3.woff2") format("woff2-variations"),
       url("/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #1F402C;
  --forest-deep: #15301F;
  --ivory: #FCF8F0;
  --parchment: #F2EBDC;
  --gold: #AD8B44;
  --gold-deep: #7A5F25;
  --gold-light: #D9BD7E;
  --claret: #7B2D3A;
  --ink: #1D2520;
  --stone: #59625C;
  --line: #DED6C4;
  --success: #2E6B47;
  --warning: #8A5A00;
  --error: #A3262A;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sc: "Cormorant SC", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-synthesis: none;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--forest); }
a:hover { color: var(--gold-deep); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}
.brand img { display: block; height: 40px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.95rem; }
.nav a { text-decoration: none; font-weight: 600; color: var(--forest); }
.nav a:hover { color: var(--gold-deep); }

main {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  flex: 1;
}
main.wide { width: min(960px, 100%); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem;
  color: var(--stone);
  font-size: 0.85rem;
  text-align: center;
  background: var(--parchment);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-synthesis: none;
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
.eyebrow {
  font-family: var(--font-sc);
  font-weight: 600;
  font-synthesis: none;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.35rem;
}
.rule {
  height: 1px;
  border: 0;
  background: var(--gold);
  opacity: 0.55;
  margin: 1.25rem 0;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.25rem 1.35rem;
  margin: 1rem 0;
}
.muted { color: var(--stone); }
.stack > * + * { margin-top: 0.75rem; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 80px; resize: vertical; }
.field { margin-bottom: 0.9rem; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--ivory);
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
}
.btn:hover { background: var(--forest-deep); color: var(--ivory); }
.btn-secondary {
  background: transparent;
  color: var(--forest);
}
.btn-secondary:hover { background: var(--parchment); color: var(--forest); }
.btn-gold {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--forest-deep);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
th {
  font-family: var(--font-sc);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
}
tr.available td { background: #fff; }
tr.taken td { color: var(--stone); }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  background: var(--parchment);
  color: var(--forest);
}
.badge-live { background: var(--claret); color: var(--ivory); }
.badge-ok { background: var(--success); color: #fff; }
.badge-warn { background: var(--warning); color: #fff; }

.flash {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-left-width: 3px;
  margin-bottom: 1rem;
  background: #fff;
}
.flash-info { border-left-color: var(--forest); }
.flash-success { border-left-color: var(--success); }
.flash-error { border-left-color: var(--error); }
.flash-warn { border-left-color: var(--warning); }

.hero {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
.hero img.emblem { height: 72px; margin-bottom: 0.75rem; }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

/* ---------- Coming soon & login ---------- */

.inline-form { display: inline; margin: 0; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--forest);
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
}
.btn-ghost:hover { background: var(--parchment); color: var(--forest); }
.btn-block { width: 100%; text-align: center; }

.page-coming-soon,
.page-login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(173, 139, 68, 0.08), transparent 55%),
    var(--ivory);
}

.coming-header {
  padding: 1rem 1.25rem;
}
.coming-header-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.coming-main,
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem 2.5rem;
}

.coming-card,
.login-card {
  width: min(440px, 100%);
  text-align: center;
}

.coming-emblem {
  display: block;
  margin: 0 auto 1.1rem;
  height: auto;
  width: 110px;
}

.coming-wordmark {
  font-family: var(--font-sc);
  font-size: 1.35rem;
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 0.85rem;
}

.coming-rule {
  width: 3.5rem;
  height: 1px;
  border: 0;
  background: var(--gold);
  margin: 0 auto 1.35rem;
}

.coming-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-synthesis: none;
  font-size: clamp(1.55rem, 5.5vw, 2.05rem);
  line-height: 1.25;
  color: var(--forest);
  margin: 0 0 1rem;
}

.coming-lede {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--stone);
  margin: 0;
  max-width: 36ch;
  margin-inline: auto;
}

.coming-footer {
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
  color: var(--stone);
  font-size: 0.85rem;
}
.coming-footer p { margin: 0; }

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.25rem;
}
.login-brand img { display: block; width: 72px; height: auto; }
.login-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0 0 0.35rem;
}
.login-sub { margin: 0 0 1.25rem; }
.login-card .stack { text-align: left; }
.login-card .btn { margin-top: 0.35rem; }
.login-back {
  margin: 1.35rem 0 0;
  font-size: 0.92rem;
}

.nav-user {
  font-size: 0.85rem;
  align-self: center;
}
.nav-logout {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
  text-decoration: none;
}
.nav-logout:hover { color: var(--gold-deep); }

@media (max-width: 420px) {
  .coming-emblem { width: 96px; }
  .coming-wordmark { font-size: 1.15rem; letter-spacing: 0.12em; }
  .coming-header-inner { justify-content: center; }
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gold);
  background: #fffdf6;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--forest-deep);
}
.badge-demo {
  background: var(--gold);
  color: var(--forest-deep);
  letter-spacing: 0.08em;
}
.tee-sign {
  max-width: 360px;
  margin: 1.5rem auto;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border: 2px solid var(--forest);
  background: #fff;
}
.tee-sign .qr {
  width: 180px;
  height: 180px;
  margin: 1rem auto;
  display: block;
}
.tee-sign .hole-num {
  font-family: var(--font-sc);
  letter-spacing: 0.15em;
  color: var(--gold-deep);
}
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 1rem 0;
}
@media (max-width: 560px) { .meta-grid { grid-template-columns: 1fr; } }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--forest); }
.stat span { font-size: 0.82rem; color: var(--stone); }

.login-demo-note { font-size: 0.88rem; margin: 0.35rem 0 0; text-align: center; }
.demo-login { margin-bottom: 0.5rem; }

/* ---------- Organiser console: layout + grouped menu ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.console-wrap {
  flex: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 2rem;
  padding: 1.75rem 1.25rem 3rem;
}
.console-main { min-width: 0; width: auto; margin: 0; padding: 0; }
.console-aside { min-width: 0; }

.console-nav { font-size: 0.95rem; }
.console-nav .nav-toggle { display: none; }
.console-nav .nav-list {
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0;
}
.console-nav .nav-home {
  display: block;
  padding: 0.35rem 1rem 0.65rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--forest);
  border-bottom: 1px solid var(--line);
}
.console-nav .nav-home:hover { color: var(--gold-deep); }
.console-nav .nav-group { padding: 0.65rem 0 0.25rem; }
.console-nav .nav-group + .nav-group { border-top: 1px solid var(--line); }
.console-nav .nav-group-label {
  margin: 0 0 0.2rem;
  padding: 0 1rem;
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.console-nav .nav-items { list-style: none; margin: 0; padding: 0; }
.console-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  text-decoration: none;
  color: var(--forest);
  border-left: 3px solid transparent;
  line-height: 1.35;
}
.console-nav .nav-link:hover { background: var(--parchment); color: var(--forest-deep); }
.console-nav .nav-link.on {
  font-weight: 700;
  background: var(--ivory);
  border-left-color: var(--gold);
}
.console-nav .nav-foot {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem 0.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.console-nav .nav-user {
  align-self: auto;
  font-size: 0.85rem;
  color: var(--stone);
  overflow-wrap: anywhere;
}
.console-nav .nav-logout-form { margin: 0; }
.nav-badge {
  display: inline-block;
  min-width: 1.5rem;
  text-align: center;
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  padding: 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.5;
  margin-left: auto;
  flex: none;
}

@media (max-width: 800px) {
  .site-header { padding: 0.75rem 1rem; }
  .console-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 0.85rem 1rem 2.5rem;
  }
  .console-nav .nav-list { position: static; padding: 0.25rem 0; }
  .console-nav .nav-home { padding: 0.85rem 1rem; }
  .console-nav .nav-group { padding: 0.5rem 0 0; }
  .console-nav .nav-group-label { padding: 0.25rem 1rem; }
  .console-nav .nav-link {
    min-height: 48px;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    border-top: 1px solid rgba(222, 214, 196, 0.6);
  }
  .console-nav .nav-foot {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
  }
  .console-nav .nav-logout { padding: 0.5rem 0; min-height: 44px; }

  /* Collapsed menu control (added by JS; without JS the list is just shown) */
  .console-nav.is-collapsible .nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 52px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--forest);
    border-radius: 2px;
    background: var(--forest);
    color: var(--ivory);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  .console-nav .nav-toggle-label {
    font-family: var(--font-sc);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
  }
  .console-nav .nav-toggle-current {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .console-nav .nav-toggle .nav-badge { margin-left: 0; }
  .console-nav .nav-toggle-icon {
    width: 0.65rem;
    height: 0.65rem;
    border-right: 2px solid var(--ivory);
    border-bottom: 2px solid var(--ivory);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s;
    flex: none;
  }
  .console-nav.is-open .nav-toggle-icon { transform: rotate(-135deg) translateY(-2px); }
  .console-nav.is-collapsible .nav-list { margin-top: 0.5rem; }
  .console-nav.is-collapsible:not(.is-open) .nav-list { display: none; }
}

/* ---------- Responsive tables ---------- */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.stack-table td { overflow-wrap: break-word; word-break: normal; }
.stack-table .cell-email { overflow-wrap: anywhere; }
.stack-table code { overflow-wrap: anywhere; }
.player-list { list-style: none; margin: 0; padding: 0; }
.player-list li { display: inline; white-space: nowrap; }
.player-list li + li::before { content: ", "; white-space: normal; }
.tee-sheet .ts-time { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tee-sheet .slot-state { color: var(--stone); font-style: italic; }
tr.slot-available td { background: #fff; }
tr.slot-blocked td { background: var(--parchment); color: var(--stone); }
.badge-free { background: #E4EFE7; color: var(--success); }
.badge-blocked { background: var(--claret); color: var(--ivory); }
.pace-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0; }
.pace-form input { width: 5.5rem; }
.ts-summary { margin-top: -0.25rem; }

@media (max-width: 800px) {
  h1 { font-size: 2rem; }
  .card { padding: 1rem; }
  .card-flush { background: transparent; border: 0; padding: 0; }
  .table-wrap { overflow-x: visible; }
  .stack-table, .stack-table tbody { display: block; width: 100%; }
  .stack-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap;
  }
  .stack-table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--forest);
    border-radius: 2px;
    padding: 0.75rem 0.9rem;
    margin: 0 0 0.65rem;
  }
  .stack-table td {
    display: block;
    flex: 1 1 100%;
    padding: 0.2rem 0;
    border: 0;
    min-width: 0;
  }
  .stack-table td[data-label]:not(.cell-key):not(.cell-title):not(.cell-actions)::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 6.5rem;
    margin-right: 0.5rem;
    font-family: var(--font-sc);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone);
  }
  .stack-table td.is-empty { display: none; }
  .stack-table td.cell-key {
    flex: 0 0 auto;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--forest);
  }
  .stack-table td.cell-title {
    flex: 1 1 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--forest);
    line-height: 1.25;
  }
  .stack-table td.cell-key + td.cell-title { padding-bottom: 0.35rem; }
  .stack-table td.cell-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.6rem;
  }
  .stack-table td.cell-actions .btn.small { padding: 0.55rem 1rem; font-size: 0.95rem; min-height: 44px; }
  .stack-table tr.row-empty { border-left-color: var(--line); }
  .stack-table tr.row-empty td { display: block; }
  .stack-table.compact-table td.cell-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }

  /* Tee sheet cards */
  .tee-sheet tr.slot-available { border-left-color: var(--success); border-style: dashed; border-left-style: solid; }
  .tee-sheet tr.slot-blocked { border-left-color: var(--claret); background: var(--parchment); }
  .tee-sheet tr.slot-blocked td, .tee-sheet tr.slot-available td { background: transparent; }
  .tee-sheet td.ts-time { font-size: 1.2rem; font-family: var(--font-display); }
  .tee-sheet td.ts-players::before, .tee-sheet td.ts-checkin::before { display: none !important; }
  .tee-sheet .player-list li { display: block; white-space: normal; padding: 0.1rem 0; }
  .tee-sheet .player-list li + li::before { content: none; }
  .tee-sheet td.ts-status { flex: 0 0 auto; padding-top: 0.35rem; }
  .tee-sheet tr.slot-available td.ts-status, .tee-sheet tr.slot-blocked td.ts-status { margin-left: auto; padding-top: 0.2rem; }
  .tee-sheet td.ts-status::before { display: none !important; }
  .tee-sheet td.ts-checkin { flex: 1 1 auto; justify-content: flex-end; padding-top: 0.35rem; }
  .stack-table tr td.is-empty { display: none; }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.stats-row .stat {
  background: #fff;
  border: 1px solid rgba(31, 64, 44, 0.12);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.stats-row .stat strong { display: block; font-size: 1.25rem; color: #1F402C; }
.stats-row .stat span { font-size: 0.8rem; color: #6b7c70; }
.email-preview {
  white-space: pre-wrap;
  background: #FCF8F0;
  border: 1px solid rgba(31, 64, 44, 0.12);
  padding: 1rem;
  border-radius: 6px;
  font-family: inherit;
}
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.inline-form { display: inline; }
.btn.small, button.small { font-size: 0.85rem; padding: 0.25rem 0.55rem; }
.check { display: flex; gap: 0.4rem; align-items: center; }

/* ——— Print materials: QR pack ——— */
.qr-intro p:last-child { margin-bottom: 0; }
.qr-group { margin-top: 1.75rem; }
.qr-group h2 { margin-bottom: 0.25rem; }
.qr-grid {
  list-style: none; margin: 0.75rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem;
}
.qr-card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--forest);
  border-radius: 8px; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0;
}
.qr-preview { background: #fff; padding: 0.25rem; max-width: 11rem; margin: 0 auto; width: 100%; }
.qr-preview svg { display: block; width: 100%; height: auto; }
.qr-meta { min-width: 0; }
.qr-label { font-size: 1.05rem; margin: 0 0 0.35rem; color: var(--forest); font-family: var(--font-body); font-weight: 700; }
.qr-url-row { display: flex; gap: 0.5rem; align-items: flex-start; }
.qr-url {
  flex: 1 1 auto; min-width: 0; display: block; font-size: 0.82rem; background: var(--ivory);
  border: 1px solid var(--line); border-radius: 4px; padding: 0.35rem 0.5rem;
  overflow-wrap: anywhere; user-select: all; -webkit-user-select: all;
}
.qr-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 0; }
.badge-src { font-size: 0.72rem; }
.badge-src-food-cart { background: var(--gold); color: #fff; }
.badge-src-competition { background: var(--claret); color: var(--ivory); }
.badge-src-leaderboard { background: var(--forest); color: var(--ivory); }
.badge-src-scorecard { background: #E4EFE7; color: var(--success); border: 1px solid var(--success); }
.badge-src-marshal { background: var(--parchment); color: var(--forest); border: 1px solid var(--line); }
.badge-src-scan { background: var(--gold-light); color: var(--ink); }
.pace-legend { display: flex; flex-wrap: wrap; gap: 0.35rem; }
@media (max-width: 800px) {
  .qr-grid { grid-template-columns: 1fr; }
  .qr-card { flex-direction: row; align-items: flex-start; }
  .qr-preview { flex: 0 0 7.5rem; max-width: 7.5rem; margin: 0; }
  .qr-actions .btn.small { min-height: 44px; padding: 0.55rem 0.9rem; display: inline-flex; align-items: center; }
}
@media (max-width: 420px) {
  .qr-card { flex-direction: column; }
  .qr-preview { max-width: 11rem; flex-basis: auto; margin: 0 auto; }
}
.qr-details summary {
  cursor: pointer; font-weight: 600; color: var(--forest); padding: 0.6rem 0; min-height: 44px;
  display: flex; align-items: center;
}
