/* Content pages only. Maker, rankings and Creator Tools layouts are deliberately outside this scope.
   Existing brand tokens, fonts, statistics and chart colours remain the source of truth. */
main.content-pages > .wrap:not(.home) { padding-top: 8px; padding-bottom: 32px; }
main.content-pages .page-head { padding: 24px 0 20px; margin-bottom: 24px; border-bottom-color: var(--border-strong); }
main.content-pages .page-head h1 { margin-bottom: 9px; line-height: 1.12; letter-spacing: -.012em; text-wrap: balance; }
main.content-pages .page-head > p { max-width: 78ch; line-height: 1.65; }
main.content-pages .crumbs { margin-bottom: 10px; font-size: .78rem; line-height: 1.5; }
main.content-pages .section { margin-top: 32px; }
main.content-pages .section-head { margin-bottom: 14px; padding-bottom: 8px; gap: 10px 18px; align-items: baseline; }
main.content-pages .section-head h2 { line-height: 1.25; }
main.content-pages .page-head .controls-row { gap: 10px 14px; margin-top: 16px; padding: 12px; border: 1px solid var(--border); background: var(--surface-2); }
main.content-pages .page-head .controls-row:empty { display: none; }
main.content-pages .controls-row .field { gap: 6px; min-width: 0; }
main.content-pages .controls-row :is(input:not([type=checkbox]):not([type=radio]),select) { min-height: 38px; max-width: 100%; }
main.content-pages :is(.tabs,.seg) { max-width: 100%; height: auto; }
main.content-pages .page-head :is(.tabs,.seg) { flex-wrap: wrap; }
main.content-pages :is(.tabs,.seg) button { min-height: 34px; line-height: 1.2; }
main.content-pages .tbl-tools { gap: 10px; padding: 12px 0; }
main.content-pages .tbl-tools :is(input:not([type=checkbox]):not([type=radio]),select,.btn) { min-height: 36px; }
main.content-pages .tbl-wrap { border-color: var(--border-strong); scrollbar-width: thin; }
main.content-pages .tbl-wrap table.stats th { padding-top: 10px; padding-bottom: 10px; line-height: 1.3; }
main.content-pages .tbl-wrap table.stats td { padding-top: 7px; padding-bottom: 7px; line-height: 1.45; }
main.content-pages .tbl-wrap table.stats tfoot td { padding-top: 9px; padding-bottom: 9px; }
main.content-pages :is(.notice,.data-note) { padding: 12px 14px; line-height: 1.6; margin-top: 12px; margin-bottom: 16px; }
main.content-pages .loading { padding: 22px 16px; border: 1px dashed var(--border); background: var(--surface-2); line-height: 1.6; }
main.content-pages :is(.box,.card,.fx-card) { padding: 16px; min-width: 0; }
main.content-pages :is(.box,.card,.fx-card) > :is(h2,h3):first-child { margin-bottom: 12px; }
main.content-pages :is(.box,.card,.fx-card) > p { line-height: 1.65; }
main.content-pages .kpi { padding: 14px 16px; }
main.content-pages .kpi .l { margin-bottom: 5px; line-height: 1.45; }
main.content-pages .kpi .v { line-height: 1.2; }
main.content-pages :is(.games-directory,.teams-directory) .page-head { margin-bottom: 26px; }
main.content-pages .games-directory .matchup-grid { gap: 14px; }
main.content-pages .games-directory .score { border-top: 3px solid var(--border-strong); padding-top: 14px; }
main.content-pages .games-directory .score .st { letter-spacing: .035em; }
main.content-pages .teams-directory .team-div h2 { margin-bottom: 10px; padding-bottom: 8px; }
main.content-pages .team-directory-card { gap: 16px; min-height: 90px; }
main.content-pages .team-directory-result { gap: 4px; }
main.content-pages .model-card { padding: 18px; }
main.content-pages .model-card .section-head { margin-bottom: 16px; }
main.content-pages .legal { padding-bottom: 40px; }
main.content-pages .legal-sec { max-width: 76ch; }
main.content-pages .legal-sec h2 { margin-top: 28px; margin-bottom: 10px; }
main.content-pages .legal-sec :is(p,li) { line-height: 1.75; }
main.content-pages .legal-sec li + li { margin-top: 6px; }
main.content-pages .account .acct-card { padding: 22px; gap: 14px; }
main.content-pages .account .acct-card p { line-height: 1.65; }
main.content-pages .account .acct-choices { gap: 10px; }
main.content-pages .home .hero-ad { gap: 32px; padding-bottom: 30px; }
main.content-pages .home .hero-note { max-width: 68ch; line-height: 1.7; }
main.content-pages .home .home-h-row { gap: 10px 16px; align-items: baseline; }
main.content-pages .home .home-more { gap: 14px; }
main.content-pages .home .home-more > a { padding: 16px; }
@media (hover:hover) and (pointer:fine) {
  main.content-pages .games-directory .score:hover,
  main.content-pages .team-directory-card:hover { background: var(--surface-2); }
}
@media (max-width:900px) {
  main.content-pages .page-head { padding-top: 20px; }
  main.content-pages .home .hero-ad { gap: 22px; }
}
@media (max-width:700px) {
  main.content-pages .page-head { padding-top: 18px; padding-bottom: 16px; margin-bottom: 20px; }
  main.content-pages .page-head h1 { font-size: clamp(1.6rem,7vw,2rem); }
  main.content-pages .page-head .controls-row { padding: 10px; gap: 12px; }
  main.content-pages .controls-row .field { flex: 1 1 130px; }
  main.content-pages :is(.controls-row,.tbl-tools,.account) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size: 16px; }
  main.content-pages :is(.controls-row,.tbl-tools) :is(select,input:not([type=checkbox]):not([type=radio]),.btn) { min-height: 42px; }
  main.content-pages .page-head :is(.tabs,.seg) button { min-height: 40px; white-space: normal; }
  main.content-pages .tbl-tools { gap: 8px 10px; }
  main.content-pages .tbl-wrap table.stats td.l:nth-child(2) { max-width: 148px; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
  main.content-pages :is(.box,.card,.fx-card,.model-card) { padding: 14px; }
  main.content-pages .account .acct-card { padding: 18px; }
  main.content-pages .section { margin-top: 26px; }
  main.content-pages .kpi { padding: 12px; }
  main.content-pages .home .hero-ad { padding-bottom: 24px; }
}
/* Keep the player page's output links visually separate from its season-type switch. */
@media (max-width:700px) {
  main.content-pages .page-head .controls-row:has(> .seg) > b { flex: 1 0 100%; margin-top: 2px; }
  main.content-pages .team-directory-result small { max-width: 140px; line-height: 1.45; }
}
/* Let wide reference tables scroll; never squeeze linked entity names into a letter-by-letter column. */
@media (max-width:700px) {
  main.content-pages .tbl-wrap table.stats :is(th,td).l:nth-child(2) { min-width:132px; max-width:164px; }
}

/* Pending homepage demo: reserve a small, honest loading state, not an empty chart wall. */
.home .demo-board:empty { height: 80px; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; place-items: center; }
.home .demo-board:empty::before { content: "Loading the example dashboard…"; color: var(--muted); font-size: .875rem; padding: 12px; text-align: center; }

/* Keep a usable copy and Ask column before switching the homepage to two columns. */
@media (max-width:1180px) {
  main.content-pages .home :is(.hero-ad,.gfx-ad) { grid-template-columns:minmax(0,1fr); align-items:start; }
}

@media (min-width:681px) {
  .home .home-ask { flex-wrap:nowrap; }
  .home .home-ask .ask-input { min-width:0; }
  .home .home-ask > :is(label,button) { flex-shrink:0; }
}
