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

/* ---------- Brand (ILT20 purple, Outfit headings) ---------- */
.sps-page, .sps-embed, .ilt-sb, .ilt-home-data {
	--sps-purple: #7b2c9e;
	--sps-head: "Outfit", var(--ilt-font-heading, system-ui, sans-serif);
	--sps-nav: "Outfit", system-ui, sans-serif;
}
.sps-hero { background: linear-gradient(135deg, #1d052a 0%, #3b0f57 100%); }
.sps-hero::before { background: radial-gradient(circle, rgba(149, 57, 185, .22), transparent 70%); }
.sps-hero::after { background: radial-gradient(circle, rgba(242, 181, 49, .10), transparent 70%); }
.sps-page .sps-lcard-head,
.sps-page .ilt-m-inn__head,
.sps-page .ilt-m-card__bar { background: #1d052a; }
.sps-chip.is-on, .sps-chip[aria-current="page"] { background: #7b2c9e !important; border-color: #7b2c9e !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: #f6f7fb; }

/* ---------- 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/ilt-stats-content.php) ---------- */
.ilt-sc h2 { margin: 30px 0 12px !important; font: 800 24px/1.3 var(--sps-head) !important; color: var(--sps-ink) !important; }
.ilt-sc h2:first-child { margin-top: 0 !important; }
.ilt-sc h3 { margin: 22px 0 8px !important; font: 700 18px/1.3 var(--sps-head) !important; color: var(--sps-ink) !important; }
.ilt-sc p, .ilt-sc li { font-size: 16px; line-height: 1.7; color: #334155; }
.ilt-sc ul, .ilt-sc ol { margin: 0 0 12px 1.2em !important; padding: 0 !important; }
.ilt-sc li { margin: 4px 0; }
.ilt-sc li b { color: #0f172a; }
.ilt-sc a { color: #7b2c9e !important; text-decoration: none !important; font-weight: 600; }
.ilt-sc a:hover { text-decoration: underline !important; }

/* FAQ accordion used by the stats write-up */
.ilt-faq-accordion-group { display: grid; gap: 10px; margin-top: 8px; }
.ilt-faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.ilt-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: #0f172a; }
.ilt-faq-summary::-webkit-details-marker { display: none; }
.ilt-faq-chevron { width: 8px; height: 8px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg); transition: transform .2s; flex: none; }
.ilt-faq-item[open] .ilt-faq-chevron { transform: rotate(-135deg); }
.ilt-faq-answer { padding: 0 16px 14px; }
.ilt-faq-answer p { margin: 0 !important; }

/* ---------- Homepage blocks ---------- */
.ilt-home-data { max-width: 1200px; margin: 40px auto 10px; padding: 0 20px; }
.ilt-home-h2 { margin: 36px 0 12px !important; font: 800 22px/1.25 var(--sps-head) !important; color: #0f172a !important; }
.uagb-block-72e5d2c7 .ilt-hc-wrap { width: 100%; max-width: 380px; margin-left: auto; }
.ilt-sb { margin: 0; }

/* ---------- Main menu ---------- */
/* Dropdown hints */
#ast-desktop-header .sub-menu .menu-link { flex-direction: column; align-items: flex-start !important; gap: 2px; }
.ilt-dd-label { font-weight: 600; color: #0f172a; }
.ilt-dd-desc { display: block; font-size: 12.5px; line-height: 1.35; font-weight: 400; color: #64748b; white-space: normal; }
#ast-desktop-header .ilt-has-hints > .sub-menu { width: 300px; padding: 6px; }
#ast-desktop-header .sub-menu .menu-link:hover .ilt-dd-label { color: #7b2c9e; }
.ilt-live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #e11d48; vertical-align: 1px; animation: ilt-pulse 1.8s ease-out infinite; }
@keyframes ilt-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) { .ilt-live-dot { animation: none; } }

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

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

/* Teams mega panel (desktop): hidden until hover, like other dropdowns. */
.ilt-mega { position: absolute; top: 100%; left: 50%; z-index: 1000; width: min(860px, calc(100vw - 40px)); transform: translateX(-50%) translateY(8px); background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(15, 23, 42, .25); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; }
.ilt-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
#ast-desktop-header .ilt-mega-teams:hover > .ilt-mega,
#ast-desktop-header .ilt-mega-teams:focus-within > .ilt-mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
#ast-mobile-header .ilt-mega { display: none; }
.ilt-mega__inner { padding: 18px 20px 14px; }
.ilt-mega__head { margin: 0 0 8px !important; padding-bottom: 6px; border-bottom: 1px solid #eef2f7; font: 700 11px/1.2 "Outfit", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: #64748b; }
.ilt-mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
.ilt-mega__col li { margin: 0; }
.ilt-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: #0f172a !important; text-decoration: none !important; }
.ilt-mega__col a:hover { background: #f6effa; color: #7b2c9e !important; }
.ilt-mega__col .sps-team-logo { flex: none; width: 28px; height: 28px; object-fit: contain; }
.ilt-mega__foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef2f7; }
.ilt-mega__foot a { font-size: 13px; font-weight: 600; color: #0f172a !important; text-decoration: none !important; }
.ilt-mega__foot a:first-child { color: #7b2c9e !important; }
.main-header-menu .ilt-mega-teams { position: relative; }
/* LIVE pill: beat Astra's full-height menu links. */
#ast-desktop-header .main-header-menu > .menu-item.ilt-live-pill { display: flex; align-items: center; }
#ast-desktop-header .main-header-menu > .menu-item.ilt-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). */
.ilt-prev-note { margin: 0 0 18px; padding: 14px 18px !important; border-left: 4px solid #f2b531 !important; background: #fffbeb !important; color: #334155; font-size: 15px; line-height: 1.6; }
.ilt-prev-note b { color: #0f172a; }
.ilt-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) {
	.uagb-block-72e5d2c7 { align-self: stretch !important; width: 100% !important; }
	.uagb-block-72e5d2c7 .ilt-hc-wrap { max-width: 480px; margin-left: 0; margin-right: auto; }
}
