/* ============================================================
   CTIAnalyst.com — Design System
   Warm white + orange on ink.
   Schibsted Grotesk (display) / Hanken Grotesk (body) / IBM Plex Mono (data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Schibsted+Grotesk:wght@400;500;600;700;800&family=Hanken+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ── Design Tokens ─────────────────────────────────────── */

:root {
  /* surfaces */
  --bg:          #FBFAF8;
  --bg-2:        #F4F2ED;
  --surface:     #FFFFFF;
  --ink:         #11131A;
  --ink-soft:    #2B2F3A;

  /* text */
  --text:        #1B1E27;
  --muted:       #5E6675;
  --faint:       #8A91A0;

  /* lines */
  --line:        #E7E4DD;
  --line-2:      #D9D5CC;

  /* accent — warm orange */
  --accent:          #FF5C35;
  --accent-ink:      #E0461F;
  --accent-wash:     #FFEDE6;
  --accent-wash-2:   #FFF4EF;

  /* support hues */
  --teal:   #0E9E8E;
  --indigo: #4856C9;
  --gold:   #C98A12;
  --rose:   #C0395E;
  --slate:  #64748B;

  /* status */
  --good:       #1F9D57;
  --good-wash:  #E7F6EC;

  /* radii */
  --r-sm:   7px;
  --r-md:   11px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-pill: 999px;

  /* shadows */
  --sh-1:   0 1px 2px rgba(17,19,26,.05), 0 1px 1px rgba(17,19,26,.04);
  --sh-2:   0 4px 14px rgba(17,19,26,.07), 0 1px 3px rgba(17,19,26,.05);
  --sh-3:   0 18px 48px rgba(17,19,26,.13), 0 4px 14px rgba(17,19,26,.08);
  --sh-pop: 0 24px 60px rgba(17,19,26,.18);

  /* typography */
  --f-display: "Schibsted Grotesk", system-ui, sans-serif;
  --f-body:    "Hanken Grotesk",    system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --nav-h: 64px;
  --maxw:  1240px;
  --content-width: 760px;

  /* ── Legacy token aliases (keep old templates working) ── */
  --navy:        #11131A;
  --navy-light:  #1e2538;
  --white:       #FFFFFF;
  --amber:       #FF5C35;
  --amber-dark:  #E0461F;
  --amber-light: #FFEDE6;
  --gray-50:     #FBFAF8;
  --gray-100:    #F4F2ED;
  --gray-200:    #E7E4DD;
  --gray-300:    #D9D5CC;
  --gray-500:    #8A91A0;
  --gray-700:    #5E6675;
  --gray-900:    #1B1E27;
  --red:         #C0395E;
  --green:       #1F9D57;
  --radius-sm:   var(--r-sm);
  --radius:      var(--r-md);
  --radius-lg:   var(--r-lg);
  --shadow-sm:   var(--sh-1);
  --shadow:      var(--sh-2);
  --shadow-lg:   var(--sh-3);
  --transition:  150ms ease;
  --max-width:   1240px;
}

/* ── Reset & Base ──────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
p { margin: 0; text-wrap: pretty; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.0625rem; }

strong, b { font-weight: 600; }
em { font-style: italic; }
small { font-size: 0.8125rem; color: var(--muted); }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.mono { font-family: var(--f-mono); }

/* ── Layout ──────────────────────────────────────────── */

.wrap, .container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.container--narrow { max-width: var(--content-width); }

.section     { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* subtle scrollbars */
.scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.scroll::-webkit-scrollbar-thumb { background: #d8d4cb; border-radius: 999px; border: 3px solid var(--bg); }
.scroll::-webkit-scrollbar-thumb:hover { background: #c4bfb4; }
.scroll::-webkit-scrollbar-track { background: transparent; }

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--f-body); font-weight: 600; font-size: 14px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 0 18px; height: 42px; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease,
              border-color .15s ease, color .15s ease;
  user-select: none; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* primary — orange */
.btn--primary, .btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 0 rgba(192,53,18,.35), var(--sh-1);
}
.btn--primary:hover, .btn-primary:hover {
  background: #ff6f4d;
  box-shadow: 0 4px 14px rgba(255,92,53,.4);
}

/* ink — near-black */
.btn--ink, .btn-ink, .btn--navy {
  background: var(--ink); color: #fff;
}
.btn--ink:hover, .btn-ink:hover, .btn--navy:hover {
  background: #23262f; box-shadow: var(--sh-2);
}

/* ghost — outlined */
.btn--ghost, .btn-ghost, .btn--outline {
  background: transparent; color: var(--ink); border-color: var(--line-2);
}
.btn--ghost:hover, .btn-ghost:hover, .btn--outline:hover {
  background: #fff; border-color: var(--ink); box-shadow: var(--sh-1);
}

/* soft — tint */
.btn--soft, .btn-soft {
  background: var(--accent-wash); color: var(--accent-ink);
}
.btn--soft:hover, .btn-soft:hover { background: #ffe0d4; }

/* outline-white — for dark backgrounds */
.btn--outline-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.35);
}
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* sizes */
.btn--sm, .btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn--sm svg, .btn-sm svg { width: 15px; height: 15px; }
.btn--lg, .btn-lg { height: 50px; padding: 0 26px; font-size: 15.5px; }
.btn--icon { width: 42px; padding: 0; }
.btn--block, .btn-block { display: flex; width: 100%; }

/* status colours */
.btn--danger  { background: var(--rose); color: #fff; }
.btn--success { background: var(--good); color: #fff; }

/* ── Badges / Tags / Chips ───────────────────────────── */

/* mono data tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .01em;
  color: var(--ink-soft); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 3px 8px; white-space: nowrap;
}
.tag--accent { color: var(--accent-ink); background: var(--accent-wash); border-color: #ffd9cb; }
.tag--good   { color: var(--good); background: var(--good-wash); border-color: #c7ead4; }
.tag--indigo { color: var(--indigo); background: rgba(72,86,201,.08); border-color: rgba(72,86,201,.2); }

/* badge */
.badge {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: var(--r-sm); white-space: nowrap;
}
.badge--type      { background: var(--ink); color: #fff; }
.badge--remote    { background: var(--accent-wash); color: var(--accent-ink); }
.badge--seniority { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.badge--specialty { background: var(--bg-2); color: var(--ink-soft); border: 1px solid var(--line); }
.badge--urgent    { background: var(--accent); color: #fff; }
.badge--clearance { background: rgba(72,86,201,.1); color: var(--indigo); border: 1px solid rgba(72,86,201,.2); }
.badge--pending   { background: #FEF3C7; color: #92400E; }
.badge--active    { background: var(--good-wash); color: var(--good); }
.badge--expired   { background: var(--bg-2); color: var(--muted); }
.badge--rejected  { background: #FEE2E2; color: #991B1B; }

/* filter pill */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: 7px 14px; white-space: nowrap;
  transition: all .14s ease; cursor: pointer; user-select: none;
}
.pill:hover { border-color: var(--ink); }
.pill[data-on="true"], .pill.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* eyebrow label */
.eyebrow {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  display: inline-block;
}

/* ── Cards ───────────────────────────────────────────── */

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
}

/* company monogram tile */
.mono-tile {
  display: grid; place-items: center; flex: none;
  font-family: var(--f-display); font-weight: 700; color: #fff;
  border-radius: var(--r-md); letter-spacing: -0.02em;
}

/* ── Animations ──────────────────────────────────────── */

@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn  { 0%   { opacity: 0; transform: scale(.96); } 100% { opacity: 1; transform: scale(1); } }

.rise { animation: riseIn .5s cubic-bezier(.2,.7,.2,1) both; }
.fade { animation: fadeIn .4s ease both; }
.pop  { animation: popIn  .3s cubic-bezier(.2,.7,.2,1) both; }

.in-1 { animation-delay: .04s; } .in-2 { animation-delay: .10s; }
.in-3 { animation-delay: .16s; } .in-4 { animation-delay: .22s; }
.in-5 { animation-delay: .28s; } .in-6 { animation-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; }
}

/* ── Navigation ──────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(251,250,248,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: var(--nav-h);
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-family: var(--f-display);
  font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo__mark {
  width: 30px; height: 30px; border-radius: var(--r-md);
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff; font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.logo__text-accent { color: var(--accent); }

/* Nav search pill */
.nav-search {
  flex: 1; max-width: 360px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: 0 14px; height: 38px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nav-search:focus-within {
  border-color: var(--ink-soft);
  box-shadow: 0 0 0 3px rgba(17,19,26,.06);
}
.nav-search svg { width: 15px; height: 15px; color: var(--faint); flex-shrink: 0; }
.nav-search input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 13.5px; color: var(--text);
}
.nav-search input::placeholder { color: var(--faint); }

/* Nav links */
.nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
}
.nav__link {
  display: inline-block; padding: 6px 11px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  border-radius: var(--r-sm);
  transition: color .14s ease, background .14s ease;
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--bg-2); }
.nav__link--active {
  color: var(--ink); font-weight: 700; position: relative;
}
.nav__link--active::after {
  content: ''; position: absolute;
  bottom: 1px; left: 11px; right: 11px;
  height: 2.5px; background: var(--accent); border-radius: 2px;
}

/* "Post a job" CTA */
.nav__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 15px; margin-left: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  transition: border-color .14s ease, background .14s ease, color .14s ease;
  white-space: nowrap;
}
.nav__cta:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px; margin-left: auto;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .15s ease; }

/* ── Section helpers ─────────────────────────────────── */

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; gap: 1rem;
}
.section-head h2 { margin: 0; }

/* legacy compat */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2.5rem; gap: 1rem;
}
.section-header h2 { margin: 0; }

.section-label {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); display: block; margin-bottom: 8px;
}

.view-all {
  font-size: 13px; font-weight: 600; color: var(--muted);
  border-bottom: 1px solid var(--line-2); padding-bottom: 1px;
  transition: color .14s ease, border-color .14s ease; white-space: nowrap;
}
.view-all:hover { color: var(--accent-ink); border-color: var(--accent-ink); }

/* ── Hero — split variant ─────────────────────────────── */

.hero {
  background: var(--bg);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden; position: relative;
}

.hero__inner {
  display: grid; grid-template-columns: 1fr 480px;
  gap: 3rem; align-items: center;
}

/* eyebrow with live dot */
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--good); margin-bottom: 20px;
}
.hero__eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--good); flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--good-wash);
}

.hero__heading {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.06; margin-bottom: 18px; color: var(--ink);
}
.hero__heading em { font-style: normal; color: var(--accent); }

.hero__sub {
  font-size: 1.0625rem; color: var(--muted);
  max-width: 480px; margin-bottom: 28px; line-height: 1.6;
}

/* Hero search bar */
.hero-search {
  display: flex; align-items: center;
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill); padding: 5px 5px 5px 18px;
  box-shadow: var(--sh-2); gap: 8px; margin-bottom: 18px;
  max-width: 520px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-search:focus-within { border-color: var(--ink-soft); box-shadow: var(--sh-3); }
.hero-search input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 14.5px; color: var(--text);
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search .btn { flex-shrink: 0; }

/* Popular quick filters */
.hero__popular {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; font-size: 12.5px;
}
.hero__popular-label { font-weight: 600; color: var(--muted); }
.hero__popular a {
  padding: 4px 11px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-pill); font-size: 12px; font-weight: 600; color: var(--ink-soft);
  transition: border-color .14s ease, background .14s ease;
}
.hero__popular a:hover { border-color: var(--ink); background: var(--surface); }

/* Hero right column (preview card) */
.hero__right { display: flex; flex-direction: column; gap: 12px; }

/* Featured job preview card */
.hero-job-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 22px; box-shadow: var(--sh-3);
}
.hero-job-card__top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.hero-job-card__info { flex: 1; min-width: 0; }
.hero-job-card__label {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 8px;
}
.hero-job-card__title { font-size: 1.0625rem; margin-bottom: 4px; }
.hero-job-card__company { font-size: 13px; color: var(--muted); }

.hero-job-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.hero-job-card__footer { display: flex; align-items: center; justify-content: space-between; }
.hero-job-card__salary { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--accent-ink); }

/* small job row previews in hero */
.hero-job-mini {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--sh-1);
}
.hero-job-mini__info { flex: 1; min-width: 0; }
.hero-job-mini__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.hero-job-mini__meta { font-size: 12px; color: var(--muted); }

/* ── Stats band ──────────────────────────────────────── */

.stats-band {
  display: flex; gap: 3rem; align-items: center; flex-wrap: wrap;
  padding: 1.5rem 0; border-top: 1px solid var(--line); margin-top: 2rem;
}

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__value {
  font-family: var(--f-display); font-size: 1.875rem; font-weight: 800;
  color: var(--ink); line-height: 1; letter-spacing: -0.02em;
}
.stat__label {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .10em; text-transform: uppercase; color: var(--muted);
}

/* Legacy stats bar (for admin/company portal pages) */
.stats-bar { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.stats-bar__inner { display: flex; gap: 3rem; align-items: center; flex-wrap: wrap; }

/* ── Job rows (list item in split view) ──────────────── */

.job-row {
  display: block; /* for <a> link */
  padding: 16px 18px;
  background: var(--surface); border-bottom: 1px solid var(--line);
  cursor: pointer; position: relative;
  transition: background .12s ease;
  text-decoration: none; color: inherit;
}
.job-row:last-child { border-bottom: none; }
.job-row:hover { background: var(--bg); }
.job-row.is-active {
  background: var(--bg);
  border-left: 3px solid var(--accent);
  padding-left: 15px;
  box-shadow: inset 0 0 0 0 transparent, var(--sh-2);
}
.job-row__inner { display: flex; flex-direction: column; gap: 8px; }
.job-row__top   { display: flex; align-items: flex-start; gap: 12px; }
.job-row__info  { flex: 1; min-width: 0; }
.job-row__title {
  font-size: 15px; font-weight: 700; color: var(--ink);
  line-height: 1.3; margin-bottom: 3px;
}
.job-row__company { font-size: 12.5px; color: var(--muted); }

.job-row__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted); flex-wrap: wrap;
}
.job-row__meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.job-row__sep::before { content: '·'; margin: 0 2px; }
.job-row__salary {
  font-family: var(--f-mono); font-weight: 600; color: var(--ink-soft); font-size: 12px;
}

.job-row__bottom { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.job-row__time {
  font-family: var(--f-mono); font-size: 11px; color: var(--faint);
  margin-left: auto;
}

/* ── Job cards (grid / home featured) ───────────────── */

.job-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.job-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }

.job-card__top     { display: flex; align-items: flex-start; gap: 12px; }
.job-card__logo, .job-card__logo-placeholder {
  width: 46px; height: 46px; border-radius: var(--r-md); flex-shrink: 0;
}
.job-card__logo {
  border: 1px solid var(--line); object-fit: contain;
  background: var(--bg-2); padding: 4px;
}
.job-card__logo-placeholder {
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; color: #fff;
}
.job-card__meta    { flex: 1; min-width: 0; }
.job-card__company { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.job-card__title   { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.job-card__title a:hover { color: var(--accent-ink); }
.job-card__attrs   { display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.job-card__attrs-sep::before { content: '·'; }
.job-card__tags    { display: flex; flex-wrap: wrap; gap: 5px; }
.job-card__footer  {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
}
.job-card__date    { font-family: var(--f-mono); font-size: 11.5px; color: var(--faint); }

/* jobs grid (home page) */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ── Jobs page — split layout ────────────────────────── */

.jobs-page {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: calc(100vh - var(--nav-h) - 56px);
}

.jobs-list-col {
  border-right: 1px solid var(--line);
  max-height: calc(100vh - 192px);
  overflow-y: auto;
}

.jobs-detail-col {
  position: sticky;
  top: calc(var(--nav-h) + 56px);
  padding: 20px;
  max-height: calc(100vh - calc(var(--nav-h) + 56px));
  overflow-y: auto;
}

/* Filter bar (sticky below nav) */
.filter-bar {
  position: sticky; top: var(--nav-h); z-index: 90;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(17,19,26,.04);
}
.filter-bar__inner {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 0 18px;
}
.filter-bar__label {
  font-size: 13px; font-weight: 700; color: var(--ink);
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
  margin-right: 2px;
}
.filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; font-family: var(--f-mono);
}
.filter-bar__sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; flex-shrink: 0; }
.filter-bar__clear {
  font-size: 12.5px; color: var(--muted); font-weight: 600;
  cursor: pointer; margin-left: auto;
  transition: color .14s ease; background: none; border: none; padding: 0;
}
.filter-bar__clear:hover { color: var(--accent-ink); }

/* Sort + result header above list */
.result-header {
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.result-header h2 { font-size: 0.9375rem; font-weight: 700; }
.result-header__count {
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
}
.result-sort {
  margin-left: auto;
  font-size: 12.5px; color: var(--text); font-family: var(--f-body);
  background: none; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 4px 26px 4px 9px; outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A91A0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center;
}

/* Empty state (no jobs match) */
.jobs-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 2rem;
}
.jobs-empty__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--bg-2); display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px;
}
.jobs-empty h3 { margin-bottom: 8px; }
.jobs-empty p  { font-size: 14px; color: var(--muted); }

/* ── Job detail pane ─────────────────────────────────── */

.job-detail {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.job-detail__header {
  padding: 24px 24px 20px; border-bottom: 1px solid var(--line);
}
.job-detail__title   { font-size: 1.375rem; margin-bottom: 6px; line-height: 1.15; }
.job-detail__company { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.job-detail__chips   { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.job-detail__chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 500;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 4px 9px; color: var(--ink-soft);
}
.job-detail__chip--accent { background: var(--accent-wash); color: var(--accent-ink); border-color: #ffd9cb; }
.job-detail__chip--indigo { background: rgba(72,86,201,.08); color: var(--indigo); border-color: rgba(72,86,201,.2); }

.job-detail__actions {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.job-detail__meta-line {
  font-family: var(--f-mono); font-size: 11px; color: var(--faint);
}

.job-detail__body   { padding: 20px 24px; }
.job-detail__section { margin-bottom: 20px; }
.job-detail__section-title {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .10em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.job-detail__content { font-size: 13.5px; color: var(--text); line-height: 1.65; }
.job-detail__content h2 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.job-detail__content h3 {
  font-size: .9375rem; margin: 1rem 0 .5rem;
  text-transform: none; letter-spacing: 0; color: var(--ink);
}
.job-detail__content ul, .job-detail__content ol {
  list-style: disc; padding-left: 1.5rem; margin-bottom: .875rem;
}
.job-detail__content li { margin-bottom: 3px; }
.job-detail__tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* Placeholder when no job selected */
.job-detail-placeholder {
  background: var(--bg-2); border: 1.5px dashed var(--line-2);
  border-radius: var(--r-xl); padding: 3rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px;
  min-height: 300px; justify-content: center;
}
.job-detail-placeholder__icon { font-size: 2.5rem; }
.job-detail-placeholder p { font-size: 14px; color: var(--muted); }

/* ── Old jobs page sidebar (legacy) ──────────────────── */

.jobs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; align-items: start; }
.jobs-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.25rem; margin-bottom: 1rem;
}
.sidebar-card__title {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .75rem; padding-bottom: .625rem; border-bottom: 1px solid var(--line);
}
.filter-group  { margin-bottom: 1.25rem; }
.filter-group__label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .5rem; }
.filter-group__options { display: flex; flex-direction: column; gap: .35rem; }
.filter-option { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text); cursor: pointer; }
.filter-option input { accent-color: var(--accent); width: 15px; height: 15px; }
.jobs-list-meta { font-size: .875rem; color: var(--muted); margin-bottom: 1.25rem; }

/* ── Job detail page (job.php) ───────────────────────── */

.job-detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.job-detail-sidebar { position: sticky; top: 88px; }
.job-header { padding: 3rem 0 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.job-header__breadcrumb { font-size: .8125rem; color: var(--muted); margin-bottom: 1.25rem; }
.job-header__breadcrumb a:hover { color: var(--accent-ink); }
.job-header__company { font-size: .875rem; color: var(--muted); margin-bottom: .5rem; }
.job-header__title { font-size: clamp(1.625rem, 3vw, 2.5rem); margin-bottom: 1rem; }
.job-header__meta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-size: .875rem; color: var(--muted); margin-bottom: 1.25rem; }
.job-header__meta-item { display: flex; align-items: center; gap: .375rem; }
.job-content h2 { font-size: 1.25rem; margin: 1.75rem 0 .75rem; }
.job-content h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.job-content ul, .job-content ol { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.job-content li { margin-bottom: .35rem; }

.company-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.company-card__logo { width: 56px; height: 56px; border-radius: var(--r-md); border: 1px solid var(--line); object-fit: contain; background: var(--bg-2); padding: 6px; margin-bottom: 1rem; }
.company-card__name { font-size: 1.0625rem; font-family: var(--f-display); color: var(--ink); margin-bottom: .25rem; }
.company-card__website { font-size: .8125rem; color: var(--accent-ink); margin-bottom: 1rem; display: block; }
.company-card__website:hover { text-decoration: underline; }
.company-card__desc { font-size: .875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }

.apply-box { background: var(--ink); border-radius: var(--r-lg); padding: 1.5rem; margin-bottom: 1.25rem; text-align: center; }
.apply-box .btn { width: 100%; margin-bottom: .75rem; }
.apply-box__note { font-size: .8125rem; color: rgba(255,255,255,.5); }
.report-link { display: block; text-align: center; font-size: .8125rem; color: var(--muted); }
.report-link:hover { color: var(--rose); }

/* ── Career Tips cards ───────────────────────────────── */

.tips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }

.tip-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tip-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }

.tip-card__cover {
  height: 152px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 12px;
}
.tip-card__cover-bg {
  position: absolute; inset: 0;
  background-size: 22px 22px;
}
.tip-card__cover-overlay { position: absolute; inset: 0; background: rgba(17,19,26,.22); }
.tip-card__cat {
  position: relative; z-index: 1;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px);
  color: #fff; padding: 3px 9px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.2);
}
.tip-card__read {
  position: absolute; bottom: 12px; right: 14px; z-index: 1;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: #fff;
  opacity: .85;
}

.tip-card__body  { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.tip-card__title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 7px; }
.tip-card__dek   { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; margin-bottom: 14px; }
.tip-card__author {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.tip-card__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 11px;
  color: #fff; flex-shrink: 0;
}
.tip-card__author-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tip-card__author-role { font-size: 11.5px; color: var(--muted); }

/* Featured article */
.tip-featured {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-2);
  margin-bottom: 2rem;
}
.tip-featured__cover {
  min-height: 280px; display: flex; flex-direction: column;
  justify-content: space-between; padding: 24px; position: relative; overflow: hidden;
}
.tip-featured__cover-bg { position: absolute; inset: 0; background-size: 24px 24px; }
.tip-featured__cover-overlay { position: absolute; inset: 0; background: rgba(17,19,26,.3); }
.tip-featured__cat {
  position: relative; z-index: 1;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  color: #fff; padding: 4px 11px; border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.2);
  display: inline-block; align-self: flex-start;
}
.tip-featured__read {
  position: relative; z-index: 1;
  font-family: var(--f-mono); font-size: 2rem; font-weight: 700; color: rgba(255,255,255,.4);
  align-self: flex-end;
}
.tip-featured__body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.tip-featured__title { font-size: 1.375rem; margin-bottom: 12px; line-height: 1.2; }
.tip-featured__dek   { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.tip-featured__author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
}

/* Blog legacy */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
  display: flex; flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.blog-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.blog-card__image--placeholder {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
}
.blog-card__image--placeholder span {
  font-family: var(--f-display); font-size: 1.75rem;
  color: rgba(255,255,255,.12); text-align: center; padding: 1rem;
}
.blog-card__body  { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__tags  { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .875rem; }
.blog-card__title { font-family: var(--f-display); font-size: 1.0625rem; color: var(--ink); line-height: 1.3; margin-bottom: .75rem; }
.blog-card__title a:hover { color: var(--accent-ink); }
.blog-card__excerpt { font-size: .875rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 1rem; }
.blog-card__footer { display: flex; align-items: center; justify-content: space-between; font-size: .8125rem; color: var(--muted); padding-top: 1rem; border-top: 1px solid var(--line); }

/* ── Career Goals ────────────────────────────────────── */

/* Roadmap rail */
.roadmap-rail {
  display: flex; gap: 0; overflow-x: auto; padding: 2rem 0 1.5rem;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.roadmap-rail::-webkit-scrollbar { height: 4px; }
.roadmap-rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 2px; }

.level-node {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; padding: 0 32px; min-width: 150px;
  position: relative; flex-shrink: 0;
}
/* connecting line */
.level-node::before {
  content: ''; position: absolute; top: 23px; left: 0; right: 0;
  height: 3px; background: var(--line-2); z-index: 0;
}
.level-node:first-child::before { left: 50%; }
.level-node:last-child::before  { right: 50%; }
.level-node.passed::before  { background: var(--accent); }
.level-node.is-active::before { background: linear-gradient(90deg, var(--accent) 50%, var(--line-2) 50%); }

.level-badge {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--line-2); background: var(--bg);
  display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--f-display); font-weight: 800; font-size: 14px;
  color: var(--muted); transition: all .2s ease;
}
.level-node.passed .level-badge { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }
.level-node.is-active .level-badge {
  border-color: var(--accent); background: var(--accent); color: #fff;
  transform: scale(1.12); box-shadow: 0 0 0 4px var(--accent-wash);
}
.level-node__title { font-size: 12px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.3; }
.level-node__years { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }

/* Level detail card */
.level-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-2); margin-bottom: 3rem;
}
.level-detail__left  { padding: 32px; }
.level-detail__right {
  background: var(--ink); color: #fff;
  padding: 32px; display: flex; flex-direction: column; gap: 0;
}
.level-detail__right h3  { color: rgba(255,255,255,.45); font-size: 10.5px; text-transform: uppercase; letter-spacing: .10em; font-weight: 700; margin-bottom: 4px; }
.level-detail__badge {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
}
.level-detail__title  { font-size: 1.25rem; margin-bottom: 8px; }
.level-detail__focus  { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.level-detail__section { margin-bottom: 18px; }
.level-detail__section-title {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 8px;
}
.level-detail__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.level-detail__salary-val {
  font-family: var(--f-mono); font-size: 2rem; font-weight: 700;
  color: #fff; line-height: 1; margin-bottom: 4px;
}
.level-detail__salary-note { font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 20px; }

/* Salary chart */
.salary-chart { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-bottom: 20px; }
.salary-bar { flex: 1; border-radius: 3px 3px 0 0; background: rgba(255,255,255,.18); }
.salary-bar.is-active { background: var(--accent); }

/* Goal tracker */
.goal-tracker { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }

.goal-list { display: flex; flex-direction: column; gap: 8px; }
.goal-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px;
  cursor: pointer; transition: background .12s ease, border-color .12s ease;
  user-select: none;
}
.goal-card:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.goal-card.is-done { background: var(--good-wash); border-color: #c7ead4; }
.goal-checkbox {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-2); display: grid; place-items: center;
  flex-shrink: 0; transition: all .15s ease; background: var(--surface);
}
.goal-checkbox svg { display: none; }
.goal-card.is-done .goal-checkbox {
  border-color: var(--good); background: var(--good);
}
.goal-card.is-done .goal-checkbox svg { display: block; }
.goal-card__text  { flex: 1; font-size: 14px; color: var(--text); transition: color .15s ease; }
.goal-card.is-done .goal-card__text { text-decoration: line-through; color: var(--muted); }
.goal-card__tag {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--muted); padding: 3px 7px; border-radius: var(--r-sm);
  white-space: nowrap;
}

/* Progress card */
.progress-card {
  position: sticky; top: calc(var(--nav-h) + 20px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 24px; text-align: center;
  box-shadow: var(--sh-2);
}
.progress-ring-wrap {
  width: 96px; height: 96px; margin: 0 auto 16px;
  position: relative;
}
.progress-ring-wrap svg { transform: rotate(-90deg); }
.progress-ring-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.progress-pct   { font-family: var(--f-mono); font-size: 1.375rem; font-weight: 700; color: var(--ink); line-height: 1; }
.progress-done  { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); }
.progress-label { font-size: 13px; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.progress-msg   { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }

/* Guide legacy */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.guide-nav { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 0; }
.guide-nav__title { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 1.25rem .75rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.guide-nav__link { display: block; padding: .5rem 1.25rem; font-size: .875rem; color: var(--text); border-left: 2px solid transparent; transition: color .14s, background .14s; }
.guide-nav__link:hover, .guide-nav__link.active { color: var(--ink); background: var(--bg-2); border-left-color: var(--accent); }
.guide-section { margin-bottom: 4rem; padding-bottom: 4rem; border-bottom: 1px solid var(--line); }
.guide-section:last-child { border-bottom: none; }
.guide-section h2 { margin-bottom: 1.25rem; }
.guide-section h3 { font-size: 1.125rem; margin: 1.75rem 0 .75rem; color: var(--ink); }
.guide-section ul { list-style: disc; padding-left: 1.5rem; margin: .75rem 0; }
.guide-section li { margin-bottom: .4rem; color: var(--muted); }
.roadmap-level { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; margin-bottom: .5rem; border-radius: var(--r-sm); border-left: 3px solid var(--accent); background: var(--bg-2); }
.roadmap-years { font-family: var(--f-mono); font-size: .75rem; font-weight: 600; color: var(--accent-ink); background: var(--accent-wash); padding: .2rem .6rem; border-radius: 20px; }

/* ── Employers page ──────────────────────────────────── */

.employers-hero { background: var(--ink); padding: 4rem 0 3.5rem; }
.employers-hero h1, .employers-hero h2, .employers-hero h3 { color: #fff; }
.employers-hero p { color: rgba(255,255,255,.6); }
.employers-stats { display: flex; gap: 3rem; margin-top: 2.5rem; flex-wrap: wrap; }
.employer-stat { display: flex; flex-direction: column; gap: 4px; }
.employer-stat__value { font-family: var(--f-mono); font-size: 1.875rem; font-weight: 700; color: #fff; line-height: 1; }
.employer-stat__label { font-size: 12px; color: rgba(255,255,255,.45); }

.employers-body { background: var(--bg-2); padding: 3rem 0 5rem; }
.employers-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }

.job-preview-card {
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-2);
  margin-bottom: 16px;
}
.job-preview-card__eyebrow {
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.job-preview-card__title   { font-size: 1.0625rem; margin-bottom: 5px; color: var(--ink); }
.job-preview-card__company { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.job-preview-card__chips   { display: flex; flex-wrap: wrap; gap: 5px; }

.preview-info-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px; font-size: 13px; color: var(--muted); line-height: 1.6;
}
.preview-info-box h4 { font-size: 13px; color: var(--ink); margin-bottom: 8px; }

/* ── Forms ───────────────────────────────────────────── */

.form-page { padding: 4rem 0; background: var(--bg-2); min-height: calc(100vh - var(--nav-h)); }
.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 2.5rem;
  max-width: 700px; margin: 0 auto; box-shadow: var(--sh-1);
}
.form-card--wide { max-width: 900px; }
.form-card__title    { font-size: 1.75rem; margin-bottom: .5rem; }
.form-card__subtitle { font-size: .9375rem; color: var(--muted); margin-bottom: 2rem; }
.form-section-title {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding-bottom: .75rem; border-bottom: 1px solid var(--line);
  margin: 2rem 0 1.5rem;
}
.form-section-title:first-child { margin-top: 0; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .375rem; }
.form-label span { font-weight: 400; color: var(--muted); }
.form-control {
  width: 100%; padding: .625rem .875rem;
  font-size: .9375rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { border-color: var(--ink-soft); box-shadow: 0 0 0 3px rgba(17,19,26,.06); }
.form-control::placeholder { color: var(--faint); }
textarea.form-control { min-height: 200px; resize: vertical; line-height: 1.6; }
select.form-control {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A91A0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .875rem center;
  padding-right: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint  { display: block; font-size: .8125rem; color: var(--muted); margin-top: .35rem; }
.form-error { display: block; font-size: .8125rem; color: var(--rose); margin-top: .35rem; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.checkbox-item { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--text); cursor: pointer; }
.checkbox-item input { accent-color: var(--accent); width: 15px; height: 15px; }
.form-actions { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ── Alerts ──────────────────────────────────────────── */

.alert { padding: .875rem 1.125rem; border-radius: var(--r-sm); font-size: .9rem; margin-bottom: 1.5rem; border-left: 3px solid transparent; }
.alert--error   { background: #FEF2F2; color: #991B1B; border-left-color: var(--rose); }
.alert--success { background: var(--good-wash); color: #166534; border-left-color: var(--good); }
.alert--info    { background: var(--accent-wash); color: #92400E; border-left-color: var(--accent); }

/* ── Tag filter bar ──────────────────────────────────── */

.tag-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tag-filter__item { display: inline-flex; align-items: center; padding: .375rem .875rem; font-size: .8125rem; font-weight: 600; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--muted); cursor: pointer; transition: all .14s ease; }
.tag-filter__item:hover, .tag-filter__item--active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── Pagination ──────────────────────────────────────── */

.pagination { display: flex; align-items: center; gap: .375rem; justify-content: center; padding: 2.5rem 0 0; }
.pagination__page, .pagination__prev, .pagination__next { display: inline-flex; align-items: center; padding: .4rem .75rem; font-size: .875rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: all .14s ease; }
.pagination__page:hover, .pagination__prev:hover, .pagination__next:hover { border-color: var(--ink); color: var(--ink); }
.pagination__page--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination__ellipsis { color: var(--muted); padding: .4rem .25rem; }

/* ── Toast ───────────────────────────────────────────── */

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 11px 22px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--sh-pop);
  z-index: 9999; animation: popIn .3s cubic-bezier(.2,.7,.2,1) both;
  pointer-events: none; white-space: nowrap;
}

/* ── Newsletter band ─────────────────────────────────── */

.newsletter-band {
  background: var(--ink); color: #fff;
  padding: 3rem; border-radius: var(--r-xl); margin-top: 3rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.newsletter-band h3 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.newsletter-band p  { color: rgba(255,255,255,.55); font-size: .9375rem; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  padding: 0 16px; height: 44px; min-width: 220px;
  background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill); color: #fff; outline: none;
  font-size: 13.5px; transition: border-color .15s ease;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.35); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.45); }

/* ── Feature pillars ─────────────────────────────────── */

.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar-card {
  padding: 26px; border-radius: var(--r-xl); border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--sh-1);
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow .15s ease;
}
.pillar-card:hover { box-shadow: var(--sh-2); }
.pillar-card--dark { background: var(--ink); border-color: transparent; }
.pillar-card--dark h3 { color: #fff; }
.pillar-card--dark p  { color: rgba(255,255,255,.55); }
.pillar-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 22px; flex-shrink: 0;
}
.pillar-card h3 { font-size: 1rem; margin: 0; }
.pillar-card p  { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; flex: 1; }

/* ── CTA band ────────────────────────────────────────── */

.cta-band {
  background: linear-gradient(135deg, var(--accent-wash) 0%, var(--accent-wash-2) 100%);
  border: 1px solid #ffd9cb; border-radius: var(--r-xl);
  padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.cta-band__content h2 { font-size: 1.5rem; margin-bottom: 8px; }
.cta-band__content p  { font-size: .9375rem; color: var(--muted); }

/* ── Post content ────────────────────────────────────── */

.post-header { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.post-header__title { font-size: clamp(1.75rem, 4vw, 3rem); margin-bottom: 1.25rem; max-width: 800px; }
.post-header__meta { display: flex; gap: 1.5rem; align-items: center; font-size: .875rem; color: var(--muted); }
.post-content { max-width: var(--content-width); font-size: 1.0625rem; line-height: 1.75; }
.post-content h2 { font-size: 1.625rem; margin: 2.5rem 0 1rem; }
.post-content h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.post-content p   { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { list-style: disc; padding-left: 1.75rem; margin-bottom: 1.25rem; }
.post-content li  { margin-bottom: .4rem; }
.post-content blockquote { border-left: 3px solid var(--accent); padding: .5rem 1.5rem; margin: 1.5rem 0; background: var(--bg-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.post-content code { font-family: var(--f-mono); font-size: .875em; background: var(--bg-2); padding: .15em .4em; border-radius: 3px; }
.post-content pre  { background: var(--ink); color: #e2e8f0; padding: 1.25rem 1.5rem; border-radius: var(--r-md); overflow-x: auto; margin: 1.5rem 0; font-size: .875rem; line-height: 1.65; }
.post-content pre code { background: none; padding: 0; color: inherit; }

/* ── Tables (guide) ──────────────────────────────────── */

.cert-table, .skills-table, .salary-table {
  width: 100%; border-collapse: collapse; font-size: .875rem;
  margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.cert-table th, .skills-table th, .salary-table th {
  background: var(--ink); color: #fff; padding: .75rem 1rem;
  text-align: left; font-weight: 600; font-size: .8rem; letter-spacing: .03em;
}
.cert-table td, .skills-table td, .salary-table td {
  padding: .75rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top;
}
.cert-table tr:last-child td, .skills-table tr:last-child td, .salary-table tr:last-child td { border-bottom: none; }
.cert-table tr:nth-child(even) td, .skills-table tr:nth-child(even) td, .salary-table tr:nth-child(even) td { background: var(--bg-2); }

/* ── Status / 404 pages ──────────────────────────────── */

.status-page { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem; min-height: 60vh; }
.status-page__icon  { font-size: 3.5rem; margin-bottom: 1.5rem; }
.status-page__title { font-size: 2rem; margin-bottom: .75rem; }
.status-page__text  { font-size: 1.0625rem; color: var(--muted); max-width: 480px; margin-bottom: 2rem; }

/* ── Portal / Admin ──────────────────────────────────── */

.portal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: calc(100vh - var(--nav-h)); }
.portal-sidebar { background: var(--ink); padding: 2rem 0; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.portal-sidebar__title { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.3); padding: 0 1.25rem .75rem; }
.portal-nav__link { display: flex; align-items: center; gap: .625rem; padding: .6rem 1.25rem; font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.6); transition: color .14s, background .14s; }
.portal-nav__link:hover, .portal-nav__link--active { color: #fff; background: rgba(255,255,255,.08); }
.portal-nav__link--active { border-left: 2px solid var(--accent); }
.portal-content { padding: 2.5rem; background: var(--bg-2); }
.portal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; }
.portal-header h1 { font-size: 1.625rem; margin: 0; }

.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stats-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; }
.stats-card__value { font-family: var(--f-display); font-size: 2.25rem; color: var(--ink); line-height: 1; margin-bottom: .25rem; }
.stats-card__label { font-size: .8125rem; color: var(--muted); font-weight: 500; }

.data-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.data-table-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); gap: 1rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { background: var(--bg-2); padding: .625rem 1rem; text-align: left; font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: .875rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-2); }
.data-table__actions { display: flex; gap: .375rem; align-items: center; }
.data-table__title    { font-weight: 600; color: var(--ink); font-size: .9rem; }
.data-table__subtitle { font-size: .8125rem; color: var(--muted); }

/* Author card */
.author-card { display: flex; align-items: center; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); margin: 2.5rem 0; }
.author-card__avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 1.25rem; flex-shrink: 0; }
.author-card__name  { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.author-card__label { font-size: .8125rem; color: var(--muted); }

/* Search bar legacy */
.search-bar { display: flex; border: 1.5px solid var(--line-2); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 2rem; background: var(--surface); }
.search-bar input { flex: 1; padding: .75rem 1.125rem; border: none; outline: none; font-size: .9375rem; color: var(--text); }
.search-bar input::placeholder { color: var(--faint); }
.search-bar button { padding: .75rem 1.25rem; background: var(--ink); color: #fff; border: none; cursor: pointer; font-weight: 600; font-size: .875rem; transition: background .14s; }
.search-bar button:hover { background: #23262f; }

/* ── Footer ──────────────────────────────────────────── */

.site-footer { background: var(--ink); padding: 4rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-logo { color: #fff; }
.footer-brand__tagline { font-size: .875rem; color: rgba(255,255,255,.38); margin-top: .875rem; line-height: 1.6; max-width: 200px; }
.footer-brand__social  { display: flex; gap: 8px; margin-top: 16px; }
.footer-social-link {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.07); display: grid; place-items: center;
  font-size: 13px; color: rgba(255,255,255,.45);
  transition: background .14s, color .14s;
}
.footer-social-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.footer-col__title { font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: .875rem; }
.footer-col__links { display: flex; flex-direction: column; gap: .5rem; }
.footer-col__link  { font-size: .875rem; color: rgba(255,255,255,.52); transition: color .14s; }
.footer-col__link:hover { color: #fff; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-between; font-family: var(--f-mono); font-size: .75rem; color: rgba(255,255,255,.28); gap: 1rem; flex-wrap: wrap; }

/* ── Utility ─────────────────────────────────────────── */

.mt-1{margin-top:.25rem;}.mt-2{margin-top:.5rem;}.mt-3{margin-top:.75rem;}
.mt-4{margin-top:1rem;}.mt-6{margin-top:1.5rem;}.mt-8{margin-top:2rem;}
.mb-2{margin-bottom:.5rem;}.mb-4{margin-bottom:1rem;}.mb-6{margin-bottom:1.5rem;}.mb-8{margin-bottom:2rem;}
.flex{display:flex;}.flex-wrap{flex-wrap:wrap;}
.items-center{align-items:center;}.justify-between{justify-content:space-between;}
.gap-2{gap:.5rem;}.gap-3{gap:.75rem;}.gap-4{gap:1rem;}
.w-full{width:100%;}.text-center{text-align:center;}.hidden{display:none!important;}
.text-muted{color:var(--muted);}.text-accent{color:var(--accent-ink);}.text-good{color:var(--good);}
.text-white{color:#fff;}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 1100px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
  .jobs-page { grid-template-columns: 1fr; }
  .jobs-list-col { max-height: none; border-right: none; border-bottom: 1px solid var(--line); }
  .jobs-detail-col { position: static; max-height: none; padding: 20px 0; }
  .level-detail { grid-template-columns: 1fr; }
  .employers-grid { grid-template-columns: 1fr; }
  .goal-tracker { grid-template-columns: 1fr; }
  .progress-card { position: static; }
  .newsletter-band { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-nav { position: static; }
  .stats-cards { grid-template-columns: repeat(2, 1fr); }
  .jobs-layout { grid-template-columns: 1fr; }
  .jobs-sidebar { position: static; }
}

@media (max-width: 768px) {
  .wrap, .container { padding: 0 20px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .job-detail-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-band { gap: 2rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; }
  .tip-featured { grid-template-columns: 1fr; }
  .tip-featured__cover { min-height: 180px; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar { position: static; height: auto; }
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .nav {
    display: none; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--surface);
    padding: 1rem 20px; flex-direction: column; align-items: flex-start;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-3);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-search { max-width: none; flex: 1; }
  .nav__cta { margin-left: 0; margin-top: 8px; }
  .filter-bar__inner { padding: 0 16px; }
  .hero { padding: 2.5rem 0 2rem; }
}

@media (max-width: 480px) {
  .wrap, .container { padding: 0 16px; }
  .stats-cards { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
  .job-detail-layout .job-detail-sidebar { order: -1; }
  .footer-inner { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: 0; width: 100%; }
  .roadmap-rail { padding: 1.5rem 0 1rem; }
}
