/* ==========================================================================
   DAY — the fan's light theme (toggle in the header; stored in localStorage
   "hbg-theme"). Night (steel) is the default and the brand; Day prints the
   same pages on program stock. It works by turning the steel tokens over
   inside the page, while the chrome and every photo band stay night.
   The "red ground" list below is generated from the other stylesheets
   (every rule that paints a red background keeps Mineral White text).
   ========================================================================== */
html[data-theme="day"] { color-scheme: light; }
html[data-theme="day"] body.web {
  --steel-0: #DCE5D9; --steel-1: #EEF2EC; --steel-2: #E5EBE2; --steel-3: #DCE5D9; --steel-4: #CBD5C7; --steel-5: #AEB9AA; --seam: #BCC6B8;
  --mineral: #131413; --black: #EEF2EC; --red-hot: #A61E2F; --sodium: #8C5410;
  --ink-hi: #131413; --ink-mid: #464645; --ink-lo: #5E625C;
  --focus: #131413;
}
/* Program stock keeps its own ink; chrome and photo bands stay night. */
html[data-theme="day"] .stock { --steel-0: #0C0D0C; --steel-1: #131413; --steel-2: #1A1C1A; --steel-3: #222523; --steel-4: #2D302D; --steel-5: #3A3D3A; --seam: #333733;
  --mineral: #DCE5D9; --black: #131413; --red-hot: #E5505F; --sodium: #E8A33D;
  --ink-hi: #DCE5D9; --ink-mid: #A6AEA3; --ink-lo: #7D847B; }
html[data-theme="day"] :is(.head, .menu-panel, .foot, .cookie, .mast, .hero, .sched-band, .ed-page .ed-head, .st-page .st-bar:not(.st-bar--sm), .st-shop .st-sec .sec-head, .events-sec, .connect-sec, .thennow, .duo, .st-lb, .pd-thumb-play, .pp, .camp .map-area, .btn:not(.btn--mineral):not(.btn--line), .cls--red, .carno--red, .carno--steel) {
  --steel-0: #0C0D0C; --steel-1: #131413; --steel-2: #1A1C1A; --steel-3: #222523; --steel-4: #2D302D; --steel-5: #3A3D3A; --seam: #333733;
  --mineral: #DCE5D9; --black: #131413; --red-hot: #E5505F; --sodium: #E8A33D;
  --ink-hi: #DCE5D9; --ink-mid: #A6AEA3; --ink-lo: #7D847B;
}
html[data-theme="day"] :is(.head, .menu-panel, .foot, .mast, .hero, .events-sec, .connect-sec) { --focus: var(--sodium); }
/* Red grounds keep light text. */
html[data-theme="day"] :is(.cls--red,
  .carno--red,
  .strip,
  .icon-btn .count,
  .rc-date,
  .lead-story .meta .cat,
  .tabs [aria-selected="true"],
  .tabs [aria-current="page"],
  .thennow .handle .grip,
  .board-item .tag,
  .digits.total span:not(.p),
  .band--red,
  .sp-tag,
  .sp-dots button[aria-pressed="true"],
  .os-tile:hover,
  .os-foot a,
  .merch-tag,
  .ev:hover .ev-date,
  .ev-list li:first-child .ev:not(.ev--off) .ev-date,
  .ev-tag,
  .connect a:hover,
  .foot-social a:hover,
  .merch-rail-h,
  .tag,
  .events-sec .ev:hover .ev-date,
  .events-sec .ev-list li:first-child .ev:not(.ev--off) .ev-date,
  .sched-card:hover .sched-date,
  .sched-card.is-next:not(.is-off) .sched-date,
  .ed-off,
  .ed-stamp,
  .ed-date,
  .st-sum:hover h3 .ico,
  .st-det[open] > .st-sum h3 .ico,
  .st-race-h.is-feature,
  .bs-done-ico--ok,
  .st-board .st-det[open] > .st-sum h3 .ico,
  .st-board .st-det .st-table tbody tr:first-child .st-car,
  .lv-pill--on,
  .sc-feat,
  .st-cat:hover .st-cat-ico,
  .rsv-spot.is-mine,
  .camp .toast.err,
  .st-shop .st-cat:hover .st-cat-ico,
  .st-shop .btn--black,
  .hof-rail-item:hover,
  .hof-rail-item.on,
  .pod-ep,
  .docs-h--red,
  .wire-board .btn--black,
  .pkg--top .pkg-head,
  .vip-bar span,
  .vip-st--red,
  .acct-choice input:checked + .acct-choice-box) {
  --mineral: #DCE5D9; --black: #131413; --ink-hi: #DCE5D9; --ink-mid: #E7C9CD; --ink-lo: #E7C9CD;
}
/* Materials and small fixes on paper. */
html[data-theme="day"] .steel.grain::after { mix-blend-mode: multiply; opacity: .08; }
html[data-theme="day"] .btn--line:hover { --bg: rgba(19,20,19,.06); }
html[data-theme="day"] .plate { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -1px 0 rgba(19,20,19,.18), 0 18px 32px -22px rgba(19,20,19,.35); }
html[data-theme="day"] :is(.wire-board .wcard, .sched-card.is-next:not(.is-off), .st-board .st-det[open], .st-page .st-sheet, .ed-page .ed-card, .st-shop .sc-card, .st-shop .sc-card.is-feat, .pkg) { box-shadow: 0 14px 28px -22px rgba(19,20,19,.4); }
html[data-theme="day"] .btn--mineral:hover { --bg: var(--steel-5); }
html[data-theme="day"] img[src*="/bbq/"] { filter: none; }

/* The toggle itself */
.theme-btn .ico-sun { display: none; }
html[data-theme="day"] .theme-btn .ico-sun { display: block; }
html[data-theme="day"] .theme-btn .ico-moon { display: none; }
