/* Page-specific composition for the seven primary Gridiron mockup routes. */
body[data-design-page="players"] .design-hero,
body[data-design-page="rankings"] .design-hero,
body[data-design-page="teams"] .design-hero,
body[data-design-page="team"] .design-hero,
body[data-design-page="leagues"] .design-hero,
body[data-design-page="league"] .design-hero,
body[data-design-page="nfl"] .design-hero {
  min-height: 190px;
  overflow: hidden;
  background:
    radial-gradient(circle at 65% 15%, rgba(255,255,255,.18), transparent 2%),
    radial-gradient(circle at 77% 10%, rgba(255,255,255,.12), transparent 2%),
    linear-gradient(110deg, rgba(4,12,17,.98) 0 42%, rgba(13,27,36,.82) 70%, rgba(4,12,17,.96));
}

body[data-design-page="players"] .design-hero h1,
body[data-design-page="rankings"] .design-hero h1,
body[data-design-page="teams"] .design-hero h1,
body[data-design-page="team"] .design-hero h1,
body[data-design-page="leagues"] .design-hero h1,
body[data-design-page="league"] .design-hero h1,
body[data-design-page="nfl"] .design-hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: .82;
  max-width: 68%;
}

.core-directory-host > .design-columns,
.core-directory-columns { grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); }
.core-directory-host .filters-grid { grid-template-columns: 1.3fr repeat(4, minmax(130px, .8fr)); }
.core-directory-host .design-side { position: sticky; top: 88px; align-self: start; }
.core-directory-host .design-grid:has(.spotlight) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.core-directory-host .design-grid:has(.promo) .promo { min-height: 130px; overflow: hidden; }
.core-directory-host .promo > .player-photo.featured { float: left; width: 42%; height: 120px; margin: -14px 14px -14px -14px; }
.core-directory-host .data-table td { padding-block: 8px; }
.core-directory-host .data-table .player-photo { width: 42px; height: 42px; }

.team-hero-brand,
.league-hero-player {
  position: absolute;
  inset: 0 4% 0 auto;
  width: min(46%, 620px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  pointer-events: none;
}
.team-hero-brand .player-photo,
.league-hero-player .player-photo { width: 290px; height: 240px; align-self: end; }
.team-hero-brand .team-monogram,
.league-mark { font: 900 3rem/.9 var(--display-font, Impact, sans-serif); letter-spacing: .04em; color: #fff; }

.core-team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.core-team-card { padding: 0; overflow: hidden; min-height: 275px; }
.team-card-stage { min-height: 142px; position: relative; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: radial-gradient(circle at 70% 15%, rgba(255,255,255,.16), transparent 28%), linear-gradient(145deg,#17252d,#071016); }
.team-card-stage::after { content:""; position:absolute; inset:auto 0 0; height:45%; background:linear-gradient(transparent,rgba(1,7,11,.94)); }
.team-card-stage .team-monogram { font-size: 2.3rem; z-index: 1; }
.team-card-stage .player-photo { width: 118px; height: 142px; align-self: end; z-index: 1; }
.team-card-copy { padding: 13px; }
.team-card-copy h3 { margin: 0; font-size: 1.18rem; }
.team-featured { display:flex; justify-content:space-between; padding:8px 0; border-block:1px solid var(--border, #31424d); }
.team-featured small { color: var(--muted, #9eacb8); }
.team-card-actions { display:flex; gap:8px; margin-top:10px; }
.team-card-actions .button { flex:1; padding-inline:8px; text-align:center; }
.core-team-foot .panel-body { display:flex; align-items:center; gap:20px; min-height:120px; }
.core-team-foot .player-photo { width:150px; height:130px; flex:0 0 auto; }
.conference-lockup { display:grid; grid-template-columns:auto 1fr; gap:12px 22px; align-items:center; }
.conference-lockup b { color:var(--accent, #ef234d); font-size:2.5rem; }

.core-team-columns { display:grid; grid-template-columns:minmax(0, 1.7fr) minmax(330px, 1fr); gap:12px; }
.core-group-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; }
.core-group-card { min-width:0; border:1px solid var(--border,#31424d); background:#0a151c; text-align:center; text-decoration:none; color:#fff; overflow:hidden; }
.core-group-card .player-photo { width:100%; height:90px; }
.core-group-card b,.core-group-card span { display:block; padding:5px; }
.core-group-card span { color:var(--accent,#ef234d); font-size:.74rem; }

.core-league-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.core-league-cards > .panel { min-height:340px; position:relative; overflow:hidden; background:linear-gradient(120deg,#071018 30%,#19252c); }
.core-league-cards .panel-body { height:100%; display:flex; position:relative; }
.league-card-copy { z-index:2; width:58%; align-self:center; }
.league-card-copy .league-mark { display:block; font-size:3.8rem; margin-bottom:25px; }
.league-player { position:absolute; inset:0 0 0 auto; width:52%; display:flex; align-items:flex-end; }
.league-player .player-photo { width:100%; height:100%; }
.core-game-links { grid-template-columns:repeat(3,1fr); }
.core-game-links .promo { min-height:105px; }
.core-league-foot .panel-body { min-height:115px; }
.division-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.division-grid a { display:grid; grid-template-columns:44px 1fr; padding:9px; border:1px solid var(--border,#31424d); color:#fff; text-decoration:none; }
.division-grid a b { color:var(--accent,#ef234d); grid-row:span 2; }
.division-grid small { color:var(--muted,#9eacb8); }
.core-player-promo { display:flex; gap:14px; min-height:150px; }
.core-player-promo .player-photo { width:44%; height:145px; flex:0 0 auto; }

.core-nfl .design-hero { min-height:285px; }
.core-nfl .design-hero h1 { font-size:7.2rem; }
.nfl-hero-copy { max-width:43%; }
.nfl-hero-copy .league-mark { font-size:2.2rem; color:var(--accent,#ef234d); }
.nfl-hero-copy p { font-size:1rem; }
.core-nfl-grid { display:grid; grid-template-columns:1.1fr .9fr .95fr; gap:12px; }
.core-nfl-grid > .panel { min-width:0; }
.core-nfl-grid .data-table th:nth-child(5),.core-nfl-grid .data-table td:nth-child(5),.core-nfl-grid .data-table th:nth-child(6),.core-nfl-grid .data-table td:nth-child(6),.core-nfl-grid .data-table th:nth-child(7),.core-nfl-grid .data-table td:nth-child(7) { display:none; }
.nfl-team-strip { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.nfl-team-strip a { min-height:80px; padding:12px; border:1px solid var(--border,#31424d); color:#fff; text-decoration:none; background:linear-gradient(145deg,#13232d,#071016); }
.nfl-team-strip b,.nfl-team-strip span { display:block; }
.nfl-team-strip b { color:var(--accent,#ef234d); font-size:1.5rem; }
.compare-lockup { display:grid; grid-template-columns:1fr auto 1fr; align-items:end; gap:10px; }
.compare-lockup .player-photo { width:100%; height:145px; }
.compare-lockup > b { align-self:center; color:var(--accent,#ef234d); }
.nfl-resource-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:12px; }
.nfl-resource-row .button { text-align:center; }

/* 1440 x 1050 desktop fidelity pass. */
@media (min-width: 1101px) {
  body[data-design-page="players"] #app,
  body[data-design-page="rankings"] #app,
  body[data-design-page="teams"] #app,
  body[data-design-page="team"] #app,
  body[data-design-page="leagues"] #app,
  body[data-design-page="league"] #app,
  body[data-design-page="nfl"] #app { max-width: 1440px; }

  body[data-design-page="players"] .design-hero,
  body[data-design-page="rankings"] .design-hero { box-sizing: border-box; height: 164px; min-height: 0; padding-block: 13px; }
  body[data-design-page="players"] .design-hero h1,
  body[data-design-page="rankings"] .design-hero h1 { font-size: 4.25rem; margin-block: 10px 3px; }
  body[data-design-page="players"] .design-hero p,
  body[data-design-page="rankings"] .design-hero p { font-size: 17px; }
  .core-directory-portrait { right: 6%; width: 31%; height: 108%; }
  .core-directory-host > .filters-grid { margin-top: -1px; padding: 10px 14px; }
  .core-directory-host > .position-tabs { padding: 5px 0 8px; }
  .core-directory-host > .position-tabs button { padding-block: 5px; min-width: 52px; }
  .core-directory-host > .design-columns { grid-template-columns: minmax(0, 3.45fr) minmax(270px, 1fr); }
  .core-directory-host .panel-head { padding-block: 8px; min-height: 36px; }
  .core-directory-host .panel-body { padding-block: 9px; }
  body[data-design-page="players"] #design-results .data-table tbody tr:nth-child(n+7),
  body[data-design-page="rankings"] #design-results .data-table tbody tr:nth-child(n+9) { display: none; }
  .core-directory-host #design-results .data-table td { height: 34px; padding-block: 2px; }
  .core-directory-host #design-results .data-table .player-photo { width: 28px; height: 28px; }
  .core-directory-host .table-footer { padding-block: 5px; }
  .core-directory-host .design-side .explain-list li { padding: 9px 0; }
  .core-directory-host .design-side .panel { margin-bottom: 8px; }
  .core-directory-host .design-side .panel-body { padding: 8px 11px; }
  .core-directory-host .design-side .plan-mini-grid { gap: 4px; }
  .core-directory-host .design-side .plan-mini { min-width: 0; padding: 8px 5px; text-align: center; }
  .core-directory-host .design-side .plan-mini h3 { font-size: 18px; }
  .core-directory-host .design-side .plan-mini b { display: block; font-size: 10px; }
  .core-directory-host .design-side .plan-mini p,
  .core-directory-host .design-side .plan-mini ul { display: none; }
  .core-directory-host .design-side .plan-mini .button { margin-top: 7px; min-height: 25px; padding: 5px 2px; font-size: 9px; }
  .core-directory-host .panel:has(#design-featured-list) .panel-body { padding: 5px 12px; }
  .core-directory-host #design-featured-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .core-directory-host #design-featured-list > article { min-width: 0; display: grid; grid-template-columns: 1fr; padding: 0 8px 0 0; border-right: 1px solid var(--border, #31424d); }
  .core-directory-host #design-featured-list > article:last-child { border-right: 0; }
  .core-directory-host #design-featured-list .spotlight { grid-template-columns: 86px minmax(0,1fr); gap: 9px; }
  .core-directory-host #design-featured-list .spotlight .player-photo { width: 76px; height: 78px; }
  .core-directory-host #design-featured-list .spotlight h3 { font-size: 20px; line-height: 1; }
  .core-directory-host #design-featured-list .spotlight p { font-size: 11px; white-space: nowrap; }
  .core-directory-host #design-featured-list .spotlight .big-score { font-size: 36px; }
  .core-directory-host #design-featured-list .metric-boxes { display: none; }
  .core-directory-host #design-featured-list .button { width: max-content; margin: 3px 0 0 85px; min-height: 23px; padding: 4px 8px; font-size: 9px; }
  .core-directory-host .core-position-promos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .core-directory-host .core-position-promos .promo { min-height: 112px; padding: 12px; }
  .core-directory-host .core-position-promos .promo > .player-photo { height: 112px; }

  body[data-design-page="home"] .home-hero-layout > .design-hero { min-height: 325px; }
  body[data-design-page="home"] .home-plans .plan-mini-grid { height: 282px; }
  body[data-design-page="home"] .home-dashboard > .panel:nth-child(-n+3) { min-height: 318px; }
  body[data-design-page="home"] .home-dashboard > .panel { min-height: 188px; }

  body[data-design-page="teams"] .design-hero { min-height: 150px; }
  body[data-design-page="teams"] .design-hero h1 { margin-block: 7px 2px; font-size: 4.5rem; }
  body[data-design-page="teams"] .core-teams > .filters-grid { padding-block: 10px; }
  .core-team-card { min-height: 236px; }
  .team-card-stage { min-height: 116px; }
  .team-card-stage .player-photo { width: 96px; height: 116px; }
  .team-card-copy { padding: 9px 11px; }
  .team-card-copy h3 { font-size: 1.05rem; }
  .team-featured { padding-block: 5px; }
  .team-card-actions { margin-top: 6px; }
  .team-card-actions .button { min-height: 27px; padding-block: 5px; }

  body[data-design-page="team"] .design-hero { min-height: 242px; }
  body[data-design-page="team"] .design-hero h1 { font-size: 4.8rem; }
  body[data-design-page="team"] .core-team-columns { grid-template-columns: minmax(0, 1.65fr) minmax(390px, 1fr); }
  body[data-design-page="team"] .core-team-columns aside { display: grid; grid-template-columns: 1fr; align-content: start; }
  body[data-design-page="team"] .core-team-columns .data-table td { height: 38px; }
  .core-group-card .player-photo { height: 76px; }

  body[data-design-page="leagues"] .design-hero { min-height: 230px; }
  body[data-design-page="leagues"] .core-league-cards > .panel { min-height: 292px; }
  body[data-design-page="leagues"] .league-card-copy .league-mark { font-size: 3.35rem; margin-bottom: 16px; }
  body[data-design-page="leagues"] .core-game-links .promo { min-height: 94px; padding: 13px; }
  body[data-design-page="leagues"] .core-league-foot .panel-body { min-height: 92px; }

  body[data-design-page="nfl"] .core-nfl .design-hero { min-height: 245px; }
  body[data-design-page="nfl"] .core-nfl .design-hero h1 { font-size: 6.2rem; margin-block: 8px; }
  body[data-design-page="nfl"] .core-nfl-grid { grid-template-columns: 1.16fr .94fr 1fr; }
  body[data-design-page="nfl"] .core-nfl-grid > .panel { min-height: 245px; }
  body[data-design-page="nfl"] .core-nfl-grid .panel-body { padding: 9px 11px; }
  body[data-design-page="nfl"] .core-nfl-grid .position-tabs { padding-block: 4px; }
  body[data-design-page="nfl"] .core-nfl-grid .data-table td { height: 35px; padding-block: 3px; }
  body[data-design-page="nfl"] .core-nfl-grid .data-table .player-photo { width: 31px; height: 31px; }
  body[data-design-page="nfl"] .core-nfl-grid .spotlight .player-photo { width: 105px; height: 118px; }
  body[data-design-page="nfl"] .core-nfl-grid .spotlight { grid-template-columns: 105px 1fr; }
  body[data-design-page="nfl"] .core-nfl-grid .metric-boxes { margin-block: 7px; }
  body[data-design-page="nfl"] .core-nfl-grid .metric-box { padding-block: 8px; }
}

@media (max-width: 1100px) {
  .core-team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .core-nfl-grid { grid-template-columns:1fr 1fr; }
  .core-group-grid { grid-template-columns:repeat(3,1fr); }
  .core-directory-host .filters-grid { grid-template-columns:repeat(3,1fr); }
}

@media (max-width: 760px) {
  body[data-design-page] .design-hero h1 { max-width:100%; font-size:3rem; }
  .team-hero-brand,.league-hero-player { opacity:.3; width:65%; }
  .core-directory-host > .design-columns,.core-directory-columns,.core-team-columns,.core-league-cards,.core-nfl-grid { grid-template-columns:1fr; }
  .core-team-grid,.core-game-links,.core-group-grid { grid-template-columns:repeat(2,1fr); }
  .core-directory-host .filters-grid { grid-template-columns:1fr 1fr; }
  .core-directory-host .design-side { position:static; }
  .core-nfl .design-hero { min-height:240px; }
  .nfl-hero-copy { max-width:62%; }
}

/* Live homepage: compact boards and the reference's six-panel composition. */
.home-hero-layout .design-hero h1 {font-size:clamp(38px,3.65vw,54px);max-width:510px;line-height:1.02;margin:22px 0 12px}
.home-hero-layout .design-hero p {max-width:475px;font-size:21px;line-height:1.4}
.home-hero-layout .design-hero .crumb {letter-spacing:3px;color:#e6edf2}
.home-hero-layout .hero-portrait {right:0;width:45%;z-index:0}
.home-hero-layout .design-hero h1,.home-hero-layout .design-hero p,.home-hero-layout .hero-actions {z-index:2}
.home-plans .plan-mini h3 {color:#fff!important;text-transform:uppercase}
.home-plans .plan-mini b {color:#e0e8ee}
.home-plans .plan-mini ul {line-height:1.65;margin-block:10px}
.home-plans .plan-mini p {margin:7px 0}
.home-plans .plan-mini.pro {position:relative}
.home-plans .plan-mini.pro:before {content:'DEEPER EXPLANATION';position:absolute;top:-11px;left:8px;right:8px;text-align:center;background:#df0b35;color:white;font:9px var(--heading);padding:3px;border-radius:3px}
.home-release {margin:0 0 9px;color:#b2c2cc;font-size:11px}
.home-dashboard {gap:12px}
.home-dashboard>.panel:nth-child(-n+3) {min-height:335px}
.home-dashboard>.panel:nth-child(n+4) {min-height:185px}
.home-dashboard .position-tabs {padding:0 0 8px}
.home-dashboard .position-tabs button {min-width:0;flex:1;padding:6px 8px}
.home-dashboard .position-tabs button:nth-child(n+7) {display:none}
.home-dashboard .home-board {width:100%;table-layout:fixed;min-width:0}
.home-dashboard .home-board th,.home-dashboard .home-board td {display:table-cell!important;padding:5px;font-size:12px}
.home-dashboard .home-board th:first-child {width:24px}
.home-dashboard .home-board th:nth-child(2) {width:52%}
.home-dashboard .home-board th:nth-child(3) {width:44px}
.home-dashboard .home-board th:nth-child(4) {width:52px}
.home-board .player-photo.small {width:30px;height:32px;flex-shrink:0}
.home-board .player-row {gap:7px}
.home-board .score-cell {font-family:var(--heading);color:#ed123d;font-size:17px!important}
.home-dashboard .spotlight {grid-template-columns:115px 1fr;gap:13px}
.home-dashboard .spotlight .player-photo {width:115px;height:125px}
.home-dashboard .spotlight h3 {font-size:25px}
.home-dashboard .metric-box {padding:9px 4px}
.home-dashboard .metric-box strong {font-size:20px}
.home-dashboard .metric-box span {font-size:10px}
.featured-context {font-size:12px;color:#b2c2cc;line-height:1.5}
.home-report {display:grid;grid-template-columns:85px 1fr;gap:11px;align-items:center}
.home-report .player-photo {width:85px;height:77px;border:0;background:#13212b}
.home-report .player-photo.featured {margin:0;border-radius:3px}
.home-dashboard .metric-unavailable strong {font:13px sans-serif;overflow-wrap:anywhere;line-height:1.3;color:#b2c2cc}
.home-dashboard>.panel:nth-child(6) .home-board td {height:28px;padding-block:2px}
.home-dashboard>.panel:nth-child(6) .player-photo.small {width:24px;height:24px}
.home-report h3 a {color:#f4f6f7;text-decoration:none}
.home-dashboard .button.ghost {margin-top:8px;min-height:28px;font-size:11px}
.home-dashboard .method-links a {display:flex;flex-direction:column;gap:7px;padding:12px 8px;border:1px solid #2b414c;color:#ef294e;text-decoration:none;min-width:0}
.method-links a>span {font-size:28px;line-height:1}
.method-links a>b {font-size:12px}
.method-links a>small {font-size:11px;color:#b2c2cc}
.home-watch-heading {font-size:12px;color:#b2c2cc;margin:6px 0}
.home-prospects a {display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #2b414c;color:#fff;text-decoration:none}
.home-prospects span {font-size:11px;color:#b2c2cc}
@media(max-width:760px) {
  .home-hero-layout {margin-inline:-12px;min-width:0}
  .home-dashboard>.panel {min-width:0}
  .home-dashboard {grid-template-columns:1fr}
  .home-hero-layout .design-hero h1 {max-width:80%;font-size:38px}
  .home-hero-layout .hero-portrait {opacity:.4;width:55%}
  .home-hero-layout .design-hero p {font-size:17px;max-width:90%}
  .home-dashboard>.panel {min-height:0!important}
}
