/* Hallmark · macrostructure: Map / Diagram · tone: clinical atlas · theme: custom (CEJ cobalt) · paper: #F3F8FC · accent: #185AA8 · display: Manrope · body: Manrope · nav: N-underline-shell · footer: Ft-index */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 */

:root {
  --color-ink: #10233e;
  --color-cobalt: #185aa8;
  --color-cobalt-deep: #10437f;
  --color-cobalt-soft: #cfe5ff;
  --color-clinical: #dceeff;
  --color-mist: #f3f8fc;
  --color-paper: #ffffff;
  --color-slate: #3d4f63;
  --color-line: #cad8e5;
  --color-verified: #167a5a;
  --font-display: "Manrope", Arial, sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
  --radius-control: 8px;
  --radius-surface: 16px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-3xl: 112px;
  --measure: 68ch;
  --frame: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow-x: clip;
}

html {
  background: var(--color-mist);
  scroll-behavior: smooth;
}

body {
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  background: var(--color-mist);
}

::selection {
  background: var(--color-cobalt-soft);
  color: var(--color-ink);
}

:focus-visible {
  outline: 2px solid var(--color-cobalt);
  outline-offset: 3px;
}

a {
  color: var(--color-cobalt-deep);
  text-underline-offset: 0.18em;
}

img,
video,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.98;
  margin: 0 0 var(--space-md);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  margin: 0 0 var(--space-sm);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 var(--space-xs);
}

p {
  margin: 0 0 var(--space-md);
  max-width: var(--measure);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: var(--space-md);
  top: var(--space-md);
  z-index: 80;
  background: var(--color-paper);
  padding: var(--space-xs) var(--space-sm);
}

.wrap {
  width: min(100% - 40px, var(--frame));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-left: auto;
}

.nav a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: var(--color-cobalt);
  font-weight: 700;
}

.header-cta {
  margin-left: var(--space-sm);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  border-radius: var(--radius-control);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-control);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-cobalt);
  color: var(--color-paper);
}

.btn-primary:hover {
  background: var(--color-cobalt-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--color-paper);
  border-color: rgb(255 255 255 / 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--color-cobalt-deep);
  border-color: var(--color-cobalt);
}

.btn-outline:hover {
  background: var(--color-clinical);
}

.hero {
  position: relative;
  background: var(--color-cobalt-deep);
  color: var(--color-paper);
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(16 35 62 / 0.25) 0%, rgb(16 67 127 / 0.72) 55%, rgb(16 67 127 / 0.94) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--space-xl);
  align-items: end;
}

.hero p {
  color: var(--color-cobalt-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.atlas {
  width: 100%;
  min-height: 340px;
}

.atlas a {
  text-decoration: none;
}

.atlas .node {
  fill: var(--color-paper);
  stroke: var(--color-cobalt-soft);
  stroke-width: 1.5;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.atlas a:hover .node,
.atlas a:focus-visible .node {
  fill: var(--color-clinical);
}

.atlas text {
  font-family: var(--font-display);
  fill: var(--color-ink);
}

.atlas .edge {
  fill: none;
  stroke: var(--color-cobalt-soft);
  stroke-width: 1.75;
  stroke-dasharray: 6 7;
}

.band {
  padding: var(--space-3xl) 0;
}

.band-cobalt {
  background: var(--color-cobalt);
  color: var(--color-paper);
}

.band-cobalt p,
.band-cobalt a {
  color: var(--color-cobalt-soft);
}

.band-paper {
  background: var(--color-paper);
}

.band-clinical {
  background: var(--color-clinical);
}

.hang {
  margin-bottom: var(--space-lg);
}

.hang p {
  color: var(--color-slate);
}

.course-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.course {
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-surface);
  overflow: clip;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.course:hover {
  box-shadow: 0 12px 28px rgb(16 35 62 / 0.1);
}

.course img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  display: block;
}

.course-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-slate);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-clinical);
  color: var(--color-cobalt-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--color-cobalt-deep);
}

.path-prompt {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-line);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius-surface);
  display: block;
}

.compass-doors {
  display: grid;
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-surface);
  overflow: clip;
}

.compass-doors a {
  background: var(--color-paper);
  color: var(--color-ink);
  text-decoration: none;
  padding: 28px 24px;
  display: grid;
  gap: 8px;
}

.compass-doors a:hover {
  background: var(--color-mist);
}

.teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.close {
  text-align: left;
}

.site-footer {
  background: var(--color-ink);
  color: var(--color-cobalt-soft);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.site-footer a {
  color: var(--color-paper);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cobalt-soft);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.note {
  font-size: 0.85rem;
  color: var(--color-slate);
}

.wizard {
  display: grid;
  gap: var(--space-lg);
}

.choices {
  display: grid;
  gap: 10px;
}

.choice {
  text-align: left;
  width: 100%;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  padding: 18px 20px;
  font: inherit;
  cursor: pointer;
}

.choice[aria-pressed="true"],
.choice:hover {
  border-color: var(--color-cobalt);
  background: var(--color-clinical);
}

.pathway {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 22px;
}

.pathway::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--color-line);
}

.path-course {
  position: relative;
  background: var(--color-paper);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-surface);
  padding: 18px 20px 18px 24px;
  margin-bottom: 12px;
}

.path-course::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-cobalt);
}

.path-course.is-later {
  opacity: 0.78;
}

.path-course.is-later::before {
  background: var(--color-line);
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.field {
  display: grid;
  gap: 6px;
  max-width: 420px;
}

.field input {
  min-height: 48px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  padding: 0 14px;
  font: inherit;
}

.field input:focus {
  border-color: var(--color-cobalt);
  box-shadow: 0 0 0 3px var(--color-cobalt-soft);
}

.toast {
  display: none;
  margin-top: var(--space-sm);
  padding: 12px 14px;
  background: var(--color-clinical);
  border-radius: var(--radius-control);
}

.toast.is-on {
  display: block;
}

.panel[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .header-inner.is-open .nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 4;
    padding-bottom: var(--space-md);
  }

  .header-inner.is-open .header-cta {
    display: block;
    order: 5;
    margin: 0 0 var(--space-md);
  }

  .hero-inner,
  .split,
  .teams,
  .course-rail,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 88px;
  }

  .btn {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero video {
    display: none;
  }

  .atlas .node,
  .course {
    transition: none;
  }
}
