/* The GameDay Lab — NFL ATD layout repair v161.
 * Scoped to the current Research/Stats site and the ATD view only.
 * Visual/presentation rules; no alteration of research, odds, auth or data.
 * The older 2-column NFL shell is the main source of the cramped ATD view. */

html.fie-unified-preview.fie-research-stats-nav body[data-sport="nfl"] .nfl-v4-shell.nfl-atd-focus-shell{
 display:flex!important;
 flex-direction:column!important;
 align-items:stretch!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-auto-flow:row!important;
 column-gap:0!important;
 row-gap:16px!important;
 width:100%!important;
 max-width:none!important;
 margin:0 auto!important;
 padding:22px clamp(16px,2.8vw,44px) 100px!important;
 box-sizing:border-box!important;
}
html.fie-unified-preview.fie-research-stats-nav body[data-sport="nfl"] .nfl-atd-focus-shell>.nfl-v4-tabs{
 display:none!important; /* the shared Research/Stats nav already owns these destinations */
}
html.fie-unified-preview.fie-research-stats-nav body[data-sport="nfl"] .nfl-atd-focus-shell>:not(.nfl-v4-tabs){
 grid-column:1!important;
 grid-row:auto!important;
 width:100%!important;
 max-width:100%!important;
 min-width:0!important;
 box-sizing:border-box!important;
}
/* NFL identity is still the approved photo/flask, but no longer a towering card. */
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell>.nfl-v4-hero{
 min-height:116px!important;
 padding:20px 25px!important;
 margin:0!important;
 border-radius:12px!important;
 background-position:center center!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-v5-hero-tagline{
 font-size:11px!important;
 line-height:1.5!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-v6-hero-ball{
 width:98px!important;height:95px!important;max-width:22%!important;
 right:20px!important;top:9px!important;
}
/* Week selection belongs on its own fully-wide row, never beside the banner. */
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell>.nfl-season-week-nav{
 justify-content:space-between!important;
 min-height:76px!important;
 padding:12px 20px!important;
 border-radius:10px!important;
 gap:15px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell>.nfl-season-week-nav:before{
 font-size:14px!important;
 letter-spacing:.2px!important;
 white-space:normal!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-season-week-nav>div{
 flex:0 1 310px!important;
 width:310px!important;
 text-align:center!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-season-week-nav select{
 min-height:42px!important;
 font-size:15px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-season-week-nav small{
 font-size:12px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-v6-week-arrow{
 width:46px!important;flex:0 0 46px!important;min-height:46px!important;
}
/* Two clear ATD destinations, not another complicated dashboard menu. */
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell>.nfl-atd-modebar{
 padding:10px 13px!important;
 border-radius:10px!important;
 gap:10px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-atd-modebar button{
 min-height:46px!important;
 font-size:13px!important;
 padding:10px 17px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-atd-modebar>span{
 font-size:11px!important;
 letter-spacing:.1px!important;
}
/* Retain access to the existing historical pregame archive when the retired
   legacy sidebar is hidden on the ATD-focused route. */
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-atd-archive-link{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:46px;padding:10px 16px;border:1px solid #807059;
 border-radius:7px;color:#e7d6b6;background:#252527;
 font:850 12px/1.25 Inter,Segoe UI,Arial,sans-serif;
 text-decoration:none;white-space:nowrap;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-atd-archive-link:hover,
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-atd-archive-link:focus-visible{
 background:#37322f;color:#ffe6a7;outline:2px solid #c8a464;outline-offset:2px;
}
@media(max-width:780px){
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-atd-archive-link{
  grid-column:1/-1;
 }
}
/* Use the full available canvas. The approved NFL stadium remains ambient
   behind the panel instead of taking up a blank third of the screen. */
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell>.gdl-atd-hub{
 padding:clamp(17px,2.4vw,32px)!important;
 border-radius:14px!important;
 background:linear-gradient(140deg,rgba(29,29,31,.985),rgba(20,20,19,.985))!important;
 box-shadow:0 20px 50px rgba(0,0,0,.52)!important;
 overflow:visible!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-head{
 display:flex!important;
 flex-wrap:wrap!important;
 justify-content:space-between!important;
 gap:14px!important;
 align-items:center!important;
 margin:0 0 20px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-head>div{
 flex:1 1 540px!important;
 min-width:0!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-head h2{
 font-size:clamp(26px,3vw,38px)!important;
 line-height:1.2!important;
 margin:6px 0 9px!important;
 letter-spacing:-.45px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-head p{
 font-size:15px!important;line-height:1.6!important;
 max-width:900px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-chip{
 font-size:11px!important;padding:10px 12px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-source{
 padding:13px 16px!important;
 font-size:12px!important;line-height:1.55!important;
 border-radius:9px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-source b,
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-source span{
 font-size:12px!important;line-height:1.5!important;
}
/* Matchup and position filters are primary controls, not micro-labels. */
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-filters{
 display:grid!important;
 grid-template-columns:minmax(0,2fr) minmax(175px,1fr)!important;
 gap:14px!important;
 margin:18px 0!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-filters label{
 font-size:12px!important;
 letter-spacing:.3px!important;
 gap:9px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-filters select{
 min-height:48px!important;font-size:15px!important;
 padding:10px 13px!important;
 border-radius:8px!important;
}
/* Matchup scorestrip and factual provenance. */
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-match-showcase{
 gap:18px!important;
 padding:18px 22px!important;
 border-radius:11px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-match-side>strong{
 font-size:clamp(16px,1.8vw,22px)!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-team-emblem{
 width:55px!important;height:55px!important;flex-basis:55px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-match-vs small{
 font-size:12px!important;white-space:normal!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-readme{
 padding:15px 2px!important;
 font-size:13px!important;
 line-height:1.65!important;
}
/* Desktop: equal readable team columns; tablet/phone: stack them. */
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-columns{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:20px!important;
 align-items:start!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-team{
 min-width:0!important;
 padding:20px!important;
 border-radius:12px!important;
 background:#1b1b1d!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-team-head{
 gap:13px!important;
 padding-bottom:15px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-team-head strong{
 font-size:20px!important;
 line-height:1.25!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-team-head small{
 font-size:12px!important;
 line-height:1.4!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-opponent{
 font-size:11px!important;letter-spacing:.3px!important;
 margin:18px 0 9px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-defense{
 padding:15px!important;
 border-radius:9px!important;
 gap:12px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-defense>strong{
 font-size:13px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-defense-kpis{
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:10px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-defense-kpis span{
 font-size:12px!important;
 line-height:1.45!important;
 padding-right:7px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-defense-kpis b{
 font-size:26px!important;
 line-height:1.1!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-roster-head{
 flex-wrap:wrap!important;
 align-items:flex-start!important;
 gap:6px 15px!important;
 padding:20px 0 11px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-roster-head b{
 font-size:13px!important;
 letter-spacing:.3px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-roster-head span{
 font-size:12px!important;
}
/* Each player is a legible profile row: headshot / identity / two facts.
   Expanded cards retain every verified metric supplied by the factual API. */
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-list{
 gap:9px!important;
 margin-bottom:12px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player{
 border-radius:9px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player summary{
 display:grid!important;
 grid-template-columns:55px minmax(120px,1fr) minmax(150px,auto) 19px!important;
 align-items:center!important;
 gap:12px!important;
 padding:13px 14px!important;
 min-height:84px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-avatar{
 width:54px!important;height:54px!important;flex-basis:54px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-identity strong{
 font-size:16px!important;
 line-height:1.35!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-identity small{
 font-size:12px!important;
 line-height:1.4!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-headfacts{
 display:grid!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:10px!important;
 text-align:left!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-headfacts span{
 gap:5px!important;
 font-size:11px!important;
 letter-spacing:.2px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-headfacts b{
 font-size:14px!important;
 line-height:1.3!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-body{
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:10px!important;
 padding:13px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-metric{
 padding:12px!important;border-radius:7px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-metric span{
 font-size:12px!important;line-height:1.4!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-metric strong{
 font-size:23px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-more>summary{
 min-height:48px!important;font-size:12px!important;
 border-radius:8px!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-footnote{
 font-size:12px!important;
 line-height:1.65!important;
 margin:19px 0 0!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-atd-full-board.is-active{
 grid-column:1!important;
}
/* One-column research card at narrower widths; no cramped 50/50 team cards. */
@media(max-width:1190px){
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-columns{
  grid-template-columns:minmax(0,1fr)!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-team{
  padding:18px!important;
 }
}
@media(max-width:780px){
 html.fie-unified-preview.fie-research-stats-nav body[data-sport="nfl"] .nfl-v4-shell.nfl-atd-focus-shell{
  padding:15px 12px 85px!important;
  row-gap:12px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell>.nfl-season-week-nav{
  padding:12px!important;
  gap:8px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell>.nfl-season-week-nav:before{
  display:none!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-season-week-nav>div{
  flex:1 1 auto!important;width:auto!important;min-width:0!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-v6-week-arrow{
  width:44px!important;flex:0 0 44px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-hub{
  padding:17px 14px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-filters{
  grid-template-columns:minmax(0,1fr)!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player summary{
  grid-template-columns:48px minmax(0,1fr) 18px!important;
  gap:10px!important;min-height:95px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-avatar{
  width:48px!important;height:48px!important;flex-basis:48px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-headfacts{
  grid-column:1/3!important;
  grid-row:2!important;
  min-width:0!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  border-top:1px solid #504b48!important;
  padding-top:10px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-expand{
  grid-column:3!important;grid-row:1/3!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-identity{
  grid-column:2!important;grid-row:1!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-body{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-atd-modebar{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-atd-modebar>span{
  grid-column:1/-1!important;
  margin:0!important;text-align:left!important;
 }
}
@media(max-width:420px){
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .nfl-v4-hero{
  padding:14px 16px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-match-showcase{
  gap:4px!important;padding:12px 8px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-match-side>strong{
  font-size:13px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-team-emblem{
  width:38px!important;height:38px!important;flex-basis:38px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-headfacts{
  gap:6px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-headfacts span{
  font-size:12px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-player-headfacts b{
  font-size:13px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-team{
  padding:12px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-defense{
  padding:10px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-defense-kpis{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-defense-kpis span:last-child{
  grid-column:1/-1!important;
  border-right:0!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-defense-kpis b{
  font-size:22px!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-atd-focus-shell .gdl-atd-defense-kpis span{
  font-size:10px!important;padding-right:2px!important;
 }
}

/* Cache-resistant ATD layout guard.
 * Some members still have the pre-v161 board JavaScript cached. In that case
 * the semantic modebar is present but the shell has no focus class yet.
 * :has() is supported by current evergreen browsers, and scopes strictly to
 * the ATD view without changing other NFL or other sports pages. */
@supports selector(.nfl-v4-shell:has(> .nfl-atd-modebar)){
 html.fie-unified-preview body[data-sport="nfl"] .nfl-v4-shell:has(> .nfl-atd-modebar){
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  column-gap:0!important;
  row-gap:16px!important;
  width:100%!important;
  max-width:none!important;
  margin:0 auto!important;
  padding:22px clamp(16px,2.8vw,44px) 100px!important;
  box-sizing:border-box!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-v4-shell:has(> .nfl-atd-modebar)>.nfl-v4-tabs{
  display:none!important;
 }
 html.fie-unified-preview body[data-sport="nfl"] .nfl-v4-shell:has(> .nfl-atd-modebar)>:not(.nfl-v4-tabs){
  grid-column:1/-1!important;
  grid-row:auto!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
 }
 @media(max-width:780px){
  html.fie-unified-preview body[data-sport="nfl"] .nfl-v4-shell:has(> .nfl-atd-modebar){
   padding:15px 12px 85px!important;
   row-gap:12px!important;
  }
 }
}

/* Final ATD vertical-flow constraint: prevents the older desktop CSS grid
 * from placing the week selector in a side column even at large widths.
 * Flex mode applies only to Anytime TD and preserves child document order. */
html.fie-unified-preview body[data-sport="nfl"] .nfl-v4-shell.nfl-atd-focus-shell > .nfl-season-week-nav,
html.fie-unified-preview body[data-sport="nfl"] .nfl-v4-shell:has(> .nfl-atd-modebar) > .nfl-season-week-nav{
 position:relative!important;
 top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
 inset:auto!important;
 float:none!important;
 flex:0 0 auto!important;
 width:100%!important;
 max-width:100%!important;
 margin:0!important;
 align-self:stretch!important;
 box-sizing:border-box!important;
}
html.fie-unified-preview body[data-sport="nfl"] .nfl-v4-shell.nfl-atd-focus-shell > .nfl-v4-hero,
html.fie-unified-preview body[data-sport="nfl"] .nfl-v4-shell.nfl-atd-focus-shell > .gdl-atd-hub,
html.fie-unified-preview body[data-sport="nfl"] .nfl-v4-shell:has(> .nfl-atd-modebar) > .nfl-v4-hero,
html.fie-unified-preview body[data-sport="nfl"] .nfl-v4-shell:has(> .nfl-atd-modebar) > .gdl-atd-hub{
 flex:0 0 auto!important;
 width:100%!important;
 max-width:100%!important;
 align-self:stretch!important;
 box-sizing:border-box!important;
}
