/* Pages: front door, NFL home, college, About, search, trades.
 *
 * Page-specific blocks. Each is flat: thin rules and space, no cards.
 */

/* =========================================================== front door ===
 * The headline, then two doors. Each door carries its league mark, one line
 * of facts, the top three right now, its button and its shortcuts. */
.door-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-12); align-items: end; padding: var(--sp-12) 0 var(--sp-10); }
.door-hero h1 { font-size: var(--fs-5xl); font-weight: 600; line-height: 1.04; letter-spacing: -.028em; }
.door-hero p { margin-bottom: var(--sp-2); font-size: var(--fs-lg); line-height: 1.45; color: var(--sub); }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.door { display: flex; flex-direction: column; min-width: 0; padding: var(--sp-8) var(--sp-10); border-radius: var(--r-lg); background: var(--fill); }
.door-top { display: flex; align-items: center; gap: var(--sp-4); }
.door-top img { flex: none; height: 54px; width: auto; }
.door-mark-fb { display: flex; align-items: center; justify-content: center; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--paper); font: 700 var(--fs-sm)/1 var(--sans); }
.door h2 { font-size: var(--fs-2xl); font-weight: 600; line-height: 1.1; letter-spacing: var(--tight); }
.door-facts { margin-top: 2px; font-size: var(--fs-sm); color: var(--sub); }
.door-lead-h { margin-top: var(--sp-6); padding-bottom: var(--sp-2); font-size: var(--fs-2xs); color: var(--sub); }
/* the name takes the larger share; a long school gives way before the name does */
.door-lead li { display: grid; grid-template-columns: 22px minmax(0, 1.6fr) minmax(0, 1fr) 64px; align-items: center; gap: var(--sp-3); min-height: 48px; border-top: 1px solid var(--line); font-size: var(--fs-lg); }
.door-lead .k { font-size: var(--fs-xs); color: var(--sub); font-variant-numeric: tabular-nums; }
/* the name, linked or not (a former player has no page) */
.door-lead li > :nth-child(2) { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.door-lead a:hover { text-decoration: underline; text-underline-offset: 3px; }
.door-lead .t { justify-self: end; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-xs); font-weight: 500; color: var(--sub); white-space: nowrap; }
.door-lead .t img { display: inline-block; width: 20px; height: 20px; margin-right: 6px; vertical-align: -5px; }
.door-lead .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.door-acts { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); margin-top: auto; padding-top: var(--sp-6); }
/* the shortcuts take their own line, so both doors' buttons sit level */
.door-quick { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: 6px var(--sp-4); font-size: var(--fs-sm); }
/* each shortcut ends in a small "go" mark, as mocked */
.door-quick a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); vertical-align: 1px; }

/* ======================================================= home and teams === */
.club-card { display: grid; grid-template-columns: minmax(220px, auto) minmax(0, 1fr); align-items: center; gap: var(--sp-3) var(--sp-6); min-width: 0; padding: var(--sp-5) 0; border-top: 1px solid var(--line); }
.club-id { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); min-width: 0; }
.club-id img { width: 56px; height: 56px; flex: none; }
.club-id .club-id-fb { width: 56px; height: 56px; font-size: var(--fs-md); }
.club-name { margin: 2px 0 0; font: 600 var(--fs-2xl)/1.1 var(--sans); letter-spacing: var(--tight); }
.club-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.club-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.club-stats .small { font-size: var(--fs-sm); font-weight: 400; color: var(--sub); }
.club-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); min-width: 0; margin: 0; font-size: var(--fs-sm); }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--sp-12); align-items: start; margin-top: var(--sp-4); }
.home-grid td.wrap { white-space: normal; min-width: 180px; }
/* "This week": movers beside new season highs, one column below 760px */
.this-week { margin-top: var(--sp-4); }
.this-week-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--sp-12); }
.this-week-col { position: relative; min-width: 0; }
.this-week-sub { margin: 0; padding: var(--sp-3) 0 var(--sp-1); font: 600 var(--fs-sm)/1.3 var(--sans); color: var(--ink); }
.this-week > .note { margin: 0; padding: var(--sp-2) 0 var(--sp-3); }
@media (min-width: 760px) { .this-week-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the demo's team chooser page */
.demo-note { margin-bottom: var(--sp-4); }
/* 240px holds the longest club name on one line beside its logo */
.choose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-2); margin-top: var(--sp-4); }
.choose-club { display: flex; align-items: center; gap: var(--sp-2); padding: 10px 12px; border-radius: var(--r); background: var(--fill); color: var(--ink); }
.choose-club:hover { background: var(--fill-2); }

/* ============================================================== college === */
.cfb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--sp-6) var(--sp-8); }
.cfb-week { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.cfb-week .sel { width: auto; min-width: 9rem; max-width: 100%; }
.cfb-week .cfb-field { display: inline-flex; align-items: center; gap: var(--sp-2); max-width: 100%; }
.cfb-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); margin: 0 0 var(--sp-3); }
/* the week picker beside a board link: the bar holds the space under both */
.cfb-bar > .pops { margin: 0; }
.cfb-bar-links { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.cfb-states { margin: 0 0 var(--sp-3); }
.cfb-top { margin: 0; padding-left: 1.2em; display: grid; gap: var(--sp-1); font-size: var(--fs-sm); list-style: decimal; }
.cfb-line-stats { color: var(--sub); font-variant-numeric: tabular-nums; }
.cfb-empty .dim { font-style: italic; }
td.cfb-pos { font-size: var(--fs-xs); font-weight: 500; color: var(--sub); }
/* a position that links to its board reads like one that does not */
td.cfb-pos .link { color: inherit; }
td.cfb-pos .link:hover { color: var(--ink); }
td.cfb-size { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cfb-region { white-space: nowrap; }
.cfb-listed { font-weight: 400; color: var(--sub); }
.cfb-board-note { max-width: 78ch; margin: var(--sp-1) 0 var(--sp-2); font-size: var(--fs-sm); line-height: 1.55; color: var(--sub); }
.cfb-net { font: 600 var(--fs-xl)/1.1 var(--sans); color: var(--ink); }
/* a school's pages: text tabs on a rule, like the section tabs */
.cfb-tabs { display: flex; flex-wrap: wrap; gap: 0 var(--sp-6); margin: 0 0 var(--sp-4); border-bottom: 1px solid var(--line); }
.cfb-tabs a { position: relative; padding: var(--sp-3) 0 13px; color: var(--sub); text-decoration: none; }
.cfb-tabs a:hover { color: var(--ink); }
.cfb-tabs a[aria-current] { color: var(--ink); font-weight: 600; }
.cfb-tabs a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }
/* Team rankings: a defense's "allowed" headers run to two lines, so every header sits on the bottom one */
.cfb-units thead th { vertical-align: bottom; }

/* a game's standouts: one block per team, the region's team marked */
.cfb-game { margin: 0 0 var(--sp-4); }
.cfb-game-h { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: baseline; margin: 0 0 var(--sp-2); font: 600 var(--fs-md)/1.3 var(--sans); }
.cfb-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--sp-4) var(--sp-8); }
.cfb-team { min-width: 0; padding: var(--sp-3) 0 0; border-top: 1px solid var(--line-2); }
.cfb-team.is-region { border-top-color: var(--ink); }
.cfb-team-h { margin: 0 0 var(--sp-2); font: 600 var(--fs-sm)/1.3 var(--sans); }
/* start, not stretch: the shorter list keeps its own line spacing */
.cfb-sides { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--sp-2); }
.cfb-slots { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: var(--fs-sm); }
.cfb-slot { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
/* a list of names reads like table rows: the underline shows under the pointer */
.cfb-slot .link { text-decoration: none; }
.cfb-slot .link:hover { text-decoration: underline; }
.cfb-slot > .link { font-weight: 500; }
/* a school's schedule: each game is one block under one rule, its score line
 * clear of the rule; the lone team block inside needs no rule of its own */
article.cfb-game { padding-top: var(--sp-4); }
.cfb-game > .cfb-team { padding-top: 0; border-top: 0; }
.cfb-kind { font: 500 var(--fs-2xs)/1.2 var(--sans); color: var(--sub); }
/* a game: a block whose summary is the score line */
.cfb-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); gap: 0 var(--sp-8); align-items: start; }
details.cfb-game { min-width: 0; margin: 0; padding: 0; }
details.cfb-game[open] { grid-column: 1 / -1; margin: 0 0 var(--sp-2); }
.cfb-game-date { order: 1; }
.cfb-game-best { order: 2; flex: 1 1 100%; min-width: 0; padding-left: 19px; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.cfb-hint { margin: -4px 0 var(--sp-3); }
.cfb-game-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); padding: var(--sp-3) 0; cursor: pointer; list-style: none; }
.cfb-game-sum::-webkit-details-marker { display: none; }
.cfb-game-sum::before { content: ""; flex: none; align-self: center; width: 7px; height: 7px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(-45deg); transition: transform 150ms var(--ease); }
details[open] > .cfb-game-sum::before { transform: rotate(45deg); }
.cfb-game-sum:hover { background: var(--fill); }
.cfb-game-sum:focus-visible { outline-offset: -3px; }
.cfb-game-sum .cfb-game-h { flex: 1; margin: 0; font-size: var(--fs-lg); }
.cfb-score b { font-weight: 600; }
.cfb-game-body { padding: 0 0 var(--sp-3); }
.cfb-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(min(280px, 100%), 1fr); gap: var(--sp-8); align-items: start; }
.cfb-split > .cfb-sec { margin: 0; min-width: 0; }

/* landing: one block per area; the whole block is the area link (a stretched
 * link), and the player links inside it sit above that */
.cfb-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: var(--sp-6) var(--sp-8); margin-top: var(--sp-3); }
.cfb-area { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; padding: var(--sp-5) 0 0; border-top: 1px solid var(--line); }
.cfb-area-h { margin: 0; font: 600 var(--fs-xl)/1.2 var(--sans); letter-spacing: var(--snug); }
.cfb-area-link { color: var(--ink); text-decoration: none; }
.cfb-area-link::after { content: ""; position: absolute; inset: 0; }
.cfb-area:hover .cfb-area-link { text-decoration: underline; text-underline-offset: 3px; }
.cfb-area-link:focus-visible { outline: none; }
.cfb-area-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; }
.cfb-area-states { margin: -6px 0 0; font-size: var(--fs-xs); color: var(--sub); }
.cfb-area-figs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0; }
.cfb-area-figs > div { padding: 0 var(--sp-4); border-left: 1px solid var(--line); }
.cfb-area-figs > div:first-child { padding-left: 0; border-left: 0; }
.cfb-area-figs dt { font-size: var(--fs-2xs); color: var(--sub); }
.cfb-area-figs dd { margin: 2px 0 0; font: 600 var(--fs-xl)/1.1 var(--sans); color: var(--ink); }
.cfb-area-top { display: grid; gap: 2px; font-size: var(--fs-sm); min-width: 0; overflow-wrap: anywhere; }
.cfb-area-inner { position: relative; z-index: 1; font-size: var(--fs-md); font-weight: 500; justify-self: start; }
.cfb-area-list { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.cfb-area-list .cfb-line-stats { display: block; }
.cfb-area-list .cfb-area-inner { font-size: var(--fs-sm); }
.cfb-area-go { margin-top: auto; font: 500 var(--fs-sm)/1.2 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* above the block-wide stretched link */
.cfb-area a.cfb-chip, .cfb-area-school { position: relative; z-index: 1; }

/* area page: an in-page index of its sections (plain anchors, no script) */
.cfb-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--sp-4); padding: var(--sp-2) 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.cfb-jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: var(--r); background: var(--fill); color: var(--ink); font: 500 var(--fs-xs)/1.2 var(--sans); text-decoration: none; }
.cfb-jump a:hover { background: var(--fill-2); }
.cfb-jump .count { font-size: var(--fs-2xs); }
/* a section or a position block a link opens clears the sticky index */
.cfb-sec, .cfb-pos-card { scroll-margin-top: 64px; }
.cfb-sec { margin: 0 0 var(--sp-8); }
.cfb-sec > .section-title { margin: 0 0 var(--sp-3); }
.cfb-pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--sp-6) var(--sp-8); }
.cfb-pos-card { display: flex; flex-direction: column; min-width: 0; padding: var(--sp-4) 0 0; }
.cfb-pos-h { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-2); font: 600 var(--fs-md)/1.3 var(--sans); }
.cfb-pos-note { margin: 0 0 var(--sp-2); font-size: var(--fs-xs); line-height: 1.45; color: var(--sub); }
.cfb-rank { margin: 0; padding: 0; list-style: none; display: grid; }
.cfb-rank > li { display: flex; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-2) 0; border-top: 1px solid var(--line-2); min-width: 0; }
.cfb-rank > li:first-child { border-top: 0; padding-top: 0; }
.cfb-rank-n { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--fill); color: var(--sub); font: 600 var(--fs-2xs)/1 var(--sans); }
/* first place, and every line tied for it (region top 3) */
.cfb-rank > li:first-child .cfb-rank-n, .cfb-rank-n.is-first { color: var(--paper); background: var(--ink); }
.cfb-rank-body { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.cfb-rank-body > .link { font-size: var(--fs-md); font-weight: 500; text-decoration: none; }
.cfb-rank-body > .link:hover { text-decoration: underline; }
/* a long school and opponent push the game score down a line whole */
.cfb-rank-score { white-space: nowrap; }
.cfb-rank-v { justify-self: start; font-size: var(--fs-sm); color: var(--sub); }
.cfb-rank-tight > li { padding: 6px 0; }
/* Keeps showing up: the count sits under the name, or beside it on every line
   once the list is wide enough; the list decides, not each line */
.cfb-rank-tight { container: regulars / inline-size; }
.cfb-rank-main { flex: 1; min-width: 0; display: grid; column-gap: var(--sp-2); }
@container regulars (min-width: 420px) {
  .cfb-rank-main { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
}
.cfb-star { flex: none; margin: -5px 0 0; }
.cfb-star-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 18px; line-height: 1; color: var(--sub); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.cfb-star-btn:hover { color: var(--ink); background: var(--fill); }
.cfb-star-btn[aria-pressed="true"] { color: var(--hot); }

/* CFB home: the leaderboard, then the watch list; This week's tiles */
.chome { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.chome .cfb-score .dim { white-space: nowrap; }
/* on a narrow phone the count moves under the heading in one piece */
.chome .section-title { flex-wrap: wrap; }
.chome .section-title .count { white-space: nowrap; }
.chome-watch { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
/* one tile per position group under a strip in the leader's school colour */
.chome-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--sp-6) var(--sp-8); margin-top: var(--sp-1); }
.chome-tile { position: relative; display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; padding: var(--sp-4) 0 0; overflow-wrap: anywhere; }
.chome-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--r-pill); background: var(--school, var(--line)); }
.chome-tile-h { margin: 0; }
.chome-tile-h .link { color: var(--sub); font-weight: 500; text-decoration: none; }
.chome-lead { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.chome-lead-body { display: grid; justify-items: start; gap: var(--sp-1); min-width: 0; }
.chome-lead-name { font: 600 var(--fs-lg)/1.25 var(--sans); color: var(--ink); text-decoration: none; }
.chome-lead-meta { font-size: var(--fs-xs); color: var(--sub); }
.chome-lead-line { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; }
.chome-stat { white-space: nowrap; }
.chome-lead-name:hover, .chome-lead-line:hover, .chome-next a.cfb-line-stats:hover { text-decoration: underline; text-underline-offset: 3px; }
.chome-next { display: grid; margin: 0; padding: 0; list-style: none; }
.chome-next > li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); min-width: 0; padding: var(--sp-2) 0; border-top: 1px solid var(--line-2); font-size: var(--fs-sm); }
.chome-next .link { font-weight: 500; text-decoration: none; }
.chome-next a.cfb-line-stats { margin-left: auto; font-size: var(--fs-xs); text-align: right; text-decoration: none; }

/* College photos: the photo and the initials share one fixed round box, so a
 * missing or failed photo swaps to the initials with no layout shift.
 * --school (a checked hex) arrives inline on the initials. The box drops any
 * --school it inherits (a This week tile sets one for its strip), so a school
 * with no colour keeps the neutral box. */
.cfb-photo { --school: initial; display: inline-flex; flex: none; width: var(--photo); height: var(--photo); overflow: hidden; border-radius: var(--r-pill); background: var(--fill); text-decoration: none; }
.cfb-photo-24 { --photo: var(--photo-sm); }
.cfb-photo-36 { --photo: var(--photo-md); }
.cfb-photo-64 { --photo: var(--photo-lg); }
.cfb-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cfb-photo-fb { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--school, var(--fill)); font: 600 var(--fs-2xs)/1 var(--sans); white-space: nowrap; user-select: none; }
.cfb-photo-fb.is-light { color: var(--paper); }
.cfb-photo-fb.is-dark { color: var(--ink); }
.cfb-photo-64 .cfb-photo-fb { font-size: var(--fs-xl); }
.cfb-photo img[hidden], .cfb-photo-fb[hidden] { display: none; }
.cfb-school { display: inline-flex; align-items: center; gap: var(--sp-1); vertical-align: middle; font: 500 var(--fs-xs)/1.2 var(--sans); color: var(--sub); text-decoration: none; white-space: nowrap; }
.cfb-school:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cfb-school img { flex: none; width: var(--logo-sm); height: var(--logo-sm); object-fit: contain; }
.cfb-school img[hidden] { display: none; }
.cfb-who { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.cfb-who .link { font-weight: 500; text-decoration: none; }
/* the player page's identity line under his name */
.cfb-id { display: flex; align-items: center; gap: var(--sp-4); min-width: 0; margin: 0 0 var(--sp-4); }
.cfb-id-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-3); min-width: 0; margin: 0; font-size: var(--fs-sm); color: var(--sub); }
.cfb-id-jersey { font: 600 var(--fs-xl)/1 var(--sans); color: var(--ink); }
.cfb-id .cfb-school { font-size: var(--fs-sm); color: var(--ink); }

/* college How page: the formula and its terms */
.cfb-formula { margin: .5rem 0 0 1.25rem; display: grid; gap: .5rem; max-width: 80ch; }
.cfb-formula code, .cfb-terms code { font-family: var(--mono); font-size: .875em; background: var(--fill); padding: .05rem .3rem; border-radius: 3px; overflow-wrap: anywhere; }
.cfb-terms { display: grid; gap: .25rem .75rem; max-width: 80ch; margin-top: .5rem; }
.cfb-terms dt { font-weight: 600; margin-top: .5rem; }
.cfb-terms dd { margin: 0; }

/* ================================================================ about ===
 * One readable page per rating: short sections on a narrow measure. */
.about { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.about-hero { padding: var(--sp-2) 0 var(--sp-8); }
.about-hero p { max-width: 65ch; font-size: var(--fs-lg); line-height: 1.55; }
.about-hero p + p { margin-top: var(--sp-3); }
.about-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.about-sec { padding: var(--sp-8) 0; border-top: 1px solid var(--line); }
.about-sec h2 { margin-bottom: var(--sp-3); font: 600 var(--fs-xl)/1.2 var(--sans); letter-spacing: var(--snug); }
.about-sec h3 { margin: var(--sp-5) 0 var(--sp-1); font: 600 var(--fs-lg)/1.3 var(--sans); }
.about-sec p, .about-sec li { max-width: 68ch; line-height: 1.6; }
.about-sec p + p { margin-top: var(--sp-3); }
.about-steps { counter-reset: step; display: grid; gap: var(--sp-3); margin-top: var(--sp-2); }
.about-steps li { counter-increment: step; position: relative; padding-left: 44px; }
.about-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fill); color: var(--ink); font: 600 var(--fs-xs)/1 var(--sans); }
.about-list { display: grid; gap: var(--sp-2); margin-top: var(--sp-2); padding-left: 1.25rem; list-style: disc; }
.about-sec .table-wrap { margin-top: var(--sp-3); }
.about-formula { margin-top: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-radius: var(--r); background: var(--fill); font-weight: 500; }
.about-scale { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.about-scale div { display: flex; align-items: center; gap: var(--sp-3); }
.about-scale .tier { flex: none; min-width: 92px; }

/* ===================================================== search and trades === */
/* the sentence box, under the page header */
.fnd-say { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); padding: var(--sp-3) 0; }
.main.is-board > .fnd-say { padding-left: 0; padding-right: 0; }
.fnd-say .sel { flex: 1 1 16rem; width: auto; min-width: 0; max-width: 40rem; }
.fnd-unread, .fnd-fixes { margin: 0 0 var(--sp-3); flex: none; }
/* a range's two boxes; a stat row is the stat, then how and how many, then the span */
.fnd-two, .fnd-stat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-2); }
.fnd-stat + .fnd-stat { margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line-2); }
.fnd-stat > :first-child, .fnd-stat > :last-child { grid-column: 1 / -1; }
/* Trade search hits: the name and its detail share a line when they fit; on
 * a phone the detail wraps under the name, inside the button's padding. */
.pick-hit { flex-wrap: wrap; justify-content: flex-start; gap: 0 var(--sp-2); max-width: 100%; padding: var(--sp-2) var(--sp-4); border-radius: var(--r-md); line-height: 1.3; text-align: left; white-space: normal; }
.pick-hit-detail { color: var(--bar-sub); font-weight: 400; }

/* =========================================================== responsive === */
@media (max-width: 1100px) { .cfb-split { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 861px) { .cfb-jump { position: sticky; top: 0; z-index: 2; } }
@media (max-width: 860px) {
  .door-hero { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-8) 0 var(--sp-6); }
  .door-hero h1 { font-size: var(--fs-2xl); }
  .doors { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
  .door { padding: var(--sp-6) var(--sp-5); }
  .door-top img, .door-mark-fb { height: 44px; }
  .door-mark-fb { width: 44px; }
  .door-lead li { grid-template-columns: 18px minmax(0, 1.4fr) minmax(0, 1fr) 56px; gap: var(--sp-2); font-size: var(--fs-md); }
  .door-acts .btn { flex: 1 0 100%; }
  .club-card { grid-template-columns: minmax(0, 1fr); }
  .club-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .club-head .club-logo { width: 72px; height: 72px; }
  /* on a phone the results come before the filters, not after a screen of them */
  .board:has(.fnd-stat) > .content { order: -1; }
}
@media (max-width: 640px) {
  .cfb-sec > .section-title { flex-wrap: wrap; }
  .cfb-sec > .section-title .count { flex-basis: 100%; }
  .cfb-jump a { min-height: 40px; }
  .cfb-sides { grid-template-columns: minmax(0, 1fr); }
  .cfb-week { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .cfb-week .sel { width: 100%; min-width: 0; }
  .cfb-week .cfb-field { display: contents; }
  .cfb-week > button, .cfb-week > .btn { grid-column: 1 / -1; justify-self: start; }
  /* the week picker beside a board link: the picker on one row, the link on
     the next; the margin takes back the room it pads for a focus ring */
  .cfb-bar > .pops { flex: 1 1 100%; margin: calc(-1 * var(--sp-1)); }
}
