/**
 * resources/css/app.css
 * ApplyRole — component styles.
 *
 * Depends on tokens.css, which must be linked first. No hex codes here: every
 * colour, space, radius and shadow comes from a token. This replaces the large
 * inline <style> block that was retyped on roughly eight pages.
 */

/* ── Reset & base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: var(--lh-tight); font-weight: var(--fw-black); letter-spacing: -.02em; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: var(--r-pill); border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* Visible focus for keyboard users only — never remove the ring outright. */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-1); }

/* ── Utilities ──────────────────────────────────────────────────────────── */
.u-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/*
 * Hidden by CLIPPING, not by shoving it 9999px off the left edge. The old hack
 * was invisible in LTR because browsers do not grow the scrollable canvas
 * leftwards — but in an RTL document they DO, so the Arabic site opened onto a
 * 10,000px blank canvas with the actual page parked at the far end. Clip keeps
 * the link focusable and screen-reader-reachable with zero layout footprint in
 * either direction.
 */
.skip {
  position: absolute; top: var(--sp-2); z-index: 999;
  inset-inline-start: var(--sp-4);
  clip-path: inset(50%);
  background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-2); font-weight: var(--fw-bold);
}
.skip:focus { clip-path: none; }

.main { min-height: 60vh; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--sp-5); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 11px 20px; border-radius: var(--r-2);
  font-size: var(--fs-base); font-weight: var(--fw-bold);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: var(--glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--glow-strong); }
.btn--ghost { background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-1); }
.btn--ghost:hover { color: var(--brand); box-shadow: var(--sh-2); }
.btn--quiet { background: var(--bg); color: var(--ink-2); }
.btn--quiet:hover { background: var(--brand-soft); color: var(--brand); }
.btn--lg { padding: 13px 30px; font-size: var(--fs-md); border-radius: var(--r-4); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; pointer-events: none; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(255,255,255,.87);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-black); font-size: var(--fs-lg); }
.nav__logo {
  width: 32px; height: 32px; border-radius: var(--r-1);
  background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-sm); box-shadow: var(--glow); flex-shrink: 0;
}
/* The SVG mark carries its own gradient squircle — the box behind it retires,
   the glow stays (it is the one flourish the brand keeps). */
.nav__logo--mark { background: none; border-radius: 9px; overflow: hidden; }
.nav__logo--mark svg { display: block; }
.nav__name-accent, .rail__name-accent { color: var(--brand); }
.nav__links { display: flex; gap: 2px; margin-left: var(--sp-3); }
.nav__link {
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-2);
  font-size: var(--fs-base); font-weight: var(--fw-med); color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover { background: var(--bg); color: var(--ink-2); }
.nav__link.is-active { background: var(--brand-soft); color: var(--brand); font-weight: var(--fw-bold); }
.nav__spacer { flex: 1; }
.nav__icon {
  position: relative; width: 38px; height: 38px; border-radius: var(--r-2);
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
}
.nav__icon:hover { background: var(--brand-soft); }
.nav__badge {
  position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px;
  padding-inline: 4px; border-radius: var(--r-pill);
  background: var(--late); color: #fff; border: 2px solid var(--surface);
  font-size: 10px; font-weight: var(--fw-black);
  display: flex; align-items: center; justify-content: center;
}
.nav__avatar {
  width: 35px; height: 35px; border-radius: 50%;
  background: var(--brand-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--fw-black); font-size: var(--fs-sm);
  overflow: hidden;
}
.nav__avatar--photo { background: var(--surface-2); }
.nav__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav__burger { display: none; font-size: var(--fs-lg); padding: var(--sp-2); }
.nav__auth { display: flex; align-items: center; gap: var(--sp-2); }

/* Present in the markup at every width, shown only where the bar cannot hold the
   real button. One element, one rule — rather than duplicating the link and hoping
   the two copies stay in step. */
.nav__link--auth { display: none; }
.nav__link--signout { display: none; }

/* ── Flash ──────────────────────────────────────────────────────────────── */
.flash { max-width: var(--wrap); margin: var(--sp-4) auto 0; padding-inline: var(--sp-5); }
.flash__item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-2);
  margin-bottom: var(--sp-2); font-size: var(--fs-base); font-weight: var(--fw-med);
  animation: flash-in var(--t-base) var(--ease-spring);
}
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }
.flash__item--success { background: var(--ok-bg);   color: var(--ok); }
.flash__item--error   { background: var(--late-bg); color: var(--late); }
.flash__item--warning { background: var(--due-bg);  color: var(--due-ink); }
.flash__item--info    { background: var(--info-bg); color: var(--info); }
.flash__icon {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: currentColor; color: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: var(--fw-black);
}
.flash__text { flex: 1; }
.flash__close { opacity: .6; font-size: var(--fs-lg); line-height: 1; }
.flash__close:hover { opacity: 1; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: var(--sp-8) var(--sp-5) var(--sp-7);
  background: linear-gradient(168deg, var(--hero-from) 0%, var(--hero-mid) 44%, var(--bg) 100%);
}
.hero__blob { position: absolute; border-radius: 50%; filter: blur(66px); pointer-events: none; }
.hero__blob--1 { width: 430px; height: 430px; background: var(--blob-violet); opacity: .55; top: -170px; right: -90px; }
.hero__blob--2 { width: 350px; height: 350px; background: var(--blob-peach); opacity: .42; bottom: -160px; left: -80px; }
.hero__inner { position: relative; z-index: 2; max-width: var(--wrap); margin-inline: auto; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,.82); border: 1.5px solid var(--brand-line);
  border-radius: var(--r-pill); padding: 6px var(--sp-4);
  font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--brand);
  margin-bottom: var(--sp-5); box-shadow: var(--sh-1);
}
.hero__title { font-size: clamp(2.1rem, 5.4vw, 3.8rem); letter-spacing: -.05em; line-height: 1.04; }
.hero__title em {
  font-style: normal;
  /* The middle stop was --brand-2 at 2.55:1. This is TEXT painted by a gradient, so
     every stop along it has to clear the large-text floor, not just the ends. */
  background: linear-gradient(120deg, var(--brand), var(--brand-grad-end) 55%, var(--accent-warm));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__sub {
  font-size: var(--fs-md); color: var(--muted);
  max-width: 600px; margin: var(--sp-4) auto 0;
}

/* Search card */
.search {
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
  max-width: 900px; margin: var(--sp-6) auto 0; padding: var(--sp-3);
  background: var(--surface); border-radius: var(--r-5);
  box-shadow: 0 4px 14px rgba(18,18,31,.06), 0 24px 68px rgba(108,99,255,.17);
}
.search__field {
  flex: 1; min-width: 165px;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 13px var(--sp-5); border-radius: var(--r-4);
  background: var(--surface-2); border: 1.5px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.search__field:focus-within {
  background: var(--surface); border-color: var(--brand-line);
  box-shadow: 0 0 0 4px rgba(108,99,255,.1);
}
.search__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--fs-md); }
.search__field input::placeholder { color: var(--faint); }
.search__icon { opacity: .55; flex-shrink: 0; }

/* The same bar, sitting at the top of the results column rather than floating
   in a hero: full width, quieter shadow, tighter padding. */
.search--listing {
  max-width: none; margin: 0 0 var(--sp-4);
  padding: var(--sp-2);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(18,18,31,.05);
}
.search--listing .search__field { padding: 9px var(--sp-4); }
.search--listing .search__field input { font-size: var(--fs-sm); }

/* ── The location guess, announced ──────────────────────────────────────────
   One quiet line above the results: what was assumed, from where, and the two
   ways out — precision or dismissal. A notice, not a banner; it must never
   compete with the results it orders. */
.geonotice {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin: 0 0 var(--sp-4);
  padding: .5rem .875rem;
  font-size: var(--fs-sm); color: var(--ink-2);
  background: var(--brand-soft);
  border-radius: var(--r-md, 10px);
}
.geonotice__icon { flex: none; }
.geonotice__act {
  border: 0; background: none; padding: 0;
  font: inherit; font-weight: var(--fw-med);
  color: var(--brand); cursor: pointer; text-decoration: underline;
}
.geonotice__off {
  margin-left: auto;
  color: var(--muted); font-size: var(--fs-xs, .75rem);
}
.geonotice__off:hover { color: var(--ink); }

.chips { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-top: var(--sp-4); align-items: center; }
.chips__label { font-size: var(--fs-sm); color: var(--muted); }

/* ── Get the app ────────────────────────────────────────────────────────────
   Two dark badges in the hero, the shape people know from store badges but
   with honest words on them — they install THIS site as an app. */
.appget { margin-top: var(--sp-5); }
.appget__badges {
  display: flex; gap: var(--sp-3); justify-content: center; align-items: center;
  flex-wrap: wrap;
}
.appget__label { font-size: var(--fs-sm); color: var(--muted); }
.appget__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1.15rem;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--ink); color: #fff;
  font: inherit; font-size: var(--fs-base); font-weight: var(--fw-bold);
  box-shadow: var(--sh-1);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.appget__badge:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.appget__badge:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.appget__how {
  margin: var(--sp-3) auto 0; max-width: 30rem;
  padding: .6rem 1rem; border-radius: 10px;
  background: var(--surface); box-shadow: var(--sh-1);
  font-size: var(--fs-sm); color: var(--ink-2);
}

/* Inside the installed app: the pitch folds away, one quiet confirmation stays. */
.appget__done { display: none; margin: 0; font-size: var(--fs-sm); color: var(--ok); font-weight: var(--fw-med); }
.appget.is-installed .appget__badges,
.appget.is-installed .appget__how { display: none; }
.appget.is-installed .appget__done { display: block; }
.chip {
  background: rgba(255,255,255,.76); border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill); padding: 6px var(--sp-4);
  font-size: var(--fs-sm); font-weight: var(--fw-med); color: var(--ink-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--surface); }
/* The selected chip. This rule did not exist, so every chip row that marked one
   is-active (the gallery's CVs/letters switch included) showed no selection at
   all — a filter you cannot see is a filter you assume is broken. */
.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: var(--fw-bold);
}
.chip--sm { font-size: var(--fs-xs); padding: .28rem .7rem; }
.chip--quiet { font-size: var(--fs-xs); color: var(--muted); pointer-events: none; }

.stats { display: flex; gap: var(--sp-6); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-6); }
.stat__n {
  display: block; font-size: var(--fs-2xl); font-weight: 900; letter-spacing: -.04em;
  background: var(--brand-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stat__l { font-size: var(--fs-sm); color: var(--muted); font-weight: var(--fw-med); }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding-block: var(--sp-7); }
.section__head { display: flex; align-items: flex-end; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.section__title { font-size: var(--fs-xl); }
.section__sub { font-size: var(--fs-base); color: var(--muted); }
.section__more { margin-left: auto; font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--brand); }

/* ── Type tiles ─────────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-3); }
.tile {
  text-align: left; padding: var(--sp-4) var(--sp-3);
  background: var(--surface); border-radius: var(--r-3);
  box-shadow: var(--sh-1); border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--tile-c, var(--brand)); }
.tile__icon {
  width: 36px; height: 36px; border-radius: var(--r-2);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-lg); margin-bottom: var(--sp-3);
  background: var(--tile-bg, var(--brand-soft)); color: var(--tile-c, var(--brand));
}
.tile__name { font-size: var(--fs-base); font-weight: var(--fw-bold); }
.tile__count { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }

/* ── Language pills ─────────────────────────────────────────────────────── */
.langs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.lang {
  display: flex; align-items: center; gap: 7px;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-pill);
  background: var(--surface); box-shadow: var(--sh-1);
  font-size: var(--fs-base); font-weight: var(--fw-bold);
  transition: transform var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.lang:hover { transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--brand); }
.lang b { font-size: var(--fs-xs); color: var(--faint); font-weight: var(--fw-bold); }

/* ── Job cards ──────────────────────────────────────────────────────────── */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.job {
  display: block; padding: var(--sp-5);
  background: var(--surface); border-radius: var(--r-4);
  box-shadow: var(--sh-1); border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast);
}
.job:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.job__top { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.job__logo {
  width: 42px; height: 42px; border-radius: var(--r-2); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  color: #fff; font-weight: var(--fw-black); font-size: var(--fs-base);
  box-shadow: var(--sh-1); background: var(--brand);
}
.job__logo img { width: 100%; height: 100%; object-fit: cover; }
.job__title { font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.3; }
.job__meta { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: var(--fs-xs); font-weight: var(--fw-bold);
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--ink-2);
}
.tag--salary { background: var(--ok-bg);   color: var(--ok); }
.tag--skill  { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
a.tag--skill { text-decoration: none; }
a.tag--skill:hover { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.tag--promoted { background: var(--brand-soft); color: var(--brand);
                 font-size: .625rem; text-transform: uppercase; letter-spacing: .05em;
                 vertical-align: middle; margin-right: .25rem; }
/* --info, NOT --s1. The chart palette is chosen for distinguishability between
   MARKS, not for legibility as text, and --s1 on the info tint measures 3.84:1.
   --info is the token for exactly this and reads at 5.93:1. */
.tag--remote { background: var(--info-bg); color: var(--info); }
.tag--host   { background: var(--brand-soft); color: var(--brand); }

/* ── Promos ─────────────────────────────────────────────────────────────── */
/*
 * REDESIGNED FROM DARK BILLBOARDS TO LIGHT PRODUCT CARDS (Nel, with three
 * reference shots: mutecoder, blush.design, adelfox). The shared language of
 * all three: a white card on the light page, text on one side, a playful
 * VISUAL on the other — a little product mock floating over soft organic
 * blobs and dots — one strong pill CTA plus a quiet one. Colour arrives as
 * pastel washes and one gradient word in the headline, never as a slab.
 *
 * Each promo declares its own hue pair as custom properties; every piece of
 * chrome (tag, checks, blobs, gradient word, mock accents) derives from them,
 * so the three cards are one system in three colourways.
 */
.promo {
  --hue:   var(--brand);
  --hue-2: #a855f7;
  --tint:  var(--brand-soft);

  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: var(--sp-7);
  padding: var(--sp-7); border-radius: var(--r-5);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  color: var(--ink);
  margin-bottom: var(--sp-5);
}
.promo--recruit { --hue: #6a5cf5; --hue-2: #21b0c9; --tint: #efeeff; }
.promo--cv      { --hue: #8b5cf6; --hue-2: #e0447c; --tint: #f4efff; }
.promo--tracker { --hue: #0d9488; --hue-2: #5f9f16; --tint: #e6f6f3; flex-direction: row-reverse; }

.promo__body { flex: 1; min-width: 270px; position: relative; z-index: 2; }

.promo__tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--tint); color: var(--hue);
  border: 1px solid color-mix(in srgb, var(--hue) 28%, transparent);
  border-radius: var(--r-pill); padding: 5px var(--sp-3);
  font-size: var(--fs-xs); font-weight: var(--fw-black);
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: var(--sp-3);
}

.promo__title { font-size: clamp(1.5rem, 2.8vw, 2.15rem); letter-spacing: -.04em; color: var(--ink); }

/* The one gradient word — the blush.design underlined-word idea, in our voice. */
.promo__accent {
  background: linear-gradient(92deg, var(--hue), var(--hue-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.promo__sub { font-size: var(--fs-md); color: var(--muted); margin-top: var(--sp-3); max-width: 440px; }

.promo__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-4);
  margin: var(--sp-5) 0; max-width: 460px;
}
.promo__item { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-base); font-weight: var(--fw-med); color: var(--ink-2); }
.promo__check {
  width: 19px; height: 19px; border-radius: 50%; flex-shrink: 0;
  background: var(--tint); color: var(--hue);
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: var(--fw-black);
}

.promo__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
/* No button overrides any more: on a light card the app's own primary/ghost
   styles are exactly right, which is the point of going light. */

/* ── The visual: a product mock floating over blobs ─────────────────────── */
.promo__visual {
  position: relative; z-index: 1;
  flex: 0 0 330px; height: 270px;
}

/* Organic blobs — border radii do the "blush" shapes, hues stay pastel. */
.pv__blob {
  position: absolute; top: 6%; right: 2%;
  width: 84%; height: 86%;
  background: color-mix(in srgb, var(--hue) 15%, #ffffff);
  border-radius: 58% 42% 55% 45% / 52% 58% 42% 48%;
}
.pv__blob--b {
  top: auto; right: auto; bottom: 0; left: 0;
  width: 46%; height: 44%;
  background: color-mix(in srgb, var(--hue-2) 18%, #ffffff);
  border-radius: 45% 55% 48% 52% / 55% 45% 55% 45%;
}
.pv__dot { position: absolute; border-radius: 50%; background: var(--hue); }
.pv__dot--1 { width: 12px; height: 12px; top: 4%; left: 12%; opacity: .55; }
.pv__dot--2 { width: 8px;  height: 8px;  bottom: 14%; right: 4%; background: var(--hue-2); opacity: .7; }
.pv__dot--3 { width: 18px; height: 18px; top: 44%; left: 0; background: color-mix(in srgb, var(--hue) 45%, #fff); }
.pv__ring {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--hue-2) 40%, #fff);
  top: 10%; right: 8%;
}

/* Floating white mock cards, adelfox-style. */
.pv__card {
  position: absolute; z-index: 2;
  background: #fff; border-radius: 14px;
  box-shadow: 0 16px 38px rgba(28, 30, 60, .16);
  padding: 12px 14px;
}
.pv__row { display: flex; align-items: center; gap: 10px; }
.pv__ava {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--hue), var(--hue-2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: var(--fw-black);
}
.pv__lines { display: grid; gap: 6px; }
.pv__bar { height: 8px; border-radius: 6px; background: #e9eaf3; }
.pv__bar--hue { background: color-mix(in srgb, var(--hue) 42%, #fff); }
.pv__pill {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border-radius: var(--r-pill);
  box-shadow: 0 10px 26px rgba(28, 30, 60, .18);
  padding: 7px 13px;
  font-size: var(--fs-xs); font-weight: var(--fw-black); color: var(--hue);
  white-space: nowrap;
}
.pv__pill--b { color: var(--hue-2); }

/* The tracker mock: three tiny board columns. */
.pv__cols { display: flex; gap: 8px; }
.pv__col { width: 62px; background: #f3f4fa; border-radius: 10px; padding: 6px; display: grid; gap: 6px; align-content: start; }
.pv__col span { display: block; height: 24px; background: #fff; border-radius: 7px; box-shadow: 0 2px 6px rgba(28,30,60,.08); }
.pv__col span.is-hue { background: color-mix(in srgb, var(--hue) 22%, #fff); }

/* ── Three compositions, not one card three times ────────────────────────
   recruit = person-in-circle (mutecoder) · cv = cream ground, tall card with
   line-art (blush.design) · tracker = tilted gradient tile with the board
   leaning on it (adelfox). Shared pieces above; identities below. */

/* recruit: the person */
.promo__visual--person { flex-basis: 350px; height: 300px; }
.pv__circle {
  position: absolute; inset: 10% 4% 4% auto;
  width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%,
      color-mix(in srgb, var(--hue-2) 26%, #fff),
      color-mix(in srgb, var(--hue) 20%, #fff) 70%);
}
.pv__person {
  position: absolute; z-index: 2;
  bottom: 4%; right: 12%;
  width: 62%; max-width: 230px; height: auto;
  filter: drop-shadow(0 12px 24px rgba(28, 30, 60, .18));
}
.pv__tri {
  position: absolute; bottom: 18%; left: 4%;
  width: 0; height: 0;
  border-left: 16px solid color-mix(in srgb, var(--hue) 70%, #fff);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  transform: rotate(18deg);
}

/* cv: blush — cream card, coloured organic blobs, tall white "phone" card */
.promo--cv { background: #fdf8ef; border-color: #f1e8d6; }
.promo__visual--phone { flex-basis: 330px; height: 320px; }
.pv__blob--green  { top: 8%; left: -6%;  width: 62%; height: 58%; background: #9fe7c3; border-radius: 62% 38% 55% 45% / 48% 60% 40% 52%; }
.pv__blob--orange { top: 0;  right: 4%;  width: 30%; height: 26%; background: #ffb37e; border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%; }
.pv__blob--pink   { bottom: 2%; right: -4%; width: 52%; height: 46%; background: #ffb3cd; border-radius: 45% 55% 42% 58% / 58% 42% 58% 42%; }
.pv__phone {
  position: absolute; z-index: 2;
  top: 2%; left: 50%; transform: translateX(-50%);
  width: 200px; height: 94%;
  background: #fff; border-radius: 28px;
  box-shadow: 0 18px 44px rgba(60, 44, 20, .16);
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 12px 16px;
}
.pv__art { width: 100%; height: auto; margin-top: 2px; }
.pv__caption {
  margin: auto 0 10px; text-align: center;
  font-weight: var(--fw-black); font-size: var(--fs-base); color: var(--ink);
  line-height: 1.3;
}
.pv__go {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-md);
}

/* tracker: adelfox — the tilted gradient tile with the board on it */
.promo__visual--tile { flex-basis: 340px; height: 290px; }
.pv__tile {
  position: absolute; inset: 8% 6%;
  border-radius: 34px;
  background: linear-gradient(140deg,
      color-mix(in srgb, var(--hue) 34%, #fff),
      color-mix(in srgb, var(--hue-2) 30%, #fff) 60%,
      #ffd9a8);
  transform: rotate(-5deg);
}
.pv__card--tilt {
  top: 26%; left: 18%;
  transform: rotate(-5deg);
  padding: 14px;
}
.pv__squiggle { position: absolute; width: 52px; top: 4%; right: 12%; }
.pv__name { font-size: var(--fs-xs); padding-left: 7px; }
.pv__mini-ava {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--hue), var(--hue-2));
  color: #fff; font-style: normal; font-size: 9px; font-weight: var(--fw-black);
  display: inline-flex; align-items: center; justify-content: center;
}
.pv__mini-ava--b { background: linear-gradient(135deg, var(--hue-2), #f2b23c); }

/* The drag-story board (tracker) — an SVG leaning on the tile. */
.pv__board {
  position: absolute; z-index: 2;
  top: 18%; left: 8%;
  width: 84%; height: auto;
  transform: rotate(-4deg);
}

/* The CV mock: a small document with a skills row. */
.pv__doc { width: 158px; display: grid; gap: 8px; }
.pv__doc .pv__bar:first-child { width: 60%; height: 10px; background: color-mix(in srgb, var(--hue) 50%, #fff); }
.pv__skillrow { display: flex; gap: 5px; }
.pv__skillrow i {
  width: 26px; height: 12px; border-radius: 6px;
  background: var(--tint); border: 1px solid color-mix(in srgb, var(--hue) 25%, transparent);
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.empty {
  text-align: center; padding: var(--sp-8) var(--sp-5);
  background: var(--surface); border-radius: var(--r-4); box-shadow: var(--sh-1);
}
.empty__icon { font-size: 2.4rem; margin-bottom: var(--sp-3); }
.empty__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.empty__body { font-size: var(--fs-base); color: var(--muted); max-width: 420px; margin: 0 auto var(--sp-5); }

/* ── Error page ─────────────────────────────────────────────────────────── */
.error { text-align: center; padding: var(--sp-8) var(--sp-5); max-width: 560px; margin-inline: auto; }
.error__code {
  font-size: 4.5rem; font-weight: 900; letter-spacing: -.06em; line-height: 1;
  background: var(--brand-grad); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.error__title { font-size: var(--fs-xl); margin: var(--sp-3) 0 var(--sp-2); }
.error__body { color: var(--muted); margin-bottom: var(--sp-5); }
.error__actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: var(--sp-8); }
.footer__inner {
  max-width: var(--wrap); margin-inline: auto; padding: var(--sp-7) var(--sp-5) var(--sp-6);
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--sp-6);
}
.footer__tag { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-3); max-width: 260px; }
.footer__h {
  font-size: var(--fs-xs); font-weight: var(--fw-black); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-3);
}
.footer__col { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer__link { font-size: var(--fs-base); color: var(--ink-2); transition: color var(--t-fast); }
.footer__link:hover { color: var(--brand); }
.footer__legal {
  max-width: var(--wrap); margin-inline: auto;
  padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  font-size: var(--fs-sm); color: var(--muted);
}
.footer__legal-links { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; }
.footer__legal-links a:hover { color: var(--brand); }

/* The language switch: quiet chips at the end of the legal row. */
.footer__lang {
  padding: .125rem .5625rem;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: var(--fs-xs);
}
.footer__lang.is-current { background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
a.footer__lang:hover { border-color: var(--brand); color: var(--brand); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .jobs { grid-template-columns: repeat(2, 1fr); }
  .promo { gap: var(--sp-5); padding: var(--sp-6); }
}
@media (max-width: 920px) {
  .promo, .promo--tracker { flex-direction: column; text-align: center; padding: var(--sp-6) var(--sp-5) var(--sp-7); }
  .promo__body { min-width: 0; }
  .promo__sub, .promo__list { max-width: none; }
  .promo__list { grid-template-columns: 1fr; justify-items: center; }
  .promo__actions { justify-content: center; }
  .promo__visual { order: -1; flex-basis: auto; width: min(330px, 100%); height: 230px; margin-inline: auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .nav { padding: var(--sp-3) var(--sp-4); }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  /* The bar cannot hold it on a phone; the home page's recruit panel is the
     mobile door to the same route. */
  .nav__post { display: none; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--surface);
    padding: var(--sp-3); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
  }

  /* THE SIGNED-OUT ACTIONS DO NOT BOTH FIT IN A PHONE-WIDTH BAR.
     156px of brand plus 224px of buttons plus a burger is wider than 390, and once
     the document is wider than the screen every right-aligned thing in it — the
     burger that opens this drawer included — sits off the edge and the page scrolls
     sideways. The primary action stays, because it is the one somebody came to
     press; "Sign in" moves into the drawer, where the rest of the nav already is. */
  .nav__auth .btn--ghost { display: none; }
  .nav__link--auth { display: block; }

  /* THE SIGNED-IN BAR HAD THE SAME FAULT ONE FEATURE LATER. Bell + launcher +
     avatar + Sign out + burger is 12px more than a phone, and once the document
     is wider than the screen the burger sits off the edge. Sign out moves into
     the drawer (see .nav__link--signout in the template); everything else in the
     bar has no other home. The signout button's own hide lives beside its base
     rule further down — a rule HERE loses to the base rule's later position. */
  .nav__link--signout { display: block; }
  .hero { padding: var(--sp-7) var(--sp-4) var(--sp-6); }
  .wrap { padding-inline: var(--sp-4); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .jobs { grid-template-columns: 1fr; }
  .search { border-radius: var(--r-4); padding: var(--sp-2); }
  .stats { gap: var(--sp-4); }
  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer__legal { flex-direction: column; }
}
@media print {
  .nav, .footer, .flash, .promo, .skip { display: none !important; }
  body { background: #fff; }
}

/* ── Toasts (resources/js/modules/toast.js) ─────────────────────────────── */
.toasts {
  position: fixed; left: 50%; bottom: var(--sp-5); transform: translateX(-50%);
  z-index: 250; display: flex; flex-direction: column; gap: var(--sp-2);
  align-items: center; pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill);
  font-size: var(--fs-base); font-weight: var(--fw-med);
  box-shadow: var(--sh-3); opacity: 0; transform: translateY(16px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  max-width: min(92vw, 460px); text-align: center;
}
.toast.is-in { opacity: 1; transform: translateY(0); }
.toast--success { background: var(--ok); }
.toast--error   { background: var(--late); }

/* ── Field errors (resources/js/modules/form.js) ────────────────────────── */
.field-error {
  color: var(--late); font-size: var(--fs-sm); font-weight: var(--fw-med);
  margin-top: 5px; display: flex; align-items: center; gap: 5px;
}
.field-error::before { content: '!'; font-weight: var(--fw-black); }
[aria-invalid="true"] { border-color: var(--late) !important; }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.12) !important; }

/* ══ JOBS ═══════════════════════════════════════════════════════════════════ */

/* ── Job card ───────────────────────────────────────────────────────────── */
.jobcard {
  position: relative; background: var(--surface); border-radius: var(--r-3);
  padding: var(--sp-4); box-shadow: var(--sh-1);
  border: 1.5px solid transparent;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast),
              border-color var(--t-fast);
}
.jobcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.jobcard:focus-within { border-color: var(--brand); box-shadow: var(--sh-2); }
/* One stretched link keeps the whole card clickable without nesting anchors,
   which would be invalid and unreadable to a screen reader. */
.jobcard__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.jobcard__head { display: flex; gap: var(--sp-3); align-items: flex-start; }
.jobcard__logo {
  width: 42px; height: 42px; border-radius: var(--r-2); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: var(--fw-black); font-size: var(--fs-base); box-shadow: var(--sh-1);
}
.jobcard__logo img { width: 100%; height: 100%; object-fit: cover; }
.jobcard__id { flex: 1; min-width: 0; }
.jobcard__title { font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.3; }
.jobcard__meta { font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; }
.jobcard__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--sp-3); }
.jobcard__skills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--sp-2); }
.jobcard__skills .tag--skill { font-size: var(--fs-xs); }
.jobcard__why {
  font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-snug);
  margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--line);
}
.jobcard__foot { display: flex; align-items: center; margin-top: var(--sp-3); }
.jobcard__age { font-size: var(--fs-xs); color: var(--faint); font-weight: var(--fw-med); }
.jobcard--compact { padding: var(--sp-3); }
.jobcard--compact .jobcard__logo { width: 34px; height: 34px; }

/* ── Match ring ─────────────────────────────────────────────────────────────
   Magnitude, not status: one hue at four strengths. The label beside it carries
   the judgement, so meaning never depends on colour alone.                    */
.match { position: relative; flex-shrink: 0; display: grid; place-items: center; }
.match svg { grid-area: 1/1; transform: rotate(-90deg); }
.match__track { fill: none; stroke: var(--line); stroke-width: 4; }
.match__fill  { fill: none; stroke-width: 4; stroke-linecap: round; stroke: var(--seq-4); }
/* THE NUMBER IS NOT PART OF THE RAMP. It used to take the same --seq-N as the arc,
   which meant the weaker the match the fainter the number announcing it — --seq-3 at
   2.20:1 on --bg, small and bold, at the exact moment a candidate most needs to read
   it. The arc keeps the ramp; the number is ink at 17.22:1 and stays legible at every
   level.

   The arc is then decorative in the WCAG sense and deliberately so: the value is
   carried by arc LENGTH and stated in words beside it, so nothing depends on telling
   --seq-3 from --seq-4. That is the same rule the status tokens are held to — never
   colour alone — applied to a chart. */
.match__num {
  grid-area: 1/1; font-size: var(--fs-xs); font-weight: var(--fw-black);
  letter-spacing: -.04em; color: var(--ink);
}
.match--good .match__fill      { stroke: var(--seq-4); }
.match--strong .match__fill    { stroke: var(--seq-5); }
.match--excellent .match__fill { stroke: var(--seq-6); }
.match--partial .match__fill   { stroke: var(--seq-3); }
.match--lg .match__track, .match--lg .match__fill { stroke-width: 6; }
.match--lg .match__num { font-size: var(--fs-xl); }

/* ── Listing layout ─────────────────────────────────────────────────────── */
.listing {
  display: grid; grid-template-columns: 272px minmax(0, 1fr);
  gap: var(--sp-5); max-width: var(--wrap);
  margin-inline: auto; padding: var(--sp-5) var(--sp-5) var(--sp-8);
}
.listing__filtertoggle { display: none; }
.listing__side { position: sticky; top: calc(var(--nav-h) + var(--sp-3)); align-self: start; }
.listing__head {
  display: flex; align-items: center; gap: var(--sp-3);
  flex-wrap: wrap; margin-bottom: var(--sp-4);
}
.listing__count { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
.listing__count strong { color: var(--brand); }
.listing__sort { margin-left: auto; }
.listing__select {
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-1);
  padding: 7px var(--sp-3); font-size: var(--fs-sm); font-weight: var(--fw-med); cursor: pointer;
}
.listing__select:focus { border-color: var(--brand); outline: none; }
.listing__results { list-style: none; display: grid; gap: var(--sp-3); }

/* ── Filters ────────────────────────────────────────────────────────────── */
.filters {
  background: var(--surface); border-radius: var(--r-4); padding: var(--sp-4);
  box-shadow: var(--sh-1); max-height: calc(100vh - var(--nav-h) - var(--sp-6));
  overflow-y: auto;
}
.filters__head { display: flex; align-items: baseline; margin-bottom: var(--sp-4); }
.filters__title { font-size: var(--fs-md); }
.filters__clear { margin-left: auto; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--late); }
.filters__group { border: 0; margin-bottom: var(--sp-5); }
.filters__legend {
  font-size: var(--fs-xs); font-weight: var(--fw-black); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-2);
  display: flex; align-items: center; gap: var(--sp-2); width: 100%;
}
.filters__n { margin-left: auto; color: var(--brand); }
.filters__option {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 5px 2px; font-size: var(--fs-base); color: var(--ink-2); cursor: pointer;
}
.filters__option:hover { color: var(--brand); }
.filters__option input { accent-color: var(--brand); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.filters__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters__label--muted { color: var(--faint); }
.filters__years { font-style: normal; color: var(--faint); font-size: var(--fs-xs); }
.filters__count { margin-left: auto; font-size: var(--fs-xs); color: var(--faint); font-weight: var(--fw-bold); }
.filters__range { width: 100%; accent-color: var(--brand); }
.filters__scale {
  display: flex; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--muted); font-weight: var(--fw-med);
}
.filters__scale strong { color: var(--brand); }
.filters__hint { font-size: var(--fs-xs); color: var(--muted); line-height: var(--lh-snug); margin-top: 6px; }
.filters__hint a { color: var(--brand); font-weight: var(--fw-med); }
.filters__search {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: var(--r-1);
  padding: 7px var(--sp-3); font-size: var(--fs-sm); background: var(--surface-2);
  margin-bottom: 6px; outline: none;
}
.filters__search:focus { border-color: var(--brand); background: var(--surface); }
.filters__scroll { max-height: 210px; overflow-y: auto; padding-right: 3px; }
.filters__subhead {
  font-size: 10px; font-weight: var(--fw-black); letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint);
  padding: var(--sp-2) 2px 3px; position: sticky; top: 0; background: var(--surface);
}
.filters__apply { width: 100%; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pager {
  display: flex; align-items: center; gap: var(--sp-2);
  flex-wrap: wrap; margin-top: var(--sp-6); justify-content: center;
}
.pager__list { list-style: none; display: flex; gap: 4px; align-items: center; }
.pager__num, .pager__step, .pager__gap {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding-inline: var(--sp-2);
  border-radius: var(--r-1); font-size: var(--fs-sm); font-weight: var(--fw-bold);
  color: var(--ink-2); transition: background var(--t-fast), color var(--t-fast);
}
.pager__num:hover, .pager__step:hover { background: var(--brand-soft); color: var(--brand); }
.pager__num.is-current { background: var(--brand); color: #fff; }
.pager__gap { color: var(--faint); min-width: 20px; }
.pager__status { flex-basis: 100%; text-align: center; font-size: var(--fs-xs); color: var(--muted); }

/* ── Empty ──────────────────────────────────────────────────────────────── */
.empty__actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

/* ── Detail ─────────────────────────────────────────────────────────────── */

/* The two-column shell: the decision on the left, the reference rail on the
   right. The rail is sticky so the facts stay in view while the description
   scrolls — the exact behaviour the big boards taught everyone to expect. */
.jobsplit {
  display: grid; grid-template-columns: minmax(0, 1fr) 21rem;
  gap: var(--sp-5); align-items: start;
  max-width: 1180px; margin-inline: auto;
  padding: var(--sp-5) var(--sp-5) var(--sp-8);
}
.jobsplit__main  { min-width: 0; }
.jobsplit__aside { position: sticky; top: 5rem; display: grid; gap: var(--sp-4); }

.jobsplit .job { max-width: none; padding: 0; margin-inline: 0;
                 background: transparent; box-shadow: none; border: 0; }
.jobsplit .job:hover { transform: none; box-shadow: none; }

.job__skills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--sp-3); }

.jobfacts {
  background: var(--surface); border-radius: var(--r-4);
  box-shadow: var(--sh-1); padding: var(--sp-5);
}
.jobfacts__title { font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: var(--sp-3); }
.jobfacts__rows  { display: grid; gap: var(--sp-3); margin: 0; }
.jobfacts__row dt { font-size: var(--fs-xs); color: var(--muted);
                    text-transform: uppercase; letter-spacing: .05em; }
.jobfacts__row dd { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: var(--fw-med); }

.job__railsec .job__h { margin-bottom: var(--sp-3); }
.jobsplit__aside .job__related { grid-template-columns: 1fr; }

.job__about {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--surface); border-radius: var(--r-4);
  box-shadow: var(--sh-1); padding: var(--sp-5);
}
.job__aboutlogo {
  width: 40px; height: 40px; border-radius: var(--r-2); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  /* The brand fallback exists for the contrast audit and for any row whose inline
     company colour fails to arrive — white initials never sit on white. */
  background: var(--brand);
  color: #fff; font-weight: var(--fw-black); font-size: var(--fs-sm);
}
.job__aboutlogo img { width: 100%; height: 100%; object-fit: cover; }
.job__aboutmeta { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }
.job__aboutlink { display: inline-block; margin-top: var(--sp-2);
                  font-size: var(--fs-sm); font-weight: var(--fw-med);
                  color: var(--brand); text-decoration: none; }
.job__aboutlink:hover { text-decoration: underline; }

.job { max-width: 860px; margin-inline: auto; padding: var(--sp-5) var(--sp-5) var(--sp-8); }
.job__hero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--brand-soft), var(--hero-mid));
  border-radius: var(--r-5); padding: var(--sp-6);
}
.job__hero::after {
  content: ''; position: absolute; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(156,136,255,.28), transparent 68%);
  top: -90px; right: -60px;
}
.job__heroinner { position: relative; z-index: 2; display: flex; gap: var(--sp-4); align-items: flex-start; }
.job__logo {
  width: 62px; height: 62px; border-radius: var(--r-3); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: var(--fw-black); font-size: var(--fs-lg); box-shadow: var(--sh-2);
}
.job__id { flex: 1; min-width: 0; }
.job__title { font-size: var(--fs-2xl); letter-spacing: -.04em; }
.job__company { font-size: var(--fs-md); color: var(--muted); margin-top: 4px; }
.job__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin: var(--sp-5) 0; align-items: center; }
.job__save { display: contents; }
.job__section { margin-bottom: var(--sp-6); }
.job__h {
  font-size: var(--fs-xs); font-weight: var(--fw-black); letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-3);
}
.job__body { font-size: var(--fs-md); line-height: var(--lh-base); color: var(--ink-2); }
.job__body p  { margin-bottom: var(--sp-3); }
.job__body ul, .job__body ol { margin: 0 0 var(--sp-3) var(--sp-5); }
.job__body li { margin-bottom: 4px; }
.job__body h2, .job__body h3, .job__body h4 {
  font-size: var(--fs-md); margin: var(--sp-4) 0 var(--sp-2);
}
.job__body a { color: var(--brand); text-decoration: underline; }
.job__source {
  display: flex; gap: var(--sp-3); background: var(--surface-2);
  border-radius: var(--r-3); padding: var(--sp-4);
  font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-snug);
}
.job__related { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }

/* ── Match box ──────────────────────────────────────────────────────────── */
.matchbox {
  background: var(--surface); border-radius: var(--r-4);
  padding: var(--sp-5); box-shadow: var(--sh-1); margin-bottom: var(--sp-6);
}
.matchbox__head { display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.matchbox__label { font-size: var(--fs-lg); }
.matchbox__sub { font-size: var(--fs-sm); color: var(--muted); margin-top: 3px; max-width: 46ch; }
.matchbox__rows { display: grid; }
.matchbox__row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 0; border-top: 1px solid var(--line); font-size: var(--fs-base);
}
.matchbox__row dt { display: flex; align-items: center; gap: var(--sp-2); font-weight: var(--fw-med); }
.matchbox__row dd { margin-left: auto; color: var(--muted); font-size: var(--fs-sm); text-align: right; }
.matchbox__icon {
  width: 23px; height: 23px; border-radius: var(--r-1); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: var(--fw-black);
}
.matchbox__icon--yes { background: var(--ok-bg); color: var(--ok); }
.matchbox__icon--no  { background: var(--due-bg); color: var(--due-ink); }
.matchbox__gaps { background: var(--due-bg); border-radius: var(--r-3); padding: var(--sp-4); margin-top: var(--sp-4); }
.matchbox__gapstitle { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--due-ink); }
.matchbox__gapslist { font-size: var(--fs-sm); color: var(--due-ink); margin: 4px 0 var(--sp-3); line-height: var(--lh-snug); }
.matchbox--prompt { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; }
.matchbox__promptbody { flex: 1; min-width: 260px; font-size: var(--fs-base); color: var(--ink-2); line-height: var(--lh-snug); }

/* ── Map ────────────────────────────────────────────────────────────────── */
.mapview { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - var(--nav-h)); }
.mapview__side { background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; padding: var(--sp-4); }
.mapview__head { margin-bottom: var(--sp-4); }
.mapview__title { font-size: var(--fs-lg); }
.mapview__sub { font-size: var(--fs-sm); color: var(--muted); margin-top: 3px; }

/* The mine-mode banner: a quiet chip-row under the head — filtered state stated
   in words, with the two ways out right beside it. */
.mapview__minenote {
  margin: 0 0 var(--sp-4);
  padding: .5rem .75rem;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--ink-2);
  font-size: var(--fs-sm);
}
.mapview__region { margin-bottom: var(--sp-4); }
.mapview__regionname {
  font-size: var(--fs-xs); font-weight: var(--fw-black); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-2);
}
.mapview__countries { list-style: none; display: grid; gap: 2px; }
.mapview__country {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 6px var(--sp-2); border-radius: var(--r-1); font-size: var(--fs-sm);
  transition: background var(--t-fast);
}
.mapview__country:hover { background: var(--brand-soft); color: var(--brand); }
.mapview__country b { margin-left: auto; font-size: var(--fs-xs); color: var(--faint); }
.mapview__canvas { position: relative; background: var(--bg); }
.mapview__map { position: absolute; inset: 0; }
.mapview__empty, .mapview__noscript {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: var(--sp-5);
}
.mapview__none { font-size: var(--fs-sm); color: var(--muted); line-height: var(--lh-snug); }
.mapview__none a { color: var(--brand); }

@media (max-width: 1000px) {
  .listing { grid-template-columns: 1fr; padding-inline: var(--sp-4); }
  .listing__filtertoggle {
    display: inline-flex; align-items: center; gap: var(--sp-2);
    padding: 10px var(--sp-4); border-radius: var(--r-2);
    background: var(--surface); box-shadow: var(--sh-1);
    font-size: var(--fs-base); font-weight: var(--fw-bold);
  }
  .listing__side { position: static; display: none; }
  .listing__side.is-open { display: block; }
  .filters { max-height: none; }
  .job__related { grid-template-columns: 1fr; }
  .jobsplit { grid-template-columns: 1fr; }
  .jobsplit__aside { position: static; }
  .mapview { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) 42%; }
  .mapview__side { grid-row: 2; border-right: 0; border-top: 1px solid var(--line); }
}

/* ── Map markers (resources/js/map.js) ──────────────────────────────────── */
.mapmark {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand-grad); color: #fff;
  font-weight: var(--fw-black); font-size: var(--fs-xs);
  border: 2.5px solid var(--surface); box-shadow: var(--glow);
}
.mapmark__t { display: block; font-size: var(--fs-base); font-weight: var(--fw-bold); }
.mapmark__c { display: block; font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-2); }
.mapmark__b {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 6px var(--sp-3); border-radius: var(--r-1);
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
}
.leaflet-popup-content-wrapper { border-radius: var(--r-3); box-shadow: var(--sh-3); }
.leaflet-popup-content { margin: var(--sp-3) var(--sp-4); font-family: var(--font); }

/* ── Sign out ──────────────────────────────────────────────────────────────
   A form rather than a link, so the action carries a nonce. Styled to sit
   beside the avatar as a quiet control: signing out is not a destination and
   should not compete with the things people came to do — but it must be
   visible without hunting, because the alternative is a shared computer left
   signed in.                                                                */

.nav__signout-btn {
  margin-left: .5rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: .35rem .6rem;
  font: inherit;
  font-size: .8125rem;
  color: var(--muted);
  cursor: pointer;
}

.nav__signout-btn:hover { color: var(--ink); border-color: var(--line); }
.nav__signout-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

@media (max-width: 780px) {
  /* GONE FROM THE BAR, PRESENT IN THE DRAWER. The bar could not hold the bell,
     the launcher, the avatar, the burger and this button — the burger sat 12px
     past the right edge and every one of these pages scrolled sideways. The
     drawer's .nav__link--signout (same nonce, same endpoint) is where the word
     lives at this width. */
  .nav__signout-btn { display: none; }
}

/* ── The app launcher ──────────────────────────────────────────────────────
   A <details> panel. See the nav template for why it is not a button.

   THE PANEL IS WIDE AND GROUPED rather than a single column of twenty links.
   Twenty in a column is a scroll; four groups of five is a glance, and the
   group headings do the work a person would otherwise do by reading every
   label.                                                                    */

.launcher { position: relative; margin-left: .35rem; }

.launcher__toggle {
  list-style: none;
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}

/* Safari renders a disclosure triangle on summary unless both are cleared. */
.launcher__toggle::-webkit-details-marker { display: none; }
.launcher__toggle::marker { content: ''; }

.launcher__toggle:hover { background: var(--surface-2); border-color: var(--line); }
.launcher__toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.launcher[open] .launcher__toggle { background: var(--brand-soft); border-color: var(--brand-line); }

/* The nine dots. Real elements rather than a background image, so they inherit
   colour and stay crisp at any zoom. */
.launcher__grid {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  gap: 3px;
}
.launcher__grid span {
  width: 3px; height: 3px; border-radius: 1px;
  background: var(--ink-2);
}
.launcher[open] .launcher__grid span { background: var(--brand); }

/* ── Panel ─────────────────────────────────────────────────────────────── */

.launcher__panel {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 60;
  width: min(23rem, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--sh-3);
  padding: 1rem;
}

.launcher__heading {
  margin: 0 0 .75rem;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink);
}

/* FOUR ACROSS, FIXED. An auto-fit grid produced a ragged panel — sixteen items in
   four groups wrapped the last group onto its own row and left a hole beside it.
   A fixed column count means every row is full and the panel is a rectangle,
   which is the whole reason this pattern reads faster than a list. */
.launcher__grid-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .25rem;
}

/* NAMED FOR ITS BLOCK, NOT GENERICALLY. This was `.tile`, and lp/templates/home/index.php
   has used `.tile` for the work-type cards since long before this existed — so a generic
   name in a globally-loaded stylesheet was quietly restyling a component on the busiest
   page in the product. Found by counting elements in a browser check that expected 16 and
   got 26. */
.launcher__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .35rem;
  padding: .7rem .3rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  min-height: 5rem;
}

.launcher__tile:hover { background: var(--surface-2); }
.launcher__tile:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.launcher__tileicon { font-size: 1.35rem; line-height: 1; }

.launcher__tilelabel {
  font-size: .6875rem;
  line-height: 1.25;
  font-weight: 600;
  /* Two lines maximum. "Account and security" needs them; a third would make the
     rows different heights and the grid stop looking like a grid. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 780px) {
  /* Anchored to the viewport rather than the button: at this width the button is
     near the right edge and a panel hung off it would run off screen. */
  .launcher__panel {
    position: fixed;
    top: calc(var(--nav-h) + .5rem);
    left: 1rem; right: 1rem;
    width: auto;
    max-height: calc(100vh - var(--nav-h) - 1.5rem);
    overflow-y: auto;
  }
  .launcher__grid-list { grid-template-columns: repeat(3, 1fr); }
}

/* ── Recruiter panel & morphing word ─────────────────────────────────────── */
/* The morph: a masked, stepping stack of role words. One word of height is
   visible; keyframes translate the stack up one word at a time, holding on
   each. The last word duplicates the first so the loop's jump home is
   invisible. Height in em so it scales with the clamped title size. */
.morph {
  display: inline-block;
  height: 1.18em;
  overflow: hidden;
  vertical-align: bottom;
}
.morph__stack {
  display: flex;
  flex-direction: column;
  animation: lp-morph 12s cubic-bezier(.77, 0, .18, 1) infinite;
}
.morph__stack span {
  display: block;
  height: 1.18em;
  line-height: 1.18em;
  background: linear-gradient(92deg, var(--hue, #6a5cf5), var(--hue-2, #21b0c9));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@keyframes lp-morph {
  0%, 11%      { transform: translateY(0); }
  16.6%, 27.7% { transform: translateY(-1.18em); }
  33.3%, 44.4% { transform: translateY(-2.36em); }
  50%, 61.1%   { transform: translateY(-3.54em); }
  66.6%, 77.7% { transform: translateY(-4.72em); }
  83.3%, 94.4% { transform: translateY(-5.9em); }
  100%         { transform: translateY(-7.08em); }
}
@media (prefers-reduced-motion: reduce) {
  .morph__stack { animation: none; }
}

/* The nav's Post a job button — compact next to the icon cluster. */
.nav__post {
  padding: 8px 14px;
  font-size: var(--fs-sm);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

/* ── Hire strip (jobs listing) ───────────────────────────────────────────── */
/* One slim recruiter line under the results — the mobile answer to the nav's
   Post-a-job pill, on the page recruiters actually browse. */
.hirebar {
  display: flex; align-items: center; gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--brand-soft);
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: var(--r-4);
}
.hirebar__icon { font-size: var(--fs-lg); }
.hirebar__text { flex: 1; margin: 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.hirebar__text strong { color: var(--ink); display: block; }
.hirebar__btn { padding: 8px 16px; font-size: var(--fs-sm); border-radius: var(--r-pill); white-space: nowrap; }
@media (max-width: 640px) {
  .hirebar { flex-wrap: wrap; }
  .hirebar__btn { width: 100%; justify-content: center; }
}

/* ── Listing display switch + card blocks ────────────────────────────────── */
.viewopts { position: relative; }
.viewopts__btn {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1.5px solid var(--line-2);
  font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--ink-2);
}
.viewopts__btn::-webkit-details-marker { display: none; }
.viewopts[open] .viewopts__btn { border-color: var(--brand); color: var(--brand); }
.viewopts__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 220px;
  background: var(--surface); border-radius: var(--r-3);
  border: 1px solid var(--line); box-shadow: var(--sh-3, 0 12px 34px rgba(28,30,60,.16));
  padding: var(--sp-4);
  display: grid; gap: var(--sp-3);
}
.viewopts__hint { margin: 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }

/* The switch's effect: one class on the list hides one block on every card. */
.listing__results.hide-description [data-view="description"],
.listing__results.hide-match       [data-view="match"],
.listing__results.hide-skills      [data-view="skills"] { display: none; }

/* The longer description */
.jobcard__desc {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6;
}

/* The match line under a scored card: the band in words (tinted by band,
   never colour-alone — the word IS the judgement) + the one-line reason.
   The percent lives in the head's ring alone; a horizontal bar restating it
   was cut ("they do basically same thing" — Nel). */
.jobcard__band { font-weight: var(--fw-black); }
.jobcard__band--excellent { color: #15875e; }
.jobcard__band--strong    { color: #4d7c0f; }
.jobcard__band--good      { color: #b45309; }
.jobcard__band--partial   { color: var(--muted); }

/* ── What people say: testimonial wall + rating form + Google badge ──────────
   The wall is curated and says so ("what people say"); nothing here renders an
   average of it. The Google badge is the one number we did not choose. */
.say__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: var(--sp-5); align-items: start; }
.say__grid--formonly { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
@media (max-width: 860px) { .say__grid { grid-template-columns: 1fr; } }

.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .quotes { grid-template-columns: 1fr; } .quote:nth-child(n+4) { display: none; } }
.quote { background: var(--surface); border-radius: var(--r-3); box-shadow: var(--sh-1);
  padding: var(--sp-4) var(--sp-4) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.quote__stars { color: #f5b301; font-size: .95rem; letter-spacing: .06em; line-height: 1; }
.quote__stars i { font-style: normal; }
.quote__stars i.is-off { color: var(--line-2); }
.quote__text { margin: 0; font-size: var(--fs-base); line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.quote__who { margin: auto 0 0; font-size: var(--fs-xs); color: var(--muted); }
.quote__who b { color: var(--ink); font-weight: 600; }

.rate { background: var(--surface); border-radius: var(--r-4); box-shadow: var(--sh-2);
  padding: var(--sp-5); border: 1px solid var(--line); }
.rate__lead { margin: 0 0 var(--sp-3); font-weight: 650; font-size: var(--fs-md); color: var(--ink); }
.rate__stars { border: 0; margin: 0 0 var(--sp-3); padding: 0; display: flex; flex-direction: row-reverse;
  justify-content: flex-start; gap: 2px; width: max-content; }
.rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rate__stars label { font-size: 2rem; line-height: 1; color: var(--line-2); cursor: pointer;
  transition: color .12s, transform .12s; padding: 0 .05em; }
/* Every star up to (and including) the hovered or checked one lights — the row is
   reversed in the DOM so the general-sibling combinator reaches the "earlier" stars. */
.rate__stars label:hover, .rate__stars label:hover ~ label,
.rate__stars input:checked ~ label { color: #f5b301; }
.rate__stars label:hover { transform: scale(1.12); }
.rate__stars input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.rate__field { display: block; }
.rate__field textarea, .rate__field input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: var(--fs-base); color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line-2); border-radius: var(--r-2);
  padding: .6rem .75rem; resize: vertical; }
.rate__field textarea:focus, .rate__field input:focus { outline: 0; border-color: var(--brand); background: var(--surface); }
.rate__row { display: flex; gap: var(--sp-3); align-items: center; margin-top: var(--sp-3); flex-wrap: wrap; }
.rate__field--name { flex: 1; min-width: 160px; }
.rate__as { flex: 1; font-size: var(--fs-sm); color: var(--muted); }
.rate__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rate__fine { margin: var(--sp-3) 0 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.rate__thanks .btn { margin-top: var(--sp-3); }

.gbadge { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .4rem .9rem .4rem .5rem; box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; }
.gbadge:hover { border-color: var(--brand-line); }
.gbadge__g { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: #fff; color: #4285f4; font-weight: 800; font-family: Arial, sans-serif; font-size: 1rem;
  box-shadow: inset 0 0 0 1.5px #e3e3e3; }
.gbadge__num { font-weight: 750; font-size: var(--fs-md); }
.gbadge__stars { position: relative; color: var(--line-2); letter-spacing: .04em; font-size: .9rem; line-height: 1; }
.gbadge__stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--fill, 100%);
  overflow: hidden; color: #f5b301; white-space: nowrap; }
.gbadge__meta { font-size: var(--fs-xs); color: var(--muted); }
.gbtn { display: inline-flex; align-items: center; gap: .5rem; }

/* The hidden attribute must win over any author display value. Without this,
   `.cform__form { display: grid }` kept a form on screen after JS set `hidden`
   on it — the thank-you and the form showed together. */
[hidden] { display: none !important; }

/* ── Contact: footer dialog, /contact/ page, the one form ───────────────────── */
.contactdlg { border: 0; padding: 0; background: transparent; max-width: min(640px, calc(100vw - 2rem));
  width: 100%; margin: auto; }
.contactdlg::backdrop { background: rgba(18, 18, 31, .55); backdrop-filter: blur(3px); }
.contactdlg__inner { background: var(--surface); border-radius: var(--r-4); box-shadow: var(--sh-3);
  padding: var(--sp-5) var(--sp-6) var(--sp-6); max-height: calc(100vh - 3rem); overflow: auto; }
.contactdlg__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.contactdlg__title { margin: 0; font-size: var(--fs-xl); letter-spacing: -.02em; }
.contactdlg__x { border: 0; background: var(--surface-2); color: var(--ink-2); width: 2.2rem; height: 2.2rem;
  border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.contactdlg__x:hover { background: var(--brand-soft); color: var(--brand); }
@media (max-width: 560px) { .contactdlg__inner { padding: var(--sp-4); border-radius: var(--r-3); } }

.contactpage { max-width: 640px; margin: 0 auto; }
.contactpage__head { margin-bottom: var(--sp-5); }
.contactpage__head h1 { margin: 0 0 var(--sp-2); font-size: var(--fs-2xl); letter-spacing: -.02em; }

.cform__form { display: grid; gap: var(--sp-4); }
.cform__topics { border: 0; margin: 0; padding: 0; display: grid; gap: var(--sp-2);
  grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cform__legend { grid-column: 1 / -1; font-weight: 650; font-size: var(--fs-base); margin-bottom: var(--sp-1); }
.cform__topic { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: var(--r-2);
  border: 1.5px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: var(--fs-base); }
.cform__topic:hover { border-color: var(--brand-line); }
.cform__topic:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cform__topic input { accent-color: var(--brand); margin: 0; }
.cform__row { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .cform__row, .cform__topics { grid-template-columns: 1fr; } }
.cform__field { display: grid; gap: .35rem; }
.cform__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.cform__field input, .cform__field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: var(--fs-base); color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line-2); border-radius: var(--r-2);
  padding: .65rem .8rem; resize: vertical; }
.cform__field input:focus, .cform__field textarea:focus { outline: 0; border-color: var(--brand); background: var(--surface); }
.cform__field input.is-locked { color: var(--muted); background: var(--surface); border-style: dashed; }
.cform__actions { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.cform__fine { font-size: var(--fs-xs); color: var(--muted); }

.contactdone { background: var(--ok-bg, #eefaf1); border: 1px solid var(--ok, #22a25f); border-radius: var(--r-3);
  padding: var(--sp-4) var(--sp-5); display: grid; gap: var(--sp-2); }
.contactdone__lead { margin: 0; font-weight: 650; color: var(--ink); }
.contactdone__ref { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.contactdone .btn { justify-self: start; }

/* ── Conversations (messages/ and admin inbox) ──────────────────────────────── */
.navbadge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .4rem;
  border-radius: var(--r-pill); background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; vertical-align: middle; }
.msgs__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.msgs__back { margin: 0 0 .5rem; font-size: var(--fs-sm); }
.msgs__compose { margin-top: var(--sp-6); }
.threads { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.thread__link { display: grid; gap: .35rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-3); color: var(--ink); text-decoration: none; box-shadow: var(--sh-1); }
.thread__link:hover { border-color: var(--brand-line); }
.thread.is-unread .thread__link { border-left: 4px solid var(--brand); }
.thread.is-closed .thread__link { opacity: .75; }
.thread__top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: var(--fs-sm); }
.thread__ref { font-weight: 700; }
.thread__new { background: var(--brand); color: #fff; border-radius: var(--r-pill); padding: .1rem .5rem; font-size: var(--fs-xs); font-weight: 700; }
.thread__state { color: var(--muted); font-size: var(--fs-xs); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: .1rem .5rem; }
.thread__when { margin-left: auto; color: var(--muted); }
.thread__excerpt { color: var(--ink-2); font-size: var(--fs-base); }
.convo { list-style: none; margin: var(--sp-4) 0; padding: 0; display: grid; gap: var(--sp-3); }
.bubble { max-width: 80%; padding: .8rem 1rem; border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line); }
.bubble--me { justify-self: end; background: var(--brand-soft); border-color: var(--brand-line); }
.bubble--them { justify-self: start; }
.bubble__who { margin: 0 0 .3rem; font-size: var(--fs-xs); color: var(--muted); }
.bubble__body { font-size: var(--fs-base); line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.replybox { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.replybox .cform__field textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: var(--fs-base); color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line-2); border-radius: var(--r-2); padding: .65rem .8rem; }
.replybox .cform__field textarea:focus { outline: 0; border-color: var(--brand); background: var(--surface); }
.modcard--unseen { border-left: 4px solid var(--brand); }
@media (max-width: 560px) { .bubble { max-width: 100%; } }

.btn--danger { color: var(--late); }
.btn--danger:hover { background: var(--late-bg); }

/* ── Responsiveness (No-Ghosting) ──────────────────────────────────────────── */
.tag--resp { background: #e8f7ee; color: #157347; border: 1px solid #bfe8d0; font-weight: 650; }
.job__resp { margin: .4rem 0 0; font-size: .85rem; color: var(--ink-2); }
.job__resp--badge .job__respmark { color: #157347; }
.job__paycheck { margin: .35rem 0 0; font-size: .85rem; color: var(--ink-2); }
.job__paycheck--above { color: #157347; }
.job__paycheck--below { color: #b45309; }
.job__paycheck a { white-space: nowrap; }
.respcard { border-top: 1px solid var(--line); }
.respcard--earned { background: #f2fbf5; }

/* ── Salaries page ─────────────────────────────────────────────────────────── */
.salaries { max-width: 56rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.salaries__head h1 { margin: 0 0 .35rem; }
.salaries__sub { color: var(--ink-2); max-width: 44rem; }
.salaries__countries { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1rem 0 1.25rem; }
.salaries__table { min-width: 34rem; }
.salaries__note { font-size: .8rem; color: var(--muted); max-width: 44rem; margin-top: 1rem; }
.salaries__empty { padding: 2rem 0; color: var(--ink-2); }
.salaries__cc { display: inline-flex; align-items: center; padding: .3rem .8rem; font-size: .82rem;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface);
  color: var(--ink-2); text-decoration: none; }
.salaries__cc:hover { border-color: var(--brand); color: var(--brand); }
.salaries__cc.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.salaries__wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-3); box-shadow: var(--sh-1); }
.salaries__table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.salaries__table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.salaries__table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.salaries__table tbody tr:last-child td { border-bottom: 0; }
.salaries__table tbody tr:hover { background: var(--surface-2); }
.salaries__muted { color: var(--muted); }

/* ── Insights ──────────────────────────────────────────────────────────────── */
.inspage { max-width: 56rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.inspage__sub { color: var(--ink-2); max-width: 44rem; }
.inspage__h { margin: 1.75rem 0 .75rem; font-size: 1.05rem; }
.inspage__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .8rem; }
.inspage__empty { padding: 2rem 0; color: var(--ink-2); }
.inscard { display: grid; gap: .3rem; align-content: start; padding: 1rem 1.1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--sh-1); text-decoration: none; color: var(--ink); }
.inscard:hover { border-color: var(--brand); }
.inscard__kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.inscard__title { font-size: 1rem; line-height: 1.3; }
.inscard__summary { font-size: .85rem; color: var(--ink-2); }
.inscard__when { font-size: .75rem; color: var(--muted); }
.inspost { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.inspost__crumb { font-size: .85rem; }
.inspost__kind { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); margin: 0 0 .3rem; }
.inspost__title { margin: 0 0 .5rem; line-height: 1.2; }
.inspost__summary { color: var(--ink-2); font-size: 1.05rem; }
.inspost__body { line-height: 1.7; }
.inspost__body h2 { margin: 1.6rem 0 .5rem; font-size: 1.15rem; }
.inspost__body ul { padding-left: 1.2rem; }
.inspost__body li { margin: .3rem 0; }
.inspost__foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
