/* ============================================
   JobHive Design System
   Soft Modern · Pastel · Calendly/Notion-inspired
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Surfaces ── */
  --bg: #FAF7F2;
  --bg-warm: #F5F0E8;
  --bg-card: #FFFFFF;
  --bg-soft: #F9F6F0;
  --surface-1: #FFFFFF;
  --surface-2: #F5F1EA;

  /* ── Ink ── */
  --ink-1: #1A1A24;
  --ink-2: #3D3D4F;
  --ink-3: #6B6B7B;
  --ink-4: #A0A0AE;
  --ink-mute: #C8C5CC;

  /* ── Pastels ── Each with -ink for text on it ── */
  --lilac: #E8E4FB;
  --lilac-deep: #C5B6F5;
  --lilac-ink: #3F2D8C;

  --peach: #FFE4D2;
  --peach-deep: #FFB991;
  --peach-ink: #8B3A0E;

  --mint: #DBF1E5;
  --mint-deep: #9DD9C5;
  --mint-ink: #1F5A40;

  --blush: #FFD9E5;
  --blush-deep: #F59ECB;
  --blush-ink: #7A2347;

  --butter: #FFF1C7;
  --butter-deep: #FFD580;
  --butter-ink: #6B4D0A;

  --sky: #DCEBFC;
  --sky-deep: #94C9F0;
  --sky-ink: #1F4368;

  /* ── Functional ── */
  --accent: #1A1A24;     /* primary CTA */
  --accent-bg: #1A1A24;
  --accent-hover: #2D2D3D;
  --success: #4F9D6F;
  --warn: #D49640;
  --error: #C84E4E;

  /* ── Borders & Shadows ── */
  --border: rgba(26, 26, 36, 0.08);
  --border-strong: rgba(26, 26, 36, 0.14);
  --shadow-xs: 0 1px 2px rgba(26, 26, 36, 0.04);
  --shadow-sm: 0 2px 8px rgba(26, 26, 36, 0.05), 0 1px 2px rgba(26, 26, 36, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 26, 36, 0.08), 0 2px 6px rgba(26, 26, 36, 0.04);
  --shadow-lg: 0 24px 60px rgba(26, 26, 36, 0.12), 0 4px 12px rgba(26, 26, 36, 0.06);
  --shadow-glow: 0 0 0 4px rgba(197, 182, 245, 0.25);

  /* ── Radius ── */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* ── Spacing scale ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ── Type ── */
  --font-display: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 150ms;
  --t-base: 280ms;
  --t-slow: 480ms;

  /* ── Container ── */
  --max-width: 1240px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-1);
  background: var(--bg);
  font-feature-settings: "kern", "liga", "calt", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--lilac-deep); color: var(--ink-1); }

/* ── Background atmosphere ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(197, 182, 245, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 40% at 90% 30%, rgba(255, 217, 229, 0.20), transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(157, 217, 197, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: multiply;
  opacity: 0.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.0;
}
.t-display-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.t-mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; }
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 var(--space-6); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(250, 247, 242, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--lilac-deep), var(--blush-deep));
  display: grid;
  place-items: center;
  color: var(--ink-1);
  position: relative;
  overflow: hidden;
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 60%);
}
.brand-mark svg { position: relative; z-index: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all var(--t-base) var(--ease-out);
  position: relative;
}
.nav-link:hover { background: var(--surface-2); color: var(--ink-1); }
.nav-link.active { background: var(--ink-1); color: white; }

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--t-base) var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--ink-1);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-1); border-color: var(--ink-2); color: var(--ink-1); }

.btn-soft {
  background: var(--surface-1);
  color: var(--ink-1);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-soft:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }

.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-xs);
}
.hero-eyebrow .pulse {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 157, 111, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(79, 157, 111, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink-1);
  max-width: 16ch;
  margin-bottom: var(--space-6);
}
.hero-title .accent-word {
  font-style: italic;
  background: linear-gradient(120deg, var(--lilac-deep) 0%, var(--blush-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}
.hero-title .underline-word {
  position: relative;
  white-space: nowrap;
}
.hero-title .underline-word::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  right: 0;
  height: 0.18em;
  background: var(--butter-deep);
  z-index: -1;
  border-radius: 4px;
  animation: underlineGrow 1s 0.6s var(--ease-out) backwards;
  transform-origin: left;
}
@keyframes underlineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: var(--space-10);
}

/* Hero stagger animation */
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 1s var(--ease-out) forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; } .delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; } .delay-6 { animation-delay: 0.6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ============================================
   SEARCH BAR — The hero element
   ============================================ */
.search-shell {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  box-shadow: var(--shadow-md);
  max-width: 760px;
  position: relative;
  transition: box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
.search-shell:focus-within {
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--lilac-deep);
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 18px;
  border-radius: var(--r-lg);
  position: relative;
  min-width: 0;
}
.search-field + .search-field { border-left: 1px solid var(--border); }
.search-field svg { flex-shrink: 0; color: var(--ink-3); }
.search-field input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-1);
}
.search-field input::placeholder { color: var(--ink-4); font-weight: 400; }
.search-shell .btn { padding: 14px 26px; flex-shrink: 0; }

/* Suggestion dropdown */
.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 30;
  display: none;
}
.suggest.open { display: block; animation: fadeUp 0.2s var(--ease-out); }
.suggest-group { padding: var(--space-2); }
.suggest-group + .suggest-group { border-top: 1px solid var(--border); }
.suggest-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); padding: var(--space-2) var(--space-3); }
.suggest-item {
  padding: 10px var(--space-3);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  transition: all var(--t-fast) var(--ease-out);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.suggest-item:hover { background: var(--surface-2); color: var(--ink-1); }

/* ============================================
   QUICK STATS
   ============================================ */
.quick-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-display); font-size: 32px; line-height: 1; color: var(--ink-1); }
.stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* ============================================
   CATEGORY GRID
   ============================================ */
.section { padding: var(--space-16) 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink-1);
}
.section-title .italic { font-style: italic; color: var(--ink-2); }
.section-meta { color: var(--ink-3); font-size: 14px; max-width: 36ch; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}
.cat-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--cat-color, var(--lilac));
  filter: blur(40px);
  opacity: 0.4;
  transition: opacity var(--t-base) var(--ease-out);
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--cat-color, var(--lilac-deep)); }
.cat-card:hover::before { opacity: 0.7; }
.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--cat-color, var(--lilac));
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}
.cat-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; position: relative; z-index: 1; }
.cat-count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.05em; text-transform: uppercase; position: relative; z-index: 1; }

/* ============================================
   JOB CARD — Listing
   ============================================ */
.jobs-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 900px) { .jobs-layout { grid-template-columns: 1fr; } .filters { position: static; } }

.filters {
  position: sticky;
  top: 90px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
}
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.filter-head h3 { font-size: 15px; font-weight: 600; }
.filter-clear { font-size: 12px; color: var(--ink-3); cursor: pointer; }
.filter-clear:hover { color: var(--accent); }
.filter-group { padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.filter-options { display: flex; flex-direction: column; gap: 2px; }
.filter-opt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  transition: background var(--t-fast) var(--ease-out);
  user-select: none;
}
.filter-opt:hover { background: var(--surface-2); }
.filter-opt input { accent-color: var(--ink-1); }
.filter-opt-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }

/* Job list */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.results-count { font-size: 14px; color: var(--ink-2); }
.results-count strong { color: var(--ink-1); font-weight: 600; }
.sort-select {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  background: var(--surface-1);
  color: var(--ink-1);
  cursor: pointer;
  font-weight: 500;
}

.job-list { display: flex; flex-direction: column; gap: var(--space-3); }

.job-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.job-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.job-card.featured {
  background: linear-gradient(135deg, #FFFFFF 0%, var(--butter) 200%);
  border-color: var(--butter-deep);
}
.job-card.featured::before {
  content: 'Featured';
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--butter-deep);
  color: var(--butter-ink);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.job-row { display: flex; align-items: flex-start; gap: var(--space-4); }
.job-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: white;
  font-size: 18px;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  background: var(--ink-1);
  position: relative;
  overflow: hidden;
}
.job-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.25), transparent 55%);
}
.job-main { flex: 1; min-width: 0; }
.job-title-row { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin-bottom: 4px; }
.job-title { font-size: 17px; font-weight: 600; color: var(--ink-1); letter-spacing: -0.01em; }
.job-company { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.job-company::before { content: '·'; margin-right: var(--space-2); color: var(--ink-4); }

.job-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}
.job-meta-item { display: flex; align-items: center; gap: 5px; }
.job-meta-item svg { flex-shrink: 0; }

.job-tags { display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap; }
.tag {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-remote { background: var(--mint); color: var(--mint-ink); }
.tag-fulltime { background: var(--sky); color: var(--sky-ink); }
.tag-contract { background: var(--peach); color: var(--peach-ink); }
.tag-parttime { background: var(--blush); color: var(--blush-ink); }
.tag-internship { background: var(--lilac); color: var(--lilac-ink); }
.tag-source {
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.job-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  flex-shrink: 0;
}
.job-salary { font-size: 14px; font-weight: 600; color: var(--ink-1); white-space: nowrap; }
.job-time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; text-transform: uppercase; }
.bookmark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--ink-3);
  transition: all var(--t-fast) var(--ease-out);
  border: 1px solid transparent;
}
.bookmark:hover { background: var(--surface-2); color: var(--ink-1); }
.bookmark.active { background: var(--butter); color: var(--butter-ink); }

@media (max-width: 720px) {
  .job-row { flex-wrap: wrap; }
  .job-aside { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================
   JOB DETAIL PAGE
   ============================================ */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-10); align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: var(--space-6);
  font-weight: 500;
  transition: color var(--t-fast) var(--ease-out);
}
.detail-back:hover { color: var(--ink-1); }

.detail-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
}
.detail-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}
.detail-header .job-logo { width: 64px; height: 64px; font-size: 24px; border-radius: var(--r-lg); }
.detail-h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink-1); margin-bottom: var(--space-2); }
.detail-company-row { display: flex; align-items: center; gap: var(--space-3); font-size: 16px; color: var(--ink-2); flex-wrap: wrap; }
.detail-company-row strong { color: var(--ink-1); }
.detail-dot { color: var(--ink-mute); }

.detail-body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.015em;
  margin: var(--space-8) 0 var(--space-4);
  color: var(--ink-1);
}
.detail-body p { color: var(--ink-2); font-size: 15px; line-height: 1.7; margin-bottom: var(--space-4); }
.detail-body ul { color: var(--ink-2); padding-left: var(--space-5); margin-bottom: var(--space-4); }
.detail-body li { margin-bottom: var(--space-2); line-height: 1.7; }

.detail-side {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.detail-apply-card {
  background: var(--ink-1);
  color: white;
  border-radius: var(--r-xl);
  padding: var(--space-6);
}
.detail-apply-card .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: var(--space-2); }
.detail-apply-card .value { font-family: var(--font-display); font-size: 28px; line-height: 1; margin-bottom: var(--space-5); }
.detail-apply-card .btn {
  width: 100%;
  background: white;
  color: var(--ink-1);
}
.detail-apply-card .btn:hover { background: var(--butter); transform: translateY(-1px); }

.detail-info-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-6);
}
.info-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.info-row:last-child { border: 0; }
.info-row .label { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.info-row .value { color: var(--ink-1); font-weight: 500; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 var(--space-3);
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  display: grid;
  place-items: center;
  transition: all var(--t-fast) var(--ease-out);
}
.page-btn:hover:not(:disabled) { border-color: var(--ink-2); color: var(--ink-1); }
.page-btn.active { background: var(--ink-1); color: white; border-color: var(--ink-1); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   ALERT / CTA SECTION
   ============================================ */
.cta-band {
  background: linear-gradient(135deg, var(--lilac) 0%, var(--blush) 100%);
  border-radius: var(--r-xl);
  padding: var(--space-12) var(--space-10);
  position: relative;
  overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.cta-band::before { top: -40%; right: -10%; width: 380px; height: 380px; background: var(--mint-deep); opacity: 0.5; }
.cta-band::after { bottom: -50%; left: -10%; width: 320px; height: 320px; background: var(--butter-deep); opacity: 0.55; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -0.02em; max-width: 18ch; color: var(--ink-1); margin-bottom: var(--space-4); }
.cta-band p { color: var(--ink-2); max-width: 48ch; margin-bottom: var(--space-6); }
.cta-form {
  display: flex;
  gap: var(--space-2);
  background: var(--surface-1);
  border-radius: var(--r-pill);
  padding: 6px;
  max-width: 480px;
  box-shadow: var(--shadow-md);
}
.cta-form input { flex: 1; border: 0; outline: 0; background: transparent; padding: 10px 18px; font-size: 14px; color: var(--ink-1); }
.cta-form input::placeholder { color: var(--ink-4); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  margin-top: var(--space-20);
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: 13px; color: var(--ink-3); margin-top: var(--space-3); max-width: 32ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-4); font-weight: 500; }
.footer-col a { display: block; padding: 4px 0; font-size: 14px; color: var(--ink-2); transition: color var(--t-fast) var(--ease-out); }
.footer-col a:hover { color: var(--ink-1); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-1) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  background: var(--surface-1);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
}
.empty-state h3 { font-family: var(--font-display); font-size: 32px; margin: var(--space-4) 0 var(--space-2); }
.empty-state p { color: var(--ink-3); max-width: 36ch; margin: 0 auto var(--space-6); }

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-1);
  color: white;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all var(--t-base) var(--ease-spring);
  z-index: 100;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   RESPONSIVE NAV
   ============================================ */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: var(--space-12) 0; }
  .search-shell { flex-direction: column; gap: var(--space-2); padding: var(--space-3); }
  .search-field { width: 100%; padding: 10px 14px; }
  .search-field + .search-field { border-left: 0; border-top: 1px solid var(--border); }
  .search-shell .btn { width: 100%; }
  .quick-stats { gap: var(--space-5); }
  .stat-num { font-size: 26px; }
}
