/* Page-specific touches on top of the shared parts in components.css */
.games-seasons { flex-direction: column; align-items: stretch; gap: 8px; }
.games-seasons .ui-tabs { flex-wrap: wrap; }
.news-lines > li { padding-inline: 16px; }
.news-card-title { font-size: 18px; line-height: 1.3; letter-spacing: -0.4px; }
@media (max-width: 760px) { .games-seasons > .ui-tabs :is(a) { flex: 0 0 auto; } }
.scheme-field-title { font-size: 18px; }
.scheme-value-chip { display: inline-flex; gap: 6px; padding: 5px 10px; border: 1px solid var(--color-border); border-radius: 5px; font-size: var(--text-xs); color: var(--color-foreground); }
.scheme-value-chip span { color: var(--color-muted-foreground); }
.scheme-value-chip:hover { border-color: var(--color-foreground); }
.search-coach-name { font-size: 18px; }
.ui-chip--quiet { background: var(--color-muted); color: var(--color-muted-foreground); }
.ui-tabs > span[aria-current] { border-radius: 5px; padding: 9px 14px; font: 500 var(--text-xs)/1.3 var(--font-body); background: var(--color-foreground); color: var(--color-card); }
.site-main .home-week-title { margin-top: 12px; font: 700 clamp(28px, 3.2vw, 42px)/1.15 var(--ui-display); letter-spacing: -1.4px; text-wrap: balance; }
.home-week-title em { color: var(--color-brand-text); font-style: normal; }
.home-week .ui-card-title { font-size: 20px; }
.home-feature { display: flex; flex-direction: column; }
.home-feature .ui-card-foot { margin-top: auto; }
.home-feature p { margin-bottom: 14px; }
.carousel-year { font: 700 40px/1 var(--ui-display); letter-spacing: -1.4px; }
.ui-bullets { list-style: disc; padding-left: 34px; }
.ui-row > .team-game-result { font: 700 14px/1.3 var(--ui-display); color: var(--color-foreground); white-space: nowrap; }
.ui-row > .team-game-result.text-gain { color: var(--color-gain); }
.ui-row > .team-game-result.text-loss { color: var(--color-loss); }
.team-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.season-browser .ui-tabs a { min-width: 52px; justify-content: center; text-align: center; }
@media (max-width: 760px) { .team-games { grid-template-columns: minmax(0, 1fr); } }
.story-page { max-width: 768px; margin-inline: auto; }
.story-page .story-body { max-width: none; }
.story-header { display: block; }
.site-main .story-header h1 { font-size: clamp(32px, 3.6vw, 46px); }
.story-header .story-stat { display: inline-block; margin-top: 22px; text-align: left; }
.story-stat { flex-shrink: 0; min-width: 190px; padding: 22px 24px; border-radius: 7px; text-align: center; }
.story-stat b { font-size: 56px; letter-spacing: -2px; }
.story-feature { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; }
.story-feature-copy { min-width: 0; }
.site-main .story-feature-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.story-stats .ui-stat b { font-size: 34px; white-space: nowrap; }
@media (max-width: 760px) {
  .story-feature { flex-direction: column; align-items: stretch; }
  .story-stat { margin-top: 18px; }
}
.ui-stat--wide { grid-column: span 2; }
.ui-stat .career-path-summary { font: 600 17px/1.45 var(--font-body); }
.analytics-card { display: flex; flex-direction: column; }
.analytics-card .ui-card-foot { margin-top: auto; }
.analytics-card p { margin-bottom: 14px; }
@media (max-width: 760px) { .ui-stat--wide { grid-column: auto; } }
/* Grid items shrink to the column so wide tables scroll inside their card instead of widening the page */
.site-main .grid > * { min-width: 0; }
.site-main .game-title { font-size: clamp(28px, 3vw, 40px); }
.game-title img { flex-shrink: 0; }
.h2h-faces { display: flex; flex-shrink: 0; }
.h2h-faces > * + * { margin-left: -14px; }
@media (max-width: 760px) { .h2h-title { flex-wrap: wrap; } }
.game-panels { overflow: hidden; }

/* Scheme family page sidebar: the family's lineage (what it grew out of, who started it, the full tree) */
.scheme-lineage-roots { margin: -6px 0 14px; font-size: 12.5px; line-height: 1.45; color: var(--color-muted-foreground); }
.scheme-lineage-roots a { color: inherit; text-decoration: underline; text-decoration-color: var(--color-border); text-underline-offset: 3px; }
.scheme-lineage-roots a:hover { color: var(--color-link); }
.scheme-lineage-founder-link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 8px; background: color-mix(in oklab, var(--color-brand) 11%, var(--color-card)); color: var(--color-foreground); }
.scheme-lineage-founder-link > :first-child { box-shadow: 0 0 0 2px var(--color-card), 0 0 0 4px var(--color-brand); }
.scheme-lineage-founder-link:hover b { color: var(--color-link); }
.scheme-lineage-label { display: block; font: 700 10.5px/1.2 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-brand-text); }
.scheme-lineage-founder-link b { display: block; margin-top: 2px; font: 800 21px/1.15 var(--ui-display); }
.scheme-lineage-years { display: block; margin-top: 2px; font-size: 12.5px; color: var(--color-muted-foreground); }

.scheme-tree, .scheme-tree ul { margin: 0; padding: 0; list-style: none; }
.scheme-tree { margin-left: 8px; padding-top: 8px; }
.scheme-tree ul { margin-left: 28px; }
.scheme-tree li { position: relative; padding: 4px 0 4px 16px; }
.scheme-tree li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid var(--color-border); }
.scheme-tree li:last-child::before { bottom: auto; height: 16px; }
.scheme-tree li::after { content: ""; position: absolute; left: 0; top: 16px; width: 12px; border-top: 1px solid var(--color-border); }
.scheme-lineage-others-title { margin: 16px 0 4px; font: 600 11px/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted-foreground); }
.scheme-tree--others { margin-left: 0; padding-top: 0; }
.scheme-tree--others > li { padding-left: 0; }
.scheme-tree--others > li::before, .scheme-tree--others > li::after { content: none; }
.scheme-tree--others > li > ul { margin-left: 12px; }
.scheme-tree-coach { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; line-height: 1.3; color: var(--color-foreground); }
.scheme-tree-coach:hover .scheme-tree-name { color: var(--color-link); text-decoration: underline; }
.scheme-tree-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.scheme-tree-years { margin-left: auto; padding-left: 8px; font-size: 11.5px; color: var(--color-muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scheme-now-dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-brand) 25%, transparent); }
.scheme-lineage-key { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 12px; color: var(--color-muted-foreground); }
.scheme-mix { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 32px; align-items: start; }
