/* MASA jobs portal. Every rule belongs to this archive; the theme owns the site chrome.
 * Saved Jobs page Customizer values use !important and intentionally remain in charge.
 */
.masa-sa-jobs-shell.msjp {
    --masa-sa-navy: #1b446c;
    --masa-sa-navy-dark: #122f4d;
    --masa-sa-gold: #e8822d;
    --masa-sa-ink: #21374b;
    --masa-sa-muted: #526575;
    --msjp-css-ready: 1;
    --navy: var(--masa-sa-navy, #1b446c);
    --deep: var(--masa-sa-navy-dark, #122f4d);
    --gold: var(--masa-sa-gold, #e8822d);
    --ink: var(--masa-sa-ink, #21374b);
    --muted: var(--masa-sa-muted, #526575);
    --line: var(--masa-sa-line, #dce5ee);
    --soft: #f6f7f8;
    --white: #fff;
    --msjp-ease: cubic-bezier(.2, .7, .2, 1);
    --msjp-sticky-top: 24px;
    width: 100%;
    max-width: 2000px;
    padding: 0 0 36px;
    margin: 0 auto;
    background: var(--soft);
    color: var(--ink);
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
    overflow-wrap: break-word;
}
.masa-sa-jobs-shell.msjp *,
.masa-sa-jobs-shell.msjp *::before,
.masa-sa-jobs-shell.msjp *::after { box-sizing: border-box; }
/* The retained legacy stylesheet must not reset MASA's portal palette inside the board. */
.masa-sa-jobs-shell.msjp .masa-sa-jobs-board {
    --masa-sa-navy: inherit; --masa-sa-navy-dark: inherit; --masa-sa-gold: inherit;
    --masa-sa-ink: inherit; --masa-sa-muted: inherit;
}
#top #main:has(> .masa-sa-jobs-shell.msjp) { background: #f6f7f8; }
/* Enfold's footer-page sections float. Contain them in the footer itself when
   the sticky jobs board changes the outer wrapper from overflow:hidden to clip. */
#top:has(#header.msjp-hero-header) #footer-page { display: flow-root; }
.masa-sa-jobs-shell.msjp [hidden] { display: none !important; }
.masa-sa-jobs-shell.msjp :is(h1, h2, h3, p, form, fieldset) { text-transform: none; }
/* Match the upgraded MASA Featured Jobs typography; the theme already loads Open Sans. */
.masa-sa-jobs-shell.msjp :is(h1, h2, h3, h4, h5, h6, .job-open) { font-family: "Open Sans", Helvetica, Arial, sans-serif; }
.masa-sa-jobs-shell.msjp :is(button, input, select) { font: inherit; letter-spacing: normal; text-transform: none; }
.masa-sa-jobs-shell.msjp :is(button, a, input, select) { -webkit-tap-highlight-color: transparent; }
.masa-sa-jobs-shell.msjp :is(button, a, select) { touch-action: manipulation; }
.masa-sa-jobs-shell.msjp button { cursor: pointer; color: inherit; }
.masa-sa-jobs-shell.msjp a { text-decoration: none; }
.masa-sa-jobs-shell.msjp button:disabled { cursor: wait; }
.masa-sa-jobs-shell.msjp :is(button, a, input, select, [tabindex]):focus-visible,
#top .masa-sa-jobs-shell.msjp :is(button, a, input, select, [tabindex]):focus-visible {
    outline: 3px solid #c7600c;
    outline-offset: 4px;
}
.masa-sa-jobs-shell.msjp svg {
    width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65;
    stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle;
}
.masa-sa-jobs-shell.msjp .wrap { width: calc(100% - 80px); max-width: 1680px; margin-inline: auto; }
.masa-sa-jobs-shell.msjp .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.masa-sa-jobs-shell.msjp .svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.masa-sa-jobs-shell.msjp .msjp-preview-banner {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
    padding: 12px max(18px, calc((100% - 1680px) / 2)); margin: 0;
    border-bottom: 1px solid #ccdce7; background: #eef4f8; color: #24445d;
    font-size: 12px; line-height: 1.6;
}
.masa-sa-jobs-shell.msjp .msjp-preview-banner p { margin: 0; }
.masa-sa-jobs-shell.msjp .msjp-preview-banner strong { font-weight: 700; }
.masa-sa-jobs-shell.msjp .msjp-preview-banner a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* The hero and search retain the familiar MASA palette without replacing the theme header. */
.masa-sa-jobs-shell.msjp .hero {
    display: block; position: relative; padding: 0; margin: 0 0 56px; border: 0;
    border-radius: 0; background: var(--navy); color: #fff;
}
.masa-sa-jobs-shell.msjp .hero-inner {
    display: flex; justify-content: space-between; align-items: center;
    min-height: 215px; padding-block: 34px 47px; gap: 30px;
}
.masa-sa-jobs-shell.msjp .hero-copy { position: relative; min-width: 0; }
.masa-sa-jobs-shell.msjp .hero h1 {
    font-size: clamp(32px, 4vw, 42px); font-weight: 600; line-height: 1.08;
    letter-spacing: normal; margin: 0 0 16px; color: #fff;
}
.masa-sa-jobs-shell.msjp .hero em { font-style: normal; color: #f5b077; }
.masa-sa-jobs-shell.msjp .hero p {
    color: #d3e0e8 !important; font-size: 16px; line-height: 1.6; margin: 0; max-width: none;
}
.masa-sa-jobs-shell.msjp .hero-note { display: flex; align-items: center; gap: 22px; padding-right: 30px; flex-shrink: 0; }
.masa-sa-jobs-shell.msjp .hero-note p { font-size: 14px; }
.masa-sa-jobs-shell.msjp .hero-note strong { color: #fff; font-weight: 600; }
.masa-sa-jobs-shell.msjp .orbit {
    font-size: 45px; width: 77px; height: 77px; display: grid; place-items: center;
    border: 1px solid #628092; border-radius: 50%; color: #f5b077; transform: rotate(-10deg);
}
.masa-sa-jobs-shell.msjp .orbit svg { width: 37px; height: 37px; transform: rotate(-35deg); }
.masa-sa-jobs-shell.msjp .search-bar,
#top .masa-sa-jobs-shell.msjp .search-bar {
    display: flex; flex-wrap: nowrap; align-items: stretch; position: relative; top: 36px; min-height: 88px;
    margin-top: -36px; margin-bottom: 0; padding: 12px; gap: 12px; background: #fff;
    color: var(--ink); border: 1px solid #e0e7ec; border-radius: 12px;
    box-shadow: 0 8px 28px #122f4d14; transition: box-shadow .2s var(--msjp-ease);
}
.masa-sa-jobs-shell.msjp .search-bar:focus-within { box-shadow: 0 9px 30px #122f4d25; }
.masa-sa-jobs-shell.msjp :is(.search-field, .location-field) {
    display: flex; align-items: center; gap: 16px; min-width: 0; padding: 3px 20px;
    margin: 0; flex: 1; font-weight: 400;
}
.masa-sa-jobs-shell.msjp .search-field { border-right: 1px solid var(--line); flex: 1.5; }
.masa-sa-jobs-shell.msjp :is(.search-field, .location-field) > svg { color: #728295; }
.masa-sa-jobs-shell.msjp :is(.search-field, .location-field) > span { display: block; width: 100%; min-width: 0; font-weight: 400; }
.masa-sa-jobs-shell.msjp .field-caption,
#top .masa-sa-jobs-shell.msjp .field-caption {
    display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 3px;
}
.masa-sa-jobs-shell.msjp input { min-width: 0; }
.masa-sa-jobs-shell.msjp .search-bar :is(input, select),
#top .masa-sa-jobs-shell.msjp .search-bar :is(input, select) {
    display: block; width: 100%; max-width: none; min-height: 32px; height: 32px;
    margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
    background: #fff; color: var(--ink); font-size: 14px; line-height: 1.4; outline-offset: 2px;
    font-family: inherit;
}
.masa-sa-jobs-shell.msjp select,
#top .masa-sa-jobs-shell.msjp select { -webkit-appearance: auto; appearance: auto; font-family: inherit; }
.masa-sa-jobs-shell.msjp .search-bar input::placeholder { color: #687988; opacity: 1; }
.masa-sa-jobs-shell.msjp .button {
    display: inline-flex; align-items: center; justify-content: center; gap: 13px;
    min-height: 48px; margin: 0; padding: 13px 24px; border: 1px solid transparent;
    border-radius: 30px; font-size: 15px; line-height: 1.4; font-weight: 700;
    position: relative; isolation: isolate; overflow: hidden;
    transition: transform .2s var(--msjp-ease), box-shadow .2s var(--msjp-ease), background-color .2s ease;
}
.masa-sa-jobs-shell.msjp .button::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 25%, #ffffff22 48%, transparent 70%);
    transform: translateX(-125%); transition: transform .6s var(--msjp-ease);
}
.masa-sa-jobs-shell.msjp .button svg { transition: transform .2s var(--msjp-ease); }
.masa-sa-jobs-shell.msjp .gold { background-color: #e77d18; color: #fff !important; border-color: #e77d18; }
.masa-sa-jobs-shell.msjp .navy { background-color: var(--navy); color: #fff; border-color: var(--navy); }
.masa-sa-jobs-shell.msjp .search-button { min-width: 165px; border-radius: 8px; align-self: stretch; white-space: nowrap; }
.masa-sa-jobs-shell.msjp .button:active { transform: translateY(1px); box-shadow: none; }

/* Collections, filters and live results. */
.masa-sa-jobs-shell.msjp .board-top {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    border-bottom: 1px solid var(--line); margin-bottom: 28px; min-height: 68px;
}
.masa-sa-jobs-shell.msjp .view-tabs { display: flex; align-items: stretch; gap: 26px; align-self: stretch; }
.masa-sa-jobs-shell.msjp .view-tabs :is(button, a) {
    display: inline-flex; gap: 9px; align-items: center; min-height: 48px; border: 0;
    border-bottom: 3px solid transparent; border-radius: 0; background: none; padding: 6px 0 14px;
    margin: 0; color: var(--muted); font-size: 14px; line-height: 1.3; font-weight: 600;
    transition: color .2s ease, border-color .2s ease;
}
.masa-sa-jobs-shell.msjp .view-tabs :is(.active, [aria-pressed="true"]) { color: var(--navy); border-bottom-color: var(--gold); }
.masa-sa-jobs-shell.msjp :is(.view-tabs span, .saved-count) {
    display: inline-flex; align-items: center; justify-content: center; min-width: 23px;
    height: 22px; padding: 0 6px; border-radius: 15px; background: #e9eef2;
    font-size: 11px; line-height: 1; color: var(--navy);
}
.masa-sa-jobs-shell.msjp :is(.snapshot-label, .board-note) { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.masa-sa-jobs-shell.msjp .workspace {
    display: grid; grid-template-columns: 195px minmax(280px, .92fr) minmax(350px, 1.12fr);
    gap: 26px; align-items: start;
}
.masa-sa-jobs-shell.msjp .filters {
    position: static; min-width: 0; top: auto; padding: 0; background: transparent; border: 0; border-radius: 0;
}
.masa-sa-jobs-shell.msjp .filter-heading h2 { font-size: 19px; line-height: 1.25; color: var(--navy); font-weight: 600; margin: 4px 0 7px; }
.masa-sa-jobs-shell.msjp .text-button {
    display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; font-weight: 400;
    color: #705528; border: 0; border-radius: 0; padding: 7px 0; margin: 0; background: none;
    text-decoration: underline; text-underline-offset: 3px; line-height: 1.5;
}
.masa-sa-jobs-shell.msjp fieldset { border: 0; min-width: 0; padding: 0; margin: 20px 0 24px; }
.masa-sa-jobs-shell.msjp legend,
#top .masa-sa-jobs-shell.msjp legend { display: block; font-size: 13px; line-height: 1.5; font-weight: 600; margin: 0 0 11px; padding: 0; color: var(--navy); }
.masa-sa-jobs-shell.msjp .check-options { display: grid; gap: 2px; }
.masa-sa-jobs-shell.msjp .check-options label { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 13px; font-weight: 400; cursor: pointer; min-height: 44px; }
.masa-sa-jobs-shell.msjp .check-options input {
    appearance: none; width: 18px; height: 18px; min-height: 18px; border: 1px solid #91a2af;
    border-radius: 4px; padding: 0; background: #fff; margin: 0; display: grid; place-content: center; flex-shrink: 0;
}
.masa-sa-jobs-shell.msjp .check-options input:checked { background: var(--navy); border-color: var(--navy); }
.masa-sa-jobs-shell.msjp .check-options input:checked::before { content: "✓"; color: white; font-size: 12px; line-height: 1; }
.masa-sa-jobs-shell.msjp .check-options label > span:last-child { margin-left: auto; font-size: 11px; color: var(--muted); }
.masa-sa-jobs-shell.msjp .filters select,
#top .masa-sa-jobs-shell.msjp .filters select {
    border: 1px solid #c8d5df; background: #fff; border-radius: 7px; width: 100%; max-width: none;
    min-height: 46px; margin: 0; padding: 11px 24px 11px 10px; font-size: 12px; line-height: 1.5; color: var(--ink);
}
.masa-sa-jobs-shell.msjp .filters select:focus-visible { border-color: var(--navy); }
.masa-sa-jobs-shell.msjp .filter-foot { border-top: 1px solid var(--line); padding-top: 22px; display: flex; gap: 10px; color: var(--navy); margin-top: 27px; }
.masa-sa-jobs-shell.msjp .filter-foot svg { width: 18px; margin-top: 3px; }
.masa-sa-jobs-shell.msjp .filter-foot p { font-size: 12px; margin: 0; line-height: 1.8; }
.masa-sa-jobs-shell.msjp .filter-foot strong { font-weight: 600; }
.masa-sa-jobs-shell.msjp .filter-foot p > span { display: block; color: var(--muted); font-size: 11px; margin-top: 8px; line-height: 1.6; }
.masa-sa-jobs-shell.msjp .results { min-width: 0; }
.masa-sa-jobs-shell.msjp .results-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 48px; margin: 0 0 19px; padding: 0; background: none; border: 0; border-radius: 0;
}
.masa-sa-jobs-shell.msjp .results-toolbar h2,
.masa-sa-jobs-shell.msjp .results-toolbar :is(h2, strong) { font-family: "Open Sans", Helvetica, Arial, sans-serif; font-size: 18px; line-height: 1.25; margin: 0 0 4px; color: var(--navy); font-weight: 700; }
.masa-sa-jobs-shell.msjp .results-toolbar p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.6; }
.masa-sa-jobs-shell.msjp .sort-label { margin: 0; flex-shrink: 0; }
.masa-sa-jobs-shell.msjp .sort-label select,
#top .masa-sa-jobs-shell.msjp .sort-label select {
    border: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 400;
    width: auto; max-width: 125px; min-height: 44px; margin: 0; padding: 8px 0;
}
.masa-sa-jobs-shell.msjp .active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.masa-sa-jobs-shell.msjp .active-filters:empty { display: none; }
.masa-sa-jobs-shell.msjp .filter-chip {
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cbd8e2; background: #fff;
    padding: 7px 11px; border-radius: 24px; font-size: 12px; font-weight: 400; min-height: 44px;
    max-width: 100%; margin: 0; color: var(--navy); line-height: 1.4; text-align: left; overflow-wrap: anywhere;
}
.masa-sa-jobs-shell.msjp .filter-chip span { font-size: 17px; line-height: 1; }
.masa-sa-jobs-shell.msjp .job-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.masa-sa-jobs-shell.msjp .job-card {
    display: block; min-width: 0; background: #fff; border-radius: 12px; padding: 21px;
    box-shadow: 0 2px 12px #122f4d06; position: relative; border: 1.5px solid #e0e6eb; overflow: visible;
    transition: box-shadow .22s var(--msjp-ease), border-color .22s ease, transform .22s var(--msjp-ease);
}
.masa-sa-jobs-shell.msjp .job-card.selected { border-color: #315c7a; box-shadow: 0 3px 14px #1b446c0e; }
.masa-sa-jobs-shell.msjp .job-card.selected::before {
    /* Reset the legacy card's hidden, full-height marker for the selected role. */
    content: ""; display: block; position: absolute; left: -1.5px; top: 24px; bottom: 24px; width: 3px; height: auto; border-radius: 2px; background: var(--gold);
}
.masa-sa-jobs-shell.msjp .card-meta { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 9px; min-height: 36px; }
.masa-sa-jobs-shell.msjp .type-pill {
    display: inline-flex; font-size: 12px; line-height: 1.25; font-weight: 800; color: #405b70;
    background: #edf3f7; border-radius: 5px; padding: 5px 8px;
}
.masa-sa-jobs-shell.msjp .type-pill.temporary { background: #f7efdf; color: #785726; }
.masa-sa-jobs-shell.msjp :is(.save-button, .save-detail) {
    display: inline-grid; place-items: center; flex-shrink: 0; position: relative; z-index: 2;
    border: 0; background: transparent; color: #60788a; width: 44px; height: 44px; min-height: 44px;
    padding: 11px; margin: -5px -8px -5px 0; border-radius: 50%; line-height: 1;
    transition: background-color .18s ease, color .18s ease, transform .18s var(--msjp-ease);
}
.masa-sa-jobs-shell.msjp :is(.save-button, .save-detail):hover { background: #edf2f6; }
.masa-sa-jobs-shell.msjp :is(.save-button, .save-detail):active { transform: scale(.91); }
.masa-sa-jobs-shell.msjp :is(.save-button, .save-detail)[aria-pressed="true"],
.masa-sa-jobs-shell.msjp .save-button.is-saved { color: var(--navy); background: #fbf4e6; }
.masa-sa-jobs-shell.msjp :is(.save-button, .save-detail)[aria-pressed="true"] svg,
.masa-sa-jobs-shell.msjp .save-button.is-saved svg { fill: #e8822d; }
.masa-sa-jobs-shell.msjp .save-button.is-saved svg { animation: msjp-bookmark .3s var(--msjp-ease); }
.masa-sa-jobs-shell.msjp .job-title { margin: 0 0 10px; line-height: 1.3; font-size: 20px; }
.masa-sa-jobs-shell.msjp .job-open {
    display: inline; border: 0; border-radius: 0; background: transparent; text-align: left;
    margin: 0; padding: 0; min-height: 0; font-size: 20px; line-height: 1.3;
    letter-spacing: normal; font-weight: 600; color: var(--ink); overflow-wrap: anywhere;
}
.masa-sa-jobs-shell.msjp .job-open::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.masa-sa-jobs-shell.msjp .job-title a { color: var(--ink) !important; }
.masa-sa-jobs-shell.msjp .job-open:focus-visible,
#top .masa-sa-jobs-shell.msjp .job-open:focus-visible { outline: none; }
.masa-sa-jobs-shell.msjp .job-open:focus-visible::after { outline: 3px solid #c7600c; outline-offset: 4px; }
.masa-sa-jobs-shell.msjp .job-location { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin: 0 0 11px; line-height: 1.5; }
.masa-sa-jobs-shell.msjp .job-location svg { width: 14px; height: 16px; }
.masa-sa-jobs-shell.msjp .job-summary {
    font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0 0 17px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.masa-sa-jobs-shell.msjp .card-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.masa-sa-jobs-shell.msjp .card-cta { display: flex; gap: 8px; align-items: center; color: var(--navy); font-size: 14px; font-weight: 700; white-space: nowrap; }
.masa-sa-jobs-shell.msjp .card-cta.masa-sa-job-button {
    position: relative; z-index: 2; min-height: 44px; padding: 6px 0; margin: -8px 0;
    background: transparent; border: 0; border-radius: 0; color: var(--navy) !important;
}
.masa-sa-jobs-shell.msjp .card-bottom .masa-sa-job-card__number {
    color: var(--muted) !important; font-size: 12px; font-weight: 400; line-height: 1.6; text-transform: none;
}
.masa-sa-jobs-shell.msjp .job-category { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0 0 12px; }
.masa-sa-jobs-shell.msjp .card-cta svg { width: 16px; transition: transform .2s var(--msjp-ease); }
.masa-sa-jobs-shell.msjp .list-end { text-align: center; font-size: 12px; color: var(--muted); margin: 22px 0; }
.masa-sa-jobs-shell.msjp :is(.msjp-pagination, .masa-sa-jobs-pagination) { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: center; margin: 23px 0; padding: 0; }
.masa-sa-jobs-shell.msjp :is(.msjp-pagination, .masa-sa-jobs-pagination) :is(a, button, .current) {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
    padding: 10px 15px; border: 1px solid #cbd7df; border-radius: 7px; background: #fff;
    color: var(--navy); line-height: 1.4; font-size: 13px;
}
.masa-sa-jobs-shell.msjp :is(.msjp-pagination, .masa-sa-jobs-pagination) .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.masa-sa-jobs-shell.msjp .msjp-pagination a { color: var(--navy) !important; }
.masa-sa-jobs-shell.msjp .page-numbers { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; max-width: 100%; }
.masa-sa-jobs-shell.msjp .msjp-pagination .page-gap { min-width: 13px; padding: 0; font-weight: 400; }
.masa-sa-jobs-shell.msjp .msjp-pagination .page-direction { font-size: 12px; font-weight: 600; padding-inline: 12px; }
.masa-sa-jobs-shell.msjp .msjp-pagination > span:empty { display: none; }
.masa-sa-jobs-shell.msjp .load-more { display: flex; margin: 24px auto; }

/* The description scrolls independently while the application action stays visible. */
.masa-sa-jobs-shell.msjp .detail {
    background: #fff; border: 1px solid #e0e6eb;
    border-radius: 12px; box-shadow: 0 3px 18px #122f4d08; position: sticky;
    top: var(--msjp-sticky-top); overflow: hidden; min-width: 0;
    max-height: var(--panel-height, calc(100vh - 48px));
}
.masa-sa-jobs-shell.msjp .detail-inner {
    display: flex; flex-direction: column; min-height: 0;
    max-height: calc(var(--panel-height, calc(100vh - 48px)) - 4px);
}
.masa-sa-jobs-shell.msjp .detail-header { padding: 24px 27px 21px; border-bottom: 1px solid #e6edf1; flex-shrink: 0; }
.masa-sa-jobs-shell.msjp .detail-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px 12px; margin-bottom: 15px; }
.masa-sa-jobs-shell.msjp .detail-ref { font-size: 12px; color: var(--muted); }
.masa-sa-jobs-shell.msjp .detail h2 { font-size: var(--enfold-font-size-theme-h2, 28px); line-height: 1.25; letter-spacing: -.025em; color: var(--navy); font-weight: 400; margin: 0 0 15px; overflow-wrap: anywhere; }
.masa-sa-jobs-shell.msjp .detail-location { font-size: 13px; line-height: 1.5; color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 0; }
.masa-sa-jobs-shell.msjp .detail-location svg { width: 15px; height: 17px; }
.masa-sa-jobs-shell.msjp .detail-category { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 9px 0 0; }
.masa-sa-jobs-shell.msjp .detail-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; }
.masa-sa-jobs-shell.msjp .share-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
    border: 0; border-radius: 6px; background: transparent; color: var(--navy); padding: 8px 2px;
    margin: 0; font-size: 12px; font-weight: 600; line-height: 1.4;
}
.masa-sa-jobs-shell.msjp .share-button svg { width: 16px; height: 16px; }
.masa-sa-jobs-shell.msjp .share-button:hover { background: #f0f4f7; }
.masa-sa-jobs-shell.msjp .detail-actions .share-button { grid-column: 1/-1; justify-self: center; }
.masa-sa-jobs-shell.msjp .detail-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 25px; padding-top: 13px; border-top: 1px solid var(--line); }
.masa-sa-jobs-shell.msjp .detail-links.detail-tools { justify-content: flex-start; gap: 4px 14px; margin: 10px 0 -7px; padding: 0; border: 0; }
.masa-sa-jobs-shell.msjp .detail-tools .share-button { padding-inline: 9px; border: 1px solid #d3dee6; background: #f7f9fa; }
.masa-sa-jobs-shell.msjp .detail-tools .share-button:hover { background: #eaf0f5; }
.masa-sa-jobs-shell.msjp .full-role-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; line-height: 1.6; }
.masa-sa-jobs-shell.msjp .detail-tools .full-role-link { gap: 6px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.masa-sa-jobs-shell.msjp .detail-tools .full-role-link svg { width: 16px; height: 16px; }
.masa-sa-jobs-shell.msjp .copy-fallback { margin-top: 12px; padding: 13px; border-radius: 7px; background: #f0f4f7; }
.masa-sa-jobs-shell.msjp .copy-fallback label { font-size: 12px; font-weight: 600; color: var(--navy); }
.masa-sa-jobs-shell.msjp .copy-fallback input,
#top .masa-sa-jobs-shell.msjp .copy-fallback input { display: block; width: 100%; min-height: 44px; padding: 9px; margin: 8px 0 0; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid #bfced9; border-radius: 5px; }
.masa-sa-jobs-shell.msjp .detail-scroll {
    overflow-y: auto; overflow-x: hidden; padding: 24px 27px 27px; overscroll-behavior: contain;
    min-height: 80px; scrollbar-width: thin; scrollbar-color: #b8c8d4 transparent;
}
.masa-sa-jobs-shell.msjp .detail-scroll :is(h2, h3, h4) { font-size: 18px; line-height: 1.5; color: var(--navy); margin: 23px 0 13px; font-weight: 600; letter-spacing: 0; }
.masa-sa-jobs-shell.msjp .detail-scroll > :first-child { margin-top: 0; }
.masa-sa-jobs-shell.msjp .detail-scroll :is(p, li) { font-size: 15px; line-height: 1.6; color: #536675; margin: 0 0 15px; overflow-wrap: anywhere; }
.masa-sa-jobs-shell.msjp .detail-scroll :is(ul, ol) { padding-left: 21px; margin: 0 0 20px; }
.masa-sa-jobs-shell.msjp .detail-scroll ul { list-style: disc outside; }
.masa-sa-jobs-shell.msjp .detail-scroll ol { list-style: decimal outside; }
.masa-sa-jobs-shell.msjp .detail-scroll li { margin-bottom: 8px; }
.masa-sa-jobs-shell.msjp .detail-scroll strong { color: #344d62; }
.masa-sa-jobs-shell.msjp .detail-scroll a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.masa-sa-jobs-shell.msjp .detail-scroll :is(img, video, iframe) { max-width: 100%; height: auto; }
.masa-sa-jobs-shell.msjp .detail-scroll table { display: block; max-width: 100%; overflow-x: auto; }
.masa-sa-jobs-shell.msjp .detail-scroll .source-note { padding: 14px; background: #f5f8fb; border-radius: 7px; font-size: 12px; line-height: 1.7; margin: 20px 0 0; color: var(--muted); }
.masa-sa-jobs-shell.msjp .detail-actions {
    border-top: 1px solid #e6edf1; padding: 17px 27px; background: #fff; display: grid;
    grid-template-columns: minmax(0, 1fr) auto; gap: 10px; flex-shrink: 0;
}
.masa-sa-jobs-shell.msjp .detail-actions .save-detail { margin: 0; width: 48px; height: 48px; border: 1px solid #c8d5e2; }
.masa-sa-jobs-shell.msjp .detail-actions > p { grid-column: 1/-1; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; margin: 0; }
.masa-sa-jobs-shell.msjp .detail-content { min-height: 0; }
.masa-sa-jobs-shell.msjp .detail.is-changing .detail-inner { animation: msjp-detail .24s var(--msjp-ease); }
.masa-sa-jobs-shell.msjp .back-to-results { display: none; }
.masa-sa-jobs-shell.msjp .empty-state { grid-column: 1/-1; background: #fff; border: 1px solid var(--line); text-align: center; padding: 45px 24px; border-radius: 12px; }
.masa-sa-jobs-shell.msjp .empty-state > svg { width: 32px; height: 32px; color: #6e8393; }
.masa-sa-jobs-shell.msjp .empty-state h3 { color: var(--navy); font-size: 21px; line-height: 1.4; margin: 17px 0 10px; }
.masa-sa-jobs-shell.msjp .empty-state p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 22px; }
.masa-sa-jobs-shell.msjp .detail-placeholder { padding: 65px 28px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.8; }
.masa-sa-jobs-shell.msjp .detail-placeholder svg { color: var(--gold); width: 34px; height: 34px; }
.masa-sa-jobs-shell.msjp .detail-placeholder h2 { font-size: 22px; margin: 20px 0 13px; }
.masa-sa-jobs-shell.msjp .detail-placeholder p { margin: 0; }
.masa-sa-jobs-shell.msjp .help-strip {
    display: flex; justify-content: space-between; align-items: center; margin: 48px 0 12px;
    padding: 29px 34px; border: 1px solid #d9e1e6; border-radius: 12px; background: #eff3f6; gap: 25px;
}
.masa-sa-jobs-shell.msjp .help-strip > div { display: flex; align-items: center; gap: 22px; }
.masa-sa-jobs-shell.msjp .help-icon { font-size: 27px; color: #986e26; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; border-radius: 50%; flex-shrink: 0; }
.masa-sa-jobs-shell.msjp .help-icon svg { width: 26px; height: 26px; transform: rotate(-45deg); }
.masa-sa-jobs-shell.msjp .help-strip h2 { font-size: 20px; line-height: 1.4; color: var(--navy); letter-spacing: -.3px; font-weight: 600; margin: 0 0 6px; }
.masa-sa-jobs-shell.msjp .help-strip p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0; }
.masa-sa-jobs-shell.msjp .help-strip a { font-size: 13px; color: var(--navy); font-weight: 650; display: inline-flex; align-items: center; gap: 23px; white-space: nowrap; min-height: 44px; }
.masa-sa-jobs-shell.msjp .help-strip .worker-support { white-space: normal; gap: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.masa-sa-jobs-shell.msjp .help-strip .worker-support svg { width: 16px; height: 16px; }
.masa-sa-jobs-shell.msjp :is(.filter-close, .mobile-results, .mobile-filter-toggle) { display: none; }
.masa-sa-jobs-shell.msjp .icon-button { place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 26px; line-height: 1; font-weight: 300; border: 0; background: #f2f5f7; border-radius: 50%; }
.masa-sa-jobs-shell.msjp .toast {
    position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 8px); background: var(--navy);
    color: #fff; font-size: 13px; line-height: 1.6; box-shadow: 0 8px 30px #122f4d33; padding: 13px 23px;
    border: 1px solid #ffffff24; border-radius: 30px; z-index: 100030; pointer-events: none; opacity: 0;
    transition: opacity .2s ease, transform .25s var(--msjp-ease); width: max-content; max-width: calc(100vw - 32px); text-align: center;
}
.masa-sa-jobs-shell.msjp .toast.show { opacity: 1; transform: translate(-50%, 0); }
.masa-sa-jobs-shell.msjp .portal-error {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    margin: 0 0 20px; padding: 16px 20px; border: 1px solid #e7c78d; border-radius: 9px;
    color: #60451d; background: #fff7e8; font-size: 13px; line-height: 1.7;
}
.masa-sa-jobs-shell.msjp .portal-error p { margin: 0; }
.masa-sa-jobs-shell.msjp .portal-error a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.masa-sa-jobs-shell.msjp .portal-error button { border: 1px solid #c19b5b; background: #fff; padding: 10px 16px; border-radius: 6px; min-height: 44px; font-size: 13px; }
.masa-sa-jobs-shell.msjp .noscript { margin: 20px 0; padding: 16px 20px; border: 1px solid #e7c78d; border-radius: 8px; background: #fff7e8; color: #60451d; font-size: 13px; }

/* Native GET search, links and pagination remain usable before enhancement or without JavaScript. */
.masa-sa-jobs-shell.msjp:not(.msjp-enhanced):not(.msjp-single-enhanced) .msjp-js-only { display: none !important; }
.masa-sa-jobs-shell.msjp:not(.msjp-enhanced) :is(.detail, .mobile-filter-toggle, .filter-close, .mobile-results) { display: none; }
.masa-sa-jobs-shell.msjp:not(.msjp-enhanced) .workspace { grid-template-columns: 210px minmax(0, 1fr); }
.masa-sa-jobs-shell.msjp:not(.msjp-enhanced) .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Brief, purposeful feedback; no continually moving decoration. */
.masa-sa-jobs-shell.msjp.is-loading .results { position: relative; }
.masa-sa-jobs-shell.msjp.is-loading .results-toolbar::after {
    content: ""; position: absolute; top: -7px; left: 0; height: 2px; width: 100%;
    background: linear-gradient(90deg, transparent, var(--gold), transparent); background-size: 200% 100%;
    animation: msjp-loading 1.1s linear infinite;
}
.masa-sa-jobs-shell.msjp.is-loading .job-list { opacity: .58; transition: opacity .18s ease; }
.masa-sa-jobs-shell.msjp .skeleton-card { height: 240px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 24px; }
.masa-sa-jobs-shell.msjp .skeleton-line { display: block; height: 12px; border-radius: 4px; margin-bottom: 16px; background: linear-gradient(100deg, #ecf0f3 20%, #f7f9fb 45%, #ecf0f3 70%); background-size: 200% 100%; animation: msjp-loading 1.5s linear infinite; }
.masa-sa-jobs-shell.msjp .skeleton-line:first-child { width: 30%; height: 23px; margin-bottom: 24px; }
.masa-sa-jobs-shell.msjp .skeleton-line:last-child { width: 60%; }
.masa-sa-jobs-shell.msjp.is-ready .hero-copy { animation: msjp-enter .4s var(--msjp-ease) both; }
.masa-sa-jobs-shell.msjp .job-card.is-entering { animation: msjp-enter .28s var(--msjp-ease) backwards; animation-delay: var(--enter-delay, 0ms); }
@keyframes msjp-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes msjp-detail { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes msjp-bookmark { 50% { transform: scale(1.18) rotate(-7deg); } }
@keyframes msjp-loading { from { background-position: 180% 0; } to { background-position: -20% 0; } }
@media (hover: hover) and (pointer: fine) {
    .masa-sa-jobs-shell.msjp .job-card:hover { transform: translateY(-2px); border-color: #a6b9c9; box-shadow: 0 8px 24px #1b446c13; }
    .masa-sa-jobs-shell.msjp .job-card.selected:hover { border-color: #315c7a; }
    .masa-sa-jobs-shell.msjp .job-card:hover .card-cta svg { transform: translateX(3px); }
    .masa-sa-jobs-shell.msjp .button:hover { transform: translateY(-1px); box-shadow: 0 5px 13px #122f4d1c; }
    .masa-sa-jobs-shell.msjp .button:hover::before { transform: translateX(125%); }
    .masa-sa-jobs-shell.msjp .button:hover svg { transform: translateX(3px); }
    .masa-sa-jobs-shell.msjp .filter-chip:hover { background: #edf3f7; border-color: #a6b9c9; }
    .masa-sa-jobs-shell.msjp .view-tabs :is(button, a):hover { color: var(--navy); }
}
/* Match the MASA Featured Jobs orange CTA finish without changing the portal button's shape or size. */
.masa-sa-jobs-shell.msjp .search-button.gold {
    transition: transform 240ms cubic-bezier(.2,.75,.25,1), box-shadow 240ms ease, background-color 240ms ease;
}
.masa-sa-jobs-shell.msjp .search-button.gold::before {
    background: linear-gradient(110deg, transparent 15%, rgba(255,255,255,.22) 48%, transparent 80%);
    transform: translateX(-115%); transition: transform 560ms cubic-bezier(.2,.65,.3,1);
}
.masa-sa-jobs-shell.msjp .search-button.gold svg { transition: transform 240ms cubic-bezier(.2,.75,.25,1); }
@media (forced-colors: none) {
    .masa-sa-jobs-shell.msjp .search-button.gold {
        background-image: linear-gradient(135deg, #ef913e 0%, #e77d18 50%, #cc6910 100%);
        border-color: rgba(204,105,16,.18);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 7px 18px rgba(231,125,24,.26), 0 2px 4px rgba(129,70,13,.12);
    }
    .masa-sa-jobs-shell.msjp .search-button.gold:focus-visible {
        box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 12px 26px rgba(231,125,24,.38), 0 3px 6px rgba(129,70,13,.14);
    }
}
@media (hover: hover) and (pointer: fine) {
    .masa-sa-jobs-shell.msjp .search-button.gold:hover { transform: translateY(-2px); }
    .masa-sa-jobs-shell.msjp .search-button.gold:hover::before { transform: translateX(115%); }
    .masa-sa-jobs-shell.msjp .search-button.gold:hover svg { transform: translateX(4px); }
}
@media (hover: hover) and (pointer: fine) and (forced-colors: none) {
    .masa-sa-jobs-shell.msjp .search-button.gold:hover {
        box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 12px 26px rgba(231,125,24,.38), 0 3px 6px rgba(129,70,13,.14);
    }
}
.masa-sa-jobs-shell.msjp .search-button.gold:focus-visible,
#top .masa-sa-jobs-shell.msjp .search-button.gold:focus-visible {
    outline: 2px solid var(--navy); outline-offset: 4px;
}
.masa-sa-jobs-shell.msjp .search-button.gold:focus-visible { transform: translateY(-2px); }
.masa-sa-jobs-shell.msjp .search-button.gold:focus-visible::before { transform: translateX(115%); }
.masa-sa-jobs-shell.msjp .search-button.gold:focus-visible svg { transform: translateX(4px); }
.masa-sa-jobs-shell.msjp .search-button.gold:active { transform: translateY(0) scale(.98); }
@media (min-width: 1800px) {
    .masa-sa-jobs-shell.msjp .workspace { grid-template-columns: 220px minmax(360px, 1fr) minmax(480px, 1.2fr); gap: 34px; }
}
@media (max-width: 1200px) {
    .masa-sa-jobs-shell.msjp .wrap { width: calc(100% - 48px); }
    .masa-sa-jobs-shell.msjp .workspace { grid-template-columns: 165px minmax(260px, 1fr) minmax(315px, 1.1fr); gap: 18px; }
    .masa-sa-jobs-shell.msjp :is(.detail-header, .detail-scroll) { padding: 22px; }
    .masa-sa-jobs-shell.msjp .detail-actions { padding: 16px 22px; }
    .masa-sa-jobs-shell.msjp .job-card { padding: 18px; }
    .masa-sa-jobs-shell.msjp .hero-note { padding-right: 8px; }
    .masa-sa-jobs-shell.msjp .snapshot-label { font-size: 11px; }
}
@media (max-width: 1000px) {
    .masa-sa-jobs-shell.msjp .workspace { grid-template-columns: 175px minmax(0, 1fr); gap: 24px; }
    .masa-sa-jobs-shell.msjp .detail { display: none; }
    .masa-sa-jobs-shell.msjp .detail.mobile-open {
        display: block; position: fixed; inset: 0; z-index: 100010; border-radius: 0;
        max-height: none; border: 0; animation: msjp-enter .22s var(--msjp-ease);
    }
    .masa-sa-jobs-shell.msjp .detail.mobile-open .detail-inner { max-height: none; height: 100vh; height: 100dvh; }
    .masa-sa-jobs-shell.msjp .back-to-results {
        display: flex; gap: 10px; align-items: center; border: 0; border-radius: 0; border-bottom: 1px solid var(--line);
        background: #fff; padding: 16px 24px; margin: 0; font-size: 14px; line-height: 1.5;
        color: var(--navy); font-weight: 650; min-height: 58px; flex-shrink: 0; text-align: left; justify-content: flex-start;
    }
    .masa-sa-jobs-shell.msjp .detail-scroll { flex: 1; }
    .masa-sa-jobs-shell.msjp .detail-header { padding: 25px; }
    .masa-sa-jobs-shell.msjp .detail-actions { padding: 16px 25px max(16px, env(safe-area-inset-bottom)); }
    .masa-sa-jobs-shell.msjp .hero-note { display: none; }
    .masa-sa-jobs-shell.msjp .search-field { flex: 1.4; }
    .masa-sa-jobs-shell.msjp .location-field { flex: 1; }
    .masa-sa-jobs-shell.msjp :is(.search-field, .location-field) { padding-inline: 12px; gap: 10px; }
    .masa-sa-jobs-shell.msjp .search-button { min-width: 130px; padding-inline: 18px; }
    .masa-sa-jobs-shell.msjp .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .masa-sa-jobs-shell.msjp .job-card.selected { border-color: #e0e6eb; }
    .masa-sa-jobs-shell.msjp .job-card.selected::before { display: none; }
    .masa-sa-jobs-shell.msjp .snapshot-label { max-width: 220px; text-align: right; line-height: 1.5; }
    .masa-sa-jobs-shell.msjp .detail-top { margin-bottom: 14px; }
}
@media (max-width: 760px) {
    .masa-sa-jobs-shell.msjp { padding-bottom: 22px; }
    .masa-sa-jobs-shell.msjp .wrap { width: calc(100% - 36px); }
    .masa-sa-jobs-shell.msjp .hero { margin-bottom: 144px; }
    .masa-sa-jobs-shell.msjp .hero-inner { min-height: 154px; padding: 22px 0 20px; }
    .masa-sa-jobs-shell.msjp .hero h1 { font-size: 28px; letter-spacing: normal; margin-bottom: 13px; }
    .masa-sa-jobs-shell.msjp .hero-copy > p { font-size: 16px; line-height: 1.6; }
    .masa-sa-jobs-shell.msjp .search-bar,
    #top .masa-sa-jobs-shell.msjp .search-bar { flex-wrap: wrap; top: 133px; margin-top: -133px; padding: 9px; gap: 0; border-radius: 12px; }
    .masa-sa-jobs-shell.msjp .search-field { flex: 1 1 100%; border: 0; border-bottom: 1px solid #e6edf1; padding: 9px 11px 11px; }
    .masa-sa-jobs-shell.msjp .location-field { flex: 1 1 60%; padding: 10px 11px 7px; max-width: calc(100% - 128px); }
    .masa-sa-jobs-shell.msjp .field-caption,
    #top .masa-sa-jobs-shell.msjp .field-caption { font-size: 13px; margin-bottom: 1px; }
    .masa-sa-jobs-shell.msjp .search-bar :is(input, select),
    #top .masa-sa-jobs-shell.msjp .search-bar :is(input, select) { font-size: 16px; height: 32px; min-height: 32px; }
    .masa-sa-jobs-shell.msjp :is(.search-field, .location-field) > svg { width: 18px; }
    .masa-sa-jobs-shell.msjp .search-button { margin: 11px 1px 5px 7px; min-width: 0; width: 120px; font-size: 15px; padding: 12px 10px; border-radius: 7px; gap: 6px; }
    .masa-sa-jobs-shell.msjp .search-button svg { width: 16px; }
    .masa-sa-jobs-shell.msjp .board-top { min-height: 50px; margin-bottom: 15px; align-items: center; gap: 12px; }
    .masa-sa-jobs-shell.msjp .view-tabs { gap: 20px; }
    .masa-sa-jobs-shell.msjp .view-tabs :is(button, a) { font-size: 13px; padding-bottom: 10px; gap: 7px; }
    .masa-sa-jobs-shell.msjp .snapshot-label { font-size: 10px; max-width: 120px; margin-bottom: 7px; }
    .masa-sa-jobs-shell.msjp .workspace { display: block; }
    .masa-sa-jobs-shell.msjp .filters { display: none; }
    .masa-sa-jobs-shell.msjp:not(.msjp-enhanced) .filters { display: block; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
    .masa-sa-jobs-shell.msjp:not(.msjp-enhanced) .job-list { grid-template-columns: minmax(0, 1fr); }
    .masa-sa-jobs-shell.msjp .results-toolbar { margin-bottom: 10px; }
    .masa-sa-jobs-shell.msjp .results-toolbar h2 { font-size: 18px; }
    .masa-sa-jobs-shell.msjp .results-toolbar p { font-size: 12px; }
    .masa-sa-jobs-shell.msjp .mobile-filter-toggle {
        display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff;
        border: 1px solid #bfced9; width: 100%; border-radius: 7px; padding: 11px;
        margin: 0 0 12px; font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--navy); min-height: 46px;
    }
    .masa-sa-jobs-shell.msjp .mobile-filter-toggle svg { width: 18px; }
    .masa-sa-jobs-shell.msjp .job-list { grid-template-columns: minmax(0, 1fr); gap: 13px; }
    .masa-sa-jobs-shell.msjp .job-card { padding: 21px; }
    .masa-sa-jobs-shell.msjp .job-location { font-size: 13px; }
    .masa-sa-jobs-shell.msjp .card-bottom { font-size: 12px; }
    .masa-sa-jobs-shell.msjp .type-pill { font-size: 12px; }
    .masa-sa-jobs-shell.msjp .filters.open {
        display: block; position: fixed; z-index: 100020; inset: 0 auto 0 0;
        width: min(350px, calc(100vw - 32px)); padding: 25px 24px max(25px, env(safe-area-inset-bottom));
        background: #fff; overflow-y: auto; overscroll-behavior: contain;
        box-shadow: 15px 0 50px #122f4d30; animation: msjp-drawer .24s var(--msjp-ease);
    }
    .masa-sa-jobs-shell.msjp .filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
    .masa-sa-jobs-shell.msjp .filter-heading h2 { font-size: 19px; }
    .masa-sa-jobs-shell.msjp .filter-close { display: grid; flex-shrink: 0; }
    .masa-sa-jobs-shell.msjp .check-options label { font-size: 15px; min-height: 46px; }
    .masa-sa-jobs-shell.msjp legend,
    #top .masa-sa-jobs-shell.msjp legend { font-size: 14px; }
    .masa-sa-jobs-shell.msjp .text-button { font-size: 13px; }
    .masa-sa-jobs-shell.msjp .filters select,
    #top .masa-sa-jobs-shell.msjp .filters select { font-size: 16px; padding: 12px 24px 12px 10px; }
    .masa-sa-jobs-shell.msjp .filter-foot p { font-size: 13px; }
    .masa-sa-jobs-shell.msjp .filter-foot p > span { font-size: 12px; }
    .masa-sa-jobs-shell.msjp .mobile-results { display: flex; width: 100%; margin-top: 27px; }
    .masa-sa-jobs-shell.msjp .filter-shade { position: fixed; inset: 0; background: #122f4d7d; z-index: 100015; animation: msjp-fade .2s ease; }
    .masa-sa-jobs-shell.msjp .help-strip { margin-top: 30px; padding: 23px; display: block; }
    .masa-sa-jobs-shell.msjp .help-strip > div { gap: 14px; align-items: flex-start; }
    .masa-sa-jobs-shell.msjp .help-icon { width: 38px; height: 38px; font-size: 22px; }
    .masa-sa-jobs-shell.msjp .help-strip h2 { font-size: 20px; }
    .masa-sa-jobs-shell.msjp .help-strip p { font-size: 13px; }
    .masa-sa-jobs-shell.msjp .help-strip > a { margin: 15px 0 0 52px; gap: 16px; }
    .masa-sa-jobs-shell.msjp .detail-scroll { padding: 23px; }
    .masa-sa-jobs-shell.msjp .detail-header { padding: 22px; }
    .masa-sa-jobs-shell.msjp .detail-actions { padding-inline: 22px; }
    .masa-sa-jobs-shell.msjp .detail-actions .button { min-height: 48px; padding-inline: 15px; }
    .masa-sa-jobs-shell.msjp .detail-ref { font-size: 12px; }
    .masa-sa-jobs-shell.msjp .back-to-results { padding-left: 22px; }
    .masa-sa-jobs-shell.msjp .toast { bottom: max(16px, env(safe-area-inset-bottom)); }
    .masa-sa-jobs-shell.msjp .portal-error { padding: 15px 17px; }
}
@media (max-width: 360px) {
    .masa-sa-jobs-shell.msjp .wrap { width: calc(100% - 28px); }
    .masa-sa-jobs-shell.msjp .location-field > svg { display: none; }
    .masa-sa-jobs-shell.msjp .hero h1 { font-size: 28px; }
    .masa-sa-jobs-shell.msjp .snapshot-label { max-width: 80px; }
    .masa-sa-jobs-shell.msjp .view-tabs { gap: 13px; }
    .masa-sa-jobs-shell.msjp .view-tabs :is(button, a) { font-size: 12px; gap: 5px; }
    .masa-sa-jobs-shell.msjp .job-card { padding: 18px; }
    .masa-sa-jobs-shell.msjp .sort-label select { max-width: 115px; }
}
/* On short screens, scroll the role as one column so a long title cannot push Apply off-screen. */
@media (max-height: 620px) {
    .masa-sa-jobs-shell.msjp .detail .detail-inner {
        display: block; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
        scrollbar-width: thin; scrollbar-color: #b8c8d4 transparent; scroll-padding-block: 16px 124px;
    }
    .masa-sa-jobs-shell.msjp .detail.mobile-open .detail-inner { scroll-padding-top: 74px; }
    .masa-sa-jobs-shell.msjp .detail .back-to-results { position: sticky; top: 0; z-index: 3; width: 100%; }
    .masa-sa-jobs-shell.msjp .detail .detail-scroll { overflow: visible; min-height: 0; }
    .masa-sa-jobs-shell.msjp .detail .detail-actions { position: sticky; bottom: 0; z-index: 3; }
}
@keyframes msjp-drawer { from { transform: translateX(-25px); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
@keyframes msjp-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .masa-sa-jobs-shell.msjp *, .masa-sa-jobs-shell.msjp *::before, .masa-sa-jobs-shell.msjp *::after {
        animation: none !important; transition: none !important; scroll-behavior: auto !important;
    }
    .masa-sa-jobs-shell.msjp .job-card:hover, .masa-sa-jobs-shell.msjp .button:hover { transform: none; }
    .masa-sa-jobs-shell.msjp .search-button.gold,
    .masa-sa-jobs-shell.msjp .search-button.gold svg { transform: none !important; }
    .masa-sa-jobs-shell.msjp .search-button.gold::before { display: none; }
}
@media (forced-colors: active) {
    .masa-sa-jobs-shell.msjp .job-card { border-color: CanvasText; }
    .masa-sa-jobs-shell.msjp .job-card.selected { border: 2px solid Highlight; }
    .masa-sa-jobs-shell.msjp .view-tabs :is(.active, [aria-pressed="true"]) { border-bottom-color: Highlight; }
    .masa-sa-jobs-shell.msjp .button, .masa-sa-jobs-shell.msjp :is(.save-button, .save-detail), .masa-sa-jobs-shell.msjp .type-pill { border: 1px solid ButtonText; }
    .masa-sa-jobs-shell.msjp :is(.save-button, .save-detail)[aria-pressed="true"] { outline: 2px solid Highlight; }
    .masa-sa-jobs-shell.msjp .check-options input { appearance: auto; }
    .masa-sa-jobs-shell.msjp .check-options input:checked::before { content: none; }
    .masa-sa-jobs-shell.msjp .button::before, .masa-sa-jobs-shell.msjp.is-loading .results-toolbar::after { display: none; }
    .masa-sa-jobs-shell.msjp .toast { border: 1px solid CanvasText; }
    .masa-sa-jobs-shell.msjp .search-button.gold { background: ButtonFace; border-color: ButtonText; box-shadow: none; color: ButtonText !important; }
    .masa-sa-jobs-shell.msjp .search-button.gold:focus-visible,
    #top .masa-sa-jobs-shell.msjp .search-button.gold:focus-visible { outline-color: Highlight; }
}
.masa-sa-jobs-shell.msjp #msjp-results-count{scroll-margin-top:calc(var(--msjp-sticky-top,24px) + 16px)}

/* Isolate portal pagination from Enfold's fixed circular .pagination controls. */
.masa-sa-jobs-shell.msjp #msjp-pagination { overflow: visible; position: static; line-height: 1.4; }
.masa-sa-jobs-shell.msjp #msjp-pagination :is(a, .current) {
    float: none; flex: 0 0 auto; width: auto; height: auto; min-width: 44px; min-height: 44px;
    margin: 0; padding: 10px 13px; border-radius: 8px; line-height: 1.4; white-space: nowrap;
    box-shadow: none; font-family: inherit; text-align: center;
}
.masa-sa-jobs-shell.msjp #msjp-pagination .page-numbers {
    float: none; flex-basis: 100%; order: 0; padding: 0; margin: 0; line-height: 1.4;
}
.masa-sa-jobs-shell.msjp #msjp-pagination .page-numbers :is(a, .current) { width: 44px; padding-inline: 0; }
.masa-sa-jobs-shell.msjp #msjp-pagination > a { order: 1; }
.masa-sa-jobs-shell.msjp #msjp-pagination .page-gap { float: none; width: 13px; min-width: 13px; padding: 0; line-height: 1.4; }
.masa-sa-jobs-shell.msjp #msjp-pagination a:hover { background: #eaf0f5; border-color: #9cb2c2; }
.masa-sa-jobs-shell.msjp #msjp-pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Full job pages share the portal's palette, typography, cards and interactions. */
.masa-sa-jobs-shell.msjp.msjp-single { max-width: none; padding: 0 0 50px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-wrap { width: calc(100% - 80px); max-width: 1180px; margin-inline: auto; }
.masa-sa-jobs-shell.msjp.msjp-single .single-hero { background: var(--navy); color: #fff; padding: 23px 0 38px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-bottom: 18px; color: #dae6ee; font-size: 13px; font-weight: 600; }
.masa-sa-jobs-shell.msjp.msjp-single .single-back svg { width: 18px; transform: rotate(180deg); transition: transform .2s ease; }
.masa-sa-jobs-shell.msjp.msjp-single .single-back:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-heading { min-width: 0; max-width: 850px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; color: #cfdee8; font-size: 12px; margin-bottom: 17px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-meta .type-pill { background: #ffffff14; border: 1px solid #ffffff40; color: #fff; padding: 6px 12px; }
.masa-sa-jobs-shell.msjp.msjp-single h1 { color: #fff; font-size: clamp(28px, 3.3vw, 40px); font-weight: 600; line-height: 1.17; letter-spacing: normal; margin: 0 0 20px; overflow-wrap: anywhere; }
.masa-sa-jobs-shell.msjp.msjp-single .single-location { display: flex; align-items: center; gap: 9px; margin: 0; color: #e5edf3; font-size: 15px; line-height: 1.6; }
.masa-sa-jobs-shell.msjp.msjp-single .single-location svg { width: 18px; height: 20px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-category { color: #c8d9e5; margin: 8px 0 0; font-size: 13px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-tools { flex-shrink: 0; gap: 10px; flex-direction: column; align-items: stretch; }
.masa-sa-jobs-shell.msjp.msjp-single.msjp-single-enhanced .msjp-js-only { display: inline-flex; }
.masa-sa-jobs-shell.msjp.msjp-single .single-tool { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 16px; margin: 0; border-radius: 8px; border: 1px solid #ffffff50; background: transparent; color: #fff; line-height: 1.4; font-size: 13px; font-weight: 600; transition: background-color .2s ease, border-color .2s ease; }
.masa-sa-jobs-shell.msjp.msjp-single .single-tool:hover { background: #ffffff16; border-color: #c8d9e5; }
.masa-sa-jobs-shell.msjp.msjp-single .single-tool.is-saved { background: #fff; color: var(--navy); }
.masa-sa-jobs-shell.msjp.msjp-single .single-tool.is-saved svg { fill: currentColor; }
.masa-sa-jobs-shell.msjp.msjp-single .single-tool svg { width: 17px; height: 18px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 28px; padding-top: 30px; }
.masa-sa-jobs-shell.msjp.msjp-single :is(.single-description, .single-aside) { border: 1px solid #e0e6eb; border-radius: 12px; background: #fff; box-shadow: 0 3px 18px #122f4d08; min-width: 0; }
.masa-sa-jobs-shell.msjp.msjp-single .single-description { padding: 32px 36px; }
.masa-sa-jobs-shell.msjp.msjp-single h2 { color: var(--navy); font-weight: 600; font-size: 26px; line-height: 1.3; letter-spacing: normal; margin: 0 0 23px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body { color: #536675; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body :is(p, li, div) { font-size: inherit; line-height: inherit; color: inherit; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body p { margin: 0 0 19px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body :is(ul, ol) { margin: 12px 0 24px; padding: 0 0 0 23px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body ul { list-style: disc outside; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body ol { list-style: decimal outside; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body li { display: list-item; margin: 0 0 8px; padding-left: 3px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body :is(h2, h3, h4, h5, h6) { font-size: 20px; font-weight: 600; line-height: 1.4; color: var(--navy); margin: 28px 0 13px; letter-spacing: normal; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body strong { color: #344d62; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body :is(img, video, iframe) { max-width: 100%; height: auto; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body table { display: block; max-width: 100%; overflow-x: auto; }
.masa-sa-jobs-shell.msjp.msjp-single .single-body > :first-child { margin-top: 0; }
.masa-sa-jobs-shell.msjp.msjp-single .single-aside { padding: 27px; position: sticky; top: var(--msjp-sticky-top, 120px); }
.masa-sa-jobs-shell.msjp.msjp-single .single-aside h2 { font-size: 23px; margin-bottom: 20px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-aside dl { padding: 0; margin: 0 0 26px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-aside dl > div { border-bottom: 1px solid #e6edf1; padding: 12px 0; }
.masa-sa-jobs-shell.msjp.msjp-single .single-aside dl > div:first-child { padding-top: 0; }
.masa-sa-jobs-shell.msjp.msjp-single .single-aside dt { color: var(--muted); font-size: 12px; font-weight: 400; margin: 0 0 4px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-aside dd { color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.masa-sa-jobs-shell.msjp.msjp-single .button { border-radius: 8px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-aside .button { width: 100%; padding-inline: 12px; gap: 9px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-apply-note { color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; margin: 13px 0 21px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-contact { display: flex; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid #e6edf1; padding-top: 18px; color: var(--navy); font-size: 12px; line-height: 1.6; text-align: center; }
.masa-sa-jobs-shell.msjp.msjp-single .single-contact svg { width: 16px; height: 16px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-contact + .worker-support { border-top: 0; padding-top: 12px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-end-action { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 30px; padding-top: 25px; border-top: 1px solid #e6edf1; }
.masa-sa-jobs-shell.msjp.msjp-single .single-browse { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--navy); font-size: 13px; font-weight: 600; }
.masa-sa-jobs-shell.msjp.msjp-single :is(.single-browse, .single-contact):hover { text-decoration: underline; text-underline-offset: 4px; }
.masa-sa-jobs-shell.msjp.msjp-single .masa-sa-job-similar { margin: 45px 0 0; }
.masa-sa-jobs-shell.msjp.msjp-single .masa-sa-jobs-grid--similar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.masa-sa-jobs-shell.msjp.msjp-single .job-card { display: flex; flex-direction: column; }
.masa-sa-jobs-shell.msjp.msjp-single .card-bottom { margin-top: auto; padding-top: 18px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-more { display: flex; justify-content: center; padding-top: 25px; }
.masa-sa-jobs-shell.msjp.msjp-single .single-mobile-apply { display: none; }
@media (max-width: 1000px) {
    .masa-sa-jobs-shell.msjp.msjp-single .single-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-description { padding: 26px; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-aside { padding: 22px; }
    .masa-sa-jobs-shell.msjp.msjp-single .masa-sa-jobs-grid--similar { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .masa-sa-jobs-shell.msjp.msjp-single { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
    .masa-sa-jobs-shell.msjp.msjp-single .single-wrap { width: calc(100% - 36px); }
    .masa-sa-jobs-shell.msjp.msjp-single .single-hero { padding: 16px 0 28px; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-heading-row { display: block; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-back { margin-bottom: 16px; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-tools { flex-direction: row; flex-wrap: wrap; margin-top: 22px; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-grid { display: flex; flex-direction: column; gap: 22px; padding-top: 22px; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-grid > * { width: 100%; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-description { padding: 24px 20px; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-aside { position: static; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-mobile-apply { display: block; position: fixed; z-index: 1001; bottom: 0; left: 0; right: 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fffffff7; border-top: 1px solid #dce5ee; box-shadow: 0 -4px 20px #122f4d10; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-mobile-apply .button { display: flex; width: 100%; }
    .masa-sa-jobs-shell.msjp.msjp-single .toast { bottom: calc(91px + env(safe-area-inset-bottom)); }
}
@media (forced-colors: active) {
    .masa-sa-jobs-shell.msjp.msjp-single :is(.single-hero, .single-tool, .single-meta .type-pill) { color: CanvasText; background: Canvas; border-color: ButtonText; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-hero :is(h1, a, p, .single-meta) { color: CanvasText; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-tool.is-saved { color: HighlightText; background: Highlight; }
}
@media print {
    .masa-sa-jobs-shell.msjp.msjp-single :is(.single-mobile-apply, .single-tools, .single-end-action, .masa-sa-job-similar, .single-more, .single-back, .single-contact, .single-aside .button, .toast) { display: none !important; }
    .masa-sa-jobs-shell.msjp.msjp-single { padding: 0; background: #fff; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-wrap { width: 100%; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-hero { background: #fff; padding: 0 0 20px; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-hero :is(h1, p, .single-meta, .type-pill) { color: #111; }
    .masa-sa-jobs-shell.msjp.msjp-single .single-grid { display: block; }
    .masa-sa-jobs-shell.msjp.msjp-single :is(.single-description, .single-aside) { border: 0; box-shadow: none; padding: 15px 0; }
}

/* Enfold's native transparent header joins the navy hero on portal routes only.
   Desktop uses native transparency/scrolling; MASA's phone header stays sticky. */
@media screen {
    .html_header_transparency #top:has(#header.msjp-hero-header) #main { padding-top: 0 !important; margin-top: 0 !important; }
    #top #header.msjp-hero-header.av_header_transparency,
    #top #header.msjp-hero-header.av_header_transparency :is(#header_main, #header_meta, .header_bg),
    #top #header.msjp-hero-header.av_header_transparency #header_main > .container,
    #top #header.msjp-hero-header.av_header_transparency #header_main .inner-container {
        background: transparent !important; border-color: transparent !important; box-shadow: none !important;
    }
    #top #header.msjp-hero-header.av_header_transparency .header_bg { opacity: 0 !important; }
    /* Keep the existing primary MASA logo in every portal header state. The
       site's transparent-header alternate belongs to a different wordmark. */
    #top #header.msjp-hero-header .logo a > :is(img, svg):not(.alternate),
    #top #header.msjp-hero-header .logo a > picture:not(.alternate) img {
        opacity: 1 !important; visibility: visible !important; transition: none !important;
    }
    #top #header.msjp-hero-header .logo :is(.alternate, .avia-svg-logo-sub) {
        display: none !important; opacity: 0 !important; visibility: hidden !important;
    }
    /* Once the native header leaves its transparent state, keep scrolled hero
       text from showing through its usual translucent background/fade. */
    #top #header.msjp-hero-header:not(.av_header_transparency),
    #top #header.msjp-hero-header:not(.av_header_transparency) :is(#header_main, .header_bg) {
        background: #1b446c !important;
    }
    #top #header.msjp-hero-header:not(.av_header_transparency) .header_bg {
        opacity: 1 !important; transition: none !important;
    }
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header.av_header_transparency .av-main-nav > li:not(.av-menu-button) > a,
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header.av_header_transparency .av-main-nav > li:not(.av-menu-button) > a > .avia-menu-text { color: #fff !important; }
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header.av_header_transparency .menu-item-search-dropdown > a :is(svg, svg path) { fill: #fff !important; }
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header.av_header_transparency .av-hamburger-inner,
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header.av_header_transparency .av-hamburger-inner::before,
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header.av_header_transparency .av-hamburger-inner::after { background-color: #fff !important; }
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header.av_header_transparency a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
    #top:has(#header.msjp-hero-header) .masa-sa-jobs-shell.msjp .hero { padding-top: var(--msjp-header-height, var(--enfold-header-height, 90px)); }
    #top:has(#header.msjp-hero-header) .masa-sa-jobs-shell.msjp.msjp-single .single-hero { padding-top: calc(23px + var(--msjp-header-height, var(--enfold-header-height, 90px))); }
    #top:has(#header.msjp-hero-header) .masa-sa-jobs-shell.msjp :is(.hero, .single-hero) { position: relative; isolation: isolate; }
    #top:has(#header.msjp-hero-header) .masa-sa-jobs-shell.msjp :is(.hero, .single-hero)::before {
        content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw;
        transform: translateX(-50%); background: var(--navy); z-index: -1; pointer-events: none;
    }
    #top.admin-bar #header.msjp-hero-header { top: 32px !important; }
}
@media screen and (max-width: 782px) {
    #top.admin-bar #header.msjp-hero-header { top: 46px !important; }
}
@media screen and (min-width: 768px) and (max-width: 1199px) {
    /* MASA's long desktop navigation otherwise wraps over the hero on tablets.
       Reuse Enfold's existing burger and menu without changing other routes. */
    .js_active #top #header.msjp-hero-header .av-main-nav > li:not(.av-burger-menu-main):not(.menu-item-search-dropdown),
    .js_active #top #header.msjp-hero-header .social_bookmarks { display: none !important; }
    .js_active #top #header.msjp-hero-header .av-main-nav > .av-burger-menu-main { display: block !important; }
    .js_active #top #header.msjp-hero-header .avia-menu.av_menu_icon_beside { border-right: 0; }
}
@media screen and (max-width: 767px) {
    /* MASA keeps its native sticky phone header and visible circular logo.
       Stronger scope than the transparent rule above prevents a white band. */
    .html_header_transparency #top #wrap_all #header.msjp-hero-header { position: sticky !important; top: 0; }
    #top #wrap_all #header.msjp-hero-header,
    #top #wrap_all #header.msjp-hero-header :is(#header_main, #header_meta, .header_bg) {
        background: #1b446c !important; border-color: transparent !important; box-shadow: none !important;
    }
    #top #wrap_all #header.msjp-hero-header .header_bg { opacity: 1 !important; }
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header .av-main-nav > li:not(.av-menu-button) > a,
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header .av-main-nav > li:not(.av-menu-button) > a > .avia-menu-text { color: #fff !important; }
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header .menu-item-search-dropdown > a :is(svg, svg path) { fill: #fff !important; }
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header .av-hamburger-inner,
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header .av-hamburger-inner::before,
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header .av-hamburger-inner::after { background-color: #fff !important; }
    html:not(.av-burger-overlay-active) #top #header.msjp-hero-header a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
    #top:has(#header.msjp-hero-header) .masa-sa-jobs-shell.msjp .hero { padding-top: 0; }
    #top:has(#header.msjp-hero-header) .masa-sa-jobs-shell.msjp.msjp-single .single-hero { padding-top: 16px; }
    #top.admin-bar #wrap_all #header.msjp-hero-header { top: 46px !important; }
}
@media screen and (max-width: 600px) {
    #top.admin-bar #wrap_all #header.msjp-hero-header { top: 0 !important; }
}
@media (forced-colors: active) {
    html #top #wrap_all #header.msjp-hero-header :is(#header_main, #header_meta) { background: Canvas !important; }
    html:not(.av-burger-overlay-active) #top #wrap_all #header.msjp-hero-header .av-main-nav > li:not(.av-menu-button) > a,
    html:not(.av-burger-overlay-active) #top #wrap_all #header.msjp-hero-header .av-main-nav > li:not(.av-menu-button) > a > .avia-menu-text { color: LinkText !important; }
    html #top #wrap_all #header.msjp-hero-header .av-hamburger-inner,
    html #top #wrap_all #header.msjp-hero-header .av-hamburger-inner::before,
    html #top #wrap_all #header.msjp-hero-header .av-hamburger-inner::after { background-color: ButtonText !important; forced-color-adjust: none; }
    html:not(.av-burger-overlay-active) #top #wrap_all #header.msjp-hero-header .menu-item-search-dropdown > a :is(svg, svg path) { fill: LinkText !important; forced-color-adjust: none; }
    html:not(.av-burger-overlay-active) #top #wrap_all #header.msjp-hero-header a:focus-visible { outline-color: Highlight !important; }
}
