/* ScoreRaid web. Tokens from brand/guidelines/tokens.json. Night by default, Day via prefers-color-scheme. */
/* Three font files at most on any page: Barlow Condensed 700, Plus Jakarta Sans 400 and 700, subset to Latin. The
   fallback faces are metric-matched to Arial / Arial Narrow (size-adjust and ascent/descent overrides, computed from
   the font files with fontTools), so text does not move when the web font arrives (CLS). */
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/BarlowCondensed-Bold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/PlusJakartaSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/PlusJakartaSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Jakarta Fallback"; font-weight: 400; src: local("Arial"), local("ArialMT"), local("Roboto");
  size-adjust: 105.8%; ascent-override: 98.1%; descent-override: 21%; line-gap-override: 0%; }
@font-face { font-family: "Jakarta Fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold");
  size-adjust: 100.9%; ascent-override: 102.9%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Barlow Fallback"; font-weight: 700; src: local("Arial Narrow Bold"), local("ArialNarrow-Bold"), local("Roboto Condensed Bold"), local("RobotoCondensed-Bold");
  size-adjust: 92.4%; ascent-override: 108.3%; descent-override: 21.7%; line-gap-override: 0%; }

:root {
  color-scheme: dark light;
  --bg: #0a110e; --panel: #111a16; --panel-2: #17221d; --line: #22312a; --text: #eaf1ec; --muted: #8da096;
  --pitch: #2dbe6c; --pitch-text: #2dbe6c; --gold: #f2b53a; --gold-text: #f2b53a; --red: #e5484d;
  --away: #4c8df6; --draw: #66766e; --ad-fill: #1a2420; --on-accent: #0a110e; --chalk: #eaf1ec; --night: #0a110e;
  --card-yellow: #f4cf3c;
  --fd: "Barlow Condensed", "Barlow Fallback", "Arial Narrow", system-ui, sans-serif;
  --fb: "Plus Jakarta Sans", "Jakarta Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pitch-mark: #2dbe6c;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7f5; --panel: #ffffff; --panel-2: #e7eeea; --line: #d2ddd7; --text: #0a110e; --muted: #55665d;
    --pitch-text: #12783f; --gold-text: #8a5a00; --red: #c42b31; --away: #2f6fd8; --ad-fill: #e3eae6;
    --card-yellow: #e2b400; --pitch-mark: #12783f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--fb); font-size: 14px; line-height: 20px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.num { font-family: var(--fd); font-variant-numeric: tabular-nums; line-height: 1; }
.label { font-family: var(--fd); font-weight: 700; text-transform: uppercase; font-size: 16px; line-height: 16px; letter-spacing: 1.2px; }
.caption { font-size: 12px; line-height: 17px; color: var(--muted); }
.skip { position: absolute; left: -9999px; padding: 12px 16px; }
.skip:focus { left: 16px; top: 8px; background: var(--panel); padding: 8px; z-index: 10; }

/* sample banner */
.sample { background: var(--text); color: var(--bg); text-align: center; font-family: var(--fd); font-weight: 700;
  letter-spacing: 1px; font-size: 15px; line-height: 18px; padding: 7px 16px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: block; line-height: 0; }
.brand img { width: 150px; height: auto; }
.lang { font-family: var(--fd); font-weight: 700; letter-spacing: 1px; font-size: 15px; padding: 0 12px;
  min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); }
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; gap: 4px; }
.nav a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 2px;
  font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; }
.nav a.on { color: var(--text); border-bottom-color: var(--pitch-mark); }
.nav a:hover { text-decoration: none; color: var(--text); }

main { padding: 16px 0 24px; min-width: 0; }
.layout.wrap { padding-left: 16px; padding-right: 16px; }
.stack > * + * { margin-top: 10px; }
.page-title { font-family: var(--fd); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 26px; letter-spacing: 0.6px; }
.page-sub { margin-top: 6px; }
.crumbs { font-size: 12px; line-height: 17px; color: var(--muted); margin: -8px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 48px; }
.crumbs span[aria-hidden] { opacity: .6; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.sec-head a { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.sec-head { align-items: center; }

/* panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel h2.label { margin-bottom: 12px; }

/* competition block and match rows (brand component MatchRow) */
.block-head { display: flex; align-items: center; gap: 10px; padding: 11px; border-bottom: 1px solid var(--line); }
.comp { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); font-family: var(--fd); font-weight: 700; font-size: 11px; flex: none; }
.block-head b { display: block; font-weight: 700; }
.block-head small { font-size: 12px; line-height: 17px; color: var(--muted); }
.block-head a.more { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; display: inline-flex;
  align-items: center; min-height: 48px; padding: 0 4px; }
.row { display: flex; align-items: center; min-height: 64px; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row:hover { text-decoration: none; background: var(--panel-2); }
.st { width: 52px; flex: none; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); line-height: 15px; }
.st small { display: block; font-size: 11px; font-weight: 400; }
.st.live { color: var(--red); }
.st.off { font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.teams { flex: 1; min-width: 0; margin-left: 8px; display: grid; gap: 4px; }
.team { display: flex; align-items: center; gap: 8px; font-weight: 400; min-width: 0; }
.team .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team.win { font-weight: 700; }
.sc { display: grid; gap: 4px; text-align: right; font-size: 17px; font-weight: 700; min-width: 18px; }

/* crests: the club logo, or a club-colour disc with the 3-letter code */
.crest { position: relative; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center;
  flex: none; background: var(--c, var(--draw)); color: var(--ct, #fff); font-family: var(--fd); font-weight: 700; font-size: 9px;
  letter-spacing: 0; overflow: hidden; }
/* gold-like club colours: a ring, never a gold disc (it would read as a coin) */
.crest.ring { background: transparent; box-shadow: inset 0 0 0 2px var(--c); color: var(--text); }
.crest.has-logo { background: transparent; }
.crest.has-logo .code { visibility: hidden; }
.crest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.crest.lg { width: 48px; height: 48px; font-size: 16px; }
.crest.md { width: 26px; height: 26px; font-size: 10px; }

/* pills */
.pill { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 11px; line-height: 15px; font-weight: 700;
  letter-spacing: .4px; text-transform: uppercase; background: var(--panel-2); color: var(--muted); }
/* LIVE: red text on the panel (4.5:1) instead of chalk on a red fill (3.4:1) */
.pill.live { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }

/* match hero */
.hero { text-align: center; }
.hero .meta { font-size: 12px; line-height: 17px; color: var(--muted); }
.hero .sides { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 14px 0 10px; }
.hero .side { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.hero .side a, .hero .side > span:not(.crest) { font-weight: 700; font-size: 15px; line-height: 19px; overflow-wrap: break-word; }
.hero .score { font-family: var(--fd); font-weight: 700; font-size: 40px; line-height: 40px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero .ko { font-family: var(--fd); font-weight: 700; font-size: 30px; line-height: 32px; }
.hero .when { margin-top: 2px; }

/* timeline */
.ev { display: grid; grid-template-columns: 40px 18px 1fr; gap: 8px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev .min { font-family: var(--fd); font-weight: 700; font-size: 15px; line-height: 20px; text-align: right; color: var(--muted); }
.ev .ico { width: 18px; height: 20px; display: grid; place-items: center; }
.ev .who b { font-weight: 700; }
.ev.away { grid-template-columns: 1fr 18px 40px; }
.ev.away .min { order: 3; text-align: left; }
.ev.away .ico { order: 2; }
.ev.away .who { order: 1; text-align: right; }
.ev .tag { font-size: 12px; color: var(--muted); }
.card { width: 10px; height: 14px; border-radius: 2px; display: inline-block; }
.card.y { background: var(--card-yellow); box-shadow: inset 0 0 0 1px var(--gold-text); }
.card.r { background: var(--red); }
.ball { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--pitch-mark); display: inline-block; }
.ball.og { border-color: var(--muted); }
.ball.miss { border-style: dashed; border-color: var(--muted); }
details summary { cursor: pointer; font-size: 13px; font-weight: 400; color: var(--muted); padding-top: 10px; }

/* line-ups */
.lu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 479px) { .lu.squad { grid-template-columns: minmax(0, 1fr); } .lu.squad ol + ol { margin-top: 0; } }
.lu h3 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.lu ol { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 20px; }
.lu li { display: flex; gap: 6px; min-width: 0; }
.lu li span:not(.n) { overflow-wrap: anywhere; }
.lu li .n { font-family: var(--fd); font-weight: 700; width: 20px; text-align: right; color: var(--muted); flex: none; }
.lu .sub { margin-top: 10px; }

/* stats */
.stat + .stat { margin-top: 12px; }
.stat .vals { display: flex; justify-content: space-between; font-family: var(--fd); font-weight: 700; font-size: 17px; line-height: 17px; }
.stat .vals span:nth-child(2) { font-family: var(--fb); font-weight: 400; font-size: 12px; color: var(--muted); }
.bar { display: flex; gap: 3px; height: 6px; margin-top: 6px; }
.bar i { display: block; border-radius: 3px; }
.bar .h { background: var(--pitch-mark); }
.bar .a { background: var(--away); }

/* form */
.form { display: inline-flex; gap: 3px; }
.f { width: 18px; height: 18px; border-radius: 4px; display: inline-grid; place-items: center; font-family: var(--fd); font-weight: 700; font-size: 11px; }
.f.W { background: var(--pitch); color: var(--on-accent); box-shadow: inset 0 0 0 1px var(--pitch-mark); }
.f.D { background: var(--draw); color: #fff; }
.f.L { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.form-row + .form-row { border-top: 1px solid var(--line); }

/* h2h */
.h2h { display: grid; grid-template-columns: 74px 1fr auto 1fr; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.h2h:last-child { border-bottom: 0; }
.h2h .d { color: var(--muted); font-size: 12px; }
.h2h .r { text-align: right; }
.h2h .s { font-family: var(--fd); font-weight: 700; font-size: 16px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font-size: 11px; font-weight: 400; color: var(--muted); text-align: right; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th.l, .tbl td.l { text-align: left; }
.tbl td.rk { width: 28px; text-align: center; font-family: var(--fd); font-weight: 700; font-size: 15px; color: var(--muted); border-left: 3px solid transparent; }
.tbl tr.top td.rk { border-left-color: var(--pitch-mark); }
.tbl tr.rel td.rk { border-left-color: var(--draw); }
.tbl tr.hl td { background: var(--panel-2); }
.tbl td.tm { max-width: 0; width: 100%; }
.tbl td.tm a { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tbl td.tm .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl td.pts { font-family: var(--fd); font-weight: 700; font-size: 16px; }
.tbl .wide { display: none; }
@media (min-width: 520px) { .tbl .wide { display: table-cell; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* CTA */
.cta { border-color: var(--line); }
.cta .label.raid { color: var(--gold-text); }
.cta p { margin: 8px 0 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; background: var(--pitch);
  color: var(--on-accent); font-weight: 700; font-size: 15px; line-height: 20px; padding: 0 20px; border-radius: 999px;
  border: 0; cursor: pointer; font-family: var(--fb); }
.btn.raid { background: var(--gold); color: var(--on-accent); }
.btn.danger { background: transparent; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }

/* news */
.news-item { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { text-decoration: none; }
.news-item:hover h3 { text-decoration: underline; }
.news-item .kind { font-family: var(--fd); font-weight: 700; font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.news-item h3 { font-size: 15px; line-height: 21px; font-weight: 700; margin-top: 3px; }
.news-item p { margin-top: 4px; font-size: 13px; line-height: 19px; color: var(--muted); }

/* article */
.article h1 { font-size: 24px; line-height: 31px; font-weight: 700; letter-spacing: -.2px; }
.article .dek { font-size: 16px; line-height: 24px; color: var(--muted); margin-top: 10px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; font-size: 12px; line-height: 17px; color: var(--muted); }
.byline b { color: var(--text); font-weight: 700; }
.body { margin-top: 18px; }
.body p { font-size: 16px; line-height: 27px; max-width: 35em; }
.article .dek { max-width: 35em; } .article h1 { max-width: 26em; }
.body p + p { margin-top: 14px; }
.note { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 17px; color: var(--muted); }
.mini-match { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* date strip */
.days { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.days a, .days span { font-size: 13px; font-weight: 400; }
.days a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 6px; }
.days .cur { font-family: var(--fd); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .4px; text-align: center; }


/* static pages */
.prose p, .prose li { font-size: 15px; line-height: 25px; }
.prose p + p, .prose ul { margin-top: 12px; }
.prose h2 { font-family: var(--fd); font-weight: 700; text-transform: uppercase; font-size: 18px; letter-spacing: .6px; margin: 22px 0 8px; }
.prose a { text-decoration: underline; }

footer { border-top: 1px solid var(--line); padding: 16px 0 24px; font-size: 12px; line-height: 18px; color: var(--muted); }



/* scores and stoppage-time minutes never break across lines */
.nw { white-space: nowrap; }
.more-link { display: inline-flex; align-items: center; min-height: 48px; font-size: 13px; color: var(--muted); text-decoration: underline; }
ul.links { list-style: none; margin: 0; padding: 0; }
ul.links a { display: flex; align-items: center; min-height: 48px; text-decoration: underline; border-bottom: 1px solid var(--line); }
ul.links li:last-child a { border-bottom: 0; }
.ev .who b, .lu li span { overflow-wrap: anywhere; }

/* legal pages: markdown tables stack into cards on narrow screens */
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; line-height: 21px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 12px; color: var(--muted); }
.prose h3 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
.prose ul { padding-left: 20px; }
@media (max-width: 600px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { display: none; }
  .prose tr { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 10px; }
  .prose td { border: 0; padding: 4px 0; }
  .prose td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .6px; }
}

/* account deletion form */
.delform { margin: 16px 0; display: grid; gap: 12px; }
.delform label[for] { font-weight: 700; }
.delform input[type=text] { min-height: 48px; font: 700 20px/1 var(--fd); letter-spacing: 2px; text-transform: uppercase;
  padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); width: 100%; }
.delform .check { display: flex; gap: 10px; align-items: flex-start; min-height: 48px; font-size: 14px; line-height: 20px; }
.delform .check input { width: 22px; height: 22px; margin-top: 0; flex: none; accent-color: var(--red); }
.delform .status { min-height: 20px; font-size: 14px; line-height: 20px; }
.delform .status.ok { color: var(--pitch-text); font-weight: 700; }
.delform .status.err { color: var(--red); }

/* prose page titles keep their case: the brand name is never set in capitals ("SCORERAID") */
.page-title.plain { text-transform: none; font-family: var(--fb); font-weight: 700; font-size: 24px; line-height: 30px; letter-spacing: 0; }
.h2h .s, .sc span, .hero .score, .tbl td { white-space: nowrap; }
.delform input.nick { font: 400 17px/1 var(--fb); letter-spacing: 0; text-transform: none; }
.prose ul li + li { margin-top: 8px; }

/* ---- WEB_10 workstream B: accessibility, layout, hubs, share, app ---------------------------------------- */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--pitch-text); outline-offset: 2px; border-radius: 4px; }
.row:focus-visible, .panel.flush a:focus-visible, .links a:focus-visible { outline-offset: -2px; }
.skip:focus-visible { outline-offset: 0; }

/* header tools */
.top .tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 8px;
  color: var(--muted); }
.icon-btn svg { fill: currentColor; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }

/* match H1 at title size */
.match-h1 { margin-top: 8px; font-size: 24px; line-height: 26px; }
.hero .side a { display: inline-block; padding: 3px 0; }
.hero .meta a { display: inline-block; padding: 4px 0; }
.hero .meta a { text-decoration: underline; text-underline-offset: 2px; }

/* date strip: seven chips, weekday, date, match count */
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; padding: 6px 2px;
  border-radius: 8px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.chip:hover { text-decoration: none; background: var(--panel-2); }
.chip .wd { font-size: 11px; line-height: 14px; color: var(--muted); }
.chip .dd { font-family: var(--fd); font-weight: 700; font-size: 20px; line-height: 20px; margin: 2px 0; }
.chip .nn { font-size: 11px; line-height: 13px; color: var(--muted); white-space: nowrap; }
.chip.none .dd { color: var(--muted); }
.chip.on { background: var(--panel-2); border-color: var(--pitch-mark); box-shadow: inset 0 0 0 1px var(--pitch-mark); }
.chip.off { background: transparent; border-style: dashed; }
.chip.off .dd, .chip.off .wd, .chip.off .nn { color: var(--muted); }
.empty a { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; color: var(--text); }
.empty { line-height: 22px; }

/* competition headings in lists */
.comp-name { font-size: 14px; line-height: 20px; font-weight: 700; margin: 0; }
.comp-name a { text-decoration: underline; text-underline-offset: 2px; }
.day-group + .day-group { margin-top: 10px; }
.st.date { font-weight: 700; color: var(--text); }

/* tables: whole rows of standings are 44 px tap targets */
.tbl td.tm a, .tbl td.tm .tm-in { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; }
.tbl td { padding-top: 0; padding-bottom: 0; height: 44px; }
.tbl.mini td { height: 36px; }
.legend i.z-top { background: var(--pitch-mark); }
.legend i.z-rel { background: var(--draw); }
.views .seg { display: none; }
@media (max-width: 479px) {
  .views .seg { display: inline-flex; margin-top: 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
  .views .seg label { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; font-size: 13px;
    font-weight: 700; color: var(--muted); cursor: pointer; }
  #v-table:checked ~ .seg label[for="v-table"], #v-form:checked ~ .seg label[for="v-form"] { background: var(--panel); color: var(--text);
    box-shadow: inset 0 0 0 1px var(--pitch-mark); }
  #v-table:focus-visible ~ .seg label[for="v-table"], #v-form:focus-visible ~ .seg label[for="v-form"] { outline: 2px solid var(--pitch-text); }
  .tbl.standings .fcol { display: none; }
  #v-form:checked ~ section .tbl.standings .fcol { display: table-cell; }
  #v-form:checked ~ section .tbl.standings .gd { display: none; }
}

/* league links, pills */
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pill-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); font-size: 13px; font-weight: 700; }
.pill-link:hover { text-decoration: none; background: var(--panel-2); }
.pill.raid { background: transparent; color: var(--gold-text); box-shadow: inset 0 0 0 1px var(--gold-text); margin-left: 8px; flex: none; }

/* club strip (home) and club grids (team pages, /tim/) */
.club-strip { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.club-strip a { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 92px;
  min-height: 84px; padding: 8px 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; text-align: center;
  font-size: 12px; line-height: 15px; font-weight: 700; }
.club-strip a:hover, .club-grid a:hover { text-decoration: none; background: var(--panel-2); }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.club-grid a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px; font-size: 13px; font-weight: 700; min-width: 0; }
.club-grid a span:last-child { overflow-wrap: anywhere; }

/* share: the score card and the WhatsApp button */
.share .share-card { display: block; width: 100%; height: auto; aspect-ratio: 600 / 338; border-radius: 10px;
  border: 1px solid var(--line); margin-bottom: 12px; background: var(--night); }
.btn svg { margin-right: 8px; flex: none; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.soon { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* WEB APP FIRST: the hooks into the web app, the home-screen banner and the share row. All in the page flow: nothing
   is fixed over the content or an ad slot. */
.hook { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; }
.hook .caption { flex: 1 1 180px; }
.btn.follow { gap: 8px; background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--pitch); }
.hero .hook { justify-content: center; text-align: center; }
.team-head .hook { flex-basis: 100%; }
.tebak { margin-top: 10px; }
.install { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--pitch);
  background: var(--panel); }
.install p { margin: 6px 0 12px; }
.share-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.share-links { display: contents; }
/* an element the page or webapp.js hides stays hidden, whatever its class's display (.btn, .pill-link) */
.share-more [hidden], .share-links[hidden], .install[hidden] { display: none !important; }
button.pill-link { font: inherit; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.install-how { margin-top: 12px; }
.install-how p { margin-top: 8px; }

/* article hero card */
.hero-card { margin: 16px 0 0; }
.hero-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line);
  background: var(--night); }
.note a, .src a { text-decoration: underline; text-underline-offset: 2px; color: var(--text); }
.corr { margin-top: 12px; }
.announce { margin-top: 8px; }

/* pick widget: same height before and after the script (no layout shift) */
.cta.pick { min-height: 330px; }
@media (min-width: 600px) { .cta.pick { min-height: 280px; } }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.stepper { background: var(--panel-2); border-radius: 12px; padding: 8px; text-align: center; min-width: 0; }
.stepper .nm { display: block; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper .ctl { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.stepper .step { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: 700 22px/1 var(--fb); cursor: pointer; }
.stepper .v { font-size: 34px; font-weight: 700; min-width: 28px; }
.raid-h { color: var(--gold-text); }
.raid-week .pad { padding: 10px 12px 0; }

/* lists of links */
ul.links a { justify-content: space-between; gap: 10px; }
ul.links.cols { columns: 2 160px; column-gap: 16px; }
ul.links.cols li { break-inside: avoid; }
.results li.none { padding: 14px 0; }
.search input { width: 100%; min-height: 52px; margin-top: 12px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: 400 16px/1 var(--fb); }
.search input::placeholder { color: var(--muted); }

/* team head and Timnas cards */
.team-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pos-row { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tap { display: inline-flex; align-items: center; min-height: 44px; }
.squad-card + .squad-card { margin-top: 10px; }
.squad-card .team-head { gap: 10px; }
.squad-card .team-head .label { margin: 0; }
.squad-card .team-head .label a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 2px; }
.sub-h { font-family: var(--fd); font-weight: 700; font-size: 13px; letter-spacing: 1px; color: var(--muted); margin: 14px 0 4px;
  text-transform: uppercase; }
.flush-rows { margin: 0 -14px; border-top: 1px solid var(--line); }
.flush-rows .row:last-child { border-bottom: 0; }
details.more-rows summary { padding: 12px; min-height: 44px; }

/* the app page */
.lead { font-size: 16px; line-height: 25px; margin-top: 12px; max-width: 68ch; }
.store { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 16px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.shots figcaption { margin-top: 6px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 16px; }
.app-fallback { padding-top: 16px; padding-bottom: 24px; }

/* ads (WEB_ADS): the 300x250 box is reserved, so a slot that stays empty or is blocked never moves the page */
.ad-slot { margin: 10px auto 0; width: 300px; }
.ad-label { display: block; font-size: 10px; line-height: 14px; letter-spacing: .8px; color: var(--muted); text-align: center; }
.ad-box { width: 300px; height: 250px; background: var(--ad-fill); border-radius: 8px; overflow: hidden; }
.ad-box .house { display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 100%; padding: 20px; text-align: center; }
.ad-box .house:hover { text-decoration: none; }

/* footer: popular links */
/* footer: a "Populer" heading over a two-column list of 44 px rows, then the site links (web_review_design_r2 gap 2) */
footer .foot-note { margin: 0; }
footer .foot-h { font-family: var(--fd); font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text); margin: 14px 0 2px; }
footer .foot-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
footer .foot-grid a { display: flex; align-items: center; min-height: 44px; color: var(--text); font-size: 13px; line-height: 16px; }
footer .foot-grid.small { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
footer .foot-grid.small a { min-height: 32px; font-size: 12px; color: var(--muted); }
footer .foot-copy { margin: 10px 0 0; }

/* desktop: a 680 px column and a 300 px rail from 1024 px */
.rail { display: none; }
@media (min-width: 1024px) {
  .wrap { max-width: 1028px; }
  .layout { display: grid; grid-template-columns: minmax(0, 680px) 300px; gap: 32px; align-items: start; }
  .rail { display: grid; gap: 10px; position: sticky; top: 16px; margin-top: 16px; }
  .rail .rail-h { padding: 12px 14px 4px; margin: 0; }
  .rail .tbl td.tm .nm { max-width: 180px; }
}
.rail .rail-h a { text-decoration: underline; text-underline-offset: 2px; }

/* links in body text and lists are underlined; focus never clipped by a flush panel */
.panel.flush { overflow: clip; overflow-clip-margin: 2px; }
.extras { display: grid; gap: 10px; margin-top: 18px; }
.facts { margin: 0; padding-left: 18px; }
.facts li { font-size: 14px; line-height: 22px; }
.facts li + li { margin-top: 6px; }
.pad-h { padding: 14px 14px 0; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.qs { min-width: 52px; min-height: 44px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); font: 700 17px/1 var(--fd); cursor: pointer; }
.qs:hover { border-color: var(--gold-text); }

/* round 2 (WEB_10 B) */
.hero { position: relative; }
.hero > .meta:first-child { padding: 0 48px; }
.hero-share { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 999px; color: var(--muted); }
.hero-share:hover { color: var(--text); background: var(--panel-2); }
.await-note { color: var(--muted); }
.st.await { font-size: 11px; line-height: 14px; color: var(--muted); }
.tag-raid { flex: none; margin: 0 8px; padding: 2px 6px; border-radius: 999px; font-family: var(--fd); font-weight: 700;
  font-size: 11px; line-height: 14px; letter-spacing: .6px; color: var(--gold-text); box-shadow: inset 0 0 0 1px var(--gold-text); }
.cta.pick.locked { min-height: 0; }
.steps { margin: 4px 0 12px; padding-left: 20px; font-size: 13px; line-height: 20px; color: var(--muted); }
.hsearch { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hsearch[hidden] { display: none; }
.hsearch input { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font: 400 16px/1 var(--fb); }
.hsearch input::placeholder { color: var(--muted); }
.hres:empty { display: none; }
.hres { margin-top: 6px; }
.days-list { padding-top: 0; padding-bottom: 0; }
.days-list .row-text { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px;
  border-bottom: 1px solid var(--line); }
.days-list li:last-child .row-text { border-bottom: 0; }
.prose ul.links { list-style: none; padding-left: 0; }
.day-group .comp-name a { display: inline-flex; align-items: center; min-height: 44px; }
.news-item.charts .chips-row { margin-top: 8px; }

/* round 3: a separator stays with the crumb after it, so no line ends in "/" */
.crumbs .ci { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.crumbs .sep { opacity: .6; }
.rail .tbl tr.hl td { background: var(--panel-2); font-weight: 700; }

.tbl tr.gap td { text-align: center; color: var(--muted); height: 28px; letter-spacing: 2px; }
.results-list a { justify-content: flex-start; gap: 6px; }
/* share landing (gamification v1): the inviter line, "Pilih sisi", the Laga Rawan line */
.cta.pick [hidden] { display: none !important; }
.land { margin: 0 0 8px; }
.land-head { margin: 2px 0; font-weight: 700; font-size: 1.05rem; }
.sides { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.sides .caption { width: 100%; }
.qs.side[aria-pressed="true"] { border-color: var(--gold-text); color: var(--gold-text); font-weight: 700; }
.rawan { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); font-size: .9rem; }
