/*
 * The Prisoner's Dilemma League.
 *
 * Newsprint rather than dashboard: a warm paper ground, ink type, hairline
 * rules and club colour used sparingly as accent. It matches the channel's
 * thumbnail direction (light and textured, not a dark scoreboard) and it keeps
 * the tables legible, which is most of what this site does.
 *
 * No web fonts and no external requests of any kind.
 */

:root {
  --paper: #f4f0e6;
  --paper-2: #fbf8f1;
  --ink: #1c1815;
  --ink-2: #4a423b;
  --ink-3: #7a6f65;
  --rule: #d9d1c0;
  --rule-strong: #b9ae99;
  --accent: #1f4e8c;
  --win: #2c6e49;
  --draw: #8a7a2f;
  --loss: #9c2b2b;
  --turf: #4a7c59;
  --turf-dark: #2f5d3f;
  --water: #33566e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14120f;
    --paper-2: #1c1916;
    --ink: #efe9dc;
    --ink-2: #c6bdae;
    --ink-3: #94897b;
    --rule: #332e28;
    --rule-strong: #4a423a;
    --turf: #3d6b4a;
    --turf-dark: #86b294;
    --water: #6d9ab6;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}

a { color: inherit; text-decoration-color: var(--rule-strong); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 2px solid var(--ink);
  background: var(--paper-2);
}
.masthead-inner {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: baseline; justify-content: space-between;
  padding-top: 18px; padding-bottom: 14px;
}
.masthead-title { text-decoration: none; display: block; }
.masthead-name {
  display: block; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em;
}
.masthead-tagline { display: block; font-size: .8rem; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92rem; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }

/* ---------- preview bar ---------- */

.preview-bar { background: #2b2b2b; color: #f4f0e6; font-size: .85rem; }
.preview-form {
  max-width: var(--wrap); margin: 0 auto; padding: 8px 20px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.preview-label { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .75rem; }
.preview-form input[type="datetime-local"] { font: inherit; padding: 3px 6px; }
.preview-form button { font: inherit; padding: 3px 10px; cursor: pointer; }
.preview-form a { color: #f4f0e6; }

/* ---------- layout ---------- */

/* The element is <main class="wrap">, so this needs to outrank .wrap's padding
   rather than lose to it on specificity and leave the page flush to the
   masthead. */
main.wrap { padding: 32px 20px 56px; }
.page-head { margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.kicker { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 0 0 .5em; }
.standfirst { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; margin: 0; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 40px; }
.club-body, .match-body, .article-body { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 860px) {
  .home-grid, .club-body, .match-body, .article-body { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- status strip ---------- */

.status {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 10px 0 14px; margin-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  font-size: .85rem; color: var(--ink-2);
}
.status-item strong { font-family: var(--serif); font-size: 1rem; }

/* ---------- stories ---------- */

.story { padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--rule); }
.story:last-child { border-bottom: 0; }
.story-tag {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--story-accent, var(--accent)); margin: 0 0 .4em; font-weight: 700;
}
.story-title { font-size: 1.35rem; margin: 0 0 .35em; }
.story-title a { text-decoration: none; }
.story-title a:hover { text-decoration: underline; }
.story-lead .story-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.story-lead { border-bottom-width: 2px; border-bottom-color: var(--ink); padding-bottom: 26px; }
.story-standfirst { color: var(--ink-2); margin: 0 0 .5em; }
.story-lead .story-standfirst { font-family: var(--serif); font-size: 1.12rem; }
.story-meta { font-size: .8rem; color: var(--ink-3); margin: 0; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }

/* ---------- panels ---------- */

.panel { margin: 32px 0 0; padding-top: 18px; border-top: 2px solid var(--ink); }
/* A column that opens with a panel should line its rule up with the column
   beside it, not start 32px lower. */
.home-side > .panel:first-child,
.club-side > .panel:first-child,
.match-side > .panel:first-child,
.article-side > .panel:first-child { margin-top: 0; }
.panel-title { font-size: 1.15rem; margin: 0 0 .6em; }
.panel-intro { font-size: .9rem; color: var(--ink-2); margin: -0.3em 0 1em; }
.panel-more { font-size: .85rem; margin: 12px 0 0; }
.panel-note { font-size: .8rem; color: var(--ink-3); margin: 10px 0 0; }
.panel-quiet { background: var(--paper-2); border-top-color: var(--rule-strong); padding: 16px 18px 18px; }
.empty, .form-empty { color: var(--ink-3); font-size: .9rem; }
.empty-panel { padding: 40px 0; border-bottom: 1px solid var(--rule); }

.button {
  display: inline-block; padding: 8px 16px; margin: 0 6px 6px 0;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-size: .88rem; letter-spacing: .02em;
}
.button:hover { background: var(--accent); }
.button-quiet { background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); }
.button-quiet:hover { background: var(--paper-2); color: var(--ink); border-color: var(--accent); }

/* ---------- tables ---------- */

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); font-weight: 700; padding: 0 8px 8px 0; border-bottom: 1px solid var(--rule-strong);
}
.table td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
.table .strong { font-weight: 700; }
.table .muted { color: var(--ink-3); }
.table.compact { font-size: .88rem; }
.table.compact td { padding: 5px 8px 5px 0; }
.league-table .pos { color: var(--ink-3); width: 2.2em; }
.league-table tr.is-highlight td { background: var(--paper-2); }
.club-cell { display: flex; align-items: center; gap: 8px; }
.club-swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: 0 0 auto; }
.club-link { text-decoration: none; }
.club-link:hover { text-decoration: underline; }
.strategy-cell a { color: var(--ink-2); font-size: .85rem; }
.bar {
  display: inline-block; height: 6px; width: 60px; margin-right: 8px; vertical-align: middle;
  background: linear-gradient(to right, var(--bar-colour, var(--accent)) var(--v), var(--rule) var(--v));
}
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- match cards ---------- */

.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.match-grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.match-card { padding: 12px 14px; background: var(--paper-2); border: 1px solid var(--rule); }
.match-card.is-pending { background: transparent; border-style: dashed; }
.match-round { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 6px; }
.match-teams { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.match-team { display: flex; align-items: center; gap: 6px; font-size: .9rem; min-width: 0; }
.match-team.away { justify-content: flex-end; text-align: right; }
.match-score { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; white-space: nowrap; }
.match-score.is-pending { font-size: .95rem; color: var(--ink-3); font-weight: 400; }
.match-score .dash { color: var(--ink-3); margin: 0 2px; }
.match-meta { font-size: .78rem; color: var(--ink-3); margin: 8px 0 0; }
.match-meta a { margin-right: 10px; }

.matchday-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.matchday-nav .md {
  display: block; min-width: 34px; text-align: center; padding: 5px 6px;
  border: 1px solid var(--rule); text-decoration: none; font-size: .85rem; color: var(--ink-3);
}
.matchday-nav .md.is-done { color: var(--ink); border-color: var(--rule-strong); }
.matchday-nav .md.is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- badges, form, shirts ---------- */

.badge { width: 40px; height: 40px; display: block; }
.badge-sm { width: 20px; height: 20px; }
.badge-lg { width: 72px; height: 72px; }
.form { display: inline-flex; gap: 3px; }
.pill {
  display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center;
  font-size: .7rem; font-weight: 700; color: #fff; border-radius: 2px;
}
.pill-w { background: var(--win); }
.pill-d { background: var(--draw); }
.pill-l { background: var(--loss); }
.shirt {
  display: inline-block; min-width: 20px; padding: 0 4px; margin-right: 4px;
  font-size: .72rem; text-align: center; color: var(--ink-3); border: 1px solid var(--rule);
}

/* ---------- clubs ---------- */

.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.club-card { border-top: 3px solid var(--accent); padding: 14px 0 18px; }
.club-card-head { display: flex; gap: 12px; align-items: flex-start; }
.club-card-head h2 { font-size: 1.2rem; margin: 0 0 .2em; }
.club-card-head h2 a { text-decoration: none; }
.club-card-sub { font-size: .82rem; color: var(--ink-3); margin: 0; }
.club-card-rule { font-size: .88rem; margin: 12px 0 6px; }
.rule-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--paper); background: var(--accent); padding: 2px 6px; margin-right: 6px;
}
.club-card-line { font-size: .88rem; color: var(--ink-2); }
.club-card-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; margin: 0; font-size: .82rem; }
.club-card-stats dt { color: var(--ink-3); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.club-card-stats dd { margin: 0; font-weight: 600; }

.club-header { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 20px; border-bottom: 3px solid var(--accent); margin-bottom: 0; }
.club-header h1 { margin: 0 0 .2em; }
.club-header-meta { font-size: .85rem; color: var(--ink-3); margin: 10px 0 0; }

.stat-strip {
  display: flex; flex-wrap: wrap; gap: 18px 32px;
  padding: 16px 0; margin-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.stat-strip > div { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.stat-value { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }

.manager-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.manager-card h3 { margin: 0 0 .2em; }
.quote { font-family: var(--serif); font-style: italic; color: var(--ink-2); }

.facts { margin: 0; font-size: .88rem; }
.facts > div { display: flex; gap: 12px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.facts.wide > div { flex-direction: column; gap: 2px; }
.facts.wide dd { text-align: left; font-weight: 400; color: var(--ink-2); }
.kit-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 2px; border: 1px solid var(--rule-strong); vertical-align: -1px; }
.side-story { font-size: .9rem; margin: 0 0 12px; }
.squad-title { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font-size: 1.05rem; }
.squad-title .muted { color: var(--ink-3); font-size: .82rem; font-family: var(--sans); font-weight: 400; }

/* ---------- prose ---------- */

.prose { max-width: 66ch; }
.prose h2 { margin-top: 1.6em; }
.prose p { font-family: var(--serif); font-size: 1.05rem; }
.prose blockquote {
  margin: 1.4em 0; padding: 0 0 0 18px; border-left: 3px solid var(--accent);
  font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--ink-2);
}
.prose .muted { font-family: var(--sans); font-size: .85rem; color: var(--ink-3); }

.article-head { border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 24px; }
.article-byline { font-size: .82rem; color: var(--ink-3); margin: 12px 0 0; }
.article-actions { margin-top: 1.6em; }

/* ---------- match centre ---------- */

.scoreboard { padding: 20px 0 22px; border-bottom: 3px solid var(--ink); margin-bottom: 6px; }
.scoreboard-main { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.scoreboard-team { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.scoreboard-team h1 { font-size: clamp(1.1rem, 2.4vw, 1.6rem); margin: 0; }
.scoreboard-team h1 a { text-decoration: none; }
.scoreboard-score { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
.scoreboard-score .dash { color: var(--ink-3); margin: 0 6px; }
.scoreboard-billing { text-align: center; color: var(--ink-3); font-size: .9rem; margin: 14px 0 0; }
.scoreboard-links { text-align: center; margin: 14px 0 0; }

.goals { list-style: none; margin: 0; padding: 0; }
.goal { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.goal-min { font-family: var(--serif); font-weight: 700; min-width: 3em; }
.goal-club { font-size: .75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.goal-assist { font-size: .82rem; color: var(--ink-3); }
.goal-away { padding-left: 12px; border-left: 3px solid var(--rule-strong); }

.statline { display: grid; grid-template-columns: 4em 1fr 4em; grid-template-areas: "h l a" "bar bar bar"; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.statline-h { grid-area: h; font-weight: 700; font-variant-numeric: tabular-nums; }
.statline-a { grid-area: a; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.statline-label { grid-area: l; text-align: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.statline-bar { grid-area: bar; height: 6px; background: var(--away, var(--rule-strong)); display: block; }
.statline-bar > span { display: block; height: 100%; background: var(--home, var(--accent)); }
.lineups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.lineup h3 { margin-bottom: .5em; }
.motm { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 .2em; }

.player-header { display: flex; gap: 20px; align-items: center; padding-bottom: 20px; border-bottom: 3px solid var(--accent); }
.player-header h1 { margin: 0 0 .2em; }
.player-header > div:nth-child(2) { flex: 1 1 auto; }
.player-shirt {
  width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--serif); font-size: 1.8rem; font-weight: 700;
}

/* ---------- strategies ---------- */

.strategy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.strategy-card { border-top: 3px solid var(--accent); padding: 14px 0 4px; }
.strategy-card h2 { font-size: 1.2rem; margin-bottom: .3em; }
.strategy-card h2 a { text-decoration: none; }
.strategy-rule { font-family: var(--serif); font-size: 1rem; color: var(--ink-2); }
.strategy-club { font-size: .85rem; color: var(--ink-3); }
.props { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.props li { font-size: .72rem; padding: 3px 8px; border: 1px solid var(--rule-strong); letter-spacing: .04em; }
.props li.yes { border-color: var(--win); color: var(--win); }
.props li.no { border-color: var(--rule-strong); color: var(--ink-3); }

.leader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 36px; }
.is-current { font-weight: 700; }

/* ---------- footer ---------- */

.footer { border-top: 2px solid var(--ink); background: var(--paper-2); margin-top: 50px; padding: 26px 0 40px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 30px; font-size: .88rem; color: var(--ink-2); }
.footer-strong { font-family: var(--serif); font-weight: 700; color: var(--ink); margin-bottom: .4em; }
.footer p { margin: 0 0 .5em; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- champion ---------- */

.champion {
  display: flex; gap: 20px; align-items: center;
  padding: 18px 20px; margin: 0 0 24px;
  background: var(--paper-2); border-left: 4px solid var(--accent);
}
.champion h2 { margin: 0 0 .2em; }
.champion p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* ---------- the league map ---------- */

.map-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .map-layout { grid-template-columns: 1fr; } }

.map-figure { margin: 0; }
.map { width: 100%; height: auto; display: block; }
.map-figure figcaption { font-size: .8rem; color: var(--ink-3); margin-top: 10px; }

.map-sea { fill: var(--paper-2); }
.map-sea-line { stroke: var(--rule-strong); stroke-width: 1; opacity: .4; }
.map-land { fill: var(--paper); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.map-shadow { fill: var(--ink); opacity: .08; }
.map-grid line { stroke: var(--ink); stroke-width: .6; opacity: .12; }
.map-grid-label text { fill: var(--ink-3); font: 700 16px var(--sans); opacity: .7; }
.map-green { fill: var(--turf); }
.map-water { fill: var(--water); opacity: .45; }
.map-lake { stroke: var(--water); stroke-width: 2; opacity: .75; }
.map-tree path { fill: var(--turf-dark); opacity: .8; }
.map-tree line { stroke: var(--turf-dark); stroke-width: 1; opacity: .8; }
.map-hill { fill: none; stroke: var(--ink-2); stroke-width: 2; opacity: .5; }
.map-frame { fill: none; stroke: var(--ink); stroke-width: 3; }
.map-frame-inner { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .5; }
.map-compass circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.map-compass-n { fill: var(--accent); }
.map-compass-s { fill: var(--ink); opacity: .35; }
.map-compass text { fill: var(--ink); font: 700 16px var(--sans); }

.map-pin { cursor: pointer; }
.map-pin-hit { fill: transparent; }
.map-pin-dot { fill: var(--pin); stroke: var(--ink); stroke-width: 3; transition: r .12s ease; }
.map-pin-pip { fill: var(--paper); }
.map-pin-town {
  fill: var(--ink); font: 700 21px var(--sans); letter-spacing: .6px;
  stroke: var(--paper); stroke-width: 5; paint-order: stroke; opacity: .9;
}
.map-pin-club {
  fill: var(--ink-3); font: 700 15px var(--sans); letter-spacing: 1px;
  stroke: var(--paper); stroke-width: 4; paint-order: stroke;
}
.map-pin:hover .map-pin-dot, .map-pin:focus .map-pin-dot { r: 19; }
.map-pin:hover .map-pin-town, .map-pin:focus .map-pin-town { opacity: 1; }
.map-pin.is-on .map-pin-dot { r: 20; }
.map-pin.is-on .map-pin-town { font-size: 26px; opacity: 1; }

.map-key { border-top: 2px solid var(--ink); padding-top: 18px; }
.map-list { list-style: none; margin: 0; padding: 0; counter-reset: town; }
.map-list li {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .9rem;
}
.map-list li:last-child { border-bottom: 0; }
.map-list li.is-on { background: var(--paper-2); }
.map-list-mark {
  width: 12px; height: 12px; border-radius: 50%; display: block;
  background: var(--pin); border: 1px solid var(--ink); align-self: center;
}
.map-list .muted { display: block; color: var(--ink-3); font-size: .78rem; }
.map-list-pts { font-family: var(--serif); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- club colour ---------- */

/*
 * Club colour carries identity the way a kit does: solid bands behind the
 * headings, the club's own colour, with the text colour the build worked out
 * is actually readable on it (--on-band). Amberdale's amber takes black type,
 * everyone else takes cream.
 */
.band {
  background: var(--band, var(--ink));
  color: var(--on-band, var(--paper));
  padding: 22px 24px;
}
.band a { color: inherit; }
.band .kicker, .band .muted { color: inherit; opacity: .72; }
.band .standfirst { color: inherit; opacity: .88; }
.band h1, .band h2 { color: inherit; }

.club-header.band, .player-header.band { border-bottom: 0; margin-bottom: 0; }
.club-header.band .club-header-meta { color: inherit; opacity: .75; }
.player-header.band .player-shirt {
  background: rgba(255, 255, 255, .16); color: inherit;
  border: 2px solid currentColor;
}

/* Cards: a colour bar across the top of each club and each rule. */
.club-card { border-top: 0; padding-top: 0; overflow: hidden; }
.club-card-head {
  background: var(--band, var(--ink)); color: var(--on-band, var(--paper));
  padding: 14px 16px; align-items: center;
}
.club-card-head h2 a { color: inherit; text-decoration: none; }
.club-card-head .club-card-sub { color: inherit; opacity: .75; }
.club-card > :not(.club-card-head) { padding-left: 16px; padding-right: 16px; }
.club-card { background: var(--paper-2); border: 1px solid var(--rule); }

.strategy-card { border-top: 0; padding-top: 0; background: var(--paper-2); border: 1px solid var(--rule); }
.strategy-card h2 {
  background: var(--band, var(--ink)); color: var(--on-band, var(--paper));
  margin: 0 0 14px; padding: 10px 16px; font-size: 1.15rem;
}
.strategy-card h2 a { color: inherit; text-decoration: none; }
.strategy-card > :not(h2) { padding-left: 16px; padding-right: 16px; }
.strategy-card .props { padding-bottom: 14px; }

/* The league table: a club-coloured edge on every row. */
.league-table td.club-cell { border-left: 4px solid var(--row, transparent); padding-left: 10px; }

/* Match cards and the scoreboard: both sides' colours, plainly. */
.match-card { border-left: 4px solid var(--home-colour, var(--rule)); }
.match-card.is-pending { border-left-style: dashed; }
.scoreboard-team h1 a { text-decoration: none; }
.scoreboard-rule { display: flex; height: 8px; margin: 18px 0 0; }
.scoreboard-rule span { display: block; flex: 1 1 50%; }
.scoreboard-rule .home { background: var(--home); }
.scoreboard-rule .away { background: var(--away); }
.club-tag {
  display: inline-block; padding: 3px 9px; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--band, var(--ink)); color: var(--on-band, var(--paper));
}

/* A badge sitting on its own club's band would be colour on colour, so it gets
   a plaque to sit on, the way a crest does on a matchday programme. */
.band .badge, .club-card-head .badge {
  background: rgba(255, 255, 255, .92);
  border-radius: 8px;
  padding: 5px;
  box-sizing: content-box;
}
.scoreboard-team h1 a { color: var(--team, inherit); }
.strategy-aka { font-size: .82rem; color: var(--ink-3); margin: 0 0 .6em; }
.club-tag + .strategy-aka { margin-left: 8px; }
