/* Gotham, self-hosted from fonts/ by build.py */
@font-face { font-family: "Gotham"; src: url("fonts/gotham-bold.ttf") format("truetype"); font-weight: 600 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Gotham"; src: url("fonts/gotham-book.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
/* ==========================================================================
   SSL Organization Site — shared stylesheet
   Team colours arrive at runtime as CSS variables (see app.js applyTheme):
   --tp  team primary      --ts  team secondary
   --ta  accent readable on white   --ton text colour on primary
   --op/--os  organization (major team) primary/secondary
   ========================================================================== */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #12151c;
  --ink-2: #4a5160;
  --ink-3: #7b8292;
  --line: #e3e6ec;
  --line-2: #eef0f4;
  --dark: #0b0e1f;
  --win: #1f8a4c;
  --draw: #8a8f99;
  --loss: #c23a3a;
  --gold: #c9a227;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 20, 28, .06), 0 4px 16px rgba(16, 20, 28, .06);
  /* Same font stack as the SSL Portal (app.min.css): "Gotham SSm" where installed, else Helvetica / Arial */
  --head: "Gotham", "Gotham SSm A", "Gotham SSm B", Helvetica, Arial, sans-serif;
  --body: "Gotham", "Gotham SSm A", "Gotham SSm B", Helvetica, Arial, sans-serif;
  --ssl-blue: #070b51; --ssl-gold: #bd9523; --major-gold: #9f8a24; --minor-red: #7a1c26; --cup-green: #2f6b14; --shield-grey: #676666;
  --tp: #333; --ts: #fff; --ton: #fff; --op: #333; --os: #fff;
  --ta-l: #333; --ta-d: #d6dbe6; --hover: #f7f8fa; --gold-bg: #fbf1cc; --gold-ink: #7a5f00; --brand-text: #070b51;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ta); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -.01em; line-height: 1.12; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--ta); outline-offset: 2px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.loading { padding: 80px 0; text-align: center; color: var(--ink-3); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--dark) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 3px solid var(--op);
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand .crest { width: 38px; height: 38px; }
.brand .crest + .crest { margin-left: -10px; }
.brand-name { font: 800 17px/1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.brand-name small { display: block; font: 500 11px/1.3 var(--body); letter-spacing: .08em; color: #aab1bf; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  color: #cfd4de; font: 700 12.5px/1 var(--head); text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 11px; border-radius: 8px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.nav a.active { color: #fff; box-shadow: inset 0 -3px 0 var(--os); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid #3a404c; color: #fff;
  border-radius: 8px; padding: 7px 10px; font: 700 12px var(--head); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--dark); padding: 8px 20px 16px; border-bottom: 3px solid var(--op); }
  .nav.open { display: flex; }
}

/* ---------- crests ---------- */
.crest { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.crest.mono {
  display: inline-grid; place-items: center; border-radius: 50%;
  font: 700 14px/1 var(--head); letter-spacing: .02em; border: 2px solid rgba(0,0,0,.08);
}
.crest-sm { width: 24px; height: 24px; }
.crest-sm.mono { font-size: 10px; border-width: 1px; }
.crest-xs { width: 18px; height: 18px; }
.crest-xs.mono { font-size: 8px; border-width: 1px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 15% -10%, color-mix(in srgb, var(--op) 85%, transparent), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, color-mix(in srgb, var(--mp, var(--op)) 80%, transparent), transparent 60%),
    var(--dark);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 22px);
}
.hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 56px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #c9cfda; }
.hero h1 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 900; text-transform: uppercase; margin: 14px 0 10px; }
.hero h1 span { display: block; }
.hero h1 .amp { font-size: .45em; color: #9aa3b3; font-weight: 600; letter-spacing: .1em; margin: 2px 0 4px; }
.hero p.lead { font-size: 18px; color: #dde2ea; max-width: 520px; margin: 0 0 26px; }
.hero-crests { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-club {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 26px 16px 20px; color: #fff; transition: transform .2s, background .2s;
}
.hero-club:hover { transform: translateY(-3px); background: rgba(255,255,255,.1); text-decoration: none; }
.hero-club .crest { width: 140px; height: 140px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.45)); }
.hero-club .crest.mono { font-size: 44px; }
.hero-club b { font: 800 18px/1.1 var(--head); text-transform: uppercase; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font: 600 12px/1.2 var(--body); letter-spacing: .04em; background: rgba(255,255,255,.12); color: #fff;
}
.pill img { width: 16px; height: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px;
  font: 700 13px/1 var(--head); letter-spacing: .06em; text-transform: uppercase;
  background: #fff; color: var(--dark); border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(.95); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-club .crest { width: 96px; height: 96px; }
}

/* ---------- page heads & sections ---------- */
.page-head { background: var(--tp); color: var(--ton); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 55%, color-mix(in srgb, var(--ts) 22%, transparent));
  pointer-events: none; }
.page-head .wrap { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; padding-top: 34px; padding-bottom: 30px; }
.page-head .crest { width: 84px; height: 84px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.3)); }
.page-head h1 { font-size: clamp(26px, 3.8vw, 40px); font-weight: 900; text-transform: uppercase; }
.page-head .eyebrow { color: inherit; opacity: .8; }
.page-head .meta { margin-top: 6px; opacity: .85; font-size: 14px; }
.section { padding: 44px 0; }
.section + .section { padding-top: 0; }
.sec-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-title h2 { font-size: 22px; font-weight: 800; text-transform: uppercase; }
.sec-title h2::before { content: ""; display: inline-block; width: 6px; height: .8em; background: var(--ta);
  margin-right: 10px; border-radius: 2px; vertical-align: -1px; }
.sec-title .more { font: 600 14px var(--body); }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.card-pad { padding: 20px; }
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- toolbar / tabs ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.tabs a, .tabs button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer;
  padding: 8px 14px; border-radius: 9px; color: var(--ink-2); font: 600 14px var(--body);
}
.tabs a:hover, .tabs button:hover { text-decoration: none; background: var(--line-2); }
.tabs .on { background: var(--tp); color: var(--ton); }
.tabs .on:hover { background: var(--tp); }
select.sel {
  appearance: none; font: 600 14px var(--body); color: var(--ink); background: var(--surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b8292' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 34px 9px 12px; cursor: pointer;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px;
  font: 600 13px var(--body); color: var(--ink-2); cursor: pointer; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.spacer { flex: 1; }

/* ---------- match cards ---------- */
.match-card { padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.match-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--tp)); }
.mc-head { display: flex; align-items: center; gap: 10px; }
.mc-head h3 { font-size: 17px; font-weight: 800; text-transform: uppercase; }
.mc-head .crest { width: 44px; height: 44px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; text-align: center;
  background: var(--line-2); border-radius: 12px; padding: 16px 10px; }
.vs .side { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; line-height: 1.2; }
.vs .side .crest { width: 52px; height: 52px; }
.vs .mid { font: 900 22px/1 var(--head); min-width: 70px; }
.vs .mid small { display: block; font: 600 11px var(--body); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 7px 0; border-top: 1px dashed var(--line); }
.kv span:first-child { color: var(--ink-3); }
.form { display: inline-flex; gap: 4px; }
.res { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  color: #fff; font: 700 12px/1 var(--body); }
.res.W { background: var(--win); } .res.D { background: var(--draw); } .res.L { background: var(--loss); }
.countdown { font: 700 14px var(--body); color: var(--ta); }

/* ---------- fixtures list ---------- */
.fx-month { font: 800 13px var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 22px 0 8px; }
.fx { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 12px 16px;
  border-bottom: 1px solid var(--line-2); }
.fx:last-child { border-bottom: 0; }
.fx-date { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.fx-date b { display: block; color: var(--ink); font: 800 15px/1.1 var(--head); }
.fx-main { display: grid; grid-template-columns: 1fr 86px 1fr; align-items: center; gap: 10px; }
.fx-team { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.fx-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-team.home { justify-content: flex-end; text-align: right; }
.fx-team.us span { color: var(--ink); font-weight: 700; }
.fx-team:not(.us) span { color: var(--ink-2); font-weight: 500; }
.score { text-align: center; font: 800 18px/1 var(--head); background: var(--line-2); border-radius: 8px; padding: 7px 4px; }
.score.W { background: color-mix(in srgb, var(--win) 14%, var(--surface)); color: var(--win); }
.score.L { background: color-mix(in srgb, var(--loss) 12%, var(--surface)); color: var(--loss); }
.score.D { background: var(--line-2); color: var(--ink-2); }
.score.tbd { font: 600 13px var(--body); color: var(--ink-3); padding: 9px 4px; }
.fx-comp { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); text-align: center; margin-top: -2px; }
.fx-comp .tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--line-2); margin-right: 6px; font-weight: 600; }
.fx-box { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 86px 1fr; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.fx-box[hidden] { display: none; }
.fx-box .h { text-align: right; } .fx-box .potm { grid-column: 1 / -1; text-align: center; color: var(--ink-3); }
.fx.click { cursor: pointer; } .fx.click:hover { background: var(--hover); }
@media (max-width: 640px) {
  .fx { grid-template-columns: 1fr; gap: 6px; }
  .fx-date b { display: inline; font-size: 15px; margin-right: 6px; }
  .fx-main, .fx-box { grid-template-columns: 1fr 64px 1fr; }
  .fx-team .crest-sm { display: none; }
}

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 600 12px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
  padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .c, .tbl th.c { text-align: center; }
.tbl tbody tr:hover td { background: var(--hover); }
.tbl tr.me td { background: color-mix(in srgb, var(--tp) 9%, var(--surface)); font-weight: 700; }
.tbl tr.me td:first-child { box-shadow: inset 4px 0 0 var(--tp); }
.tbl .team { display: flex; align-items: center; gap: 10px; }
.tbl th.sort { cursor: pointer; user-select: none; }
.tbl th.sort:hover { color: var(--ink); }
.tbl th.sorted { color: var(--ink); }
.tbl th.sorted::after { content: " ▾"; }
.tbl td.pos { width: 36px; color: var(--ink-3); font-weight: 700; }
.tbl.compact td, .tbl.compact th { padding: 7px 8px; }
.place-champ { color: #8a6d00; font-weight: 700; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 700 11px/1.5 var(--body); letter-spacing: .04em; }
.badge.gold { background: var(--gold-bg); color: var(--gold-ink); }
.badge.silver { background: var(--line-2); color: var(--ink-2); }
.badge.src { background: var(--line-2); color: var(--ink-3); font-weight: 600; }

/* ---------- squad ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.tile { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 16px 18px; }
.tile .v { font: 900 27px/1 var(--head); }
.tile .k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: 6px; font-weight: 600; }
@media (max-width: 700px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.line-title { font: 800 15px var(--head); text-transform: uppercase; letter-spacing: .06em; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.line-title .count { font: 600 12px var(--body); color: var(--ink-3); background: var(--line-2); border-radius: 999px; padding: 2px 8px; letter-spacing: 0; }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.player {
  display: flex; gap: 14px; align-items: center; padding: 14px; cursor: pointer; text-align: left; width: 100%;
  font: inherit; color: inherit; transition: transform .15s, box-shadow .15s;
}
.player:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(16,20,28,.1); }
.avatar {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--tp); color: var(--ton); font: 800 17px/1 var(--head); position: relative;
}
.avatar .pos { position: absolute; bottom: -6px; right: -6px; background: var(--surface); color: var(--ink);
  font: 700 10px/1 var(--body); padding: 3px 5px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.player .nm { font-weight: 700; line-height: 1.25; }
.player .sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.player .tpe { margin-left: auto; text-align: right; font: 800 18px/1 var(--head); }
.player .tpe small { display: block; font: 600 10px var(--body); color: var(--ink-3); letter-spacing: .08em; }
.ia { color: var(--loss); font-weight: 700; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(8,10,14,.6); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: var(--surface); border-radius: 18px; width: min(880px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal-head { background: var(--tp); color: var(--ton); padding: 24px; display: flex; gap: 18px; align-items: center; position: sticky; top: 0; z-index: 1; }
.modal-head .avatar { width: 72px; height: 72px; font-size: 28px; background: var(--ts); color: var(--tp); }
.modal-head h2 { font-size: 26px; font-weight: 900; text-transform: uppercase; }
.modal-head .x { margin-left: auto; align-self: flex-start; background: rgba(0,0,0,.18); color: inherit; border: 0; width: 36px; height: 36px; border-radius: 10px; font-size: 20px; cursor: pointer; }
.modal-body { padding: 22px 24px 28px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.fact { background: var(--line-2); border-radius: 10px; padding: 10px 12px; }
.fact .k { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.fact .v { font-weight: 700; margin-top: 2px; }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.attr-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 760px) { .attr-groups { grid-template-columns: 1fr; } }
.attr-groups h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.attr { display: grid; grid-template-columns: 1fr 64px 22px; align-items: center; gap: 8px; font-size: 13px; padding: 2px 0; text-transform: capitalize; }
.attr .bar { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.attr .bar i { display: block; height: 100%; background: var(--ta); border-radius: 3px; }
.attr b { text-align: right; font-variant-numeric: tabular-nums; }
.attr.hi b { color: var(--win); } .attr.lo b { color: var(--ink-3); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-sm { background: var(--line-2); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 600; }
.h-sub { font: 800 14px var(--head); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 10px; }

/* ---------- honours ---------- */
.trophies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .trophies { grid-template-columns: 1fr; } }
.trophy { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--dark); color: #fff; border-radius: var(--radius); position: relative; overflow: hidden; }
.trophy::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.25), transparent 70%); }
.trophy img { width: 58px; height: 58px; object-fit: contain; }
.trophy .ico { width: 58px; height: 58px; display: grid; place-items: center; font-size: 34px; }
.trophy .n { font: 900 36px/1 var(--head); color: #f0d36b; }
.trophy .t { font: 800 13px var(--head); text-transform: uppercase; letter-spacing: .06em; }
.trophy .s { font-size: 12.5px; color: #aab1bf; margin-top: 3px; }

/* ---------- chart ---------- */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { fill: var(--ink-3); font: 500 11px var(--body); }
.chart .bar { fill: var(--ta); }
.chart .bar.dim { opacity: .35; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + .bar, .chart .bar.hover { filter: brightness(1.12); }
.chart .star { fill: var(--gold); font: 700 12px var(--body); text-anchor: middle; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--dark); color: #fff; border-radius: 10px; padding: 9px 12px;
  font-size: 13px; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 260px; }
.tip b { font-family: var(--head); font-size: 14px; letter-spacing: .03em; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- leaders ---------- */
.leaders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
@media (max-width: 900px) { .leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.leader { padding: 16px; }
.leader .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }
.leader .v { font: 900 32px/1 var(--head); color: var(--ta); margin: 8px 0 4px; }
.leader .who { font-weight: 700; }
.leader ol { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); list-style: none; font-size: 13px; color: var(--ink-2); }
.leader li { display: flex; justify-content: space-between; padding: 2px 0; }

/* ---------- people ---------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .people { grid-template-columns: 1fr; } }
.person { display: flex; gap: 14px; align-items: center; padding: 18px; }
.person .avatar { background: var(--op); color: #fff; border-radius: 50%; }
.person .role { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }
.person .nm { font: 800 17px var(--head); }
.swatches { display: flex; gap: 8px; margin-top: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); }
.prose { max-width: 760px; color: var(--ink-2); font-size: 16px; }
.prose p { margin: 0 0 12px; }
.note { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #aab1bf; margin-top: 40px; border-top: 3px solid var(--op); }
.site-footer .wrap { padding-top: 34px; padding-bottom: 34px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer { background: var(--ssl-blue); }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.site-footer a { color: #dfe3ea; }
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.9; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid #232833; padding-top: 16px; font-size: 12.5px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.empty { padding: 30px; text-align: center; color: var(--ink-3); }

/* ==========================================================================
   League-wide components (club bar, join band) + league hub
   ========================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- club crest bar (top of every page) ---------- */
.club-bar { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 41; }
.club-bar .wrap { display: flex; align-items: center; gap: 14px; height: 52px; max-width: 1400px; }
.cb-home { display: flex; align-items: center; gap: 8px; color: var(--brand-text); font: 900 15px var(--head); letter-spacing: .04em; flex-shrink: 0; }
.cb-home:hover { text-decoration: none; }
.cb-home img { width: 32px; height: 32px; object-fit: contain; }
.cb-crests { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.cb-crests::-webkit-scrollbar { display: none; }
.cb-label { font: 700 10px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  padding: 0 6px 0 12px; border-left: 1px solid var(--line); flex-shrink: 0; }
.cb-label:first-child { border-left: 0; padding-left: 0; }
.cb-club { position: relative; display: grid; place-items: center; width: 36px; height: 40px; border-radius: 8px; flex-shrink: 0; transition: transform .15s, background .15s; }
.cb-club .crest { width: 26px; height: 26px; }
.cb-club .crest.mono { font-size: 9px; border-width: 1px; }
.cb-club:hover { background: var(--line-2); transform: translateY(-1px); }
.cb-club.on { background: var(--line-2); box-shadow: inset 0 -2px 0 var(--ssl-gold); }
.cb-join { flex-shrink: 0; background: var(--ssl-gold); color: #111; font: 800 11.5px/1 var(--head); letter-spacing: .06em;
  text-transform: uppercase; padding: 9px 12px; border-radius: 8px; }
.cb-join:hover { text-decoration: none; filter: brightness(1.06); }
@media (max-width: 700px) { .cb-join { display: none; } .cb-label { display: none; } }

/* ---------- buttons ---------- */
.btn.gold { background: var(--ssl-gold); color: #111; }
.nav a.nav-cta { background: var(--ssl-gold); color: #111; margin-left: 6px; }
.nav a.nav-cta:hover { background: #d0a62a; color: #111; }

/* ---------- join band ---------- */
.join-band { position: relative; overflow: hidden; color: #fff; margin: 20px 0 0;
  background: radial-gradient(800px 380px at 90% 0%, rgba(189,149,35,.28), transparent 60%), linear-gradient(120deg, var(--ssl-blue), #10166e); }
.join-band::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px); }
.join-band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.join-band.compact .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
.join-band .eyebrow { color: var(--ssl-gold); }
.join-band h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; text-transform: uppercase; margin: 10px 0 12px; }
.join-band p { color: #d6d9ee; font-size: 16.5px; max-width: 560px; margin: 0 0 22px; }
.join-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.join-steps li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 16px; }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ssl-gold); color: #111; font: 900 15px var(--head); flex-shrink: 0; }
.join-steps h4 { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.join-steps p { margin: 0; font-size: 14px; color: #c9cde6; }
@media (max-width: 900px) { .join-band .wrap { grid-template-columns: 1fr; } }

/* ---------- hub ---------- */
.hub .site-header { border-bottom-color: var(--ssl-gold); background: color-mix(in srgb, var(--ssl-blue) 94%, transparent); }
.hub .site-footer { border-top-color: var(--ssl-gold); }
.hub-hero { background:
    radial-gradient(1000px 520px at 10% -20%, rgba(60,80,220,.45), transparent 60%),
    radial-gradient(800px 480px at 100% 120%, rgba(189,149,35,.35), transparent 60%), var(--ssl-blue); }
.hub-hero .eyebrow { color: var(--ssl-gold); }
.hub-hero-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 26px; text-align: center; }
.hh-row { display: flex; justify-content: center; gap: 18px; margin-bottom: 18px; }
.hh-row img { width: 54px; height: 54px; object-fit: contain; }
.hh-big { font: 900 64px/1 var(--head); color: var(--ssl-gold); }
.hh-cap { color: #d6d9ee; font-size: 14px; margin-top: 6px; }
.hh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.hh-stats b { display: block; font: 900 26px/1 var(--head); }
.hh-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #aab0d4; }
.hub .sec-title h2::before { background: var(--ssl-gold); }
.hub .tabs .on { background: var(--ssl-blue); color: #fff; }
.tabs button .crest-xs { width: 18px; height: 18px; }
.day-head { font: 800 12.5px var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.tlink { color: inherit; }
.tlink:hover { color: var(--brand-text); }
.hub .fx { grid-template-columns: 1fr; padding: 11px 14px; }
.hub .fx-main { grid-template-columns: 1fr 58px 1fr; }
.hub .fx-team span { font-size: 13.5px; }
.hub .score { font-size: 16px; }
.tbl td.pts { font-weight: 800; }
.hub-leaders { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .hub-leaders { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hub .leader .v { color: var(--brand-text); }
.lead-top { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.lead-top .crest { width: 46px; height: 46px; }
.lead-top .v { margin: 0 0 2px; font-size: 30px; }
.leader .lt { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.org-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; color: var(--ink); position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.org-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.org-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(7,11,81,.14); }
.org-crests { display: flex; gap: 10px; }
.org-crests .crest { width: 58px; height: 58px; }
.org-crests .crest.mono { font-size: 18px; }
.org-card h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; }
.org-card ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.org-card li b { display: inline-block; width: 50px; font: 700 10.5px var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.org-go { margin-top: auto; font: 700 12px var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--brand-text); }
.hub-champs { grid-template-columns: 2fr 1fr; align-items: start; }
@media (max-width: 900px) { .hub-champs { grid-template-columns: minmax(0, 1fr); } }
.mini-h { font-size: 16px; font-weight: 800; text-transform: uppercase; }
.deco { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.deco .pos { width: 18px; color: var(--ink-3); font-weight: 700; }
.deco .crest { width: 38px; height: 38px; }
.deco-n { margin-left: auto; font: 900 24px var(--head); color: var(--ssl-gold); }
.match-days { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
@media (max-width: 440px) { .match-days { grid-template-columns: 1fr; } }
.fx-team .tlink { min-width: 0; display: block; }
.fx-team .tlink span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- companion links (SSL Portal / YouTube) ---------- */
a.plink { color: inherit; text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, currentColor 45%, transparent); }
a.plink:hover { color: var(--ta); border-bottom-color: currentColor; }
.hub a.plink:hover { color: var(--brand-text); }
.btn-portal { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--ssl-blue); color: #fff;
  font: 700 12.5px/1 var(--head); letter-spacing: .04em; text-transform: uppercase; }
.btn-portal:hover { text-decoration: none; filter: brightness(1.15); }
a.player { color: inherit; }
a.player:hover { text-decoration: none; }
.player .go { margin-left: auto; align-self: center; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--line-2); color: var(--ink-3); font-weight: 700; transition: background .15s, color .15s; }
.player:hover .go { background: var(--tp); color: var(--ton); }
.nav a { white-space: nowrap; }
.nav a.nav-watch { color: #fff; background: #c4302b; margin-left: 6px; }
.nav a.nav-watch:hover { background: #d93a34; color: #fff; }

/* ---------- hub: academy & WSFC ---------- */
.hub-academy { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .hub-academy { grid-template-columns: minmax(0, 1fr); } }
.hub-leaders-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
ol.plain { border-top: 0; margin-top: 8px; padding-top: 0; }
ol.plain li { padding: 4px 0; border-bottom: 1px dashed var(--line-2); }
ol.plain li:last-child { border-bottom: 0; }
.wsfc-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.wsfc-trophy { background: linear-gradient(120deg, var(--ssl-blue), #141b80); }
.wsfc-trophy .crest { width: 64px; height: 64px; }
.wsfc-trophy .crest.mono { font-size: 20px; }
.trophy .n2 { font: 900 24px/1.1 var(--head); color: #f0d36b; margin: 4px 0; }
.wsfc-groups .tbl td, .wsfc-groups .tbl th { padding: 6px 6px; }
@media (max-width: 1100px) { .wsfc-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wsfc-groups { grid-template-columns: minmax(0, 1fr); } }
.nation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.nation { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.nation .crest { width: 40px; height: 40px; }

/* ---------- Shield logo: the artwork is black, so invert it to white on dark backgrounds ---------- */
.logo-shield { filter: invert(1); }

/* ---------- YouTube watch links ---------- */
.watch-links { display: inline-flex; gap: 4px; margin-left: 4px; vertical-align: middle; }
a.watch { display: inline-flex; align-items: center; gap: 3px; background: #c4302b; color: #fff; border-radius: 6px; padding: 2px 7px;
  font: 700 10.5px/1.5 var(--body); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
a.watch:hover { background: #d93a34; text-decoration: none; }

/* ---------- join band extras ---------- */
.btn.gold-outline { background: transparent; color: var(--ssl-gold); box-shadow: inset 0 0 0 2px var(--ssl-gold); }
.btn.gold-outline:hover { background: rgba(189,149,35,.12); }
.step-link { display: inline-block; margin-top: 6px; color: var(--ssl-gold); font: 700 12.5px var(--body); }
.join-mini { font-size: 14.5px !important; color: #fff !important; }

/* ---------- hub teasers ---------- */
.teaser { display: flex; flex-direction: column; gap: 10px; padding: 22px; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.teaser:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 30px rgba(7,11,81,.14); }
.teaser h3 { font-size: 24px; font-weight: 900; text-transform: uppercase; }
.eyebrow-dark { font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ssl-gold); }
.teaser-list { list-style: none; margin: 0; padding: 0; }
.teaser-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.teaser-list li:last-child { border-bottom: 0; }
.teaser-list span { width: 34px; color: var(--ink-3); font-weight: 700; }
.teaser-list em { margin-left: auto; font-style: normal; color: var(--ink-3); font-size: 13px; }

/* ---------- league sub-pages (Academy / WSFC) ---------- */
.league-head { background: linear-gradient(120deg, var(--ssl-blue), #141b80); color: #fff; }
.league-head .brand-logo { width: 84px; height: 84px; object-fit: contain; }
.league-head .eyebrow { color: var(--ssl-gold); opacity: 1; }
.league-head .meta { max-width: 720px; }
.btn-portal.alt { background: var(--surface); color: var(--brand-text); box-shadow: inset 0 0 0 1.5px var(--brand-text); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linkish:hover { color: var(--brand-text); }
button.linkish.small { color: var(--brand-text); font-size: 12.5px; font-weight: 600; }
.md-videos { display: flex; flex-wrap: wrap; gap: 8px; }
.md-video { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: 700 12.5px var(--body); color: var(--ink); }
.md-video:hover { border-color: #c4302b; color: #c4302b; text-decoration: none; }
.squad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.squad-card { overflow: hidden; }
.squad-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 8px; }
.squad-head .crest { width: 44px; height: 44px; }
.squad-head h3 { font-size: 16px; font-weight: 800; text-transform: uppercase; }
.champ-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.champ-chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.edition-tabs { flex-wrap: wrap; }
.edition-banner { margin-bottom: 4px; }
.mini-h.sub { margin: 26px 0 12px; }
.tbl tr.qualified td:first-child { box-shadow: inset 3px 0 0 var(--win); }
.friendlies { margin-top: 18px; }
.friendlies summary { cursor: pointer; padding: 14px 16px; font: 800 13px var(--head); text-transform: uppercase; letter-spacing: .05em; }
.video-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.video-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--ink); font-size: 14px; }
.video-item:hover { border-color: #c4302b; text-decoration: none; }
.video-item .play { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #c4302b; color: #fff; flex-shrink: 0; font-size: 12px; }

@media (max-width: 1240px) { .nav a.nav-watch, .nav a.nav-cta { margin: 6px 0 0; text-align: center; } }
.empty-state { padding: 26px; text-align: center; }
.empty-state p { margin: 6px 0 14px; }
.no-user-list { list-style: none; margin: 0; padding: 4px 16px 16px; display: grid; gap: 4px; }
.no-user-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.no-user-list li:last-child { border-bottom: 0; }

/* ---------- The Cup: knockout bracket ---------- */
.bk-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.bk-shield, .bk-champ, .bk-byes { padding: 14px 16px; }
.bk-shield-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bk-shield .brand-logo { width: 34px; height: 34px; object-fit: contain; filter: none; }
.bk-champ { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, var(--ssl-blue), #141b80); color: #fff; }
.bk-champ .brand-logo { width: 44px; height: 44px; object-fit: contain; }
.bk-champ b { font: 900 20px var(--head); color: #f0d36b; }
.bk-champ .crest { margin-left: auto; width: 46px; height: 46px; }
.bk-champ .muted { color: #c9cde6; }
.bk-bye-list { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.bk-bye-list span { display: inline-flex; align-items: center; gap: 6px; }
.bracket-wrap { overflow-x: auto; padding-bottom: 6px; }
.bracket { display: flex; gap: 0; min-width: max-content; align-items: stretch; }
.bk-round { display: flex; flex-direction: column; width: 250px; padding: 0 14px; position: relative; }
.bk-round:first-child { padding-left: 0; }
.bk-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px 10px; border-bottom: 2px solid var(--ssl-gold); margin-bottom: 10px; }
.bk-head b { font: 800 12.5px var(--head); text-transform: uppercase; letter-spacing: .05em; }
.bk-head span { font-size: 12px; color: var(--ink-3); }
.bk-ties { display: flex; flex-direction: column; justify-content: space-around; flex: 1; gap: 10px; }
.bk-tie { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: relative; box-shadow: var(--shadow); }
.bk-round.joined .bk-tie::before { content: ""; position: absolute; left: -15px; top: 50%; width: 14px; border-top: 2px solid var(--line); }
.bk-team { display: flex; align-items: center; gap: 8px; padding: 7px 10px; font-size: 13px; }
.bk-team + .bk-team { border-top: 1px solid var(--line-2); }
.bk-team .bk-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-team .bk-score { font: 800 15px var(--head); min-width: 18px; text-align: right; }
.bk-team.won { background: color-mix(in srgb, var(--ssl-gold) 14%, var(--surface)); font-weight: 700; }
.bk-team.lost { color: var(--ink-3); }
.bk-team.tba { color: var(--ink-3); font-style: italic; }
.bk-tbd { background: var(--line-2) !important; color: var(--ink-3) !important; }
.bk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 10px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--ink-3); }
.bk-legs { width: 100%; }
@media (max-width: 640px) { .bk-round { width: 220px; } }
.deco-crests { display: flex; flex-shrink: 0; }
.deco-crests .crest { width: 34px; height: 34px; }
.deco-crests .crest + .crest { margin-left: -8px; }
.deco-crests .crest.mono { font-size: 11px; }

/* ---------- draft ---------- */
.draft-round { margin-bottom: 18px; }
.draft-tbl tr.passed td { color: var(--ink-3); background: var(--hover); }
.draft-tbl .pick-no b { font: 800 16px var(--head); }
.first-pick { display: flex; align-items: center; gap: 18px; padding: 20px; margin-top: 4px; border-left: 4px solid var(--ssl-gold); }
.first-pick .crest { width: 64px; height: 64px; }
.fp-name { font: 900 26px var(--head); margin: 2px 0 4px; }
.org-draft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.draft-list { list-style: none; margin: 0; padding: 0 16px 14px; }
.draft-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.draft-list li:last-child { border-bottom: 0; }
.draft-list .pk { font: 800 14px var(--head); color: var(--ssl-gold); width: 34px; }
.draft-teaser { grid-template-columns: minmax(0, 1fr); }

.club-bar .wrap { justify-content: center; }
.cb-crests { flex: 0 1 auto; }


/* ==========================================================================
   Light / dark mode  (html[data-theme], set before paint by the inline script
   in each page's <head>; toggled by .theme-btn and remembered in localStorage)
   ========================================================================== */
/* each element picks the accent that is readable on the current background */
:root, :root * { --ta: var(--ta-l); }
:root[data-theme="dark"], :root[data-theme="dark"] * { --ta: var(--ta-d); }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e17; --surface: #141925; --ink: #e8ebf2; --ink-2: #b9c0ce; --ink-3: #8a93a6;
  --line: #2a3346; --line-2: #1c2331; --hover: #1a2030;
  --gold-bg: rgba(201,162,39,.2); --gold-ink: #f0d36b; --brand-text: #a9b8ff;
  --shadow: 0 1px 2px rgba(0,0,0,.45), 0 4px 16px rgba(0,0,0,.35);
}
:root[data-theme="dark"] .bk-shield .brand-logo { filter: invert(1); }  /* black Shield logo on a dark card */
:root[data-theme="dark"] .crest.mono { border-color: rgba(255,255,255,.12); }
:root[data-theme="dark"] select.sel { background-color: var(--surface); }
:root[data-theme="dark"] .tile, :root[data-theme="dark"] .card { border-color: var(--line); }

.theme-btn { margin-left: 8px; flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 17px; line-height: 1;
  display: grid; place-items: center; }
.theme-btn:hover { background: rgba(255,255,255,.16); }
@media (max-width: 1240px) { .theme-btn { margin-left: auto; } .menu-btn { margin-left: 8px; } }

/* Academy squad cards: wrap long names/positions so every column fits the card */
.squad-card { overflow: visible; }
.squad-tbl td, .squad-tbl th { white-space: normal; }
.squad-tbl td.r, .squad-tbl th.r { white-space: nowrap; }
.squad-tbl td:nth-child(2) { min-width: 84px; }

/* ---------- footer (shared by every page) ---------- */
.site-footer .wrap.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-top: 40px; padding-bottom: 26px; }
.ft-brand p { font-size: 13.5px; line-height: 1.6; color: #c3c9de; margin: 10px 0 16px; max-width: 340px; }
.ft-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 800 15px var(--head); text-transform: uppercase; letter-spacing: .04em; }
.ft-logo:hover { text-decoration: none; }
.ft-logo img { width: 40px; height: 40px; object-fit: contain; }
.ft-club { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ft-club .crest { width: 34px; height: 34px; }
.ft-club b { color: #fff; font: 800 14px var(--head); text-transform: uppercase; letter-spacing: .03em; margin-left: 4px; }
.ft-socials { display: flex; gap: 8px; }
.ft-social { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); transition: background .15s, transform .15s; }
.ft-social:hover { background: var(--ssl-gold); color: #111; transform: translateY(-2px); text-decoration: none; }
.site-footer ul { line-height: 2; }
.site-footer ul a { color: #dfe3ee; }
.site-footer ul a:hover { color: #fff; }
.site-footer .ext { font-size: 11px; margin-left: 4px; opacity: .6; }
.ft-sep { height: 1px; background: rgba(255,255,255,.12); margin: 8px 0; list-style: none; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 12.5px; color: #aab1cc; }
:root[data-theme="dark"] .site-footer { background: #070a2e; }
@media (max-width: 900px) { .site-footer .wrap.ft-grid { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer .wrap.ft-grid { grid-template-columns: 1fr; } }
.site-footer .wrap.ft-grid.ft-club-grid { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 1100px) { .site-footer .wrap.ft-grid.ft-club-grid { grid-template-columns: 1fr 1fr; } .ft-club-grid .ft-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer .wrap.ft-grid.ft-club-grid { grid-template-columns: 1fr; } }

/* header: let the brand shrink so the theme + menu buttons always fit */
.brand { min-width: 0; }
.brand-name { min-width: 0; }
.brand-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .brand-name small { display: none; } .brand .crest + .crest { display: none; } }

/* header: divider between homepage sections and separate pages */
.nav-sep { width: 1px; height: 20px; background: rgba(255,255,255,.22); margin: 0 8px; align-self: center; }
@media (max-width: 1240px) { .nav-sep { width: auto; height: 1px; margin: 6px 0; align-self: stretch; } }
