:root {
  --ink: #172033;
  --muted: #5f687a;
  --navy: #15234a;
  --blue: #255ee5;
  --blue-dark: #1745ae;
  --line: #dde3ec;
  --soft: #f5f7fb;
  --white: #fff;
  --date: #edf3ff;
  color: var(--ink);
  background: var(--white);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

.site-header, main, footer { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { display: flex; min-height: 78px; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 168px; height: auto; }

.hero { max-width: 900px; padding: 46px 0 30px; }
.hero h1 { max-width: 900px; margin-bottom: 15px; color: var(--navy); font-size: clamp(40px, 6vw, 66px); font-weight: 750; line-height: 1; letter-spacing: -.045em; }
.hero > p { max-width: 810px; margin-bottom: 0; color: #4f596c; font-size: 18px; line-height: 1.58; }

.jobs-shell { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--soft); }
.controls { display: grid; gap: 13px; }
.search-box { display: flex; min-height: 54px; align-items: center; gap: 12px; padding: 0 18px; border: 1px solid #ccd5e2; border-radius: 14px; background: var(--white); }
.search-box:focus-within { border-color: var(--blue); outline: 3px solid rgba(37,94,229,.12); }
.search-box svg { width: 21px; fill: none; stroke: #738095; stroke-width: 2; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; line-height: 1.4; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.filter-set { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; }
.filter-set button, .empty-state button { flex: 0 0 auto; min-height: 36px; padding: 0 13px; border: 1px solid #cbd4e2; border-radius: 999px; color: #344057; background: var(--white); font-size: 13px; font-weight: 700; }
.filter-set button.active { border-color: var(--blue); color: var(--white); background: var(--blue); }

.results-bar { display: flex; min-height: 52px; align-items: center; gap: 18px; padding: 12px 2px 9px; color: var(--muted); font-size: 13px; }
.results-bar strong { color: var(--ink); font-size: 15px; font-weight: 700; }
.results-bar button { margin-left: auto; border: 0; color: var(--blue-dark); background: transparent; font-weight: 700; }
.results-bar button:hover { text-decoration: underline; text-underline-offset: 3px; }

.month-group { margin-top: 18px; }
.month-group:first-of-type { margin-top: 6px; }
.month-group > h2 { margin: 0 0 9px; color: #44516a; font-size: 13px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.month-jobs { display: grid; gap: 8px; }
.job-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 98px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.job-row time { display: grid; align-content: center; justify-items: center; min-height: 68px; padding: 8px; border-radius: 11px; color: var(--blue-dark); background: var(--date); line-height: 1.1; }
.job-row time .date-label { margin-bottom: 4px; color: #52668c; font-size: 9px; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; }
.job-row time strong { font-size: 16px; font-weight: 750; white-space: nowrap; }
.job-row time span { margin-top: 4px; color: #66738b; font-size: 11px; font-weight: 650; letter-spacing: .05em; }
.job-main { min-width: 0; }
.job-main h3 { margin: 0 0 4px; color: var(--navy); font-size: 18px; font-weight: 750; line-height: 1.25; letter-spacing: -.015em; }
.job-main p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.match-label { display: inline-flex; margin-bottom: 7px; padding: 4px 7px; border-radius: 999px; color: #176048; background: #e8f7f1; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.job-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue-dark); font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.job-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.job-link span { color: var(--blue); font-size: 16px; transition: transform .15s ease; }
.job-link:hover span { transform: translateX(2px); }

.load-more-wrap { display: flex; justify-content: center; padding: 22px 0 4px; }
.load-more-wrap button { min-height: 46px; padding: 0 22px; border: 1px solid #b8c7e2; border-radius: 999px; color: var(--blue-dark); background: var(--white); font-size: 14px; font-weight: 750; }
.load-more-wrap button:hover { border-color: var(--blue); background: #eef4ff; }
.empty-state { padding: 60px 20px; text-align: center; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

.signup-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); align-items: center; gap: 28px; margin-top: 28px; padding: 30px 32px; border: 1px solid #d9e1ed; border-radius: 19px; background: var(--white); box-shadow: 0 10px 28px rgba(24, 43, 78, .05); }
.signup-section h2 { margin-bottom: 8px; color: var(--navy); font-size: clamp(25px, 3vw, 34px); font-weight: 750; line-height: 1.12; letter-spacing: -.03em; }
.signup-section p { margin-bottom: 0; color: #4f596c; font-size: 16px; line-height: 1.55; }
.signup-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.signup-form input { min-width: 0; height: 52px; padding: 0 15px; border: 1px solid #cbd4e2; border-radius: 11px; }
.signup-form input:focus { border-color: var(--blue); outline: 3px solid rgba(37,94,229,.12); }
.signup-form button { height: 52px; padding: 0 20px; border: 0; border-radius: 11px; color: var(--white); background: #173e98; font-weight: 750; white-space: nowrap; }
.signup-form button:disabled { cursor: not-allowed; opacity: .58; }
.turnstile-wrap, .signup-status { grid-column: 1 / -1; }
.turnstile-wrap { min-height: 65px; }
.signup-status { min-height: 17px; margin: 0; font-size: 12px; font-weight: 700; }
.signup-status:empty { display: none; }

.explanation { padding: 64px 0 74px; }
.explanation-heading { max-width: 790px; }
.explanation h2 { margin-bottom: 12px; color: var(--navy); font-size: clamp(30px, 4vw, 44px); line-height: 1.06; letter-spacing: -.04em; }
.explanation-heading p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 25px; }
.definition-grid article { padding: 23px; border: 1px solid var(--line); border-radius: 16px; }
.definition-grid strong { display: block; margin-bottom: 9px; color: var(--navy); font-size: 17px; }
.definition-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.related-section { padding: 54px 0 74px; }
.related-section h2 { margin-bottom: 18px; color: var(--navy); font-size: 28px; letter-spacing: -.025em; }
.related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.related-links a { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.related-links a:hover { border-color: #aebdd7; }
.related-links strong { color: var(--navy); font-size: 16px; line-height: 1.3; }
.related-links span { color: var(--muted); font-size: 13px; line-height: 1.5; }

footer { padding: 24px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .filter-row { display: grid; }
  .signup-section { grid-template-columns: 1fr; }
  .related-links { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1120px); }
  .site-header { min-height: 68px; }
  .brand img { width: 148px; }
  .hero { padding: 30px 2px 24px; }
  .hero h1 { margin-bottom: 13px; font-size: 40px; line-height: 1.02; }
  .hero > p { font-size: 16px; }
  .jobs-shell { padding: 14px; border-radius: 18px; }
  .filter-set { flex-wrap: wrap; overflow-x: visible; }
  .filter-set button { padding-inline: 11px; }
  .results-bar span { display: none; }
  .job-row { grid-template-columns: 70px minmax(0, 1fr); column-gap: 14px; row-gap: 8px; padding: 14px; }
  .job-row time { min-height: 68px; }
  .job-main h3 { font-size: 17px; }
  .job-link { grid-column: 2; justify-self: start; margin-top: 0; }
  .signup-section { gap: 20px; padding: 24px 20px; }
  .signup-form { grid-template-columns: 1fr; }
  .turnstile-wrap, .signup-status { grid-column: 1; }
  .definition-grid { grid-template-columns: 1fr; }
  .explanation { padding: 52px 2px 24px; }
  .related-section { padding: 42px 2px 60px; }
}
