/* Slate palette. PRD §69: football analytics department, not bookmaker.
   Bootstrap supplies layout and reset only — its default component look is
   explicitly not the target, so everything visible is defined here. */

:root {
  --bg: #12151b;
  --panel: #171b23;
  --rule: #232833;
  --rule-soft: #1c2029;
  --ink: #dfe3ea;
  --ink-bright: #f2f5f9;
  --muted: #6a7383;
  --dim: #59616f;
  --accent: #4dd4ac;
  --accent-ink: #0d1014;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 26px 22px 60px; }

.topbar {
  display: flex; align-items: baseline; gap: 22px;
  padding: 14px 22px; border-bottom: 1px solid var(--rule); background: var(--panel);
}
.topbar a { color: var(--muted); text-decoration: none; font-size: 13px; }
.topbar a:hover { color: var(--accent); }
.brand { color: var(--ink-bright); font-weight: 600; margin-right: auto; }
/* The accent, not --dim: this names what the site *is*, and at 12px in the
   dimmest grey on the page it read as a footnote to the league name. */
.brand-sub {
  color: var(--accent); font-weight: 600; font-size: 13px;
  letter-spacing: .02em; margin-left: 2px;
}

.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.accent { color: var(--accent); }

table.sheet { width: 100%; border-collapse: collapse; font-size: 13px; }
table.sheet th {
  font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--rule); background: var(--panel); padding: 9px 10px;
}
table.sheet td { padding: 9px 10px; border-bottom: 1px solid var(--rule-soft); }

.foot { max-width: 1180px; margin: 0 auto; padding: 0 22px 40px;
        color: var(--dim); font-size: 11px; line-height: 1.6; }

.caveat { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 10px 0 0; }
.caveat code { color: var(--accent); }

.h { font-size: 21px; font-weight: 600; color: var(--ink-bright); margin: 0 0 3px; }
.h2 { font-size: 16px; font-weight: 600; color: var(--ink-bright); margin: 32px 0 3px; }
.sub { font-size: 11px; margin: 0 0 16px; }
a.club { color: var(--ink); text-decoration: none; }
a.club:hover { color: var(--accent); }

/* Wide tables scroll inside their own box rather than pushing the page sideways. */
.scroller { overflow-x: auto; }

table.matrix { font-size: 11px; }
table.matrix td.cell {
  text-align: center; width: 38px; height: 24px;
  font-family: var(--mono); font-weight: 600; background: #161a21;
}
table.matrix td.club { white-space: nowrap; }
table.matrix .splitline { border-right: 2px solid #566072; }

.picker { display: flex; gap: 10px; align-items: center; margin: 18px 0 26px; flex-wrap: wrap; }
.picker select, .picker button {
  background: var(--panel); color: var(--ink); border: 1px solid var(--rule);
  padding: 7px 11px; border-radius: 4px; font-size: 13px;
}
.picker button { color: var(--accent); cursor: pointer; }
.picker button:hover { border-color: var(--accent); }

.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
            background: var(--rule); border: 1px solid var(--rule); border-radius: 6px;
            overflow: hidden; margin: 8px 0 18px; }
.triptych > div { background: var(--panel); padding: 20px 16px; text-align: center; }
.tri-name { display: block; font-size: 11px; letter-spacing: .08em;
            text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tri-p { display: block; font-size: 28px; font-family: var(--mono);
         font-weight: 600; color: var(--accent); }

.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.chart { height: 340px; margin-top: 10px; }

/* Why a prediction is what it is — PRD §43. The sentence is always visible and
   the table is disclosed, so the supporter is served without the analyst's
   depth being hidden. */
.explain-lead { margin: 6px 0 2px; color: var(--ink); }
.explain summary {
  cursor: pointer; list-style: none; color: var(--muted); font-size: 13px;
  padding: 4px 0;
}
.explain summary::-webkit-details-marker { display: none; }
.explain summary .fa-chevron-right { transition: transform .15s ease; margin-right: 4px; }
.explain[open] summary .fa-chevron-right { transform: rotate(90deg); }
.explain-table { margin-top: 8px; max-width: 640px; }
.explain-ref td { color: var(--muted); }
.explain-total td { color: var(--ink-bright); border-top: 1px solid var(--rule); }
.explain-row > td { padding-top: 0; border-bottom: 1px solid var(--rule-soft); }

/* PP, as the SPFL's own fixture list marks a postponement. Styled as a status
   rather than as a time: it sits in the kickoff column because that is where
   the source puts it, but it must not read as a clock. The date beside it is
   left alone — when a fixture *was* scheduled is real information. */
.pp {
  display: inline-block; padding: 0 5px;
  border: 1px solid var(--rule); border-radius: 3px;
  color: var(--muted); font-size: 11px; letter-spacing: .5px;
  font-family: var(--mono); cursor: help;
}

/* 95% intervals on the season's log loss, drawn against one shared scale.
   One ruler for every row, because a whisker only shows overlap if the thing
   beside it is measured the same way. */
.whisker { position: relative; display: block; height: 14px; }
.whisker-bar {
  position: absolute; top: 6px; height: 2px;
  background: var(--muted); border-radius: 1px;
}
.whisker-mark {
  position: absolute; top: 2px; width: 2px; height: 10px;
  background: var(--accent); margin-left: -1px;
}
.season-scores td { vertical-align: middle; }
