@charset "UTF-8";
/* css/components/typography.css */
/* Sports Index web typography, adopted from the Home polish experiment.
   Load after page CSS. Typography only: no surfaces, colors, spacing or motion.
   Remove the single base.html include to revert this pass across the site.
   Native third-party embeds and article/post body text keep their own styles. */
:root {
  --si-type-display:800;
  --si-type-heading:750;
  --si-type-label:650;
  --si-type-control:600;
  --si-type-meta:550;
}
/* Display identity remains confident; supporting hierarchy is quieter. */
html body.si-themed :is(h1,.xf-bh-title,.nhb-hc-title,.upf-name,.team-community-intro h2,.home-plans-title) {
  font-weight:var(--si-type-display);
}
html body.si-themed :is(.team-masthead h2,.gp-section-head h2,.contact-page .si-shead-label,
  .team-column-head h3,.team-game-slide h2,.gp h3,.set-head h1,.content-job-title,
  .as-content h2,.team-community-quote blockquote,.nhb-more-title,.upf-rank-title) {
  font-weight:var(--si-type-heading);
}
/* Compact overlines retain their existing size and case on each surface. */
html body.si-themed :is(.si-shead-label,.xf-shead-label,.xf-tw-kicker,.sc-day-head b,
  .team-eyebrow,.gp-eyebrow,.pp-fact small,.shx-feat-kicker,.shx-chase-eyebrow,
  .nhb-hc-kicker,.nhb-tr-eyebrow,.nhb-card-team,.rkx-card-kicker,.upf-slot-label) {
  font-weight:var(--si-type-heading);
}
/* News, roster identities and ranking rows should not compete with the hero. */
html body.si-themed :is(.xf-trend-title,.xf-card-title,.xf-rk-team,.xf-sl-id b,
  .xf-tw-team b,.nhb-tr-body b,.nhb-card-title,.nhb-fs-title,.nhb-x-id b,
  .team-game-side,.team-standing-row b,.team-player-body b,.team-stat-scroll tbody th,
  .team-sample-video b,.team-perk h3,.pp-fact b,.pp-fact a,.pp-log-title,
  .sc-side b,.sc-poll-row b,.rkx-pollteam b,.rkx-mover-body b,.rkx-team b,
  .rkx-bcard-team,.rkx-ballot-id a,.shx-chase-name,.shx-side-row b,.shx-find-hit b,
  .shx-game b,.disc-author,.disc-composer-who,.upf-row-title,.upf-player-name,
  .upf-art-title,.upf-rank-name,.upf-fc-flagbody b,.set-row strong,
  .contact-info-label,.content-job-link .content-job-title) {
  font-weight:var(--si-type-label);
}
html body.si-themed .scf-feed :is(.scf-card-copy h3,.scf-author b) {
  font-weight:var(--si-type-label);
}
html body.si-themed :is(.xf-trend-title,.xf-card-title,.nhb-card-title) { line-height:1.45; }
/* Secondary facts: preserve tabular alignment and all stat-specific precision. */
html body.si-themed :is(.xf-shead-meta,.xf-tw-meta,.xf-rk-rec,.xf-tw-status i,
  .team-standing-row>span:nth-last-child(-n+2),.team-schedule-date,.shx-chase-school,
  .rkx-rec,.sc-grid-net,.upf-fc-season) { font-weight:var(--si-type-meta); }
html body.si-themed :is(.xf-trend-tag,.xf-tw-status b,.team-game-status,.team-rank,
  .team-standing-head,.team-stat-scroll thead th,.shx-thead,.rkx-sthead,.sc-standings-head) {
  font-weight:var(--si-type-label);
}
/* Shared navigation and action labels; selected state still comes from each owner. */
html body.si-themed :is(.site-rail-btn,.site-cbar a,.set-nav a) { font-weight:var(--si-type-meta); }
html body.si-themed .site-rail-btn.is-active { font-weight:700; }
html body.si-themed :is(.team-tabs button,.team-segments button,.team-select summary,
  .team-menu button,.team-standings-toggle,.team-primary,.gp-sidebar-tabs button,
  .sc-chip,.sc-vt,.sc-day-pill,.rkx-switch-btn,.shx-cats button,.shx-chips button,
  .nhb-filter-head,.upf-tab,.upf-btn,.set-button,.contact-submit-btn,.disc-post-btn) {
  font-weight:var(--si-type-control);
}
/* These legacy controls already declare font weights !important. */
html body.si-themed :is(.xf-conf,.xf-seg-btn,.xf-mini-btn) { font-weight:var(--si-type-control)!important; }
/* Home adopts the reviewed responsive headline, without the surface experiment. */
html body.si-themed.page-explore .xf-bh-title {
  display:block; -webkit-line-clamp:unset; overflow:visible; overflow-wrap:anywhere;
  font-size:clamp(28px,2.45vw,38px); letter-spacing:-1.15px; line-height:1.15; text-wrap:pretty;
}
html body.si-themed.page-explore .xf-trend-title { font-size:17px; letter-spacing:-.25px; -webkit-line-clamp:3; }
html body.si-themed.page-explore .xf-bh-dek { font-size:16px; line-height:1.65; }
html body.si-themed.page-explore :is(.xf-shead-label,.xf-tw-kicker) { font-size:11px; letter-spacing:1px; }
html body.si-themed.page-explore :is(.xf-shead-meta,.xf-tw-meta) { font-size:10px; letter-spacing:.5px; }
html body.si-themed.page-explore .xf-trend-tag { font-size:10px; letter-spacing:.65px; }
@media(max-width:900px) {
  html body.si-themed.page-explore .xf-bh-title { font-size:32px; }
}
@media(max-width:640px) {
  html body.si-themed.page-explore .xf-bh-title { font-size:28px; letter-spacing:-.7px; line-height:1.18; }
  html body.si-themed.page-explore .xf-trend-title { font-size:16px; }
}
/* Surfaces with ID-scoped legacy rules need matching ownership specificity. */
html body.si-themed #playHub :is(.si-shead-label,.ph-et-label,.ph-cardhead-kick) { font-weight:var(--si-type-heading); }
html body.si-themed #playHub :is(.ph-navtab,.ph-seg button,.fm-tab) { font-weight:var(--si-type-control)!important; }
html body.si-themed #playHub :is(.ph-cta,.ph-cta-sm,.ph-fr-wk b,.ph-poll-more) { font-weight:var(--si-type-label); }
html body.si-themed.admin-settings-mode #tab-content :is(h2,h3) { font-weight:var(--si-type-heading); }
html body.si-themed.admin-settings-mode #tab-content .content-job-title,
html body.si-themed .as-llm .llm-title { font-weight:var(--si-type-label); }
html body.si-themed .as-llm :is(.llm-meta dt,.llm-field label) { font-weight:var(--si-type-control); }
html body.si-themed .gp h2 { font-weight:var(--si-type-heading); }

/* css/tl/shell.css */
/* ==========================================================================
   Terminal Light — shell glue. Loaded LAST in base.html (after page CSS) so
   the new shell wins over the legacy sheets that still load during the
   migration (base.css fixed nav + body padding, theme-light.css canvas,
   site-rail/cbar/wire offsets). Delete the overrides here as each legacy
   sheet is removed (plan phase 6).
   ========================================================================== */

/* ---- Neutralise legacy shell offsets ---- */
html body { padding: 0 !important; margin: 0; background: var(--tl-page) !important; color: var(--tl-ink); overflow-x: clip; }
html body main.tl-main { max-width: none; width: auto; margin: 0; padding: 0; }
html body header.tl-topbar.top-nav-bar {
  position: sticky; top: 0; left: auto; right: auto; z-index: 40;
  padding: 0 20px; transition: none;
  background: var(--tl-header-glass);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tl-line-07);
}

/* Pico transitions every link and button colour (0.2s). The design never
   animates link colour, and the stale value lingers across a theme flip.
   Class rules that want a transition (lift cards, segments) outrank this. */
html body a, html body button { transition-property: none; }

/* ---- Search: the gsx ambient search in the design's 300x34 box ---- */
.tl-search-wrap { position: relative; }
.tl-topbar .gsx-box.tl-search { height: 34px; padding: 0 8px 0 11px; border: 1px solid var(--tl-line-10); background: var(--tl-fill-03); box-shadow: none; }
.tl-topbar .gsx-box.tl-search.is-open { border-color: var(--tl-line-18); background: var(--tl-control); box-shadow: 0 0 0 3px var(--tl-fill-05); }
.tl-topbar .gsx-icon { margin-right: 0; color: var(--tl-ink-50); }
.tl-topbar .gsx-input { font-size: 13px !important; color: var(--tl-ink) !important; }
.tl-topbar .gsx-type { font-size: 13px; color: var(--tl-ink-50); }
.tl-topbar .gsx-caret { height: 14px; background: var(--tl-ink-50); }
.tl-topbar .gsx-ghost-rest { color: var(--tl-ink-35); }
.tl-topbar .gsx-key.tl-kbd { min-width: 0; height: 20px; margin-left: 0; padding: 0 6px; border-color: var(--tl-line-12); font: 400 10.5px var(--tl-mono); color: var(--tl-ink-50); }
.tl-topbar .gsx-panel { top: 42px; left: auto; right: 0; transform: none; width: min(520px, calc(100vw - 24px)); animation-name: tl-drop; }
.gsx-scrim { top: var(--tl-topbar-h); }
@keyframes tl-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- Theme toggle icons: moon in light (switch to dark), sun in dark ---- */
#navThemeBtn .si-icon-sun { display: none; }
html:not(.si-light) #navThemeBtn .si-icon-moon { display: none; }
html:not(.si-light) #navThemeBtn .si-icon-sun { display: block; }

/* ---- Account menu ---- */
.tl-account { position: relative; }
.tl-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
  min-width: 244px; padding: 6px;
  display: none; flex-direction: column;
  border-radius: var(--tl-r-card); background: var(--tl-card);
  box-shadow: var(--tl-float-shadow);
}
.tl-menu.show { display: flex; animation: tl-drop 0.18s var(--tl-ease) both; }
.tl-menu-item {
  height: 32px; padding: 0 10px; display: flex; align-items: center;
  border-radius: var(--tl-r-seg-in); font-size: 13px; color: var(--tl-ink-70);
}
.tl-menu-item:hover { background: var(--tl-fill-04); color: var(--tl-ink); }
.tl-menu-rule { height: 1px; margin: 5px 4px; background: var(--tl-line-07); }
#navSignIn, #navSignUp { display: inline-flex; }
#navSignIn[style*="none"], #navSignUp[style*="none"] { display: none !important; }

/* ---- Sidebar details ---- */
.tl-side-link { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; font-family: var(--tl-font); }
.tl-side-confs .tl-side-link.is-on { background: var(--tl-fill-07); }
/* "Customize Home" (Pro) row and the dialog it opens: the clip on top,
   then the pitch. Scoped by class to keep Pico's dialog defaults out. */
.tl-upsell { margin: -6px 0 14px; }
.tl-upsell[hidden] { display: none; }
.tl-upsell-row { color: var(--tl-ink-70); }
.tl-upsell-row > svg { flex: none; color: var(--tl-ink-50); }
.tl-upsell-row .tl-pro-tag { margin-left: auto; }
.tl-upsell-dlg:not([open]) { display: none !important; }
.tl-upsell-dlg[open] {
  display: block; position: fixed; inset: 0; margin: auto;
  width: min(560px, calc(100vw - 32px)); max-width: 560px; height: fit-content; max-height: calc(100dvh - 32px);
  min-width: 0; min-height: 0; padding: 0; overflow: auto;
  border: 1px solid var(--tl-line-10); border-radius: 16px; background: var(--tl-card); color: var(--tl-ink);
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.55); font-family: var(--tl-font); text-align: left;
}
.tl-upsell-dlg::backdrop { background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tl-upsell-media { aspect-ratio: 16 / 9; margin: 10px 10px 0; overflow: hidden; border-radius: 10px; border: 1px solid var(--tl-line-08); background: var(--tl-page); }
.tl-upsell-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Until the clip exists: a still sketch of a customised layout. */
.tl-upsell-sketch { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 2fr 2fr; gap: 8px; height: 100%; padding: 14px; }
.tl-upsell-sketch > i { border-radius: 6px; border: 1px solid var(--tl-line-10); background: var(--tl-fill-04); }
.tl-upsell-sketch > i:nth-child(1) { grid-column: 1 / -1; }
.tl-upsell-sketch > i:nth-child(2) { grid-column: span 2; background: var(--tl-fill-07); }
.tl-upsell-sketch > i:nth-child(3) { grid-row: span 2; }
.tl-upsell-sketch > i:nth-child(4), .tl-upsell-sketch > i:nth-child(5) { grid-column: span 1; }
.tl-upsell-copy { padding: 20px 24px 22px; }
.tl-upsell-k { display: inline-flex; align-items: center; gap: 8px; font: 600 10.5px/1 var(--tl-mono); letter-spacing: 0.6px; text-transform: uppercase; color: var(--tl-ink-50); }
.tl-upsell-dlg h2 { margin: 10px 0 8px; font-size: 26px; font-weight: 650; letter-spacing: -0.7px; line-height: 1.1; color: var(--tl-ink); }
.tl-upsell-dlg p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--tl-ink-60); }
.tl-upsell-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; }
.tl-upsell-cta { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; border-radius: var(--tl-r-btn); background: var(--tl-ink); color: var(--tl-on-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.tl-upsell-cta:hover { background: var(--tl-ink-hover); color: var(--tl-on-ink); }
.tl-upsell-more { font-size: 13px; color: var(--tl-ink-60); text-decoration: none; }
.tl-upsell-more:hover { color: var(--tl-ink); }
.tl-upsell-dlg .tl-upsell-x {
  position: absolute; z-index: 1; top: 18px; right: 18px; display: grid; place-items: center; width: 30px; height: 30px;
  margin: 0; padding: 0; border: 1px solid var(--tl-line-12); border-radius: 50%;
  background: color-mix(in srgb, var(--tl-card) 80%, transparent); color: var(--tl-ink-70); font: 400 18px/1 var(--tl-font); cursor: pointer;
}
.tl-upsell-dlg .tl-upsell-x:hover { color: var(--tl-ink); background: var(--tl-card); }
.tl-earn-wrap { position: relative; }
.tl-earn-wrap .tl-earn { width: 100%; border: 1px dashed var(--tl-line-14); background: transparent; color: var(--tl-ink); text-align: left; cursor: pointer; }
.tl-earn-wrap:not(.is-ghost) .tl-earn { border-style: solid; border-color: var(--tl-line-10); }
.tl-earn-wrap .sclvl-label { font-size: 12.5px; font-weight: 600; }
.tl-earn-wrap .sclvl-label.is-up { color: var(--tl-up); }
.tl-earn-wrap .sclvl-panel {
  position: absolute; left: calc(100% + 18px); bottom: 0; z-index: 50; width: 340px;
  border-radius: var(--tl-r-card); background: var(--tl-card); box-shadow: var(--tl-float-shadow);
}
@media (max-width: 1279px) { .tl-earn-wrap .sclvl-panel { left: 0; bottom: calc(100% + 8px); width: 100%; } }
.tl-promo { margin-bottom: 12px; }
.tl-side-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
  padding: 0 6px; font-size: 11.5px; color: var(--tl-ink-45);
}
.tl-side-foot a:hover, .tl-side-foot button:hover { color: var(--tl-ink); }
.tl-side-foot button {
  margin: 0; padding: 0; border: 0; background: transparent; width: auto;
  font: inherit; color: inherit; cursor: pointer;
}

/* ---- Skip link ---- */
.tl-skip:focus { position: fixed !important; left: 12px; top: 10px; z-index: 100; width: auto; height: auto; padding: 8px 12px; margin: 0; clip: auto; border-radius: var(--tl-r-btn); background: var(--tl-ink); color: var(--tl-on-ink); }

/* ---- Bare shell (auth, onboarding): no sidebar ---- */
.tl-shell.is-bare .tl-sidebar, .tl-shell.is-bare .tl-scrim { display: none; }
body:has(.tl-shell.is-bare) .tl-menu-btn { display: none; }

/* ---- Phone top bar: keep search and both account actions reachable. ---- */
@media (max-width: 720px) {
  .tl-topbar .tl-topbar-right { flex: 1; min-width: 0; }
  .tl-topbar .tl-search-wrap { flex: 1; min-width: 0; }
  .tl-topbar .gsx-box.tl-search { width: 100%; }
  .tl-topbar .tl-topbar-spacer { display: none; }
  .tl-topbar #navThemeBtn { display: none; }
  .tl-topbar #navSignIn, .tl-topbar #navSignUp { padding: 0 10px; font-size: 13px; }
  .tl-topbar .tl-topbar-actions .tl-btn-outline-lg:not([style*="none"]) { display: inline-flex; }
}

/* ---- Sidebar bottom spacing: the Earn card's own margin is zeroed by the
   shared button reset, so the gaps live on the wrapper and the foot. ---- */
.tl-sidebar .tl-earn-wrap { margin-bottom: 12px; }
.tl-sidebar .tl-earn-wrap .tl-earn { margin-bottom: 0; }
.tl-sidebar .tl-promo { margin-bottom: 14px; }
.tl-sidebar .tl-side-foot { padding-top: 2px; }

/* ---- Theme toggle: icon only, no outline box ---- */
.tl-topbar #navThemeBtn { border-color: transparent; }
.tl-topbar #navThemeBtn:hover { border-color: transparent; background: var(--tl-fill-05); }

/* ---- Top bar never overflows: the search shrinks first (300px max), and
   under 1240px the wordmark gives up its room (the logo stays). ---- */
.tl-topbar .tl-topbar-right { min-width: 0; flex: 0 1 auto; }
.tl-topbar .tl-search-wrap { flex: 0 1 300px; min-width: 120px; }
.tl-topbar .gsx-box.tl-search { width: 100%; }
.tl-topbar .tl-topbar-actions { flex: none; }
@media (max-width: 1240px) {
  .tl-topbar { gap: 16px; }
  .tl-topbar .tl-brand span { display: none; }
}
/* Nine nav items: tighten them before the nav moves into the drawer (<1024). */
@media (max-width: 1180px) {
  .tl-topbar { gap: 12px; }
  .tl-topbar .tl-nav a { padding: 0 8px; }
  .tl-topbar .tl-topbar-right { gap: 10px; }
  .tl-topbar .tl-topbar-actions { gap: 6px; }
}

/* ---- Signed-in account button: the ink "Sign up" treatment, icon only ---- */
.tl-topbar .tl-iconbtn.is-ink { border-color: var(--tl-ink); background: var(--tl-ink); color: var(--tl-on-ink); }
.tl-topbar .tl-iconbtn.is-ink:hover,
.tl-topbar .tl-iconbtn.is-ink[aria-expanded="true"] { border-color: var(--tl-ink-hover); background: var(--tl-ink-hover); color: var(--tl-on-ink); }

/* ---- Conference switch in flight (body.tl-scoping, set by shell.js): a thin
   indeterminate bar under the top bar, and the page dims until the next one
   paints. Pages with their own skeletons (Home) opt out of the dim. ---- */
@keyframes tl-progress { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
body.tl-scoping .tl-topbar::after {
  content: ''; position: absolute; left: 0; bottom: -1px; width: 40%; height: 2px;
  background: var(--tl-ink); animation: tl-progress 1.1s var(--tl-ease) infinite;
}
body.tl-scoping:not(.page-explore) .tl-main { opacity: 0.55; transition: opacity 0.2s var(--tl-ease); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body.tl-scoping .tl-topbar::after { animation: none; width: 100%; opacity: 0.4; } }

/* ---- Sidebar sport picker (services/sports.py): live sports select, the
   rest wait with a SOON tag. ---- */
.tl-side-sports { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.tl-side-sports .tl-side-link.is-on { background: var(--tl-fill-07); color: var(--tl-ink); font-weight: 500; cursor: default; }
.tl-side-sports .tl-side-link.is-soon { color: var(--tl-ink-40); cursor: default; justify-content: space-between; }
.tl-side-sports .tl-side-link.is-soon:hover { background: transparent; color: var(--tl-ink-40); }

/* ---- Sidebar plan card (points-bar.js renders #tlPlan): the upgrade pitch
   for free accounts, plan + renewal + Manage for paid ones. The thin top
   highlight is the card's one accent. ---- */
.tl-plan {
  position: relative; display: flex; flex-direction: column;
  margin-bottom: 14px; padding: 14px;
  border-radius: var(--tl-r-card); border: 1px solid rgba(var(--tl-ink-rgb), 0.09);
  background: transparent;
}
html:not(.si-light) .tl-plan { border-color: rgba(var(--tl-ink-rgb), 0.1); }
.tl-plan::before {
  content: ""; position: absolute; top: -1px; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tl-pro-line), transparent);
}
.tl-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 18px; }
.tl-plan-eyebrow {
  font-family: var(--tl-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--tl-ink-50);
}
.tl-plan-eyebrow.is-brand { display: inline-flex; align-items: center; gap: 7px; }
.tl-plan-eyebrow.is-brand img { flex: none; width: 16px; height: 16px; border-radius: 4px; }
/* Signed in, the card is the referral program (points-bar.js): a click
   anywhere but the copy button, or on the "?", opens its rules. */
.tl-plan.is-ref { cursor: pointer; transition: border-color 0.15s var(--tl-ease); }
.tl-plan.is-ref:hover { border-color: rgba(var(--tl-ink-rgb), 0.18); }
.tl-plan-help {
  display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin: 0; padding: 0;
  border: 1px solid var(--tl-line-14); border-radius: 50%; background: transparent;
  font: 600 10.5px/1 var(--tl-font); color: var(--tl-ink-60); cursor: pointer;
}
.tl-plan-help:hover { border-color: var(--tl-line-20, var(--tl-line-14)); color: var(--tl-ink); }
.tl-plan-title { margin: 10px 0 3px; font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -0.2px; color: var(--tl-ink); }
.tl-plan-body { font-size: 12.5px; line-height: 1.5; color: var(--tl-ink-60); }
.tl-plan-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; margin-top: 14px; border-radius: var(--tl-r-btn);
  background: var(--tl-ink); color: var(--tl-on-ink); font-size: 13px; font-weight: 600; text-decoration: none;
}
.tl-plan-cta:hover { opacity: 0.9; color: var(--tl-on-ink); }
button.tl-plan-cta { width: 100%; margin: 14px 0 0; padding: 0 12px; border: 0; font-family: var(--tl-font); cursor: pointer; }
.tl-ref-code { font-family: var(--tl-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; opacity: 0.6; }
.tl-ref-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 18px; overflow: hidden; border: 1px solid var(--tl-line-10); border-radius: 10px; background: var(--tl-line-10); }
.tl-ref-stats[hidden] { display: none; }
.tl-ref-stats > span { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--tl-card); font-size: 11.5px; color: var(--tl-ink-50); }
.tl-ref-stats b { font: 600 16px/1.1 var(--tl-mono); color: var(--tl-ink); }
@media (max-width: 520px) { .tl-ref-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tl-ref-rules { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: ref; }
.tl-ref-rules li { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; margin: 0; list-style: none; counter-increment: ref; }
.tl-ref-rules li::before { content: counter(ref, decimal-leading-zero); grid-row: span 2; padding-top: 3px; font: 500 10.5px/1 var(--tl-mono); color: var(--tl-ink-50); }
.tl-ref-rules b { font-size: 13.5px; font-weight: 600; color: var(--tl-ink); }
.tl-ref-rules span { font-size: 13px; line-height: 1.5; color: var(--tl-ink-60); }
.tl-ref-help { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--tl-ink-60); }
.tl-ref-help a { color: var(--tl-ink); text-decoration: underline; text-underline-offset: 2px; }
.tl-ref-dlg .tl-upsell-actions { justify-content: flex-end; }
.tl-ref-dlg .tl-ref-copy { gap: 10px; margin: 0; border: 0; font-family: var(--tl-font); cursor: pointer; }
/* Paid accounts: a quiet outline twin of the free card's ink CTA. */
.tl-plan-manage {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; margin-top: 12px; border-radius: var(--tl-r-btn);
  border: 1px solid var(--tl-line-14); background: transparent;
  font-size: 12.5px; font-weight: 500; color: var(--tl-ink-70); text-decoration: none;
  transition: background 0.15s var(--tl-ease), color 0.15s var(--tl-ease), border-color 0.15s var(--tl-ease);
}
.tl-plan-manage:hover { background: var(--tl-fill-04); border-color: var(--tl-line-20, var(--tl-line-14)); color: var(--tl-ink); }

/* ---- Account menu points row (points-bar.js [data-sclvl]) ---- */
.tl-menu-pts {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: var(--tl-r-seg-in); color: var(--tl-ink); text-decoration: none;
}
.tl-menu-pts:hover { background: var(--tl-fill-04); }
.tl-menu-pts[hidden] { display: none; }
.tl-menu-pts .tl-earn-ring > i { color: var(--tl-ink); }
.tl-menu-pts-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tl-menu-pts .sclvl-label { font-size: 12px; font-weight: 600; white-space: nowrap; }
.tl-menu-pts .sclvl-label.is-up { color: var(--tl-up); }
.tl-menu-pts .sclvl-pts { font-family: var(--tl-mono); font-size: 11px; color: var(--tl-ink-50); }
.tl-menu-pts-go { font-size: 11px; color: var(--tl-ink-45); white-space: nowrap; }
.tl-menu-pts + .tl-menu-rule { margin-top: 4px; }

/* Mobile navigation keeps both account actions and a readable search field.
   At narrow widths search gets its own row; no control is clipped away. */
.tl-drawer-close { display: none; }
@media (max-width: 1279px) {
  .tl-sidebar {
    height: 100dvh; max-height: 100dvh;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    overscroll-behavior: contain; visibility: hidden;
    transition: transform .3s var(--tl-ease), visibility 0s .3s;
  }
  body.tl-drawer-open .tl-sidebar { visibility: visible; transition-delay: 0s; }
  .tl-sidebar .tl-drawer-close { display: flex; margin: 0 0 12px auto; width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; font-size: 24px; }
  .tl-sidebar .tl-side-link, .tl-sidebar .tl-plan-cta, .tl-sidebar .tl-plan-manage { min-height: 44px; height: auto; }
}
@media (max-width: 720px) {
  html body header.tl-topbar.top-nav-bar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .tl-topbar .tl-iconbtn, .tl-topbar #navSignIn, .tl-topbar #navSignUp { min-height: 44px; }
  .tl-topbar .tl-iconbtn { min-width: 44px; }
  .tl-menu-item { min-height: 44px; height: auto; }
  .tl-topbar .gsx-box.tl-search { height: 44px; }
  .tl-topbar .gsx-input { font-size: 16px !important; }
  .tl-topbar .tl-search-wrap .gsx-panel { top: calc(var(--site-nav-h) + 6px); max-height: calc(100dvh - var(--site-nav-h) - 24px); overflow-y: auto; }
  .tl-upsell-dlg .tl-upsell-x { width: 44px; height: 44px; }
  .tl-main :is(.tl-input, input[type="text"], input[type="email"], input[type="password"], input[type="search"], select, textarea) { font-size: 16px !important; }
  .tl-main :is(.tl-btn, .tl-btn-ink, .tl-btn-ghost, .tl-tab, .tla-btn) { min-height: 44px; }
  .tl-main .tl-input { min-height: 44px; }
  .tl-main .tla .tl-input { height: 44px !important; }
  .tl-body { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  :root { --tl-topbar-h: calc(105px + max(8px, env(safe-area-inset-top))); }
  html body header.tl-topbar.top-nav-bar {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-rows: 44px 44px; gap: 8px;
    height: auto; padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  }
  .tl-topbar .tl-menu-btn { grid-column: 1; grid-row: 1; }
  .tl-topbar .tl-brand { grid-column: 2; grid-row: 1; }
  body:has(.tl-shell.is-bare) .tl-topbar .tl-brand { grid-column: 1 / 3; }
  .tl-topbar .tl-topbar-right { display: contents; }
  .tl-topbar .tl-topbar-actions { grid-column: 3; grid-row: 1; gap: 8px; }
  .tl-topbar .tl-search-wrap { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; }
  .tl-topbar .tl-topbar-spacer { display: none; }
}
@media (max-width: 720px) {
  .tl-main :is(.tl-chip, .tl-seg > button, .tl-btn-ink-lg, .tl-btn-outline-lg) { min-height: 44px; }
  .tl-main .tl-iconbtn { min-width: 44px; min-height: 44px; }
  .tl-main :is(.tl-table-wrap, .shx-table-wrap) { max-width: 100%; overscroll-behavior-x: contain; }
  .tl-main :is(.tl-table-wrap, .shx-table-wrap):focus-visible { outline: 2px solid var(--tl-ink); outline-offset: -2px; }
}

@media (prefers-reduced-motion: reduce) {
  .tl-sidebar { transition: none; }
}

/* css/tl/motion.css */
/* ==========================================================================
   Terminal Light — page-load choreography (every page, after shell.css).

   One sequence per page load, all on --tl-ease:
     0ms    top bar groups drop in (brand, nav, search + actions), 40ms apart
     60ms   sidebar blocks slide in from the left, 30ms apart
     120ms  main-column blocks fade up, 70ms apart for the ones already in
            view; anything below the fold fades up when it scrolls into view

   html.tl-motion is set before first paint by base.html's head script, only
   when IntersectionObserver exists and the visitor has not asked for reduced
   motion. The top bar and sidebar are pure CSS (keyframes with backwards
   fill, so nothing stays "animated" after the entrance). Main blocks are
   marked .tl-rv by the inline script after </main> (base.html), revealed
   with .is-in, and un-marked once the transition ends so their own hover
   transitions (.tl-card.is-lift and friends) are untouched afterwards.
   The /pricing page runs its own feature-card entrance (.pr-rv) and is
   skipped by the marker. Failsafes: if the script never sets
   html.tl-motion-ready, every .tl-rv shows after 2.5s; the script also
   sweeps anything still hidden after 6s.
   ========================================================================== */

@keyframes tl-rv-down { from { opacity: 0; translate: 0 -8px; } to { opacity: 1; translate: none; } }
@keyframes tl-rv-left { from { opacity: 0; translate: -10px 0; } to { opacity: 1; translate: none; } }
@keyframes tl-rv-show { to { opacity: 1; translate: none; } }

/* ---- top bar: each direct child (menu button, brand, nav, right group) ---- */
html.tl-motion .tl-topbar > * { animation: tl-rv-down 0.45s var(--tl-ease) backwards; animation-delay: calc(var(--tl-rv-i, 0) * 40ms); }
html.tl-motion .tl-topbar > :nth-child(2) { --tl-rv-i: 1; }
html.tl-motion .tl-topbar > :nth-child(3) { --tl-rv-i: 2; }
html.tl-motion .tl-topbar > :nth-child(4) { --tl-rv-i: 3; }
html.tl-motion .tl-topbar > :nth-child(n+5) { --tl-rv-i: 4; }

/* ---- sidebar: each block (nav, labels, lists, plan card, footer) ---- */
html.tl-motion .tl-sidebar > * { animation: tl-rv-left 0.45s var(--tl-ease) backwards; animation-delay: calc(60ms + var(--tl-rv-i, 0) * 30ms); }
html.tl-motion .tl-sidebar > :nth-child(2) { --tl-rv-i: 1; }
html.tl-motion .tl-sidebar > :nth-child(3) { --tl-rv-i: 2; }
html.tl-motion .tl-sidebar > :nth-child(4) { --tl-rv-i: 3; }
html.tl-motion .tl-sidebar > :nth-child(5) { --tl-rv-i: 4; }
html.tl-motion .tl-sidebar > :nth-child(6) { --tl-rv-i: 5; }
html.tl-motion .tl-sidebar > :nth-child(7) { --tl-rv-i: 6; }
html.tl-motion .tl-sidebar > :nth-child(8) { --tl-rv-i: 7; }
html.tl-motion .tl-sidebar > :nth-child(9) { --tl-rv-i: 8; }
html.tl-motion .tl-sidebar > :nth-child(n+10) { --tl-rv-i: 9; }

/* ---- main column blocks (marked by the inline script) ---- */
html.tl-motion .tl-rv {
  opacity: 0; translate: 0 14px;
  transition: opacity 0.6s var(--tl-ease) var(--rv-d, 0ms), translate 0.6s var(--tl-ease) var(--rv-d, 0ms);
}
html.tl-motion .tl-rv.is-in { opacity: 1; translate: none; }
html.tl-motion:not(.tl-motion-ready) .tl-rv { animation: tl-rv-show 0s linear 2.5s forwards; }

@media (prefers-reduced-motion: reduce) {
  html.tl-motion .tl-topbar > *, html.tl-motion .tl-sidebar > * { animation: none; }
  html.tl-motion .tl-rv { opacity: 1; translate: none; transition: none; }
}

/* css/tl/app-shell.css */
/* ==========================================================================
   The iOS app's shell on the site (2026-11-22, Ben: the site matches the
   app one for one). Loaded after shell.css, so it has the last word on the
   top bar at every width.

   Desktop: the app's six tabs in its order with the picked one underlined
   (AppShell.swift), Bets beside them, a PRO pill, the sidebar as before.
   Phones (720px and under): the app's own two bars. On top, the tab row
   with the PRO pill and a search glyph; at the bottom, Home, Bets, League
   and Profile in a floating bar. League opens the drawer, which holds the
   league and conference switch and the account links.
   ========================================================================== */

/* ---- Tab row: shown at every width, never moved into the drawer ---- */
.tl-topbar .tl-nav {
  display: flex; align-self: stretch; align-items: stretch; gap: 2px; min-width: 0;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.tl-topbar .tl-nav::-webkit-scrollbar { display: none; }
.tl-topbar .tl-nav a {
  height: auto; padding: 0 11px; border-radius: 0; background: transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.1px; color: var(--tl-ink-62);
}
.tl-topbar .tl-nav a:hover { color: var(--tl-ink); }
.tl-topbar .tl-nav a[aria-current="page"] { color: var(--tl-ink); background: transparent; }
.tl-topbar .tl-nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 0; height: 2px;
  border-radius: 2px 2px 0 0; background: var(--tl-ink);
}
.tl-topbar .tl-nav .tl-nav-rule { flex: none; align-self: center; width: 1px; height: 16px; margin: 0 8px; background: var(--tl-line-12); }
.tl-sidebar .tl-side-nav { display: none !important; }

/* ---- PRO pill (the app's, top right). Hidden for a paid account. ---- */
.tl-pro-pill {
  flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border-radius: 999px; border: 1.5px solid var(--tl-pro-line);
  font: 700 11px/1 var(--tl-mono); letter-spacing: 0.08em; color: var(--tl-pro); text-decoration: none;
}
.tl-pro-pill:hover { border-color: var(--tl-pro); color: var(--tl-pro); }
.tl-pro-pill[hidden] { display: none; }

/* ---- Sidebar: the pages the app keeps under a tab, and the account ---- */
.tl-side-more { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.tl-side-me, .tl-sidebar .tl-side-auth { display: none !important; }

/* ---- "Open in the app" (app-shell.js): an iPhone browser that is not
   Safari, which shows the system banner instead. ---- */
.tl-appbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 4px; border-bottom: 1px solid var(--tl-line-08); background: var(--tl-page); }
.tl-appbar img { flex: none; border-radius: 8px; }
.tl-appbar-text { flex: 1; min-width: 0; }
.tl-appbar-text b { display: block; font: 650 14px/1.2 var(--tl-font); color: var(--tl-ink); }
.tl-appbar-text small { display: block; margin-top: 1px; font: 400 12px/1.2 var(--tl-font); color: var(--tl-ink-55); }
.tl-appbar-open { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; background: var(--tl-ink); color: var(--tl-on-ink); font: 700 13px/1 var(--tl-font); text-decoration: none; }
.tl-appbar-open:hover { color: var(--tl-on-ink); }
.tl-appbar-x { flex: none; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--tl-ink-50); font: 400 20px/1 var(--tl-font); cursor: pointer; }

/* ---- Bottom bar: phones only ---- */
.tl-tabbar { display: none; }

@media (max-width: 720px) {
  :root { --tl-topbar-h: calc(46px + max(6px, env(safe-area-inset-top))); }

  /* Top: the tab row, the PRO pill, search as a glyph. */
  html body header.tl-topbar.top-nav-bar {
    display: flex; align-items: stretch; gap: 10px; height: var(--tl-topbar-h);
    padding: max(6px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  }
  .tl-topbar .tl-menu-btn, .tl-topbar .tl-brand, .tl-topbar .tl-topbar-spacer,
  .tl-topbar .tl-nav .is-desk, .tl-topbar .tl-nav .tl-nav-rule { display: none; }
  .tl-topbar .tl-nav {
    flex: 1 1 auto; gap: 20px; padding-right: 18px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  }
  .tl-topbar .tl-nav a { padding: 0; font-size: 16px; }
  .tl-topbar .tl-nav a[aria-current="page"]::after { left: 0; right: 0; height: 2.5px; }
  .tl-topbar .tl-topbar-right { display: flex; flex: none; align-items: center; gap: 4px; min-width: 0; }
  .tl-topbar .tl-topbar-actions { display: flex; align-items: center; gap: 0; }
  html body .tl-topbar :is(#navSignIn, #navSignUp, #navAccount, #navThemeBtn) { display: none !important; }

  /* Search: a glyph that opens over the row when tapped. The field sits
     over the glyph, unseen, so the tap lands in it. */
  .tl-topbar .tl-search-wrap { position: static; flex: none; width: 40px; min-width: 40px; order: 2; }
  .tl-topbar .gsx-box.tl-search {
    position: relative; width: 40px; height: 40px; padding: 0; justify-content: center;
    border-color: transparent; background: transparent; box-shadow: none;
  }
  .tl-topbar .gsx-box.tl-search .gsx-icon { width: 20px; height: 20px; color: var(--tl-ink); }
  .tl-topbar .gsx-box.tl-search .gsx-field { position: absolute; inset: 0; opacity: 0; }
  .tl-topbar .gsx-box.tl-search .gsx-key { display: none; }
  .tl-topbar .tl-search-wrap:focus-within {
    position: absolute; z-index: 3; top: max(6px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
    width: auto; background: var(--tl-page);
  }
  .tl-topbar .tl-search-wrap:focus-within .gsx-box.tl-search {
    width: 100%; padding: 0 10px 0 12px; justify-content: flex-start; gap: 8px;
    border-color: var(--tl-line-18); background: var(--tl-raised);
  }
  .tl-topbar .tl-search-wrap:focus-within .gsx-box.tl-search .gsx-icon { width: 16px; height: 16px; color: var(--tl-ink-50); }
  .tl-topbar .tl-search-wrap:focus-within .gsx-box.tl-search .gsx-field { position: relative; inset: auto; opacity: 1; flex: 1; }
  .tl-topbar .tl-pro-pill { order: 1; }

  /* The drawer: opened from League. The account links live here, and the
     Home layout controls (a desktop tool) stay out of it. */
  .tl-sidebar :is(.tl-side-head, .tl-side-home, .tl-upsell) { display: none; }
  .tl-sidebar .tl-side-me { display: flex !important; flex-direction: column; gap: 2px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--tl-line-07); }
  .tl-sidebar .tl-side-me .tl-side-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tl-sidebar .tl-side-me .tl-side-auth-row > a { justify-content: center; min-height: 44px; }
  body:has(#navSignIn[style*="none"]) .tl-sidebar .tl-side-me .tl-side-auth-row,
  body:not(:has(#navSignIn[style*="none"])) .tl-sidebar .tl-side-me .is-member { display: none; }

  /* Bottom: the app's floating bar. */
  .tl-tabbar {
    position: fixed; z-index: 39; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center;
    height: 62px; padding: 5px; border-radius: 32px;
    border: 1px solid var(--tl-line-10);
    background: color-mix(in srgb, var(--tl-page) 80%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.55);
  }
  .tl-tabbar > :is(a, button) {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    width: 100%; height: 50px; margin: 0; padding: 0; border: 0; border-radius: 26px; background: transparent;
    font: 600 10.5px/1 var(--tl-font); color: var(--tl-ink-62); text-decoration: none; cursor: pointer;
  }
  .tl-tabbar > :is(a, button) svg { width: 21px; height: 21px; }
  .tl-tabbar > [aria-current="page"] { color: var(--tl-ink); background: var(--tl-fill-07); font-weight: 700; }
  .tl-tabbar .tl-tabbar-league {
    display: grid; place-items: center; min-width: 34px; height: 21px; padding: 0 5px;
    border-radius: 6px; border: 1.5px solid currentColor;
    font: 700 9.5px/1 var(--tl-mono); letter-spacing: 0.04em;
  }
  body:has(.tl-shell.is-bare) .tl-tabbar { display: none; }
  html body main.tl-main { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}

