/* =========================================================================
   TERRACE — refined English match-programme, LIGHT theme.
   Cream paper, navy ink, single jersey red. Fraunces serif headlines.
   This file is loaded after theme.css and overrides the dark base.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,700;9..144,900&family=Sora:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* Override base theme.css --hw-* variables so the cascade actually flips. */
:root, html, body.site {
  --hw-canvas:        var(--paper);
  --hw-canvas-2:      #fffefa;
  --hw-surface:       #ffffff;
  --hw-surface-2:     var(--paper-2);
  --hw-surface-3:     var(--paper-3);
  --hw-fg:            var(--ink);
  --hw-fg-2:          var(--ink-2);
  --hw-fg-3:          var(--ink-3);
  --hw-white:         #ffffff;
  --hw-line:          var(--rule);
  --hw-line-soft:     var(--rule);
  --hw-line-strong:   var(--rule-strong);
  --hw-orange:        var(--red);
  --hw-orange-2:      #a8081f;
  --hw-orange-deep:   #6e0414;
  --hw-orange-soft:   rgba(200,16,46,.08);
  --hw-orange-glow:   rgba(200,16,46,.18);
  --hw-gold:          var(--gold);
  --hw-gold-soft:     rgba(184,146,60,.10);
  --hw-grain:         none;
  --hw-display:       'Fraunces', Georgia, serif;
  --hw-body:          'Sora', system-ui, sans-serif;
  --hw-mono:          'JetBrains Mono', ui-monospace, monospace;
  --hw-up:            var(--pitch);
  --hw-down:          var(--red);
  --hw-warn:          var(--gold);
  --hw-focus:         var(--red);
}

:root,
body.site {
  --paper:           #faf6ed;       /* aged programme paper */
  --paper-2:         #f1ead8;
  --paper-3:         #d6cdb6;
  --ink:             #0c1825;       /* deep navy ink */
  --ink-2:           #1a2738;
  --ink-3:           #43536a;
  --ink-4:           #7a8b9e;
  --rule:            rgba(12,24,37,.08);
  --rule-strong:     rgba(12,24,37,.16);
  --red:             #c8102e;       /* jersey red */
  --red-soft:        #fae3e6;
  --navy-accent:     #1a3a6b;
  --pitch:           #1a7a3a;
  --gold:            #b8923c;       /* heritage only, rare */

  /* Force-flip the dark theme variables */
  --bg:              var(--paper);
  --bg-1:            #fffefa;
  --bg-2:            var(--paper-2);
  --bg-3:            var(--paper-3);

  --font-display:    'Fraunces', Georgia, serif;
  --font-body:       'Sora', system-ui, sans-serif;
  --font-mono:       'JetBrains Mono', ui-monospace, monospace;
}

html, body.site { background: var(--paper) !important; }
body.site {
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

/* a subtle press grain */
body.site::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.50  0 0 0 0 0.40  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .55; mix-blend-mode: multiply;
}
body.site > * { position: relative; z-index: 1; }

/* ---- LIVE TICKER ---- */
body.site .topbar {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 0;
}
body.site .ticker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper-2);
  letter-spacing: .03em;
}
body.site .ticker .pulse,
body.site .pulse { background: var(--red) !important; }

/* ---- MASTHEAD ---- */
body.site .masthead {
  background: transparent;
  border-bottom: 1px solid var(--rule-strong);
  padding: 0;
}
body.site .masthead .wrap {
  display: flex; align-items: center; gap: 32px;
  padding: 28px 0;
}
body.site .logo {
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-style: normal !important;
  font-size: 42px !important;
  letter-spacing: -.025em !important;
  line-height: .9;
  color: var(--ink) !important;
  text-transform: none !important;
  font-variation-settings: "opsz" 144;
}
body.site .logo .dot {
  color: var(--red);
  font-weight: 900;
  display: inline-block;
  transform: translateY(-4px);
  margin: 0 1px;
}
body.site .logo small {
  display: block;
  font-family: var(--font-body) !important;
  font-weight: 500;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3) !important;
  margin-top: 6px;
}

body.site .navlist {
  margin-left: auto;
  display: flex; gap: 0;
  border-left: 1px solid var(--rule-strong);
}
body.site .navlist a {
  font-family: var(--font-body) !important;
  font-size: 12px; font-weight: 600;
  color: var(--ink-3) !important;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 18px;
  border-right: 1px solid var(--rule-strong);
  transition: color .12s, background .12s;
}
body.site .navlist a:hover { color: var(--ink); background: var(--paper-2); }
body.site .navlist a[aria-current="page"] {
  color: var(--red);
  background: var(--paper-2);
}

body.site .mast-cta { margin-left: 0; }
body.site .mast-cta .menu-toggle { display: none; }

/* ---- HERO / PAGE-HERO ---- */
body.site .page-hero,
body.site .hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--rule-strong);
}
body.site .kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 24px;
  padding: 6px 0;
  border-bottom: 1px solid var(--red);
}
body.site h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 8vw, 128px);
  line-height: .92;
  letter-spacing: -.035em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
body.site h1 em {
  font-style: italic;
  color: var(--red);
  font-weight: 900;
}
body.site .lede,
body.site .f-lede {
  font-family: var(--font-body) !important;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  font-weight: 400;
}

/* ---- SECTION HEADS ---- */
body.site .sec { padding: 56px 0; }
body.site .sec-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}
body.site .sec-head .num {
  font-family: var(--font-mono) !important;
  font-weight: 700;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  align-self: end;
  padding-bottom: 8px;
}
body.site .sec-head h2 {
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}
body.site .sec-head h2 em {
  font-style: italic; color: var(--red); font-weight: 900;
}
body.site .sec-head .meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase;
  text-align: right;
}

/* ---- BREADCRUMBS ---- */
body.site .crumbs {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  background: var(--paper);
}
body.site .crumbs ol {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
body.site .crumbs a { color: var(--ink-2); }
body.site .crumbs a:hover { color: var(--red); }

/* ---- TEAM HERO ---- */
body.site .team-hero {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule-strong);
  padding: 64px 0;
  position: relative;
}
body.site .team-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(200,16,46,.04), transparent 60%);
  pointer-events: none;
}
body.site .team-hero .content h1 {
  font-family: var(--font-display) !important;
  font-weight: 900;
  font-size: clamp(64px, 9vw, 144px);
  line-height: .9; letter-spacing: -.035em;
  color: var(--ink);
}
body.site .team-hero .content h1 em {
  font-style: italic; color: var(--red);
}
body.site .team-hero .meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
body.site .team-hero .meta span { margin-right: 24px; }
body.site .team-hero .lede {
  font-family: var(--font-display) !important;
  font-style: italic; font-weight: 400;
  font-size: 22px; color: var(--ink-2);
}

/* ---- STAT CARDS ---- */
body.site .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
  margin-top: 0;
}
body.site .stat {
  padding: 32px 28px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
body.site .stat:last-child { border-right: 0; }
body.site .stat .l {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 16px;
}
body.site .stat .n {
  font-family: var(--font-display) !important;
  font-weight: 900;
  font-size: 80px; line-height: .85;
  color: var(--ink);
  letter-spacing: -.04em;
  font-variation-settings: "opsz" 144;
}
body.site .stat .delta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--red); font-weight: 700;
  margin-top: 14px; letter-spacing: .04em;
}

/* ---- KEY/VALUE LIST ---- */
body.site .kv {
  border-top: 1px solid var(--rule-strong);
  margin-top: 40px;
}
body.site .kv > div {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
body.site .kv dt {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
}
body.site .kv dd { color: var(--ink); font-size: 15px; font-weight: 500; }
body.site .kv code {
  background: var(--paper-2) !important;
  color: var(--red) !important;
  border: 1px solid var(--rule) !important;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---- TABLES ---- */
body.site .t,
body.site .tbl {
  width: 100%; border-collapse: collapse;
  font-family: var(--font-body);
}
body.site .t thead th,
body.site .tbl thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 12px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: transparent !important;
}
body.site .t tbody td,
body.site .tbl tbody td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 14px;
  vertical-align: middle;
}
body.site .t tbody tr:hover,
body.site .tbl tbody tr:hover { background: rgba(200,16,46,.04); }
body.site .t tbody tr:nth-child(odd) td,
body.site .tbl tbody tr:nth-child(odd) td { background: rgba(12,24,37,.015); }
body.site .t .num,
body.site .tbl .num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-weight: 600;
}
body.site .tbl .pts {
  font-family: var(--font-display) !important;
  font-weight: 900;
  font-size: 17px;
  color: var(--ink);
}
body.site .tbl .pos {
  font-family: var(--font-mono);
  color: var(--ink-3);
  font-weight: 700;
}
body.site .tbl .pos.ucl { color: var(--red); }
body.site .tbl .pos.uel { color: var(--navy-accent); }
body.site .tbl .pos.rel { color: var(--ink-3); opacity: .6; }

/* ---- FORM PILLS ---- */
body.site .form-pill,
body.site .fb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  font-family: var(--font-mono); font-weight: 700; font-size: 10px;
  margin-right: 2px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid currentColor;
}
body.site .form-pill.W, body.site .fb.w { color: var(--pitch); background: rgba(26,122,58,.08); border-color: transparent; }
body.site .form-pill.D, body.site .fb.d { color: var(--ink-3); background: var(--paper-2); border-color: transparent; }
body.site .form-pill.L, body.site .fb.l { color: var(--red); background: var(--red-soft); border-color: transparent; }

/* ---- TOP CHARTS WIDGET ---- */
body.site .igr-tc {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 8px 0;
}
body.site .igr-tc .col h3 {
  font-family: var(--font-mono) !important;
  font-weight: 700;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red) !important;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink) !important;
  display: flex; justify-content: space-between; align-items: baseline;
  background: transparent !important;
}
body.site .igr-tc .col h3 small { color: var(--ink-3) !important; }
body.site .igr-tc .row {
  display: grid !important;
  grid-template-columns: 36px 48px 1fr auto !important;
  gap: 14px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule) !important;
}
body.site .igr-tc .rnk {
  font-family: var(--font-display) !important;
  font-weight: 900;
  font-size: 32px; line-height: 1;
  color: var(--paper-3);
  font-variation-settings: "opsz" 144;
}
body.site .igr-tc .row.top .rnk { color: var(--red); }
body.site .igr-tc .photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong) !important;
  background: var(--paper-2) center/cover no-repeat;
}
body.site .igr-tc .meta .nm {
  font-family: var(--font-display) !important;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
}
body.site .igr-tc .meta .tm {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink-3); font-size: 12px;
  margin-top: 2px;
  letter-spacing: 0;
}
body.site .igr-tc .val {
  font-family: var(--font-display) !important;
  font-weight: 900;
  font-size: 32px; color: var(--ink);
  font-variation-settings: "opsz" 144;
}
body.site .igr-tc .row.top .val { color: var(--red); }
body.site .igr-tc .val small {
  font-family: var(--font-mono) !important;
  color: var(--ink-3) !important;
  font-weight: 600;
}
body.site .igr-tc .row.link { text-decoration: none; color: inherit; }
body.site .igr-tc .row.link:hover .nm { color: var(--red); }

/* ---- UPCOMING FIXTURES STRIP ---- */
body.site .igr-up { padding: 0; }
body.site .igr-up-row {
  display: grid !important;
  grid-template-columns: 60px 1fr auto 1fr auto !important;
  gap: 24px; align-items: center;
  padding: 18px 0 !important;
  border-bottom: 1px solid var(--rule) !important;
  background: transparent !important;
}
body.site .igr-up-row .d {
  text-align: left;
  font-family: var(--font-mono);
}
body.site .igr-up-row .d b {
  font-family: var(--font-display) !important;
  font-weight: 900;
  font-size: 24px; color: var(--ink);
  display: block;
}
body.site .igr-up-row .d small {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-3);
  letter-spacing: .08em;
}
body.site .igr-up-row .t {
  font-family: var(--font-display) !important;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink) !important;
}
body.site .igr-up-row .t.home { justify-content: flex-end; }
body.site .igr-up-row .vs {
  font-family: var(--font-mono) !important;
  font-weight: 700;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red) !important;
  background: transparent !important;
  width: auto; height: auto;
  border-radius: 0;
}
body.site .igr-up-row .rnd {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  text-align: right;
}

/* ---- BUTTONS ---- */
body.site .btn {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 0;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all .15s;
}
body.site .btn:hover { background: var(--ink); color: var(--paper); }
body.site .btn.gold {
  background: var(--red);
  color: var(--paper) !important;
  border-color: var(--red);
}
body.site .btn.gold:hover {
  background: #a8081f; border-color: #a8081f;
}
body.site .pill {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 14px;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 99px;
  border: 1px solid var(--rule-strong);
}
body.site .pill.gold {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
}

/* ---- FOOTER ---- */
body.site .fa {
  background: var(--ink) !important;
  color: var(--paper);
  border-top: 6px solid var(--red);
  padding: 64px 0 32px;
  margin-top: 80px;
}
body.site .fa h4 {
  font-family: var(--font-display) !important;
  font-weight: 900;
  font-style: normal;
  font-size: 26px; color: var(--paper);
  letter-spacing: -.02em;
}
body.site .fa a {
  color: var(--paper-2);
  border: 0;
  font-family: var(--font-body);
}
body.site .fa a:hover { color: var(--red); }
body.site .compliance {
  font-family: var(--font-body);
  font-size: 12px; color: var(--ink-4);
  line-height: 1.7;
}

/* ---- CARDS ---- */
body.site .card {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 24px;
  transition: all .15s;
}
body.site .card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
body.site .card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
}
body.site .card .body { color: var(--ink-2); font-size: 14px; }
body.site .card .sub {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
}
body.site .card .ftr {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-3);
  letter-spacing: .08em; text-transform: uppercase;
}

/* ---- PREVIEW TAPE ---- */
body.site .tape {
  background: var(--ink) !important;
  color: var(--paper);
  border: 0;
  padding: 48px 0;
}
body.site .tape-meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper-3);
}
body.site .tape-card .city {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper-3);
}
body.site .tape-card .name em {
  font-family: var(--font-display) !important;
  font-style: normal;
  font-weight: 900;
  color: var(--paper);
  font-size: 36px;
  letter-spacing: -.02em;
}
body.site .tape-card .rec {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--paper-2);
}
body.site .tape-score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  color: var(--paper);
  font-variation-settings: "opsz" 144;
}
body.site .tape-score .win { color: var(--red); }
body.site .tape-status {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
}
body.site .tape-vsmark {
  font-family: var(--font-display);
  font-weight: 900; font-style: italic;
  color: var(--paper-3);
}
body.site .tape-when {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em;
  color: var(--paper-3);
}

/* ---- DUEL ROWS ---- */
body.site .duel { border-top: 2px solid var(--ink); }
body.site .duel-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
body.site .duel-row .axis {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700;
  text-align: center;
}
body.site .duel-row .h-val,
body.site .duel-row .a-val {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  color: var(--ink-3);
}
body.site .duel-row .h-val.lead,
body.site .duel-row .a-val.lead {
  color: var(--ink); font-weight: 900;
}

/* ---- BEAM ---- */
body.site .beam-line { background: var(--ink); }
body.site .beam-q { background: var(--ink); }
body.site .beam-dot.home { background: var(--ink); }
body.site .beam-dot.away { background: var(--red); }
body.site .beam-label {
  font-family: var(--font-mono);
  color: var(--ink-3);
  letter-spacing: .1em;
  font-size: 10px;
}
body.site .beam-q-score {
  color: var(--ink);
  font-weight: 700;
}

/* ---- FIXTURE LIST (used on home + league side) ---- */
body.site .fix {
  border-bottom: 1px solid var(--rule);
  padding: 14px 20px;
}
body.site .fix:hover { background: var(--paper-2); }
body.site .fix-date b {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--ink);
}
body.site .fix-score {
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 0;
}
body.site .fix-score.live {
  background: var(--red); color: var(--paper);
}
body.site .fix-cta {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  border-color: var(--red);
}
body.site .fix-cta:hover { background: var(--red); color: var(--paper); }

/* ---- LIVE BADGE / live tile ---- */
body.site .live-tile {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
}
body.site .live-tile .sc.lead { color: var(--red); }
body.site .live-tile .now {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--red);
}

/* ---- SCORER PANEL (build_league) ---- */
body.site .scorer {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule) !important;
  background: transparent !important;
}
body.site .scorer .rank {
  font-family: var(--font-display) !important;
  font-weight: 900;
  color: var(--ink-3);
}
body.site .scorer .rank.gold { color: var(--red); }
body.site .scorer .p-photo {
  background: var(--paper-2) !important;
  border: 1px solid var(--rule-strong) !important;
  color: var(--ink-3) !important;
}
body.site .scorer .p-name {
  font-family: var(--font-display) !important;
  font-weight: 700;
  color: var(--ink);
}
body.site .scorer .p-team { color: var(--ink-3); }
body.site .scorer .p-stat .v {
  font-family: var(--font-display) !important;
  font-weight: 900;
  color: var(--ink);
}
body.site .scorer .p-stat.goals .v { color: var(--red); }
body.site .scorer .p-stat .l {
  font-family: var(--font-mono);
  color: var(--ink-3);
}

/* ---- PANEL HEADS in league side rail ---- */
body.site .panel {
  background: var(--paper) !important;
  border: 1px solid var(--rule-strong) !important;
  border-radius: 0 !important;
}
body.site .panel-head {
  background: var(--paper-2) !important;
  border-bottom: 2px solid var(--ink) !important;
}
body.site .panel-head h3 {
  font-family: var(--font-mono) !important;
  font-size: 11px !important; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700;
  color: var(--ink) !important;
}
body.site .panel-head h3 i { color: var(--red) !important; }
body.site .panel-head .panel-tabs span {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3);
}
body.site .panel-head .panel-tabs span.on {
  background: var(--ink) !important;
  color: var(--paper) !important;
}
body.site .legend {
  background: var(--paper-2) !important;
  color: var(--ink-3) !important;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ---- SKIP LINK / FOCUS ---- */
body.site .skip:focus { background: var(--red); color: var(--paper); }
body.site a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---- DROPPED-IN HTML 'tape-row' overrides for preview ---- */
body.site .tape-card { color: var(--paper); }
body.site .tape-card .form-mini span {
  background: rgba(255,255,255,.08);
  color: var(--paper-2);
  border-radius: 2px;
}
body.site .tape-card .form-mini span.W { background: var(--red); color: var(--paper); }
body.site .tape-card .form-mini span.L { color: var(--paper-3); }
