/* ScoreProb Model Performance page (mp-v1). Everything is scoped to .mp2. */
body:has(.mp2) { background: #f5f7fa; }
html[data-theme="dark"] body:has(.mp2) { background: #0b1220; }

.mp2 {
    --bg: #f5f7fa; --surf: #ffffff; --surf2: #eef2f8; --line: #e3e8ef; --line2: #c9d2e2;
    --ink: #18212f; --ink2: #44526b; --muted: #5a6680;
    --acc: #2857d9; --acc-ink: #ffffff; --acc-soft: #e6edfc; --acc-text: #2857d9;
    --home: #2857d9; --draw: #6f7a93; --away: #b86e00; --over: #0a8f6a; --btts: #7958d8;
    --good: #0a7a5a; --bad: #b3261e; --track: #e3e8f1; --shadow: 0 1px 2px rgba(20, 30, 60, .07);
    max-width: 1200px; margin: 0 auto; padding: 0 32px 72px;
    color: var(--ink); font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .mp2 {
    --bg: #0b1220; --surf: #111a29; --surf2: #16213a; --line: #243249; --line2: #3a4d6b;
    --ink: #ecf2ff; --ink2: #b4c0d3; --muted: #8f9db5;
    --acc: #5b87ff; --acc-ink: #0b1220; --acc-soft: #17284d; --acc-text: #7397ff;
    --home: #5b87ff; --draw: #b7c0d6; --away: #dc9a1e; --over: #1fbf8f; --btts: #9a82f5;
    --good: #2bd3a0; --bad: #ff8a7a; --track: #1f2c44; --shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.mp2 *, .mp2 *::before, .mp2 *::after { box-sizing: border-box; }
.mp2 h1, .mp2 h2, .mp2 h3, .mp2 p { margin: 0; }
.mp2 button { font: inherit; color: inherit; }
.mp2 a { color: inherit; }
.mp2 .mp2-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.bg-home { background: var(--home); } .bg-draw { background: var(--draw); } .bg-away { background: var(--away); }
.bg-over { background: var(--over); } .bg-btts { background: var(--btts); }
.bs-home { stroke: var(--home); } .bs-draw { stroke: var(--draw); } .bs-away { stroke: var(--away); }
.bs-over { stroke: var(--over); } .bs-btts { stroke: var(--btts); }
.c-home { --c: var(--home); } .c-over { --c: var(--over); } .c-btts { --c: var(--btts); }
.c-acc { --c: var(--acc); } .c-good { --c: var(--good); }

/* market switch: one state drives every chart */
.mp2[data-market="1x2"] .mp2-m:not([data-m="1x2"]),
.mp2[data-market="over25"] .mp2-m:not([data-m="over25"]),
.mp2[data-market="btts"] .mp2-m:not([data-m="btts"]) { display: none; }

/* jump nav */
.mp2-jump { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.mp2-jump::-webkit-scrollbar { display: none; }
.mp2-jump a { flex: none; font-size: 13px; font-weight: 600; color: var(--ink2); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surf); }
.mp2-jump a.is-on { background: var(--acc-soft); color: var(--ink); border-color: var(--acc); }
.mp2-jump a:hover { border-color: var(--acc); }

/* hero */
.mp2-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px 0 8px; scroll-margin-top: 70px; }
.mp2-stack { display: flex; flex-direction: column; gap: 18px; }
.mp2-chip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surf); font-size: 13px; font-weight: 600; color: var(--ink2); }
.mp2-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); display: block; }
.mp2 h1 { font-size: 46px; line-height: 1.07; letter-spacing: -.028em; font-weight: 800; text-wrap: balance; max-width: 18ch; }
.mp2-lead { font-size: 18px; line-height: 1.55; color: var(--ink2); max-width: 58ch; }
.mp2-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mp2-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 11px; border: 1px solid var(--acc); background: var(--acc); color: var(--acc-ink) !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.mp2-trust { display: flex; gap: 10px; align-items: flex-start; max-width: 60ch; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.mp2-trust svg { flex: none; margin-top: 2px; color: var(--good); }

.mp2-card { background: var(--surf); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.mp2-h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.mp2-cs { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.mp2-vs { margin-top: 8px; }
.mp2-vrow { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.mp2-vrow:first-child { border-top: 0; }
.mp2-l1 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mp2-nm { font-weight: 700; font-size: 15px; }
.mp2-sb { font-size: 12.5px; color: var(--muted); }
.mp2-pill { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--acc-soft); color: var(--ink); white-space: nowrap; }
.mp2-bw { position: relative; min-width: 0; }
.mp2-bar { height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.mp2-bar i { display: block; height: 100%; border-radius: 999px; background: var(--c, var(--acc)); }
.mp2-tick { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.mp2-bl { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.mp2-bl b { color: var(--ink); font-weight: 700; }

.mp2-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.mp2-tile { display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px; background: var(--surf); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.mp2-v { font-size: 34px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.mp2-l { font-size: 14px; font-weight: 700; }
.mp2-s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* sections */
.mp2-sec { padding-top: 64px; scroll-margin-top: 70px; }
.mp2-sh { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; max-width: 780px; }
.mp2-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc-text); }
.mp2-sh h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.mp2-sub { font-size: 16px; line-height: 1.55; color: var(--ink2); }
.mp2-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.mp2-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mp2-cal { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mp2-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.mp2-tools { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mp2-seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surf2); }
.mp2-seg button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--ink2); font-size: 14px; font-weight: 600; cursor: pointer; }
.mp2-seg button[aria-pressed="true"] { background: var(--surf); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 1px var(--line2); }
.mp2-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink2); }
.mp2-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mp2-legend i { width: 10px; height: 10px; border-radius: 50%; display: block; }

/* calibration chart */
.mp2-plotwrap { padding: 8px 14px 62px 66px; }
.mp2-plot { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--surf2); border-radius: 6px; }
.mp2-plot svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.mp2-gline { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mp2-diag { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.mp2-sline { fill: none; stroke-width: 2; opacity: .75; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mp2-ax { position: absolute; font-size: 11.5px; line-height: 1; color: var(--muted); }
.mp2-axx { top: calc(100% + 9px); transform: translateX(-50%); }
.mp2-axy { right: calc(100% + 9px); transform: translateY(-50%); }
.mp2-axt { position: absolute; font-size: 12.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.mp2-axtx { left: 50%; top: calc(100% + 30px); transform: translateX(-50%); }
.mp2-axty { left: -50px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.mp2-dot { position: absolute; transform: translate(-50%, -50%); padding: 0; border-radius: 50%; border: 2px solid var(--surf); cursor: pointer; }
.mp2-dot.is-sel { outline: 3px solid var(--ink); outline-offset: 1px; z-index: 2; }
.mp2-dot:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.mp2-dl { position: absolute; transform: translateY(-50%); font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; pointer-events: none; }
.mp2-pn { position: absolute; right: 2%; bottom: 3%; font-size: 12px; color: var(--muted); }
.mp2-fn { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.mp2-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.mp2-kv > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surf2); }
.mp2-kv small { font-size: 12px; font-weight: 600; color: var(--muted); }
.mp2-kv b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.mp2-say { margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.mp2-selh { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mp2-selh i { flex: none; width: 10px; height: 10px; border-radius: 50%; display: block; }
.mp2-mm { display: flex; flex-direction: column; margin-top: 8px; }
.mp2-mm > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mp2-mm > div:first-child { border-top: 0; }
.mp2-mm span { color: var(--ink2); }
.mp2-mm b { font-weight: 800; }

/* confidence ladder */
.mp2-lh, .mp2-lr { display: grid; grid-template-columns: 104px minmax(0, 1fr) 64px; gap: 16px; align-items: center; }
.mp2-lh { padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.mp2-lr { padding: 13px 0; border-bottom: 1px solid var(--line); }
.mp2-lr-m { border-bottom: 0; padding: 11px 0; }
.mp2-rows { margin-top: 6px; }
.mp2-t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.mp2-t b { font-size: 15px; font-weight: 800; }
.mp2-t small { font-size: 12px; color: var(--muted); }
.mp2-r { text-align: right; font-weight: 800; font-size: 16px; }
.mp2-lh .mp2-r { font-size: 12px; font-weight: 600; }
.mp2-call { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--acc-soft); font-size: 14.5px; line-height: 1.5; }
.mp2-call svg { flex: none; margin-top: 2px; color: var(--acc-text); }
.mp2-big { margin-top: 14px; font-size: 42px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }

/* baselines */
.mp2-bc { display: flex; flex-direction: column; gap: 14px; }
.mp2-bc .mp2-big { margin-top: 0; color: var(--c, var(--ink)); }
.mp2-top2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mp2-mk { font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); }
.mp2-brow { display: flex; flex-direction: column; gap: 6px; }
.mp2-brow .mp2-l1 { font-size: 13.5px; }
.mp2-brow .mp2-l1 span { color: var(--ink2); }
.mp2-brow .mp2-l1 b { font-weight: 800; }

/* trend */
.mp2-tread { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.mp2-tread b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.mp2-tread span { font-size: 14px; color: var(--ink2); }
.mp2-tplot { position: relative; height: 280px; margin: 10px 16px 56px 52px; }
.mp2-tplot svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.mp2-gl { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.mp2-gl span { position: absolute; right: calc(100% + 10px); top: -7px; font-size: 11.5px; line-height: 1; color: var(--muted); }
.mp2-xt { position: absolute; top: calc(100% + 10px); transform: translateX(-50%); font-size: 11.5px; line-height: 1; color: var(--muted); white-space: nowrap; }
.mp2-bln { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--muted); }
.mp2-bln span { position: absolute; right: 0; top: 6px; padding: 0 4px; border-radius: 4px; background: var(--surf); font-size: 12px; font-weight: 600; color: var(--ink2); }
.mp2-tl { fill: none; stroke: var(--c, var(--acc)); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mp2-tl2 { fill: none; stroke: var(--ink2); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .85; }
.mp2-tleg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 16px 6px 52px; font-size: 13px; color: var(--ink2); }
.mp2-tleg span { display: inline-flex; align-items: center; gap: 8px; }
.mp2-tleg i { display: block; width: 22px; height: 0; }
.mp2-tleg-solid { border-top: 3px solid var(--acc); }
.mp2[data-market="1x2"] .mp2-tleg-solid { border-top-color: var(--home); }
.mp2[data-market="over25"] .mp2-tleg-solid { border-top-color: var(--over); }
.mp2[data-market="btts"] .mp2-tleg-solid { border-top-color: var(--btts); }
.mp2-tleg-dash { border-top: 2px dashed var(--ink2); }
.mp2-tnote, .mp2-tver { margin: 16px 16px 0 52px; font-size: 14px; line-height: 1.55; color: var(--ink2); max-width: 72ch; }
.mp2-tnote b, .mp2-tver b { color: var(--ink); }
.mp2-tver { padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.mp2-tver ul { margin: 6px 0 0; padding-left: 18px; }
.mp2-td { position: absolute; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mp2-td i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--acc)); border: 2px solid var(--c, var(--acc)); }
.mp2-td.is-hollow i { background: var(--surf); }
.mp2-td.is-sel i { width: 14px; height: 14px; box-shadow: 0 0 0 3px var(--surf), 0 0 0 5px var(--ink); }
.mp2-td:focus-visible { outline: 2px solid var(--ink); }

/* recent */
.mp2-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.mp2-sum > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surf); border: 1px solid var(--line); border-radius: 14px; }
.mp2-sum b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.mp2-sum small { font-size: 12.5px; color: var(--muted); }
.mp2-dh, .mp2-dr { display: grid; grid-template-columns: 120px 84px minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.mp2-dh { padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.mp2-dr { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mp2-dr:last-child { border-bottom: 0; }
.mp2-d { font-weight: 700; }
.mp2-n { color: var(--ink2); }
.mp2-m2 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mp2-m2 .mp2-bw { flex: 1; }
.mp2-m2 b { min-width: 48px; text-align: right; font-weight: 800; }
.mp2-m2 small { display: block; font-size: 12px; color: var(--muted); text-align: right; }
.mp2-fx { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.mp2-fx:first-child { border-top: 0; }
.mp2-cp { font-size: 12px; color: var(--muted); }
.mp2-mt { font-size: 15px; font-weight: 700; }
.mp2-pk { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--ink2); }
.mp2-res { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.mp2-res.is-ok { color: var(--good); }
.mp2-res.is-no { color: var(--bad); }
.mp2-had { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; }
.mp2-had i { display: block; height: 100%; }

/* leagues */
.mp2-lgh, .mp2-lg { display: grid; grid-template-columns: minmax(0, 1.3fr) 150px minmax(0, 2fr) 60px; gap: 6px 18px; align-items: center; }
.mp2-lgh { padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.mp2-lg { padding: 12px 0; border-bottom: 1px solid var(--line); }
.mp2-c-n { font-size: 14.5px; font-weight: 700; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.mp2-c-n small, .mp2-c-p small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.mp2-c-p small { margin-top: 4px; }
.mp2-c-a { text-align: right; font-weight: 800; }
.mp2-rng { position: relative; height: 22px; }
.mp2-ln { position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: var(--track); }
.mp2-ci { position: absolute; top: 7px; height: 8px; border-radius: 999px; background: var(--acc-soft); border: 1px solid var(--acc); }
.mp2-pt { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--acc); border: 2px solid var(--surf); }
.mp2-rf { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--muted); }
.mp2-ax2 { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--muted); padding-left: calc(100% * 0.28); }
.mp2-all { margin-top: 16px; }
.mp2-all > summary { cursor: pointer; font-size: 14px; font-weight: 700; padding: 12px 4px; color: var(--acc-text); }
.mp2-allbox { margin-top: 8px; }
.mp2-search { display: block; margin-bottom: 12px; }
.mp2-search input { width: 100%; max-width: 360px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surf2); color: var(--ink); font: inherit; }
.mp2-tablewrap { overflow: auto; max-height: 560px; }
.mp2-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mp2-table th, .mp2-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.mp2-table thead th { position: sticky; top: 0; background: var(--surf); font-size: 12px; font-weight: 600; color: var(--muted); }
.mp2-table tbody th { font-weight: 600; }
.mp2-table .mp2-num { text-align: right; white-space: nowrap; }
.mp2-sp { margin-top: 28px; margin-bottom: 12px; }

.mp2-soon { display: flex; gap: 20px; align-items: flex-start; padding: 24px; border: 2px dashed var(--line2); border-radius: 16px; }
.mp2-tag { flex: none; padding: 4px 10px; border: 1px solid var(--acc); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-text); white-space: nowrap; }
.mp2-soon p { margin-top: 6px; max-width: 70ch; color: var(--ink2); }

.mp2-defs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mp2-def { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surf); border: 1px solid var(--line); border-radius: 14px; }
.mp2-def b { font-size: 16px; font-weight: 800; }
.mp2-def p { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.mp2-dv { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.mp2-dv strong { color: var(--ink); font-weight: 800; }
.mp2-integ { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surf); font-size: 14.5px; line-height: 1.55; color: var(--ink2); }
.mp2-integ svg { flex: none; margin-top: 2px; color: var(--good); }

@media (max-width: 920px) {
    .mp2-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
    .mp2 h1 { font-size: 38px; max-width: none; }
    .mp2-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mp2-cal, .mp2-two, .mp2-three { grid-template-columns: minmax(0, 1fr); }
    .mp2-defs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .mp2 { padding: 0 16px 56px; }
    .mp2 h1 { font-size: 31px; }
    .mp2-lead { font-size: 16.5px; }
    .mp2-sh h2 { font-size: 25px; }
    .mp2-sec { padding-top: 48px; }
    .mp2-card { padding: 18px 16px; border-radius: 14px; }
    .mp2-tile { padding: 14px; }
    .mp2-v { font-size: 28px; }
    .mp2-tiles { gap: 10px; margin-top: 28px; }
    .mp2-plotwrap { padding: 6px 6px 56px 54px; }
    .mp2-tplot { margin: 10px 8px 52px 44px; height: 240px; }
    .mp2-tleg, .mp2-tnote, .mp2-tver { margin-left: 0; margin-right: 0; }
    .mp2-xt.is-minor { display: none; }
    .mp2-sum { grid-template-columns: minmax(0, 1fr); }
    .mp2-defs { grid-template-columns: minmax(0, 1fr); }
    .mp2-lh, .mp2-lr { grid-template-columns: 80px minmax(0, 1fr) 54px; gap: 12px; }
    .mp2-dh { display: none; }
    .mp2-dr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 14px; padding: 14px 0; }
    .mp2-dr .mp2-n { text-align: right; }
    .mp2-dr .mp2-m2 { grid-column: 1 / -1; }
    .mp2-lgh { display: none; }
    .mp2-lg { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 0; }
    .mp2-c-n { order: 1; }
    .mp2-c-a { order: 2; }
    .mp2-c-p { order: 3; grid-column: 1 / -1; }
    .mp2-c-r { order: 4; grid-column: 1 / -1; }
    .mp2-ax2 { padding-left: 0; }
    .mp2-soon { flex-direction: column; gap: 12px; padding: 18px; }
    .mp2-seg { width: 100%; }
    .mp2-seg button { flex: 1; padding: 0 8px; }
    .mp2-big { font-size: 36px; }
    .mp2-kv b { font-size: 24px; }
}

/* sticky jump nav (wide screens) */
@media (min-width: 921px) {
    .mp2-jump { position: sticky; top: var(--mp2-hdr, 57px); z-index: 20; padding: 10px 0; background: var(--bg); }
}

/* fix2: edge labels and margin rows */
.mp2-dl--edge { transform: translate(calc(-100% - 36px), -50%); }
@media (min-width: 561px) { .mp2-lr-m { grid-template-columns: 136px minmax(0, 1fr) 64px; } }
@media (max-width: 560px) { .mp2-lr-m { grid-template-columns: 122px minmax(0, 1fr) 52px; gap: 10px; } }

/* fix4: phone legend for the day table */
@media (max-width: 560px) {
    .mp2-dh { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 12px; }
    .mp2-dh span:nth-child(-n+2) { display: none; }
    .mp2-dh span:nth-child(n+3)::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
    .mp2-dh span:nth-child(3)::before { background: var(--home); }
    .mp2-dh span:nth-child(4)::before { background: var(--good); }
}

/* fix5: phone legend for the league chart */
@media (max-width: 560px) {
    .mp2-lgh { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 12px; }
    .mp2-lgh span:nth-child(1), .mp2-lgh span:nth-child(4) { display: none; }
}

/* links-v1: league and country names are links to their pages (target exists only) */
.mp2-c-n a, .mp2-table th[scope="row"] a { color: inherit; text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mp2-c-n a:hover, .mp2-table th[scope="row"] a:hover { text-decoration-style: solid; text-decoration-color: currentColor; }
.mp2-c-n a:focus-visible, .mp2-table th[scope="row"] a:focus-visible { outline: 2px solid var(--accent, #3b6cff); outline-offset: 2px; border-radius: 3px; }
