.jsp { display: grid; gap: var(--space-5); }

.jsp-hero {
    position: relative;
    isolation: isolate;
    clip-path: inset(calc(-1 * var(--header-height)) 0 0);
    display: flex;
    align-items: flex-end;
    min-height: var(--hero-height-full);
    padding-block: var(--space-8) 3rem;
    background: var(--surface-page);
}

.jsp-hero__photo {
    position: absolute;
    inset: calc(-1 * var(--header-height)) 0 1px;
    z-index: -3;
    overflow: hidden;
}

.jsp-hero__photo::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: max(100svh, 100%);
    background: var(--page-image) var(--photo-position) / cover no-repeat;
    filter: var(--photo-filter);
}

.jsp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--banner-fade);
}

.jsp-hero::after {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--header-height)) 0 auto;
    height: max(100svh, calc(100% + var(--header-height)));
    z-index: -1;
    background: var(--gradient-hero);
}

@media (max-width: 47.9375em) {
    .jsp-hero { padding-bottom: var(--space-6); }
}

.jsp-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: 0 0 var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--weight-regular);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    color: var(--accent-ink);
}

.jsp-hero__title {
    position: relative;
    margin: 0;
    font-size: var(--hero-title-size);
    font-weight: var(--hero-title-weight);
    line-height: var(--hero-title-leading);
    text-transform: uppercase;
    color: var(--ink-strong);
}

.jsp { padding-block: var(--section-space); }

.jsp__form { display: grid; gap: var(--space-5); margin: 0; scroll-margin-top: calc(var(--header-height) + var(--space-5)); }

.jsp__bar { width: min(100%, 54rem); }

.job-search__fit { gap: var(--space-2); white-space: nowrap; }

.job-search__fit .bi-stars { color: var(--accent-ink); }

.job-search__fit-off { font-size: 0.8em; opacity: 0.75; }

.job-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.job-types__tab { position: relative; display: inline-flex; }

.job-types__tab input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.job-types__tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0.5625rem 1.25rem;
    border: 1px solid var(--tab-edge);
    background: var(--tab-surface);
    color: var(--ink-control);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 2;
    white-space: nowrap;
    transition: border-color var(--duration-control) var(--ease-control),
                background-color var(--duration-control) var(--ease-control);
}

.job-types__tab:hover input:not(:checked) + span { border-color: transparent; }

.job-types__tab input:checked + span {
    border-color: var(--tab-edge-active);
    background: var(--tab-surface-active);
}

.job-types__tab input:focus-visible + span {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

@media (max-width: 47.9375em) {
    .job-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .job-types__tab,
    .job-types__tab span { width: 100%; }

    .job-types__tab span {
        padding-inline: 0.6rem;
        font-size: 0.875rem;
        text-align: center;
        white-space: normal;
    }
}

.jsp__sorted-fit { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--accent-ink); font-weight: var(--weight-semibold); }

.fit-note {
    display: flex;
    gap: var(--space-2);
    max-width: none;
    margin: 0 0 var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--accent-500) 8%, transparent);
    font-size: var(--text-xs);
    line-height: var(--leading-snug);
    color: var(--ink-default);
}

.fit-note .bi { flex: none; margin-top: 1px; color: var(--accent-ink); }

.fit-note--warn { background: var(--danger-50); }

.fit-note--warn .bi { color: var(--danger-500); }

.jsp__results.jobs { padding-block: 0; min-width: 0; scroll-margin-top: calc(var(--header-height) + var(--space-5)); }

.jsp__controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-inline-start: auto; }

.jsp__sort { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--ink-muted); }

.jsp__sort-select {
    padding: var(--space-2) 2.25rem var(--space-2) var(--space-3);
    border: 1px solid var(--border-field);
    border-radius: 0;
    background: var(--surface-field) var(--select-chevron) no-repeat right 0.75rem center / 0.875rem 0.525rem;
    color: var(--ink-strong);
    font: inherit;
    appearance: none;
}

.fraud-alert {
    width: min(43.75rem, calc(100% - 2 * var(--gutter)));
    max-height: calc(100dvh - 2rem);
    padding: 2.75rem 2.75rem 2.5rem;
    border: 1px solid var(--frame-edge);
    background: var(--surface-page);
    color: var(--ink-default);
    overflow-y: auto;
}

.fraud-alert[open] { animation: modal-in 600ms ease both; }

.fraud-alert::backdrop { background: var(--backdrop); }

body:has(.fraud-alert[open]) { overflow: hidden; }

.fraud-alert__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: 1.75rem;
}

.fraud-alert__head form { margin: 0; }

.fraud-alert__list { margin: 0; padding: 0; list-style: none; }

.fraud-alert__list li {
    padding: 1.25rem 1.125rem;
    border-bottom: 1px solid var(--frame-edge);
}

.fraud-alert__heading {
    margin: 0 0 0.5rem;
    font-size: 1.375rem;
    line-height: 1.3;
    color: var(--card-title);
}

.fraud-alert__text {
    margin: 0;
    max-width: none;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--ink-default);
}

.fraud-alert__note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    max-width: none;
    margin: 2.5rem 0 0;
    padding-inline: 1.125rem;
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--ink-default);
}

.fraud-alert__note strong { font-weight: var(--weight-regular); color: var(--accent-ink); }

@media (max-width: 47.9375em) {
    .fraud-alert { padding: 1.75rem 1.25rem; }

    .fraud-alert__head { margin-bottom: 1rem; }

    .fraud-alert__heading { font-size: 1.125rem; }

    .fraud-alert__list li { padding-inline: 0; }

    .fraud-alert__note { margin-top: 1.75rem; padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .fraud-alert[open] { animation: none; }
}
