/* Hubs B: the weather games first (Mike 2026-10-29). Everything here sits under html.hub2, which
   hub-v2.js sets only on /nfl/ and /cfb/ with the new scorebug's switch; linked from inside <main>, so
   the game and team pages built from these files never load it. */

/* the "Forecast the Blitz. Call the Game." banner goes; the week title leads */
html.hub2 .hero-sport { display: none; }
html.hub2 #gamesWeek, html.hub2 #cfbGamesWeek { padding-top: 24px; }
@media (min-width: 900px) { html.hub2 #gamesWeek, html.hub2 #cfbGamesWeek { padding-top: 40px; } }   /* was 81 (Mike 2026-11-11: "quite a bit of space at the top of the nfl desktop page between items") */

/* held space while the forecasts load, so the map and the rest don't jump when the games land */
html.hub2 .wg-wait { min-height: 380px; }
@media (min-width: 900px) { html.hub2 .wg-wait { min-height: 330px; } }

/* until the weather games are drawn (hub-v2.js, at most 6 s): the rest holds its place, unseen */
html.hub2-wait .hub2-top > :not(#hub2Games), html.hub2-wait .hub2-swipe, html.hub2-wait .hub2-rest,
html.hub2-wait .cfb-conf-hero, html.hub2-wait .cfb-section-block, html.hub2-wait #gamesFilters,
html.hub2-wait #gamesGrid, html.hub2-wait .games-updated { visibility: hidden; }

html.hub2 .hub2-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
html.hub2 .hub2-top .wqb-lead { margin: 0; }
html.hub2 .wg { border: 1px solid var(--line); border-radius: 16px; background: var(--panel, var(--bg)); overflow: hidden; }
html.hub2 .wg-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px 8px; }
html.hub2 .wg-h b { font: 700 12px var(--font-bug, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--pig, #b5461a); }
html.hub2 .wg-h span { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 380px) { html.hub2 .wg-h span { display: none; } }
html.hub2 .nfl-bug-slot, html.hub2 .cfb-bug-slot { scroll-margin-top: 90px; }   /* clears the sticky nav on a jump */
html.hub2 .wg-none { margin: 0; padding: 4px 16px 14px; font-size: 14px; color: var(--ink-2); }
html.hub2 .wgb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 12px 12px; }
html.hub2 .wgb a { display: block; text-decoration: none; color: inherit; border-radius: 14px; }
html.hub2 .wgb a:focus-visible { outline: 2px solid var(--pig, #b5461a); outline-offset: 2px; }
html.hub2 .wgb .sb-v2 { margin: 0; }
html.hub2 .wgb-more { margin: 0; padding: 0 16px 14px; font-size: 13.5px; color: var(--ink-2); }
/* two or more weather games: side by side only when each card can be 520 px, as on the slate below (at 900 px each was ~410 and its grade chip was cut) */
@media (min-width: 900px) { html.hub2 .wgb { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); } }

/* the link buttons wrap at every width, nothing off to the side (Mike 2026-11-03: phones and tablets, then desktop) */
html.hub2 .hub2-swipe { display: flex !important; flex-wrap: wrap !important; overflow-x: visible; gap: 8px; margin: 14px 0 4px;
  grid-template-columns: none !important; }
/* The chips' visually-hidden labels (.ql-l, position:absolute) were placed against the page, not this row, so
   the ones scrolled out of view still widened /nfl/ to 585 px on a phone (2026-10-30): hold them in the row */
html.hub2 .hub2-swipe { position: relative; }
html.hub2 .hub2-swipe a { flex: none; white-space: nowrap; }
html.hub2 .hub2-rest { display: grid; gap: 14px; margin: 14px 0 6px; }
html.hub2 .hub2-rest > [hidden] { display: none; }

/* below: the grade chip, and one line per game with no weather factor */
html.hub2 .wg-g { font: 700 11px var(--font-bug, sans-serif); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
html.hub2 .g-major { background: #b3261e; color: #fff; }
html.hub2 .g-minor { background: #e9a23b; color: #1b1300; }
html.hub2 .g-outlook { color: var(--ink-2); border: 1.5px dashed var(--ink-3); }
html.hub2 .g-none { background: var(--bg-2); color: var(--ink-2); }
html.hub2 .g-indoor { color: var(--ink-2); border: 1px solid var(--line-2, var(--line)); }
html.hub2 .hub2-folded { display: none !important; }
html.hub2 .hub2-fold-h { grid-column: 1 / -1; margin: 18px 0 2px; font: 700 12px var(--font-bug, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
html.hub2 .hub2-fold { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%;
  min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel, var(--bg));
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
html.hub2 .hub2-fold[hidden] { display: none; }
html.hub2 .hub2-fold-t b { display: block; font: 700 15px var(--font-display); color: var(--ink); }
html.hub2 .hub2-fold-t em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-2); }
html.hub2 .hub2-go { color: var(--ink-3); font-size: 18px; }
html.hub2 .games-grid { align-items: start; }

/* One map rule on desktop (Mike 2026-11-05): the kickoff map starts at the content's left edge, lined up with the title,
   as large as its fixed shape allows under a 585 px height cap (860 px wide; its dots are placed in that 100:68 frame),
   and its key moves into the column beside it instead of leaving empty space. Phones and tablets keep today's map. */
@media (min-width: 1024px) {
  html.hub2 .slate-top-map .nfl-map-wrap { display: grid; grid-template-columns: minmax(0, 860px) minmax(200px, 1fr); column-gap: 24px; align-items: start; max-width: none; margin: 0; }
  html.hub2 .slate-top-map .nfl-map-wrap > * { grid-column: 2; min-width: 0; }
  html.hub2 .slate-top-map .nfl-map-wrap > .nmap-head { grid-column: 1 / -1; }
  html.hub2 .slate-top-map .nfl-map-wrap > .nmap-head:has(> .nmap-share-row) { grid-column: 1; }   /* its Share lines up with the map's right edge (2026-11-16) */
  html.hub2 .slate-top-map .nfl-map-wrap > .nmap-stage { grid-column: 1; grid-row: 2 / span 4; max-width: none; width: 100%; margin: 0; }
  html.hub2 .slate-top-map .nfl-map-wrap > .nmap-legend { flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 0 0; }
  /* with Share in the header (column 1 only), the key would auto-place beside it in row 1 and push the map ~200 px down (sweep 2026-11-17): start it beside the map */
  html.hub2 .slate-top-map .nfl-map-wrap:has(> .nmap-head > .nmap-share-row) > .nmap-legend { grid-row: 2; }
  html.hub2 .slate-top-map .nfl-map-wrap > .nmap-market { margin-top: 14px; }
  /* the Valid line and Share under the map, Share at its right (the Share rule, 2026-11-05) */
  html.hub2 .slate-top-map .nfl-map-wrap > .map-stamp { grid-column: 1; grid-row: 6; align-self: center; }
  html.hub2 .slate-top-map .nfl-map-wrap > .nmap-share-row { grid-column: 1; grid-row: 6; justify-self: end; align-self: center; }
}
/* narrower screens: the same line, Valid at left and Share at right */
@media (max-width: 1023px) {
  .slate-top-map .nfl-map-wrap:has(> .nmap-share-row) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
  .slate-top-map .nfl-map-wrap:has(> .nmap-share-row) > * { grid-column: 1 / -1; min-width: 0; }
  .slate-top-map .nfl-map-wrap:has(> .nmap-share-row) > .nmap-stage { width: 100%; }   /* its auto margins would shrink it to nothing in a grid */
  .slate-top-map .nfl-map-wrap:has(> .nmap-share-row) > .map-stamp { grid-column: 1; }
  .slate-top-map .nfl-map-wrap:has(> .nmap-share-row) > .nmap-share-row { grid-column: 2; justify-self: end; }
}

/* The weather games box (Mike 2026-11-05): with one weather game, the card on the left and the week's weather story
   beside it in the same box, the "tap" hint under the card. Two or more: cards side by side, the story stays under the box.
   1180 px and wider; narrower screens keep today's order. hub-v2.js moves the story in and back out. */
html.hub2 .wg-tap { display: none; }
@media (min-width: 900px) {
  html.hub2 .wg-h span { display: none; }
  html.hub2 .wgb > .wg-tap { display: block; grid-column: 1; margin: -4px 4px 0; font-size: 12.5px; color: var(--ink-3); }
  html.hub2 .wgb:not(.wg-one) > .wg-tap { grid-column: 1 / -1; }
  html.hub2 .wgb.wg-one { grid-template-columns: minmax(0, 600px); }   /* a lone card at its full width, not squeezed into half the box */
}
/* the story beside the card only where the card keeps its full width (at 1024 the bug's grade chip was cut off) */
@media (min-width: 1180px) {
  html.hub2 .wgb.wg-one { grid-template-columns: minmax(560px, 600px) minmax(0, 1fr); align-items: start; }
  html.hub2 .wgb.wg-one > .wqb-lead { grid-column: 2; grid-row: 1; margin: 0; align-self: stretch; }   /* the card's row only: top and bottom line up with the scorebug, the tap hint sits under the card alone (Mike 2026-11-05) */
}

/* Tighter top of /nfl/ and /cfb/ (Mike 2026-11-11), last so it wins over the rules above */
/* the week title, its Share and the scorebugs sit closer; the chips come up under the map's notes */
html.hub2 #gamesWeek > .wrap > .kicker, html.hub2 #cfbGamesWeek > .wrap > .kicker { margin-bottom: 8px; }
html.hub2 #gamesWeekHeading, html.hub2 #cfbWeekHeading { margin-bottom: 6px; }
html.hub2 .nfl-share-row.nfl-wk-share, html.hub2 .nfl-share-row.cfb-wk-share { margin: 4px 0 10px; }
html.hub2 .hub2-top { margin-top: 8px; }
html.hub2 .hub2-rest + .games-filters, html.hub2 .hub2-rest ~ .games-filters { margin-top: 8px; }
