:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #213c32;
  background: #f6faf5;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; }
a { color: #286b50; text-underline-offset: 3px; }
a:hover { color: #174a35; }
button, input { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid #85bc9c; outline-offset: 3px; }
[hidden] { display: none !important; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  border-bottom: 1px solid #dce9dc;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 4px 24px rgb(33 71 49 / 4%);
}
.site-header-inner, .site-main, .site-footer-inner { width: min(100% - 48px, 1080px); margin-inline: auto; }
.site-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #1b4532; font-size: 1.13rem; font-weight: 800; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #d9efde; color: #276946; font-size: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); flex-wrap: wrap; }
.site-nav > a { color: #49695a; font-size: .93rem; font-weight: 650; text-decoration: none; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: #1b6040; }
.site-nav form { margin: 0; }
.site-nav .button { padding: 9px 15px; font-size: .9rem; }
.site-main { flex: 1; padding-block: clamp(40px, 6vw, 76px) 88px; }
.site-footer { border-top: 1px solid #e0ebdf; background: #f0f7ef; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; color: #64806d; font-size: .85rem; }
.site-footer a { color: #3d7558; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a:hover, .hero-legal a:hover { text-decoration: underline; }

.eyebrow { margin: 0 0 13px; color: #458664; font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 15px; color: #183b2c; font-size: clamp(2.3rem, 5.5vw, 4rem); line-height: 1.08; letter-spacing: -.055em; }
h2 { color: #244a36; font-size: 1.15rem; line-height: 1.35; letter-spacing: -.025em; }
p { line-height: 1.65; }
.lead { max-width: 680px; color: #5a7463; font-size: clamp(1.05rem, 2vw, 1.18rem); }
.muted { color: #64806d; }
.page-heading { max-width: 730px; margin-bottom: 34px; }
.page-heading p:last-child { margin-bottom: 0; }
.section-heading { margin-top: 42px; margin-bottom: 18px; font-size: 1.3rem; }
.back-link { display: inline-flex; align-items: center; margin-bottom: 23px; font-weight: 650; text-decoration: none; }

.panel, .card {
  background: #fff;
  border: 1px solid #dfeadf;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgb(35 76 48 / 5%);
}
.panel { padding: clamp(24px, 4vw, 40px); }
.card { padding: 23px 26px; margin-bottom: 14px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.card:hover { border-color: #b6d6bd; box-shadow: 0 15px 36px rgb(35 76 48 / 9%); transform: translateY(-2px); }
.card h2 { margin-bottom: 8px; }
.card h2 a { color: #245e42; text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p:last-child { margin-bottom: 0; }
.card-meta { color: #69806d; font-size: .93rem; }
.results { display: grid; gap: 14px; }
.results .card { margin-bottom: 0; }
.empty-state { padding: 35px; border: 1px dashed #b8d4bc; border-radius: 16px; background: #f9fcf9; color: #617b68; }

.search-form { display: flex; gap: 10px; max-width: 760px; margin: 26px 0; }
.job-search-form { display: block; }
.search-row { display: flex; gap: 10px; }
.search-form input, .search-form select { min-width: 0; min-height: 48px; padding: 12px 16px; border: 1px solid #c9dccb; border-radius: 11px; background: #fff; color: #213c32; box-shadow: 0 2px 9px rgb(23 70 40 / 3%); }
.search-form > input, .search-row input { flex: 1; }
.search-form input::placeholder { color: #8aa092; }
.search-form input:focus, .search-form select:focus { border-color: #73a984; outline: 3px solid #dcefe0; }
.advanced-search { margin-top: 14px; padding: 15px 18px; border: 1px solid #dce9dc; border-radius: 12px; background: #fff; }
.advanced-search summary { cursor: pointer; color: #286b50; font-weight: 700; }
.filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 17px; }
.filter-grid label { display: grid; gap: 6px; color: #49695a; font-size: .9rem; font-weight: 650; }
.filter-grid input, .filter-grid select { width: 100%; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.pagination span { color: #49695a; font-weight: 650; }
.button, button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 19px; border: 1px solid #367854; border-radius: 11px; background: #367854; color: white; font-weight: 700; line-height: 1.2; text-decoration: none; box-shadow: 0 4px 12px rgb(39 106 67 / 12%); transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover, button:hover { border-color: #245e40; background: #245e40; color: white; transform: translateY(-1px); }
.button:disabled, button:disabled { opacity: .55; cursor: default; transform: none; }
.button-secondary { border-color: #bdd7c2; background: #eaf5eb; color: #225b3c; box-shadow: none; }
.button-secondary:hover { border-color: #9fc9aa; background: #d9efde; color: #174a35; }
.text-link { font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.hero { min-height: calc(100vh - 84px); display: grid; place-items: center; padding: 36px 24px; background: radial-gradient(circle at 16% 10%, #e2f3e6 0, transparent 34%), radial-gradient(circle at 92% 86%, #e6f2e1 0, transparent 34%), #f6faf5; }
.hero-card { width: min(100%, 660px); padding: clamp(30px, 6vw, 56px); border: 1px solid #dce9dc; border-radius: 28px; background: #fff; box-shadow: 0 25px 65px rgb(36 86 52 / 10%); }
.hero-card h1 { max-width: 550px; }
.hero-card .lead { margin-bottom: 0; }
.hero-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.choice { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 144px; padding: 22px; border: 1px solid #d4e7d8; border-radius: 16px; background: #f5faf5; color: #1e4d34; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.choice:hover { border-color: #89bd96; background: #eaf6ec; color: #1b5035; transform: translateY(-2px); }
.choice-symbol { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: #d9efde; font-size: 1.1rem; }
.choice strong { display: block; font-size: 1.05rem; }
.choice small { display: block; margin-top: 3px; color: #64806d; font-size: .85rem; line-height: 1.4; }
.hero-signin { margin: 27px 0 0; color: #69806d; font-size: .92rem; text-align: center; }
.hero-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font-size: .84rem; }
.hero-legal a { color: #527a60; text-decoration: none; }
.legal-note { margin-top: 16px; font-size: .88rem; }
.legal-page { max-width: 800px; margin-inline: auto; }
.legal-page .panel { padding: clamp(25px, 5vw, 48px); }
.legal-page h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); }
.legal-page h2 { margin: 34px 0 10px; font-size: 1.3rem; }
.legal-page p, .legal-page li { color: #49695a; }
.legal-page ul { padding-left: 22px; line-height: 1.65; }
.legal-page li + li { margin-top: 7px; }
.legal-page a { overflow-wrap: anywhere; }
.legal-updated { margin-bottom: 26px; color: #64806d; font-size: .9rem; }

.auth-panel { max-width: 600px; }
.auth-panel h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
.auth-panel .button { margin: 12px 0 15px; }
.profile-list { display: grid; gap: 15px; margin: 25px 0; }
.profile-row { padding: 16px 18px; border: 1px solid #e2ece2; border-radius: 12px; background: #f8fbf8; }
.profile-row span { display: block; margin-bottom: 4px; color: #718977; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.profile-row strong { overflow-wrap: anywhere; font-size: 1.02rem; }
.link-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin: 18px 0 28px; }
.link-row a { font-weight: 650; text-decoration: none; }
.link-row a:hover { text-decoration: underline; }

.notice-list { margin-bottom: 26px; }
.notice { padding: 13px 18px; border: 1px solid #aed5b5; border-radius: 12px; background: #eaf7ec; color: #245a3c; font-weight: 650; }
.control-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; margin: 0 0 24px; border: 1px solid #bfdcc5; border-radius: 17px; background: linear-gradient(115deg, #edf8ee, #f9fcf8); }
.control-banner .eyebrow { margin-bottom: 6px; }
.control-banner h2 { margin-bottom: 4px; font-size: 1.25rem; }
.control-banner p:last-child { margin-bottom: 0; }
.control-banner form { flex: none; }
.discovery-panel { padding: 26px 28px; border: 1px solid #dce9dc; border-radius: 17px; background: #fff; }
.discovery-panel h2 { margin-bottom: 6px; font-size: 1.5rem; }
.discovery-panel .muted { max-width: 760px; }
.discovery-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.discovery-form label { display: grid; gap: 6px; color: #526e5a; font-size: .85rem; font-weight: 700; }
.discovery-form input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #c9dccb; border-radius: 10px; background: #fff; }
.discovery-form button { justify-self: start; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 50px; }
.stat-card { padding: 22px; border: 1px solid #dce9dc; border-radius: 16px; background: #fff; box-shadow: 0 8px 26px rgb(35 76 48 / 4%); }
.stat-card > span { display: block; color: #688372; font-size: .8rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.stat-card strong { display: block; margin: 12px 0 2px; color: #214c34; font-size: 2.2rem; line-height: 1; letter-spacing: -.055em; }
.stat-card strong small { color: #8fa998; font-size: 1rem; }
.stat-card p { margin: 0; color: #718a77; font-size: .88rem; }
.stat-warning strong { color: #a55935; }
.admin-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 48px 0 16px; }
.admin-intro h2 { margin-bottom: 5px; font-size: 1.5rem; }
.admin-intro p { margin-bottom: 0; font-size: .94rem; }
.admin-filter { display: flex; gap: 8px; }
.admin-filter input { width: min(260px, 40vw); padding: 10px 12px; border: 1px solid #c9dccb; border-radius: 10px; background: #fff; }
.admin-filter button { min-height: 40px; padding: 8px 14px; }
.table-scroll { overflow-x: auto; border: 1px solid #dfeadf; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgb(35 76 48 / 4%); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; text-align: left; }
.admin-table th, .admin-table td { padding: 15px 18px; border-bottom: 1px solid #e8f0e8; vertical-align: middle; }
.admin-table thead th { background: #f3f9f3; color: #688373; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.admin-table tbody tr:last-child th, .admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody th { color: #214b34; font-weight: 700; }
.admin-table td { color: #526e5a; }
.table-subtle { display: block; margin-top: 4px; color: #859b89; font-size: .78rem; font-weight: 450; line-height: 1.4; }
.table-subtle a { color: #50775b; }
.status-pill { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: .77rem; font-weight: 750; white-space: nowrap; }
.status-pill.is-active { background: #e4f4e7; color: #246f45; }
.status-pill.is-paused { background: #edf1ea; color: #687b6d; }
.status-pill.is-error { background: #fff0e9; color: #aa5635; }
.error-text { color: #a55935; overflow-wrap: anywhere; }
.button-small { min-height: 34px; padding: 7px 11px; border-radius: 8px; font-size: .79rem; white-space: nowrap; }
.inline-form, .admin-actions { display: flex; align-items: center; gap: 7px; }
.inline-form input { width: 58px; min-height: 34px; padding: 5px 7px; border: 1px solid #c9dccb; border-radius: 8px; }
.admin-table form { margin: 0; }
.source-table { min-width: 1050px; }

@media (max-width: 640px) {
  .site-header-inner, .site-main, .site-footer-inner { width: min(100% - 32px, 1080px); }
  .site-header-inner { min-height: 70px; padding-block: 15px; align-items: flex-start; flex-direction: column; gap: 13px; }
  .site-nav { width: 100%; gap: 14px 20px; }
  .site-main { padding-block: 38px 65px; }
  .site-footer-inner { align-items: flex-start; flex-direction: column; }
  .hero-choices { grid-template-columns: 1fr; }
  .choice { min-height: 115px; }
  .search-row { flex-direction: column; }
  .search-form:not(.job-search-form) { flex-direction: column; }
  .search-form:not(.job-search-form) button { width: 100%; }
  .search-row button { width: 100%; }
  .filter-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 17px; }
  .admin-intro { align-items: stretch; flex-direction: column; }
  .admin-filter input { width: 100%; }
  .control-banner { align-items: flex-start; flex-direction: column; padding: 22px; }
  .discovery-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .choice, .button, button { transition: none; }
  .card:hover, .choice:hover, .button:hover, button:hover { transform: none; }
}
