/* Vacancies — public list and detail */
.job-page .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.job-page {
    --job-green: #05612A;
    --job-green-dark: #044d22;
    --job-mint: #e8f5ee;
    --job-ink: #142018;
    --job-muted: #5d6b63;
    --job-line: #e3ebe6;
    --job-card: #ffffff;
    --job-shadow: 0 10px 30px rgba(5, 97, 42, 0.08);
    background: #f6f8f7;
    color: var(--job-ink);
    padding-bottom: 64px;
}

.job-hero {
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
    background: #05612A center/cover no-repeat;
    color: #fff;
}

.job-hero__overlay {
    width: 100%;
    padding: 48px 20px 32px;
    background: linear-gradient(180deg, rgba(4, 30, 16, 0.15), rgba(4, 30, 16, 0.72));
}

.job-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.job-hero .job-wrap { padding-bottom: 8px; }

.job-hero__kicker {
    margin: 0 0 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    opacity: 0.85;
}

.job-hero__title {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    font-weight: 700;
}

.job-hero__count {
    margin: 10px 0 0;
    font-size: 16px;
    opacity: 0.92;
}

.job-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 22px 0 18px;
    color: var(--job-muted);
    font-size: 14px;
}

.job-crumb a { color: var(--job-green); text-decoration: none; }
.job-crumb a:hover { text-decoration: underline; }

.job-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.job-filters,
.job-card,
.job-detail,
.job-panel {
    background: var(--job-card);
    border: 1px solid var(--job-line);
    border-radius: 18px;
    box-shadow: var(--job-shadow);
}

.job-filters { padding: 18px; position: sticky; top: 16px; }

.job-filters__title,
.job-panel__title {
    margin: 0 0 14px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-search {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.job-search input,
.job-sort,
.job-filters select {
    width: 100%;
    border: 1px solid #d5e0d9;
    border-radius: 12px;
    min-height: 46px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
    color: var(--job-ink);
}

.job-search button,
.job-btn {
    border: 0;
    border-radius: 12px;
    min-height: 46px;
    padding: 0 16px;
    background: var(--job-green);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.job-btn--ghost {
    background: #fff;
    color: var(--job-green);
    border: 1px solid #b7d4c3;
}

.job-btn--wide { width: 100%; margin-top: 12px; }

.job-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f3;
    font-size: 15px;
    cursor: pointer;
}

.job-check input { margin-top: 3px; accent-color: var(--job-green); }
.job-check span { color: var(--job-muted); margin-left: auto; }

.job-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.job-toolbar p { margin: 0; color: var(--job-muted); }
.job-sort { width: auto; min-width: 190px; }
.job-filters .job-sort { width: 100%; }

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.job-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
}

.job-card__cat {
    align-self: flex-start;
    background: var(--job-mint);
    color: var(--job-green-dark);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.job-card h2,
.job-related h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.job-card__company,
.job-card__meta,
.job-card__date { margin: 0; color: var(--job-muted); font-size: 14px; }
.job-card__salary { margin: 0; color: var(--job-green-dark); font-weight: 700; font-size: 18px; }
.job-card__meta { display: flex; flex-direction: column; gap: 6px; }
.job-card__link { margin-top: auto; color: var(--job-green); font-weight: 700; text-decoration: none; }
.job-page a.job-card__link:hover,
.job-page a.job-card__link:focus,
.job-page a.job-card__link:active,
.job-page .job-crumb a:hover,
.job-page .job-crumb a:focus,
.job-page .job-related a:hover,
.job-page .job-related a:focus,
.job-page .job-related a:hover h3,
.job-page .job-related a:hover p {
    color: var(--job-green-dark);
    text-decoration: none;
}

.job-page a.job-btn,
.job-page a.job-btn:hover,
.job-page a.job-btn:focus,
.job-page a.job-btn:active,
.job-page button.job-btn:hover,
.job-page button.job-btn:focus {
    color: #fff;
    text-decoration: none;
}

.job-page a.job-btn:hover,
.job-page a.job-btn:focus,
.job-page a.job-btn:active,
.job-page button.job-btn:hover,
.job-page button.job-btn:focus {
    background: var(--job-green-dark);
}

.job-page a.job-btn--ghost,
.job-page button.job-btn--ghost {
    background: #fff;
    color: var(--job-green);
}

.job-page a.job-btn--ghost:hover,
.job-page a.job-btn--ghost:focus,
.job-page a.job-btn--ghost:active,
.job-page button.job-btn--ghost:hover,
.job-page button.job-btn--ghost:focus {
    color: #fff;
    background: var(--job-green);
    border-color: var(--job-green);
    text-decoration: none;
}

.job-empty {
    padding: 48px 20px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
    border: 1px dashed #c9dbd1;
}

.job-empty h2 { margin: 8px 0; }
.job-empty p { color: var(--job-muted); }

.job-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.job-pages a,
.job-pages span {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--job-line);
    color: var(--job-ink);
}

.job-pages .is-current {
    background: var(--job-green);
    color: #fff;
    border-color: var(--job-green);
}

.job-detail { padding: 22px; }
.job-detail__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.job-detail h1 { margin: 8px 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.job-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}
.job-fact {
    background: var(--job-mint);
    border-radius: 14px;
    padding: 14px;
}
.job-fact small { display: block; color: var(--job-muted); margin-bottom: 4px; }
.job-fact strong { font-size: 16px; }
.job-section { margin-top: 22px; }
.job-section h2 { margin: 0 0 10px; font-size: 22px; }
.job-section p { margin: 0; white-space: pre-wrap; line-height: 1.6; }
.job-section ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.job-related { margin-top: 28px; }
.job-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.job-related a {
    display: block;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--job-line);
    text-decoration: none;
    color: inherit;
}
.job-related a:hover { border-color: #8fbfa4; }
.job-copy-note { min-height: 1.2em; color: var(--job-green); font-size: 14px; }

@media (max-width: 900px) {
    .job-layout,
    .job-facts,
    .job-related__grid { grid-template-columns: 1fr; }
    .job-filters { position: static; }
    .job-toolbar { flex-direction: column; align-items: stretch; }
    .job-sort { width: 100%; }
    .job-detail__head { flex-direction: column; }
}

.job-card h2,
.job-detail h1,
.job-fact strong,
.job-related h3 { overflow-wrap: anywhere; }

.job-page .job-pages a:hover,
.job-page .job-pages a:focus {
    color: #fff;
    background: var(--job-green);
    border-color: var(--job-green);
    text-decoration: none;
}

.job-dialog {
    inset: 0;
    margin: auto;
    width: min(100% - 1.5rem, 480px);
    max-width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px) - 1rem);
    max-height: calc(100dvh - 1.5rem);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: var(--job-ink);
    box-shadow: 0 24px 70px rgba(8, 22, 14, 0.28);
}

.job-dialog::backdrop { background: rgba(8, 22, 14, 0.45); }

.job-dialog__body {
    padding: 20px;
    overflow: auto;
    max-height: calc(100dvh - 1.5rem);
}

.job-dialog__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job-dialog__head h2 { margin: 0; font-size: 22px; }
.job-dialog__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--job-ink);
    min-width: 44px;
    min-height: 44px;
}
.job-dialog__lead { margin: 8px 0 14px; color: var(--job-muted); }
.job-dialog__error { margin: 0 0 12px; color: #9f1239; background: #fff1f2; border-radius: 10px; padding: 10px 12px; }
.job-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-weight: 600; }
.job-field input {
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    min-height: 46px;
    border: 1px solid #d5e0d9;
    border-radius: 12px;
    padding: 10px 12px;
    width: 100%;
}
.job-field small { font-weight: 400; color: var(--job-muted); }
.job-dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.job-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
    .job-wrap { width: min(1180px, calc(100% - 20px)); }
    .job-hero { min-height: 190px; }
    .job-search { flex-direction: column; }
    .job-actions .job-btn,
    .job-dialog__actions .job-btn { width: 100%; }
    .job-grid { grid-template-columns: 1fr; }
    .job-dialog__actions { flex-direction: column; }
}
