/* BBL site layer:brand colours, page text, homepage blocks, menu panels. */

/* ---------- Brand (BBL: black, red #d7263d, yellow #ffd100; flat, no gradients) ---------- */
.sps-page, .sps-embed, .bbl-sb, .bbl-home-data {
	--sps-purple:#e8177d;
	--sps-head:"Outfit", var(--bbl-font-heading, system-ui, sans-serif);
	--sps-nav:"Outfit", system-ui, sans-serif;
}
.sps-hero { background:#000; border-bottom:4px solid #dfff00; }
.sps-hero::before, .sps-hero::after { display:none !important; }
.sps-page .sps-lcard-head,
.sps-page .bbl-m-inn__head,
.sps-page .bbl-m-card__bar { background:#000; }
.sps-chip.is-on, .sps-chip[aria-current="page"] { background:#e8177d !important; border-color:#e8177d !important; }

/* Astra: our data pages are full width with their own banner. */
.sps-page { margin:0; }
.ast-separate-container .sps-page, .ast-plain-container .sps-page { background:#07070a; }

/* ---------- Page text below the data (no second box) ---------- */
.t20-page-content-card { margin-top:32px; background:transparent !important; border:0 !important; box-shadow:none !important; padding:0 !important; }
.t20-page-content-card .entry-content { background:transparent !important; }
.t20-page-content p, .t20-page-content li { font-size:16px; line-height:1.7; }

/* ---------- Stats write-up (inc/bbl-stats-content.php) ---------- */
.bbl-sc h2 { margin:30px 0 12px !important; font:800 24px/1.3 var(--sps-head) !important; color:var(--sps-ink) !important; }
.bbl-sc h2:first-child { margin-top:0 !important; }
.bbl-sc h3 { margin:22px 0 8px !important; font:700 18px/1.3 var(--sps-head) !important; color:var(--sps-ink) !important; }
.bbl-sc p, .bbl-sc li { font-size:16px; line-height:1.7; color:#d6d6de; }
.bbl-sc ul, .bbl-sc ol { margin:0 0 12px 1.2em !important; padding:0 !important; }
.bbl-sc li { margin:4px 0; }
.bbl-sc li b { color:#ffffff; }
.bbl-sc a { color:#ff4f8b !important; text-decoration:none !important; font-weight:600; }
.bbl-sc a:hover { text-decoration:underline !important; }

/* FAQ accordion used by the stats write-up */
.bbl-faq-accordion-group { display:grid; gap:10px; margin-top:8px; }
.bbl-faq-item { background:#111117; border:1px solid #2a2a36; border-radius:8px; }
.bbl-faq-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; cursor:pointer; list-style:none; font:700 15.5px/1.4 var(--sps-head); color:#ffffff; }
.bbl-faq-summary::-webkit-details-marker { display:none; }
.bbl-faq-chevron { width:8px; height:8px; border-right:2px solid #94a3b8; border-bottom:2px solid #94a3b8; transform:rotate(45deg); transition:transform .2s; flex:none; }
.bbl-faq-item[open] .bbl-faq-chevron { transform:rotate(-135deg); }
.bbl-faq-answer { padding:0 16px 14px; }
.bbl-faq-answer p { margin:0 !important; }

/* ---------- Homepage blocks ---------- */
.bbl-home-data { max-width:1200px; margin:40px auto 10px; padding:0 20px; }
.bbl-home-h2 { margin:36px 0 12px !important; font:800 22px/1.25 var(--sps-head) !important; color:#ffffff !important; }
/* Banner: text on the left, live card on the right (desktop). */
@media (min-width: 1025px) {
	.home .uagb-block-90d9c780 > .uagb-container-inner-blocks-wrap { align-items:center !important; gap:32px; }
	.home .uagb-block-b4bad6a2 { width:60% !important; max-width:60% !important; flex:0 0 60%; }
	.home .uagb-block-b4bad6a2 h1.uagb-ifb-title { font-size:52px !important; line-height:1.08 !important; }
	.home .uagb-block-90d9c780 .bbl-hc-wrap { flex:1 1 auto; width:100%; max-width:400px; margin-left:auto; }
}
.bbl-sb { margin:0; }
/* Astra's page-builder layout sets max-width:none on blocks in the content, so the scores
   strip ran edge to edge. Keep it on the same 1200px content line as the header and hero. */
.entry-content .bbl-sb .bbl-sb__wrap { max-width:1240px !important; margin-left:auto !important; margin-right:auto !important; }

/* ---------- Main menu ---------- */
/* Dropdown hints */
#ast-desktop-header .sub-menu .menu-link { flex-direction:column; align-items:flex-start !important; gap:2px; }
.bbl-dd-label { font-weight:600; color:#ffffff; }
.bbl-dd-desc { display:block; font-size:12.5px; line-height:1.35; font-weight:400; color:#a9a9b8; white-space:normal; }
#ast-desktop-header .bbl-has-hints > .sub-menu { width:300px; padding:6px; }
#ast-desktop-header .sub-menu .menu-link:hover .bbl-dd-label { color:#ff4f8b; }
.bbl-live-dot { display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; background:#e11d48; vertical-align:1px; animation:bbl-pulse 1.8s ease-out infinite; }
@keyframes bbl-pulse { 0% { box-shadow:0 0 0 0 rgba(225, 29, 72, .5); } 70% { box-shadow:0 0 0 7px rgba(225, 29, 72, 0); } 100% { box-shadow:0 0 0 0 rgba(225, 29, 72, 0); } }
@media (prefers-reduced-motion: reduce) { .bbl-live-dot { animation:none; } }

/* Stats: two columns (Batting first, then Bowling) */
#ast-desktop-header .bbl-stats-menu > .sub-menu { width:470px; column-count:2; column-gap:8px; padding:10px; }
#ast-desktop-header .bbl-stats-menu > .sub-menu > li { break-inside:avoid; }
#ast-desktop-header .bbl-stats-menu > .sub-menu .menu-link { padding:7px 10px !important; font-size:13.5px; }

/* LIVE pill (last menu item) */
.main-header-menu > .bbl-live-pill > .menu-link,
.ast-builder-menu .bbl-live-pill > .menu-link { display:inline-flex !important; align-items:center; margin-left:8px; padding:6px 14px !important; border-radius:999px; background:#ff2d55 !important; color:#fff !important; font-weight:800 !important; letter-spacing:.06em; line-height:1 !important; }
.main-header-menu > .bbl-live-pill > .menu-link::before { content:""; width:7px; height:7px; margin-right:7px; border-radius:50%; background:#111117; animation:bbl-pulse 1.8s ease-out infinite; }
#ast-desktop-header .main-header-menu > .bbl-live-pill > .menu-link::after { display:none !important; }
#ast-mobile-header .bbl-live-pill > .menu-link { color:#e11d48 !important; font-weight:800; }

/* Teams mega panel (desktop): hidden until hover, like other dropdowns. */
.bbl-mega { position:absolute; top:100%; left:50%; z-index:1000; width:min(620px, calc(100vw - 40px)); line-height:1.3; text-align:left; transform:translateX(-50%) translateY(8px); background:#111117; border:1px solid #2a2a36; border-radius:10px; box-shadow:0 16px 40px -12px rgba(0,0,0, .25); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .2s, transform .2s, visibility .2s; }
.bbl-mega::before { content:""; position:absolute; left:0; right:0; top:-14px; height:14px; }
#ast-desktop-header .bbl-mega-teams:hover > .bbl-mega,
#ast-desktop-header .bbl-mega-teams:focus-within > .bbl-mega { opacity:1; visibility:visible; pointer-events:auto; transform:translateX(-50%) translateY(0); }
#ast-mobile-header .bbl-mega { display:none; }
.bbl-mega__inner { padding:18px 20px 14px; }
.bbl-mega__head { margin:0 0 8px !important; padding-bottom:6px; border-bottom:1px solid #2a2a36; font:700 11px/1.2 "Outfit", sans-serif; letter-spacing:.07em; text-transform:uppercase; color:#a9a9b8; }
.bbl-mega__col ul { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:4px 12px; }
.bbl-mega__col li { margin:0; }
.bbl-mega__col a { display:flex !important; align-items:center; gap:10px; padding:8px 10px !important; border-radius:8px; font-size:14px !important; font-weight:600; color:#ffffff !important; text-decoration:none !important; }
.bbl-mega__col a:hover { background:rgba(255,45,85,.14); color:#ff4f8b !important; }
.bbl-mega__col .sps-team-logo { flex:none; width:28px; height:28px; object-fit:contain; }
.bbl-mega__foot { display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:12px; padding-top:12px; border-top:1px solid #2a2a36; }
.bbl-mega__foot a { font-size:13px; font-weight:600; color:#ffffff !important; text-decoration:none !important; }
.bbl-mega__foot a:first-child { color:#ff4f8b !important; }
.main-header-menu .bbl-mega-teams { position:relative; }
/* The header sets an 80px line-height on menu items; keep the panel compact. */
.bbl-mega li, .bbl-mega a, .bbl-mega span, .bbl-mega p { line-height:1.3 !important; height:auto !important; min-height:0 !important; }
.bbl-mega__col ul { gap:2px 6px; }
.bbl-mega__col a { padding:9px 10px !important; }
.bbl-mega__col .sps-team-logo { width:26px; height:26px !important; }
/* Teams has a panel but no real sub-items, so draw Astra's arrow ourselves; hide it on mobile where the panel is off. */
#ast-mobile-header .bbl-mega-teams .bbl-mega-caret { display:none; }
/* LIVE pill: beat Astra's full-height menu links. */
#ast-desktop-header .main-header-menu > .menu-item.bbl-live-pill { display:flex; align-items:center; }
#ast-desktop-header .main-header-menu > .menu-item.bbl-live-pill > .menu-link { height:auto !important; min-height:0 !important; line-height:1 !important; padding:8px 15px !important; border-radius:999px !important; font-size:13px !important; }

/* Fixed-size images in page content must shrink on phones (no sideways scroll). */
.entry-content .wp-block-image, .entry-content .wp-block-image img { max-width:100% !important; height:auto !important; }
.entry-content .wp-block-image.is-resized img, .entry-content .wp-block-image img[style*="width"] { width:auto !important; }

/* Pre-season note on stats pages (showing last season until match 1). */
.bbl-prev-note { margin:0 0 18px; padding:14px 18px !important; border-left:4px solid #dfff00 !important; background:#1b1b24 !important; color:#d6d6de; font-size:15px; line-height:1.6; }
.bbl-prev-note b { color:#ffffff; }
.bbl-prev-note .sps-link { margin-left:6px; font-weight:600; }

/* Banner live card: when the banner stacks (phones/tablets), line it up with the text on the left. */
@media (max-width: 1024px) {
	.home .uagb-block-90d9c780 .bbl-hc-wrap { align-self:stretch; width:100%; max-width:480px; margin:24px auto 0 0; }
}

/* Homepage: live blocks placed inside the existing Spectra sections. */
.bbl-home-data--in { max-width:none; margin:18px 0 0; padding:0; width:100%; }
.bbl-home-more { margin:12px 0 0 !important; font-size:15px; }

/* Mobile menu: the open drawer fills the screen below the header and scrolls on its own. */
@media (max-width: 921px) {
	#ast-mobile-header .ast-mobile-header-content { min-height:calc(100vh - 80px); min-height:calc(100dvh - 80px); max-height:calc(100vh - 80px); max-height:calc(100dvh - 80px); overflow-y:auto; overscroll-behavior:contain; background:#111117; }
	#ast-mobile-header .bbl-live-pill > .menu-link { display:flex !important; margin:0 !important; padding:0 20px !important; border-radius:0 !important; background:transparent !important; color:#ff4f8b !important; letter-spacing:.04em; min-height:50px; align-items:center; }
	#ast-mobile-header .bbl-live-pill > .menu-link::before { content:""; width:8px; height:8px; margin-right:8px; border-radius:50%; background:#e8177d; }
}

/* Stats panel opens leftwards so it never runs off the right edge (BBL menu is right-aligned). */
#ast-desktop-header .bbl-stats-menu > .sub-menu { left:auto !important; right:-120px !important; }
@media (max-width: 1200px) { #ast-desktop-header .bbl-stats-menu > .sub-menu { right:-40px !important; } }
#ast-desktop-header .bbl-stats-menu > .sub-menu > li:first-child, #ast-desktop-header .bbl-stats-menu > .sub-menu .bbl-stat-bowling:first-of-type { margin-top:0; }

/* Small laptops (922–1120px): keep the whole menu + LIVE pill on one line. */
@media (min-width: 922px) and (max-width: 1120px) {
	#ast-desktop-header .main-header-menu { flex-wrap:nowrap !important; }
	#ast-desktop-header .main-header-menu > .menu-item > .menu-link { padding-left:8px !important; padding-right:8px !important; font-size:14px !important; }
	#ast-desktop-header .main-header-menu > .menu-item.bbl-live-pill > .menu-link { padding:7px 12px !important; margin-left:4px; }
}

/* Astra's ".site-content #primary { padding:0 }" (ID specificity) was wiping
   the gap between the dark hero and the first section on every page. */
.site .site-content main#primary.sps-main { padding:32px 0 56px; margin:0; }
.site .site-content .bbl-match main#primary.sps-main { padding-top:22px; }
@media (max-width: 640px) { .site .site-content main#primary.sps-main { padding:24px 0 44px; } }

/* Homepage hero: "Today … · Updated …" line under the season pill, above the H1 (first fold). */
.bbl-hero-today { display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; margin:12px 0 0 !important; font-size:14px; line-height:1.4; color:rgba(255, 255, 255, .78); }
.bbl-hero-today span + span::before { content:"\00b7"; margin:0 9px; opacity:.6; }
.bbl-hero-today time { color:#fff; font-weight:600; }
.bbl-hero-today__live { color:#ff6b78; font-weight:700; }
@media (max-width: 640px) { .bbl-hero-today { font-size:13px; margin-top:10px !important; } }

/* Homepage schedule + points tables (original design, live rows): links look like the old plain text. */
.entry-content .wp-block-table a.bbl-home-fx,
.entry-content .wp-block-table a.sps-tlink { color:inherit !important; text-decoration:none !important; font-weight:inherit; }
.entry-content .wp-block-table a.bbl-home-fx:hover,
.entry-content .wp-block-table a.sps-tlink:hover { text-decoration:underline !important; }
.entry-content .wp-block-table .bbl-home-fx-note { display:inline-block; margin-top:2px; font-size:12.5px; line-height:1.35; color:#a9a9b8; }
.entry-content .wp-block-table .bbl-home-fx-note--live { color:#ff4f8b; font-weight:700; }
