:root {
  --navy: #0d2d52;
  --navy-light: #1a4a7a;
  --navy-dark: #071a30;
  --gold: #f5a623;
  --gold-light: #ffc857;
  --gold-dark: #d4891a;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px rgba(13, 45, 82, 0.06);
  --shadow-md: 0 4px 12px rgba(13, 45, 82, 0.1);
  --shadow-lg: 0 8px 30px rgba(13, 45, 82, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --header-h: 64px;
  --bottom-nav-h: 84px;
  --sidebar-w: 280px;
  --layout-max: 1400px;
  --content-max: 960px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

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

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-splashing {
  overflow: hidden;
}

#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.header-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
}

.header-container {
  width: 100%;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  min-height: var(--header-h);
}

.menu-btn,
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}

.menu-btn:hover,
.search-toggle:hover,
.search-toggle.active {
  background: rgba(255, 255, 255, 0.12);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition);
}

.header-brand:hover {
  opacity: 0.92;
}

.header-brand:active {
  transform: scale(0.99);
}

.header-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.header-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.header-search-wrap {
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  justify-content: stretch;
  order: 10;
}

.header-search-wrap:has(.search-bar[hidden]) {
  display: none;
}

.header-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-app {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-club {
  font-size: 0.75rem;
  opacity: 0.75;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 16px 12px;
  background: var(--navy-dark);
}

.search-bar[hidden] {
  display: none !important;
}

.search-toggle.is-hidden {
  display: none !important;
}

.search-bar svg {
  color: var(--gray-300);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-bar input:focus {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px var(--gold);
}

.search-clear {
  background: none;
  border: none;
  color: var(--gray-300);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 101;
}

.header .search-results {
  max-width: var(--layout-max);
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid var(--gray-200);
  border-top: none;
}

.search-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 14px 20px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}

.search-result:hover {
  background: var(--gray-50);
}

.search-result-title {
  font-weight: 600;
  color: var(--navy);
}

.search-result-section {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.search-empty {
  padding: 20px;
  text-align: center;
  color: var(--gray-500);
}

/* Layout */
.layout {
  display: flex;
  flex: 1;
  position: relative;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 26, 48, 0.5);
  z-index: 40;
  backdrop-filter: blur(2px);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition);
  overflow: hidden;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 8px;
  -webkit-overflow-scrolling: touch;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.nav-item:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  font-weight: 500;
}

.nav-index {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gray-300);
  width: 20px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.nav-item.active .nav-index {
  color: var(--gold-light);
}

.nav-label {
  flex: 1;
  min-width: 0;
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.75rem;
  color: var(--gray-500);
}

.sidebar-logo-wrap {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 12px;
  text-align: center;
}

.sidebar-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: inline-block;
}

.sidebar-credit {
  font-weight: 600;
  color: var(--navy);
  margin-top: 4px;
}

/* Main content */
.main {
  flex: 1;
  min-width: 0;
  padding-bottom: calc(var(--bottom-nav-h) + 20px);
}

#content {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 16px 32px;
  width: 100%;
}

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 60%, #2563a8 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.15;
  border-radius: 50%;
}

/* RCAM emblem */
.rcam-emblem {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hero-emblem-wrap {
  margin: -32px -24px 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  background: var(--white);
  line-height: 0;
  position: relative;
  z-index: 2;
}

.rcam-emblem--hero {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  object-position: center bottom;
}

.hero-body {
  padding-top: 24px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 24px;
}

.hero-quote {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  font-style: italic;
  opacity: 0.9;
}

.hero-quote p {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.hero-quote cite {
  font-size: 0.8rem;
  font-style: normal;
  opacity: 0.7;
}

/* RCAM teaser */
.rcam-teaser {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.rcam-emblem--teaser {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  object-position: center 70%;
  border-bottom: 3px solid var(--gold);
}

.rcam-teaser-content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 20px 0;
}

.rcam-teaser-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.rcam-teaser-logo {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.rcam-teaser h2 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.rcam-teaser p {
  font-size: 0.85rem;
  color: var(--gray-700);
}

.rcam-teaser-meeting {
  color: var(--gray-500) !important;
  font-size: 0.8rem !important;
  margin-top: 2px;
}

.rcam-teaser-btn {
  margin: 0 20px 20px !important;
  width: calc(100% - 40px);
}

/* RCAM page */
.rcam-page .rcam-header {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 0;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.rcam-emblem-banner {
  background: var(--white);
  line-height: 0;
}

.rcam-emblem--page {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center 75%;
}

.rcam-header-body {
  padding: 24px;
  text-align: center;
}

.rcam-page-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: inline-block;
  margin-bottom: 16px;
  background: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

.rcam-page .rcam-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 12px;
  color: var(--white);
}

.rcam-page .rcam-header .page-intro {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
}

.profile-value {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.4;
}

.section-subheading {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin: -8px 0 20px;
}

.priorities-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.priority-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.priority-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.priority-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.priority-icon svg {
  width: 100%;
  height: 100%;
}

.priority-header h3 {
  font-size: 1.05rem;
  color: var(--navy);
}

.priority-body {
  padding: 16px 20px 20px;
}

.priority-block {
  margin-bottom: 14px;
}

.priority-block:last-child {
  margin-bottom: 0;
}

.priority-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-light);
  margin-bottom: 6px;
}

.priority-block p,
.priority-budget p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.priority-budget {
  background: linear-gradient(135deg, #fff9eb 0%, #fff3d6 100%);
  border-left: 3px solid var(--gold);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.rcam-vision {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.vision-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
}

.vision-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.vision-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.65;
}

.vision-card.highlight {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border: none;
  color: var(--white);
}

.vision-card.highlight h3 {
  color: var(--gold-light);
}

.vision-card.highlight p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-card {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.contact-card h3 {
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-light);
  text-decoration: none;
  margin-bottom: 16px;
}

.contact-email:hover {
  color: var(--gold-dark);
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-link {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 20px;
  transition: background var(--transition);
}

.social-link:hover {
  background: var(--navy-light);
}

/* Home grid */
.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-family: inherit;
  color: var(--gray-900);
}

.home-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

@media (hover: hover) {
  .home-card:hover {
    transform: translateY(-2px);
  }
}

.home-card-icon {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.home-card-icon svg {
  width: 100%;
  height: 100%;
}

.home-card-label {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy);
}

/* Stats */
.home-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  border: 1px solid var(--gray-200);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Page */
.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 12px;
}

.page-intro {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.7;
}

.prose p {
  margin-bottom: 16px;
  color: var(--gray-700);
  line-height: 1.75;
}

/* Fact cards */
.fact-card {
  background: linear-gradient(135deg, #fff9eb 0%, #fff3d6 100%);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 20px 0;
}

.fact-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.fact-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Subsections */
.subsections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subsection-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.subsection-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.subsection-card h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.sub-intro {
  color: var(--gray-500);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.detail-list {
  list-style: none;
  margin: 12px 0;
}

.detail-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-size: 0.95rem;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 24px 0;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-year {
  display: inline-block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.timeline-item p {
  color: var(--gray-700);
  font-size: 0.95rem;
}

.highlight-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0;
  font-size: 0.95rem;
}

/* Action grid */
.action-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.action-card {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 16px;
  border-left: 3px solid var(--gold);
}

.action-card h4 {
  color: var(--navy);
  margin-bottom: 6px;
}

.action-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
}

.axis-list {
  list-style: none;
}

.axis-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--gray-700);
}

.axis-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.note-text {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-style: italic;
  margin-top: 12px;
}

/* Questions */
.questions-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.question-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--navy);
  color: var(--white);
  padding: 16px;
  border-radius: var(--radius-md);
}

.question-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.question-card p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Offices */
.hq-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.hq-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.hq-location {
  opacity: 0.8;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.hq-card .detail-list li {
  color: rgba(255, 255, 255, 0.9);
}

.hq-card .detail-list li::before {
  background: var(--gold);
}

.offices-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.office-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.office-region {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}

.office-city {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Grants */
.grant-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.grant-card {
  background: var(--gray-50);
  padding: 16px;
  border-radius: var(--radius-sm);
}

/* Sites & platforms */
.sites-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.site-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
}

.site-card h4 {
  color: var(--navy);
  margin-bottom: 8px;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-tag {
  background: var(--navy);
  color: var(--white);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 20px;
}

/* Programs */
.programs-grid {
  display: grid;
  gap: 16px;
}

.program-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
  border-top: 4px solid var(--gold);
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.program-header h3 {
  color: var(--navy);
  font-size: 1.1rem;
}

.program-age {
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.alert-card {
  background: #fef3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #856404;
}

/* Formation */
.formation-grid {
  display: grid;
  gap: 12px;
}

.formation-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px;
}

.formation-card h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 8px;
}

.inline-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--navy-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.inline-link:hover {
  color: var(--gold-dark);
}

/* Links */
.link-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 12px;
  transition: background var(--transition);
}

.link-card:hover {
  background: var(--navy-light);
}

/* Tips & CTA */
.tips-list {
  list-style: none;
  margin: 20px 0;
}

.tips-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.tips-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.cta-button {
  display: block;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-dark);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  margin-top: 16px;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Checklist */
.checklist-total {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.checklist-total-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.checklist-total-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
  width: 0%;
}

#totalProgress {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  min-width: 40px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-category {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.checklist-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: var(--gray-50);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.checklist-progress {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 600;
}

.checklist-category.collapsed .checklist-items {
  display: none;
}

.checklist-items {
  padding: 8px 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background var(--transition);
}

.checklist-item:hover {
  background: var(--gray-50);
}

.checklist-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-top: 1px;
}

.checklist-item input:checked + .checkmark {
  background: var(--gold);
  border-color: var(--gold);
}

.checklist-item input:checked + .checkmark::after {
  content: "✓";
  color: var(--navy-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.checklist-item input:checked ~ span:last-child {
  text-decoration: line-through;
  color: var(--gray-500);
}

.text-button {
  display: block;
  margin: 24px auto 0;
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.text-button:hover {
  color: var(--navy);
}

/* Recommendations panel */
.recommendations-panel {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 28px;
  color: var(--white);
}

.recommendations-placeholder {
  text-align: center;
  opacity: 0.85;
  font-size: 0.95rem;
}

.recommendations-placeholder p::before {
  content: "💡 ";
}

.rec-profile {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.rec-profile-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.rec-profile-message {
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.95;
  margin-bottom: 12px;
}

.rec-profile-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

.rec-profile-pct {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
}

.rec-strengths {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  border-left: 3px solid var(--gold);
}

.rec-strengths strong {
  color: var(--gold-light);
}

.rec-weak-section,
.rec-actions-section {
  margin-bottom: 20px;
}

.rec-weak-section h3,
.rec-actions-section h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  margin-bottom: 12px;
  font-weight: 600;
}

.rec-category-card {
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.rec-category-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
  flex-shrink: 0;
}

.rec-category-icon svg {
  width: 100%;
  height: 100%;
}

.rec-category-card strong {
  color: var(--gold-light);
}

.rec-category-card p {
  margin-top: 6px;
  opacity: 0.85;
  font-size: 0.85rem;
  line-height: 1.5;
}

.rec-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rec-card {
  background: var(--white);
  color: var(--gray-900);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
}

.rec-card--high {
  border-left-color: var(--gold);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.2);
}

.rec-card--medium {
  border-left-color: var(--navy-light);
}

.rec-card--low {
  border-left-color: var(--gray-300);
}

.rec-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.rec-priority {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
}

.rec-category-tag {
  font-size: 0.7rem;
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 3px 10px;
  border-radius: 12px;
}

.rec-card h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.rec-card p {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.55;
  margin-bottom: 10px;
}

.rec-link {
  display: inline-block;
  background: none;
  border: none;
  color: var(--navy-light);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}

.rec-link:hover {
  color: var(--gold-dark);
}

.rec-complete {
  background: linear-gradient(135deg, #fff9eb 0%, #fff3d6 100%);
  color: var(--navy-dark);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.rec-complete h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.rec-complete p {
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.rec-complete .rec-link {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

.rec-complete .rec-link:hover {
  background: var(--navy-light);
  color: var(--white);
}

.rec-all-done-cat {
  text-align: center;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Glossary */
.glossary-filter {
  margin-bottom: 20px;
}

.glossary-filter input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  background: var(--white);
}

.glossary-filter input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

.glossary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.glossary-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-200);
}

.glossary-item dt {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.glossary-item dd {
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.glossary-item.hidden {
  display: none;
}

.page {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: var(--bottom-nav-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(13, 45, 82, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 10px calc(10px + env(safe-area-inset-bottom, 0));
  z-index: 90;
  box-shadow: 0 -8px 32px rgba(13, 45, 82, 0.1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1;
  min-width: 0;
  max-width: 80px;
  padding: 6px 4px;
  border: none;
  background: none;
  color: var(--gray-500);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.bottom-nav-item:active:not(.bottom-nav-item--menu) {
  transform: scale(0.92);
}

.bottom-nav-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  border-radius: 16px;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.bottom-nav-icon {
  width: 22px;
  height: 22px;
  color: inherit;
  transition: color 0.25s ease, transform 0.25s ease;
}

.bottom-nav-icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bottom-nav-item.active {
  color: var(--navy);
}

.bottom-nav-item.active .bottom-nav-icon-wrap {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.22) 0%, rgba(245, 166, 35, 0.1) 100%);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.2);
}

.bottom-nav-item.active .bottom-nav-icon {
  color: var(--gold-dark);
  transform: scale(1.08);
}

.bottom-nav-item.active .bottom-nav-label {
  color: var(--navy);
  font-weight: 700;
}

/* Center menu button */
.bottom-nav-item--menu {
  position: relative;
  max-width: 72px;
  padding-bottom: 2px;
}

.bottom-nav-item--menu .bottom-nav-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold);
  margin-top: -22px;
  box-shadow: 0 6px 20px rgba(13, 45, 82, 0.35);
  border: 3px solid var(--white);
}

.bottom-nav-item--menu .bottom-nav-icon {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.bottom-nav-item--menu .bottom-nav-label {
  color: var(--navy);
  font-weight: 700;
  margin-top: 2px;
}

.bottom-nav-item--menu:active .bottom-nav-icon-wrap {
  transform: scale(0.94);
}

.bottom-nav-item--menu.active .bottom-nav-icon-wrap {
  background: linear-gradient(145deg, var(--navy-light) 0%, var(--navy) 100%);
  box-shadow: 0 6px 24px rgba(13, 45, 82, 0.45);
}

.bottom-nav-item--menu.active .bottom-nav-icon {
  transform: none;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: floatOrb 18s ease-in-out infinite;
}

.ambient-orb--1 {
  width: 320px;
  height: 320px;
  background: var(--gold);
  top: -80px;
  right: -60px;
}

.ambient-orb--2 {
  width: 280px;
  height: 280px;
  background: var(--navy-light);
  bottom: 10%;
  left: -100px;
  animation-delay: -6s;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 45, 82, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 45, 82, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.05); }
}

/* Splash */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash.is-hiding {
  opacity: 0;
  visibility: hidden;
}

.splash-inner {
  text-align: center;
  color: var(--white);
  animation: splashIn 0.8s ease-out;
}

.rcam-emblem--splash {
  width: min(360px, 92vw);
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: splashPulse 1.4s ease-in-out infinite;
}

.splash-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.splash-subtitle {
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.splash-loader {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.splash-loader span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold);
  border-radius: 2px;
  animation: splashLoad 1.2s ease-in-out infinite;
}

@keyframes splashIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes splashLoad {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* Progress */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 110;
  background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transition: width 0.35s ease;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.5);
}

#app {
  position: relative;
  z-index: 1;
}

/* Page navigation */
.page-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  margin: 0 -16px 16px;
  padding: 0 16px;
}

.page-nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}

.page-nav-context {
  flex: 1;
  min-width: 0;
}

.page-nav-kicker {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  font-weight: 700;
}

.page-nav-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-nav-actions {
  display: flex;
  gap: 6px;
}

.page-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all var(--transition);
}

.page-nav-btn svg {
  width: 18px;
  height: 18px;
}

.page-nav-btn:hover:not(:disabled) {
  border-color: var(--gold);
  background: #fff9eb;
}

.page-nav-btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.page-nav-btn--primary:hover:not(:disabled) {
  background: var(--navy-light);
}

.page-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Content transitions */
.content-viewport {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.content-viewport.is-transitioning {
  opacity: 0;
  transform: translateY(10px);
}

.content-viewport.is-entered {
  opacity: 1;
  transform: translateY(0);
}

.page-enter {
  animation: pageEnter 0.4s ease-out;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Immersive hero */
.immersive-hero {
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.25) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-gear {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 140px;
  height: 140px;
  color: rgba(255, 255, 255, 0.06);
  animation: heroGearSpin 40s linear infinite;
  pointer-events: none;
}

.hero-gear svg {
  width: 100%;
  height: 100%;
}

@keyframes heroGlow {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  50% { transform: scale(1.1) translate(-10px, 10px); opacity: 1; }
}

@keyframes heroGearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Quick paths */
.quick-paths {
  margin-bottom: 28px;
}

.quick-paths-grid {
  display: grid;
  gap: 10px;
}

.quick-path {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.quick-path:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.quick-path:active {
  transform: scale(0.98);
}

.quick-path-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.quick-path-icon svg {
  width: 22px;
  height: 22px;
}

.quick-path-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-path-text strong {
  font-size: 0.95rem;
  color: var(--navy);
}

.quick-path-text small {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Enhanced home cards */
.home-card {
  position: relative;
}

.home-card-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
}

.home-card:hover .home-card-arrow,
.home-card:focus-visible .home-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

.home-card:active {
  transform: scale(0.97);
}

/* Section themes */
.main {
  --section-accent: var(--gold);
  transition: background 0.4s ease;
}

.main.theme-rcam { --section-accent: #e8a020; }

.main.theme-rcam .ambient-orb--1 {
  opacity: 0.45;
}

.main.theme-home .hero,
.main.theme-rcam .rcam-header {
  box-shadow: 0 12px 40px rgba(13, 45, 82, 0.18);
}
.main.theme-values { --section-accent: #f5a623; }
.main.theme-foundation { --section-accent: #c45c4a; }
.main.theme-globe { --section-accent: #3b82a0; }
.main.theme-youth { --section-accent: #5b8c5a; }
.main.theme-checklist { --section-accent: #d4891a; }

.main .section-heading {
  position: relative;
  padding-left: 14px;
}

.main .section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--section-accent);
  border-radius: 2px;
}

/* Stat counter animation */
.stat-number {
  transition: color 0.3s ease;
}

.stat-card:hover .stat-number {
  color: var(--gold);
}

/* Interactive cards */
.subsection-card,
.priority-card,
.program-card,
.profile-card {
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

@media (hover: hover) {
  .subsection-card:hover,
  .priority-card:hover,
  .program-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .quick-path:hover {
    transform: translateX(4px);
  }
}

/* Header & bottom nav — fixed on mobile/tablet */
@media (max-width: 1023px) {
  :root {
    --header-offset: calc(var(--header-h) + 3px);
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .layout {
    padding-top: var(--header-offset);
  }

  .sidebar {
    top: var(--header-offset);
  }

  .page-nav {
    top: var(--header-offset);
  }
}

/* Header — mobile */
@media (max-width: 480px) {
  .header-titles {
    display: none;
  }

  .header-logo {
    height: 40px;
    max-width: 180px;
  }

  .search-bar:not([hidden]) {
    padding: 4px 0 10px;
    background: transparent;
  }
}

/* Masquer les emblèmes sur tablette et desktop */
@media (min-width: 481px) {
  .hero-emblem-wrap,
  .rcam-emblem--teaser,
  .rcam-emblem-banner,
  .rcam-emblem--splash {
    display: none !important;
  }
}

@media (min-width: 481px) and (max-width: 1023px) {
  .header-logo {
    max-width: 150px;
  }

  .header-app {
    font-size: 0.85rem;
  }

  .header-club {
    font-size: 0.68rem;
  }

  .search-bar:not([hidden]) {
    padding: 4px 0 10px;
  }
}

/* Tablet & small desktop */
@media (min-width: 768px) {
  .quick-paths-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-nav {
    margin: 0 0 20px;
    padding: 0;
  }
  .rcam-emblem--hero {
    max-height: 240px;
  }

  .rcam-page .rcam-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rcam-emblem--page {
    max-height: 320px;
    object-position: center 70%;
  }

  .rcam-header-body {
    padding: 28px 40px 32px;
  }

  .rcam-emblem--teaser {
    max-height: 160px;
  }

  .rcam-emblem--splash {
    max-height: 240px;
  }

  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .rcam-vision {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .action-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .formation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .questions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 76px;
    --sidebar-w: 300px;
    --content-max: 1000px;
  }

  .header {
    position: sticky;
  }

  .header-container {
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0 28px;
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 20px;
    padding: 10px 0;
    height: var(--header-h);
  }

  .header-search-wrap {
    flex: 1 1 auto;
    order: 0;
    max-width: 380px;
    margin-left: auto;
  }

  .header-search-wrap:has(.search-bar[hidden]) {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .header-logo {
    height: 44px;
    max-width: 200px;
  }

  .header-app {
    font-size: 1.05rem;
  }

  .header-club {
    font-size: 0.78rem;
    opacity: 0.85;
  }

  .header-search-wrap .search-bar {
    display: flex !important;
    padding: 0;
    background: transparent;
    width: 100%;
  }

  .header-search-wrap .search-bar[hidden] {
    display: flex !important;
  }

  .header-search-wrap .search-bar input {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 11px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
  }

  .header-search-wrap .search-bar input:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--gold);
  }

  .search-toggle {
    display: none;
  }

  .layout {
    max-width: var(--layout-max);
    margin: 0 auto;
    width: 100%;
    padding: 0 28px;
    gap: 28px;
    align-items: flex-start;
  }

  .sidebar {
    position: sticky;
    top: calc(var(--header-h) + 3px);
    transform: none !important;
    flex-shrink: 0;
    width: var(--sidebar-w);
    height: calc(100dvh - var(--header-h) - 3px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    margin-top: 20px;
    margin-bottom: 28px;
  }

  .sidebar-nav {
    padding: 8px 10px;
  }

  .nav-item {
    padding: 11px 12px;
    font-size: 0.88rem;
  }

  .overlay {
    display: none !important;
  }

  .main {
    padding-bottom: 0;
    flex: 1;
    min-width: 0;
    margin-top: 20px;
    margin-bottom: 28px;
  }

  .bottom-nav {
    display: none;
  }

  #content {
    padding: 8px 0 48px;
  }

  .page-nav {
    margin: 0 0 24px;
    padding: 0;
    top: calc(var(--header-h) + 3px);
  }

  .page-nav-inner {
    padding: 12px 16px;
  }

  .hero {
    padding: 0 0 36px;
  }

  .hero-emblem-wrap {
    margin: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .rcam-emblem--hero {
    max-height: 280px;
    object-position: center 72%;
  }

  .rcam-emblem--page {
    max-height: 320px;
    object-position: center 70%;
  }

  .rcam-header-body {
    padding: 28px 40px 32px;
  }

  .hero-body {
    padding: 28px 40px 0;
  }

  .immersive-hero .hero-title {
    font-size: 2.6rem;
  }

  .home-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-paths-grid {
    gap: 16px;
  }
}

@media (min-width: 1280px) {
  :root {
    --sidebar-w: 320px;
    --content-max: 1080px;
  }

  .header-container,
  .layout {
    padding-left: 40px;
    padding-right: 40px;
  }

  .header-search-wrap {
    max-width: 440px;
  }

  #content {
    padding-bottom: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .ambient-orb,
  .hero-glow,
  .hero-gear {
    animation: none;
  }
}