/* ============================================================
   Singapore Football Hub — local functional build
   Brand themes: FAS (navy/red), SPL (black/neon), SG Cup (green)
   ============================================================ */

@font-face {
  font-family: 'Bebas Neue';
  src: url('/assets/fonts/bebas.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('/assets/fonts/barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('/assets/fonts/barlow-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('/assets/fonts/barlow-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #0b2a5b;
  --navy-deep: #071c3f;
  --red: #e1251b;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --bg: #f5f6f8;
  --card: #ffffff;
  --soft: #eef1f5;
  --accent: #e1251b;
  --display: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
body.brand-spl {
  --bg: #08080b;
  --card: #121218;
  --ink: #f3f4f6;
  --muted: #9aa0aa;
  --line: #23232c;
  --soft: #1a1a22;
  --navy: #0d0d11;
  --accent: #d8ff00;
  --red: #d8ff00;
  --shadow: 0 1px 2px rgba(0,0,0,.6);
}
body.brand-sgcup {
  --navy: #063d2e;
  --navy-deep: #04291f;
  --accent: #00b36b;
  --red: #00b36b;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #c9d3e4;
  font-size: 12.5px;
  letter-spacing: .04em;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.topbar-label { text-transform: uppercase; font-weight: 500; }
.brand-switch { display: flex; gap: 4px; }
.brand-switch a {
  padding: 4px 10px; border-radius: 999px; color: #c9d3e4; font-weight: 500;
}
.brand-switch a:hover { background: rgba(255,255,255,.08); color: #fff; }
.brand-switch a.on { background: var(--accent); color: #fff; }
body.brand-spl .brand-switch a.on { color: #000; }

/* ---------- masthead ---------- */
.masthead {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
body.brand-spl .masthead { background: #0b0b0f; }
.masthead-inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; }
body.brand-spl .logo-img { height: 46px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 20px; letter-spacing: .02em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-family: var(--display); font-size: 22px; color: var(--navy); letter-spacing: .03em; }
.logo-text em { font-style: normal; font-family: var(--display); font-size: 14px; letter-spacing: .34em; color: var(--accent); }

.mainnav { display: flex; gap: 4px; flex: 1; }
.mainnav a {
  padding: 8px 12px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: .02em;
  color: var(--ink);
  border-radius: 8px;
  white-space: nowrap;
}
.mainnav a:hover { color: var(--accent); background: var(--soft); }
.mainnav a.on { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

.searchbox { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.searchbox input {
  border: 0; background: transparent; padding: 9px 14px; width: 168px;
  font-family: inherit; font-size: 14px; color: var(--ink); outline: none;
}
.searchbox button { border: 0; background: transparent; color: var(--muted); padding: 8px 12px 8px 4px; display: grid; place-items: center; }
.searchbox button:hover { color: var(--accent); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- page head ---------- */
.page-head {
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 46px 0 40px;
}
.page-head.spl { background: radial-gradient(1000px 300px at 80% -20%, #2b3300 0%, #0b0b0f 60%); }
.page-head.sgcup { background: linear-gradient(115deg, #063d2e, #04291f); }
.page-head.spl h1, .page-head.spl .page-sub { color: #fff; }
.page-head h1 { font-size: 46px; text-transform: uppercase; letter-spacing: .02em; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 600;
  color: var(--accent); margin-bottom: 8px;
}
.page-head .eyebrow { color: #ffd6d3; }
.page-head.spl .eyebrow { color: #d8ff00; }
.page-sub { color: rgba(255,255,255,.75); margin-top: 6px; font-size: 15px; }

/* ---------- portal ---------- */
.portal-hero {
  background: radial-gradient(1200px 500px at 70% -10%, #1c4a94 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.portal-hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 70%);
  pointer-events: none;
}
.portal-hero h1 { font-size: 64px; line-height: .95; text-transform: uppercase; max-width: 760px; }
.portal-hero .lede { color: rgba(255,255,255,.78); max-width: 620px; margin: 18px 0 28px; font-size: 17px; }
.hero-search { display: flex; max-width: 560px; background: #fff; border-radius: 999px; padding: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-search input { flex: 1; border: 0; outline: none; padding: 12px 18px; font-family: inherit; font-size: 15px; background: transparent; border-radius: 999px; color: #101828; }
.hero-search button { border: 0; border-radius: 999px; padding: 0 26px; background: var(--red); color: #fff; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.hero-search button:hover { filter: brightness(1.08); }

.brand-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -46px; position: relative; z-index: 2; }
.brand-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease;
  border-top: 4px solid var(--navy);
}
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16,24,40,.12); }
.brand-card.spl { border-top-color: #0b0b0f; background: #0b0b0f; color: #fff; }
.brand-card.sgcup { border-top-color: #00b36b; }
.bc-kicker { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand-card.spl .bc-kicker { color: #d8ff00; }
.brand-card h2 { font-size: 30px; text-transform: uppercase; }
.brand-card p { color: var(--muted); font-size: 14.5px; }
.brand-card.spl p { color: #9aa0aa; }
.bc-stats { display: flex; gap: 18px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.bc-stats strong { display: block; font-family: var(--display); font-size: 24px; color: var(--ink); }
.brand-card.spl .bc-stats strong { color: #fff; }
.bc-cta { margin-top: auto; font-weight: 600; font-size: 14px; color: var(--accent); }

.section { padding: 52px 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.section-head h2 { font-size: 30px; text-transform: uppercase; }
.link-more { font-size: 13.5px; font-weight: 600; color: var(--accent); letter-spacing: .03em; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: rgba(255,255,255,.5); font-family: var(--display); font-size: 40px; letter-spacing: .08em;
}
body.brand-spl .card-fallback { background: linear-gradient(135deg, #1a1a22, #0b0b0f); color: #d8ff00; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.pill {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px;
}
body.brand-spl .pill { color: #000; }
.pill.ghost { background: transparent; color: var(--accent); border: 1px solid currentColor; }
.card h3 { font-size: 18.5px; line-height: 1.3; font-weight: 600; font-family: var(--body); }
.card p { color: var(--muted); font-size: 13.8px; }
.card-link { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- brand hero ---------- */
.brand-hero { position: relative; color: #fff; padding: 74px 0 62px; overflow: hidden; background: var(--navy); }
.brand-hero .hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .28; filter: saturate(.9);
}
.brand-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,28,63,.94) 0%, rgba(7,28,63,.6) 55%, rgba(7,28,63,.2) 100%);
}
.brand-hero.spl { background: #000; }
.brand-hero.spl::after { background: linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.75) 100%); }
.brand-hero.spl .eyebrow { color: #d8ff00; }
.brand-hero.sgcup { background: #063d2e; }
.brand-hero.sgcup::after { background: linear-gradient(90deg, rgba(4,41,31,.95), rgba(4,41,31,.55)); }
.brand-hero.sgcup .eyebrow { color: #7ef0b5; }
.hero-inner { position: relative; z-index: 2; }
.brand-hero h1 { font-size: 60px; line-height: .94; text-transform: uppercase; max-width: 760px; }
.brand-hero .lede { color: rgba(255,255,255,.8); max-width: 560px; margin-top: 14px; font-size: 16.5px; }

.alert-band { background: #fff3cd; color: #7a5b00; font-size: 14px; text-align: center; padding: 9px 16px; border-bottom: 1px solid #ffe08a; }
body.brand-sgcup .alert-band { background: #103b2d; color: #a8f0cd; border-color: #1c5c46; }
.tag-demo { font-family: var(--body); font-size: 10px; background: #ffe08a; color: #7a5b00; border-radius: 4px; padding: 2px 6px; vertical-align: middle; letter-spacing: .06em; }

/* ---------- featured layout ---------- */
.featured-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
.lead-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lead-media { aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; }
.lead-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.lead-body h2 { font-size: 34px; text-transform: uppercase; line-height: 1.02; }
.lead-body p { color: var(--muted); font-size: 14.5px; }
.lead-body time { font-size: 12.5px; color: var(--muted); }
.side-list { display: flex; flex-direction: column; gap: 14px; }
.mini-story { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.mini-story:hover { border-color: var(--accent); }
.ms-media { width: 96px; height: 82px; border-radius: 8px; overflow: hidden; background: var(--soft); flex-shrink: 0; }
.ms-media img { width: 100%; height: 100%; object-fit: cover; }
.ms-body { display: flex; flex-direction: column; gap: 4px; }
.ms-body h3 { font-size: 15px; font-weight: 600; line-height: 1.28; }
.ms-body time { font-size: 12px; color: var(--muted); }

/* ---------- fixtures ---------- */
.fixture-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.fixture-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.fixture-card:hover { border-color: var(--accent); }
.fixture-card .mw { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.fx-teams { display: flex; flex-direction: column; gap: 8px; }
.fx-team { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.fx-team img { width: 24px; height: 24px; object-fit: contain; }
.fx-vs { font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.fx-when { font-size: 12.5px; color: var(--muted); }
.fx-venue { font-size: 12px; color: var(--muted); }

.mw-block { margin-bottom: 30px; }
.mw-title { font-family: var(--display); font-size: 22px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; letter-spacing: .04em; }
.match-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.match-row {
  display: grid; grid-template-columns: 130px 1fr 84px 1fr 150px; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.match-row:last-child { border-bottom: 0; }
.match-row:hover { background: var(--soft); }
.mr-date { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
.mr-date strong { color: var(--ink); font-size: 13px; }
.mr-team { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mr-team.home { justify-content: flex-end; text-align: right; }
.mr-team img { width: 26px; height: 26px; object-fit: contain; }
.mr-mid { text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.mr-mid .vs { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.mr-mid.score span { font-family: var(--display); font-size: 24px; }
.mr-mid.score span.win { color: var(--accent); }
.mr-mid.score em { font-style: normal; color: var(--muted); }
.mr-venue { font-size: 12.5px; color: var(--muted); text-align: right; }

/* ---------- panels / tables ---------- */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.panel-head h2 { font-size: 24px; text-transform: uppercase; }
.panel-head a { font-size: 12.5px; font-weight: 600; color: var(--accent); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: center; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--line);
}
.table th a { color: inherit; }
.table td { text-align: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table .tl { text-align: left; }
.table tbody tr:hover { background: var(--soft); }
.table tr.top td:first-child { color: var(--accent); font-weight: 700; }
.table .hot { color: var(--accent); font-weight: 700; }
.table .muted { color: var(--muted); font-size: 12.5px; }

.scorer-list { display: flex; flex-direction: column; }
.scorer-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.scorer-list li:last-child { border-bottom: 0; }
.rank { font-family: var(--display); font-size: 20px; color: var(--muted); width: 22px; }
.sc-info { display: flex; flex-direction: column; flex: 1; line-height: 1.25; }
.sc-info strong { font-size: 14.5px; }
.sc-info span { font-size: 12px; color: var(--muted); }
.sc-goals { font-family: var(--display); font-size: 24px; color: var(--accent); }
.sc-goals em { font-style: normal; font-size: 11px; font-family: var(--body); color: var(--muted); margin-left: 2px; }

.explore-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.explore-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.explore-card:hover { border-left-color: var(--accent); }
.ec-kicker { font-size: 10.5px; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.explore-card h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.ec-cta { margin-top: auto; font-size: 12.5px; color: var(--accent); font-weight: 600; }

/* ---------- filters / pagination ---------- */
.filters { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-weight: 500;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
body.brand-spl .chip.on { color: #000; }
.year-filter label, .team-filter label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
select {
  font-family: inherit; font-size: 13.5px; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 34px; flex-wrap: wrap; }
.pg {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 14px; padding: 0 10px;
}
.pg:hover { border-color: var(--accent); color: var(--accent); }
.pg.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
body.brand-spl .pg.on { color: #000; }
.pg.disabled { opacity: .35; }
.pg.dots { border: 0; background: transparent; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }
.data-note { background: var(--soft); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }

/* ---------- article ---------- */
.article { padding: 34px 0 10px; }
.article-wrap { max-width: 860px; }
.breadcrumb { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.article-head h1 { font-size: 46px; line-height: 1.02; text-transform: uppercase; margin: 10px 0 14px; }
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.article-meta .dot { opacity: .5; }
.article-meta .source { color: var(--accent); font-weight: 500; }
.article-hero { margin: 26px 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.article-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.article-body { font-size: 17px; line-height: 1.75; }
.article-body p { margin: 0 0 1.1em; }
.article-body h2, .article-body h3 { font-family: var(--body); font-weight: 600; margin: 1.4em 0 .5em; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.article-body figure { margin: 18px 0; }
.article-body figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { list-style: disc; padding-left: 24px; margin: 0 0 1.1em; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 4px 0; }
.article-body blockquote { margin: 1.2em 0; padding: 10px 18px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 8px 8px 0; }
.article-body iframe { max-width: 100%; border-radius: 8px; aspect-ratio: 16/9; width: 100%; height: auto; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 1em 0; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 8px 10px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 10px; }
.tag { font-size: 12px; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 4px 10px; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin: 34px 0 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.an { display: flex; flex-direction: column; gap: 4px; max-width: 46%; }
.an span { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .04em; }
.an strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.an.next { text-align: right; margin-left: auto; }
.static-page-body { max-width: 860px; font-size: 16.5px; line-height: 1.75; }
.static-page-body img { max-width: 100%; height: auto; }
.static-page-body h2, .static-page-body h3 { margin: 1.3em 0 .5em; font-family: var(--body); font-weight: 600; }
.static-page-body p { margin: 0 0 1em; }
.static-page-body a { color: var(--accent); text-decoration: underline; }
.static-page-body ul { list-style: disc; padding-left: 24px; margin-bottom: 1em; }
.static-page-body table { width: 100%; border-collapse: collapse; }
.static-page-body td, .static-page-body th { border: 1px solid var(--line); padding: 8px 10px; }

/* ---------- teams ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.team-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.team-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.tc-logo { width: 84px; height: 84px; display: grid; place-items: center; }
.tc-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tc-logo span { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 22px; }
.team-card h3 { font-size: 16px; font-weight: 600; }
.tc-cta { font-size: 12px; color: var(--accent); font-weight: 600; }
.team-hero { background: linear-gradient(115deg, var(--navy), var(--navy-deep)); color: #fff; padding: 48px 0; }
.team-hero.spl { background: #0b0b0f; }
.team-hero-inner { display: flex; align-items: center; gap: 28px; }
.th-logo { width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; flex-shrink: 0; }
.th-logo img { max-width: 80px; max-height: 80px; object-fit: contain; }
.th-logo span { font-family: var(--display); font-size: 34px; color: #fff; }
.team-hero h1 { font-size: 46px; text-transform: uppercase; }
.fixture-list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.fixture-list li:last-child { border-bottom: 0; }
.fl-date { width: 88px; color: var(--muted); font-size: 12px; }
.fl-teams { flex: 1; }
.fl-teams em { font-style: normal; color: var(--muted); font-size: 11px; }
.fl-score { font-weight: 600; color: var(--accent); }

/* ---------- search ---------- */
.search-page-form { display: flex; gap: 10px; margin-bottom: 30px; max-width: 620px; }
.search-page-form input {
  flex: 1; padding: 13px 18px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 15px; background: var(--card); color: var(--ink); outline: none;
}
.search-page-form input:focus { border-color: var(--accent); }
.search-page-form button { border: 0; border-radius: 10px; padding: 0 26px; background: var(--accent); color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
body.brand-spl .search-page-form button { color: #000; }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: #aab6c9; margin-top: 40px; }
body.brand-spl .footer { background: #060609; color: #9aa0aa; border-top: 1px solid #1c1c22; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1.1fr; gap: 40px; padding-top: 48px; padding-bottom: 36px; }
.footer-logo { height: 46px; margin-bottom: 14px; }
.footer-note { font-size: 14px; line-height: 1.6; }
.footer-fine { font-size: 11.5px; color: #6b7a92; margin-top: 12px; line-height: 1.6; }
.footer-col h4 { color: #fff; font-family: var(--display); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.footer-col h4.mt { margin-top: 22px; }
.footer-col ul li { margin: 6px 0; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.mini-form .row { display: flex; gap: 8px; }
.mini-form input, .mini-form textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; padding: 9px 12px; color: #fff; font-family: inherit; font-size: 13.5px; outline: none; margin-bottom: 8px;
}
.mini-form input:focus, .mini-form textarea:focus { border-color: var(--accent); }
.mini-form button {
  border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600;
  padding: 9px 16px; font-size: 13px; letter-spacing: .03em; height: 39px;
}
body.brand-spl .mini-form button { color: #000; }
.form-msg { font-size: 12px; min-height: 16px; margin-top: 2px; }
.form-msg.ok { color: #6ee7a8; }
.form-msg.err { color: #ff9b94; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 26px;
  border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #6b7a92; flex-wrap: wrap;
}
.footer-bottom a { color: #aab6c9; }

/* ---------- misc ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-strip > div { background: var(--card); padding: 22px 18px; text-align: center; }
.stat-strip strong { display: block; font-family: var(--display); font-size: 36px; color: var(--accent); line-height: 1; }
.stat-strip span { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.notfound { padding: 90px 24px; max-width: 720px; }
.notfound h1 { font-size: 48px; text-transform: uppercase; margin: 8px 0 14px; }
.notfound p { color: var(--muted); }
.nf-actions { display: flex; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; padding: 10px 22px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; }
body.brand-spl .btn { color: #000; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .mainnav { gap: 0; }
  .mainnav a { padding: 8px 8px; font-size: 13.5px; }
  .searchbox input { width: 120px; }
  .featured-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-hero h1 { font-size: 50px; }
  .brand-hero h1 { font-size: 48px; }
}
@media (max-width: 940px) {
  .mainnav { display: none; }
@media (max-width: 860px) {
  .brand-cards, .grid-3 { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .match-row { grid-template-columns: 92px 1fr 70px 1fr; }
  .mr-venue { display: none; }
}
@media (max-width: 640px) {
  .masthead-inner { height: 64px; gap: 12px; }
  .searchbox { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-open .mainnav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--card); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; gap: 2px;
  }
  .brand-cards, .grid-3, .explore-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .section { padding: 36px 18px; }
  .portal-hero { padding: 52px 0 46px; }
  .portal-hero h1 { font-size: 38px; }
  .brand-hero h1, .page-head h1 { font-size: 36px; }
  .article-head h1 { font-size: 32px; }
  .match-row { grid-template-columns: 1fr; gap: 6px; text-align: left; }
  .mr-team.home, .mr-team.away { justify-content: flex-start; text-align: left; }
  .match-row .mr-date { flex-direction: row; gap: 8px; }
  .footer-grid { gap: 24px; }
}
