/* The platform-owned job and application form share the careers design tokens. */

/* The template hides the platform's own nav and footer when the design brings
   its own, but `shared.scss` sets `footer { display: flex }` -- which beats the
   browser's `[hidden] { display: none }` on specificity. So the grey band stayed
   behind the design's footer, and on a dark page it read as a light stripe
   across the bottom of the site. */
.careers-job [hidden] {
    display: none !important;
}
body.careers-job,
.careers-job > .container {
    background: var(--bg);
    color: var(--text);
}

html[data-theme] {
    background: var(--bg);
}

.careers-job .content-wrap {
    padding-bottom: 0;
}

/* `shared.scss` makes every footer an absolute, ten-rem-high light panel.
   The careers footer is part of the selected design, so restore normal flow
   before that design's own `.foot` rules are applied. This selector has the
   same specificity as `.foot`; the design stylesheet follows this bridge and
   can still choose its own background or spacing. */
[data-cx="site-footer"] {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    padding: 0;
    flex-flow: row;
    background: transparent;
}

.careers-job .info-blocks-container .info-block,
.careers-job .form-control,
.careers-job .nav-home {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
}

.careers-job .form-control::placeholder,
.careers-job .text-muted {
    color: var(--muted) !important;
}

.careers-job main a,
.careers-job footer a {
    color: var(--accent);
}

.careers-job [data-cx="site-header"] a {
    color: inherit;
}

.careers-job .title-container .divider,
.careers-job .info-blocks-container .location-block.multiple {
    border-color: var(--line);
}

.careers-job .job-map-section {
    margin: 0 0 1.5rem;
}

.careers-job .job-map {
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.careers-job .main-nav,
.careers-job footer:not([data-cx="site-footer"]) {
    background: var(--surface);
    color: var(--text);
}

.careers-job .btn-primary,
.careers-job .btn-outline-primary:hover,
.careers-job .btn-outline-primary:focus,
.careers-job .btn-outline-primary:active {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--on-accent) !important;
}

.careers-job .btn-outline-primary {
    background: transparent;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.careers-job .btn:focus,
.careers-job .form-control:focus {
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--accent) 30%, transparent) !important;
}

.careers-job [hidden] {
    display: none !important;
}
