/* The site's look (Dec 2026): a broadcast feel on near-black, with the yellow flag. Loaded after
   components.css on every page, for every sport: the NFL since Dec 4 morning, the NHL since Dec 4
   evening (the sport's own touches, a rink instead of a field and ice blue instead of field green,
   are at the bottom of this file and in nhl.css). It only changes color, corners, borders and type:
   every piece of information and every link stays where it was. */

/* ---------- colors: near-black, yellow flag, field green ---------- */
:root {
  /* Light (Dec 4 evening): softer than paper white and jet black, which were hard on the eyes. A warm
     off-white card on a stone page, ink a deep charcoal, and the dark stubs and header a charcoal too. */
  --bg: #e6e7e1; --surface: #fbfbf8; --panel: #f0f1ec; --ink: #1b1f24; --muted: #535a61;
  --line: #d8dad2; --line-strong: #a3a9a1;
  --night: #1d2229; --night-2: #2b3139;
  /* The flag yellow as text on a light surface: a dark gold that passes 4.5 to 1 on the page, card and
     panel colors. On the dark theme it is the flag itself. Yellow on the dark stubs and bars is untouched. */
  --flag-text: #7a5600;
  --good: #086b3b;   /* a shade deeper than before, so green numbers pass on the page color too */
  --brand: #0f7a45; --on-brand: #ffffff; --brand-soft: #dcefe3; --focus: #0f7a45;
  --on-night-muted: #aab0b6;
  --r-lg: 8px; --r: 6px; --r-sm: 4px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 10px 22px -14px rgb(0 0 0 / .2);
  --green: #0f7a45;
}
:root[data-theme="dark"] {
  --bg: #060708; --surface: #171a1f; --panel: #1f2329; --ink: #f4f4f0; --muted: #a2a9af;
  --line: #2c3138; --line-strong: #444b54;
  --brand: #3fd08a; --on-brand: #06140c; --brand-soft: #10331f; --focus: #ffc82e;
  --night: #0b0c0e; --night-2: #1b1e22; --flag-text: var(--flag);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 24px -12px rgb(0 0 0 / .7);
  --green: #3fd08a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060708; --surface: #171a1f; --panel: #1f2329; --ink: #f4f4f0; --muted: #a2a9af;
    --line: #2c3138; --line-strong: #444b54;
    --brand: #3fd08a; --on-brand: #06140c; --brand-soft: #10331f; --focus: #ffc82e;
    --night: #0b0c0e; --night-2: #1b1e22; --flag-text: var(--flag);
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 24px -12px rgb(0 0 0 / .7);
    --green: #3fd08a;
  }
}
/* The field behind the page: a green glow instead of the blue one. */
:root body { --field-glow: rgb(63 208 138 / .11); }
:root[data-theme="light"] body { --field-glow: rgb(15 122 69 / .09); }

/* ---------- fewer boxes: cards sit on the page without an outline ----------
   The brand's slanted edge is cut into the top right corner of the game cards and player cards. */
:root .card { border-color: transparent; }
:root .tile, :root .spot {
  border-color: transparent;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
:root .tile:hover, :root .spot:hover { border-color: transparent; box-shadow: none; background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
:root .tile-feat { border-color: transparent; box-shadow: inset 0 3px 0 var(--flag); }
:root .tile-feat .feat-head { background: transparent; }

/* The bottom strip of a game card: no gray box, a thin line, and the line and total in big numbers. */
:root .tile-meta { background: transparent; border-top-color: var(--line); padding: .55rem 1rem .7rem; font: 700 1.12rem/1.15 var(--display); letter-spacing: .02em; }
:root .tile-meta .muted, :root .tile-meta .live-row { font: 600 .84rem/1.3 var(--text); letter-spacing: 0; }
:root .tile-meta .tile-pre { font: 600 .84rem/1.3 var(--text); }
:root .tile-intl { background: transparent; }
:root .tile-holiday { background: color-mix(in srgb, #f59e0b 10%, transparent); }
:root .tile-holiday-christmas { background: color-mix(in srgb, #16a34a 10%, transparent); }
:root .spot-row + .spot-row { border-top-color: var(--line); }

/* ---------- broadcast type and bigger numbers ---------- */
:root .tile-when { font: 700 1rem/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; padding-top: .8rem; }
:root .tile-when span { font: 600 .78rem/1.1 var(--text); letter-spacing: .02em; text-transform: none; }
:root .tile-proj { font: 800 italic 1.95rem/1 var(--display); opacity: 1; }
:root .tile-score { font-size: 2.3rem; font-style: italic; }
:root .tile-name b { font-size: 1.7rem; font-style: italic; }
:root .tile-odds { border-radius: 2px; height: 1.55rem; font: 800 italic .95rem/1.55rem var(--display); letter-spacing: .03em; }
:root .tile-sit b { border-radius: 2px; }

/* Day and window headings: condensed capitals with a yellow slash in front. */
:root .dayhead, :root .slothead { font: 800 italic 1.25rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
:root .dayhead::before, :root .slothead::before { content: ""; flex: none; width: .55rem; height: 1.05rem; background: var(--flag); clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); }
:root .dayhead::after { background: var(--line); }

/* Section headings: the same capitals and slash. The explainer under each one stays, a little quieter. */
:root .sec h2 { font-style: italic; text-transform: uppercase; letter-spacing: .02em; }
:root .sec h2::before { content: ""; flex: none; width: .7rem; height: 1.3rem; background: var(--flag); clip-path: polygon(40% 0, 100% 0, 60% 100%, 0 100%); }
:root .sec p { font-size: .9rem; max-width: 95ch; }

/* ---------- square off the round pills ---------- */
:root .nav a { border-radius: 2px; }
:root .update,
:root .chip,
:root .hero-line span,
:root .markets button, :root .lines button,
:root .filters, :root .filters button,
:root .stack th button.sort,
:root .star-bar, :root .star-bar i { border-radius: 3px; }
:root .tile-stars .av, :root .feat-targets .av { border-radius: 4px; }
:root .feat-col .tile-intl { border-radius: 3px; }
:root .tile-hurt { border-radius: 0 3px 3px 0; }

/* The week-at-a-glance cards: no outline either, with the slanted corner. */
:root .glance { border-color: transparent; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
:root .glance:hover { border-color: transparent; box-shadow: none; }

/* Cards stand off the page: a hairline edge and a soft drop under them (Dec 4: they blended into the
   dark background). The edge is a border, so the slanted corner keeps it. */
:root { --card-edge: rgb(27 31 36 / .09); --card-lift: 0 6px 14px -10px rgb(27 31 36 / .28); }
:root[data-theme="dark"] { --card-edge: rgb(255 255 255 / .09); --card-lift: 0 10px 24px -14px rgb(0 0 0 / .9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --card-edge: rgb(255 255 255 / .09); --card-lift: 0 10px 24px -14px rgb(0 0 0 / .9); } }
:root .tile, :root .spot, :root .glance, :root .card,
:root .tile:hover, :root .spot:hover, :root .glance:hover { border-color: var(--card-edge); }
:root .tile:hover, :root .spot:hover, :root .glance:hover { border-color: color-mix(in srgb, var(--flag) 45%, var(--card-edge)); }
:root .tile-feat { border-color: var(--card-edge); }
:root .rail, :root .slate, :root .tw-grid, :root .feat-row { filter: drop-shadow(var(--card-lift)); }
/* The week-at-a-glance cards are drawn on the night color, nearly the page's own in dark mode: lift them to the card color there. */
:root[data-theme="dark"] .glance { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glance { background: var(--surface); } }

/* ---------- light mode only ---------- */
/* The field behind the page: fainter lines and stripes (they read as busy on a light page). */
:root[data-theme="light"] body { --field-line: rgb(27 31 36 / .09); --field-stripe: rgb(27 31 36 / .018); --field-glow: rgb(15 122 69 / .07); --field-gold: rgb(255 200 46 / .1); }
/* The week-at-a-glance cards: light cards like the rest instead of black slabs. */
:root[data-theme="light"] .glance { --on-night: var(--ink); --on-night-muted: var(--muted); background: var(--surface); color: var(--ink); }
:root[data-theme="light"] .glance-k { color: var(--flag-text); }
:root[data-theme="light"] .glance .cmp-bar { background: rgb(27 31 36 / .08); }
:root[data-theme="light"] .glance .cmp-row.theirs .cmp-bar u { background: #9aa0a6; }
:root[data-theme="light"] .glance .cmp-bar.signed::after { background: rgb(27 31 36 / .3); }
:root[data-theme="light"] .glance-faces .av { box-shadow: 0 0 0 2px var(--surface); }
/* Yellow text sitting on a light background (a kicker on a light strip) needs the darker gold to be read. */


/* ---------- the NHL side ---------- */
/* Ice blue where the NFL has field green (links, focus, the brand color). */
:root.nhl { --brand: #1f6fd6; --brand-soft: #dde9fb; --focus: #1f6fd6; --green: #1f6fd6; }
:root.nhl[data-theme="dark"] { --brand: #6eb0ff; --on-brand: #05101f; --brand-soft: #10223d; --focus: #ffc82e; --green: #6eb0ff; }

/* ---------- yellow text that sits on the page's own surfaces uses the readable gold ---------- */
/* The weather line and its tag on game cards, the icons beside a card's notes, a feature card's score total,
   prices and marks in lists and tables, the wild-card tag in Standings. (Dec 4: these failed contrast in light mode.) */
.wx-flag, .wxtag, .tile-angles svg, .spot-tag svg, .flag.globe, .feat-ls .feat-ls-t, .ml-p b, .edge-num, .factor.top .factor-n,
td.v-t .t-hot, .bet-refs li:first-child > span, .br-group { color: var(--flag-text); }
.wxtag { border-color: var(--flag-text); }
:root[data-theme="light"] .st-chip.wc { color: var(--flag-text); box-shadow: inset 0 0 0 2px var(--flag-text); }
/* Light mode: the injury orange as text is a shade deeper (the orange itself stays for bars and chips), and
   settled Targets cards are faded less, so their numbers still pass. */
:root[data-theme="light"] .tile-hurt b, :root[data-theme="light"] .tile-hurt svg, :root[data-theme="light"] .hurt-row > b { color: #a83c08; }
:root[data-theme="light"] .tw-card.is-lost .pick-meter, :root[data-theme="light"] .tw-card.is-lost .tw-edge, :root[data-theme="light"] .tw-card.is-wait .pick-meter,
:root[data-theme="light"] .tgt.is-lost .tgt-body, :root[data-theme="light"] .tgt.is-lost .tgt-edge, :root[data-theme="light"] .tgt.is-wait .tgt-edge { opacity: .88; }
