/* ============================================================
   Pigskin Lab · College — a theme layer, not a second stylesheet.
   The layout is site.css's; :root[data-league="cfb"] swaps the tokens so the whole screen reads as college: green where
   the NFL side is red, a deep field-green header. Contrast checked (WCAG AA, 4.5:1 for words):
     light: --brand-ink #0d6b35 on #fff 6.6:1; white on --brand-btn #0d6b35 6.6:1; header ink #fff on #0c3a24 12.8:1,
            header muted #b9dcc6 on #0c3a24 8.6:1; --link #0b57d0 unchanged.
     dark:  --brand-ink #4cc982 on #161616 8.6:1; white on --brand-btn #157a40 5.4:1; header muted #9fcfb2 on #07261a 9.3:1; gold #c9a227 on the header 5.3:1.
   Also the "NFL | College" switch, which the NFL pages load too (public/js/league-toggle.js) when CFB is on.
   ============================================================ */

:root[data-league="cfb"] {
  --brand: #12803f;
  --brand-ink: #0d6b35;
  --brand-btn: #0d6b35;
  --header-bg: #0c3a24;
  --header-ink: #ffffff;
  --header-muted: #b9dcc6;
  --row-hover: #e9f6ee;
  --ink-btn: #0c3a24;
  --ink-btn-text: #ffffff;
  --cfb-field: #0f5a33;
  --cfb-field-2: #13703f;
  --cfb-line: rgba(255, 255, 255, .55);
  --cfb-gold: #c9a227;
  --cfb-tint: #f1f8f3;
  /* Charts: the first series is the college green; the rest stay the shared, tested set. */
  --s1: #13803f; --s1-ink: #0d6b35;
}
:root[data-league="cfb"][data-theme="dark"] {
  --brand: #2fa862;
  --brand-ink: #4cc982;
  --brand-btn: #157a40;
  --header-bg: #07261a;
  --header-ink: #edf7f0;
  --header-muted: #9fcfb2;
  --row-hover: #1d3326;
  --ink-btn: #4cc982;
  --ink-btn-text: #07261a;
  --cfb-field: #0b3f25;
  --cfb-field-2: #0f4f2e;
  --cfb-line: rgba(255, 255, 255, .35);
  --cfb-tint: #18241c;
  --s1: #3fb871; --s1-ink: #6fd59a;
}

[data-league="cfb"] .site-header { border-bottom-color: var(--cfb-gold); }
[data-league="cfb"] .site-header .search input { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .28); }
[data-league="cfb"] .icon-btn { border-color: rgba(255, 255, 255, .3); }
[data-league="cfb"] .icon-btn:hover { background: rgba(255, 255, 255, .08); }
[data-league="cfb"] .section-head { border-bottom-color: var(--brand); }
[data-league="cfb"] .section-head h2 { color: var(--text); }
[data-league="cfb"] .nav a[aria-current="page"] { border-bottom-color: var(--cfb-gold); }


/* ---------- the switch: NFL | College (a slide switch, top right) ---------- */
.league-switch { --ls-w: 132px; --ls-h: 30px; position: relative; flex: none; width: var(--ls-w); height: var(--ls-h); padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  background: #8f0b20; cursor: pointer; isolation: isolate; overflow: hidden; touch-action: pan-y; transition: background-color .3s ease; font: 700 .68rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.league-switch[data-on="cfb"] { background: #0b5c2e; }
.league-switch .ls-label { position: absolute; z-index: 2; top: 0; bottom: 0; width: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, .78); transition: color .3s; pointer-events: none; }
.league-switch .ls-nfl { left: 0; } .league-switch .ls-cfb { right: 0; }
.league-switch[data-on="nfl"] .ls-nfl, .league-switch[data-on="cfb"] .ls-cfb { color: #111; }
.league-switch .ls-knob { position: absolute; z-index: 1; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .28s cubic-bezier(.4, 0, .2, 1); }
.league-switch[data-on="cfb"] .ls-knob { transform: translateX(100%); }
.league-switch:hover { border-color: rgba(255, 255, 255, .7); }
.league-switch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* (Leaving a side: the page is covered by the wash in public/js/theme.js, not faded here.) */
@media (prefers-reduced-motion: reduce) { .league-switch, .league-switch .ls-knob, .league-switch .ls-label { transition: none; } }
/* On a phone: smaller, at the end of the logo row (top right). */
@media (max-width: 680px) { .league-switch.ls-top { --ls-w: 112px; --ls-h: 26px; margin-left: auto; font-size: .62rem; letter-spacing: .03em; } }
@media (max-width: 440px) { .site-header:has(.ls-top) .brand { font-size: 1.12rem; gap: 7px; letter-spacing: .04em; } .site-header:has(.ls-top) .brand img { width: 24px; height: 24px; } .site-header:has(.ls-top) .wrap { column-gap: 6px; } }
@media (max-width: 370px) { .league-switch.ls-top { --ls-w: 98px; } }
/* The Beta tag on the college side: the same tag, in college gold on green. */
[data-league="cfb"] .beta-pill { border-color: #c9a227; color: #f2d27a; }
[data-league="cfb"] .beta-pill:hover { background: #10472c; color: #ffe39a; }

/* ---------- the college front page ---------- */
.cfb-hero { position: relative; overflow: hidden; color: #fff; background: var(--cfb-field); isolation: isolate; }
.cfb-hero .wrap { position: relative; z-index: 2; padding-top: 34px; padding-bottom: 30px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 900px) { .cfb-hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 22px; padding-bottom: 20px; gap: 16px; } }
.cfb-hero .eyebrow { color: var(--cfb-gold); }
.cfb-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 10px; text-transform: uppercase; }
.cfb-hero h1 em { font-style: normal; color: #9be3b7; }
.cfb-hero p.lede { color: #dcefe3; max-width: 52ch; }
/* The field behind the words: yard lines that roll toward you, the hash marks, a ball's arc. */
.cfb-field { position: absolute; inset: 0; z-index: 0; background:
  repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--cfb-line) calc(10% - 1px) 10%),
  linear-gradient(180deg, var(--cfb-field-2), var(--cfb-field)); opacity: .5; transform-origin: 50% 100%; transform: perspective(600px) rotateX(38deg) scale(1.6); animation: cfb-roll 14s linear infinite; }
.cfb-field::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(2% - 1px), rgba(255,255,255,.18) calc(2% - 1px) 2%); mask: linear-gradient(180deg, transparent 0 46%, #000 46% 49%, transparent 49% 51%, #000 51% 54%, transparent 54%); }
@keyframes cfb-roll { from { background-position: 0 0, 0 0; } to { background-position: 200px 0, 0 0; } }
.cfb-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 90% at 20% 30%, rgba(12,58,36,.2), rgba(7,38,26,.88)); }
.cfb-ball { position: absolute; z-index: 1; width: 26px; height: 16px; border-radius: 50%; background: #7a4a24; box-shadow: inset 0 0 0 2px #5a3518; offset-path: path('M -40 220 Q 420 -60 1100 180'); animation: cfb-throw 7s cubic-bezier(.35, .1, .4, 1) infinite; opacity: 0; }
.cfb-ball::after { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: #fff; }
@keyframes cfb-throw { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: .9; } 70% { opacity: .9; } 85%, 100% { offset-distance: 100%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cfb-field, .cfb-ball { animation: none; } .cfb-ball { display: none; } }

.cfb-ask { display: grid; gap: 8px; }
.cfb-ask form { display: flex; gap: 0; background: #fff; border: 2px solid var(--cfb-gold); }
.cfb-ask input[type="search"] { flex: 1; height: 46px; border: 0; font-size: 1rem; padding: 0 12px; background: #fff; color: #111; }
.cfb-ask button { border: 0; background: var(--brand-btn); color: #fff; font: 700 .85rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 0 18px; cursor: pointer; }
.cfb-ask button:hover { filter: brightness(1.08); }
.cfb-prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.cfb-prompts button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.35); font: 500 .78rem/1 var(--font); padding: 7px 9px; cursor: pointer; }
.cfb-prompts button:hover { background: rgba(255,255,255,.2); }
.cfb-stamp { font-size: .74rem; color: var(--muted); margin-top: 6px; }
.cfb-hero .cfb-stamp { color: #b9dcc6; }

/* Score tiles: the week's games. */
.cfb-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cfb-tile { display: grid; gap: 4px; padding: 9px 12px; background: var(--surface); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text); position: relative; }
.cfb-tile[hidden] { display: none; }
.cfb-tile:hover { background: var(--row-hover); text-decoration: none; }
.cfb-tile .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.cfb-tile .row b { font: 700 1.05rem/1 var(--display); }
.cfb-tile .row.lost { color: var(--muted); }
.cfb-tile .row.lost b { font-weight: 400; }
.cfb-tile .meta { font-size: .72rem; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; }
.cfb-tile .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfb-tile .rk { font-size: .7rem; color: var(--muted); margin-right: 3px; font-weight: 700; }

/* Our own drawn team badge: two colours and the school's initials, never a logo. */
.cfb-badge { --a: #555; --b: #fff; display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; background: var(--a); color: var(--b); font: 700 .56rem/1 var(--display); letter-spacing: .02em; clip-path: polygon(50% 0, 100% 18%, 100% 70%, 50% 100%, 0 70%, 0 18%); }
.cfb-badge.lg { width: 64px; height: 64px; font-size: 1.2rem; }
.cfb-badge.md { width: 36px; height: 36px; font-size: .78rem; }

.cfb-poll { counter-reset: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cfb-poll a { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 10px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; }
.cfb-poll a:hover { background: var(--row-hover); text-decoration: none; }
.cfb-poll .n { font: 700 1rem/1 var(--display); color: var(--brand-ink); text-align: right; }
.cfb-poll .r { font-size: .76rem; color: var(--muted); }

.cfb-races { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.cfb-race { border: 1px solid var(--border); background: var(--surface); }
.cfb-race h3 { margin: 0; padding: 7px 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; background: var(--cfb-tint); border-bottom: 1px solid var(--border); }
.cfb-race a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 5px 10px; color: var(--text); font-size: .84rem; font-variant-numeric: tabular-nums; }
.cfb-race a:hover { background: var(--row-hover); text-decoration: none; }
.cfb-race small { color: var(--muted); }

.cfb-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.cfb-lead { border: 1px solid var(--border); background: var(--surface); padding: 8px 10px; }
.cfb-lead h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; color: var(--muted); }
.cfb-lead a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; color: var(--text); padding: 4px 0; border-top: 1px solid var(--grid); }
.cfb-lead a:first-of-type { border-top: 0; }
.cfb-lead a:hover { text-decoration: none; background: var(--row-hover); }
.cfb-lead .v { font: 700 1rem/1.2 var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.cfb-lead .bar { grid-column: 1 / -1; height: 4px; background: var(--grid); }
.cfb-lead .bar i { display: block; height: 100%; background: var(--brand); }
.cfb-lead small { color: var(--muted); }
.cfb-lead a.top .v { color: var(--brand-ink); }

/* Ask's answer. */
.cfb-answer { border: 1px solid var(--border); background: var(--surface); padding: 12px 14px; margin-top: 12px; }
.cfb-answer h2 { text-transform: none; font-size: 1.3rem; margin-bottom: 4px; }
.cfb-answer .understood { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.cfb-answer .lead { font-size: 1rem; color: var(--text-2); }
.cfb-answer .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cfb-answer td .bar { display: inline-block; height: 8px; background: var(--brand); vertical-align: middle; margin-right: 6px; }
.cfb-panel { border: 1px solid var(--border); border-left: 4px solid var(--brand); background: var(--cfb-tint); padding: 18px 18px 16px; max-width: 760px; margin: 18px 0; }
.cfb-panel h2 { text-transform: none; font-size: 1.3rem; }

/* Team page header. */
.cfb-teamhead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; border-bottom: 4px solid var(--tc, var(--brand)); padding: 16px 0 12px; margin-bottom: 14px; }
.cfb-teamhead h1 { margin: 0; }
.cfb-teamhead p { margin: 2px 0 0; color: var(--text-2); }
.cfb-line { width: 100%; }
.cfb-line td, .cfb-line th { text-align: center !important; }
.cfb-line td.l, .cfb-line th.l { text-align: left !important; }
.cfb-scorebig { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 0 10px; border-bottom: 1px solid var(--border); }
.cfb-scorebig .side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cfb-scorebig .side.r { justify-content: flex-end; text-align: right; }
.cfb-scorebig .pts { font: 700 2.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.cfb-scorebig .nm { font: 700 1.15rem/1.1 var(--display); }
.cfb-scorebig .mid { text-align: center; font-size: .78rem; color: var(--muted); }
@media (max-width: 560px) { .cfb-scorebig .pts { font-size: 1.9rem; } .cfb-scorebig .nm { font-size: .95rem; } .cfb-scorebig { gap: 8px; } }
.cfb-sources { font-size: .76rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 18px; padding-top: 8px; }
.cfb-sources a { color: var(--muted); text-decoration: underline; }
.cfb-weeks { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0 12px; }
.cfb-weeks a { border: 1px solid var(--border-strong); padding: 4px 8px; font: 600 .74rem/1 var(--font); color: var(--text-2); background: var(--surface); }
.cfb-weeks a[aria-current="true"] { background: var(--brand-btn); border-color: var(--brand-btn); color: #fff; }
.cfb-weeks a:hover { text-decoration: none; background: var(--row-hover); }
.cfb-weeks a[aria-current="true"]:hover { background: var(--brand-btn); }

/* Ask's example questions on a page (not the hero): ordinary buttons. */
.cfb-ask.on-page .cfb-prompts button { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.cfb-ask.on-page .cfb-prompts button:hover { background: var(--row-hover); }
.cfb-ask.on-page form { border-color: var(--brand); }
/* Team tiles: four across, two rows; two across on a phone. */
.cfb-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cfb-kpis .kpi { border-bottom: 1px solid var(--border); }
@media (max-width: 640px) { .cfb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cfb-kpis .kpi:nth-child(2n) { border-right: 0; } }
.cfb-ap span { display: inline-grid; gap: 1px; text-align: center; border: 1px solid var(--border); padding: 4px 8px; background: var(--surface); font-variant-numeric: tabular-nums; }
.cfb-ap small { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cfb-ap b { font: 700 .9rem/1 var(--display); color: var(--brand-ink); }
/* A game on a phone: the score line stacks its names under the badges; tables scroll inside their frame. */
@media (max-width: 560px) {
  .cfb-scorebig { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; }
  .cfb-scorebig .side { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cfb-scorebig .side.r { align-items: flex-end; }
  .cfb-scorebig .side.r .cfb-badge { order: -1; }
  .cfb-scorebig .side .small { display: none; }
  .cfb-scorebig .mid { font-size: .7rem; max-width: 120px; }
  .tbl-wrap { -webkit-overflow-scrolling: touch; }
}

/* Team stats on a phone: a cell may take two lines rather than run off the frame. */
table.stats.cfb-wrapcells td, table.stats.cfb-wrapcells th { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; max-width: none !important; }
@media (max-width: 560px) { table.stats.cfb-wrapcells td:first-child { width: 34%; } }

.cfb-readas { margin: 12px 0 0; font-size: .86rem; color: var(--text-2); border-left: 3px solid var(--brand); padding: 4px 10px; background: var(--cfb-tint); }

/* The Ask box on a page, in dark mode: the page's surface, not a white slab. */
:root[data-theme="dark"] .cfb-ask.on-page input[type="search"] { background: var(--surface); color: var(--text); }

/* A scoring drive keeps its shade on every row (the zebra stripe would win on the even ones). */
[data-league="cfb"] table.stats tbody tr.pin td { background: var(--row-hover); font-weight: 600; }

/* ---------- game packs, the live box, the board maker, compare and creator tools (public/js/cfb/extras.js) ---------- */
.cfb-packs { display: grid; gap: 12px; }
.cfb-packrow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 16px; }
.cfb-packbtns { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 1 660px; min-width: 0; }
.cfb-packsaid { flex: 1 1 380px; min-width: 0; line-height: 1.4; font-size: .85rem; }
.cfb-packpanel { padding: 10px 12px; border: 1px solid var(--border-strong); background: var(--surface); max-width: 560px; }
[data-league="cfb"] .spin { border-top-color: var(--brand); }

.cfb-live { border: 2px solid #1f9d55; background: var(--surface); padding: 12px 14px; margin: 14px 0; display: grid; gap: 10px; min-width: 0; }
.cfb-live[data-live="final"] { border-color: var(--border-strong); }
.cfb-live[data-live="off"], .cfb-live[data-live="loading"], .cfb-live[data-live="pre"] { border-style: dashed; border-color: var(--border-strong); }
.cfb-livehead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cfb-livebadge { display: inline-block; background: #15763f; color: #fff; font: 700 .8rem/1 var(--font); letter-spacing: 2px; padding: 6px 9px; border-radius: 3px; }
.cfb-livebadge.final { background: #3a3f47; }
.cfb-livebadge.sm { font-size: .62rem; padding: 3px 5px; letter-spacing: 1px; }
.cfb-livescore td, .cfb-livescore th { text-align: right; } .cfb-livescore .l { text-align: left; } .cfb-livescore .tot { font-weight: 700; }
.cfb-ball-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cfb-gold); margin-right: 6px; vertical-align: middle; }
.cfb-wpbar { display: flex; height: 30px; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.cfb-wpbar span { display: flex; align-items: center; padding: 0 8px; color: #fff; font: 700 .8rem/1 var(--font); white-space: nowrap; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.cfb-wpbar span:last-child { justify-content: flex-end; }
.cfb-field-live svg { border-radius: 8px; }
.cfb-feed { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; font-size: .86rem; max-height: 420px; overflow: auto; }
.cfb-feed li { border-bottom: 1px solid var(--border); padding-bottom: 5px; }
.cfb-feed b.up { color: var(--live-ink, #15763f); } .cfb-feed b.down { color: #c8102e; }
.cfb-livedrives summary { cursor: pointer; font-weight: 700; }

.cfb-compact { max-width: 880px; }
.cfb-cmp td, .cfb-cmp th { text-align: right; font-variant-numeric: tabular-nums; }
.cfb-cmp .l { text-align: left; }
.cfb-cmp td.win { font-weight: 700; color: var(--brand-ink); }
.cfb-cmp small { color: var(--muted); }
.cfb-cmp tr.pin { background: var(--cfb-tint); font-weight: 700; }
.cfb-picklist { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; max-width: 520px; }

.cfb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0; }
.cfb-chips .chip { display: inline-flex; align-items: center; gap: 6px; cursor: default; }
.cfb-chips .chip button { border: 0; background: none; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.cfb-add { position: relative; display: inline-block; }
.cfb-add > summary { list-style: none; cursor: pointer; font: 600 .8rem/1 var(--font); padding: 6px 10px; border: 1px dashed var(--border-strong); border-radius: 12px; }
.cfb-add > summary::-webkit-details-marker { display: none; }
.cfb-pop { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; display: grid; gap: 4px; padding: 8px; min-width: 240px; max-height: 320px; overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.cfb-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.cfb-boardtile { margin: 0; } .cfb-boardtile svg, .cfb-cardview svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.cfb-cardview { max-width: 900px; }
.cfb-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.cfb-tool { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.cfb-tool:hover { background: var(--row-hover); text-decoration: none; }
.cfb-tool b { color: var(--brand-ink); } .cfb-tool span { font-size: .86rem; color: var(--text-2); } .cfb-tool small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
@media (max-width: 600px) { .cfb-pop { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; max-height: 60vh; } }

/* A labelled swing on the college win-probability line is a button with the play's card (cfb/extras.js swingTarget; the owner,
   2026-11-15): a hand, and on hover or keyboard focus its pill lifts (a thicker ring in the text colour). */
.cfb-wpchart .swing-pill { cursor: pointer; outline: none; }
.cfb-wpchart .swing-pill > rect { transition: stroke-width .12s; }
.cfb-wpchart .swing-pill:hover > rect, .cfb-wpchart .swing-pill:focus-visible > rect, .cfb-wpchart .swing-pill[aria-expanded="true"] > rect { stroke: var(--text); stroke-width: 2.6px; }
.cfb-wpchart .swing-pill:focus-visible > rect { stroke-width: 3px; }
.tooltip.cfb-swingcard .tt-at { font-weight: 600; color: var(--text-2); margin-bottom: 3px; }
.tooltip.cfb-swingcard .tt-play { margin: 2px 0 5px; overflow-wrap: anywhere; }

/* Ask and page tables on a phone: the pinned columns never cover the ones scrolled under them (app.js pinColumns). */
.tbl-wrap.pin1 table.stats tr > :nth-child(2) { position: static; box-shadow: none; }
.tbl-wrap.pin0 table.stats tr > :first-child { position: static; }
.tbl-wrap.pin1 table.stats tr > :first-child { box-shadow: inset -1px 0 0 var(--border); }

/* About: what's in College, and what isn't (app.js coverageSection). Compact, two columns on wide screens. */
.cfb-coverage { margin-top: 18px; border-top: 3px solid var(--brand); padding-top: 10px; }
.cfb-coverage h2 { font-size: 1.25rem; margin: 0 0 8px; }
.cfb-coverage .cov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px 18px; margin-bottom: 10px; }
.cfb-coverage .cov-col { border: 1px solid var(--border); background: var(--surface); padding: 10px 12px; }
.cfb-coverage h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin: 0 0 6px; }
.cfb-coverage ul { margin: 0; padding-left: 16px; display: grid; gap: 5px; font-size: .88rem; }
.cfb-coverage li b { font-weight: 700; }
.cfb-coverage .yrs { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 9px; background: var(--brand); color: #fff; font-size: .74rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cfb-coverage li small { display: block; color: var(--muted); font-size: .78rem; }
.cfb-coverage .missing li::marker { content: '– '; }
@media (max-width: 480px) { .cfb-coverage .cov-grid { grid-template-columns: 1fr; } }
/* A college player's photo (lib/cfb/photos.js) in place of his school's badge, its credit under it; cropped round the face. */
.cfb-photo { margin: 0; display: grid; gap: 4px; width: 120px; }
.cfb-photo img { width: 120px; height: 150px; object-fit: cover; display: block; border: 1px solid var(--border); background: var(--surface-2); }
.cfb-photo figcaption { font-size: .66rem; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.cfb-photo figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cfb-teamhead .cfb-photo.lg { align-self: start; }
.cfb-answer-photo { float: right; margin: 0 0 6px 12px; }
.cfb-answer-photo:empty, .cfb-photo-credit:empty { display: none; }
.cfb-photo.sm, .cfb-photo.sm img { width: 64px; }
.cfb-photo.sm img { height: 80px; }
/* A photo cropped on the face (app.js photoFig): the frame is the box, the photo placed in it in percent. */
.cfb-photo-face { position: relative; display: block; overflow: hidden; width: 120px; height: 150px; border: 1px solid var(--border); background: var(--surface-2); }
.cfb-photo.sm .cfb-photo-face { width: 64px; height: 80px; }
.cfb-photo .cfb-photo-face img { position: absolute; max-width: none; border: 0; object-fit: fill; }
.cfb-photo-credit { margin: 6px 0 0; color: var(--muted); font-size: .72rem; }
.cfb-photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) { .cfb-photo:not(.sm) { width: 92px; } .cfb-photo:not(.sm) img { width: 92px; height: 115px; } .cfb-photo:not(.sm) .cfb-photo-face { width: 92px; height: 115px; } }
/* The pinned columns' headers pin with them (site.css makes a plain table's headers static, which left the header row
   scrolling under pinned body cells: the audit's phone overlap, 2026-11-14). */
.tbl-wrap:not(.pin0) table.stats.plain thead th:first-child { position: sticky; left: 0; }
.tbl-wrap:not(.pin0):not(.pin1) table.stats.plain thead th:nth-child(2) { position: sticky; left: var(--rk-w, 34px); box-shadow: inset -1px 0 0 var(--border); }

/* ---------- an Ask answer as a board (public/js/cfb/ask-board.js): tiles, then the charts two to a row, no holes ---------- */
.cfb-askboard { margin: 10px 0 12px; clear: both; }
.cfb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.cfb-kpi { border: 1px solid var(--border); border-top: 3px solid var(--brand); background: var(--surface); padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cfb-kpi .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cfb-kpi b { font-size: 1.45rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cfb-kpi .r { font-size: .8rem; font-weight: 700; color: var(--brand); }
.cfb-kpi .s { font-size: .74rem; color: var(--muted); }
.cfb-ask-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.cfb-ask-charts.one, .cfb-ask-charts > .cfb-ask-chart.wide, .cfb-ask-charts > .cfb-ask-chart.last-odd { grid-column: 1 / -1; }
.cfb-ask-charts.one { grid-template-columns: minmax(0, 1fr); }
.cfb-ask-chart { margin: 0; border: 1px solid var(--border); background: var(--surface); padding: 8px 10px; min-width: 0; }
.cfb-ask-chart h3 { font-size: .95rem; margin: 0 0 6px; text-transform: none; }
.cfb-ask-chart-svg svg { display: block; max-width: 100%; height: auto; }
/* A wide ready-made table drawn wider than a phone scrolls sideways at its drawn size (board-graphics.js). */
.cfb-ready-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cfb-ready-scroll svg { max-width: none; }
.cfb-ask-chart .chart-src { font-size: .74rem; color: var(--muted); margin: 6px 0 4px; }
.cfb-ask-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 0; }
.cfb-answer-table { clear: both; }
.cfb-answer-table.cfb-compact .tbl-wrap { display: inline-block; max-width: 100%; vertical-align: top; }
.cfb-answer-table.cfb-compact table { width: auto; }
.cfb-answer-table.cfb-compact td, .cfb-answer-table.cfb-compact th { padding-left: 14px; padding-right: 10px; }
@media (max-width: 760px) { .cfb-ask-charts { grid-template-columns: minmax(0, 1fr); } }
/* The ready-made graphics on a board (public/js/cfb/board-graphics.js): the hub's graphics and a comparison's broadcast card. */
.cfb-ready-box { margin: 12px 0 4px; }
.cfb-ready-title { font-size: 1rem; margin: 0 0 2px; text-transform: none; }
.cfb-ready-hint { margin: 0 0 8px; }
.cfb-ready-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cfb-ready-head h3 { flex: 1; min-width: 0; }
.cfb-ready-x { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 4px; width: 28px; height: 28px; line-height: 1; font-size: 18px; cursor: pointer; flex: none; }
.cfb-ready-x:hover, .cfb-ready-x:focus-visible { color: var(--text); border-color: var(--brand); }
.cfb-ready-focus { font-size: .8rem; font-weight: 700; color: #8a6a00; margin: 6px 0 0; }
:root[data-theme="dark"] .cfb-ready-focus { color: #e6c766; }
.cfb-ready-cv { display: block; width: 100%; height: auto; }
.cfb-ready-gonelist:empty { display: none; }
.cfb-ready-gonelist { margin: 6px 0 0; }
.cfb-ready-gone { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.cfb-ready-msg:empty { display: none; }
.cfb-ready-msg { margin: 6px 0 0; font-weight: 600; }
/* ---------- the fuller game, school and player parts (once public/js/cfb/pages.js, now the NFL views; the owner, 2026-11-16: "on par with the NFL one") ---------- */
.cfb-pair { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-start; }
.cfb-pair > .tbl-wrap { flex: 0 1 auto; max-width: 100%; }
.cfb-chart { margin: 4px 0 2px; color: var(--text); }
.cfb-chart.scroll { overflow-x: auto; }
.cfb-perfs { display: grid; gap: 8px; }
.cfb-perf { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--border); border-left: 4px solid var(--tc, var(--brand)); background: var(--surface); color: var(--text); text-decoration: none; }
.cfb-perf:hover { border-color: var(--text-2); }
.cfb-perf .k { font: 700 .68rem/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.cfb-perfbars { display: grid; gap: 3px; margin-top: 4px; }
.cfb-perfbars > span { position: relative; display: block; height: 18px; background: var(--surface-2); }
.cfb-perfbars i { position: absolute; inset: 0 auto 0 0; background: var(--tc, var(--brand)); opacity: .85; }
.cfb-perfbars .avg i { opacity: .35; }
.cfb-perfbars small { position: relative; padding: 0 6px; line-height: 18px; font-weight: 600; color: var(--text); text-shadow: 0 0 3px var(--surface); }
.cfb-pbp { display: grid; gap: 4px; margin-top: 8px; }
.cfb-pbp-drive { border: 1px solid var(--border); background: var(--surface); }
.cfb-pbp-drive > summary { display: grid; grid-template-columns: minmax(110px, 1.4fr) minmax(70px, .8fr) minmax(90px, 1fr) minmax(90px, 1fr); gap: 8px; padding: 6px 10px; cursor: pointer; font-size: .86rem; }
.cfb-pbp-drive > summary .score { font-weight: 700; color: var(--brand-ink); }
.cfb-pbp-drive ol { list-style: none; margin: 0; padding: 0 10px 8px; }
.cfb-pbp-drive li { display: grid; grid-template-columns: minmax(150px, 190px) 1fr auto; gap: 10px; padding: 4px 0; border-top: 1px solid var(--border); font-size: .84rem; }
.cfb-pbp-drive li .when { color: var(--text-2); white-space: nowrap; }
.cfb-pbp-drive li b { font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.cfb-pbp-drive li b.up { color: var(--brand-ink); }
.cfb-pbp-drive li b.down { color: #b3261e; }
@media (max-width: 640px) {
  .cfb-pbp-drive > summary { grid-template-columns: 1fr 1fr; }
  .cfb-pbp-drive li { grid-template-columns: 1fr auto; }
  .cfb-pbp-drive li .when { grid-column: 1 / -1; }
}
.cfb-glist { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.cfb-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 10px 12px; margin: 12px 0 0; border: 1px solid var(--border); border-left: 4px solid var(--brand); background: var(--surface); }
.cfb-next .k { font: 700 .7rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.cfb-next a:first-of-type { font-weight: 700; }
.cfb-next .more { margin-left: auto; }
.cfb-rankbar, .cfb-winbar { display: inline-block; width: 90px; height: 8px; background: var(--surface-2); vertical-align: middle; position: relative; }
.cfb-rankbar i, .cfb-winbar i { position: absolute; inset: 0 auto 0 0; background: var(--brand); }
:root[data-league="cfb"] .seg { flex-wrap: wrap; height: auto; min-height: 30px; }
.cfb-movers { font-size: .78rem; font-weight: 700; }
.cfb-movers.up { color: var(--brand-ink); }
.cfb-movers.down { color: #b3261e; }
.cfb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.cfb-chips .chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
