/* ========================================
   Delta RCM Premium Vanilla CSS Framework
   ======================================== */

:root {
  /* HSL Color Palette */
  --hue-primary: 215;
  --hue-accent: 152;
  
  --color-primary-50: hsl(var(--hue-primary), 50%, 95%);
  --color-primary-100: hsl(var(--hue-primary), 50%, 88%);
  --color-primary-200: hsl(var(--hue-primary), 50%, 76%);
  --color-primary: hsl(var(--hue-primary), 59%, 41%);
  --color-primary-dark: hsl(var(--hue-primary), 65%, 25%);
  
  --color-accent-50: hsl(var(--hue-accent), 60%, 95%);
  --color-accent: hsl(var(--hue-accent), 72%, 37%);
  --color-accent-light: hsl(var(--hue-accent), 70%, 45%);
  --color-accent-dark: hsl(var(--hue-accent), 72%, 25%);

  --color-surface: hsl(210, 20%, 98%);
  --color-surface-elevated: hsl(0, 0%, 100%);
  --color-surface-dark: hsl(215, 65%, 12%);
  --color-surface-dark-elevated: hsl(215, 60%, 16%);

  --text-main: hsl(215, 25%, 15%);
  --text-muted: hsl(215, 15%, 45%);
  --text-light: hsl(0, 0%, 100%);

  /* Typography */
  --font-display: '"DM Serif Display"', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --lh-body: 1.7;
  --lh-heading: 1.2;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;
  --sp-xxl: 8rem;

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 25, 50, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-bg-dark: rgba(20, 30, 50, 0.7);
  --glass-blur: blur(16px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --glass-border-dark: 1px solid rgba(255, 255, 255, 0.1);

  /* Border Radii */
  --br-md: 0.75rem;
  --br-lg: 1.25rem;
  --br-full: 9999px;

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--color-surface);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-primary-dark, #1E4280);
  font-weight: 400;
}

/* Headings inside dark/branded panels should inherit white, not primary-dark */
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4,
.bg-primary-dark h1, .bg-primary-dark h2, .bg-primary-dark h3, .bg-primary-dark h4,
.bg-primary-900 h1, .bg-primary-900 h2, .bg-primary-900 h3, .bg-primary-900 h4,
.from-primary h1, .from-primary h2, .from-primary h3, .from-primary h4,
header.bg-primary-900 h1, header.bg-primary-900 h2, header.bg-primary-900 h3, header.bg-primary-900 h4 {
  color: #fff;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 1.8vw, 1.375rem); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

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

/* ========================================
   Layout & Container
   ======================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-sm);
}
@media (min-width: 768px) { .container { padding: 0 var(--sp-md); } }

.section {
  padding: var(--sp-xl) 0;
}
.section-dark {
  background-color: var(--color-surface-dark);
  color: var(--text-light);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--text-light);
}

.grid {
  display: grid;
  gap: var(--sp-md);
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ========================================
   Components
   ======================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--br-md);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
  text-align: center;
  border: 1px solid transparent;
}
.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background-color: var(--color-primary-50);
}
.btn-white {
  background-color: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  background-color: var(--color-primary-50);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--color-surface-elevated);
  border-radius: var(--br-lg);
  padding: var(--sp-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-base), box-shadow var(--trans-base);
  border: 1px solid rgba(0,0,0,0.03);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-50);
  border-radius: var(--br-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-sm);
  color: var(--color-primary);
  font-size: 1.75rem;
  transition: background var(--trans-fast);
}
.card:hover .card-icon {
  background: var(--color-primary-100);
}

/* Glassmorphism Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
}
.glass-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border-dark);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  transition: all var(--trans-fast);
}
.navbar.glass {
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: var(--sp-sm);
  align-items: center;
}
@media (max-width: 991px) {
  .nav-links { display: none; }
}
.nav-links a {
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--br-md);
}
.nav-links a:hover {
  color: var(--color-primary);
  background: var(--color-primary-50);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}
@media (max-width: 991px) {
  .mobile-menu-btn { display: block; }
  .nav-cta { display: none; }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-surface-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,28,48,0.95) 0%, rgba(30,66,128,0.7) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--text-light);
  padding-top: var(--sp-xl);
}
.hero-content h1 {
  margin-bottom: var(--sp-sm);
  background: linear-gradient(to right, #fff, var(--color-primary-100));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--sp-md);
  color: rgba(255,255,255,0.85);
}
.hero-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

/* Metrics Section */
.metrics-wrap {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  margin-bottom: var(--sp-xl);
}
.metrics-card {
  padding: var(--sp-lg) var(--sp-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-md);
  text-align: center;
}
.metric-val {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.metric-label {
  color: var(--text-muted);
  font-weight: 500;
}
.metric-divider {
  width: 1px;
  background: rgba(0,0,0,0.1);
  height: 100%;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--text-muted); }
.mb-xs { margin-bottom: var(--sp-xs); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--trans-slow);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.pulse-bg {
  animation: bg-pulse 6s ease-in-out infinite alternate;
}
@keyframes bg-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Footer Focus */
.footer {
  background: var(--color-surface-dark);
  color: var(--color-primary-50);
  padding: var(--sp-xl) 0 var(--sp-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-md); }
}
.footer-logo { margin-bottom: var(--sp-sm); }
.footer-logo img { height: 48px; filter: brightness(0) invert(1); }
.footer-desc {
  max-width: 300px;
  line-height: 1.6;
}
.footer-heading {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--sp-sm);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--color-primary-100);
  opacity: 0.8;
}
.footer-links a:hover {
  opacity: 1;
  color: #fff;
}
.footer-bottom {
  padding-top: var(--sp-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Responsive Images */
.image-wrapper {
  position: relative;
  border-radius: var(--br-lg);
  overflow: hidden;
}
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}
.image-wrapper:hover img {
  transform: scale(1.05);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--br-full);
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--sp-sm);
}
.badge-accent {
  background: var(--color-accent-50);
  color: var(--color-accent-dark);
}
.badge-glass {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

/* ========================================
   Prose (long-form article content)
   ======================================== */
.prose {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1A202C;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: '"DM Serif Display"', Georgia, serif;
  letter-spacing: -0.025em;
  color: #1E4280;
  font-weight: 400;
  line-height: 1.15;
}
.prose h2 { font-size: 1.875rem; margin: 2.5em 0 0.8em; }
.prose h3 { font-size: 1.5rem; margin: 2em 0 0.6em; color: #2B5CA6; }
.prose h4 { font-size: 1.25rem; margin: 1.75em 0 0.5em; }
.prose > p:first-of-type { font-size: 1.1875rem; line-height: 1.65; color: #1E4280; }
.prose p { margin: 0 0 1.25em; }
.prose a {
  color: #2B5CA6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
}
.prose a:hover { color: #1E4280; text-decoration-thickness: 2px; }
.prose strong { color: #1A202C; font-weight: 600; }
.prose ul, .prose ol { margin: 1.25em 0; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.5em 0; padding-left: 0.25rem; }
.prose li::marker { color: #2B5CA6; }
.prose blockquote {
  border-left: 4px solid #2B5CA6;
  background: #EBF0F9;
  padding: 1.25rem 1.75rem;
  margin: 2em 0;
  border-radius: 0.75rem;
  font-style: italic;
  color: #1E4280;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code:not(pre code) {
  background: #EBF0F9;
  color: #1E4280;
  padding: 0.15rem 0.45rem;
  border-radius: 0.375rem;
  font-size: 0.9em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.prose img {
  border-radius: 1rem;
  margin: 2em auto;
  box-shadow: 0 4px 12px rgba(43,92,166,0.08), 0 16px 40px rgba(43,92,166,0.12);
}
.prose hr { border: 0; border-top: 1px solid rgba(43,92,166,0.1); margin: 3em 0; }

/* Inline citation markers (rendered via Eleventy transform from [N]) */
sup.cite {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6875em;
  font-weight: 600;
  font-style: normal;
  color: #2B5CA6;
  vertical-align: super;
  line-height: 0;
  margin: 0 0.08em;
  padding: 0 0.15em;
  background: rgba(43, 92, 166, 0.08);
  border-radius: 0.2em;
  letter-spacing: 0;
}
sup.cite::before { content: ""; }
/* Inside dark overlay hero / CTA cards, make cite visible on dark */
.text-white sup.cite,
.bg-primary-900 sup.cite {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

/* Shortcodes Overrides */
.stat-callout {
  border-radius: var(--br-lg);
  padding: var(--sp-md);
  margin: var(--sp-sm) 0;
  border: none;
  box-shadow: var(--shadow-sm);
}

/* Dropdowns in Nav */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--color-surface-elevated);
  border-radius: var(--br-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-xs) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--trans-fast);
  border: 1px solid rgba(0,0,0,0.05);
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-main);
  transition: background var(--trans-fast);
}
.dropdown-item:hover {
  background: var(--color-primary-50);
  color: var(--color-primary);
}
.dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.05);
  margin: 0.5rem 0;
}

/* ========================================
   Utility Layer
   ======================================== */

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

/* Flex helpers */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* Margins / centering */
.mx-auto { margin-left: auto; margin-right: auto; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.mt-xs { margin-top: var(--sp-xs); }
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-14 { margin-bottom: 3.5rem; }

/* Padding */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-6 { padding-top: 1.5rem; }

/* Sizes */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.w-6 { width: 1.5rem; }
.w-12 { width: 3rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }

/* Typography */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.55; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: #fff; }
.text-text { color: var(--text-main); }
.text-text-muted { color: var(--text-muted); }
.text-primary-100 { color: var(--color-primary-100); }
.text-primary-dark { color: var(--color-primary-dark); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-display { font-family: var(--font-display); }
.tracking-heading { letter-spacing: -0.03em; }
.leading-body { line-height: 1.7; }
.leading-tight { line-height: 1.2; }

/* Backgrounds */
.bg-white { background-color: #fff; }
.bg-primary { background-color: var(--color-primary); }
.bg-primary-50 { background-color: var(--color-primary-50); }
.bg-surface { background-color: var(--color-surface); }

/* Borders */
.border-t { border-top: 1px solid rgba(0,0,0,0.08); }
.border-surface-dark { border-color: rgba(0,0,0,0.08); }
.rounded-md { border-radius: var(--br-md); }
.rounded-lg { border-radius: var(--br-lg); }
.rounded-xl { border-radius: var(--br-md); }
.rounded-2xl { border-radius: var(--br-lg); }
.rounded-full { border-radius: var(--br-full); }

/* Effects / images */
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.object-center { object-position: center; }
.aspect-square { aspect-ratio: 1 / 1; }
.shadow-card { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Spacing children */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* Grid spans */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Transitions */
.duration-150 { transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }

/* Component nudges */
.card.text-center .card-icon {
  margin-left: auto;
  margin-right: auto;
}
.card h3 { margin-top: var(--sp-sm); margin-bottom: var(--sp-xs); }
.card p { color: var(--text-muted); }

/* Smaller card icon variant for fits */
.card-icon i { line-height: 1; }

/* Hero typography polish — keep h1 white (revert gradient that washes on small screens) */
.hero-content h1 {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: #fff;
}

/* Section paddings on mobile */
@media (max-width: 768px) {
  .section { padding: var(--sp-lg) 0; }
}

/* Better default link styling inside prose */
.prose strong { color: var(--text-main); font-weight: 600; }

/* Pull-quote / callout / mermaid / chart shells (used by rich-content shortcodes) */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--br-md);
  margin: 2rem 0;
  border-left: 4px solid var(--color-primary);
  background: var(--color-primary-50);
}
.callout-warning { background: hsl(40, 90%, 95%); border-color: hsl(35, 90%, 50%); }
.callout-success { background: var(--color-accent-50); border-color: var(--color-accent); }
.callout-danger  { background: hsl(0, 90%, 96%);  border-color: hsl(0, 75%, 55%); }
.callout-content p:first-child { margin-top: 0; }
.callout-content p:last-child { margin-bottom: 0; }

.pull-quote {
  border-left: 4px solid var(--color-primary);
  padding: 0.5rem 0 0.5rem 2rem;
  margin: 2.5rem 0;
}
.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--color-primary-dark);
  font-style: italic;
}
.pull-quote figcaption {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.mermaid-diagram {
  background: #fff;
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  margin: 2.5rem 0;
  border: 1px solid rgba(43,92,166,0.1);
  box-shadow: 0 1px 3px rgba(43,92,166,0.04), 0 4px 16px rgba(43,92,166,0.06);
  overflow-x: auto;
  text-align: center;
}
.mermaid-diagram pre.mermaid,
.mermaid-diagram .mermaid {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent !important;
  padding: 0;
  margin: 0;
}
.mermaid-diagram svg {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.apex-chart {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--br-md);
  box-shadow: var(--shadow-sm);
  min-height: 300px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat-callout {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  border-radius: var(--br-md);
  background: var(--color-primary-50);
  margin: 0.5rem 0;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.875rem; color: var(--text-muted); }
.stat-warning { background: hsl(40, 90%, 94%); }
.stat-warning .stat-value { color: hsl(30, 75%, 35%); }
.stat-danger  { background: hsl(0, 90%, 96%); }
.stat-danger .stat-value { color: hsl(0, 70%, 40%); }
.stat-accent  { background: var(--color-accent-50); }
.stat-accent .stat-value { color: var(--color-accent-dark); }

/* Prose tables */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
  background: #fff;
  border-radius: var(--br-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.prose th {
  background: var(--color-primary-50);
  color: var(--color-primary-dark);
  text-align: left;
  padding: 0.875rem 1rem;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.prose td {
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.prose tr:hover td { background: var(--color-primary-50); }

/* Better focus visibility */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .pulse-bg { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
