/* ==========================================================================
   Saisonwerk — Alpine Editorial Design System
   ========================================================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body, html { height: 100%; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Design tokens --- */
:root {
  /* Colors — warm, editorial, alpine */
  --bg: #F7F3EC;              /* warm cream paper */
  --bg-alt: #EFE8D8;          /* cream card bg */
  --bg-deep: #1A1D1A;         /* near-black warm */
  --ink: #1A1D1A;             /* body text */
  --ink-muted: #6B665E;       /* secondary text */
  --ink-faint: #A39E93;       /* tertiary text */
  --moss: #2D4A3E;            /* primary — deep forest */
  --moss-dark: #1E332B;
  --moss-light: #D8E0D6;      /* tint for backgrounds */
  --sun: #C85D2E;             /* accent — sunset ember */
  --sun-dark: #9F4621;
  --sun-light: #F4D9C9;       /* tint */
  --line: #D9D2C2;            /* borders */
  --line-strong: #B8AE98;
  --verified: #3F6B4F;        /* verified green */
  --verified-bg: #DDE8DC;

  /* Typography */
  --font-serif: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --max-width: 1240px;
  --max-width-narrow: 920px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0.15, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base --- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; }
h4 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; }
h5 { font-size: 1.0625rem; line-height: 1.3; }

.serif { font-family: var(--font-serif); }
.sans { font-family: var(--font-sans); }
.italic { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 30; }

p { line-height: 1.65; }
p + p { margin-top: 1em; }

/* --- Editorial utility classes --- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.eyebrow .no {
  font-family: var(--font-mono);
  color: var(--moss);
  font-weight: 500;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-muted);
  font-weight: 400;
}

.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: -0.01em; }

.text-muted { color: var(--ink-muted); }
.text-faint { color: var(--ink-faint); }
.text-moss { color: var(--moss); }
.text-sun { color: var(--sun); }

/* --- Layout --- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}
.wrap-narrow { max-width: var(--max-width-narrow); }

.section { padding: var(--space-9) 0; }
.section-sm { padding: var(--space-7) 0; }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 180ms var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--moss);
  color: var(--bg);
}
.btn-primary:hover { background: var(--moss-dark); transform: translateY(-1px); }

.btn-accent {
  background: var(--sun);
  color: #fff;
}
.btn-accent:hover { background: var(--sun-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.btn-text {
  padding: 6px 0;
  color: var(--moss);
  background: transparent;
  border-bottom: 1px solid var(--moss);
  border-radius: 0;
}
.btn-text:hover { color: var(--sun); border-color: var(--sun); }

.btn-sm { padding: 8px 14px; font-size: 0.875rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* --- Forms --- */
.field { position: relative; display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: 0.8125rem; font-weight: 500; color: var(--ink-muted); }
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  transition: all 160ms var(--ease);
  color: var(--ink);
}
.input:hover, .select:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.12);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.5; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--space-6);
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
}

.nav-brand em {
  font-style: italic;
  color: var(--moss);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.nav-brand .mark {
  width: 6px;
  height: 6px;
  background: var(--sun);
  border-radius: 50%;
  display: inline-block;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 0.9375rem;
}

.nav-links a {
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 160ms var(--ease);
}
.nav-links a:hover { color: var(--moss); }
.nav-links a.active { color: var(--moss); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--moss);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle { display: none; }

/* --- Hero (home) --- */
.hero {
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-8);
  align-items: end;
}

.hero h1 {
  font-size: clamp(3rem, 7.5vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.hero h1 em {
  font-style: italic;
  color: var(--moss);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-eyebrow { margin-bottom: var(--space-6); }

.hero-side {
  padding-bottom: var(--space-4);
}

.hero-side p {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 380px;
}

.hero-stats {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.hero-stat .n {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat .l {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

/* --- Search --- */
.search-bar {
  margin-top: var(--space-7);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 920px;
}
.search-bar .field { gap: 2px; background: var(--bg); padding: 10px 16px; }
.search-bar .field label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.search-bar .field input, .search-bar .field select {
  border: none;
  padding: 4px 0;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--ink);
}
.search-bar .field input:focus, .search-bar .field select:focus {
  outline: none;
  box-shadow: none;
}
.search-bar button {
  background: var(--moss);
  color: var(--bg);
  padding: 0 32px;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 160ms var(--ease);
  border-radius: 0;
}
.search-bar button:hover { background: var(--moss-dark); }

/* --- Sections --- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.section-head h2 { max-width: 680px; }
.section-head .side { font-size: 0.9375rem; color: var(--ink-muted); max-width: 320px; line-height: 1.5; }

/* --- Value cards (3-up) --- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.value {
  background: var(--bg);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.value .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sun);
  margin-bottom: var(--space-6);
  letter-spacing: 0.1em;
}

.value h3 {
  font-size: 1.625rem;
  margin-bottom: var(--space-3);
}

.value p {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: auto;
}

.value .tag {
  margin-top: var(--space-5);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Job cards --- */
.job-list { display: flex; flex-direction: column; }

.job-card {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
  transition: all 180ms var(--ease);
  cursor: pointer;
  position: relative;
}

.job-card:first-child { border-top: 1px solid var(--line); }

.job-card:hover { padding-left: var(--space-4); }
.job-card:hover .job-title { color: var(--moss); }
.job-card:hover .job-arrow { opacity: 1; transform: translateX(0); }

.job-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--moss-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--moss);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.job-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  color: var(--ink);
  transition: color 160ms var(--ease);
  line-height: 1.2;
}

.job-meta {
  font-size: 0.875rem;
  color: var(--ink-muted);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.job-meta .dot { color: var(--line-strong); }

.job-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.job-arrow {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--moss);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 180ms var(--ease);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.badge-verified {
  background: var(--verified-bg);
  color: var(--verified);
}
.badge-verified::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--verified);
  border-radius: 50%;
}

.badge-crawled {
  background: var(--bg-alt);
  color: var(--ink-muted);
  border: 1px solid var(--line);
}

.badge-accent {
  background: var(--sun-light);
  color: var(--sun-dark);
}

.badge-moss {
  background: var(--moss-light);
  color: var(--moss-dark);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

/* --- Filter bar (listings) --- */
.listings-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-7);
}

.filters {
  position: sticky;
  top: 88px;
  height: fit-content;
}

.filter-group { padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px 0;
  font-size: 0.9375rem;
  cursor: pointer;
  color: var(--ink);
}
.filter-option input { accent-color: var(--moss); }
.filter-option .count { margin-left: auto; color: var(--ink-faint); font-size: 0.8125rem; }

/* --- Job detail --- */
.job-detail-head {
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.breadcrumb a:hover { color: var(--moss); }
.breadcrumb .sep { color: var(--ink-faint); }

.job-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: end;
}

.job-header .meta {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-4);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.job-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.05;
  margin-top: var(--space-3);
  max-width: 820px;
}
.job-header .company-line {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-6);
}

.quick-fact {
  background: var(--bg);
  padding: var(--space-4) var(--space-5);
}
.quick-fact .l {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.quick-fact .v {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-8);
  padding: var(--space-8) 0 var(--space-9);
}

.detail-main > section { margin-bottom: var(--space-8); }
.detail-main h2 { font-size: 2rem; margin-bottom: var(--space-4); }
.detail-main h3 { font-size: 1.375rem; margin-bottom: var(--space-3); margin-top: var(--space-5); }
.detail-main p { font-size: 1rem; color: var(--ink); line-height: 1.7; max-width: 680px; }
.detail-main ul { padding-left: 0; }
.detail-main ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 1rem;
  line-height: 1.55;
}
.detail-main ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 16px;
  height: 1px;
  background: var(--moss);
}

.detail-sidebar {
  position: sticky;
  top: 88px;
  height: fit-content;
}

.info-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.info-card h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.info-list { display: flex; flex-direction: column; gap: var(--space-3); }
.info-list .row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.9375rem;
  padding-bottom: var(--space-3);
  border-bottom: 1px dashed var(--line-strong);
}
.info-list .row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list .row .k { color: var(--ink-muted); }
.info-list .row .v { color: var(--ink); font-weight: 500; text-align: right; }

.netto-calc {
  background: var(--moss);
  color: var(--bg);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}
.netto-calc h4 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  color: var(--bg);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
}
.netto-calc .sub { font-size: 0.8125rem; color: rgba(247,243,236,0.65); margin-bottom: var(--space-5); }
.netto-calc .row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(247,243,236,0.12);
}
.netto-calc .row:last-child { border-bottom: 0; }
.netto-calc .row .k { color: rgba(247,243,236,0.75); }
.netto-calc .total {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(247,243,236,0.35);
}
.netto-calc .total .k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(247,243,236,0.7); }
.netto-calc .total .v {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--bg);
}

.apply-box { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); }
.apply-box .btn { width: 100%; }

/* --- Profile (worker) --- */
.profile-head {
  padding: var(--space-9) 0 var(--space-7);
  border-bottom: 1px solid var(--line);
}

.profile-head-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-6);
  align-items: center;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.profile-head h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1; margin-bottom: var(--space-3); }
.profile-head .tagline { font-size: 1.0625rem; color: var(--ink-muted); margin-bottom: var(--space-4); }

.profile-badges { display: flex; gap: var(--space-2); flex-wrap: wrap; }

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-8);
  padding: var(--space-8) 0 var(--space-9);
}

.profile-block { margin-bottom: var(--space-8); }

.profile-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.profile-block-head h2 { font-size: 1.75rem; }
.profile-block-head .side { font-size: 0.8125rem; color: var(--ink-faint); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 6px;
  width: 23px;
  height: 23px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: -31px;
  top: 11px;
  width: 13px;
  height: 13px;
  background: var(--verified);
  border-radius: 50%;
}

.timeline-item .role {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 4px;
}
.timeline-item .company { color: var(--ink-muted); font-size: 0.9375rem; }
.timeline-item .date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
}
.timeline-item .blurb {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 560px;
  margin-top: var(--space-2);
}
.timeline-item .verified-line {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--verified);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* --- Skills --- */
.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-tag {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 100px;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 160ms var(--ease);
}
.skill-tag:hover { border-color: var(--moss); background: var(--moss-light); }
.skill-tag .count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-muted);
  padding-left: var(--space-2);
  border-left: 1px solid var(--line-strong);
  margin-left: 2px;
}

/* --- Match cards (sidebar) --- */
.match-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: all 180ms var(--ease);
  border: 1px solid transparent;
}
.match-card:hover { border-color: var(--moss); }

.match-card .match-pct {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--space-3);
}
.match-card .match-pct .n {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--moss);
  line-height: 1;
}
.match-card .match-pct .s { font-size: 0.75rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.match-card .role-line { font-family: var(--font-serif); font-size: 1.125rem; margin-bottom: 2px; line-height: 1.2; }
.match-card .loc { font-size: 0.8125rem; color: var(--ink-muted); }

/* --- Auth forms --- */
.auth-page {
  min-height: calc(100vh - 68px - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: var(--space-7);
  background: var(--bg);
}

.auth-card h1 {
  font-size: 2.25rem;
  margin-bottom: var(--space-2);
}
.auth-card .lead { margin-bottom: var(--space-6); font-size: 0.9375rem; }

.auth-card .field { margin-bottom: var(--space-4); }
.auth-card .btn { width: 100%; margin-top: var(--space-3); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  color: var(--ink-faint);
  font-size: 0.8125rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-foot {
  text-align: center;
  margin-top: var(--space-5);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.auth-foot a { color: var(--moss); border-bottom: 1px solid currentColor; }

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  overflow: hidden;
}
.role-switch label {
  background: var(--bg);
  padding: 14px;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 160ms var(--ease);
}
.role-switch input { display: none; }
.role-switch input:checked + label { background: var(--moss); color: var(--bg); }

/* --- Footer --- */
.footer {
  background: var(--bg-deep);
  color: var(--bg);
  padding: var(--space-8) 0 var(--space-5);
  margin-top: var(--space-9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-6);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(247,243,236,0.12);
}

.footer-brand .nav-brand { color: var(--bg); font-size: 1.75rem; }
.footer-brand .nav-brand em { color: var(--sun-light); }
.footer-brand p { color: rgba(247,243,236,0.6); max-width: 320px; margin-top: var(--space-3); font-size: 0.9375rem; }

.footer h5 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247,243,236,0.5);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.footer ul li { padding: 6px 0; }
.footer ul li a { color: rgba(247,243,236,0.85); font-size: 0.9375rem; transition: color 160ms var(--ease); }
.footer ul li a:hover { color: var(--sun-light); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  font-size: 0.8125rem;
  color: rgba(247,243,236,0.45);
}
.footer-legal .links { display: flex; gap: var(--space-5); }
.footer-legal a:hover { color: var(--sun-light); }

/* --- Featured job variant --- */
.featured-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

/* --- About / how it works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: var(--space-6);
}

.step {
  background: var(--bg);
  padding: var(--space-7) var(--space-5);
}

.step .num {
  font-family: var(--font-serif);
  font-size: 4rem;
  letter-spacing: -0.04em;
  color: var(--moss);
  line-height: 0.9;
  display: block;
  margin-bottom: var(--space-4);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.step h3 { font-size: 1.5rem; margin-bottom: var(--space-3); }
.step p { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.55; }

/* --- Employer CTA strip --- */
.cta-strip {
  background: var(--moss);
  color: var(--bg);
  padding: var(--space-8) 0;
  margin-top: var(--space-7);
  border-radius: var(--radius-lg);
}

.cta-strip-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  align-items: end;
  padding: 0 var(--space-6);
}

.cta-strip h2 { color: var(--bg); font-size: clamp(2rem, 4vw, 3rem); max-width: 560px; }
.cta-strip h2 em { color: var(--sun-light); }
.cta-strip p { color: rgba(247,243,236,0.7); max-width: 440px; margin-top: var(--space-3); font-size: 1rem; }

.cta-strip .actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-self: end;
  align-self: end;
}
.cta-strip .btn-accent { background: var(--sun); border-color: var(--sun); }
.cta-strip .btn-ghost { color: var(--bg); border-color: rgba(247,243,236,0.25); }
.cta-strip .btn-ghost:hover { background: rgba(247,243,236,0.1); border-color: var(--bg); color: var(--bg); }

/* --- Icons inline helpers --- */
.ic { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-side { padding-bottom: 0; }
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar button { grid-column: 1 / -1; }
  .values { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .listings-layout { grid-template-columns: 1fr; }
  .filters { position: static; border-bottom: 1px solid var(--line); padding-bottom: var(--space-5); margin-bottom: var(--space-5); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-head-inner { grid-template-columns: auto 1fr; }
  .profile-head-inner .btn { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-strip-inner { grid-template-columns: 1fr; }
  .cta-strip .actions { justify-self: start; flex-direction: row; }
}

@media (max-width: 640px) {
  .section { padding: var(--space-8) 0; }
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
  }
  .job-card { grid-template-columns: 44px 1fr; gap: var(--space-3); }
  .job-logo { width: 44px; height: 44px; font-size: 1rem; }
  .job-tags { grid-column: 1 / -1; justify-content: flex-start; }
  .job-arrow { display: none; }
  .job-header { grid-template-columns: 1fr; }
  .featured-wrap { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; gap: var(--space-3); align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .section-head .side { max-width: 100%; }
}
