/* ============================================================================
   embedded-insurance-hub.css -- shared styles for the Embedded Insurance
   Marketplace Hub subpages.
   ----------------------------------------------------------------------------
   Why this file exists.
   The v19 zip included four subpages (insurance-producer-risk-quiz,
   eu-idd-comparison, us-producer-licensing-guide, compensation-models) that
   still carried ~9-11 KB of inline CSS each, plus eager Google Analytics and
   scattered style="..." attributes. v20 lifts the shared chrome here and
   keeps each page's inline <style> block under 500 bytes.

   Token discipline.
   All colors, spacing, and type sizes route through firm.css tokens
   (var(--accent), var(--text-primary), var(--surface-elevated),
   var(--border), var(--text-secondary), var(--text-tertiary), var(--surface),
   the --space-* scale, and the --text-* scale). The teal hub accent stays
   internal to the hub-scoped variables defined in the :root block below, so
   no per-rule hex values leak out.

   Voice notes (apply to copy that lives next to these classes).
   First-person "I" -- never "we." No em dashes. Brand "AI Legal Analyst"
   never "AI Lawyer." 44px tap targets, single-column below 768px.
   ========================================================================== */

:root {
  /* Hub-scoped teal accent + status palette. Defined once here, consumed by
     the .eih-* classes only. Not exported beyond this file. */
  --eih-teal-50:    #f0fdfa;
  --eih-teal-100:   #ccfbf1;
  --eih-teal-200:   #99f6e4;
  --eih-teal-300:   #5eead4;
  --eih-teal-400:   #2dd4bf;
  --eih-teal-500:   #14b8a6;
  --eih-teal-600:   #0d9488;
  --eih-teal-700:   #0f766e;
  --eih-teal-800:   #115e59;
  --eih-teal-900:   #134e4a;
  --eih-success:    #10b981;
  --eih-success-bg: #d1fae5;
  --eih-success-fg: #065f46;
  --eih-warning:    #f59e0b;
  --eih-warning-bg: #fef3c7;
  --eih-warning-fg: #92400e;
  --eih-warning-mid:#fde68a;
  --eih-warning-text:#78350f;
  --eih-danger:     #ef4444;
  --eih-danger-bg:  #fef2f2;
  --eih-danger-bg2: #fee2e2;
  --eih-danger-fg:  #b91c1c;
  --eih-danger-fg2: #991b1b;
  --eih-danger-border:#fca5a5;
  --eih-info-bg:    #eff6ff;
  --eih-info-bg2:   #dbeafe;
  --eih-info-fg:    #1e40af;
  --eih-info-fg2:   #1e3a8a;
  --eih-info-border:#93c5fd;
  --eih-info-light: #a3c9f1;
}

/* ============================================================================
   PAGE SHELL
   ============================================================================ */

.eih-page {
  margin: 0;
  font-family: var(--font-family);
  background: #f8fafc;
  color: #334155;
  line-height: 1.6;
}
.eih-page *,
.eih-page *::before,
.eih-page *::after { box-sizing: border-box; }

/* ----------------------------------------------------------------------------
   Site header. Dark teal gradient matches the parent hub.
   ---------------------------------------------------------------------------- */
.eih-header {
  background: linear-gradient(135deg, var(--eih-teal-900) 0%, var(--eih-teal-800) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
}
.eih-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}
.eih-logo-group { display: flex; align-items: center; gap: 1rem; }
.eih-site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--eih-teal-300) 0%, var(--eih-teal-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.eih-hub-badge {
  color: var(--eih-teal-200);
  font-size: var(--text-sm);
  font-weight: 500;
  padding-left: 1rem;
  border-left: 1px solid var(--eih-teal-700);
}
.eih-nav-links { display: flex; gap: 2rem; }
.eih-nav-links a {
  color: var(--eih-teal-200);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.eih-nav-links a:hover { color: #fff; }

/* ----------------------------------------------------------------------------
   Hub sub-nav strip
   ---------------------------------------------------------------------------- */
.eih-hub-nav {
  background: var(--surface-elevated);
  border-bottom: 1px solid #e2e8f0;
}
.eih-hub-nav-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  overflow-x: auto;
}
.eih-hub-nav a {
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.eih-hub-nav a:hover,
.eih-hub-nav a.active {
  color: var(--eih-teal-600);
  background: var(--eih-teal-50);
}
.eih-hub-nav a.active { border-bottom-color: var(--eih-teal-600); }

/* ----------------------------------------------------------------------------
   Hero band. Teal version (default) + EU/IDD blue variant.
   ---------------------------------------------------------------------------- */
.eih-hero {
  background: linear-gradient(135deg, var(--eih-teal-900) 0%, var(--eih-teal-700) 50%, var(--eih-teal-600) 100%);
  padding: 3rem 2rem;
  color: #fff;
}
.eih-hero-quiz { padding: 2.5rem 2rem; text-align: center; }
.eih-hero-eu {
  background: linear-gradient(135deg, #1e3a5f 0%, #003399 50%, #0055a4 100%);
}
.eih-hero-content { max-width: 900px; margin: 0 auto; text-align: center; }
.eih-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--eih-teal-300);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.eih-hero-badge-eu {
  background: rgba(255,204,0,0.2);
  color: #ffcc00;
}
.eih-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 auto 0.75rem;
  max-width: 800px;
}
.eih-hero-title-quiz { font-size: 2rem; }
.eih-hero-subtitle {
  font-size: 1.1rem;
  color: var(--eih-teal-200);
  max-width: 600px;
  margin: 0 auto;
}
.eih-hero-subtitle-eu { color: var(--eih-info-light); }

/* ----------------------------------------------------------------------------
   Main container + sidebar layout
   ---------------------------------------------------------------------------- */
.eih-main { max-width: 900px; margin: 0 auto; padding: 2rem; }
.eih-page-layout { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; }
.eih-sidenav { position: sticky; top: 80px; height: fit-content; }
.eih-sidenav-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.eih-sidenav-links { display: flex; flex-direction: column; gap: 0.25rem; }
.eih-sidenav-links a {
  font-size: var(--text-sm);
  color: #64748b;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-left: 2px solid #e2e8f0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.eih-sidenav-links a:hover,
.eih-sidenav-links a.active {
  color: var(--eih-teal-600);
  border-left-color: var(--eih-teal-600);
  background: var(--eih-teal-50);
}
.eih-sidenav-links a.active { font-weight: 600; }

/* ============================================================================
   CARDS, BOXES, AND CONTENT BLOCKS
   ============================================================================ */

.eih-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--eih-teal-600);
}

.eih-card {
  background: var(--surface-elevated);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}
.eih-card p { margin-bottom: 1rem; }
.eih-card p:last-child { margin-bottom: 0; }
.eih-card ul,
.eih-card ol { margin: 0 0 1rem 1.5rem; }
.eih-card li { margin-bottom: 0.5rem; }

.eih-intro-card {
  background: linear-gradient(135deg, var(--eih-teal-50) 0%, var(--eih-teal-100) 100%);
  border: 2px solid var(--eih-teal-300);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.eih-intro-card p {
  font-size: 1.05rem;
  color: var(--eih-teal-900);
  margin-bottom: 1rem;
}
.eih-intro-card p:last-child { margin-bottom: 0; }

.eih-definition-box {
  background: linear-gradient(135deg, var(--eih-teal-50) 0%, var(--eih-teal-100) 100%);
  border: 2px solid var(--eih-teal-300);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.eih-definition-term {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eih-teal-900);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eih-definition-text { font-size: 0.95rem; color: var(--eih-teal-700); }
.eih-definition-text ul { margin: 0.75rem 0 0 1.25rem; }
.eih-definition-text li { margin-bottom: 0.35rem; }

.eih-warning-box {
  background: linear-gradient(135deg, var(--eih-danger-bg), var(--eih-danger-bg2));
  border: 2px solid var(--eih-danger-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.eih-warning-title {
  font-weight: 700;
  color: var(--eih-danger-fg);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eih-warning-box p { color: var(--eih-danger-fg2); font-size: 0.95rem; }

.eih-info-box {
  background: linear-gradient(135deg, var(--eih-info-bg), var(--eih-info-bg2));
  border: 2px solid var(--eih-info-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.eih-info-title {
  font-weight: 700;
  color: var(--eih-info-fg);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eih-info-box p { color: var(--eih-info-fg2); font-size: 0.95rem; }
.eih-info-box ul {
  margin: 0.5rem 0 0 1.25rem;
  color: var(--eih-info-fg2);
  font-size: 0.95rem;
}

.eih-success-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #6ee7b7;
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.eih-success-title {
  font-weight: 700;
  color: var(--eih-success-fg);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eih-success-box p,
.eih-success-box ul { color: #047857; font-size: 0.95rem; }
.eih-success-box ul { margin: 0.5rem 0 0 1.25rem; }
.eih-success-box li { margin-bottom: 0.35rem; }

.eih-eu-box {
  background: linear-gradient(135deg, var(--eih-info-bg) 0%, var(--eih-info-bg2) 100%);
  border: 2px solid #60a5fa;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.eih-eu-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eih-info-fg);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eih-eu-content { font-size: 0.95rem; color: var(--eih-info-fg2); }
.eih-eu-content ul { margin: 0.5rem 0 0 1.25rem; }
.eih-eu-content li { margin-bottom: 0.35rem; }

.eih-uk-box {
  background: linear-gradient(135deg, var(--eih-warning-bg) 0%, var(--eih-warning-mid) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.eih-uk-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eih-warning-fg);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eih-uk-content { font-size: 0.95rem; color: var(--eih-warning-text); }
.eih-uk-content ul { margin: 0.5rem 0 0 1.25rem; }
.eih-uk-content li { margin-bottom: 0.35rem; }

.eih-ca-box {
  background: linear-gradient(135deg, var(--eih-warning-bg) 0%, var(--eih-warning-mid) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.eih-ca-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--eih-warning-fg);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eih-ca-content { font-size: 0.95rem; color: var(--eih-warning-text); }
.eih-ca-content ul { margin: 0.5rem 0 0 1.25rem; }
.eih-ca-content li { margin-bottom: 0.35rem; }

.eih-ca-quote {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
  font-style: italic;
}

/* ============================================================================
   ACCORDION
   ============================================================================ */
.eih-accordion {
  background: var(--surface-elevated);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.eih-accordion-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  min-height: 44px;
  transition: background 0.2s;
}
.eih-accordion-header:hover { background: var(--eih-teal-50); }
.eih-accordion-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eih-accordion-icon { color: #64748b; transition: transform 0.3s; }
.eih-accordion.open .eih-accordion-icon { transform: rotate(180deg); }
.eih-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.eih-accordion.open .eih-accordion-content { max-height: 3000px; }
.eih-accordion-body {
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
}
.eih-accordion-body p { margin-bottom: 1rem; color: #334155; }
.eih-accordion-body ul { margin: 0 0 1rem 1.5rem; }
.eih-accordion-body li { margin-bottom: 0.5rem; color: #334155; }

/* ============================================================================
   COMPARISON TABLE
   ============================================================================ */
.eih-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--surface-elevated);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 0.9rem;
}
.eih-comparison-table th,
.eih-comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}
.eih-comparison-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.85rem;
}
.eih-comparison-table td { color: #334155; }
.eih-comparison-table tr:last-child td { border-bottom: none; }
.eih-col-aspect { width: 25%; }
.eih-col-half { width: 37.5%; }

.eih-flag-us {
  display: inline-block;
  width: 20px;
  height: 14px;
  background: linear-gradient(180deg, #bf0a30 0%, #bf0a30 7.7%, #fff 7.7%, #fff 15.4%, #bf0a30 15.4%, #bf0a30 23.1%, #fff 23.1%, #fff 30.8%, #bf0a30 30.8%, #bf0a30 38.5%, #fff 38.5%, #fff 46.2%, #bf0a30 46.2%, #bf0a30 53.8%, #fff 53.8%, #fff 61.5%, #bf0a30 61.5%, #bf0a30 69.2%, #fff 69.2%, #fff 76.9%, #bf0a30 76.9%, #bf0a30 84.6%, #fff 84.6%, #fff 92.3%, #bf0a30 92.3%);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 6px;
}
.eih-flag-eu {
  display: inline-block;
  width: 20px;
  height: 14px;
  background: #003399;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 6px;
}
.eih-flag-uk {
  display: inline-block;
  width: 20px;
  height: 14px;
  background: #012169;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 6px;
}

.eih-table-footnote {
  font-size: var(--text-sm);
  color: #64748b;
  margin-top: -0.5rem;
}

/* ============================================================================
   COMPENSATION-MODELS PAGE: MODEL CARDS + DO/DONT GRID
   ============================================================================ */
.eih-comp-model-card {
  background: var(--surface-elevated);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid #e2e8f0;
}
.eih-comp-model-card.green { border-color: var(--eih-success); }
.eih-comp-model-card.yellow { border-color: var(--eih-warning); }
.eih-comp-model-card.red { border-color: var(--eih-danger); }
.eih-comp-model-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.eih-comp-model-icon { font-size: 2rem; }
.eih-comp-model-title-group { flex: 1; }
.eih-comp-model-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}
.eih-comp-model-subtitle {
  font-size: var(--text-sm);
  color: #64748b;
}
.eih-comp-risk-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}
.eih-comp-risk-badge.low { background: var(--eih-success-bg); color: var(--eih-success-fg); }
.eih-comp-risk-badge.medium { background: var(--eih-warning-bg); color: var(--eih-warning-fg); }
.eih-comp-risk-badge.high { background: var(--eih-danger-bg2); color: var(--eih-danger-fg); }
.eih-comp-model-body { color: #334155; }
.eih-comp-model-body p { margin-bottom: 0.75rem; font-size: 0.95rem; }
.eih-comp-model-body ul { margin: 0 0 1rem 1.25rem; }
.eih-comp-model-body li { margin-bottom: 0.35rem; font-size: 0.9rem; }

.eih-do-dont-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.eih-do-box,
.eih-dont-box { padding: 1rem; border-radius: 8px; }
.eih-do-box { background: #f0fdf4; border: 1px solid #86efac; }
.eih-dont-box { background: var(--eih-danger-bg); border: 1px solid var(--eih-danger-border); }
.eih-do-box-title {
  font-weight: 700;
  color: var(--eih-success-fg);
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
}
.eih-dont-box-title {
  font-weight: 700;
  color: var(--eih-danger-fg);
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
}
.eih-do-box ul,
.eih-dont-box ul { margin-left: 1rem; font-size: var(--text-sm); }
.eih-do-box li { color: #047857; margin-bottom: 0.25rem; }
.eih-dont-box li { color: var(--eih-danger-fg2); margin-bottom: 0.25rem; }

.eih-sample-quote {
  font-style: italic;
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* ============================================================================
   RISK-QUIZ PAGE: SCORE + QUIZ SECTIONS + RESULTS
   ============================================================================ */
.eih-score-card {
  background: var(--surface-elevated);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
  margin-bottom: 2rem;
}
.eih-score-circle {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 10px solid #e2e8f0;
  transition: border-color 0.4s ease;
}
.eih-score-circle.green { border-color: var(--eih-success); }
.eih-score-circle.yellow { border-color: var(--eih-warning); }
.eih-score-circle.red { border-color: var(--eih-danger); }
.eih-score-number {
  font-size: 3rem;
  font-weight: 800;
  color: #0f172a;
  transition: color 0.4s;
}
.eih-score-circle.green .eih-score-number { color: var(--eih-success); }
.eih-score-circle.yellow .eih-score-number { color: var(--eih-warning); }
.eih-score-circle.red .eih-score-number { color: var(--eih-danger); }
.eih-score-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.eih-score-status {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.eih-score-desc {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 500px;
  margin: 0 auto;
}

.eih-model-rec {
  background: linear-gradient(135deg, var(--eih-teal-50), var(--eih-teal-100));
  border: 2px solid var(--eih-teal-600);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  display: none;
}
.eih-model-rec.visible { display: block; }
.eih-model-rec-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--eih-teal-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.eih-model-rec-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}
.eih-model-rec-desc { font-size: 0.9rem; color: #334155; }

.eih-quiz-section {
  background: var(--surface-elevated);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.eih-quiz-section-header {
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}
.eih-quiz-section-header:hover { background: #f1f5f9; }
.eih-quiz-section-title-group { display: flex; align-items: center; gap: 0.75rem; }
.eih-quiz-section-icon { font-size: 1.25rem; }
.eih-quiz-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}
.eih-quiz-section-progress { font-size: var(--text-sm); color: #64748b; }
.eih-quiz-section-toggle {
  width: 28px;
  height: 28px;
  background: #e2e8f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.eih-quiz-section.open .eih-quiz-section-toggle { transform: rotate(180deg); }

.eih-quiz-section-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.eih-quiz-section.open .eih-quiz-section-content { max-height: 3000px; }
.eih-quiz-section-body { padding: 1.5rem; }

.eih-quiz-item {
  padding: 1.25rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  transition: border-color 0.2s, background 0.2s;
}
.eih-quiz-item.answered {
  border-color: var(--eih-teal-600);
  background: var(--eih-teal-50);
}
.eih-quiz-item.high-risk {
  border-color: var(--eih-danger);
  background: var(--eih-danger-bg);
}
.eih-question-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--eih-teal-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.eih-question-text {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
.eih-question-helper {
  font-size: var(--text-sm);
  color: #64748b;
  margin-bottom: 1rem;
}

.eih-options-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.eih-option-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface-elevated);
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  text-align: left;
  font-size: 0.9rem;
  color: #334155;
  min-height: 44px;
  font-family: inherit;
  width: 100%;
}
.eih-option-btn:hover { border-color: var(--eih-teal-600); background: var(--eih-teal-50); }
.eih-option-btn.selected {
  border-color: var(--eih-teal-600);
  background: var(--eih-teal-100);
  color: #0f172a;
  font-weight: 500;
}
.eih-option-btn.selected.high-risk {
  border-color: var(--eih-danger);
  background: var(--eih-danger-bg2);
}
.eih-option-indicator {
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}
.eih-option-btn.selected .eih-option-indicator {
  border-color: var(--eih-teal-600);
  background: var(--eih-teal-600);
}
.eih-option-btn.selected.high-risk .eih-option-indicator {
  border-color: var(--eih-danger);
  background: var(--eih-danger);
}
.eih-option-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--surface-elevated);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}
.eih-option-btn.selected .eih-option-indicator::after { opacity: 1; }

.eih-results-section {
  background: var(--surface-elevated);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-top: 2rem;
  display: none;
}
.eih-results-section.visible { display: block; }
.eih-results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eih-results-sub { margin-bottom: 1.5rem; }
.eih-results-sub-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.eih-key-drivers { display: flex; flex-direction: column; gap: 0.5rem; }
.eih-driver-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
}
.eih-driver-icon { font-size: 1.1rem; flex-shrink: 0; }
.eih-driver-text { font-size: 0.9rem; color: #334155; }

.eih-priority-fixes { list-style: none; padding: 0; margin: 0; }
.eih-priority-fixes li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.eih-priority-fixes li:last-child { border-bottom: none; }
.eih-fix-number {
  width: 24px;
  height: 24px;
  background: var(--eih-teal-600);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
}
.eih-fix-text { font-size: 0.9rem; color: #334155; }

.eih-hard-trigger {
  background: linear-gradient(135deg, var(--eih-danger-bg), var(--eih-danger-bg2));
  border: 2px solid var(--eih-danger);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: none;
}
.eih-hard-trigger.visible { display: block; }
.eih-hard-trigger-title {
  font-weight: 700;
  color: var(--eih-danger-fg);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.eih-hard-trigger-text { font-size: 0.95rem; color: var(--eih-danger-fg2); }

/* ============================================================================
   CTA BLOCK + DISCLAIMER + FOOTER
   ============================================================================ */
.eih-cta-block {
  background: linear-gradient(135deg, var(--eih-teal-900) 0%, var(--eih-teal-800) 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  color: #fff;
  text-align: center;
}
.eih-cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.eih-cta-desc {
  color: var(--eih-teal-200);
  margin-bottom: 1.5rem;
}
.eih-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--eih-teal-400);
  color: var(--eih-teal-900);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 0;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s, transform 0.2s;
}
.eih-cta-btn:hover { background: var(--eih-teal-300); transform: translateY(-2px); }

.eih-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem;
  text-align: center;
  font-size: var(--text-sm);
  margin-top: 3rem;
}
.eih-footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.eih-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.eih-footer-links a:hover { color: #fff; }
.eih-footer-bar-link { color: #94a3b8; text-decoration: none; }
.eih-footer-bar-link:hover { color: #fff; }

/* ============================================================================
   RESPONSIVE: collapse to single column below 768px
   ============================================================================ */
@media (max-width: 800px) {
  .eih-page-layout { grid-template-columns: 1fr; }
  .eih-sidenav { display: none; }
}
@media (max-width: 768px) {
  .eih-hero-title { font-size: 1.65rem; }
  .eih-hero-title-quiz { font-size: 1.5rem; }
  .eih-main { padding: 1.25rem; }
  .eih-card,
  .eih-comp-model-card,
  .eih-quiz-section,
  .eih-score-card,
  .eih-results-section { padding: 1.25rem; }
  .eih-do-dont-grid { grid-template-columns: 1fr; }
  .eih-comparison-table th,
  .eih-comparison-table td { padding: 0.6rem; font-size: var(--text-sm); }
}

@media print {
  .eih-header,
  .eih-hub-nav,
  .eih-footer,
  .eih-sidenav { display: none; }
  .eih-page-layout { grid-template-columns: 1fr; }
  .eih-accordion-content { max-height: none !important; }
}
