/* ============================================================================
   Broadcast extras: match report (rp-), embed explainer (em-), fair play (fp-).
   Declared once from extras/report.js; the other two plug-ins share it. The standalone
   overlay and embed pages ship their own inline CSS because they never load league.css.
   Spacing stays on the 4/8/12/16/24/32/48 scale from league.css. Same tokens, no new colours.
   ========================================================================== */

/* ---------------------------------------------------------------- report -- */
.rp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.rp-tile { padding: var(--s4); background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%); border: 1px solid var(--line); border-radius: var(--rl); min-width: 0; }
.rp-tile .rp-l { display: block; font: 600 11px/1.2 var(--fd); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s2); }
.rp-tile .rp-v { display: flex; align-items: center; gap: var(--s2); font: 700 20px/1.1 var(--fd); min-width: 0; }
.rp-tile .rp-v a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-tile .rp-v a:hover { color: var(--gold-2); }
.rp-tile .rp-s { display: block; margin-top: var(--s1); font: 500 12px/1.4 var(--fm); color: var(--ink-3); }
.rp-turn { padding: var(--s4); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--rl); background: var(--panel-2); margin-bottom: var(--s4); font-size: 15px; }
.rp-turn b { color: var(--gold-2); }
.rp-tl { border: 1px solid var(--line); border-radius: var(--rl); background: var(--bg-2); padding: var(--s3); margin-bottom: var(--s4); }
.rp-tl svg { display: block; width: 100%; height: auto; }
.rp-tl text { font: 500 11px var(--fm); fill: var(--ink-3); }
.rp-tl .rp-grid-line { stroke: var(--line-2); stroke-width: 1; }
.rp-tl .rp-turn-line { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; }
.rp-legend { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s2); font: 600 11px/1 var(--fd); letter-spacing: .1em; text-transform: uppercase; }
.rp-legend span { display: inline-flex; align-items: center; gap: var(--s1); }
.rp-legend i { width: 14px; height: 3px; display: inline-block; border-radius: 2px; }
.rp-sides { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.rp-side { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-top: 3px solid var(--line-2); border-radius: var(--rl); background: var(--panel); }
.rp-side.rp-Valkyra { border-top-color: var(--red); }
.rp-side.rp-Manticore { border-top-color: var(--green); }
.rp-side.rp-Lonestar { border-top-color: var(--blue); }
.rp-side .rp-n { font: 700 15px/1.2 var(--fd); margin: var(--s2) 0 var(--s2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-side dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: var(--s1) var(--s3); font-size: 13px; }
.rp-side dt { color: var(--ink-3); }
.rp-side dd { margin: 0; text-align: right; font-family: var(--fm); font-variant-numeric: tabular-nums; }
.rp-foot { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
@media (max-width: 760px) { .rp-sides { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- embed page -- */
.em-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s4); }
.em-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rl); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.em-card .h3 { margin: 0; }
.em-prev { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); overflow: hidden; }
.em-prev iframe { display: block; width: 100%; border: 0; background: transparent; }
.em-snip { display: flex; flex-direction: column; gap: var(--s2); }
.em-snip pre { margin: 0; padding: var(--s3); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r); font: 400 12px/1.5 var(--fm); color: var(--ink-2); white-space: pre-wrap; word-break: break-all; }
.em-snip .btn { align-self: flex-start; }
.em-note { margin-top: var(--s5); }

/* -------------------------------------------------------------- fair play -- */
.fp-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: var(--s4); align-items: start; }
.fp-sec { margin-bottom: var(--s5); }
.fp-sec p { max-width: 72ch; }
.fp-sec ul, .fp-sec ol { margin: 0 0 var(--s3); padding-left: 20px; max-width: 72ch; }
.fp-sec li { margin-bottom: var(--s1); }
.fp-ladder { list-style: none; padding: 0; margin: 0; counter-reset: rung; }
.fp-ladder li { display: grid; grid-template-columns: 36px 1fr; gap: var(--s3); align-items: start; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.fp-ladder li:last-child { border-bottom: 0; }
.fp-ladder li::before { counter-increment: rung; content: counter(rung); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 2px; background: var(--panel-3); color: var(--gold-2); font: 700 13px/1 var(--fm); }
.fp-ladder b { display: block; font: 700 15px/1.2 var(--fd); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.fp-ladder li.fp-red::before { background: rgba(226,82,76,.18); color: var(--danger); }
.fp-signals { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.fp-signals li { padding: var(--s3); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.fp-signals b { font-family: var(--fm); font-weight: 500; color: var(--gold-2); }
.fp-partner { margin-top: var(--s4); }
@media (max-width: 900px) { .fp-cols { grid-template-columns: 1fr; } }
