/* =====================================================================
   jobs.html only — job search results. Shared rules live in styles.css.
   No new colours, radii, shadows or type sizes: tokens only.
   ===================================================================== */

/* Height of the sticky search bar, used by the sticky sidebar and rail. */
.jobs-page{ --jobs-bar-h:78px; }

/* ---------- 1. Hero ----------------------------------------------- */
.jobs-hero{ padding-block:clamp(1.75rem,1.4rem + 2vw,3rem) clamp(1.75rem,1.4rem + 2vw,2.75rem); }
.jobs-hero__inner{ display:grid; gap:clamp(20px,3vw,44px); grid-template-columns:minmax(0,1fr); align-items:center; }
@media (min-width:1024px){ .jobs-hero__inner{ grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr); } }
.jobs-hero h1{ margin:var(--sp-3) 0 var(--sp-3); font-size:clamp(1.875rem,1.4rem + 2.1vw,2.875rem); }
.jobs-hero .lead{ max-width:58ch; margin:0; }

.jobs-hero__trust{ list-style:none; margin:var(--sp-6) 0 0; padding:0; display:flex; flex-wrap:wrap; gap:var(--sp-2) var(--sp-5); }
.jobs-hero__trust li{ margin:0; display:flex; align-items:center; gap:8px; font-size:var(--fs-sm); color:var(--text-muted); }
.jobs-hero__trust svg{ width:17px; height:17px; color:var(--forest-500); flex:none; }

.jobs-hero__stats{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--sp-3); }
@media (min-width:640px){ .jobs-hero__stats{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media (min-width:1024px){ .jobs-hero__stats{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.jobs-hero__stat{
  background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
  padding:var(--sp-4); box-shadow:var(--sh-xs); display:flex; flex-direction:column; gap:2px;
}
.jobs-hero__stat b{
  font-family:var(--font-head); font-size:clamp(1.25rem,1.1rem + .6vw,1.625rem); font-weight:700;
  color:var(--heading); line-height:1.15; font-variant-numeric:tabular-nums;
}
.jobs-hero__stat span{ font-size:var(--fs-xs); color:var(--text-muted); line-height:1.45; }

/* ---------- 2. Sticky search bar ---------------------------------- */
.jobs-searchbar{ background:#fff; border-bottom:1px solid var(--line); padding-block:var(--sp-3); }
@media (min-width:900px){
  .jobs-searchbar{ position:sticky; top:var(--header-h); z-index:calc(var(--z-sticky) + 1); box-shadow:var(--sh-xs); }
}
.jobs-searchbar .search-pill{ box-shadow:var(--sh-sm); }

.jobs-quick{ background:var(--surface-2); border-bottom:1px solid var(--line-soft); padding-block:var(--sp-3); }
.jobs-quick__inner{ display:flex; align-items:center; gap:var(--sp-2); overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
.jobs-quick__inner::-webkit-scrollbar{ display:none; }
.jobs-quick__label{ font-size:var(--fs-xs); font-weight:700; letter-spacing:var(--ls-eyebrow); text-transform:uppercase; color:var(--text-subtle); flex:none; }
.jobs-quick .chip{ flex:none; }

/* ---------- 3. Fraud strip ---------------------------------------- */
.jobs-fraud{ background:var(--saffron-50); border-bottom:1px solid var(--saffron-100); font-size:13.5px; color:var(--ink-800); }
.jobs-fraud[hidden]{ display:none; }
.jobs-fraud__inner{ display:flex; align-items:center; gap:10px; padding-block:9px; padding-right:34px; position:relative; line-height:1.5; }
.jobs-fraud__copy{ margin:0; }
.jobs-fraud svg{ width:17px; height:17px; color:var(--saffron-700); flex:none; }
.jobs-fraud a{ color:var(--saffron-800); font-weight:600; }
.jobs-fraud__close{
  position:absolute; right:0; top:50%; transform:translateY(-50%); width:30px; height:30px;
  display:grid; place-items:center; border:0; background:none; color:var(--text-muted); border-radius:var(--r-sm);
}
.jobs-fraud__close:hover{ background:var(--saffron-100); color:var(--ink-800); }

/* ---------- 4. Three column layout -------------------------------- */
.jobs-section{ padding-block:clamp(1.5rem,1.2rem + 1.4vw,2.5rem) clamp(2.5rem,2rem + 3vw,4.5rem); }
.jobs-layout{ display:grid; gap:clamp(16px,2vw,28px); align-items:start; grid-template-columns:minmax(0,1fr); }
@media (min-width:900px){ .jobs-layout{ grid-template-columns:266px minmax(0,1fr); } }
@media (min-width:1180px){ .jobs-layout{ grid-template-columns:258px minmax(0,1fr) 296px; } }

/* Sidebar column. Below 900px the filter turns into a bottom sheet, so the
   column itself must stop taking part in the grid. */
.jobs-aside{ min-width:0; }
@media (max-width:899.98px){ .jobs-aside{ display:contents; } }

@media (min-width:900px){
  .jobs-filters.filter--sticky{
    top:calc(var(--header-h) + var(--jobs-bar-h) + 16px);
    max-height:calc(100vh - var(--header-h) - var(--jobs-bar-h) - 32px);
    padding-right:2px; gap:var(--sp-3);
  }
}
.jobs-filters .filter__head h2{ margin:0; font-size:16px; }
.jobs-filters .filter__title-n{
  display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; margin-left:6px;
  border-radius:var(--r-pill); background:var(--saffron-500); color:var(--ink-900);
  font-size:11.5px; font-weight:700; font-family:var(--font-body);
}
.jobs-filters .filter__title-n[hidden]{ display:none; }
.jobs-filters .filter__opt{ cursor:pointer; }
.jobs-filters .filter__opt.is-empty{ opacity:.45; }
.filter__search{ margin-bottom:2px; }
.filter__more{
  align-self:flex-start; border:0; background:none; padding:2px 0; font-size:13px; font-weight:600;
  color:var(--forest-600); text-decoration:underline; text-underline-offset:3px;
}
.filter__more:hover{ color:var(--saffron-700); }
.filter__toggles{ display:flex; flex-direction:column; gap:10px; }

/* Sheet furniture, mobile only */
.jobs-sheet-head{ display:none; }
.jobs-sheet-foot{ display:none; }
.jobs-sheet-backdrop{
  display:none; position:fixed; inset:0; z-index:calc(var(--z-drawer) - 1); border:0; padding:0; width:100%;
  background:rgba(12,26,10,.45);
}
@media (max-width:899.98px){
  .jobs-sheet-backdrop.is-open{ display:block; }
  .jobs-filters .filter__head{ display:none; }
  .jobs-sheet-head{
    display:flex; align-items:center; justify-content:space-between; gap:var(--sp-3);
    position:sticky; top:calc(var(--sp-5) * -1); margin:calc(var(--sp-5) * -1) calc(var(--sp-4) * -1) var(--sp-3);
    padding:var(--sp-4); background:#fff; border-bottom:1px solid var(--line); z-index:2;
  }
  .jobs-sheet-head h2{ margin:0; font-size:17px; }
  .jobs-sheet-foot{
    display:flex; gap:10px; position:sticky; left:0; right:0; bottom:calc((84px + env(safe-area-inset-bottom,0px)) * -1); z-index:3;
    margin:var(--sp-4) calc(var(--sp-4) * -1) calc((84px + env(safe-area-inset-bottom,0px)) * -1);
    padding:12px var(--sp-4) calc(12px + env(safe-area-inset-bottom,0px));
    background:#fff; border-top:1px solid var(--line); box-shadow:0 -8px 24px -14px rgba(12,26,10,.3);
  }
  .jobs-filters:not(.is-open) .jobs-sheet-foot{ display:none; }
  .jobs-sheet-foot .btn{ flex:1; }
}

/* ---------- 5. Results column ------------------------------------- */
.jobs-results{ min-width:0; display:flex; flex-direction:column; gap:var(--sp-4); }

.jobs-toolbar{
  display:flex; align-items:center; gap:var(--sp-3) var(--sp-4); flex-wrap:wrap;
  padding:var(--sp-3) var(--sp-4); background:#fff; border:1px solid var(--line); border-radius:var(--r-lg);
}
@media (max-width:899.98px){
  .jobs-toolbar{
    position:sticky; top:var(--header-h); z-index:var(--z-sticky);
    background:rgba(255,255,255,.96); backdrop-filter:saturate(1.4) blur(10px); box-shadow:var(--sh-sm);
  }
}
.jobs-toolbar__copy{ flex:1; min-width:150px; }
.jobs-toolbar h2{ margin:0; font-size:17px; line-height:1.3; }
.jobs-toolbar__sub{ margin:2px 0 0; font-size:var(--fs-xs); color:var(--text-muted); }
.jobs-sort{ display:flex; align-items:center; gap:8px; flex:none; }
.jobs-sort label{ font-size:var(--fs-sm); color:var(--text-muted); white-space:nowrap; }
.jobs-sort .select{ min-height:40px; padding:6px 38px 6px 12px; font-size:var(--fs-sm); }
.jobs-filterbtn{ flex:none; }
@media (min-width:900px){ .jobs-filterbtn{ display:none; } }
@media (max-width:479.98px){
  .jobs-sort label{ display:none; }
  .jobs-toolbar__copy{ width:100%; flex:auto; }
}

.jobs-chips{ display:flex; flex-wrap:wrap; gap:var(--sp-2); align-items:center; }
.jobs-chips:empty{ display:none; }
.jobs-chips__label{ font-size:var(--fs-xs); font-weight:700; letter-spacing:var(--ls-eyebrow); text-transform:uppercase; color:var(--text-subtle); }

.jobs-list{ display:flex; flex-direction:column; gap:var(--sp-4); }
.jobs-list .job-card{ scroll-margin-top:calc(var(--header-h) + 96px); }

/* Inline helper cards mixed into the results */
.jobs-inline{
  position:relative; overflow:hidden; border:1px solid var(--saffron-200); border-radius:var(--r-xl);
  background:linear-gradient(150deg,var(--saffron-50) 0%,#fff 70%); padding:var(--sp-5);
  display:grid; gap:var(--sp-4); align-items:center; grid-template-columns:minmax(0,1fr);
}
@media (min-width:720px){ .jobs-inline{ grid-template-columns:minmax(0,1fr) auto; } }
.jobs-inline--green{ border-color:var(--forest-200); background:linear-gradient(150deg,var(--forest-50) 0%,#fff 70%); }
.jobs-inline h3{ margin:0 0 6px; font-size:var(--fs-h4); }
.jobs-inline p{ margin:0; font-size:var(--fs-sm); color:var(--text-muted); line-height:1.6; }
.jobs-inline__icon{
  width:38px; height:38px; border-radius:var(--r-md); display:grid; place-items:center; flex:none;
  background:var(--saffron-100); color:var(--saffron-800); margin-bottom:var(--sp-3);
}
.jobs-inline--green .jobs-inline__icon{ background:var(--forest-100); color:var(--forest-700); }
.jobs-inline__icon svg{ width:20px; height:20px; }
.jobs-inline__form{ display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start; }
.jobs-inline__form .field{ flex:1; min-width:190px; }
.jobs-inline__actions{ display:flex; flex-wrap:wrap; gap:10px; }

/* Empty state */
.jobs-empty{ text-align:center; padding:clamp(2rem,1.5rem + 3vw,3.5rem) var(--sp-5); border:1px dashed var(--line-strong); border-radius:var(--r-xl); background:#fff; }
.jobs-empty[hidden]{ display:none; }
.jobs-empty__icon{ width:56px; height:56px; border-radius:50%; background:var(--saffron-50); color:var(--saffron-700); display:grid; place-items:center; margin:0 auto var(--sp-4); }
.jobs-empty__icon svg{ width:26px; height:26px; }
.jobs-empty h3{ margin:0 0 var(--sp-2); }
.jobs-empty p{ color:var(--text-muted); max-width:46ch; margin:0 auto var(--sp-5); font-size:var(--fs-sm); }
.jobs-empty .cluster{ justify-content:center; }

/* Load more + end of list */
.jobs-more{ display:flex; flex-direction:column; gap:var(--sp-2); align-items:center; margin-top:var(--sp-2); }
.jobs-more[hidden]{ display:none; }
.jobs-more .btn{ min-width:min(320px,100%); }
.jobs-more .fineprint{ text-align:center; }

.jobs-endrow{ text-align:center; margin-top:var(--sp-2); padding-top:var(--sp-4); border-top:1px dashed var(--line); }
.jobs-endrow[hidden]{ display:none; }
.jobs-endrow .fineprint{ display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; justify-content:center; margin:0; }
.jobs-endrow .link-arrow{ border:0; background:none; padding:0; }

/* ---------- 6. Right rail ----------------------------------------- */
.jobs-rail{ min-width:0; display:grid; gap:var(--sp-4); grid-template-columns:minmax(0,1fr); }
@media (max-width:1179.98px){
  .jobs-rail{ grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:719.98px){ .jobs-rail{ grid-template-columns:minmax(0,1fr); } }
@media (min-width:1180px){
  .jobs-rail{ position:sticky; top:calc(var(--header-h) + var(--jobs-bar-h) + 16px); }
}
.rail-card{ padding:var(--sp-5); }
.rail-card h3{ font-size:var(--fs-h4); margin:0 0 var(--sp-2); }
.rail-card p{ font-size:var(--fs-sm); color:var(--text-muted); line-height:1.6; }
.rail-card__head{ display:flex; align-items:center; gap:10px; margin-bottom:var(--sp-3); }
.rail-card__head h3{ margin:0; }
.rail-card__icon{ width:34px; height:34px; border-radius:var(--r-md); display:grid; place-items:center; flex:none; background:var(--saffron-50); color:var(--saffron-800); }
.rail-card__icon--green{ background:var(--forest-50); color:var(--forest-700); }
.rail-card__icon svg{ width:18px; height:18px; }

.rail-skills{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.rail-skills li{ margin:0; display:grid; gap:5px; }
.rail-skills__row{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; font-size:var(--fs-sm); }
.rail-skills__row a{ color:var(--ink-700); text-decoration:none; font-weight:500; }
.rail-skills__row a:hover{ color:var(--saffron-700); text-decoration:underline; }
.rail-skills__n{ font-size:var(--fs-xs); color:var(--text-subtle); font-variant-numeric:tabular-nums; flex:none; }

.rail-course{ display:flex; gap:10px; align-items:flex-start; padding:var(--sp-3) 0; border-top:1px solid var(--line-soft); }
.rail-course:first-of-type{ border-top:0; padding-top:0; }
.rail-course__body{ min-width:0; }
.rail-course h4{ margin:0 0 2px; font-size:14.5px; line-height:1.35; }
.rail-course h4 a{ color:inherit; text-decoration:none; }
.rail-course h4 a:hover{ color:var(--saffron-700); }
.rail-course p{ margin:0; font-size:var(--fs-xs); color:var(--text-muted); }

/* Free resume tips list in the rail */
.rail-tips{ margin:0; padding-left:1.15em; display:flex; flex-direction:column; gap:8px; }
.rail-tips li{ margin:0; font-size:13.5px; color:var(--text-muted); line-height:1.55; }
.rail-tips li::marker{ color:var(--saffron-700); font-weight:700; }

/* ---------- 7. SEO link clusters + FAQ ---------------------------- */
.seo-cluster h3{ font-size:14px; letter-spacing:.04em; text-transform:uppercase; color:var(--text-muted); margin:0 0 var(--sp-3); }
.seo-cluster ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.seo-cluster li{ margin:0; }
.seo-cluster a{ font-size:var(--fs-sm); color:var(--ink-700); text-decoration:none; }
.seo-cluster a:hover{ color:var(--saffron-700); text-decoration:underline; }

.jobs-faq{ display:grid; gap:clamp(24px,3vw,48px); grid-template-columns:minmax(0,1fr); align-items:start; }
@media (min-width:1024px){ .jobs-faq{ grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); } }

/* ---------- 8. Motion ---------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .filter--sheet{ transition:none; }
}
