/* A light palette for the section cards and the category landing pages. */
:root[data-display-mode="light"] :is(.section-hub-hero, #homeSectionsRow .grid > a) {
    --section-ink: #263555;
    --section-accent: #404873;
    --section-muted: #45536b;
    --section-tint: color-mix(in srgb, var(--section-accent) 8%, white);
    --section-line: color-mix(in srgb, var(--section-accent) 23%, white);
}
:root[data-display-mode="light"] :is(#k12Hero, #homeSectionsRow a[href="/k12"]) { --section-accent: #08644f; }
:root[data-display-mode="light"] :is(#pdfHero, #homeSectionsRow a[href="/pdf"]) { --section-accent: #9f2451; }
:root[data-display-mode="light"] :is(#videoHero, #homeSectionsRow a[href="/video"]) { --section-accent: #762991; }
:root[data-display-mode="light"] :is(#audioHero, #homeSectionsRow a[href="/audio"]) { --section-accent: #075985; }
:root[data-display-mode="light"] :is(#photoHero, #homeSectionsRow a[href="/photo"]) { --section-accent: #9b275c; }
:root[data-display-mode="light"] :is(#seoHero, #homeSectionsRow a[href="/seo"]) { --section-accent: #85450c; }
:root[data-display-mode="light"] :is(#languageHero, #homeSectionsRow a[href="/language"]) { --section-accent: #592fa2; }
:root[data-display-mode="light"] :is(#gameHero, #homeSectionsRow a[href="/games"]) { --section-accent: #3d6214; }
:root[data-display-mode="light"] #homeSectionsRow a[href="/text"] { --section-accent: #244aa8; }
:root[data-display-mode="light"] :is(#devHero, #homeSectionsRow a[href="/dev"]) { --section-accent: #0b5e61; }
:root[data-display-mode="light"] :is(#financeHero, #homeSectionsRow a[href="/finance"]) { --section-accent: #14633d; }
:root[data-display-mode="light"] :is(#careerHero, #homeSectionsRow a[href="/career"]) { --section-accent: #4036a0; }
:root[data-display-mode="light"] :is(#appleHero, #homeSectionsRow a[href="/apple"]) { --section-accent: #454554; }

:root[data-display-mode="light"] body.fable-theme #homeSectionsRow .grid > a > div:first-child {
    color: var(--section-accent);
    background: var(--section-tint);
    box-shadow: inset 0 0 0 1px var(--section-line);
}
:root[data-display-mode="light"] #homeSectionsRow .grid > a:focus-visible {
    outline: 2px solid var(--section-accent);
    outline-offset: 3px;
}

:root[data-display-mode="light"] .section-hub-hero:not(#k12Hero) {
    background: linear-gradient(145deg, #fff, var(--section-tint));
    border-color: var(--section-line);
}
:root[data-display-mode="light"] .section-hub-hero:not(#k12Hero) > .pointer-events-none { display: none; }
:root[data-display-mode="light"] .section-hub-hero:not(#k12Hero) h1,
:root[data-display-mode="light"] .section-hub-feature p:first-child { color: var(--section-ink); }
:root[data-display-mode="light"] .section-hub-hero:not(#k12Hero) h1 span {
    background: none;
    color: var(--section-accent);
}
:root[data-display-mode="light"] .section-hub-hero:not(#k12Hero) .section-hub-description,
:root[data-display-mode="light"] .section-hub-feature p + p { color: var(--section-muted); }
:root[data-display-mode="light"] .section-hub-hero:not(#k12Hero) .section-hub-kicker,
:root[data-display-mode="light"] .section-hub-feature > div:first-child {
    background: var(--section-tint);
    border-color: var(--section-line);
    color: var(--section-accent);
}
:root[data-display-mode="light"] .section-hub-feature,
:root[data-display-mode="light"] .section-hub-hero .section-hub-secondary {
    background: #fff;
    border-color: var(--section-line);
}
:root[data-display-mode="light"] .section-hub-hero .section-hub-secondary {
    color: var(--section-ink);
}
:root[data-display-mode="light"] .section-hub-hero .section-hub-secondary:hover { background: var(--section-tint); }
:root[data-display-mode="light"] .section-hub-primary {
    background: var(--section-accent);
    color: #fff;
    box-shadow: none;
    min-height: 44px;
}
:root[data-display-mode="light"] .section-hub-primary:hover {
    background: color-mix(in srgb, var(--section-accent) 80%, #101827);
}
:root[data-display-mode="light"] .section-hub-hero a:focus-visible {
    outline: 2px solid var(--section-accent);
    outline-offset: 3px;
}

body:has(.section-hub-hero) :is(#catalogSection, #k12CustomGrid) { scroll-margin-top: 82px; }
body:has(.section-hub-hero) #contactDevFab {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 16px 12px 24px;
    z-index: auto;
}
:root[data-display-mode="light"] body:has(.section-hub-hero):not(.k12-scope) #main-content .search-glow {
    box-shadow: 0 4px 14px rgb(29 52 107 / 9%);
}
:root[data-display-mode="light"] body:has(.section-hub-hero):not(.k12-scope) .group-header-label { color: #263555; }
:root[data-display-mode="light"] body:has(.section-hub-hero):not(.k12-scope) .group-header-count {
    color: #33457a;
    background: #e7edfc;
}
:root[data-display-mode="light"] body:has(.section-hub-hero):not(.k12-scope) .group-header-line { background: #c8d3e8; }
:root[data-display-mode="light"] body:has(.section-hub-hero):not(.k12-scope) #toolCardsGrid > .tool-card:not(.game-illustrated-card) {
    background: white;
    border: 1px solid #c8d3e8;
}
:root[data-display-mode="light"] body:has(.section-hub-hero):not(.k12-scope) #toolCardsGrid > .tool-card:not(.game-illustrated-card):hover {
    background: #f3f6fe;
    border-color: #8b9fc8;
}
:root[data-display-mode="light"] body:has(.section-hub-hero):not(.k12-scope) #noToolsFound {
    background: white;
    border: 1px solid #c8d3e8;
}
:root[data-display-mode="light"] body:has(.section-hub-hero) #toolCardsGrid > .tool-card.col-span-full[data-suite="1"] > .flex-1 {
    display: block !important;
}
:root[data-display-mode="light"] body:has(.section-hub-hero) #toolCardsGrid > .tool-card.col-span-full[data-suite="1"] > span.flex-shrink-0 {
    color: #394773;
    background: #eef2ff;
    border-color: #c6d2ed;
}
@media (max-width: 639px) {
    :root[data-display-mode="light"] body:has(.section-hub-hero) #toolCardsGrid > .tool-card.col-span-full[data-suite="1"] > span.flex-shrink-0 {
        display: none !important;
    }
    :root[data-display-mode="light"] .section-hub-feature { padding: 12px; }
}

body.k12-scope[data-k12-mode="light"] #k12Hero .k12-hero-accent {
    color: color-mix(in srgb, var(--k12-primary) 54%, #101827) !important;
    background: none !important;
}
body.k12-scope[data-k12-mode="light"] #k12Hero .section-hub-primary {
    background: #08644f !important;
    color: white !important;
}
body.k12-scope[data-k12-mode="light"] #k12Hero .section-hub-primary:hover { background: #064e40 !important; }
body.k12-scope[data-k12-mode="light"] #k12Hero .section-hub-kicker {
    color: #08644f !important;
    background: #e8f6ef !important;
    border-color: #b6ddce !important;
}
body.k12-scope[data-k12-mode="light"] #k12Hero .k12-hero-stat > div:first-child { color: #08644f !important; }
body.k12-scope[data-k12-mode="light"] #k12Hero :is(.section-hub-description, .k12-hero-stat p + p),
body.k12-scope[data-k12-mode="light"] #k12CustomGrid .k12-grid-card .text-white\/40 {
    color: color-mix(in srgb, var(--k12-text-muted, #45536b) 75%, var(--k12-text, #172239)) !important;
}
