/*
 * JRS1 · public/look/red.css
 * Created:     2026-11-15 04:09 EST
 * Last edited: 2026-11-21 17:39 EST
 * Version:     0.9.0 (pre-gold)
 */
/* JRS1's colors over jrsports.one's own look (Danny 2026-11-15: "build in red and white for now"): every accent red, the page
   white, and the bands that were near-black (site bar and hero, score bug, league header, news cards, footer) deep red with
   white type. Loaded after every other stylesheet; it changes colors only, never layout. Dark mode waits. */

:root, :root[data-theme] {
  --jr-red: #D7141A; --jr-red-dark: #A50F15; --jr-red-deep: #8E0E14; --jr-red-ink: #6E0A0F; --jr-pink: #FFD3D5; --jr-blush: #FFE9EA;
  /* the site's own sheet (site.css) */
  --site: var(--jr-red); --fb: var(--jr-red); --bb: var(--jr-red); --bk: var(--jr-red); --accent: var(--jr-red); --on-accent: #FFFFFF;
  --band: var(--jr-red-deep); --band-text: #FFFFFF; --band-2: var(--jr-pink);
  /* football's sheets (jrs1.css, light.css) */
  --accent-hover: var(--jr-red-dark); --focus: var(--jr-red); --accent-soft: rgba(215, 20, 26, .12); --gold: var(--jr-red);
  --rating-elite: var(--jr-red); --gc-wine: var(--jr-red-deep);
}

/* ---------- the site bar (bar.css) ---------- */
html body .jrs-bar, html body .jrs-bar--fb { background: var(--jr-red-deep); color: #FFFFFF; border-bottom-color: rgba(255, 255, 255, .12); }
.sb-brand b span, .ftr-in b span { color: var(--jr-pink); }
.sb-brand small, .sb-sport small, .sb-levels { color: var(--jr-pink); }
.sb-sport { color: #FFFFFF; }
.sb-sport[aria-current], .sb-fb[aria-current], .sb-bb[aria-current], .sb-bk[aria-current] { background: #FFFFFF; color: var(--jr-red-deep); }
.sb-sport[aria-current] small { color: var(--jr-red); }
.sb-sign, .sb-theme { color: #FFFFFF; border-color: rgba(255, 255, 255, .35); }
.sb-sign:hover, .sb-theme:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, .1); }

/* ---------- the header band and the front page's hero (site.css) ---------- */
:root[data-theme] .site-hdr, .site-hdr { --accent: var(--jr-pink); background: linear-gradient(120deg, var(--jr-red-dark), var(--jr-red-deep) 55%, var(--jr-red-ink)); }
.hub-slide, .hub-slide.is-fb, .hub-slide.is-bb, .hub-slide.is-bk { --hub: #FFFFFF; }
.hub-hero .eyebrow { color: var(--jr-pink); }
.hub-hero h1 span, .hub-hero h2 span { color: var(--jr-pink); }
.hub-hero p { color: var(--jr-blush); }
.hub-cta { background: #FFFFFF; color: var(--jr-red-deep); }
.hub-cta:hover { background: var(--jr-pink); }
.title-box { background: rgba(0, 0, 0, .25); }
/* the rotating hero, tighter top and bottom (Danny 2026-11-15: "too much waisted space top/bottom") */
html body .hub-hero { padding-top: 20px; padding-bottom: 14px; }
html body .hub-dots { margin-top: 12px; }
html body .hub-fan { min-height: 150px; }
/* shorter (Danny 2026-11-15: "make it shorter"): smaller headlines, each line kept to one line on a wide screen so no slide is
   taller than the rest, tighter text and button */
html body .hub-hero h1, html body .hub-hero h2 { margin-top: 8px; font-size: clamp(40px, 5vw, 76px); }
@media (min-width: 901px) { html body .hub-hero h1, html body .hub-hero h2 { white-space: nowrap; } }
html body .hub-hero p { margin-top: 12px; font-size: 16px; line-height: 1.5; }
html body .hub-cta { margin-top: 14px; padding: 10px 18px; }
html body .hub-fan img { width: 110px; }
html body .hub-slide { align-items: start; }               /* every slide's words start at the top, not centered in the tallest slide */
html body .hub-slide .hub-fan { align-self: center; }

/* ---------- the news (site.css): the black cards go white (Danny 2026-11-15: "Yes, lighten them") ---------- */
.hn, :root[data-theme="light"] .hn { --hn-card: #FFFFFF; --hn-gap: var(--bg); }
html body :is(.hn-brief, .hn-card, .hn-col-lead, .hn-col-item) { color: #14181F; border: 1px solid #D8DEE6; }
html body :is(.hn-brief, .hn-card, .hn-col-lead, .hn-col-item) :is(.hn-meta, p) { color: #56616F; }
html body .hn-brief.is-lit { background: var(--jr-red); color: #FFFFFF; border-color: var(--jr-red); }

/* the featured game: the two clubs on their own colors, white between them (Danny 2026-11-15) */
html body .hn-feature { background: #FFFFFF; color: #14181F; border: 1px solid #D8DEE6; }
html body .hn-feature-mid { background: #FFFFFF; color: #14181F; }
html body .hn-feature-mid small { color: #56616F; }
html body .hn-feature-mid .hn-feature-why { color: var(--jr-red); }

/* live results, as the Colosseum's widget (HomeNews::widget): here, not site.css, so the site home, every sport home, high school
   and football draw it alike (Danny 2026-11-16); the site's own variables, else football's */
.hn-results { display: flex; flex-direction: column; gap: 10px; }
.hn-results .empty { padding: var(--s3, 16px); border: 1px solid var(--line, var(--border)); background: var(--panel, #fff); }
.hn-res { display: block; padding: 12px 12px 14px; background: #000; color: #f4f4f4; border-bottom: 4px solid var(--site, var(--jr-red)); }
.hn-res:hover { background: #0b0f16; }
.hn-res-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 800 11px/1 var(--sans, var(--font-ui)); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.hn-res-top > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.hn-res-clock { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.hn-res.is-live .hn-res-clock svg { color: var(--site, var(--jr-red)); }
.hn-res:not(.is-live) .hn-res-clock { color: var(--site, var(--jr-red)); }
.hn-res-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) repeat(var(--n), minmax(14px, auto)) 30px; align-items: center;
  column-gap: 6px; row-gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 4px solid #2a2f37;
  font: 700 12px/1 var(--sans, var(--font-ui)); font-variant-numeric: tabular-nums; text-align: center;
}
.hn-res.is-bb .hn-res-grid { column-gap: 3px; }
.hn-res-h { color: #8f8f8f; font-size: 10px; font-weight: 700; }
.hn-res-team { display: flex; align-items: center; gap: 8px; min-width: 0; text-align: left; }
.hn-res-chip { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 3px; }
.hn-res-team img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.hn-res-team > span { display: flex; flex-direction: column; min-width: 0; }
.hn-res-team small { color: #8f8f8f; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-res-team b { margin-top: 2px; font: 800 15px/1 var(--display, var(--font-display)); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hn-res-v { color: #d6d6d6; }
.hn-res-t { font: 900 16px/1 var(--display, var(--font-display)); color: #fff; }
.hn-res .is-lose { opacity: .55; }
/* high school's home is one column: its latest finals side by side */
.level-hs .hn-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }

/* Live results: white cards, dark type, red status and edge (Danny 2026-11-15: the deep red ones were "way to dark") */
html body .hn-res { background: #FFFFFF; color: #14181F; border: 1px solid #D8DEE6; border-bottom: 4px solid var(--jr-red); }
html body .hn-res:hover { background: #FFF5F5; }
html body .hn-res-top { color: #56616F; }
html body .hn-res-clock, html body .hn-res.is-live .hn-res-clock svg, html body .hn-res:not(.is-live) .hn-res-clock { color: var(--jr-red); }
html body .hn-res-h, html body .hn-res-team small { color: #6B7684; }
html body .hn-res-team b, html body .hn-res-t { color: #14181F; }
html body .hn-res-v { color: #3A424D; }
.hn-chip, .hn-brief.is-lit { color: #FFFFFF; }
.hn-brief.is-lit .hn-kicker, .hn-brief.is-lit .hn-meta { color: #FFFFFF; }
.hn-lead-cap h2, .hn-lead-cap .hn-title { border-left-color: var(--jr-red); }

/* ---------- the footer ---------- */
.site-ftr { background: var(--jr-red-deep); color: var(--jr-blush); border-top-color: var(--jr-red); }

/* ---------- the score bug (scorebug.css): dark gray with a hint of blue, so it stands apart from the red bar under it
   (Danny 2026-11-15) ---------- */
html body .app-ticker, html body .app-ticker--top { background: #2B313B; }
html body .app-ticker.app-ticker--gc .score-ticker-shell::before { background: #262B34; border-bottom-color: rgba(0, 0, 0, .25); }
html body .app-ticker.app-ticker--gc .score-ticker-shell::after,
html body .app-ticker.app-ticker--gc .score-ticker-track,
html body .app-ticker.app-ticker--gc .score-ticker-game { background: #333A45; }
/* the top bar 2px shorter, off the top padding (Danny 2026-11-16) */
html body .app-ticker.app-ticker--top .score-ticker-shell { grid-template-rows: 0 59px; }
html body .app-ticker.app-ticker--top .score-ticker-track { height: 58px; }
html body .app-ticker.app-ticker--top .score-ticker-game { height: 58px; padding-top: 4px; }
html body .app-ticker.app-ticker--top .score-ticker-empty { height: 59px; }
html body .app-ticker.app-ticker--top .score-ticker-menu { top: 59px; }
html body .app-ticker.app-ticker--gc .score-ticker-game:hover { background: #4A5363; }
/* no red on hover anywhere on the bar (Danny 2026-11-16): the site's red link hover stays off its games and league button */
html body .app-ticker.app-ticker--gc .score-ticker-game:hover { color: #FFFFFF; }
html body .app-ticker.app-ticker--gc button.score-ticker-league:hover b,
html body .app-ticker.app-ticker--gc button.score-ticker-league[aria-expanded="true"] b { color: #FFFFFF; }
/* each game's bottom line (clock, SIM): the more-games arrow's dark gray, a 2px lighter line over it (Danny 2026-11-16) */
html body .app-ticker.app-ticker--gc .score-ticker-game .score-ticker-meta { background: #262B34; box-shadow: inset 0 2px 0 #4A5361; padding-top: 3px; padding-bottom: 0; line-height: 13px; }
html body .app-ticker.app-ticker--gc .score-ticker-game:hover .score-ticker-meta { background: #333A45; }
html body .app-ticker.app-ticker--gc .score-ticker-league { background: #262B34; color: #FFFFFF; }
/* the more-games arrow on the right: the league button's dark gray, a white arrow (Danny 2026-11-15) */
html body .app-ticker.app-ticker--gc .score-ticker-arrow { background: #262B34; color: #FFFFFF; }
html body .app-ticker.app-ticker--gc .score-ticker-arrow:hover { background: #3E4653; }

/* ---------- football's league header on the sport pages (jrs1.css) ---------- */
html body .hdr-wine { background: linear-gradient(120deg, var(--jr-red-dark), var(--jr-red-deep) 55%, var(--jr-red-ink)); border-bottom-color: var(--jr-red-ink); }
.hdr-plf, .hdr-cd1, .hdr-cd2 { --glow: #FF6B70; }
.league-plf, .league-cd1, .league-cd2 { --m1: var(--jr-blush); --m2: var(--jr-red); }
.app-footer { background: var(--jr-red-deep); }

/* ---------- Readability (2026-11-15 night pass): every page loads this sheet, so the fixes live here once ---------- */
/* light theme: football's bone (#E8E1D3) table text was written for dark cards and all but vanished on white (game previews'
   Club column, the Cup's tables, team pages' Go button) */
:root[data-theme="light"] .pp-table .pp-name, :root[data-theme="light"] .pp-table .pp-name b { color: var(--text); }
:root[data-theme="light"] .tp-go { color: var(--text); border-color: var(--border); }
:root[data-theme="light"] .tp-go:hover, :root[data-theme="light"] .tp-go:focus-visible { border-color: var(--text-2); }
/* rating stars: the filled gold reads against white, the empty ones stay lighter so the count is clear */
:root[data-theme="light"] .star.is-full { color: #B87C00; }
:root[data-theme="light"] .star.is-half { background-image: linear-gradient(90deg, #B87C00 50%, #C5CCD6 50%); }
:root[data-theme="light"] .star { color: #C5CCD6; }
:root[data-theme="dark"] .star { color: #4A5568; }
/* the front page's news blurbs and live results: grey that was too faint on the white cards */
html body .hn-card .hn-dek { color: #56616F; }
html body .hn-res .is-lose { opacity: .72; }
html body .hn-res-team small { font-size: 10px; }
/* the smallest type, up from 9-10px to 11px (table heads keep their width: a little less letter spacing) */
.table-app thead th { font-size: 11px; letter-spacing: .05em; }
.pos-badge { font-size: 11px; }
:is(.stat-label, .leader-sub, .club-label) { font-size: 11px; }
:is(.game-card-top, .game-card-top-meta, .game-card-foot) { font-size: 11px; }

/* dark theme: the red #D7141A as text on the dark panels is too dim (3.5:1), so text accents go a lighter red; red fills
   behind white type use --jr-red and are unchanged. Accent-filled buttons take dark type, as football's dark theme did */
:root[data-theme="dark"] { --site: #FF5C63; --fb: #FF5C63; --bb: #FF5C63; --bk: #FF5C63; --accent: #FF5C63; --on-accent: #070A10; }
:root[data-theme="dark"] .acct-menu .acct-danger { color: #FF5C63; }
/* How to Watch's notice keeps its pale pink box in both themes, so its type stays dark */
.watch-now { color: #14181F; }
/* dark theme, continued: the white news cards and the red chips keep the deep red (the lighter one is for dark panels only) */
:root[data-theme="dark"] :is(.hn-card, .hn-col-lead, .hn-col-item, .hn-brief:not(.is-lit)) .hn-kicker { color: var(--jr-red); }
:root[data-theme="dark"] :is(.hn-chip, .hn-brief.is-lit) { background: var(--jr-red); }
:root[data-theme="dark"] .hn-brief.is-lit::before { border-right-color: var(--jr-red); }
/* standings' wild-card rows: the sage a shade deeper, so the white figures on it read */
:root[data-theme="dark"] { --seed-in: #536D44; }
:root[data-theme="dark"] .tn-strip-name { color: #A3AEBD; }

/* standings: the rank number on the green playoff rows takes the row's type color (grey on green was too faint) */
.table-app :is(tr.seed_top, tr.seed_in) .st-rank { color: inherit; }

/* phones: the standings table sizes to its content instead of 1080px, so the sticky club column leaves room for W, L and PCT */
@media (max-width: 640px) {
  .standings_full .table { min-width: 0; }
  .standings_full .team-cell { min-width: 0; }
}

/* standings: every table the same columns at the same widths (Danny 2026-11-17: the conferences' tables lined up differently),
   the club column wide enough for the longest name and the figures splitting the rest evenly; phones keep sizing to content (above) */
@media (min-width: 641px) {
  .standings_full .table { table-layout: fixed; }
  .standings_full th.team-cell { width: 350px; }
  .standings_full th.num { width: auto; }
  .standings_full td.team-cell { white-space: normal; }   /* never cut a name off (Danny 2026-11-17): a longer one wraps */
}

/* the season series (Danny 2026-11-18): the game page's card wherever it sits, this game marked; the line on a schedule row */
.gcast-card.gcast-series { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; min-width: 0; margin-bottom: 12px; }
.gcast-ser.is-this { background: rgba(127,127,127,.08); }
.sched-when .sched-series { display: block; margin-top: 4px; font-size: 11px; line-height: 14px; color: var(--text-2); white-space: normal; }
.tp-series-games { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.tp-series-games a { white-space: nowrap; }
