/* STATWIRE NFL Playoff Picture (/nfl/playoffs), Option 2B-2: c8 converging 14-team bracket tree with a diamond
   Super Bowl emblem + c4 AFC/NFC standings. Loaded after /assets/site.css. Script: /assets/nfl-playoffs.js. */
html[data-league="nfl"] { --accent: #15803D; --accent2: #166534; }
.card[data-tone="playoffs"] { --tone: #84CC16; }

/* ---------- bracket card ---------- */
#bracketCard { display: flex; flex-direction: column; }
#bracketCard > .note { margin: 0 0 10px; }
.bk-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; margin: 0 -2px; padding: 0 2px 4px; flex: 1 1 auto; display: flex; }
.bk-scroll::-webkit-scrollbar { height: 6px; }
.bk-scroll::-webkit-scrollbar-thumb { background: #C0D0B0; border-radius: 3px; }
.bk {
  position: relative; flex: 1 1 auto; min-width: 680px; min-height: 420px;
  display: grid; grid-template-columns: minmax(0, 1.18fr) 22px minmax(0, 1fr) 104px minmax(0, 1fr) 22px minmax(0, 1.18fr);
  grid-template-rows: auto minmax(0, 1fr); column-gap: 0; row-gap: 8px;
}
.bk > .empty { grid-column: 1 / -1; grid-row: 1 / -1; align-self: center; text-align: center; color: var(--muted); font-size: 13px; }
.bk-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.bk-wires path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bk-wires .afc { stroke: #DC2626; } .bk-wires .nfc { stroke: #2563EB; }
.bk-wires .faint { stroke-dasharray: 3 3; opacity: .65; }

.bk-hd { grid-row: 1; align-self: end; 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; position: relative; z-index: 1; }
.bk-hd.afc { background: #FEE2E2; color: #991B1B; } .bk-hd.nfc { background: #DBEAFE; color: #1E3A8A; }
.bk-hd.sb { background: #0C0C11; color: #A3E635; }
.bk-col { grid-row: 2; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; position: relative; z-index: 1; min-width: 0; }
.bk-col.c1 { grid-column: 1; } .bk-col.c2 { grid-column: 3; } .bk-col.c3 { grid-column: 4; align-items: center; justify-content: center; }
.bk-col.c4 { grid-column: 5; } .bk-col.c5 { grid-column: 7; }
.bk-hd.h1 { grid-column: 1; } .bk-hd.h2 { grid-column: 3; } .bk-hd.h3 { grid-column: 4; } .bk-hd.h4 { grid-column: 5; } .bk-hd.h5 { grid-column: 7; }

/* matchup cards */
.mc { background: #FFFFFF; border: 1.5px solid #CFD9DF; border-radius: 10px; overflow: hidden; min-width: 0; box-shadow: 0 1px 2px rgba(12,12,17,.05); }
.mc-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; }
.mc-h b { color: #0C0C11; font-weight: 800; }
.mc-t { display: grid; grid-template-columns: 16px 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; }
.mc-t + .mc-t { border-top: 1px solid #EEF2EA; }
.mc-t:hover { background: #F7FAF2; }
.mc-t:focus-visible { outline: 2px solid #15803D; outline-offset: -2px; }
.mc-t .s { font-family: var(--mono); font-size: 11px; font-weight: 700; color: #6B6B76; text-align: right; }
.mc-t .nm { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-t .r { font-family: var(--mono); font-size: 11px; color: #6B6B76; white-space: nowrap; }
.mc-t.home .nm::after { content: "H"; margin-left: 5px; font-family: var(--mono); font-size: 8.5px; font-weight: 800; color: #15803D;
  border: 1px solid #BBE5C8; border-radius: 3px; padding: 0 3px; vertical-align: 1px; }
.mc-tbd { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 6px; align-items: center; min-height: 30px; padding: 4px 8px;
  font-size: 11.5px; font-style: italic; color: #6B6B76; }
.mc-tbd + .mc-tbd, .mc-t + .mc-tbd { border-top: 1px solid #EEF2EA; }
.mc-tbd .s { font-style: normal; font-family: var(--mono); font-size: 11px; color: #9A9AA6; text-align: right; }
.mc-tbd b { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: #0C0C11; }
.mc.bye { border: 2px solid #CA8A04; background: #FEFCE8; }
.mc.bye .mc-h { background: #FEF3C7; border-bottom-color: #FDE68A; color: #854D0E; }
.mc.bye .mc-h b { color: #854D0E; }
.mc.bye .mc-t + .mc-tbd { border-top-color: #FDE68A; }
.mc.rs { border: 1.5px dashed #CEDBC0; background: #F5F8F1; box-shadow: none; }
.mc.rs .mc-h { background: transparent; border-bottom: 1px dashed #CEDBC0; }
.mc.rs .mc-tbd + .mc-tbd { border-top: 1px dashed #DCE6D0; }

/* diamond Super Bowl emblem */
.sb-em { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sb-dia { width: 72px; height: 72px; transform: rotate(45deg); border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0C0C11, #14532D); border: 2.5px solid #84CC16;
  box-shadow: 0 8px 20px rgba(12,12,17,.28), 0 0 0 4px rgba(132,204,22,.14); margin-top: 12px; }
.sb-in { transform: rotate(-45deg); display: flex; flex-direction: column; align-items: center; line-height: 1.05; text-align: center; }
.sb-in b { font-family: var(--mono); font-size: 13px; font-weight: 800; color: #A3E635; letter-spacing: .04em; white-space: nowrap; }
.sb-in span { font-family: var(--mono); font-size: 9.5px; font-weight: 700; color: #FFFFFF; letter-spacing: .1em; margin-top: 3px; white-space: nowrap; }
.sb-cap { margin-top: 10px; font-family: var(--mono); font-size: 9.5px; font-weight: 800; letter-spacing: .12em; color: #0C0C11; white-space: nowrap; }
.sb-cap i { font-style: normal; color: #DC2626; } .sb-cap em { font-style: normal; color: #2563EB; }
.sb-cap small { font-weight: 600; color: #9A9AA6; margin: 0 3px; }

/* in the hunt strip */
.hunt { margin-top: 12px; background: #FFFBEB; border: 1.5px dashed #D97706; border-radius: 9px; padding: 9px 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; flex: 0 0 auto; }
.hunt-k { font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #92400E; margin-right: 2px; white-space: nowrap; }
.hunt-g { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hunt-c { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .1em; padding: 2px 5px; border-radius: 4px; }
.hunt-c.afc { background: #FEE2E2; color: #991B1B; } .hunt-c.nfc { background: #DBEAFE; color: #1E3A8A; }
.hunt-sep { width: 1px; align-self: stretch; background: #FCD34D; }
.chip-t { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid #FCD34D; border-radius: 7px; background: #FFFFFF;
  font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.chip-t:hover { border-color: #D97706; }
.chip-t .s { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: #92400E; }
.chip-t .r, .chip-t .gb { font-family: var(--mono); font-size: 10.5px; color: #6B6B76; }
.chip-t .gb { color: #B45309; font-weight: 700; }

/* ---------- standings card ---------- */
.seg button[aria-selected="true"] { background: #0C0C11; color: #FFFFFF; box-shadow: none; }
#seedList .row { grid-template-columns: 26px auto minmax(0, 1fr) auto; gap: 8px; min-height: 36px; padding: 3px 4px; }
#seedList .row .n { font-size: 12px; }
#seedList .row .nm { font-size: 13px; display: flex; align-items: center; gap: 6px; min-width: 0; }
#seedList .row .nm > span:first-child { overflow: hidden; text-overflow: ellipsis; }
#seedList .row .val { display: flex; align-items: baseline; gap: 10px; font-size: 12px; }
#seedList .row .val .rec { color: #0C0C11; }
#seedList .row .val .df { min-width: 34px; text-align: right; font-weight: 700; }
.df.pos { color: #15803D; } .df.neg { color: #DC2626; } .df.zero { color: #6B6B76; }
#seedList .row.r1 { background: #FEFCE8; border: 1.5px solid #FACC15; border-radius: 8px; }
#seedList .row.cut { border-bottom: 2px dashed #DC2626; }
#seedList .row.out .n, #seedList .row.out .nm { color: #6B6B76; }
.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.bye { background: #FACC15; color: #0C0C11; }
.tg.div { background: #DCFCE7; color: #166534; }
.tg.wc { background: #EEF2FF; color: #3730A3; }
.tg.hunt { background: #FEF3C7; color: #92400E; }
.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; }

/* sheet bits */
.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) {
  .bk { min-height: 552px; }
  /* standings list fills the card flush with the bracket card: rows stretch to the space, scroll only if it runs out */
  #standCard .rows { display: flex; flex-direction: column; height: 0; min-height: 0; overflow-y: auto; }
  #standCard .rows > .row { flex: 1 0 auto; }
}
/* below the desktop grid the tree keeps a readable width and scrolls sideways inside the card */
@media (max-width: 1099px) { .bk { min-width: 780px; } }
@media (max-width: 719px) {
  .bk { min-height: 400px; }
  .hunt { gap: 8px; }
  .hunt-sep { display: none; }
}
