/* =============================================================================
   custom.css — Smart Putrajaya Portal
   Official Design System · Bootstrap 5.3 Enhancement Layer
   Brand: Smart Putrajaya / Perbadanan Putrajaya (PPJ)
   Journey: Level 2 (Developing Smart City) → Level 4 (Visionary Smart City)
   ============================================================================= */

/* ---------------------------------------------------------------------------
   0. DESIGN TOKENS — CSS Custom Properties
   --------------------------------------------------------------------------- */
:root {
  /* ==========================================================================
     BRAND PALETTE — Smart Putrajaya
     ========================================================================== */
  /* Main Theme (Emerald Green Premium) */
  --theme-dark:        #022c22;
  --theme-teal-deep:   #064e3b;
  --theme-teal:        #059669;
  --theme-teal-light:  #10b981;
  --theme-mint:        #34d399;
  --theme-mint-light:  #a7f3d0;
  
  --ppj-navy:          var(--theme-teal);
  --ppj-navy-dark:     var(--theme-teal-deep);
  --ppj-navy-mid:      var(--theme-teal-light);
  --ppj-navy-light:    var(--theme-mint);

  /* Smart Putrajaya Secondary Teal/Blue (from Smart Putrajaya logo) */
  --sp-blue:           #0077B6;
  --sp-blue-light:     #00B4D8;
  --sp-teal:           #0096C7;

  /* PPJ Green (from PPJ tree logo) */
  --ppj-green:         #1A7A4A;
  --ppj-green-dark:    #0F5C35;
  --ppj-green-light:   #22A96A;

  /* Accent Gold (authority, awards) */
  --sp-gold:           #F59E0B;
  --sp-gold-dark:      #D97706;
  --sp-gold-light:     #FBBF24;

  /* PLANMalaysia Level Colors */
  --level-1:           #4B5563;
  --level-1-bg:        #F3F4F6;
  --level-2:           #D97706;
  --level-2-bg:        #FEF3C7;
  --level-3:           #2563EB;
  --level-3-bg:        #DBEAFE;
  --level-4:           #059669;
  --level-4-bg:        #D1FAE5;
  --level-target-glow: rgba(5, 150, 105, 0.3);

  /* Status Semantic Colors */
  --status-achieved:        #059669;
  --status-achieved-bg:     #D1FAE5;
  --status-achieved-border: rgba(5,150,105,0.25);
  --status-optimising:      #1A56DB;
  --status-optimising-bg:   #DBEAFE;
  --status-optimising-border: rgba(26,86,219,0.25);
  --status-in-progress:     #D97706;
  --status-in-progress-bg:  #FEF3C7;
  --status-in-progress-border: rgba(217,119,6,0.3);
  --status-planning:        #6B7280;
  --status-planning-bg:     #F3F4F6;
  --status-planning-border: rgba(107,114,128,0.25);
  --status-at-risk:         #DC2626;
  --status-at-risk-bg:      #FEE2E2;
  --status-at-risk-border:  rgba(220,38,38,0.25);

  /* ==========================================================================
     TYPOGRAPHY
     ========================================================================== */
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* ==========================================================================
     SPATIAL SYSTEM
     ========================================================================== */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 9999px;

  /* ==========================================================================
     ELEVATION / SHADOWS
     ========================================================================== */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 4px rgba(0,48,135,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,48,135,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 32px rgba(0,48,135,.13), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 16px 48px rgba(0,48,135,.17), 0 6px 16px rgba(0,0,0,.08);
  --shadow-glow-gold: 0 0 32px rgba(245,158,11,0.35);
  --shadow-glow-green: 0 0 32px rgba(5,150,105,0.3);

  /* ==========================================================================
     MOTION
     ========================================================================== */
  --ease-out:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:    150ms;
  --dur-base:    250ms;
  --dur-slow:    400ms;
  --dur-enter:   600ms;
}

/* ---------------------------------------------------------------------------
   1. BASE / RESET
   --------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #1e293b;
  background: #f8fafc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f172a;
}

a { color: var(--ppj-navy-light); transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--ppj-navy); }

code, kbd, pre, samp, .font-monospace { font-family: var(--font-mono); }
img { max-width: 100%; height: auto; }

.x-small         { font-size: 0.72rem; }
.lead-sm          { font-size: 1.0625rem; }
.text-white-75    { color: rgba(255,255,255,.75) !important; }
.text-white-50    { color: rgba(255,255,255,.5) !important; }
.letter-spacing-2 { letter-spacing: .1em; }

/* ---------------------------------------------------------------------------
   2. GOVERNMENT TOP BAR
   --------------------------------------------------------------------------- */
.gov-topbar {
  background: linear-gradient(90deg, var(--theme-dark) 0%, var(--theme-teal-deep) 100%);
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 0.78rem;
}

.gov-topbar__ppj-logo {
  border-radius: 3px;
  object-fit: contain;
}

.gov-topbar__text { color: rgba(255,255,255,.7); }
.gov-topbar__link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.gov-topbar__link:hover { color: #fff; }

.gov-topbar__lang-switch { display: flex; align-items: center; gap: 0.4rem; }
.gov-topbar__lang { color: rgba(255,255,255,.55); font-size: 0.75rem; text-decoration: none; transition: color var(--dur-fast); }
.gov-topbar__lang:hover { color: #fff; }
.gov-topbar__lang--active { color: var(--sp-gold) !important; font-weight: 600; }

/* ---------------------------------------------------------------------------
   3. SITE NAVBAR
   --------------------------------------------------------------------------- */
.site-navbar {
  background: rgba(4, 47, 46, 0.85); /* Frosty Deep Teal */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.3);
  padding-block: 0.6rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* PPJ Logo in navbar */
.navbar-ppj-logo {
  border-radius: 4px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
  transition: transform var(--dur-base) var(--ease-bounce);
  max-height: 56px;
}
.navbar-brand:hover .navbar-ppj-logo { transform: scale(1.08) rotate(-2deg); }

/* Brand divider line */
.navbar-brand-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.2);
}

/* Smart Putrajaya logo in navbar */
.navbar-smart-logo {
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  transition: opacity var(--dur-fast);
  max-height: 56px;
}
.navbar-brand:hover .navbar-smart-logo { opacity: 1; }

/* Level 2 → 4 badge in nav */
.level-nav-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.level-nav-badge__current { color: var(--sp-gold); }
.level-nav-badge__target  { color: #34d399; }
.level-nav-badge .bi-arrow-right { color: rgba(255,255,255,.4); font-size: 0.65rem; }

/* Nav Links */
.site-navbar .nav-link {
  color: rgba(255,255,255,.78) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem !important;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible {
  color: #fff !important;
  background: rgba(255,255,255,.1);
}
.site-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(245,158,11,.18);
  border-color: rgba(245,158,11,.4);
}

/* Dropdown Menu */
.site-navbar .dropdown-menu {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  min-width: 260px;
  background: #fff;
  animation: slideDownFade var(--dur-base) var(--ease-out) both;
}
.site-navbar .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  color: #1e293b;
  transition: all var(--dur-fast);
}
.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus {
  background: #EBF5FB;
  color: var(--ppj-navy);
}

/* Live Status Pill */
.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(5,150,105,.12);
  border: 1px solid rgba(5,150,105,.35);
  color: #34d399;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #34d399;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.35; transform:scale(.65); }
}

/* Breadcrumb bar */
.breadcrumb-bar {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}
.breadcrumb-bar .breadcrumb-item a { color: var(--ppj-navy-light); text-decoration: none; }
.breadcrumb-bar .breadcrumb-item.active { color: #64748b; }

/* ---------------------------------------------------------------------------
   4. HERO SECTION
   --------------------------------------------------------------------------- */
.hero-section {
  background: linear-gradient(150deg, var(--theme-dark) 0%, var(--theme-teal-deep) 40%, var(--theme-teal) 100%);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

/* Animated ambient orbs */
.hero-canvas { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.12;
  animation: orbDrift 14s ease-in-out infinite;
}
.hero-orb--blue   { width:500px;height:500px; background:radial-gradient(circle,var(--theme-mint),transparent 70%); top:-100px; right:-80px; animation-delay:0s; }
.hero-orb--green  { width:350px;height:350px; background:radial-gradient(circle,var(--theme-mint-light),transparent 70%); bottom:-40px; left:5%; animation-delay:5s; }
.hero-orb--gold   { width:280px;height:280px; background:radial-gradient(circle,var(--sp-gold),transparent 70%); top:40%; left:45%; animation-delay:10s; opacity:0.1; }

@keyframes orbDrift {
  0%,100% { transform:translate(0,0) scale(1); }
  33%      { transform:translate(25px,-20px) scale(1.08); }
  66%      { transform:translate(-15px,18px) scale(0.94); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.hero-skyline svg { width: 100%; height: 140px; }

/* Hero Smart Putrajaya logo */
.hero-smart-logo {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* Hero Badges */
.hero-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.hero-badge--gold    { background: rgba(245,158,11,.2); border: 1px solid rgba(245,158,11,.5); color: var(--sp-gold); }
.hero-badge--blue    { background: rgba(96,165,250,.15); border: 1px solid rgba(96,165,250,.4); color: #93C5FD; }
.hero-badge--outline { background: transparent; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.75); }

/* Hero Title */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #fff;
}
.hero-title-highlight {
  background: linear-gradient(90deg, #FBBF24 0%, #F59E0B 50%, #34D399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: rgba(255,255,255,.72);
  max-width: 540px;
  line-height: 1.7;
}

/* Hero KPI Strip */
.hero-kpi-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.hero-kpi { display: flex; flex-direction: column; }
.hero-kpi__num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-kpi__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-top: 3px; }
.hero-kpi-sep { width: 1px; height: 44px; background: rgba(255,255,255,.15); }

/* Level Progression Card */
.level-card { max-width: 380px; width: 100%; }
.level-card__inner {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.level-card__logo-row { text-align: center; margin-bottom: 1rem; }
.level-card__ppj-logo { object-fit: contain; }
.level-card__title { color: #fff; font-size: 1rem; font-weight: 700; text-align: center; margin-bottom: 0.1rem; }
.level-card__subtitle { color: rgba(255,255,255,.45); font-size: 0.72rem; text-align: center; margin-bottom: 1.25rem; }

/* Level Ladder */
.level-ladder { display: flex; flex-direction: column; gap: 0; }
.level-rung {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0;
  border-left: 2px solid rgba(255,255,255,.1);
  padding-left: 1rem;
  margin-left: 14px;
  position: relative;
}
.level-rung__dot {
  position: absolute;
  left: -15px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.level-rung__dot--done     { background: #059669; color: #fff; box-shadow: 0 0 0 3px rgba(5,150,105,.2); }
.level-rung__dot--active   { background: var(--sp-gold); color: #1e293b; box-shadow: 0 0 0 4px rgba(245,158,11,.25); animation: activePulse 2.5s ease infinite; }
.level-rung__dot--upcoming { background: rgba(255,255,255,.1); color: rgba(255,255,255,.4); border: 2px solid rgba(255,255,255,.2); }
.level-rung__dot--target   { background: linear-gradient(135deg, #059669, #34d399); color: #fff; box-shadow: 0 0 12px rgba(5,150,105,.5); }

@keyframes activePulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(245,158,11,.25); }
  50%      { box-shadow: 0 0 0 8px rgba(245,158,11,.1); }
}

.level-rung__body { flex-grow: 1; }
.level-rung__label { display: block; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,.9); }
.level-rung__name  { display: block; font-size: 0.68rem; color: rgba(255,255,255,.45); }
.level-rung__year  { font-size: 0.7rem; color: rgba(255,255,255,.4); flex-shrink: 0; }
.level-rung--active .level-rung__label,
.level-rung--active .level-rung__name { color: #fff; }
.level-rung--target .level-rung__label { color: #34d399; }
.level-rung--target { border-left-color: rgba(5,150,105,.4); }
.level-rung--milestone .level-rung__label { color: #67e8f9; }   /* cyan — intermediate milestone */
.level-rung--milestone { border-left-color: rgba(8,145,178,.35); }
.level-rung--milestone .level-rung__dot { opacity: 0.75; }
.level-rung--vision .level-rung__label { color: #fcd34d; }      /* amber — long-term vision */
.level-rung--vision { border-left-color: rgba(217,119,6,.35); }
.level-rung--vision .level-rung__dot { opacity: 0.85; }

.level-card__progress { background: rgba(0,0,0,.2); border-radius: var(--radius-md); padding: 0.85rem; }

/* Hero Wave Bottom */
.hero-wave-bottom { position: absolute; bottom: 0; left: 0; right: 0; line-height: 0; }
.hero-wave-bottom svg { width: 100%; height: 60px; }

/* ---------------------------------------------------------------------------
   5. SECTION TYPOGRAPHY
   --------------------------------------------------------------------------- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: #047857;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: #0f172a;
}
.section-desc { color: #64748b; font-size: 1.0125rem; line-height: 1.7; max-width: 680px; }

/* ---------------------------------------------------------------------------
   6. HISTORICAL TIMELINE
   --------------------------------------------------------------------------- */
.timeline-section { background: #f1f5f9; }
.timeline-track { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.timeline-item__connector { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }

.timeline-item__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #94a3b8;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-base);
  flex-shrink: 0;
}

.timeline-item__line {
  width: 2px;
  flex-grow: 1;
  background: #e2e8f0;
  min-height: 28px;
}

.timeline-item:last-child .timeline-item__line { display: none; }

.timeline-item__card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  padding: 1.1rem 1.35rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base);
}

/* Highlight variant */
.timeline-item--highlight .timeline-item__dot {
  background: var(--ppj-navy);
  border-color: var(--ppj-navy);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0,48,135,.12), var(--shadow-sm);
}
.timeline-item--highlight .timeline-item__card {
  border-color: rgba(0,48,135,.2);
  box-shadow: var(--shadow-md);
}

/* Target milestone */
.timeline-item--target .timeline-item__dot {
  background: linear-gradient(135deg, #059669, #34d399);
  border-color: #059669;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(5,150,105,.15), var(--shadow-glow-green);
  animation: targetGlow 3s ease infinite;
}
.timeline-item--target .timeline-item__card {
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border-color: rgba(5,150,105,.3);
}
@keyframes targetGlow {
  0%,100% { box-shadow: 0 0 0 5px rgba(5,150,105,.15), 0 0 16px rgba(5,150,105,.2); }
  50%      { box-shadow: 0 0 0 8px rgba(5,150,105,.08), 0 0 28px rgba(5,150,105,.15); }
}

.timeline-item__year {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.timeline-item__level-chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.18rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.level-chip--level-1      { background: var(--level-1-bg); color: var(--level-1); }
.level-chip--level-2      { background: var(--level-2-bg); color: var(--level-2); }
.level-chip--level-3      { background: var(--level-3-bg); color: var(--level-3); }
.level-chip--level-4      { background: var(--level-4-bg); color: var(--level-4); }
.level-chip--foundation   { background: #EDE9FE; color: #7C3AED; }

.timeline-item__event {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.3rem;
  font-family: var(--font-heading);
}
.timeline-item__desc { font-size: 0.85rem; color: #64748b; line-height: 1.6; margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   7. INITIATIVE CARDS
   --------------------------------------------------------------------------- */
.initiative-card {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.initiative-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.initiative-card__header {
  background: var(--init-gradient);
  padding: 1.4rem;
  color: #fff;
}
.initiative-card__icon-wrap {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.initiative-card__icon { font-size: 1.4rem; color: #fff; }

.initiative-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.initiative-status-badge--operational     { background: rgba(5,150,105,.25); color: #34d399; border: 1px solid rgba(5,150,105,.4); }
.initiative-status-badge--in-progress     { background: rgba(245,158,11,.25); color: #FBBF24; border: 1px solid rgba(245,158,11,.4); }
.initiative-status-badge--planning        { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.2); }

.initiative-card__year {
  font-size: 0.7rem;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.initiative-card__level-arrow {
  font-size: 0.7rem;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.initiative-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.15rem;
  font-family: var(--font-heading);
}
.initiative-card__tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 0;
}

.initiative-card__body { padding: 1.25rem 1.4rem; flex-grow: 1; }
.initiative-card__desc { font-size: 0.85rem; color: #64748b; line-height: 1.6; }

/* Impact Metrics Strip */
.initiative-card__metrics {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.initiative-metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  text-align: center;
  flex: 1;
  min-width: 60px;
  transition: all var(--dur-fast);
}
.initiative-card:hover .initiative-metric {
  background: #f0f4ff;
  border-color: rgba(26,86,219,.15);
}
.initiative-metric__val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--init-color, var(--ppj-navy));
  line-height: 1;
}
.initiative-metric__label { font-size: 0.6rem; color: #94a3b8; margin-top: 3px; text-transform: capitalize; }

/* Highlights list */
.initiative-card__highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.initiative-card__highlights li { font-size: 0.82rem; color: #475569; display: flex; align-items: flex-start; gap: 0; }
.initiative-card__highlights .bi { margin-top: 1px; flex-shrink: 0; }

.initiative-card__footer {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid #f1f5f9;
}
.initiative-card__cta {
  background: var(--init-gradient);
  color: #fff;
  font-size: 0.8rem;
  border: none;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.initiative-card__cta:hover { opacity: .9; transform: translateX(2px); color: #fff; }

/* ---------------------------------------------------------------------------
   8. COMPONENT CARDS
   --------------------------------------------------------------------------- */
.component-card {
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-base), box-shadow var(--dur-base);
}
.component-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.component-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.3rem;
  gap: 0.75rem;
}
.component-card__link:focus-visible {
  outline: 3px solid var(--component-color);
  outline-offset: 2px;
}

.component-card__header { display: flex; justify-content: space-between; align-items: flex-start; }
.component-card__icon-wrap {
  width: 50px; height: 50px;
  border-radius: var(--radius-md);
  background: var(--component-gradient);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.component-card__icon { font-size: 1.35rem; color: #fff; }

.component-card__level-pip {
  background: rgba(217,119,6,.12);
  color: var(--level-2);
  border: 1px solid rgba(217,119,6,.3);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.component-card__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0;
}
.component-card__title-ms { font-size: 0.72rem; color: #94a3b8; font-style: italic; margin-bottom: 0.4rem; }
.component-card__desc {
  font-size: 0.81rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gauge with L4 marker */
.component-card__gauge { position: relative; margin-top: auto; }
.component-card__l4-marker {
  position: absolute;
  top: -12px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.component-card__l4-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--level-4);
  background: var(--level-4-bg);
  border-radius: 3px;
  padding: 0 3px;
  white-space: nowrap;
}

/* Breakdown chips */
.component-card__breakdown { margin-top: 0.5rem; }
.breakdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-pill);
}
.breakdown-chip--achieved  { background: var(--status-achieved-bg);    color: var(--status-achieved); }
.breakdown-chip--progress  { background: var(--status-in-progress-bg); color: var(--status-in-progress); }
.breakdown-chip--planned   { background: var(--status-planning-bg);    color: var(--status-planning); }
.breakdown-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.breakdown-dot--achieved  { background: var(--status-achieved); }
.breakdown-dot--progress  { background: var(--status-in-progress); }
.breakdown-dot--planned   { background: var(--status-planning); }

.component-card__footer { padding-top: 0.7rem; border-top: 1px solid #f1f5f9; }
.component-card__chevron { font-size: 1.1rem; transition: transform var(--dur-fast); }
.component-card:hover .component-card__chevron { transform: translateX(4px); }

/* Summary cell */
.component-summary-cell {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f8fafc, #f0f4ff);
  border: 2px dashed #c7d2fe;
}
.summary-score {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--ppj-navy-light);
  line-height: 1;
  letter-spacing: -0.03em;
}
.summary-score span { font-size: 1.6rem; }

/* ---------------------------------------------------------------------------
   9. INDICATOR ROWS (Dashboard Panel)
   --------------------------------------------------------------------------- */
.indicator-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-fast) var(--ease-out);
}
.indicator-row:hover {
  border-color: #a5b4fc;
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.ind-comp-chip {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.ind-id-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: #f1f5f9;
  color: #475569;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
.ind-row-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  font-family: var(--font-body);
  line-height: 1.35;
}
.ind-title-link { text-decoration: none; }
.ind-title-link:hover .ind-row-title { color: var(--ppj-navy-light); }
.ind-progress-col { width: 140px; }

/* Status dots for summary bar */
.ind-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.ind-dot--achieved   { background: var(--status-achieved); }
.ind-dot--optimising { background: var(--status-optimising); }
.ind-dot--in-progress{ background: var(--status-in-progress); }
.ind-dot--planned    { background: var(--status-planning); }

/* ---------------------------------------------------------------------------
   10. STATUS BADGES (Shared)
   --------------------------------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.72rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--dur-fast);
}
.status-badge-lg {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-achieved,
.status-badge.status-achieved,
.status-badge-lg.status-achieved {
  background: var(--status-achieved-bg);
  color: var(--status-achieved);
  border: 1px solid var(--status-achieved-border);
}
.status-optimising,
.status-badge.status-optimising,
.status-badge-lg.status-optimising {
  background: var(--status-optimising-bg);
  color: var(--status-optimising);
  border: 1px solid var(--status-optimising-border);
}
.status-in-progress,
.status-badge.status-in-progress,
.status-badge-lg.status-in-progress {
  background: var(--status-in-progress-bg);
  color: var(--status-in-progress);
  border: 1px solid var(--status-in-progress-border);
}
.status-planning,
.status-badge.status-planning,
.status-badge-lg.status-planning {
  background: var(--status-planning-bg);
  color: var(--status-planning);
  border: 1px solid var(--status-planning-border);
}
.status-at-risk,
.status-badge.status-at-risk,
.status-badge-lg.status-at-risk {
  background: var(--status-at-risk-bg);
  color: var(--status-at-risk);
  border: 1px solid var(--status-at-risk-border);
}

/* ---------------------------------------------------------------------------
   11. BOTTOM CTA MINI CARDS
   --------------------------------------------------------------------------- */
.cta-mini-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base);
}
.cta-mini-card:hover { transform: translateY(-4px); }
.cta-mini-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.cta-mini-card__icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.cta-mini-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.cta-mini-card__desc { font-size: 0.85rem; opacity: 0.8; line-height: 1.6; margin-bottom: 1rem; }

/* ---------------------------------------------------------------------------
   12. FOOTER
   --------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--theme-dark) 0%, #010a0a 100%);
  border-top: 3px solid rgba(45, 212, 191, 0.45);
}

.footer-body {}

.footer-heading {
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.38) !important;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.footer-logo-ppj { object-fit: contain; }
.footer-logo-smart { object-fit: contain; filter: brightness(0) invert(1); opacity: 0.75; }
.footer-logo-divider { width: 1px; height: 36px; background: rgba(255,255,255,.15); flex-shrink: 0; }

.footer-desc { color: rgba(255,255,255,.48); font-size: 0.85rem; line-height: 1.7; }
.footer-compliance-chip {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.55);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
}

.footer-links { margin: 0; padding: 0; }
.footer-link {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--dur-fast);
}
.footer-link:hover { color: #fff; }

.footer-address { color: rgba(255,255,255,.45); font-size: 0.85rem; line-height: 1.8; }
.footer-contact-link {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--dur-fast);
}
.footer-contact-link:hover { color: #fff; }

.footer-social-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  text-decoration: none;
  font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast);
}
.footer-social-btn:hover {
  background: rgba(245,158,11,.18);
  border-color: rgba(245,158,11,.4);
  color: var(--sp-gold);
}

.footer-bottom { background: rgba(0,0,0,.3); }
.footer-copy { color: rgba(255,255,255,.38); font-size: 0.8rem; }
.footer-sep { color: rgba(255,255,255,.2); }

/* ---------------------------------------------------------------------------
   13. INDICATOR DETAIL PAGE (indicator.html layout)
   --------------------------------------------------------------------------- */
.indicator-hero { padding-block: 2.5rem 3.5rem; position: relative; }

.indicator-meta-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.meta-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.meta-stat__label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; }
.meta-stat__value { font-size: 0.85rem; font-weight: 600; color: #1e293b; }

.indicator-content h2, .indicator-content h3 {
  font-size: 1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #1e293b;
}
.indicator-content table { width: 100%; border-collapse: collapse; font-size: 0.84rem; margin: 1rem 0; }
.indicator-content th { background: #f8fafc; border: 1px solid #e2e8f0; padding: 0.5rem 0.75rem; font-weight: 600; text-align: left; }
.indicator-content td { border: 1px solid #e2e8f0; padding: 0.5rem 0.75rem; }
.indicator-content tr:nth-child(even) td { background: #fafbfc; }
.indicator-content code {
  background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 4px; padding: .15em .4em; font-size: .85em; color: #0f172a;
}
.indicator-content pre {
  background: #0f172a; color: #e2e8f0; border-radius: var(--radius-md); padding: 1.25rem; overflow-x: auto; font-size: 0.82rem; line-height: 1.6;
}
.indicator-content pre code { background: none; border: none; padding: 0; color: inherit; }
.indicator-content blockquote {
  border-left: 3px solid var(--ppj-navy-light); padding: 0.75rem 1.25rem;
  background: #f0f4ff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0; color: #475569; font-style: italic;
}

/* ---------------------------------------------------------------------------
   14. ANIMATION UTILITIES
   --------------------------------------------------------------------------- */
@keyframes slideDownFade {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes fadeInRight {
  from { opacity:0; transform:translateX(-12px); }
  to   { opacity:1; transform:translateX(0); }
}

.fade-in-up     { animation: fadeInUp var(--dur-enter) var(--ease-out) both; }
.fade-in-right  { animation: fadeInRight var(--dur-slow) var(--ease-out) both; }

/* Stagger children */
.stagger-children > *:nth-child(1) { animation-delay:.05s; }
.stagger-children > *:nth-child(2) { animation-delay:.10s; }
.stagger-children > *:nth-child(3) { animation-delay:.15s; }
.stagger-children > *:nth-child(4) { animation-delay:.20s; }
.stagger-children > *:nth-child(5) { animation-delay:.25s; }
.stagger-children > *:nth-child(6) { animation-delay:.30s; }
.stagger-children > *:nth-child(7) { animation-delay:.35s; }
.stagger-children > *:nth-child(8) { animation-delay:.40s; }

/* ---------------------------------------------------------------------------
   15. ACCESSIBILITY
   --------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--sp-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.visually-hidden-focusable:focus {
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  overflow: visible !important;
  width: auto !important;
  height: auto !important;
}
@media (forced-colors: active) {
  .status-badge, .hero-badge, .level-rung__dot,
  .initiative-card, .component-card { forced-color-adjust: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-orb, .live-pulse-dot, .level-rung__dot--active { animation: none !important; }
}

/* ---------------------------------------------------------------------------
   16. BOOTSTRAP OVERRIDES
   --------------------------------------------------------------------------- */
.btn-primary { background: var(--ppj-navy-light); border-color: var(--ppj-navy-light); font-weight: 600; }
.btn-primary:hover, .btn-primary:focus { background: var(--ppj-navy); border-color: var(--ppj-navy); }
.btn-warning { color: #1e293b; font-weight: 700; }
.btn-outline-primary { border-color: var(--ppj-navy-light); color: var(--ppj-navy-light); }
.btn-outline-primary:hover { background: var(--ppj-navy-light); border-color: var(--ppj-navy-light); }
.progress-bar { transition: width 1.3s cubic-bezier(.4,0,.2,1); }
.card { border: 1px solid #f1f5f9; }

/* ---------------------------------------------------------------------------
   17. RESPONSIVE
   --------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .hero-title { font-size: 1.8rem; }
  .level-card__inner { padding: 1.25rem; }
  .hero-kpi-row { gap: .6rem; }
  .hero-kpi__num { font-size: 1.45rem; }
  .hero-kpi-sep { height: 30px; }
  .timeline-item { gap: .85rem; }
  .timeline-item__dot { width: 36px; height: 36px; font-size: .85rem; }
}

@media (min-width: 992px) {
  .site-navbar .nav-link { padding-left: .9rem !important; padding-right: .9rem !important; }
}

/* ---------------------------------------------------------------------------
   18. DOMAIN LOGO IMAGES (component cards)
   --------------------------------------------------------------------------- */

/* Domain logo inside component card icon-wrap */
.component-card__domain-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-base) var(--ease-bounce);
}
.component-card:hover .component-card__domain-logo {
  transform: scale(1.08) rotate(-2deg);
}

/* Level Seal Images in the progression card */
.level-rung__dot {
  /* Reset — now holds image rather than icon */
  padding: 0;
  overflow: hidden;
  background: none !important;
  box-shadow: none !important;
}
.level-seal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  transition: transform var(--dur-base) var(--ease-bounce), opacity var(--dur-base);
}
.level-seal-img--dim {
  opacity: 0.45;
  filter: grayscale(0.3);
}
.level-rung--active .level-seal-img {
  box-shadow: 0 0 0 3px rgba(245,158,11,0.5);
  border-radius: 50%;
  animation: activePulse 2.5s ease infinite;
}
.level-rung--target .level-seal-img {
  box-shadow: 0 0 12px rgba(5,150,105,.45);
  border-radius: 50%;
}
.level-rung:hover .level-seal-img {
  transform: scale(1.12);
}

/* ---------------------------------------------------------------------------
   19. 7-DOMAIN LOGO STRIP
   --------------------------------------------------------------------------- */
.domain-logos-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.domain-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-bounce);
  flex: 0 0 auto;
}
.domain-logo-item:hover,
.domain-logo-item:focus-visible {
  transform: translateY(-5px) scale(1.06);
}
.domain-logo-item:focus-visible {
  outline: 3px solid var(--sp-gold);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.domain-logo-item__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
  transition: box-shadow var(--dur-base);
}
.domain-logo-item:hover .domain-logo-item__img {
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}

.domain-logo-item__label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  text-align: center;
  transition: color var(--dur-fast);
}
.domain-logo-item:hover .domain-logo-item__label {
  color: var(--ppj-navy-light);
}

/* Responsive: shrink tiles on mobile */
@media (max-width: 575.98px) {
  .domain-logo-item__img { width: 48px; height: 48px; }
  .domain-logos-strip { gap: 0.6rem; padding: 0.85rem; }
}

/* ---------------------------------------------------------------------------
   20. PRINT
   --------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .hero-canvas, .timeline-item__line { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero-section { background: none !important; color: #000 !important; }
  .hero-title, .hero-title-highlight { color: #000 !important; -webkit-text-fill-color: #000 !important; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .7em; color: #666; }
}

/* ---------------------------------------------------------------------------
   21. INITIATIVE DETAIL PAGE — Hero
   --------------------------------------------------------------------------- */
.initiative-hero {
  position: relative;
  overflow: hidden;
  padding-block: 3rem 4rem;
}

.initiative-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.initiative-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.initiative-hero__orb--a {
  width: 400px; height: 400px;
  background: rgba(255,255,255,.06);
  top: -120px; right: -80px;
}
.initiative-hero__orb--b {
  width: 250px; height: 250px;
  background: rgba(255,255,255,.04);
  bottom: -60px; left: 10%;
}

.initiative-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: background var(--dur-fast);
  margin-bottom: 1.25rem;
}
.initiative-hero__eyebrow:hover {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.initiative-hero__icon-wrap {
  width: 64px; height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(12px);
}
.initiative-hero__icon { font-size: 1.9rem; color: #fff; }

.initiative-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.65rem;
}

.initiative-hero__tagline {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.initiative-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.initiative-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.initiative-hero__status--operational {
  background: rgba(52,211,153,.2);
  border: 1px solid rgba(52,211,153,.45);
  color: #34d399;
}
.initiative-hero__status--pilot {
  background: rgba(251,191,36,.2);
  border: 1px solid rgba(251,191,36,.4);
  color: #fbbf24;
}
.initiative-hero__status--planning {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.75);
}

.initiative-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,.75);
}

/* Glassmorphism stat card on the right */
.initiative-hero__card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
}

.initiative-hero__card-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.initiative-hero__card-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  line-height: 1.35;
}
.initiative-hero__card-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.12);
  margin: 0.9rem 0;
}

.initiative-hero__level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245,158,11,.2);
  border: 1px solid rgba(245,158,11,.4);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FBBF24;
}

/* Wave bottom on initiative hero */
.initiative-hero__wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
}
.initiative-hero__wave svg { width: 100%; height: 48px; }

/* ---------------------------------------------------------------------------
   22. INITIATIVE DETAIL PAGE — Content Body
   --------------------------------------------------------------------------- */
.initiative-content {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #334155;
}

.initiative-content p { margin-bottom: 1rem; }

/* Prose heading scale — descending h2 > h3 > h4 within markdown body */
.initiative-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;          /* 20px — dominant prose heading */
  font-weight: 700;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  letter-spacing: -0.02em;
}

.initiative-content h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;        /* 17px — sub-heading, clearly smaller than h2 */
  font-weight: 700;
  color: #1e3a5f;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Decorative left accent on h3 prose headings */
.initiative-content h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1em;
  background: currentColor;
  opacity: 0.35;
  border-radius: 2px;
  flex-shrink: 0;
}

.initiative-content h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #f1f5f9;
}


/* Strategic Alignment Matrix — premium table */
.initiative-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.855rem;
  margin: 1.25rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.initiative-content table thead th {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: rgba(255,255,255,.85);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 0.75rem 1rem;
  border: none;
  text-align: left;
}

.initiative-content table thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
.initiative-content table thead th:last-child  { border-radius: 0 var(--radius-md) 0 0; }

.initiative-content table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  background: #fff;
}

.initiative-content table tbody td:first-child {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  border-right: 1px solid #f1f5f9;
  background: #f8fafc;
  width: 35%;
}

.initiative-content table tbody tr:last-child td { border-bottom: none; }
.initiative-content table tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--radius-md); }
.initiative-content table tbody tr:last-child td:last-child  { border-radius: 0 0 var(--radius-md) 0; }

.initiative-content table tbody tr:hover td { background: #f0f9ff; }
.initiative-content table tbody tr:hover td:first-child { background: #e0f2fe; }

/* ---------------------------------------------------------------------------
   23. INITIATIVE DETAIL PAGE — Sidebar
   --------------------------------------------------------------------------- */
.init-sidebar-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  background: #fff;
}

.init-sidebar-card__header {
  padding: 0.85rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.init-sidebar-card__heading {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #64748b;
  margin: 0;
}

.init-sidebar-card__body { padding: 1.1rem 1.25rem; }

.init-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 0.75rem;
}
.init-stat-row:last-child { border-bottom: none; padding-bottom: 0; }

.init-stat-label {
  font-size: 0.78rem;
  color: #94a3b8;
  flex-shrink: 0;
}
.init-stat-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  text-align: right;
}

/* Supporting agencies */
.supporting-agencies-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.supporting-agency-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #475569;
  padding: 0.4rem 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
}
.supporting-agency-chip i { color: var(--ppj-navy-light); flex-shrink: 0; }

/* Highlights section */
.initiative-highlight-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.initiative-highlight-item:hover { background: #f8fafc; }

.initiative-highlight-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: currentColor;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: 0.12;
}

.initiative-highlight-text {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.6;
  flex: 1;
}

/* Tech stack badges */
.tech-stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tech-stack-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast);
}
.tech-stack-badge:hover {
  background: #e0f2fe;
  border-color: rgba(14,165,233,.3);
  color: #0369a1;
}
.tech-stack-badge i { font-size: 0.75rem; opacity: 0.65; }

/* Metric value display */
.metric-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  margin-bottom: 0.5rem;
  transition: all var(--dur-fast);
}
.metric-display:hover { border-color: rgba(14,165,233,.3); background: #f0f9ff; }
.metric-display:last-child { margin-bottom: 0; }
.metric-display__label { font-size: 0.78rem; color: #64748b; text-transform: capitalize; }
.metric-display__value { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; color: #0f172a; }

/* ---------------------------------------------------------------------------
   24. NAVIGATION — 2-Column Initiatives Dropdown
   --------------------------------------------------------------------------- */
.initiatives-mega-dropdown {
  min-width: 540px !important;
  padding: 0.75rem !important;
}

.initiatives-mega-dropdown .mega-col-header {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #94a3b8;
  padding: 0.25rem 0.5rem 0.5rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.35rem;
}

.initiatives-mega-dropdown .dropdown-item {
  padding: 0.4rem 0.65rem !important;
  font-size: 0.82rem !important;
}

.initiatives-mega-dropdown .dropdown-item .fw-semibold {
  font-size: 0.82rem !important;
}

.initiatives-mega-dropdown .dropdown-item .x-small {
  font-size: 0.68rem !important;
  line-height: 1.2;
}

@media (max-width: 991.98px) {
  .initiatives-mega-dropdown {
    min-width: unset !important;
  }
}

/* ---------------------------------------------------------------------------
   25. INITIATIVE DETAIL PAGE — Related Indicators Section
   --------------------------------------------------------------------------- */
.related-indicator-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all var(--dur-fast);
}
.related-indicator-chip:hover {
  background: var(--status-optimising-bg);
  border-color: rgba(26,86,219,.25);
  color: var(--status-optimising);
}
.related-indicator-chip .ind-id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
}
.related-indicator-chip:hover .ind-id { color: var(--status-optimising); }

/* ---------------------------------------------------------------------------
   26. INITIATIVE DETAIL PAGE — Standardized Section Headings
   --------------------------------------------------------------------------- */
.init-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #f1f5f9;
}
.init-section-label i {
  font-size: 1rem;
  flex-shrink: 0;
}
.init-section-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------------------
   27. INITIATIVE DETAIL PAGE — Strategic Alignment Sidebar Card
   --------------------------------------------------------------------------- */
.align-row {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background var(--dur-fast);
}
.align-row:hover { background: #fafbff; }
.align-row--last { border-bottom: none; }

.align-row__framework {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

/* Logo pill badges */
.align-row__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 6px;
  padding: 0.3rem 0.45rem;
  margin-top: 0.1rem;
  line-height: 1;
}
.align-row__logo--pscb {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: #fff;
}
.align-row__logo--mscf {
  background: linear-gradient(135deg, #064e3b, #059669);
  color: #fff;
}
.align-row__logo--iso {
  background: linear-gradient(135deg, #701a75, #a21caf);
  color: #fff;
}
.align-row__logo--sdg {
  background: linear-gradient(135deg, #14532d, #16a34a);
  color: #fff;
}

.align-row__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.align-row__value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
}
.align-row__label-standalone {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1rem 0;
}


/* ===========================================================================
   GLOBAL UI/UX STANDARDISATION — Typography, Layout & Readability
   Applied site-wide for visual consistency across all pages
=========================================================================== */

/* ---------------------------------------------------------------------------
   PAGE HERO — Standardised hero strip used across interior pages
--------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: 3.5rem 4rem;
  overflow: hidden;
  background: var(--hero-gradient, linear-gradient(135deg, var(--theme-dark) 0%, var(--theme-teal-deep) 60%, #0c4a6e 100%));
  color: #fff;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.page-hero__content {
  position: relative;
  z-index: 1;
}
.page-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--theme-mint);
  margin-bottom: 0.85rem;
}
.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 620px;
  margin-bottom: 0;
}
.page-hero__stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: center;
}
.page-hero__stat-num {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.page-hero__stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.5);
}
/* Orb decorations reusable */
.page-hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.18;
}
.page-hero__orb--a {
  width: 450px; height: 450px;
  background: var(--theme-mint);
  top: -120px; right: -100px;
}
.page-hero__orb--b {
  width: 300px; height: 300px;
  background: var(--sp-gold);
  bottom: -80px; left: 5%;
}

/* ---------------------------------------------------------------------------
   SECTION HEADINGS — Standardised across all page sections
   --------------------------------------------------------------------------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--theme-teal);
  margin-bottom: 0.6rem;
}
/* Already defined .section-title and .section-desc — extend for dark bg use */
.section-title--white {
  color: #fff !important;
}
.section-desc--white {
  color: rgba(255,255,255,.72) !important;
  max-width: 680px;
}

/* ---------------------------------------------------------------------------
   CONTENT CARDS — Standard interior page card
   --------------------------------------------------------------------------- */
.content-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  padding: 2rem;
}
.content-card--sm { padding: 1.25rem 1.5rem; }
.content-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}
.content-card__desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   ICON CONTAINERS — Standardised icon box used across detail cards
   --------------------------------------------------------------------------- */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}
.icon-box--sm { width: 36px; height: 36px; border-radius: 9px; font-size: 1rem; }
.icon-box--lg { width: 60px; height: 60px; border-radius: 16px; font-size: 1.5rem; }
.icon-box--teal  { background: rgba(13,148,136,.12); color: var(--theme-teal); }
.icon-box--gold  { background: rgba(245,158,11,.12); color: var(--sp-gold-dark); }
.icon-box--blue  { background: rgba(37,99,235,.12);  color: #2563eb; }
.icon-box--green { background: rgba(5,150,105,.12);  color: #059669; }
.icon-box--purple{ background: rgba(124,58,237,.12); color: #7c3aed; }
.icon-box--red   { background: rgba(220,38,38,.12);  color: #dc2626; }

/* ---------------------------------------------------------------------------
   STATUS BADGES — Consistent across all pages
   --------------------------------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.status-badge--achieved  { background: rgba(5,150,105,.1);  color: #065f46; border: 1px solid rgba(5,150,105,.2); }
.status-badge--progress  { background: rgba(245,158,11,.1); color: #92400e; border: 1px solid rgba(245,158,11,.2); }
.status-badge--planned   { background: rgba(148,163,184,.1);color: #475569;  border: 1px solid rgba(148,163,184,.2); }
.status-badge--active    { background: rgba(37,99,235,.1);  color: #1e3a8a;  border: 1px solid rgba(37,99,235,.2); }

/* ---------------------------------------------------------------------------
   READABILITY — Ensure text on tinted/dark backgrounds is always legible
   --------------------------------------------------------------------------- */

/* Dark section base: always use light text */
[style*="background: linear-gradient"][style*="#0f172a"] h1,
[style*="background: linear-gradient"][style*="#0f172a"] h2,
[style*="background: linear-gradient"][style*="#0f172a"] h3,
[style*="background: linear-gradient"][style*="#021B1A"] h1,
[style*="background: linear-gradient"][style*="#021B1A"] h2,
[style*="background: linear-gradient"][style*="#021B1A"] h3 {
  color: #fff !important;
}

/* Minimum contrast for muted text on white/light backgrounds */
.text-muted { color: #475569 !important; }       /* was Bootstrap #6c757d — raised to 4.5:1 */
small.text-muted, .x-small.text-muted { color: #64748b !important; }

/* Ensure progress bar text above bar is readable */
.progress-label { font-size: 0.78rem; font-weight: 600; color: #334155; }

/* Dark-on-teal accent chips: ensure white text */
.comp-cat-chip,
.comp-filter-btn.active,
.hero-badge--gold,
.hero-badge--blue {
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------------------
   ICON VISIBILITY — Bootstrap Icons display insurance
   Force correct rendering for <i class="bi bi-*"> used outside navbar
   --------------------------------------------------------------------------- */
i.bi {
  display: inline-block;
  line-height: 1;
  vertical-align: -0.125em;
}
/* Icon inside buttons — prevent icon from shrinking */
.btn i.bi,
.badge i.bi,
.nav-link i.bi,
.dropdown-item i.bi {
  font-size: inherit;
  flex-shrink: 0;
}
/* Card icon standalone blocks */
.card-icon-block {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.card-icon-block i.bi { font-size: 1.4rem; }

/* ---------------------------------------------------------------------------
   PAGE TRANSITIONS & SPACING — Consistent vertical rhythm
   --------------------------------------------------------------------------- */
.page-section        { padding-block: 4rem; }
.page-section--lg    { padding-block: 5.5rem; }
.page-section--sm    { padding-block: 2.5rem; }
.page-section--gray  { background: #f8fafc; }
.page-section--dark  { background: linear-gradient(135deg, var(--theme-dark) 0%, var(--theme-teal-deep) 100%); }

/* Divider accent */
.section-divider {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--theme-teal), var(--theme-mint));
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* ---------------------------------------------------------------------------
   RESPONSIVE TYPE SCALE — Ensures readability at all breakpoints
   --------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .page-hero__title    { font-size: 1.75rem; }
  .section-title       { font-size: 1.4rem; }
  .content-card        { padding: 1.25rem; }
}

/* ---------------------------------------------------------------------------
   INITIATIVE HERO — In-hero breadcrumb trail
   --------------------------------------------------------------------------- */
.initiative-hero__breadcrumb .breadcrumb {
  background: none;
  padding: 0;
  font-size: 0.78rem;
  --bs-breadcrumb-divider-color: rgba(255,255,255,.35);
  --bs-breadcrumb-item-padding-x: 0.45rem;
}
  color: rgba(255,255,255,.35);
}
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color 0.15s;
}

/* ---------------------------------------------------------------------------
   INDICATOR LAYOUT — Standardised page-hero + inline breadcrumb
   --------------------------------------------------------------------------- */
.indicator-page-hero {
  /* Reuses page-hero system but with per-domain gradient via CSS var */
  position: relative;
  overflow: hidden;
  padding-block: 1rem 3.5rem;
  background: var(--ind-gradient, linear-gradient(135deg, var(--theme-dark) 0%, var(--theme-teal-deep) 100%));
  color: #fff;
}
.indicator-page-hero__breadcrumb {
  padding-block: 0.85rem 0;
  margin-bottom: 0.5rem;
}
.indicator-page-hero__breadcrumb .breadcrumb {
  background: none;
  padding: 0;
  font-size: 0.78rem;
  --bs-breadcrumb-divider-color: rgba(255,255,255,.35);
}
.indicator-page-hero__breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,.35);
}
.indicator-page-hero__breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color 0.15s;
}
.indicator-page-hero__breadcrumb .breadcrumb-item a:hover { color: #fff; }
.indicator-page-hero__breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.9); }

/* ===========================================================================
   DEMOGRAPHICS PAGE — Consolidated from demographics/index.html <style> block
   All demo-* classes use brand tokens for consistency with page-hero system
   =========================================================================== */

/* Hero — using brand tokens (matches page-hero colour language) */
.demo-hero {
  background: linear-gradient(135deg, var(--theme-dark) 0%, var(--theme-teal-deep) 55%, #0c2d4a 100%);
  position: relative;
  overflow: hidden;
}
.demo-hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.demo-hero__glow {
  position: absolute; top: -200px; right: -200px; pointer-events: none;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.12) 0%, transparent 70%);
}

/* Hero typography — aligned to page-hero tokens */
.demo-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.demo-hero__title-accent { color: var(--theme-mint); }
.demo-hero__subtitle {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 560px;
}

.demo-hero .section-eyebrow {
  color: #047857;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
}

.demo-src-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .9rem; border-radius: 9999px;
  font-size: .72rem; font-weight: 600;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
}

/* Hero stat cards (glassmorphism — consistent with page-hero__stat-card) */
.demo-hero__stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.demo-stat-card {
  border-radius: 18px; padding: 1.25rem; text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s ease;
}
.demo-stat-card:hover { transform: translateY(-3px); }
.demo-stat-card--primary { background: rgba(26,86,219,.15); border-color: rgba(26,86,219,.25); }
.demo-stat-card--green   { background: rgba(5,150,105,.15); border-color: rgba(5,150,105,.25); }
.demo-stat-card--amber   { background: rgba(217,119,6,.15); border-color: rgba(217,119,6,.25); }
.demo-stat-card--teal    { background: rgba(13,148,136,.15); border-color: rgba(13,148,136,.25); }
.demo-stat-card__icon  { font-size: 1.5rem; color: rgba(255,255,255,.5); margin-bottom: .5rem; }
.demo-stat-card__val   { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; color: #fff; line-height: 1; letter-spacing: -0.03em; }
.demo-stat-card__label { font-size: .72rem; color: rgba(255,255,255,.6); margin-top: .35rem; font-weight: 600; }
.demo-stat-card__sub   { font-size: .6rem; color: rgba(255,255,255,.35); margin-top: .2rem; }

/* Section navigation */
.demo-section-nav {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: var(--header-h, 68px);  /* dynamic offset matching navbar height */
  z-index: 900;
}
.demo-nav-link {
  display: inline-flex; align-items: center;
  padding: .5rem 1rem; border-radius: 8px;
  font-size: .82rem; font-weight: 600; color: #64748b;
  text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: all .15s;
}
.demo-nav-link:hover { color: #0f172a; }
.demo-nav-link.active { color: var(--theme-teal); border-bottom-color: var(--theme-teal); }

/* Section headings */
.demo-section-header { display: flex; align-items: flex-start; gap: 1.25rem; }
.demo-section-num { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 900; color: #e2e8f0; line-height: 1; flex-shrink: 0; }
.demo-section-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: #0f172a; margin: 0 0 .35rem; }
.demo-section-desc { color: #64748b; font-size: .9rem; line-height: 1.6; margin: 0; }

/* Content cards */
.demo-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.06); overflow: hidden; }
.demo-card--dark { background: linear-gradient(160deg, var(--theme-dark), #0d2d52); border-color: rgba(255,255,255,.08); }
.demo-card__header { display: flex; align-items: center; gap: .75rem; padding: 1.25rem 1.5rem 0; }
.demo-card__hicon { font-size: 1.1rem; color: var(--theme-teal); }
.demo-card__htitle { font-size: .95rem; font-weight: 700; color: #0f172a; margin: 0; }
.demo-card--dark .demo-card__htitle { color: #fff; }
.demo-card__body { padding: 1.25rem 1.5rem 1.5rem; }

/* Gender */
.demo-gender-bar { display: flex; height: 10px; border-radius: 9999px; overflow: hidden; }
.demo-gender-bar__male   { background: linear-gradient(90deg, #3B82F6, #1D4ED8); }
.demo-gender-bar__female { background: linear-gradient(90deg, #EC4899, #BE185D); }
.demo-gender-label { display: flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600; }
.demo-gender-label--male   { color: #1D4ED8; }
.demo-gender-label--female { color: #BE185D; }
.demo-gender-label__dot { width: 8px; height: 8px; border-radius: 50%; }
.demo-gender-label--male .demo-gender-label__dot   { background: #3B82F6; }
.demo-gender-label--female .demo-gender-label__dot { background: #EC4899; }
.demo-gender-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.demo-gender-item { text-align: center; padding: 1rem; border-radius: 14px; }
.demo-gender-item--male   { background: #EFF6FF; }
.demo-gender-item--female { background: #FDF2F8; }
.demo-gender-item__icon { font-size: 1.5rem; line-height: 1; }
.demo-gender-item--male   .demo-gender-item__icon { color: #2563EB; }
.demo-gender-item--female .demo-gender-item__icon { color: #DB2777; }
.demo-gender-item__pct { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; line-height: 1; margin: .25rem 0; }
.demo-gender-item--male   .demo-gender-item__pct { color: #1D4ED8; }
.demo-gender-item--female .demo-gender-item__pct { color: #BE185D; }
.demo-gender-item__count { font-size: .75rem; font-weight: 600; color: #475569; }
.demo-gender-item__label { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-top: .2rem; }

/* Metric rows */
.demo-metric-row { display: flex; align-items: flex-start; gap: .85rem; }
.demo-metric-row__icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; flex-shrink: 0; }
.demo-metric-row__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 600; }
.demo-metric-row__val   { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: #0f172a; line-height: 1.1; }
.demo-metric-row__sub   { font-size: .65rem; color: #94a3b8; margin-top: .15rem; }

/* Area */
.demo-area-row { display: flex; align-items: center; gap: .6rem; }
.demo-area-row__bar   { height: 6px; border-radius: 9999px; flex-shrink: 0; }
.demo-area-row__label { font-size: .72rem; color: rgba(255,255,255,.55); flex-grow: 1; }
.demo-area-row__val   { font-size: .72rem; font-weight: 700; flex-shrink: 0; }

.demo-city-badge { font-size: .82rem; font-weight: 700; color: #1e293b; }
.demo-city-badge--highlight { color: #059669; }
.demo-density-num small { font-size: .65rem; font-weight: 500; color: #94a3b8; }
.demo-density-track { height: 12px; background: #f1f5f9; border-radius: 9999px; overflow: hidden; }
.demo-density-fill { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #94a3b8, #64748b); display: flex; align-items: center; justify-content: flex-end; }
.demo-density-fill--highlight { background: linear-gradient(90deg, #059669, #34d399); }
.demo-density-fill__label { font-size: .6rem; font-weight: 800; color: #fff; padding-right: .35rem; white-space: nowrap; }

/* Insights */
.demo-insight { display: flex; align-items: flex-start; gap: .85rem; }
.demo-insight__icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.demo-insight__title { font-size: .85rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }
.demo-insight__body  { font-size: .78rem; color: rgba(255,255,255,.55); line-height: 1.6; }

/* Growth timeline */
.demo-growth-timeline { display: flex; flex-direction: column; gap: 0; }
.demo-growth-item { display: grid; grid-template-columns: 90px 32px 1fr; gap: 1rem; }
.demo-growth-item__year-col { text-align: right; padding-top: .25rem; }
.demo-growth-item__year { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: #1e293b; }
.demo-growth-item__tag { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: .2rem; }
.demo-growth-item__tag--now    { color: var(--theme-teal); }
.demo-growth-item__tag--aging  { color: #D97706; }
.demo-growth-item__tag--aged   { color: #DC2626; }
.demo-growth-item__tag--target { color: #059669; }
.demo-growth-item__connector { display: flex; flex-direction: column; align-items: center; padding-top: .35rem; }
.demo-growth-item__dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.demo-growth-item__dot--active { background: var(--theme-teal); box-shadow: 0 0 0 4px rgba(13,148,136,.2); }
.demo-growth-item__dot--aging  { background: #D97706; box-shadow: 0 0 0 4px rgba(217,119,6,.15); }
.demo-growth-item__dot--aged   { background: #DC2626; box-shadow: 0 0 0 4px rgba(220,38,38,.15); }
.demo-growth-item__dot--target { background: #059669; box-shadow: 0 0 0 4px rgba(5,150,105,.2); animation: pulseDot 2s ease infinite; }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(5,150,105,.2); }
  50%       { box-shadow: 0 0 0 8px rgba(5,150,105,.06); }
}
.demo-growth-item__line { width: 2px; flex-grow: 1; background: #e2e8f0; margin-top: .25rem; }
.demo-growth-item__content { padding: .25rem 0 2rem; }
.demo-growth-item__pop  { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 900; color: #0f172a; line-height: 1; }
.demo-growth-item__pop small { font-size: .75rem; font-weight: 500; color: #94a3b8; }
.demo-growth-item__desc { font-size: .82rem; color: #64748b; line-height: 1.6; margin: .4rem 0 .75rem; }
.demo-growth-item__bar-wrap { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.demo-growth-item__bar { height: 6px; border-radius: 9999px; background: linear-gradient(90deg, var(--theme-teal), #34d399); flex-shrink: 0; }
.demo-growth-item__bar-pct { font-size: .65rem; color: #94a3b8; }
.demo-growth-item__milestone {
  display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700;
  padding: .3rem .75rem; border-radius: 9999px;
  background: rgba(217,119,6,.08); color: #D97706; border: 1px solid rgba(217,119,6,.15);
}

/* Precinct */
.demo-presint-item { padding: .5rem 0; }
.demo-presint-header { display: flex; align-items: center; gap: .85rem; margin-bottom: .6rem; }
.demo-presint-badge { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.demo-presint-name  { font-size: .9rem; font-weight: 700; color: #0f172a; }
.demo-presint-type  { font-size: .68rem; color: #94a3b8; }
.demo-presint-count { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 900; color: #0f172a; }
.demo-presint-track { height: 10px; background: #f1f5f9; border-radius: 9999px; overflow: hidden; }
.demo-presint-fill  { height: 100%; border-radius: 9999px; }
.demo-presint-fill--1 { background: linear-gradient(90deg, #1A56DB, #003087); }
.demo-presint-fill--2 { background: linear-gradient(90deg, #7C3AED, #4C1D95); }
.demo-presint-fill--3 { background: linear-gradient(90deg, #059669, #064E3B); }
.demo-presint-fill--4 { background: linear-gradient(90deg, #D97706, #92400E); }
.demo-presint-sub { font-size: .65rem; color: #94a3b8; margin-top: .3rem; }

/* Global embedded Hero Breadcrumb */
.hero-breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}
.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.3);
}

/* =============================================================================
   DARK MODE COMPATIBILITY & READABILITY OVERRIDES
   ============================================================================= */
[data-bs-theme="dark"] {
  /* Headings & general titles */
  h1, h2, h3, h4, h5, h6,
  .h1, .h2, .h3, .h4, .h5, .h6,
  .section-title,
  .demo-section-title,
  .demo-card__htitle,
  .demo-presint-name {
    color: var(--bs-heading-color, #f8fafc) !important;
  }

  /* Body-level text or muted elements */
  .section-desc,
  .demo-growth-item__desc {
    color: var(--bs-secondary-color, #94a3b8) !important;
  }

  /* Specific values or statistics */
  .demo-growth-item__pop,
  .demo-presint-count,
  .demo-metric-row__val,
  .metric-display__value {
    color: #f8fafc !important;
  }

  /* White backgrounds to dark body/card backgrounds */
  .bg-white,
  .card.bg-white {
    background-color: var(--bs-card-bg) !important;
  }

  /* Background sections that are light gray by default */
  .timeline-section,
  section[style*="background: #f8fafc"],
  section[style*="background:#f8fafc"],
  .demo-presint-track {
    background-color: var(--bs-body-bg) !important;
  }
}


/* ==========================================================================
   MODERN WEB ENHANCEMENTS
   ========================================================================== */

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0f172a;
    --text-body: #e2e8f0;
    --level-1-bg: #374151;
    --level-2-bg: #78350F;
    --level-3-bg: #1E3A8A;
    --level-4-bg: #064E3B;
  }
  body {
    background-color: var(--bg-body);
    color: var(--text-body);
  }
  .site-navbar, .gov-topbar {
    background-color: rgba(2, 44, 34, 0.95);
  }
  .card, .component-card {
    background-color: #1e293b;
    border-color: rgba(255,255,255,0.1);
  }
  .footer-body {
    background-color: #020617;
  }
}

/* Scroll-Driven Animations */
@keyframes fade-in-up {
  from { opacity: 0; translate: 0 20px; }
  to   { opacity: 1; translate: 0 0; }
}
.component-card {
  animation: fade-in-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

.progress-bar {
  animation: grow-width linear both;
  animation-timeline: view();
  animation-range: entry 10% entry 60%;
}
@keyframes grow-width {
  from { width: 0%; }
}

/* Back-to-Top using container scroll-state */
.back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
@container scroll-state(scrolled) {
  .back-to-top { opacity: 1; pointer-events: auto; }
}

/* View Transitions */
.site-navbar { view-transition-name: site-navbar; }
.hero-section { view-transition-name: hero; }

/* Content Visibility */
.indicators-section,
.partners-section,
.timeline-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* Scrollbar & Font Adjust */
html {
  scrollbar-color: var(--theme-teal) rgba(0,0,0,0.1);
}
body {
  font-size-adjust: ex-height 0.52;
}
