/*
 * SHFstats Magazine v2 "Matchday" (docs/magazine/design-direction.md, contract v2, awaiting operator approval).
 * Bands: full-bleed Nattblå sections that carry covers and data graphics in both themes (broadcast grammar).
 * Club colours come from the team colour pipeline (kit > logo > neutral), adjusted for the dark band; crests sit on
 * light tiles and are never recoloured. Signal marks the active section and the "Siffran" figure.
 */

/* ---------- bands ---------- */
.band {
    --surface-page: #0E1B2C; --surface-card: #16263A; --surface-head: #132236; --surface-hover: #1B2D44; --surface-selected: #1F3858;
    --text-primary: #F5F6F8; --text-secondary: #8A9AAE; --text-strong: #FFFFFF;
    --border-subtle: #24364D; --border-rule: #1E2F44; --border-strong: #35506F;
    --link: #6FA8E8; --data: #6FA8E8; --focus: #6FA8E8; --chart-grid: #24364D;
    --state-warn-text: #EDC277; --state-info-bg: #132538; --state-info-text: #C9D5E3;
    color-scheme: dark; background: #0E1B2C; color: var(--text-primary);
    margin: 40px 0 0; border-block: 1px solid #24364D;
}
:root[data-theme="dark"] .band, :root:not([data-theme="light"]) .band { background: #0A1522; }
:root[data-theme="light"] .band { background: #0E1B2C; }
.band + .band { margin-top: 0; border-top: 0; }
.band-in { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 48px var(--gutter) 52px; }
.band-lead { margin-top: 20px; }
.band-h { margin: 0 0 18px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--text-primary); padding-top: 10px; border-top: 2px solid var(--text-primary); }
.band a { color: inherit; }
.band .legend, .band .cs-legend { color: #8A9AAE; }
@media (max-width: 699px) { .band-in { padding: 32px var(--gutter) 36px; } }

/* ---------- covers ---------- */
.cover { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; } }
@media (max-width: 1023px) { .cover-visual { order: -1; } }
.cover-meta { margin: 0 0 14px; font-size: 14px; color: #8A9AAE; }
.cover-meta a { color: #F5F6F8; text-decoration: none; font-weight: 500; }
.cover-meta a:hover { text-decoration: underline; }
.cover-h { margin: 0; font-size: clamp(36px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.035em; max-width: 16ch; }
.cover-lead .cover-h { font-size: clamp(36px, 6vw, 84px); }
.cover-h a { text-decoration: none; }
.cover-h a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.cover-dek { margin: 20px 0 0; max-width: 44ch; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.42; font-weight: 500; color: #C3CEDB; }
.cover-more { display: none; }
.draft-inline { color: var(--state-warn-text); font-weight: 500; }

/* ---------- match cover: the club-colour result graphic ---------- */
.mc {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
    gap: 8px; min-height: 360px; padding: 32px 18px; border-radius: var(--radius-3); overflow: hidden; background: #0A1522;
    isolation: isolate;
}
.mc-slab { position: absolute; inset: 0; z-index: -1; }
.mc-slab-h { background: var(--home); clip-path: polygon(0 0, 47% 0, 39% 100%, 0 100%); }
.mc-slab-a { background: var(--away); clip-path: polygon(61% 0, 100% 0, 100% 100%, 53% 100%); }
.mc-side { display: grid; justify-items: center; gap: 14px; text-align: center; min-width: 0; }
.mc-name { font-size: clamp(14px, 1.5vw, 18px); font-weight: 600; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; max-width: 16ch; }
.mc-name { background: #0E1B2C; color: #F5F6F8; padding: 3px 8px; border-radius: var(--radius-1); }   /* a name bar: contrast never depends on the club colour */
.mc-centre { display: grid; justify-items: center; gap: 10px; padding: 0 6px; }
.mc-score { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; color: #FFFFFF; }
.mc-n { font-size: clamp(56px, 6.6vw, 108px); font-weight: 600; letter-spacing: -0.05em; line-height: .9; }
.mc-kick { font-size: clamp(44px, 5vw, 72px); }
.mc-dash { font-size: clamp(40px, 5vw, 72px); color: #8A9AAE; font-weight: 400; }
.won-home .mc-n-a, .won-away .mc-n-h { color: #8A9AAE; }
.mc-cap { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #C3CEDB; white-space: nowrap; }
.mc-context { grid-column: 1 / -1; justify-self: center; max-width: 100%; margin: 8px 0 0; padding: 12px 4px 0; border-top: 1px solid #35506F; color: #C3CEDB; font-size: 13px; line-height: 1.4; text-align: center; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.mc-context span[aria-hidden="true"] { padding-inline: 5px; color: #8A9AAE; }
.mc-tile { min-height: 168px; padding: 18px 10px; gap: 4px; }
.mc-tile .mc-n { font-size: 46px; }
.mc-tile .mc-dash { font-size: 30px; }
.mc-tile .mc-name { font-size: 12px; max-width: 13ch; padding: 2px 6px; }
.mc-tile .mc-cap { display: none; }
.mc-tile .mc-side { gap: 8px; }
.mc-tile .mc-context { margin-top: 4px; padding-top: 6px; font-size: 12px; }
@media (max-width: 559px) {
    .mc { min-height: 260px; padding: 24px 8px; }
    .mc .ct { --ct: 64px !important; }
    .mc-n { font-size: 52px; }
    .mc-dash { font-size: 32px; }
    .mc-cap { white-space: normal; text-align: center; max-width: 11ch; font-size: 11px; letter-spacing: 0.06em; }
    .mc-name { font-size: 13px; }
    .mc-context { font-size: 12px; padding-top: 8px; }
    .mc-tile .ct { --ct: 48px !important; }
    .mc-tile .mc-n { font-size: 40px; }
}

/* crest tile: crests on a light plate, never on the club colour, never recoloured */
.ct {
    display: inline-grid; place-items: center; width: var(--ct); height: var(--ct); flex: none;
    background: #FFFFFF; border-radius: var(--radius-3); padding: calc(var(--ct) * .1);
}
.ct img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ct-none { background: #16263A; color: #8A9AAE; font-size: calc(var(--ct) * .3); font-weight: 500; border: 1px solid #24364D; }

/* ---------- goal progression v2 ---------- */
.band-data .band-h { margin-bottom: 14px; }
.pv { margin: 0; }
.pv-key { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.pv-key span { display: inline-flex; align-items: center; gap: 10px; }
.pv-key .ct { padding: 3px; }
.pv-key-h::after, .pv-key-a::after { content: ""; width: 26px; height: 10px; border-radius: 2px; }
.pv-key-h::after { background: var(--home); }
.pv-key-a::after { background: var(--away); }
.pv-stage { position: relative; }
.pv-svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; cursor: crosshair; }
.pv-svg:focus-visible { outline: 2px solid #6FA8E8; outline-offset: 4px; border-radius: 2px; }
.pv-grid { stroke: #1E2F44; stroke-width: 1; vector-effect: non-scaling-stroke; }
.pv-zero { stroke: #8A9AAE; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pv-half { stroke: #35506F; stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.pv-l, .pv-t { font: 500 13px var(--font-sans); fill: #8A9AAE; font-variant-numeric: tabular-nums; }
.pv-l { text-anchor: end; }
.pv-t { text-anchor: middle; }
.pv-ht { text-anchor: start; }
.pv-area-h { fill: var(--home); }
.pv-area-a { fill: var(--away); }
.pv-line { fill: none; stroke: #F5F6F8; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pv-dot { stroke: #F5F6F8; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pv-dot.dh { fill: #F5F6F8; }
.pv-dot.da { fill: #0E1B2C; }
.pv-run path { fill: none; stroke: #F5F6F8; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.pv-run text { font: 600 13px var(--font-sans); fill: #F5F6F8; }
.pv-cursor { opacity: 0; pointer-events: none; transition: opacity 120ms ease-out; }
.pv-cursor line { stroke: #F5F6F8; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.pv-cursor circle { fill: none; stroke: #E3A23B; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.pv.scrub .pv-cursor { opacity: 1; }
.pv-tip {
    position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none; opacity: 0;
    padding: 8px 12px; background: #16263A; border: 1px solid #35506F; border-radius: var(--radius-2);
    font-size: 14px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, -110%);
    transition: opacity 120ms ease-out;
}
.pv.scrub .pv-tip { opacity: 1; }
.pv-tip b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pv .legend { margin-top: 14px; max-width: 70ch; }
/* the one authored chart moment: the lead areas and line draw in from kick-off when the chart first enters view */
@media (prefers-reduced-motion: no-preference) {
    .js .pv.armed .pv-draw { clip-path: inset(0 100% 0 0); }
    .js .pv.armed.in .pv-draw { clip-path: inset(0 0 0 0); transition: clip-path 1400ms cubic-bezier(0.23, 1, 0.32, 1); }
}

/* scorers */
.scorers { margin-top: 48px; }
.sc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.sc { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: end; gap: 14px; padding-top: 10px; border-top: 1px solid var(--border-strong); }
.sc-pic { width: 88px; height: 104px; position: relative; overflow: hidden; border-radius: var(--radius-3); background: var(--club); display: grid; place-items: center; }
.sc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.sc-img.sc-cutout { object-fit: contain; object-position: 50% 100%; top: 8px; }
.sc-txt { display: grid; gap: 2px; padding-bottom: 4px; }
.sc-n { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-name { font-weight: 600; font-size: 16px; line-height: 1.3; }
.sc-team { font-size: 13px; color: var(--text-secondary); }

/* ---------- Siffran ---------- */
.siffran { display: grid; gap: 6px; }
.sf-fig { margin: 0; display: flex; align-items: baseline; gap: 14px; line-height: .82; }
.sf-n { font-size: clamp(120px, 19vw, 260px); font-weight: 600; letter-spacing: -0.06em; color: #E3A23B; font-variant-numeric: tabular-nums; }
.sf-u { font-size: clamp(28px, 3.6vw, 52px); font-weight: 600; letter-spacing: -0.03em; color: #F5F6F8; }
.sf-what { margin: 10px 0 0; font-size: clamp(17px, 1.8vw, 21px); font-weight: 500; color: #C3CEDB; max-width: 34ch; }
.siffran-tile .sf-n { font-size: 84px; }
.siffran-tile .sf-u { font-size: 22px; }
.siffran-tile .sf-what { font-size: 13px; }
.sf-match { margin-top: 28px; max-width: 520px; }
.sf-band { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .sf-band { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; } }
.sf-title { margin: 0; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -0.03em; }
.sf-title a { text-decoration: none; }
.sf-title a:hover { text-decoration: underline; }
.sf-dek { margin: 14px 0 12px; font-size: 18px; color: #C3CEDB; max-width: 44ch; }
.cs { margin-top: 26px; max-width: 560px; }
.cs-track { position: relative; height: 10px; background: #1E2F44; border-radius: var(--radius-1); margin-top: 34px; }
.cs-band { position: absolute; top: 0; bottom: 0; background: #35506F; border-radius: var(--radius-1); }
.cs-mean, .cs-val { position: absolute; top: -8px; bottom: -8px; width: 2px; background: #F5F6F8; transform: translateX(-1px); }
.cs-val { width: 4px; background: #E3A23B; transform: translateX(-2px); }
.cs-mean span, .cs-val span { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-val span { color: #E3A23B; bottom: auto; top: calc(100% + 4px); }
.cs-legend { margin: 34px 0 0; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.cs-sw { width: 22px; height: 10px; background: #35506F; border-radius: var(--radius-1); }

/* ---------- cups and beach ---------- */
.cupc { display: grid; gap: 22px; }
.cupc-head { display: flex; align-items: center; gap: 22px; }
.cupc-who { display: grid; gap: 4px; min-width: 0; }
.cupc-event { font-size: 14px; color: #8A9AAE; }
.cupc-champ { font-size: clamp(24px, 3vw, 40px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; overflow-wrap: anywhere; }
.cupc-class { font-size: 15px; color: #C3CEDB; }
.cupc-rec { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cupc-facts { margin: 0; font-size: 14px; color: #8A9AAE; }
.cupc-tile .cupc-champ { font-size: 18px; }
.cupc-tile .cupc-head { gap: 14px; }
.cupc-tile .cupc-class, .cupc-tile .cupc-rec { font-size: 13px; }
.chain { --line: #35506F; margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); position: relative; }
.ch-node {
    position: relative; display: grid; gap: 2px; align-content: start; padding: 12px 14px 14px;
    background: #16263A; border-radius: var(--radius-2); border-top: 3px solid var(--line);
}
.ch-node.decisive { border-top-color: #F5F6F8; background: #1F3858; }
.ch-node.decisive .ch-stage { color: #C3CEDB; }
.ch-stage { font-size: 12px; color: #8A9AAE; }
.ch-score { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ch-sets { font-size: 13px; font-weight: 500; color: #C3CEDB; font-variant-numeric: tabular-nums; }
.ch-opp { font-size: 13px; color: #C3CEDB; overflow-wrap: anywhere; }
.ch-node.lost .ch-score { color: #8A9AAE; }
.tone-beach { --beach: #2E8C82; }
.tone-beach .ch-node { --line: #3FA597; }
.tone-beach .ch-node.decisive { border-top-color: #8FD7C9; }
:root .band.tone-beach { background: #0B2A2E; border-color: #164046; }
.band.tone-beach .cover-meta, .band.tone-beach .cupc-event { color: #9FC7C3; }

/* sets (beach) */
.sets { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; }
.set { display: grid; padding: 6px 10px; border-radius: var(--radius-2); background: #164046; }
.set-n { font-size: 11px; color: #9FC7C3; }
.set-s { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- player cover ---------- */
.pc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; min-height: 380px; border-radius: var(--radius-3); overflow: hidden; isolation: isolate; background: #0A1522; }
.pc-slab { position: absolute; inset: 0; z-index: -1; background: var(--club); clip-path: polygon(0 0, 50% 0, 42% 100%, 0 100%); }
.pc-img { align-self: end; width: 100%; max-height: 380px; object-fit: contain; object-position: 50% 100%; }
.pc-img.pc-photo { object-fit: cover; height: 100%; max-height: none; border-radius: 0; }
.pc-crest { align-self: center; justify-self: center; }
.pc-fig { display: grid; gap: 4px; padding: 28px 24px; align-self: center; }
.pc-n { font-size: clamp(96px, 13vw, 180px); font-weight: 600; letter-spacing: -0.06em; line-height: .82; font-variant-numeric: tabular-nums; }
.pc-u { font-size: 24px; font-weight: 600; margin-top: -4px; }
.pc-name { margin-top: 14px; font-size: 22px; font-weight: 600; }
.pc-sub { font-size: 14px; color: #C3CEDB; }
.pc-tile { min-height: 168px; }
.pc-tile .pc-n { font-size: 64px; }
.pc-tile .pc-u, .pc-tile .pc-name { font-size: 15px; margin-top: 0; }
.pc-tile .pc-sub { display: none; }
.pc-tile .pc-fig { padding: 14px; }

/* ---------- roundup wall ---------- */
.rw { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.rw-ed { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; padding: 14px; background: #16263A; border-radius: var(--radius-2); border-top: 3px solid #35506F; }
.rw-ed.beach { border-top-color: #3FA597; background: #0F3036; }
.rw-n { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rw-l { font-size: 13px; color: #8A9AAE; }
.rw-name { grid-column: 1 / -1; margin-top: 8px; font-weight: 600; font-size: 15px; line-height: 1.3; }
.rw-meta { grid-column: 1 / -1; font-size: 12px; color: #8A9AAE; }
.rw-tile { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rw-tile .rw-ed { padding: 8px; }
.rw-tile .rw-n { font-size: 24px; }
.rw-tile .rw-name { font-size: 12px; margin-top: 4px; }
.rw-tile .rw-meta { display: none; }

/* ---------- cards ---------- */
.cards { margin: 0; padding: 0; list-style: none; display: grid; gap: 36px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { display: grid; align-content: start; gap: 14px; position: relative; }
.card-visual {
    --text-primary: #F5F6F8; color: #F5F6F8; background: #0E1B2C; border-radius: var(--radius-3); overflow: hidden;
    min-height: 168px; display: grid; align-items: center;
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.card-visual > .siffran, .card-visual > .cupc, .card-visual > .rw { padding: 18px; }
.card.tone-beach .card-visual { background: #0B2A2E; }
.card-h { margin: 0; font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; }
.card-h a { color: inherit; text-decoration: none; }
.card-h a::after { content: ""; position: absolute; inset: 0; }        /* the whole card is the link target */
.card-dek { margin: 6px 0 0; font-size: 15px; color: var(--text-secondary); }
.card .story-meta { margin-top: 8px; }
.tone-word { font-weight: 600; color: var(--text-primary); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .card:hover .card-visual { transform: translateY(-3px); }
}
.card:hover .card-h a, .card:focus-within .card-h a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; }
.card:focus-within { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: var(--radius-2); }
.card:focus-within .card-h a:focus-visible { outline: none; }
@media (min-width: 900px) {
    .card-wide { grid-column: span 2; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 24px; }
    .card-wide .card-h { font-size: 28px; }
    .card-wide .card-visual { min-height: 220px; }
}
.cards-rail { grid-template-columns: 1fr; gap: 24px; }
.cards-rail .card-visual { min-height: 120px; }
.cards-rail .card-h { font-size: 17px; }

/* ---------- home ---------- */
.page-home .front { margin-top: 48px; }
.page-home .front .sec-h { margin-bottom: 20px; }
.sec-cups .cards-cup { margin-bottom: 32px; }
.tickets { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.ticket {
    display: grid; gap: 4px; padding: 14px 16px 16px; background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-top: 4px solid #0E1B2C; border-radius: var(--radius-2);
}
:root:not([data-theme="light"]) .ticket { border-top-color: #6FA8E8; }
:root[data-theme="light"] .ticket { border-top-color: #0E1B2C; }
.ticket.beach { border-top-color: #2E8C82 !important; }
.tk-date { font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.tk-name { font-size: 17px; font-weight: 600; line-height: 1.25; }
.tk-figs { display: flex; gap: 14px; font-size: 13px; color: var(--text-secondary); }
.tk-figs b { color: var(--text-primary); font-size: 17px; font-variant-numeric: tabular-nums; }
.tk-kind { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.ticket.beach .tk-kind { color: #1F6B63; }
:root:not([data-theme="light"]) .ticket.beach .tk-kind { color: #3FA597; }

/* margin dot plot */
.mp { margin: 28px 0 0; }
.mp-svg { display: block; width: 100%; height: auto; overflow: visible; }
.mp-base { stroke: var(--border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mp-dot { fill: var(--border-strong); transition: fill 160ms ease-out; }
.mp-dot.one { fill: var(--data); }
.mp-dot.draw { fill: #E3A23B; }
.mp-dot:hover, .mp-dot.on { fill: var(--text-primary); }
.mp-x { font: 500 13px var(--font-sans); fill: var(--text-secondary); }
.band .mp-dot { fill: #35506F; }
.band .mp-dot.one { fill: #6FA8E8; }
.band .mp-dot.draw { fill: #E3A23B; }
.band .mp-dot:hover, .band .mp-dot.on { fill: #F5F6F8; }
.mp-tip { min-height: 1.45em; margin: 6px 0 0; font-size: 14px; font-weight: 500; }

/* ---------- article column ---------- */
.page-article .art-layout { margin-top: 40px; }
.article .scorers:first-child { margin-top: 0; }

/* ---------- reduced motion: no transforms on hover either ---------- */
@media (prefers-reduced-motion: reduce) {
    .card:hover .card-visual { transform: none; }
}

/* phones: cup tickets and cup stories as a swipeable row (scroll-snap; the page itself never scrolls sideways) */
@media (max-width: 699px) {
    .tickets, .cards-cup {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(240px, 80%);
        overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding-inline: var(--gutter);
    }
    .tickets::-webkit-scrollbar, .cards-cup::-webkit-scrollbar { display: none; }
    .ticket, .cards-cup > .card { scroll-snap-align: start; }
}

.mc-hero .ct { --ct: clamp(72px, 7.6vw, 112px) !important; }
@media (min-width: 1024px) { .cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
@media (max-width: 559px) { .mc-hero .ct { --ct: 60px !important; } }

/* featured live match: the two clubs' colours as a split stripe on the card's top edge */
.live { position: relative; overflow: hidden; padding-top: 22px; }
.lv-stripe { position: absolute; left: 0; right: 0; top: 0; height: 6px; display: flex; }
.lv-stripe::before, .lv-stripe::after { content: ""; flex: 1; background: var(--home, #35506F); }
.lv-stripe::after { background: var(--away, #35506F); }
.lv-score { font-size: 48px; }

/* key moments: a time-ordered strip under the goal progression, side marked by the club colour chip */
.band-h2 { margin-top: 36px; }
.moments { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.moments li { display: grid; gap: 3px; padding: 12px 14px; background: #16263A; border-radius: var(--radius-2); }
.moments li::before { content: ""; width: 28px; height: 6px; border-radius: 1px; margin-bottom: 6px; }
.moments .mo-h::before { background: var(--home); }
.moments .mo-a::before { background: var(--away); }
.mo-when { font-size: 13px; font-weight: 600; color: #8A9AAE; font-variant-numeric: tabular-nums; }
.mo-what { font-size: 16px; font-weight: 600; line-height: 1.3; }
.mo-sub { font-size: 13px; color: #C3CEDB; font-variant-numeric: tabular-nums; }
@media (max-width: 379px) { .mc { padding: 20px 6px; gap: 4px; } .mc-hero .ct, .mc .ct { --ct: 48px !important; } .mc-n { font-size: 42px; } .mc-dash { font-size: 26px; } .mc-name { font-size: 12px; padding: 2px 5px; } }

/* ---------- v3: unboxed v5 crests and the recomposed result graphic ---------- */
.ct { background: none; padding: 0; border-radius: 0; }
.ct img { filter: none; }
.ct-none { background: none; border: 1px solid #35506F; border-radius: 50%; color: #8A9AAE; }
/* club colours are flags at the outer edges; crests, names and score stand on the dark field */
.mc { background: #0A1522; }
.mc-slab-h { clip-path: polygon(0 0, 15% 0, 9% 100%, 0 100%); }
.mc-slab-a { clip-path: polygon(91% 0, 100% 0, 100% 100%, 85% 100%); }
.mc-name { background: none; padding: 0; color: #F5F6F8; }
.mc-name::after { content: ""; display: block; width: 28px; height: 3px; margin: 7px auto 0; border-radius: 1px; }
.mc-home .mc-name::after { background: var(--home); }
.mc-away .mc-name::after { background: var(--away); }
.won-home .mc-n-a, .won-away .mc-n-h { color: #C3CEDB; font-weight: 500; }
.mc-cap { letter-spacing: 0.06em; }
.mc-tile .mc-slab-h { clip-path: polygon(0 0, 10% 0, 6% 100%, 0 100%); }
.mc-tile .mc-slab-a { clip-path: polygon(94% 0, 100% 0, 100% 100%, 90% 100%); }
@media (max-width: 479px) {
    .mc-hero { grid-template-columns: 1fr 1fr; grid-template-areas: "h a" "c c"; row-gap: 18px; padding: 24px 14% 22px; }
    .mc-hero .mc-home { grid-area: h; } .mc-hero .mc-away { grid-area: a; } .mc-hero .mc-centre { grid-area: c; }
    .mc-hero .mc-n { font-size: 64px; }
    .mc-hero .mc-cap { white-space: nowrap; max-width: none; font-size: 11px; }
    .mc-hero .ct { --ct: 72px !important; }
    .mc-name { hyphens: manual; overflow-wrap: normal; word-break: normal; }
}
/* player cover: the number on the club flag, the crest or player on the dark field */
.pc { background: #0A1522; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pc-slab { clip-path: polygon(0 0, 54% 0, 44% 100%, 0 100%); }
.pc-fig { order: -1; color: var(--club-fg); align-self: stretch; align-content: center; padding-right: 18%; }
.pc-fig .pc-sub { color: var(--club-fg); opacity: .9; }
.pc-crest, .pc-img { justify-self: center; }
/* phones: the progression gets its own narrow rendering */
.pv-narrow { display: none; }
@media (max-width: 699px) { .pv-wide { display: none; } .pv-narrow { display: block; } .pv-narrow .pv-l, .pv-narrow .pv-t, .pv-narrow .pv-run text { font-size: 13px; } }
.pv-even { fill: #C3CEDB; }
/* scorer cards: crest fallback on the dark tile, club colour as the base line */
.sc-pic { background: #0E1B2C; box-shadow: inset 0 -5px 0 var(--club); }

/* byline under the dek (no kicker above a headline) */
.cover-byline { margin: 18px 0 0; font-size: 14px; color: #8A9AAE; }
.cover-byline a { color: #F5F6F8; text-decoration: none; font-weight: 500; }
.cover-byline .tone-word { color: #F5F6F8; }
/* dark theme: bands step up one tone so they read against the Nattblå page */
:root:not([data-theme="light"]) .band { background: #16263A; border-color: #24364D; }
:root[data-theme="light"] .band { background: #0E1B2C; }
:root .band.tone-beach { background: #0B2A2E; }
/* roundup: editions without a reported winner last, said in words */
.rw-ed.none { opacity: 1; background: #0E1B2C; border-top-color: #24364D; }
.rw-none { grid-column: 1 / -1; font-size: 13px; color: #8A9AAE; }
/* fact box (engine "## Fakta" lists) */
.facts { margin: 1.6em 0; padding: 16px 18px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-2); font-size: 15px; line-height: 1.45; }
.facts h2 { margin: 0 0 10px !important; font-size: 14px !important; }
.facts dl { margin: 0; display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.facts dt { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.facts dd { margin: 2px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
/* phones: the lead's headline comes first, the visual follows (capped) */
@media (max-width: 699px) {
    .cover-lead .cover-visual { order: 0; }
    .page-home .band-lead .cover-h { font-size: 36px; }
    /* Senaste: the first story stays large, the rest swipe sideways instead of stacking identical slabs */
    .page-home .front-main .cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%);
        overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; }
    .page-home .front-main .cards > .card { scroll-snap-align: start; }
}
/* cup path: one row with connectors, the deciding match last and larger; swipe on phones */
.chain { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chain::-webkit-scrollbar { display: none; }
.ch-node { position: relative; }
.ch-node + .ch-node::before { content: ""; position: absolute; left: -11px; top: 50%; width: 12px; height: 2px; background: var(--line); }
.ch-node.decisive { grid-column: span 1; }
.ch-node.decisive .ch-score { font-size: 32px; }
.front { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .front.has-rail { grid-template-columns: minmax(0, 1fr) var(--rail); } }

/* ---------- v3 compositions per story kind ---------- */
.mc { padding-inline: 13%; }
.mc-tile { padding-inline: 9%; }
.mc-slab-h { clip-path: polygon(0 0, 11% 0, 6% 100%, 0 100%); }
.mc-slab-a { clip-path: polygon(94% 0, 100% 0, 100% 100%, 89% 100%); }
.mc-tile .mc-slab-h { clip-path: polygon(0 0, 8% 0, 4% 100%, 0 100%); }
.mc-tile .mc-slab-a { clip-path: polygon(96% 0, 100% 0, 100% 100%, 92% 100%); }
/* late decider: the clock */
.clockc { display: grid; gap: 18px; }
.clk { margin: 0; display: grid; gap: 8px; }
.clk-t { font-size: clamp(88px, 13vw, 184px); font-weight: 600; letter-spacing: -0.05em; line-height: .85; font-variant-numeric: tabular-nums; }
.clk-l { font-size: clamp(16px, 1.7vw, 20px); font-weight: 500; color: #C3CEDB; }
.clk-bar { position: relative; height: 8px; background: #1E2F44; border-radius: 2px; overflow: hidden; }
.clk-fill { position: absolute; inset: 0 auto 0 0; width: var(--p); }
.clk-home { background: var(--home); } .clk-away { background: var(--away); }
/* comeback: the deficit */
.comebackc { display: grid; gap: 20px; }
.cb { margin: 0; display: grid; gap: 8px; }
.cb-n { font-size: clamp(96px, 14vw, 200px); font-weight: 600; letter-spacing: -0.06em; line-height: .82; font-variant-numeric: tabular-nums; color: #F5F6F8; }
.cb-l { font-size: clamp(16px, 1.7vw, 20px); font-weight: 500; color: #C3CEDB; max-width: 36ch; }
.cover-curve { margin-top: 44px; }
.band-moments { margin-top: 0; }
/* upset: positions */
.upsetc { display: grid; gap: 14px; }
.up { margin: 0; display: flex; align-items: center; gap: 22px; }
.up-pos { display: grid; justify-items: center; gap: 6px; }
.up-pos b { display: grid; place-items: center; width: clamp(96px, 11vw, 150px); height: clamp(96px, 11vw, 150px); border-radius: 4px; background: #0A1522; box-shadow: inset 0 -8px 0 var(--c);
    font-size: clamp(64px, 8vw, 104px); font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.up-pos small { font-size: 13px; color: #C3CEDB; font-variant-numeric: tabular-nums; }
.up-v { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; color: #8A9AAE; }
.up-l { margin: 0; font-size: 13px; color: #8A9AAE; }
/* milestone tally */
.tally { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 14px; max-width: 340px; }
.tally i { width: 4px; height: 18px; background: currentColor; opacity: .55; border-radius: 1px; }
.tally i.ten { opacity: .9; }
.tally i.mk-goal { background: #E3A23B; opacity: 1; height: 26px; margin-top: -4px; }
/* cup ladder: the path climbs towards the final */
@media (min-width: 700px) {
    .chain { align-items: end; padding-top: 40px; }
    .ch-node { margin-bottom: calc((var(--i) - 1) * 9px); }
}
.ch-node:focus-visible { outline: 2px solid #6FA8E8; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .js .chain.armed .ch-node { opacity: 0; transform: translateY(10px); }
    .js .chain.armed.in .ch-node { opacity: 1; transform: none; transition: opacity 260ms cubic-bezier(0.23, 1, 0.32, 1), transform 260ms cubic-bezier(0.23, 1, 0.32, 1);
        transition-delay: calc(var(--i) * 140ms); }
}

/* ---------- v3 step 3: transitions, region band, dividers, reveals ---------- */
/* cross-document view transitions: the story visual travels from the card into the article cover; the rest
   crossfades quickly. Chromium 126+ and Safari 18.2+; elsewhere a normal navigation. Off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
    ::view-transition-group(*) { animation-duration: 320ms; animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1); }
    .band-season, .band-region { view-transition-name: lens-band; }
}
.band-region { margin-top: 0; border-top: 0; }
.rg-band { display: grid; gap: 18px; }
.rg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.rg-identity { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); max-width: 100%; min-width: 0; }
.rg-hero-logo { display: block; flex: 0 0 auto; width: clamp(96px, 16vw, 176px); height: auto; object-fit: contain; }
.rg-identity .rg-h { min-width: 0; }
.rg-h { margin: 0; font-size: clamp(48px, 8vw, 112px); line-height: .92; letter-spacing: -0.045em; }
.rg-head .issue { color: #8A9AAE; }
.band-region .tabs { border-bottom-color: #24364D; }
.band-region .tabs a { color: #8A9AAE; }
.band-region .tabs a:hover, .band-region .tabs a[aria-current] { color: #F5F6F8; }
.band-region .tabs a[aria-current] { box-shadow: inset 0 -2px 0 #F5F6F8; }
.rg-figs { margin: 6px 0 0; display: flex; flex-wrap: wrap; row-gap: 12px; }
.rg-figs > div { padding: 0 24px; border-left: 1px solid #24364D; }
.rg-figs > div:first-child { padding-left: 0; border-left: 0; }
.rg-figs dt { font-size: 13px; font-weight: 500; color: #8A9AAE; }
.rg-figs dd { margin: 2px 0 0; font-size: clamp(30px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.rg-pulse .pulse-svg { height: 90px; }
.rg-pulse .pl-played { fill: #6FA8E8; }
.rg-pulse .pl-sched { stroke: #35506F; }
.rg-pulse .pl-base, .rg-pulse .pl-now { stroke: #F5F6F8; }
.rg-pulse .pl-labels { color: #8A9AAE; }
.rg-pulse .pl-now-l { color: #F5F6F8; }
/* court-line divider */
.court { display: flex; justify-content: center; margin: 64px 0 -8px; color: var(--border-strong); }
.court svg { display: block; width: 240px; height: 40px; }
/* Siffran: the figure rises into view once (a reveal for the discovery), never on repeat */
@media (prefers-reduced-motion: no-preference) {
    .js .siffran.armed .sf-n { clip-path: inset(100% 0 0 0); transform: translateY(12px); }
    .js .siffran.armed.in .sf-n { clip-path: inset(0 0 0 0); transform: none; transition: clip-path 700ms cubic-bezier(0.23, 1, 0.32, 1), transform 700ms cubic-bezier(0.23, 1, 0.32, 1); }
    /* featured match: a changed score is marked for a moment (state change, not decoration) */
    .lv-score.changed { animation: lv-bump 1200ms cubic-bezier(0.23, 1, 0.32, 1); }
}
@keyframes lv-bump { 0% { color: #E3A23B; } 100% { color: inherit; } }
.rg-pulse .pl-now-l { bottom: calc(100% + 86px); }
.rg-more { margin: 0; font-size: 15px; font-weight: 500; }
.rg-more a { color: #6FA8E8; }

/* v3 fix: the milestone figure carries its own club-colour ground, so its contrast never depends on the layout */
.pc-slab { display: none; }
.pc-fig { background: var(--club); color: var(--club-fg); clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); padding: 28px 22% 28px 24px; }
.pc-tile .pc-fig { padding: 14px 24% 14px 14px; }
.ct-none { color: var(--text-secondary); border-color: var(--border-strong); }
.band .legend, .cupc-facts, .sp-ctx { max-width: 70ch; }

/* ---------- checkpoint fixes ---------- */
/* reveals: content is visible by default (print, full-page captures, fast jumps); the animation only plays when
   an element enters the view (.in), starting from the hidden frame inside the keyframes */
.js .pv.armed .pv-draw, .js .chain.armed .ch-node, .js .siffran.armed .sf-n { clip-path: none; opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
    .js .pv.in .pv-draw { animation: rv-draw 1400ms cubic-bezier(0.23, 1, 0.32, 1) both; transition: none; }
    .js .chain.in .ch-node { animation: rv-rise 260ms cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: calc(var(--i) * 140ms); transition: none; }
    .js .siffran.in .sf-n { animation: rv-up 700ms cubic-bezier(0.23, 1, 0.32, 1) both; transition: none; }
}
@keyframes rv-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rv-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rv-up { from { clip-path: inset(100% 0 0 0); transform: translateY(12px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@media print { *, *::before, *::after { animation: none !important; } }
/* Siffran: the figure and its unit never wrap apart */
.sf-fig { flex-wrap: nowrap; white-space: nowrap; }
.sf-band { align-items: start; }
.sf-band .sf-n { font-size: clamp(96px, 14vw, 220px); }
/* scorers without an eligible photo: no box at all */
.sc.sc-noimg { grid-template-columns: 1fr; }
.sc-team .crest { width: 20px; height: 20px; object-fit: contain; vertical-align: -4px; margin-right: 6px; }

/* home Siffran band: the poster figure top right, the comparison scale filling the left column under the text */
@media (min-width: 1024px) {
    .sf-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "text fig" "scale what" "scale match"; row-gap: 12px; align-items: start; }
    .sf-band .sf-visual, .sf-band .siffran { display: contents; }
    .sf-band .sf-text { grid-area: text; }
    .sf-band .sf-fig { grid-area: fig; }
    .sf-band .sf-what { grid-area: what; margin-top: 0; }
    .sf-band .cs { grid-area: scale; margin-top: 8px; }
    .sf-band .sf-match { grid-area: match; margin-top: 12px; }
}

/* Regions index (2026-10-13): the five regional federations as cards with their official logos (unchanged files,
   federation.php; never a plate behind them), name below, the season in figures; the national competitions apart. */
.rg-cards { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.rg-card a { position: relative; display: grid; gap: 14px; align-content: start; height: 100%; padding: 22px 20px 18px; color: var(--text-primary); text-decoration: none;
    background: var(--surface-card); border-top: 3px solid var(--rg, var(--border-strong)); border-radius: var(--radius-1); }
.rg-card-mark { display: flex; align-items: center; height: 84px; }
.rg-card-logo { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
.rg-card-name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.rg-card-figs { display: flex; gap: 18px; margin: 0; }
.rg-card-figs dt { font-size: 12px; color: var(--text-secondary); }
.rg-card-figs dd { margin: 2px 0 0; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rg-card-bar { display: block; height: 4px; background: var(--border-rule); border-radius: var(--radius-1); overflow: hidden; }
.rg-card-bar > span { display: block; height: 100%; background: var(--rg, var(--data)); }
.rg-card-go { font-size: 14px; color: var(--link); }
.rg-card-none { margin: 0; color: var(--text-secondary); font-size: 14px; }
.rg-section { margin: 44px 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.rg-national { display: grid; gap: 10px; padding: 20px; color: var(--text-primary); text-decoration: none; background: var(--surface-card);
    border-top: 3px solid var(--text-primary); border-radius: var(--radius-1); }
.rg-national-name { font-size: 20px; font-weight: 600; }
.rg-national-note { max-width: 70ch; font-size: 14px; color: var(--text-secondary); }
.rg-national .rg-card-bar > span { background: var(--data); }
.rg-card a:hover, .rg-national:hover { background: var(--surface-hover); }
.rg-card a:focus-visible, .rg-national:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .rg-card a { transition: transform 200ms var(--ease), background-color 200ms var(--ease); }
    .rg-card a:hover { transform: translateY(-2px); }
}
@media (max-width: 480px) {
    .rg-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
    .rg-card a { padding: 16px 14px 14px; gap: 10px; }
    .rg-card-mark { height: 56px; }
    .rg-card-name { font-size: 16px; }
    .rg-card-figs { gap: 12px; }
    .rg-card-figs > div:last-child { display: none; }
    .rg-card-figs dd { font-size: 18px; }
}

/* Swipe rails on phones (2026-10-13): without JS a thin native scrollbar shows the row scrolls; with JS (initRails)
   a position track and "n / N" replace it. */
@media (max-width: 699px) {
    .tickets, .cards-cup, .page-home .front-main .cards { scrollbar-width: thin; }
    .tickets::-webkit-scrollbar, .cards-cup::-webkit-scrollbar, .page-home .front-main .cards::-webkit-scrollbar { display: block; height: 4px; }
    .has-rail { scrollbar-width: none; }
    .has-rail::-webkit-scrollbar { display: none !important; }
    .rail-nav { display: flex; align-items: center; gap: 12px; margin: 10px 0 0; }
    .rail-nav[hidden] { display: none; }
    .rail-track { position: relative; flex: 1; height: 3px; background: var(--border-rule); border-radius: var(--radius-1); overflow: hidden; }
    .rail-thumb { position: absolute; inset: 0 auto 0 0; background: var(--text-secondary); border-radius: var(--radius-1); }
    .rail-count { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-secondary); min-width: 4ch; text-align: right; }
}
@media (min-width: 700px) { .rail-nav { display: none; } }

/* Cup lead (2026-10-13): crest large, the record as the figure, one chip per match. */
.cupc-hero2 { gap: 18px; }
.cupc-stage { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.cupc-stage > .ct { flex: none; }
.cupc-big { margin: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; }
.cupc-num { font-size: clamp(88px, 11vw, 152px); font-weight: 600; line-height: .82; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: #FFFFFF; }
.cupc-of { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.cupc-numlab { grid-column: 1 / -1; margin-top: 10px; font-size: 14px; color: #C3CEDB; font-variant-numeric: tabular-nums; }
.cupc-pips { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.cupc-pips li { display: grid; gap: 2px; min-width: 64px; padding: 8px 10px 7px; border-top: 3px solid #35506F; background: rgba(255, 255, 255, 0.04); border-radius: var(--radius-1); }
.cupc-pips li.won { border-top-color: var(--brand-teal); }
.cupc-pips li.lost { border-top-color: var(--brand-loss); }
.cupc-pips li.decisive { border-top-color: var(--signal); }
.pip-score { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pip-unit { font-size: 12px; font-weight: 500; color: #8A9AAE; }
.pip-stage { font-size: 12px; color: #8A9AAE; }
@media (max-width: 699px) {
    .cupc-stage > .ct { --ct: 96px !important; }
    .cupc-num { font-size: 84px; }
}

/* Goalscorers per team (2026-10-14): two team columns; the canonical transparent cut-out stands on a thin club-colour
   rule - no box, no plate, no crop beyond the source; text rows when there is no eligible cut-out. */
.gs-teams { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.gs-head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; padding-bottom: 10px; font-size: 17px; font-weight: 600;
    border-bottom: 3px solid var(--club, var(--border-strong)); }
.gs-head .crest { width: 28px; height: 28px; object-fit: contain; flex: none; }
.gs-list { margin: 0; padding: 0; list-style: none; }
.gs { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 14px; padding: 10px 0;
    border-bottom: 1px solid var(--border-rule); }
.gs-pic { grid-template-columns: 76px minmax(0, 1fr) auto; padding-top: 4px; }
.gs-fig { position: relative; width: 76px; height: 96px; display: block; }
.gs-fig::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; background: var(--club); opacity: .55; border-radius: 1px; }
.gs-fig img { position: absolute; inset: 0 0 2px; width: 100%; height: calc(100% - 2px); object-fit: contain; object-position: 50% 100%;
    filter: drop-shadow(0 2px 4px rgba(14, 27, 44, .18)); }
.gs-name { font-size: 16px; font-weight: 600; line-height: 1.3; padding-bottom: 2px; }
.gs-n { font-size: 13px; color: var(--text-secondary); white-space: nowrap; padding-bottom: 2px; }
.gs-goals { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.gs-empty, .gs-miss { margin: 8px 0 0; font-size: 13px; color: var(--text-secondary); }
@media (max-width: 480px) {
    .gs-pic { grid-template-columns: 60px minmax(0, 1fr) auto; }
    .gs-fig { width: 60px; height: 78px; }
    .gs-goals { font-size: 24px; }
}
.gs-list-pics .gs:not(.gs-pic) { padding-left: 90px; }
.gs-n { padding-right: 4px; }
@media (max-width: 480px) { .gs-list-pics .gs:not(.gs-pic) { padding-left: 74px; } }

/* Match reporting: the article leads; verified facts follow, native disclosures. */
.match-report { margin-block: 2.5rem; padding-block-start: 1.5rem; border-top: 2px solid var(--text-primary); min-width: 0; }
.mr-result { font-size: 1.15rem; line-height: 1.4; margin-block: .75rem .4rem; overflow-wrap: anywhere; }
.mr-result strong { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.mr-context,.mr-note { color: var(--text-secondary); font-size: .875rem; line-height: 1.6; }
.mr-events { margin-block: 1.5rem; }
.mr-events > div { padding-block: .65rem; border-bottom: 1px solid var(--border-strong); }
.mr-events dt { color: var(--text-secondary); font-size: .875rem; }
.mr-events dd { margin: .2rem 0 0; line-height: 1.6; }
.mr-teams { display: grid; gap: 1.75rem; min-width: 0; }
.mr-team { min-width: 0; padding: 24px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-2); }
.mr-team h3 { font-size: 1.25rem; margin: 0 0 .6rem; }
.mr-team h3 > span { display: block; color: var(--text-secondary); font-size: .8rem; font-weight: 400; margin-top: .3rem; }
.mr-leaders { font-size: .9rem; line-height: 1.6; }
.mr-lineup { border-block: 1px solid var(--border-strong); }
.mr-lineup-label { margin: 0; padding-block: .8rem; font-size: .875rem; color: var(--text-secondary); }
.mr-lineup .table-wrap { margin: 0; max-width: 100%; }
.mr-lineup .data { font-size: .875rem; width: 100%; }
.mr-lineup th { white-space: normal; overflow-wrap: anywhere; }
.mr-lineup .data th,.mr-lineup .data td { padding: 10px 6px; }
.mr-lineup th[scope="row"] { color: var(--text-primary); font-weight: 500; }
.mr-lineup th small { display: block; color: var(--text-secondary); font-size: .75rem; font-weight: 400; }
.mr-lineup .data a { display: inline-block; padding-block: .45rem; }
.mr-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.mr-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 760px) { .mr-teams { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Article reading order: story, progression, two equally visible teams, sources. */
.page-article .art-layout-match { display: block; }
.art-layout-match .article { max-width: none; }
.art-layout-match .prose,.article-method { max-width: 70ch; }
.art-layout-match .prose { margin-inline: auto; }
.article-progression { margin-block: 40px; }
.article-progression .band-in { padding: 24px; }
.article-progression h2 { font-size: 1.25rem; }
.article-method { margin-block: 32px; border-block: 1px solid var(--border-strong); }
.article-method summary { cursor: pointer; padding-block: 16px; min-height: 44px; font-weight: 500; }
.article-method .method-content { padding-bottom: 20px; font-size: .9rem; line-height: 1.7; }
.article-method .sources { border: 0; margin: 0; padding: 0; }
.article-method .src-list { padding-left: 20px; }
.article-related { margin-top: 48px; }
.article-related .cards-rail { grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); }
@media (max-width: 759px) { .mr-team { padding: 16px; } }

/* Compact schedule highlights: source-backed table context, never a match scoreboard. */
.exciting-today { max-width: var(--col); margin: 26px auto 8px; padding-inline: var(--gutter); }
.exciting-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 12px; }
.exciting-head h2 { margin: 0; font-size: clamp(20px, 2.5vw, 26px); line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.exciting-head p { margin: 0; max-width: 60ch; color: var(--text-secondary); font-size: 13px; }
.exciting-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-rule); }
.exciting-match { display: grid; grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) auto; align-items: center; gap: 16px 24px; padding: 15px 0; border-bottom: 1px solid var(--border-rule); }
.exciting-match-time { display: grid; gap: 3px; align-content: center; }
.exciting-match-time time { font-size: 20px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.exciting-match-time span { color: var(--text-secondary); font-size: 12px; line-height: 1.35; }
.exciting-match-main h3 { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; font-size: 17px; line-height: 1.3; font-weight: 600; }
.exciting-versus { color: var(--text-secondary); }
.exciting-match-main p { margin: 4px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.exciting-asof { white-space: nowrap; }
.exciting-match-link { color: var(--link); font-size: 13px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.exciting-match-link:hover { color: var(--action); }
@media (max-width: 559px) {
    .exciting-today { margin-top: 20px; }
    .exciting-head { display: block; margin-bottom: 8px; }
    .exciting-head p { margin-top: 4px; }
    .exciting-match { grid-template-columns: 58px minmax(0, 1fr); gap: 9px 12px; padding: 13px 0; }
    .exciting-match-time { grid-row: span 2; align-self: start; }
    .exciting-match-time time { font-size: 18px; }
    .exciting-match-main h3 { display: block; font-size: 16px; }
    .exciting-versus { padding-inline: 4px; }
    .exciting-match-main p { font-size: 12px; }
    .exciting-asof { white-space: normal; }
    .exciting-match-link { grid-column: 2; justify-self: start; }
}

/* Confirmed broadcast guide: compact scan rows, no general match schedule. */
.play-head { max-width: 76ch; }
.play-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-block: 24px 32px; }
.play-filters label { display: grid; gap: 7px; min-width: 0; flex: 1 1 180px; }
.play-filters select, .play-filters input[type="date"] { width: 100%; min-width: 0; font: inherit; padding: 10px; color: var(--text-primary); background: var(--surface-page); border: 1px solid var(--border-strong); border-radius: 3px; }
.play-section { margin-block: 32px; }
.play-section > h2 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.play-list { list-style: none; margin: 0; padding: 0; }
.play-match { display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(190px, .55fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--border-strong); overflow-wrap: anywhere; }
.play-match > time { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.play-match h3 { font-size: 18px; font-weight: 500; margin: 5px 0 8px; line-height: 1.35; }
.play-match p { margin: 0 0 6px; }
.play-competition, .play-broadcast p { font-size: 14px; line-height: 1.5; }
.play-broadcast a { display: inline-block; font-weight: 600; margin-bottom: 4px; text-underline-offset: .2em; }
.play-teaser { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-block: 24px; margin-block: 24px; border-block: 1px solid var(--border-strong); }
.play-teaser h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 600; margin: 0 0 8px; }
.play-teaser p { max-width: 60ch; margin: 0; }
.play-pagination { display: flex; justify-content: space-between; gap: 24px; margin-block: 28px; }
.play-method, .play-empty { max-width: 72ch; margin-block: 32px; }
.play-empty { padding-block: 18px; border-block: 1px solid var(--border-strong); }
.play-empty h2 { font-size: 20px; }
.play-status { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 8px; border-radius: 3px; background: var(--state-live-bg); color: var(--state-live-text); font-size: 13px; font-weight: 600; }
.play-kind { color: var(--text-secondary); font-size: 13px; font-weight: 500; }
.play-article { margin-block: 24px; }
@media(max-width: 600px) {
    .play-match { grid-template-columns: 48px minmax(0, 1fr); gap: 8px 12px; padding-block: 16px; }
    .play-broadcast { grid-column: 2; }
    .play-match > time { font-size: 17px; }
    .play-match h3 { font-size: 17px; }
    .play-filters label { flex-basis: 100%; }
}
