/* STATWIRE MLB Playoff Map (/mlb/playoffs), Option #3 hybrid: c8 AL / NL split stitched baseball converging on a
   World Series diamond + inspector bar, c4 AL / NL standings, and the 12-team bracket modal.
   Loaded after /assets/site.css. Script: /assets/mlb-playoffs.js. */
html[data-league="mlb"] { --accent: #C2410C; --accent2: #9A3412; }
.card[data-tone="playoffs"] { --tone: #84CC16; }

/* ---------- header button (same pill as .sw-hd-sel) ---------- */
.section-h .sw-hd-btn {
  box-sizing: border-box; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid #2F3A2F; background: #181E18;
  color: #FFFFFF; font-family: var(--mono); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; line-height: 26px;
  white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: border-color .15s;
}
.section-h .sw-hd-btn:hover, .section-h .sw-hd-btn:focus-visible { border-color: #84CC16; outline: none; }
.section-h .sw-hd-btn span { font-size: 11px; }
@media (max-width: 540px) { .section-h .sw-hd-btn { font-size: 9.5px; padding: 0 9px; } }

/* ---------- baseball map ---------- */
#mapCard { display: flex; flex-direction: column; }
#mapCard > .note { margin: 0 0 8px; }
.bm-axis { display: flex; justify-content: space-between; align-items: center; gap: 8px; max-width: 560px; width: 100%; margin: 0 auto 4px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.bm-axis .bm-al, .bm-axis .bm-nl { color: #0C0C11; }
.bm-axis .bm-bal { color: #6B6B76; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.bm-wrap { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.bm-wrap > .empty { color: var(--muted); font-size: 13px; text-align: center; }
.bm-svg { display: block; width: 100%; max-width: 520px; height: auto; overflow: visible; font-family: var(--mono); }
.bm-svg .hemi { fill: transparent; transition: fill .2s; }
.bm-svg .wm { font-family: var(--sans, inherit); font-size: 96px; font-weight: 900; fill: #0C0C11; opacity: .045; text-anchor: middle; letter-spacing: -.02em; }
.bm-svg .seam { fill: none; stroke: #DC2626; stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .55; }
.bm-svg .stitch { fill: none; stroke: #DC2626; stroke-width: 1.2; stroke-linecap: round; opacity: .45; }
.bm-svg .balw { fill: rgba(132,204,22,.09); }
.bm-svg .eq { stroke: #9AA79A; stroke-width: 1; stroke-dasharray: 2 4; opacity: .7; }
.bm-svg .mid { stroke: #0C0C11; stroke-width: 1.4; opacity: .28; }
.bm-svg .ring-bye { fill: rgba(250,204,21,.07); stroke: #CA8A04; stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .8; }
.bm-svg .ring-cut { fill: none; stroke: #DC2626; stroke-width: 2.2; stroke-dasharray: 7 5; }
.bm-svg .bm-pill rect { fill: #FFFFFF; stroke: #DC2626; stroke-width: 1; }
.bm-svg .bm-pill text { font-size: 6.5px; font-weight: 800; fill: #DC2626; text-anchor: middle; letter-spacing: .08em; }
.bm-svg .bm-axl rect { fill: #0C0C11; }
.bm-svg .bm-axl text { font-size: 7px; font-weight: 800; fill: #A3E635; text-anchor: middle; letter-spacing: .08em; }
.bm-svg .bm-ws rect { fill: #0C0C11; stroke: #84CC16; stroke-width: 2.5; filter: drop-shadow(0 4px 8px rgba(12,12,17,.28)); }
.bm-svg .bm-ws text { font-size: 8.5px; font-weight: 800; fill: #A3E635; text-anchor: middle; letter-spacing: .08em; }
.bm-svg .bm-ws text + text { fill: #FDBA74; }
.bm-svg .bm-link { stroke: #84CC16; stroke-width: 2; stroke-dasharray: 3 3; stroke-linecap: round; pointer-events: none; }
.bm-svg .bm-t { cursor: pointer; outline: none; transition: opacity .2s; }
.bm-svg .bm-t .halo { fill: #FFFFFF; stroke-width: 2.6; }
.bm-svg .bm-t text { font-size: 7.6px; font-weight: 800; text-anchor: middle; letter-spacing: -.02em; pointer-events: none; }
.bm-svg .bm-t .sel-ring { fill: none; stroke: transparent; stroke-width: 2.5; }
.bm-svg .bm-t:hover .halo, .bm-svg .bm-t:focus-visible .halo { stroke-width: 3.6; }
.bm-svg .bm-t:focus-visible .sel-ring { stroke: #0C0C11; stroke-dasharray: 2 2; }
.bm-svg .bm-t.is-sel .sel-ring { stroke: #84CC16; fill: rgba(132,204,22,.16); }
.bm-svg[data-view="AL"] .side-NL, .bm-svg[data-view="NL"] .side-AL { opacity: .16; }
.bm-svg[data-view="AL"] rect.side-NL, .bm-svg[data-view="NL"] rect.side-AL { opacity: 1; fill: rgba(12,12,17,.045); }

/* ---------- inspector bar ---------- */
.bm-insp { margin-top: 10px; background: #FFFFFF; color: #111810; border-radius: 12px; padding: 10px 12px; border: 1px solid #CEDBC0; flex: 0 0 auto; }
.bm-insp:empty { display: none; }
.ins-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ins-seed { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: var(--h); color: #FFFFFF; }
.ins-nm { font-size: 14.5px; font-weight: 800; margin-right: 2px; }
.ins-tier { font-family: var(--mono); font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--h); color: #111810; }
.ins-prof { font-family: var(--mono); font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.ins-prof.p-pit { background: #DBEAFE; color: #1E40AF; } .ins-prof.p-hit { background: #FFEDD5; color: #9A3412; } .ins-prof.p-bal { background: #ECFCCB; color: #3F6212; }
.ins-more { margin-left: auto; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid #84CC16; background: #ECF8D8; color: #1A2E05;
  font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .06em; cursor: pointer; }
.ins-more:hover, .ins-more:focus-visible { background: #84CC16; color: #0C0C11; outline: none; }
.ins-kpis { margin: 9px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ins-kpis > div { background: #F5F8F1; border: 1px solid #E3ECDA; border-radius: 9px; padding: 6px 9px; min-width: 0; }
.ins-kpis dt { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .08em; color: #465343; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-kpis dd { margin: 2px 0 0; font-family: var(--mono); font-size: 16px; font-weight: 800; color: #111810; }
.ins-kpis dd small { display: block; font-size: 9.5px; font-weight: 600; color: #465343; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-kpis dd.pos { color: #15803D; } .ins-kpis dd.neg { color: #B91C1C; }   /* 5.0:1 / 6.5:1 on #F5F8F1 */
@media (max-width: 600px) { .ins-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ins-more { margin-left: 0; } }

/* legend */
.bm-legend { justify-content: center; }
.bm-legend i.hl { width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; box-shadow: inset 0 0 0 2.5px var(--h); }
.bm-legend i.cutk { width: 18px; height: 0; border-radius: 0; border-top: 2px dashed #DC2626; vertical-align: 3px; }

/* ---------- standings card ---------- */
#seedList .grp { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 46px 40px; gap: 6px; align-items: end;
  padding: 9px 4px 4px; border-bottom: 1px solid var(--line); cursor: default; font-family: var(--mono); font-size: 9px; font-weight: 800;
  letter-spacing: .1em; color: #6B6B76; text-transform: uppercase; }
#seedList .grp:first-child { padding-top: 2px; }
#seedList .grp b { color: #0C0C11; font-weight: 800; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#seedList .grp span { text-align: right; }
#seedList .row { grid-template-columns: 30px auto minmax(0, 1fr) 46px 40px; gap: 6px; min-height: 36px; padding: 3px 4px; border-left: 3px solid transparent; }
#seedList .row .n { font-size: 10.5px; font-weight: 800; text-align: left; color: #0C0C11; }
#seedList .row .n::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--h); margin-right: 3px; vertical-align: 1px; }
#seedList .row .nm { font-size: 13px; min-width: 0; }
#seedList .row .nm-l { display: flex; align-items: center; gap: 5px; min-width: 0; }
#seedList .row .nm-l > span:first-child { overflow: hidden; text-overflow: ellipsis; }
#seedList .row .nm small { font-size: 10px; }
#seedList .row .c { font-family: var(--mono); font-size: 12px; text-align: right; color: #0C0C11; font-weight: 700; }
#seedList .row .df { font-family: var(--mono); font-size: 12px; text-align: right; font-weight: 700; }
.df.pos { color: #15803D; } .df.neg { color: #DC2626; } .df.zero { color: #6B6B76; }
#seedList .row.bye { background: #FEFCE8; border: 1.5px solid #FACC15; border-radius: 8px; }
#seedList .row.bye + .row.bye { margin-top: 3px; }
#seedList .row.wc { background: #F0F9FF; }
#seedList .row.cut { border-bottom: 2px dashed #DC2626; }
#seedList .row.out .n, #seedList .row.out .nm { color: #6B6B76; }
#seedList .row.is-sel { box-shadow: inset 3px 0 0 #84CC16; background: #F7FEE7; }
#seedList .row.bye.is-sel { background: #FEF9C3; }
.tg { flex: 0 0 auto; font-family: var(--mono); font-size: 8.5px; font-weight: 800; letter-spacing: .06em; padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.tg.clin { background: #0C0C11; color: #A3E635; } .tg.elim { background: #F3F4F6; color: #6B6B76; }
.cutlbl { list-style: none; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .12em; color: #DC2626; text-align: right; padding: 2px 4px 0; cursor: default; border: 0; }
.sh-tier { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 2px 7px; border-radius: 5px; }

@media (min-width: 1100px) {
  /* standings fill the card flush with the map card: rows stretch to the space, scroll only if it runs out */
  #standingsCard .rows { display: flex; flex-direction: column; height: 0; min-height: 0; overflow-y: auto; }
  #standingsCard .rows > .row { flex: 1 0 auto; }
}
@media (max-width: 1099px) { #standingsCard .rows { max-height: 640px; overflow-y: auto; } }

/* ---------- bracket modal ---------- */
.bk-scrim { position: fixed; inset: 0; background: rgba(12,12,17,.45); z-index: 60; }
.bk-modal { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1080px, calc(100% - 32px));
  max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain; background: #FFFFFF; border-radius: 18px;
  box-shadow: 0 24px 64px rgba(12,12,17,.32); padding: 16px 18px 18px; }
.bk-modal[hidden], .bk-scrim[hidden] { display: none; }
body.bk-open { overflow: hidden; }
.bk-mh { display: flex; align-items: center; gap: 10px; background: #0C0C11; border-radius: 10px; padding: 6px 6px 6px 14px; margin-bottom: 10px; }
.bk-mh h2 { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #FFFFFF; }
.bk-mh .sh-x { width: 34px; height: 34px; background: #181E18; border-color: #2F3A2F; color: #A3E635; }
.bk-modal > .note { margin: 0 2px 10px; }
.bx-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.bx-grid { display: grid; min-width: 900px; grid-template-columns: repeat(3, minmax(0, 1fr)) 150px repeat(3, minmax(0, 1fr)); grid-template-rows: auto minmax(300px, auto);
  column-gap: 10px; row-gap: 8px; }
.bx-hd { grid-row: 1; justify-self: center; font-family: var(--mono); font-size: 9.5px; font-weight: 800; letter-spacing: .12em; padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.bx-hd.al { background: #FFEDD5; color: #9A3412; } .bx-hd.nl { background: #E0F2FE; color: #0369A1; } .bx-hd.ws { background: #0C0C11; color: #A3E635; }
.bx-hd.c1, .bx-col.c1 { grid-column: 1; } .bx-hd.c2, .bx-col.c2 { grid-column: 2; } .bx-hd.c3, .bx-col.c3 { grid-column: 3; } .bx-hd.c4, .bx-col.c4 { grid-column: 4; }
.bx-hd.c5, .bx-col.c5 { grid-column: 5; } .bx-hd.c6, .bx-col.c6 { grid-column: 6; } .bx-hd.c7, .bx-col.c7 { grid-column: 7; }
.bx-col { grid-row: 2; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 0; }
.bx-col.c4 { align-items: center; justify-content: center; gap: 14px; }
.bx { background: #FFFFFF; border: 1.5px solid #CFD9DF; border-radius: 10px; overflow: hidden; min-width: 0; width: 100%; box-shadow: 0 1px 2px rgba(12,12,17,.05); }
.bx-h { display: flex; justify-content: space-between; gap: 6px; padding: 4px 8px; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .08em;
  color: #6B6B76; background: #F5F8F1; border-bottom: 1px solid #E3EAD9; white-space: nowrap; overflow: hidden; }
.bx-h b { color: #0C0C11; }
.bx-t { display: grid; grid-template-columns: 24px auto minmax(0, 1fr) auto; align-items: center; gap: 6px; width: 100%; min-height: 30px; padding: 4px 8px;
  border: 0; background: transparent; font: inherit; text-align: left; color: var(--ink); cursor: pointer; }
.bx-t + .bx-t, .bx-t + .bx-tbd, .bx-tbd + .bx-t, .bx-tbd + .bx-tbd { border-top: 1px solid #EEF2EA; }
.bx-t:hover { background: #F7FAF2; }
.bx-t .s { font-family: var(--mono); font-size: 10px; font-weight: 800; color: #6B6B76; }
.bx-t .nm { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-t .r { font-family: var(--mono); font-size: 11px; color: #6B6B76; }
.bx-t .r b { color: #0C0C11; font-size: 12px; }
.bx-t.won { background: #F7FEE7; } .bx-t.won .nm::after { content: " ✓"; color: #4D7C0F; }
.bx-t.lost { opacity: .55; }
.bx-t.home .s::after { content: " H"; color: #C2410C; font-size: 8.5px; }
.bx-tbd { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px; align-items: center; min-height: 30px; padding: 4px 8px; font-size: 11.5px; font-style: italic; color: #6B6B76; }
.bx-tbd .s { font-style: normal; font-family: var(--mono); font-size: 10px; color: #9A9AA6; }
.bx-dia { width: 76px; height: 76px; transform: rotate(45deg); border-radius: 12px; display: grid; place-items: center; margin: 14px 0 8px;
  background: linear-gradient(135deg, #0C0C11, #431407); border: 2.5px solid #84CC16; box-shadow: 0 8px 20px rgba(12,12,17,.28), 0 0 0 4px rgba(194,65,12,.18); }
.bx-dia-in { transform: rotate(-45deg); display: flex; flex-direction: column; align-items: center; line-height: 1.05; }
.bx-dia-in b { font-family: var(--mono); font-size: 10.5px; font-weight: 800; color: #A3E635; }
.bx-dia-in span { font-family: var(--mono); font-size: 8.5px; font-weight: 700; color: #FDBA74; letter-spacing: .1em; margin-top: 3px; white-space: nowrap; }
.bx-champ { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.bx-champ b { color: #4D7C0F; }
.bx-ws { border-color: #84CC16; }
.bx-byes { margin-top: 12px; background: #FEFCE8; border: 1.5px dashed #CA8A04; border-radius: 9px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bx-k { font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #854D0E; }
.bx-sep { width: 1px; align-self: stretch; background: #FACC15; }
.chip-t { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid #FACC15; border-radius: 7px; background: #FFFFFF; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
.chip-t:hover { border-color: #CA8A04; }
.chip-t .s { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: #854D0E; }
@media (max-width: 719px) {
  .bk-modal { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; max-height: 90vh; border-radius: 18px 18px 0 0; padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); }
  .bm-axis { font-size: 8.5px; letter-spacing: .06em; } .bm-axis .bm-bal { display: none; }
}
