/*
 * Your global styles here
 */
html,
body {
    height: 100%;
}

html {
    background: #f5f5f2;
}

body {
    margin: 0;
}

/* Careers redesign: the job components run edge to edge, so the page section adds no padding. */
.careers-full,
community_layout-section:has(c-careers-job-list),
community_layout-section:has(c-careers-job-detail) {
    --dxp-c-section-columns-padding: 0;
    --dxp-c-section-content-spacing-block-start: 0;
    --dxp-c-section-content-spacing-block-end: 0;
    --dxp-c-section-content-spacing-inline-start: 0;
    --dxp-c-section-content-spacing-inline-end: 0;
}

/* Apply steps inside the flow, which can't take component styles. */
flowruntime-flow, lightning-flow {
    --dxp-s-button-color: #e32b32;
    --dxp-s-button-color-1: #b91c24;
    /* Back and Upload Files are neutral buttons, whose text falls back to the theme's tertiary text colour (white).
     * Give them navy text on white with a navy edge so they read on the page (2026-11-18). */
    --dxp-s-tertiary-button-text-color: #1b2470;
    --dxp-s-tertiary-button-text-color-1: #11174d;
    --slds-c-button-neutral-color-background: #ffffff;
    --slds-c-button-neutral-color-background-hover: #eef0fa;
    --slds-c-button-color-border: #1b2470;
    --slds-c-button-neutral-color-border: #1b2470;
    --slds-c-button-neutral-color-border-hover: #11174d;
}

/* The careers header stays at the top while the page scrolls (2026-11-18). The theme layout's header is
 * light DOM, so it is styled here; the careersHeader component can't reach it. scroll-padding keeps
 * jump links (#why, filters) from landing under it. */
community_byo-scoped-header-and-footer > header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(17, 23, 77, 0.08);
}

html {
    scroll-padding-top: 5.5rem;
}
