.er-prov {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 16px;
  background-color: #fafafa;
  font-size: 0.9rem;
}

.er-prov-section-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.er-prov-question-text {
  white-space: pre-wrap;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  margin: 0;
}

.er-prov-summary {
  margin-top: 12px;
}

.er-prov-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.er-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background-color: #fff;
  font-size: 0.78rem;
}

.er-chip-label {
  font-weight: 600;
  margin-right: 4px;
}

.er-chip-origin {
  border-color: #1976d2;
}

.er-chip-fairness {
  border-color: #388e3c;
}

.er-chip-score {
  border-color: #f9a825;
}

.er-prov-comment {
  font-size: 0.85rem;
  color: #444;
  margin-top: 4px;
}

.er-prov-tabs {
  margin-top: 16px;
}

.er-prov-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 8px;
}

.er-prov-tab {
  border: none;
  background: none;
  padding: 4px 10px;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  border-bottom: 2px solid transparent;
}

.er-prov-tab.is-active {
  background-color: #ffffff;
  border-color: #1976d2;
  font-weight: 600;
}

.er-prov-tab-panel {
  display: none;
  padding-top: 8px;
}

.er-prov-tab-panel.is-active {
  display: block;
}

.er-prov-panel-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.er-prov-overview-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.85rem;
}

.er-prov-overview-list li {
  margin-bottom: 2px;
}

.er-prov-overview-label {
  font-weight: 500;
  margin-right: 4px;
}

.er-prov-overview-value {
  color: #333;
}

.er-prov-ca-extra {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #555;
}

.er-prov-statement-text {
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.er-prov-statement-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.er-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.75rem;
  background-color: #e0e0e0;
}

.er-badge-origin {
  background-color: #e3f2fd;
}

.er-badge-fairness {
  background-color: #e8f5e9;
}

.er-badge-books {
  background-color: #fffde7;
}

.er-badge-web {
  background-color: #f3e5f5;
}

.er-prov-accordions {
  margin-top: 8px;
}

.er-accordion {
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  margin-bottom: 6px;
  background-color: #fff;
}

.er-accordion-summary {
  font-weight: 500;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.er-accordion-body {
  padding: 6px 8px 8px;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  line-height: 1.55;
}

.er-empty-note {
  font-style: italic;
  color: #777;
}

.er-support-list,
.er-indirect-list,
.er-sources-list {
  margin: 0;
  padding-left: 16px;
}

.er-support-item,
.er-indirect-item,
.er-source-item {
  margin-bottom: 6px;
}

.er-support-citation,
.er-indirect-citation,
.er-source-label {
  font-weight: 600;
  margin-bottom: 2px;
}

.er-support-snippet,
.er-indirect-snippet,
.er-source-snippet {
  margin-bottom: 2px;
}

.er-support-reasons,
.er-microconcept-citations {
  margin: 2px 0 0 16px;
  padding-left: 0;
}

.er-support-reasons li,
.er-microconcept-citations li {
  font-size: 0.88rem;
  line-height: 1.5;
}

.er-support-strength,
.er-source-strength {
  font-size: 0.78rem;
  color: #555;
}

.er-label-inline {
  font-weight: 500;
  margin-right: 4px;
}

.er-study-steps {
  margin: 0 0 8px 16px;
}

.er-study-takeaway-title,
.er-study-microconcepts-title {
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 4px;
}

.er-study-takeaway-body {
  font-size: 0.9rem;
  line-height: 1.55;
}

.er-microconcepts-list {
  margin: 0 0 0 16px;
  padding-left: 0;
}

.er-microconcept-item {
  margin-bottom: 6px;
}

.er-microconcept-label {
  font-weight: 600;
  font-size: 0.85rem;
}

.er-microconcept-tag {
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 999px;
  background-color: #e3f2fd;
}

.er-microconcept-why {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* General typography for concept card paragraphs (applies everywhere) */
.er-prov-concept-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}

/* ==== Micro-concepts v2 tweaks (only in Micro-concepts tab) ==== */

/* Card: more neutral background + subtle elevation */
#prov-concepts .er-prov-concept-card {
  background: #f8fafb;
  /* almost white, better contrast */
  border-radius: 0.9rem;
  border: 1px solid #e2f3ea;
  border-left: 4px solid #51cf66;
  /* main accent */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* Every second card: blue accent so the grid doesn’t look “all green” */
#prov-concepts .col-md-6:nth-child(2n) .er-prov-concept-card {
  border-left-color: #4dabf7;
}

/* Title text inside card: a touch larger / darker */
#prov-concepts .er-prov-concept-card .fw-semibold {
  font-size: 0.95rem;
  color: #212529;
}

/* “From: S1” chip – quieter, outline style */
#prov-concepts .er-prov-chip {
  background-color: #ffffff;
  border: 1px dashed #ced4da;
  color: #495057;
  font-size: 0.72rem;
  padding: 0.1rem 0.55rem;
}

/* Trigger snippet block: look more like a quoted highlight */
#prov-concepts .er-prov-snippet {
  background-color: #e7f5ff;
  border-left: 3px solid #4dabf7;
  font-style: italic;
  font-size: 0.8rem;
  color: #36454f;
}

/* Body text + citations: improved readability */
#prov-concepts .er-prov-stat,
#prov-concepts .er-prov-concept-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

#prov-concepts .er-prov-citation-list {
  margin-top: 0.25rem;
  padding-left: 1.2rem;
  font-size: 0.78rem;
}

/* On very small screens, give a bit more vertical breathing room */
@media (max-width: 576px) {
  #prov-concepts .er-prov-concept-card {
    margin-bottom: 0.4rem;
  }
}

/* ==== TOPIC HERO LAYOUT (Micro-concepts v3) ==== */

/* Zone A: Topic Header */
.er-mc-topic-header {
  border-bottom: 1px dashed #e0e4ea;
  padding-bottom: 0.35rem;
}

.er-mc-topic-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #868e96;
}

.er-mc-topic-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.35;
}

/* Zone B: Insight */
.er-mc-insight {
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-left: 3px solid #51cf66;
}

.er-mc-insight-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2f9e44;
  margin-bottom: 0.2rem;
}

.er-mc-insight p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}

.er-mc-reading-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #868e96;
  margin-top: 0.5rem;
  margin-bottom: 0.1rem;
}

/* Strategic importance: slightly different styling */
/* Strategic importance: slightly different styling (smaller, italic) */
.er-mc-strategic {
  font-size: 0.85rem !important;
  color: #495057;
  font-style: italic;
  margin-top: 0.35rem;
}

/* Alternate insight color for variety */
#prov-concepts .col-md-6:nth-child(2n) .er-mc-insight {
  border-left-color: #4dabf7;
}

#prov-concepts .col-md-6:nth-child(2n) .er-mc-insight-label {
  color: #1971c2;
}

/* Zone D: Anchor (muted, small) */
.er-mc-anchor {
  font-size: 0.72rem;
  font-style: italic;
  color: #868e96;
  border-top: 1px dotted #e0e4ea;
  padding-top: 0.35rem;
  margin-top: auto;
}

/* 8888888888

/* ==== HOW TO STUDY TAB POLISH ==== */

/* Nicer pattern-takeaway banner */
#prov-study .alert-info {
  background: linear-gradient(90deg, #e7f5ff, #f8f9ff);
  border-radius: 0.85rem;
  border-left: 4px solid #228be6;
  border-top: 1px solid #d0ebff;
  border-right: 1px solid #d0ebff;
  border-bottom: 1px solid #d0ebff;
  font-size: 0.86rem;
  line-height: 1.5;
}

#prov-study .alert-info strong {
  display: inline-block;
  margin-right: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  color: #1864ab;
}

/* Section heading in this tab */
#prov-study .er-prov-subheading {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #868e96;
}

/* Turn the ordered list into “step” cards with number badges */
#prov-study ol.er-prov-stat {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  counter-reset: er-step-counter;
}

#prov-study ol.er-prov-stat>li {
  position: relative;
  counter-increment: er-step-counter;
  padding: 0.45rem 0.75rem 0.45rem 2.4rem;
  margin-bottom: 0.5rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

#prov-study ol.er-prov-stat>li::before {
  content: counter(er-step-counter);
  position: absolute;
  left: 0.5rem;
  top: 0.55rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid #ced4da;
  background-color: #f8f9fa;
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  display: flex;
  align-items: center;
  justify-content: center;
}

#prov-study ol.er-prov-stat>li::before {
  border-color: #51cf66;
}

/* Styled labels like THE VERDICT, THE CONCEPTUAL TRIGGER */
#prov-study .er-study-label {
  font-weight: 700;
  margin-right: 0.25rem;
}

#prov-study ol.er-prov-stat>li:hover {
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Why-it-came box */
#prov-study .er-prov-subheading+p.er-prov-stat {
  background-color: #f8f9fa;
  border-left: 3px solid #adb5bd;
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Small tweak for mobile spacing */
@media (max-width: 576px) {
  #prov-study ol.er-prov-stat>li {
    padding-left: 2.2rem;
  }

  #prov-study ol.er-prov-stat>li::before {
    left: 0.45rem;
  }
}

/* ===== VERDICT TAB TWEAKS ===== */

/* Improve overall text feel in Verdict */
#prov-verdict {
  line-height: 1.6;
}

#prov-verdict>p:first-of-type {
  font-size: 0.95rem;
  color: #212529;
  margin-bottom: 1.25rem;
}

/* Subheading + helper text */
#prov-verdict .er-prov-subheading {
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
  color: #6c757d;
}

#prov-verdict .er-prov-stat {
  font-size: 0.85rem;
  color: #495057;
  margin-bottom: 0.75rem;
}

/* Statement list as light cards */
#prov-verdict .list-group {
  margin-top: 0.5rem;
}

#prov-verdict .list-group-item {
  padding-left: 0;
  padding-right: 0;
  background-color: transparent;
}

/* Make each statement link look like a clickable card */
.er-prov-stmt-link {
  border-radius: 0.6rem;
  border: 1px solid transparent;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    transform 0.06s ease;
}

/* Statement label 'Statement 1' as a small, crisp tag */
.er-prov-stmt-link .fw-semibold {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0d6efd;
}

/* Main statement text colour */
.er-prov-stmt-link span:last-child {
  color: #0b7285;
}

/* Hover / focus interaction */
.er-prov-stmt-link:hover,
.er-prov-stmt-link:focus {
  background-color: #f1f5ff;
  border-color: #d0e3ff;
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

/* Mobile: slightly smaller and stack text neatly */
@media (max-width: 576px) {
  #prov-verdict>p:first-of-type {
    font-size: 0.9rem;
  }

  .er-prov-stmt-link span:last-child {
    display: block;
    margin-top: 0.1rem;
  }
}

/* === AT A GLANCE – subtle polish === */

/* Make the glance chips a bit more pill-like and readable */
.er-prov-card .er-prov-badge {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.35rem 1rem;
  line-height: 1.3;
}

/* Emphasise the left label inside each chip (Origin, Fairness, Books/CA) */
.er-prov-card .er-prov-badge strong {
  color: #0b7285;
  margin-right: 0.25rem;
  font-weight: 600;
}

/* Slight hover lift for mouse users (no crazy animation) */
.er-prov-card .er-prov-badge:hover {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
  transition: box-shadow 120ms ease-out, transform 120ms ease-out;
}

/* On wider screens, make each chip feel like a small card */
@media (min-width: 768px) {
  .er-prov-card .er-prov-badge {
    min-width: 220px;
  }
}

/* === STATEMENT TAB – HEADER STRIP === */

.er-prov-card .tab-pane>.mb-2 {
  padding-bottom: 0.85rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px dashed #e0e4ea;
}

.er-prov-card .tab-pane>.mb-2>.er-prov-subheading {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.er-prov-card .tab-pane>.mb-2>.fw-semibold {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #02577a;
}

/* chips row just under statement text */
.er-prov-card .tab-pane>.mb-2 .er-prov-stat {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* === SUPPORT CARDS (BOOK / WEB) === */

.er-prov-evidence-card {
  background: linear-gradient(90deg, #f5f9ff, #f9fbfc);
  border-radius: 0.75rem;
  border-left-width: 4px !important;
  border-left-color: #3b82f6 !important;
}

.er-prov-evidence-card .card-body {
  padding: 0.75rem 1rem;
}

.er-prov-evidence-card .fw-semibold {
  font-size: 0.9rem;
  color: #0f172a;
}

/* Explanatory paragraphs (WHY RELEVANT, HOW TO EXTEND) in evidence cards */
.er-prov-evidence-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}

/* Snippet inside support card */
.er-prov-snippet {
  background-color: #f3f4f6;
  border-left: 3px solid rgba(15, 118, 110, 0.25);
  margin-top: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
}

/* === “WHY THIS SOURCE?” BAND === */

.er-prov-why {
  background: linear-gradient(90deg, #eef2ff, #f5f3ff);
  border-radius: 0.6rem;
  border-left: 4px solid #6366f1;
  padding: 0.45rem 0.8rem;
}

.er-prov-why .er-prov-subheading {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: #4b5563;
}

/* Reason bullets (WHY THIS SOURCE?) - larger than citations */
.er-prov-reason-list {
  padding-left: 1.2rem;
  margin: 0;
}

.er-prov-reason-list li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 0.25rem;
}

/* === MOBILE TWEAKS === */

@media (max-width: 576px) {
  .er-prov-card .tab-pane>.mb-2 {
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
  }

  .er-prov-evidence-card .card-body {
    padding: 0.6rem 0.75rem;
  }
}

.er-prov-intro {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #334155;
  background: #f8fafc;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid #2563eb;
}

.er-prov-intro strong {
  font-weight: 600;
  margin-right: 0.25rem;
}

/* === MENTOR TAB (Consistent with other tabs) === */

/* Override left-border color for each mentor card type */
#prov-mentor .er-mentor-shadow {
  border-left-color: #7048e8 !important;
  /* Violet */
}

#prov-mentor .er-mentor-cheat {
  border-left-color: #40c057 !important;
  /* Green */
}

#prov-mentor .er-mentor-bridge {
  border-left-color: #339af0 !important;
  /* Blue */
}

/* Mentor tab paragraph typography */
#prov-mentor .er-prov-concept-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}