/* One content measure for the shared header, redesigned pages and footer.
 * At most 80px of compression; never trade a usable page for an ad rail. */
:root { --fs-page-width:1280px; --fs-page-gutter:24px; --fs-rail-width:160px; }
:root{--fs-sticky-header-bottom:0px;--app-sticky-top:calc(var(--fs-sticky-header-bottom) + 16px);--fs-sticky-content-top:var(--app-sticky-top)}
/* A page never adds a second ecosystem navigation between its header and content. */
.college-submenu,.setup-section-nav{display:none!important}
html body main:has(> [data-normalized-page]){padding:0!important}
@media(min-width:768px){
 html body :is(.fs-sticky-rail,.cb-guide-sticky,.guide-rail-sticky,.bb-directory-rail,.cs-comparison-preview,.tq-stats-sidebar){top:var(--fs-sticky-content-top,16px);max-height:none;overflow:visible}
 html body [data-rail-flow]{position:relative!important;top:auto!important;max-height:none!important;overflow:visible!important}
}
@media(max-width:767px){
 /* Draft rooms own a fixed, revealable header. Keeping it in flow adds its
    full height again above the room's measured team-header spacer. */
 html body header.fs-header-v2[data-fs-site-header]:not([data-otc-site-header]):not([data-otc-results-site-header]){position:relative!important;top:auto!important}
}
@media (min-width:1568px) and (max-width:1647px) {
  :root { --fs-page-width:calc(100vw - 368px); }
}
@media (min-width:1920px) { :root { --fs-rail-width:300px; } }
@media (max-width:767px) { :root { --fs-page-gutter:16px; } }
html body :is(.fsp-w, .page-width, .sim-dots-container, .nfl-setup-container,
  .simulator-lower-inner, .fs-discovery-inner, .fs-footer-inner,
  .fs-common-footer > .max-w-7xl, .fs-footer-legal > div,
  [data-page-shell="default"], [data-fs-site-layout] main > .max-w-7xl) {
  box-sizing:border-box; width:100%; max-width:var(--fs-page-width);
  margin-inline:auto; padding-inline:var(--fs-page-gutter); min-width:0;
}
html body [data-college-base] {
  --college-page-width:var(--fs-page-width);
  --college-page-gutter:var(--fs-page-gutter);
}
/* Section boundaries survive overflow into More and match the mobile order. */
.fs-header-v2 :is(.fsp-rail,.fspm-rail) a[data-nav-section] { margin-inline-start:14px; }

html body .fs-common-footer.fs-footer-v2 > .fs-footer-inner,
html body .fs-common-footer.fs-footer-v2 .fs-footer-legal > div {
  box-sizing:border-box;width:100%;max-width:var(--fs-page-width);margin-inline:auto;padding-inline:var(--fs-page-gutter);
}
@media(min-width:768px) {
  html body [data-simulator-route] .sim-completion :is(.sim-completion-heading,.sim-results-carousel,.sim-results-tabs,.sim-results-content,.sim-summary-next),
  html body .vqs .vqs-heading-inner {
    box-sizing:border-box;width:100%;max-width:var(--fs-page-width);margin-inline:auto;padding-inline:var(--fs-page-gutter);
  }
}

/* Existing standard shells inherit the same measure; explicit wide/card/prose
   shells and the full-screen simulation stage keep their own intent. */
html body .max-w-7xl {max-width:var(--fs-page-width)}
html body [data-page-shell="wide"]{max-width:var(--fs-page-width);padding-inline:var(--fs-page-gutter)}
html body :is(.nfl-refresh,.college-page-body) .max-w-7xl {padding-inline:var(--fs-page-gutter)}

@media(min-width:768px) {
  html body :is(.game-viewer-shell,.quick-sim-host) {--game-stage-width:min(calc(var(--fs-page-width) - 2 * var(--fs-page-gutter)),calc(100% - 2 * var(--fs-page-gutter)))}
  html body .quick-sim-root.single-game-page .qsa-game-panel {max-width:var(--fs-page-width)}
  /* Standalone NFL/NCAA content aligns with the header's inner edges. */
  html body .quick-sim-root.single-game-page[data-game-viewer]:not([data-season-game]) :is(.qsa-game-panel,.single-game-results,.single-game-error,.single-game-locked,.single-game-settings-note) {
    box-sizing:border-box;
    width:min(calc(var(--fs-page-width) - 2 * var(--fs-page-gutter)),calc(100% - 2 * var(--fs-page-gutter)));
    max-width:calc(var(--fs-page-width) - 2 * var(--fs-page-gutter));
    margin-inline:auto;
  }
}
