/* GFL shared design tokens: colours from the Greens crest */
/* Self-hosted fonts (no Google Fonts dependency) */
@font-face { font-family: 'Lilita One'; src: url('/shared/fonts/lilita-one-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/shared/fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/shared/fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/shared/fonts/barlow-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/shared/fonts/barlow-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/shared/fonts/barlow-condensed-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/shared/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/shared/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/shared/fonts/barlow-condensed-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --paper: #fbf8ec;        /* crest cream */
  --surface: #fffefa;
  --pitch: #3b8473;        /* crest teal-green */
  --pitch-dark: #152a3b;   /* crest navy */
  --board: #2e7465;        /* scoreboard green, a shade deeper for white text */
  --grass: #e3ece2;
  --grass-2: #f2f3e8;
  --ink: #152a3b;
  --ink-2: #4f5d66;
  --line: #e2dcc6;
  --live: #f6af43;         /* crest mustard */
  --live-ink: #3a2600;
  --card-red: #d3263a;
  --card-yellow: #f2c11d;
  --ok: #2e7d5b;
  --radius-s: 6px;
  --radius-m: 12px;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --brand: 'Lilita One', 'Barlow Condensed', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--pitch); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--live); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--brand); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Mown-grass stripes: the one decorative device, used only behind scoreboards. */
.stripes {
  background-color: var(--board);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 48px, transparent 48px 96px);
  color: #fff;
}

.live-dot { display: inline-flex; align-items: center; gap: 6px; background: var(--live); color: var(--live-ink);
  font: 700 13px/1 var(--display); letter-spacing: 0.04em; padding: 4px 8px 3px; border-radius: 999px; }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--card-red);
  animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; } * { scroll-behavior: auto !important; } }

.crest { width: 28px; height: 28px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  font: 700 12px/1 var(--display); color: #fff; overflow: hidden; }
.crest img { width: 100%; height: 100%; object-fit: cover; }

.card-chip { display: inline-block; width: 11px; height: 15px; border-radius: 2px; vertical-align: -2px; }
.card-chip.yellow { background: var(--card-yellow); }
.card-chip.red { background: var(--card-red); }

table.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.grid th { text-align: left; font: 600 13px/1.2 var(--font); color: var(--ink-2); padding: 8px 6px; border-bottom: 2px solid var(--ink); }
table.grid td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
table.grid th.n, table.grid td.n { text-align: center; width: 2.4em; }

.empty { padding: 28px 16px; text-align: center; color: var(--ink-2); }
