/* =========================================================
   Sycamore Cup Classic — live scoring
   Built for a phone in one hand and a beer in the other.
   Inherits the site tokens from style.css; everything here is
   about touch targets, glanceability, and standing in the sun.
   ========================================================= */

.scoring-body { background: var(--ivory); }

.scoring-shell { padding-bottom: 40px; }

/* ---------- identity ---------- */
.ident-bar {
  background: var(--forest);
  color: #F3EFE4;
  padding: 10px 0;
}
.ident-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ident-label {
  display: block;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .65; margin-bottom: 1px;
}
.ident-who strong { font-size: 16px; font-weight: 600; }
.ident-bar .btn-light { background: rgba(255,255,255,.14); color: #F3EFE4; border-color: rgba(255,255,255,.28); }
.ident-bar .btn-light:hover { background: rgba(255,255,255,.24); }

/* ---------- round picker ---------- */
.round-bar { background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 0 12px; }
.round-select {
  width: 100%; padding: 11px 12px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--ink); background: var(--sand);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
.round-meta {
  margin-top: 7px; font-size: 12.5px; color: var(--ink-soft);
  font-family: var(--font-mono);
}
.round-locked {
  display: inline-block; margin-left: 8px; padding: 1px 7px;
  background: var(--clay); color: #fff; border-radius: 2px;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- tabs ---------- */
.tabbar {
  display: flex; gap: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  position: sticky; top: 0; z-index: 30;
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-width: 92px;
  padding: 14px 14px 12px;
  background: none; border: none; border-bottom: 2px solid transparent;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: .02em; color: var(--ink-soft); cursor: pointer;
  white-space: nowrap;
}
.tab.active { color: var(--forest); border-bottom-color: var(--forest); }
.tab:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }

.scoring-main { padding-top: 22px; }
.tabpane { display: none; }
.tabpane.active { display: block; }

/* ---------- generic blocks ---------- */
.pane-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 14px;
}
.pane-head h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0;
}
.pane-note { font-size: 13px; color: var(--ink-soft); margin: 0 0 16px; }

.banner {
  padding: 13px 15px; border-radius: var(--radius);
  background: var(--sand); border-left: 2px solid var(--brass);
  font-size: 14px; margin-bottom: 18px;
}
.banner.warn { border-left-color: var(--clay); }
.banner strong { display: block; margin-bottom: 2px; }

/* ---------- the scorecard ---------- */
.card-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px; }
.sc-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-mono); font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.sc-table th, .sc-table td {
  padding: 6px 1px; text-align: center;
  border-bottom: 1px solid var(--line);
  min-width: 29px;
}
.sc-table thead th {
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
}
.sc-table .row-label {
  text-align: left; white-space: nowrap;
  font-family: var(--font-body); font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
  position: sticky; left: 0; background: var(--ivory); min-width: 52px;
  padding-right: 6px;
}
.sc-table .col-total { background: var(--sand); font-weight: 600; }
.sc-table .row-par td, .sc-table .row-hcp td { color: var(--ink-soft); font-size: 12px; }

/* score entry cells */
.score-cell {
  position: relative; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--ink);
  padding: 12px 1px;
}
.score-cell:hover { background: var(--sand); }
.score-cell.empty { color: var(--line-strong); }
.score-cell.locked { cursor: default; opacity: .55; }

/* the pop marks — a dot per stroke received on that hole */
.pops { position: absolute; top: 3px; right: 2px; display: flex; gap: 1.5px; }
.pop-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }

.score-under { color: var(--under-par); }
.score-over  { color: var(--over-par); }
.score-cell.eagle { box-shadow: inset 0 0 0 2px var(--under-par); }
.score-cell.birdie { box-shadow: inset 0 0 0 1px var(--under-par); }
.score-cell.bogey-plus { color: var(--over-par); }
.score-cell.capped::after {
  content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 1.5px; background: var(--clay);
}

/* ---------- totals strip ---------- */
.totals-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius);
  margin: 18px 0; overflow: hidden;
}
.total-tile { background: var(--paper); padding: 13px 10px; text-align: center; }
.total-tile .t-label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 3px;
}
.total-tile .t-value {
  font-family: var(--font-mono); font-size: 21px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- tee picker ---------- */
.tee-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 15px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 18px;
}
.tee-row .tee-label {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.tee-btn {
  padding: 7px 13px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--ivory);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--ink); cursor: pointer;
}
.tee-btn.on { background: var(--forest); border-color: var(--forest); color: #F3EFE4; }
.tee-hcp {
  margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft);
}
.tee-hcp strong { color: var(--ink); font-size: 15px; }

/* .btn-light in style.css is white-on-white by design — it lives on dark
   hero sections. On these pale cards it vanishes, so light surfaces use this. */
.btn-quiet {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-quiet:hover { background: var(--sand); border-color: var(--forest); color: var(--forest); }
.btn-quiet[disabled] { opacity: .38; cursor: not-allowed; }

/* The one button on the site that takes scores off the board. It only ever
   appears as the second half of a confirm, so it should not look like the
   rest of the panel. */
.btn-danger {
  background: #8f2d21;
  border-color: #8f2d21;
  color: #fff;
}
.btn-danger:hover { background: #a33427; border-color: #a33427; color: #fff; }
.btn-danger[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- leaderboards ---------- */
.lb { width: 100%; border-collapse: collapse; }
.lb th {
  text-align: left; padding: 0 8px 8px;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
}
.lb td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.lb .pos {
  width: 34px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft);
}
.lb tr.is-me { background: rgba(169,136,79,.09); }
.lb tr.is-me td:first-child { box-shadow: inset 2px 0 0 var(--brass); }
.lb .who { font-weight: 600; }
.lb .who small {
  display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-soft);
  font-family: var(--font-body); margin-top: 1px;
}
.lb .net { font-size: 17px; font-weight: 600; }
.lb .thru { font-size: 12px; color: var(--ink-soft); }

.team-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 7px; vertical-align: 1px;
}
.dot-team-1 { background: var(--forest); }
.dot-team-2 { background: var(--clay); }
.dot-team-3 { background: var(--brass); }

/* ---------- team cards ---------- */
.team-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); margin-bottom: 14px; overflow: hidden;
}
.team-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line);
}
.team-card-head h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 19px; }
.team-card-head .team-net {
  font-family: var(--font-mono); font-size: 24px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.team-members { padding: 6px 17px 13px; }
.team-member {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0; font-size: 14px; border-bottom: 1px solid var(--line);
}
.team-member:last-child { border-bottom: none; }
.team-member .m-net { font-family: var(--font-mono); font-weight: 600; }
.team-member .m-thru { font-size: 11.5px; color: var(--ink-soft); margin-left: 8px; font-weight: 400; }
.scramble-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 17px; background: var(--sand); font-size: 13.5px;
}
.scramble-line .s-net { font-family: var(--font-mono); font-weight: 600; }

/* ---------- skins ---------- */
.skins-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 7px; margin-bottom: 20px;
}
.skin-hole {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 6px; text-align: center; background: var(--paper);
}
.skin-hole .sh-num {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.skin-hole .sh-who {
  font-size: 12px; font-weight: 600; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.skin-hole .sh-val { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); margin-top: 1px; }
.skin-hole.won { border-color: var(--forest); background: rgba(30,58,47,.05); }
.skin-hole.tied { background: var(--sand); }
.skin-hole.tied .sh-who { color: var(--ink-soft); font-weight: 500; }
.skin-hole.pending { opacity: .5; }
.skin-hole.carry-in { border-left: 2px solid var(--brass); }

.carry-note {
  padding: 11px 15px; background: var(--sand); border-left: 2px solid var(--brass);
  font-size: 13.5px; margin-bottom: 18px;
}

/* ---------- money ---------- */
.money-group { margin-bottom: 26px; }
.money-group h3 {
  font-family: var(--font-body); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 0 0 9px; padding-bottom: 7px; border-bottom: 1px solid var(--line-strong);
}
.money-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.money-row .m-label { flex: 1; font-size: 14px; }
.money-row .m-lead { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.money-row .m-amount {
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  /* Fixed column so every amount sits on the same right edge — otherwise a row
     carrying a wider "$50 each" line underneath pushes its own number left. */
  min-width: 96px; text-align: right; flex: 0 0 auto;
}
.money-row .m-per { font-size: 11px; color: var(--ink-soft); display: block; text-align: right; }
.money-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 15px 0 0; margin-top: 6px; border-top: 2px solid var(--ink);
  font-family: var(--font-display); font-size: 19px;
}
.money-total .mt-amount { font-family: var(--font-mono); font-weight: 600; }

/* ---------- sheets (sign-in, keypad) ---------- */
/* The hidden attribute must win over the display rule below, or these
   invisible overlays sit on top of the page and swallow every tap. */
.sheet-backdrop[hidden] { display: none !important; }

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(32,30,26,.55);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.sheet {
  background: var(--ivory); width: 100%; max-width: 560px;
  border-radius: 10px 10px 0 0; padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  max-height: 92vh; overflow-y: auto;
}
.sheet { position: relative; }
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: var(--paper);
  color: var(--ink-soft); font-size: 22px; line-height: 1;
}
.sheet-close:hover { color: var(--ink); border-color: var(--ink-soft); }
.sheet-close:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.sheet h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0 0 5px; padding-right: 44px; }
.sheet .muted { font-size: 13.5px; margin: 0 0 18px; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.name-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.name-btn.is-current { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); }
.name-btn {
  padding: 14px 12px; text-align: left;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.name-btn small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.name-btn:hover { border-color: var(--forest); }
.name-btn.taken { opacity: .45; }
.name-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.pin-block label {
  display: block; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px;
}
.pin-input {
  width: 100%; padding: 15px; text-align: center;
  font-family: var(--font-mono); font-size: 28px; letter-spacing: .5em;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
}
.pin-error { color: var(--clay); font-size: 13px; margin: 9px 0 0; }

/* keypad */
.keypad-sheet { max-width: 420px; }
.keypad-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.keypad-head .kp-mid { flex: 1; min-width: 0; }
/* Big round targets at the edges of the sheet — the two places a thumb already
   rests when you are holding a phone one-handed in a cart. */
.kp-nav {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.kp-nav:active { background: var(--sand); }
.kp-nav:disabled { opacity: .28; cursor: default; }
.kp-nav:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.keypad-head h2 { margin: 2px 0 3px; }
.keypad-head .muted { margin: 0; }
.keypad-pops { text-align: right; }
.keypad-pops .kp-dots { display: flex; gap: 3px; justify-content: flex-end; margin-bottom: 3px; }
.keypad-pops .kp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.keypad-pops .kp-text {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass);
}
.kp-entryrow { display: flex; gap: 9px; align-items: stretch; margin-bottom: 12px; }
.kp-entry {
  flex: 1; min-width: 0; height: 58px; border-radius: 10px; text-align: center;
  border: 1.5px solid var(--forest); background: var(--paper); color: var(--ink);
  font-family: var(--font-mono); font-size: 27px; font-weight: 600;
}
.kp-entry:focus { outline: 2px solid var(--brass); outline-offset: 2px; }
.kp-entry::-webkit-outer-spin-button, .kp-entry::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.kp-entry[type=number] { -moz-appearance: textfield; }
.kp-save {
  flex: 0 0 auto; width: 94px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--forest); background: var(--forest); color: #fff;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
}
.kp-save:disabled { opacity: .35; cursor: default; }
.kp-quick-l {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .11em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 7px;
}
.keypad-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.key {
  padding: 17px 0; font-family: var(--font-mono); font-size: 20px; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius); cursor: pointer; color: var(--ink);
}
.key:hover { border-color: var(--forest); }
.key.on { background: var(--forest); border-color: var(--forest); color: #F3EFE4; }
.key.max { border-style: dashed; }
.key.clear { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); }
.keypad-note { font-size: 12.5px; color: var(--clay); margin: 13px 0 0; }

@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { border-radius: 4px; }
  .name-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   2026 landing page — team roster cards, LIV-style leaderboard,
   schedule. Lives here because it's all live-tournament UI, same
   as the rest of this file, even though it renders on years/2026.html
   rather than scoring.html.
   ========================================================= */

/* ---------- team roster cards ---------- */
.team-roster-block { margin-bottom: 44px; }
.team-roster-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.team-roster-head h3 { margin: 0; font-size: 1.5rem; }
.team-roster-head .combined-hcp {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .06em;
}
.roster-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.tcard {
  display: block; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: var(--sand); box-shadow: 0 2px 10px rgba(0,0,0,.10);
  outline: 3px solid transparent; outline-offset: -3px;
  transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
}
.tcard:hover, .tcard:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  outline-color: var(--team-accent, var(--brass));
}
.tcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard-fb {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 18px;
  text-align: center; background: #12301D;
  border: 3px solid rgba(201,162,39,.55);
}
.tcard-fb-name { font-family: var(--font-display); font-size: 1.1rem; color: #F0E6C9; line-height: 1.25; }
.tcard-fb-hcp {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  color: #12301D; background: #C9A227; padding: 3px 9px; border-radius: 3px;
}
.tcard-fb-note {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(240,230,201,.55);
}
@media (max-width: 860px) {
  .roster-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 420px) {
  .roster-cards { gap: 12px; }
}

/* ---------- LIV-style live leaderboard ---------- */
.liv-board {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 26px 8px; box-shadow: var(--shadow-card);
}
.liv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.liv-toggle { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; gap: 2px; }
.liv-toggle button {
  border: none; background: none; padding: 9px 20px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 12.5px;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer;
  transition: background .15s, color .15s;
}
.liv-toggle button.on.tp-players { background: var(--forest); color: #fff; }
.liv-toggle button.on.tp-teams { background: var(--liv-navy, #1F3A5C); color: #fff; }
.liv-status { background: var(--sand); border-radius: 14px; padding: 10px 18px; text-align: right; }
.liv-status strong { display: block; color: var(--ink); font-size: 13.5px; }
.liv-status span { color: var(--ink-soft); font-size: 11.5px; }
.liv-heading {
  font-family: var(--font-display); font-weight: 700; font-size: 2.3rem;
  letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 18px; color: var(--forest);
}
.liv-heading.tp-teams { color: var(--liv-navy, #1F3A5C); }
.liv-table { width: 100%; border-collapse: collapse; }
.liv-table th {
  text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600; padding: 0 10px 10px;
}
.liv-table th.num, .liv-table td.num { text-align: center; }
.liv-table td { padding: 16px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.liv-pos { font-family: var(--font-mono); font-weight: 600; color: var(--ink-soft); width: 36px; }
.liv-who { display: flex; align-items: center; gap: 14px; }
.liv-avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--sand); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--ink-soft);
}
.liv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.liv-namecol { display: block; min-width: 0; }
.liv-namecol .n { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.liv-namecol .hcp { font-family: var(--font-mono); font-weight: 400; color: var(--ink-soft); font-size: .85em; }
.liv-namecol .t { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; }
.liv-round { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.liv-round .thru { display: block; font-size: 10px; color: var(--ink-soft); font-family: var(--font-body); margin-top: 2px; }
.liv-round.dropped { color: var(--ink-soft); text-decoration: line-through; opacity: .6; }
.liv-round.dash { color: var(--line-strong); }
.liv-tot { font-family: var(--font-mono); font-weight: 700; font-size: 19px; color: var(--ink); }
.liv-tot.under { color: var(--forest); }
.liv-note { font-size: 12.5px; color: var(--ink-soft); padding: 16px 10px 22px; }
@media (max-width: 700px) {
  .liv-board { padding: 20px 14px 4px; border-radius: 14px; }
  .liv-heading { font-size: 1.6rem; }
  .liv-who { gap: 10px; }
  .liv-avatar { width: 36px; height: 36px; }
  .liv-table th, .liv-table td { padding: 10px 6px; }
  .liv-namecol { display: block; min-width: 0; }
.liv-namecol .n { display: block; font-size: 13.5px; }
  /* Six columns on a phone: the avatar is the thing to lose, not a number.
     Farnia asked for Gross, Hcp, Thru and Net all visible on the day board. */
  .liv-table .hide-sm { display: none; }
  .liv-who .liv-avatar { display: none; }
  .liv-table th, .liv-table td { padding: 10px 3px; font-size: 13px; }
  .liv-table th { font-size: 9px; letter-spacing: .06em; }
  .liv-pos { width: 22px; font-size: 12px; }
  .liv-round { font-size: 12.5px; }
  .liv-tot { font-size: 15px; }
  .liv-namecol .n { font-size: 13px; }
  .liv-namecol .t { font-size: 10.5px; }
}

/* ---------- schedule ---------- */
.sched-day { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sched-day:last-child { border-bottom: none; }
.sched-daynum { flex: 0 0 90px; }
.sched-daynum .dn { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; }
.sched-daynum .dd { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.sched-body { flex: 1 1 320px; }
.sched-block { margin-bottom: 14px; }
.sched-block:last-child { margin-bottom: 0; }
.sched-course { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; }
.sched-format { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; }
.sched-times { display: flex; gap: 8px; flex-wrap: wrap; }
.sched-time { font-family: var(--font-mono); font-size: 12.5px; background: var(--sand); border-radius: 20px; padding: 5px 12px; }

/* A round being played by a stand-in. */
.sub-flag {
  display: block; margin-top: 2px; font-style: normal;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--clay);
}

/* Money filters: the second row can run to four chips, so let it wrap. */
.money-chips { flex-wrap: wrap; }

/* The keypad head carries two 46px targets plus the stroke indicator; on a phone
   the middle column has to give a little or every line wraps. */
@media (max-width: 560px) {
  .kp-nav { width: 40px; height: 40px; font-size: 23px; }
  .keypad-head { gap: 8px; }
  .keypad-head .kp-mid h2 { font-size: 19px; }
  .keypad-head .kp-mid .muted { font-size: 12px; }
  .keypad-head .eyebrow { font-size: 9.5px; letter-spacing: .08em; }
  .keypad-pops .kp-text { font-size: 9.5px; }
}

/* =========================================================
   FOURSOMES — group picker, one-hole card, group scorecard
   ========================================================= */

/* ---- picker ---- */
.gp-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 6px; }
.gp-head .muted { font-size: 13.5px; margin: 0 0 16px; }
.gp-me {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border-radius: 10px; background: var(--forest); color: #fff; margin-bottom: 4px;
}
.gp-me strong { display: block; font-size: 14.5px; }
.gp-me small {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.gp-av {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255,255,255,.16); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}
.gp-av.sm { width: 28px; height: 28px; font-size: 10.5px;
  background: var(--sand); color: var(--ink-soft); }
.gp-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 8px;
}
.gp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gp-pick {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px; text-align: left;
  border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper);
  cursor: pointer; color: var(--ink); font-family: var(--font-body);
}
.gp-pick strong { display: block; font-size: 13px; line-height: 1.2; }
.gp-pick small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); }
.gp-pick.on { border-color: var(--forest); background: #EAF0EC; box-shadow: inset 0 0 0 1px var(--forest); }
.gp-pick:disabled { opacity: .45; cursor: default; }
.gp-pick:disabled small { color: var(--clay); }
.gp-joins { display: flex; flex-direction: column; gap: 7px; }
.gp-join {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 9px; background: var(--sand);
  border: 1px solid var(--line-strong); font-size: 13px;
}
.gp-go { margin-top: 18px; }

/* ---- group bar ---- */
.fs-groupbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 13px; margin-bottom: 14px; border-radius: 9px;
  background: var(--sand); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em;
}

/* ---- hole bar ---- */
.fs-holebar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 4px;
}
.fs-holemid { text-align: center; flex: 1; min-width: 0; }
.fs-holemid strong { display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 1.4rem; line-height: 1.1; }
.fs-holemid small { display: block; font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-soft); margin-top: 3px; }
.fs-pips { display: flex; gap: 3px; padding: 0 2px 14px; }
.fs-pip { flex: 1; height: 4px; border-radius: 2px; background: var(--line-strong); }
.fs-pip.done { background: var(--forest); }
.fs-pip.now { background: var(--brass); height: 6px; margin-top: -1px; }

/* ---- one player's row on this hole ---- */
.fs-rows { display: flex; flex-direction: column; gap: 9px; }
.fs-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
}
.fs-av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--sand); flex: 0 0 auto;
  display: grid; place-items: center; font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
}
.fs-mid { flex: 1; min-width: 0; }
.fs-mid strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.fs-mid small { display: block; font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-soft); margin-top: 3px; }
.fs-chip {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 5px;
  padding: 3px 8px 3px 6px; border-radius: 999px; background: #F3EAD8;
  border: 1px solid rgba(169,136,79,.45);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--brass-dark); font-weight: 600;
}
.fs-dots { display: inline-flex; gap: 3px; }
.fs-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-dark); }
.fs-nostroke {
  display: inline-block; margin-top: 6px; font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--line-strong);
}
/* Strokes in the corner of the box, the way they sit on paper. */
.fs-boxwrap { position: relative; flex: 0 0 auto; }
.fs-box {
  width: 56px; height: 50px; border-radius: 9px; cursor: pointer;
  border: 1.5px solid var(--line-strong); background: var(--ivory);
  font-family: var(--font-mono); font-size: 21px; font-weight: 600; color: var(--ink);
  display: grid; place-items: center;
}
.fs-box.empty { color: var(--line-strong); border-style: dashed; }
.fs-box.gs { border-color: var(--brass); background: #FCF7EC; }
.fs-box:disabled { opacity: .55; cursor: default; }
.fs-corner { position: absolute; top: 4px; left: 5px; display: flex; gap: 2.5px; pointer-events: none; }
.fs-corner span { width: 5px; height: 5px; border-radius: 50%; background: var(--brass-dark); }
.fs-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---- the foursome's full card ---- */
.fc-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); }
table.fc { border-collapse: collapse; font-family: var(--font-mono); font-size: 11.5px;
  font-variant-numeric: tabular-nums; min-width: 640px; }
table.fc th, table.fc td { padding: 6px 5px; text-align: center; border-bottom: 1px solid var(--line); }
table.fc th { font-size: 9.5px; letter-spacing: .05em; color: var(--ink-soft); font-weight: 600; }
/* Pinned names must sit above the tinted stroke cells sliding under them. */
table.fc .fc-nm {
  text-align: left; position: sticky; left: 0; z-index: 2; background: var(--paper);
  font-family: var(--font-body); font-weight: 600; font-size: 12px;
  padding-left: 10px; padding-right: 12px; min-width: 96px; white-space: nowrap;
  box-shadow: 1px 0 0 var(--line), 6px 0 8px -6px rgba(32,30,26,.18);
}
table.fc thead .fc-nm { background: var(--sand); z-index: 3; }
table.fc thead tr:first-child th { background: var(--sand); color: var(--ink); }
table.fc .fc-tot { background: var(--sand); font-weight: 600; }
table.fc .fc-si th { font-size: 9px; color: var(--brass-dark); background: #F7F2E6; }
table.fc td.fc-cell { position: relative; padding: 0; }
table.fc td.fc-cell.gs { background: #FCF7EC; }
table.fc .fc-dots { position: absolute; top: 3px; left: 4px; display: flex; gap: 1.5px; }
table.fc .fc-dots b { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--brass-dark); }
table.fc .fc-v {
  width: 100%; min-width: 30px; padding: 11px 2px 6px; border: 0; background: none;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); cursor: pointer;
}
table.fc .fc-v:disabled { cursor: default; color: var(--ink-soft); }

/* ---- leaderboard rows open a card ---- */
.liv-clickable { cursor: pointer; }
.liv-clickable:hover { background: var(--sand); }

/* =========================================================
   2026 FINAL — the closed-out year
   Mobile first: everything below stacks at 393px and grows up.
   ========================================================= */
.champ-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .champ-grid { grid-template-columns: 1fr 1fr; } }

.champ-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 26px 24px 22px;
  position: relative;
  overflow: hidden;
}
.champ-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--forest);
}
.champ-card--ind::before { background: var(--brass, #9a7b3f); }
.champ-card h3 { margin: 6px 0 2px; font-size: 1.6rem; line-height: 1.15; }
.champ-score {
  font-family: var(--font-mono); font-size: 2.6rem; font-weight: 600;
  color: var(--forest); line-height: 1; margin: 10px 0 14px;
  font-variant-numeric: tabular-nums;
}
.champ-card--ind .champ-score { color: var(--brass, #9a7b3f); }
.champ-roster { list-style: none; padding: 0; margin: 0 0 12px; columns: 2; }
.champ-roster li { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.8; }
.champ-note { font-size: 0.86rem; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ---------- round by round ---------- */
/* The winning row. NOT .liv-top — that is the live board's flex header bar,
   and putting it on a <tr> turns the row into a flex container and collapses
   the table. Same family of collision as table.scorecard and .btn-light. */
.fin-lead > td { background: var(--sand); }
.fin-lead .liv-tot { color: var(--forest); }

.rnd { margin-bottom: 34px; }
.rnd-head h3 { margin: 0 0 2px; font-size: 1.2rem; }
.rnd-head .muted { font-size: 0.85rem; margin: 0 0 12px; }
.rnd-table .carded { color: var(--ink-soft); font-weight: 400; font-size: 0.8em; }
.rnd-row { cursor: pointer; }
.rnd-row:hover > td { background: var(--sand); }
.rnd-row:focus-visible { outline: 2px solid var(--forest); outline-offset: -2px; }
.rnd-caret {
  display: inline-block; width: 0; height: 0; margin-left: 7px;
  vertical-align: middle; border: 4px solid transparent;
  border-top-color: var(--ink-soft); transition: transform .15s ease;
}
.rnd-row.is-open .rnd-caret { transform: rotate(180deg); }
.rnd-cardrow > td { padding: 0 0 16px !important; background: var(--sand); }

.hole-wrap { overflow-x: auto; padding: 14px 12px 4px; }
.hole-table {
  border-collapse: collapse; font-family: var(--font-mono);
  font-size: 12px; margin-bottom: 10px; min-width: 100%;
  font-variant-numeric: tabular-nums;
}
.hole-table th, .hole-table td {
  border: 1px solid var(--line); padding: 5px 6px; text-align: center; min-width: 26px;
}
@media (max-width: 420px) {
  .hole-table { font-size: 11px; }
  .hole-table th, .hole-table td { padding: 4px 3px; min-width: 21px; }
  .hole-wrap { padding: 12px 8px 4px; }
}
.hole-table .rl { text-align: left; white-space: nowrap; font-weight: 600; background: var(--paper); }
.hole-table thead th { background: var(--paper); font-weight: 600; }
.hole-table .row-par td, .hole-table .row-si td { color: var(--ink-soft); }
.hole-table .tot { font-weight: 600; background: var(--paper); }
.hole-table td.sc { position: relative; font-weight: 600; background: var(--paper); }
.hole-table td.sc.eagle  { background: #14532d; color: #fff; }
.hole-table td.sc.birdie { background: #dcf1e3; color: #14532d; }
.hole-table td.sc.evenh  { background: var(--paper); }
.hole-table td.sc.bogey  { background: #f5e6e2; }
.hole-table td.sc.worse  { background: #e9c9c2; }
.hole-table td.sc.capd::after {
  content: ''; position: absolute; top: 1px; right: 1px;
  border: 4px solid transparent; border-top-color: #8f2d21; border-right-color: #8f2d21;
}
.hole-table i.pop {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: block;
}
.hole-note { font-size: 0.78rem; color: var(--ink-soft); margin: 0 12px 4px; line-height: 1.6; }

/* ---------- the money ---------- */
.money-days { display: grid; gap: 20px; margin-bottom: 26px; }
@media (min-width: 860px) { .money-days { grid-template-columns: repeat(3, 1fr); } }
.money-day h4, .money-h { margin: 0 0 8px; font-size: 1rem; }
.money-h { margin-top: 26px; }
/* Two columns, not three. At 393px a prize name, a winner and a dollar figure
   side by side pushed the money off the right edge. The prize and who won it
   stack in one cell; the amount keeps its own column and stays put. */
.money-table td { vertical-align: top; padding: 10px 6px; }
.money-table .prize { width: 100%; }
.money-table .what { display: block; font-weight: 600; line-height: 1.35; }
.money-table .who { display: block; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.45; margin-top: 2px; }
.money-table .who small { display: block; font-size: 0.78rem; opacity: .85; }
.money-table .amt {
  font-family: var(--font-mono); font-weight: 600; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.money-table.ledger .what { font-size: 0.98rem; }
.money-table.ledger .who { font-size: 0.78rem; }
.money-table tfoot td { border-top: 2px solid var(--line-strong); padding-top: 12px; }

.final-banner {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--forest);
  border: 1px solid var(--forest); border-radius: 999px; padding: 5px 12px;
}

/* =========================================================
   INDIVIDUAL ACCOLADES — home page record book
   ========================================================= */
.acc-list { display: flex; flex-direction: column; }
.acc-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 2px;
  border-top: 1px solid var(--line);
}
.acc-row:first-child { border-top: none; }
.acc-rank {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.acc-main { min-width: 0; }
.acc-name {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 15px; color: var(--ink); line-height: 1.3;
}
.acc-badge {
  display: inline-block; margin-left: 8px; vertical-align: 1px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 600;
  color: var(--brass, #9a7b3f); border: 1px solid currentColor;
  border-radius: 999px; padding: 2px 7px; white-space: nowrap;
}
.acc-years {
  display: block; margin-top: 3px;
  font-size: 12px; color: var(--ink-soft); line-height: 1.55;
}
.acc-years b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.acc-count {
  font-family: var(--font-mono); font-size: 22px; font-weight: 600;
  color: var(--forest); line-height: 1; text-align: right;
  font-variant-numeric: tabular-nums;
}
.acc-count small {
  display: block; font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft); margin-top: 3px;
}
.acc-chasing {
  margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.7;
}
.acc-chasing strong { color: var(--ink); }

@media (max-width: 430px) {
  .acc-row { grid-template-columns: 20px 1fr auto; gap: 9px; }
  .acc-name { font-size: 14px; }
  .acc-badge { display: block; margin: 4px 0 0; }
  .acc-count { font-size: 19px; }
}
