/* =====================================================================
   yournextjob About page: the facts table and the common questions.
   Phone first: one column, widening to label + answer from 640px.
   Design tokens only. The rest of the page uses pages/content.css.
   ===================================================================== */

/* ---------- The plain answer under the heading ---------- */
.content-head .about-answer{
  max-width:62ch;
  margin:0 0 var(--space-3);
  font-size:var(--text-lg);
  font-weight:500;
  color:var(--ink);
}

/* ---------- The facts ---------- */
.about-facts{
  margin:0 0 var(--space-4);
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  overflow:hidden;
}
.about-facts__row{
  padding:var(--space-4) var(--space-5);
  border-top:1px solid var(--line);
}
.about-facts__row:first-child{ border-top:0; }
.about-facts dt{
  margin:0 0 var(--space-1);
  font-size:var(--text-sm);
  font-weight:600;
  color:var(--ink-3);
}
.about-facts dd{
  margin:0;
  color:var(--ink);
  overflow-wrap:anywhere;
}
.about-facts__more{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-2) var(--space-5);
  margin:0 0 var(--space-8);
  font-size:var(--text-sm);
}
/* 44px tap targets for the links under the table. */
.about-facts__more a,
.about-faq__link a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
}

/* ---------- Common questions ---------- */
.about-faq{ margin:0 0 var(--space-8); }
.about-faq__item{
  padding:var(--space-5) 0;
  border-top:1px solid var(--line);
}
.about-faq__item:first-child{ border-top:0; padding-top:0; }
.content-prose .about-faq__item h3{ margin:0 0 var(--space-2); }
.content-prose .about-faq__item p{ margin:0; color:var(--ink-2); }
.content-prose .about-faq__item .about-faq__link{ font-size:var(--text-sm); }

@media (min-width:640px){
  .about-facts__row{
    display:grid;
    grid-template-columns:minmax(0, 14rem) minmax(0, 1fr);
    gap:var(--space-5);
    align-items:baseline;
  }
  .about-facts dt{ margin:0; }
}
/* =====================================================================
   yournextjob — account area
   Jobseeker dashboard, saved jobs and applications. Tokens only.
   ===================================================================== */

.account{ padding:var(--space-8) var(--space-5) var(--space-16); }
/* minmax(0,1fr), not 1fr: on phones the nav row scrolls sideways, and a plain 1fr
   column grew to the row's full width and pushed the whole page off screen. */
.account-layout{ display:grid; grid-template-columns:minmax(0,1fr); gap:var(--space-6); align-items:start; }

/* ---------- Sidebar ---------- */
.account-side__card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-4); box-shadow:var(--shadow-sm);
}
.account-user{ display:flex; align-items:center; gap:var(--space-3); padding:var(--space-2) var(--space-2) var(--space-4); }
.account-user__avatar{
  flex:none; width:44px; height:44px; border-radius:var(--radius-pill);
  display:flex; align-items:center; justify-content:center;
  background:var(--accent-050); color:var(--accent-strong); font-weight:600; font-size:var(--text-lg);
}
.account-user__meta{ min-width:0; display:flex; flex-direction:column; }
.account-user__name{ font-weight:600; color:var(--ink); font-size:var(--text-sm); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.account-user__email{ font-size:var(--text-xs); color:var(--ink-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.account-nav{ display:flex; flex-direction:column; gap:2px; }
.account-nav a{
  display:flex; align-items:center; gap:var(--space-3);
  padding:.6rem var(--space-3); border-radius:var(--radius);
  color:var(--ink-2); font-size:var(--text-sm); font-weight:500;
  transition:background .12s ease, color .12s ease;
}
.account-nav a:hover{ background:var(--page); color:var(--ink); text-decoration:none; }
.account-nav a svg{ flex:none; color:var(--ink-faint); }
.account-nav a.is-active{ background:var(--accent-050); color:var(--accent-strong); font-weight:600; }
.account-nav a.is-active svg{ color:var(--accent); }
.account-nav__count{
  margin-left:auto; min-width:22px; height:20px; padding:0 6px; border-radius:var(--radius-pill);
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--page); border:1px solid var(--line-2); color:var(--ink-2);
  font-size:var(--text-xs); font-weight:600;
}
.account-nav a.is-active .account-nav__count{ background:var(--card); border-color:var(--accent); color:var(--accent-strong); }
.account-nav--sub a{ color:var(--ink-3); }
.account-side__rule{ border:0; border-top:1px solid var(--line); margin:var(--space-3) 0; }
.account-signout{ margin-top:var(--space-3); padding-top:var(--space-3); border-top:1px solid var(--line); }
.account-signout .btn{ color:var(--ink-2); }
.account-signout .btn:hover{ color:var(--red-strong); }

/* ---------- Main column ---------- */
.account-main{ min-width:0; display:flex; flex-direction:column; gap:var(--space-8); }
.account-head h1{ font-size:var(--text-2xl); margin-bottom:var(--space-1); }
.account-head p{ margin:0; }

/* Stats */
.stat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4); }
.stat-card{
  display:flex; flex-direction:column; gap:var(--space-1);
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-5); color:var(--ink);
  transition:box-shadow .14s ease, transform .14s ease, border-color .14s ease;
}
.stat-card:hover{ text-decoration:none; box-shadow:var(--shadow-md); transform:translateY(-1px); border-color:var(--line-2); }
.stat-card__num{ font-size:var(--text-3xl); font-weight:600; line-height:1; letter-spacing:-.02em; color:var(--ink); }
.stat-card__label{ font-size:var(--text-sm); color:var(--ink-2); }

/* Profile summary */
.profile-card__head{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); margin-bottom:var(--space-4); }
.profile-card__head h2{ font-size:var(--text-lg); margin:0; }
.profile-facts{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-4) var(--space-6); margin:0; }
.profile-facts div{ min-width:0; }
.profile-facts dt{ font-size:var(--text-xs); text-transform:uppercase; letter-spacing:.04em; color:var(--ink-3); margin-bottom:2px; }
.profile-facts dd{ margin:0; font-size:var(--text-sm); color:var(--ink); font-weight:500; word-break:break-word; }

/* Section headers within the main column */
.account-section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-3); margin-bottom:var(--space-4); }
.account-section-head h2{ font-size:var(--text-xl); margin:0; }
.account-link-more{ font-size:var(--text-sm); font-weight:500; color:var(--accent-strong); white-space:nowrap; }

.empty-state--soft{ padding:var(--space-8) var(--space-6); }
.empty-state--soft h3{ font-size:var(--text-lg); margin-bottom:var(--space-2); }
.empty-state--soft p{ max-width:42ch; margin:0 auto var(--space-5); color:var(--ink-2); }

/* ---------- Saved jobs ---------- */
.saved-list{ display:flex; flex-direction:column; gap:var(--space-4); }
.saved-item{ position:relative; }
/* Reserve room on the card so the title/badges never run under the remove button. */
.saved-item > .job-card{ padding-right:calc(var(--space-5) + 104px); }
.saved-remove{
  position:absolute; top:var(--space-4); right:var(--space-4); z-index:2;
  display:inline-flex; align-items:center; gap:var(--space-1);
  padding:.35rem .7rem; border-radius:var(--radius-pill);
  border:1px solid var(--line-2); background:var(--card); color:var(--ink-2);
  font-size:var(--text-xs); font-weight:600; cursor:pointer;
  transition:color .12s ease, border-color .12s ease, background .12s ease;
}
.saved-remove:hover{ color:var(--red-strong); border-color:var(--red); background:var(--red-050); }
.saved-remove:disabled{ opacity:.55; cursor:default; }
.saved-remove svg{ flex:none; }
.saved-item__note{
  margin:var(--space-2) 0 0; padding:var(--space-2) var(--space-4);
  font-size:var(--text-xs); color:var(--amber); background:var(--amber-050);
  border-radius:var(--radius-sm);
}

/* ---------- Applications + recent lists ---------- */
.app-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:var(--space-3); }
.app-item{
  display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-4);
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:var(--space-4) var(--space-5);
}
.app-list--full .app-item{ border-radius:var(--radius-lg); }
.app-item__main{ min-width:0; }
.app-item__topline{ display:flex; align-items:center; flex-wrap:wrap; gap:var(--space-2) var(--space-3); }
.app-item__title{ font-size:var(--text-base); font-weight:600; color:var(--ink); }
.app-item__title:hover{ color:var(--accent-strong); text-decoration:none; }
.app-item__swipe{ font-weight:600; }
.app-item__sub{ margin:var(--space-1) 0 0; font-size:var(--text-sm); color:var(--ink-2); }
.app-item__date{ margin:var(--space-1) 0 0; font-size:var(--text-xs); color:var(--ink-3); }
.app-item__side{ flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:var(--space-2); text-align:right; }
.app-item__view{ font-size:var(--text-sm); font-weight:500; color:var(--accent-strong); }
.app-item__closed{ font-size:var(--text-xs); color:var(--ink-faint); }

/* Status pills */
.app-status{
  display:inline-flex; align-items:center; padding:.24rem .7rem; border-radius:var(--radius-pill);
  font-size:var(--text-xs); font-weight:600; white-space:nowrap; border:1px solid transparent;
}
.app-status.is-new{ background:var(--accent-050); color:var(--accent-strong); }
.app-status.is-viewed{ background:var(--amber-050); color:var(--ink); border-color:var(--amber); }
.app-status.is-shortlisted{ background:var(--apply-050); color:var(--apply-text); }
.app-status.is-rejected{ background:var(--red-050); color:var(--red-strong); }

/* ---------- Close my account (dashboard section + /account/close) ---------- */
.close-cta{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-5) var(--space-6); margin-top:var(--space-8);
}
.account-main .close-cta{ margin-top:0; }
.close-cta__title{ font-size:var(--text-lg); margin:0 0 var(--space-2); }
.close-cta__text{ font-size:var(--text-sm); color:var(--ink-2); max-width:62ch; margin:0 0 var(--space-4); }
.close-cta__text:last-child{ margin-bottom:0; }
.close-cta__btn{ color:var(--red-strong); border-color:var(--red-050); }
.close-cta__btn:hover{ background:var(--red-050); }

.close-page{ padding:var(--space-8) 0 var(--space-16); }
.close-page__head{ margin-bottom:var(--space-6); }
.close-page__head h1{ font-size:var(--text-3xl); margin-bottom:var(--space-2); }
.close-page__head p{ margin:0; }
.close-page__grid{ display:grid; grid-template-columns:1fr; gap:var(--space-5); margin-bottom:var(--space-5); }
.close-page__card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-5) var(--space-6); box-shadow:var(--shadow-sm);
}
.close-page__card h2{ font-size:var(--text-lg); margin-bottom:var(--space-3); }
.close-page__card > p:last-child{ margin-bottom:0; }
.close-list{ margin:0; padding-left:var(--space-5); display:flex; flex-direction:column; gap:var(--space-2); font-size:var(--text-sm); color:var(--ink-2); }
.close-list strong{ color:var(--ink); }
.close-list__warn{ color:var(--ink); background:var(--amber-050); border-radius:var(--radius-sm); padding:var(--space-2) var(--space-3); }
.close-page__note{ margin:var(--space-4) 0 0; font-size:var(--text-xs); color:var(--ink-3); }
.close-form{ border-color:var(--red-050); }
.close-form__check{ align-items:flex-start; gap:var(--space-3); color:var(--ink-2); }
.close-form__check input{ flex:none; margin-top:3px; }
.close-form__actions{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-3); }
/* --card as the text colour: white on the deep red in light mode, dark on the pale red in dark mode. */
.close-form__submit{ background:var(--red-strong); border-color:var(--red-strong); color:var(--card); }

@media (min-width:760px){
  .close-page__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* ---------- Responsive ---------- */
@media (min-width:900px){
  .account-layout{ grid-template-columns:260px minmax(0,1fr); gap:var(--space-8); }
  .account-side{ position:sticky; top:calc(66px + var(--space-4)); }
}

@media (max-width:899px){
  .account-nav{ flex-direction:row; overflow-x:auto; gap:var(--space-2); padding-bottom:2px; -webkit-overflow-scrolling:touch; }
  .account-nav a{ white-space:nowrap; min-height:44px; }
  .account-nav__count{ margin-left:var(--space-1); }
  .account-nav--sub{ flex-wrap:wrap; overflow:visible; }
  .stat-card__num{ font-size:var(--text-2xl); }
}

@media (max-width:560px){
  .close-page__card,.close-cta{ padding:var(--space-4); }
  .close-form__actions .btn{ width:100%; }
  .stat-grid{ grid-template-columns:1fr 1fr; }
  .stat-grid > :first-child{ grid-column:1 / -1; }
  .profile-facts{ grid-template-columns:1fr; }
  .app-item{ flex-direction:column; }
  .app-item__side{ flex-direction:row; align-items:center; align-self:stretch; justify-content:space-between; text-align:left; width:100%; }
  .saved-remove span{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .saved-remove{ min-width:44px; min-height:44px; justify-content:center; padding:.4rem; }
  .saved-item > .job-card{ padding-right:calc(var(--space-5) + 48px); }
}
/* Sponsored (CPC/CPA) ad placements.
   Loaded globally via the pages/*.css glob, but every rule is scoped to promoted
   markup only, so organic cards are untouched. Design system vars only. */

/* The "Promoted" label itself is a .card-flag--paid beside the company (app.css). */

/* Sponsored card: a subtle accent-tinted edge, lifting it just enough to feel
   distinct without shouting. Border only, so it never shifts the layout. */
.job-card--promoted{
  border-color:var(--accent-050);
}
.job-card--promoted:hover,
.job-card--promoted:focus-within{
  border-color:var(--accent);
}
/* =====================================================================
   yournextjob - adverts
   1. The advert coach on the post-a-job form (.ac-*)
   2. Advert quality in the admin moderation queue (.aq-*)
   3. Job page: lists and sub-headings in advert text (App\Core\JobText)
   Tokens only, light and dark. Mobile-first.
   ===================================================================== */

/* Helpers that need JavaScript stay out of the way without it. */
html:not(.js) .ac-needs-js{ display:none !important; }

/* ---------- 1. Advert coach ---------- */

/* Tone: grey before typing, amber while thin, accent when good, green when excellent. */
.ac-panel,.ac-mini{ --ac-tone:var(--ink-faint); --ac-tone-050:var(--page); --ac-tone-text:var(--ink-2); }
.ac-panel[data-tone="thin"],.ac-mini[data-tone="thin"],
.ac-panel[data-tone="ok"],.ac-mini[data-tone="ok"]{ --ac-tone:var(--amber); --ac-tone-050:var(--amber-050); --ac-tone-text:var(--ink); }
.ac-panel[data-tone="good"],.ac-mini[data-tone="good"]{ --ac-tone:var(--accent); --ac-tone-050:var(--accent-050); --ac-tone-text:var(--link); }
.ac-panel[data-tone="great"],.ac-mini[data-tone="great"]{ --ac-tone:var(--apply); --ac-tone-050:var(--apply-050); --ac-tone-text:var(--apply-text); }

/* Description label row with "Use our template". */
.ac-label-row{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--space-2) var(--space-3); margin-bottom:var(--space-2); }
.ac-label-row .form-label{ margin-bottom:0; }
.ac-tool{ display:inline-flex; align-items:center; gap:var(--space-2); min-height:34px; padding:.35rem .85rem; border-radius:var(--radius-pill);
  border:1px solid var(--line-2); background:var(--accent-050); color:var(--link); font:inherit; font-size:var(--text-xs); font-weight:600;
  cursor:pointer; transition:border-color .12s ease, transform .12s ease, box-shadow .12s ease; }
.ac-tool:hover{ border-color:var(--accent); box-shadow:var(--shadow-sm); transform:translateY(-1px); }
.ac-tool svg{ flex:none; }

.ac-status{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-1) var(--space-2); margin:0 0 var(--space-3);
  padding:var(--space-2) var(--space-3); border-radius:var(--radius-sm); background:var(--apply-050); color:var(--apply-text);
  font-size:var(--text-sm); font-weight:500; }
.ac-status[hidden]{ display:none; }
.ac-status__undo{ border:0; background:none; padding:0; font:inherit; font-weight:700; color:inherit; text-decoration:underline; cursor:pointer; }

/* "See a great example". */
.ac-example{ margin:0 0 var(--space-3); }
.ac-example__toggle{ display:inline-flex; align-items:center; gap:var(--space-2); padding:var(--space-1) 0; list-style:none; cursor:pointer;
  font-size:var(--text-sm); font-weight:600; color:var(--link); border-radius:var(--radius-sm); }
.ac-example__toggle::-webkit-details-marker{ display:none; }
.ac-example__toggle:hover{ color:var(--accent-strong); }
.ac-example__chev{ transition:transform .15s ease; }
.ac-example[open] .ac-example__chev{ transform:rotate(180deg); }
.ac-example__body{ margin-top:var(--space-3); padding:var(--space-6); border:1px solid var(--line-2); border-radius:var(--radius-lg);
  background:var(--page); box-shadow:var(--shadow-sm); }
.ac-example__top{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-2) var(--space-3); margin-bottom:var(--space-3); }
.ac-example__eyebrow,.ac-example__score{ white-space:nowrap; }
.ac-example__eyebrow{ margin:0; font-size:var(--text-xs); font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); }
.ac-example__score{ margin:0; display:inline-flex; align-items:center; gap:var(--space-2); font-size:var(--text-xs); font-weight:600; color:var(--apply-text); }
.ac-example__score-num{ display:inline-flex; align-items:center; justify-content:center; min-width:2.4rem; height:2.4rem; padding:0 6px;
  border-radius:var(--radius-pill); border:2.5px solid var(--apply); background:var(--card); color:var(--ink); font-size:var(--text-sm); font-weight:700; }
.ac-example__title{ font-size:var(--text-xl); margin:0 0 var(--space-2); }
.ac-example__meta{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2) var(--space-3); margin:0 0 var(--space-5);
  font-size:var(--text-sm); color:var(--ink-2); }
.ac-example__pay{ background:var(--apply-050); color:var(--apply-text); font-weight:700; padding:2px 10px; border-radius:var(--radius-pill); }
.ac-example__section + .ac-example__section{ margin-top:var(--space-4); padding-top:var(--space-4); border-top:1px dashed var(--line-2); }
.ac-example__head{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2); margin:0 0 var(--space-2); font-size:var(--text-base); letter-spacing:-.01em; }
.ac-example__note{ padding:1px 9px; border-radius:var(--radius-pill); background:var(--accent-050); color:var(--link);
  font-size:var(--text-xs); font-weight:600; letter-spacing:0; }
.ac-example__prose{ font-size:var(--text-sm); color:var(--ink-2); }
.ac-example__prose p:last-child,.ac-example__prose ul:last-child{ margin-bottom:0; }
.ac-example__prose ul{ list-style:none; padding-left:0; }
.ac-example__prose ul > li{ position:relative; padding-left:1.15rem; }
.ac-example__prose ul > li::before{ content:""; position:absolute; left:.15rem; top:.62em; width:6px; height:6px; border-radius:var(--radius-pill); background:var(--accent); }
.ac-example__foot{ margin:var(--space-5) 0 0; font-size:var(--text-xs); color:var(--ink-3); }

/* Mini meter under the description: phones only (the full panel docks beside the form on desktop).
   One small unit: the score and its label on top, the bar and "See tips" underneath. */
.ac-mini{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:var(--space-2) var(--space-4);
  margin-top:var(--space-3); padding:var(--space-3) var(--space-4); border:1px solid var(--line); border-radius:var(--radius);
  background:var(--page); font-size:var(--text-xs); color:var(--ink-2); }
.ac-mini[hidden],.ac-is-docked .ac-mini{ display:none; }
.ac-mini__text{ grid-column:1 / -1; grid-row:1; display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-1) var(--space-2); font-weight:500; }
.ac-mini__text strong{ display:inline-flex; align-items:center; justify-content:center; min-width:1.9rem; padding:1px 7px;
  border-radius:var(--radius-pill); background:var(--ac-tone-050); color:var(--ac-tone-text); font-weight:700; font-variant-numeric:tabular-nums; }
.ac-mini__label{ color:var(--ink); font-weight:600; }
.ac-mini__bar{ grid-column:1; grid-row:2; height:6px; border-radius:var(--radius-pill); background:var(--line); overflow:hidden; }
.ac-mini__fill{ display:block; width:0; height:100%; border-radius:inherit; background:var(--ac-tone);
  transition:width .4s cubic-bezier(.22,1,.36,1), background-color .2s ease; }
.ac-mini__link{ grid-column:2; grid-row:2; display:inline-flex; align-items:center; gap:4px; font-weight:600; white-space:nowrap; }
.ac-mini__link::after{ content:"\2193"; }

/* The panel. */
.ac-panel{ margin:0 0 var(--space-5); padding:var(--space-6); background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); }
.ac-panel__head{ display:flex; align-items:center; gap:var(--space-4); padding-bottom:var(--space-5); margin-bottom:var(--space-5); border-bottom:1px solid var(--line); }
.ac-ring{ position:relative; flex:none; width:64px; height:64px; }
.ac-ring svg{ display:block; }
.ac-ring__track{ stroke:var(--line); }
.ac-ring__fill{ stroke:var(--ac-tone); transition:stroke-dashoffset .55s cubic-bezier(.22,1,.36,1), stroke .2s ease; }
.ac-ring__num{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  font-size:var(--text-lg); font-weight:700; letter-spacing:-.02em; color:var(--ink); font-variant-numeric:tabular-nums; }
.ac-panel__intro{ min-width:0; }
.ac-panel__eyebrow{ margin:0 0 2px; font-size:var(--text-xs); font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); line-height:1.3; }
.ac-panel__label{ margin:0; font-size:var(--text-lg); font-weight:600; color:var(--ink); line-height:1.3; letter-spacing:-.01em; }
.ac-panel__summary{ margin:var(--space-1) 0 0; font-size:var(--text-sm); color:var(--ink-2); line-height:1.45; }
.ac-panel__sub{ margin:0 0 var(--space-3); font-size:var(--text-xs); font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); }
.ac-panel__foot{ margin:var(--space-5) 0 0; font-size:var(--text-xs); color:var(--ink-3); }

.ac-tips__list{ list-style:none; margin:0; padding:0; display:grid; gap:var(--space-2); }
.ac-tip{ display:flex; align-items:flex-start; gap:var(--space-3); padding:var(--space-3) var(--space-4) var(--space-3) var(--space-3);
  border:1px solid var(--line); border-radius:var(--radius); background:var(--page); }
.ac-tip__dot{ flex:none; width:16px; height:16px; margin-top:3px; border-radius:var(--radius-pill); border:2px solid var(--ac-tone); background:var(--card); }
.ac-tip__body{ flex:1; min-width:0; }
.ac-tip__title{ display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-2); margin:0;
  font-size:var(--text-sm); font-weight:600; color:var(--ink); line-height:1.4; }
.ac-tip__pts{ flex:none; padding:1px 8px; border-radius:var(--radius-pill); background:var(--ac-tone-050); color:var(--ac-tone-text);
  font-size:var(--text-xs); font-weight:700; font-variant-numeric:tabular-nums; }
.ac-tip__why{ margin:var(--space-1) 0 0; font-size:var(--text-xs); color:var(--ink-2); line-height:1.5; }
.ac-tip__go{ display:inline-flex; align-items:center; gap:4px; margin-top:var(--space-2); padding:0; border:0; background:none;
  font:inherit; font-size:var(--text-xs); font-weight:600; color:var(--link); cursor:pointer; border-radius:var(--radius-sm); }
.ac-tip__go::after{ content:"\2192"; transition:transform .12s ease; }
.ac-tip__go:hover{ color:var(--accent-strong); }
.ac-tip__go:hover::after{ transform:translateX(2px); }
.ac-tips__clear{ margin:0; padding:var(--space-3) var(--space-4); border-radius:var(--radius); background:var(--apply-050); color:var(--apply-text);
  font-size:var(--text-sm); font-weight:600; }

.ac-more{ margin-top:var(--space-2); }
.ac-more > .ac-tips__list{ margin-top:var(--space-1); }
.ac-more__summary{ display:inline-flex; align-items:center; gap:var(--space-2); padding:var(--space-2) 0; list-style:none; cursor:pointer;
  font-size:var(--text-xs); font-weight:600; color:var(--link); border-radius:var(--radius-sm); }
.ac-more__summary::-webkit-details-marker{ display:none; }
.ac-more__summary:hover{ color:var(--accent-strong); }
/* A chevron like "See a great example", not a "+": "+3" already means points here. */
.ac-more__summary::after{ content:""; width:6px; height:6px; margin-top:-3px; border:solid currentColor; border-width:0 2px 2px 0;
  transform:rotate(45deg); transition:transform .15s ease; }
.ac-more[open] > .ac-more__summary::after{ margin-top:3px; transform:rotate(-135deg); }

.ac-done{ margin-top:var(--space-5); }
.ac-done[hidden]{ display:none; }
.ac-done__list{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-2); }
.ac-done__item{ display:inline-flex; align-items:center; gap:6px; padding:.22rem .7rem .22rem .35rem; border-radius:var(--radius-pill);
  background:var(--apply-050); color:var(--apply-text); font-size:var(--text-xs); font-weight:600; }
.ac-done__tick{ position:relative; flex:none; width:16px; height:16px; border-radius:var(--radius-pill); background:var(--apply); }
.ac-done__tick::after{ content:""; position:absolute; left:5px; top:3px; width:4px; height:7px; border:solid var(--card); border-width:0 2px 2px 0; transform:rotate(45deg); }

/* Desktop: the panel docks beside the form and stays in view while typing. */
@media (min-width:900px){
  .emp-post__side.ac-docked{ position:static; align-self:stretch; }
  .emp-post__side.ac-docked .ac-panel{ position:sticky; top:calc(66px + var(--space-4)); margin:var(--space-5) 0 0;
    padding:0 var(--space-5); max-height:calc(100vh - 66px - var(--space-8)); overflow:auto; overscroll-behavior:contain;
    scrollbar-width:thin; }
  /* When the tips run past a short screen, the panel scrolls: these two strips are its
     top and bottom padding, and they stick to the edges as a soft fade, so cut-off text
     reads as "more below" rather than a clipped card. */
  .emp-post__side.ac-docked .ac-panel::before,
  .emp-post__side.ac-docked .ac-panel::after{ content:""; position:sticky; z-index:1; display:block; height:var(--space-6); pointer-events:none; }
  .emp-post__side.ac-docked .ac-panel::before{ top:0; background:linear-gradient(var(--card) 30%, transparent); }
  .emp-post__side.ac-docked .ac-panel::after{ bottom:0; background:linear-gradient(transparent, var(--card) 70%); }
  .ac-docked .ac-panel__head{ padding-bottom:var(--space-4); margin-bottom:var(--space-4); }
  .ac-docked .ac-tip{ padding:var(--space-3); }
  .ac-docked .ac-tip__go{ margin-top:var(--space-1); }
  .ac-docked .ac-done{ margin-top:var(--space-4); }
  .ac-docked .ac-panel__foot{ margin-top:var(--space-4); }
}
/* Wide screens: give the docked coach a little more room, so tips wrap less. */
@media (min-width:1100px){
  .emp-post__grid:has(> .ac-docked){ grid-template-columns:minmax(0,1fr) 340px; }
}

/* Benefit chips under "What is on offer". */
.ac-chips{ margin-top:var(--space-3); }
.ac-chips__label{ margin:0 0 var(--space-2); font-size:var(--text-xs); font-weight:600; color:var(--ink-3); }
.ac-chips__list{ display:flex; flex-wrap:wrap; gap:var(--space-2); border-radius:var(--radius); }
.ac-chip{ display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:.35rem .85rem .35rem .7rem; border-radius:var(--radius-pill);
  border:1px solid var(--line-2); background:var(--card); color:var(--ink); font:inherit; font-size:var(--text-sm); font-weight:500; cursor:pointer;
  transition:border-color .12s ease, background .12s ease, color .12s ease, transform .12s ease; }
.ac-chip:hover{ border-color:var(--accent); color:var(--link); transform:translateY(-1px); }
.ac-chip svg{ flex:none; color:var(--accent); }
.ac-chip__tick{ display:none; }
.ac-chip[aria-pressed="true"]{ border-color:var(--accent); background:var(--accent-050); color:var(--link); font-weight:600; }
.ac-chip[aria-pressed="true"] .ac-chip__plus{ display:none; }
.ac-chip[aria-pressed="true"] .ac-chip__tick{ display:inline; }
.ac-chips.is-flash .ac-chips__list{ animation:ac-flash 1.3s ease; }
@keyframes ac-flash{ 0%,100%{ box-shadow:none; } 25%,60%{ box-shadow:var(--focus-ring); } }

@media (max-width:640px){
  .ac-panel{ padding:var(--space-5); }
  .ac-example__body{ padding:var(--space-5) var(--space-4); }
}
/* Touch: every coach control gets a 44px target. Text links keep their look and
   grow an invisible hit area instead, so the layout stays as tight as on desktop. */
@media (max-width:640px), (pointer:coarse){
  .ac-chip,.ac-tool,.ac-example__toggle,.ac-more__summary{ min-height:44px; }
  .ac-tip__go,.ac-status__undo,.ac-mini__link{ position:relative; }
  .ac-tip__go::before,.ac-status__undo::before,.ac-mini__link::before{ content:""; position:absolute; inset:-12px -10px; }
}

/* ---------- 2. Admin moderation queue ---------- */
.aq-pill--great{ background:var(--apply-050); color:var(--apply-text); }
.aq-pill--good{ background:var(--accent-050); color:var(--link); }
.aq-pill--ok{ background:var(--amber-050); color:var(--ink); border:1px solid var(--amber); }
.aq-pill--thin{ background:var(--red-050); color:var(--red-strong); }
.aq-flag{ margin-top:var(--space-2); max-width:62ch; padding:var(--space-3) var(--space-4); border-radius:var(--radius);
  background:var(--amber-050); border:1px solid var(--line-2); border-left:3px solid var(--amber); font-size:var(--text-sm); }
.aq-flag__title{ margin:0 0 var(--space-1); font-weight:600; color:var(--ink); }
.aq-flag__list{ margin:0; padding-left:1.1rem; color:var(--ink); }
.aq-flag__list li{ margin:2px 0; }
.aq-flag__why{ color:var(--ink-2); }
.aq-flag__note{ margin-top:var(--space-2); }
.aq-flag__note > summary{ cursor:pointer; font-size:var(--text-xs); font-weight:600; color:var(--link); }
.aq-flag__note p{ margin:var(--space-2) 0 0; padding:var(--space-2) var(--space-3); border:1px dashed var(--line-2); border-radius:var(--radius-sm);
  background:var(--card); color:var(--ink-2); user-select:all; }

/* ---------- 3. Job page: advert text laid out by JobText ---------- */
.job-section .prose ul{ list-style:none; padding-left:0; }
.job-section .prose ul > li{ position:relative; padding-left:1.35rem; margin-bottom:var(--space-2); }
.job-section .prose ul > li::before{ content:""; position:absolute; left:.2rem; top:.62em; width:7px; height:7px; border-radius:var(--radius-pill); background:var(--accent); }
.job-section .prose ol{ padding-left:1.35rem; }
.job-section .prose ol > li{ margin-bottom:var(--space-2); }
.job-section .prose ol > li::marker{ color:var(--accent); font-weight:700; }
.job-section .prose h3{ margin:var(--space-6) 0 var(--space-2); font-size:var(--text-base); font-weight:700; letter-spacing:-.01em; }
.job-section .prose h3:first-child{ margin-top:0; }

@media (prefers-reduced-motion:reduce){
  .ac-tool,.ac-chip,.ac-tip__go::after,.ac-example__chev,.ac-mini__fill,.ac-ring__fill,.ac-more__summary::after{ transition:none; }
  .ac-chips.is-flash .ac-chips__list{ animation:none; }
}
/* =====================================================================
   Career advice — hub + article. Soft-premium, CSS vars only.
   ===================================================================== */

/* ---------- Hub hero ---------- */
.advice-hero{ padding:var(--space-10) 0 var(--space-8); }
.advice-hero h1{ font-size:clamp(2rem,5vw,var(--text-4xl)); max-width:16ch; margin-bottom:var(--space-4); }
.advice-hero .lead{ max-width:62ch; }
.advice-topics{ display:flex; flex-wrap:wrap; gap:var(--space-2); margin-top:var(--space-6); }

/* ---------- Hub body ---------- */
.advice-body{ padding-bottom:var(--space-16); }
.advice-topic{ padding-top:var(--space-8); scroll-margin-top:calc(66px + var(--space-4)); }
.advice-topic__head{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-4);
  margin-bottom:var(--space-5); padding-bottom:var(--space-3); border-bottom:1px solid var(--line); }
.advice-topic__head h2{ font-size:var(--text-2xl); margin:0; }
.advice-topic__count{ flex:none; font-size:var(--text-sm); color:var(--ink-3); }

/* ---------- Card grid ---------- */
.advice-grid{ display:grid; gap:var(--space-5); grid-template-columns:repeat(auto-fill,minmax(290px,1fr)); }

.advice-card{ position:relative; display:flex; flex-direction:column; background:var(--card);
  border:1px solid var(--line); border-radius:var(--radius-lg); overflow:hidden;
  transition:box-shadow .14s ease, transform .14s ease, border-color .14s ease; }
.advice-card:hover,.advice-card:focus-within{ box-shadow:var(--shadow-md); transform:translateY(-1px); border-color:var(--line-2); }

.advice-card__media{ aspect-ratio:16/9; background:var(--accent-050); }
.advice-card__media img{ width:100%; height:100%; object-fit:cover; }
.advice-card__media--placeholder{ position:relative;
  background:linear-gradient(135deg, var(--accent-050) 0%, var(--card) 70%); }
.advice-card__glyph{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--accent); opacity:.55; }

.advice-card__body{ display:flex; flex-direction:column; flex:1; padding:var(--space-5); }
.advice-card__cat{ align-self:flex-start; margin-bottom:var(--space-3); }
.advice-card__title{ font-size:var(--text-lg); line-height:1.3; margin:0 0 var(--space-2); }
.advice-card__title a{ color:var(--ink); }
.advice-card__title a:hover{ color:var(--accent-strong); text-decoration:none; }
/* Whole-card click target without nesting interactive elements. */
.advice-card__title a::after{ content:""; position:absolute; inset:0; border-radius:var(--radius-lg); }
.advice-card__excerpt{ font-size:var(--text-sm); color:var(--ink-2); margin:0 0 var(--space-4); }
.advice-card__more{ margin-top:auto; font-size:var(--text-sm); font-weight:600; color:var(--accent); }
.advice-card--compact .advice-card__excerpt{ margin-bottom:var(--space-3); }

/* ---------- Shared CTA ---------- */
.advice-cta{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-5);
  background:var(--accent-050); border:1px solid var(--line-2); border-radius:var(--radius-lg);
  padding:var(--space-6) var(--space-8); }
.advice-cta h2{ font-size:var(--text-xl); margin:0 0 var(--space-1); }
.advice-cta p{ margin:0; color:var(--ink-2); font-size:var(--text-sm); }
.advice-cta .btn{ flex:none; }
.advice-cta--hub{ margin-top:var(--space-10); }

/* ---------- Article ---------- */
.advice-article{ padding-bottom:var(--space-16); }
.advice-article__header{ margin-bottom:var(--space-6); }
.advice-article__header .eyebrow{ margin-bottom:var(--space-3); }
.advice-article h1{ font-size:clamp(1.8rem,4.5vw,var(--text-3xl)); margin-bottom:var(--space-4); }
.advice-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2) var(--space-3);
  font-size:var(--text-sm); color:var(--ink-3); }
.advice-meta span{ display:inline-flex; align-items:center; gap:var(--space-1); }

.advice-article__media{ aspect-ratio:16/9; border-radius:var(--radius-lg); overflow:hidden;
  margin-bottom:var(--space-8); background:var(--accent-050); }
.advice-article__media img{ width:100%; height:100%; object-fit:cover; }
.advice-article__media--placeholder{ display:flex; align-items:center; justify-content:center;
  color:var(--accent); background:linear-gradient(135deg, var(--accent-050) 0%, var(--card) 72%); }
.advice-article__media--placeholder svg{ opacity:.5; }

/* Long-form prose sizing (builds on app.css .prose). */
.advice-prose{ font-size:var(--text-lg); }
.advice-prose h2{ font-size:var(--text-2xl); margin:var(--space-10) 0 var(--space-4); }
.advice-prose h3{ font-size:var(--text-lg); margin:var(--space-6) 0 var(--space-3); }
.advice-prose ul,.advice-prose ol{ padding-left:1.4rem; }
.advice-prose li{ margin-bottom:var(--space-2); }
.advice-prose table{ font-size:var(--text-base); }

/* ---------- FAQ ---------- */
.advice-faq{ margin-top:var(--space-12); }
.advice-faq > h2{ font-size:var(--text-2xl); margin-bottom:var(--space-5); }
.advice-faq__item{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  margin-bottom:var(--space-3); }
.advice-faq__item summary{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-3);
  padding:var(--space-4) var(--space-5); font-weight:600; cursor:pointer; list-style:none; }
.advice-faq__item summary::-webkit-details-marker{ display:none; }
.advice-faq__item summary svg{ flex:none; color:var(--ink-faint); transition:transform .15s ease; }
.advice-faq__item[open] summary svg{ transform:rotate(180deg); }
.advice-faq__answer{ padding:0 var(--space-5) var(--space-5); }
.advice-faq__answer p{ margin:0; color:var(--ink-2); }

/* ---------- Related ---------- */
.advice-related{ margin-top:var(--space-12); }
.advice-related > h2{ font-size:var(--text-xl); margin-bottom:var(--space-4); }

/* ---------- Responsive ---------- */
@media (max-width:560px){
  .advice-cta{ padding:var(--space-5) var(--space-6); }
  .advice-cta .btn{ width:100%; }
  .advice-prose{ font-size:var(--text-base); }
}
/* =====================================================================
   Job alerts: the create page, the result pages, and the sign-up units.
   Tokens only; matches the soft-premium system.
   ===================================================================== */

/* ---------- Create page: hero + form ---------- */
.alerts-hero{ padding:var(--space-12) 0 var(--space-10); }
/* Three blocks: the heading, the form, the reasons. On a computer the form sits on
   the right beside the other two; on a phone it comes straight after the heading. */
.alerts-hero__grid{
  display:grid; grid-template-columns:1.05fr .95fr; column-gap:var(--space-12); row-gap:var(--space-4);
  grid-template-areas:"head form" "intro form"; grid-template-rows:auto 1fr;
  align-items:start;
}
.alerts-hero__head{ grid-area:head; }
.alerts-hero__intro{ grid-area:intro; }
.alerts-form-card{ grid-area:form; }
.alerts-hero__head h1{ font-size:clamp(1.75rem,4.5vw,var(--text-4xl)); max-width:16ch; margin-bottom:0; }
.alerts-hero__intro .lead{ max-width:48ch; margin-bottom:var(--space-6); }
.alerts-hero__points{ list-style:none; margin:0; padding:0; display:grid; gap:var(--space-3); }
.alerts-hero__points li{
  display:flex; align-items:flex-start; gap:var(--space-3);
  font-size:var(--text-base); color:var(--ink); font-weight:500;
}
.alerts-hero__points svg{
  flex:none; width:22px; height:22px; margin-top:1px; padding:3px;
  border-radius:var(--radius-pill); background:var(--apply-050); color:var(--apply-text);
}

.alerts-form-card{
  background:var(--card); border:1px solid var(--line-2); border-radius:var(--radius-xl);
  padding:var(--space-8); box-shadow:var(--shadow-md);
}
.alerts-form-card__title{ font-size:var(--text-xl); margin-bottom:var(--space-6); }
.alerts-form-card__summary{
  margin:calc(var(--space-3) * -1) 0 var(--space-5); padding:var(--space-3) var(--space-4);
  background:var(--accent-050); border-radius:var(--radius-md); font-size:var(--text-sm); color:var(--ink-2);
}
.alerts-form-card__summary strong{ color:var(--ink); }
.alerts-form__consent{ margin-top:var(--space-4); text-align:center; }
.alerts-form__account{
  margin:0 0 var(--space-5); padding:var(--space-3) var(--space-4);
  background:var(--surface-sunken, var(--page)); border:1px solid var(--line); border-radius:var(--radius-md);
  font-size:var(--text-sm); color:var(--ink-2); overflow-wrap:anywhere;
}
.alerts-form__account strong{ color:var(--ink); }
/* Sector and how often: there for whoever wants them, out of the way for the rest. */
.alerts-more{ margin:0 0 var(--space-5); border-top:1px solid var(--line); }
.alerts-more__summary{
  display:flex; align-items:center; min-height:44px; cursor:pointer;
  font-size:var(--text-sm); font-weight:600; color:var(--link);
}
.alerts-more__summary:focus-visible{ outline:none; box-shadow:var(--focus-ring); border-radius:var(--radius-sm); }
.alerts-more[open] .alerts-more__summary{ margin-bottom:var(--space-3); }
.alerts-freq{ border:0; margin:0 0 var(--space-2); padding:0; min-width:0; }
.alerts-freq__pills{ display:flex; gap:var(--space-2); }
.alerts-freq__pill{ flex:1; position:relative; cursor:pointer; }
.alerts-freq__pill input{ position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.alerts-freq__pill span{
  display:flex; align-items:center; justify-content:center; min-height:44px; padding:0 var(--space-4);
  border:1px solid var(--line-2); border-radius:var(--radius-pill); background:var(--card);
  font-size:var(--text-sm); font-weight:600; color:var(--ink-2);
}
.alerts-freq__pill input:checked + span{ border-color:var(--accent); background:var(--accent-050); color:var(--ink); }
.alerts-freq__pill input:focus-visible + span{ box-shadow:var(--focus-ring); }

/* ---------- Your active alerts ---------- */
.alerts-mine{ padding-top:var(--space-12); }
.alerts-list{ list-style:none; margin:var(--space-6) 0 0; padding:0; display:grid; gap:var(--space-3); }
.alerts-list__item{
  display:flex; align-items:center; justify-content:space-between; gap:var(--space-4);
  padding:var(--space-4) var(--space-5); background:var(--card);
  border:1px solid var(--line); border-radius:var(--radius-lg);
}
.alerts-list__title{ font-weight:600; margin:0 0 var(--space-1); color:var(--ink); }
.alerts-list__meta{ margin:0; font-size:var(--text-sm); color:var(--ink-2); }
/* "Turn off" is a one-button form (a POST, like the unsubscribe page's button). */
.alerts-list__off{ flex:none; margin:0; }
.alerts-list__off .btn:hover{ border-color:var(--red); color:var(--red); }

/* ---------- How it works ---------- */
.alerts-how{ background:var(--accent-050); }
.alerts-how__heading{ text-align:center; margin-bottom:var(--space-10); }
.alerts-steps{
  list-style:none; margin:0; padding:0; counter-reset:step;
  display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-6);
}
.alerts-step{
  background:var(--card); border:1px solid var(--line-2); border-radius:var(--radius-lg);
  padding:var(--space-6);
}
.alerts-step__num{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:var(--radius-pill);
  background:var(--accent-fill); color:var(--on-accent); font-weight:700; font-size:var(--text-lg);
  margin-bottom:var(--space-4);
}
.alerts-step h3{ font-size:var(--text-lg); margin-bottom:var(--space-2); }
.alerts-step p{ margin:0; color:var(--ink-2); }

/* ---------- Result pages (confirmed / unsubscribed) ---------- */
.alerts-result{ text-align:center; }
.alerts-result .lead{ max-width:52ch; margin:0 auto var(--space-8); }
.alerts-result__icon{
  width:76px; height:76px; margin:0 auto var(--space-5);
  display:flex; align-items:center; justify-content:center;
  border-radius:var(--radius-pill);
}
.alerts-result__icon--ok{ background:var(--apply-050); color:var(--apply-text); }
.alerts-result__icon--warn{ background:var(--amber-050); color:var(--amber); }
.alerts-result__icon--muted{ background:var(--page); border:1px solid var(--line-2); color:var(--ink-3); }
.alerts-result__actions{
  display:flex; flex-wrap:wrap; gap:var(--space-3); justify-content:center;
  margin-bottom:var(--space-6);
}
.alerts-result__note{ font-size:var(--text-sm); color:var(--ink-2); max-width:52ch; margin:0 auto; }
/* The confirm and unsubscribe pages: one button, then the note under it. */
.alerts-result__form{ margin:0 0 var(--space-6); }
.alerts-result__note--warn{
  margin-bottom:var(--space-5); padding:var(--space-3) var(--space-4);
  background:var(--amber-050); border:1px solid var(--amber); border-radius:var(--radius);
  color:var(--ink);
}

/* ---------- Inline capture unit (search results, etc.) ---------- */
.alert-cta{
  display:grid; grid-template-columns:1.1fr 1fr; gap:var(--space-6) var(--space-8);
  align-items:center; margin:var(--space-6) 0;
  padding:var(--space-6) var(--space-8);
  background:var(--accent-050); border:1px solid var(--line-2);
  border-radius:var(--radius-xl);
}
.alert-cta__eyebrow{
  display:inline-flex; align-items:center; gap:var(--space-2);
  margin:0 0 var(--space-2); font-size:var(--text-sm); font-weight:600; color:var(--accent);
}
.alert-cta__eyebrow svg{ color:var(--accent); }
.alert-cta__title{ font-size:var(--text-xl); margin:0 0 var(--space-2); }
.alert-cta__sub{ margin:0; color:var(--ink-2); font-size:var(--text-sm); max-width:44ch; }
.alert-cta__form{ margin:0; }
.alert-cta__row{ display:flex; gap:var(--space-2); }
.alert-cta__row .form-input{ flex:1; background:var(--card); }
.alert-cta__row .btn{ flex:none; white-space:nowrap; }
.alert-cta__hint{ margin:var(--space-3) 0 0; font-size:var(--text-xs); color:var(--ink-3); }
.alert-cta__hint a{ color:var(--ink-2); text-decoration:underline; }

/* ---------- The one-field unit (partials/alert-quick) ---------- */
.alert-quick{
  display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4) var(--space-8); align-items:center;
  margin:var(--space-6) 0; padding:var(--space-5) var(--space-6);
  background:var(--accent-050); border:1px solid var(--line-2); border-radius:var(--radius-lg);
}
.alert-quick--compact{ grid-template-columns:1fr; gap:var(--space-3); padding:var(--space-4) var(--space-5); margin:var(--space-4) 0; }
.alert-quick__title{
  display:flex; align-items:flex-start; gap:var(--space-2); margin:0;
  font-size:var(--text-lg); font-weight:600; line-height:1.3; color:var(--ink);
}
.alert-quick--compact .alert-quick__title{ font-size:var(--text-base); }
.alert-quick__title svg{ flex:none; margin-top:3px; color:var(--accent); }
.alert-quick__lead{ margin:var(--space-1) 0 0; font-size:var(--text-sm); color:var(--ink-2); }
.alert-quick__form{ margin:0; min-width:0; }
.alert-quick__row{ display:flex; gap:var(--space-2); }
/* 16px text so iOS does not zoom the page when the field is tapped; 48px tall. */
.alert-quick__input{ flex:1 1 60%; min-width:0; min-height:48px; font-size:var(--text-base); background:var(--card); }
.alert-quick__btn{ flex:0 0 auto; min-height:48px; white-space:nowrap; }
.alert-quick__row .alert-quick__btn:only-child{ flex:1 1 auto; }
.alert-quick__hint{ margin:var(--space-2) 0 0; font-size:var(--text-xs); line-height:1.5; color:var(--ink-2); overflow-wrap:anywhere; }
.alert-quick__hint a{ color:var(--ink-2); text-decoration:underline; }
.alert-quick__hint strong{ color:var(--ink); font-weight:600; }
/* The bot trap: off screen, never focusable, never read out. */
.alert-quick__hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
/* Inside the apply form: one tick box, no box round it. */
.alert-quick--tick{ display:block; margin:var(--space-4) 0; padding:0; background:none; border:0; }
.alert-quick__tick{ display:flex; align-items:flex-start; gap:var(--space-3); min-height:44px; cursor:pointer; font-size:var(--text-sm); color:var(--ink); }
.alert-quick__tick input{ flex:none; width:22px; height:22px; margin:1px 0 0; accent-color:var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width:899px){
  .alerts-hero{ padding:var(--space-6) 0 var(--space-8); }
  .alerts-hero__grid{ grid-template-columns:1fr; grid-template-areas:"head" "form" "intro"; grid-template-rows:auto; row-gap:var(--space-5); }
  .alerts-hero__head .eyebrow{ display:none; }
  .alert-quick{ grid-template-columns:1fr; gap:var(--space-3); padding:var(--space-4); }
  .alert-quick__lead{ display:none; }
  .alerts-steps{ grid-template-columns:1fr; gap:var(--space-4); }
  .alert-cta{ grid-template-columns:1fr; padding:var(--space-6); }
}
@media (max-width:560px){
  .alerts-form-card{ padding:var(--space-6); }
  .alerts-list__item{ flex-direction:column; align-items:flex-start; }
  .alerts-list__off{ align-self:stretch; }
  .alerts-list__off .btn{ width:100%; }
  /* The list unit on a phone: the title, then one 48px row (field and button side
     by side), then one line. The eyebrow and the long line go. */
  .alert-cta{ padding:var(--space-4); gap:var(--space-3); margin:var(--space-4) 0; }
  .alert-cta__eyebrow, .alert-cta__sub{ display:none; }
  .alert-cta__title{ font-size:var(--text-lg); margin:0; }
  .alert-cta__row .form-input{ flex:1 1 60%; min-width:0; min-height:48px; font-size:var(--text-base); }
  .alert-cta__row .btn{ flex:0 0 auto; min-height:48px; }
  .alert-cta__row .btn:only-child{ flex:1 1 auto; }
  .alerts-form .form-input, .alerts-form .form-select{ font-size:var(--text-base); min-height:48px; }
}
@media (max-width:359px){
  .alert-quick__row, .alert-cta__row{ flex-direction:column; }
  .alert-quick__btn, .alert-cta__row .btn{ width:100%; }
}
/* Screening questions + forwarding applications (applyflow).
   Pages: post a job, a job's application settings, the apply form on the job page,
   the applicant board, the applicants overview and one application. Every selector
   is namespaced by its page's body class, since prod serves all page sheets as one
   bundle. Tokens only (no colour literals), so the dark theme follows. */

/* ---------- Shared: question rows + forwarding (post form, settings page) ---------- */
.page-employer-post .af-qlist,
.page-employer-apply-settings .af-qlist{ list-style:none; margin:0 0 var(--space-3); padding:0; display:grid; gap:var(--space-3); counter-reset:none; }
.page-employer-post .af-qrow__set,
.page-employer-apply-settings .af-qrow__set{ border:1px solid var(--line-2); border-radius:var(--radius); padding:var(--space-3) var(--space-4) var(--space-2); margin:0; min-width:0; background:var(--card); transition:border-color .15s ease; }
.page-employer-post .af-qrow__set:focus-within,
.page-employer-apply-settings .af-qrow__set:focus-within{ border-color:var(--accent); }
.page-employer-post .af-qrow__legend,
.page-employer-apply-settings .af-qrow__legend{ font-size:var(--text-xs); font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-3); padding:0 var(--space-1); }
.page-employer-post .af-qrow__grid,
.page-employer-apply-settings .af-qrow__grid{ display:grid; gap:var(--space-2); }
.page-employer-post .af-qrow__grid .form-group,
.page-employer-apply-settings .af-qrow__grid .form-group{ margin-bottom:0; }
.page-employer-post .af-qrow__grid .form-input,
.page-employer-post .af-qrow__grid .form-select,
.page-employer-apply-settings .af-qrow__grid .form-input,
.page-employer-apply-settings .af-qrow__grid .form-select{ min-height:44px; }
.page-employer-post .af-qrow__opts,
.page-employer-apply-settings .af-qrow__opts{ display:flex; flex-wrap:wrap; gap:var(--space-1) var(--space-5); margin-top:var(--space-1); }
.page-employer-post .af-qrow__opts .check-label,
.page-employer-apply-settings .af-qrow__opts .check-label{ min-height:44px; }
.page-employer-post .af-qrow__opts input:disabled + *,
.page-employer-apply-settings .af-qrow__opts input:disabled + *{ opacity:.5; }
.page-employer-post .af-qrow__opts .check-label:has(input:disabled),
.page-employer-apply-settings .af-qrow__opts .check-label:has(input:disabled){ color:var(--ink-3); cursor:not-allowed; }
.page-employer-post .af-add,
.page-employer-apply-settings .af-add{ min-height:44px; }
.page-employer-post .af-switch,
.page-employer-apply-settings .af-switch{ min-height:44px; font-size:var(--text-base); font-weight:600; }
.page-employer-post .af-forward,
.page-employer-apply-settings .af-forward{ margin-top:var(--space-4); padding-top:var(--space-4); border-top:1px solid var(--line); }
.page-employer-post .af-forward .form-group:last-child,
.page-employer-apply-settings .af-forward .form-group:last-child{ margin-bottom:0; }
@media (min-width: 640px){
  .page-employer-post .af-qrow__grid,
  .page-employer-apply-settings .af-qrow__grid{ grid-template-columns:minmax(0,1fr) 11rem; }
}

/* ---------- Application settings page ---------- */
.page-employer-apply-settings .af-settings{ padding:var(--space-6) 0 var(--space-16); }
.page-employer-apply-settings .af-settings__wrap{ max-width:var(--container-narrow); }
.page-employer-apply-settings .af-settings__head h1{ font-size:var(--text-3xl); margin-bottom:var(--space-2); overflow-wrap:anywhere; }
.page-employer-apply-settings .af-settings__head .lead{ max-width:56ch; }
.page-employer-apply-settings .af-settings__actions{ display:flex; flex-wrap:wrap; gap:var(--space-3); margin-bottom:var(--space-8); }
.page-employer-apply-settings .af-settings__actions .btn{ min-height:44px; }
.page-employer-apply-settings .af-card-title{ font-size:var(--text-lg); margin:0 0 var(--space-3); }
.page-employer-apply-settings .af-note,
.page-employer-apply-settings .af-verify,
.page-employer-apply-settings .af-log{ margin-bottom:var(--space-5); }

.page-employer-apply-settings .af-secret{ margin-bottom:var(--space-6); border-color:var(--accent); background:var(--accent-050); box-shadow:var(--shadow-md); }
.page-employer-apply-settings .af-secret__title{ font-size:var(--text-lg); margin:0 0 var(--space-2); }
.page-employer-apply-settings .af-secret__warn{ color:var(--ink-2); font-size:var(--text-sm); margin-bottom:var(--space-3); }
.page-employer-apply-settings .af-secret__row{ display:flex; gap:var(--space-2); flex-wrap:wrap; }
.page-employer-apply-settings .af-secret__value{ flex:1 1 16rem; min-height:44px; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:var(--text-sm); }
.page-employer-apply-settings .af-secret__copy{ min-height:44px; min-width:6rem; }

.page-employer-apply-settings .af-verify p,
.page-employer-apply-settings .af-verify li{ font-size:var(--text-sm); color:var(--ink-2); }
.page-employer-apply-settings .af-verify code{ font-size:.85em; background:var(--accent-050); color:var(--ink); border-radius:6px; padding:.1em .35em; overflow-wrap:anywhere; }
.page-employer-apply-settings .af-verify__list{ margin:0 0 var(--space-4); padding-left:var(--space-5); display:grid; gap:var(--space-1); }
.page-employer-apply-settings .af-verify__rotate{ padding-top:var(--space-4); border-top:1px solid var(--line); }
.page-employer-apply-settings .af-verify__rotate .btn{ min-height:44px; }

.page-employer-apply-settings .af-log__empty{ color:var(--ink-2); font-size:var(--text-sm); margin:0; }
.page-employer-apply-settings .af-log__scroll{ overflow-x:auto; margin:0 calc(var(--space-2) * -1); }
.page-employer-apply-settings .af-log__table{ width:100%; border-collapse:collapse; font-size:var(--text-sm); }
.page-employer-apply-settings .af-log__table th{ text-align:left; font-size:var(--text-xs); font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-3); padding:var(--space-2); border-bottom:1px solid var(--line); white-space:nowrap; }
.page-employer-apply-settings .af-log__table td{ padding:var(--space-3) var(--space-2); border-bottom:1px solid var(--line); vertical-align:top; color:var(--ink-2); }
.page-employer-apply-settings .af-log__table tr:last-child td{ border-bottom:0; }
.page-employer-apply-settings .af-log__table td a{ font-weight:600; }
.page-employer-apply-settings .af-chan{ font-weight:600; color:var(--ink); }
.page-employer-apply-settings .af-target{ display:block; color:var(--ink-3); overflow-wrap:anywhere; max-width:22ch; }
.page-employer-apply-settings .af-log__err{ display:block; margin-top:var(--space-1); font-size:var(--text-xs); color:var(--ink-3); max-width:28ch; }

/* Delivery status pills (settings page + application sidebar). */
.page-employer-apply-settings .af-pill,
.page-employer-application .af-pill{ display:inline-flex; align-items:center; padding:.15rem .6rem; border-radius:var(--radius-pill); font-size:var(--text-xs); font-weight:600; white-space:nowrap; border:1px solid transparent; }
.page-employer-apply-settings .af-pill--ok,
.page-employer-application .af-pill--ok{ background:var(--apply-050); color:var(--apply-text); }
.page-employer-apply-settings .af-pill--wait,
.page-employer-application .af-pill--wait{ background:var(--accent-050); color:var(--link); }
.page-employer-apply-settings .af-pill--bad,
.page-employer-application .af-pill--bad{ background:var(--red-050); color:var(--red-strong); }

/* ---------- The "did not answer yes" flag (board, overview, application) ---------- */
.page-employer-applicants-job .af-flag,
.page-employer-applicants .af-flag,
.page-employer-application .af-flag{ display:flex; align-items:flex-start; gap:var(--space-2); margin:var(--space-2) 0 0; font-size:var(--text-xs); font-weight:600; color:var(--ink); line-height:1.4; }
.page-employer-applicants-job .af-flag__dot,
.page-employer-applicants .af-flag__dot,
.page-employer-application .af-flag__dot{ flex:none; width:8px; height:8px; margin-top:.3em; border-radius:var(--radius-pill); background:var(--amber); box-shadow:0 0 0 3px var(--amber-050); }
.page-employer-applicants .af-flag--link{ display:inline-flex; align-items:center; min-height:44px; margin-top:var(--space-1); color:var(--ink); }
.page-employer-applicants .af-flag--link .af-flag__dot{ margin-top:0; }
.page-employer-applicants .af-flag--link:hover{ color:var(--accent); }
.page-employer-application .af-flag--banner{ margin-top:var(--space-4); padding:var(--space-3) var(--space-4); border-radius:var(--radius); background:var(--amber-050); font-size:var(--text-sm); font-weight:500; }

/* Board header actions + the screening filter. */
.page-employer-applicants-job .af-head-actions{ display:flex; flex-wrap:wrap; gap:var(--space-2); }
.page-employer-applicants-job .af-head-actions .btn{ min-height:44px; }
.page-employer-applicants-job .af-filter{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2) var(--space-3); margin:0 0 var(--space-5); }
.page-employer-applicants-job .af-filter__label{ font-size:var(--text-xs); font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-3); }
.page-employer-applicants-job .af-filter__list{ list-style:none; margin:0; padding:var(--space-1); display:flex; flex-wrap:wrap; gap:var(--space-1); background:var(--card); border:1px solid var(--line); border-radius:var(--radius-pill); }
.page-employer-applicants-job .af-filter__opt{ display:inline-flex; align-items:center; gap:var(--space-2); min-height:44px; padding:0 var(--space-4); border-radius:var(--radius-pill); font-size:var(--text-sm); font-weight:500; color:var(--ink-2); transition:background .15s ease, color .15s ease; }
.page-employer-applicants-job .af-filter__opt:hover{ color:var(--ink); text-decoration:none; background:var(--accent-050); }
.page-employer-applicants-job .af-filter__opt[aria-current="page"]{ background:var(--accent-fill); color:var(--on-accent); }
.page-employer-applicants-job .af-filter__n{ display:inline-flex; align-items:center; justify-content:center; min-width:1.5rem; padding:0 .4rem; border-radius:var(--radius-pill); background:var(--amber-050); color:var(--ink); font-size:var(--text-xs); font-weight:700; }
.page-employer-applicants-job .af-filter__opt[aria-current="page"] .af-filter__n{ background:var(--card); color:var(--ink); }
/* Phones: the three options stay on one line as a full-width segmented control
   (wrapping one option under a pill-shaped track looked broken). */
@media (max-width: 520px){
  .page-employer-applicants-job .af-filter__list{ flex-wrap:nowrap; width:100%; }
  .page-employer-applicants-job .af-filter__list > li{ flex:1 1 auto; min-width:0; display:flex; }
  .page-employer-applicants-job .af-filter__opt{ flex:1 1 auto; justify-content:center; padding:0 var(--space-2); gap:var(--space-1);
    font-size:var(--text-xs); white-space:nowrap; }
}

/* ---------- One application: answers + what was sent ---------- */
.page-employer-application .af-answers__list{ margin:0; display:grid; gap:0; }
.page-employer-application .af-answers__row{ padding:var(--space-3) 0; border-bottom:1px solid var(--line); display:grid; gap:var(--space-1); }
.page-employer-application .af-answers__row:first-child{ padding-top:0; }
.page-employer-application .af-answers__row:last-child{ border-bottom:0; padding-bottom:0; }
.page-employer-application .af-answers__row dt{ font-size:var(--text-sm); color:var(--ink-2); font-weight:500; }
.page-employer-application .af-answers__row dd{ margin:0; color:var(--ink); overflow-wrap:anywhere; }
.page-employer-application .af-answers__must{ display:inline-block; margin-left:var(--space-1); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-3); }
.page-employer-application .af-yn{ display:inline-flex; align-items:center; padding:.1rem .65rem; border-radius:var(--radius-pill); font-size:var(--text-sm); font-weight:600; background:var(--apply-050); color:var(--apply-text); }
.page-employer-application .af-yn--no{ background:var(--line); color:var(--ink); }
.page-employer-application .af-answers__row--flag .af-yn{ background:var(--amber-050); color:var(--ink); box-shadow:inset 0 0 0 1px var(--amber); }

.page-employer-application .af-sent__list{ list-style:none; margin:0 0 var(--space-3); padding:0; display:grid; gap:var(--space-3); }
.page-employer-application .af-sent__item{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:var(--space-1) var(--space-2); align-items:center; }
.page-employer-application .af-sent__where{ font-size:var(--text-sm); font-weight:600; color:var(--ink); overflow-wrap:anywhere; }
.page-employer-application .af-sent__meta{ grid-column:1 / -1; font-size:var(--text-xs); color:var(--ink-3); }
.page-employer-application .af-sent__link{ display:inline-flex; align-items:center; min-height:44px; font-size:var(--text-sm); font-weight:600; }

/* ---------- The apply form on the job page ---------- */
.page-job-detail .af-questions{ margin:0 0 var(--space-5); padding:var(--space-4) var(--space-4) var(--space-1); border:1px solid var(--line); border-radius:var(--radius); background:var(--accent-050); }
.page-job-detail .af-questions__title{ font-size:var(--text-base); margin:0 0 var(--space-3); }
.page-job-detail .af-q{ border:0; padding:0; margin:0 0 var(--space-4); min-width:0; }
.page-job-detail .af-q__legend{ font-weight:600; font-size:var(--text-sm); color:var(--ink); padding:0; margin-bottom:var(--space-2); }
.page-job-detail .af-q .form-label .form-hint-inline,
.page-job-detail .af-q__legend .form-hint-inline{ font-weight:400; }
.page-job-detail .af-q__choices{ display:flex; gap:var(--space-2); flex-wrap:wrap; }
.page-job-detail .af-choice{ position:relative; display:inline-flex; }
.page-job-detail .af-choice input{ position:absolute; opacity:0; inset:0; margin:0; cursor:pointer; }
.page-job-detail .af-choice span{ display:inline-flex; align-items:center; justify-content:center; min-width:5.5rem; min-height:44px; padding:0 var(--space-5); border:1px solid var(--line-2); border-radius:var(--radius-pill); background:var(--card); color:var(--ink); font-weight:600; font-size:var(--text-sm); transition:border-color .15s ease, background .15s ease, color .15s ease; }
.page-job-detail .af-choice:hover span{ border-color:var(--accent); }
.page-job-detail .af-choice input:checked + span{ background:var(--accent-fill); border-color:var(--accent-fill); color:var(--on-accent); }
.page-job-detail .af-choice input:focus-visible + span{ box-shadow:var(--focus-ring); }
.page-job-detail .af-q--error .af-choice span{ border-color:var(--red); }

@media (prefers-reduced-motion: reduce){
  .page-employer-post .af-qrow__set,
  .page-employer-apply-settings .af-qrow__set,
  .page-employer-applicants-job .af-filter__opt,
  .page-job-detail .af-choice span{ transition:none; }
}
/* =====================================================================
   yournextjob — auth pages (sign in, register, forgot, reset)
   Centred soft-premium cards. CSS variables only.
   ===================================================================== */

.auth{
  position:relative;
  overflow:hidden;
  display:flex;
  justify-content:center;
  padding:var(--space-12) var(--space-5) var(--space-16);
}
/* Soft accent glow behind the card. */
.auth::before{
  content:"";
  position:absolute;
  z-index:0;
  top:-8%;
  left:50%;
  transform:translateX(-50%);
  width:min(720px, 130%);
  height:440px;
  background:radial-gradient(58% 60% at 50% 40%, var(--accent-050), transparent 72%);
  pointer-events:none;
}

.auth-shell{ position:relative; z-index:1; width:100%; max-width:462px; }

.auth-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius-xl);
  padding:var(--space-8);
  box-shadow:var(--shadow-lg);
}

/* ---------- Head ---------- */
.auth-head{ text-align:center; margin-bottom:var(--space-6); }
.auth-mark{
  display:flex; align-items:center; justify-content:center;
  width:54px; height:54px; margin:0 auto var(--space-4);
  border-radius:var(--radius-lg);
  background:var(--accent-050); color:var(--accent);
}
.auth-head h1{ font-size:var(--text-2xl); margin-bottom:var(--space-2); }
.auth-sub{ margin:0 auto; max-width:40ch; color:var(--ink-2); font-size:var(--text-sm); }

/* ---------- Role tabs ---------- */
.auth-tabs{
  display:grid; grid-template-columns:1fr 1fr; gap:var(--space-1);
  padding:var(--space-1);
  background:var(--page);
  border:1px solid var(--line-2);
  border-radius:var(--radius);
  margin-bottom:var(--space-6);
}
.auth-tab{
  display:inline-flex; align-items:center; justify-content:center; gap:var(--space-2);
  padding:.6rem var(--space-3);
  border-radius:calc(var(--radius) - 5px);
  font-size:var(--text-sm); font-weight:600; color:var(--ink-2);
  transition:background .12s ease, color .12s ease, box-shadow .12s ease;
}
.auth-tab:hover{ text-decoration:none; color:var(--ink); }
.auth-tab svg{ flex:none; color:var(--ink-faint); }
.auth-tab.is-active{ background:var(--card); color:var(--accent); box-shadow:var(--shadow-sm); }
.auth-tab.is-active svg{ color:var(--accent); }

/* ---------- Form ---------- */
.auth-form .form-group{ margin-bottom:var(--space-5); }
.auth-form .form-group:last-of-type{ margin-bottom:var(--space-6); }
.auth-optional{ font-weight:500; color:var(--ink-3); }

.auth-label-row{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-3); }
.auth-mini-link{ font-size:var(--text-xs); font-weight:600; white-space:nowrap; }

/* Password field with reveal toggle */
.pw-field{ position:relative; }
.pw-field .form-input{ padding-right:2.9rem; }
.pw-toggle{
  position:absolute; top:50%; right:.4rem; transform:translateY(-50%);
  display:inline-flex; align-items:center; justify-content:center;
  width:2.1rem; height:2.1rem;
  border:0; background:transparent; color:var(--ink-3);
  border-radius:var(--radius-sm); cursor:pointer;
  transition:color .12s ease, background .12s ease;
}
.pw-toggle:hover{ color:var(--ink); background:var(--accent-050); }
.pw-toggle svg{ display:block; }

/* Password strength meter (decorative; hint text carries the guidance) */
.pw-meter{ display:flex; align-items:center; gap:var(--space-3); margin-top:var(--space-3); }
.pw-meter__bar{
  position:relative; flex:1; height:6px; overflow:hidden;
  border-radius:var(--radius-pill); background:var(--line-2);
}
.pw-meter__bar i{
  position:absolute; top:0; bottom:0; left:0; width:0;
  border-radius:inherit; background:var(--skip);
  transition:width .2s ease, background .2s ease;
}
.pw-meter__label{
  min-width:6ch; text-align:right;
  font-size:var(--text-xs); font-weight:600; color:var(--ink-3);
}
.pw-meter[data-level="1"] .pw-meter__bar i{ width:28%; background:var(--red); }
.pw-meter[data-level="2"] .pw-meter__bar i{ width:52%; background:var(--amber); }
.pw-meter[data-level="3"] .pw-meter__bar i{ width:78%; background:var(--apply); }
.pw-meter[data-level="4"] .pw-meter__bar i{ width:100%; background:var(--apply); }
.pw-meter[data-level="1"] .pw-meter__label{ color:var(--red-strong); }
.pw-meter[data-level="2"] .pw-meter__label{ color:var(--amber); }
.pw-meter[data-level="3"] .pw-meter__label,
.pw-meter[data-level="4"] .pw-meter__label{ color:var(--apply-text); }

/* Checkboxes (terms / marketing) */
.auth-check{ align-items:flex-start; gap:var(--space-3); font-size:var(--text-sm); color:var(--ink-2); font-weight:500; }
.auth-check input{ margin-top:3px; }
.auth-check a{ font-weight:600; }

/* ---------- Between-block links ---------- */
.auth-divider{
  display:flex; align-items:center; gap:var(--space-3);
  margin:var(--space-6) 0;
  color:var(--ink-3); font-size:var(--text-xs); font-weight:500;
}
.auth-divider::before, .auth-divider::after{
  content:""; flex:1; height:1px; background:var(--line-2);
}
.auth-alt{ margin:var(--space-6) 0 0; text-align:center; font-size:var(--text-sm); color:var(--ink-2); }
.auth-alt a{ font-weight:600; }

.auth-foot{ margin:var(--space-6) 0 0; text-align:center; font-size:var(--text-xs); color:var(--ink-3); }
.auth-foot a{ color:var(--ink-3); text-decoration:underline; }
.auth-foot a:hover{ color:var(--ink-2); }

/* ---------- Small screens ---------- */
@media (max-width:520px){
  .auth{ padding:var(--space-8) var(--space-4) var(--space-12); }
  .auth-card{ padding:var(--space-6); border-radius:var(--radius-lg); }
}

/* ---------- Touch tap targets ---------- */
@media (max-width:640px){
  /* Jobseeker / employer role switch — full-height tappable tabs. */
  .auth-tab{ min-height:44px; }
  /* Password reveal toggle to a 44px target (widen field padding to clear it). */
  .pw-field .form-input{ padding-right:3.4rem; }
  .pw-toggle{ width:44px; height:44px; right:var(--space-1); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .pw-toggle, .pw-meter__bar i, .auth-tab{ transition:none; }
}
/* =====================================================================
   yournextjob - awareness quiz tests (manual handling, food safety)
   Styles for the shared quiz engine (public/assets/js/quiz.js) and the
   short training blocks above each quiz. Tokens only, all scoped under
   .qz / .qz-result / .qz-tile so nothing leaks to other pages (this
   sheet is globbed onto every page in dev).
   ===================================================================== */

/* ---------- Training helpers ---------- */

/* TILE cards (Task, Individual, Load, Environment). */
.qz-tile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0 var(--space-6);
  padding: 0;
  list-style: none;
}
.qz-tile__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.qz-tile__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  background: var(--accent-050);
  color: var(--accent-strong);
  font-weight: 800;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.qz-tile__term {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-1);
}
.qz-tile__desc {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Allergen chip list. */
.qz-allergens {
  list-style: none;
  margin: var(--space-4) 0 var(--space-6);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Compact "steps" list for safe lifting technique / key rules. */
.qz-steps {
  margin: var(--space-4) 0 var(--space-6);
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-2);
}
.qz-steps li {
  color: var(--ink-2);
  line-height: 1.55;
}
.qz-steps li strong { color: var(--ink); }

/* ---------- Quiz form ---------- */

/* Section heading that sits outside .tools-prose (which owns its own spacing). */
.qz-heading {
  margin-top: var(--space-12);
}

.qz {
  margin: var(--space-6) 0 var(--space-8);
}
.qz__intro {
  color: var(--ink-2);
  margin-bottom: var(--space-5);
}
.qz__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
  counter-reset: qz;
}
.qz__q {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.qz__q fieldset {
  border: 0;
  margin: 0;
  padding: var(--space-5);
}
.qz__q legend.qz__q-text {
  padding: 0;
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: var(--space-4);
  counter-increment: qz;
}
.qz__q-num {
  display: inline-block;
  min-width: 1.6em;
  color: var(--accent-strong);
  font-weight: 800;
}

/* Left accent bar once a question has been marked. */
.qz__q--right { border-color: var(--apply); box-shadow: inset 3px 0 0 var(--apply); }
.qz__q--wrong { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }

.qz__opts {
  display: grid;
  gap: var(--space-2);
}
.qz__opt {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.qz__opt:hover { border-color: var(--accent); }
.qz__opt:focus-within { box-shadow: var(--focus-ring); border-color: var(--accent); }
.qz__opt input[type="radio"] {
  margin-top: 0.2em;
  accent-color: var(--accent);
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.qz__opt-text {
  color: var(--ink);
  line-height: 1.45;
}
.qz__opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-050);
}

/* Post-marking option states. */
.qz__opt--correct {
  border-color: var(--apply);
  background: var(--apply-050);
}
.qz__opt--correct .qz__opt-text { color: var(--apply-text); font-weight: 600; }
.qz__opt--chosen-wrong {
  border-color: var(--red);
  background: var(--red-050);
}
.qz__opt--chosen-wrong .qz__opt-text { color: var(--red-strong); }

/* Per-question feedback line. */
.qz__feedback {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.qz__feedback--right { background: var(--apply-050); color: var(--apply-text); }
.qz__feedback--wrong { background: var(--red-050); color: var(--red-strong); }
.qz__feedback strong { display: inline; }

/* ---------- Single-question navigation (optional mode) ---------- */
.qz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.qz__progress {
  margin: 0;
  color: var(--ink-3);
  font-size: var(--text-sm);
  font-weight: 600;
}
.qz__nav-btn { min-width: 6rem; }

/* ---------- Actions ---------- */
.qz__actions {
  margin-top: var(--space-5);
}

/* ---------- Result panel ---------- */
.qz-result {
  margin: var(--space-6) 0 var(--space-8);
  scroll-margin-top: var(--space-16);
  outline: none;
}
.qz-result__card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--card);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.qz-result__card--pass { border-color: var(--apply); background: var(--apply-050); }
.qz-result__card--fail { border-color: var(--amber); background: var(--amber-050); }
.qz-result__eyebrow {
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--ink-3);
}
.qz-result__score {
  margin: 0;
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
}
.qz-result__card--pass .qz-result__score { color: var(--apply-text); }
.qz-result__verdict {
  margin: var(--space-3) auto var(--space-5);
  max-width: 34rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.qz-result__actions {
  display: grid;
  gap: var(--space-3);
  max-width: 24rem;
  margin: 0 auto;
}
.qz-result__retry {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.qz-result__retry:hover { border-color: var(--accent); color: var(--accent-strong); }

@media (max-width: 640px) {
  .qz__q legend.qz__q-text { font-size: var(--text-base); }
  .qz-result__score { font-size: var(--text-4xl); }
}
/* ==========================================================================
   Candidate profile + CV (account) and the public candidate profile.
   Namespaced .profile-* and .cand-* so nothing leaks via the global glob.
   ========================================================================== */

/* ---------- Account: Profile and CV ---------- */
.profile-page{ padding-block:var(--space-8) var(--space-16); }
.profile-page__head{ margin-bottom:var(--space-6); }
.profile-page__head h1{ font-size:var(--text-3xl); margin-bottom:var(--space-2); }

.profile-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:var(--space-6);
  align-items:start;
}
.profile-form{ display:flex; flex-direction:column; gap:var(--space-5); min-width:0; }
.profile-side{ display:flex; flex-direction:column; gap:var(--space-5); min-width:0; }

.profile-card{ padding:var(--space-6); }
.profile-card__title{ font-size:var(--text-xl); margin-bottom:var(--space-5); }

/* Visibility opt-in card */
.profile-visible{
  display:flex; align-items:center; justify-content:space-between; gap:var(--space-5);
  padding:var(--space-5) var(--space-6);
  border-color:var(--line-2);
}
.profile-visible.is-on{
  border-color:var(--accent);
  background:linear-gradient(180deg, var(--accent-050), var(--card));
}
.profile-visible__text{ min-width:0; }
.profile-visible__text h2{ font-size:var(--text-lg); margin-bottom:var(--space-1); }
.profile-visible__note{ margin:0; font-size:var(--text-sm); color:var(--ink-2); max-width:52ch; }

/* Toggle switch (scoped under the visibility card so it cannot leak) */
.profile-visible .switch{
  display:inline-flex; align-items:center; gap:var(--space-3);
  cursor:pointer; flex:none; user-select:none;
}
.profile-visible .switch__input{ position:absolute; opacity:0; width:1px; height:1px; }
.profile-visible .switch__track{
  position:relative; width:52px; height:30px; flex:none;
  background:var(--skip); border-radius:var(--radius-pill);
  transition:background .18s ease;
}
.profile-visible .switch__thumb{
  position:absolute; top:3px; left:3px; width:24px; height:24px;
  background:#fff; border-radius:50%; box-shadow:var(--shadow-sm);
  transition:transform .18s ease;
}
.profile-visible .switch__input:checked + .switch__track{ background:var(--accent); }
.profile-visible .switch__input:checked + .switch__track .switch__thumb{ transform:translateX(22px); }
.profile-visible .switch__input:focus-visible + .switch__track{ box-shadow:var(--focus-ring); }
.profile-visible .switch__state{ font-size:var(--text-sm); font-weight:600; color:var(--ink-2); min-width:3.5em; }

/* Field pairs + salary */
.profile-form__pair{ grid-template-columns:1fr 1fr; }
.profile-form__pair .form-group{ margin-bottom:0; }
.profile-form__skills{ min-height:88px; }
.profile-form__opt{ font-weight:400; color:var(--ink-3); font-size:var(--text-xs); }

.profile-salary{ display:flex; align-items:stretch; gap:var(--space-2); }
.profile-salary__prefix{
  display:inline-flex; align-items:center; padding:0 var(--space-3);
  background:var(--page); border:1px solid var(--line-2); border-radius:var(--radius-sm);
  color:var(--ink-2); font-weight:600;
}
.profile-salary__amount{ flex:1 1 auto; min-width:0; }
.profile-salary__period{ flex:0 0 auto; width:auto; }

.profile-form__actions{ margin-top:var(--space-5); }

/* CV card */
.profile-cv__empty{ font-size:var(--text-sm); color:var(--ink-2); }
.profile-cv__current{
  display:flex; align-items:center; gap:var(--space-3);
  padding:var(--space-3) var(--space-4);
  background:var(--page); border:1px solid var(--line); border-radius:var(--radius);
  margin-bottom:var(--space-4);
}
.profile-cv__badge{
  display:inline-flex; align-items:center; justify-content:center;
  flex:none; width:44px; height:44px; border-radius:var(--radius-sm);
  background:var(--accent-050); color:var(--accent-strong);
  font-size:var(--text-xs); font-weight:700; letter-spacing:.03em;
}
.profile-cv__meta{ display:flex; flex-direction:column; min-width:0; }
.profile-cv__name{ font-weight:600; }
.profile-cv__when{ font-size:var(--text-xs); color:var(--ink-3); }
.profile-cv__actions{ display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap; margin-bottom:var(--space-5); }
.profile-cv__delete{ margin:0; }

.profile-cv__parsed{
  border-top:1px solid var(--line); padding-top:var(--space-5); margin-bottom:var(--space-5);
}
.profile-cv__parsed-head{ font-size:var(--text-sm); text-transform:uppercase; letter-spacing:.05em; color:var(--ink-3); margin-bottom:var(--space-3); }
.profile-cv__years{ font-size:var(--text-sm); color:var(--ink-2); margin-bottom:var(--space-3); }
.profile-cv__chips{ gap:var(--space-2); margin-bottom:var(--space-3); }

.profile-cv__upload{
  border-top:1px solid var(--line); padding-top:var(--space-5);
  display:flex; flex-direction:column; gap:var(--space-2);
}
.profile-cv__file{ padding:var(--space-3); font-size:var(--text-sm); }
.profile-cv__upload .btn{ margin-top:var(--space-2); }

/* Non-interactive chip variant (used on profile + candidate pages) */
.chip--static{ cursor:default; }
.chip--static:hover{ border-color:var(--line-2); color:var(--ink-2); box-shadow:none; transform:none; }

/* ---------- Public candidate profile ---------- */
.cand-page{ padding-block:var(--space-8) var(--space-16); max-width:var(--container-narrow); }
.cand-card{ padding:var(--space-8); }
.cand-card:hover{ box-shadow:none; transform:none; }

.cand-hero{ display:flex; gap:var(--space-5); align-items:flex-start; margin-bottom:var(--space-6); }
.cand-hero__avatar{
  display:inline-flex; align-items:center; justify-content:center; flex:none;
  width:64px; height:64px; border-radius:50%;
  background:var(--accent-050); color:var(--accent-strong);
  font-size:var(--text-2xl); font-weight:700;
}
.cand-hero__body{ min-width:0; }
.cand-hero__name{ font-size:var(--text-2xl); margin:var(--space-2) 0 var(--space-1); }
.cand-hero__title{ margin:0 0 var(--space-3); font-size:var(--text-lg); color:var(--ink-2); font-weight:500; }
.cand-hero__meta{ display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-4); }
.cand-hero__metaitem{
  display:inline-flex; align-items:center; gap:var(--space-2);
  font-size:var(--text-sm); color:var(--ink-2);
}
.cand-hero__metaitem svg{ color:var(--accent); flex:none; }

.cand-section{ border-top:1px solid var(--line); padding-top:var(--space-5); margin-top:var(--space-5); }
.cand-section__head{ font-size:var(--text-sm); text-transform:uppercase; letter-spacing:.05em; color:var(--ink-3); margin-bottom:var(--space-3); }
.cand-summary{ margin:0; font-size:var(--text-lg); line-height:1.55; color:var(--ink); }
.cand-avail{ margin:0; color:var(--ink-2); }
.cand-skills{ gap:var(--space-2); }

.cand-actions{ border-top:1px solid var(--line); padding-top:var(--space-6); margin-top:var(--space-6); display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-3); }
.cand-actions__msg{ margin:0; }
.cand-actions__note{ flex-basis:100%; margin:var(--space-2) 0 0; font-size:var(--text-sm); color:var(--ink-3); }
.cand-actions--guest{ flex-direction:column; align-items:flex-start; }
.cand-actions--guest .cand-actions__note{ margin:0; }

/* ---------- Responsive ---------- */
@media (max-width:860px){
  .profile-grid{ grid-template-columns:1fr; }
}
@media (max-width:560px){
  .profile-visible{ flex-direction:column; align-items:flex-start; }
  .profile-form__pair{ grid-template-columns:1fr; gap:var(--space-5); }
  .profile-form__pair .form-group{ margin-bottom:0; }
  .cand-card{ padding:var(--space-6); }
  .cand-hero{ flex-direction:column; }
}
/* =====================================================================
   Weekend, casual & event work hub. Energetic but on the soft-premium
   system: accent-led hero, quick chips, sector tiles, a card grid.
   Tokens only.
   ===================================================================== */

.casual-hero {
  background:
    radial-gradient(120% 90% at 88% -10%, var(--accent-050), transparent 60%),
    linear-gradient(180deg, var(--surface, var(--card)), var(--page));
  border-bottom: 1px solid var(--line);
  padding: var(--space-12) 0 var(--space-10);
}
.casual-hero .eyebrow { color: var(--accent); }
.casual-hero h1 {
  font-size: clamp(var(--text-3xl), 6vw, 3rem);
  line-height: 1.05; letter-spacing: -0.02em; margin: var(--space-3) 0 var(--space-3);
  max-width: 16ch;
}
.casual-hero .lead { max-width: 52ch; color: var(--ink-2); font-size: var(--text-lg); }

.casual-search { display: flex; gap: var(--space-2); margin: var(--space-6) 0 var(--space-5); max-width: 520px; flex-wrap: wrap; }
.casual-search__field { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.casual-search__field svg { position: absolute; left: var(--space-3); color: var(--ink-faint); pointer-events: none; }
.casual-search__field .form-input { width: 100%; padding-left: calc(var(--space-3) * 2 + 18px); }
.casual-search .btn { flex: 0 0 auto; }

.casual-trust { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: 0; padding: 0; }
.casual-trust li { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.casual-trust svg { color: var(--accent); flex: none; }

.casual-body { padding: var(--space-8) 0 var(--space-16); }

/* Quick-filter chips */
.casual-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-4); }
.casual-chip {
  display: inline-flex; align-items: center; padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-2, var(--line)); border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); background: var(--card);
  text-decoration: none; white-space: nowrap; transition: border-color .12s, color .12s, background .12s;
}
.casual-chip:hover { border-color: var(--accent); color: var(--ink); text-decoration: none; }
.casual-chip.is-active { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }

/* Sector tiles */
.casual-sectors { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.casual-sector {
  padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--text-sm); color: var(--ink-2); background: var(--card); text-decoration: none;
}
.casual-sector:hover { border-color: var(--accent); color: var(--link); background: var(--accent-050); text-decoration: none; }

.casual-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.casual-results-head h2 { font-size: var(--text-xl); font-weight: 650; margin: 0; }
.casual-results-head h2 strong { color: var(--link); }
.casual-clear { font-size: var(--text-sm); color: var(--link); }

.casual-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-4); }
@media (max-width: 560px) { .casual-grid { grid-template-columns: 1fr; } }

.casual-empty { text-align: center; padding: var(--space-12) var(--space-4); color: var(--ink-2); }
.casual-empty h3 { color: var(--ink); font-size: var(--text-lg); margin-bottom: var(--space-2); }

.pagination { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-8); }
.pagination__at { font-size: var(--text-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* Safety reassurance */
.casual-safe {
  display: flex; gap: var(--space-3); align-items: flex-start;
  margin-top: var(--space-8); padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-md); background: var(--accent-050);
  font-size: var(--text-sm); color: var(--ink-2); line-height: 1.5;
}
.casual-safe svg { color: var(--accent); flex: none; margin-top: 1px; }
.casual-safe strong { color: var(--ink); }
/* =====================================================================
   Recruiter directory + company profiles. Soft-premium, CSS vars only.
   ===================================================================== */

/* ---------- Shared: star rating ---------- */
.stars{ position:relative; display:inline-block; white-space:nowrap; line-height:1;
  font-size:var(--text-base); letter-spacing:2px; vertical-align:middle; }
.stars__base{ color:var(--skip); }
.stars__fill{ position:absolute; inset:0; overflow:hidden; width:var(--star-pct,0%); color:var(--amber); }
.stars--lg{ font-size:var(--text-xl); letter-spacing:3px; }
.muted-inline{ color:var(--ink-3); font-size:var(--text-sm); font-weight:400; }

/* Shared logo: shown only when the company uploaded one (no letter squares). */
.company-avatar{ flex:none; width:52px; height:52px; border-radius:var(--radius);
  object-fit:contain; background:var(--card); border:1px solid var(--line); }
.verified-tick{ flex:none; color:var(--accent); vertical-align:middle; }

.companies-section__head{ display:flex; align-items:baseline; justify-content:space-between;
  gap:var(--space-4); flex-wrap:wrap; margin-bottom:var(--space-5); }
.companies-section__head h2{ margin:0; font-size:var(--text-2xl); }
.companies-section__note{ font-size:var(--text-sm); font-weight:500; color:var(--ink-3); }

/* ---------- Hub hero ---------- */
.companies-hero{ padding:var(--space-8) 0 var(--space-6); }
.companies-hero .breadcrumb{ margin-bottom:var(--space-4); }
.companies-hero h1{ font-size:clamp(2rem,5vw,var(--text-4xl)); max-width:18ch; margin-bottom:var(--space-4); }
.companies-hero .lead{ max-width:64ch; }

/* Filter form */
.companies-filter{ margin-top:var(--space-6); display:flex; flex-direction:column; gap:var(--space-3); }
.companies-filter__search{ display:flex; align-items:center; gap:var(--space-3);
  background:var(--card); border:1px solid var(--line-2); border-radius:var(--radius-lg);
  padding:0 var(--space-4); box-shadow:var(--shadow-sm); max-width:640px; }
.companies-filter__search svg{ flex:none; color:var(--ink-faint); }
.companies-filter__search input{ width:100%; border:0; background:transparent; padding:.85rem 0;
  font-size:var(--text-base); color:var(--ink); }
.companies-filter__search input::placeholder{ color:var(--ink-3); }
.companies-filter__search input:focus{ outline:none; }
.companies-filter__selects{ display:flex; flex-wrap:wrap; gap:var(--space-3); align-items:center; }
.companies-filter__selects .form-select{ width:auto; min-width:150px; flex:1 1 150px; max-width:220px; }
.companies-filter__selects .btn{ flex:none; }

/* ---------- Body ---------- */
.companies-body{ padding-bottom:var(--space-16); }

/* A-Z jumplist */
.az-nav{ display:flex; flex-wrap:wrap; gap:var(--space-1); margin:var(--space-6) 0 var(--space-8);
  padding-bottom:var(--space-5); border-bottom:1px solid var(--line); }
.az-nav__item{ display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px;
  padding:0 var(--space-2); border-radius:var(--radius-sm); font-size:var(--text-sm); font-weight:600;
  color:var(--ink-2); transition:background .12s ease, color .12s ease; }
a.az-nav__item:hover{ background:var(--accent-050); color:var(--accent); text-decoration:none; }
.az-nav__item.is-active{ background:var(--accent-fill); color:var(--on-accent); }
.az-nav__item.is-empty{ color:var(--line-2); cursor:default; }

/* Top-rated strip */
.companies-toprated{ margin-bottom:var(--space-10); }
.toprated-grid{ display:grid; gap:var(--space-4); grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); }
.toprated-card{ display:flex; gap:var(--space-3); align-items:flex-start; background:var(--card);
  border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-4);
  color:inherit; transition:box-shadow .14s ease, transform .14s ease, border-color .14s ease; }
.toprated-card:hover{ text-decoration:none; box-shadow:var(--shadow-md); transform:translateY(-1px); border-color:var(--line-2); }
.toprated-card .company-avatar{ width:44px; height:44px; }
.toprated-card__body{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.toprated-card__name{ font-weight:600; color:var(--ink); display:inline-flex; align-items:center; gap:var(--space-1);
  overflow:hidden; text-overflow:ellipsis; }
.toprated-card__rating{ display:inline-flex; align-items:center; gap:var(--space-2); font-size:var(--text-sm); }
.toprated-card__rating b{ color:var(--ink); }
.toprated-card__loc{ font-size:var(--text-sm); color:var(--ink-3); }

/* Toolbar */
.companies-toolbar{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-4);
  flex-wrap:wrap; margin-bottom:var(--space-5); }
.companies-count{ margin:0; color:var(--ink-2); font-size:var(--text-sm); }
.companies-count strong{ color:var(--ink); }
.companies-clear{ font-size:var(--text-sm); font-weight:600; color:var(--accent); }

/* Directory grid */
.companies-grid{ display:grid; gap:var(--space-5); grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); }
.company-card{ position:relative; display:flex; flex-direction:column; gap:var(--space-4);
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-5);
  transition:box-shadow .14s ease, transform .14s ease, border-color .14s ease; }
.company-card:hover,.company-card:focus-within{ box-shadow:var(--shadow-md); transform:translateY(-1px); border-color:var(--line-2); }
.company-card__head{ display:flex; gap:var(--space-3); align-items:flex-start; }
.company-card__titles{ min-width:0; }
/* Block, not flex: as a flex item the tick drifted to the far edge whenever a long name wrapped.
   The tick sits in a no-wrap span with the last word (companies/index.php). */
.company-card__name{ font-size:var(--text-lg); line-height:1.25; margin:0 0 var(--space-1); }
.company-card__name .verified-tick{ margin-left:var(--space-1); vertical-align:-2px; }
.company-card__tail{ white-space:nowrap; }
.company-card__link{ color:var(--ink); }
.company-card__link:hover{ color:var(--accent-strong); text-decoration:none; }
.company-card__link::after{ content:""; position:absolute; inset:0; border-radius:var(--radius-lg); }
.company-card__meta{ margin:0; font-size:var(--text-sm); color:var(--ink-3); display:flex; flex-wrap:wrap;
  align-items:center; gap:var(--space-1); }
.company-card__type{ font-weight:600; color:var(--ink-2); }
/* The place gets its own line: on the narrow cards it always wrapped, leaving "Direct employer ·" with a dangling dot. */
.company-card__sep{ display:none; }
.company-card__loc{ flex-basis:100%; }
.company-card__rating{ display:flex; align-items:center; gap:var(--space-2); font-size:var(--text-sm); }
.company-card__rating b{ color:var(--ink); }
.company-card__norating{ font-size:var(--text-sm); color:var(--ink-faint); }
.company-card__sectors{ display:flex; flex-wrap:wrap; gap:var(--space-2); }
.company-card__foot{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-2);
  margin-top:auto; padding-top:var(--space-3); border-top:1px solid var(--line); }
.company-card__jobs{ display:inline-flex; align-items:center; gap:var(--space-2); font-size:var(--text-sm);
  font-weight:600; color:var(--apply-text); }
.company-card__jobs--none{ color:var(--ink-3); font-weight:500; }
.company-card__jobs .dot{ width:8px; height:8px; border-radius:50%; background:var(--apply); flex:none;
  box-shadow:0 0 0 3px var(--apply-050); }
.company-card__more{ color:var(--ink-faint); font-size:var(--text-lg); transition:transform .12s ease; }
.company-card:hover .company-card__more{ transform:translateX(3px); color:var(--accent); }

/* Claim banner */
.companies-claim{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:var(--space-5); margin-top:var(--space-12); padding:var(--space-8);
  background:var(--accent-050); border:1px solid var(--line-2); border-radius:var(--radius-lg); }
.companies-claim h2{ font-size:var(--text-xl); margin:0 0 var(--space-1); }
.companies-claim p{ margin:0; color:var(--ink-2); font-size:var(--text-sm); max-width:52ch; }
.companies-claim .btn{ flex:none; }

/* =====================================================================
   Profile
   ===================================================================== */
/* Longhands only, so the container's horizontal gutters (padding:0 var(--space-5))
   are preserved. A `padding` shorthand here would zero the side padding and
   break alignment with every other .container page. */
.company-profile{ padding-top:var(--space-6); padding-bottom:var(--space-16); }
.company-profile .breadcrumb{ margin-bottom:var(--space-5); }

/* Hero: a calm, lightly tinted panel. Identity and CTAs on the left, three
   real numbers on the right (stacked under on phones). */
.company-profile .company-hero{ position:relative; display:grid; grid-template-columns:minmax(0,1fr);
  gap:var(--space-6); padding:var(--space-8); margin-bottom:var(--space-6);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent-050) 70%, var(--card)) 0%, var(--card) 100%);
  border:1px solid var(--line-2); border-radius:var(--radius-xl); box-shadow:var(--shadow-sm); overflow:hidden; }
.company-profile .company-hero__main{ min-width:0; }
.company-profile .company-hero__id{ display:flex; align-items:center; gap:var(--space-5); }
.company-profile .company-hero__logo{ flex:none; width:76px; height:76px; border-radius:var(--radius-lg);
  object-fit:contain; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.company-profile .company-hero__titles{ min-width:0; }
.company-profile .company-hero__kicker{ display:flex; flex-wrap:wrap; align-items:baseline; gap:var(--space-1) var(--space-3);
  margin:0 0 var(--space-2); }
.company-profile .company-hero__type{ font-size:var(--text-xs); font-weight:700; letter-spacing:.07em;
  text-transform:uppercase; color:var(--accent-strong); }
.company-profile .company-hero__claimed{ font-size:var(--text-xs); font-weight:600; color:var(--ink-3); }
.company-profile .company-hero h1{ font-size:clamp(1.9rem,4.4vw,var(--text-4xl)); line-height:1.08;
  letter-spacing:-.02em; margin:0; text-wrap:balance; overflow-wrap:anywhere; }
.company-profile .company-hero__headline{ font-size:var(--text-lg); color:var(--ink-2); margin:var(--space-4) 0 0;
  max-width:60ch; text-wrap:pretty; }
.company-profile .company-hero__meta{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-3) var(--space-5);
  margin-top:var(--space-4); }
.company-profile .company-hero__loc{ display:inline-flex; align-items:center; gap:var(--space-2); color:var(--ink-2); font-size:var(--text-sm); }
.company-profile .company-hero__loc svg{ color:var(--ink-faint); flex:none; }
.company-profile .company-hero__rating{ display:inline-flex; align-items:center; gap:var(--space-2); color:var(--ink);
  min-height:44px; }
.company-profile .company-hero__rating:hover{ text-decoration:none; }
.company-profile .company-hero__rating b{ font-size:var(--text-base); }
/* What "verified" means, said once in plain words. */
.company-profile .company-hero__verified{ display:flex; gap:var(--space-3); align-items:flex-start; max-width:62ch;
  margin:var(--space-4) 0 0; padding:var(--space-3) var(--space-4); font-size:var(--text-sm); line-height:1.5;
  color:var(--ink-2); background:color-mix(in srgb, var(--card) 70%, transparent); border:1px solid var(--line-2);
  border-radius:var(--radius); }
.company-profile .company-hero__verified b{ color:var(--ink); }
.company-profile .company-hero__verified-mark{ flex:none; display:inline-flex; align-items:center; justify-content:center;
  width:22px; height:22px; margin-top:1px; border-radius:50%; background:var(--accent-fill); color:var(--on-accent); }
.company-profile .company-hero__actions{ display:flex; flex-wrap:wrap; gap:var(--space-3); margin-top:var(--space-6); }
.company-profile .company-hero__actions .btn{ min-height:44px; }

/* The three numbers */
.company-profile .company-hero__stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(96px,1fr));
  gap:var(--space-3); margin:0; align-content:start; }
.company-profile .company-stat{ padding:var(--space-4); background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-lg); }
.company-profile .company-stat dt{ font-size:var(--text-xs); font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-3); }
.company-profile .company-stat dd{ margin:var(--space-1) 0 0; font-size:var(--text-3xl); font-weight:700; line-height:1.05;
  letter-spacing:-.02em; color:var(--ink); font-variant-numeric:tabular-nums; }
.company-profile .company-stat dd small{ display:block; margin-top:var(--space-1); font-size:var(--text-xs); font-weight:500; line-height:1.3; letter-spacing:0; color:var(--ink-3); }

/* Where they hire + top roles */
.company-profile .company-footprint{ display:grid; grid-template-columns:minmax(0,1fr); gap:var(--space-5);
  margin-bottom:var(--space-10); padding-bottom:var(--space-8); border-bottom:1px solid var(--line); }
.company-profile .company-footprint__panel{ min-width:0; background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-lg); padding:var(--space-5) var(--space-6); }
.company-profile .company-footprint__head{ font-size:var(--text-xs); font-weight:700; letter-spacing:.07em;
  text-transform:uppercase; color:var(--ink-3); margin:0 0 var(--space-3); }
.company-profile .company-towns{ list-style:none; margin:0; padding:0; }
.company-profile .company-towns__link{ display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center;
  gap:var(--space-1) var(--space-3); min-height:44px; padding:var(--space-2) 0; color:var(--ink); }
.company-profile .company-towns__link:hover{ text-decoration:none; }
.company-profile .company-towns__link:hover .company-towns__name{ color:var(--accent-strong); }
.company-profile .company-towns__name{ font-weight:600; font-size:var(--text-sm); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.company-profile .company-towns__n{ font-size:var(--text-sm); color:var(--ink-3); font-variant-numeric:tabular-nums; }
.company-profile .company-towns__bar{ grid-column:1 / -1; height:6px; border-radius:var(--radius-pill);
  background:color-mix(in srgb, var(--accent) 10%, var(--page)); overflow:hidden; }
.company-profile .company-towns__bar span{ display:block; height:100%; border-radius:inherit;
  background:linear-gradient(90deg, var(--accent-fill), color-mix(in srgb, var(--accent) 60%, var(--apply))); }
.company-profile .company-footprint__more{ margin:var(--space-2) 0 0; font-size:var(--text-sm); color:var(--ink-3); }
.company-profile .company-roles{ list-style:none; margin:0; padding:0; }
.company-profile .company-roles__row{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-3);
  min-height:44px; padding:var(--space-2) 0; border-bottom:1px solid var(--line); }
.company-profile .company-roles__row:last-child{ border-bottom:0; }
.company-profile .company-roles__title{ font-weight:600; font-size:var(--text-sm); color:var(--ink); min-width:0; overflow-wrap:anywhere; }
.company-profile .company-roles__n{ flex:none; min-width:28px; padding:.1rem .5rem; text-align:center; font-size:var(--text-xs);
  font-weight:700; color:var(--accent-strong); background:var(--accent-050); border-radius:var(--radius-pill);
  font-variant-numeric:tabular-nums; }
.company-profile .company-footprint__sectors{ margin:var(--space-4) 0 0; font-size:var(--text-sm); color:var(--ink-3); }
.company-profile .company-footprint__sectors a{ font-weight:600; }

@media (min-width:760px){
  .company-profile .company-footprint{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
@media (min-width:980px){
  .company-profile .company-hero{ grid-template-columns:minmax(0,1fr) 300px; gap:var(--space-10); padding:var(--space-10); }
  .company-profile .company-hero__stats{ grid-template-columns:minmax(0,1fr); }
}
@media (max-width:560px){
  .company-profile .company-hero{ padding:var(--space-6) var(--space-5); border-radius:var(--radius-lg); }
  .company-profile .company-hero__id{ gap:var(--space-4); }
  .company-profile .company-hero__logo{ width:60px; height:60px; }
  .company-profile .company-hero__actions .btn{ flex:1 1 100%; justify-content:center; }
  .company-profile .company-footprint__panel{ padding:var(--space-4) var(--space-5); }
}

.badge-verified{ background:var(--accent-050); color:var(--accent-strong); border:1px solid var(--line-2); }
.badge-verified svg{ color:var(--accent); }

/* Layout */
.company-layout{ display:grid; grid-template-columns:1fr; gap:var(--space-8); align-items:start; }
.company-main{ min-width:0; }
.company-block{ margin-bottom:var(--space-10); scroll-margin-top:calc(66px + var(--space-4)); }
.company-block h2{ font-size:var(--text-2xl); }
.company-about{ color:var(--ink-2); font-size:var(--text-lg); line-height:1.7; }

.empty-state--inset{ text-align:center; padding:var(--space-8); }
.empty-state--inset h3{ font-size:var(--text-lg); margin-bottom:var(--space-2); }
.empty-state--inset p{ max-width:46ch; margin:0 auto var(--space-5); color:var(--ink-2); }
.btn-sm-inline{ flex:none; padding:.5rem .9rem; font-size:var(--text-sm); }

/* Review summary */
.review-summary{ display:grid; grid-template-columns:1fr; gap:var(--space-6); align-items:center;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-6); margin-bottom:var(--space-6); }
.review-summary__score{ text-align:center; }
.review-summary__avg{ font-size:var(--text-4xl); font-weight:700; line-height:1; letter-spacing:-.02em; color:var(--ink); }
.review-summary__score .stars{ margin-top:var(--space-2); }
.review-summary__count{ margin:var(--space-2) 0 0; font-size:var(--text-sm); color:var(--ink-3); }
.review-summary__recommend{ margin:var(--space-1) 0 0; font-size:var(--text-sm); color:var(--ink-2); }
.review-summary__recommend b{ color:var(--apply-text); }
.review-summary__bars{ display:flex; flex-direction:column; gap:var(--space-2); }
.review-bar{ display:grid; grid-template-columns:14px 1fr 34px; align-items:center; gap:var(--space-3); }
.review-bar__label{ font-size:var(--text-sm); color:var(--ink-3); font-weight:600; text-align:right; }
.review-bar__track{ height:8px; border-radius:var(--radius-pill); background:var(--page); overflow:hidden; border:1px solid var(--line); }
.review-bar__fill{ display:block; height:100%; background:var(--amber); border-radius:var(--radius-pill); }
.review-bar__count{ font-size:var(--text-sm); color:var(--ink-3); text-align:right; }

/* Review list */
.review-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:var(--space-4); }
.review-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-5); }
.review-card__top{ display:flex; align-items:center; gap:var(--space-3); margin-bottom:var(--space-3); }
.review-card__recommend{ display:inline-flex; align-items:center; gap:var(--space-1);
  font-size:var(--text-xs); font-weight:600; color:var(--apply-text); background:var(--apply-050);
  padding:.2rem .55rem; border-radius:var(--radius-pill); }
.review-card__recommend svg{ color:var(--apply); }
.review-card__title{ font-size:var(--text-lg); margin:0 0 var(--space-2); }
.review-card__body{ color:var(--ink-2); margin:0 0 var(--space-4); }
.review-card__pc{ display:grid; gap:var(--space-3); margin-bottom:var(--space-4); }
.review-pc{ border-radius:var(--radius); padding:var(--space-3) var(--space-4); border:1px solid var(--line); }
.review-pc__label{ display:block; font-size:var(--text-xs); font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; margin-bottom:var(--space-1); }
.review-pc p{ margin:0; font-size:var(--text-sm); color:var(--ink-2); }
.review-pc--pro{ background:var(--apply-050); border-color:transparent; }
.review-pc--pro .review-pc__label{ color:var(--apply-text); }
.review-pc--con{ background:var(--red-050); border-color:transparent; }
.review-pc--con .review-pc__label{ color:var(--red-strong); }
.review-card__meta{ margin:0; font-size:var(--text-sm); color:var(--ink-3); display:flex; flex-wrap:wrap;
  align-items:center; gap:var(--space-1) var(--space-2); }

/* Aside */
.company-aside{ display:flex; flex-direction:column; gap:var(--space-5); }
.company-facts{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-5); }
.company-facts__head{ font-size:var(--text-base); margin:0 0 var(--space-4);
  text-transform:uppercase; letter-spacing:.05em; color:var(--ink-3); }
.company-facts__list{ margin:0 0 var(--space-4); }
.company-facts__list div{ display:flex; justify-content:space-between; gap:var(--space-4);
  padding:var(--space-3) 0; border-bottom:1px solid var(--line); }
.company-facts__list div:last-child{ border-bottom:0; }
.company-facts__list dt{ color:var(--ink-3); font-size:var(--text-sm); flex:none; }
.company-facts__list dd{ margin:0; text-align:right; font-weight:600; font-size:var(--text-sm); color:var(--ink); }

.company-claim-card{ background:var(--accent-050); border:1px solid var(--line-2); border-radius:var(--radius-lg); padding:var(--space-5); }
.company-claim-card h2{ font-size:var(--text-lg); margin:0 0 var(--space-2); }
.company-claim-card p{ margin:0 0 var(--space-4); font-size:var(--text-sm); color:var(--ink-2); }

/* ---------- Responsive ---------- */
@media (min-width:600px){
  .review-summary{ grid-template-columns:180px 1fr; }
  .review-card__pc{ grid-template-columns:1fr 1fr; }
}
@media (min-width:900px){
  .company-layout{ grid-template-columns:minmax(0,1fr) 320px; }
  .company-aside{ position:sticky; top:calc(66px + var(--space-4)); }
}
@media (max-width:560px){
  .companies-claim{ padding:var(--space-6); }
  .companies-claim .btn{ width:100%; }
}
/* =====================================================================
   yournextjob content + legal pages
   About, contact and the legal suite. Soft premium, design tokens only.
   ===================================================================== */

/* ---------- Page header band ---------- */
.content-head{
  background:linear-gradient(180deg, var(--accent-050), var(--page));
  border-bottom:1px solid var(--line);
  padding:var(--space-10) 0 var(--space-8);
}
.content-head .breadcrumb{ padding:0 0 var(--space-3); }
.content-head .eyebrow{ margin-bottom:var(--space-2); }
.content-head h1{ font-size:clamp(2rem, 5vw, var(--text-3xl)); margin-bottom:var(--space-3); }
.content-head .lead{ max-width:58ch; margin:0; }
.content-updated{ margin:var(--space-5) 0 0; font-size:var(--text-sm); color:var(--ink-3); }

/* ---------- Prose body ---------- */
.content-body{ padding:var(--space-12) 0 var(--space-16); }
.content-prose{ color:var(--ink); }
.content-prose > p:first-of-type{ font-size:var(--text-lg); color:var(--ink-2); }
.content-prose h2{
  font-size:var(--text-xl); margin:var(--space-10) 0 var(--space-3);
  scroll-margin-top:84px;
}
.content-prose h2:first-child{ margin-top:0; }
.content-prose h3{ font-size:var(--text-lg); margin:var(--space-6) 0 var(--space-2); }
.content-prose p{ margin:0 0 var(--space-4); }
.content-prose ul,.content-prose ol{ margin:0 0 var(--space-5); padding-left:1.25rem; }
.content-prose li{ margin-bottom:var(--space-2); }
.content-prose li::marker{ color:var(--accent); }
.content-prose a{ color:var(--link); text-decoration:underline; text-underline-offset:2px; }
.content-prose a:hover{ color:var(--accent-strong); }
.content-prose strong{ color:var(--ink); font-weight:600; }

/* Tables (cookie policy) */
.content-prose .table-wrap{ position:relative; overflow-x:auto; margin:0 0 var(--space-5); }
.content-prose table{ width:100%; border-collapse:collapse; font-size:var(--text-sm); }
.content-prose th,.content-prose td{
  border:1px solid var(--line-2); padding:var(--space-3);
  text-align:left; vertical-align:top;
}
.content-prose thead th{ background:var(--accent-050); font-weight:600; }
.content-prose code{
  background:var(--accent-050); color:var(--accent-strong);
  padding:.1rem .4rem; border-radius:var(--radius-sm); font-size:.88em;
}

/* ---------- Callout ---------- */
.content-callout{
  background:var(--accent-050); border:1px solid var(--line-2);
  border-radius:var(--radius-lg); padding:var(--space-5) var(--space-6);
  margin:0 0 var(--space-8);
}
.content-callout p{ margin:0; color:var(--ink-2); }
.content-callout p + p{ margin-top:var(--space-3); }

/* ---------- "On this page" mini-nav ---------- */
.content-toc{
  border:1px solid var(--line); border-radius:var(--radius-lg);
  background:var(--card); padding:var(--space-4) var(--space-5);
  margin:0 0 var(--space-8);
}
.content-toc h2{
  font-size:var(--text-xs); text-transform:uppercase; letter-spacing:.06em;
  color:var(--ink-3); margin:0 0 var(--space-3);
}
.content-toc ul{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-5);
}
.content-toc li{ margin:0; }
.content-toc a{ font-size:var(--text-sm); color:var(--ink-2); text-decoration:none; }
.content-toc a:hover{ color:var(--accent); text-decoration:underline; }

/* ---------- Legal cross-links footer ---------- */
.legal-nav{ margin-top:var(--space-12); padding-top:var(--space-6); border-top:1px solid var(--line); }
.legal-nav h2{
  font-size:var(--text-xs); text-transform:uppercase; letter-spacing:.06em;
  color:var(--ink-3); margin-bottom:var(--space-3);
}
.legal-nav ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-5); }
.legal-nav li{ margin:0; }
.legal-nav a{ font-size:var(--text-sm); color:var(--ink-2); }
.legal-nav a:hover{ color:var(--accent); }
.legal-nav a[aria-current="page"]{ color:var(--accent); font-weight:600; }

/* ---------- About: belief cards ---------- */
.belief-grid{
  display:grid; grid-template-columns:repeat(2, 1fr); gap:var(--space-4);
  margin:var(--space-8) 0;
}
.belief{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-5);
}
.belief__ic{
  width:42px; height:42px; border-radius:var(--radius); background:var(--accent-050);
  color:var(--accent); display:flex; align-items:center; justify-content:center;
  margin-bottom:var(--space-3);
}
.belief h3{ font-size:var(--text-base); margin-bottom:var(--space-2); }
.belief p{ margin:0; font-size:var(--text-sm); color:var(--ink-2); }

/* ---------- About: honest stats ---------- */
.stat-grid{
  display:grid; grid-template-columns:repeat(4, 1fr); gap:var(--space-4);
  margin:var(--space-8) 0;
}
.stat{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-5); text-align:center;
}
.stat b{ display:block; font-size:var(--text-2xl); color:var(--ink); letter-spacing:-.02em; line-height:1.1; }
.stat span{ display:block; margin-top:var(--space-2); font-size:var(--text-sm); color:var(--ink-2); }

/* ---------- CTA card ---------- */
.content-cta{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:var(--space-5); background:var(--accent-050); border:1px solid var(--line-2);
  border-radius:var(--radius-lg); padding:var(--space-6) var(--space-8);
  margin-top:var(--space-10);
}
.content-cta h2{ margin:0 0 var(--space-1); font-size:var(--text-xl); }
.content-cta p{ margin:0; color:var(--ink-2); }
.content-cta__actions{ display:flex; gap:var(--space-3); flex-wrap:wrap; }

/* ---------- Contact layout ---------- */
.contact-grid{ display:grid; gap:var(--space-8); align-items:start; }
.contact-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-6);
}
.contact-card h2{ font-size:var(--text-lg); margin-bottom:var(--space-5); }
.contact-aside > * + *{ margin-top:var(--space-4); }
.contact-aside .card h2{ font-size:var(--text-base); margin-bottom:var(--space-3); }
.contact-list{ list-style:none; margin:0; padding:0; }
.contact-list li{ display:flex; gap:var(--space-3); align-items:flex-start; }
.contact-list li + li{ margin-top:var(--space-4); }
.contact-list svg{ flex:none; color:var(--accent); margin-top:2px; }
.contact-list b{ display:block; font-size:var(--text-sm); color:var(--ink); }
.contact-list a,.contact-list span{ font-size:var(--text-sm); color:var(--ink-2); }
.contact-links{ list-style:none; margin:0; padding:0; }
.contact-links li + li{ margin-top:var(--space-2); }
.contact-links a{ font-size:var(--text-sm); color:var(--ink-2); }
.contact-links a:hover{ color:var(--accent); }

/* ---------- Honeypot (bot trap; hidden from people + assistive tech) ---------- */
.hp-field{
  position:absolute !important; left:-9999px !important; top:auto;
  width:1px; height:1px; overflow:hidden;
}

/* ---------- Responsive ---------- */
@media (max-width:640px){
  .belief-grid{ grid-template-columns:1fr; }
  .stat-grid{ grid-template-columns:repeat(2, 1fr); }
  .content-cta{ padding:var(--space-5) var(--space-6); }
}
@media (min-width:860px){
  .contact-grid{ grid-template-columns:1.5fr 1fr; }
}
/* =====================================================================
   yournextjob - Discover (personalised feed, reels, Today's 10)
   Tokens only, soft-premium, mobile-first. All selectors namespaced so
   the globally-loaded sheet cannot leak onto other pages.
   ===================================================================== */

/* ---------- Shared: match ring ---------- */
.d-ring {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  background: conic-gradient(var(--d-ring-c, var(--accent)) calc(var(--pct, 0) * 3.6deg), var(--line-2) 0);
}
.d-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--card);
}
.d-ring__n {
  position: relative;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.d-ring__n small { font-size: .62em; font-weight: 600; color: var(--ink-3); }
.d-ring.is-high { --d-ring-c: var(--apply); }
.d-ring.is-mid  { --d-ring-c: var(--accent); }
.d-ring.is-low  { --d-ring-c: var(--amber); }

/* ---------- Shared: reason chips ---------- */
.d-reasons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}
.d-reason {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: var(--radius-pill);
  background: var(--accent-050);
  color: var(--link);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.35;
}

/* =====================================================================
   /discover - personalised feed
   ===================================================================== */
.discover {
  padding: var(--space-8) var(--space-5) var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.discover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.discover-head .eyebrow { margin-bottom: var(--space-1); }
.discover-title { font-size: var(--text-2xl); margin: 0 0 var(--space-1); }
.discover-sub { margin: 0; font-size: var(--text-sm); max-width: 46ch; }
.discover-refine { flex: none; padding: .5rem .9rem; font-size: var(--text-sm); }

.discover-modes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.discover-mode {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--ink);
  transition: box-shadow .14s ease, transform .14s ease, border-color .14s ease;
}
.discover-mode:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--accent); }
.discover-mode__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-050);
  color: var(--accent);
}
.discover-mode__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.discover-mode__text strong { font-size: var(--text-base); }
.discover-mode__text small { color: var(--ink-2); font-size: var(--text-xs); line-height: 1.3; }

.discover-quizcard {
  display: flex;
  flex-direction: column;      /* stack on mobile so the copy is not crushed */
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-050), var(--card) 82%);
}
.discover-quizcard .btn { width: 100%; }
.discover-quizcard__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--accent-fill);
  color: var(--on-accent);
}
.discover-quizcard__text { flex: 1; min-width: 0; }
.discover-quizcard__text h2 { margin: 0 0 var(--space-1); font-size: var(--text-lg); }
.discover-quizcard__text p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); }
.discover-quizcard .btn { flex: none; }

.discover-count { margin: 0; color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; }

.discover-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.discover-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: box-shadow .14s ease, transform .14s ease, border-color .14s ease;
}
.discover-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--line-2); }
.discover-card__logo, .discover-card__avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
}
.discover-card__logo { object-fit: cover; background: var(--card); border: 1px solid var(--line-2); }
.discover-card__avatar { display: grid; place-items: center; background: var(--accent-fill); color: var(--on-accent); font-size: var(--text-xl); font-weight: 600; }
.discover-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.discover-card__title { margin: 0; font-size: var(--text-base); line-height: 1.3; }
.discover-card__link { color: var(--ink); }
.discover-card__link:hover { color: var(--link); text-decoration: none; }
.discover-card__company { margin: 0; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; }
.discover-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); color: var(--ink-2); font-size: var(--text-sm); }
.discover-card__meta span { display: inline-flex; align-items: center; gap: var(--space-1); }
.discover-card__meta svg { color: var(--ink-faint); }
.discover-card__pay { color: var(--ink) !important; font-weight: 600; }
.discover-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.discover-card__ring { flex: none; align-self: center; }

.discover-more { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-2); }

.discover-empty, .today-empty {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.discover-empty h2, .today-empty h2 { margin: 0 0 var(--space-2); font-size: var(--text-xl); }
.discover-empty p, .today-empty p { margin: 0 auto var(--space-4); max-width: 40ch; }
.discover-empty__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* =====================================================================
   /discover/reels - full-screen vertical feed
   ===================================================================== */
body.page-reels { overflow: hidden; }
.page-reels main { padding: 0; }

.reels {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  background: var(--page);
}
.reels__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.reels__back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  color: var(--ink-2);
  background: var(--page);
}
.reels__back:hover { color: var(--accent); background: var(--accent-050); }
.reels__heading { margin: 0; font-weight: 700; font-size: var(--text-base); }
.reels__refine {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--link);
}

.reels__feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reels__feed::-webkit-scrollbar { display: none; }
.reels__sentinel { height: 1px; scroll-snap-align: none; }

.reel {
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5) var(--space-4);
}
.reel:focus-visible { outline: none; }
.reel__card {
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: opacity .2s ease;
}
.reel.is-skipped .reel__card { opacity: .5; }

.reel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.reel__logo, .reel__avatar { flex: none; width: 56px; height: 56px; border-radius: var(--radius); }
.reel__logo { object-fit: cover; border: 1px solid var(--line-2); background: var(--card); }
.reel__avatar { display: grid; place-items: center; background: var(--accent-fill); color: var(--on-accent); font-size: var(--text-2xl); font-weight: 600; }
.reel__ring { width: 64px; height: 64px; }
.reel__ring::after { inset: 6px; }
.reel__ring .d-ring__n { font-size: var(--text-base); }
.reel__unlock {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--link);
  padding: .35rem .7rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-pill);
}
.reel__unlock:hover { border-color: var(--accent); text-decoration: none; }

.reel__body { display: flex; flex-direction: column; gap: var(--space-3); min-height: 0; }
.reel__title {
  margin: 0;
  font-size: var(--text-2xl);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel__company { margin: 0; color: var(--ink-2); font-weight: 500; }
.reel__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.reel__facts li { display: flex; align-items: center; gap: var(--space-2); color: var(--ink-2); font-size: var(--text-sm); }
.reel__facts svg { flex: none; color: var(--ink-faint); }
.reel__pay { color: var(--ink) !important; font-weight: 600; }
.reel__pay svg { color: var(--apply-text) !important; }
.reel__summary {
  margin: 0;
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reel__more { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--link); font-size: var(--text-sm); font-weight: 600; }
.reel__more:hover { text-decoration: none; }

.reel__actions { display: flex; align-items: center; justify-content: center; gap: var(--space-5); margin-top: auto; }
.reel__btn {
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line-2);
  background: var(--card);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}
.reel__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.reel__btn:active { transform: translateY(0); }
.reel__btn--skip { width: 58px; height: 58px; color: var(--skip); }
.reel__btn--skip:hover { color: var(--red); border-color: var(--red); }
.reel__btn--save { width: 52px; height: 52px; color: var(--accent); }
.reel__btn--save:hover { border-color: var(--accent); background: var(--accent-050); }
.reel.is-saved .reel__btn--save { color: var(--on-accent); background: var(--accent-fill); border-color: var(--accent-fill); }
.reel__btn--apply { width: 68px; height: 68px; color: var(--on-accent); background: var(--accent-fill); border-color: var(--accent-fill); }
.reel__btn--apply:hover { background: var(--accent-fill-strong); border-color: var(--accent-fill-strong); }

.reel--empty .reel__card--empty { text-align: center; align-items: center; }
.reel__emptyicon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background: var(--apply-050);
  color: var(--apply-text);
}
.reel__card--empty h2 { margin: 0; font-size: var(--text-xl); }
.reel__card--empty p { margin: 0; max-width: 34ch; }
.reel__emptyactions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

.reels__hint { flex: none; margin: 0; text-align: center; color: var(--ink-3); font-size: var(--text-xs); padding: var(--space-2) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line); }

/* =====================================================================
   /discover/today - "Today's 10"
   ===================================================================== */
.today { padding: var(--space-8) var(--space-5) var(--space-16); display: flex; flex-direction: column; gap: var(--space-6); }
.today-head .eyebrow { margin-bottom: var(--space-1); }
.today-title { margin: 0 0 var(--space-1); font-size: var(--text-2xl); }
.today-sub { margin: 0; font-size: var(--text-sm); max-width: 52ch; }

.today-nudge {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-050);
}
.today-nudge p { margin: 0; font-size: var(--text-sm); color: var(--ink); }

.today-list { list-style: none; margin: 0; padding: 0; counter-reset: today; display: flex; flex-direction: column; gap: var(--space-4); }
.today-card { display: flex; align-items: stretch; gap: var(--space-3); }
.today-card__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--page);
  border: 1px solid var(--line-2);
  color: var(--ink-3);
  font-size: var(--text-sm);
  font-weight: 700;
}
.today-card__inner {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: box-shadow .14s ease, transform .14s ease, border-color .14s ease;
}
.today-card__inner:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--line-2); }
.today-card__logo, .today-card__avatar { flex: none; width: 48px; height: 48px; border-radius: var(--radius); }
.today-card__logo { object-fit: cover; border: 1px solid var(--line-2); background: var(--card); }
.today-card__avatar { display: grid; place-items: center; background: var(--accent-fill); color: var(--on-accent); font-size: var(--text-lg); font-weight: 600; }
.today-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.today-card__title { margin: 0; font-size: var(--text-base); line-height: 1.3; }
.today-card__link { color: var(--ink); }
.today-card__link:hover { color: var(--link); text-decoration: none; }
.today-card__company { margin: 0; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; }
.today-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-4); color: var(--ink-2); font-size: var(--text-sm); }
.today-card__meta span { display: inline-flex; align-items: center; gap: var(--space-1); }
.today-card__meta svg { color: var(--ink-faint); }
.today-card__pay { color: var(--ink) !important; font-weight: 600; }
.today-card__ring { flex: none; align-self: center; }

.today-end {
  margin-top: var(--space-4);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--accent-050), var(--card) 55%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.today-end:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.today-end__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--apply-050); color: var(--apply-text); }
.today-end h2 { margin: 0; font-size: var(--text-2xl); }
.today-end > p { margin: 0; max-width: 42ch; }
.today-end .alert-cta { width: 100%; margin-top: var(--space-2); text-align: left; }
.today-end__links { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .discover-mode, .discover-card, .today-card__inner, .reel__btn { transition: none; }
  .discover-mode:hover, .discover-card:hover, .today-card__inner:hover, .reel__btn:hover { transform: none; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .discover-quizcard { flex-direction: row; align-items: center; gap: var(--space-5); }
  .discover-quizcard .btn { width: auto; }
  .discover-quizcard__text h2 { font-size: var(--text-xl); }
  .today-card__num { width: 34px; height: 34px; }
}
@media (max-width: 400px) {
  .discover-modes { grid-template-columns: 1fr; }
}

/* Two-up mode cards ("Reels" / "Today's 10") cram + wrap their labels on any
   phone wider than 400px; stack them full-width up to 600px so they read cleanly. */
@media (max-width: 600px) {
  .discover-modes { grid-template-columns: 1fr; }
}
/* =====================================================================
   yournextjob - employers area
   Marketing landing, pricing, post-a-job form, dashboard, thanks.
   CSS variables only. Mobile-first.
   ===================================================================== */

/* ---------- Shared bits ---------- */
.emp-section-head{ max-width:56ch; margin-bottom:var(--space-8); }
.emp-section-head h2{ margin-bottom:var(--space-3); }
.emp-section-head .lead{ margin:0; }

.req{ color:var(--red); font-weight:700; }
.form-hint-inline{ font-weight:400; color:var(--ink-3); font-size:var(--text-sm); }

/* Section rhythm helpers: stack sections without doubling top padding.
   Replaces per-section inline padding-top overrides on the employers pages. */
.section--flush{ padding-top:0; }
.section--tight{ padding-top:var(--space-8); }

/* ---------- Hero ---------- */
.emp-hero{ padding:var(--space-16) 0 var(--space-12); }
.emp-hero__inner{ display:grid; gap:var(--space-10); align-items:center; }
.emp-hero__copy h1{ font-size:clamp(2.2rem,5.5vw,var(--text-5xl)); max-width:15ch; margin-bottom:var(--space-5); }
.emp-hero__copy h1 b{ color:var(--accent); font-weight:600; }
.emp-hero__copy .lead{ max-width:52ch; margin-bottom:var(--space-6); }
.emp-hero__actions{ display:flex; flex-wrap:wrap; gap:var(--space-3); margin-bottom:var(--space-4); }

/* Framed image crop, consistent with the home hero (.hero-media): rounded,
   bordered, clipped, soft shadow. Aspect ratio matches the 560x620 source so
   object-fit:cover reframes cleanly without an unwanted crop. */
.emp-hero__media--framed{ border-radius:var(--radius-xl); overflow:hidden; aspect-ratio:28 / 31;
  border:1px solid var(--line-2); box-shadow:var(--shadow-md);
  background:linear-gradient(135deg, var(--accent-050), var(--card) 70%); }
.emp-hero__media--framed img{ width:100%; height:100%; object-fit:cover; }
.emp-hero__placeholder{ position:relative; display:flex; flex-direction:column; gap:var(--space-4);
  padding:var(--space-8); border-radius:var(--radius-xl);
  background:linear-gradient(160deg, var(--accent-050), var(--card)); border:1px solid var(--line-2); box-shadow:var(--shadow-md); }
.emp-hero__card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-5); box-shadow:var(--shadow-sm); }
.emp-hero__card--muted{ opacity:.9; }
.emp-hero__role{ font-weight:600; color:var(--ink); margin:var(--space-3) 0 var(--space-1); }
.emp-hero__pay{ color:var(--apply-text); font-weight:600; margin:0 0 var(--space-1); }
.emp-hero__loc{ color:var(--ink-2); font-size:var(--text-sm); margin:0; }

/* ---------- Trust band ---------- */
.emp-trust-band{ padding:var(--space-8) 0; }
.emp-trust{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-4) var(--space-8);
  justify-content:center; }
.emp-trust li{ display:inline-flex; align-items:center; gap:var(--space-2); font-weight:600; color:var(--ink); font-size:var(--text-sm); }
.emp-trust svg{ color:var(--apply-text); flex:none; }

/* ---------- Feature grid ---------- */
.emp-feature-grid .feature.card{ padding:var(--space-6); }
.emp-feature-grid .feature h3{ margin-bottom:var(--space-2); }

/* ---------- How it works ---------- */
.emp-steps{ list-style:none; margin:0; padding:0; display:grid; gap:var(--space-5); counter-reset:none; }
.emp-step{ display:flex; gap:var(--space-4); align-items:flex-start; background:var(--card);
  border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-6); }
.emp-step__num{ flex:none; width:38px; height:38px; border-radius:var(--radius-pill);
  background:var(--accent-fill); color:var(--on-accent); display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:var(--text-lg); }
.emp-step h3{ font-size:var(--text-lg); margin-bottom:var(--space-1); }
.emp-step p{ color:var(--ink-2); margin:0; }
.emp-steps__cta{ text-align:center; margin-top:var(--space-8); }

/* ---------- Reach (upsell) ---------- */
.emp-reach{ display:grid; gap:var(--space-8); padding:var(--space-10); background:var(--accent-050); border-color:var(--line-2); }
.emp-reach:hover{ transform:none; box-shadow:none; }
.emp-reach__copy h2{ margin-bottom:var(--space-3); }
.emp-reach__copy .muted{ max-width:60ch; margin-bottom:var(--space-5); }
.emp-reach__cards{ display:grid; gap:var(--space-4); }
.emp-reach__mini{ background:var(--card); border:1px solid var(--line-2); border-radius:var(--radius-lg); padding:var(--space-5); }
.emp-reach__mini h4{ font-size:var(--text-base); margin:var(--space-3) 0 var(--space-1); }
.emp-reach__mini p{ color:var(--ink-2); font-size:var(--text-sm); margin:0; }

/* ---------- Labelled trust panel ---------- */
.emp-labelled{ display:flex; gap:var(--space-5); align-items:flex-start; background:var(--card);
  border:1px solid var(--line-2); border-left:4px solid var(--accent); border-radius:var(--radius-lg); padding:var(--space-8); }
.emp-labelled__icon{ flex:none; width:52px; height:52px; border-radius:var(--radius); background:var(--accent-050);
  color:var(--accent); display:flex; align-items:center; justify-content:center; }
.emp-labelled h2{ font-size:var(--text-xl); margin-bottom:var(--space-2); }
.emp-labelled .muted{ margin:0; max-width:70ch; }

/* ---------- Final CTA band ---------- */
.emp-final__band{ text-align:center; padding:var(--space-12) var(--space-6);
  background:linear-gradient(135deg, var(--accent), var(--accent-strong)); border-radius:var(--radius-xl); }
/* Dark mode lightens the accent, and white text on it fell to about 3:1. Same deepened
   panel as the agency pages' CTA (agency-growth.css --agp-cta-*). */
:root[data-theme="dark"] .emp-final__band{
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, black), color-mix(in srgb, var(--accent) 52%, black)); }
.emp-final__band h2{ color:#fff; font-size:var(--text-3xl); margin-bottom:var(--space-3); }
.emp-final__band p{ color:#fff; opacity:.92; max-width:52ch; margin:0 auto var(--space-6); }
.emp-final__actions{ display:flex; flex-wrap:wrap; gap:var(--space-3); justify-content:center; }
.emp-btn-invert{ background:var(--card); border-color:var(--card); color:var(--accent-strong); }
.emp-btn-invert:hover{ background:var(--card); color:var(--accent); }
.emp-btn-ghost{ color:var(--on-accent); border-color:rgba(255,255,255,.55); background:transparent; }
.emp-btn-ghost:hover{ background:rgba(255,255,255,.12); color:var(--on-accent); }

/* ---------- Pricing ---------- */
.emp-pricing-hero{ padding:var(--space-16) 0 var(--space-4); text-align:center; }
.emp-pricing-hero h1{ max-width:20ch; margin:0 auto var(--space-4); }
.emp-pricing-hero .lead{ max-width:60ch; margin:0 auto; }

.emp-tiers{ display:grid; gap:var(--space-5); align-items:start; }
.emp-tier{ position:relative; background:var(--card); border:1px solid var(--line-2); border-radius:var(--radius-lg);
  padding:var(--space-8) var(--space-6); }
.emp-tier--featured{ border-color:var(--accent); box-shadow:var(--shadow-md); }
.emp-tier__tag{ position:absolute; top:0; left:50%; transform:translate(-50%,-50%); background:var(--accent-fill);
  color:var(--on-accent); font-size:var(--text-xs); font-weight:600; padding:.25rem .8rem; border-radius:var(--radius-pill); }
.emp-tier__name{ font-size:var(--text-xl); margin-bottom:var(--space-2); }
.emp-tier__price{ font-size:var(--text-3xl); font-weight:600; letter-spacing:-.02em; color:var(--ink); margin:0 0 var(--space-1); }
.emp-tier__price span{ display:block; font-size:var(--text-sm); font-weight:500; color:var(--ink-3); letter-spacing:0; }
.emp-tier__blurb{ color:var(--ink-2); font-size:var(--text-sm); margin:var(--space-3) 0 var(--space-5); min-height:2.5em; }
.emp-tier__list{ list-style:none; margin:var(--space-6) 0 0; padding:0; display:grid; gap:var(--space-3); }
.emp-tier__list li{ display:flex; gap:var(--space-2); align-items:flex-start; font-size:var(--text-sm); color:var(--ink); }
.emp-tier__list svg{ flex:none; color:var(--apply-text); margin-top:2px; }
.emp-pricing-note{ text-align:center; color:var(--ink-3); font-size:var(--text-sm); margin-top:var(--space-6); }

/* ---------- FAQ ---------- */
.emp-faq{ margin:var(--space-6) 0 var(--space-8); border-top:1px solid var(--line); }
.emp-faq__item{ border-bottom:1px solid var(--line); }
.emp-faq__item summary{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-3);
  padding:var(--space-4) 0; cursor:pointer; font-weight:600; list-style:none; }
.emp-faq__item summary::-webkit-details-marker{ display:none; }
.emp-faq__item summary svg{ flex:none; color:var(--ink-faint); transition:transform .15s ease; }
.emp-faq__item[open] summary svg{ transform:rotate(180deg); }
.emp-faq__item p{ margin:0 0 var(--space-4); color:var(--ink-2); max-width:66ch; }

/* ---------- Post a job ---------- */
.emp-post{ padding:var(--space-6) 0 var(--space-16); }
.emp-post__grid{ display:grid; gap:var(--space-8); align-items:start; }
.emp-post__main{ min-width:0; }
.emp-post__main h1{ font-size:var(--text-3xl); margin-bottom:var(--space-3); }
.emp-post__main .lead{ max-width:60ch; }
.emp-post__signed{ font-size:var(--text-sm); color:var(--ink-2); background:var(--accent-050);
  border:1px solid var(--line-2); border-radius:var(--radius); padding:var(--space-3) var(--space-4); }

.emp-fieldset{ border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-6);
  margin:0 0 var(--space-5); background:var(--card); min-width:0; }
.emp-fieldset legend{ font-weight:600; font-size:var(--text-lg); color:var(--ink); padding:0 var(--space-2);
  margin-left:calc(var(--space-2) * -1); }
.emp-fieldset__intro{ margin-top:0; margin-bottom:var(--space-4); }
.emp-form__terms{ margin:var(--space-2) 0 var(--space-5); }

/* Salary block */
.emp-salary__figures{ align-items:end; transition:opacity .15s ease; }
.emp-salary__figures.is-disabled{ opacity:.45; }
.emp-salary__competitive{ margin-top:var(--space-2); }
.emp-input-prefix{ position:relative; }
.emp-input-prefix > span{ position:absolute; left:.85rem; top:50%; transform:translateY(-50%);
  color:var(--ink-3); pointer-events:none; }
.emp-input-prefix .form-input{ padding-left:1.7rem; }
.emp-textarea-tall{ min-height:180px; }

/* Apply method radios */
.emp-apply{ display:grid; gap:var(--space-3); }
.emp-radio{ display:flex; gap:var(--space-3); align-items:flex-start; padding:var(--space-4);
  border:1px solid var(--line-2); border-radius:var(--radius); cursor:pointer; transition:border-color .12s ease, background .12s ease; }
.emp-radio:hover{ border-color:var(--accent); }
.emp-radio input{ width:18px; height:18px; margin-top:2px; accent-color:var(--accent); flex:none; }
.emp-radio:has(input:checked){ border-color:var(--accent); background:var(--accent-050); }
.emp-radio__body{ display:flex; flex-direction:column; gap:2px; }
.emp-radio__title{ font-weight:600; display:inline-flex; align-items:center; gap:var(--space-2); }
.emp-radio__desc{ font-size:var(--text-sm); color:var(--ink-2); }
.emp-apply__extra{ padding:var(--space-4) var(--space-4) var(--space-1); border-left:2px solid var(--line-2); margin-left:var(--space-2); }

/* Side card */
.emp-side-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-6); }
.emp-side-card h2{ font-size:var(--text-lg); margin-bottom:var(--space-4); }
.emp-side-list{ list-style:none; margin:0 0 var(--space-5); padding:0; display:grid; gap:var(--space-3); }
.emp-side-list li{ display:flex; gap:var(--space-2); align-items:flex-start; font-size:var(--text-sm); color:var(--ink-2); }
.emp-side-list svg{ flex:none; color:var(--apply-text); margin-top:2px; }
.emp-side-note{ margin:0; font-size:var(--text-sm); color:var(--ink-2); border-top:1px solid var(--line); padding-top:var(--space-4); }

/* ---------- Dashboard ---------- */
.emp-dash{ padding:var(--space-10) 0 var(--space-16); }
.emp-dash__head{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-4);
  margin-bottom:var(--space-8); }
.emp-dash__head h1{ font-size:var(--text-3xl); margin:0; }

/* position:relative keeps the absolutely positioned sr-only "Actions" header inside
   the scroller: without it the label escaped and made the whole page scroll sideways on phones. */
.emp-jobs__wrap{ position:relative; overflow-x:auto; background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); }
.emp-jobs__table{ width:100%; border-collapse:collapse; min-width:560px; }
.emp-jobs__table thead th{ text-align:left; font-size:var(--text-xs); text-transform:uppercase; letter-spacing:.04em;
  color:var(--ink-3); font-weight:600; padding:var(--space-4) var(--space-5); border-bottom:1px solid var(--line); }
.emp-jobs__table td{ padding:var(--space-4) var(--space-5); border-bottom:1px solid var(--line); vertical-align:middle; font-size:var(--text-sm); }
.emp-jobs__table tr:last-child td{ border-bottom:0; }
.emp-jobs__title strong{ display:block; color:var(--ink); font-weight:600; }
.emp-jobs__meta{ color:var(--ink-3); font-size:var(--text-xs); }
.emp-jobs__date{ color:var(--ink-2); white-space:nowrap; }
.emp-jobs__action{ text-align:right; }
.emp-jobs__pending{ color:var(--ink-3); font-size:var(--text-xs); }

.emp-status{ display:inline-flex; align-items:center; gap:4px; padding:.2rem .65rem; border-radius:var(--radius-pill);
  font-size:var(--text-xs); font-weight:600; white-space:nowrap; }
.emp-status--live{ background:var(--apply-050); color:var(--apply-text); }
.emp-status--pending{ background:var(--amber-050); color:var(--ink); border:1px solid var(--amber); }
.emp-status--closed{ background:var(--page); color:var(--ink-2); border:1px solid var(--line-2); }
.emp-status--rejected{ background:var(--red-050); color:var(--red-strong); }

.btn-sm-inline{ padding:.4rem .8rem; font-size:var(--text-xs); }
.emp-dash__note{ margin-top:var(--space-5); font-size:var(--text-sm); color:var(--ink-3); }

/* ---------- Dashboard: last 30 days, charts, first steps ----------
   Namespaced to the dashboard's body class (prod concatenates every page sheet). */
.page-employer-dashboard .empd-perf{ margin-bottom:var(--space-10); }
.page-employer-dashboard .empd-perf__head{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between;
  gap:var(--space-1) var(--space-4); margin-bottom:var(--space-4); }
.page-employer-dashboard .empd-perf__head h2{ font-size:var(--text-xl); margin:0; }
.page-employer-dashboard .empd-perf__range{ margin:0; font-size:var(--text-sm); color:var(--ink-3); }
.page-employer-dashboard .empd-perf__foot{ margin:var(--space-3) 0 0; font-size:var(--text-xs); color:var(--ink-3); max-width:72ch; }

/* Stat tiles */
.page-employer-dashboard .empd-tiles{ list-style:none; margin:0 0 var(--space-5); padding:0; display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-3); }
.page-employer-dashboard .empd-tile{ position:relative; display:flex; flex-direction:column; gap:var(--space-1); min-width:0;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-4) var(--space-4) var(--space-5);
  box-shadow:var(--shadow-sm); overflow:hidden; }
.page-employer-dashboard .empd-tile::before{ content:""; position:absolute; inset:0 0 auto; height:3px; background:var(--line-2); }
.page-employer-dashboard .empd-tile--views::before{ background:var(--accent); }
.page-employer-dashboard .empd-tile--apps::before{ background:var(--apply); }
.page-employer-dashboard .empd-tile__label{ font-size:var(--text-xs); font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-3); }
.page-employer-dashboard .empd-tile__num{ font-size:clamp(1.75rem, 5vw, var(--text-3xl)); font-weight:600; letter-spacing:-.03em;
  line-height:1.05; color:var(--ink); font-variant-numeric:tabular-nums; }
.page-employer-dashboard .empd-tile__extra{ font-size:var(--text-xs); color:var(--ink-3); }
.page-employer-dashboard .empd-delta{ display:inline-flex; align-items:flex-start; gap:4px; font-size:var(--text-xs); line-height:1.35; color:var(--ink-2); }
.page-employer-dashboard .empd-delta svg{ flex:none; margin-top:1px; }
.page-employer-dashboard .empd-delta--up{ color:var(--apply-text); }
.page-employer-dashboard .empd-delta--down{ color:var(--red-strong); }

/* Charts: one per measure, each on its own scale */
.page-employer-dashboard .empd-charts{ display:grid; gap:var(--space-3); }
.page-employer-dashboard .empd-chart{ margin:0; min-width:0; background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-lg); padding:var(--space-4) var(--space-4) var(--space-3); }
.page-employer-dashboard .empd-chart__cap{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-3);
  margin-bottom:var(--space-3); }
.page-employer-dashboard .empd-chart__title{ font-weight:600; color:var(--ink); font-size:var(--text-sm); }
.page-employer-dashboard .empd-chart__total{ font-size:var(--text-xs); color:var(--ink-3); font-variant-numeric:tabular-nums; }
.page-employer-dashboard .empd-chart__plot{ position:relative; padding-top:var(--space-5); }
.page-employer-dashboard .empd-chart__ymax{ position:absolute; top:0; left:0; font-size:var(--text-xs); line-height:1;
  color:var(--ink-3); font-variant-numeric:tabular-nums; }
.page-employer-dashboard .empd-chart__svg{ display:block; width:100%; height:120px; overflow:visible; border-radius:2px; }
.page-employer-dashboard .empd-chart__svg:focus{ outline:none; }
.page-employer-dashboard .empd-chart__svg:focus-visible{ box-shadow:var(--focus-ring); }
.page-employer-dashboard .empd-chart__grid{ stroke:var(--line); stroke-width:1; vector-effect:non-scaling-stroke; stroke-dasharray:3 4; }
.page-employer-dashboard .empd-chart__base{ stroke:var(--line-2); stroke-width:1; vector-effect:non-scaling-stroke; }
.page-employer-dashboard .empd-chart__hit{ fill:transparent; }
.page-employer-dashboard .empd-chart__bar{ fill:var(--accent); transition:opacity .12s ease; }
.page-employer-dashboard .empd-chart--apps .empd-chart__bar{ fill:var(--apply); }
.page-employer-dashboard .empd-chart__svg.is-active .empd-chart__bar{ opacity:.4; }
.page-employer-dashboard .empd-chart__svg.is-active .is-on .empd-chart__bar{ opacity:1; }
.page-employer-dashboard .empd-chart__svg.is-active .is-on .empd-chart__hit{ fill:var(--accent-050); }
.page-employer-dashboard .empd-chart__empty{ position:absolute; inset:var(--space-5) 0 0; display:flex; align-items:center; justify-content:center;
  margin:0; padding:0 var(--space-4); text-align:center; font-size:var(--text-sm); color:var(--ink-3); pointer-events:none; }
.page-employer-dashboard .empd-chart__tip{ position:absolute; top:0; transform:translateX(-50%); margin:0; white-space:nowrap;
  padding:2px var(--space-2); border-radius:var(--radius-sm); background:var(--ink); color:var(--card);
  font-size:var(--text-xs); font-weight:600; line-height:1.4; pointer-events:none; font-variant-numeric:tabular-nums; z-index:1; }
.page-employer-dashboard .empd-chart__x{ display:flex; justify-content:space-between; margin-top:var(--space-2);
  font-size:var(--text-xs); color:var(--ink-3); }

/* Table view of the same numbers */
.page-employer-dashboard .empd-table{ margin-top:var(--space-3); }
.page-employer-dashboard .empd-table summary{ display:inline-flex; align-items:center; min-height:44px; cursor:pointer;
  font-size:var(--text-sm); font-weight:600; color:var(--link); }
.page-employer-dashboard .empd-table summary:focus-visible{ outline:none; box-shadow:var(--focus-ring); border-radius:var(--radius-sm); }
.page-employer-dashboard .empd-table__wrap{ max-height:320px; overflow:auto; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
.page-employer-dashboard .empd-table table{ width:100%; border-collapse:collapse; font-size:var(--text-sm); font-variant-numeric:tabular-nums; }
.page-employer-dashboard .empd-table th,
.page-employer-dashboard .empd-table td{ padding:var(--space-2) var(--space-4); border-bottom:1px solid var(--line); text-align:right; }
.page-employer-dashboard .empd-table th:first-child{ text-align:left; font-weight:500; color:var(--ink-2); }
.page-employer-dashboard .empd-table thead th{ position:sticky; top:0; background:var(--card); font-size:var(--text-xs); color:var(--ink-3);
  text-transform:uppercase; letter-spacing:.04em; font-weight:600; }

/* Jobs table additions */
.page-employer-dashboard .empd-jobs__h{ font-size:var(--text-xl); margin:0 0 var(--space-4); }
.page-employer-dashboard .emp-jobs__table .empd-num{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.page-employer-dashboard .empd-th-sub{ display:block; font-weight:500; text-transform:none; letter-spacing:0; color:var(--ink-faint); }
.page-employer-dashboard .empd-na{ color:var(--ink-faint); }
.page-employer-dashboard .empd-apps{ display:inline-flex; align-items:center; justify-content:flex-end; min-width:44px; min-height:44px;
  margin:calc(var(--space-3) * -1) 0; font-weight:600; color:var(--link); }

/* First steps for a new employer */
.page-employer-dashboard .empd-start{ display:grid; gap:var(--space-4); }
.page-employer-dashboard .empd-start__card{ position:relative; background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-lg); padding:var(--space-6); }
.page-employer-dashboard .empd-start__card--main{ border-color:var(--line-2);
  background:linear-gradient(160deg, var(--accent-050), var(--card) 70%); box-shadow:var(--shadow-sm); }
.page-employer-dashboard .empd-start__step{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px;
  margin-bottom:var(--space-3); border-radius:var(--radius-pill); background:var(--accent-fill); color:var(--on-accent); font-weight:700; }
.page-employer-dashboard .empd-start__card:not(.empd-start__card--main) .empd-start__step{ background:var(--accent-050); color:var(--accent); }
.page-employer-dashboard .empd-start__card h2{ font-size:var(--text-xl); margin-bottom:var(--space-2); }
.page-employer-dashboard .empd-start__card p{ color:var(--ink-2); margin:0 0 var(--space-5); max-width:56ch; }
.page-employer-dashboard .empd-start .btn{ min-height:44px; }

@media (min-width:760px){
  .page-employer-dashboard .empd-tiles{ grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:var(--space-4); }
  .page-employer-dashboard .empd-tile{ padding:var(--space-5) var(--space-5) var(--space-6); }
  .page-employer-dashboard .empd-charts{ grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:var(--space-4); }
  .page-employer-dashboard .empd-start{ grid-template-columns:1.2fr 1fr; align-items:stretch; }
}

/* Phones: each job becomes a small card (title, status and date, then its numbers), so
   the figures are on screen instead of off the side of a scrolling table. */
@media (max-width:640px){
  .page-employer-dashboard .emp-jobs__table{ min-width:0; }
  .page-employer-dashboard .emp-jobs__table thead{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .page-employer-dashboard .emp-jobs__table tr{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-flow:row dense; gap:var(--space-3);
    padding:var(--space-4); border-bottom:1px solid var(--line); }
  .page-employer-dashboard .emp-jobs__table tr:last-child{ border-bottom:0; }
  .page-employer-dashboard .emp-jobs__table td{ display:block; padding:0; border:0; }
  .page-employer-dashboard .emp-jobs__table .emp-jobs__title{ grid-column:1 / -1; }
  .page-employer-dashboard .emp-jobs__table .empd-c-status{ grid-column:1 / 3; grid-row:2; }
  .page-employer-dashboard .emp-jobs__table .emp-jobs__date{ grid-column:3; grid-row:2; text-align:right; align-self:center; }
  .page-employer-dashboard .emp-jobs__table .empd-num{ text-align:left; font-size:var(--text-lg); font-weight:600; color:var(--ink); }
  .page-employer-dashboard .emp-jobs__table .empd-num::before{ content:attr(data-label); display:block; margin-bottom:2px;
    font-size:var(--text-xs); font-weight:500; color:var(--ink-3); }
  .page-employer-dashboard .emp-jobs__table .empd-apps{ justify-content:flex-start; min-width:0; min-height:0; margin:0; padding:var(--space-1) 0; }
  .page-employer-dashboard .emp-jobs__table .emp-jobs__action{ grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:var(--space-2); text-align:left; }
  .page-employer-dashboard .emp-jobs__table .emp-jobs__action .btn{ min-height:44px; flex:1 1 auto; }
}

@media (prefers-reduced-motion:reduce){
  .page-employer-dashboard .empd-chart__bar{ transition:none; }
}

/* ---------- Thanks ---------- */
.emp-thanks{ padding:var(--space-16) 0; }
.emp-thanks__card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-xl);
  padding:var(--space-12) var(--space-8); text-align:center; }
.emp-thanks__icon{ width:68px; height:68px; margin:0 auto var(--space-5); border-radius:var(--radius-pill);
  background:var(--apply-050); color:var(--apply-text); display:flex; align-items:center; justify-content:center; }
.emp-thanks__card h1{ font-size:var(--text-3xl); margin-bottom:var(--space-3); }
.emp-thanks__card .lead{ margin-bottom:var(--space-3); }
.emp-thanks__card .muted{ max-width:60ch; margin:0 auto var(--space-8); }
.emp-thanks__next{ text-align:left; max-width:44ch; margin:0 auto var(--space-8);
  background:var(--page); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-6); }
.emp-thanks__next h2{ font-size:var(--text-lg); margin-bottom:var(--space-4); }
.emp-thanks__next .emp-side-list{ margin-bottom:0; }
.emp-thanks__actions{ display:flex; flex-wrap:wrap; gap:var(--space-3); justify-content:center; }

/* ---------- Responsive ---------- */
@media (max-width:640px){
  .emp-hero__media{ display:none; }
  .emp-labelled{ flex-direction:column; gap:var(--space-4); padding:var(--space-6); }
  .emp-tier__blurb{ min-height:0; }
}

@media (min-width:760px){
  .emp-salary__figures{ grid-template-columns:1fr 1fr 1fr; }
}

@media (min-width:900px){
  .emp-hero__inner{ grid-template-columns:1.05fr .95fr; }
  .emp-steps{ grid-template-columns:repeat(3,1fr); }
  .emp-reach{ grid-template-columns:1.2fr .8fr; align-items:center; }
  .emp-reach__cards{ grid-template-columns:1fr; }
  .emp-tiers{ grid-template-columns:repeat(3,1fr); }
  .emp-post__grid{ grid-template-columns:minmax(0,1fr) 300px; }
  .emp-post__side{ position:sticky; top:calc(66px + var(--space-4)); }
}

@media (prefers-reduced-motion:reduce){
  .emp-salary__figures,.emp-faq__item summary svg,.emp-radio{ transition:none; }
}
/* /list-your-jobs (public, .lyj-*) + /admin/feeds review queue (.fdq-*)
   + the /bot crawler page (.bot-*).
   Auto-loaded by the layout glob, so every rule is namespaced. Tokens only. */

/* ---- Hero ------------------------------------------------------------- */
.lyj-hero { padding: var(--space-12) 0 var(--space-10); }
.lyj-hero .breadcrumb { margin-bottom: var(--space-4); }
.lyj-hero__copy { max-width: 62ch; }
.lyj-hero h1 { font-size: var(--text-4xl); max-width: 18ch; }
.lyj-hero h1 b { color: var(--accent); display: block; }
.lyj-hero .lead { max-width: 54ch; }
.lyj-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0 var(--space-4);
}
.lyj-hero__meta { font-size: var(--text-sm); color: var(--ink-3); margin: 0; }

/* ---- Section scaffolding --------------------------------------------- */
.lyj-section { padding: var(--space-16) 0; }
.lyj-section--tint { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lyj-head { max-width: 62ch; margin: 0 auto var(--space-10); text-align: center; }
.lyj-head h2 { font-size: var(--text-3xl); }

/* ---- Feed kinds ------------------------------------------------------- */
.lyj-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.lyj-kind { padding: var(--space-6); }
.lyj-kind:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.lyj-kind h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.lyj-kind p { margin: 0; font-size: var(--text-sm); }

/* ---- Steps ------------------------------------------------------------ */
.lyj-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
}
.lyj-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.lyj-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--accent-050); color: var(--link);
  font-weight: 600; font-size: var(--text-lg);
}
.lyj-step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.lyj-step p { margin: 0; font-size: var(--text-sm); }

/* ---- What we show / how to stop -------------------------------------- */
.lyj-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); }
.lyj-pair__item h2 { font-size: var(--text-2xl); }
.lyj-pair__item p { margin: 0; max-width: 52ch; }

/* ---- Form ------------------------------------------------------------- */
.lyj-form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-12); align-items: start; }
.lyj-form-intro h2 { font-size: var(--text-2xl); }
.lyj-form-intro .muted { max-width: 46ch; }
.lyj-points { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.lyj-points li {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink);
}
.lyj-points svg { color: var(--accent); flex: none; }

.lyj-form-card { padding: var(--space-8); }
.lyj-form-card .form-group { margin-bottom: var(--space-5); }
.lyj-form-card .btn-block { margin-top: var(--space-2); }
.lyj-fieldset { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
.lyj-fieldset legend { padding: 0; }
.lyj-choices { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.lyj-optional { font-weight: 400; color: var(--ink-3); }
.lyj-consent { align-items: flex-start; gap: var(--space-3); color: var(--ink-2); }
.lyj-consent input { flex: none; margin-top: 2px; }
.lyj-legal { font-size: var(--text-xs); margin: var(--space-4) 0 0; text-align: center; }

/* ---- Thanks ----------------------------------------------------------- */
.lyj-thanks { padding: var(--space-10) var(--space-8); text-align: center; }
.lyj-thanks__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--apply-050); color: var(--apply-text);
}
.lyj-thanks .muted { max-width: 52ch; margin-left: auto; margin-right: auto; }
.lyj-thanks__sub { font-size: var(--text-lg); margin: var(--space-8) 0 0; }
.lyj-thanks .lyj-points { justify-content: center; text-align: left; max-width: 42ch; margin-left: auto; margin-right: auto; }
.lyj-thanks__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-8); }

/* ---- Employers page promo band --------------------------------------- */
.lyj-promo {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  padding: var(--space-8);
  background: var(--accent-050);
  border-radius: var(--radius-lg);
}
.lyj-promo h2 { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.lyj-promo p { margin: 0; max-width: 60ch; }
.lyj-promo .btn { flex: none; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .lyj-kinds, .lyj-steps { grid-template-columns: 1fr; }
  .lyj-pair, .lyj-form-wrap { grid-template-columns: 1fr; gap: var(--space-8); }
  .lyj-promo { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .lyj-hero { padding: var(--space-8) 0 var(--space-6); }
  .lyj-hero h1 { font-size: var(--text-3xl); }
  .lyj-section { padding: var(--space-10) 0; }
  .lyj-head h2 { font-size: var(--text-2xl); }
  .lyj-form-card, .lyj-promo { padding: var(--space-5); }
  .lyj-thanks { padding: var(--space-8) var(--space-5); }
}

/* =====================================================================
   Admin review queue (/admin/feeds)
   ===================================================================== */
.fdq-list { display: grid; gap: var(--space-4); }
.fdq-item { margin: 0; }
.fdq-item__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.fdq-item__title { font-size: var(--text-lg); margin: 0 0 var(--space-1); }
.fdq-item__meta { font-size: var(--text-sm); color: var(--ink-2); margin: 0; }

.fdq-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-6); margin: 0 0 var(--space-4); }
.fdq-facts dt { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-bottom: 2px; }
.fdq-facts dd { margin: 0; font-size: var(--text-sm); color: var(--ink); }
.fdq-url { word-break: break-all; }

.fdq-check {
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--page);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
.fdq-check--ok { border-left-color: var(--apply); }
.fdq-check--bad { border-left-color: var(--red); }
.fdq-check__head { display: flex; gap: var(--space-2); align-items: baseline; font-size: var(--text-sm); margin: 0 0 var(--space-2); }
.fdq-check__result { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; font-size: var(--text-sm); margin: 0 0 var(--space-2); }
.fdq-check__note { font-size: var(--text-sm); color: var(--ink-2); margin: 0; white-space: pre-line; word-break: break-word; }

/* Feed host is not the website they gave: approval needs the override tick. */
.fdq-warn {
  border: 1px solid var(--amber);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: var(--amber-050);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}
.fdq-warn__title { font-size: var(--text-sm); color: var(--ink); margin: 0 0 var(--space-1); }
.fdq-warn__body { font-size: var(--text-sm); color: var(--ink-2); margin: 0; word-break: break-word; }
.fdq-vendor { font-size: var(--text-sm); color: var(--ink-2); margin: 0 0 var(--space-4); }

.fdq-review { font-size: var(--text-sm); color: var(--ink-2); margin: 0 0 var(--space-4); }
.fdq-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.fdq-actions form { margin: 0; }
.fdq-actions .adx-inline { justify-content: flex-start; }
.fdq-approve { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.fdq-override { font-size: var(--text-sm); color: var(--ink); gap: var(--space-2); }

@media (max-width: 640px) {
  .fdq-facts { grid-template-columns: 1fr; }
  .fdq-item__head { flex-direction: column; }
  .fdq-actions .adx-inline .form-input { max-width: none; flex: 1 1 160px; }
}

/* =====================================================================
   /bot: robots.txt and User-Agent snippets inside .content-prose
   ===================================================================== */
.content-prose .bot-code {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin: 0 0 var(--space-5);
  overflow-x: auto;
  font-size: var(--text-sm);
  line-height: 1.6;
}
.content-prose .bot-code code { background: none; color: var(--ink); padding: 0; border-radius: 0; font-size: inherit; }
/* =====================================================================
   home.css: the home page. The reference screen for the design system.
   Namespaced .home-* classes (the hero grid itself lives in seo.css, the
   hero deck and map in motion.css). Tokens only; reuses the shared
   components from app.css: .search-bar, .chips--rail, .job-card, .job-rail,
   .section-head, .btn, .card.

   Phone first. Under 768px the page is the search, quick links and real
   jobs; the desktop showpieces carry .home-desk and are not shown (and their
   scripts are never requested: see the data-load-script markers in the view).
   ===================================================================== */

/* ---------------------------------------------------------------------
   Which blocks show where. .home-desk: 768px and up only. .home-phone:
   under 768px only. Hide-only rules, so each block keeps its own display.
   --------------------------------------------------------------------- */
@media (max-width: 767px) { .home-desk { display: none !important; } }
@media (min-width: 768px) { .home-phone { display: none !important; } }

/* A touch more air around the hero so it reads spacious and premium. */
.page-home .hero { padding-bottom: var(--space-8); }

/* Plain sections that follow a full-padded band sit tight to it, keeping the
   page's grouped rhythm (coloured bands own the generous spacing). */
.home-flush-top { padding-top: 0; }
/* The intro line under a section heading. */
.home-lead { max-width: 56ch; margin-bottom: var(--space-8); }
.home-more { margin: var(--space-5) 0 0; }
.home-steps__h { margin-bottom: var(--space-8); }

/* ---------------------------------------------------------------------
   Phone hero: search first. Header 56 + heading + the stacked search end
   about 270px down a 375px screen, so the heading, both fields and the
   Search button are all in view with room to spare, and the first job card
   starts on the first screen.
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
  .page-home .hero { padding: var(--space-4) 0 var(--space-5); }
  /* A short hero: the tint washes down from the top and is gone by the fold line,
     so the hero has no hard lower edge. */
  .page-home .hero.bg-mesh {
    background-image:
      radial-gradient(70% 60% at 8% 0%, var(--accent-050) 0%, transparent 72%),
      radial-gradient(60% 50% at 100% 0%, var(--apply-050) 0%, transparent 70%);
  }
  .page-home .hero h1 { font-size: clamp(1.375rem, 6.4vw, 1.625rem); line-height: 1.15; letter-spacing: -.02em; max-width: none; margin-bottom: var(--space-3); }
  .page-home .hero .search-bar { max-width: none; }
  .page-home .hero-meta { margin-top: var(--space-3); }
  .home-quick { margin-top: var(--space-3); }
  .page-home .section { padding: var(--space-6) 0; }
  .page-home .section.home-flush-top { padding-top: 0; }
  .page-home .section h2 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
  .page-home .section-head { margin-bottom: var(--space-3); }
  .page-home .section-head h2 { margin-bottom: 0; }
  .page-home .site-footer { margin-top: var(--space-8); }
}

/* ---------------------------------------------------------------------
   Real jobs: the Featured rail (paid places, labelled) and the latest jobs.
   Phones: the rail scrolls sideways and snaps (.job-rail), the list is one
   column. From 768px both are two-column grids.
   --------------------------------------------------------------------- */
.home-featured__sell { margin: var(--space-3) 0 0; font-size: var(--text-sm); color: var(--ink-2); }
.home-featured__sell a { font-weight: 600; white-space: nowrap; }
.home-latest__more { margin: var(--space-4) 0 0; }
@media (min-width: 768px) {
  .page-home .home-jobs { padding-top: var(--space-10); padding-bottom: var(--space-10); }
  .page-home .home-jobs.home-flush-top { padding-top: 0; }
  .home-featured__rail,
  .home-latest__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
  .home-featured__rail { overflow: visible; margin-inline: 0; padding: 0; scroll-snap-type: none; }
  .home-featured__rail > .job-card:only-child { grid-column: 1 / -1; }
}
/* Exactly three paid places sit three across where there is room, not two and one. */
@media (min-width: 1000px) {
  .home-featured__rail:has(> .job-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Employers on a phone: one slim link. */
.home-hiring { padding: 0 0 var(--space-6); }
.home-hiring__link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 52px; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--card); color: var(--ink); font-size: var(--text-sm); }
.home-hiring__link:hover { text-decoration: none; border-color: var(--accent); }
.home-hiring__link b { font-weight: 600; }
.home-hiring__link svg { flex: none; color: var(--link); }

/* Popular locations: one row that scrolls on a phone (the .chips--rail pattern). */
@media (max-width: 767px) {
  .home-hubs { flex-wrap: nowrap; gap: var(--space-2); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--space-5) * -1); padding-inline: var(--space-5); }
  .home-hubs::-webkit-scrollbar { display: none; }
  .home-hubs > .chip { flex: none; }
}

/* ---------------------------------------------------------------------
   Hero trust row — three quick, honest reassurances under the search bar.
   Colourful little glyphs, calm neutral text.
   --------------------------------------------------------------------- */
.hero-trust {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}
.hero-trust__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-2);
}
.hero-trust__item svg { flex: none; }
.hero-trust__item--accent svg { color: var(--accent); }
.hero-trust__item--apply svg  { color: var(--apply-text); }
.hero-trust__item--amber svg  { color: var(--amber); }

/* ---------------------------------------------------------------------
   Hero visual — just the signature swipe deck, clean and on its own.
   Centred under the copy on mobile, sitting in the right column on desktop.
   --------------------------------------------------------------------- */
.hero-visual { position: relative; }
/* 768 to 899px the deck sits under the copy: hold its full height (tile, the
   deck's overhang and the controls that appear with the script) from the start,
   so nothing below it shifts when hero-deck.js shows the controls. */
@media (min-width: 768px) and (max-width: 899px) {
  .js .hh { min-height: 624px; }
}
.hero-copy .lead { text-wrap: pretty; }   /* no one-word last line */

/* Top-align the hero so the heading sits at the top-left, consistent with the
   section headings below (not vertically floated). The deck centres itself. */
@media (min-width: 900px) {
  .hero-grid { align-items: start; }
  .hero-visual { align-self: center; }
  .hero-visual .home-mock { margin: 0 auto; }
  /* Hero search, side by side: "where" keeps just the room its placeholder needs
     and "what" takes the rest, so neither placeholder is cut short (with room to
     spare for a wider system font than Chrome's Arial). */
  .hero .search-bar .search-field { min-width: 0; padding-right: var(--space-2); }
  .hero .search-bar .search-field + .search-field { flex: 0 1 9.5rem; }
  .hero .search-bar .btn-accent { padding: 0 var(--space-5); }
}
.hero .search-field input { text-overflow: ellipsis; }
/* Where the hero column is narrow, the button drops under the two fields. */
@media (min-width: 900px) and (max-width: 1199px) {
  .hero .search-bar { flex-wrap: wrap; }
  .hero .search-bar .btn-accent { flex: 1 0 100%; min-height: 44px; }
}

/* ---------------------------------------------------------------------
   Hero swipe-card mock — a small tilted deck that mirrors the real
   .swipe-card look and shows a job "mid-swipe" with an Apply stamp.
   --------------------------------------------------------------------- */
.home-mock {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: var(--space-10) auto 0;
  aspect-ratio: 4 / 5;
}

.home-mock__card {
  position: absolute;
  inset: 4% 8%;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
/* Fanned stack: two cards peek from behind the fully-detailed front one.
   Scaled down + modest tilt so rotated corners never force a scrollbar. */
.home-mock__card--c3 { transform: rotate(-7deg) scale(.9);  z-index: 1; opacity: .8; }
.home-mock__card--c2 { transform: rotate(4deg)  scale(.95); z-index: 2; opacity: .92; }
.home-mock__card--c1 { transform: rotate(-2deg) translateX(2%); z-index: 3; box-shadow: var(--shadow-lg); }

.home-mock__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-5) var(--space-4);
}
/* the front card's title starts under its Apply stamp */
.home-mock__card--c1 .home-mock__body { padding-top: calc(var(--space-20) + var(--space-3)); }
.home-mock__title { margin: 0; font-size: var(--text-lg); line-height: 1.25; }
.home-mock__company { margin: 0; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; }
.home-mock__facts {
  list-style: none;
  margin: var(--space-1) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.home-mock__facts li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-2);
  font-size: var(--text-sm);
}
.home-mock__facts svg { color: var(--ink-faint); flex: none; }
.home-mock__facts .pay { color: var(--ink); font-weight: 600; }
.home-mock__facts .pay svg { color: var(--apply-text); }

/* "Apply" stamp, straight from the swipe deck's visual language. */
.home-mock__stamp {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  z-index: 5;
  padding: var(--space-1) var(--space-4);
  border: 3px solid var(--apply);
  border-radius: var(--radius);
  color: var(--apply);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transform: rotate(-14deg);
}

/* Small caption under the deck, so the gesture is unmistakable. */
.home-mock__hint {
  position: absolute;
  left: 0; right: 0;
  bottom: -6%;
  text-align: center;
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-weight: 500;
}

@media (min-width: 900px) {
  .home-mock { margin: 0 auto; max-width: 380px; }
}

/* ---------------------------------------------------------------------
   Stats band
   --------------------------------------------------------------------- */
.home-statband { padding: var(--space-6) 0 var(--space-4); }
.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-4);
  padding: var(--space-6);
  background: linear-gradient(150deg, var(--accent-050), var(--card) 68%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.home-stat { text-align: center; min-width: 0; }
.home-stat__num {
  font-size: clamp(2rem, 6vw, var(--text-4xl));
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--accent-strong);
}
.home-stat__plus { color: var(--accent); }
.home-stat__label {
  margin-top: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink);
}
.home-stat__sub {
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--ink-3);
}

@media (min-width: 760px) {
  /* one column per figure shown (a figure we do not have is left out) */
  .home-stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: var(--space-8) var(--space-6); }
  .home-stat + .home-stat { border-left: 1px solid var(--line); }
}

/* Tabular figures so the number never jiggles while it counts up. */
.home-stat__count { font-variant-numeric: tabular-nums; }

/* "Updating live" badge under the stats. Hidden by default and only revealed
   by home.js once it is actually polling, so the label is never a false claim.
   A calm green dot with a soft outward pulse signals a live feed. */
.home-live {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-weight: 500;
}
.home-live.is-on { display: flex; }
.home-live__dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: var(--radius-pill);
  background: var(--apply);
}
.home-live__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--apply);
  animation: home-live-pulse 1.8s ease-out infinite;
}
@keyframes home-live-pulse {
  0%   { transform: scale(1); opacity: .55; }
  70%  { transform: scale(3); opacity: 0; }
  100% { transform: scale(3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-live__dot::after { animation: none; }
}

/* ---------------------------------------------------------------------
   Feature grid (the six differentiators)
   --------------------------------------------------------------------- */
.home-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.home-feature {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
/* Colourful icon chips — one hue per differentiator. The doubled .ic.ic--*
   selector outranks the base `.feature .ic` fill regardless of load order. */
.home-feature .ic.ic--accent { background: var(--accent-050); color: var(--accent); }
.home-feature .ic.ic--apply  { background: var(--apply-050);  color: var(--apply-text); }
.home-feature .ic.ic--amber  { background: var(--amber-050);  color: var(--amber); }
.home-feature .ic.ic--red    { background: var(--red-050);    color: var(--red); }
.home-feature h3 { margin: 0 0 var(--space-2); }
.home-feature p { margin: 0 0 var(--space-4); }
.home-feature__go {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: auto;
  color: var(--link);
  font-size: var(--text-sm);
  font-weight: 600;
}
.home-feature__go svg { transition: transform .14s ease; }
.home-feature:hover { text-decoration: none; }
.home-feature:hover .home-feature__go svg { transform: translateX(3px); }

@media (min-width: 560px) { .home-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .home-features { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------------
   How-it-works strip
   --------------------------------------------------------------------- */
.home-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.home-step {
  padding: var(--space-6);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.home-step__n {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--accent-050);
  color: var(--accent);
  font-size: var(--text-lg);
  font-weight: 700;
}
/* Walk the three steps through the brand hues for a little warmth. */
.home-step:nth-child(2) .home-step__n { background: var(--apply-050); color: var(--apply-text); }
.home-step:nth-child(3) .home-step__n { background: var(--amber-050); color: var(--amber); }
.home-step h3 { margin: 0 0 var(--space-2); font-size: var(--text-lg); }
.home-step p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); }

@media (min-width: 760px) { .home-steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------------
   Closing CTA band
   --------------------------------------------------------------------- */
.home-cta {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--accent-050), var(--card) 66%);
  box-shadow: var(--shadow-sm);
}
.home-cta h2 { margin: 0 0 var(--space-3); }
.home-cta .lead { margin: 0 auto var(--space-6); max-width: 48ch; }
.home-cta .search-bar { margin: 0 auto var(--space-5); }
.home-cta__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.home-cta__pwa {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-6) auto 0;
  color: var(--ink-3);
  font-size: var(--text-sm);
}
.home-cta__pwa svg { color: var(--accent); flex: none; }

@media (min-width: 560px) { .home-cta { padding: var(--space-16) var(--space-10); } }
@media (max-width: 767px) {
  .home-cta { padding: var(--space-6) var(--space-4); border-radius: var(--radius-lg); }
  .home-cta .lead { font-size: var(--text-base); margin-bottom: var(--space-4); }
  .home-cta__row { flex-direction: column; }
  .home-cta__row .btn { width: 100%; }
  .home-cta__pwa { margin-top: var(--space-4); text-align: left; }
}

/* ---------------------------------------------------------------------
   Sector tiles — a colourful "browse by sector" grid. Each tile carries a
   soft brand tint + an icon chip; four tints rotate across the grid so it
   feels vibrant while staying strictly on the token palette.
   --------------------------------------------------------------------- */
.home-sectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
@media (min-width: 768px) { .home-sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }
@media (min-width: 1000px){ .home-sectors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.home-sector {
  --hue: var(--accent);
  --hue-050: var(--accent-050);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--hue-050);
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .14s ease, transform .14s ease, border-color .14s ease;
}
.home-sector:hover {
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--hue);
}
.home-sector__ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--hue);
  box-shadow: var(--shadow-sm);
}
.home-sector__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.home-sector__name { font-weight: 600; font-size: var(--text-sm); line-height: 1.25; color: var(--ink); }
/* Neutral affordance text so it clears AA on every tint; the colour comes
   from the icon chip, the tile tint and the hover border. */
.home-sector__go { font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); }
/* Phones: compact tiles, the name alone (the whole tile is the link). */
@media (max-width: 767px) {
  .home-sector { gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius); }
  .home-sector__ic { width: 32px; height: 32px; border-radius: var(--radius-sm); }
  .home-sector__ic svg { width: 18px; height: 18px; }
  .home-sector__name { overflow-wrap: anywhere; }
  .home-sector__go { display: none; }
}

.home-sector--apply { --hue: var(--apply-text); --hue-050: var(--apply-050); }
.home-sector--amber { --hue: var(--amber);      --hue-050: var(--amber-050); }
.home-sector--red   { --hue: var(--red);        --hue-050: var(--red-050); }

/* ---------------------------------------------------------------------
   Photo showcase strip — real workplace imagery, each card a rounded,
   shadowed photo with a legible label linking into that sector.
   --------------------------------------------------------------------- */
.home-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 760px) { .home-showcase { grid-template-columns: repeat(4, 1fr); } }

.home-showcase__card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4;
  text-decoration: none;
  transition: box-shadow .14s ease, transform .14s ease;
}
.home-showcase__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
/* Dark scrim under the label keeps white text well clear of AA over any photo. */
.home-showcase__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, var(--ink));
  opacity: .82;
}
.home-showcase__label {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 1;
  color: var(--on-accent);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.3;
}
.home-showcase__card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.home-showcase__card:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .home-showcase__card:hover img { transform: none; }
}
/* =====================================================================
   The "Add to home screen" prompt (partials/install-prompt.php, install.js).
   Phones only. It sits above whatever is fixed to the bottom of the screen
   (the bottom navigation or a page's action bar): --bottom-chrome is how tall
   that is. Tokens only.
   ===================================================================== */
.install-prompt{
  position:fixed; left:var(--space-3); right:var(--space-3);
  bottom:calc(var(--bottom-chrome) + var(--space-3));
  z-index:var(--z-banner);
  display:flex; align-items:center; gap:var(--space-3);
  padding:var(--space-3) var(--space-2) var(--space-3) var(--space-3);
  background:var(--card); border:1px solid var(--line-2); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
}
.install-prompt[hidden]{ display:none; }
.install-prompt__icon{ flex:none; width:40px; height:40px; border-radius:var(--radius-sm); }
.install-prompt__text{ flex:1 1 auto; min-width:0; margin:0; display:flex; flex-direction:column; gap:2px; }
.install-prompt__title{ font-size:var(--text-sm); font-weight:600; line-height:1.3; color:var(--ink); }
.install-prompt__how{ font-size:var(--text-xs); line-height:1.4; color:var(--ink-2); }
.install-prompt__how[hidden]{ display:none; }
.install-prompt__add{ flex:none; min-height:44px; padding-left:var(--space-4); padding-right:var(--space-4); }
.install-prompt__add[hidden]{ display:none; }
.install-prompt__close{
  flex:none; display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; padding:0; border:0; border-radius:var(--radius-pill);
  background:none; color:var(--ink-2); cursor:pointer;
}
.install-prompt__close:hover{ color:var(--ink); background:var(--accent-050); }
.install-prompt__close:focus-visible{ outline:none; box-shadow:var(--focus-ring); }
@media (prefers-reduced-motion:no-preference){
  .install-prompt:not([hidden]){ animation:install-prompt-in var(--dur-3) var(--ease-out) both; }
  @keyframes install-prompt-in{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
}
/* A computer never shows it (and never downloads install.js). */
@media (min-width:768px){
  .install-prompt{ display:none; }
}
/* ============================================================
   Interview scheduling — employer application page + applicant
   applications list. All classes are namespaced .iv* because this
   file is auto-loaded on every page.
   ============================================================ */

/* ---------- Section shell (employer) ---------- */
.iv-head{ margin-bottom:var(--space-4); }
.iv-head__hint{ margin:var(--space-1) 0 0; font-size:var(--text-sm); color:var(--ink-2); }
.iv-empty{ margin:0 0 var(--space-4); font-size:var(--text-sm); color:var(--ink-2); }

/* ---------- Interview list ---------- */
.iv-list{ list-style:none; margin:0 0 var(--space-5); padding:0; display:flex; flex-direction:column; gap:var(--space-3); }
.iv-item{
  display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-4);
  background:var(--page); border:1px solid var(--line); border-radius:var(--radius);
  padding:var(--space-4);
}
.iv-item__main{ min-width:0; }
.iv-when{ margin:0; font-size:var(--text-base); font-weight:600; color:var(--ink); }
.iv-meta{ margin:var(--space-1) 0 0; font-size:var(--text-sm); color:var(--ink-2); word-break:break-word; }
.iv-notes{ margin:var(--space-2) 0 0; font-size:var(--text-sm); color:var(--ink-2); }
.iv-item__side{ flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:var(--space-2); text-align:right; }

/* ---------- Status pills (reuse accent / amber / green / red) ---------- */
.iv-pill{
  display:inline-flex; align-items:center; padding:.24rem .7rem; border-radius:var(--radius-pill);
  font-size:var(--text-xs); font-weight:600; white-space:nowrap; border:1px solid transparent;
}
.iv-pill--proposed{ background:var(--amber-050); color:var(--ink); border-color:var(--amber); }
.iv-pill--confirmed{ background:var(--apply-050); color:var(--apply-text); }
.iv-pill--declined{ background:var(--red-050); color:var(--red-strong); }
.iv-pill--cancelled{ background:var(--page); color:var(--ink-3); border-color:var(--line-2); }
.iv-pill--completed{ background:var(--accent-050); color:var(--accent-strong); }

/* ---------- Inline actions ---------- */
.iv-inline{ margin:0; }
.iv-textbtn{
  background:none; border:none; padding:0; cursor:pointer;
  font-size:var(--text-sm); font-weight:600; color:var(--ink-2); font-family:inherit;
}
.iv-textbtn:hover{ text-decoration:underline; }
.iv-textbtn--danger{ color:var(--red-strong); }

.iv-actions{ display:flex; gap:var(--space-2); }
.iv-btn{
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer;
  padding:.45rem .9rem; border-radius:var(--radius); font-size:var(--text-sm); font-weight:600;
  font-family:inherit; border:1px solid var(--line-2); background:var(--card); color:var(--ink);
  transition:box-shadow .15s ease, transform .15s ease, background .15s ease;
}
.iv-btn:hover{ box-shadow:var(--shadow-sm); transform:translateY(-1px); }
.iv-btn--confirm{ background:var(--apply); border-color:var(--apply); color:#fff; }
.iv-btn--confirm:hover{ background:var(--apply-text); border-color:var(--apply-text); }
.iv-btn--decline{ background:var(--card); border-color:var(--red); color:var(--red-strong); }
.iv-btn--decline:hover{ background:var(--red-050); }

/* ---------- Schedule form (employer) ---------- */
.iv-form{ border-top:1px solid var(--line); padding-top:var(--space-5); display:flex; flex-direction:column; gap:var(--space-4); }
.iv-form__grid{ display:grid; grid-template-columns:1fr; gap:var(--space-4); }
.iv-field{ display:flex; flex-direction:column; gap:var(--space-2); min-width:0; }
.iv-label{ font-size:var(--text-sm); font-weight:600; color:var(--ink-2); }
.iv-hint{ margin:var(--space-1) 0 0; font-size:var(--text-xs); color:var(--ink-3); }

.iv-modes{ border:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-3); }
.iv-modes .iv-label{ flex-basis:100%; margin-bottom:var(--space-1); }
.iv-mode{
  display:inline-flex; align-items:center; gap:var(--space-2); cursor:pointer;
  padding:.5rem .9rem; border:1px solid var(--line-2); border-radius:var(--radius);
  font-size:var(--text-sm); font-weight:500; color:var(--ink); background:var(--card);
}
.iv-mode input{ accent-color:var(--accent); }
.iv-mode:has(input:checked){ border-color:var(--accent); color:var(--accent-strong); background:var(--accent-050); }

@media (min-width:560px){
  .iv-form__grid{ grid-template-columns:1fr 200px; }
}

/* ---------- Applicant applications list ---------- */
/* .iv-host lets .app-item wrap so the interviews block sits on its own row. */
.iv-host{ flex-wrap:wrap; }
.iv-apps{
  width:100%; flex-basis:100%;
  margin-top:var(--space-4); padding-top:var(--space-4); border-top:1px solid var(--line);
}
.iv-apps__label{
  margin:0 0 var(--space-3); font-size:var(--text-xs); font-weight:700;
  text-transform:uppercase; letter-spacing:.04em; color:var(--ink-3);
}
.iv-list--seeker{ margin-bottom:0; }

/* ---------- Small screens ---------- */
@media (max-width:560px){
  .iv-item{ flex-direction:column; }
  .iv-item__side{ flex-direction:row; align-items:center; align-self:stretch; justify-content:space-between; text-align:left; width:100%; }
  .iv-actions{ flex:none; }
}
/* =====================================================================
   job-v2.css - the "This job has closed" page (pages/jobs/closed.php,
   HTTP 410). Every selector sits under .jc or body.page-job-closed.
   Tokens only. The live job page's own sheet is pages/jobpage.css.
   ===================================================================== */

.jc{ max-width:880px; padding-top:var(--space-8); padding-bottom:var(--space-12); }

.jc .jc-head{ margin:0 0 var(--space-8); }
.jc .jc-head h1{ margin:0 0 var(--space-3); font-size:var(--text-3xl); line-height:1.15; letter-spacing:-.025em; text-wrap:balance; }
.jc .jc-head__what{ margin:0 0 var(--space-2); max-width:60ch; color:var(--ink); overflow-wrap:anywhere; }
.jc .jc-head__next{ margin:0 0 var(--space-5); max-width:60ch; color:var(--ink-2); }
.jc .jc-head__actions{ display:flex; flex-wrap:wrap; gap:var(--space-3); margin:0; }
.jc .jc-head__actions .btn{ min-height:48px; }

.jc .jc-section{ margin:0 0 var(--space-10); }
.jc .jc-section > h2{ margin:0 0 var(--space-4); font-size:var(--text-xl); letter-spacing:-.015em; }
.jc .jc-section .chip{ min-height:44px; display:inline-flex; align-items:center; }

@media (max-width:767px){
  .jc{ padding-top:var(--space-5); padding-bottom:var(--space-8); }
  .jc .jc-head{ margin-bottom:var(--space-6); }
  .jc .jc-head h1{ font-size:var(--text-2xl); }
  .jc .jc-head__actions .btn{ flex:1 1 100%; justify-content:center; }
  .jc .jc-section{ margin-bottom:var(--space-8); }
  .jc .jc-alert input{ font-size:max(16px, 1em); }
}
/* =====================================================================
   jobpage.css - the job detail page (/job/{id}-{slug}).
   Every selector sits under .jp (the page container) or body.page-job-detail,
   so the concatenated pages.bundle.css cannot leak it onto other pages.
   CSS variables only; light and dark come from the app.css tokens.
   ===================================================================== */

.jp{ max-width:880px; }
.jp .jp-main > .card, .jp .jp-side > .card{ margin-bottom:var(--space-6); }

/* ---------- Header ---------- */
.jp .jp-head{
  position:relative;
  overflow:hidden;
  padding:var(--space-8) var(--space-8) var(--space-6);
  border-radius:var(--radius-xl);
  background:
    radial-gradient(60% 90% at 100% 0%, color-mix(in srgb, var(--accent) 9%, transparent) 0%, transparent 70%),
    var(--card);
  box-shadow:var(--shadow-sm);
}
.jp .jp-head__top{ display:flex; align-items:flex-start; gap:var(--space-5); }
.jp .jp-head__logo{
  flex:none; width:64px; height:64px; object-fit:contain; padding:var(--space-2);
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
}
.jp .jp-head__id{ min-width:0; flex:1; }
.jp .jp-head__company{
  margin:0 0 var(--space-2); font-size:var(--text-sm); font-weight:600; color:var(--ink-2);
  letter-spacing:.01em;
}
.jp .jp-head h1{
  margin:0 0 var(--space-3);
  font-size:clamp(1.7rem, 4.6vw, 2.5rem);
  line-height:1.12; letter-spacing:-.025em;
  text-wrap:balance;
}
.jp .jp-head__meta{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-5);
  font-size:var(--text-sm); color:var(--ink-2);
}
.jp .jp-head__meta li{ display:inline-flex; align-items:center; gap:var(--space-2); }
.jp .jp-head__meta svg{ flex:none; color:var(--accent); }
.jp .jp-head__summary{
  margin:var(--space-5) 0 var(--space-6); max-width:68ch;
  font-size:var(--text-base); line-height:1.65; color:var(--ink-2); text-wrap:pretty;
}

/* ---------- Pay and key facts panel ---------- */
.jp .jp-facts{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:var(--space-5) var(--space-6);
  margin:0 0 var(--space-5);
  padding:var(--space-5) var(--space-6);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:color-mix(in srgb, var(--accent-050) 45%, var(--card));
}
.jp .jp-facts .job-facts__item dt{ letter-spacing:.07em; font-size:calc(var(--text-xs) * .92); }
.jp .jp-facts .job-facts__item dd{ font-size:var(--text-base); line-height:1.4; }
.jp .jp-facts__pay{ grid-column:1 / -1; }
.jp .jp-facts .jp-facts__pay dd.job-facts__pay{
  font-size:clamp(1.35rem, 3.6vw, var(--text-2xl)); font-weight:700; letter-spacing:-.02em;
  color:var(--apply-text); font-variant-numeric:tabular-nums;
}
.jp .jp-facts .jp-facts__pay--none dd{ font-weight:500; color:var(--ink-2); }

@media (min-width:640px){
  .jp .jp-facts{ grid-template-columns:repeat(4, minmax(0,1fr)); }
  .jp .jp-facts__pay{ grid-column:span 2; }
}

.jp .jp-head__extras{
  display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-3);
  margin:0 0 var(--space-5);
}
.jp .jp-head__extras .pay-insight{ margin-top:0; }
.jp .jp-extras{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-2); }

.jp .jp-head__foot{ border-top:0; padding-top:0; }
.jp .jp-head__foot .btn{ min-height:44px; }

/* ---------- Description: a readable measure ---------- */
.jp .jp-body{ padding:var(--space-8); border-radius:var(--radius-xl); }
.jp .jp-body > h2{ font-size:var(--text-xl); letter-spacing:-.015em; }
.jp .jp-prose{
  max-width:68ch;
  font-size:1.0625rem; line-height:1.75; color:var(--ink);
  text-wrap:pretty; overflow-wrap:break-word;
}
.jp .jp-prose p{ margin:0 0 var(--space-5); }
.jp .jp-prose p:last-child{ margin-bottom:0; }
.jp .jp-prose h2, .jp .jp-prose h3, .jp .jp-prose h4{
  margin:var(--space-8) 0 var(--space-3); font-size:var(--text-lg); line-height:1.3; letter-spacing:-.01em;
}
.jp .jp-prose > :first-child{ margin-top:0; }
.jp .jp-prose strong{ color:var(--ink); }
.jp .jp-prose a{ text-decoration:underline; text-underline-offset:2px; }
.jp .jp-body .job-section__sub{
  margin-top:var(--space-10); padding-top:var(--space-8); border-top:1px solid var(--line);
}

/* ---------- Similar jobs: a flickable row ---------- */
.jp .jp-similar__head{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-4); }
.jp .jp-similar__hint{ margin:0; font-size:var(--text-xs); color:var(--ink-3); }
.jp .jp-similar__track{
  list-style:none; margin:0 calc(var(--space-4) * -1); padding:var(--space-2) var(--space-4) var(--space-5);
  display:grid; grid-auto-flow:column; grid-auto-columns:min(82%, 300px); gap:var(--space-4);
  overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory; scroll-padding-inline:var(--space-4);
  scrollbar-width:thin; scrollbar-color:var(--line-2) transparent;
  -webkit-overflow-scrolling:touch;
}
.jp .jp-similar__track:focus-visible{ outline:none; box-shadow:var(--focus-ring); border-radius:var(--radius-lg); }
.jp .jp-sim{ scroll-snap-align:start; min-width:0; display:flex; }
.jp .jp-sim__link{
  flex:1; min-height:44px;
  display:flex; flex-direction:column; gap:var(--space-2);
  padding:var(--space-5);
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  color:var(--ink); text-decoration:none;
  box-shadow:var(--shadow-sm);
  transition:box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.jp .jp-sim__link:hover{ text-decoration:none; border-color:var(--line-2); box-shadow:var(--shadow-md); transform:translateY(-2px); }
.jp .jp-sim__link:focus-visible{ outline:none; box-shadow:var(--focus-ring); border-color:var(--accent); }
.jp .jp-sim__logo{ width:40px; height:40px; object-fit:contain; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--card); }
.jp .jp-sim__company{ font-size:var(--text-xs); font-weight:600; color:var(--ink-2); overflow-wrap:anywhere; }
.jp .jp-sim__company .card-flags{ margin-left:0; }
.jp .jp-sim__title{
  font-size:var(--text-base); font-weight:700; line-height:1.3; letter-spacing:-.01em; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.jp .jp-sim__meta{ font-size:var(--text-sm); color:var(--ink-3); }
.jp .jp-sim__pay{ margin-top:auto; padding-top:var(--space-2); font-size:var(--text-sm); font-weight:700; color:var(--apply-text); }

@media (min-width:900px){
  .jp .jp-similar--few .jp-similar__hint{ display:none; }
  .jp .jp-similar__track{ margin:0; padding-inline:0; scroll-padding-inline:0; grid-auto-columns:calc((100% - var(--space-4) * 2) / 3); }
}

/* ---------- Related searches ---------- */
.jp .jp-explore .chip{ min-height:44px; display:inline-flex; align-items:center; }

/* ---------- Phone ---------- */
@media (max-width:640px){
  .jp .jp-head{ padding:var(--space-6) var(--space-5) var(--space-5); }
  .jp .jp-head__top{ gap:var(--space-4); }
  .jp .jp-head__logo{ width:52px; height:52px; }
  .jp .jp-facts{ padding:var(--space-4) var(--space-5); gap:var(--space-4); }
  .jp .jp-body{ padding:var(--space-6) var(--space-5); }
  .jp .jp-prose{ font-size:var(--text-base); line-height:1.7; }
}

/* =====================================================================
   Layout (November 2026). Phones first: one column in reading order
   (back link, title, employer, pay, place, facts, advert, apply), with the
   shared .action-bar as the one sticky bar. From 900px: two columns, the
   advert on the left and the apply card on the right.
   ===================================================================== */
.jp .jp-layout{ display:block; }
.jp .jp-main, .jp .jp-side{ min-width:0; }
.jp .jp-side > :last-child{ margin-bottom:var(--space-6); }

/* The back link stands in for the breadcrumb on phones only. */
.jp .jp-back{ display:none; }
.jp .jp-head__pay{ display:none; }

@media (min-width:900px){
  .jp{ max-width:1160px; }
  .jp .jp-layout{ display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,380px); gap:var(--space-6); align-items:start; }
  /* A short side column (an apply-out card) follows the page; a long form does not. */
  .jp .jp-side--short{ position:sticky; top:calc(var(--header-h) + var(--space-4)); }
  .jp .jp-side .card{ padding:var(--space-6); }
  .jp .jp-side .apply-out .btn-lg{ width:100%; justify-content:center; }
}

/* ---------- Side column pieces ---------- */
.jp .jp-side .apply-out h2, .jp .jp-side .apply-form h2{ font-size:var(--text-xl); letter-spacing:-.015em; }
.jp .jp-prefill{ margin:0 0 var(--space-4); }
.jp .jp-form-errors{
  margin:0 0 var(--space-5); padding:var(--space-4) var(--space-5);
  border:1px solid var(--red); border-radius:var(--radius-md); background:var(--red-050); color:var(--ink);
}
.jp .jp-form-errors:focus{ outline:none; box-shadow:var(--focus-ring); }
.jp .jp-form-errors__title{ margin:0 0 var(--space-2); font-weight:600; color:var(--red-strong); }
.jp .jp-form-errors ul{ margin:0; padding-left:var(--space-5); font-size:var(--text-sm); }
.jp .jp-cv{ margin-bottom:var(--space-3); }
.jp .jp-cv__saved{ min-height:44px; font-size:var(--text-base); }
.jp .jp-cv .form-hint{ margin-top:0; }
.jp .jp-more{ margin:0 0 var(--space-5); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.jp .jp-more > summary{
  display:flex; align-items:center; min-height:44px; cursor:pointer;
  font-size:var(--text-sm); font-weight:600; color:var(--link);
}
.jp .jp-more > summary:focus-visible{ outline:none; box-shadow:var(--focus-ring); border-radius:var(--radius-sm); }
.jp .jp-more[open] > summary{ margin-bottom:var(--space-2); }
.jp .jp-side .alert-quick--tick{ margin:0 0 var(--space-4); }

/* Pay context: the pay guide's figure, labelled by what it covers. */
.jp .jp-pay{ padding:var(--space-5) var(--space-6); border-radius:var(--radius-lg); background:var(--surface-sunken, var(--page)); }
.jp .jp-pay h2{ margin:0 0 var(--space-2); font-size:var(--text-sm); font-weight:600; color:var(--ink-2); }
.jp .jp-pay__figure{ margin:0; font-size:var(--text-2xl); font-weight:700; letter-spacing:-.02em; color:var(--ink); }
.jp .jp-pay__figure span{ font-size:var(--text-sm); font-weight:500; letter-spacing:0; color:var(--ink-2); }
.jp .jp-pay__label{ margin:var(--space-1) 0 var(--space-2); font-size:var(--text-sm); color:var(--ink); }
.jp .jp-pay__note{ margin:0 0 var(--space-3); font-size:var(--text-xs); line-height:1.5; color:var(--ink-3); }
.jp .jp-pay__link{ display:inline-flex; align-items:center; min-height:44px; font-size:var(--text-sm); font-weight:600; color:var(--link); }
.jp .jp-alert{ margin-bottom:var(--space-6); }

/* "Is this your vacancy?": quiet, after the apply action and the safety note. */
.jp .jp-claim{
  margin:var(--space-6) 0; padding:var(--space-5) var(--space-6);
  border:1px dashed var(--line-2); border-radius:var(--radius-lg); background:var(--card);
}
.jp .jp-claim .offer__heading{ margin:0 0 var(--space-2); font-size:var(--text-base); }
.jp .jp-claim .offer__intro{ margin:0 0 var(--space-3); font-size:var(--text-sm); }
.jp .jp-claim .offer__links{ margin:0 0 var(--space-3); padding-left:var(--space-5); font-size:var(--text-sm); }
.jp .jp-claim .offer__links a{ display:inline-flex; align-items:center; min-height:44px; }
.jp .jp-claim__free{ margin:var(--space-3) 0 0; font-size:var(--text-sm); color:var(--ink-2); }
.jp .jp-claim__free a{ color:var(--link); text-decoration:underline; text-underline-offset:2px; }

/* ---------- Phones: under 768px ---------- */
@media (max-width:767px){
  .jp .breadcrumb{ display:none; }
  .jp .jp-back{
    display:inline-flex; align-items:center; gap:var(--space-1); min-height:44px;
    margin:0 0 var(--space-1) calc(var(--space-2) * -1); padding:0 var(--space-2);
    font-size:var(--text-sm); font-weight:600; color:var(--link); text-decoration:none;
  }
  .jp .jp-back:focus-visible{ outline:none; box-shadow:var(--focus-ring); border-radius:var(--radius-sm); }

  /* Title, employer, pay, place: nothing else before the facts. */
  .jp .jp-head{ padding:var(--space-5) var(--space-4) var(--space-4); border-radius:var(--radius-lg); }
  .jp .jp-head h1{ margin-bottom:var(--space-2); font-size:var(--text-2xl); line-height:1.18; }
  .jp .jp-head__company{ margin-bottom:var(--space-2); }
  .jp .jp-head__pay{
    display:block; margin:0 0 var(--space-2);
    font-size:var(--text-lg); font-weight:700; letter-spacing:-.01em; color:var(--apply-text);
  }
  .jp .jp-head__pay--none{ font-size:var(--text-sm); font-weight:500; letter-spacing:0; color:var(--ink-2); }
  .jp .jp-head__meta{ gap:var(--space-1) var(--space-4); }

  /* The sentence for answer engines stays in the page; people on a phone have just read the same facts. */
  .jp .jp-head__summary{
    position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
    clip:rect(0 0 0 0); white-space:nowrap; border:0;
  }
  /* Pay and place are in the lines above: the facts panel keeps what is new. */
  .jp .jp-facts{ margin-top:var(--space-4); grid-template-columns:repeat(2, minmax(0,1fr)); padding:var(--space-3) var(--space-4); gap:var(--space-3) var(--space-4); }
  .jp .jp-facts .jp-facts__pay, .jp .jp-facts .jp-facts__place{ display:none; }
  .jp .jp-facts .job-facts__item dd{ font-size:var(--text-sm); }
  /* Save and Apply live in the action bar on a phone. */
  .jp .jp-head__foot{ display:none; }
  .jp .jp-head__extras{ margin-bottom:0; margin-top:var(--space-3); }

  .jp .jp-body{ padding:var(--space-5) var(--space-4); border-radius:var(--radius-lg); }
  .jp .jp-side .card{ padding:var(--space-5) var(--space-4); }
  .jp .jp-side .apply-out .btn-lg, .jp .jp-side .apply-form .btn-lg{ width:100%; justify-content:center; }
  /* 16px inputs: iOS does not zoom the page on focus. */
  .jp .jp-side input:not([type="checkbox"]):not([type="radio"]), .jp .jp-side select, .jp .jp-side textarea{ font-size:max(16px, 1em); min-height:48px; }
  .jp .jp-side .af-choice{ min-height:44px; }
  .jp .jp-claim{ padding:var(--space-4); }
}

/* ---------- The phone's one sticky bar (shared .action-bar) ---------- */
body.page-job-detail .jp-bar__save{
  flex:none; display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; padding:0; cursor:pointer;
  color:var(--ink-2); background:var(--card); border:1px solid var(--line-2); border-radius:var(--radius-md);
}
body.page-job-detail .jp-bar__save[aria-pressed="true"]{ color:var(--accent); border-color:var(--accent); background:var(--accent-050); }
body.page-job-detail .jp-bar__save:focus-visible{ outline:none; box-shadow:var(--focus-ring); }
body.page-job-detail .jp-bar .action-bar__title{ color:var(--apply-text); }
body.page-job-detail .jp-bar .btn{ gap:var(--space-2); }

/* ---------- Return sheet ("Did you apply?") ---------- */
body.page-job-detail .jp-return{
  position:fixed; z-index:var(--z-modal);
  right:var(--space-5); bottom:var(--space-5); width:min(400px, calc(100vw - 2 * var(--space-5)));
  max-height:calc(100vh - var(--header-h) - 2 * var(--space-5)); overflow:auto; overscroll-behavior:contain;
  padding:var(--space-6); background:var(--card); color:var(--ink);
  border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-lg);
}
body.page-job-detail .jp-return[hidden]{ display:none; }
body.page-job-detail .jp-return:focus{ outline:none; }
body.page-job-detail .jp-return:focus-visible{ box-shadow:var(--shadow-lg), var(--focus-ring); }
body.page-job-detail .jp-return h2{ margin:0 var(--space-10) var(--space-1) 0; font-size:var(--text-xl); letter-spacing:-.015em; }
body.page-job-detail .jp-return__sub{ margin:0 0 var(--space-4); font-size:var(--text-sm); color:var(--ink-3); }
body.page-job-detail .jp-return__choices{ display:flex; gap:var(--space-3); }
body.page-job-detail .jp-return__choices .btn{ flex:1; min-height:48px; justify-content:center; }
body.page-job-detail .jp-return__close{
  position:absolute; top:var(--space-3); right:var(--space-3);
  display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0;
  color:var(--ink-2); background:transparent; border:0; border-radius:var(--radius-md); cursor:pointer;
}
body.page-job-detail .jp-return__close:hover{ background:var(--page); }
body.page-job-detail .jp-return__close:focus-visible{ outline:none; box-shadow:var(--focus-ring); }
body.page-job-detail .jp-return__lead{ margin:0 var(--space-10) var(--space-4) 0; font-size:var(--text-base); font-weight:600; }
body.page-job-detail .jp-return__lead:focus{ outline:none; }
body.page-job-detail .jp-return__save{ min-height:48px; margin-bottom:var(--space-5); gap:var(--space-2); }
body.page-job-detail .jp-return .alert-quick{ margin:0; }
@media (max-width:767px){
  /* A bottom sheet, resting on the action bar. */
  body.page-job-detail .jp-return{
    left:0; right:0; bottom:var(--bottom-chrome); width:auto;
    max-height:calc(100vh - var(--bottom-chrome) - var(--header-h) - var(--space-4));
    padding:var(--space-5) var(--space-4); border-width:1px 0 0; border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  }
  body.page-job-detail .jp-return input{ font-size:max(16px, 1em); }
}
@media (prefers-reduced-motion:no-preference){
  body.page-job-detail .jp-return:not([hidden]){ animation:jp-return-in var(--dur-2) var(--ease-out) both; }
  @keyframes jp-return-in{ from{ opacity:0; } }
}

@media (prefers-reduced-motion:reduce){
  .jp .jp-sim__link{ transition:none; }
  .jp .jp-sim__link:hover{ transform:none; }
  .jp .jp-similar__track{ scroll-behavior:auto; }
}
/* =====================================================================
   landing-v2.css: the clean-URL landing pages (role x town, town, sector,
   sector x town, region and county hubs). Adds to landing.css; never
   restyles a shared component. Tokens only, phone first.

   This file sorts BEFORE landing.css in the bundle, so anything that
   adjusts a landing.css rule carries one more class to win either way.
   ===================================================================== */

/* ---------- The answer paragraph under the heading ---------- */
.landing-hero .landing-answer{ max-width:68ch; }

/* ---------- Advertised pay box (reuses .salary-insight) ---------- */
.pay-box .salary-insight__figure{ flex-wrap:wrap; font-variant-numeric:tabular-nums; }
.pay-box .salary-insight__note{ max-width:52ch; }
.pay-box__n{ display:block; font-size:var(--text-xs); font-weight:500; color:var(--ink-2); }

/* ---------- Results head ---------- */
.landing-results__updated{ margin-left:var(--space-2); font-size:var(--text-xs); color:var(--ink-3); white-space:nowrap; }
.landing-more{
  margin:var(--space-6) 0 0;
  padding:var(--space-4) var(--space-5);
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  font-size:var(--text-sm);
  color:var(--ink-2);
}
.landing-more a{ font-weight:600; }

/* ---------- Featured employer: only ever printed when a place is sold ---------- */
.featured-employer{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:var(--space-4);
  padding:var(--space-5);
  margin-bottom:var(--space-6);
  border:1px solid var(--line-2);
  border-radius:var(--radius-lg);
  background:var(--card);
  box-shadow:var(--shadow-sm);
}
.featured-employer__logo{
  width:56px; height:56px;
  border-radius:var(--radius);
  object-fit:cover;
  border:1px solid var(--line);
  background:var(--card);
}
.featured-employer__logo--initial{
  display:flex; align-items:center; justify-content:center;
  font-size:var(--text-xl); font-weight:600; color:var(--accent); background:var(--accent-050);
}
.featured-employer__body{ min-width:0; }
.featured-employer__label{ margin:0 0 var(--space-1); }
.featured-employer__name{ display:flex; align-items:center; gap:var(--space-1); margin:0; font-size:var(--text-lg); font-weight:600; }
.featured-employer__name a{ color:var(--ink); }
.featured-employer__name .verified-tick{ flex:none; color:var(--accent); }
.featured-employer__headline{ margin:var(--space-1) 0 0; font-size:var(--text-sm); color:var(--ink-2); }
.featured-employer__cta{ grid-column:1 / -1; justify-self:start; min-height:44px; display:inline-flex; align-items:center; }
@media (min-width:640px){
  .featured-employer{ grid-template-columns:auto minmax(0,1fr) auto; }
  .featured-employer__cta{ grid-column:auto; justify-self:end; }
}

/* ---------- Questions and answers ---------- */
.landing-faq{ margin-top:var(--space-10); }
.landing-faq > h2{ font-size:var(--text-xl); margin:0 0 var(--space-4); }
.landing-faq__item{ padding:var(--space-4) 0; border-top:1px solid var(--line); }
.landing-faq__item h3{ font-size:var(--text-base); margin:0 0 var(--space-2); }
.landing-faq__item p{ margin:0; max-width:70ch; font-size:var(--text-sm); color:var(--ink-2); }

/* ---------- Employer strip ---------- */
.landing-employer{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:var(--space-4) var(--space-6);
  margin-top:var(--space-10);
  padding:var(--space-6);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--card);
}
.landing-employer__text{ flex:1 1 260px; min-width:0; }
.landing-employer h2{ font-size:var(--text-lg); margin:0 0 var(--space-1); }
.landing-employer p{ margin:0; font-size:var(--text-sm); color:var(--ink-2); }
.landing-employer__actions{ display:flex; flex-wrap:wrap; gap:var(--space-2); }
.landing-employer__actions .btn{ min-height:44px; }

/* ---------- Aside ---------- */
.chip__count{ font-size:var(--text-xs); font-weight:600; color:var(--ink-3); font-variant-numeric:tabular-nums; }
.hiring-item .hiring-item__link--plain:hover{ background:transparent; }

/* ---------- Hubs ---------- */
.hub-card .hub-card__title{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-3); }
.hub-card__count{ flex:none; font-size:var(--text-xs); font-weight:600; color:var(--ink-3); font-variant-numeric:tabular-nums; }
.hub-az{ margin-bottom:var(--space-12); }
.hub-az .hub-region{ margin-bottom:var(--space-6); }
.hub-az .hub-region__links,
.page-hub .hub-region > .hub-region__links{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(210px, 1fr));
  gap:0 var(--space-6);
}
.page-hub .hub-region{ margin-bottom:var(--space-10); }
.hub-region__none{ display:block; padding:var(--space-2) 0; font-size:var(--text-sm); color:var(--ink-3); }

.area-sectors{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr; gap:0 var(--space-8); }
.area-sectors li{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-3); padding:var(--space-2) 0; border-bottom:1px solid var(--line); font-size:var(--text-sm); }
.area-sectors__n{ flex:none; font-size:var(--text-xs); color:var(--ink-3); font-variant-numeric:tabular-nums; }
@media (min-width:640px){ .area-sectors{ grid-template-columns:repeat(2, 1fr); } }
.area-jobs{ margin-bottom:var(--space-12); }
/* =====================================================================
   landing.css — programmatic SEO pages (role x location + browse hubs).
   Owned by the SEO landing area. CSS variables only; extends app.css.
   Mobile-first, soft-premium.
   ===================================================================== */

/* ---------- Hero ---------- */
.landing-hero{ padding:var(--space-10) 0 var(--space-6); }
.landing-hero .breadcrumb{ margin-bottom:var(--space-4); }
.landing-hero h1{ font-size:var(--text-3xl); max-width:22ch; margin-bottom:var(--space-4); }
.landing-hero .lead{ max-width:60ch; margin-bottom:var(--space-6); }
.landing-search{ margin-top:var(--space-2); }

/* ---------- Body + two-column layout ---------- */
.landing-body{ padding-bottom:var(--space-16); }
.landing-layout{ display:grid; grid-template-columns:1fr; gap:var(--space-8); }
.landing-main{ min-width:0; }
.landing-aside{ min-width:0; display:flex; flex-direction:column; gap:var(--space-5); }

@media (min-width:900px){
  .landing-layout{ grid-template-columns:minmax(0,1fr) 320px; align-items:start; }
}

/* ---------- Salary insight ---------- */
.salary-insight{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-5);
  padding:var(--space-6);
  margin-bottom:var(--space-6);
  border:1px solid var(--line-2);
  border-radius:var(--radius-lg);
  background:linear-gradient(135deg, var(--accent-050), var(--card) 72%);
  box-shadow:var(--shadow-sm);
}
.salary-insight__eyebrow{
  margin:0 0 var(--space-2);
  font-size:var(--text-xs);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--accent);
}
.salary-insight__figure{
  display:flex;
  align-items:baseline;
  gap:var(--space-2);
  margin:0 0 var(--space-2);
  font-size:var(--text-3xl);
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--ink);
}
.salary-insight__figure span{
  font-size:var(--text-sm);
  font-weight:500;
  color:var(--ink-2);
}
.salary-insight__note{ margin:0; font-size:var(--text-sm); color:var(--ink-2); }
.salary-insight__facts{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-5) var(--space-8);
  margin:0;
  padding-top:var(--space-4);
  border-top:1px solid var(--line);
}
.salary-insight__facts dt{
  margin:0 0 var(--space-1);
  font-size:var(--text-xs);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--ink-3);
}
.salary-insight__facts dd{ margin:0; font-size:var(--text-base); font-weight:600; color:var(--ink); }

@media (min-width:640px){
  .salary-insight{ grid-template-columns:1.3fr 1fr; align-items:center; }
  .salary-insight__facts{ border-top:0; border-left:1px solid var(--line); padding-top:0; padding-left:var(--space-6); flex-direction:column; gap:var(--space-4); }
}

/* ---------- Results head ---------- */
.landing-results__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:var(--space-3);
  margin-bottom:var(--space-5);
}
.landing-results__all{ font-size:var(--text-sm); font-weight:600; color:var(--accent); }

/* ---------- Aside cards ---------- */
.landing-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:var(--space-5);
}
.landing-card__head{
  font-size:var(--text-lg);
  margin:0 0 var(--space-4);
}
.landing-card__links{ display:flex; flex-wrap:wrap; gap:var(--space-2); margin-top:var(--space-3); }
.landing-card--cta p{ font-size:var(--text-sm); margin:0 0 var(--space-3); }

/* ---------- Who's hiring ---------- */
.hiring-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:var(--space-1); }
.hiring-item__link{
  display:flex;
  align-items:center;
  gap:var(--space-3);
  padding:var(--space-2);
  margin:0 calc(var(--space-2) * -1);
  border-radius:var(--radius);
  color:var(--ink);
  transition:background .12s ease;
}
.hiring-item__link:hover{ text-decoration:none; background:var(--page); }
.hiring-item__logo{
  width:40px; height:40px; flex:none;
  border-radius:var(--radius-sm);
  object-fit:cover;
  border:1px solid var(--line);
  background:var(--card);
}
.hiring-item__logo--initial{
  display:flex; align-items:center; justify-content:center;
  font-weight:600; color:var(--accent); background:var(--accent-050); border-color:var(--line-2);
}
.hiring-item__body{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.hiring-item__name{
  display:flex; align-items:center; gap:var(--space-1);
  font-weight:600; font-size:var(--text-sm); color:var(--ink);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.hiring-item__name .verified-tick{ flex:none; color:var(--accent); }
.hiring-item__meta{ font-size:var(--text-xs); color:var(--ink-2); }
.hiring-item__rating{ color:var(--amber); font-weight:600; }

/* ---------- Hub: sectors grid ---------- */
.hub-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-5);
  margin-bottom:var(--space-12);
}
.hub-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:var(--space-6);
  transition:box-shadow .14s ease, transform .14s ease;
}
.hub-card:hover{ box-shadow:var(--shadow-md); transform:translateY(-1px); }
.hub-card__title{ font-size:var(--text-lg); margin:0 0 var(--space-2); }
.hub-card__title a{ color:var(--ink); }
.hub-card__title a:hover{ color:var(--accent); text-decoration:none; }
.hub-card__desc{ font-size:var(--text-sm); color:var(--ink-2); margin:0 0 var(--space-4); }
.hub-card__links{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-1) var(--space-4); }
.hub-card__links a{ font-size:var(--text-sm); color:var(--ink-2); }
.hub-card__links a:hover{ color:var(--accent); }

@media (min-width:640px){ .hub-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:960px){ .hub-grid{ grid-template-columns:repeat(3,1fr); } }

/* ---------- Hub: locations by region ---------- */
.hub-regions{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-8);
  margin-bottom:var(--space-12);
}
.hub-region__title{
  font-size:var(--text-lg);
  margin:0 0 var(--space-3);
  padding-bottom:var(--space-2);
  border-bottom:1px solid var(--line);
}
.hub-region__links{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:var(--space-1); }
.hub-region__links a{
  display:flex; align-items:center; justify-content:space-between; gap:var(--space-3);
  padding:var(--space-2) 0;
  color:var(--ink-2); font-size:var(--text-sm);
}
.hub-region__links a:hover{ color:var(--accent); text-decoration:none; }
.hub-region__count{
  flex:none;
  font-size:var(--text-xs); font-weight:600; color:var(--ink-3);
  background:var(--page); border:1px solid var(--line); border-radius:var(--radius-pill);
  padding:.1rem .5rem;
}

@media (min-width:640px){ .hub-regions{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:960px){ .hub-regions{ grid-template-columns:repeat(3,1fr); } }

/* ---------- Hub: popular searches ---------- */
.hub-popular{ margin-bottom:var(--space-12); }
.hub-popular__head{ font-size:var(--text-xl); margin-bottom:var(--space-5); }

/* ---------- Hub CTA banner ---------- */
.hub-cta{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:var(--space-5);
  padding:var(--space-8);
  border-radius:var(--radius-lg);
  background:linear-gradient(135deg, var(--accent-050), var(--card) 72%);
  border:1px solid var(--line-2);
}
.hub-cta h2{ font-size:var(--text-xl); margin:0 0 var(--space-1); }
.hub-cta p{ margin:0; color:var(--ink-2); font-size:var(--text-sm); }
/* =====================================================================
   yournextjob legal suite extras
   Cookie notice + legal hub cards. Design tokens only, namespaced
   (.cookie-consent* / .lgl*) so nothing leaks into other pages.
   ===================================================================== */

/* ---------- Cookie notice ---------- */
.cookie-consent{
  position:fixed; left:0; right:0; bottom:0;
  z-index:var(--z-banner);
  background:var(--card);
  border-top:1px solid var(--line-2);
  box-shadow:var(--shadow-lg);
  animation:cookieUp .28s ease both;
}
.cookie-consent[hidden]{ display:none; }

.cookie-consent__inner{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:var(--space-3) var(--space-6);
  padding:var(--space-4) var(--space-4);
}
.cookie-consent__text{
  margin:0; flex:1 1 30ch; min-width:min(100%, 30ch);
  font-size:var(--text-sm); color:var(--ink-2); line-height:1.5;
}
.cookie-consent__text a{ color:var(--link); text-decoration:underline; text-underline-offset:2px; }
.cookie-consent__text a:hover{ color:var(--accent-strong); }

.cookie-consent__actions{
  display:flex; align-items:center; gap:var(--space-4);
  flex:none;
}
.cookie-consent__link{
  font-size:var(--text-sm); color:var(--ink-2); white-space:nowrap;
}
.cookie-consent__link:hover{ color:var(--accent); }
.cookie-consent__accept{ white-space:nowrap; }

@keyframes cookieUp{
  from{ transform:translateY(100%); opacity:0; }
  to{ transform:translateY(0); opacity:1; }
}
@media (prefers-reduced-motion:reduce){
  .cookie-consent{ animation:none; }
}

/* Sit above the fixed mobile bottom nav on small screens. */
@media (max-width:640px){
  .cookie-consent{ bottom:calc(68px + env(safe-area-inset-bottom)); }
  .cookie-consent__inner{ padding:var(--space-4); }
  .cookie-consent__actions{ width:100%; justify-content:space-between; }
}

/* ---------- Legal hub cards ---------- */
.content-prose .lgl-hub{
  list-style:none; margin:0 0 var(--space-8); padding:0;
  display:grid; gap:var(--space-3);
}
.content-prose .lgl-hub li{ margin:0; }

.content-prose .lgl-doc{
  display:flex; align-items:center; gap:var(--space-4);
  padding:var(--space-4) var(--space-5);
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-lg);
  color:var(--ink); text-decoration:none;
  transition:box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.content-prose .lgl-doc:hover{
  box-shadow:var(--shadow-md); transform:translateY(-1px);
  border-color:var(--line-2); color:var(--ink);
}
.lgl-doc__ic{
  flex:none; width:42px; height:42px; border-radius:var(--radius);
  background:var(--accent-050); color:var(--accent);
  display:flex; align-items:center; justify-content:center;
}
.lgl-doc__body{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.lgl-doc__title{ font-size:var(--text-base); font-weight:600; color:var(--ink); }
.lgl-doc__desc{ font-size:var(--text-sm); color:var(--ink-2); line-height:1.45; }
.lgl-doc__go{
  flex:none; margin-left:auto; color:var(--ink-3);
  display:flex; align-items:center;
  transition:transform .15s ease, color .15s ease;
}
.content-prose .lgl-doc:hover .lgl-doc__go{ color:var(--accent); transform:translateX(3px); }

@media (max-width:520px){
  .content-prose .lgl-doc__go{ display:none; }
}

/* ---------- Table caption (employer pricing) ---------- */
.content-prose .lgl-caption{
  caption-side:top; text-align:left;
  font-size:var(--text-sm); color:var(--ink-3);
  margin-bottom:var(--space-3);
}

/* ---------- Footer legal sub-heading (scoped to the footer) ---------- */
.site-footer .footer-subhead{ margin-top:var(--space-6); }
/* yournextjob - personalised match layer (Wave D).
   A small match% ring + reason chips that surface on any card once the visitor
   has a seeker profile. Everything here is scoped to the matched modifiers, so
   a non-personalised page never touches these rules. */

/* ---------- Match ring (inline SVG donut) ---------- */
.match-ring {
  --ring-size: 46px;
  --ring: var(--accent);
  --ring-ink: var(--accent-strong);
  position: relative;
  flex: none;
  width: var(--ring-size);
  height: var(--ring-size);
}
.match-ring--strong { --ring: var(--apply);      --ring-ink: var(--apply-text); }
.match-ring--good   { --ring: var(--accent);     --ring-ink: var(--accent-strong); }
.match-ring--fair   { --ring: var(--ink-3);      --ring-ink: var(--ink-2); }

.match-ring__svg {
  display: block;
  width: var(--ring-size);
  height: var(--ring-size);
}
.match-ring__track { stroke: var(--line-2); }
.match-ring__meter { stroke: var(--ring); }

.match-ring__num {
  position: absolute;
  inset: 0;
  /* flex (not grid) so the number and the "%" sit inline on one centred line,
     rather than stacking as two separate grid items. */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--ring-size) * .3);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ring-ink);
}
.match-ring__pct {
  font-size: .62em;
  font-weight: 600;
  margin-left: .5px;
}

/* Gentle entrance, kept out of the way for reduced-motion visitors. */
@media (prefers-reduced-motion: no-preference) {
  .match-ring__meter {
    transform-box: view-box;
    transform-origin: center;
    animation: match-ring-draw .6s ease both;
  }
}
@keyframes match-ring-draw {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

/* ---------- Ring placement: job-card (grid/list surfaces) ---------- */
.job-card--matched {
  /* the card is already position:relative; pin the ring into the top corner */
}
.job-card--matched .match-ring {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 1;
}
/* Reserve room so the badges/title never run under the corner ring. */
.job-card--matched .job-card__body {
  padding-right: calc(var(--space-12) + var(--space-2));
}
/* The ring owns the top-right corner on a matched card, so drop the save button
   below it — otherwise the opaque save button sat on top of the ring and hid its
   number, leaving a broken-looking empty circle. */
.job-card--matched .job-save {
  top: calc(var(--space-5) + 50px);
  right: var(--space-5);
}

/* ---------- Ring placement: swipe deck card ---------- */
.match-ring--oncard { --ring-size: 52px; }
.swipe-card--matched .match-ring--oncard {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2; /* below the swipe stamps (z-index:5) so they still read over it */
}
/* Give the card head's right side room for the ring, so the title and the
   company line never run under it. */
.swipe-card--matched .swipe-card__top {
  padding-right: calc(52px + var(--space-6));
}

/* ---------- Reason chips ---------- */
.match-reasons {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0 0;
  padding: 0;
}
.match-reasons__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: .2rem .55rem;
  border-radius: var(--radius-pill);
  background: var(--accent-050);
  border: 1px solid var(--line-2);
  color: var(--link);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.25;
}
.match-reasons__tick { flex: none; color: var(--accent); }

/* On the swipe card the body is a flex column with its own gap, so drop the
   chip row's extra top margin to keep the rhythm even. */
.swipe-card__body .match-reasons { margin-top: 0; }
/* Messaging: inbox (.msgs*) + conversation thread (.thread*).
   Namespaced to avoid leaking, since page CSS is auto-loaded site-wide.
   CSS variables only. */

/* ------------------------------------------------------------------ */
/* Inbox                                                              */
/* ------------------------------------------------------------------ */
.msgs {
  padding: var(--space-8) 0 var(--space-16);
}
.msgs__head {
  margin-bottom: var(--space-6);
}
.msgs__head h1 {
  font-size: var(--text-2xl);
  margin: 0;
}
.msgs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 720px;
}
.msgs__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: box-shadow .14s ease, transform .14s ease;
}
.msgs__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.msgs__item.is-unread {
  border-color: var(--line-2);
  background: var(--accent-050);
}
.msgs__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  color: var(--ink);
}
.msgs__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--accent-050);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
}
.msgs__body {
  flex: 1 1 auto;
  min-width: 0;
}
.msgs__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.msgs__name {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msgs__item.is-unread .msgs__name {
  font-weight: 700;
}
.msgs__time {
  flex: 0 0 auto;
  font-size: var(--text-xs);
  color: var(--ink-3);
}
.msgs__job {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.msgs__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-fill);
  color: var(--on-accent);
  font-size: var(--text-xs);
  font-weight: 700;
}
.msgs__chevron {
  flex: 0 0 auto;
  color: var(--ink-faint);
  display: flex;
}

/* ------------------------------------------------------------------ */
/* Thread                                                            */
/* ------------------------------------------------------------------ */
.thread {
  padding: var(--space-6) 0 var(--space-8);
}
.thread__container {
  max-width: 760px;
}
.thread__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.thread__back {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  text-decoration: none;
}
.thread__back:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.thread__head-text {
  min-width: 0;
}
.thread__with {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-3);
}
.thread__job {
  display: inline-block;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.thread__job:hover {
  text-decoration: underline;
}
.thread__job--plain {
  color: var(--ink);
}

.thread__list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
  min-height: 220px;
  max-height: calc(100vh - 320px);
}
.thread__empty {
  margin: auto;
  text-align: center;
  color: var(--ink-3);
  font-size: var(--text-sm);
}

.thread__msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 70%;
  align-self: flex-start;
}
.thread__msg--own {
  align-self: flex-end;
  align-items: flex-end;
}
.thread__bubble {
  background: var(--page);
  border: 1px solid var(--line-2);
  color: var(--ink);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
}
.thread__msg--own .thread__bubble {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: var(--on-accent);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-sm);
}
.thread__body {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.thread__meta {
  margin: var(--space-1) var(--space-1) 0;
  font-size: var(--text-xs);
  color: var(--ink-3);
  display: flex;
  gap: var(--space-1);
  align-items: center;
}
.thread__sender {
  font-weight: 600;
}
.thread__dot {
  color: var(--ink-faint);
}

/* In place of the reply box once the other side has closed their account. */
.thread__closed {
  margin: var(--space-4) 0 0;
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  color: var(--ink-2);
  font-size: var(--text-sm);
  text-align: center;
}

.thread__reply {
  position: sticky;
  bottom: var(--space-4);
  margin-top: var(--space-4);
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.thread__input {
  flex: 1 1 auto;
  min-height: 44px;
  margin: 0;
}
.thread__send {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

@media (max-width: 640px) {
  .thread__msg {
    max-width: 82%;
  }
  .thread__list {
    max-height: calc(100vh - 280px);
  }
  .thread__send-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}
/* =====================================================================
   motion.css - the level-up layer: the home hero's live preview deck and
   3D map, and the shared motion used by js/motion.js (tilt + spotlight,
   magnetic buttons, staggered reveals, scroll-filled steps, layered
   parallax, the agency mock story, the job page's Apply bar).
   Every rule is namespaced (.hh*, [data-*], .jobbar, .emp-stage, .agp-mock
   states) so it changes nothing on other pages. Tokens only.
   Without JavaScript nothing here hides content; with reduced motion the
   effects stand still.
   ===================================================================== */

:root{ --on-accent:white; --sheen:rgba(255,255,255,.55); --ease-out:cubic-bezier(.22,1,.36,1); --ease-spring:cubic-bezier(.34,1.56,.64,1); }
:root[data-theme="dark"]{ --sheen:rgba(255,255,255,.09); }

/* ---------------------------------------------------------------------
   Home hero: the tile with the map, the deck in front of it
   --------------------------------------------------------------------- */
/* A flicked card flies past the edge of the hero: the hero clips it sideways, so it never adds a scrollbar. */
.page-home .hero{ overflow-x:hidden; overflow-x:clip; }
.hh{ position:relative; width:100%; max-width:440px; margin:var(--space-10) auto 0; }
.hh__tile{
  position:relative; height:380px; border-radius:var(--radius-xl); overflow:hidden; isolation:isolate;
  border:1px solid var(--line-2); box-shadow:var(--shadow-sm);
  background:
    radial-gradient(90% 70% at 72% 22%, var(--card) 0%, transparent 72%),
    linear-gradient(168deg, var(--accent-050) 0%, var(--page) 78%);
}
.hh__map{ position:absolute; inset:0; }
.hh__canvas{ position:absolute; inset:0; width:100%; height:100%; opacity:0; transition:opacity .9s ease; }
.hh__tile.is-drawn .hh__canvas{ opacity:1; }
.hh__legend{
  position:absolute; left:var(--space-3); top:var(--space-3); z-index:2; margin:0;
  display:inline-flex; align-items:center; gap:var(--space-2); padding:.3rem .75rem;
  border-radius:var(--radius-pill); border:1px solid var(--line);
  background:color-mix(in srgb, var(--card) 84%, transparent); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
  font-size:var(--text-xs); font-weight:600; color:var(--ink-2);
}
.hh__tile:not(.is-drawn) .hh__legend{ opacity:0; }
.hh__legend{ transition:opacity .6s ease .2s; }
.hh__legend-dot{ width:8px; height:8px; border-radius:50%; flex:none; background:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* the front card's town on the map */
.hh__pin{ position:absolute; left:0; top:0; z-index:1; pointer-events:none; }
.hh__pin-ring{ position:absolute; left:-6px; top:-6px; width:12px; height:12px; border-radius:50%;
  background:var(--apply); box-shadow:0 0 0 3px color-mix(in srgb, var(--card) 88%, transparent); }
.hh__pin-ring::after{ content:""; position:absolute; inset:-2px; border-radius:50%; border:2px solid var(--apply); opacity:0; }
.hh__pin-label{
  position:absolute; left:12px; top:-36px; padding:.2rem .65rem; border-radius:var(--radius-pill);
  background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow-md);
  font-size:var(--text-xs); font-weight:600; color:var(--ink); white-space:nowrap;
}
.hh__pin-label:empty{ display:none; }

/* ---- the deck ---- */
.hh__deck{ position:relative; z-index:2; width:min(100%, 320px); height:276px; margin:-96px auto 0; perspective:1100px; touch-action:pan-y; }
.hh-card{
  position:absolute; inset:0; display:flex; flex-direction:column; overflow:hidden;
  background:var(--card); border:1px solid var(--line-2); border-radius:var(--radius-xl); box-shadow:var(--shadow-md);
  transform-origin:50% 100%; backface-visibility:hidden;
  -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; touch-action:pan-y;
}
/* Until hero-deck.js runs: a fanned stack with the first job in front, in the
   same places the script rests the cards, so nothing jumps when it takes over. */
.hh-card[data-d="0"]{ z-index:4; box-shadow:var(--shadow-lg); }
.js .hh-card[data-d="1"]{ z-index:3; transform:translateY(-34px) scale(.955); }
.js .hh-card[data-d="2"]{ z-index:2; transform:translateY(-68px) scale(.91); }
.js .hh-card[data-d="3"], .js .hh-card[data-d="out"]{ z-index:1; opacity:0; visibility:hidden; }
/* With JavaScript off there is no map and no stack: every card sits in a row
   that scrolls sideways (snapping card by card), each one a plain link. */
html:not(.js) .hh{ height:auto; }
.hero-grid > .hero-visual{ min-width:0; }   /* a grid track never grows to fit the row of cards */
html:not(.js) .hh__tile, html:not(.js) .hh__foot{ display:none; }
html:not(.js) .hh__deck{
  position:relative; inset:auto; width:100%; height:auto; margin:0; perspective:none;
  display:flex; gap:var(--space-4); overflow-x:auto; scroll-snap-type:x mandatory; padding:var(--space-2) var(--space-1) var(--space-4);
}
html:not(.js) .hh-card{ position:relative; inset:auto; flex:0 0 min(86%, 296px); height:276px; scroll-snap-align:start; }
/* With it, hero-deck.js owns every card's transform and opacity. */
.hh.is-live .hh-card{ will-change:transform, opacity; }
.hh-card.is-front{ box-shadow:var(--shadow-lg); cursor:grab; }
.hh-card.is-dragging{ cursor:grabbing; }

.hh-card__link{ display:flex; flex-direction:column; height:100%; color:inherit; text-decoration:none; border-radius:inherit; }
.hh-card__link:hover{ text-decoration:none; }
.hh-card__link:focus-visible{ outline:2px solid var(--accent); outline-offset:-4px; }
/* No header band: the title leads. A logo shows only when the employer uploaded
   one; paid placement and "New" are quiet words beside the company (.card-flag). */
.hh-card__body{ flex:1; min-height:0; display:flex; flex-direction:column; gap:var(--space-3); padding:var(--space-5) var(--space-5) var(--space-3); }
.hh-card__head{ display:flex; align-items:flex-start; gap:var(--space-3); min-width:0; }
.hh-card__logo{ flex:none; width:44px; height:44px; border-radius:var(--radius); object-fit:contain; padding:4px; background:var(--card); border:1px solid var(--line-2); }
.hh-card__id{ flex:1; min-width:0; display:flex; flex-direction:column; gap:var(--space-1); }
.hh-card__title{
  font-size:var(--text-xl); font-weight:600; line-height:1.25; letter-spacing:-.015em; color:var(--ink);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; padding-top:1px;
  translate:calc(var(--lx, 0) * 2px) calc(var(--ly, 0) * 1.5px);
}
.hh-card__by{ display:flex; align-items:baseline; gap:var(--space-2); min-width:0; }
.hh-card__company{ min-width:0; font-size:var(--text-sm); font-weight:500; color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hh-card__by .card-flags{ flex:none; flex-wrap:nowrap; margin-left:0; }
/* at most two rows of facts: a third (a long town name) drops out whole, never half cut */
.hh-card__facts{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2) var(--space-3); margin-top:auto; max-height:calc(2 * 1.6em + var(--space-2)); overflow:hidden; font-size:var(--text-sm); }
.hh-card__fact{ display:inline-flex; align-items:center; gap:6px; max-width:100%; font-size:var(--text-sm); color:var(--ink-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hh-card__fact svg{ flex:none; color:var(--ink-faint); }
.hh-card__pay{ align-self:flex-start; max-width:100%; padding:3px 12px; border-radius:var(--radius-pill); background:var(--apply-050); color:var(--apply-text);
  font-size:var(--text-sm); font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  translate:calc(var(--lx, 0) * 4px) calc(var(--ly, 0) * 3px); }
.hh-card__pay--soft{ background:var(--page); color:var(--ink-3); font-weight:600; }
.hh-card__go{
  display:flex; align-items:center; justify-content:center; gap:6px; min-height:46px; flex:none;
  border-top:1px solid var(--line); color:var(--link); font-size:var(--text-sm); font-weight:600;
  transition:background .15s ease;
}
.hh-card__go svg{ transition:transform .15s ease; }
.hh-card.is-front .hh-card__link:hover .hh-card__go{ background:var(--accent-050); }
.hh-card.is-front .hh-card__link:hover .hh-card__go svg{ transform:translateX(3px); }

.hh-card__sheen{ position:absolute; inset:0; z-index:3; overflow:hidden; border-radius:inherit; pointer-events:none; }
.hh-card__sheen::after{
  content:""; position:absolute; inset:-50%; opacity:0; transition:opacity .5s ease;
  background:linear-gradient(115deg, transparent 42%, var(--sheen) 50%, transparent 58%);
  transform:translate(calc(-22% + var(--mx, 0) * 22%), calc(var(--my, 0) * 10%));
}
.hh-card.is-front:hover .hh-card__sheen::after, .hh-card.is-dragging .hh-card__sheen::after{ opacity:.75; }

/* the card that hands over to the real deck */
.hh-card--end{ background:linear-gradient(165deg, var(--accent-050), var(--card) 72%); }
.hh-card__end{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--space-3); height:100%; padding:var(--space-6); text-align:center; }
.hh-card__end-ic{ display:grid; place-items:center; width:56px; height:56px; border-radius:50%;
  background:var(--accent-fill); color:var(--on-accent); box-shadow:0 12px 26px color-mix(in srgb, var(--accent) 34%, transparent); }
.hh-card__end-title{ font-size:var(--text-xl); font-weight:600; letter-spacing:-.01em; color:var(--ink); }
.hh-card__end-text{ max-width:30ch; font-size:var(--text-sm); color:var(--ink-2); }
.hh-card__end-btn{ margin-top:var(--space-1); }

/* ---- controls under the deck ---- */
.hh__foot{ display:flex; align-items:center; gap:var(--space-2); width:min(100%, 320px); margin:var(--space-4) auto 0; }
.hh__ctrl{
  display:grid; place-items:center; width:44px; height:44px; flex:none; border-radius:50%;
  border:1px solid var(--line-2); background:var(--card); color:var(--ink); box-shadow:var(--shadow-sm); cursor:pointer;
  transition:transform .15s ease, border-color .15s ease, color .15s ease;
}
.hh__ctrl:hover:not(:disabled){ border-color:var(--accent); color:var(--accent); transform:translateY(-1px); }
.hh__ctrl:disabled{ opacity:.45; cursor:default; }
.hh__count{ margin:0; min-width:4.6em; text-align:center; font-size:var(--text-sm); color:var(--ink-2); font-variant-numeric:tabular-nums; }
.hh__count b{ color:var(--ink); font-weight:600; }
.hh__swipe{ display:inline-flex; align-items:center; gap:6px; min-height:44px; margin-left:auto; font-size:var(--text-sm); font-weight:600; color:var(--link); }
.hh__swipe svg{ transition:transform .15s ease; }
.hh__swipe:hover{ text-decoration:none; }
.hh__swipe:hover svg{ transform:translateX(3px); }

@media (min-width:900px){
  .hh{ max-width:none; height:560px; margin:0; }
  .hh__tile{ position:absolute; top:0; right:0; bottom:60px; left:56px; height:auto; }
  .hh__deck{ position:absolute; left:0; bottom:72px; width:296px; height:284px; margin:0; }
  .hh__foot{ position:absolute; left:0; right:0; bottom:6px; width:auto; margin:0; }
}

@media (prefers-reduced-motion: no-preference){
  .hh__pin.is-new .hh__pin-ring::after{ animation:hh-ping 1.5s cubic-bezier(.2,.7,.3,1) 2; }
  .hh__pin.is-new .hh__pin-label{ animation:hh-label .5s var(--ease-out) both; }
  .hh-card.is-front.is-idle{ animation:hh-breathe 5.5s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce){
  .hh__canvas, .hh__legend{ transition:none; }
}
@keyframes hh-ping{ 0%{ transform:scale(1); opacity:.9; } 100%{ transform:scale(3.2); opacity:0; } }
@keyframes hh-label{ from{ opacity:0; translate:0 6px; } }
@keyframes hh-breathe{ 0%,100%{ translate:0 0; } 50%{ translate:0 -2px; } }

/* ---------------------------------------------------------------------
   Shared motion (js/motion.js)
   --------------------------------------------------------------------- */

/* Staggered children inside a revealed section: each tile rises a beat after the one before. */
@media (prefers-reduced-motion: no-preference){
  .js [data-reveal]:not(.is-in) [data-stagger] > *, .js [data-reveal][data-stagger]:not(.is-in) > *{ opacity:0; }
  .js [data-reveal].is-in [data-stagger] > *, .js [data-reveal][data-stagger].is-in > *{ animation:ynj-rise .7s var(--ease-out) backwards; animation-delay:calc(var(--n, 0) * 45ms + 90ms); }
}
[data-stagger] > :nth-child(2){ --n:1; }  [data-stagger] > :nth-child(3){ --n:2; }  [data-stagger] > :nth-child(4){ --n:3; }
[data-stagger] > :nth-child(5){ --n:4; }  [data-stagger] > :nth-child(6){ --n:5; }  [data-stagger] > :nth-child(7){ --n:6; }
[data-stagger] > :nth-child(8){ --n:7; }  [data-stagger] > :nth-child(9){ --n:8; }  [data-stagger] > :nth-child(10){ --n:9; }
[data-stagger] > :nth-child(11){ --n:10; } [data-stagger] > :nth-child(12){ --n:11; } [data-stagger] > :nth-child(n+13){ --n:12; }
@keyframes ynj-rise{ from{ opacity:0; transform:translateY(16px) scale(.985); } }

/* Tilt + spotlight (fine pointers; the tilt itself is skipped for reduced motion). */
.js [data-tilt].is-tilting{
  transform:perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-2px);
  transition:transform .12s linear, box-shadow .14s ease, border-color .14s ease;
  background-image:radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 11%, transparent), transparent 66%);
  box-shadow:var(--shadow-md);
}

/* Magnetic buttons lean on the individual translate property, so hover lifts still work. */
.js [data-magnetic]{ transition:translate .3s var(--ease-out), transform .12s ease, box-shadow .12s ease, background .12s ease; }

/* Steps filled by the scroll. */
[data-steps].is-stepped > *{ position:relative; overflow:hidden; }
[data-steps].is-stepped > *::before{
  content:""; position:absolute; left:0; right:0; top:0; height:3px;
  background:linear-gradient(90deg, var(--accent), var(--apply));
  transform-origin:left center; transform:scaleX(var(--sp, 0));
}
.home-steps.is-stepped .home-step__n{ transition:background .3s ease, color .3s ease, transform .35s var(--ease-spring), box-shadow .3s ease; }
.home-steps.is-stepped .home-step.is-lit .home-step__n{
  background:var(--accent-fill); color:var(--on-accent); transform:scale(1.06);
  box-shadow:0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

/* Photos drift inside their frames as they cross the screen (CSS scroll timeline, no JS). */
@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    .home-showcase__card img{ scale:1.14; animation:ynj-drift linear both; animation-timeline:view(); animation-range:cover; }
  }
}
@keyframes ynj-drift{ from{ translate:0 -5%; } to{ translate:0 5%; } }

/* Layered parallax objects: depth comes from translate, set by motion.js. */
[data-parallax].is-parallax [data-depth]{ will-change:translate; }

/* ---------------------------------------------------------------------
   /for-agencies: the mock as a 3D object that tells its story once
   --------------------------------------------------------------------- */
.agp-mock[data-parallax]{ perspective:1000px; }
.agp-mock[data-parallax] .agp-mock__card{ transform:rotate(-1.5deg) rotateY(-6deg) rotateX(3deg); transform-style:preserve-3d; }
@media (prefers-reduced-motion: no-preference){
  .agp-mock.is-seq [data-seq-row]{ transition:opacity .45s var(--ease-out), translate .55s var(--ease-spring); }
  .agp-mock.is-seq [data-seq-row]:not(.is-in){ opacity:0; translate:0 10px; }
  .agp-mock.is-seq [data-seq-toast]{ transition:opacity .4s ease, scale .5s var(--ease-spring); }
  .agp-mock.is-seq [data-seq-toast]:not(.is-in){ opacity:0; scale:.9; }
  .agp-mock.is-seq [data-seq-count]{ display:inline-block; min-width:1.4ch; font-variant-numeric:tabular-nums; }
}

/* ---------------------------------------------------------------------
   /employers: the photo in a frame with cards floating in front of it
   --------------------------------------------------------------------- */
.emp-stage{ position:relative; }
/* the photo is a touch larger than its frame, so it can drift inside it */
.emp-stage.is-parallax .emp-hero__media img{ scale:1.07; }
.emp-stage .emp-hero__media--framed{ aspect-ratio:28 / 31; }
.emp-float{
  position:absolute; z-index:2; display:flex; align-items:center; gap:var(--space-3);
  padding:var(--space-3) var(--space-4); border-radius:var(--radius-lg);
  background:color-mix(in srgb, var(--card) 90%, transparent); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border:1px solid var(--line); box-shadow:var(--shadow-lg); color:var(--ink); font-size:var(--text-sm); width:max-content; max-width:min(80%, 300px);
}
.emp-float b{ display:block; font-weight:600; line-height:1.3; color:var(--ink); }
.emp-float b + span{ display:block; margin-top:2px; font-size:var(--text-xs); color:var(--ink-3); }
.emp-float__ic{ display:grid; place-items:center; flex:none; width:36px; height:36px; border-radius:var(--radius);
  background:var(--accent-050); color:var(--accent); }
.emp-float__ic--apply{ background:var(--apply-050); color:var(--apply-text); }
.emp-float--a{ left:-28px; bottom:14%; }
.emp-float--b{ right:-18px; top:9%; }
@media (max-width:640px){
  .emp-stage{ margin:0 var(--space-2); }
  .emp-stage .emp-hero__media{ display:block; aspect-ratio:5 / 4; }
  .emp-float{ max-width:72%; padding:var(--space-2) var(--space-3); }
  .emp-float--a{ left:-8px; bottom:-18px; }
  .emp-float--b{ right:-8px; top:-14px; }
}
@media (prefers-reduced-motion: no-preference){
  .js .emp-float{ animation:emp-in .7s var(--ease-out) backwards; }
  .js .emp-float--a{ animation-delay:.35s; }
  .js .emp-float--b{ animation-delay:.55s; }
}
@keyframes emp-in{ from{ opacity:0; transform:translateY(12px) scale(.96); } }

/* ---------------------------------------------------------------------
   Job page: the slim Apply bar under the site header
   --------------------------------------------------------------------- */
.jobbar{
  position:fixed; left:0; right:0; top:66px; z-index:calc(var(--z-sticky) - 1);
  background:color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter:saturate(180%) blur(12px); backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line); box-shadow:var(--shadow-sm);
  transform:translateY(-110%); opacity:0; pointer-events:none;
  transition:transform .35s var(--ease-out), opacity .25s ease;
}
.jobbar.is-on{ transform:none; opacity:1; pointer-events:auto; }
.jobbar__inner{ display:flex; align-items:center; gap:var(--space-4); max-width:820px; margin:0 auto; padding:var(--space-2) var(--space-5); min-height:60px; }
.jobbar__text{ min-width:0; flex:1; }
.jobbar__title{ margin:0; font-weight:600; font-size:var(--text-sm); color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.jobbar__meta{ margin:0; font-size:var(--text-xs); color:var(--ink-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.jobbar__pay{ color:var(--apply-text); font-weight:700; }
.jobbar .btn{ flex:none; }
@media (prefers-reduced-motion: reduce){
  .jobbar{ transition:opacity .2s ease; transform:none; }
}
/* phones have the apply bar at the bottom of the screen instead */
@media (max-width:640px){ .jobbar{ display:none; } }
/* Notifications — centre + preferences. Namespaced .ntf* to avoid leaks. */

/* ---- Notification centre ---------------------------------------------- */
.ntf{ padding-block:var(--space-8) var(--space-16); max-width:var(--container-narrow); }

.ntf__head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:var(--space-4);
  margin-bottom:var(--space-6);
}
.ntf__title{ font-size:var(--text-2xl); margin:0 0 var(--space-1); }
.ntf__head .muted{ margin:0; }
.ntf__markall{ flex:none; }

.ntf-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:var(--space-2); }

.ntf-item{
  position:relative;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  overflow:hidden; transition:box-shadow .18s ease, transform .18s ease;
}
.ntf-item.is-unread{ border-color:var(--line-2); background:var(--accent-050); }

.ntf-item__link{
  display:flex; align-items:flex-start; gap:var(--space-3);
  padding:var(--space-4) var(--space-5);
  color:inherit; text-decoration:none;
}
a.ntf-item__link:hover{ text-decoration:none; }
.ntf-item:has(a.ntf-item__link:hover){ box-shadow:var(--shadow-md); transform:translateY(-1px); }
a.ntf-item__link:focus-visible{ outline:none; box-shadow:var(--focus-ring); border-radius:var(--radius-lg); }

.ntf-item__icon{
  flex:none; display:flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:var(--radius);
  background:var(--page); border:1px solid var(--line); color:var(--ink-2);
}
.ntf-item.is-unread .ntf-item__icon{ background:var(--card); color:var(--accent); border-color:var(--line-2); }
.ntf-item__icon--message{ color:var(--accent); }
.ntf-item__icon--billing{ color:var(--amber); }
.ntf-item__icon--review{ color:var(--amber); }

.ntf-item__body{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:2px; }
.ntf-item__title{ font-weight:600; color:var(--ink); line-height:1.35; }
.ntf-item.is-unread .ntf-item__title{ font-weight:700; }
.ntf-item__text{
  color:var(--ink-2); font-size:var(--text-sm); line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.ntf-item__time{ color:var(--ink-3); font-size:var(--text-xs); margin-top:var(--space-1); }

.ntf-item__dot{
  flex:none; width:9px; height:9px; margin-top:var(--space-2);
  border-radius:50%; background:var(--accent);
}

.ntf-item__read{ padding:0 var(--space-5) var(--space-4); margin-top:calc(-1 * var(--space-2)); }

/* ---- Preferences ------------------------------------------------------ */
.ntf-prefs{ padding-block:var(--space-8) var(--space-16); max-width:var(--container-narrow); }
.ntf-prefs__head{ margin-bottom:var(--space-6); }
.ntf-prefs__title{ font-size:var(--text-2xl); margin:0 0 var(--space-1); }
.ntf-prefs__head .muted{ margin:0; }

.ntf-prefs__form{ display:flex; flex-direction:column; gap:var(--space-5); }
.ntf-prefs__group{ padding:var(--space-6); border:0; margin:0; }
.ntf-prefs__legend{ font-size:var(--text-lg); font-weight:700; color:var(--ink); padding:0; }
.ntf-prefs__intro{ color:var(--ink-2); font-size:var(--text-sm); margin:var(--space-1) 0 var(--space-4); }

.ntf-toggle{
  display:flex; align-items:center; justify-content:space-between; gap:var(--space-4);
  padding:var(--space-3) 0;
}
.ntf-toggle + .ntf-toggle{ border-top:1px solid var(--line); }
.ntf-toggle__copy{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.ntf-toggle__label{ font-weight:600; color:var(--ink); }
.ntf-toggle__hint{ color:var(--ink-3); font-size:var(--text-sm); }

.ntf-toggle__control{ position:relative; flex:none; width:46px; height:28px; }
.ntf-toggle__control input{
  position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; z-index:1;
}
.ntf-toggle__track{
  position:relative; display:block; width:46px; height:28px; border-radius:var(--radius-pill);
  background:var(--line-2); transition:background .18s ease;
}
.ntf-toggle__track::after{
  content:""; position:absolute; top:3px; left:3px; width:22px; height:22px;
  border-radius:50%; background:var(--card); box-shadow:var(--shadow-sm);
  transition:transform .18s ease;
}
.ntf-toggle__control input:checked + .ntf-toggle__track{ background:var(--accent); }
.ntf-toggle__control input:checked + .ntf-toggle__track::after{ transform:translateX(18px); }
.ntf-toggle__control input:focus-visible + .ntf-toggle__track{ box-shadow:var(--focus-ring); }

.ntf-prefs__field{ margin-top:var(--space-5); }
.ntf-prefs__actions{ display:flex; justify-content:flex-end; }

@media (max-width:640px){
  .ntf__head{ flex-direction:column; align-items:flex-start; }
  .ntf-prefs__actions{ justify-content:stretch; }
  .ntf-prefs__actions .btn{ width:100%; }
}
/* Order by invoice.
   .offer*          partials/sponsor-offer.php: the package cards every placement
                    sells with (built on .plan-grid / .plan-card from app.css).
   .invoice-panel   partials/buy-by-invoice.php: the reassurance panel.
   .ord-*           /employers/sponsorship (order form), /employers/orders/{id}.
   .inv*            the invoice document (customer and admin view), with print.
   .spa-*           additions to /admin/sponsorship (the rest is sponsorship.css).
   Tokens only: no colour literals. Phone first; wider layouts from 768px. */

/* ---- Offer (package cards) ------------------------------------------ */
.offer { display: grid; gap: var(--space-4); min-width: 0; }
.offer__heading { margin: 0; font-size: var(--text-xl); }
.offer__intro { margin: 0; font-size: var(--text-sm); }
.offer__terms { margin: 0; }
.offer__terms a { color: var(--ink-2); text-decoration: underline; }
.offer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.offer-card__pick { display: flex; align-items: flex-start; gap: var(--space-3); min-height: 24px; }
.offer-card__pick input { flex: none; margin-top: 2px; }
.offer-card .plan-card__flag { align-self: flex-start; }
.offer-card .plan-card__cta form { margin: 0; }
.offer-card--free .plan-card__price { color: var(--ink-2); }
.offer--compact .plan-card { padding: var(--space-4); gap: var(--space-2); }
.offer--compact .plan-card__price { font-size: var(--text-2xl); }
.offer--compact .plan-card__desc { font-size: var(--text-xs); }

/* ---- Reassurance panel ------------------------------------------------ */
.invoice-panel {
  display: grid; gap: var(--space-4); padding: var(--space-5);
  background: var(--accent-050); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
}
.invoice-panel__title { margin: 0; font-size: var(--text-xl); }
.invoice-panel__points { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.invoice-panel__points li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); color: var(--ink); }
.invoice-panel__points svg { flex: none; margin-top: 2px; color: var(--apply-text); }
.invoice-panel__vat, .invoice-panel__legal { margin: 0; font-size: var(--text-xs); }
.invoice-panel__person { margin: 0; font-size: var(--text-sm); }
.invoice-panel--compact { padding: var(--space-4); gap: var(--space-3); }

/* ---- Order form on /employers/sponsorship ----------------------------- */
.ord-order { padding-top: 0; scroll-margin-top: 84px; }
.ord-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.ord-form { display: grid; gap: var(--space-8); min-width: 0; }
.ord-step { display: grid; gap: var(--space-4); margin: 0; }
.ord-step__title { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-xl); font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin-bottom: var(--space-2); }
.ord-step__num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  background: var(--accent-050); color: var(--link); font-size: var(--text-sm); font-weight: 600;
}
.ord-step__hint { margin: 0; }
.ord-group { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.ord-group:first-of-type { border-top: 0; padding-top: 0; }
.ord-group__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.ord-group__title { margin: 0; font-size: var(--text-lg); }
.ord-group__text { margin: 0; font-size: var(--text-sm); max-width: 62ch; }
.ord-pick { gap: var(--space-2); }
.ord-pick .plan-card__price { font-size: var(--text-2xl); }
.ord-refs { margin: 0; }
.ord-extra { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); padding: 0 var(--space-4); }
.ord-extra summary { cursor: pointer; padding: var(--space-4) 0; font-weight: 600; font-size: var(--text-sm); min-height: 44px; }
.ord-extra[open] { padding-bottom: var(--space-2); }
.ord-submit { display: grid; gap: var(--space-3); justify-items: start; }
.ord-submit .spn-legal { text-align: left; margin: 0; max-width: 62ch; }
.ord-submit .btn { width: 100%; }
.ord-aside { display: grid; gap: var(--space-5); min-width: 0; }
.ord-sample { display: grid; gap: var(--space-2); }
.ord-sample__title { margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.ord-sample__card {
  display: grid; gap: var(--space-1); justify-items: start; padding: var(--space-4);
  background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius);
}
.ord-sample__job { margin: var(--space-1) 0 0; font-weight: 600; color: var(--ink); }
.ord-sample__meta { margin: 0; font-size: var(--text-sm); }
.ord-enquiry { border-top: 1px solid var(--line); padding-top: var(--space-12); }
.ord-agree { align-items: flex-start; }
.ord-agree input { flex: none; margin-top: 2px; }

/* ---- Order page -------------------------------------------------------- */
.ord-page { padding: var(--space-6) 0 var(--space-16); }
.ord-head { margin-bottom: var(--space-6); }
.ord-head h1 { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
.ord-head .lead { margin-bottom: var(--space-3); }
.ord-head__status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: 0; font-size: var(--text-sm); }
.ord-pill { display: inline-flex; align-items: center; padding: .2rem .7rem; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); }
.ord-pill--wait { background: var(--amber-050); border-color: var(--amber); }
.ord-pill--ok, .ord-pill--live { background: var(--apply-050); border-color: var(--apply); color: var(--apply-text); }
.ord-pill--muted { color: var(--ink-2); }
.ord-card { padding: var(--space-5); margin-bottom: var(--space-4); }
.ord-card:hover { transform: none; box-shadow: none; }
.ord-card h2 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.ord-card--pay { border-color: var(--accent); }
.ord-facts { display: grid; gap: var(--space-3); margin: 0; }
.ord-facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.ord-facts dt { font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); }
.ord-facts dd { margin: 0; font-size: var(--text-sm); color: var(--ink); overflow-wrap: anywhere; }
.ord-facts--bank { padding: var(--space-4); background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--space-3); font-variant-numeric: tabular-nums; }
.ord-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.ord-pre { white-space: pre-wrap; }
.ord-price { width: 100%; border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.ord-price th { text-align: left; font-weight: 500; color: var(--ink-2); padding: var(--space-2) var(--space-3) var(--space-2) 0; }
.ord-price td { text-align: right; white-space: nowrap; padding: var(--space-2) 0; color: var(--ink); }
.ord-price__total th, .ord-price__total td { border-top: 1px solid var(--line-2); font-weight: 600; font-size: var(--text-base); color: var(--ink); }
.ord-next { margin-top: 0; }
.ord-next li { align-items: flex-start; font-weight: 500; }
.ord-next svg { margin-top: 2px; }
.ord-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.ord-actions--foot { margin: var(--space-6) 0 var(--space-4); }
.ord-help { font-size: var(--text-sm); margin: 0; }
.ord-legal { display: block; margin-top: var(--space-2); font-size: var(--text-xs); }
.ord-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.ord-toolbar__hint { margin: 0; font-size: var(--text-sm); }

/* ---- Invoice document --------------------------------------------------- */
.inv {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: var(--space-5); color: var(--ink); font-size: var(--text-sm); line-height: 1.5;
}
.inv p { margin: 0; }
.inv__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line-2); }
.inv__brand { font-size: var(--text-xl); font-weight: 600; letter-spacing: -.03em; margin-bottom: var(--space-2); }
.inv__brand b { color: var(--accent); font-weight: 600; }
.inv__brand span { font-weight: 400; color: var(--ink-2); }
.inv__seller-name { font-weight: 600; }
.inv__seller p { color: var(--ink-2); }
.inv__seller p.inv__seller-name, .inv__seller p.inv__brand { color: var(--ink); }
.inv__title { font-size: var(--text-2xl); margin: 0 0 var(--space-3); }
.inv__facts { display: grid; gap: var(--space-2); margin: 0; font-variant-numeric: tabular-nums; }
.inv__facts > div { display: flex; justify-content: space-between; gap: var(--space-4); }
.inv__facts dt { color: var(--ink-2); }
.inv__facts dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.inv__stamp { display: inline-block; margin-top: var(--space-3); padding: .25rem .8rem; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--text-xs); border: 1px solid var(--line-2); }
.inv__stamp--paid { background: var(--apply-050); border-color: var(--apply); color: var(--apply-text); }
.inv__stamp--void { background: var(--red-050); border-color: var(--red); color: var(--red-strong); }
.inv__billto { padding: var(--space-5) 0; }
.inv__billto h2, .inv__pay h2 { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: 0 0 var(--space-2); }
.inv__billto-name { font-weight: 600; }
.inv__table-wrap { overflow-x: auto; }
.inv__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.inv__table th, .inv__table td { padding: var(--space-3) var(--space-2); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.inv__table thead th { font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.inv__table .inv__num { text-align: right; white-space: nowrap; }
.inv__table tfoot th { text-align: right; font-weight: 500; color: var(--ink-2); }
.inv__table tfoot td, .inv__table tfoot th { border-bottom: 0; padding-top: var(--space-2); padding-bottom: var(--space-2); }
.inv__table .inv__total th, .inv__table .inv__total td { border-top: 1px solid var(--line-2); font-weight: 600; font-size: var(--text-base); color: var(--ink); }
.inv__detail { display: block; color: var(--ink-2); font-size: var(--text-xs); margin-top: 2px; }
.inv__pay { margin-top: var(--space-5); padding: var(--space-4); background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); }
.inv__facts--bank { max-width: 360px; }
.inv__foot { margin-top: var(--space-4); font-weight: 500; }
.inv__small { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--ink-2); }

/* ---- Admin additions ------------------------------------------------------ */
.spa-stats { margin-bottom: var(--space-5); }
.spa-sources { margin-bottom: var(--space-5); }
.spa-sources summary { cursor: pointer; font-weight: 600; font-size: var(--text-sm); min-height: 32px; }
.spa-sources .admin-table-wrap { margin-top: var(--space-3); }
.spa-seller-note { margin: 0 0 var(--space-5); max-width: 90ch; }
.spa-order { border-color: var(--accent); }
.spa-plan { margin-bottom: var(--space-2); font-weight: 600; }
.spa-oneclick { margin-top: var(--space-3); }
.spa-invoice-actions { margin-top: var(--space-4); }
.spa-void, .spa-reminder, .spa-billing { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.spa-billing summary { cursor: pointer; font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-3); }
.spa-billing-facts { margin-top: var(--space-4); }
.spa-pre { white-space: pre-wrap; }

/* ---- Wider screens -------------------------------------------------------- */
@media (min-width: 768px) {
  .ord-submit .btn { width: auto; }
  .ord-card { padding: var(--space-6); }
  .ord-facts > div { grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-4); }
  .ord-facts dt { font-size: var(--text-sm); font-weight: 500; }
  .inv { padding: var(--space-10); }
  .inv__head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .invoice-panel { padding: var(--space-6); }
}
@media (min-width: 900px) {
  .ord-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--space-10); }
  .ord-aside { position: sticky; top: 90px; }
}

/* ---- Print: the order or the invoice, nothing else --------------------------- */
@media print {
  body.page-order > *:not(main) { display: none !important; }
  body.page-order { background: none; }
  body.page-order main { padding: 0; }
  .ord-page { padding: 0; }
  .ord-page .container { max-width: none; padding: 0; }
  .ord-toolbar, .ord-actions, .ord-card--form, .ord-help a[href^="/contact"], [data-print] { display: none !important; }
  .ord-card, .inv { border: 0; box-shadow: none; padding: 0; margin-bottom: var(--space-5); break-inside: avoid; }
  .ord-card--pay { border: 1px solid var(--line-2); padding: var(--space-4); }
  .inv__pay { break-inside: avoid; }
  .ord-page a { color: inherit; text-decoration: none; }
}
/* /admin/outreach (.otr-*): agency outreach, its campaigns and contacts, and the
   public unsubscribe page. Builds on the back-office pieces (.admin-head,
   .admin-card, .admin-table). Auto-loaded by the layout glob, so every rule is
   namespaced. Tokens only: the dark theme remaps them, so nothing here needs a
   dark rule of its own. Text on a solid colour uses var(--card), which is white
   in the light theme and near-black in the dark one, so it reads in both. */

.otr-muted { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.otr-empty { margin: 0; padding: var(--space-2) 0; font-size: var(--text-sm); color: var(--ink-3); }
.otr-sub { display: block; margin-top: 2px; font-size: var(--text-xs); color: var(--ink-3); }
.otr-nowrap { white-space: nowrap; }
.otr-h3 { margin: var(--space-5) 0 var(--space-3); font-size: var(--text-base); }
.otr-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.otr-note { margin: var(--space-3) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--page); font-size: var(--text-sm); color: var(--ink); }
.otr-note--warn { background: var(--amber-050); border-color: var(--amber); }
.otr-note--bad { background: var(--red-050); border-color: var(--red); margin: 0 0 var(--space-5); }
.otr-note-center { max-width: 56ch; margin: 0 auto; }
.otr-error { margin: var(--space-1) 0 0; font-size: var(--text-xs); font-weight: 600; color: var(--red-strong); }
.otr-btn-danger { border-color: var(--red); color: var(--red-strong); }
.otr-btn-danger:hover { background: var(--red-050); }
/* Card heads wrap on narrow screens instead of squeezing the title into a column. */
.otr-cardhead { flex-wrap: wrap; row-gap: var(--space-2); }
.otr-cardhead > h2 { flex: 1 1 auto; min-width: min(100%, 14rem); }
.otr-flush { margin: 0 calc(-1 * var(--space-2)); border: 0; border-radius: 0; background: transparent; }
.otr-flush .admin-table th, .otr-flush .admin-table td { padding: var(--space-3); }
.otr-flush .admin-table th.admin-num { text-align: right; }

/* ---- Stopped banner -------------------------------------------------------- */
.otr-stopped {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4);
  margin-bottom: var(--space-5); padding: var(--space-5) var(--space-6);
  background: var(--red-050); border: 1px solid var(--red); border-radius: var(--radius-lg);
}
.otr-stopped h2 { margin: var(--space-2) 0 var(--space-1); font-size: var(--text-xl); }
.otr-stopped p { margin: 0; font-size: var(--text-sm); color: var(--ink); }
.otr-stopped__badge {
  display: inline-block; padding: 2px var(--space-3); border-radius: var(--radius-pill);
  background: var(--red); color: var(--card); font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

/* ---- Sending health -------------------------------------------------------- */
/* Flex, not grid: when five checks do not fit on one row, the last row's cards
   stretch to fill it instead of leaving a hole. */
.otr-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.otr-check { flex: 1 1 172px; display: flex; gap: var(--space-3); min-width: 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--page); }
.otr-check__dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 5px; border-radius: var(--radius-pill); background: var(--skip); }
.otr-check--ok .otr-check__dot { background: var(--apply); }
.otr-check--warn .otr-check__dot { background: var(--amber); }
.otr-check--bad { background: var(--red-050); border-color: var(--red); }
.otr-check--bad .otr-check__dot { background: var(--red); }
.otr-check__body { min-width: 0; }
.otr-check__label { margin: 0; font-size: var(--text-xs); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); }
.otr-check__value { margin: 2px 0 0; font-size: var(--text-base); font-weight: 700; color: var(--ink); }
.otr-check__note { margin: var(--space-1) 0 0; font-size: var(--text-xs); line-height: 1.45; color: var(--ink-2); overflow-wrap: break-word; }

/* ---- Pacing ---------------------------------------------------------------- */
.otr-chip { display: inline-flex; align-items: center; gap: var(--space-2); padding: 2px var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--line-2); background: var(--page); font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.otr-chip--open { background: var(--apply-050); border-color: var(--apply-050); color: var(--apply-text); }
.otr-pace__top { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-3); }
.otr-pace__big { margin: 0; font-size: var(--text-lg); color: var(--ink-2); }
.otr-pace__big strong { font-size: var(--text-3xl); font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.otr-pace__queue { margin: var(--space-4) 0 0; font-size: var(--text-sm); color: var(--ink); }
.otr-meter { display: block; flex: 1 1 240px; height: 10px; overflow: hidden; border-radius: var(--radius-pill); background: var(--line); }
.otr-meter svg { display: block; width: 100%; height: 100%; }
.otr-meter__fill { fill: var(--accent); }

.otr-chart { margin: var(--space-5) 0 0; }
.otr-chart-empty { margin-top: var(--space-4); padding: var(--space-4); border: 1px dashed var(--line-2); border-radius: var(--radius); text-align: center; }
.otr-chart__svg { display: block; width: 100%; height: 160px; border-bottom: 1px solid var(--line-2); }
.otr-chart__bar { fill: var(--accent-050); stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.otr-chart__bar--today { fill: var(--accent); }
.otr-chart__limit { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.otr-chart__axis { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); margin-top: var(--space-2); font-size: var(--text-xs); color: var(--ink-3); }
.otr-chart__key { display: inline-flex; align-items: center; gap: var(--space-2); }
.otr-key { display: inline-block; width: 18px; height: 0; border-top: 2px dashed var(--amber); }

/* ---- Tiles ----------------------------------------------------------------- */
.otr-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-5); }
.otr-tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.otr-tile { min-width: 0; padding: var(--space-4) var(--space-5); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.otr-tile__label { margin: 0; font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); }
.otr-tile__value { margin: var(--space-1) 0 0; font-size: var(--text-2xl); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.otr-tile__sub { margin: var(--space-1) 0 0; font-size: var(--text-xs); color: var(--ink-3); }

/* ---- Status pills ------------------------------------------------------------ */
.otr-pill { display: inline-block; padding: 2px var(--space-2); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; border: 1px solid var(--line-2); background: var(--page); color: var(--ink-2); }
.otr-pill--approved, .otr-pill--queued, .otr-pill--pending { background: var(--accent-050); border-color: var(--accent-050); color: var(--link); }
.otr-pill--sending { background: var(--accent); border-color: var(--accent); color: var(--card); }
.otr-pill--sent, .otr-pill--done { background: var(--apply-050); border-color: var(--apply-050); color: var(--apply-text); }
.otr-pill--paused { background: var(--amber-050); border-color: var(--amber); color: var(--ink); }
.otr-pill--failed, .otr-pill--cancelled { background: var(--red-050); border-color: var(--red-050); color: var(--red-strong); }

/* ---- Forms ------------------------------------------------------------------- */
.otr-form { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.otr-form--tight { gap: var(--space-3); margin-top: var(--space-3); }
.otr-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); }
.otr-field { min-width: 0; }
.otr-field--wide { grid-column: span 2; }
.otr-field label, .otr-legend { display: block; margin-bottom: var(--space-1); font-size: var(--text-xs); font-weight: 600; color: var(--ink-2); }
.otr-legend { padding: 0; }
.otr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.otr-suffix { display: flex; align-items: center; gap: var(--space-2); }
.otr-suffix .form-input { max-width: 110px; }
.otr-suffix span { font-size: var(--text-sm); color: var(--ink-2); }

.otr-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin: 0; padding: 0; border: 0; }
.otr-choices .otr-legend { grid-column: 1 / -1; }
.otr-choice { position: relative; display: flex; gap: var(--space-3); min-width: 0; padding: var(--space-4) var(--space-5); border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--card); cursor: pointer; }
.otr-choice:hover { border-color: var(--accent); }
.otr-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-050); box-shadow: inset 0 0 0 1px var(--accent); }
.otr-choice input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--accent); }
.otr-choice input:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.otr-choice__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.otr-choice__title { font-weight: 700; color: var(--ink); }
.otr-choice__desc { font-size: var(--text-sm); color: var(--ink-2); }
.otr-choice__size { margin: var(--space-2) 0 var(--space-1); font-size: var(--text-sm); color: var(--ink); }
.otr-choice__subj { font-size: var(--text-xs); line-height: 1.45; color: var(--ink-3); overflow-wrap: break-word; }

.otr-radios { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.otr-radio { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-sm); color: var(--ink); }
.otr-radio input { accent-color: var(--accent); }
.otr-when { width: auto; max-width: 240px; padding: .4rem .6rem; font-size: var(--text-sm); }
.otr-confirm { max-width: 180px; font-variant-numeric: tabular-nums; }
.otr-status { margin: var(--space-4) 0 0; padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--text-sm); color: var(--ink-2); }
.otr-status--ok { color: var(--apply-text); font-weight: 600; }

/* ---- Lower sections ------------------------------------------------------------ */
.otr-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.otr-two > .admin-card { margin-bottom: var(--space-5); }
.otr-legal p { margin: 0 0 var(--space-3); max-width: 80ch; font-size: var(--text-sm); line-height: 1.6; color: var(--ink); }
.otr-legal__list { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); font-size: var(--text-sm); line-height: 1.55; color: var(--ink-2); }
.otr-reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.otr-reasons li { display: inline-flex; align-items: center; gap: var(--space-2); padding: 2px var(--space-3); border: 1px solid var(--line-2); border-radius: var(--radius-pill); font-size: var(--text-xs); color: var(--ink-2); }
.otr-reasons strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.otr-latest { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.otr-latest li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--text-sm); }
.otr-latest__email { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.otr-latest .otr-muted { font-size: var(--text-xs); }
.otr-details { margin-top: var(--space-4); }
.otr-details > summary { cursor: pointer; font-size: var(--text-sm); font-weight: 600; color: var(--link); }
.otr-details > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.otr-details--inline { margin-top: 0; text-align: right; }
.otr-details--inline[open] { text-align: left; }
.otr-pager { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-4); }
.otr-cancel { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.otr-cancel > summary { cursor: pointer; font-size: var(--text-sm); font-weight: 600; color: var(--red-strong); }

/* ---- Campaign: steps ------------------------------------------------------------ */
.otr-steps { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); counter-reset: none; }
.otr-step { display: flex; align-items: center; gap: var(--space-3); min-width: 0; padding: var(--space-3) var(--space-4); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.otr-step__n { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--radius-pill); border: 1px solid var(--line-2); font-size: var(--text-sm); font-weight: 700; color: var(--ink-3); }
.otr-step__text { display: flex; flex-direction: column; min-width: 0; }
.otr-step__label { font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.otr-step__sub { font-size: var(--text-xs); color: var(--ink-3); overflow-wrap: break-word; }
.otr-step.is-done .otr-step__n { background: var(--apply); border-color: var(--apply); color: var(--card); }
.otr-step.is-current { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-050); }
.otr-step.is-current .otr-step__n { background: var(--accent); border-color: var(--accent); color: var(--card); }

/* ---- Campaign: list, progress, report -------------------------------------------- */
.otr-list__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-6); align-items: start; }
.otr-list__big { margin: 0; font-size: var(--text-4xl); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.otr-list .otr-h3 { margin-top: 0; }
.otr-stats { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.otr-stats li { display: flex; align-items: baseline; gap: var(--space-2); }
.otr-stats__n { font-size: var(--text-xl); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.otr-stats__l { font-size: var(--text-sm); color: var(--ink-2); }

.otr-bar { display: inline-block; width: 100%; height: 8px; overflow: hidden; vertical-align: middle; background: var(--line); border-radius: var(--radius-pill); }
.otr-bar svg { display: block; width: 100%; height: 100%; }
.otr-bar__fill { fill: var(--accent); }
.otr-bar--alt .otr-bar__fill { fill: var(--apply); }
.otr-bar--deep .otr-bar__fill { fill: var(--accent-strong); }
.otr-bar--muted .otr-bar__fill { fill: var(--ink-faint); }
.otr-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.otr-bars li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 4.5em; align-items: center; gap: var(--space-3); font-size: var(--text-sm); }
.otr-bars__label { overflow-wrap: break-word; line-height: 1.3; color: var(--ink); }
.otr-bars__n { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

.otr-funnel { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: var(--space-5); }
.otr-funnel__name { margin: 0 0 var(--space-2); font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.otr-funnel__name .otr-muted { display: inline; font-size: var(--text-sm); font-weight: 400; }
.otr-funnel__bar { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 4.5em 3.5em; align-items: center; gap: var(--space-3); margin-top: var(--space-2); font-size: var(--text-sm); }
.otr-funnel__label { line-height: 1.3; color: var(--ink-2); }
.otr-funnel__n { text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.otr-funnel__pct { text-align: right; font-size: var(--text-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.otr-table-num td .otr-muted { display: inline; font-size: var(--text-xs); }
.otr-total th, .otr-total td { font-weight: 700; border-top: 1px solid var(--line-2); }

/* ---- Campaign: preview ------------------------------------------------------------ */
.otr-search { display: flex; gap: var(--space-2); }
.otr-search .form-input { width: 220px; padding: .45rem .7rem; font-size: var(--text-sm); }
.otr-found { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-1); font-size: var(--text-sm); }
.otr-found .otr-muted { display: inline; font-size: var(--text-xs); }
.otr-preview__as { margin: 0 0 var(--space-3); font-size: var(--text-sm); color: var(--ink-2); }
.otr-subjects { margin: 0 0 var(--space-4); display: grid; gap: var(--space-2); }
.otr-subjects__row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--space-3); align-items: baseline; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); }
.otr-subjects__row.is-theirs { border-color: var(--accent); background: var(--accent-050); }
.otr-subjects dt { font-size: var(--text-xs); font-weight: 700; color: var(--ink-2); }
.otr-subjects dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: break-word; }
.otr-tag { display: inline-block; margin-left: var(--space-1); padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--accent); color: var(--card); font-size: var(--text-xs); font-weight: 600; }

.otr-preview__grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-5); align-items: start; }
.otr-device { display: flex; flex-wrap: wrap; gap: var(--space-1); min-width: 0; }
.otr-device__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.otr-device__opt { padding: var(--space-1) var(--space-4); border: 1px solid var(--line-2); border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--ink-2); cursor: pointer; }
.otr-device__input:checked + .otr-device__opt { background: var(--accent-050); border-color: var(--accent); color: var(--link); font-weight: 600; }
.otr-device__input:focus-visible + .otr-device__opt { box-shadow: var(--focus-ring); }
.otr-frame { flex: 0 0 100%; margin-top: var(--space-2); padding: var(--space-3); background: var(--page); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.otr-frame__iframe { display: block; width: 100%; max-width: 680px; height: 920px; margin: 0 auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); transition: max-width .2s ease; }
#otr-dev-phone:checked ~ .otr-frame .otr-frame__iframe { max-width: 390px; }
.otr-facts { min-width: 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--page); }
.otr-facts .otr-h3 { margin-top: 0; }
.otr-facts dl { margin: 0; display: grid; gap: var(--space-3); }
.otr-facts dt { font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); }
.otr-facts dd { margin: 2px 0 0; font-size: var(--text-sm); color: var(--ink); overflow-wrap: break-word; }
.otr-facts dd .otr-muted { display: block; font-size: var(--text-xs); }
.otr-pre { max-height: 420px; overflow: auto; margin: var(--space-3) 0 0; padding: var(--space-3); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--text-xs); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }

/* ---- Campaign: recipients filter ---------------------------------------------------- */
.otr-filter { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius-pill); }
.otr-filter__opt { padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--ink-2); white-space: nowrap; }
.otr-filter__opt:hover { background: var(--page); color: var(--ink); text-decoration: none; }
.otr-filter__opt.is-active { background: var(--accent-050); color: var(--link); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }

/* ---- Public unsubscribe page ---------------------------------------------------------- */
.otr-unsub__box { max-width: 640px; text-align: center; }
.otr-unsub__form { margin: var(--space-6) 0 var(--space-3); }
.otr-unsub__small { margin: 0; font-size: var(--text-sm); color: var(--ink-3); }
.otr-unsub__back { margin-top: var(--space-8); }

/* ---- Narrower screens ------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .otr-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .otr-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .otr-preview__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .otr-two, .otr-list__grid, .otr-choices { grid-template-columns: minmax(0, 1fr); }
  .otr-field--wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .otr-steps { grid-template-columns: minmax(0, 1fr); }
  .otr-check { flex-basis: 100%; }
  .otr-tiles, .otr-tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .otr-tile { padding: var(--space-3) var(--space-4); }
  .otr-tile__value { font-size: var(--text-xl); }
  .otr-stopped { padding: var(--space-4); }
  .otr-pace__big strong { font-size: var(--text-2xl); }
  .otr-chart__svg { height: 130px; }
  .otr-bars li { grid-template-columns: minmax(0, 1fr) 3.5em; }
  .otr-bars li .otr-bar { display: none; }
  .otr-funnel__bar { grid-template-columns: minmax(0, 1fr) 4em 3em; }
  .otr-funnel__bar .otr-bar { grid-column: 1 / -1; grid-row: 2; }
  .otr-subjects__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .otr-search { width: 100%; }
  .otr-search .form-input { flex: 1 1 auto; width: auto; }
  .otr-frame { padding: var(--space-2); }
  .otr-frame__iframe { height: 760px; }
  .otr-filter { display: flex; width: 100%; }
  .otr-filter__opt { flex: 1 1 auto; text-align: center; }
}
/* Pay guide (/pay, /pay/{role}, /pay/{role}/{town}) and open data (/uk-jobs-in-numbers).
   Phone first: one column, tables scroll sideways inside their own box, 44px targets.
   Colours, spacing and type come from the tokens in app.css; nothing here names a colour. */

.pay-hero{ padding:var(--space-8) 0 var(--space-6); border-bottom:1px solid var(--line); background:var(--card); }
.pay-hero .breadcrumb{ margin-bottom:var(--space-4); }
.pay-hero h1{ font-size:var(--text-2xl); line-height:1.15; margin:0 0 var(--space-4); max-width:24ch; }
.pay-answer{ font-size:var(--text-lg); line-height:1.5; color:var(--ink); max-width:62ch; margin:0 0 var(--space-3);
  padding-left:var(--space-4); border-left:4px solid var(--accent); }
.pay-asof{ font-size:var(--text-sm); color:var(--ink-2); max-width:62ch; margin:0 0 var(--space-2); }
.pay-asof a, .pay-note a, .pay-section__intro a{ color:var(--link); text-decoration:underline; }
.pay-flag{ font-size:var(--text-sm); color:var(--ink); background:var(--amber-050); border:1px solid var(--amber);
  border-radius:var(--radius-sm); padding:var(--space-3) var(--space-4); max-width:62ch; margin:0 0 var(--space-3); }

.pay-body{ padding-top:var(--space-8); padding-bottom:var(--space-12); }
.pay-section{ margin:0 0 var(--space-10); }
.pay-section > h2{ font-size:var(--text-xl); margin:0 0 var(--space-3); }
.pay-section > p{ color:var(--ink-2); max-width:68ch; }
.pay-section > p a{ color:var(--link); text-decoration:underline; }
.pay-section__intro{ color:var(--ink-2); margin:0 0 var(--space-4); max-width:68ch; }
.pay-note{ font-size:var(--text-sm); color:var(--ink-2); max-width:68ch; margin:var(--space-3) 0 var(--space-8); }

/* The four figures. */
.pay-stats{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--space-3); margin:0 0 var(--space-5); }
.pay-stats__item{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:var(--space-4); min-width:0; }
.pay-stats__item dt{ font-size:var(--text-xs); color:var(--ink-2); margin:0 0 var(--space-1); }
.pay-stats__item dd{ margin:0; font-size:var(--text-xl); font-weight:700; color:var(--ink); line-height:1.2; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.pay-stats__item dd span{ font-size:var(--text-sm); font-weight:500; color:var(--ink-2); }
.pay-stats__item--main{ grid-column:1 / -1; border-color:var(--accent); background:var(--accent-050); }
.pay-stats__item--main dd{ font-size:var(--text-3xl); }

/* The middle half as a bar. */
.pay-bar{ margin:0 0 var(--space-5); background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:var(--space-4); }
.pay-bar__svg{ display:block; width:100%; height:auto; max-height:120px; }
.pay-bar__axis{ stroke:var(--line-2); stroke-width:2; stroke-linecap:round; }
.pay-bar__band{ fill:var(--accent-050); stroke:var(--accent); stroke-width:1.5; }
.pay-bar__median{ stroke:var(--accent-strong); stroke-width:4; stroke-linecap:round; }
.pay-bar__mark{ stroke-width:2; stroke-dasharray:4 4; stroke-linecap:round; }
.pay-bar__mark--0{ stroke:var(--apply-text); }
.pay-bar__mark--1{ stroke:var(--amber); }
.pay-bar__text{ font-size:13px; fill:var(--ink-2); font-family:var(--font-sans); font-variant-numeric:tabular-nums; }
.pay-bar__text--strong{ font-weight:700; fill:var(--ink); }
.pay-bar__key{ display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-5); margin-top:var(--space-3); font-size:var(--text-xs); color:var(--ink-2); }
.pay-bar__keyitem{ display:inline-flex; align-items:center; gap:var(--space-2); }
.pay-bar__swatch{ display:inline-block; width:18px; height:10px; border-radius:3px; flex:none; }
.pay-bar__swatch--band{ background:var(--accent-050); border:1.5px solid var(--accent); }
.pay-bar__swatch--median{ width:4px; height:14px; background:var(--accent-strong); }
.pay-bar__swatch--mark0{ height:0; border-top:2px dashed var(--apply-text); border-radius:0; }
.pay-bar__swatch--mark1{ height:0; border-top:2px dashed var(--amber); border-radius:0; }

/* Tables: real tables, so they can be read, copied and crawled. */
.pay-table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); }
.pay-table{ width:100%; border-collapse:collapse; font-size:var(--text-sm); min-width:520px; }
.pay-table caption{ caption-side:bottom; text-align:left; font-size:var(--text-xs); color:var(--ink-3); padding:var(--space-3) var(--space-4); border-top:1px solid var(--line); }
.pay-table th, .pay-table td{ padding:var(--space-3) var(--space-4); text-align:left; border-bottom:1px solid var(--line); vertical-align:middle; }
.pay-table thead th{ font-size:var(--text-xs); font-weight:600; color:var(--ink-2); background:var(--page); white-space:nowrap; }
.pay-table tbody th{ font-weight:600; color:var(--ink); }
.pay-table tbody th a{ color:var(--link); text-decoration:underline; display:inline-block; padding:var(--space-2) 0; }
.pay-table tbody tr:last-child th, .pay-table tbody tr:last-child td{ border-bottom:0; }
.pay-table .pay-table__num{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.pay-table__strong{ font-weight:700; color:var(--ink); }

/* Areas quoted but not ranked. */
.pay-chips{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-2); }
.pay-chips a{ display:inline-flex; flex-direction:column; min-height:44px; justify-content:center; padding:var(--space-2) var(--space-4);
  background:var(--card); border:1px solid var(--line-2); border-radius:var(--radius); color:var(--ink); font-weight:600; font-size:var(--text-sm); }
.pay-chips a span{ font-weight:400; font-size:var(--text-xs); color:var(--ink-2); }
.pay-chips a:hover{ border-color:var(--accent); }
.pay-chips a:focus-visible{ outline:none; box-shadow:var(--focus-ring); }

.pay-next{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-3) var(--space-5); margin:0 0 var(--space-10); }
.pay-next .btn{ flex:1 1 100%; justify-content:center; text-align:center; }
.pay-next__link{ color:var(--link); text-decoration:underline; font-weight:600; min-height:44px; display:inline-flex; align-items:center; }

/* Questions, in the open. */
.pay-faq__item{ padding:var(--space-4) 0; border-top:1px solid var(--line); }
.pay-faq__item:last-child{ border-bottom:1px solid var(--line); }
.pay-faq__item h3{ font-size:var(--text-base); margin:0 0 var(--space-2); }
.pay-faq__item p{ margin:0; color:var(--ink-2); max-width:72ch; }

/* Method and reuse. */
.pay-method__list{ margin:0 0 var(--space-4); padding-left:var(--space-5); color:var(--ink-2); max-width:72ch; }
.pay-method__list li{ margin-bottom:var(--space-2); }
.pay-method__stamp{ font-size:var(--text-sm); color:var(--ink-3); }
.pay-reuse{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-5); }
.pay-reuse > h2{ margin-top:0; }
.pay-reuse p{ max-width:72ch; }
.pay-reuse a{ color:var(--link); text-decoration:underline; }
.pay-reuse__label{ display:block; font-size:var(--text-xs); font-weight:600; color:var(--ink-3); margin-bottom:var(--space-1); }
.pay-reuse__credit{ display:block; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:var(--text-sm); color:var(--ink);
  background:var(--page); border:1px solid var(--line); border-radius:var(--radius-sm); padding:var(--space-3); overflow-wrap:anywhere; user-select:all; }

/* The employer panel. */
.pay-employer{ display:grid; gap:var(--space-5); background:var(--accent-050); border:1px solid var(--accent); border-radius:var(--radius-lg);
  padding:var(--space-6) var(--space-5); margin:0 0 var(--space-10); }
.pay-employer__eyebrow{ font-size:var(--text-xs); font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--link); margin:0 0 var(--space-2); }
.pay-employer h2{ font-size:var(--text-xl); margin:0 0 var(--space-3); }
.pay-employer p{ color:var(--ink-2); margin:0 0 var(--space-2); max-width:62ch; }
.pay-employer__actions{ display:flex; flex-direction:column; gap:var(--space-3); }
.pay-employer__actions .btn{ justify-content:center; text-align:center; }
.pay-employer__alt{ background:var(--card); border-color:var(--line-2); color:var(--ink); }
.pay-employer__alt:hover{ border-color:var(--accent); }

.page-pay .alert-cta{ margin-bottom:var(--space-10); }

@media (min-width:768px){
  .pay-hero{ padding:var(--space-12) 0 var(--space-8); }
  .pay-hero h1{ font-size:var(--text-3xl); max-width:28ch; }
  .pay-stats{ grid-template-columns:1.4fr repeat(3, minmax(0, 1fr)); }
  .pay-stats__item--main{ grid-column:auto; }
  .pay-next .btn{ flex:0 0 auto; }
  .pay-employer{ grid-template-columns:minmax(0, 1fr) auto; align-items:center; padding:var(--space-8); }
  .pay-employer__actions{ min-width:240px; }
}

/* The badge for other sites: a preview and the snippet to copy. */
.pay-badge__img{ display:block; max-width:100%; height:auto; margin:0 0 var(--space-4); }
.pay-badge__label{ display:block; font-size:var(--text-xs); font-weight:600; color:var(--ink-3); margin-bottom:var(--space-1); }
.pay-badge__code{ display:block; width:100%; min-height:5.5rem; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:var(--text-base);
  color:var(--ink); background:var(--card); border:1px solid var(--line-2); border-radius:var(--radius-sm); padding:var(--space-3); resize:vertical; }
.pay-badge__code:focus{ outline:none; box-shadow:var(--focus-ring); border-color:var(--accent); }
/* =====================================================================
   Christmas peak: the /christmas-jobs hub, its lane and town pages, and the
   seasonal home banner. Festive through the token palette only (accent, red,
   apply green, amber), so it follows light and dark mode with the rest of the
   site. Every motion here sits behind prefers-reduced-motion.
   ===================================================================== */

/* Scene colours the tokens do not have, mixed from tokens (also read by peak-scene.js). */
:root{
  --scene-night: color-mix(in srgb, var(--ink) 86%, var(--accent));
  --scene-skin: color-mix(in srgb, var(--amber-050) 72%, var(--red-050));
  --scene-parcel: color-mix(in srgb, var(--amber) 52%, var(--card));
}

/* ---- Falling snow (decorative): SVG flakes, a canvas once peak.js runs ---- */
.peak-hero__snow, .peak-banner__snow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.peak-flake { position: absolute; top: -10%; width: 22px; height: 22px; color: var(--red); opacity: .16; }
.peak-flake:nth-child(1) { left: 6%;  width: 18px; }
.peak-flake:nth-child(2) { left: 22%; width: 28px; top: 30%; color: var(--apply); }
.peak-flake:nth-child(3) { left: 48%; width: 14px; top: 8%; }
.peak-flake:nth-child(4) { left: 64%; width: 24px; top: 55%; color: var(--apply); }
.peak-flake:nth-child(5) { left: 78%; width: 32px; top: 12%; color: var(--amber); }
.peak-flake:nth-child(6) { left: 90%; width: 16px; top: 62%; }
.peak-flake:nth-child(7) { left: 36%; width: 20px; top: 74%; color: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .peak-flake { animation: peak-drift 14s ease-in-out infinite alternate; }
  .peak-flake:nth-child(2n) { animation-duration: 18s; animation-delay: -6s; }
  .peak-flake:nth-child(3n) { animation-duration: 22s; animation-delay: -11s; }
}
@keyframes peak-drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to   { transform: translate3d(14px, 46px, 0) rotate(120deg); }
}
.peak-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); opacity: .5; }
.peak-hero__snow.is-snowing .peak-flake { display: none; }

/* ---- Hero: copy on the left, the loading bay on the right ---- */
.peak-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 90% at 92% -10%, var(--red-050), transparent 62%),
    radial-gradient(60% 80% at 4% 110%, var(--apply-050), transparent 60%),
    radial-gradient(50% 60% at 75% 60%, var(--accent-050), transparent 70%),
    linear-gradient(180deg, var(--card), var(--page));
  border-bottom: 1px solid var(--line);
  padding: var(--space-10) 0 var(--space-10);
}
.peak-hero__inner {
  position: relative; display: grid; gap: var(--space-8);
  grid-template-columns: minmax(0, 1fr); align-items: center;
}
@media (min-width: 980px) {
  .peak-hero { padding: var(--space-12) 0; }
  .peak-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-10); }
}
.peak-crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; font-size: var(--text-sm); color: var(--ink-3); margin-bottom: var(--space-3); }
.peak-crumbs a { color: var(--ink-2); font-weight: 600; }
.peak-eyebrow { color: var(--red-strong); display: inline-flex; align-items: center; gap: var(--space-2); }
.peak-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--apply); box-shadow: 0 0 0 0 color-mix(in srgb, var(--apply) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .peak-live-dot { animation: peak-pulse 2.2s ease-out infinite; }
}
@keyframes peak-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--apply) 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--apply) 0%, transparent); }
}
.peak-hero h1 {
  font-size: clamp(var(--text-3xl), 5.2vw, 3rem);
  line-height: 1.05; letter-spacing: -0.02em; margin: var(--space-3) 0;
  max-width: 20ch;
}
.peak-hero__accent { color: var(--apply-text); }
.peak-hero .lead { max-width: 58ch; color: var(--ink-2); font-size: var(--text-lg); }

/* The scene keeps its own box (aspect-ratio set inline from the viewBox): no shift. */
.peak-scene { position: relative; width: 100%; max-width: 640px; justify-self: center; }
.peak-scene__svg, .peak-scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.peak-scene__canvas { opacity: 0; transition: opacity .5s ease; }
.peak-scene.is-live .peak-scene__canvas { opacity: 1; }
.peak-scene.is-live .peak-scene__svg { opacity: 0; transition: opacity .5s ease; }
.peak-scene__count {
  position: absolute; right: var(--space-2); bottom: var(--space-2);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line);
  font-size: var(--text-xs); font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-sm);
  font-variant-numeric: tabular-nums; pointer-events: none;
}
@media (max-width: 979px) {
  .peak-scene { max-width: 460px; }
}
@media (max-width: 520px) {
  .peak-scene { max-width: 340px; }
}
/* Token colours for the scene: c-* picks the colour, f-* the face light. */
.peak-scene__svg .c-accent { --c: var(--accent); }
.peak-scene__svg .c-apply  { --c: var(--apply); }
.peak-scene__svg .c-red    { --c: var(--red); }
.peak-scene__svg .c-amber  { --c: var(--amber); }
.peak-scene__svg .c-card   { --c: var(--card); }
.peak-scene__svg .c-line   { --c: var(--line); }
.peak-scene__svg .c-ink    { --c: var(--ink); }
.peak-scene__svg .c-ink2   { --c: var(--ink-2); }
.peak-scene__svg .c-ink3   { --c: var(--ink-3); }
.peak-scene__svg .c-glass  { --c: var(--accent-050); }
.peak-scene__svg .c-night  { --c: var(--scene-night); }
.peak-scene__svg .c-skin   { --c: var(--scene-skin); }
.peak-scene__svg .c-parcel { --c: var(--scene-parcel); }
.peak-scene__svg .f-t { fill: var(--c); }
.peak-scene__svg .f-l { fill: color-mix(in srgb, var(--c) 84%, black); }
.peak-scene__svg .f-r { fill: color-mix(in srgb, var(--c) 68%, black); }
.peak-scene__wire { fill: none; stroke: var(--ink-2); stroke-width: .03; opacity: .7; }

.peak-search { display: flex; gap: var(--space-2); margin: var(--space-6) 0 var(--space-5); max-width: 540px; flex-wrap: wrap; }
.peak-search__field { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.peak-search__field svg { position: absolute; left: var(--space-3); color: var(--ink-faint); pointer-events: none; }
.peak-search__field .form-input { width: 100%; padding-left: calc(var(--space-3) * 2 + 18px); }
.peak-search .btn { flex: 0 0 auto; }

.peak-trust { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin: var(--space-5) 0 0; padding: 0; }
.peak-trust li { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.peak-trust svg { color: var(--apply-text); flex: none; }

.peak-body { padding-top: var(--space-8); padding-bottom: var(--space-16); }

/* ---- Key facts (TL;DR + live figures) ---- */
.peak-facts {
  position: relative; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 120% at 100% 0%, var(--accent-050), transparent 60%),
    var(--card);
  box-shadow: var(--shadow-sm); margin-bottom: var(--space-8);
}
@media (min-width: 720px) { .peak-facts { padding: var(--space-8); } }
.peak-facts__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.peak-facts__head h2 { margin: 0; font-size: var(--text-xl); letter-spacing: -0.01em; }
.peak-facts__updated { margin: 0; font-size: var(--text-xs); font-weight: 600; color: var(--ink-3); }
.peak-facts__summary { margin: var(--space-3) 0 var(--space-6); font-size: var(--text-lg); line-height: 1.6; color: var(--ink); max-width: 78ch; }
.peak-facts__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.peak-fact {
  display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg); background: var(--page); border: 1px solid var(--line);
}
.peak-fact--hero { background: var(--accent-050); border-color: transparent; }
.peak-fact__num { font-size: var(--text-3xl); font-weight: 750; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.peak-fact--hero .peak-fact__num { color: var(--link); }
.peak-fact__label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); }
.peak-fact__note { font-size: var(--text-xs); color: var(--ink-3); }
.peak-fact__bar { display: block; height: 6px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; margin-top: var(--space-2); }
.peak-fact__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--apply), var(--accent)); }
@media (prefers-reduced-motion: no-preference) {
  .js .peak-facts:not(.is-in) .peak-fact__bar i { width: 0; }
  .peak-fact__bar i { transition: width 1.2s cubic-bezier(.22, 1, .36, 1) .3s; }
}
.peak-facts__lists { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: var(--space-6); }
.peak-facts__lists h3 { margin: 0 0 var(--space-2); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.peak-rank { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.peak-rank li {
  counter-increment: rank; display: flex; align-items: baseline; gap: var(--space-3);
  padding: var(--space-2) 0; border-bottom: 1px dashed var(--line);
}
.peak-rank li::before { content: counter(rank); font-size: var(--text-xs); font-weight: 700; color: var(--accent); min-width: 1.2em; }
.peak-rank a, .peak-rank strong { font-weight: 650; }
.peak-rank span { margin-left: auto; font-size: var(--text-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.peak-facts__method { margin: var(--space-5) 0 0; font-size: var(--text-xs); color: var(--ink-3); line-height: 1.55; }

/* ---- Lane cards ---- */
.peak-lanes { display: grid; gap: var(--space-3); grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: var(--space-4); }
@media (max-width: 960px) { .peak-lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .peak-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.peak-lane {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--card); color: var(--ink); text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.peak-lane::after {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity .25s ease;
}
.peak-lane:hover, .peak-lane:focus-visible { box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; border-color: var(--accent); }
.peak-lane:hover::after, .peak-lane:focus-visible::after { opacity: 1; }
.peak-lane:focus-visible { outline: none; box-shadow: var(--focus-ring), var(--shadow-md); }
.peak-lane__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--radius); background: var(--accent-050); color: var(--accent); margin-bottom: var(--space-2);
}
.peak-lane--warehouse .peak-lane__icon { background: var(--amber-050); color: var(--amber); }
.peak-lane--delivery .peak-lane__icon { background: var(--apply-050); color: var(--apply-text); }
.peak-lane--retail .peak-lane__icon { background: var(--red-050); color: var(--red-strong); }
@media (prefers-reduced-motion: no-preference) {
  .peak-lane:hover .peak-lane__icon svg { animation: peak-wiggle .6s ease; }
}
@keyframes peak-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-10deg); } 60% { transform: rotate(8deg); } }
.peak-lane__label { font-weight: 700; font-size: var(--text-sm); line-height: 1.3; }
.peak-lane__count { font-size: var(--text-xs); color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.peak-lane.is-active { border-color: var(--accent); background: var(--accent-050); }
.peak-lane.is-active .peak-lane__icon { background: var(--accent-fill); color: var(--on-accent); }

.peak-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-5); }
.peak-chip {
  display: inline-flex; align-items: center; padding: var(--space-1) var(--space-3);
  border: 1px solid var(--line-2, var(--line)); border-radius: var(--radius-pill);
  font-size: var(--text-sm); font-weight: 600; color: var(--ink-2); background: var(--card);
  text-decoration: none; white-space: nowrap;
}
.peak-chip:hover { border-color: var(--apply); color: var(--ink); text-decoration: none; }
.peak-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.peak-chip.is-active { background: var(--apply-050); border-color: var(--apply); color: var(--apply-text); }

.peak-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.peak-results-head h2 { font-size: var(--text-xl); font-weight: 650; margin: 0; }
.peak-results-head h2 strong { color: var(--link); }
.peak-clear { font-size: var(--text-sm); color: var(--link); }

.peak-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-4); }
@media (max-width: 560px) { .peak-grid { grid-template-columns: 1fr; } }

.peak-empty { padding: var(--space-10) var(--space-6); text-align: center; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--card); }
.peak-empty h3 { margin: 0 0 var(--space-2); }

/* ---- Content sections: one width, one rhythm ---- */
.peak-section { margin-top: var(--space-12); }
.peak-section h2 { font-size: var(--text-2xl); letter-spacing: -0.01em; margin: 0 0 var(--space-5); }

/* ---- Tools: calculator + picker ---- */
.peak-tools { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.peak-tool {
  padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--card);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; scroll-margin-top: 90px;
}
.peak-tool__h { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xl) !important; margin: 0 0 var(--space-1) !important; }
.peak-tool__h svg { color: var(--accent); flex: none; }
.peak-tool__intro { margin: 0 0 var(--space-5); color: var(--ink-2); font-size: var(--text-sm); }
.peak-tool__note { margin: var(--space-4) 0 0; font-size: var(--text-xs); color: var(--ink-3); line-height: 1.55; }
.peak-calc, .peak-pick { display: flex; flex-direction: column; flex: 1; }
.peak-calc__fields { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.peak-field { display: flex; flex-direction: column; gap: var(--space-1); font-size: var(--text-xs); font-weight: 650; color: var(--ink-2); }
.peak-field .form-input { font-variant-numeric: tabular-nums; }
.peak-calc__go { align-self: flex-start; margin-top: var(--space-3); }
.peak-calc__out {
  margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-050), var(--apply-050));
}
.peak-calc__out p { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.peak-calc__out span { font-size: var(--text-sm); color: var(--ink-2); font-weight: 600; }
.peak-calc__out output { font-variant-numeric: tabular-nums; font-weight: 700; }
.peak-calc__total output { font-size: var(--text-3xl); letter-spacing: -0.02em; color: var(--link); }
.peak-calc__row { margin-top: var(--space-2) !important; }

.peak-q { border: 0; padding: 0; margin: 0 0 var(--space-3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.peak-q legend { float: left; width: 100%; padding: 0; margin-bottom: var(--space-2); font-weight: 650; font-size: var(--text-sm); }
.peak-q__opt { position: relative; }
.peak-q__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.peak-q__opt span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 40px;
  padding: var(--space-1) var(--space-4); border-radius: var(--radius-pill); border: 1px solid var(--line-2, var(--line));
  background: var(--page); font-size: var(--text-sm); font-weight: 650; color: var(--ink-2);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.peak-q__opt input:hover + span { border-color: var(--accent); }
.peak-q__opt input:focus-visible + span { box-shadow: var(--focus-ring); }
.peak-q__opt input:checked + span { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--on-accent); }
.peak-pick .btn[data-nojs-only] { align-self: flex-start; }
.peak-pick__result {
  margin-top: auto; padding: var(--space-5); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--red-050), var(--amber-050)); border: 1px solid var(--line);
}
.peak-pick .peak-q:last-of-type { margin-bottom: var(--space-4); }
.peak-pick__result.is-empty { background: var(--page); border-style: dashed; }
.peak-pick__result.is-empty .peak-pick__why { margin: 0; }
.peak-pick__eyebrow { margin: 0; font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--red-strong); }
.peak-pick__lane { margin: var(--space-1) 0; font-size: var(--text-xl); font-weight: 750; }
.peak-pick__why { margin: 0 0 var(--space-3); color: var(--ink-2); font-size: var(--text-sm); }
@media (prefers-reduced-motion: no-preference) {
  .peak-pick__result.is-pop { animation: peak-pop .45s cubic-bezier(.22, 1, .36, 1); }
}
@keyframes peak-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---- Towns ---- */
.peak-towns { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.peak-towns a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); font-weight: 600; font-size: var(--text-sm); text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.peak-towns a:hover, .peak-towns a:focus-visible { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--accent); text-decoration: none; }
.peak-towns a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.peak-towns small { font-size: var(--text-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---- Timeline ---- */
.peak-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.peak-step {
  position: relative; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); display: flex; flex-direction: column; gap: var(--space-1);
}
.peak-step__month { font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-strong); }
.peak-step:nth-child(even) .peak-step__month { color: var(--apply-text); }
.peak-step__title { font-size: var(--text-lg); }
.peak-step__text { color: var(--ink-2); font-size: var(--text-sm); line-height: 1.5; }
@media (max-width: 860px) { .peak-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .peak-timeline { grid-template-columns: 1fr; } }

/* ---- Be ready: four equal cards ---- */
.peak-ready { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
@media (max-width: 960px) { .peak-ready { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .peak-ready { grid-template-columns: 1fr; } }
.peak-ready__item { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--apply-050); display: flex; flex-direction: column; gap: var(--space-1); }
.peak-ready__item:nth-child(even) { background: var(--red-050); }
.peak-ready__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--card); color: var(--apply-text); margin-bottom: var(--space-2); }
.peak-ready__item:nth-child(even) .peak-ready__icon { color: var(--red-strong); }
.peak-ready__item strong { display: block; }
.peak-ready__item p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); line-height: 1.55; }

/* ---- FAQ + side card (alert CTA + countdown) ---- */
.peak-faqwrap { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .peak-faqwrap { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-10); } }
.peak-faqwrap__side { min-width: 0; }
@media (min-width: 980px) { .peak-side { position: sticky; top: 90px; } }
.peak-side { display: flex; flex-direction: column; gap: var(--space-4); }

.peak-faq { display: grid; gap: var(--space-2); }
.peak-faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .18s ease, box-shadow .18s ease; }
.peak-faq__item[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.peak-faq__item summary {
  cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: 650; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); border-radius: var(--radius);
}
.peak-faq__item summary::-webkit-details-marker { display: none; }
.peak-faq__item summary::marker { content: ""; }
.peak-faq__item summary:hover { color: var(--link); }
.peak-faq__item summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.peak-faq__chev {
  flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 50%;
  background: var(--accent-050); color: var(--accent); transition: transform .25s ease, background .2s ease, color .2s ease;
}
.peak-faq__item[open] .peak-faq__chev { transform: rotate(180deg); background: var(--accent-fill); color: var(--on-accent); }
.peak-faq__a p { margin: 0; padding: 0 var(--space-5) var(--space-5); color: var(--ink-2); line-height: 1.65; }
@media (prefers-reduced-motion: no-preference) {
  .peak-faq__item[open] .peak-faq__a { animation: peak-open .3s cubic-bezier(.22, 1, .36, 1); }
}
@keyframes peak-open { from { opacity: 0; transform: translateY(-4px); } }

.peak-alert {
  padding: var(--space-6); border-radius: var(--radius-xl); color: var(--ink);
  background: radial-gradient(90% 90% at 100% 0%, var(--accent-050), transparent 70%), var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.peak-alert__icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--accent-fill); color: var(--on-accent); }
.peak-alert__h { font-size: var(--text-xl) !important; margin: var(--space-3) 0 var(--space-1) !important; }
.peak-alert p { margin: 0 0 var(--space-4); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.55; }

/* ---- Countdown card ---- */
.peak-count {
  padding: var(--space-5) var(--space-6); border-radius: var(--radius-xl); border: 1px solid var(--line);
  background: radial-gradient(80% 100% at 0% 0%, var(--red-050), transparent 70%), var(--card); box-shadow: var(--shadow-sm);
}
.peak-count__h { margin: 0 0 var(--space-3) !important; font-size: var(--text-xs) !important; text-transform: uppercase; letter-spacing: .08em; color: var(--red-strong); }
.peak-count__next { margin: 0 0 var(--space-4); display: flex; flex-direction: column; gap: var(--space-1); }
.peak-count__label { font-weight: 700; }
.peak-count__done { color: var(--ink-2); font-size: var(--text-sm); }
.peak-count__big { display: flex; gap: var(--space-2); }
.peak-count__unit {
  display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: var(--space-2) var(--space-1);
  border-radius: var(--radius); background: var(--page); border: 1px solid var(--line);
}
.peak-count__unit b { font-size: var(--text-xl); font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--ink); }
.peak-count__unit small { font-size: var(--text-xs); color: var(--ink-3); }
.peak-count__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.peak-count__item { display: grid; grid-template-columns: 1fr auto auto; gap: var(--space-3); align-items: baseline; padding: var(--space-2) 0; border-top: 1px dashed var(--line); font-size: var(--text-sm); }
.peak-count__name { font-weight: 650; }
.peak-count__item time { color: var(--ink-3); font-size: var(--text-xs); }
.peak-count__left { font-size: var(--text-xs); font-weight: 700; color: var(--apply-text); font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; }
.peak-count__item.is-next .peak-count__name { color: var(--red-strong); }
.peak-count__item.is-past { opacity: .55; }
.peak-count__item.is-past .peak-count__name { text-decoration: line-through; }
.peak-count__item.is-past .peak-count__left { color: var(--ink-3); }

.peak-safe {
  display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-12);
  padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg);
  background: var(--amber-050); color: var(--ink-2); font-size: var(--text-sm); line-height: 1.55;
}
.peak-safe svg { flex: none; color: var(--amber); margin-top: 2px; }
.peak-employers { margin-top: var(--space-6); color: var(--ink-3); font-size: var(--text-sm); }

/* ---- Home page banner (in season only) ---- */
.peak-banner-wrap { padding: var(--space-6) 0 0; }
.peak-banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: var(--space-5); padding: var(--space-6) var(--space-8); border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 140% at 100% 0%, var(--red-050), transparent 65%),
    radial-gradient(50% 120% at 0% 100%, var(--apply-050), transparent 65%),
    var(--card);
  box-shadow: var(--shadow-sm);
}
.peak-banner::before {
  /* A soft sheen that drifts across now and then. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, color-mix(in srgb, var(--card) 70%, transparent) 50%, transparent 60%);
  transform: translateX(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .peak-banner::before { animation: peak-sheen 9s ease-in-out 1.5s infinite; }
}
@keyframes peak-sheen { 0% { transform: translateX(-100%); } 25%, 100% { transform: translateX(100%); } }
.peak-banner__copy { position: relative; }
.peak-banner__tag {
  display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red-strong);
}
.peak-banner__tag svg { color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .peak-banner__tag svg { animation: peak-spin 12s linear infinite; }
}
@keyframes peak-spin { to { transform: rotate(360deg); } }
.peak-banner h2 { margin: 0 0 var(--space-2); font-size: clamp(var(--text-xl), 3.2vw, var(--text-3xl)); letter-spacing: -0.015em; line-height: 1.15; }
.peak-banner h2 span { color: var(--apply-text); }
.peak-banner p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.peak-banner__live { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3) !important; font-size: var(--text-sm); font-weight: 650; color: var(--ink) !important; }
.peak-banner__live b { font-variant-numeric: tabular-nums; color: var(--link); }
.peak-banner__lanes { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.peak-banner__lane {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.peak-banner__lane small { font-size: var(--text-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.peak-banner__lane:hover { border-color: var(--red); color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.peak-banner__lane:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.peak-banner__cta { position: relative; white-space: nowrap; }
@media (max-width: 720px) {
  .peak-banner { grid-template-columns: 1fr; padding: var(--space-5); }
  .peak-banner__cta { justify-self: start; }
}

/* ---- Header link, in season ---- */
.nav__peak { color: var(--red-strong) !important; font-weight: 650; }
/* Progress, goals and badges (App\Core\Progress, 28 Oct 2026): the job seeker card on
   /account, the employer checklist on /employers/dashboard, company badge chips on job
   and company pages, and the goals band on the home page. Tokens only. */

/* ---- shared card ------------------------------------------------------------------ */
.prog-card{ padding:var(--space-6); margin-bottom:var(--space-6); }
.prog-card__head{ display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-3); flex-wrap:wrap; margin-bottom:var(--space-4); }
.prog-card__head h2{ margin:0; font-size:var(--text-xl); }
.prog-card__how{ font-size:var(--text-sm); color:var(--link); }

.prog-grid{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:var(--space-4); }
.prog-tile{ background:var(--page); border:1px solid var(--line); border-radius:var(--radius); padding:var(--space-4); display:flex; flex-direction:column; gap:var(--space-2); min-width:0; }
.prog-tile__label{ margin:0; font-size:var(--text-xs); font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3); }
.prog-tile__num{ margin:0; display:flex; align-items:center; gap:var(--space-2); font-size:var(--text-2xl); font-weight:700; color:var(--ink); line-height:1.1; }
.prog-tile__of{ font-size:var(--text-sm); font-weight:500; color:var(--ink-2); }
.prog-tile__next{ margin:0; font-size:var(--text-sm); color:var(--ink-2); }
.prog-tile__total{ margin:auto 0 0; font-size:var(--text-xs); color:var(--ink-3); }

.prog-bar{ height:8px; border-radius:var(--radius-pill); background:var(--line); overflow:hidden; }
.prog-bar__fill{ display:block; height:100%; width:var(--prog, 0%); border-radius:inherit; background:var(--accent); transition:width .6s ease; }
@media (prefers-reduced-motion: reduce){ .prog-bar__fill{ transition:none; } }

.prog-dots{ list-style:none; margin:0; padding:0; display:flex; gap:var(--space-2); }
.prog-dot{ width:22px; height:22px; border-radius:50%; border:2px solid var(--line-2); background:var(--card); }
.prog-dot.is-done{ border-color:var(--accent); background:var(--accent); }

.prog-flame{ color:var(--ink-faint); flex:none; }
.prog-flame.is-lit{ color:var(--amber); }

.prog-badges__h{ margin:var(--space-6) 0 var(--space-3); font-size:var(--text-base); }
.prog-badges{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:var(--space-2); }
.prog-badge{ display:flex; align-items:center; gap:var(--space-3); padding:var(--space-2) var(--space-3); border:1px dashed var(--line-2); border-radius:var(--radius); color:var(--ink-3); }
.prog-badge.is-earned{ border-style:solid; border-color:var(--accent); background:var(--accent-050); color:var(--ink); }
.prog-badge__icon{ flex:none; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:var(--line); color:var(--ink-3); }
.prog-badge.is-earned .prog-badge__icon{ background:var(--accent); color:var(--on-accent); }
.prog-badge__text{ display:flex; flex-direction:column; min-width:0; font-size:var(--text-sm); }
.prog-badge__text small{ font-size:var(--text-xs); color:var(--ink-3); }

/* ---- employer checklist ------------------------------------------------------------ */
.prog-emp{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:var(--space-6); align-items:start; }
.prog-emp__meter{ display:flex; flex-direction:column; gap:var(--space-3); }
.prog-emp__badges-h{ margin:var(--space-2) 0 0; font-size:var(--text-xs); font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-3); }
.prog-reward{ display:flex; gap:var(--space-3); align-items:flex-start; padding:var(--space-3) var(--space-4); border-radius:var(--radius); background:var(--amber-050); color:var(--ink); }
.prog-reward svg{ flex:none; color:var(--amber); margin-top:2px; }
.prog-reward p{ margin:0; font-size:var(--text-sm); }
.prog-reward.is-earned{ background:var(--accent-050); }
.prog-reward.is-earned svg{ color:var(--accent); }

.prog-steps summary{ cursor:pointer; font-weight:600; font-size:var(--text-sm); color:var(--ink-2); padding:var(--space-1) 0; }
.prog-steps summary:focus-visible{ outline:none; box-shadow:var(--focus-ring); border-radius:var(--radius-sm); }
.prog-steps ul{ list-style:none; margin:var(--space-3) 0 0; padding:0; display:flex; flex-direction:column; gap:var(--space-2); }
.prog-step{ display:flex; align-items:center; gap:var(--space-3); font-size:var(--text-sm); }
.prog-step__mark{ flex:none; width:22px; height:22px; border-radius:50%; border:2px solid var(--line-2); display:inline-flex; align-items:center; justify-content:center; color:var(--on-accent); }
.prog-step.is-done .prog-step__mark{ background:var(--accent); border-color:var(--accent); }
.prog-step.is-done{ color:var(--ink-3); }

/* ---- company badges ---------------------------------------------------------------- */
.co-badges{ list-style:none; margin:var(--space-2) 0 0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-2); }
.co-badge{ display:inline-flex; align-items:center; gap:var(--space-1); padding:2px var(--space-2); border-radius:var(--radius-pill); font-size:var(--text-xs); font-weight:600; text-decoration:none; border:1px solid var(--line); background:var(--card); color:var(--ink-2); }
.co-badge:hover{ text-decoration:none; border-color:var(--accent); color:var(--ink); }
.co-badge:focus-visible{ outline:none; box-shadow:var(--focus-ring); }
.co-badge--verified svg{ color:var(--accent); }
.co-badge--fast svg{ color:var(--amber); }
.co-badge--active svg{ color:var(--apply); }

/* ---- home band and nudges ---------------------------------------------------------- */
.prog-promo{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--space-4); }
.prog-promo__card{ display:flex; gap:var(--space-4); align-items:flex-start; padding:var(--space-5); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--card); color:var(--ink); text-decoration:none; transition:box-shadow .2s ease, transform .2s ease; }
.prog-promo__card:hover{ text-decoration:none; box-shadow:var(--shadow-md); transform:translateY(-1px); }
.prog-promo__card:focus-visible{ outline:none; box-shadow:var(--focus-ring); }
.prog-promo__ic{ flex:none; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:50%; background:var(--accent-050); color:var(--accent); }
.prog-promo__card:first-child .prog-promo__ic{ background:var(--amber-050); color:var(--amber); }
.prog-promo__text{ display:flex; flex-direction:column; gap:var(--space-1); }
.prog-promo__text .eyebrow{ margin:0; }
.prog-promo__text b{ font-size:var(--text-lg); }
.prog-promo__text span:last-child{ color:var(--ink-2); font-size:var(--text-sm); }
@media (prefers-reduced-motion: reduce){ .prog-promo__card{ transition:none; } .prog-promo__card:hover{ transform:none; } }

.prog-nudge{ margin-top:var(--space-2); }

@media (max-width: 760px){
  .prog-card{ padding:var(--space-4); }
  .prog-grid, .prog-emp, .prog-promo{ grid-template-columns:minmax(0, 1fr); }
}
/* =====================================================================
   yournextjob - discovery preferences wizard
   Full-screen, app-like, one question at a time. Tokens only.
   Degrades to a single scrollable form when JavaScript is off.
   ===================================================================== */

.page-quiz main { padding: 0; }

.quiz {
  padding: var(--space-5) var(--space-5) var(--space-16);
}
.quiz-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 66px - var(--space-5));
}

/* ---------- Header + progress ---------- */
.quiz-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.quiz-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.quiz-eyebrow {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}
.quiz-skip-all {
  font-size: var(--text-sm);
  color: var(--ink-3);
  font-weight: 500;
}
.quiz-skip-all:hover { color: var(--accent); text-decoration: none; }
.quiz-count {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-3);
}
.quiz-progress {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
}
.quiz-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width .34s cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Intro ---------- */
.quiz-intro { margin: var(--space-6) 0 var(--space-2); }
.quiz-lede {
  font-size: clamp(1.6rem, 5vw, var(--text-3xl));
  margin: 0 0 var(--space-2);
}
.quiz-sub { margin: 0; color: var(--ink-2); }

/* ---------- Form + steps ---------- */
.quiz-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-top: var(--space-6);
}

/* No-JS: every step stacks. With JS: only the active one shows. */
.quiz.js .quiz-step { display: none; }
.quiz.js .quiz-step.is-active {
  display: block;
  animation: quizStepIn .32s ease;
}
.quiz-step + .quiz-step { margin-top: var(--space-8); }
.quiz.js .quiz-step + .quiz-step { margin-top: 0; }

@keyframes quizStepIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.quiz-step__kicker {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.quiz-step__title {
  font-size: clamp(1.35rem, 4.5vw, var(--text-2xl));
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}
.quiz-step__title:focus { outline: none; }
.quiz-step__hint {
  margin: 0 0 var(--space-6);
  color: var(--ink-2);
  font-size: var(--text-sm);
}

/* ---------- Selectable chips (multi-select) ---------- */
.quiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.quiz-chip {
  position: relative;
  display: inline-flex;
}
.quiz-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.quiz-chip__face {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: .65rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2);
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: background .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.quiz-chip:hover .quiz-chip__face {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.quiz-chip input:checked + .quiz-chip__face {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.quiz-chip input:checked + .quiz-chip__face::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.quiz-chip input:focus-visible + .quiz-chip__face {
  box-shadow: var(--focus-ring);
}

/* ---------- Sliders ---------- */
.quiz-slider { margin-top: var(--space-4); }
.quiz-slider--distance {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.quiz-slider__value {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-5);
}
.quiz-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--line-2);
  outline: none;
  cursor: pointer;
}
.quiz-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  border: 4px solid var(--card);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.quiz-range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  border: 4px solid var(--card);
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
.quiz-range:focus-visible { box-shadow: var(--focus-ring); }
.quiz-slider__scale {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--ink-3);
}

/* ---------- Location input ---------- */
.quiz-input {
  font-size: var(--text-lg);
  padding: .85rem 1rem;
}

/* ---------- Radio option cards (single-select) ---------- */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.quiz-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.quiz-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.quiz-option__face {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--line-2);
  background: var(--card);
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.quiz-option__label { font-weight: 600; color: var(--ink); }
.quiz-option__desc { font-size: var(--text-sm); color: var(--ink-2); }
.quiz-option:hover .quiz-option__face { border-color: var(--accent); }
.quiz-option input:checked + .quiz-option__face {
  border-color: var(--accent);
  background: var(--accent-050);
  box-shadow: var(--shadow-sm);
}
.quiz-option input:focus-visible + .quiz-option__face { box-shadow: var(--focus-ring); }

/* ---------- Bottom nav ---------- */
.quiz-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-8);
}
.quiz-nav__spacer { flex: 1 1 auto; }
.quiz-btn { font-size: var(--text-base); }
.quiz-btn--next { padding: .85rem 1.6rem; min-width: 150px; }
/* Back + Skip only steer the JS wizard; hidden in the no-JS fallback. */
.quiz-btn--back,
.quiz-btn--skip { display: none; }
.quiz.js .quiz-btn--back,
.quiz.js .quiz-btn--skip { display: inline-flex; }
.quiz-btn--skip { color: var(--ink-2); }

/* ---------- Screen-reader live region ---------- */
.quiz-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Small screens: clear the fixed mobile nav ---------- */
@media (max-width: 767px) {
  /* Multi-select answer chips are full tap targets on touch. */
  .quiz-chip__face { min-height: 44px; }
  .quiz { padding-bottom: calc(var(--space-16) + 60px); }
  .quiz-shell { min-height: calc(100dvh - 66px - 60px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .quiz.js .quiz-step.is-active { animation: none; }
  .quiz-progress__fill { transition: none; }
  .quiz-chip:hover .quiz-chip__face { transform: none; }
}
/* =====================================================================
   yournextjob — Reviews + Claim  ·  write-a-review, claim a profile
   Soft-premium, mobile-first. CSS variables only.
   Scoped to .page-review-write and .page-company-claim plus shared bits.
   ===================================================================== */

/* ---------- Shared company identity block ---------- */
.company-ident{ display:flex; align-items:center; gap:var(--space-4); }
.company-ident > div{ min-width:0; }
.company-ident h1{ font-size:clamp(1.5rem, 4vw, var(--text-2xl)); margin:0 0 var(--space-1); }
.company-ident .eyebrow{ margin-bottom:var(--space-1); }
.company-ident__logo{ flex:none; width:52px; height:52px; border-radius:var(--radius);
  object-fit:contain; background:var(--page); border:1px solid var(--line); padding:4px; }
.company-ident__avatar{ flex:none; width:52px; height:52px; border-radius:var(--radius);
  display:flex; align-items:center; justify-content:center; background:var(--accent-050);
  color:var(--accent-strong); font-weight:600; font-size:var(--text-xl); }

/* ---------- Write a review ---------- */
.review-write{ padding-bottom:var(--space-16); }
.review-write__head{ margin-bottom:var(--space-6); }
.review-write__place{ margin:0; font-size:var(--text-sm); }
.review-write__intro{ margin:var(--space-5) 0 0; max-width:60ch; color:var(--ink-2); }

.review-write__grid{ display:grid; gap:var(--space-6); align-items:start; }

.review-form{ padding:var(--space-6); }
.review-form .form-group:last-of-type{ margin-bottom:var(--space-5); }
.review-form__opt{ font-weight:500; color:var(--ink-3); }
.review-form__pc{ min-height:88px; }
.review-form__recommend{ font-size:var(--text-base); font-weight:500; }
.review-form__rule{ border:0; border-top:1px solid var(--line); margin:var(--space-2) 0 var(--space-6); }
.review-form__legal{ margin:var(--space-4) 0 0; font-size:var(--text-xs); color:var(--ink-3); text-align:center; }
.review-form__legal a{ color:var(--ink-2); text-decoration:underline; }

/* Honeypot — visually removed, kept in the DOM for bots to trip over. */
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* ---------- Star rating input (keyboard + ARIA, no JS) ---------- */
.rating-field{ border:0; margin:0 0 var(--space-6); padding:0; min-width:0; }
.rating-field legend{ padding:0; }
.rating-field .form-hint{ margin-top:var(--space-1); }

/* row-reverse so the pure-CSS "fill lower stars" sibling logic reads left→right */
.star-rating{ display:inline-flex; flex-direction:row-reverse; justify-content:flex-start;
  gap:var(--space-1); margin-top:var(--space-1); }
.star-rating__star{ display:inline-flex; color:var(--line-2); cursor:pointer; line-height:0;
  padding:3px; border-radius:var(--radius-sm);
  transition:color .12s ease, transform .12s ease; }
.star-rating__star svg{ display:block; }
.star-rating__star:hover{ transform:scale(1.06); }
/* Chosen star + every lower one (its DOM-following siblings). */
.star-rating__input:checked ~ .star-rating__star{ color:var(--amber); }
/* While hovering the row, drop the persisted fill then paint the hover preview. */
.star-rating:hover .star-rating__star{ color:var(--line-2); }
.star-rating__star:hover,
.star-rating__star:hover ~ .star-rating__star{ color:var(--amber); }
/* Keyboard focus lands on the visible star, not the hidden radio. */
.star-rating__input:focus-visible + .star-rating__star{ box-shadow:var(--focus-ring); }
.rating-field.is-invalid .star-rating__star{ color:var(--red); }

/* ---------- Review guidelines aside ---------- */
.review-guide{ background:var(--accent-050); border:1px solid var(--line-2);
  border-radius:var(--radius-lg); padding:var(--space-6); }
.review-guide__title{ font-size:var(--text-lg); margin-bottom:var(--space-4); }
.review-guide__list{ list-style:none; margin:0 0 var(--space-4); padding:0;
  display:flex; flex-direction:column; gap:var(--space-3); }
.review-guide__list li{ display:flex; gap:var(--space-3); font-size:var(--text-sm); color:var(--ink-2); }
.review-guide__list svg{ flex:none; margin-top:2px; color:var(--accent-strong); }
.review-guide__note{ margin:0; font-size:var(--text-xs); color:var(--ink-3); }

/* ---------- Claim a profile ---------- */
.company-claim{ padding-bottom:var(--space-16); }
.company-claim__grid{ display:grid; gap:var(--space-6); align-items:start; }
.company-claim__main{ padding:var(--space-8) var(--space-6); }
.company-claim__lead{ margin:var(--space-5) 0 var(--space-6); color:var(--ink-2); max-width:56ch; }
.company-claim__form{ margin:0; }
.company-claim__reassure{ margin:var(--space-4) 0 0; font-size:var(--text-xs); color:var(--ink-3); }
.company-claim__nodomain{ background:var(--page); border:1px solid var(--line-2);
  border-radius:var(--radius); padding:var(--space-5); }
.company-claim__nodomain p{ margin:0 0 var(--space-2); font-size:var(--text-sm); color:var(--ink-2); }
.company-claim__nodomain p:last-child{ margin-bottom:0; }

.company-claim__side{ background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-lg); padding:var(--space-6); }
.company-claim__side-title{ font-size:var(--text-lg); margin-bottom:var(--space-4); }
.company-claim__benefits{ list-style:none; margin:0 0 var(--space-4); padding:0;
  display:flex; flex-direction:column; gap:var(--space-4); }
.company-claim__benefits li{ display:flex; gap:var(--space-3); }
.company-claim__benefits div{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.company-claim__benefits strong{ font-size:var(--text-sm); color:var(--ink); }
.company-claim__benefits span span,
.company-claim__benefits div span{ font-size:var(--text-sm); color:var(--ink-2); }
.company-claim__ic{ flex:none; width:34px; height:34px; border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  background:var(--accent-050); color:var(--accent-strong); }
.company-claim__side-note{ margin:0; font-size:var(--text-xs); color:var(--ink-3); }

/* ---------- Responsive: form + aside two-up on wider screens ---------- */
@media (min-width:900px){
  .review-write__grid{ grid-template-columns:minmax(0,1fr) 300px; gap:var(--space-8); }
  .company-claim__grid{ grid-template-columns:minmax(0,1fr) 320px; gap:var(--space-8); }
}
/* =====================================================================
   search.css - the job search results page (/jobs).
   Every selector is scoped to .page-jobs (the page's body class): prod serves
   all pages/*.css as one bundle. CSS variables only.

   Phones with JavaScript: the filters become a bottom sheet behind a
   "Filters (n)" button (search.js runs the dialog). Without JavaScript the
   filters stay the plain <details> panel above the results, part of the form.
   Desktop (900px and up) keeps the sticky sidebar.
   ===================================================================== */

/* ---------- Head ---------- */
.page-jobs .srch-head{ padding-bottom:var(--space-5); }
.page-jobs .srch-head .lead{ max-width:62ch; }
.page-jobs .srch-browse{ margin-top:var(--space-4); }

/* ---------- Results toolbar: count on the left, filters + sort on the right ---------- */
.page-jobs .srch-toolbar{ align-items:center; padding-bottom:var(--space-3); margin-bottom:var(--space-4); border-bottom:1px solid var(--line); }
.page-jobs .srch-toolbar .jobs-count{ font-size:var(--text-sm); }
.page-jobs .srch-toolbar .jobs-count strong{ font-size:var(--text-xl); letter-spacing:-.02em; margin-right:2px; }
.page-jobs .srch-count__page{ color:var(--ink-3); }
.page-jobs .srch-toolbar__end{ display:flex; align-items:center; gap:var(--space-2); min-width:0; }
.page-jobs .srch-toolbar .jobs-sort label{ color:var(--ink-3); }
.page-jobs .srch-toolbar .jobs-sort .form-select{ min-height:40px; border-radius:var(--radius-pill); padding-left:var(--space-4); background-color:var(--card); }
/* With JavaScript the sort applies itself on change; "Go" is the no-script path. */
.js .page-jobs .srch-sortgo{ display:none; }

/* "Filters (n)": phones with JavaScript only (the sheet needs it). */
.page-jobs .srch-fbtn{ display:none; gap:var(--space-2); border-radius:var(--radius-pill); min-height:44px; }
.page-jobs .srch-fbtn svg{ flex:none; color:var(--accent); }
.page-jobs .srch-fbtn__n{ display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 6px;
  border-radius:var(--radius-pill); background:var(--accent-fill); color:var(--on-accent); font-size:var(--text-xs); font-weight:700; line-height:1; }

/* ---------- Active filter chips ---------- */
.page-jobs .srch-chips{ margin:0 0 var(--space-5); }
.page-jobs .srch-chips__list{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2); }
.page-jobs .srch-chip{ display:inline-flex; align-items:center; gap:var(--space-2); max-width:100%; min-height:36px; padding:.35rem .55rem .35rem .85rem;
  border-radius:var(--radius-pill); background:var(--accent-050); border:1px solid transparent; color:var(--link);
  font-size:var(--text-sm); font-weight:600; transition:border-color .12s ease, box-shadow .12s ease, transform .12s ease; }
.page-jobs .srch-chip__label{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.page-jobs .srch-chip svg{ flex:none; opacity:.75; }
.page-jobs .srch-chip:hover{ text-decoration:none; border-color:var(--accent); box-shadow:var(--shadow-sm); transform:translateY(-1px); }
.page-jobs .srch-chip:hover svg{ opacity:1; }
.page-jobs .srch-chips__clear{ display:inline-flex; align-items:center; min-height:36px; padding:0 var(--space-2); font-size:var(--text-sm); font-weight:600; color:var(--ink-2); }
.page-jobs .srch-chips__clear:hover{ color:var(--accent); }

/* ---------- Filters panel (sidebar on desktop, plain panel without JavaScript) ---------- */
.page-jobs .srch-sheet__head,
.page-jobs .srch-scrim{ display:none; }
.page-jobs .srch-actions{ margin-top:var(--space-2); }

/* ---------- Pagination ---------- */
.page-jobs .srch-pages{ gap:var(--space-2); margin-top:var(--space-10); }
.page-jobs .srch-pages a,
.page-jobs .srch-pages .is-current{ border-radius:var(--radius-pill); }
.page-jobs .srch-pages a.srch-pages__num{ border-color:var(--line); background:var(--card); }
.page-jobs .srch-pages .srch-pages__step{ gap:var(--space-1); padding:0 var(--space-4); border-color:var(--line-2); background:var(--card); color:var(--ink); font-weight:600; font-size:var(--text-sm); }
.page-jobs .srch-pages .srch-pages__step svg{ flex:none; }
.page-jobs .srch-pages .srch-pages__step:first-child{ margin-right:var(--space-2); }
.page-jobs .srch-pages .srch-pages__step:last-child{ margin-left:var(--space-2); }
.page-jobs .srch-pages .srch-pages__status{ display:none; }

/* ---------- Slim search bar (motion.js data-jobbar slides it in) ---------- */
.page-jobs .srch-bar__form{ display:flex; align-items:center; gap:var(--space-2); max-width:var(--container); margin:0 auto; padding:var(--space-2) var(--space-5); min-height:60px; }
.page-jobs .srch-bar__field{ flex:1 1 0; min-width:0; display:flex; align-items:center; gap:var(--space-2); min-height:44px; padding:0 var(--space-3);
  background:var(--page); border:1px solid var(--line-2); border-radius:var(--radius-pill); color:var(--ink-faint); cursor:text; }
.page-jobs .srch-bar__field:focus-within{ border-color:var(--accent); box-shadow:var(--focus-ring); }
.page-jobs .srch-bar__field svg{ flex:none; }
.page-jobs .srch-bar__field input{ flex:1; min-width:0; width:100%; border:0; background:transparent; padding:.5rem 0; font:inherit; font-size:var(--text-sm); color:var(--ink); }
.page-jobs .srch-bar__field input::placeholder{ color:var(--ink-3); }
.page-jobs .srch-bar__field input:focus{ outline:none; box-shadow:none; }
.page-jobs .srch-bar__go{ flex:none; min-height:44px; border-radius:var(--radius-pill); padding:0 var(--space-5); }
.page-jobs .srch-fbtn--icon{ flex:none; position:relative; width:44px; padding:0; }
.page-jobs .srch-fbtn--icon .srch-fbtn__n{ position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 4px; font-size:11px; }

/* =====================================================================
   Phones and small tablets (below the sidebar breakpoint)
   ===================================================================== */
@media (max-width:899px){
  /* motion.css hides the job page's bar on phones; this one is wanted there. */
  .page-jobs .jobbar.srch-bar{ display:block; }
  .page-jobs .srch-bar__go{ width:44px; padding:0; }
  .page-jobs .srch-bar__go-text{ display:none; }

  .js .page-jobs .srch-fbtn{ display:inline-flex; }
  .page-jobs .srch-pages .srch-pages__num{ display:none; }
  .page-jobs .srch-pages .srch-pages__status{ display:inline-flex; min-width:0; padding:0 var(--space-2); background:none; color:var(--ink-2); font-size:var(--text-sm); font-weight:500; }
  .page-jobs .srch-pages{ flex-wrap:nowrap; justify-content:space-between; }
  .page-jobs .srch-pages .srch-pages__step:first-child,
  .page-jobs .srch-pages .srch-pages__step:last-child{ margin:0; }

  /* ---- The bottom sheet (JavaScript on) ---- */
  /* The sidebar column is empty in flow once the panel is a sheet. */
  .js .page-jobs .srch .jobs-layout{ gap:0; }
  .js .page-jobs .srch-sheet{
    position:fixed; left:0; right:0; bottom:0; z-index:var(--z-modal);
    display:flex; flex-direction:column; max-height:min(86vh, 760px);
    background:var(--card); border-radius:var(--radius-xl) var(--radius-xl) 0 0; box-shadow:var(--shadow-lg);
    transform:translateY(104%); visibility:hidden;
    transition:transform .34s var(--ease-out, ease), visibility 0s linear .34s;
  }
  .js .page-jobs .srch-sheet.is-open{ transform:none; visibility:visible; transition:transform .34s var(--ease-out, ease), visibility 0s; }
  .js .page-jobs .srch-sheet:focus{ outline:none; }
  .js .page-jobs .srch-sheet__head{ display:flex; align-items:center; justify-content:space-between; position:relative; flex:none;
    padding:var(--space-5) var(--space-3) var(--space-2) var(--space-5); border-bottom:1px solid var(--line); }
  .js .page-jobs .srch-sheet__grip{ position:absolute; top:var(--space-2); left:50%; width:40px; height:4px; margin-left:-20px; border-radius:var(--radius-pill); background:var(--line-2); }
  .js .page-jobs .srch-sheet__title{ margin:0; font-size:var(--text-lg); }
  .js .page-jobs .srch-sheet__close{ display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border:0; background:none; color:var(--ink-2); border-radius:var(--radius-pill); cursor:pointer; }
  .js .page-jobs .srch-sheet__close:hover{ background:var(--page); color:var(--ink); }
  /* Inside the sheet the panel is always open and the sheet scrolls, not the page. */
  .js .page-jobs .srch-sheet .filters{ flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; border:0; border-radius:0; background:none; }
  .js .page-jobs .srch-sheet .filters summary{ display:none; }
  .js .page-jobs .srch-sheet .filters__body{ padding:var(--space-4) var(--space-5) 0; }
  .js .page-jobs .srch-sheet .srch-actions{ position:sticky; bottom:0; display:flex; align-items:center; gap:var(--space-3);
    margin:var(--space-2) calc(var(--space-5) * -1) 0; padding:var(--space-3) var(--space-5) calc(var(--space-3) + env(safe-area-inset-bottom));
    background:var(--card); border-top:1px solid var(--line); }
  .js .page-jobs .srch-sheet .srch-actions .btn{ order:2; flex:1; width:auto; min-height:48px; }
  .js .page-jobs .srch-sheet .srch-actions .filters__clear{ order:1; margin:0; }
  .js .page-jobs .srch-scrim{ display:block; position:fixed; inset:0; z-index:calc(var(--z-modal) - 1); background:rgba(12,10,20,.5); opacity:0; transition:opacity .25s ease; }
  .js .page-jobs .srch-scrim.is-open{ opacity:1; }
  .page-jobs.srch-locked{ overflow:hidden; }
}

@media (max-width:640px){
  .page-jobs .srch-head{ padding-top:var(--space-6); }
  .page-jobs .srch-head h1{ font-size:var(--text-2xl); margin-bottom:var(--space-3); }
  .page-jobs .srch-head .lead{ font-size:var(--text-base); }
  /* Browse links scroll in one row rather than stacking three tall pills. */
  .page-jobs .srch-browse{ flex-wrap:nowrap; overflow-x:auto; gap:var(--space-2); margin-right:calc(var(--space-5) * -1); padding-right:var(--space-5); scrollbar-width:none; }
  .page-jobs .srch-browse::-webkit-scrollbar{ display:none; }
  .page-jobs .srch-browse .chip{ flex:none; }
  /* Count left, Filters + sort on one row under it. */
  .page-jobs .srch-toolbar{ flex-direction:column; align-items:stretch; gap:var(--space-3); }
  .page-jobs .srch-toolbar__end{ justify-content:space-between; }
  .page-jobs .srch-toolbar .jobs-sort{ flex:1 1 auto; justify-content:flex-end; min-width:0; }
  .page-jobs .srch-toolbar .jobs-sort .form-select{ flex:0 1 auto; min-height:44px; }
  .page-jobs .srch-chip,
  .page-jobs .srch-chips__clear{ min-height:44px; }
  .page-jobs .srch-bar__form{ padding:var(--space-2) var(--space-4); }
  .page-jobs .srch-pages .srch-pages__step span{ display:none; }
  .page-jobs .srch-pages .srch-pages__step{ width:44px; padding:0; }
}

/* ---------- Desktop sidebar ---------- */
@media (min-width:900px){
  .page-jobs .srch .jobs-side{ max-height:calc(100vh - var(--header-h) - var(--space-8)); overflow-y:auto; scrollbar-width:thin; border-radius:var(--radius-lg); }
  .page-jobs .srch .filters{ box-shadow:var(--shadow-sm); }
  .page-jobs .srch-actions{ position:sticky; bottom:0; padding-top:var(--space-3); background:var(--card); }
  /* The slim search bar (61px) sits under the header: the sidebar steps down below it. */
  .page-jobs .srch .jobs-side{ transition:top .3s var(--ease-out, ease), max-height .3s var(--ease-out, ease); }
  .page-jobs:has(.srch-bar.is-on) .srch .jobs-side{ top:calc(var(--header-h) + 61px + var(--space-4)); max-height:calc(100vh - var(--header-h) - 61px - var(--space-8)); }
}

@media (prefers-reduced-motion: reduce){
  .js .page-jobs .srch-sheet,
  .js .page-jobs .srch-sheet.is-open{ transition:none; }
  .js .page-jobs .srch-scrim{ transition:none; }
  .page-jobs .srch-chip,
  .page-jobs .srch .jobs-side{ transition:none; }
  .page-jobs .srch-chip:hover{ transform:none; }
}

/* =====================================================================
   November 2026: phone-first head.
   Under 768px (with JavaScript) the head is one compact bar: the search in
   words (tap to edit: it opens the what and where fields), a Filters button,
   then one sideways row of quick filter chips. The h1 stays in the page for
   screen readers and search engines but takes no room, so the first job card
   starts about 200px from the top. Without JavaScript the plain form shows.
   Desktop keeps the two columns.
   ===================================================================== */
.page-jobs .srch-compact,
.page-jobs .srch-form__close{ display:none; }
.page-jobs .srch-head--active{ padding-top:var(--space-6); }
.page-jobs .srch-head--active .srch-h1{ font-size:var(--text-2xl); margin-bottom:var(--space-4); }
.page-jobs .srch-quick{ margin-top:var(--space-4); }
.page-jobs .srch-quick .chip.is-active::after{ content:"\00d7"; margin-left:var(--space-1); font-weight:500; }
.page-jobs .srch-recent{ margin-top:var(--space-3); }
.page-jobs .srch-recent[hidden]{ display:none; }
.page-jobs .srch-recent__label{ margin:0 0 var(--space-2); font-size:var(--text-xs); font-weight:600; color:var(--ink-2); }
.page-jobs .srch-recent .chip{ font-family:inherit; }
.page-jobs .srch-recent__clear{ border-style:dashed; color:var(--ink-2); }
.page-jobs .srch-alert{ margin-top:var(--space-6); }
.page-jobs .srch-roles{ margin-top:var(--space-8); }
.page-jobs .srch-roles__title{ margin:0 0 var(--space-3); font-size:var(--text-lg); }
.page-jobs .srch .empty-state{ margin-bottom:var(--space-6); }

/* Inputs at 16px wherever a finger types, so iOS never zooms the page. */
@media (max-width:899px){
  .page-jobs .srch-bar__field input{ font-size:var(--text-base); }
  .page-jobs .srch-sheet .form-select{ font-size:var(--text-base); }
}

@media (max-width:767px){
  .page-jobs .srch-head,
  .page-jobs .srch-head--active{ padding-top:var(--space-2); padding-bottom:var(--space-2); }
  .page-jobs .srch-head .srch-h1{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
  .page-jobs .srch-lead,
  .page-jobs .srch-browse{ display:none; }
  .page-jobs .srch-quick{ margin-top:var(--space-2); }

  .js .page-jobs .srch-compact{ display:flex; align-items:center; gap:var(--space-2); }
  .js .page-jobs .srch-form{ display:none; }
  .js .page-jobs .srch-head.is-editing .srch-compact{ display:none; }
  .js .page-jobs .srch-head.is-editing .srch-form{ display:flex; }
  .js .page-jobs .srch-head.is-editing .srch-form__close{ display:inline-flex; align-self:center; margin-top:var(--space-1); color:var(--ink-2); }
  .page-jobs .srch-pill{ flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:var(--space-2); min-height:44px; padding:0 var(--space-4);
    border:1px solid var(--border-strong); border-radius:var(--radius-pill); background:var(--card); box-shadow:var(--shadow-sm);
    color:var(--ink); font:inherit; font-size:var(--text-base); font-weight:600; text-align:left; cursor:pointer; }
  .page-jobs .srch-pill svg{ flex:none; color:var(--ink-3); }
  .page-jobs .srch-pill__text{ flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .page-jobs .srch-pill__hint{ flex:none; font-size:var(--text-sm); color:var(--link); }
  .page-jobs .srch-pill:focus-visible{ outline:none; border-color:var(--accent); box-shadow:var(--focus-ring); }
  .page-jobs .srch-compact .srch-fbtn--icon{ height:44px; background:var(--card); }

  /* One line under the bar: the count. Filters live in the bar, the sort is the
     "Newest first" chip, and the pill and chips already say what is switched on. */
  .page-jobs .srch-toolbar{ flex-direction:row; align-items:center; gap:var(--space-2); padding-bottom:0; margin-bottom:var(--space-2); border-bottom:0; }
  .page-jobs .srch-toolbar .jobs-count strong{ font-size:var(--text-base); }
  .js .page-jobs .srch-toolbar .srch-fbtn--toolbar,
  .js .page-jobs .srch-toolbar .jobs-sort,
  .js .page-jobs .srch-chips{ display:none; }
  .page-jobs .srch-alert{ margin-top:var(--space-4); }
}

@media (prefers-reduced-motion: reduce){
  .page-jobs .srch-pill{ transition:none; }
}
/* =====================================================================
   seo.css — job-page polish + home hero media + computed card badges.
   Owned by the SEO area. CSS variables only; extends app.css tokens.
   ===================================================================== */

/* ---------- Home hero: copy + live swipe-card mock ----------
   The mock deck itself is styled in pages/home.css (.home-mock*). */
.hero-grid{ display:block; }
.hero-copy{ min-width:0; }

@media (min-width:900px){
  .hero-grid{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:var(--space-12);
    align-items:center;
  }
}

/* ---------- Job detail: key-facts grid ---------- */
.job-facts{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:var(--space-4) var(--space-6);
  margin:0 0 var(--space-5);
  padding:var(--space-5) 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.job-facts__item{ min-width:0; }
.job-facts__item dt{
  margin:0 0 var(--space-1);
  font-size:var(--text-xs);
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--ink-3);
}
.job-facts__item dd{
  margin:0;
  font-size:var(--text-base);
  font-weight:600;
  color:var(--ink);
  overflow-wrap:break-word;
}
.job-facts__pay{ color:var(--apply-text); }
/* Straight after the facts, their bottom rule already divides: no second rule above the foot. */
.job-facts + .job-head__foot{ border-top:0; padding-top:0; }

@media (min-width:560px){
  .job-facts{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}

/* ---------- Computed card badges ---------- */
/* Neutral freshness chip for re-verified listings. */
.badge-checked{ background:var(--page); color:var(--ink-2); border:1px solid var(--line-2); }

/* The phone's sticky apply bar is the shared .action-bar now (app.css), dressed
   for the job page in pages/jobpage.css. The old .apply-bar rules and the body
   padding that made room for it are gone. */
/* ==========================================================================
   Reusable social share bar (partials/share-bar.php) + tool "Share my result".
   Namespaced: .pass-on-bar*, .pass-on-result-btn. Tokens only, no hardcoded hex.
   ========================================================================== */

.pass-on-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

/* Native-share button (revealed by share.js when navigator.share exists). */
.pass-on-bar__native {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: .55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: box-shadow .14s ease, transform .14s ease, background .14s ease;
}
.pass-on-bar__native:hover {
  background: var(--accent-fill-strong);
  border-color: var(--accent-fill-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.pass-on-bar__native[hidden] { display: none; }

/* Round network / copy / download buttons. */
.pass-on-bar__net {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;   /* a full tap target on a phone */
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  transition: box-shadow .14s ease, transform .14s ease, color .14s ease, border-color .14s ease;
}
.pass-on-bar__net:hover {
  text-decoration: none;
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.pass-on-bar__net svg { flex: none; }

/* "Share my result" pill sits happily inside a tool's dark result panel. */
.pass-on-result-btn {
  margin-top: var(--space-5);
}
.pass-on-result-btn[hidden] { display: none; }

/* ---- Mobile: full 44px tap targets (WCAG 2.5.5 / Apple HIG) ----
   The round network/copy/download buttons are 42px on desktop; nudge them
   and the native-share pill to 44px on touch widths only. */
@media (max-width: 820px) {
  .pass-on-bar__net { width: 44px; height: 44px; }
  .pass-on-bar__native { min-height: 44px; }
}
/* ==========================================================================
   The job card page (/job/{id}-{slug}/card), namespaced .pass-on*, plus the
   reusable compact row further down (partials/share-buttons.php).

   The page's names never contain "share" or a network's name: ad-blocking
   lists hide elements by those words, and once hid this whole page.
   Tokens only - no hardcoded colours.
   ========================================================================== */

/* Global since the first version of this sheet; auth, contact and tool pages use it. */
.btn-block { display: flex; width: 100%; }

.pass-on {
  position: relative;
  padding: var(--space-10) 0 var(--space-16);
  background:
    radial-gradient(60rem 28rem at 85% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}

.pass-on__back {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; color: var(--ink-2); font-weight: 500; font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.pass-on__back:hover { color: var(--ink); text-decoration: none; }

.pass-on__head { max-width: 48ch; margin-bottom: var(--space-10); }
.pass-on__head h1 { font-size: clamp(1.9rem, 4.5vw, var(--text-3xl)); letter-spacing: -.02em; }
.pass-on__head .lead { margin-bottom: 0; }

.pass-on__grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: var(--space-12);
  align-items: start;
}

/* Preview -------------------------------------------------------------------- */
.pass-on__preview {
  position: sticky; top: calc(66px + var(--space-6));
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
}
.pass-on__views {
  display: inline-flex; padding: 4px; gap: 4px;
  border: 1px solid var(--line-2); border-radius: var(--radius-pill); background: var(--card);
}
.pass-on__views[hidden] { display: none; }
.pass-on__view {
  min-height: 44px; min-width: 96px; padding: 0 var(--space-5);
  border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--ink-2); font: inherit; font-weight: 600; font-size: var(--text-sm); cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.pass-on__view:hover { color: var(--ink); }
.pass-on__view.is-on { background: var(--accent-fill); color: var(--on-accent); }
.pass-on__view:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.pass-on__frame { margin: 0; width: 100%; max-width: 340px; border-radius: var(--radius-lg); }
.pass-on__frame[hidden] { display: none; }
.pass-on__img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); background: var(--accent-050);
}
.pass-on__frame--story .pass-on__img { aspect-ratio: 9 / 16; }
.pass-on__frame--square .pass-on__img { aspect-ratio: 1 / 1; }
.pass-on__cap {
  margin-top: var(--space-3); text-align: center;
  font-size: var(--text-xs); color: var(--ink-3);
}
/* With the switch in charge only one frame shows, so its caption is redundant. */
.pass-on__views:not([hidden]) ~ .pass-on__frame .pass-on__cap { display: none; }

/* Action boxes ----------------------------------------------------------------- */
.pass-on__actions { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.pass-on__box { padding: var(--space-6); }
.pass-on__title { font-size: var(--text-lg); margin-bottom: var(--space-4); }
.pass-on__hint { font-size: var(--text-sm); margin-bottom: var(--space-4); }
.pass-on__label {
  display: block; font-size: var(--text-sm); font-weight: 600;
  color: var(--ink-2); margin: var(--space-5) 0 var(--space-2);
}
.pass-on__wide { display: flex; width: 100%; justify-content: center; }
.pass-on__native { margin-bottom: var(--space-4); }
.pass-on__native[hidden] { display: none; }

.pass-on__via {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.pass-on__via-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); min-height: 48px; padding: .6rem 1rem;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
  font-weight: 600; font-size: var(--text-sm);
  transition: box-shadow .14s ease, transform .14s ease, border-color .14s ease, color .14s ease;
}
.pass-on__via-btn:hover {
  text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-1px);
  border-color: var(--accent); color: var(--accent);
}
.pass-on__via-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pass-on__via-btn svg { flex: none; }

.pass-on__copy { display: flex; gap: var(--space-2); align-items: stretch; }
.pass-on__copy .form-input { flex: 1; min-width: 0; min-height: 44px; font-size: var(--text-sm); color: var(--ink-2); }
.pass-on__copy-btn { flex: none; min-height: 44px; }

/* Downloads -------------------------------------------------------------------- */
.pass-on__dls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.pass-on__dl {
  display: flex; align-items: center; gap: var(--space-3);
  min-height: 64px; padding: var(--space-3) var(--space-4);
  justify-content: flex-start; text-align: left;
}
.pass-on__dl:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.pass-on__dl > svg { margin-left: auto; flex: none; color: var(--ink-3); }
.pass-on__dl.is-busy { opacity: .6; cursor: progress; }
.pass-on__dl-text { display: flex; flex-direction: column; line-height: 1.2; }
.pass-on__dl-text small { font-size: var(--text-xs); font-weight: 500; color: var(--ink-3); }
.pass-on__shape {
  flex: none; display: block; width: 18px; border-radius: 4px;
  background: linear-gradient(160deg, var(--accent), var(--accent-fill-strong));
}
.pass-on__shape--story { height: 32px; }
.pass-on__shape--square { height: 18px; width: 22px; margin: 7px 0; }

/* Refer a mate ------------------------------------------------------------------- */
.refer__result { margin-top: var(--space-5); }

@media (max-width: 860px) {
  .pass-on__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .pass-on__preview { position: static; }
  .pass-on__frame { max-width: 280px; }
}
@media (max-width: 420px) {
  .pass-on__dls { grid-template-columns: 1fr; }
  .pass-on__box { padding: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) {
  .pass-on__via-btn, .pass-on__view { transition: none; }
  .pass-on__via-btn:hover, .pass-on__dl:hover { transform: none; }
}

/* ==========================================================================
   Reusable compact share row (partials/share-buttons.php).
   Loaded globally so it works on the job detail + swipe cards too.
   ========================================================================== */

.pass-on-btns { position: relative; display: inline-flex; align-items: center; }

.pass-on-btns__row { display: inline-flex; align-items: center; gap: var(--space-2); }

.pass-on-btns__net {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink-2); cursor: pointer;
  transition: box-shadow .14s ease, transform .14s ease, color .14s ease, border-color .14s ease;
}
.pass-on-btns__net:hover {
  text-decoration: none; color: var(--accent); border-color: var(--accent);
  box-shadow: var(--shadow-sm); transform: translateY(-1px);
}

/* Single Share button (revealed by share.js) */
.pass-on-btns__toggle {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: .55rem 1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink); font-weight: 600; font-size: var(--text-sm); cursor: pointer;
  transition: box-shadow .14s ease, transform .14s ease, border-color .14s ease;
}
.pass-on-btns__toggle:hover {
  box-shadow: var(--shadow-sm); transform: translateY(-1px); border-color: var(--accent);
}

/* When enhanced, collapse the raw row into the single Share button. */
.pass-on-btns.is-enhanced .pass-on-btns__row { display: none; }

/* Popover fallback (no navigator.share) */
.pass-on-btns__pop {
  position: absolute; top: calc(100% + var(--space-2)); right: 0;
  z-index: var(--z-dropdown); min-width: 180px;
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-2); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-lg);
}
.pass-on-btns__popitem {
  display: flex; align-items: center; gap: var(--space-3);
  padding: .55rem .7rem; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); text-align: left;
  font-weight: 500; font-size: var(--text-sm); cursor: pointer; width: 100%;
}
.pass-on-btns__popitem:hover { background: var(--accent-050); color: var(--accent); text-decoration: none; }
.pass-on-btns__popitem svg { flex: none; color: var(--ink-3); }
.pass-on-btns__popitem:hover svg { color: var(--accent); }
/* =====================================================================
   yournextjob - swipe-to-apply deck
   Full-bleed mobile card stack. Tokens only, soft-premium.
   ===================================================================== */

/* Cards travel the whole width while dragged and fly off the edge of the page;
   the page (not the deck) clips them, so a flung card never adds a sideways
   scrollbar and a dragged one is never cut off by an invisible wall. */
.page-swipe main { padding: 0; overflow-x: hidden; overflow-x: clip; }

.swipe-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: var(--space-5) 0 var(--space-6);
}

/* ---------- Top bar ---------- */
.swipe-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}
.swipe-title { font-size: var(--text-2xl); margin: 0 0 var(--space-1); }
.swipe-context { font-size: var(--text-sm); margin: 0; }
.swipe-progress {
  flex: none;
  margin: 0;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--accent-050);
  color: var(--link);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Stage + deck ---------- */
.swipe-stage {
  position: relative;
  height: clamp(340px, 52vh, 480px);
}
.swipe-deck { position: absolute; inset: 0; }

.swipe-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  touch-action: none;
  /* A press-and-hold on the card text must not start a text selection or the
     iOS callout: either one cancels the pointer stream mid-swipe. */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  transform-origin: center bottom;
  transition: transform .34s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}
.swipe-card.is-top { cursor: grab; will-change: transform; box-shadow: var(--shadow-md); }
.swipe-card.is-dragging { cursor: grabbing; transition: none; }
.swipe-card.is-gone { pointer-events: none; }

/* ---------- Card head ---------- */
/* No header band: the title leads. A logo shows only when the employer uploaded
   one; paid placement and "New" are quiet words beside the company (.card-flag). */
.swipe-card__top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5) 0;
  flex-shrink: 0;
}
.swipe-card__logo {
  flex: none;
  width: 52px; height: 52px;
  border-radius: var(--radius);
  object-fit: contain;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line-2);
}
.swipe-card__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }

/* ---------- Card body ---------- */
.swipe-card__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-5);
  overflow: hidden;
}
.swipe-card__title {
  font-size: var(--text-xl);
  line-height: 1.3;
  margin: 0;
  flex-shrink: 0;              /* the title must never be squeezed or top-clipped */
  padding-top: 2px;           /* headroom so the first line's ascenders never clip */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.swipe-card__company { margin: 0; color: var(--ink-2); font-weight: 500; flex-shrink: 0; }
.swipe-card__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.swipe-card__facts li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-2);
  font-size: var(--text-sm);
}
.swipe-card__facts svg { color: var(--ink-faint); flex: none; }
.swipe-card__pay { color: var(--ink) !important; font-weight: 600; }
.swipe-card__pay svg { color: var(--apply-text) !important; }
.swipe-card__summary {
  margin: 0;
  min-height: 0;
  flex: 1 1 auto;             /* the description is the flexible part that clips, not the title */
  color: var(--ink-2);
  font-size: var(--text-sm);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.swipe-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }

.swipe-card__more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3);
  border-top: 1px solid var(--line);
  color: var(--link);
  font-size: var(--text-sm);
  font-weight: 600;
}
.swipe-card__more:hover { text-decoration: none; background: var(--accent-050); }

/* ---------- Swipe stamps ---------- */
.swipe-card__stamp {
  position: absolute;
  top: var(--space-6);
  z-index: 5;
  padding: var(--space-1) var(--space-4);
  border: 3px solid currentColor;
  border-radius: var(--radius);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}
.swipe-card__stamp--apply { left: var(--space-6); color: var(--apply); transform: rotate(-14deg); }
.swipe-card__stamp--pass  { right: var(--space-6); color: var(--red); transform: rotate(14deg); }
.swipe-card__stamp--save  {
  left: 50%;
  top: auto;
  bottom: var(--space-10);
  color: var(--accent);
  transform: translateX(-50%) rotate(-4deg);
}

/* ---------- Controls ---------- */
.swipe-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
}
.swipe-btn {
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 2px solid var(--line-2);
  background: var(--card);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}
.swipe-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.swipe-btn:active { transform: translateY(0); }
.swipe-btn--skip { width: 60px; height: 60px; color: var(--skip); }
.swipe-btn--skip:hover { color: var(--red); border-color: var(--red); }
.swipe-btn--save { width: 54px; height: 54px; color: var(--accent); }
.swipe-btn--save:hover { border-color: var(--accent); background: var(--accent-050); }
.swipe-btn--apply {
  width: 72px; height: 72px;
  color: var(--on-accent);
  background: var(--accent-fill);
  border-color: var(--accent-fill);
}
.swipe-btn--apply:hover { background: var(--accent-fill-strong); border-color: var(--accent-fill-strong); }

.swipe-hint {
  margin: 0;
  text-align: center;
  color: var(--ink-3);
  font-size: var(--text-xs);
  line-height: 1.5;
}

/* ---------- End state ---------- */
.swipe-end {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.swipe-end:focus-visible { box-shadow: var(--focus-ring); }
.swipe-end__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: var(--radius-pill);
  background: var(--apply-050);
  color: var(--apply-text);
}
.swipe-end h2 { margin: 0; font-size: var(--text-2xl); }
.swipe-end p { margin: 0; max-width: 34ch; }
.swipe-end__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .swipe-card { transition: opacity .28s ease; }
  .swipe-btn { transition: none; }
  .swipe-btn:hover { transform: none; }
}

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  .swipe-page { padding-top: var(--space-8); }
  .swipe-stage { height: clamp(400px, 56vh, 500px); }
}

/* ---------- Feel layer (swipe.js): looks only, never the decisions ---------- */
/* 3D room for a held card to turn in, and a soft overshoot when cards settle. */
.swipe-deck { perspective: 1200px; }
@media (prefers-reduced-motion: no-preference) {
  .swipe-card { transition: transform .5s var(--ease-spring, cubic-bezier(.34, 1.56, .64, 1)), opacity .3s ease; }
  .swipe-card.is-dragging { transition: none; }
  /* the cards behind follow the pull closely rather than lagging */
  .swipe-card.is-following { transition: transform .14s linear, opacity .3s ease; }
  /* a slow breath on the top card when nothing is happening */
  .swipe-card.is-top.is-idle { animation: swipe-breathe 5.5s ease-in-out infinite; }
  /* once, on a first visit: a little left and right to show the cards move */
  .swipe-card.is-top.is-nudge { animation: swipe-nudge 1.5s cubic-bezier(.45, 0, .2, 1) 1; }
  .swipe-btn { transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease, border-color .12s ease, scale .18s ease-out; }
  .swipe-btn--apply { scale: calc(1 + var(--go-apply, 0) * .14); }
  .swipe-btn--skip  { scale: calc(1 + var(--go-skip, 0) * .14); }
  .swipe-btn--save  { scale: calc(1 + var(--go-save, 0) * .14); }
}
@keyframes swipe-breathe { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes swipe-nudge {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25% { translate: 34px 0; rotate: 2.5deg; }
  60% { translate: -26px 0; rotate: -2deg; }
  82% { translate: 6px 0; rotate: .4deg; }
}
/* A sheen that follows the drag across the card. */
.swipe-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, var(--sheen) 50%, transparent 58%);
  transform: translate(calc(-18% + var(--sx, 0) * 30%), calc(var(--sy, 0) * 12%));
  opacity: 0;
  transition: opacity .3s ease;
}
.swipe-card.is-dragging::after { opacity: .7; }
@media (prefers-reduced-motion: reduce) {
  .swipe-card::after { display: none; }
}
/* yournextjob — free tools hub + tool pages. Namespaced: tools-, tool-,
   thp-/thp__, cl-/cl__, iq-, cv-/cv__, salary-. Tokens only, mobile-first. */

/* ---------- Shared shells ---------- */
.tools-hero{ padding:var(--space-12) 0 var(--space-8); }
.tools-hero .breadcrumb{ margin-bottom:var(--space-5); }
.tools-hero h1{ font-size:clamp(2.1rem,5.5vw,var(--text-4xl)); }
.tools-hero .lead{ max-width:60ch; }
.tools-hero--tool{ border-bottom:1px solid var(--line); }

.tools-body{ padding-bottom:var(--space-16); }

/* Full width + left-aligned, consistent with the hero (was capped at
   container-narrow + centred, which left the content floating in the middle
   with big side margins). */
.tools-prose{ margin:var(--space-12) 0 0; }
.tools-prose h2{ margin-top:var(--space-10); }
.tools-prose h3{ margin-top:var(--space-8); font-size:var(--text-lg); }
.tools-prose p, .tools-prose li{ color:var(--ink-2); }
.tools-prose a{ color:var(--link); font-weight:600; }

.tools-note{ background:var(--amber-050); border:1px solid var(--line-2); border-left:3px solid var(--amber);
  border-radius:var(--radius); padding:var(--space-4) var(--space-5); margin:var(--space-6) 0;
  font-size:var(--text-sm); color:var(--ink-2); }
.tools-note strong{ color:var(--ink); }

.tools-tips{ list-style:none; margin:var(--space-4) 0 0; padding:0; display:grid; gap:var(--space-3); }
.tools-tips li{ position:relative; padding-left:var(--space-6); color:var(--ink-2); }
.tools-tips li::before{ content:""; position:absolute; left:0; top:.55em; width:8px; height:8px;
  border-radius:var(--radius-pill); background:var(--accent); }

.tools-cta{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-5);
  margin-top:var(--space-12); padding:var(--space-8); background:var(--accent-050);
  border:1px solid var(--line-2); border-radius:var(--radius-lg); }
.tools-cta h2{ margin:0 0 var(--space-1); font-size:var(--text-xl); }
.tools-cta p{ margin:0; color:var(--ink-2); }
.tools-cta .btn{ flex-shrink:0; }

/* ---------- Shared tables ---------- */
/* position:relative keeps sr-only header labels inside the scroller (they escaped and made phones scroll sideways). */
.tools-table-wrap{ position:relative; overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--line);
  border-radius:var(--radius); margin:var(--space-4) 0; }
.tools-table{ width:100%; border-collapse:collapse; font-size:var(--text-sm); }
.tools-table th, .tools-table td{ text-align:left; padding:var(--space-3) var(--space-4);
  border-bottom:1px solid var(--line); white-space:nowrap; }
.tools-table thead th{ background:var(--page); color:var(--ink-2); font-weight:600; font-size:var(--text-xs);
  text-transform:uppercase; letter-spacing:.03em; }
.tools-table tbody tr:last-child th, .tools-table tbody tr:last-child td{ border-bottom:0; }

/* ---------- Hub grid ---------- */
.tools-grid{ list-style:none; margin:0; padding:0; display:grid; gap:var(--space-4);
  grid-template-columns:1fr; }
.tool-card{ display:flex; }
.tool-card__link{ display:flex; align-items:flex-start; gap:var(--space-4); width:100%;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-5); transition:box-shadow .14s ease, transform .14s ease, border-color .14s ease; }
.tool-card__link:hover{ text-decoration:none; box-shadow:var(--shadow-md); transform:translateY(-1px);
  border-color:var(--line-2); }
.tool-card__icon{ flex-shrink:0; display:inline-flex; align-items:center; justify-content:center;
  width:52px; height:52px; border-radius:var(--radius); background:var(--accent-050); color:var(--accent); }
.tool-card__body{ display:flex; flex-direction:column; gap:var(--space-1); flex:1; }
.tool-card__title{ font-weight:600; color:var(--ink); font-size:var(--text-lg); }
.tool-card__desc{ color:var(--ink-2); font-size:var(--text-sm); line-height:1.5; }
.tool-card__go{ flex-shrink:0; align-self:center; color:var(--ink-faint); transition:color .14s ease, transform .14s ease; }
.tool-card__link:hover .tool-card__go{ color:var(--accent); transform:translateX(2px); }

@media (min-width:640px){
  .tools-grid{ grid-template-columns:repeat(2,1fr); }
}

/* ---------- Take-home pay ---------- */
.thp{ display:grid; gap:var(--space-6); grid-template-columns:1fr; align-items:start; }
.thp__form{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-6); }
.thp__modes{ display:flex; gap:var(--space-2); background:var(--page); border:1px solid var(--line-2);
  border-radius:var(--radius-pill); padding:var(--space-1); margin-bottom:var(--space-5); }
.thp__mode{ flex:1; }
.thp__mode input{ position:absolute; opacity:0; width:1px; height:1px; }
.thp__mode span{ display:block; text-align:center; padding:.55rem .75rem; border-radius:var(--radius-pill);
  font-size:var(--text-sm); font-weight:600; color:var(--ink-2); cursor:pointer; transition:background .14s ease, color .14s ease; }
.thp__mode input:checked + span{ background:var(--card); color:var(--accent); box-shadow:var(--shadow-sm); }
.thp__mode input:focus-visible + span{ box-shadow:var(--focus-ring); }

.thp__fields{ display:grid; gap:var(--space-4); }
.thp__field{ display:flex; flex-direction:column; gap:var(--space-2); }
.thp__label{ font-weight:600; font-size:var(--text-sm); color:var(--ink); }
.thp__input{ display:flex; align-items:center; border:1px solid var(--line-2); border-radius:var(--radius);
  background:var(--card); overflow:hidden; transition:border-color .14s ease, box-shadow .14s ease; }
.thp__input:focus-within{ border-color:var(--accent); box-shadow:var(--focus-ring); }
.thp__prefix{ padding:0 var(--space-3); color:var(--ink-3); font-weight:600; border-right:1px solid var(--line); align-self:stretch;
  display:flex; align-items:center; background:var(--page); }
.thp__input input{ flex:1; width:100%; border:0; background:transparent; padding:.7rem .85rem;
  font-size:var(--text-lg); font-weight:600; color:var(--ink); min-width:0; }
.thp__input input:focus{ outline:none; }
.thp__hint{ margin:var(--space-5) 0 0; font-size:var(--text-xs); }

.thp__results{ background:var(--ink); color:var(--card); border-radius:var(--radius-lg); padding:var(--space-6);
  background:linear-gradient(160deg, var(--accent-fill-strong), var(--accent-fill)); }
.thp__headline-label{ margin:0 0 var(--space-1); font-size:var(--text-sm); opacity:.85; color:var(--on-accent); }
.thp__net{ margin:0; font-size:clamp(2.4rem,8vw,var(--text-4xl)); font-weight:700; letter-spacing:-.02em; color:var(--on-accent); line-height:1; }
.thp__net-sub{ margin:var(--space-1) 0 0; opacity:.85; color:var(--on-accent); font-size:var(--text-sm); }
.thp__cadence{ display:flex; gap:var(--space-3); margin:var(--space-5) 0; }
.thp__cad{ flex:1; background:rgba(255,255,255,.14); border-radius:var(--radius); padding:var(--space-3) var(--space-4); }
.thp__cad-val{ display:block; font-size:var(--text-lg); font-weight:700; color:var(--on-accent); }
.thp__cad-lab{ display:block; font-size:var(--text-xs); opacity:.85; color:var(--on-accent); }

.thp__breakdown{ width:100%; border-collapse:collapse; margin-top:var(--space-2); }
.thp__breakdown th, .thp__breakdown td{ padding:var(--space-3) 0; text-align:left; font-size:var(--text-sm);
  border-bottom:1px solid rgba(255,255,255,.18); color:var(--on-accent); }
.thp__breakdown td{ text-align:right; font-variant-numeric:tabular-nums; font-weight:600; }
.thp__breakdown th{ font-weight:500; opacity:.9; }
.thp__row--minus td{ opacity:.9; }
.thp__row--total th, .thp__row--total td{ border-bottom:0; font-size:var(--text-base); font-weight:700; opacity:1; padding-top:var(--space-4); }

@media (min-width:820px){
  .thp{ grid-template-columns:1fr 1fr; }
}

/* ---------- Cover letter ---------- */
.cl{ display:grid; gap:var(--space-6); grid-template-columns:1fr; align-items:start; }
.cl__form{ display:grid; gap:var(--space-4); background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius-lg); padding:var(--space-6); }
.cl__field{ display:flex; flex-direction:column; gap:var(--space-2); border:0; padding:0; margin:0; min-width:0; }
.cl__label{ font-weight:600; font-size:var(--text-sm); color:var(--ink); padding:0; }
.cl__strengths{ gap:var(--space-2); }
.cl__tones{ display:flex; gap:var(--space-2); }
.cl__tone{ flex:1; }
.cl__tone input{ position:absolute; opacity:0; width:1px; height:1px; }
.cl__tone span{ display:block; text-align:center; padding:.6rem .75rem; border:1px solid var(--line-2);
  border-radius:var(--radius); font-size:var(--text-sm); font-weight:600; color:var(--ink-2); cursor:pointer;
  transition:all .14s ease; }
.cl__tone input:checked + span{ border-color:var(--accent); color:var(--accent); background:var(--accent-050); }
.cl__tone input:focus-visible + span{ box-shadow:var(--focus-ring); }

.cl__preview{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-6); position:sticky; top:calc(66px + var(--space-4)); }
.cl__preview-head{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-3);
  margin-bottom:var(--space-4); padding-bottom:var(--space-4); border-bottom:1px solid var(--line); }
.cl__preview-title{ margin:0; font-size:var(--text-lg); }
.cl__copy{ flex-shrink:0; }
.cl__letter{ font-size:var(--text-sm); line-height:1.7; color:var(--ink); }
.cl__letter p{ margin:0 0 var(--space-4); }
.cl__letter p:last-child{ margin-bottom:0; }
.cl__letter b{ font-weight:600; }

@media (min-width:820px){
  .cl{ grid-template-columns:1fr 1fr; }
}

/* ---------- Salary guide ---------- */
.salary-sector{ margin-top:var(--space-8); }
.salary-sector:first-of-type{ margin-top:var(--space-6); }
.salary-sector__head{ font-size:var(--text-xl); margin-bottom:var(--space-3); }
.salary-table__role{ font-weight:600; color:var(--ink); white-space:normal; }
.salary-table td{ font-variant-numeric:tabular-nums; }
.salary-table__dash{ color:var(--ink-faint); margin:0 .15em; }
.salary-table__cta{ text-align:right; }
.salary-table__link{ display:inline-flex; align-items:center; gap:var(--space-1); font-weight:600;
  color:var(--accent); font-size:var(--text-sm); }
.salary-table__link:hover{ text-decoration:none; color:var(--accent-strong); }

/* ---------- Interview questions ---------- */
.iq-jump{ display:flex; flex-wrap:wrap; gap:var(--space-2); margin-bottom:var(--space-8); }
.iq-group{ margin-top:var(--space-10); scroll-margin-top:calc(66px + var(--space-4)); }
.iq-group:first-of-type{ margin-top:var(--space-4); }
.iq-group__head{ margin-bottom:var(--space-5); }
.iq-group__head h2{ margin:0 0 var(--space-2); }
.iq-group__head p{ margin:0; max-width:64ch; }
.iq-list{ list-style:none; margin:0; padding:0; display:grid; gap:var(--space-4); }
.iq-item{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-5); }
.iq-item__q{ margin:0 0 var(--space-2); font-size:var(--text-base); font-weight:600; color:var(--ink); }
.iq-item__tip{ margin:0; color:var(--ink-2); font-size:var(--text-sm); line-height:1.6; }
.iq-item__tag{ display:inline-block; margin-right:var(--space-2); padding:.12rem .5rem; border-radius:var(--radius-pill);
  background:var(--apply-050); color:var(--apply-text); font-size:var(--text-xs); font-weight:700;
  text-transform:uppercase; letter-spacing:.03em; vertical-align:middle; }

@media (min-width:720px){
  .iq-list{ grid-template-columns:repeat(2,1fr); }
}

/* ---------- FAQ ---------- */
.tools-faq{ display:grid; gap:var(--space-3); margin-top:var(--space-4); }
.tools-faq__item{ border:1px solid var(--line); border-radius:var(--radius); background:var(--card);
  overflow:hidden; }
.tools-faq__q{ list-style:none; cursor:pointer; padding:var(--space-4) var(--space-5); font-weight:600;
  color:var(--ink); display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); }
.tools-faq__q::-webkit-details-marker{ display:none; }
.tools-faq__q::after{ content:"+"; font-size:var(--text-xl); color:var(--accent); line-height:1; flex-shrink:0; }
.tools-faq__item[open] .tools-faq__q::after{ content:"\2212"; }
.tools-faq__a{ padding:0 var(--space-5) var(--space-5); }
.tools-faq__a p{ margin:0; color:var(--ink-2); font-size:var(--text-sm); line-height:1.7; }

/* ---------- CV checklist ---------- */
.cv{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-6); }
.cv__progress{ position:sticky; top:calc(66px + var(--space-2)); z-index:var(--z-sticky); background:var(--card);
  padding:var(--space-2) 0 var(--space-3); }
.cv__progress-bar{ height:10px; background:var(--page); border:1px solid var(--line-2); border-radius:var(--radius-pill); overflow:hidden; }
.cv__progress-fill{ display:block; height:100%; width:0; background:var(--apply); border-radius:var(--radius-pill);
  transition:width .25s ease; }
.cv__progress-text{ margin:var(--space-2) 0 0; font-size:var(--text-sm); font-weight:600; color:var(--ink-2); }
.cv__actions{ margin:var(--space-2) 0 var(--space-6); }
.cv__reset{ font-size:var(--text-sm); }

.cv__section{ margin-top:var(--space-6); }
.cv__section-head{ font-size:var(--text-lg); margin-bottom:var(--space-3); padding-bottom:var(--space-2);
  border-bottom:1px solid var(--line); }
.cv__list{ list-style:none; margin:0; padding:0; display:grid; gap:var(--space-1); }
.cv__check{ display:flex; align-items:flex-start; gap:var(--space-3); padding:var(--space-3);
  border-radius:var(--radius); cursor:pointer; transition:background .12s ease; }
.cv__check:hover{ background:var(--page); }
.cv__box{ position:absolute; opacity:0; width:1px; height:1px; }
.cv__box-face{ flex-shrink:0; width:24px; height:24px; border:2px solid var(--line-2); border-radius:var(--radius-sm);
  display:inline-flex; align-items:center; justify-content:center; color:#fff; background:var(--card);
  transition:background .14s ease, border-color .14s ease; margin-top:1px; }
.cv__box-face svg{ opacity:0; transition:opacity .1s ease; }
.cv__box:checked + .cv__box-face{ background:var(--apply); border-color:var(--apply); }
.cv__box:checked + .cv__box-face svg{ opacity:1; }
.cv__box:focus-visible + .cv__box-face{ box-shadow:var(--focus-ring); }
.cv__label{ color:var(--ink); font-size:var(--text-sm); line-height:1.5; padding-top:2px; }
.cv__box:checked ~ .cv__label{ color:var(--ink-3); text-decoration:line-through; }

.cv__tips{ display:grid; gap:var(--space-4); grid-template-columns:1fr; margin-top:var(--space-8); }
.cv__tip{ border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-6); background:var(--card); }
.cv__tip-head{ display:flex; align-items:center; gap:var(--space-2); font-size:var(--text-lg); margin-bottom:var(--space-2); }
.cv__tip--do .cv__tip-head{ color:var(--apply-text); }
.cv__tip--dont .cv__tip-head{ color:var(--red-strong); }

@media (min-width:720px){
  .cv__tips{ grid-template-columns:1fr 1fr; }
}

/* ---------- Shared tool extras (pay rise, holiday, redundancy) ---------- */
/* Suffix unit (e.g. %) sits on the right of the input instead of a £ prefix. */
.thp__prefix--suffix{ border-right:0; border-left:1px solid var(--line); }
/* A small footnote inside the accent results panel. */
.thp__foot{ margin:var(--space-4) 0 0; font-size:var(--text-xs); color:var(--on-accent); opacity:.85; line-height:1.5; }

/* ---------- Umbrella vs PAYE ---------- */
.uvp{ display:grid; gap:var(--space-6); }
.uvp__form{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-6); }
.uvp__inputs{ display:grid; gap:var(--space-4); margin-top:var(--space-5); }

.uvp__compare{ display:grid; gap:var(--space-4); grid-template-columns:1fr; align-items:start; }
.uvp__card{ border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-6); background:var(--card); }
.uvp__card--umb{ border-color:transparent; color:var(--on-accent);
  background:linear-gradient(160deg, var(--accent-fill-strong), var(--accent-fill)); }
.uvp__card-tag{ margin:0 0 var(--space-2); font-size:var(--text-xs); font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; color:var(--ink-3); }
.uvp__card--umb .uvp__card-tag{ color:var(--on-accent); opacity:.85; }
.uvp__card-net{ margin:0; font-size:clamp(1.9rem,6vw,var(--text-3xl)); font-weight:700; letter-spacing:-.02em;
  line-height:1; color:var(--ink); }
.uvp__card--umb .uvp__card-net{ color:var(--on-accent); }
.uvp__card-sub{ margin:var(--space-1) 0 var(--space-4); font-size:var(--text-sm); color:var(--ink-2); }
.uvp__card--umb .uvp__card-sub{ color:var(--on-accent); opacity:.85; }

.uvp__lines{ width:100%; border-collapse:collapse; }
.uvp__lines th, .uvp__lines td{ padding:var(--space-2) 0; text-align:left; font-size:var(--text-sm);
  border-bottom:1px solid var(--line); color:var(--ink); }
.uvp__lines td{ text-align:right; font-variant-numeric:tabular-nums; font-weight:600; }
.uvp__lines th{ font-weight:500; color:var(--ink-2); }
.uvp__line--minus td{ color:var(--ink-3); }
.uvp__line--total th, .uvp__line--total td{ border-bottom:0; font-weight:700; font-size:var(--text-base); padding-top:var(--space-3); }
.uvp__card--umb .uvp__lines th, .uvp__card--umb .uvp__lines td{ border-bottom-color:rgba(255,255,255,.18); color:var(--on-accent); }
.uvp__card--umb .uvp__lines th{ opacity:.9; }
.uvp__card--umb .uvp__line--minus td{ opacity:.9; }

.uvp__diff{ margin:0; padding:var(--space-4) var(--space-5); background:var(--accent-050); border:1px solid var(--line-2);
  border-radius:var(--radius); font-size:var(--text-sm); font-weight:600; color:var(--ink); text-align:center; }

@media (min-width:560px){
  .uvp__inputs [data-uvp-day], .uvp__inputs [data-uvp-hour]{ grid-template-columns:1fr 1fr; }
}
@media (min-width:720px){
  .uvp__compare{ grid-template-columns:1fr 1fr; }
}

/* =====================================================================
   Mobile tap-comfort + overflow safety (<=820px, touch widths only).
   Desktop layout is untouched. Tokens only; px used only for the 44px
   minimum touch target, matching the sitewide tap-comfort layer.
   ===================================================================== */
@media (max-width:820px){
  /* Segmented radio toggles (Annual/Hourly, Day/Hourly, %/amount, Days/Hours):
     the coloured <span> is the tap target, so give it a full 44px height and
     centre its label vertically. */
  .thp__mode span, .cl__tone span{ min-height:44px; display:flex;
    align-items:center; justify-content:center; }

  /* Number inputs comfortably clear 44px on touch. */
  .thp__input input{ min-height:44px; }

  /* Result-panel breakdown tables must wrap their own labels, never push the
     dark panel (and the page) sideways. */
  .thp__breakdown th, .thp__breakdown td,
  .uvp__lines th, .uvp__lines td{ overflow-wrap:break-word; }

  /* Hub cards: let the "go" chevron hold its column so a long title wraps
     instead of shoving the row wider than the screen. */
  .tool-card__body{ min-width:0; }
  .tool-card__title, .tool-card__desc{ overflow-wrap:break-word; }
}
/* =====================================================================
   yournextjob: two-step sign in (security page, recovery codes, the
   dashboard prompt, the code step at sign in). CSS variables only.
   ===================================================================== */

/* A QR code must stay dark on light in both themes or phones cannot read it,
   so it has its own pair of tokens that dark mode does not remap. */
:root{ --qr-paper:#FFFFFF; --qr-ink:#211E2E; }

.tf-page{ padding:var(--space-8) 0 var(--space-16); }
.tf-page__head{ margin-bottom:var(--space-6); }
.tf-page__head h1{ font-size:var(--text-3xl); margin-bottom:var(--space-2); }
.tf-page__head p:last-child{ margin:0; }

.tf-notice{
  margin-bottom:var(--space-5); padding:var(--space-4) var(--space-5);
  background:var(--amber-050); color:var(--ink); border-radius:var(--radius);
  border:1px solid var(--line-2); font-size:var(--text-sm);
}

.tf-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:var(--space-6); box-shadow:var(--shadow-sm); margin-bottom:var(--space-5);
}
.tf-card h2{ font-size:var(--text-lg); margin:0; }
.tf-card__top{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); margin-bottom:var(--space-4); }
.tf-lead{ color:var(--ink-2); font-size:var(--text-sm); max-width:62ch; }

.tf-pill{ display:inline-flex; align-items:center; padding:2px 12px; border-radius:var(--radius-pill); font-size:var(--text-xs); font-weight:700; }
.tf-pill.is-on{ background:var(--apply-050); color:var(--apply-text); }
.tf-pill.is-off{ background:var(--page); color:var(--ink-2); border:1px solid var(--line-2); }

.tf-facts{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-3); margin:0 0 var(--space-4); }
.tf-facts div{ background:var(--page); border-radius:var(--radius); padding:var(--space-3) var(--space-4); }
.tf-facts dt{ font-size:var(--text-xs); color:var(--ink-3); }
.tf-facts dd{ margin:0; font-weight:600; }

.tf-warn{ font-size:var(--text-sm); color:var(--ink); background:var(--amber-050); border-radius:var(--radius-sm); padding:var(--space-2) var(--space-3); margin:var(--space-4) 0 0; }

.tf-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-3); }
.tf-inline{ display:inline; margin:0; }
.tf-danger-btn{ color:var(--red-strong); border-color:var(--red-050); }
.tf-danger-btn:hover{ background:var(--red-050); }
/* --card as the text colour: white on the deep red in light, dark on the pale red in dark. */
.tf-danger{ background:var(--red-strong); border-color:var(--red-strong); color:var(--card); }

.tf-linkbtn{
  background:none; border:0; padding:var(--space-2) 0; color:var(--link); font:inherit;
  font-size:var(--text-sm); font-weight:600; cursor:pointer; min-height:44px;
}
.tf-linkbtn:hover{ text-decoration:underline; }

/* ---------- Set-up steps ---------- */
.tf-steps{ list-style:none; margin:0; padding:0; counter-reset:tf; display:flex; flex-direction:column; gap:var(--space-5); }
.tf-step{ counter-increment:tf; position:relative; padding-left:calc(32px + var(--space-3)); }
.tf-step::before{
  content:counter(tf); position:absolute; left:0; top:0; width:32px; height:32px; border-radius:var(--radius-pill);
  display:flex; align-items:center; justify-content:center; background:var(--accent-050); color:var(--accent); font-weight:700; font-size:var(--text-sm);
}
.tf-step h3{ font-size:var(--text-base); margin:4px 0 var(--space-2); }
.tf-step p{ font-size:var(--text-sm); color:var(--ink-2); }

.tf-qr-row{ display:flex; flex-wrap:wrap; gap:var(--space-5); align-items:flex-start; }
.tf-qr{ flex:none; width:200px; max-width:100%; padding:var(--space-2); background:var(--qr-paper); border:1px solid var(--line-2); border-radius:var(--radius); }
.tf-qr__svg{ display:block; width:100%; height:auto; }
.tf-qr__bg{ fill:var(--qr-paper); }
.tf-qr__ink{ fill:var(--qr-ink); }
.tf-key{ flex:1 1 220px; min-width:0; }
.tf-key__value{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:var(--text-base); color:var(--ink);
  letter-spacing:.06em; word-break:break-all; background:var(--page); border:1px solid var(--line-2);
  border-radius:var(--radius-sm); padding:var(--space-2) var(--space-3); margin-bottom:var(--space-3);
}
.tf-code-input{ max-width:220px; font-size:var(--text-lg); letter-spacing:.12em; font-variant-numeric:tabular-nums; }
.tf-restart{ margin-top:var(--space-2); }

/* ---------- Recovery codes ---------- */
.tf-codes{ list-style:none; margin:0 0 var(--space-5); padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-2); }
.tf-codes li{ background:var(--page); border:1px solid var(--line-2); border-radius:var(--radius-sm); padding:var(--space-2) var(--space-3); text-align:center; }
.tf-codes code{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:var(--text-base); color:var(--ink); letter-spacing:.06em; }

/* ---------- FAQ ---------- */
.tf-faq h2{ margin-bottom:var(--space-3); }
.tf-faq details{ border-top:1px solid var(--line); padding:var(--space-3) 0; }
.tf-faq details:last-child{ padding-bottom:0; }
.tf-faq summary{ cursor:pointer; font-weight:600; min-height:32px; display:flex; align-items:center; }
.tf-faq details p{ margin:var(--space-2) 0 0; font-size:var(--text-sm); color:var(--ink-2); }
.tf-back{ margin-top:var(--space-5); }

/* ---------- Dialogs ---------- */
.tf-modal{ position:fixed; inset:0; z-index:var(--z-modal); display:flex; align-items:center; justify-content:center; padding:var(--space-4); }
.tf-modal[hidden]{ display:none; }
.tf-modal__backdrop{ position:absolute; inset:0; background:var(--ink); opacity:.45; }
.tf-modal__panel{
  position:relative; width:100%; max-width:440px; max-height:calc(100vh - 2 * var(--space-4)); overflow:auto;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg); padding:var(--space-6);
}
.tf-modal__panel h2{ font-size:var(--text-xl); margin:0 var(--space-10) var(--space-2) 0; }
.tf-modal__close{
  position:absolute; top:var(--space-3); right:var(--space-3); width:44px; height:44px; border:0; background:none;
  color:var(--ink-2); border-radius:var(--radius); display:inline-flex; align-items:center; justify-content:center; cursor:pointer;
}
.tf-modal__close:hover{ background:var(--page); color:var(--ink); }

/* ---------- Dashboard prompt ---------- */
.tf-cta{
  display:flex; align-items:center; gap:var(--space-4); margin:var(--space-6) 0 var(--space-4);
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:var(--space-5); box-shadow:var(--shadow-sm);
}
.tf-cta__icon{ flex:none; width:44px; height:44px; border-radius:var(--radius); display:flex; align-items:center; justify-content:center; background:var(--accent-050); color:var(--accent); }
.tf-cta.is-on .tf-cta__icon{ background:var(--apply-050); color:var(--apply-text); }
.tf-cta__body{ flex:1; min-width:0; }
.tf-cta__title{ font-size:var(--text-base); margin:0 0 var(--space-1); }
.tf-cta__text{ font-size:var(--text-sm); color:var(--ink-2); margin:0; }
.tf-cta__btn{ flex:none; }

/* ---------- Sign-in code step ---------- */
.tf-trust{ align-items:flex-start; gap:var(--space-3); color:var(--ink-2); }
.tf-trust input{ flex:none; margin-top:3px; }
.tf-switch{ margin-top:var(--space-2); }
.tf-switch[hidden]{ display:none; }
.tf-cancel{ text-align:center; margin-top:var(--space-3); }

/* ---------- Self-service recovery (lost phone and codes) ---------- */
.tf-lost{ text-align:center; margin:var(--space-4) 0 0; font-size:var(--text-sm); }
.tf-lost a{ font-weight:600; }
.tf-recover__text{ font-size:var(--text-sm); color:var(--ink-2); margin:0 0 var(--space-4); }
.tf-recover__tip{
  font-size:var(--text-sm); color:var(--ink); background:var(--accent-050); border-radius:var(--radius);
  padding:var(--space-3) var(--space-4); margin:0 0 var(--space-4);
}
.tf-recover__steps{ margin:0 0 var(--space-3); padding-left:var(--space-5); font-size:var(--text-sm); color:var(--ink-2); display:flex; flex-direction:column; gap:var(--space-2); }
.tf-recover .auth-form{ margin-top:var(--space-4); }
.tf-recover .tf-danger:hover{ background:var(--red); border-color:var(--red); }

/* The banner on every signed-in page while a recovery is scheduled. */
.tf-banner{ background:var(--amber-050); border-bottom:1px solid var(--line-2); color:var(--ink); }
.tf-banner__inner{
  max-width:1200px; margin:0 auto; padding:var(--space-3) var(--space-4);
  display:flex; align-items:center; gap:var(--space-3); flex-wrap:wrap;
}
.tf-banner__icon{ flex:none; display:inline-flex; color:var(--amber); }
.tf-banner__text{ flex:1 1 280px; min-width:0; margin:0; font-size:var(--text-sm); }
.tf-banner__form{ margin:0; flex:none; }
.tf-banner__btn{ background:var(--card); color:var(--red-strong); border-color:var(--red); }
.tf-banner__btn:hover{ background:var(--red-050); }
.admin-main .tf-banner{ border:1px solid var(--line-2); border-radius:var(--radius); margin-bottom:var(--space-4); }

/* ---------- Admin: reset another person's two-step sign in ---------- */
.tf-admin-state{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); margin:0 0 var(--space-3); }
.tf-admin-note{ font-size:var(--text-sm); color:var(--ink-2); margin:0 0 var(--space-3); }

@media (max-width:560px){
  .tf-banner__form,.tf-banner__btn{ width:100%; }
  .tf-card,.tf-modal__panel{ padding:var(--space-4); }
  .tf-page__head h1{ font-size:var(--text-2xl); }
  .tf-qr{ width:180px; }
  .tf-actions .btn,.tf-actions .tf-inline,.tf-actions .tf-inline .btn{ width:100%; }
  .tf-cta{ flex-wrap:wrap; }
  .tf-cta__btn{ width:100%; }
  .tf-facts{ grid-template-columns:1fr; }
  .tf-code-input{ max-width:none; }
}
/* Typing speed test tool. Uses app.css design tokens only. Scoped to .tt so it
   never leaks into the shared tools styles (tools.css owns the hero/prose). */

.tt {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  margin-bottom: var(--space-8);
}

@media (min-width: 620px) {
  .tt { padding: var(--space-6); }
}

/* --- Mode toggle (segmented control) ------------------------------------- */
.tt-modes {
  display: flex;
  gap: var(--space-1);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: var(--space-1);
  margin-bottom: var(--space-5);
}

.tt-mode {
  flex: 1 1 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.tt-mode input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.tt-mode:hover { color: var(--ink); }

.tt-mode:has(input:checked) {
  background: var(--card);
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

.tt-mode:has(input:focus-visible) {
  box-shadow: var(--focus-ring);
}

/* --- Live stats ---------------------------------------------------------- */
.tt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.tt-stat {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-2);
  text-align: center;
}

.tt-stat__val {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.tt-stat--wpm .tt-stat__val { color: var(--accent-strong); }

.tt-stat__lab {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tt-stat__sub { color: var(--ink-faint); text-transform: none; letter-spacing: 0; }

/* --- Typing area --------------------------------------------------------- */
.tt-typing {
  position: relative;
  border: 2px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--page);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.tt-typing:focus-within {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.tt-display {
  position: relative;
  height: 8.1rem;
  overflow: hidden;
  padding: var(--space-4);
  font-family: ui-monospace, 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
  font-size: 1.3rem;
  line-height: 2;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  color: var(--ink-faint);
  cursor: text;
  user-select: none;
}

@media (max-width: 480px) {
  .tt-display { font-size: 1.1rem; height: 8.4rem; padding: var(--space-3); }
}

/* The real textarea sits on top, invisible, and captures typing + focus. */
.tt-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: var(--space-4);
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font: inherit;
  resize: none;
  outline: none;
  overflow: hidden;
}

.tt-char { position: relative; }

.tt-char--correct { color: var(--ink); }

.tt-char--wrong {
  color: var(--red-strong);
  background: var(--red-050);
  border-radius: 3px;
}

.tt-char--wrong.tt-char--space { color: transparent; }

.tt-char--caret::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0.15em;
  bottom: 0.15em;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  animation: tt-blink 1s steps(2, start) infinite;
}

@keyframes tt-blink { 50% { opacity: 0; } }

.tt-word--active {
  box-shadow: inset 0 -2px 0 var(--line-2);
}

@media (prefers-reduced-motion: reduce) {
  .tt-char--caret::before { animation: none; }
}

/* --- Controls ------------------------------------------------------------ */
.tt-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.tt-hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.tt-restart {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--ink-2);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.tt-restart:hover { color: var(--ink); border-color: var(--ink-faint); }
.tt-restart:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* --- Results ------------------------------------------------------------- */
.tt-results {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  text-align: center;
}

.tt-results__wpm {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.tt-results__unit {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink-3);
  margin-left: var(--space-1);
}

.tt-results__label {
  margin: var(--space-1) 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-3);
}

.tt-band {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-sm);
  background: var(--accent-050);
  color: var(--accent-strong);
}

.tt-band--beginner { background: var(--amber-050); color: var(--amber); }
.tt-band--average  { background: var(--accent-050); color: var(--accent-strong); }
.tt-band--fast     { background: var(--apply-050); color: var(--apply-text); }
.tt-band--pro      { background: var(--apply-050); color: var(--apply-text); }

.tt-results__meta {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin: var(--space-4) 0;
}

.tt-results__meta div { text-align: center; }

.tt-results__meta strong {
  display: block;
  font-size: var(--text-xl);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.tt-results__meta span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
}

.tt-band-desc {
  max-width: 34rem;
  margin: 0 auto var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.tt-results__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 26rem;
  margin: 0 auto;
}

@media (min-width: 520px) {
  .tt-results__actions { flex-direction: row; }
  .tt-results__actions .btn { flex: 1 1 0; }
}

/* --- Inline tips --------------------------------------------------------- */
.tt-tips {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

.tt-tips li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-2);
}

.tt-tips li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
