/**
 * MUI V2 Home Page Stylesheet.
 * Scoped strictly under body.mui-v2-home-template
 */

body.mui-v2-home-template {
    color: #1D1D1F !important;
    background-color: #FAFAFC !important;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(45, 153, 228, 0.06) 0%, transparent 40rem),
        radial-gradient(circle at 80% 40%, rgba(45, 153, 228, 0.04) 0%, transparent 40rem),
        radial-gradient(circle at 50% -10%, rgba(0, 102, 204, 0.06) 0%, transparent 35rem) !important;
    background-attachment: fixed !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.mui-v2-home-template #mui-v2-page-root {
    background: transparent !important;
}

body.mui-v2-home-template #mui-v2-page-root a:hover {
    text-decoration: none !important;
}

html.dark body.mui-v2-home-template {
    background-color: #0A0A0C !important;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(45, 153, 228, 0.03) 0%, transparent 40rem),
        radial-gradient(circle at 80% 40%, rgba(45, 153, 228, 0.02) 0%, transparent 40rem),
        radial-gradient(circle at 50% -10%, rgba(0, 102, 204, 0.03) 0%, transparent 35rem) !important;
    color: #F5F5F7 !important;
}

html.dark body.mui-v2-home-template #mui-v2-page-root {
    background: transparent !important;
}

/* ==========================================
 * Scoped Reset to block parent theme overrides
 * ========================================== */
body.mui-v2-home-template h1,
body.mui-v2-home-template h2,
body.mui-v2-home-template h3,
body.mui-v2-home-template h4,
body.mui-v2-home-template p,
body.mui-v2-home-template ul,
body.mui-v2-home-template li,
body.mui-v2-home-template button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.mui-v2-home-template #mui-v2-home,
body.mui-v2-home-template #mui-v2-home h1,
body.mui-v2-home-template #mui-v2-home h2,
body.mui-v2-home-template #mui-v2-home h3,
body.mui-v2-home-template #mui-v2-home h4,
body.mui-v2-home-template #mui-v2-home p,
body.mui-v2-home-template #mui-v2-home a,
body.mui-v2-home-template #mui-v2-home span,
body.mui-v2-home-template #mui-v2-home button,
body.mui-v2-home-template #mui-v2-home input {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif !important;
}

/* ==========================================
 * Layout Helpers
 * ========================================== */
body.mui-v2-home-template .container-fluid {
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.mui-v2-home-template .bento-radius {
    border-radius: 2.5rem !important;
}

body.mui-v2-home-template .link-clean {
    text-decoration-thickness: 1px !important;
    text-underline-offset: 5px !important;
}

body.mui-v2-home-template .section-kicker {
    letter-spacing: .18em !important;
}

body.mui-v2-home-template .soft-divider {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent) !important;
    height: 1px !important;
}

html.dark body.mui-v2-home-template .soft-divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent) !important;
}

body.mui-v2-home-template .no-scrollbar::-webkit-scrollbar {
    display: none !important;
}

body.mui-v2-home-template .no-scrollbar {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* ==========================================
 * Hero Section Styles
 * ========================================== */
body.mui-v2-home-template .hero-screen {
    min-height: calc(100svh - 64px) !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    padding-top: clamp(2.5rem, 6svh, 4rem) !important;
    padding-bottom: clamp(2rem, 5svh, 3.5rem) !important;
}

body.mui-v2-home-template .hero-screen .container-fluid {
    max-width: min(1180px, calc(100vw - 2.5rem)) !important;
}

body.mui-v2-home-template .hero-title {
    max-width: min(1120px, calc(100vw - 2.5rem)) !important;
    font-size: clamp(2.85rem, 5.35vw, 4.75rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -.06em !important;
    margin-top: 2rem !important;
}

@media (min-width: 640px) {
    body.mui-v2-home-template .hero-title {
        margin-top: 3rem !important;
    }
}

body.mui-v2-home-template .hero-title-line {
    display: inline !important;
}

body.mui-v2-home-template .hero-search-bar {
    max-width: min(48rem, calc(100vw - 2.5rem)) !important;
    height: 3.5rem !important;
    margin-top: clamp(3rem, 6svh, 4rem) !important;
}

body.mui-v2-home-template .hero-chips {
    max-width: min(48rem, calc(100vw - 2.5rem)) !important;
    margin-top: clamp(2.25rem, 4svh, 2.75rem) !important;
}

body.mui-v2-home-template .hero-stats {
    max-width: min(64rem, calc(100vw - 2.5rem)) !important;
    margin-top: clamp(3.75rem, 9svh, 5.5rem) !important;
}

@media (min-width: 768px) {
    body.mui-v2-home-template .hero-search-bar {
        height: 68px !important;
    }
}

body.mui-v2-home-template .hero-stat-cell {
    padding-top: clamp(1rem, 2.5svh, 1.5rem) !important;
    padding-bottom: clamp(1rem, 2.5svh, 1.5rem) !important;
}

body.mui-v2-home-template .hero-stat-number {
    font-size: clamp(1.75rem, 2.35vw, 2.35rem) !important;
    line-height: 1 !important;
}

@media (min-width: 1280px) {
    body.mui-v2-home-template .hero-screen .container-fluid {
        max-width: min(1560px, calc(100vw - 5rem)) !important;
    }

    body.mui-v2-home-template .hero-screen .section-kicker {
        font-size: .95rem !important;
    }

    body.mui-v2-home-template .hero-title {
        max-width: min(1520px, calc(100vw - 5rem)) !important;
        font-size: clamp(5rem, 5vw, 6.45rem) !important;
        line-height: 1.05 !important;
        letter-spacing: -.068em !important;
    }

    body.mui-v2-home-template .hero-title-line {
        display: block !important;
    }

    body.mui-v2-home-template .hero-search-bar {
        max-width: 980px !important;
        height: 76px !important;
        margin-top: clamp(3.5rem, 6svh, 4.5rem) !important;
    }

    body.mui-v2-home-template .hero-chips {
        max-width: 980px !important;
        margin-top: clamp(2.5rem, 3.5svh, 3rem) !important;
    }

    body.mui-v2-home-template .hero-stats {
        max-width: 1180px !important;
        margin-top: clamp(4.5rem, 7svh, 6rem) !important;
    }

    body.mui-v2-home-template .hero-stat-cell {
        padding-top: clamp(1.2rem, 1.9svh, 1.9rem) !important;
        padding-bottom: clamp(1.2rem, 1.9svh, 1.9rem) !important;
    }

    body.mui-v2-home-template .hero-stat-number {
        font-size: clamp(2.25rem, 2.2vw, 2.9rem) !important;
    }
}

@media (min-width: 1800px) {
    body.mui-v2-home-template .hero-screen .container-fluid {
        max-width: min(1760px, calc(100vw - 6rem)) !important;
    }

    body.mui-v2-home-template .hero-title {
        max-width: min(1700px, calc(100vw - 6rem)) !important;
        font-size: clamp(6rem, 4.9vw, 7.35rem) !important;
    }

    body.mui-v2-home-template .hero-search-bar {
        max-width: 1000px !important;
        height: 78px !important;
    }

    body.mui-v2-home-template .hero-chips {
        max-width: 1000px !important;
    }

    body.mui-v2-home-template .hero-stats {
        max-width: 1260px !important;
    }
}

@media (max-height: 760px) and (min-width: 768px) {
    body.mui-v2-home-template .hero-screen {
        padding-top: 5.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    body.mui-v2-home-template .hero-title {
        font-size: clamp(2.6rem, 4.65vw, 4.1rem) !important;
        line-height: 1 !important;
    }

    body.mui-v2-home-template .hero-search-bar {
        margin-top: 2.75rem !important;
    }

    body.mui-v2-home-template .hero-chips {
        margin-top: 2rem !important;
    }

    body.mui-v2-home-template .hero-stats {
        margin-top: 2.75rem !important;
    }

    body.mui-v2-home-template .hero-chip {
        padding-top: .45rem !important;
        padding-bottom: .45rem !important;
    }

    body.mui-v2-home-template .hero-stat-cell {
        padding-top: .85rem !important;
        padding-bottom: .85rem !important;
    }

    body.mui-v2-home-template #search-placeholder.hero-search-bar {
        height: 64px !important;
    }
}

/* Hero quick links: compact pill style */
body.mui-v2-home-template .hero-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .75rem !important;
}

body.mui-v2-home-template .hero-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: auto !important;
    min-height: 0 !important;
    justify-content: center !important;
    white-space: nowrap !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #F5F5F7 !important;
    padding: .72rem 1.2rem !important;
    color: #6E6E73 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    box-shadow: none !important;
    transition: background-color 180ms ease, color 180ms ease !important;
}

body.mui-v2-home-template .hero-chip svg {
    width: 1.45rem !important;
    height: 1.45rem !important;
    flex: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    color: #54B4F5 !important;
    transition: color 180ms ease, transform 180ms ease !important;
}

body.mui-v2-home-template .hero-chip:hover {
    transform: none !important;
    background: #ECECEF !important;
    color: #1D1D1F !important;
    box-shadow: none !important;
}

body.mui-v2-home-template .hero-chip:hover svg {
    transform: translate(1px, -1px) !important;
    background: transparent !important;
    color: #2D99E4 !important;
}

@media (max-width: 640px) {
    body.mui-v2-home-template .hero-chips {
        gap: .6rem !important;
    }

    body.mui-v2-home-template .hero-chip {
        padding: .65rem 1rem !important;
        font-size: .9rem !important;
    }
}

@media (max-width: 640px) {
    body.mui-v2-home-template .hero-screen {
        min-height: calc(100svh - 58px) !important;
        align-items: flex-start !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    body.mui-v2-home-template .hero-title {
        font-size: clamp(2.25rem, 11vw, 3.25rem) !important;
        line-height: 1.03 !important;
    }
}

/* Premium Glowing & Blur Effect for Hero Search Bar */
body.mui-v2-home-template .hero-search-wrapper {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    max-width: min(48rem, calc(100vw - 2.5rem)) !important;
    margin: clamp(3rem, 6svh, 4rem) auto 0 auto !important;
    z-index: 10 !important;
}

@media (min-width: 768px) {
    body.mui-v2-home-template .hero-search-wrapper {
        max-width: 980px !important;
        margin-top: clamp(3.5rem, 6svh, 4.5rem) !important;
    }
}

@media (min-width: 1024px) {
    body.mui-v2-home-template .hero-search-wrapper {
        max-width: 1000px !important;
    }
}

@media (max-width: 640px) {
    body.mui-v2-home-template .hero-search-wrapper {
        margin-top: 2.75rem !important;
    }
}

body.mui-v2-home-template .hero-search-bar {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    position: relative !important;
    z-index: 20 !important;
    background-color: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
    transition: all 300ms ease !important;
}

body.mui-v2-home-template .hero-search-bar:hover {
    border-color: rgba(45, 153, 228, 0.4) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

body.mui-v2-home-template .search-glow-bg {
    background: linear-gradient(90deg, #2d99e4, #0267b2, #54b4f5, #2d99e4) !important;
    background-size: 300% 100% !important;
    animation: search-glow 8s linear infinite !important;
}

@keyframes search-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.mui-v2-home-template .hero-search-bar span {
    color: #6E6E73 !important;
}

/* ==========================================
 * Search Overlay Monolith
 * ========================================== */
#search-monolith {
    transform-origin: top left !important;
    will-change: transform, width, height !important;
    transition: all 320ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

#search-target {
    pointer-events: none !important;
    visibility: hidden !important;
    position: fixed !important;
    z-index: 0 !important;
    top: .5rem !important;
    left: .5rem !important;
    right: .5rem !important;
    height: min(82svh, 640px) !important;
    max-height: calc(100svh - 1rem) !important;
}

@media (min-width: 768px) {
    #search-target {
        top: 1rem !important;
        left: 50% !important;
        right: auto !important;
        width: min(calc(100vw - 2rem), 1300px) !important;
        height: min(72svh, 620px) !important;
        max-height: calc(100svh - 2rem) !important;
        transform: translateX(-50%) !important;
    }
}

#mega-menu-content {
    transform: translateY(-10px) !important;
    transform-origin: top !important;
    will-change: opacity, transform !important;
    pointer-events: none !important;
}

/* ==========================================
 * Today Bento Section (pulse)
 * ========================================== */
/* ==========================================
 * Today Bento Section (pulse)
 * ========================================== */
body.mui-v2-home-template #pulse {
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif !important;
    color: #1A1F26 !important;
}

html.dark body.mui-v2-home-template #pulse {
    color: #F5F5F7 !important;
}

body.mui-v2-home-template #pulse .kicker {
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    color: #626F80 !important;
}

html.dark body.mui-v2-home-template #pulse .kicker {
    color: #38bdf8 !important;
}

/* Prevent V1 Tailwind color tokens from changing V3's exact palette. */
body.mui-v2-home-template #pulse .text-ink { color: #1A1F26 !important; }
body.mui-v2-home-template #pulse .text-muted { color: #626F80 !important; }

html.dark body.mui-v2-home-template #pulse .text-ink { color: #FFFFFF !important; }
html.dark body.mui-v2-home-template #pulse .text-muted { color: #A1A1A6 !important; }

body.mui-v2-home-template #pulse [data-today-title] {
    color: #1A1F26 !important;
}

html.dark body.mui-v2-home-template #pulse [data-today-title] {
    color: #FFFFFF !important;
}

body.mui-v2-home-template #pulse .today-info-box {
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 1.25rem !important;
    overflow: hidden !important;
    background: rgba(0, 0, 0, 0.01) !important;
}

html.dark body.mui-v2-home-template #pulse .today-info-box {
    border-color: rgba(255,255,255,0.08) !important;
    background: rgba(255,255,255,0.02) !important;
}

body.mui-v2-home-template #pulse .today-cell {
    padding: 1.25rem 1.5rem !important;
}

body.mui-v2-home-template #pulse .today-cell + .today-cell {
    border-top: 1px solid rgba(0,0,0,0.08) !important;
}

html.dark body.mui-v2-home-template #pulse .today-cell + .today-cell {
    border-top: 1px solid rgba(255,255,255,0.08) !important;
}

@media (min-width: 640px) {
    body.mui-v2-home-template #pulse .today-info-grid {
        display: grid !important;
        grid-template-columns: repeat(3,1fr) !important;
    }

    body.mui-v2-home-template #pulse .today-cell {
        border-top: none !important;
    }

    body.mui-v2-home-template #pulse .today-cell + .today-cell {
        border-left: 1px solid rgba(0,0,0,0.08) !important;
        border-top: none !important;
    }

    html.dark body.mui-v2-home-template #pulse .today-cell + .today-cell {
        border-left: 1px solid rgba(255,255,255,0.08) !important;
    }
}

body.mui-v2-home-template #pulse .today-item {
    padding: 1.25rem 0 !important;
    border-top: 1px solid rgba(0,0,0,0.06) !important;
    cursor: pointer !important;
    text-align: left !important;
    width: 100% !important;
    transition: none !important;
    background: transparent !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
}

html.dark body.mui-v2-home-template #pulse .today-item {
    border-top: 1px solid rgba(255,255,255,0.06) !important;
}

body.mui-v2-home-template #pulse .today-item:first-child {
    border-top: none !important;
}

body.mui-v2-home-template #pulse .today-item-type {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.16em !important;
    color: #4a546a !important;
}

html.dark body.mui-v2-home-template #pulse .today-item-type {
    color: #38bdf8 !important;
}

body.mui-v2-home-template #pulse .today-item-title {
    margin-top: 0.4rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.3 !important;
    color: #7E8B9B !important;
    transition: color 160ms ease !important;
}

html.dark body.mui-v2-home-template #pulse .today-item-title {
    color: #A1A1A6 !important;
}

body.mui-v2-home-template #pulse .today-item[aria-pressed="true"] .today-item-title,
body.mui-v2-home-template #pulse .today-item:hover .today-item-title {
    color: #0267B2 !important;
}

html.dark body.mui-v2-home-template #pulse .today-item[aria-pressed="true"] .today-item-title,
html.dark body.mui-v2-home-template #pulse .today-item:hover .today-item-title {
    color: #38bdf8 !important;
}

body.mui-v2-home-template #pulse .today-item-meta {
    margin-top: 0.35rem !important;
    font-size: 0.82rem !important;
    color: #4a546a !important;
}

html.dark body.mui-v2-home-template #pulse .today-item-meta {
    color: #8E8E93 !important;
}

body.mui-v2-home-template #pulse .countdown-box {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(1rem, 3vw, 2.5rem) !important;
    width: min(100%, 30rem) !important;
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    padding: 0 !important;
}

body.mui-v2-home-template #pulse .countdown-box.hidden {
    display: none !important;
}

body.mui-v2-home-template #pulse .countdown-cell {
    min-width: 0 !important;
    text-align: center !important;
    padding: 0 !important;
}

body.mui-v2-home-template #pulse .countdown-cell + .countdown-cell {
    border-left: 0 !important;
}

body.mui-v2-home-template #pulse .countdown-cell p:not([data-today-seconds]) {
    color: #1A1F26 !important;
}

html.dark body.mui-v2-home-template #pulse .countdown-cell p:not([data-today-seconds]) {
    color: #FFFFFF !important;
}

body.mui-v2-home-template #pulse .countdown-cell p.text-muted {
    color: #626F80 !important;
}

html.dark body.mui-v2-home-template #pulse .countdown-cell p.text-muted {
    color: #A1A1A6 !important;
}

body.mui-v2-home-template #pulse [data-today-seconds] {
    color: #0267B2 !important;
}

html.dark body.mui-v2-home-template #pulse [data-today-seconds] {
    color: #38bdf8 !important;
}

body.mui-v2-home-template #pulse .article-tag {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: #0267B2 !important;
    background: rgba(2,103,178,0.06) !important;
    border-radius: 4px !important;
    padding: 0.2rem 0.55rem !important;
}

html.dark body.mui-v2-home-template #pulse .article-tag {
    color: #38bdf8 !important;
    background: rgba(56,189,248,0.12) !important;
}

body.mui-v2-home-template #pulse .btn-accent {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: #0267B2 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    letter-spacing: -0.01em !important;
    border-radius: 999px !important;
    padding: 0.85rem 1.75rem !important;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease !important;
    height: auto !important;
}

html.dark body.mui-v2-home-template #pulse .btn-accent {
    background: #0284c7 !important;
    color: #ffffff !important;
}

html.dark body.mui-v2-home-template #pulse .btn-accent:hover {
    background: #38bdf8 !important;
    color: #0f172a !important;
}

body.mui-v2-home-template #pulse .btn-accent:active {
    transform: translateY(0) !important;
}

/* ==========================================
 * Light/Dark Mode Compatibilities
 * ========================================== */
body.mui-v2-home-template .text-ink {
    color: #1D1D1F !important;
}

html.dark body.mui-v2-home-template .text-ink {
    color: #FFFFFF !important;
}

body.mui-v2-home-template .text-muted {
    color: #6E6E73 !important;
}

html.dark body.mui-v2-home-template .text-muted {
    color: #A1A1A6 !important;
}

body.mui-v2-home-template .text-subtle {
    color: #86868B !important;
}

html.dark body.mui-v2-home-template .text-subtle {
    color: #8E8E93 !important;
}

body.mui-v2-home-template .bg-surface {
    background-color: #FAFAFC !important;
}

html.dark body.mui-v2-home-template .bg-surface {
    background-color: #121216 !important;
}

body.mui-v2-home-template .border-hairline {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

html.dark body.mui-v2-home-template .border-hairline {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.mui-v2-home-template .text-primary {
    color: #0267B2 !important;
}

html.dark body.mui-v2-home-template .text-primary {
    color: #2D99E4 !important;
}

body.mui-v2-home-template .text-secondary {
    color: #2D99E4 !important;
}

body.mui-v2-home-template .text-link {
    color: #0267B2 !important;
}

html.dark body.mui-v2-home-template .text-link {
    color: #2D99E4 !important;
}

/* Specificity override: Force white text inside premium accent/primary buttons */
body.mui-v2-home-template a.btn-accent,
body.mui-v2-home-template a.inline-flex.text-white,
body.mui-v2-home-template .btn-accent,
body.mui-v2-home-template a.bg-primary {
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

/* Hero chip dark mode styling overrides */
html.dark body.mui-v2-home-template .hero-chip {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #A1A1A6 !important;
}

html.dark body.mui-v2-home-template .hero-chip:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
}
