/* ==========================================================================
   Talentis Consultancy — design system
   The brand name appears only in HTML copy, never in CSS, so renaming is a
   find-and-replace across the .html files.
   Brand colours live in the custom properties below.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #0b1b33;
  --navy-800: #11284a;
  --navy-700: #1b3a66;
  --navy-600: #27528c;
  --blue-500: #2f6fd0;
  --blue-100: #e6effc;

  /* Accent amber, used sparingly for action.
     amber-500 is a background/dark-surface colour only: at 2.04:1 on white it
     must never carry text or an outline on a light background. amber-700 is the
     accessible text variant (4.10:1 on white). */
  --amber-500: #f5a524;
  --amber-600: #d98a0b;
  --amber-700: #b06f00;
  --amber-100: #fdf0d8;

  /* Support. teal-500 is decorative only (2.89:1 on white);
     teal-700 is the text-safe variant (6.02:1 on the alt surface). */
  --teal-500: #12a594;
  --teal-700: #0b6b5f;
  --teal-100: #dcf5f1;

  /* Neutrals */
  --ink: #16202e;
  --ink-muted: #56637a;
  --line: #e2e7ef;
  /* Borders that identify an interactive control need 3:1 (WCAG 1.4.11). */
  --line-strong: #7d8ca6;
  --surface: #ffffff;
  --surface-alt: #f6f8fc;
  --surface-sunk: #eef2f8;

  /* Feedback */
  --error: #c62828;
  --success: #1b7f4b;

  /* Type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
    Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  /* Scale (fluid) */
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.32rem + 0.6vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.55rem + 1.1vw, 2.5rem);
  --step-4: clamp(2.15rem, 1.7rem + 2vw, 3.4rem);

  /* Space */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.06),
    0 2px 6px rgba(11, 27, 51, 0.05);
  --shadow-md: 0 4px 12px rgba(11, 27, 51, 0.08),
    0 12px 28px rgba(11, 27, 51, 0.07);
  --shadow-lg: 0 18px 50px rgba(11, 27, 51, 0.16);

  --container: 1160px;
  --header-h: 72px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img,
svg,
picture {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-1);
}

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

a {
  color: var(--navy-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-500);
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.2rem;
}

li + li {
  margin-top: var(--space-2xs);
}

strong {
  color: var(--navy-900);
}

/* Focus ring flips with the surface so it always clears 3:1 against the
   background behind it: navy on light (17.2:1), amber on dark (8.4:1). */
:focus-visible {
  outline: 3px solid var(--navy-900);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.hero :focus-visible,
.page-hero :focus-visible,
.section--navy :focus-visible,
.cta-banner :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--amber-500);
}

/* --- 3. Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--narrow {
  max-width: 780px;
}

.section {
  padding-block: var(--space-3xl);
}

.section--tight {
  padding-block: var(--space-2xl);
}

.section--alt {
  background: var(--surface-alt);
}

.section--sunk {
  background: var(--surface-sunk);
}

.section--navy {
  background:
    radial-gradient(
      1000px 400px at 85% -10%,
      rgba(47, 111, 208, 0.45),
      transparent 60%
    ),
    var(--navy-900);
  color: #dbe5f3;
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.section-head {
  max-width: 62ch;
  margin-bottom: var(--space-xl);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center p {
  margin-inline: auto;
}

.section-head p {
  color: var(--ink-muted);
  font-size: var(--step-1);
  margin-bottom: 0;
}

.section--navy .section-head p {
  color: #b7c6dd;
}

.eyebrow {
  display: inline-block;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: var(--space-xs);
}

.section--navy .eyebrow {
  color: var(--amber-500);
}

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

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}

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

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .split--reverse > :first-child {
    order: 2;
  }
}

.stack > * + * {
  margin-top: var(--space-md);
}

.text-center {
  text-align: center;
}

.visually-hidden {
  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: var(--space-md);
  top: -100px;
  z-index: 200;
  background: var(--amber-500);
  color: var(--navy-900);
  font-weight: 700;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-md);
}

/* --- 4. Buttons & pills -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.2;
  padding: 0.85em 1.5em;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease,
    border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--amber-500);
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(245, 165, 36, 0.35);
}

.btn--primary:hover {
  background: var(--amber-600);
  color: var(--navy-900);
}

.btn--secondary {
  background: var(--navy-800);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--navy-700);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--navy-600);
  color: var(--navy-700);
}

.btn--outline:hover {
  background: var(--blue-100);
  color: var(--navy-800);
}

.btn--sm {
  font-size: var(--step--1);
  padding: 0.65em 1.15em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  font-family: var(--font-display);
  text-decoration: none;
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--step--1);
  font-weight: 700;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-pill);
  background: var(--blue-100);
  color: var(--navy-700);
}

.pill--amber {
  background: var(--amber-100);
  color: #8a5800;
}

.pill--teal {
  background: var(--teal-100);
  color: #0a6055;
}

.pill--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-list li {
  margin: 0;
}

/* --- 5. Header / nav ----------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  /* Gradient stops stay dark enough that the amber letter clears 4.5:1 along
     its whole run. Ending on blue-500 dropped it to 2.4:1. */
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700));
  color: var(--amber-500);
  font-size: 1rem;
  font-weight: 800;
}

.brand__sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--navy-800);
  cursor: pointer;
}

.nav-toggle__bars {
  display: grid;
  gap: 3px;
}

.nav-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
}

.site-nav__list li {
  margin: 0;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--navy-800);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link:hover {
  background: var(--surface-alt);
  color: var(--navy-900);
}

.site-nav__link[aria-current="page"] {
  color: var(--blue-500);
  background: var(--blue-100);
}

.site-nav__cta {
  margin-left: var(--space-xs);
}

@media (max-width: 919px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: var(--space-md) var(--space-lg) var(--space-lg);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__link {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-0);
  }
  .site-nav__cta {
    margin: var(--space-md) 0 0;
  }
  .site-nav__cta .btn {
    width: 100%;
  }
}

@media (min-width: 920px) {
  .nav-toggle {
    display: none;
  }
}

/* --- 6. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      900px 500px at 78% 8%,
      rgba(47, 111, 208, 0.5),
      transparent 62%
    ),
    radial-gradient(
      600px 400px at 8% 92%,
      rgba(18, 165, 148, 0.28),
      transparent 60%
    ),
    var(--navy-900);
  color: #dbe5f3;
  padding-block: var(--space-3xl);
}

.hero h1 {
  color: #fff;
}

.hero__lede {
  font-size: var(--step-1);
  color: #c3d1e6;
  max-width: 54ch;
}

.hero__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero__meta div {
  min-width: 120px;
}

.hero__meta dt {
  font-size: var(--step--1);
  color: #9fb2cd;
  letter-spacing: 0.04em;
}

.hero__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  color: #fff;
}

/* Hero card: the placement-outcome panel */
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}

.hero-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero-card__head h2 {
  font-size: var(--step-1);
  margin: 0;
}

.track-line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.track-line li {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: var(--step--1);
}

.track-line b {
  color: #fff;
  font-family: var(--font-display);
}

.meter {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  flex: 1;
  max-width: 120px;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-500), var(--amber-500));
}

/* --- 7. Cards ------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card > :last-child {
  margin-bottom: 0;
}

.card--lift:hover,
.card--lift:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c9d6ea;
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--navy-700);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.card__icon--amber {
  background: var(--amber-100);
  color: #8a5800;
}

.card__icon--teal {
  background: var(--teal-100);
  color: #0a6055;
}

.card h3 {
  font-size: var(--step-1);
}

.card p {
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
}

.card--glass {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.card--glass p {
  color: #b7c6dd;
}

/* Step cards, numbered */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.steps > li {
  counter-increment: step;
  margin: 0;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--amber-700);
  margin-bottom: var(--space-xs);
  line-height: 1;
}

/* Step cards sit on navy in two places, where the light amber reads better. */
.section--navy .steps > li::before {
  color: var(--amber-500);
}

.steps h3 {
  font-size: var(--step-1);
}

.steps p {
  color: var(--ink-muted);
  margin-bottom: 0;
}

/* Feature list with ticks */
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
  display: grid;
  gap: var(--space-sm);
}

.ticks li {
  margin: 0;
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: var(--space-xs);
  align-items: start;
}

.ticks li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--teal-100);
  color: #0a6055;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.section--navy .ticks li::before {
  background: rgba(18, 165, 148, 0.25);
  color: #7fe3d4;
}

/* Stat blocks */
.stat-strip {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  text-align: center;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-sm);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1.1;
}

.stat__label {
  display: block;
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-top: var(--space-2xs);
}

/* Logo wall (text placeholders until real marks are supplied) */
.logo-wall {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
}

.logo-wall li {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: var(--space-sm);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
  text-align: center;
}

/* --- 8. Testimonials ----------------------------------------------------- */
.quote-deck {
  position: relative;
}

.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber-500);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.quote[hidden] {
  display: none;
}

.quote blockquote {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--navy-900);
}

.quote__person {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy-700);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.quote__person cite {
  font-style: normal;
  font-weight: 700;
  color: var(--navy-900);
  display: block;
}

.quote__person span {
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.quote-nav {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-lg);
}

.quote-nav button {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--navy-600);
  background: transparent;
  cursor: pointer;
}

.quote-nav button[aria-selected="true"] {
  background: var(--navy-600);
}

/* --- 9. Accordion -------------------------------------------------------- */
.accordion {
  display: grid;
  gap: var(--space-sm);
}

.accordion__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.accordion__heading {
  margin: 0;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  text-align: left;
  background: transparent;
  border: 0;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
}

.accordion__trigger:hover {
  background: var(--surface-alt);
}

.accordion__trigger .icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--navy-700);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.accordion__trigger[aria-expanded="true"] .icon {
  transform: rotate(45deg);
  background: var(--amber-100);
  color: #8a5800;
}

.accordion__panel {
  padding: 0 var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
}

.accordion__panel[hidden] {
  display: none;
}

.accordion__panel > :last-child {
  margin-bottom: 0;
}

/* --- 10. Program / track cards ------------------------------------------ */
.track {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 820px) {
  .track {
    grid-template-columns: 1fr 250px;
  }
}

.track__meta {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  border: 1px solid var(--line);
}

.track__meta dl {
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}

.track__meta dt {
  font-size: var(--step--1);
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.track__meta dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy-900);
}

/* --- 11. Tables ---------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

caption {
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--step--1);
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

th,
td {
  text-align: left;
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
}

thead th {
  background: var(--surface-alt);
  font-family: var(--font-display);
  color: var(--navy-900);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* --- 12. Forms ----------------------------------------------------------- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.form__grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.field {
  display: grid;
  gap: var(--space-2xs);
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--navy-900);
}

.field .hint {
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.req {
  color: var(--error);
}

input,
select,
textarea {
  font: inherit;
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--navy-600);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 111, 208, 0.22);
}

/* No outline:none here. The field keeps the global navy focus ring, tightened
   so it hugs the control. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--navy-900);
  outline-offset: 1px;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: #fff6f6;
}

.error-text {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--error);
  min-height: 1.2em;
}

.error-text:empty {
  min-height: 0;
}

.checkbox {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: var(--space-sm);
  align-items: start;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
}

.form__status {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: 1px solid transparent;
}

.form__status:empty {
  display: none;
}

.form__status--ok {
  background: #e8f6ee;
  border-color: #b7e0c7;
  color: var(--success);
}

.form__status--error {
  background: #fdecec;
  border-color: #f3c2c2;
  color: var(--error);
}

/* --- 13. Filter bar (success stories) ----------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.filter-bar button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  /* Chips sit on a near-white section, so the border is the only thing marking
     the control boundary. It has to clear 3:1. */
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--navy-800);
  cursor: pointer;
}

.filter-bar button:hover {
  border-color: var(--navy-600);
}

.filter-bar button[aria-pressed="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}

.story {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.story[hidden] {
  display: none;
}

.story__jump {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--step--1);
}

.story__jump span:nth-child(2) {
  color: var(--teal-700);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
  color: var(--ink-muted);
}

.empty-state[hidden] {
  display: none;
}

/* --- 14. Timeline -------------------------------------------------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--space-lg);
  border-left: 2px solid var(--line);
  display: grid;
  gap: var(--space-lg);
}

.timeline li {
  margin: 0;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-lg) - 7px);
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber-500);
  border: 2px solid var(--surface);
}

.timeline h3 {
  font-size: var(--step-0);
  margin-bottom: 2px;
}

.timeline p {
  color: var(--ink-muted);
  margin: 0;
}

.timeline__year {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--blue-500);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
}

/* --- 15. Page hero (inner pages) ---------------------------------------- */
.page-hero {
  background:
    radial-gradient(
      700px 340px at 88% 0%,
      rgba(47, 111, 208, 0.38),
      transparent 60%
    ),
    var(--navy-900);
  color: #c3d1e6;
  padding-block: var(--space-2xl);
}

.page-hero h1 {
  color: #fff;
  max-width: 24ch;
}

.page-hero p {
  font-size: var(--step-1);
  max-width: 60ch;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: var(--step--1);
  margin-bottom: var(--space-md);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  color: #93a7c4;
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: #5c749a;
}

.breadcrumb a {
  color: #cfdcee;
}

/* --- 16. CTA banner ----------------------------------------------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: grid;
  gap: var(--space-lg);
  align-items: center;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 860px) {
  .cta-banner {
    grid-template-columns: 1.4fr auto;
  }
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: var(--space-xs);
}

.cta-banner p {
  color: #d3e0f2;
  margin: 0;
}

/* --- 17. Footer --------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #a9bbd4;
  padding-block: var(--space-2xl) var(--space-lg);
  font-size: var(--step--1);
}

.site-footer a {
  color: #cfdcee;
  text-decoration: none;
}

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

.site-footer .brand {
  color: #fff;
}

.site-footer .brand__sub {
  color: #8aa0c0;
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

.footer-grid h3 {
  color: #fff;
  font-size: var(--step-0);
  margin-bottom: var(--space-sm);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-xs);
}

.footer-grid li {
  margin: 0;
}

.footer-note {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: space-between;
  color: #8aa0c0;
}

.footer-note p {
  margin: 0;
  max-width: none;
}

/* --- 18. Misc ----------------------------------------------------------- */
.note {
  border-left: 4px solid var(--blue-500);
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-lg);
  color: var(--navy-800);
}

.note > :last-child {
  margin-bottom: 0;
}

.map-placeholder {
  border: 1px dashed #c8d2e2;
  border-radius: var(--radius);
  background: repeating-linear-gradient(
      45deg,
      var(--surface-alt),
      var(--surface-alt) 12px,
      #eef2f8 12px,
      #eef2f8 24px
    );
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-muted);
  padding: var(--space-lg);
  font-weight: 600;
}
