:root {
    color-scheme: light;
    --green-950: #173c34;
    --green-900: #204c41;
    --green-800: #2e5a4d;
    --green-700: #3a6a59;
    --accent: var(--green-700);
    --gold-500: #b29255;
    --gold-200: #e5dcc7;
    --cream: #f6f6f0;
    --paper: #fffefa;
    --input-surface: #fff;
    --surface-tint: #eeeee3;
    --section-surface: #f7f7f1;
    --header-surface: rgba(250, 250, 245, 0.97);
    --surface-hover: rgba(255, 255, 255, 0.65);
    --select-hover: #e8f0eb;
    --ink: #20342e;
    --muted: #6e7c73;
    --line: #e4e6de;
    --button-ink: #fff;
    --shadow: 0 18px 48px rgba(27, 49, 39, 0.08);
    --card-radius: 16px;
    --control-radius: 11px;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    transition: background-color 220ms ease, color 220ms ease;
}

body,
button,
input,
select {
    font-family: "DM Sans", "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

svg {
    display: block;
}

.container {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}

.visually-hidden,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.skip-link:focus {
    position: fixed;
    z-index: 20;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    border-radius: 6px;
    background: var(--paper);
    color: var(--green-950);
    box-shadow: var(--shadow);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.site-header {
    position: relative;
    z-index: 5;
    background: var(--header-surface);
    box-shadow: 0 1px 0 rgba(26, 55, 45, 0.06);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    color: var(--green-900);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--gold-500);
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.brand-tagline {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.01em;
}

.main-nav,
.header-actions {
    display: flex;
    align-items: center;
}

.main-nav {
    gap: clamp(17px, 2.5vw, 36px);
}

.nav-link {
    position: relative;
    padding-block: 9px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 180ms ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--gold-500);
    content: "";
    transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-current {
    color: var(--green-950);
}

.nav-link:hover::after,
.nav-link.is-current::after {
    transform: scaleX(1);
}

.header-actions {
    flex: 0 0 auto;
    gap: 20px;
}

.user-menu {
    position: relative;
}

.user-menu__trigger {
    display: flex;
    max-width: 260px;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    color: var(--green-900);
    cursor: pointer;
    list-style: none;
}

.user-menu__trigger::-webkit-details-marker {
    display: none;
}

.user-menu__avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--gold-500);
    border-radius: 50%;
    color: var(--gold-500);
    font-weight: 700;
}

.user-menu__name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu__chevron {
    color: var(--gold-500);
    font-size: 18px;
}

.user-menu__panel {
    position: absolute;
    z-index: 10;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    width: min(280px, calc(100vw - 32px));
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.user-menu__panel a,
.user-menu__theme,
.user-menu__logout {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
}

.user-menu__panel a:hover,
.user-menu__theme:hover,
.user-menu__logout:hover {
    background: var(--cream);
}

.user-menu__heading {
    margin: 4px 12px 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.user-menu__panel form {
    margin: 0;
}

.user-menu__theme,
.user-menu__logout {
    cursor: pointer;
}

.user-menu__logout {
    border-top: 1px solid var(--line);
}

.login-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green-950);
    font-size: 13px;
    text-decoration: none;
    transition: color 180ms ease;
}

.login-link:hover {
    color: var(--gold-500);
}

.login-link svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: var(--control-radius);
    background: var(--green-800);
    color: var(--button-ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--green-950);
    box-shadow: 0 10px 24px rgba(18, 54, 43, 0.15);
}

.button--secondary {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.button--secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.22);
}

.button:active {
    transform: translateY(0);
}

.button--header {
    min-height: 42px;
    padding: 0 20px;
    font-size: 12px;
}

.hero {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 540px;
    align-items: stretch;
    isolation: isolate;
    background: #294638;
    color: #fff;
}

.hero-slides,
.hero-shade {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.hero-slides {
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 54%;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity 1.25s ease-in-out, transform 7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(14, 33, 28, 0.82) 0%, rgba(19, 40, 33, 0.64) 38%, rgba(19, 40, 33, 0.16) 76%, rgba(19, 40, 33, 0.12) 100%),
        linear-gradient(0deg, rgba(12, 31, 25, 0.65) 0%, rgba(12, 31, 25, 0) 37%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 55px;
    padding-bottom: 104px;
}

.hero-copy {
    max-width: 730px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 17px;
    color: #f0dfb8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.5;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 23px;
    height: 1px;
    background: var(--gold-500);
}

.hero h1 {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(38px, 5vw, 59px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
    text-wrap: balance;
}

.hero-description {
    max-width: 590px;
    margin: 13px 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.8;
}

.hero-search {
    display: grid;
    width: min(100%, 960px);
    min-height: 66px;
    grid-template-columns: minmax(210px, 1.55fr) minmax(160px, 1fr) minmax(170px, 1.1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 3px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 15px;
    background: var(--paper);
    box-shadow: 0 15px 38px rgba(12, 29, 23, 0.24);
}

.search-field {
    display: flex;
    min-width: 0;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding-inline: 12px;
    border-right: 1px solid var(--line);
    color: var(--green-900);
}

.search-field svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.search-field input,
.search-field select {
    width: 100%;
    min-width: 0;
    padding: 9px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 12px;
}

.search-field input {
    padding-inline: 0 8px;
    text-overflow: ellipsis;
}

.search-field input::placeholder {
    color: #829087;
    opacity: 1;
}

.search-field select {
    cursor: pointer;
}

.search-field input:focus {
    border-radius: 4px;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.search-field:focus-within input,
.search-field:focus-within select {
    box-shadow: none;
}

.hero-search .custom-autocomplete {
    position: relative;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
}

:is(.hero-search, .catalog-filters) .custom-autocomplete__listbox {
    position: absolute;
    z-index: 30;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    max-height: min(300px, var(--city-list-available-height, 300px));
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #e5e3d8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(27, 49, 39, 0.16);
    color-scheme: light;
}

:is(.hero-search, .catalog-filters) .custom-autocomplete__listbox[hidden] {
    display: none;
}

:is(.hero-search, .catalog-filters) .custom-autocomplete__option {
    padding: 9px 11px;
    border-radius: 6px;
    color: #315f54;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
    transition: background-color 120ms ease;
}

:is(.hero-search, .catalog-filters) .custom-autocomplete__option:hover,
:is(.hero-search, .catalog-filters) .custom-autocomplete__option.is-active,
:is(.hero-search, .catalog-filters) .custom-autocomplete__option[aria-selected="true"] {
    background: #e9eee5;
    color: #315f54;
}

:is(.hero-search, .catalog-filters) .custom-autocomplete__option:active {
    background: #dce6db;
}

.custom-select {
    position: relative;
    flex: 1;
    min-width: 0;
}

.custom-select__native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.custom-select__trigger {
    display: flex;
    width: 100%;
    min-width: 0;
    height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--input-surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: border-color 120ms ease, background-color 120ms ease;
}

.custom-select__trigger:hover {
    border-color: var(--green-700);
}

.custom-select__trigger:focus-visible {
    border-color: var(--accent);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.custom-select__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select__arrow {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1;
}

.custom-select__listbox {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.custom-select__listbox[hidden] {
    display: none;
}

.custom-select__option {
    padding: 8px 10px;
    border-radius: 5px;
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.custom-select__option:hover,
.custom-select__option.is-active {
    background: var(--select-hover);
}

.custom-select__option[aria-selected="true"] {
    color: var(--green-800);
    font-weight: 600;
}

.custom-select__option[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.search-field .custom-select__trigger {
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 12px;
}

.search-field .custom-select__trigger:focus-visible {
    outline-offset: 2px;
}

.button--search {
    min-width: 174px;
    min-height: 50px;
    padding: 0 19px;
    border-radius: 7px;
}

.button--search svg,
.hero-cta svg,
.hero-cta .arrow-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.button--search svg {
    transition: transform 180ms ease;
}

.button--search:hover svg {
    transform: translateX(3px);
}

.hero-cta {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-cta:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.hero-cta:focus-visible,
.button--search:focus-visible,
.vacancy-card a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.hero-cta .arrow-icon {
    width: 17px;
    height: 17px;
    transition: transform 180ms ease;
}

.hero-cta:hover .arrow-icon {
    transform: translateX(4px);
}

.hero-quote {
    position: absolute;
    right: max(32px, calc((100% - 1180px) / 2));
    bottom: 67px;
    width: min(300px, 25%);
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    text-align: right;
}

.hero-quote p {
    margin: 0 0 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.55;
}

.hero-quote cite {
    color: #f0dfb8;
    font-size: 10px;
    font-style: normal;
}

.photo-credit {
    position: absolute;
    right: max(32px, calc((100% - 1180px) / 2));
    bottom: 13px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 9px;
}

.photo-credit a {
    color: inherit;
    text-underline-offset: 2px;
    transition: color 160ms ease;
}

.photo-credit a:hover {
    color: #fff;
}

.pathways {
    position: relative;
    overflow: hidden;
    padding: 26px 0 20px;
    background:
        radial-gradient(ellipse at 2% 100%, rgba(196, 180, 143, 0.13), transparent 25%),
        radial-gradient(ellipse at 98% 0%, rgba(196, 180, 143, 0.1), transparent 23%),
        var(--section-surface);
}

.pathways-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pathway-card {
    position: relative;
    display: flex;
    min-height: 218px;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 19px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: var(--paper);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(27, 49, 39, 0.035);
    transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.pathways .pathways-grid .pathway-card::before {
    display: none;
}

.pathway-card:hover {
    z-index: 1;
    transform: translateY(-3px);
    background: var(--surface-hover);
    box-shadow: var(--shadow);
}

.pathway-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    place-items: center;
    margin-bottom: 12px;
    border: 1px solid rgba(178, 146, 85, 0.15);
    border-radius: 50%;
    background: var(--surface-tint);
    color: var(--green-800);
    transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.pathway-card:hover .pathway-icon {
    transform: translateY(-2px) rotate(-4deg);
    background: var(--green-800);
    color: var(--button-ink);
}

.pathway-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.pathway-card h2 {
    margin: 0 0 6px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    font-weight: 600;
}

.pathway-card p {
    max-width: 225px;
    min-height: 42px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.pathway-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 12px;
    color: var(--green-800);
    font-size: 11px;
    font-weight: 600;
}

.pathway-link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 180ms ease;
}

.pathway-card:hover .pathway-link svg {
    transform: translateX(4px);
}

.pathways-motto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 1px auto 0;
    padding-top: 15px;
    color: var(--muted);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 12px;
    text-align: center;
}

.pathways-motto span {
    color: var(--gold-500);
    font-size: 12px;
}

.vacancies-section {
    padding-block: 65px 76px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.eyebrow--dark {
    margin-bottom: 8px;
    color: var(--gold-500);
}

.section-heading h2 {
    margin: 0;
    color: var(--green-950);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(28px, 3vw, 36px);
}

.text-link,
.vacancy-link {
    color: var(--green-800);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.text-link span,
.vacancy-link span {
    display: inline-block;
    transition: transform 180ms ease;
}

.text-link:hover span,
.vacancy-link:hover span {
    transform: translateX(4px);
}

.vacancies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    align-items: stretch;
    gap: 24px;
}

.vacancy-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(27, 49, 39, 0.035);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.vacancy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.vacancy-category {
    color: var(--gold-500);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vacancy-card h3 {
    margin: 9px 0 7px;
    color: var(--green-950);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
}

.vacancy-organization {
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 12px;
}

.vacancy-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.site-footer {
    padding-block: 27px;
    background: var(--green-950);
    color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    color: #fff;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.footer-inner > p {
    max-width: 290px;
    margin: 0;
    font-size: 10px;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-nav a {
    color: inherit;
    font-size: 11px;
    text-decoration: none;
    transition: color 160ms ease;
}

.footer-nav a:hover {
    color: #fff;
}

.copyright {
    font-size: 10px;
    white-space: nowrap;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --green-950: #111713;
    --green-900: #eee5cf;
    --green-800: #d6b96f;
    --green-700: #e2c77f;
    --accent: #73a98c;
    --gold-500: #d6b96f;
    --gold-200: #54482e;
    --cream: #121815;
    --paper: #1b221e;
    --input-surface: #202923;
    --surface-tint: #252b24;
    --section-surface: #151c18;
    --header-surface: rgba(18, 24, 21, 0.96);
    --surface-hover: #202923;
    --select-hover: #2b3a31;
    --ink: #f2efe7;
    --muted: var(--gold-500);
    --line: #343e37;
    --button-ink: #17160f;
    --shadow: 0 20px 52px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .site-header {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.045);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .login-link,
html[data-theme="dark"] .user-menu__trigger,
html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.is-current,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .pathway-card h2,
html[data-theme="dark"] .vacancy-card h3,
html[data-theme="dark"] .vacancy-detail h1,
html[data-theme="dark"] .vacancy-detail h2,
html[data-theme="dark"] .form-card h1,
html[data-theme="dark"] .page-section h1,
html[data-theme="dark"] .page-section h2,
html[data-theme="dark"] .skip-link:focus {
    color: var(--gold-500);
}

html[data-theme="dark"] .button {
    color: #17140c;
}

html[data-theme="dark"] .button:hover {
    color: var(--ink);
}

html[data-theme="dark"] .search-field input,
html[data-theme="dark"] .search-field select,
html[data-theme="dark"] .form-field input:not([type="checkbox"]):not([type="file"]),
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea {
    border-color: var(--line);
    background: var(--input-surface);
    color: var(--ink);
}

html[data-theme="dark"] .search-field input::placeholder {
    color: var(--muted);
}

html[data-theme="dark"] .search-field {
    border-color: var(--line);
}

html[data-theme="dark"] .pathways {
    background:
        radial-gradient(ellipse at 2% 100%, rgba(214, 185, 111, 0.035), transparent 25%),
        radial-gradient(ellipse at 98% 0%, rgba(214, 185, 111, 0.03), transparent 23%),
        var(--section-surface);
}

html[data-theme="dark"] .pathway-card {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .hero-search {
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .hero-shade {
    background:
        linear-gradient(90deg, rgba(7, 18, 14, 0.9) 0%, rgba(7, 18, 14, 0.72) 42%, rgba(7, 18, 14, 0.28) 100%),
        linear-gradient(0deg, rgba(7, 18, 14, 0.72) 0%, rgba(7, 18, 14, 0.08) 55%);
}

html[data-theme="dark"] .hero h1 {
    color: #fff;
}

html[data-theme="dark"] .flash {
    border-color: var(--line);
    background: var(--paper);
    color: var(--ink);
}

@media (max-width: 1050px) {
    .header-inner {
        gap: 18px;
    }

    .main-nav {
        gap: 18px;
    }

    .brand-tagline {
        display: none;
    }

    .header-actions {
        gap: 14px;
    }

    .user-menu__name {
        max-width: 150px;
    }

    .hero-quote {
        width: 240px;
    }

    .pathway-card {
        padding-inline: 18px;
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 72px;
        flex-wrap: wrap;
        padding-block: 11px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 3px;
        border-top: 1px solid var(--line);
    }

    .hero {
        min-height: 575px;
    }

    .hero-content {
        padding-top: 46px;
    }

    .hero-quote {
        display: none;
    }

    .hero-search {
        grid-template-columns: minmax(190px, 1.3fr) minmax(140px, 1fr) minmax(155px, 1fr);
        gap: 12px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .search-field {
        border: 0;
        border-radius: 6px;
        background: var(--paper);
    }

    .button--search {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .pathways .pathways-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .pathway-card:nth-child(3)::before {
        display: none;
    }

    .footer-inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 36px, 460px);
    }

    .header-inner {
        gap: 12px;
    }

    .brand-mark {
        width: 37px;
        height: 37px;
    }

    .brand-name {
        font-size: 19px;
    }

    .header-actions {
        gap: 10px;
    }

    .user-menu__trigger {
        max-width: 150px;
        gap: 5px;
    }

    .user-menu__name {
        max-width: 78px;
        font-size: 11px;
    }

    .login-link {
        gap: 4px;
        font-size: 12px;
    }

    .button--header {
        min-height: 38px;
        padding-inline: 12px;
        font-size: 11px;
    }

    .main-nav {
        justify-content: space-between;
        gap: 11px;
    }

    .nav-link {
        font-size: 11px;
    }

    .hero {
        min-height: 655px;
    }

    .hero-slide {
        object-position: 58% center;
    }

    .hero-shade {
        background:
            linear-gradient(90deg, rgba(14, 33, 28, 0.76), rgba(19, 40, 33, 0.38)),
            linear-gradient(0deg, rgba(12, 31, 25, 0.68), rgba(12, 31, 25, 0.05) 62%);
    }

    .hero-content {
        padding-top: 43px;
        padding-bottom: 115px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 0.12em;
    }

    .hero h1 {
        font-size: clamp(36px, 10.1vw, 48px);
    }

    .hero-description {
        margin-top: 12px;
        font-size: 13px;
        line-height: 1.65;
    }

    .hero-search {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 0;
    }

    .search-field {
        min-height: 48px;
        padding-inline: 14px;
    }

    .button--search {
        width: 100%;
        min-height: 50px;
    }

    .hero-cta {
        margin-top: 12px;
    }

    .photo-credit {
        right: 18px;
        bottom: 12px;
        max-width: 58%;
        font-size: 8px;
        line-height: 1.5;
        text-align: right;
    }

    .pathways {
        padding-top: 22px;
    }

    .pathways .pathways-grid {
        width: min(100% - 24px, 460px);
        gap: 8px;
    }

    .pathway-card {
        min-height: 206px;
        padding: 8px 11px 15px;
    }

    .pathway-icon {
        width: 52px;
        height: 52px;
    }

    .pathway-icon svg {
        width: 27px;
        height: 27px;
    }

    .pathway-card h2 {
        font-size: 15px;
    }

    .pathway-card p {
        min-height: 54px;
        font-size: 11px;
    }

    .pathway-link {
        gap: 4px;
        font-size: 10px;
    }

    .pathways-motto {
        gap: 6px;
        max-width: calc(100% - 26px);
        font-size: 10px;
    }

    .vacancies-section {
        padding-block: 47px 55px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .text-link {
        margin-top: 25px;
        white-space: nowrap;
    }

    .vacancies-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .footer-nav {
        gap: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.employer-home {
    padding-block: 64px 78px;
}

.employer-home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.employer-home-stats > div,
.employer-home-vacancy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: var(--paper);
}

.employer-home-stats > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
}

.employer-home-stats strong {
    color: var(--green-900);
    font-size: 28px;
}

.employer-home-stats span,
.employer-home-vacancy p {
    color: var(--muted);
    font-size: 13px;
}

.employer-home-vacancies {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.employer-home-vacancy h3 {
    margin: 0 0 5px;
    color: var(--green-950);
    font-size: 16px;
}

.employer-home-vacancy p {
    margin: 0;
}

.employer-home-status {
    flex: none;
    color: var(--muted);
    font-size: 12px;
}

.employer-home-status--approved {
    color: var(--green-800);
}

.employer-home-status--pending {
    color: var(--gold-500);
}

.employer-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.employer-home-actions .button {
    min-height: 52px;
    padding: 0 24px;
}

.employer-home-actions .button--secondary {
    border-color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 700px) {
    .employer-home {
        padding-block: 48px 58px;
    }

    .employer-home-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .employer-home-stats > div {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 560px) {
    .employer-home-actions {
        flex-direction: column;
    }

    .employer-home-actions .button {
        width: 100%;
    }
}
