:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #66716e;
  --muted-light: #89928f;
  --line: #e4e9e7;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --green: #08785f;
  --green-dark: #05634f;
  --green-soft: #e9f5f1;
  --shadow: 0 8px 28px rgb(22 44 37 / 5%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "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(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgb(228 233 231 / 85%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(14px);
}

.header-inner, .footer-inner {
  width: min(1120px, calc(100% - 56px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 29px;
  font-weight: 760;
  letter-spacing: -1.7px;
  line-height: 1;
  text-decoration: none;
}

.brand span { color: var(--green); }

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #3f4c48;
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
  transition: color 160ms ease;
}

.header-link:hover, .header-link:focus-visible { color: var(--green); }
.header-link svg, .card-action svg, .apply-button svg, .original-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.page-shell { width: min(1120px, calc(100% - 56px)); margin: 0 auto; }

.listing-intro {
  max-width: 730px;
  padding: 74px 0 54px;
}

.eyebrow, .section-kicker {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

h1, h2, h3, p { overflow-wrap: anywhere; }

.listing-intro h1 {
  max-width: 690px;
  margin: 18px 0 14px;
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 690;
  letter-spacing: -2.8px;
  line-height: 1.08;
}

.intro-copy { max-width: 560px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.jobs-section { padding: 28px 0 92px; border-top: 1px solid var(--line); scroll-margin-top: 94px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-kicker { margin-bottom: 8px; font-size: 10px; letter-spacing: 1.15px; }
.section-heading h2 { margin: 0; font-size: clamp(22px, 3vw, 27px); font-weight: 680; letter-spacing: -.8px; line-height: 1.2; }
.results-count { margin: 0 0 3px; color: var(--muted); font-size: 13px; }

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

.job-card {
  min-width: 0;
  min-height: 182px;
  padding: 21px 22px 19px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(25 45 38 / 2%);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.job-card:hover { transform: translateY(-2px); border-color: #b8d9ce; box-shadow: var(--shadow); }
.job-card:focus-visible, .related-card:focus-visible, .header-link:focus-visible, .brand:focus-visible, .apply-button:focus-visible, .original-link:focus-visible { outline: 3px solid rgb(8 120 95 / 28%); outline-offset: 3px; }
.card-topline { display: flex; align-items: center; gap: 10px; }

.card-mark, .source-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.card-mark { width: 36px; height: 36px; }
.card-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.source-pill { display: inline-flex; align-items: center; max-width: 100%; padding: 5px 10px; border: 1px solid #e5ebe8; border-radius: 999px; color: #53615d; font-size: 11px; font-weight: 560; line-height: 1; }
.card-title { margin: 20px 0 18px; font-size: 18px; font-weight: 650; letter-spacing: -.35px; line-height: 1.4; }
.card-bottomline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; color: var(--muted); font-size: 12px; }
.card-date { line-height: 1.4; }
.card-action { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; color: var(--green); font-weight: 650; }
.card-action svg { width: 15px; height: 15px; }

.state-message { margin: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); color: var(--muted); font-size: 14px; line-height: 1.6; }
.state-message:empty { display: none; }
.state-empty { color: #4e5c57; }
.state-error { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; border-color: #ecd9d3; background: #fffaf8; color: #75483c; }
.state-note { margin-bottom: 16px; padding: 10px 14px; border-color: #e8edea; background: transparent; font-size: 12px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--green-dark); font: inherit; font-weight: 680; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.detail-shell { width: min(880px, calc(100% - 56px)); min-height: 65vh; margin: 0 auto; padding: 38px 0 88px; }
.detail-state { margin-top: 24px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--green-dark); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb svg { width: 14px; height: 14px; fill: none; stroke: var(--muted-light); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.detail-header { padding: 0 0 33px; border-bottom: 1px solid var(--line); }
.detail-heading-row { display: flex; align-items: center; gap: 13px; margin-bottom: 23px; }
.source-mark { width: 48px; height: 48px; }
.source-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.detail-heading-copy p { margin: 0; }
.source-name { color: var(--ink); font-size: 15px; font-weight: 680; }
.detail-date { margin-top: 5px !important; color: var(--muted); font-size: 13px; }
.detail-header h1 { max-width: 790px; margin: 0; font-size: clamp(30px, 5vw, 43px); font-weight: 700; letter-spacing: -1.6px; line-height: 1.16; }
.apply-button { width: fit-content; min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid var(--green); border-radius: 10px; background: var(--green); color: #fff; font-size: 15px; font-weight: 680; text-align: center; text-decoration: none; transition: background 150ms ease, border-color 150ms ease, transform 150ms ease; }
.apply-button:hover { transform: translateY(-1px); border-color: var(--green-dark); background: var(--green-dark); }
.apply-top { margin-top: 25px; }
.description-section { padding: 31px 0 38px; }
.description-section h2 { margin: 0 0 17px; font-size: 23px; font-weight: 690; letter-spacing: -.6px; }
.job-description { max-width: 760px; color: #3e4945; font-size: 16px; line-height: 1.78; white-space: pre-wrap; overflow-wrap: anywhere; }
.apply-bottom { margin-top: 29px; }
.original-link { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 19px; color: var(--green-dark); font-size: 13px; font-weight: 640; text-decoration: none; }
.original-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.original-link svg { width: 15px; height: 15px; }

.related-section { padding: 30px 0 0; border-top: 1px solid var(--line); }
.related-heading { margin-bottom: 17px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-card { min-width: 0; padding: 17px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.related-card:hover { border-color: #b8d9ce; box-shadow: var(--shadow); }
.related-card .card-title { margin: 14px 0 13px; font-size: 15px; line-height: 1.4; }
.related-date { color: var(--muted); font-size: 11px; }

.site-footer { border-top: 1px solid var(--line); background: #fbfcfb; }
.footer-inner { min-height: 77px; }
.brand-small { font-size: 21px; letter-spacing: -1.1px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 12px; }

[hidden] { display: none !important; }

@media (max-width: 720px) {
  .header-inner, .footer-inner, .page-shell, .detail-shell { width: min(100% - 36px, 560px); }
  .header-inner { min-height: 66px; }
  .brand { font-size: 26px; }
  .header-link { gap: 6px; font-size: 12px; }
  .listing-intro { padding: 54px 0 38px; }
  .listing-intro h1 { max-width: 500px; margin-top: 16px; font-size: clamp(36px, 9vw, 48px); letter-spacing: -2px; }
  .intro-copy { font-size: 15px; line-height: 1.6; }
  .jobs-section { padding: 25px 0 65px; }
  .job-grid { grid-template-columns: 1fr; gap: 11px; }
  .job-card { min-height: 160px; padding: 18px; border-radius: 13px; }
  .card-title { margin: 16px 0; font-size: 17px; }
  .card-bottomline { font-size: 11px; }
  .detail-shell { padding: 27px 0 64px; }
  .breadcrumb { margin-bottom: 23px; font-size: 12px; }
  .detail-header { padding-bottom: 27px; }
  .detail-heading-row { margin-bottom: 18px; }
  .detail-header h1 { font-size: clamp(29px, 8vw, 38px); letter-spacing: -1.2px; }
  .apply-button { width: 100%; min-height: 49px; }
  .description-section { padding: 26px 0 31px; }
  .description-section h2 { font-size: 21px; }
  .job-description { font-size: 15px; line-height: 1.72; }
  .related-grid { grid-template-columns: 1fr; }
  .related-card { padding: 16px; }
  .footer-inner { min-height: 70px; }
}

@media (max-width: 380px) {
  .header-inner, .footer-inner, .page-shell, .detail-shell { width: calc(100% - 28px); }
  .header-link { font-size: 11px; }
  .listing-intro h1 { font-size: 34px; }
  .card-bottomline { align-items: flex-start; flex-direction: column; }
  .card-action { margin-top: 1px; }
}

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