/* ──────────────────────────────────────────────────────────────────────
   The Wonga Cup · Live Scorecard styles
   Extends styles.css. Loaded only on scorecard.html.
   ────────────────────────────────────────────────────────────────────── */

/* ── back link — scorecard masthead is always solid so ink colours work ── */
.back-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  transition: color .2s;
}
.back-link:hover { color: var(--ink); }

/* ── live indicator dot (used in the sync bar next to "Live Scores") ── */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 0 currentColor;
  animation: livePulse 2.4s infinite;
  display: inline-block;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(208,74,54,0.6); }
  60% { box-shadow: 0 0 0 10px rgba(208,74,54,0); }
  100% { box-shadow: 0 0 0 0 rgba(208,74,54,0); }
}

/* ── Day I · match play result toggle (front9/back9 A / Tie / B buttons) ── */
.match-toggle {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--canvas);
}
.match-toggle button {
  font-family: var(--body);
  font-size: 0.9rem;
  padding: 10px 18px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--rule);
  cursor: pointer;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.1;
  min-width: 120px;
  transition: background .15s, color .15s;
}
.match-toggle button:last-child { border-right: 0; }
.match-toggle button:hover { background: var(--canvas-2); color: var(--ink); }
.match-toggle .rt-pts {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.match-toggle button.is-active {
  background: var(--ink);
  color: var(--canvas);
}
.match-toggle button.is-active .rt-pts { color: rgba(239,231,211,0.65); }

@media (max-width: 720px) {
  .match-toggle { width: 100%; }
  .match-toggle button { flex: 1; min-width: 0; padding: 10px 8px; }
  .match-toggle .rt-lab { font-size: 0.82rem; }
}

/* ── Day III · Stableford total (also matches the sticky mini scoreboard's
   #sb-total-a/b, which get their font-family/size from the page's inline
   <style> block but rely on this rule for italic + tabular figures) ── */
.sb-total {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.2rem;
  font-feature-settings: "tnum";
  line-height: 1;
}
.sb-total i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.04em; margin-left: 6px; }
