/* Shared chrome for the explicitly opted-in About menu pages. */
body.content-page-theme.dark-mode { background: var(--theme-page); color: var(--theme-text); }

/* Decorative borders stay quiet; input outlines retain stronger contrast. */
.careers-page .career-job-div { border-color: var(--theme-border); }
.careers-page .career-job-div:is(:hover, :focus-within) { border-color: var(--theme-link); }
.careers-page #careersForm .form-control { border-color: var(--theme-input-border); }
.careers-page #careersForm .form-control::file-selector-button { border-color: var(--theme-input-border); }
.careers-page #careersForm .blue-bg-btn { border-color: var(--brand-blue); }

/* These selectors apply only to the four newly supported listing pages. */
body.content-page-theme.dark-mode main:is(.industries-finance-page, .ratings-reviews-page, .company-culture-page, .careers-page) {
    background: var(--theme-page);
    color: var(--theme-text);
}
body.content-page-theme.dark-mode main .inner-hero-section,
body.content-page-theme.dark-mode .company-culture-page .ia-community-section,
body.content-page-theme.dark-mode .careers-page .nyc-form-section { isolation: isolate; }

/* Keep negative-z-index decorations above the page background, behind text. */
body.content-page-theme.dark-mode main :is(.no-obligation-section, .big-heading-section, .important-heading-section) { isolation: isolate; }
body.dark-mode .industries-finance-page .no-obligation-section .col-md-12,
body.dark-mode .company-culture-page .important-heading-section .col-sm-10 { position: relative; }
body.content-page-theme.dark-mode main :is(.absolute-cirle-div, .absolute-cirle-div-2) circle { fill: var(--theme-decoration); fill-opacity: .55; }

body.content-page-theme.dark-mode :is(.inner-hero-section, .about-us-hero-section) .col-sm-12 { text-align: center; }
body.content-page-theme.dark-mode :is(.inner-hero-section, .about-us-hero-section) h1 {
    display: inline-block;
    max-width: 100%;
    padding: .75rem 1.5rem;
    margin-inline: auto;
    border-radius: 10px;
    background: var(--theme-hero-label);
    color: var(--white);
}

body.dark-mode :is(.industries-finance-page, .ratings-reviews-page, .company-culture-page, .careers-page) :is(.para, .para-2, .industry-para, .career-upper-para, .imperial-job-para, .review-msg-para, .address, .address span, .name-post span, .dark-text-clr) { color: var(--theme-text); }

body.dark-mode :is(.industries-finance-page, .ratings-reviews-page, .company-culture-page, .careers-page) :is(.big-heading, .blue-black-heading, .head, .head span, .dark-text, .black-text-clr, .imperial-job-label) { color: var(--theme-heading); }

/* The existing blue and orange utility classes use !important. */
body.dark-mode :is(.industries-finance-page, .ratings-reviews-page, .company-culture-page, .careers-page) .blue-clr { color: var(--theme-link) !important; }
body.dark-mode :is(.industries-finance-page, .ratings-reviews-page, .company-culture-page, .careers-page) :is(.orange-clr, .orange-span-text) { color: var(--theme-accent) !important; }

body.dark-mode .industries-finance-page .industry-list-section { background: var(--theme-surface-alt); }
body.dark-mode .industries-finance-page .funding-list-nav .nav-link { color: var(--theme-text); border-color: var(--theme-border); }
body.dark-mode .industries-finance-page .funding-list-nav .nav-link::after { color: var(--theme-link); }
body.dark-mode .industries-finance-page .funding-list-nav .nav-link:hover { color: var(--theme-link); border-color: var(--theme-link); }

body.dark-mode .ratings-reviews-page .imperial-rating-section { background: var(--theme-surface-alt); }
body.dark-mode .ratings-reviews-page .single-review-card,
body.dark-mode .careers-page .glassdoor-card,
body.dark-mode .careers-page .single-review-card { background: var(--theme-surface); border-color: var(--theme-border); }
body.dark-mode .ratings-reviews-page .single-review-card .grey-clr { color: var(--theme-muted); }
body.dark-mode .ratings-reviews-page .long-term-financing-main-section .para-with-bg .para-2 { background: var(--theme-surface-alt); color: var(--theme-heading); }
body.dark-mode .ratings-reviews-page .long-term-financing-main-section .name-post { color: var(--theme-link); }

/* Preserve the original colors and legibility of raster review logos. */
body.dark-mode .ratings-reviews-page .rating-card { background: var(--theme-surface); border-color: var(--theme-border); }
body.dark-mode .ratings-reviews-page .rating-card > img:first-child,
body.dark-mode .ratings-reviews-page .corporate-affiliatins-section .row > div > img,
body.dark-mode .ratings-reviews-page .recent-reviews-section h2 > img { background: var(--white); border-radius: 4px; padding: 8px; }

/* The paired logo/star images otherwise overflow their tablet columns. */
@media (max-width: 1199px) {
    .ratings-reviews-page .rating-card { flex-direction: column; gap: 1.25rem; justify-content: center; }
}

body.dark-mode .careers-page .imperial-job-view-btn { color: var(--theme-link); border-color: var(--theme-link); }
body.dark-mode .careers-page .imperial-job-view-btn:is(:hover, :focus-visible) { background: var(--theme-link); color: var(--theme-page); }
body.dark-mode .careers-page #careersForm .form-control { background: var(--theme-surface); color: var(--theme-text); border-color: var(--theme-input-border); color-scheme: dark; }
body.dark-mode .careers-page #careersForm .form-control::placeholder { color: var(--theme-muted); opacity: 1; }
body .careers-page #careersForm .form-control:focus { border-color: var(--theme-link); outline: 2px solid var(--theme-link); outline-offset: 2px; box-shadow: none; }
body.dark-mode .careers-page #careersForm .form-control::file-selector-button { background: var(--theme-surface-alt); color: var(--theme-text); }
body.dark-mode .careers-page #careersForm label.error { color: var(--theme-accent) !important; }

body.dark-mode :is(.industries-finance-page, .ratings-reviews-page, .company-culture-page, .careers-page) :is(a, button):focus-visible { outline: 3px solid var(--theme-link); outline-offset: 4px; }

body.content-page-theme.dark-mode .header-primary-actions .become-a-partner { background: transparent; color: var(--theme-link); border-color: var(--theme-link); }
body.content-page-theme.dark-mode .header-primary-actions .become-a-partner:hover { background: var(--theme-link); color: var(--theme-page); }

body.content-page-theme.dark-mode {
    --preferred-source-background: var(--theme-surface);
    --preferred-source-link: var(--theme-link);
}
body.content-page-theme.dark-mode .google-preferred-source { color: var(--theme-text); }

body.content-page-theme.dark-mode .cookie-pop-up { background: var(--theme-surface); color: var(--theme-text); }
body.content-page-theme.dark-mode .cookie-pop-up .cookie-para,
body.content-page-theme.dark-mode .cookie-pop-up h3 { color: var(--theme-text); }
body.content-page-theme.dark-mode .cookie-pop-up a,
body.content-page-theme.dark-mode .cookie-pop-up .cookie-reject-btn { color: var(--theme-link); border-color: var(--theme-link); }

body.content-page-theme.dark-mode .footer-layout-v2 .footer-links-list a:hover,
body.content-page-theme.dark-mode .footer-layout-v2 .footer-bottom-div p a,
body.content-page-theme.dark-mode .footer-layout-v2 .footer-social-media-link { color: var(--theme-link); }
