/* ==========================================================================
   RPAP Offline Mockup — styles.css
   Sections:
     1.  Design tokens
     2.  Reset & base
     3.  Typography
     4.  Layout utilities
     5.  Header & navigation
     6.  Hero
     7.  Sections & cards
     8.  Page-specific sections (pathways, buttons)
     9.  CTA & footer
     10. Responsive rules
     11. Motion & accessibility
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */
:root {
  /* RPAP brand (per RPAP branding guide) */
  --rpap-navy:   #001872;
  --rpap-blue:   #0053B5;
  --rpap-purple: #A505F1;
  --rpap-cyan:   #38CAEA;
  --rpap-offwh:  #F4F6FB;
  --rpap-dtxt:   #001040;
  --rpap-midtxt: #3A4A7A;
  --rpap-white:  #FFFFFF;

  /* Semantic aliases consumed by components */
  --white: var(--rpap-white);
  --ink: var(--rpap-dtxt);
  --muted: var(--rpap-midtxt);
  --surface: var(--rpap-offwh);
  --surface-strong: #E3E8F2;
  --surface-dark: var(--rpap-navy);
  --line: rgba(0, 16, 64, 0.14);
  --shadow-soft: 0 18px 45px rgba(0, 16, 64, 0.14);
  --shadow-card: 0 10px 30px rgba(0, 16, 64, 0.10);

  /* Spacing — 8pt rhythm in rem */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* Transitions */
  --t-fast: 120ms ease-out;
  --t-mid: 220ms ease-out;
  --t-slow: 450ms ease-out;
  /* Card hover lift — longer, gently decelerating curve for a smoother feel */
  --t-card: 340ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Layout */
  --w-content: 1180px;
  --w-prose: 68ch;

  /* Type stacks */
  --ff-head: "Barlow Condensed", "Oswald", "Arial Narrow", Calibri, Arial, sans-serif;
  --ff-body: "Barlow", "Inter", system-ui, -apple-system, "Segoe UI", Calibri, Helvetica, Arial, sans-serif;
}


/* 2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--rpap-blue); text-decoration: none; transition: color var(--t-fast); }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
:focus-visible { outline: 3px solid var(--rpap-purple); outline-offset: 3px; border-radius: 2px; }


/* 3. Typography
   ========================================================================== */
.eyebrow {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.eyebrow--light { color: var(--rpap-cyan); }

.section-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--rpap-navy);
  margin-bottom: var(--space-5);
}
.section-title--light { color: var(--white); }

.section-intro {
  font-size: 1.0625rem;
  max-width: var(--w-prose);
  color: var(--muted);
  margin-bottom: var(--space-6);
}
.section-intro--light { color: rgba(255, 255, 255, 0.85); }

.prose { max-width: var(--w-prose); }
.prose p { margin-bottom: var(--space-4); }
.prose p:last-child { margin-bottom: 0; }
.prose--center { margin-left: auto; margin-right: auto; text-align: center; }


/* 4. Layout utilities
   ========================================================================== */
.section { padding: var(--space-10) var(--space-5); }
.section-inner { max-width: var(--w-content); margin: 0 auto; }

.section--surface { background: var(--surface); }
.section--strong { background: var(--surface-strong); }
.section--dark { background: var(--surface-dark); color: rgba(255, 255, 255, 0.88); }
.section--dark .section-intro { color: rgba(255, 255, 255, 0.85); }
.section--dark a { color: var(--rpap-cyan); }

.section-head { margin-bottom: var(--space-7); }
.section-head--center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head--center .section-intro { margin-left: auto; margin-right: auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: start;
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  background: var(--rpap-purple);
  color: var(--ink);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-sm);
  transition: top var(--t-fast);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: var(--space-3); }


/* 5. Header & navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--rpap-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  max-width: var(--w-content);
  margin: 0 auto;
  padding: var(--space-2) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--rpap-white);
  margin-right: auto;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: var(--rpap-cyan); }
.brand__mark { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; }
.brand__name {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}
.brand__name span { display: block; }

.partner-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.partner-brand img {
  height: 40px;
  width: auto;
  display: block;
}

.primary-nav__list {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav__link {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: var(--space-2) var(--space-3);
  color: var(--rpap-white);
  border-bottom: 3px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.primary-nav__link:hover { text-decoration: none; color: var(--rpap-cyan); }
.primary-nav__link.is-active,
.primary-nav__link[aria-current="page"] {
  color: var(--rpap-white);
  border-bottom-color: var(--rpap-purple);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: var(--r-sm);
}
.nav-toggle__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--rpap-white);
  transition: transform var(--t-fast), opacity var(--t-fast), top var(--t-fast);
}
.nav-toggle__bar:nth-child(1) { top: 14px; }
.nav-toggle__bar:nth-child(2) { top: 21px; }
.nav-toggle__bar:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }


/* 6. Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(520px, 80vh, 720px);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 28% 32%, rgba(109, 175, 198, 0.28), transparent 60%),
    linear-gradient(135deg, #001872 0%, #000d4a 55%, #001872 100%);
  transform: scale(1.02);
  transition: transform var(--t-slow);
}
.hero__media::before,
.hero__media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.hero__media::before { top: 38%; }
.hero__media::after { top: 62%; }
.hero:hover .hero__media { transform: scale(1.05); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 16, 64, 0.72) 0%, rgba(0, 24, 114, 0.55) 60%, rgba(0, 16, 64, 0.82) 100%);
}
.hero__inner {
  position: relative;
  padding: var(--space-9) var(--space-5);
  max-width: var(--w-content);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
.hero__content { min-width: 0; }
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__visual img {
  width: min(100%, 360px);
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 16, 64, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hero__title {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 30ch;
  margin-bottom: var(--space-4);
}
.hero__title > span { display: block; }
.hero__sub {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  letter-spacing: 0.04em;
  color: var(--rpap-cyan);
  margin-bottom: var(--space-4);
}
.hero__body {
  font-size: 1.0625rem;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: var(--space-7);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.eyebrow + .hero__attribution { margin-top: calc(var(--space-2) * -1); }
.hero__attribution {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: var(--space-5);
}
.hero__attribution-brand {
  color: var(--rpap-cyan);
  font-weight: 600;
}

.placeholder-label {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-sm);
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-5);
  z-index: 1;
}


/* 7. Sections & cards
   ========================================================================== */
.card-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.card-grid--three { grid-template-columns: 1fr; }
.card-grid--two { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-card), box-shadow var(--t-card);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rpap-navy);
  margin-bottom: var(--space-3);
}
.card__lead {
  font-weight: 600;
  color: var(--rpap-navy);
  margin-bottom: var(--space-2);
}
.card__body {
  color: var(--muted);
  font-size: 1rem;
}

.card--ksa {
  position: relative;
  padding-top: var(--space-7);
}
.card--ksa::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-6);
  right: var(--space-6);
  height: 3px;
  background: var(--rpap-purple);
}
.ksa-letter {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--rpap-cyan);
  margin-bottom: var(--space-3);
}

/* 80/20 insight card — sits inside #why (dark section) as a light-card breakout.
   Spans the full .section-inner width so its left/right edges align with the
   K/S/A card grid above it. */
.ksa-insight {
  background: var(--rpap-white);
  border: 1px solid rgba(0, 24, 114, 0.08);
  border-radius: 10px;
  padding: var(--space-7);
  margin-top: var(--space-7);
  width: 100%;
  box-shadow: var(--shadow-card);
}
.ksa-insight__heading {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rpap-navy);
  margin-bottom: var(--space-4);
}
.ksa-insight__lead {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--rpap-dtxt);
  margin-bottom: var(--space-5);
}
.ksa-insight__bar-wrapper {
  margin: var(--space-5) 0 var(--space-6);
}
.ksa-insight__bar-labels {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}
.ksa-insight__bar-label {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ksa-insight__bar-label--ks { color: var(--rpap-blue); }
.ksa-insight__bar-label--attitude { color: var(--rpap-purple); }
.ksa-insight__bar-percent {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.ksa-insight__bar {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: rgba(0, 24, 114, 0.06);
}
.ksa-insight__bar-fill { height: 100%; }
.ksa-insight__bar-fill--ks { width: 20%; background: var(--rpap-blue); }
.ksa-insight__bar-fill--attitude { width: 80%; background: var(--rpap-purple); }
.ksa-insight__close {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--rpap-midtxt);
  margin: 0;
}

/* Closing statement — sits in its own light-surface section directly under
   the Why RPAP Works block. Reuses .eyebrow + .section-title for visual
   consistency with the rest of the page. Slimmer padding so it reads as a
   transition flowing into the stats band beneath. */
.why-close-section {
  padding: var(--space-7) var(--space-5) var(--space-8);
}
.why-close { max-width: 880px; margin: 0 auto; }
.why-close .section-title { margin-bottom: 0; }

/* Stats band — dark navy, four-column on desktop, stacked on mobile */
.stats-band {
  padding: var(--space-8) var(--space-5);
}
.stats-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  text-align: center;
}
.stat { display: block; }
.stat__number {
  display: block;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.8vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--rpap-cyan);
  margin-bottom: var(--space-2);
}
.stat__label {
  display: block;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
  max-width: 22ch;
  margin: 0 auto;
}

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--rpap-purple);
  padding: var(--space-5) var(--space-6);
  background: var(--white);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--shadow-card);
}
.pull-quote p {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--rpap-navy);
  letter-spacing: 0.02em;
}

/* Feature variant — navy filled callout for stronger visual emphasis */
.pull-quote--feature {
  background: var(--rpap-navy);
  border-left: 6px solid var(--rpap-purple);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--space-6) var(--space-7);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.pull-quote--feature::before {
  content: "\201C";
  position: absolute;
  top: var(--space-3);
  right: var(--space-5);
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: var(--rpap-cyan);
  opacity: 0.4;
}
.pull-quote--feature p {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--rpap-white);
  text-transform: none;
  position: relative;
}

/* Development Gap section — light-surface section with colourful timeline + callout.
   Heading/eyebrow/intro reuse the shared .section-head / .eyebrow / .section-title
   / .section-intro classes so this section is visually consistent with the rest
   of the page.
   -------------------------------------------------------------------------- */

/* Timeline grid */
.gap-timeline {
  list-style: none;
  padding: 0;
  margin: var(--space-7) 0 0;
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 10px;
  overflow: hidden;
}
.gap-timeline__block {
  padding: var(--space-7) var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 180px;
}
.gap-timeline__block--event { background: var(--rpap-blue); }
.gap-timeline__block--gap   {
  background: #101B7A;
  border-top: 1px dashed rgba(165, 5, 241, 0.55);
  border-bottom: 1px dashed rgba(165, 5, 241, 0.55);
}
.gap-timeline__block--solution { background: var(--rpap-purple); }

.gap-timeline__label {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rpap-cyan);
  margin-bottom: var(--space-2);
}
.gap-timeline__label--white { color: var(--rpap-white); }
.gap-timeline__detail {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  max-width: 32ch;
}
.gap-timeline__detail--muted { color: rgba(255, 255, 255, 0.72); }
.gap-timeline__question {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.3;
  color: var(--rpap-cyan);
  margin: 0 0 var(--space-3);
  max-width: 26ch;
}

/* Lower callout card — 37x marginal gains */
.gap-callout {
  margin-top: var(--space-7);
  padding: var(--space-6) var(--space-7);
  background: var(--rpap-white);
  border: 1px solid rgba(0, 24, 114, 0.12);
  border-left: 4px solid var(--rpap-purple);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}
.gap-callout__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  line-height: 1;
}
.gap-callout__stat-number {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--rpap-cyan);
  letter-spacing: -0.01em;
}
.gap-callout__stat-label {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rpap-navy);
  margin-top: var(--space-2);
}
.gap-callout__text {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--rpap-midtxt);
  margin: 0;
}
.gap-callout__text strong {
  color: var(--rpap-navy);
  font-weight: 700;
}

/* Check list — leading purple → on each item */
.check-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
}
.check-list li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.5;
}
.check-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: var(--space-3);
  color: var(--rpap-purple);
  font-weight: 700;
}


/* 8. Page-specific sections (pathways, buttons)
   ========================================================================== */
.pathway__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
.pathway__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 35% 30%, rgba(109, 175, 198, 0.28), transparent 60%),
    linear-gradient(135deg, #001872 0%, #000d4a 100%);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.pathway__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--r-md);
}
.pathway__media .placeholder-label {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
}
.pathway__body p { margin-bottom: var(--space-4); }
.pathway__body p:last-of-type { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--r-sm);
  background: var(--rpap-purple);
  color: var(--white);
  border: 2px solid var(--rpap-purple);
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), box-shadow var(--t-fast);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  background: var(--rpap-navy);
  border-color: var(--rpap-navy);
  color: var(--white);
}
.btn--outline {
  background: transparent;
  color: var(--rpap-navy);
  border-color: var(--rpap-navy);
}
.btn--outline:hover {
  background: var(--rpap-navy);
  color: var(--white);
}
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}


/* Deliver cards (home: "What RPAP Delivers")
   -------------------------------------------------------------------------- */
.card--deliver { display: flex; flex-direction: column; }
.card--deliver .eyebrow { color: var(--rpap-cyan); margin-bottom: var(--space-2); }
.card__list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
}
.card__list li {
  position: relative;
  padding: var(--space-3) 0 var(--space-3) var(--space-6);
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.55;
}
.card__list li:last-child { border-bottom: 0; }
.card__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: var(--space-3);
  font-weight: 700;
  color: var(--rpap-purple);
}

/* Session timeline (home: "How a Session Works")
   -------------------------------------------------------------------------- */
.session-timeline {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  counter-reset: none;
}
.session-timeline__step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-card), box-shadow var(--t-card);
}
.session-timeline__step:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.session-timeline__num {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--rpap-cyan);
  letter-spacing: 0.02em;
}
.session-timeline__time {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--rpap-purple);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  margin: var(--space-3) 0;
}
.session-timeline__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rpap-navy);
  margin-bottom: var(--space-3);
}
.session-timeline__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.session-timeline__list li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.session-timeline__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: var(--space-2);
  color: var(--rpap-purple);
  font-weight: 700;
  font-size: 0.95rem;
}
.session-timeline__note {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--white);
  border-left: 4px solid var(--rpap-purple);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  box-shadow: var(--shadow-card);
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.6;
}
.session-timeline__note strong {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rpap-navy);
  margin-bottom: var(--space-2);
}

/* Pathway follow-up blocks (extra sub-sections inside Pilot/Trainer)
   -------------------------------------------------------------------------- */
.pathway__followup {
  margin-top: var(--space-9);
  padding-top: var(--space-8);
  border-top: 1px solid var(--line);
}
.pathway__followup + .pathway__followup {
  padding-top: var(--space-7);
}
.pathway__cta { text-align: center; }
.subsection-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rpap-navy);
  margin-bottom: var(--space-3);
}
.subsection-intro {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: var(--space-4);
  max-width: var(--w-prose);
}

/* Outcome panel (navy block, e.g. "What pilots gain")
   -------------------------------------------------------------------------- */
.outcome-panel {
  background: var(--surface-dark);
  color: var(--white);
  border-radius: var(--r-md);
  padding: var(--space-6);
  border-left: 4px solid var(--rpap-purple);
  box-shadow: var(--shadow-card);
}
.outcome-panel__eyebrow {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rpap-cyan);
  margin-bottom: var(--space-3);
}
.outcome-panel__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-4);
}
.outcome-panel__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.outcome-panel__list li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.5;
}
.outcome-panel__list li:last-child { border-bottom: 0; }
.outcome-panel__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: var(--space-2);
  color: var(--rpap-purple);
  font-weight: 700;
}

/* Numbered diagnostic list ("Six Questions Worth Sitting With")
   -------------------------------------------------------------------------- */
.questions-list {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 0;
  counter-reset: q;
}
.questions-list li {
  counter-increment: q;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
}
.questions-list li::before {
  content: counter(q, decimal-leading-zero);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--rpap-purple);
  min-width: 2.2rem;
}

/* Operator context cards ("Moving toward EBT" / "Already in EBT")
   -------------------------------------------------------------------------- */
.op-cards {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
.op-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--rpap-purple);
  border-radius: var(--r-sm);
  padding: var(--space-4) var(--space-5);
}
.op-card__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rpap-navy);
  margin-bottom: var(--space-2);
}
.op-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}


/* 9. CTA & footer
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: start;
  margin-top: var(--space-7);
}
.contact__label {
  font-family: var(--ff-head);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rpap-cyan);
  margin-bottom: var(--space-3);
}
.contact__email {
  display: inline-block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  letter-spacing: 0.04em;
  color: var(--white);
  border-bottom: 2px solid var(--rpap-purple);
  padding-bottom: var(--space-1);
}
.contact__email:hover { text-decoration: none; color: var(--rpap-purple); }
.contact__note {
  margin-top: var(--space-3);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Contact left column — reassurance content + bullseye motif
   (rgba values use --rpap-cyan #38CAEA at low alpha for the navy background) */
.contact__details { position: relative; }
.contact__content { position: relative; z-index: 1; }

.contact__motif {
  position: absolute;
  z-index: 0;
  top: 42%;
  left: 38%;
  width: 460px;
  height: 460px;
  max-width: 120%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.85;
  background: repeating-radial-gradient(
    circle at center,
    rgba(56, 202, 234, 0.18) 0,
    rgba(56, 202, 234, 0.18) 1.5px,
    transparent 1.5px,
    transparent 42px
  );
  -webkit-mask-image: radial-gradient(circle at center, #000 10%, transparent 68%);
          mask-image: radial-gradient(circle at center, #000 10%, transparent 68%);
}
/* Rotating radar sweep — hidden by default; only shown/animated when motion is allowed */
.contact__motif::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(56, 202, 234, 0.20) 50deg,
    transparent 120deg
  );
  -webkit-mask-image: radial-gradient(circle at center, #000 5%, transparent 70%);
          mask-image: radial-gradient(circle at center, #000 5%, transparent 70%);
}

.contact__steps {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 var(--space-7);
  counter-reset: step;
}
.contact__steps li {
  counter-increment: step;
  position: relative;
  padding: var(--space-3) 0 var(--space-3) var(--space-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}
.contact__steps li:last-child { border-bottom: 0; }
.contact__steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--space-3);
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--rpap-cyan);
  text-shadow: 0 0 14px rgba(56, 202, 234, 0.55);
}
/* Stagger the three steps as they reveal (falls back to instant under
   prefers-reduced-motion / JS-disabled via existing global + noscript rules) */
.contact__steps li[data-reveal] { transition-delay: 60ms; }
.contact__steps li[data-reveal]:nth-child(2) { transition-delay: 150ms; }
.contact__steps li[data-reveal]:nth-child(3) { transition-delay: 240ms; }

/* Motion-only enhancements for the radar backdrop */
@media (prefers-reduced-motion: no-preference) {
  .contact__motif { animation: contact-motif-pulse 7s ease-in-out infinite; }
  .contact__motif::after {
    opacity: 1;
    animation: contact-radar-sweep 9s linear infinite;
  }
  @keyframes contact-motif-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
  }
  @keyframes contact-radar-sweep {
    to { transform: rotate(360deg); }
  }
}

/* Mobile (stacked single column): keep the motif from overwhelming the layout
   and drop the blur (cheaper to paint on small/low-power screens) */
@media (max-width: 899px) {
  .contact__motif {
    width: 300px;
    height: 300px;
    opacity: 0.4;
  }
  .contact__form {
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    background: rgba(255, 255, 255, 0.06);
  }
}

.contact__form {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: var(--space-6);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow:
    -10px -10px 44px rgba(165, 5, 241, 0.16),
     12px  14px 44px rgba(56, 202, 234, 0.14),
     0 20px 50px rgba(0, 16, 64, 0.45);
}
/* Soft purple->cyan gradient border (masked ring, no layout impact) */
.contact__form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(165, 5, 241, 0.55), rgba(56, 202, 234, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.form-row label {
  font-family: var(--ff-head);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-sm);
  font: inherit;
  color: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--rpap-purple);
  outline-offset: 1px;
  border-color: rgba(165, 5, 241, 0.5);
}
/* Augment focus with a cyan glow ring — keeps the outline, never removes it */
.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible {
  outline-color: var(--rpap-cyan);
  border-color: var(--rpap-cyan);
  box-shadow: 0 0 0 3px rgba(56, 202, 234, 0.28), 0 0 16px rgba(56, 202, 234, 0.25);
}
.form-row select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%), linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: var(--space-7); }
.form-row select option { color: var(--ink); }
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row--action { margin-bottom: 0; }

/* Sheen sweep on the Contact RPAP button only (scoped — shared .btn unaffected) */
.contact__form button {
  position: relative;
  overflow: hidden;
}
.contact__form button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -135%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .contact__form button::after { transition: left var(--t-slow) ease; }
  .contact__form button:hover::after { left: 135%; }
}
.form-noscript {
  margin-top: var(--space-4);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Inline validation for the mailto contact form (offline mockup) */
.form-error {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rpap-purple);
}
.form-row--invalid input,
.form-row--invalid select,
.form-row--invalid textarea {
  border-color: rgba(165, 5, 241, 0.55);
}

.contact__confirmation {
  background: rgba(165, 5, 241, 0.10);
  border: 1px solid var(--rpap-purple);
  border-radius: var(--r-md);
  padding: var(--space-6);
  color: var(--white);
}
.contact__confirmation h3 {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rpap-purple);
  margin-bottom: var(--space-3);
}
.contact__confirmation p { margin-bottom: var(--space-3); }
.contact__confirmation p:last-child { margin-bottom: 0; }
.contact__confirmation button {
  color: var(--rpap-purple);
  text-decoration: underline;
  font: inherit;
}

/* Footer */
.site-footer {
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-9) var(--space-5) var(--space-6);
}
.site-footer__inner {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: start;
}
.site-footer__mark {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.site-footer__name {
  font-family: var(--ff-head);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-2);
}
.site-footer__line {
  font-size: 0.9rem;
  margin-top: var(--space-3);
}
.site-footer__attrib {
  font-family: var(--ff-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--rpap-cyan);
  margin-top: var(--space-3);
}
.site-footer__contact {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: var(--space-2);
}
.site-footer__contact a { color: var(--rpap-cyan); }
.site-footer__contact a:hover { color: var(--white); }
.site-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}
.site-footer__nav a {
  color: var(--rpap-cyan);
  font-size: 0.95rem;
}
.site-footer__nav a:hover { color: var(--white); }
.site-footer__copy {
  font-size: 0.8rem;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
}


/* 10. Responsive rules
   ========================================================================== */
@media (min-width: 700px) {
  .card-grid--three { grid-template-columns: repeat(2, 1fr); }
  .card-grid--two { grid-template-columns: repeat(2, 1fr); }
  .session-timeline { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-7); }
  .gap-callout {
    flex-direction: row;
    align-items: center;
    gap: var(--space-7);
  }
  .gap-callout__stat { align-self: center; min-width: 140px; }
}
@media (min-width: 1000px) {
  .session-timeline { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: var(--space-9); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-7); }
  .gap-timeline {
    grid-template-columns: 1fr 1fr 1fr 2.2fr;
    min-height: 300px;
  }
  .gap-timeline__block { min-height: 300px; padding: var(--space-8) var(--space-6); }
  .gap-timeline__block--gap {
    border-top: none;
    border-bottom: none;
    border-left: 1px dashed rgba(165, 5, 241, 0.55);
    border-right: 1px dashed rgba(165, 5, 241, 0.55);
  }
  .two-col { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-9); }
  .pathway__inner { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
  .pathway--reverse .pathway__inner > .pathway__body { order: 0; }
  .pathway--reverse .pathway__inner > .pathway__media { order: 1; }
  .contact__grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--space-9); }
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr;
    column-gap: var(--space-9);
  }
  .site-footer__copy { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .card-grid--three { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--rpap-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-mid);
  }
  .primary-nav.is-open { max-height: 480px; }
  .primary-nav__list {
    flex-direction: column;
    gap: 0;
    padding: var(--space-3) var(--space-5) var(--space-5);
  }
  .primary-nav__link {
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .primary-nav__link.is-active { border-bottom-color: var(--rpap-purple); }
}

@media (max-width: 767px) {
  .partner-brand { display: none; }
}

@media (max-width: 600px) {
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 0.85rem; letter-spacing: 0.04em; }
  .section { padding: var(--space-9) var(--space-4); }
  .hero { min-height: 540px; }
  .hero__inner { padding: var(--space-8) var(--space-4); }
}


/* 11. Motion & accessibility
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero:hover .hero__media { transform: scale(1); }
}


/* HFNTS Solution — styles isolated to the new program section */
.hfnts { scroll-margin-top: 100px; }
.hfnts .section-inner { max-width: 960px; }
.hfnts p { margin-bottom: var(--space-4); }
.hfnts__intro { max-width: var(--w-prose); }
.hfnts__intro > p:first-of-type { font-size: 1.125rem; color: var(--muted); }
.hfnts__intro .btn { margin-top: var(--space-3); }
.hfnts__block { margin-top: var(--space-9); }
.hfnts__approach {
  padding: var(--space-6);
  background: var(--surface);
  border-left: 3px solid var(--rpap-purple);
  border-radius: var(--r-sm);
}
.hfnts__block > p:last-child { margin-bottom: 0; }
.hfnts h4 {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--rpap-navy);
  margin: var(--space-6) 0 var(--space-3);
}
.hfnts__benefit {
  margin-top: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.hfnts__benefit h4 { margin-top: 0; }
.hfnts__benefit p:last-child { margin-bottom: 0; }
.hfnts__list { padding-left: var(--space-5); margin-bottom: var(--space-5); }
.hfnts__list li { padding-left: var(--space-2); margin-bottom: var(--space-4); }
.hfnts__list li::marker { color: var(--rpap-purple); font-weight: 500; }
.hfnts .btn { max-width: 100%; white-space: normal; text-align: center; }

/* Highlight the delivery cycle and adoption steps without changing shared panels. */
.hfnts__panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--white);
  border-radius: var(--r-md);
  border-left: 4px solid var(--rpap-purple);
  box-shadow: var(--shadow-card);
}
.hfnts__panel--navy { background: var(--rpap-navy); }
.hfnts__panel--blue {
  background: var(--rpap-blue);
  border-left-color: var(--rpap-cyan);
}
.hfnts__panel .subsection-title,
.hfnts .hfnts__panel h4,
.hfnts__panel .hfnts__list li::marker { color: var(--white); }

/* Keep desktop labels on one line without increasing the original header height. */
@media (min-width: 1200px) {
  .site-header--hfnts .site-header__inner { gap: var(--space-4); }
  .site-header--hfnts .primary-nav__list { gap: var(--space-1); }
  .site-header--hfnts .primary-nav__link {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
    white-space: nowrap;
  }
}

/* The sixth navigation link needs the existing compact menu at tablet widths. */
@media (min-width: 901px) and (max-width: 1199px) {
  .site-header--hfnts .nav-toggle { display: block; }
  .site-header--hfnts .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--rpap-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-card);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-mid);
  }
  .site-header--hfnts .primary-nav.is-open { max-height: 480px; }
  .site-header--hfnts .primary-nav__list {
    flex-direction: column;
    gap: 0;
    padding: var(--space-3) var(--space-5) var(--space-5);
  }
  .site-header--hfnts .primary-nav__link {
    padding: var(--space-3) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-header--hfnts .primary-nav__link.is-active { border-bottom-color: var(--rpap-purple); }
}
