/* Match-only layout. No shared header, market list, odds or participation logic changes. */
html:root .pd-md.pd-md-v2 { width:100%; max-width:none; box-sizing:border-box; margin:0 auto; padding:0 0 32px; }
html:root .pd-md-v2 .pd-md-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(320px,1fr); grid-template-areas:none; gap:14px; align-items:start; }
.pd-md-v2 .pd-md-v2-left,.pd-md-v2 .pd-md-v2-right { display:flex; flex-direction:column; gap:14px; min-width:0; }
html:root .pd-md-v2 :is(.pd-md-lines,section.pd-md-form,.pd-md-h2h,.pd-md-talk,.pd-md-side) { grid-area:auto; min-width:0; }
html:root .pd-md-v2 .pd-md-side { position:static; max-height:none; overflow:visible; gap:14px; }
html:root .pd-md-v2 :is(.pd-md-hero,.pd-md-lines,.pd-md-panel,section.pd-md-form,.pd-md-h2h,.pd-md-probability) { border:1px solid var(--rt-border); border-radius:10px; background:var(--rt-surface-1); box-shadow:none; }
html:root .pd-md-v2 :is(.pd-md-panel,section.pd-md-form,.pd-md-h2h,.pd-md-probability) { padding:16px 18px; }
html:root .pd-md-v2 .pd-md-talk { grid-column:1/-1; margin-top:4px; }
html:root .pd-md-v2 #pdMdForm { padding:0; border:0; background:transparent; }
html:root .pd-md-v2 .pd-md-hero { display:grid; grid-template-columns:minmax(160px,.6fr) minmax(0,2fr); gap:8px 24px; padding:18px 20px; margin-bottom:14px; }
html:root .pd-md-v2 .pd-md-hero-top { grid-area:1/1/3/2; justify-content:flex-start; align-self:center; }
html:root .pd-md-v2 .pd-md-hero-league { white-space:normal; overflow:visible; overflow-wrap:anywhere; color:var(--rt-text); font-weight:600; }
html:root .pd-md-v2 .pd-md-hero-teams { grid-area:1/2; margin:0; gap:16px; }
html:root .pd-md-v2 .pd-md-hero-team { justify-content:flex-start; gap:8px; }
html:root .pd-md-v2 .pd-md-hero-team.is-away { justify-content:flex-start; }
html:root .pd-md-v2 .pd-md-hero-team .pd-md-hero-name { text-align:left; }
html:root .pd-md-v2 .pd-md-hero-team.is-away .pd-md-hero-name { text-align:right; }
html:root .pd-md-v2 .pd-md-badge { width:28px; height:28px; font-size:10px; border:0; background:transparent; font-weight:500; }
html:root .pd-md-v2 .pd-md-hero-name { font-size:22px; line-height:1.4; }
html:root .pd-md-v2 .pd-md-hero-meta { grid-area:2/2; margin:0; }
html:root .pd-md-v2 .pd-md-hero-solo { grid-area:1/2; margin:0; }
html:root .pd-md-v2 .pd-md-panel-head { flex-wrap:wrap; gap:6px 12px; }
html:root .pd-md-v2 .pd-md-panel-note { flex:0 1 auto; overflow-wrap:anywhere; }
html:root .pd-md-v2 .pd-md-lines>.pd-md-panel-head { padding:16px 18px 0; }
html:root .pd-md-v2 .pd-md-mk { padding:12px 18px; }
.pd-md-v2 .pd-md-prob-choice { --prob-color:var(--rt-data-blue); display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1.5fr) 58px; align-items:center; gap:14px; min-height:42px; border-top:1px solid var(--rt-border-soft); }
.pd-md-v2 .pd-md-prob-choice:nth-child(2) { --prob-color:var(--rt-text-2); }
.pd-md-v2 .pd-md-prob-choice:last-child { --prob-color:var(--rt-brand); }
.pd-md-v2 .is-balanced .pd-md-prob-choice { --prob-color:var(--rt-data-blue); }
.pd-md-v2 .pd-md-prob-label { min-width:0; font-size:13px; overflow-wrap:anywhere; }
.pd-md-v2 .pd-md-prob-bar { height:10px; min-width:0; background:var(--rt-surface-2); border-radius:6px; overflow:hidden; }
.pd-md-v2 .pd-md-prob-fill { display:block; height:100%; background:var(--prob-color); border-radius:inherit; }
.pd-md-v2 .pd-md-prob-choice strong { font-size:24px; font-weight:800; text-align:right; font-variant-numeric:tabular-nums; color:var(--rt-text); }
.pd-md-v2 .pd-md-prob-pending { min-height:86px; display:flex; align-items:center; justify-content:center; margin:0; color:var(--rt-muted); font-size:13px; }
html:root .pd-md-v2 .pd-md-infolist { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; }
html:root .pd-md-v2 .pd-md-inforow { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:4px; border:0; padding:0; }
html:root .pd-md-v2 .pd-md-inforow dd { text-align:left; }
html:root .pd-md-v2 .pd-md-form-cols { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
html:root .pd-md-v2 .pd-md-form-col+.pd-md-form-col { padding-left:16px; }
html:root .pd-md-v2 :is(.pd-md-form-name,.pd-md-form-opp,.pd-md-h2h-home,.pd-md-h2h-away,.pd-md-h2h-lg) { white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
html:root .pd-md-v2 .pd-md-form-team { flex-wrap:wrap; gap:4px 8px; }
html:root .pd-md-v2 .pd-md-form-row { gap:6px; font-size:12px; }
html:root .pd-md-v2 .pd-md-h2h-row { display:grid; grid-template-columns:62px minmax(0,1fr) auto minmax(0,1fr); gap:6px; font-size:11px; }
html:root .pd-md-v2 .pd-md-h2h-lg { display:block; grid-column:2/-1; font-size:10px; }
html:root .pd-md-v2 .pd-md-out-name { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:1100px) {
 html:root .pd-md-v2 .pd-md-grid { grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr); }
 html:root .pd-md-v2 .pd-md-form-cols { gap:10px; }
 html:root .pd-md-v2 .pd-md-form-col+.pd-md-form-col { padding-left:10px; }
 html:root .pd-md-v2 .pd-md-form-row { grid-template-columns:32px 12px minmax(0,1fr) auto 18px; gap:4px; font-size:11px; }
}
@media(max-width:900px) {
 html:root .pd-md-v2 .pd-md-grid { display:flex; flex-direction:column; gap:14px; }
 html:root .pd-md-v2 :is(.pd-md-v2-left,.pd-md-v2-right,.pd-md-side) { display:contents; }
 html:root .pd-md-v2 .pd-md-grid>*,html:root .pd-md-v2 :is(.pd-md-v2-left,.pd-md-v2-right,.pd-md-side)>* { box-sizing:border-box; width:100%; min-width:0; }
 html:root .pd-md-v2 .pd-md-probability { order:1; }
 html:root .pd-md-v2 .pd-md-side>.pd-md-panel:not(.pd-md-info) { order:2; }
 html:root .pd-md-v2 .pd-md-lines { order:3; }
 html:root .pd-md-v2 section.pd-md-form { order:4; }
 html:root .pd-md-v2 .pd-md-info { order:5; }
 html:root .pd-md-v2 .pd-md-h2h { order:6; }
 html:root .pd-md-v2 .pd-md-talk { order:7; }
}
@media(max-width:700px) {
 html:root .pd-md.pd-md-v2 { width:calc(100% - 4px); margin:0 2px; }
 html:root .pd-md-v2 .pd-md-hero { grid-template-columns:minmax(0,1fr); padding:14px; gap:10px; }
 html:root .pd-md-v2 .pd-md-hero-top { grid-area:auto; }
 html:root .pd-md-v2 .pd-md-hero-teams { grid-area:auto; gap:8px; }
 html:root .pd-md-v2 .pd-md-hero-meta { grid-area:auto; }
 html:root .pd-md-v2 .pd-md-hero-solo { grid-area:auto; }
 html:root .pd-md-v2 .pd-md-badge { display:none; }
 html:root .pd-md-v2 .pd-md-hero-team,html:root .pd-md-v2 .pd-md-hero-team.is-away { flex-direction:row; }
 html:root .pd-md-v2 .pd-md-hero-name { font-size:16px; }
 html:root .pd-md-v2 :is(.pd-md-panel,section.pd-md-form,.pd-md-h2h,.pd-md-probability) { padding:14px; }
 html:root .pd-md-v2 .pd-md-mk { padding:12px 14px; }
 html:root .pd-md-v2 .pd-md-lines>.pd-md-panel-head { padding:14px 14px 0; }
 .pd-md-v2 .pd-md-prob-choice { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 44px; gap:8px; min-height:42px; }
 .pd-md-v2 .pd-md-prob-choice strong { font-size:21px; }
 .pd-md-v2 .pd-md-prob-label { font-size:12px; }
 html:root .pd-md-v2 .pd-md-form-cols { grid-template-columns:minmax(0,1fr); gap:14px; }
 html:root .pd-md-v2 .pd-md-form-col+.pd-md-form-col { margin:0; padding:14px 0 0; border-left:0; border-top:1px solid var(--rt-border); }
 html:root .pd-md-v2 .pd-md-h2h-row { grid-template-columns:48px minmax(0,1fr) auto minmax(0,1fr); }
 html:root .pd-md-v2 .pd-md-stakes { gap:6px; }
}

/* Detail-only color completion. Shared Violet tokens already supply the card,
 * odds, probability and semantic status palettes. Override the shared Coral CTA
 * exception here without changing dimensions or other pages' action colors. */
html:root .pd-md.pd-md-v2 .pd-md-talk { background-color:var(--rt-surface-1); }
html:root .pd-md.pd-md-v2 :is(.pd-md-cta,.pd-md-cpost):not(:disabled) {
 background-color:var(--rt-brand); color:var(--rt-on-brand);
}
html:root .pd-md.pd-md-v2 :is(.pd-md-cta,.pd-md-cpost):hover:not(:disabled) {
 background-color:var(--rt-accent-hover);
}
html:root .pd-md.pd-md-v2 :is(.pd-md-cta,.pd-md-cpost):disabled {
 background-color:var(--rt-surface-2); color:var(--rt-muted); border-color:var(--rt-border);
}
html:root .pd-md.pd-md-v2 .pd-md-hero-when.is-soon { color:var(--rt-data-blue); }
html:root .pd-md.pd-md-v2 :is(a,button,input,select,textarea):focus-visible { outline-color:var(--rt-brand); }
