/* The header inherits the shared inner-page hero design. */
.page-jobs { overflow-anchor:none; }
.jobs-flow { position:absolute; z-index:-1; width:min(85vw,1200px); height:140%; top:-20%; right:-16%; color:#bdce7866; pointer-events:none; }
/* The hero clips the extended curves; the SVG box must not cut off their ends. */
.jobs-flow svg { display:block; width:100%; height:100%; overflow:visible; animation:jobs-flow-drift 14s ease-in-out infinite alternate; }
@keyframes jobs-flow-drift { from { transform:translate(-2%,3%) rotate(-3deg); } to { transform:translate(2%,-3%) rotate(3deg); } }
@media(max-width:800px) { .jobs-flow { width:160vw; right:-60%; color:#bdce7855; } }
.motion-paused .jobs-flow svg { animation:none; }
@media(prefers-reduced-motion:reduce) { .jobs-flow svg { animation:none; } }
.page-jobs .jobs-section { padding-top:88px; padding-bottom:76px; }
.page-jobs .job-filters { grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr)); gap:16px 24px; padding:24px; background:#edf1e7; border:1px solid var(--line); border-radius:6px; }
.page-jobs .job-filters>div { min-width:0; }
.page-jobs .job-filters label { color:var(--ink); font-size:14px; margin-bottom:8px; }
.page-jobs .job-filters :is(input,select) { padding:12px; min-width:0; min-height:50px; background:var(--paper); border:1px solid var(--line); border-radius:3px; }
.page-jobs .job-filters :is(input,select):focus-visible { outline:2px solid var(--green); outline-offset:2px; }
.page-jobs .filter-reset { padding:4px 0; min-height:28px; }
.jobs-results-heading { display:flex; justify-content:space-between; align-items:baseline; gap:12px 28px; margin:32px 0 20px; }
.jobs-results-heading h2 { font-size:calc(clamp(26px,2.6vw,36px) * var(--section-heading-scale, 1)); line-height:1.15; }
.jobs-results-heading .job-count { margin:0; }
.page-jobs .job-card>div { min-width:0; }
.page-jobs .job-card h3 { overflow-wrap:anywhere; }
.page-jobs .job-card :is(.job-location,.job-meta) { font-size:14px; }
.page-jobs .job-card:focus-visible { outline:2px solid var(--green); outline-offset:3px; background:#eaf0df; }
.page-jobs .salary-note { font-size:14px; }
/* A selected role gets a compact, useful masthead instead of the listing-page hero. */
.page-jobs.viewing-job .jobs-hero {
  min-height:0; padding-top:150px; padding-bottom:56px;
  justify-content:flex-start;
}
.job-hero-back { display:block; width:fit-content; font-size:14px; color:#cfddd2; margin-bottom:26px; }
.page-jobs.viewing-job .jobs-hero > .home-kicker { margin:0 0 16px; animation:none; }
.page-jobs.viewing-job .jobs-hero h1 {
  max-width:1100px; margin:0; font-size:clamp(36px,4.5vw,68px); line-height:1.12;
  letter-spacing:-.035em; overflow-wrap:anywhere;
}
.job-detail-meta { display:flex; flex-wrap:wrap; gap:20px 48px; margin:28px 0 0; }
.jobs-hero h1:focus { outline:none; }
.job-detail-meta dt { color:#baccc0; font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.job-detail-meta dd { margin:6px 0 0; color:var(--paper); font-size:18px; line-height:1.45; }
.page-jobs.viewing-job .jobs-hero-actions { align-items:center; margin:28px 0 0; padding-top:24px; border-top:1px solid #ffffff30; }
.page-jobs.viewing-job .jobs-hero-actions > * { animation:none; }
.page-jobs.viewing-job .jobs-hero-intro { max-width:650px; font-size:16px; }
.page-jobs.viewing-job .jobs-hero .jobs-flow { opacity:.55; }
.page-jobs.viewing-job .jobs-hero .expertise-jump-links { display:none; }
.page-jobs.viewing-job .jobs-section { padding-top:28px; }
@media(max-width:800px) {
  .page-jobs.viewing-job .jobs-hero { padding-top:126px; padding-bottom:48px; }
  .job-hero-back { margin-bottom:22px; }
  .job-detail-meta { gap:18px 28px; margin-top:24px; }
  .job-detail-meta dd { font-size:16px; }
  .page-jobs.viewing-job .jobs-hero-actions { display:flex; align-items:flex-start; flex-direction:column; gap:20px; }
  .page-jobs.viewing-job .jobs-hero-actions .button { margin-top:0; }
}
@media(max-width:800px) {
  .page-jobs:not(.viewing-job) .jobs-section { padding-top:56px; }
  .page-jobs .job-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:20px; }
  .page-jobs .job-filters .search-field { grid-column:1/-1; }
  .jobs-results-heading { flex-direction:column; gap:10px; margin-top:28px; }
}
@media(max-width:480px) {
  .page-jobs .job-filters { grid-template-columns:minmax(0,1fr); padding:18px; }
}
