/* Shared with campus.primeaibuilders.com (site/public/css/styles.css): tokens, base, layout, header, buttons, footer. Keep in sync. */
/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette (guide §3) */
  --navy: #061426;
  --blue: #0B2A55;
  --teal: #1FA6A0;
  --cyan: #2CCBFF;
  --silver: #E6EDF5;
  --white: #FFFFFF;

  /* Derived, contrast-checked (WCAG AA) */
  --teal-ink: #0E7C78;      /* teal text on white / silver (≥ 4.5:1 on white) */
  --ink: #0B1B33;           /* body text on light (17:1 on white) */
  --ink-muted: #42546B;     /* secondary text on light (6.5:1 on silver) */
  --on-dark-muted: #B8C7DA; /* secondary text on navy/blue (≥ 8:1) */
  --line-light: #C9D5E3;
  --line-dark: rgba(255, 255, 255, .14);

  /* Type */
  --font-head: "Space Grotesk", Aptos, Arial, "Helvetica Neue", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", Aptos, Arial, "Helvetica Neue", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 8vw, 6.5rem);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 76px;

  --focus: var(--blue);
}

.on-dark { --focus: var(--cyan); }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

img, picture, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure, blockquote { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  background: var(--white);
  color: var(--navy);
  padding: .75rem 1.1rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Layout ---------- */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--light  { background: var(--white); }
.section--silver { background: var(--silver); }
.section--dark   { background: var(--navy); color: var(--white); }
.section--blue   { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .8125rem;          /* 13px */
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.eyebrow--dark { color: var(--teal-ink); }

.section-title {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}
.section-title--dark { color: var(--navy); }

.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 20, 38, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}
.brand img { height: 54px; width: auto; }

.site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9375rem;
  padding: .5rem .15rem;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.site-nav a:hover { border-bottom-color: var(--cyan); }
.site-nav__ext {
  color: var(--on-dark-muted) !important;
}
.site-nav__ext::after { content: " \2197"; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    background: transparent;
    border: 1.5px solid var(--line-dark);
    border-radius: 12px;
    cursor: pointer;
  }
  .nav-toggle:focus-visible { outline-color: var(--cyan); }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 20px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after  { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

  .js .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--navy);
    border-bottom: 1px solid var(--line-dark);
    padding: .5rem var(--gutter) 1.25rem;
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--line-dark); }
  .site-nav a { display: block; padding: .95rem .25rem; font-size: 1.0625rem; border-bottom: 0; }

  /* Without JS the links simply wrap under the logo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .5rem; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: .25rem 1.25rem; }
  html:not(.js) .site-nav li + li { border-top: 0; }
}

/* ---------- 5. Buttons and badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 52px;
  padding: .8rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--teal); color: var(--navy); }
.btn--primary:hover { background: var(--cyan); }
.btn--primary:active { transform: translateY(1px); }
.btn--secondary { border-color: rgba(255, 255, 255, .6); color: var(--white); background: transparent; }
.btn--secondary:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .75rem;             /* 12px */
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  padding: .5rem .8rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  width: fit-content;
}
/* Status is conveyed by text + dot shape, never color alone */
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.badge--enrolling { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.badge--available { color: var(--cyan); }
.badge--soon      { color: var(--cyan); }
.badge--soon .badge__dot,
.badge--dev .badge__dot   { background: transparent; border: 2px solid currentColor; }
.badge--dev       { color: var(--on-dark-muted); }
.badge--closed    { color: var(--on-dark-muted); border-style: dashed; }
.badge--closed .badge__dot { border-radius: 2px; }

/* ---------- 11. Footer ---------- */
.site-footer {
  background: #040E1C;
  color: var(--on-dark-muted);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr .8fr;
  gap: 2.5rem;
}
.footer__brand img { height: 64px; width: auto; margin-bottom: .9rem; }
.footer__brand p { margin-bottom: .35rem; }
.motto--footer {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--white);
}
.footer__h {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: .6rem; }
.footer__col a { color: var(--white); text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer__legal {
  margin-top: 3rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: .875rem;
}

@media (max-width: 959px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
