:root {
  color-scheme: light;
  --ink: #17231e;
  --ink-soft: #34443d;
  --muted: #5b6b64;
  --line: #ccd6d0;
  --line-strong: #aebdb5;
  --surface: #ffffff;
  --surface-soft: #f4f7f5;
  --green: #0f5138;
  --green-dark: #093c29;
  --green-soft: #e8f2ed;
  --gold: #c69214;
  --gold-soft: #fff5d8;
  --link: #075e9b;
  --danger: #a12d2d;
  --danger-soft: #fff0f0;
  --success: #17633f;
  --success-soft: #eaf5ef;
  --shadow: 0 8px 24px rgba(24, 45, 35, 0.07);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--surface-soft); line-height: 1.5; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, .button, .page-link, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: 12px; transform: translateY(-160%); padding: 10px 14px; border-radius: 6px; color: #fff; background: var(--green-dark); font-weight: 750; }
.skip-link:focus { transform: translateY(0); }
.sr-only { 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; }
.site-wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.content-wrap { width: min(960px, calc(100% - 40px)); margin: 0 auto; }
.site-header { border-top: 4px solid var(--gold); border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 800; text-decoration: none; }
.brand::before { content: ""; width: 7px; height: 28px; border: 0; border-bottom: 8px solid var(--gold); border-radius: 2px; background: var(--green); }
.site-nav, .footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-soft); font-weight: 700; }
.site-nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.site-main { min-height: calc(100vh - 150px); padding: 34px 0 56px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: 0; }
h1 { margin: 0; font-size: 40px; }
h2 { font-size: 20px; }
p { color: var(--ink-soft); }
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.search-band { padding: 30px 0 26px; border-bottom: 1px solid var(--line); background: var(--surface); }
.search-band h1 { margin-bottom: 20px; }
.search-form { display: grid; gap: 14px; }
.search-primary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.search-actions { display: flex; gap: 8px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-label, .field > label { color: var(--ink-soft); font-size: 13px; font-weight: 750; }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 13px; color: var(--ink); background: var(--surface); }
input:hover, select:hover, textarea:hover { border-color: var(--green); }
select option:disabled { color: var(--muted); }
textarea { min-height: 160px; padding: 11px 13px; line-height: 1.5; resize: vertical; }
.button, button { min-height: 46px; border: 1px solid var(--green); border-radius: 6px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--green); font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover, button:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; }
.button.secondary { color: var(--green); background: var(--surface); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--green-soft); border-color: var(--green); }
.filter-disclosure { border: 0; }
.filter-disclosure > summary { display: none; }
.filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.check-field { min-height: 46px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink-soft); background: var(--surface); font-size: 14px; }
.check-field input { width: 18px; min-height: 18px; margin: 0; padding: 0; }
.check-field.is-disabled { opacity: .58; }
.results-shell { padding: 22px 0 0; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 12px; }
.result-count { margin: 0; color: var(--ink-soft); font-size: 14px; font-weight: 650; }
.results-actions { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.search-mode { padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 750; }
.search-results { transition: opacity 140ms ease; }
.search-results.is-loading { opacity: .55; }
.results-list { display: grid; gap: 10px; }
.job-result { padding: 17px 18px; border: 1px solid var(--line); border-left: 4px solid transparent; border-radius: var(--radius); background: var(--surface); }
.job-result:hover, .job-result:focus-within { border-left-color: var(--gold); box-shadow: var(--shadow); }
.job-result__header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.job-result h2 { margin: 0; font-size: 18px; }
.job-result h2 a { color: var(--ink); }
.job-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 7px 0 8px; color: var(--muted); font-size: 13px; }
.job-meta span { overflow-wrap: anywhere; }
.job-description { margin: 0; font-size: 14px; line-height: 1.5; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border: 1px solid #a9cdbc; border-radius: 999px; color: var(--success); background: var(--success-soft); font-size: 12px; font-weight: 800; white-space: nowrap; }
.empty-state, .notice, .error-summary, .search-error { padding: 14px 16px; border-radius: var(--radius); }
.empty-state { border: 1px dashed var(--line-strong); background: var(--surface); color: var(--muted); }
.notice { border: 1px solid #aad0bd; color: var(--success); background: var(--success-soft); }
.error-summary, .search-error { border: 1px solid #dfa7a7; color: var(--danger); background: var(--danger-soft); }
.error-summary h2 { margin: 0 0 4px; font-size: 17px; }
.error-summary p, .search-error { color: var(--danger); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.page-actions { display: flex; gap: 8px; }
.page-link { min-height: 44px; padding: 0 13px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); font-weight: 750; text-decoration: none; }
.page-link[aria-disabled="true"] { color: var(--muted); background: #eef1ef; border-color: var(--line); }
.back-link { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 14px; font-weight: 700; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.job-article { min-width: 0; }
.job-article h1 { overflow-wrap: anywhere; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.detail-description { margin: 22px 0; font-size: 16px; line-height: 1.65; white-space: pre-line; }
.detail-facts { margin: 26px 0 0; border-top: 1px solid var(--line); }
.detail-facts > div { display: grid; grid-template-columns: minmax(120px, .45fr) 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-facts dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.detail-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.apply-panel { position: sticky; top: 20px; padding: 20px; border-top: 4px solid var(--gold); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.apply-panel h2 { margin: 0 0 8px; }
.apply-panel .button { width: 100%; margin-top: 8px; }
.apply-panel__note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.closed-listing { max-width: 760px; }
.closed-listing h1 { overflow-wrap: anywhere; }
.closed-notice { margin-top: 24px; padding: 20px; border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); box-shadow: var(--shadow); }
.closed-notice h2 { margin: 0 0 6px; }
.closed-notice p { margin: 0; }
.similar-jobs { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line); }
.similar-jobs__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.similar-jobs__heading h2 { margin: 0; font-size: 24px; }
.similar-jobs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.similar-job { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.similar-job:hover, .similar-job:focus-within { border-color: var(--gold); box-shadow: var(--shadow); }
.similar-job h3 { margin: 0; font-size: 17px; }
.similar-job h3 a { color: var(--ink); overflow-wrap: anywhere; }
.similar-job__company { margin: 6px 0 0; font-size: 14px; font-weight: 750; }
.public-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.intro { max-width: 700px; margin: 8px 0 24px; color: var(--muted); }
.employer-form { display: grid; gap: 24px; }
.form-section { margin: 0; padding: 0; border: 0; }
.form-section + .form-section { padding-top: 22px; border-top: 1px solid var(--line); }
.form-section legend { width: 100%; margin: 0 0 14px; padding: 0; color: var(--ink); font-size: 19px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field.full { grid-column: 1 / -1; }
.field-error { color: var(--danger); font-size: 12px; font-weight: 700; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.website-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.information { max-width: 760px; }
.information h1 { margin-bottom: 8px; }
.information h2 { margin: 30px 0 8px; }
.information p, .information li { font-size: 15px; line-height: 1.7; }
.information ul { padding-left: 22px; }
.updated { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.contact-line { margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-footer { padding: 24px 0 34px; border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .site-wrap, .content-wrap { width: min(100% - 32px, 1160px); }
  .site-header__inner { min-height: 62px; gap: 12px; }
  .brand { font-size: 18px; }
  .site-nav { gap: 12px; font-size: 14px; }
  .site-main { padding: 24px 0 40px; }
  .search-band { padding: 22px 0 18px; }
  .search-band h1 { margin-bottom: 14px; font-size: 30px; }
  .search-primary { grid-template-columns: 1fr auto; }
  .search-primary .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .filter-disclosure { border-top: 1px solid var(--line); padding-top: 10px; }
  .filter-disclosure > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; color: var(--green); font-weight: 800; cursor: pointer; }
  .filter-disclosure > summary::after { content: "+"; font-size: 22px; font-weight: 500; }
  .filter-disclosure[open] > summary::after { content: "−"; }
  .filter-grid { grid-template-columns: 1fr; padding-top: 8px; }
  .results-shell { padding-top: 16px; }
  .job-result { padding: 15px 14px; }
  .job-result__header { display: block; }
  .job-result .badge { margin-top: 10px; }
  .pagination, .site-footer__inner { align-items: flex-start; flex-direction: column; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .apply-panel { position: static; order: -1; }
  .detail-facts > div { grid-template-columns: 1fr; gap: 3px; }
  .similar-jobs__grid { grid-template-columns: 1fr; }
  .public-panel { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
}

@media (max-width: 430px) {
  .site-header__inner { display: grid; padding: 10px 0; }
  .site-nav a { min-height: 36px; }
  .search-primary { grid-template-columns: 1fr; }
  .search-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .search-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
