/* STATWIRE NFL Yards per Play (/nfl/yards-per-play). Loaded after /assets/site.css; script /assets/nfl-ypp.js.
   65 / 35 split: the 4-way Pass vs. Rush EPA graph card (left) and the NFL Offense Wire card (right). Above 1080px the
   wire card is pinned to the graph card's height (absolute inside .side-rail) and its list scrolls inside; at 1080px
   and below the two stack. The band colors come from the band-palette block in site.css (NFL #146C34); the wire band is slate. */
html[data-league="nfl"] { --accent: #15803D; --accent2: #166534; }
.yp { --yp-line: #CEDBC0; --yp-line2: #E3ECDA; --yp-panel2: #F5F8F1; --yp-ink: #0D1B21; --yp-muted: #55666F;
  --yp-acc: #15803D; --yp-soft: #E7F5EC; --yp-acc-ink: #0F5127; }

.split-grid {
  display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(330px, 1fr); gap: 16px; align-items: stretch;
  padding: var(--gutter) 0 14px;
}
@media (max-width: 1080px) { .split-grid { grid-template-columns: minmax(0, 1fr); } }

.yp-card { padding: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--yp-line); box-shadow: 0 1px 3px rgba(13, 27, 33, .04); }
:root .yp-card > .section-h {
  box-sizing: border-box; min-height: 48px; margin: 0; padding: 8px 16px; flex: 0 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px;
  border-radius: 13px 13px 0 0; white-space: normal; overflow: visible;
}
:root .yp-card > .section-h h2 { margin: 0; font-size: 13px; line-height: 1.15; white-space: normal; overflow: visible; }
:root .yp-card.yp-wire > .section-h { background: #1E293B; border-bottom-color: #0F172A; }

/* graph card band: title left, week select right, one row */
:root #graphCard > .section-h { flex-wrap: nowrap; }
:root #graphCard > .section-h h2 { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:root #graphCard > .section-h .sw-hd-sel { flex: 0 0 auto; margin: 0 0 0 auto; height: 27px; max-width: 210px; }
@media (max-width: 540px) {
  :root .yp-card > .section-h { padding: 8px 12px; }
  :root #graphCard > .section-h .sw-hd-sel { max-width: 170px; }
}

/* light filter bar: conference | quadrants | Red Zone (pinned right); wraps cleanly when it does not fit */
.graph-bar {
  padding: 8px 12px; background: var(--yp-panel2); border-bottom: 1px solid var(--yp-line2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; overflow: visible;
}
.yp-confs, .q-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; }
.graph-bar .yp-tab, .qpill, .rz-pill {
  box-sizing: border-box; height: 28px; margin: 0; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  font: 700 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: border-color .15s, background-color .15s, color .15s;
}
.graph-bar .yp-tab, .qpill { border: 1px solid var(--yp-line); background: #FFFFFF; color: var(--yp-muted); }
.graph-bar .yp-tab:hover, .qpill:hover { border-color: var(--yp-acc); color: var(--yp-ink); }
.graph-bar .yp-tab[aria-pressed="true"], .qpill[aria-pressed="true"] { background: var(--yp-soft); border-color: var(--yp-acc); color: var(--yp-acc-ink); font-weight: 800; }
#graphCard .graph-bar .yp-tab[data-conf="AFC"] { background: #FEF2F2; border-color: #FCA5A5; color: #991B1B; }
#graphCard .graph-bar .yp-tab[data-conf="AFC"]:hover { background: #FEE2E2; border-color: #D50A0A; }
#graphCard .graph-bar .yp-tab[data-conf="AFC"][aria-pressed="true"] { background: #D50A0A; border-color: #B00808; color: #FFFFFF; font-weight: 800; }
#graphCard .graph-bar .yp-tab[data-conf="NFC"] { background: #EFF6FF; border-color: #93C5FD; color: #013369; }
#graphCard .graph-bar .yp-tab[data-conf="NFC"]:hover { background: #DBEAFE; border-color: #013369; }
#graphCard .graph-bar .yp-tab[data-conf="NFC"][aria-pressed="true"] { background: #013369; border-color: #012650; color: #FFFFFF; font-weight: 800; }
.rz-pill { gap: 6px; margin-left: auto; background: #FEF2F2; border: 1px solid #F87171; color: #991B1B; font-weight: 800; }
.rz-pill .rz-dot { width: 7px; height: 7px; border-radius: 50%; background: #DC2626; flex: none; }
.rz-pill:hover { background: #FEE2E2; border-color: #DC2626; }
.rz-pill[aria-pressed="true"] { background: #DC2626; border-color: #B91C1C; color: #FFFFFF; box-shadow: 0 2px 8px rgba(220, 38, 38, .34); }
.rz-pill[aria-pressed="true"] .rz-dot { background: #FFFFFF; }
.lbl-sm { display: none; }
@media (max-width: 720px) {
  .graph-bar { padding: 8px; gap: 8px 12px; }
  .yp-confs { flex: 1 0 100%; }
  .lbl-lg { display: none; }
  .lbl-sm { display: inline; }
  .graph-bar .yp-tab, .qpill, .rz-pill { padding: 0 clamp(5px, 1.4vw, 9px); font-size: clamp(8.5px, 2.3vw, 10px); letter-spacing: 0; }
  .rz-pill { gap: 4px; }
}
@media (max-width: 360px) { .rz-pill .rz-dot { display: none; } .graph-bar { padding: 8px 6px; gap: 8px 8px; } .yp-confs, .q-pills { gap: 4px; } }

/* 4-way graph */
.plot-outer { padding: 14px 16px 12px; background: #FFFFFF; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.axis-top-lbl, .axis-bot-lbl { text-align: center; font: 800 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.axis-top-lbl { color: var(--yp-acc-ink); }
.axis-bot-lbl { color: #991B1B; }
.plot-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 11; min-height: 430px; max-height: 620px;
  border: 1.5px solid #C0D0B0; border-radius: 12px; overflow: hidden; user-select: none; -webkit-user-select: none;
  background: linear-gradient(135deg, rgba(220, 38, 38, .03) 0%, rgba(255, 255, 255, 0) 46%, rgba(21, 128, 61, .05) 100%), #FAFDF7;
}
@media (max-width: 680px) { .plot-stage { aspect-ratio: 1 / 1; min-height: 330px; } .plot-outer { padding: 12px 10px 10px; } }
.plot-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.plot-svg line { vector-effect: non-scaling-stroke; }
.plot-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; z-index: 6;
  font: 700 12px/1.5 var(--mono); color: var(--yp-muted); text-transform: uppercase; letter-spacing: .04em; }
.plot-empty[hidden] { display: none; }
.plot-empty button { display: block; margin: 10px auto 0; }
.q-lbl { position: absolute; z-index: 2; pointer-events: none; padding: 4px 8px; border-radius: 6px; font: 800 9.5px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.q-tr { top: 10px; right: 10px; background: #DCFCE7; color: #14532D; border: 1px solid #86EFAC; text-align: right; }
.q-tl { top: 10px; left: 10px; background: #FEF3C7; color: #78350F; border: 1px solid #FCD34D; }
.q-br { bottom: 10px; right: 10px; background: #E0F2FE; color: #0C4A6E; border: 1px solid #7DD3FC; text-align: right; }
.q-bl { bottom: 10px; left: 10px; background: #FEE2E2; color: #7F1D1D; border: 1px solid #FCA5A5; }
.q-lbl small { display: block; font-weight: 700; font-size: 8.5px; opacity: .85; letter-spacing: .04em; }
@media (max-width: 520px) { .q-lbl { font-size: 8px; padding: 3px 5px; } .q-lbl small { display: none; } }
.ax-tag { position: absolute; z-index: 2; pointer-events: none; font: 700 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .88); padding: 3px 6px; border-radius: 4px; border: 1px solid var(--yp-line2); }
.ax-right { right: 10px; top: 50%; transform: translateY(-50%); color: var(--yp-acc-ink); }
.ax-left { left: 10px; top: 50%; transform: translateY(-50%); color: #991B1B; }
.iso-lbl, .tick-lbl { position: absolute; z-index: 1; pointer-events: none; font: 700 8.5px/1 var(--mono); letter-spacing: .04em; color: #7B8A76; white-space: nowrap; }
.iso-lbl { transform: translate(-50%, -50%); background: rgba(250, 253, 247, .9); padding: 1px 3px; border-radius: 3px; }
.tick-lbl.is-x { transform: translate(-50%, 0); }
.tick-lbl.is-y { transform: translate(0, -50%); }
@media (max-width: 520px) { .iso-lbl { display: none; } }

.node-tb {
  position: absolute; z-index: 5; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; min-width: 34px; padding: 0; border-radius: 50%;
  font: 800 9.5px/1 var(--mono); letter-spacing: .02em;
  border: 2px solid #FFFFFF; box-shadow: 0 2px 6px rgba(12, 12, 17, .24);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  transition: left .45s cubic-bezier(.22, 1, .36, 1), top .45s cubic-bezier(.22, 1, .36, 1), transform .14s, opacity .2s, box-shadow .14s;
}
.node-tb[hidden] { display: none; }
.node-tb:hover, .node-tb:focus-visible { z-index: 20; outline: none; transform: translate(-50%, -50%) scale(1.22); box-shadow: 0 0 0 3px #A3E635, 0 6px 14px rgba(12, 12, 17, .28); }
.node-tb.is-dim { opacity: .2; z-index: 3; }
.node-tb.is-hl { z-index: 25; transform: translate(-50%, -50%) scale(1.26); box-shadow: 0 0 0 3px #FACC15, 0 8px 18px rgba(12, 12, 17, .32); opacity: 1; }
@media (max-width: 520px) { .node-tb { width: 28px; height: 28px; min-width: 28px; font-size: 8.5px; } }
.plot-tip { position: absolute; z-index: 30; pointer-events: none; background: #0C0C11; color: #FFFFFF; border-radius: 8px; padding: 7px 10px;
  font: 600 10.5px/1.4 var(--mono); box-shadow: 0 10px 24px rgba(12, 12, 17, .35); white-space: nowrap; }
.plot-tip[hidden] { display: none; }
.plot-tip b { color: #A3E635; }
.plot-foot { padding: 10px 14px; background: var(--yp-panel2); border-top: 1px solid var(--yp-line2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  font: 600 10.5px/1.4 var(--mono); color: var(--yp-muted); }
.plot-foot #plotMeta { color: var(--yp-ink); font-weight: 700; }

/* right rail: NFL Offense Wire */
.side-rail { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.side-rail > .card { flex: 1 1 auto; }
.disp-list { display: flex; flex-direction: column; overflow-x: hidden; }
@media (min-width: 1081px) {
  .side-rail > .card { position: absolute; inset: 0; height: 100%; }
  .disp-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #C0D0B0 transparent; }
}
@media (max-width: 1080px) { .side-rail { position: static; } .side-rail > .card { position: static; } .disp-list { max-height: 640px; overflow-y: auto; } }
.disp-list > .empty { margin: 0; padding: 22px 16px; text-align: center; font: 700 11px/1.5 var(--mono); color: var(--yp-muted); text-transform: uppercase; }
.disp-post { position: relative; padding: 12px 14px; border-bottom: 1px solid var(--yp-line2); display: flex; flex-direction: column; gap: 5px; background: #FFFFFF; transition: background-color .14s; min-width: 0; }
.disp-post:hover { background: #F9FBF7; }
.disp-post:last-child { border-bottom: 0; }
.disp-post.is-ypp-pin { margin: 10px 10px 4px; padding: 12px 13px; border-radius: 10px; border: 1.5px solid #EAB308; background: #FFFFFF; }
.disp-post.is-ypp-pin:hover { background: #FFFFFF; }
.disp-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0;
  font: 700 9.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--yp-muted); }
.disp-meta time { flex: 0 0 auto; }
.ypp-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 4px; background: #FEF9C3; border: 1px solid #EAB308; color: #713F12;
  font: 800 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.src-badge { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 4px; background: var(--yp-panel2); border: 1px solid var(--yp-line); color: #465343;
  font: 800 9px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.disp-title { margin: 0; font: 800 14px/1.28 var(--sans); color: var(--yp-ink); overflow-wrap: break-word; }
.disp-title a { text-decoration: none; }
.disp-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.disp-title a:hover { text-decoration: underline; text-decoration-color: var(--yp-acc); }
.disp-title a:focus-visible { outline: none; }
.disp-post:has(.disp-title a:focus-visible) { box-shadow: inset 0 0 0 2px #65A30D; }
.disp-excerpt { margin: 0; font: 400 12.5px/1.4 var(--sans); color: var(--yp-muted); overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.disp-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 2px; position: relative; z-index: 2; }
.tb-mini { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 19px; padding: 0 4px; border-radius: 4px; border: 0;
  font: 800 9.5px/1 var(--mono); cursor: pointer; text-rendering: optimizeLegibility; }
.tb-mini:hover { transform: translateY(-1px); }
.sub-box { flex: 0 0 auto; padding: 12px 14px; background: #F4F1EA; border-top: 1px solid rgba(30, 41, 59, .16); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sub-box-label { font: 800 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #0F172A; }
.sub-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 7px; background: #1E293B; color: #FFFFFF; text-decoration: none;
  font: 800 10.5px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; flex: none; }
.sub-btn:hover { background: #146C34; }

/* dossier (site.css .sheet) */
.yp-sheet .dos-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.yp-sheet .dos-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.yp-sheet .tb-lg { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(12, 12, 17, .24); font: 900 14px/1 var(--mono); }
.yp-sheet .dos-name { margin: 0; font: 900 19px/1.15 var(--sans); }
.yp-sheet .dos-sub { margin-top: 3px; font: 700 10.5px/1.35 var(--mono); color: #465343; text-transform: uppercase; letter-spacing: .04em; }
.yp-sheet .dos-rank { flex: none; padding: 8px 12px; border-radius: 10px; background: #ECF8D8; border: 1px solid #BFE08E; color: #1A2E05; text-align: center; }
.yp-sheet .dos-rank b { display: block; font: 900 21px/1 var(--mono); }
.yp-sheet .dos-rank span { font: 700 9px/1.2 var(--mono); text-transform: uppercase; }
.yp-sheet .dos-scope { margin: 0 0 10px; font: 700 10px/1.4 var(--mono); color: #465343; text-transform: uppercase; letter-spacing: .06em; }
.yp-sheet .dos-h { margin: 14px 0 8px; font: 800 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #465343; }
.yp-sheet .sh-rows.sh-grid { margin-top: 0; }
@media (min-width: 720px) { .sheet.yp-sheet { width: min(560px, calc(100% - 48px)); } }
