/* MediPaths. One theme family (light / dark by system), one accent, one radius system.
   Radius rule: pills for buttons and chips, 20px for panels, 14px for tiles and inputs. */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --sage: #e1ece8;
  --sage-2: #cde0da;
  --line: #d3e0dc;
  --ink: #0d2827;
  --muted: #4a6361;
  --teal: #0a5a55;
  --teal-hover: #07443f;
  --on-teal: #ffffff;
  --band: #0a4a46;
  --on-band: #f1f8f6;
  --on-band-muted: #b9d6d0;
  --accent: #a83c18;
  --accent-bg: #fbe8e0;
  --accent-ink: #7d2a10;
  --focus: #0a5a55;
  --shadow: 0 1px 2px rgb(10 74 70 / 0.06), 0 12px 32px -12px rgb(10 74 70 / 0.18);

  --r-pill: 999px;
  --r-panel: 20px;
  --r-tile: 14px;

  --font-display: 'Outfit', 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --wrap: 1200px;
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-index scale */
  --z-header: 40;
  --z-menu: 50;
  --z-skip: 60;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081a19;
    --surface: #0f2423;
    --sage: #143130;
    --sage-2: #1d4543;
    --line: #234644;
    --ink: #e8f2ef;
    --muted: #9fbab5;
    --teal: #6fd0c2;
    --teal-hover: #8fe0d3;
    --on-teal: #062321;
    --band: #0f3a37;
    --on-band: #eaf5f2;
    --on-band-muted: #a9cbc5;
    --accent: #ff9f7c;
    --accent-bg: #3a2018;
    --accent-ink: #ffc3ac;
    --focus: #6fd0c2;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px -12px rgb(0 0 0 / 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.section { padding-block: var(--section); }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -80px; z-index: var(--z-skip);
  background: var(--teal); color: var(--on-teal); padding: 12px 18px;
  border-radius: var(--r-pill); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--teal); color: var(--on-teal); }
.btn-primary:hover { background: var(--teal-hover); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-quiet:hover { border-color: var(--teal); }
.btn-light { background: var(--on-band); color: var(--band); }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.975rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  color: var(--teal); text-decoration: none; font-family: var(--font-display);
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: 34px; object-fit: contain; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none;
  font-weight: 500; font-size: 1rem; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--sage); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--sage); }
.nav .btn { margin-left: 8px; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--r-pill); border: 1.5px solid var(--line); background: transparent; cursor: pointer;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded='true'] .icon-open { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .js .nav {
    position: fixed; inset: 72px 0 auto 0; z-index: var(--z-menu);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.2s, visibility 0.3s;
  }
  .js .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1.125rem; }
  .nav .btn { margin: 12px 0 0; }
  .no-js .site-header .wrap { flex-wrap: wrap; height: auto; padding-block: 12px; }
  .no-js .nav { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(760px, calc(100dvh - 72px));
  display: flex; align-items: center;
  padding-block: clamp(48px, 8vw, 96px);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 75% at 0% 0%, var(--sage) 0%, transparent 70%),
    radial-gradient(45% 65% at 100% 100%, var(--sage) 0%, transparent 70%);
}
.hero-art {
  position: absolute; inset: 0; z-index: -1;
  background: url('/assets/hero.webp') 50% 50% / cover no-repeat;
}
@media (prefers-color-scheme: dark) {
  .hero-art { filter: invert(1) hue-rotate(172deg) saturate(1.1) brightness(0.9) contrast(0.85); opacity: 0.5; mix-blend-mode: screen; }
}
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  font-weight: 600; max-width: 13ch; letter-spacing: -0.035em; line-height: 1.02;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--muted); max-width: 34ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 96px); } }
.hero-links {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow);
  padding: 8px; display: grid;
}
.hero-links a {
  display: grid; grid-template-columns: 44px 1fr 24px; gap: 16px; align-items: center;
  padding: 18px 16px; border-radius: var(--r-tile); text-decoration: none;
  transition: background-color 0.2s;
}
.hero-links a + a { border-top: 1px solid var(--line); border-radius: 0; }
.hero-links a:hover { background: var(--sage); border-radius: var(--r-tile); border-top-color: transparent; }
.hero-links a:hover + a { border-top-color: transparent; }
.hero-links .icon:first-child { width: 44px; height: 44px; padding: 10px; border-radius: var(--r-tile); background: var(--sage); color: var(--teal); }
.hero-links strong { display: block; font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.hero-links small { display: block; color: var(--muted); font-size: 0.9375rem; margin-top: 2px; line-height: 1.4; }
.hero-links a > .icon:last-child { color: var(--teal); transition: transform 0.25s var(--ease); }
.hero-links a:hover > .icon:last-child { transform: translateX(4px); }

/* ---------- Dates ---------- */
.dates-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.dates-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.dates-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  scrollbar-width: thin;
}
.date-item {
  scroll-snap-align: start; padding: 4px 28px 4px 0; margin-right: 28px;
  border-top: 2px solid var(--teal); padding-top: 20px;
}
.date-item time {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem); letter-spacing: -0.02em; line-height: 1.1;
}
.date-item p { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.tag-approx {
  display: inline-block; margin-top: 12px; padding: 2px 12px; border-radius: var(--r-pill);
  background: var(--accent-bg); color: var(--accent-ink); font-size: 0.8125rem; font-weight: 600;
}
.dates-note { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Mission ---------- */
.mission-statement {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12;
  font-size: clamp(2rem, 5vw, 3.875rem); max-width: 22ch;
}
.mission-statement span { color: var(--teal); }
.mission-detail { margin-top: 28px; max-width: 56ch; font-size: 1.1875rem; color: var(--muted); }

.vision {
  background: var(--sage); border-radius: var(--r-panel);
  padding: clamp(32px, 6vw, 72px); margin-top: clamp(48px, 7vw, 88px);
  display: grid; gap: 20px;
}
.vision h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); color: var(--muted); font-weight: 500; }
.vision .big { font-family: var(--font-display); font-size: clamp(1.625rem, 3.4vw, 2.75rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 500; max-width: 26ch; }
.vision p:last-child { max-width: 58ch; color: var(--muted); font-size: 1.125rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.pillar { padding: 28px 28px 8px 0; border-top: 1px solid var(--line); }
.pillar .icon { width: 32px; height: 32px; color: var(--teal); margin-bottom: 20px; }
.pillar h3 { font-size: 1.375rem; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.section-title { font-size: clamp(1.875rem, 3.8vw, 2.875rem); }
.section-lead { margin-top: 14px; color: var(--muted); max-width: 56ch; font-size: 1.1875rem; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar { padding-right: 20px; } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Path ---------- */
.path { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.path-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.path-svg path { fill: none; stroke: var(--sage-2); stroke-width: 3; stroke-linecap: round; }
.path-svg path.draw { stroke: var(--teal); }
.stop {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  min-height: 260px; padding-block: 24px;
}
.stop .node-cell { display: grid; place-items: center; }
.stop:nth-child(odd) .node-cell { grid-column: 1; grid-row: 1; }
.stop:nth-child(odd) .stop-body { grid-column: 2; grid-row: 1; padding-left: clamp(16px, 5vw, 72px); }
.stop:nth-child(even) .node-cell { grid-column: 2; grid-row: 1; }
.stop:nth-child(even) .stop-body { grid-column: 1; grid-row: 1; padding-right: clamp(16px, 5vw, 72px); text-align: right; justify-items: end; }
.node {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--muted);
  border: 3px solid var(--sage-2);
  transition: background-color 0.5s var(--ease), color 0.5s, border-color 0.5s, transform 0.5s var(--ease);
  position: relative; z-index: 1;
}
.node .icon { width: 32px; height: 32px; }
.stop.reached .node { background: var(--teal); color: var(--on-teal); border-color: var(--teal); transform: scale(1.06); }
.stop-body { display: grid; gap: 12px; max-width: 460px; justify-self: start; }
.stop:nth-child(even) .stop-body { justify-self: end; }
.stop-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.stop-body p { color: var(--muted); }
.stop-body .link-arrow { margin-top: 4px; }
.stop-end .stop-body { gap: 16px; }

@media (max-width: 760px) {
  .stop { grid-template-columns: 76px 1fr; column-gap: 20px; min-height: 0; padding-block: 28px; }
  .stop:nth-child(n) .node-cell { grid-column: 1; grid-row: 1; align-self: start; }
  .stop:nth-child(n) .stop-body { grid-column: 2; grid-row: 1; padding: 0; text-align: left; justify-items: start; justify-self: start; }
  .node { width: 60px; height: 60px; }
  .node .icon { width: 26px; height: 26px; }
  .stop .node-cell { justify-items: start; padding-left: 0; }
}

/* ---------- Closing band ---------- */
.band {
  background: var(--band); color: var(--on-band); border-radius: var(--r-panel);
  padding: clamp(40px, 7vw, 88px); display: grid; gap: 28px; justify-items: start;
  position: relative; overflow: hidden; isolation: isolate;
}
.band::after {
  content: ''; position: absolute; right: -60px; bottom: -80px; width: 340px; height: 340px; z-index: -1;
  background: url('/assets/logo.svg') center / contain no-repeat; opacity: 0.08; filter: brightness(3);
}
.band h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: 18ch; letter-spacing: -0.03em; }
.band p { color: var(--on-band-muted); max-width: 52ch; font-size: 1.1875rem; }

/* ---------- Page headers ---------- */
.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.035em; max-width: 16ch; }
.page-head .lede { margin-top: 20px; font-size: 1.25rem; color: var(--muted); max-width: 56ch; }
.crumb { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.crumb:hover { color: var(--teal); }
.crumb .icon { width: 1em; height: 1em; transform: rotate(180deg); }

/* ---------- Careers directory ---------- */
.toolbar { display: grid; gap: 20px; margin-bottom: 36px; }
.search {
  position: relative; max-width: 460px;
}
.search .icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--muted); }
.search input {
  width: 100%; min-height: 52px; padding: 0 18px 0 48px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-tile);
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus-visible { outline-offset: 2px; }
.field-label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--teal); }
.chip[aria-pressed='true'] { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.chip-static { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: var(--r-pill); background: var(--sage); font-size: 0.9375rem; font-weight: 500; }

.career-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 5vw, 72px); }
.career-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 20px;
  padding: 22px 8px; border-top: 1px solid var(--line); text-decoration: none; border-radius: 0;
  transition: background-color 0.25s, padding 0.3s var(--ease);
}
.career-row:hover { background: var(--sage); padding-inline: 18px; border-radius: var(--r-tile); border-top-color: transparent; }
.tile { width: 56px; height: 56px; border-radius: var(--r-tile); display: grid; place-items: center; background: var(--sage); color: var(--teal); }
.tile .icon { width: 28px; height: 28px; }
.career-row:hover .tile { background: var(--surface); }
.career-row h3 { font-size: 1.375rem; }
.career-row p { color: var(--muted); font-size: 0.975rem; line-height: 1.4; margin-top: 4px; }
.career-row > .icon { color: var(--teal); transition: transform 0.25s var(--ease); }
.career-row:hover > .icon { transform: translateX(4px); }
.empty { padding: 48px 0; color: var(--muted); font-size: 1.125rem; }
.empty strong { color: var(--ink); }
@media (max-width: 800px) { .career-grid { grid-template-columns: 1fr; } }

/* ---------- Career detail ---------- */
.detail { display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.toc { position: sticky; top: 104px; display: grid; gap: 2px; font-size: 0.975rem; }
.toc p { font-family: var(--font-display); font-weight: 600; margin-bottom: 8px; }
.toc a { padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--teal); }
.prose-block { padding-bottom: clamp(40px, 6vw, 64px); scroll-margin-top: 96px; }
.prose-block h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); margin-bottom: 24px; }
.prose-block > p { max-width: 62ch; font-size: 1.125rem; }

.steps { counter-reset: step; display: grid; gap: 0; position: relative; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 28px 64px; font-size: 1.125rem; max-width: 62ch;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--sage); color: var(--teal); font-family: var(--font-display); font-weight: 600;
}
.steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--sage-2);
}
.note { margin-top: 8px; padding: 14px 18px; border-radius: var(--r-tile); background: var(--accent-bg); color: var(--accent-ink); font-weight: 500; max-width: 62ch; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.check-list { display: grid; gap: 14px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check-list .icon { color: var(--teal); margin-top: 4px; width: 20px; height: 20px; }
.check-list.big li { font-size: 1.125rem; }
.sub-h { font-size: 1.25rem; margin-bottom: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .toc { display: none; } .two-col { grid-template-columns: 1fr; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pager a {
  display: grid; gap: 4px; padding: 22px 24px; border: 1.5px solid var(--line); border-radius: var(--r-panel);
  text-decoration: none; transition: border-color 0.2s, background-color 0.2s;
}
.pager a:hover { border-color: var(--teal); background: var(--sage); }
.pager small { color: var(--muted); font-size: 0.875rem; }
.pager strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.pager a:last-child { text-align: right; }
.draft-flag { margin-top: 20px; padding: 14px 18px; border-radius: var(--r-tile); border: 1.5px dashed var(--accent); color: var(--accent-ink); background: var(--accent-bg); font-size: 0.9375rem; max-width: 62ch; }

/* ---------- Opportunities ---------- */
.opp-list { border-top: 1px solid var(--line); }
.opp-row {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 24px; align-items: center;
  padding: 28px 8px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color 0.25s, padding 0.3s var(--ease);
}
.opp-row:hover { background: var(--sage); padding-inline: 20px; border-radius: var(--r-tile); border-color: transparent; }
.opp-row:hover .tile { background: var(--surface); }
.opp-row h3 { font-size: clamp(1.25rem, 2.2vw, 1.625rem); }
.opp-row .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.opp-row p.summary { color: var(--muted); margin-top: 10px; max-width: 64ch; font-size: 1rem; line-height: 1.55; }
.opp-row > .icon { color: var(--teal); transition: transform 0.25s var(--ease); }
.opp-row:hover > .icon { transform: translateX(4px); }
.chip-paid { background: var(--teal); color: var(--on-teal); }
.chip-soon { background: transparent; border: 1.5px dashed var(--muted); color: var(--muted); }
.chip-date { background: var(--accent-bg); color: var(--accent-ink); }
.disclaimer { margin-top: 28px; color: var(--muted); font-size: 0.9375rem; max-width: 70ch; }
@media (max-width: 640px) { .opp-row { grid-template-columns: 48px 1fr; } .opp-row > .icon:last-child { display: none; } .tile { width: 48px; height: 48px; } }

.opp-layout { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.glance {
  position: sticky; top: 104px; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-panel); padding: 28px; display: grid; gap: 22px; box-shadow: var(--shadow);
}
.glance h2 { font-size: 1.25rem; }
.glance dl { margin: 0; display: grid; gap: 16px; }
.glance dt { font-size: 0.8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.glance dd { margin: 2px 0 0; font-weight: 500; line-height: 1.4; }
.glance dd.accent { color: var(--accent); font-weight: 600; }
.glance .btn { width: 100%; white-space: normal; text-align: center; }
.glance .links { display: grid; gap: 10px; }
.def-list { display: grid; margin: 0; }
.def-list div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.def-list div:first-child { border-top: 0; padding-top: 0; }
.def-list dt { font-weight: 600; }
.def-list dd { margin: 0; color: var(--muted); }
.def-block { display: grid; gap: 22px; }
.def-block h3 { font-size: 1.1875rem; margin-bottom: 4px; }
.def-block p { color: var(--muted); }
.callout {
  margin-top: 28px; padding: 20px 24px; border-radius: var(--r-tile); background: var(--accent-bg);
  color: var(--accent-ink); border-left: 4px solid var(--accent); max-width: 62ch;
}
.callout strong { display: block; font-family: var(--font-display); font-size: 1.125rem; margin-bottom: 4px; }
.checklist { display: grid; gap: 4px; }
.checklist label { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 10px 0; cursor: pointer; font-size: 1.0625rem; }
.checklist input { appearance: none; width: 24px; height: 24px; margin: 2px 0 0; border-radius: 8px; border: 2px solid var(--muted); display: grid; place-items: center; background: transparent; cursor: pointer; }
.checklist input:checked { background: var(--teal); border-color: var(--teal); }
.checklist input:checked::after { content: ''; width: 6px; height: 12px; border: solid var(--on-teal); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--sage-2); }
.checklist .progress { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); }
.before { background: var(--sage); border-radius: var(--r-panel); padding: clamp(24px, 4vw, 40px); display: grid; gap: 12px; }
.before h2 { font-size: 1.5rem; }
.before p { max-width: 62ch; }
@media (max-width: 960px) { .opp-layout { grid-template-columns: 1fr; } .glance { position: static; order: -1; } .def-list div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Research ---------- */
.guide { border-top: 1px solid var(--line); }
.guide details { border-bottom: 1px solid var(--line); }
.guide summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 28px; gap: 16px; align-items: center;
  padding: 24px 4px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.625rem); letter-spacing: -0.015em;
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary .n { font-size: 1rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); color: var(--teal); }
.guide summary .icon { transition: transform 0.3s var(--ease); color: var(--teal); }
.guide details[open] summary .icon { transform: rotate(180deg); }
.guide details[open] .n { background: var(--teal); color: var(--on-teal); }
.guide .body { padding: 0 4px 32px 72px; display: grid; gap: 16px; max-width: 74ch; }
.guide .body h3 { font-size: 1.1875rem; margin-top: 8px; }
.guide .body ul { display: grid; gap: 12px; }
.guide .body li { position: relative; padding-left: 22px; }
.guide .body li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
@media (max-width: 640px) { .guide summary { grid-template-columns: 40px 1fr 24px; } .guide .body { padding-left: 4px; } }

.resources { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 72px); }
.resource { display: grid; gap: 8px; padding: 28px 0; border-top: 1px solid var(--line); align-content: start; }
.resource h3 { font-size: 1.375rem; }
.resource p { color: var(--muted); }
@media (max-width: 760px) { .resources { grid-template-columns: 1fr; } }

/* ---------- Journal ---------- */
.status-panel {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--sage); border-radius: var(--r-panel); padding: clamp(28px, 5vw, 56px);
}
.status-panel .tile { background: var(--surface); width: 72px; height: 72px; border-radius: 50%; }
.status-panel .tile .icon { width: 34px; height: 34px; }
.status-panel h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 10px; }
.status-panel p { color: var(--muted); max-width: 60ch; }
@media (max-width: 640px) { .status-panel { grid-template-columns: 1fr; } }
.expect { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 72px); }
.expect > div { padding: 28px 0; border-top: 1px solid var(--line); }
.expect h3 { font-size: 1.375rem; margin-bottom: 8px; }
.expect p { color: var(--muted); }
@media (max-width: 760px) { .expect { grid-template-columns: 1fr; } }
.submit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.fields { display: grid; gap: 0; counter-reset: f; }
.fields li { counter-increment: f; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.fields li::before { content: counter(f); font-family: var(--font-display); font-weight: 600; color: var(--teal); width: 32px; height: 32px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-size: 0.9375rem; }
.fields strong { display: block; font-weight: 600; }
.fields span { color: var(--muted); font-size: 0.975rem; }
.mail-box { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-panel); padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.mail-box h3 { font-size: 1.375rem; }
.mail-address { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.375rem); word-break: break-all; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-status { min-height: 1.5em; font-size: 0.9375rem; color: var(--teal); font-weight: 600; }
@media (max-width: 900px) { .submit-grid { grid-template-columns: 1fr; } }

/* ---------- Events ---------- */
.state-picker { display: grid; gap: 8px; max-width: 420px; }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none; width: 100%; min-height: 56px; padding: 0 52px 0 20px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-tile); cursor: pointer; font-size: 1.0625rem;
}
.select-wrap .icon { position: absolute; right: 18px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--teal); }
.state-result { margin-top: 40px; min-height: 200px; }
.state-result .panel { background: var(--sage); border-radius: var(--r-panel); padding: clamp(28px, 5vw, 56px); display: grid; gap: 16px; justify-items: start; }
.state-result h2 { font-size: clamp(1.625rem, 3.2vw, 2.5rem); }
.state-result p { color: var(--muted); max-width: 56ch; }
.event-list { display: grid; gap: 0; width: 100%; }
.event-list li { padding: 18px 0; border-top: 1px solid var(--sage-2); }
.event-list strong { font-family: var(--font-display); font-size: 1.25rem; }

/* ---------- Get involved ---------- */
.action-list { border-top: 1px solid var(--line); }
.action {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 28px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line);
}
.action .tile { width: 64px; height: 64px; }
.action h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 8px; }
.action p { color: var(--muted); max-width: 58ch; }
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .action { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Prose pages ---------- */
.prose { display: grid; gap: 18px; }
.prose h2 { font-size: 1.625rem; margin-top: 24px; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.prose a { color: var(--teal); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 40px; margin-top: var(--section); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--muted); max-width: 34ch; font-size: 1rem; line-height: 1.55; }
.site-footer h2 { font-size: 1rem; font-family: var(--font-display); margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer li a { text-decoration: none; color: var(--muted); font-size: 1rem; }
.site-footer li a:hover { color: var(--ink); text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--sage); border-color: var(--teal); }
.fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; display: grid; gap: 8px; max-width: 80ch; }
.fine-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.credit a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 0.875rem; }
.credit a:hover { color: var(--ink); text-decoration: underline; }
.credit img { width: 18px; height: 18px; border-radius: 5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-copy, .hero-links { animation: rise 0.9s var(--ease) both; }
  .hero-links { animation-delay: 0.18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .path-svg path.draw { transition: stroke-dashoffset 1.1s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  .path-svg path.draw { stroke-dashoffset: 0 !important; }
  .node, .btn, .career-row, .opp-row { transition: none; }
}

.not-found { min-height: 60vh; display: grid; align-content: center; justify-items: start; gap: 20px; padding-block: 80px; }
.not-found h1 { font-size: clamp(3rem, 9vw, 7rem); letter-spacing: -0.04em; }

/* Narrow screens: keep the illustration's corner art visible instead of cropping to its blank middle */
@media (max-width: 959px) {
  .hero { min-height: 0; padding-bottom: 0; align-items: flex-start; }
  .hero-art { background-size: auto 340px; background-position: 0% 100%; }
  .hero-grid { padding-bottom: 300px; }
  .hero-links { margin-top: 8px; }
}
