/**
 * Praman Docusaurus Theme — Corporate Blue
 * Aligned with dhikraft visual identity:
 *   - Primary: #0070ad / #1e3c72 / #2a5298 (deep corporate navy-blue)
 *   - Accent:  #f59e0b / #ffd700 (gold)
 *   - Font:    'Segoe UI' system stack (no external dependency)
 *   - Hero:    linear-gradient(135deg, #1e3c72 0%, #2a5298 100%)
 *   - Shadows: blue-tinted three-tier system
 */

/* Screen-reader only — visible to crawlers and assistive tech, hidden visually */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── No Google Fonts — system Segoe UI stack is used ──────── */

/* ── Light Mode ────────────────────────────────────────────── */
:root {
  /* Primary: Corporate Blue (dhikraft-aligned scale) */
  --ifm-color-primary: #0070ad;
  --ifm-color-primary-dark: #005b8c;
  --ifm-color-primary-darker: #005280;
  --ifm-color-primary-darkest: #003d5c;
  --ifm-color-primary-light: #1a84c0;
  --ifm-color-primary-lighter: #3392c8;
  --ifm-color-primary-lightest: #4aa9d5;

  /* Typography — Segoe UI system stack matching dhikraft */
  --ifm-font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, 'Helvetica Neue', Arial, sans-serif;
  --ifm-font-family-monospace: 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --ifm-heading-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Helvetica Neue', Arial, sans-serif;
  --ifm-code-font-size: 90%;
  --ifm-heading-font-weight: 600;
  --ifm-font-weight-bold: 600;
  --ifm-font-size-base: 1rem;
  --ifm-line-height-base: 1.6;

  /* Backgrounds */
  --ifm-background-color: #ffffff;
  --ifm-navbar-background-color: rgba(255, 255, 255, 0.98);
  --ifm-footer-background-color: #1e3c72;

  /* dhikraft CSS variables — pulled verbatim */
  --capgemini-blue: #0070ad;
  --capgemini-dark-blue: #005b8c;
  --capgemini-light-blue: #4a9bc7;
  --capgemini-gray: #f2f2f2;
  --capgemini-dark-gray: #444;
  --capgemini-border: #e0e6ed;
  --primary-text: #1e3c72;
  --secondary-text: #333;
  --gradient-primary: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  --gradient-body: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-light: 0 2px 8px rgba(0, 112, 173, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 112, 173, 0.12);
  --shadow-strong: 0 8px 32px rgba(0, 112, 173, 0.15);

  /* Praman aliases (map to dhikraft tokens) */
  --praman-gold: #ffd700;
  --praman-ink: #1e3c72;
  --praman-ink-secondary: #444444;
  --praman-border: #e0e6ed;
  --praman-surface-alt: #f2f2f2;
  --praman-hero-from: #1e3c72;
  --praman-hero-to: #2a5298;

  /* Shadows (alias dhikraft shadow vars) */
  --praman-shadow-sm: var(--shadow-light);
  --praman-shadow-md: var(--shadow-medium);
  --praman-shadow-lg: var(--shadow-strong);

  --docusaurus-highlighted-code-line-bg: rgba(0, 112, 173, 0.1);
}

/* ── Dark Mode ─────────────────────────────────────────────── */
[data-theme='dark'] {
  --ifm-color-primary: #4aa9d5;
  --ifm-color-primary-dark: #3a9ac8;
  --ifm-color-primary-darker: #3090bf;
  --ifm-color-primary-darkest: #1a78a8;
  --ifm-color-primary-light: #65b9e0;
  --ifm-color-primary-lighter: #7ac5e8;
  --ifm-color-primary-lightest: #99d5f0;

  --ifm-background-color: #0c1220;
  --ifm-navbar-background-color: rgba(12, 18, 32, 0.95);
  --ifm-footer-background-color: #070c16;

  --praman-gold: #ffd700;
  --praman-ink: #e8f0fe;
  --praman-ink-secondary: #94a3b8;
  --praman-border: #1e3864;
  --praman-surface-alt: #0f1e3a;
  --praman-hero-from: #0c1220;
  --praman-hero-to: #1e3c72;

  /* Override light-only variables so every consumer gets dark values */
  --primary-text: #e8f0fe;
  --capgemini-blue: #4aa9d5;

  --praman-shadow-sm: 0 2px 8px rgba(74, 169, 213, 0.08);
  --praman-shadow-md: 0 4px 16px rgba(74, 169, 213, 0.12);
  --praman-shadow-lg: 0 8px 32px rgba(74, 169, 213, 0.15);

  --docusaurus-highlighted-code-line-bg: rgba(74, 169, 213, 0.15);
}

/* ── Navbar glassmorphism ───────────────────────────────────── */
.navbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--praman-border);
  box-shadow: var(--praman-shadow-md);
  height: 72px;
}

/* backdrop-filter on .navbar creates a new CSS containing block (per spec),
   which traps the position:fixed .navbar-sidebar inside the 72px nav.
   Force full-viewport height + solid background so the mobile drawer works. */
.navbar-sidebar {
  height: 100dvh;
  background-color: var(--ifm-background-color);
}

.navbar__brand {
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.navbar__logo img {
  height: 32px;
  width: auto;
}

.navbar__title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ifm-color-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.navbar__items {
  flex-wrap: nowrap;
}

.navbar__item.navbar__link {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0 0.5rem;
  white-space: nowrap;
}

/* GitHub icon in navbar */
.header-github-link::before {
  content: '';
  width: 24px;
  height: 24px;
  display: flex;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12' fill='%230070ad'/%3E%3C/svg%3E") no-repeat;
}

[data-theme='dark'] .header-github-link::before {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12' fill='%234aa9d5'/%3E%3C/svg%3E") no-repeat;
}

/* ── Announcement bar ──────────────────────────────────────── */
div[class*='announcementBar'] {
  background: var(--ifm-color-primary) !important;
  color: #fff !important;
}

/* ── Global section h2 — exact dhikraft h2 style ──────────── */
.praman-section-h2 {
  font-size: 2.5em;
  color: var(--primary-text);
  border-bottom: 3px solid #667eea;
  padding-bottom: 15px;
  margin: 50px 0 30px;
}

/* ── Hero — gradient banner (dhikraft-style) ───────────────── */
.praman-hero-wrap {
  background: linear-gradient(135deg, var(--praman-hero-from) 0%, var(--praman-hero-to) 100%);
  width: 100%;
}

.hero--primary {
  background: linear-gradient(135deg, var(--praman-hero-from) 0%, var(--praman-hero-to) 100%);
  color: #ffffff;
  padding: 4rem 0;
}

[data-theme='dark'] .hero--primary {
  background: linear-gradient(135deg, var(--praman-hero-from) 0%, var(--praman-hero-to) 100%);
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Hero Carousel ─────────────────────────────────────────── */

/* Persistent H1 — always visible to crawlers, compact for users */
.praman-hero-persistent {
  text-align: center;
  padding: 2rem 2rem 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.praman-hero-h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.praman-hero-tagline {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.6;
}

/* Outer wrapper: provides the gradient background */
.praman-carousel {
  position: relative;
  overflow: hidden;
}

/* Fixed-height track — all slides absolutely stacked */
.praman-carousel-inner {
  position: relative;
  height: 440px;
}

/* All slides: absolutely positioned, invisible by default */
.praman-carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

/* Active slide: fully visible */
.praman-carousel-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

/* Two-column layout: text left, SVG right */
.praman-carousel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 5rem 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.praman-carousel-text {
  text-align: left;
}

/* Gold glassmorphic badge */
.praman-carousel-badge {
  display: inline-block;
  padding: 0.28rem 0.9rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  color: #ffd700;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

/* Slide title — slightly smaller than the old static hero */
.praman-carousel-title {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #ffffff !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.18);
  margin-bottom: 0.9rem;
}

/* Slide subtitle */
.praman-carousel-subtitle {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 0.8rem;
  max-width: 480px;
}

/* CTA buttons row */
.praman-carousel-cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

/* SVG illustration container */
.praman-carousel-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
}

.praman-carousel-visual .praman-video-container {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
}

/* ── Carousel nav arrows ────────────────────────────────────── */
.praman-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.praman-carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.praman-carousel-arrow-prev { left: 1.2rem; }
.praman-carousel-arrow-next { right: 1.2rem; }

/* ── Carousel dot navigation ────────────────────────────────── */
.praman-carousel-dots {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 10;
}

.praman-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.praman-carousel-dot.active {
  background: #ffffff;
  width: 24px;
  border-radius: 4px;
}

/* ── Landing page components ───────────────────────────────── */
.praman-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.5rem;
}

.praman-pills .dot {
  font-size: 1.4rem;
  color: var(--praman-gold);
  line-height: 1;
}

.praman-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ifm-color-primary);
  margin-bottom: 0.5rem;
}

.praman-section-title {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--praman-ink);
}

/* ── "Plugin at a Glance" — exact dhikraft layout ─────────── */

/* Outer wrapper: page-level spacing */
.praman-glance-outer {
  padding: 40px 20px;
  background: var(--ifm-background-color);
}

/* Exact dhikraft .container: white card, border-radius 12px, shadow, padding 60px */
.praman-glance-section {
  max-width: 1400px;
  margin: 0 auto;
  background: var(--ifm-background-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 112, 173, 0.15);
  padding: 60px;
}

/* Exact dhikraft h2: purple underline, 2.5em, margin 50px 0 30px */
.praman-glance-title {
  font-size: 2.5em;
  font-weight: 400;
  color: var(--primary-text);
  border-bottom: 3px solid #667eea;
  padding-bottom: 15px;
  margin: 0 0 30px;
}

/* 3-column grid for the three items */
.praman-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 30px 0 0;
}

/* Exact dhikraft .summary-card: white bg, purple left border, radius, shadow */
.praman-info-card {
  background: var(--ifm-background-color);
  border-left: 5px solid #667eea;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 112, 173, 0.08);
  padding: 20px 24px;
}

/* Exact dhikraft .summary-card h4: capgemini-blue, margin-top 0 */
.praman-info-card h4 {
  color: var(--capgemini-blue);
  font-size: 1.4em;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 8px;
}

/* When to Use list inside info card */
.praman-when-to-use-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 0;
}

.praman-when-to-use-list li {
  color: var(--primary-text);
  font-size: 0.95em;
  line-height: 1.7;
  padding: 4px 0 4px 1.2em;
  position: relative;
}

.praman-when-to-use-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--capgemini-blue);
  font-weight: 700;
}

/* Exact dhikraft .summary-card p: 0.98em, margin 8px 0 0 */
.praman-info-card p {
  color: var(--primary-text);
  font-size: 0.98em;
  line-height: 1.8;
  margin: 8px 0 0;
}

/* Inline code on white background */
.praman-info-card code {
  background: #f0f4ff;
  color: #0070ad;
  border: none;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}

/* ── Use Case Cards (Playwright-style 3-column) ──────────── */
.praman-usecase-outer {
  padding: 3rem 2rem 2rem;
  background: var(--praman-surface-alt);
  border-bottom: 1px solid var(--praman-border);
}

.praman-usecase-section {
  max-width: 1400px;
  margin: 0 auto;
}

.praman-usecase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.praman-usecase-card {
  background: var(--ifm-background-color);
  border: 1px solid var(--praman-border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.praman-usecase-card:hover {
  box-shadow: var(--praman-shadow-md);
  border-color: var(--capgemini-blue);
}

.praman-usecase-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--praman-ink);
  margin: 0 0 0.75rem;
}

.praman-usecase-card p {
  font-size: 0.92rem;
  color: var(--praman-ink-secondary);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  flex: 1;
}

.praman-usecase-install {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.praman-usecase-install code {
  color: #93c5fd;
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  background: none;
  border: none;
  padding: 0;
}

.praman-usecase-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--capgemini-blue);
  text-decoration: none;
}

.praman-usecase-link:hover {
  text-decoration: underline;
  color: var(--capgemini-blue);
}

.praman-usecase-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem 0 0.5rem;
}

.praman-usecase-blog-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--capgemini-blue);
  text-decoration: none;
}

.praman-usecase-blog-link:hover {
  text-decoration: underline;
  color: var(--capgemini-blue);
}

[data-theme='dark'] .praman-usecase-outer {
  background: var(--praman-surface-alt);
}

[data-theme='dark'] .praman-usecase-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .praman-usecase-card:hover {
  border-color: rgba(0, 112, 173, 0.5);
}

[data-theme='dark'] .praman-usecase-card h3 {
  color: #e2e8f0;
}

[data-theme='dark'] .praman-usecase-card p {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme='dark'] .praman-usecase-install {
  background: #0d1117;
}

.praman-pitch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--praman-border);
  border: 1px solid var(--praman-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--praman-shadow-md);
}

.praman-pitch-cell {
  background: var(--ifm-background-color);
  padding: 2rem;
  transition: background 0.15s;
}

.praman-pitch-cell:hover {
  background: var(--praman-surface-alt);
}

.praman-pitch-step {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--praman-gold);
  margin-bottom: 0.4rem;
}

.praman-pitch-cell h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--praman-ink);
  margin-bottom: 0.4rem;
}

.praman-pitch-cell p {
  color: var(--praman-ink-secondary);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ── Video Embed ─────────────────────────────────────────── */

.praman-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--praman-shadow-md);
  background: #000;
}

.praman-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.praman-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ── Agent Flow: Signavio → Test Plan → Playwright ─────────── */

.praman-agent-flow-outer {
  padding: 2rem 2rem 2.5rem;
  background: var(--praman-surface-alt);
  border-top: 1px solid var(--praman-border);
  border-bottom: 1px solid var(--praman-border);
}

/* 3 panels + 2 connectors: 1fr auto 1fr auto 1fr */
.praman-agent-flow-grid {
  display: grid;
  grid-template-columns: 1fr 72px 1fr 72px 1fr;
  align-items: stretch;
  max-width: 1140px;
  margin: 0 auto;
}

.praman-agent-flow-panel {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.praman-flow-step-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ifm-color-primary);
  margin-bottom: 0.3rem;
}

.praman-flow-panel-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--praman-ink);
  margin-bottom: 0.65rem;
}

/* Code block override inside flow panels: full width, fills panel height */
.praman-flow-block {
  max-width: 100% !important;
  min-height: 220px;
  flex: 1;
  font-size: 0.75rem !important;
  text-align: left;
}

.praman-flow-block pre {
  font-size: 0.73rem !important;
  line-height: 1.45 !important;
}

/* ── Animated dot connector ─────────────────────────────────── */

.praman-flow-connector {
  position: relative;
  align-self: center;
  margin-top: 3.6rem; /* align with mid-point of panels */
  height: 2px;
}

.praman-flow-line {
  width: 100%;
  height: 2px;
  background: var(--praman-border);
}

.praman-flow-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--praman-gold);
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
  animation: flow-dot 1.65s ease-in-out infinite;
}

@keyframes flow-dot {
  0%   { left: 0;              opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 9px); opacity: 0; }
}

.praman-flow-arrow {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-55%);
  font-size: 1.4rem;
  color: var(--praman-border);
  line-height: 1;
  pointer-events: none;
}

/* ── Code showcase ─────────────────────────────────────────── */
.praman-code-block {
  background: #1a3a6b;
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  text-align: left;
  box-shadow: var(--praman-shadow-lg);
  max-width: 580px;
  margin: 0 auto;
  border: 1px solid rgba(74, 169, 213, 0.25);
}

.praman-code-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.praman-code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.praman-code-dots span:nth-child(1) { background: #ef4444; }
.praman-code-dots span:nth-child(2) { background: #f59e0b; }
.praman-code-dots span:nth-child(3) { background: #22c55e; }

.praman-code-block pre {
  margin: 0;
  font-family: 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #e2e8f0;
  background: transparent;
  padding: 0;
  border: none;
}

.praman-code-block .kw { color: #c4b5fd; }
.praman-code-block .str { color: #86efac; }
.praman-code-block .cmt { color: #94a3b8; }
.praman-code-block .fn { color: #93c5fd; }

/* ── Feature list ──────────────────────────────────────────── */
.praman-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.praman-features-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--praman-border);
}

.praman-features-list li:last-child {
  border-bottom: none;
}

.praman-features-list .icon {
  font-size: 1.5rem;
  text-align: center;
  padding-top: 2px;
}

.praman-features-list h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--praman-ink);
  margin-bottom: 0.25rem;
}

.praman-features-list p {
  color: var(--praman-ink-secondary);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ── Philosophy section ────────────────────────────────────── */
.praman-philosophy {
  background: var(--praman-surface-alt);
  border-top: 1px solid var(--praman-border);
  border-bottom: 1px solid var(--praman-border);
}

.praman-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--praman-ink-secondary);
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.7;
}

.praman-quote strong {
  color: var(--praman-ink);
}

.praman-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.praman-pillar {
  padding: 1.5rem;
  border: 1px solid var(--praman-border);
  border-left: 3px solid var(--praman-gold);
  border-radius: 12px;
  background: var(--ifm-background-color);
  transition: all 0.2s ease;
  box-shadow: var(--praman-shadow-sm);
}

.praman-pillar:hover {
  border-color: var(--ifm-color-primary);
  box-shadow: var(--praman-shadow-md);
  transform: translateY(-2px);
}

.praman-pillar-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--praman-gold);
  margin-bottom: 0.25rem;
}

.praman-pillar h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--praman-ink);
  margin-bottom: 0.3rem;
}

.praman-pillar p {
  color: var(--praman-ink-secondary);
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* ── Assurance bar ─────────────────────────────────────────── */
.praman-assurance {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.praman-assurance-item {
  font-size: 0.85rem;
  color: var(--praman-ink-secondary);
  font-weight: 500;
}

.praman-assurance-item span {
  color: var(--ifm-color-primary);
  margin-right: 0.3rem;
}

/* ── CTA section ───────────────────────────────────────────── */
.praman-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  color: var(--praman-ink);
}

.praman-cta p {
  color: var(--praman-ink-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ───────────────────────────────────────────────── */
.praman-btn {
  padding: 0.7rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-block;
}

/* Gold CTA button (primary action on white bg) */
.praman-btn-dark {
  background: var(--ifm-color-primary);
  color: #ffffff;
}

.praman-btn-dark:hover {
  background: var(--ifm-color-primary-dark);
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--praman-shadow-md);
}

/* Gold button for hero (on dark gradient bg) */
.praman-btn-hero-primary {
  background: var(--praman-gold);
  color: #1e3c72;
  font-weight: 700;
}

.praman-btn-hero-primary:hover {
  background: #e08e00;
  color: #1e3c72;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

/* Glass outline button for hero */
.praman-btn-hero-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.praman-btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
}

/* Light secondary button (white bg) */
.praman-btn-light {
  background: var(--praman-surface-alt);
  color: var(--praman-ink);
  border: 1px solid var(--praman-border);
}

[data-theme='dark'] .praman-btn-light {
  background: transparent;
  color: var(--praman-ink);
  border-color: #1e3864;
}

.praman-btn-light:hover {
  border-color: var(--ifm-color-primary);
  color: var(--praman-ink);
  text-decoration: none;
  box-shadow: var(--praman-shadow-sm);
}

/* ── Reports Section ───────────────────────────────────────── */

.praman-reports-outer {
  padding: 3.5rem 2rem 4rem;
  background: var(--ifm-background-color);
  border-top: 1px solid var(--praman-border);
}

/* 2×2 equal grid — 4 cards same size */
.praman-reports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Base card */
.praman-report-card {
  background: var(--ifm-background-color);
  border-radius: 10px;
  border-left: 5px solid #667eea;
  box-shadow: 0 2px 12px rgba(0, 112, 173, 0.09);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  /* Fixed height so all 4 cards are equal */
  min-height: 265px;
  box-sizing: border-box;
}

/* Left-border accent per card type */
.praman-report-card--blue   { border-left-color: #0070ad; }
.praman-report-card--purple { border-left-color: #667eea; }
.praman-report-card--dark   { border-left-color: #1e3c72; }
.praman-report-card--green  { border-left-color: #22c55e; }

.praman-report-card-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.praman-report-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.praman-report-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-text);
  margin: 0;
}

.praman-report-card-desc {
  font-size: 0.8rem;
  color: var(--praman-ink-secondary);
  line-height: 1.55;
  margin: 0;
}

.praman-report-card-sub {
  font-size: 0.75rem;
  color: var(--praman-ink-secondary);
  font-style: italic;
  margin: 0;
}

/* Card 1: role list */
.praman-report-role-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.praman-report-role-list li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.76rem;
  line-height: 1.4;
}

.praman-report-role-badge {
  display: inline-block;
  min-width: 84px;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  background: var(--praman-surface-alt);
  color: var(--capgemini-blue);
  font-weight: 700;
  font-size: 0.7rem;
  text-align: center;
  flex-shrink: 0;
}

.praman-report-role-kpi {
  color: var(--praman-ink-secondary);
  font-size: 0.74rem;
}

/* Card 2: metrics row */
.praman-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin: 0;
}

.praman-report-metric {
  text-align: center;
  background: var(--praman-surface-alt);
  border-radius: 6px;
  padding: 0.4rem 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.praman-report-metric-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--capgemini-blue);
  line-height: 1;
}

.praman-report-metric span:last-child {
  font-size: 0.62rem;
  color: var(--praman-ink-secondary);
  font-weight: 500;
}

/* Card 3: heatmap */
.praman-heatmap-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.praman-heatmap-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  row-gap: 0.2rem;
  column-gap: 0.5rem;
  align-items: center;
}

.praman-heatmap-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.72rem;
  color: var(--praman-ink);
  font-weight: 500;
  grid-column: 1;
}

.praman-heatmap-time {
  font-size: 0.68rem;
  color: var(--praman-ink-secondary);
  font-weight: 400;
}

.praman-heatmap-bar-track {
  grid-column: 1;
  height: 6px;
  background: var(--praman-surface-alt);
  border-radius: 3px;
  overflow: hidden;
}

.praman-heatmap-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.praman-heatmap-status {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  align-self: center;
  white-space: nowrap;
}

/* Card 4: evidence list */
.praman-report-evidence-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.praman-report-evidence-list li {
  font-size: 0.76rem;
  color: var(--praman-ink-secondary);
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1.4;
}

.praman-evidence-check {
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Prose pages (contributing, disclaimer, code-of-conduct, license, notice) ── */

.praman-prose-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.praman-prose-page h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--praman-ink);
  margin-bottom: 0.5rem;
}

.praman-prose-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--praman-ink);
  margin-bottom: 0.65rem;
  margin-top: 0;
}

.praman-prose-page h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--praman-ink);
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
}

.praman-prose-page p,
.praman-prose-page li {
  font-size: 0.95rem;
  color: var(--praman-ink-secondary);
  line-height: 1.7;
}

.praman-prose-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--praman-border);
}

.praman-prose-section:last-child {
  border-bottom: none;
}

/* Inline code pill */
.praman-prose-code {
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.84rem;
  background: var(--praman-surface-alt);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  color: var(--praman-ink);
  font-weight: 600;
  border: 1px solid var(--praman-border);
}

/* Dark code block */
.praman-prose-code-block {
  background: #1a3a6b;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.83rem;
  color: #e2e8f0;
  line-height: 1.6;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.praman-prose-code-block pre {
  margin: 0;
}

/* Tables */
.praman-prose-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.praman-prose-table th {
  text-align: left;
  padding: 0.55rem 0.75rem;
  background: var(--praman-surface-alt);
  border-bottom: 2px solid var(--ifm-color-primary);
  font-weight: 700;
  color: var(--praman-ink);
  font-size: 0.85rem;
}

.praman-prose-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--praman-border);
  color: var(--praman-ink-secondary);
  font-size: 0.88rem;
}

/* Attribution box (notice.tsx) */
.praman-prose-attr-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--praman-surface-alt);
  border-radius: 10px;
  border: 1px solid var(--praman-border);
  border-left: 4px solid var(--ifm-color-primary);
  margin-top: 1.5rem;
}

.praman-prose-attr-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--ifm-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.praman-prose-attr-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--praman-ink);
  margin-bottom: 0.3rem;
}

.praman-prose-attr-title a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ifm-color-primary);
  margin-left: 0.5rem;
}

/* License pre block */
.praman-prose-license {
  background: var(--praman-surface-alt);
  border: 1px solid var(--praman-border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
}

.praman-prose-license pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.84rem;
  color: var(--praman-ink);
  line-height: 1.6;
}

/* ── Global page consistency ───────────────────────────────── */
/* Override hardcoded inline styles on custom TSX pages.        */
/* Inline styles use hex colors (#0f172a, #334155, etc.)        */
/* that break in dark mode and look inconsistent in light mode. */
/* !important is needed to beat inline style specificity.       */

/* --- Light mode: ensure all pages use the design-token palette --- */

/* Page background: always white, no stray gray sections */
main {
  background-color: var(--ifm-background-color);
}

/* Text elements — replace hardcoded slate/gray hex values */
main h1, main h2, main h3, main h4 {
  color: var(--praman-ink) !important;
}

main p, main li, main span, main div {
  /* Only override when inline style sets a non-white text color.
     We use !important to beat inline styles but scope to main
     so nav, footer, hero remain untouched. */
}

/* Headings on all pages */
main:not(:has(.praman-hero-section)) h1,
main:not(:has(.praman-hero-section)) h2,
main:not(:has(.praman-hero-section)) h3,
main:not(:has(.praman-hero-section)) h4 {
  color: var(--praman-ink) !important;
}

/* Body text on all pages */
main:not(:has(.praman-hero-section)) p,
main:not(:has(.praman-hero-section)) li {
  color: var(--praman-ink-secondary) !important;
}

/* Table text on all pages */
main:not(:has(.praman-hero-section)) td,
main:not(:has(.praman-hero-section)) th {
  color: var(--praman-ink) !important;
}

/* Strong/bold elements inherit parent color */
main:not(:has(.praman-hero-section)) strong {
  color: var(--praman-ink) !important;
}

/* Light surface backgrounds — replace hardcoded #f8fafc, #f0fdfa, #e2e8f0 */
/* These map to the design token --praman-surface-alt in light mode */

/* --- Dark mode: comprehensive overrides --- */

/* Page background */
[data-theme='dark'] main {
  background-color: var(--ifm-background-color);
}

/* All text — exclude carousel which needs white text on gradient */
[data-theme='dark'] main h1:not(.praman-carousel-title),
[data-theme='dark'] main h2,
[data-theme='dark'] main h3,
[data-theme='dark'] main h4 {
  color: var(--praman-ink) !important;
}

[data-theme='dark'] main p:not(.praman-carousel-subtitle),
[data-theme='dark'] main li {
  color: var(--praman-ink-secondary) !important;
}

[data-theme='dark'] main td,
[data-theme='dark'] main th {
  color: var(--praman-ink) !important;
}

[data-theme='dark'] main strong {
  color: var(--praman-ink) !important;
}

/* All inline-styled elements: override hardcoded text colors.
   React renders `style="color: rgb(15, 23, 42)"` etc. The [style]
   attribute selector catches any element with an inline style. */
[data-theme='dark'] main div[style],
[data-theme='dark'] main span[style] {
  color: var(--praman-ink-secondary) !important;
}

[data-theme='dark'] main h1[style],
[data-theme='dark'] main h2[style],
[data-theme='dark'] main h3[style],
[data-theme='dark'] main h4[style] {
  color: var(--praman-ink) !important;
}

[data-theme='dark'] main p[style],
[data-theme='dark'] main li[style] {
  color: var(--praman-ink-secondary) !important;
}

[data-theme='dark'] main strong[style] {
  color: var(--praman-ink) !important;
}

/* Pre/code blocks — preserve intentionally dark code blocks (#1e293b) */
[data-theme='dark'] main pre {
  color: var(--praman-ink) !important;
}

/* Light surface backgrounds become dark surface.
   React inline: style="background: rgb(248, 250, 252)" etc.
   [style] catches all, then we override background. */
[data-theme='dark'] main div[style*="background"] {
  background-color: var(--praman-surface-alt) !important;
  border-color: var(--praman-border) !important;
}

/* Preserve hero/carousel/gradient backgrounds on index page */
[data-theme='dark'] .praman-hero-wrap,
[data-theme='dark'] .praman-hero-wrap div[style],
[data-theme='dark'] .praman-carousel div[style] {
  background-color: transparent !important;
  border-color: transparent !important;
}

/* Preserve intentional dark code blocks (#1e293b backgrounds) */
[data-theme='dark'] .praman-code-block {
  background: #0f1e3a !important;
  border-color: var(--praman-border) !important;
}

[data-theme='dark'] .praman-code-block pre,
[data-theme='dark'] .praman-code-block code {
  background: transparent !important;
  color: #e2e8f0 !important;
}

/* Code syntax coloring inside dark code blocks */
[data-theme='dark'] .praman-code-block .kw { color: #c4b5fd !important; }
[data-theme='dark'] .praman-code-block .str { color: #86efac !important; }
[data-theme='dark'] .praman-code-block .cmt { color: #94a3b8 !important; }
[data-theme='dark'] .praman-code-block .fn { color: #93c5fd !important; }

/* Table headers & rows */
[data-theme='dark'] main th[style] {
  background-color: var(--praman-surface-alt) !important;
  border-color: var(--praman-border) !important;
  color: var(--praman-ink) !important;
}

[data-theme='dark'] main td[style] {
  color: var(--praman-ink-secondary) !important;
  border-color: var(--praman-border) !important;
}

[data-theme='dark'] main tr[style] {
  background-color: var(--praman-surface-alt) !important;
}

[data-theme='dark'] main table {
  border-color: var(--praman-border) !important;
}

[data-theme='dark'] main td {
  border-color: var(--praman-border) !important;
}

/* Inline code pills — remap light grays to dark palette */
[data-theme='dark'] main code[style] {
  background: rgba(74, 169, 213, 0.12) !important;
  color: var(--ifm-color-primary-light) !important;
}

/* HR and borders */
[data-theme='dark'] main hr {
  border-color: var(--praman-border) !important;
}

/* ── Light-mode consistency ───────────────────────────────── */
/* Home page non-hero sections also need variable-based colors */

/* Sections on the home page below the hero carousel */
main:has(.praman-hero-section) .praman-section-title {
  color: var(--praman-ink) !important;
}

main:has(.praman-hero-section) .praman-section-label {
  color: var(--ifm-color-primary) !important;
}

/* Ensure architecture page inline styles use tokens in light mode too */
main h1[style], main h2[style], main h3[style] {
  color: var(--praman-ink) !important;
}

main p[style], main li[style] {
  color: var(--praman-ink-secondary) !important;
}

main div[style] {
  /* Don't override all divs in light mode — only dark mode needs this */
}

/* Feature parity table on /features page */
.praman-parity-table tbody tr:not(.praman-parity-section-row) td:first-child {
  color: var(--praman-ink) !important;
}

/* Persona cards */
main div[style*="border-top"] {
  border-color: var(--ifm-color-primary) !important;
}

/* ── Dark mode: unified page background ─────────────────────── */
/* All section wrappers use the same page background so there   */
/* are no alternating color bands. Only inner cards are raised. */

/* Section wrappers — match page background */
[data-theme='dark'] .praman-glance-outer,
[data-theme='dark'] .praman-reports-outer,
[data-theme='dark'] .praman-agent-flow-outer,
[data-theme='dark'] .praman-philosophy {
  background: var(--ifm-background-color);
}

/* Inner cards — subtle elevation above the flat background */
[data-theme='dark'] .praman-glance-section {
  background: var(--praman-surface-alt);
  box-shadow: 0 8px 32px rgba(74, 169, 213, 0.10);
  border: 1px solid var(--praman-border);
}

[data-theme='dark'] .praman-info-card {
  background: var(--praman-surface-alt);
  border-left-color: var(--praman-border);
  box-shadow: none;
}

[data-theme='dark'] .praman-info-card code {
  background: rgba(74, 169, 213, 0.12);
  color: var(--ifm-color-primary-light);
}

[data-theme='dark'] .praman-report-card {
  background: var(--praman-surface-alt);
  box-shadow: none;
}

[data-theme='dark'] .praman-reports-outer {
  border-top-color: var(--praman-border);
}

/* Text — fix variables with no dark-mode definition */
[data-theme='dark'] .praman-glance-title {
  color: var(--praman-ink);
}

[data-theme='dark'] .praman-info-card h4 {
  color: var(--ifm-color-primary-light);
}

[data-theme='dark'] .praman-info-card p {
  color: var(--praman-ink-secondary);
}

[data-theme='dark'] .praman-when-to-use-list li {
  color: var(--praman-ink-secondary);
}

[data-theme='dark'] .praman-when-to-use-list li::before {
  color: var(--ifm-color-primary-light);
}

[data-theme='dark'] .praman-report-card-title {
  color: var(--praman-ink);
}

/* ── Feature cards (docs pages) ────────────────────────────── */
.feature-card {
  background: var(--ifm-background-color);
  border: 1px solid var(--praman-border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.2s ease;
  box-shadow: var(--praman-shadow-sm);
}

.feature-card:hover {
  border-color: var(--ifm-color-primary-lighter);
  box-shadow: var(--praman-shadow-lg);
  transform: translateY(-2px);
}

[data-theme='dark'] .feature-card {
  background: #0f1e3a;
  border-color: #1e3864;
}

[data-theme='dark'] .feature-card:hover {
  border-color: rgba(74, 169, 213, 0.3);
  box-shadow: var(--praman-shadow-lg);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* ── Code blocks (Prism) ───────────────────────────────────── */
.prism-code {
  border-radius: 8px;
  border: 1px solid var(--praman-border);
}

/* ── Sidebar ───────────────────────────────────────────────── */
.menu__link {
  border-radius: 6px;
  transition: all 0.15s ease;
}

.menu__link--active {
  font-weight: 600;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer--dark {
  background: linear-gradient(180deg, #1e3c72 0%, #0d1f3c 100%);
}

.footer__logo {
  opacity: 0.85;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Carousel: switch from absolute fade to simple show/hide */
  .praman-carousel-inner {
    height: auto;
  }

  .praman-carousel-slide {
    position: relative;
    inset: auto;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: none;
  }

  .praman-carousel-slide.active {
    display: flex;
    pointer-events: auto;
    z-index: auto;
  }

  .praman-carousel-content {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 3.5rem;
    text-align: center;
    gap: 0;
  }

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

  .praman-carousel-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .praman-carousel-cta {
    justify-content: center;
  }

  .praman-carousel-visual {
    display: none;
  }

  .praman-carousel-arrow {
    display: none;
  }

  .praman-carousel-title {
    font-size: 1.85rem;
  }

  /* Agent flow: stack vertically on mobile */
  .praman-agent-flow-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .praman-flow-connector {
    display: none;
  }

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

@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .praman-carousel-title {
    font-size: 1.6rem;
  }

  .praman-reports-grid {
    grid-template-columns: 1fr;
  }

  .praman-report-card {
    min-height: auto;
  }

  .praman-glance-title {
    font-size: 1.9rem;
  }

  .praman-glance-section {
    padding: 30px 24px;
  }

  .praman-info-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .praman-usecase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .praman-usecase-footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .praman-pitch-grid,
  .praman-video-grid {
    grid-template-columns: 1fr;
  }

  .praman-pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .praman-pillars-grid {
    grid-template-columns: 1fr;
  }

  .praman-usecase-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Feature Parity Comparison table ──────────────────────── */
.praman-parity-wrap {
  padding: 4rem 2rem 5rem;
  background: var(--ifm-background-color);
  border-top: 1px solid var(--praman-border);
}

.praman-parity-inner {
  max-width: 860px;
  margin: 0 auto;
}

.praman-parity-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.praman-parity-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--praman-ink);
  margin-bottom: 0.5rem;
}

.praman-parity-header p {
  color: var(--praman-ink-secondary);
  font-size: 0.92rem;
}

.praman-parity-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--praman-border);
  box-shadow: var(--praman-shadow-sm);
}

.praman-parity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.praman-parity-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--ifm-color-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.praman-parity-table thead th:first-child {
  width: 30%;
}

.praman-parity-section-row td {
  background: var(--praman-surface-alt);
  color: var(--praman-ink);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.55rem 1rem;
}

.praman-parity-table tbody tr:not(.praman-parity-section-row):hover {
  background: var(--praman-surface-alt);
}

.praman-parity-table tbody tr:not(.praman-parity-section-row) td {
  padding: 0.62rem 1rem;
  border-bottom: 1px solid var(--praman-border);
  vertical-align: middle;
  color: var(--praman-ink-secondary);
}

.praman-parity-table tbody tr:not(.praman-parity-section-row) td:first-child {
  color: var(--praman-ink);
  font-weight: 500;
}

.praman-parity-check {
  color: #16a34a;
  font-weight: 700;
}

.praman-parity-partial {
  color: #d97706;
  font-weight: 700;
}

.praman-parity-no {
  color: #dc2626;
  font-weight: 700;
}

.praman-parity-col--praman {
  background: rgba(0, 112, 173, 0.04);
}

[data-theme='dark'] .praman-parity-col--praman {
  background: rgba(74, 169, 213, 0.06);
}

[data-theme='dark'] .praman-parity-check { color: #4ade80; }
[data-theme='dark'] .praman-parity-partial { color: #fbbf24; }
[data-theme='dark'] .praman-parity-no { color: #f87171; }

/* ═══════════════════════════════════════════════════════════
   Example Reports Page
   ═══════════════════════════════════════════════════════════ */

.er-page { background: var(--ifm-background-color); }

/* Hero */
.er-hero {
  text-align: center;
  padding: 5rem 2rem 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.er-hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--praman-ink);
  margin-bottom: 0.75rem;
}
.er-hero-subtitle {
  font-size: 1rem;
  color: var(--praman-ink-secondary);
  line-height: 1.7;
}

/* Gallery */
.er-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}
.er-gallery-card {
  border: 1px solid var(--praman-border);
  border-radius: 10px;
  padding: 1.2rem;
  background: var(--ifm-background-surface-color);
  opacity: 0.55;
  transition: box-shadow 0.2s;
}
.er-gallery-card--active {
  opacity: 1;
  border-color: var(--ifm-color-primary);
  box-shadow: 0 0 0 2px rgba(0, 112, 173, 0.12);
}
.er-gallery-card-top { margin-bottom: 0.5rem; }
.er-gallery-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--praman-ink);
}
.er-gallery-scope {
  font-size: 0.75rem;
  color: var(--praman-ink-secondary);
  margin: 0 0 0.5rem;
}
.er-gallery-rate { margin-top: 0.5rem; }

/* Report container */
.er-report-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

/* Header */
.er-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0070ad 100%);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
}
.er-header-inner { max-width: 100%; }
.er-header-top {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.er-header-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: #fff;
}
.er-header-subtitle {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}
.er-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}
.er-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.er-meta-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
}
.er-meta-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

/* Badges */
.er-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.er-badge--blue { background: rgba(59,130,246,0.25); color: #93c5fd; }
.er-badge--outline { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); }
.er-badge--green { background: rgba(34,197,94,0.15); color: #22c55e; }
.er-badge--gray { background: rgba(148,163,184,0.15); color: #94a3b8; }

/* Sections */
.er-section {
  margin-bottom: 2.5rem;
}
.er-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--praman-ink);
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ifm-color-primary);
  display: inline-block;
}
.er-section-desc {
  font-size: 0.84rem;
  color: var(--praman-ink-secondary);
  margin: 0 0 1.25rem;
}

/* Summary cards */
.er-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.er-summary-card {
  text-align: center;
  padding: 1.2rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--praman-border);
  background: var(--ifm-background-surface-color);
}
.er-summary-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.er-summary-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--praman-ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Module chips */
.er-modules-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.er-modules-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--praman-ink-secondary);
  margin-right: 0.25rem;
}
.er-module-chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 112, 173, 0.08);
  color: var(--ifm-color-primary);
  border: 1px solid rgba(0, 112, 173, 0.2);
}

/* Module result cards */
.er-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.er-module-card {
  border: 1px solid var(--praman-border);
  border-left: 4px solid;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  background: var(--ifm-background-surface-color);
}
.er-module-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.er-module-id {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--praman-ink-secondary);
  letter-spacing: 0.04em;
}
.er-status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}
.er-module-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  color: var(--praman-ink);
}
.er-module-desc {
  font-size: 0.76rem;
  color: var(--praman-ink-secondary);
  margin: 0 0 0.6rem;
  line-height: 1.5;
}
.er-module-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.72rem;
  color: var(--praman-ink-secondary);
  margin-bottom: 0.5rem;
}
.er-module-progress-track {
  height: 4px;
  border-radius: 2px;
  background: var(--praman-border);
}
.er-module-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s;
}

/* Business flow cards */
.er-flows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.er-flow-card {
  border: 1px solid var(--praman-border);
  border-radius: 10px;
  padding: 1.2rem;
  background: var(--ifm-background-surface-color);
}
.er-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.er-flow-name {
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  color: var(--praman-ink);
}
.er-flow-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--praman-ink-secondary);
}
.er-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.er-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.er-flow-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 18px;
}
.er-flow-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.er-flow-connector {
  width: 2px;
  height: 18px;
  opacity: 0.3;
}
.er-flow-step-label {
  font-size: 0.76rem;
  color: var(--praman-ink);
  padding-top: 1px;
  line-height: 1.4;
}

/* Tables */
.er-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--praman-border);
  border-radius: 8px;
}
.er-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.er-table thead th {
  background: var(--ifm-color-primary);
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.er-table tbody td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--praman-border);
  color: var(--praman-ink);
}
.er-table tbody tr:last-child td { border-bottom: none; }
.er-table tbody tr:hover { background: rgba(0, 112, 173, 0.03); }
.er-check-label { font-weight: 600; }
.er-check-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.75rem; }
.er-data-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid;
  white-space: nowrap;
}

/* Rate bars */
.er-rate-bar-wrap { display: flex; align-items: center; gap: 0.5rem; }
.er-rate-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--praman-border);
  overflow: hidden;
}
.er-rate-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.er-rate-label { font-size: 0.72rem; font-weight: 600; color: var(--praman-ink-secondary); min-width: 32px; }

/* Grade */
.er-grade {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1.5px solid;
}

/* Performance KPIs */
.er-perf-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.er-perf-kpi {
  text-align: center;
  padding: 0.8rem;
  border-radius: 8px;
  background: var(--ifm-background-surface-color);
  border: 1px solid var(--praman-border);
}
.er-perf-kpi-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ifm-color-primary);
}
.er-perf-kpi-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--praman-ink-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Compliance rings */
.er-compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.er-compliance-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--praman-border);
  background: var(--ifm-background-surface-color);
}
.er-compliance-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 0.75rem;
}
.er-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.er-ring-bg {
  fill: none;
  stroke: var(--praman-border);
  stroke-width: 3;
}
.er-ring-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}
.er-ring-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--praman-ink);
}
.er-compliance-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--praman-ink);
}
.er-compliance-detail {
  font-size: 0.72rem;
  color: var(--praman-ink-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Artifact cards */
.er-artifacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}
.er-artifact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--praman-border);
  background: var(--ifm-background-surface-color);
}
.er-artifact-icon { font-size: 1.3rem; flex-shrink: 0; }
.er-artifact-label { font-size: 0.8rem; font-weight: 700; color: var(--praman-ink); }
.er-artifact-desc { font-size: 0.7rem; color: var(--praman-ink-secondary); }
.er-artifact-format {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(0,112,173,0.08);
  color: var(--ifm-color-primary);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Footer CTA */
.er-footer-cta {
  text-align: center;
  padding: 3rem 2rem 4rem;
  max-width: 600px;
  margin: 0 auto;
}
.er-footer-cta h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--praman-ink);
  margin-bottom: 0.5rem;
}
.er-footer-cta p {
  font-size: 0.88rem;
  color: var(--praman-ink-secondary);
  margin-bottom: 1.5rem;
}
.er-cta-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.er-cta-btn:hover { opacity: 0.85; text-decoration: none; }
.er-cta-btn--primary {
  background: var(--ifm-color-primary);
  color: #fff;
}
.er-cta-btn--outline {
  border: 1.5px solid var(--ifm-color-primary);
  color: var(--ifm-color-primary);
}

/* ── Business Process Test Documentation ── */
.er-process-docs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.er-process-card {
  border: 1px solid var(--praman-border);
  border-radius: 10px;
  padding: 1.5rem;
  background: var(--ifm-background-surface-color);
}
.er-process-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.er-process-tcode {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ifm-color-primary);
  background: rgba(0,112,173,0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.er-process-meta-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.er-process-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--ifm-background-color);
  border: 1px solid var(--praman-border);
  color: var(--praman-ink-secondary);
}
.er-process-desc {
  font-size: 0.82rem;
  color: var(--praman-ink);
  margin: 0 0 0.75rem;
  font-weight: 500;
}
.er-process-conditions {
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  background: rgba(0,112,173,0.03);
  border: 1px solid rgba(0,112,173,0.08);
}
.er-process-conditions--post {
  background: rgba(34,197,94,0.03);
  border-color: rgba(34,197,94,0.12);
}
.er-process-conditions-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--praman-ink-secondary);
  margin: 0 0 0.3rem;
}
.er-process-condition-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.75rem;
  color: var(--praman-ink);
  line-height: 1.7;
}
.er-process-table td {
  font-size: 0.74rem;
  line-height: 1.5;
}
.er-process-expected { color: var(--praman-ink-secondary); }
.er-process-actual { font-weight: 500; }
.er-row-fail { background: rgba(239,68,68,0.04); }
.er-row-warn { background: rgba(245,158,11,0.04); }

/* ── Comprehensive Data Integrity ── */
.er-integrity-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: var(--ifm-background-surface-color);
  border: 1px solid var(--praman-border);
  margin-bottom: 1.5rem;
  align-items: center;
}
.er-integrity-stat {
  font-size: 0.78rem;
  color: var(--praman-ink-secondary);
}
.er-integrity-module {
  margin-bottom: 1.25rem;
}
.er-integrity-module-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--praman-ink);
  margin: 0 0 0.5rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--ifm-color-primary);
}

/* ── Business Rules Compliance ── */
.er-compliance-score-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.er-compliance-score-card {
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--praman-border);
  background: var(--ifm-background-surface-color);
}
.er-compliance-score-pct {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.er-compliance-score-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--praman-ink);
  margin-bottom: 0.15rem;
}
.er-compliance-score-detail {
  font-size: 0.68rem;
  color: var(--praman-ink-secondary);
}
.er-compliance-status-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid;
  white-space: nowrap;
}
.er-compliance-table td { vertical-align: top; }

/* Dark mode overrides */
[data-theme='dark'] .er-header { background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0e4d73 100%); }
[data-theme='dark'] .er-summary-card,
[data-theme='dark'] .er-module-card,
[data-theme='dark'] .er-flow-card,
[data-theme='dark'] .er-compliance-card,
[data-theme='dark'] .er-artifact-card,
[data-theme='dark'] .er-perf-kpi,
[data-theme='dark'] .er-gallery-card,
[data-theme='dark'] .er-process-card,
[data-theme='dark'] .er-compliance-score-card,
[data-theme='dark'] .er-integrity-summary { background: var(--ifm-background-surface-color); }

/* ── Ask AI Floating Button ────────────────────────────────── */
.ask-ai-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  font-family: var(--ifm-font-family-base);
}

.ask-ai-fab {
  height: 44px;
  padding: 0 1rem 0 0.75rem;
  border-radius: 22px;
  border: none;
  background: var(--gradient-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 4px 16px rgba(30, 60, 114, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ask-ai-fab-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ask-ai-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(30, 60, 114, 0.45);
}
.ask-ai-fab:active {
  transform: scale(0.96);
}

/* Popover */
.ask-ai-popover {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: 260px;
  background: var(--ifm-background-color);
  border: 1px solid var(--praman-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(30, 60, 114, 0.18);
  overflow: hidden;
  animation: askAiFadeIn 0.15s ease-out;
}
@keyframes askAiFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ask-ai-popover-header {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--praman-ink);
  border-bottom: 1px solid var(--praman-border);
  letter-spacing: 0.02em;
}
[data-theme='dark'] .ask-ai-popover-header {
  color: var(--ifm-color-primary-lightest);
}

.ask-ai-popover-body {
  padding: 0.5rem;
}

/* Provider buttons */
.ask-ai-provider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ifm-font-color-base);
  transition: background 0.15s ease;
}
.ask-ai-provider:hover {
  background: var(--praman-surface-alt);
}
[data-theme='dark'] .ask-ai-provider:hover {
  background: rgba(74, 169, 213, 0.1);
}

.ask-ai-provider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--provider-color) 12%, transparent);
  color: var(--provider-color);
  flex-shrink: 0;
}

.ask-ai-provider-name {
  flex: 1;
  text-align: left;
}

.ask-ai-provider-arrow {
  font-size: 0.8rem;
  color: var(--praman-ink-secondary);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.ask-ai-provider:hover .ask-ai-provider-arrow {
  opacity: 1;
}

.ask-ai-popover-footer {
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  color: var(--praman-ink-secondary);
  border-top: 1px solid var(--praman-border);
  text-align: center;
}
