/* SSFA Online — design tokens ------------------------------------------------ */
:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #f8faf8;
  --ink: #0f1f18;
  --ink-2: #33443b;
  --muted: #64746b;
  --line: #e2e8e3;
  --brand: #0e7a4f;
  --brand-ink: #0a5a3a;
  --brand-soft: #e3f3ea;
  --gold: #f1b51c;
  --gold-soft: #fff4d6;
  --red: #d6453d;
  --win: #16955a;
  --draw: #9aa49e;
  --loss: #d6453d;
  --header: #0b3d2e;
  --header-2: #0f5139;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 31, 24, .05), 0 4px 16px rgba(15, 31, 24, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1310;
    --surface: #111c17;
    --surface-2: #15221c;
    --ink: #e7eee9;
    --ink-2: #c4d0c8;
    --muted: #8e9d94;
    --line: #22322a;
    --brand: #35c286;
    --brand-ink: #6fdcaa;
    --brand-soft: #143325;
    --gold-soft: #2c2410;
    --header: #08251c;
    --header-2: #0c3324;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

/* Base ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.6rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--surface); padding: 8px 12px; }

/* Header ---------------------------------------------------------------------- */
.site-header { background: linear-gradient(180deg, var(--header), var(--header-2)); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; font-size: 1.1rem; line-height: 1.05; letter-spacing: .01em; }
.brand-text b { font-weight: 900; color: var(--gold); }
.brand-text small { font-size: .68rem; opacity: .75; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.main-nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.main-nav a { color: #e6f2ec; padding: 8px 10px; border-radius: 8px; font-size: .92rem; font-weight: 600; }
.main-nav a:hover { background: rgba(255, 255, 255, .1); text-decoration: none; }
.search input { width: 230px; border: 0; border-radius: 999px; padding: 9px 14px; background: rgba(255, 255, 255, .13); color: #fff; font: inherit; font-size: .9rem; }
.search input::placeholder { color: rgba(255, 255, 255, .7); }
.search input:focus { outline: 2px solid var(--gold); background: rgba(255, 255, 255, .2); }
.stripe { height: 4px; background: linear-gradient(90deg, #0e7a4f 0 33%, var(--gold) 33% 66%, var(--red) 66%); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
@media (max-width: 1080px) {
  .search input { width: 170px; }
  .main-nav a { padding: 8px 7px; font-size: .88rem; }
}
@media (max-width: 900px) {
  .site-header { position: static; }
  .layout > aside { top: 16px; }
  .nav-toggle { display: block; }
  .header-row { flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
  .main-nav { display: none; order: 3; width: 100%; flex-direction: column; }
  .main-nav.open { display: flex; }
  .search { order: 4; width: 100%; }
  .search input { width: 100%; }
}

/* Breadcrumbs ----------------------------------------------------------------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--muted); }

/* Layout ---------------------------------------------------------------------- */
main { padding-top: 16px; padding-bottom: 48px; min-height: 60vh; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.layout > aside { position: sticky; top: 84px; display: grid; gap: 18px; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .layout > aside { position: static; } }
.stack { display: grid; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head a { font-size: .88rem; font-weight: 600; white-space: nowrap; }
.prose p { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); text-underline-offset: 3px; }

/* Hero ------------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; border-radius: 18px; padding: 26px 28px; margin-bottom: 20px; color: #fff;
  background: radial-gradient(1200px 300px at 100% 0%, rgba(241, 181, 28, .25), transparent 60%),
              linear-gradient(135deg, #0b3d2e, #0e6b45 60%, #12804f); box-shadow: var(--shadow); }
.hero h1 { color: #fff; margin-bottom: 6px; }
.hero .sub { color: #d4ebdf; font-size: 1.02rem; margin: 0; }
.hero .flag { width: 44px; height: 33px; border-radius: 5px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.hero-row { display: flex; gap: 20px; align-items: center; }
.hero-photo { width: 120px; height: 150px; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); flex: none; }
.hero .chips { margin-top: 12px; }
.hero .chip { background: rgba(255, 255, 255, .14); color: #fff; border-color: transparent; }
.hero a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .hero { padding: 20px 18px; } .hero-photo { width: 84px; height: 105px; } .hero-row { align-items: flex-start; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 18px; }
.tile { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 12px 14px; }
.tile b { display: block; font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.tiles.light .tile { background: var(--surface-2); border: 1px solid var(--line); }
.tiles.light .tile b { color: var(--brand-ink); }
.tiles.light .tile span { color: var(--muted); }

/* Chips, pills, tabs ---------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
a.chip:hover { border-color: var(--brand); color: var(--brand-ink); text-decoration: none; }
.chip .flag { width: 16px; height: 12px; }
.chip.gold { background: var(--gold-soft); border-color: transparent; color: #7a5600; }
@media (prefers-color-scheme: dark) { .chip.gold { color: var(--gold); } }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; margin: -4px 0 18px; scrollbar-width: thin; }
.tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabs a:hover { text-decoration: none; border-color: var(--brand); }
.pill { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: .75rem; font-weight: 800; color: #fff; }
.pill.w { background: var(--win); } .pill.d { background: var(--draw); } .pill.l { background: var(--loss); }
.form { display: flex; gap: 4px; }
.so { font-size: .7rem; vertical-align: super; color: var(--muted); }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); vertical-align: middle; }

/* Flags ----------------------------------------------------------------------- */
.flag { display: inline-block; width: 20px; height: 15px; object-fit: cover; border-radius: 3px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.flag-txt { display: inline-grid; place-items: center; font-size: .55rem; font-weight: 800; background: var(--line); color: var(--muted); }

/* Tables ---------------------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 8px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl td.team, .tbl td.name { white-space: nowrap; }
.tbl .flag { margin-right: 6px; }
.tbl th[data-sort] { cursor: pointer; }
.tbl th[data-sort]::after { content: " ↕"; opacity: .35; }
.tbl tr.hl td { background: var(--gold-soft); }
.tbl td.res { width: 34px; }
.tbl .rank { color: var(--muted); width: 32px; }
.tbl.compact td { padding: 6px 8px; }

/* Lists ----------------------------------------------------------------------- */
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 9px; }
.plist li:hover { background: var(--surface-2); }
.plist .meta { margin-left: auto; color: var(--muted); font-size: .84rem; text-align: right; }
.plist .who { min-width: 0; }
.plist .who a { font-weight: 650; }
.plist .who small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.cols { columns: 3 220px; column-gap: 24px; }
.cols li { break-inside: avoid; }
.ticks { padding-left: 1.1em; }
.ticks li { margin: 4px 0; }

.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pcard { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, transform .15s; }
.pcard:hover { border-color: var(--brand); transform: translateY(-1px); text-decoration: none; }
.pcard img.ph { width: 46px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--surface-2); flex: none; }
.pcard .ph-txt { width: 46px; height: 56px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.pcard b { display: block; color: var(--ink); font-size: .95rem; line-height: 1.25; }
.pcard small { color: var(--muted); font-size: .8rem; line-height: 1.3; display: block; }

/* Charts ---------------------------------------------------------------------- */
svg.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .val { fill: var(--ink-2); font-size: 10px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; }
.chart .area { fill: var(--brand); opacity: .1; }
.chart .dot { fill: var(--gold); stroke: var(--surface); stroke-width: 2; }
.chart .bar { fill: var(--brand); opacity: .85; }
.chart .bar.hi { fill: var(--gold); opacity: 1; }
.split { display: flex; height: 26px; border-radius: 8px; overflow: hidden; font-size: .78rem; font-weight: 800; color: #fff; }
.split span { display: grid; place-items: center; min-width: 2px; }
.split .w { background: var(--win); } .split .d { background: var(--draw); } .split .l { background: var(--loss); }
.legend { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); margin-top: 6px; gap: 10px; }

/* FAQ ------------------------------------------------------------------------- */
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 8px 0 0; color: var(--ink-2); }

/* Home ------------------------------------------------------------------------ */
.home-hero { padding: 40px 32px; }
.home-hero h1 { font-size: clamp(2rem, 3.4vw + 1rem, 3.3rem); max-width: 820px; }
.home-hero .sub { max-width: 720px; font-size: 1.1rem; }
.home-hero .search-big { margin-top: 20px; display: flex; max-width: 560px; }
.home-hero .search-big input { flex: 1; border: 0; border-radius: 12px 0 0 12px; padding: 14px 16px; font: inherit; }
.home-hero .search-big button { border: 0; background: var(--gold); color: #1d1500; font-weight: 800; padding: 0 20px; border-radius: 0 12px 12px 0; cursor: pointer; font: inherit; font-weight: 800; }
.feature-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 12px; }
.feature-links a { display: block; padding: 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.feature-links a:hover { border-color: var(--brand); text-decoration: none; }
.feature-links b { display: block; margin-bottom: 4px; }
.feature-links span { color: var(--muted); font-size: .88rem; }
.match-list { list-style: none; margin: 0; padding: 0; }
.match-list li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.match-list li .h { text-align: right; }
.match-list li .s { font-weight: 800; font-variant-numeric: tabular-nums; background: var(--surface-2); border-radius: 7px; padding: 2px 8px; }
.match-list li .c { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); text-align: center; margin-top: -4px; }

/* Ads ------------------------------------------------------------------------- */
.ad { min-height: 120px; margin: 4px 0; display: grid; place-items: center; }
.ad-top { min-height: 100px; }
.ad-sidebar { min-height: 280px; }

/* Media ----------------------------------------------------------------------- */
.credit { font-size: .74rem; color: var(--muted); margin-top: 6px; }
.yt { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 64px; height: 44px; transform: translate(-50%, -50%); border-radius: 12px;
  background: #e00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/24px no-repeat; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Pager ----------------------------------------------------------------------- */
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.pager a, .pager span { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; }
.pager span.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Notes ----------------------------------------------------------------------- */
.note { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: .88rem; }
.answer { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 14px 16px; border-radius: 0 12px 12px 0; }
.answer p:last-child { margin: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; font-weight: 600; }

/* Footer ---------------------------------------------------------------------- */
.site-footer { background: var(--header); color: #cfe2d8; padding: 36px 0 20px; margin-top: 30px; }
.site-footer a { color: #e7f3ec; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer-grid h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.site-footer .muted { color: #9fbcad; }
.credits { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); line-height: 1.7; }
.brand-footer { margin-bottom: 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ===== Friendlier UI layer ===================================================== */
:root { --bg: #f5f6f1; --line: #e4e9e3; --radius: 16px; }
@media (prefers-color-scheme: dark) { :root { --bg: #0b1310; --line: #22322a; } }
body { font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h2 { font-size: 1.3rem; }
.card { padding: 22px 24px; transition: box-shadow .2s, border-color .2s; }
.card h2 { display: flex; align-items: center; gap: 8px; }
.prose p { max-width: 72ch; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; }
.main-nav a .ic { opacity: .75; }

/* "More" dropdown */
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; color: #e6f2ec; padding: 8px 10px; border-radius: 8px; font-size: .92rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.more summary::-webkit-details-marker { display: none; }
.more summary:hover, .more[open] summary { background: rgba(255, 255, 255, .1); }
.more-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; min-width: 380px; z-index: 60; }
.more-menu a { color: var(--ink) !important; padding: 9px 10px !important; border-radius: 9px; font-weight: 600; font-size: .9rem; display: flex !important; gap: 8px; }
.more-menu a:hover { background: var(--brand-soft) !important; text-decoration: none; }
.more-menu a .ic { color: var(--brand); opacity: 1; }

/* search with icon */
.search { position: relative; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .75); pointer-events: none; }
.search input { padding-left: 38px; }

/* tables: calmer, more readable */
.tbl thead th { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tbl thead th:first-child { border-top-left-radius: 10px; }
.tbl thead th:last-child { border-top-right-radius: 10px; }
.tbl tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.tbl td { padding: 10px 10px; }
.tbl.compact td { padding: 8px 10px; }
.tbl a { font-weight: 600; }
.show-all { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 1px dashed var(--line); background: var(--surface-2); color: var(--brand-ink); border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.show-all:hover { border-color: var(--brand); }
tr.is-hidden { display: none; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0; }
.facts > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-weight: 650; line-height: 1.4; }

/* maps */
.map-wrap { margin: 0; }
svg.map { width: 100%; height: auto; display: block; }
.map path { stroke: var(--surface); stroke-width: .7; transition: opacity .15s; }
.map a:hover path, .map path:hover { opacity: .78; }
.map .m-bg { fill: color-mix(in srgb, var(--line) 70%, var(--surface)); }
.map .m-0 { fill: var(--line); }
.map .m-1 { fill: #cfe9da; } .map .m-2 { fill: #9fd3b6; } .map .m-3 { fill: #63b98c; }
.map .m-4 { fill: #2e9a66; } .map .m-5 { fill: #12784d; } .map .m-6 { fill: #0b5737; }
.map .m-hl { fill: var(--gold); }
.map .m-dot { fill: var(--gold); fill-opacity: .85; stroke: #7a5600; stroke-width: .6; }
.map a:hover .m-dot { fill: var(--red); }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.map-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.map-legend .m-1 { background: #cfe9da; } .map-legend .m-2 { background: #9fd3b6; } .map-legend .m-3 { background: #63b98c; }
.map-legend .m-4 { background: #2e9a66; } .map-legend .m-5 { background: #12784d; } .map-legend .m-6 { background: #0b5737; }
@media (prefers-color-scheme: dark) {
  .map .m-1 { fill: #1d4433; } .map .m-2 { fill: #22603f; } .map .m-3 { fill: #2b7d50; }
  .map .m-4 { fill: #34a067; } .map .m-5 { fill: #4cc282; } .map .m-6 { fill: #7fe0ad; }
}

/* match scoreboard */
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-align: center; }
.sb-team:hover { text-decoration: none; }
.sb-team .flag { width: 64px !important; height: 48px !important; border-radius: 8px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
.sb-team b { font-size: clamp(1.05rem, 2.4vw, 1.6rem); }
.sb-score { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 900; font-variant-numeric: tabular-nums; text-align: center; line-height: 1; }
.sb-score span { opacity: .6; margin: 0 6px; }
.sb-score small { font-size: 1.2rem; opacity: .8; font-weight: 700; }
.sb-score .small { font-size: .8rem; font-weight: 600; margin-top: 8px; opacity: .85; }
.match-list a.s { color: var(--ink); }
.match-list a.s:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* predictor */
.predictor { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.predictor label { display: grid; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--muted); }
.predictor select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-size: 1rem; }
.predictor .check { display: flex; gap: 8px; align-items: center; padding-bottom: 10px; }
@media (max-width: 640px) { .predictor { grid-template-columns: 1fr; } }

/* mobile bottom bar + back to top */
.tabbar { display: none; }
.to-top { position: fixed; right: 16px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; box-shadow: var(--shadow); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; display: grid; place-items: center; }
.to-top.show { opacity: 1; pointer-events: auto; }
@media (max-width: 760px) {
  body { padding-bottom: 64px; font-size: 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: .7rem; font-weight: 700; color: var(--muted); }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar a:hover { color: var(--brand); text-decoration: none; }
  .to-top { bottom: 80px; }
  .card { padding: 18px 16px; }
  .more-menu { position: static; min-width: 0; grid-template-columns: 1fr; box-shadow: none; margin-top: 6px; }
  .hero h1 { font-size: 1.65rem; }
}
@media (max-width: 900px) { .more summary { width: 100%; } }

/* articles */
.article-body h2 { margin-top: 1.4em; }
.article-body ul.ticks li, .article-body ol.ticks li { margin: 6px 0; }
.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.glossary dt { font-weight: 800; color: var(--brand-ink); }
.glossary dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .glossary { grid-template-columns: 1fr; } .glossary dd { margin-bottom: 8px; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--brand-soft); }
.timeline li { position: relative; padding: 0 0 14px 20px; color: var(--ink-2); }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); }
.timeline b { color: var(--ink); margin-right: 6px; }

/* friendlier hero + cards */
.hero { border-radius: 22px; }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 28px solid rgba(255, 255, 255, .05); pointer-events: none; }
.answer { border-left-width: 5px; }
.section-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Utilities ------------------------------------------------------------------- */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt { margin-top: 18px; }
.right { text-align: right; } .center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.section-title { display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
