/* Careers pages. Base styles match index.html; job-specific styles are at the end. */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --sidebar-w: 220px;
  --black: #000;
  --white: #fff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-400: #999;
  --gray-600: #555;
  --gray-800: #222;
  --font-mono: 'Geist Mono', 'SF Mono', monospace;
  --font-sans: 'Geist', -apple-system, sans-serif;
}
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

/* WORDMARK */
.wordmark-svg { width: 32px; height: 32px; display: block; }
.mobile-nav .wordmark-svg { width: 24px; height: 24px; }

/* SIDEBAR */
aside {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  border-right: 1px solid var(--gray-200);
  padding: 24px 0;
  overflow-y: auto;
  background: var(--white);
  z-index: 50;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--black);
}
.nav-section { padding: 0 0 16px; }
.nav-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 12px 20px 6px;
  display: block;
}
.nav-link {
  display: flex;
  align-items: center;
  padding: 5px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.1s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-link:hover { color: var(--black); }
.nav-link.active { color: var(--black); font-weight: 500; }
.nav-link .badge {
  margin-left: auto;
  font-size: 9.5px;
  background: var(--black);
  color: var(--white);
  padding: 1px 6px;
  border-radius: 2px;
  font-weight: 400;
  white-space: nowrap;
}
.nav-divider { border: none; border-top: 1px solid var(--gray-200); margin: 8px 0; }

/* MAIN */
main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  max-width: 780px;
  padding: 80px 60px 120px;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 48px;
  overflow-wrap: anywhere;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--black); }

/* HERO */
.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-tag::before { content: ''; display: block; width: 16px; height: 1px; background: var(--gray-400); }
h1 {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 20px;
}
.hero-sub { font-size: 15px; color: var(--gray-600); max-width: 520px; line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0.01em;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}
.btn:hover { background: var(--white); color: var(--black); }
.btn-outline { background: var(--white); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* TEXT */
.section-eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--gray-400); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px; }
h2 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 16px; color: var(--black); }
p { font-size: 14px; color: var(--gray-600); line-height: 1.75; max-width: 560px; margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }
.inline-link { color: var(--black); text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

/* LINK ROWS */
.link-row { display: flex; align-items: center; padding: 13px 0; border-top: 1px solid var(--gray-200); text-decoration: none; color: var(--black); font-size: 13.5px; transition: color 0.1s; gap: 8px; max-width: 560px; }
.link-row:last-of-type { border-bottom: 1px solid var(--gray-200); }
.link-row:hover { color: var(--gray-400); }
.link-row .lr-label { font-family: var(--font-mono); font-size: 11px; color: var(--gray-400); width: 80px; flex-shrink: 0; }
.link-row .lr-arrow { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--gray-400); }

/* BYLINE */
.byline { font-size: 13px; color: var(--gray-400); padding-top: 48px; border-top: 1px solid var(--gray-200); margin-top: 48px; }
.byline a { color: var(--black); text-decoration: none; }
.byline a:hover { text-decoration: underline; }

/* MOBILE NAV */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.mobile-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--black); }
.mobile-hamburger { background: none; border: none; cursor: pointer; padding: 4px; display: flex; flex-direction: column; gap: 4.5px; }
.mobile-hamburger span { display: block; width: 20px; height: 1.5px; background: var(--black); transition: transform 0.2s, opacity 0.2s; }
.mobile-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-hamburger.open span:nth-child(2) { opacity: 0; }
.mobile-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* MOBILE DRAWER */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 190;
  overflow-y: auto;
  padding: 8px 0 40px;
  transform: translateY(-6px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
  pointer-events: none;
}
.mobile-drawer.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: all; }

/* JOB LIST (/careers/) */
.job-list { max-width: 560px; margin-bottom: 48px; }
.job-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--gray-200);
  text-decoration: none;
  color: var(--black);
}
.job-row:last-child { border-bottom: 1px solid var(--gray-200); }
.job-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.job-row-dept { font-family: var(--font-mono); font-size: 10.5px; color: var(--gray-400); letter-spacing: 0.06em; text-transform: uppercase; }
.job-row-title { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; transition: color 0.1s; }
.job-row-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--gray-600); }
.job-row-arrow { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--gray-400); flex-shrink: 0; }
.job-row:hover .job-row-title { color: var(--gray-400); }

/* JOB PAGE */
.job-meta { font-family: var(--font-mono); font-size: 12px; color: var(--gray-600); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.job-meta span + span::before { content: '\00b7'; margin: 0 8px; color: var(--gray-400); }
/* Meta split over two lines (Chief of Staff). Dots trail each item, so a wrapped line never starts with a dot. */
.job-meta-trail span + span::before { content: none; }
.job-meta-trail span:not(:last-child)::after { content: '\00b7'; margin: 0 8px; color: var(--gray-400); }
.job-meta-trail + .job-meta-trail { margin-top: -8px; }
.job-head .hero-sub { margin-bottom: 0; }
.job-head .hero-sub + .hero-actions { margin-top: 32px; }
.job-head .job-meta + .hero-actions { margin-top: 32px; }
.jd-section { padding: 36px 0; border-top: 1px solid var(--gray-200); scroll-margin-top: 24px; }
.jd-list { list-style: none; max-width: 560px; border-top: 1px solid var(--gray-200); margin: 8px 0 24px; }
.jd-list:last-child { margin-bottom: 0; }
.jd-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--black);
  line-height: 1.7;
}
.jd-list li::before {
  content: '\2014';
  position: absolute;
  left: 0; top: 13px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-400);
}
.jd-apply { margin: 24px 0 0; }
.jd-signoff { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--gray-600); margin-bottom: 8px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  .mobile-drawer { display: block; }
  aside { display: none; }
  body { display: block; }
  main { margin-left: 0; padding: 72px 24px 80px; max-width: 100%; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .hero-sub { font-size: 14px; max-width: 100%; }
  .hero-actions { gap: 10px; }
  .btn { text-align: center; }
  p, .job-list, .jd-list, .link-row { max-width: 100%; }
  .breadcrumb { margin-bottom: 32px; }
  .jd-section { padding: 28px 0; scroll-margin-top: 64px; }
  .link-row { font-size: 13px; }
  .link-row .lr-label { width: 68px; }
}
@media (max-width: 420px) {
  main { padding: 68px 16px 60px; }
  h1 { font-size: 22px; }
}
