/* ==========================================================================
   Hirestack

   Two audiences share this interface. Employers are about to spend money, so
   the surface has to read as a serious tool: cool greys, hairlines instead of
   drop shadows, tabular figures. Candidates are scanning fast, so listings are
   dense rows rather than cards, with salary right-aligned in a fixed column.

   Colour carries meaning and nothing else:
     blue   — the product and its primary actions
     green  — a "go" action the person takes (apply, publish)
     gold   — a paid placement, and nothing else
     red    — a real problem
   ========================================================================== */

:root {
  /* Surfaces — cool rather than warm, so the page reads as software */
  --paper:        #F7F8FA;
  --surface:      #FFFFFF;
  --surface-sunk: #F2F4F8;
  --surface-wash: #EEF1FE;

  /* Ink */
  --ink:    #101828;
  --ink-2:  #3D4759;
  --muted:  #5B6478;
  --faint:  #8A93A6;

  /* Lines carry structure here; shadows are reserved for things that float */
  --line:        #E4E7EE;
  --line-strong: #CDD4E0;

  /* Meaning */
  --brand:       #2A44E8;
  --brand-deep:  #1A2FA8;
  --brand-soft:  #E8ECFD;
  --go:          #0E9F6E;
  --go-deep:     #0A7C55;
  --go-soft:     #E4F6EE;
  --gold:        #C98A14;
  --gold-soft:   #FBF3E0;
  --gold-line:   #EBCF8E;
  --alert:       #D64545;
  --alert-soft:  #FCECEC;

  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 7px;
  --r:    10px;
  --r-lg: 16px;

  --maxw: 1160px;
  --gutter: clamp(1rem, 4vw, 2.25rem);

  --pop: 0 12px 32px -12px rgba(16, 24, 40, .22), 0 2px 6px -2px rgba(16, 24, 40, .1);
}

[data-theme="dark"] {
  --paper:        #0B1020;
  --surface:      #131A2E;
  --surface-sunk: #0E1526;
  --surface-wash: #1A2246;
  --ink:    #E9EDF6;
  --ink-2:  #C2CADB;
  --muted:  #97A1B8;
  --faint:  #737E97;
  --line:        #232C45;
  --line-strong: #33405F;
  --brand:       #7B90FF;
  --brand-deep:  #9AAAFF;
  --brand-soft:  #1B2450;
  --go:          #3BD69B;
  --go-deep:     #55E3AC;
  --go-soft:     #10331F;
  --gold:        #E7B95C;
  --gold-soft:   #2C2313;
  --gold-line:   #5A4720;
  --alert:       #F2777A;
  --alert-soft:  #341A1D;
  --pop: 0 16px 40px -16px rgba(0, 0, 0, .7);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.022em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.05rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.16rem; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r);
}
.skip:focus { left: 12px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 22px; height: 62px; }

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 800; font-size: 1.19rem;
  letter-spacing: -.03em; color: var(--ink); text-decoration: none; flex: none;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: linear-gradient(150deg, var(--brand), #5B6BF5);
  display: grid; place-items: center; color: #fff; font-size: .82rem; font-weight: 800;
}

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  color: var(--muted); font-size: .935rem; font-weight: 500;
  padding: 7px 11px; border-radius: var(--r-sm); text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--surface-sunk); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 9px; flex: none; }

.theme-toggle {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  border: 1px solid var(--line); color: var(--muted);
  display: grid; place-items: center; background: var(--surface);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
[data-theme="dark"] .theme-toggle .sun,
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.menu-btn { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--r-sm); }

/* Account menu */
.account { position: relative; }
.account-btn {
  display: flex; align-items: center; gap: 8px; padding: 4px 9px 4px 4px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface);
}
.account-btn:hover { border-color: var(--line-strong); }
.avatar {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 700;
}
.account-name { font-size: .88rem; font-weight: 550; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 232px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--pop); padding: 6px; display: none; z-index: 70;
}
.account-menu.open { display: block; }
.account-menu .who { padding: 9px 11px 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.account-menu .who strong { display: block; font-size: .9rem; }
.account-menu .who span { font-size: .8rem; color: var(--faint); word-break: break-all; }
.account-menu a, .account-menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 8px 11px; border-radius: var(--r-sm); font-size: .9rem;
  color: var(--ink-2); text-align: left; text-decoration: none;
}
.account-menu a:hover, .account-menu button:hover { background: var(--surface-sunk); color: var(--ink); text-decoration: none; }
.account-menu .sep { height: 1px; background: var(--line); margin: 5px 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 17px; border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 600; letter-spacing: -.005em;
  border: 1px solid transparent; white-space: nowrap;
  transition: background-color .13s ease, border-color .13s ease, color .13s ease;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
[data-theme="dark"] .btn-primary { color: #0B1020; }

.btn-go { background: var(--go); color: #fff; }
.btn-go:hover { background: var(--go-deep); }
[data-theme="dark"] .btn-go { color: #08160F; }

.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink-2); }

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { background: var(--surface-sunk); color: var(--ink); }

.btn-danger { border-color: var(--alert); color: var(--alert); background: transparent; }
.btn-danger:hover { background: var(--alert); color: #fff; }

.btn-sm { padding: 6px 12px; font-size: .855rem; border-radius: 6px; }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Hero — the board's freshest listings are the hero, not a stock illustration
   ========================================================================== */
.hero { padding: clamp(2.6rem, 6vw, 4.6rem) 0 2rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .82fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: 1.09rem; color: var(--muted); margin-top: 1.05rem; max-width: 46ch; }

.pulse {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.1rem;
  font-size: .84rem; font-weight: 600; color: var(--go-deep);
  background: var(--go-soft); border-radius: 99px; padding: 5px 13px 5px 10px;
}
[data-theme="dark"] .pulse { color: var(--go); }
.pulse .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--go); animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.searchbar {
  display: flex; gap: 8px; margin-top: 1.7rem; padding: 7px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 13px; box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.searchbar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3.5px var(--brand-soft); }
.searchbar input {
  flex: 1; min-width: 0; border: 0; background: none; padding: 10px 12px; font-size: 1rem;
}
.searchbar input:focus { outline: none; }
.searchbar .btn { flex: none; }

.suggests { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 1rem; align-items: center; }
.suggests span { font-size: .84rem; color: var(--faint); }
.suggests a {
  font-size: .845rem; color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; text-decoration: none;
}
.suggests a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.hero-stats { display: flex; gap: 2rem; margin-top: 2.2rem; }
.hero-stats div { }
.hero-stats b { display: block; font-family: var(--display); font-size: 1.5rem; letter-spacing: -.03em; }
.hero-stats small { color: var(--faint); font-size: .84rem; }

/* Fresh listings preview beside the hero copy */
.freshbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.freshbox header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.freshbox header h2 { font-size: .95rem; letter-spacing: -.01em; }
.freshbox header a { font-size: .85rem; }
.freshbox .row-job { padding-inline: 18px; }
.freshbox .row-job:last-child { border-bottom: 0; }

/* one orchestrated entrance, hero only */
.stagger > * { animation: rise .5s cubic-bezier(.22,.61,.36,1) backwards; }
.stagger > *:nth-child(1) { animation-delay: .04s; }
.stagger > *:nth-child(2) { animation-delay: .11s; }
.stagger > *:nth-child(3) { animation-delay: .18s; }
.stagger > *:nth-child(4) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Job rows — the core object of the whole product
   ========================================================================== */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 20px; border-bottom: 1px solid var(--line); background: var(--surface-sunk);
}
.board-head p { font-size: .89rem; color: var(--muted); }
.board-head strong { color: var(--ink); }

.row-job {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 0 15px; align-items: center;
  padding: 15px 20px; border-bottom: 1px solid var(--line);
  position: relative; transition: background-color .12s ease;
}
.row-job:last-child { border-bottom: 0; }
.row-job:hover { background: var(--surface-sunk); }
.row-job.is-featured { background: var(--gold-soft); }
.row-job.is-featured::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold);
}
.row-job.is-featured:hover { background: color-mix(in srgb, var(--gold-soft) 80%, var(--paper)); }

.logo {
  width: 42px; height: 42px; border-radius: 9px; flex: none;
  display: grid; place-items: center; color: #fff;
  font-family: var(--display); font-weight: 700; font-size: .93rem;
  object-fit: contain; background-color: var(--surface-sunk);
}
.logo.img { background: var(--surface); border: 1px solid var(--line); padding: 4px; }

.row-main { min-width: 0; }
.row-title {
  font-family: var(--display); font-size: 1.03rem; font-weight: 650; letter-spacing: -.017em;
  color: var(--ink); text-decoration: none; display: inline-block;
}
.row-title:hover { color: var(--brand); text-decoration: none; }
.row-company { font-size: .885rem; color: var(--muted); margin-top: 1px; }
.row-company b { font-weight: 550; color: var(--ink-2); }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.row-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.row-pay { font-size: .93rem; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.row-age { font-size: .8rem; color: var(--faint); white-space: nowrap; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .785rem; font-weight: 500; color: var(--ink-2);
  background: var(--surface-sunk); border: 1px solid var(--line);
  border-radius: 5px; padding: 2px 8px; white-space: nowrap;
}
.row-job.is-featured .tag { background: var(--surface); border-color: var(--gold-line); }
.tag-remote { color: var(--go-deep); background: var(--go-soft); border-color: transparent; }
[data-theme="dark"] .tag-remote { color: var(--go); }
.tag-gold { color: var(--gold); background: var(--gold-soft); border-color: var(--gold-line); font-weight: 600; }
.tag-brand { color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.tag-alert { color: var(--alert); background: var(--alert-soft); border-color: transparent; }
.tag-stack { background: transparent; border-color: var(--line-strong); color: var(--muted); }

.save-btn {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: var(--faint); border: 1px solid transparent;
}
.save-btn:hover { color: var(--brand); background: var(--surface); border-color: var(--line); }
.save-btn[aria-pressed="true"] { color: var(--brand); }
.save-btn[aria-pressed="true"] svg { fill: currentColor; }

/* ==========================================================================
   Board layout with filters
   ========================================================================== */
.board-layout { display: grid; grid-template-columns: 234px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters {
  position: sticky; top: 78px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px;
}
.filters h2 { font-size: .95rem; margin-bottom: 4px; }
.filter-group { padding-block: 13px; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group > strong { display: block; font-size: .83rem; font-weight: 600; color: var(--faint); margin-bottom: 8px; }
.filter-group label {
  display: flex; align-items: center; gap: 8px; padding: 4px 0;
  font-size: .89rem; color: var(--ink-2); cursor: pointer;
}
.filter-group label:hover { color: var(--ink); }
.filter-group label .n { margin-left: auto; font-size: .78rem; color: var(--faint); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); width: 15px; height: 15px; flex: none; }

/* ==========================================================================
   Job detail
   ========================================================================== */
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.job-head { display: flex; gap: 17px; align-items: flex-start; margin-bottom: 6px; }
.job-head .logo { width: 58px; height: 58px; border-radius: 12px; font-size: 1.25rem; }
.job-head h1 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); }
.job-head .sub { color: var(--muted); margin-top: 6px; font-size: .98rem; }
.job-head .sub a { font-weight: 550; }

.prose { color: var(--ink-2); line-height: 1.72; max-width: 68ch; }
.prose h2 { font-size: 1.2rem; color: var(--ink); margin: 2rem 0 .7rem; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1.25rem; }
.prose li { position: relative; padding-left: 21px; margin-bottom: .5rem; }
.prose li::before {
  content: ""; position: absolute; left: 3px; top: .66em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--brand); opacity: .55;
}

.apply-card {
  position: sticky; top: 78px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px;
}
.apply-card .pay { font-family: var(--display); font-size: 1.45rem; letter-spacing: -.03em; }
.apply-card .pay small { display: block; font-family: var(--body); font-size: .82rem; color: var(--faint); font-weight: 400; letter-spacing: 0; }
.facts { margin: 16px 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.facts dt { color: var(--faint); }
.facts dd { color: var(--ink-2); font-weight: 550; text-align: right; }

/* ==========================================================================
   Sections, panels, forms
   ========================================================================== */
.section { padding-block: clamp(2.4rem, 5vw, 3.8rem); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin-top: .4rem; max-width: 56ch; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-pad { padding: clamp(18px, 3vw, 26px); }
.panel + .panel { margin-top: 18px; }
.panel-head { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 { font-size: 1.03rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); gap: 10px; }
.cat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 15px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); color: var(--ink); font-size: .93rem; font-weight: 550; text-decoration: none;
}
.cat:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.cat .n { font-size: .82rem; color: var(--faint); font-weight: 500; }

.field { margin-bottom: 17px; }
.field > label, .label { display: block; font-size: .885rem; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .82rem; color: var(--faint); margin-top: 5px; }
.field .err { font-size: .82rem; color: var(--alert); margin-top: 5px; font-weight: 500; }

.input, .select, .textarea {
  width: 100%; padding: 10px 13px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: .95rem; transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3.5px var(--brand-soft);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--alert); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235B6478' d='M6 8 0 1.4 1.4 0 6 4.8 10.6 0 12 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.check { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 6px; }

.meter { height: 4px; background: var(--surface-sunk); border-radius: 99px; overflow: hidden; margin-top: 7px; }
.meter i { display: block; height: 100%; width: 0; background: var(--alert); transition: width .2s ease, background-color .2s ease; }
.meter[data-score="2"] i { background: var(--gold); }
.meter[data-score="3"] i { background: var(--go); }
.meter[data-score="4"] i { background: var(--go-deep); }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth { display: grid; place-items: center; padding: clamp(2rem, 6vw, 4rem) 0; flex: 1; }
.auth-card { width: 100%; max-width: 432px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 32px); }
.auth-card h1 { font-size: 1.62rem; margin-bottom: .4rem; }
.auth-card > p { color: var(--muted); font-size: .93rem; margin-bottom: 1.5rem; }
.auth-foot { text-align: center; margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface-sunk); border-radius: var(--r); margin-bottom: 1.4rem; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; text-align: center; padding: 9px; border-radius: 7px; font-size: .9rem; font-weight: 550; color: var(--muted); cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.segmented input:focus-visible + span { outline: 2.5px solid var(--brand); outline-offset: 2px; }

/* ==========================================================================
   Alerts, flash, empty states
   ========================================================================== */
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 15px; border-radius: var(--r); margin-bottom: 18px;
  font-size: .92rem; border: 1px solid;
}
.flash-success { background: var(--go-soft); border-color: transparent; color: var(--go-deep); }
[data-theme="dark"] .flash-success { color: var(--go); }
.flash-error { background: var(--alert-soft); border-color: transparent; color: var(--alert); }
.flash-info { background: var(--brand-soft); border-color: transparent; color: var(--brand-deep); }
[data-theme="dark"] .flash-info { color: var(--brand); }

.empty { text-align: center; padding: clamp(2.4rem, 6vw, 4rem) 1.5rem; }
.empty h3 { font-size: 1.14rem; margin-bottom: .45rem; }
.empty p { color: var(--muted); max-width: 42ch; margin: 0 auto 1.3rem; font-size: .94rem; }

.banner {
  background: var(--brand); color: #fff; text-align: center;
  padding: 9px 16px; font-size: .89rem; font-weight: 500;
}
.banner a { color: #fff; text-decoration: underline; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column;
}
.plan.is-pick { border-color: var(--gold); border-width: 1.5px; background: var(--gold-soft); position: relative; }
.plan.is-pick .ribbon {
  position: absolute; top: -11px; left: 24px;
  background: var(--gold); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 3px 10px; border-radius: 5px;
}
[data-theme="dark"] .plan.is-pick .ribbon { color: #17130A; }
.plan h3 { font-size: 1.1rem; }
.plan .price { font-family: var(--display); font-size: 2.25rem; letter-spacing: -.04em; margin: 12px 0 2px; }
.plan .price small { font-size: .86rem; font-family: var(--body); color: var(--faint); font-weight: 400; letter-spacing: 0; }
.plan .blurb { font-size: .9rem; color: var(--muted); min-height: 42px; }
.plan ul { margin: 18px 0 22px; flex: 1; }
.plan li { position: relative; padding-left: 24px; font-size: .9rem; margin-bottom: 9px; color: var(--ink-2); }
.plan li::before {
  content: ""; position: absolute; left: 1px; top: .42em; width: 13px; height: 8px;
  border-left: 2px solid var(--go); border-bottom: 2px solid var(--go);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dash { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 26px; flex: 1; }
.dash-nav { position: sticky; top: 78px; }
.dash-nav .group { margin-bottom: 20px; }
.dash-nav .group > strong { display: block; font-size: .78rem; font-weight: 650; color: var(--faint); padding: 0 11px; margin-bottom: 6px; }
.dash-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 11px; border-radius: var(--r-sm); font-size: .92rem;
  color: var(--muted); text-decoration: none; margin-bottom: 1px;
}
.dash-nav a:hover { background: var(--surface-sunk); color: var(--ink); text-decoration: none; }
.dash-nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.dash-nav a .pill {
  font-size: .74rem; font-weight: 700; background: var(--brand); color: #fff;
  border-radius: 99px; padding: 1px 7px; min-width: 20px; text-align: center;
}
[data-theme="dark"] .dash-nav a .pill { color: #0B1020; }

.dash-head { margin-bottom: 20px; }
.dash-head h1 { font-size: 1.62rem; }
.dash-head p { color: var(--muted); font-size: .94rem; margin-top: 3px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; }
.stat b { display: block; font-family: var(--display); font-size: 1.62rem; letter-spacing: -.035em; line-height: 1.1; }
.stat span { font-size: .83rem; color: var(--faint); }
.stat.accent b { color: var(--go); }
.stat.gold b { color: var(--gold); }

.progress { height: 6px; background: var(--surface-sunk); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--go); border-radius: 99px; transition: width .3s ease; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .89rem; }
table.data th {
  text-align: left; font-weight: 600; color: var(--faint); font-size: .81rem;
  padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--surface-sunk); }
table.data .num { text-align: right; }

.status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 99px;
  background: var(--surface-sunk); color: var(--muted);
}
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.published, .status.paid, .status.active, .status.hired { background: var(--go-soft); color: var(--go-deep); }
[data-theme="dark"] .status.published, [data-theme="dark"] .status.paid,
[data-theme="dark"] .status.active, [data-theme="dark"] .status.hired { color: var(--go); }
.status.pending_payment, .status.pending, .status.pending_review, .status.submitted { background: var(--gold-soft); color: var(--gold); }
.status.rejected, .status.failed, .status.suspended { background: var(--alert-soft); color: var(--alert); }
.status.expired, .status.closed, .status.cancelled, .status.draft { background: var(--surface-sunk); color: var(--faint); }
.status.shortlisted, .status.interview, .status.offer, .status.reviewing { background: var(--brand-soft); color: var(--brand); }

/* Pipeline tabs */
.pipeline { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 4px; padding: 0 6px; }
.pipeline a {
  padding: 11px 13px; font-size: .89rem; font-weight: 550; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; white-space: nowrap;
}
.pipeline a:hover { color: var(--ink); text-decoration: none; }
.pipeline a.on { color: var(--brand); border-bottom-color: var(--brand); }
.pipeline a .n { color: var(--faint); font-weight: 500; }

/* Sparkline chart */
.spark { display: flex; align-items: flex-end; gap: 2px; height: 62px; }
.spark i { flex: 1; background: var(--brand-soft); border-radius: 2px 2px 0 0; min-height: 2px; position: relative; }
.spark i[data-v]:hover { background: var(--brand); }

/* ==========================================================================
   Footer
   ========================================================================== */
.cta-strip { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 5vw, 44px); display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
[data-theme="dark"] .cta-strip { background: var(--surface-wash); }
.cta-strip h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); max-width: 20ch; color: #fff; }
.cta-strip p { color: rgba(255,255,255,.72); margin-top: .5rem; max-width: 48ch; font-size: .96rem; }

.site-footer { border-top: 1px solid var(--line); margin-top: auto; padding-block: 40px 30px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; }
.foot-grid h4 { font-family: var(--body); font-size: .84rem; font-weight: 650; color: var(--faint); margin-bottom: 11px; }
.foot-grid a { display: block; font-size: .9rem; color: var(--muted); padding: 3px 0; text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: none; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--faint); }

/* ==========================================================================
   Pagination and misc
   ========================================================================== */
.pager { display: flex; gap: 6px; justify-content: center; align-items: center; padding: 20px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .89rem;
  color: var(--ink-2); text-decoration: none;
}
.pager a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .gap { border: 0; }

.divider { height: 1px; background: var(--line); margin-block: 22px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .86rem; }
.mono-num { font-variant-numeric: tabular-nums; }
.stack-sm > * + * { margin-top: 8px; }
.stack > * + * { margin-top: 16px; }
.row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .freshbox { order: 2; }
  .job-layout { grid-template-columns: 1fr; }
  .apply-card { position: static; }
  .board-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .dash-nav .group { margin-bottom: 0; display: flex; gap: 4px; }
  .dash-nav .group > strong { display: none; }
  .dash-nav a { white-space: nowrap; }
  .plans { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 62px; left: 0; right: 0; padding: 10px var(--gutter) 16px;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--pop);
  }
  .menu-btn { display: grid; place-items: center; }
  .site-header .bar { gap: 10px; }
  .account-name { display: none; }

  .row-job { grid-template-columns: 36px minmax(0, 1fr); row-gap: 9px; padding: 14px 15px; }
  .logo { width: 36px; height: 36px; font-size: .82rem; }
  .row-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .board-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-stats { gap: 1.4rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .apply-card, .btn, .dash-nav { display: none !important; }
  body { background: #fff; }
}
