#p_benefits-risks {
  /* Design tokens (easy to tweak) */
  --bvr-font-family: 'Poppins', 'Rubik', 'Segoe UI', sans-serif;
  --bvr-blue-top: #2563eb;
  --bvr-blue-bottom: #1f3a8a;
  --bvr-red-top: #dc2626;
  --bvr-red-bottom: #7f1d1d;
  --bvr-bg: #05060c;
  --bvr-max-width: 1200px;
  --bvr-mosaic-max: 700px;

  /* Cell width tokens (change these to adjust layout proportions) */
  /* Semantic row tokens (use these to change layout quickly) */
  --bvr-row1-left: 50%;
  /* r1: Benefit (left) */
  --bvr-row1-right: 50%;
  /* r1: Risk (right) */
  --bvr-row2-left: 40%;
  /* r2: Benefit (left) */
  --bvr-row2-right: 60%;
  /* r2: Risk (right) */
  --bvr-row3-left: 65%;
  /* r3: Benefit (left) */
  --bvr-row3-right: 35%;
  /* r3: Risk (right) */
  --bvr-row4-left: 50%;
  /* r4: Benefit (left) */
  --bvr-row4-right: 50%;
  /* r4: Risk (right) */

  /* Tile height control: set a default here (adjustable). Use vh for responsive sizing. */
  --bvr-tile-height: 20vh;

  /* Typography tokens */
  --bvr-title-size: clamp(1.8rem, 6vw, 2.6rem);
  --bvr-title-weight: 800;
  --bvr-subtitle-size: 1rem;
  --bvr-subtitle-max-width: 100%;
  --bvr-outro-title-size: 2rem;
  --bvr-card-heading-size: 1.25rem;
  --bvr-card-body-size: 0.9375rem;
  /* 15px */

  background: var(--bvr-bg);
  color: #e8ecf5;
}

.intro-bvr-shell {
  max-width: var(--bvr-max-width);
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.intro-bvr-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Center the header container to match the mosaic width, but left-align its contents */
  max-width: var(--bvr-mosaic-max);
  margin: 0 auto 20px;
  text-align: left;
  align-items: flex-start;
}

.intro-bvr-chip {
  display: inline-flex;
  align-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  max-width: calc(100% - 32px);
  width: auto;
}

.intro-bvr-title {
  margin: 0;
  font-size: var(--bvr-title-size);
  font-weight: var(--bvr-title-weight);
  background: linear-gradient(90deg, #8ec5ff, #c084fc, #fca5a5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
}

.intro-bvr-subtitle {
  margin: 0;
  max-width: var(--bvr-subtitle-max-width);
  color: #d3d8e4;
  font-size: var(--bvr-subtitle-size);
  line-height: 1.6;
}

.intro-bvr-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.intro-bvr-col-head {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9cc4ff;
}

.intro-bvr-col-head--red {
  color: #fda4a4;
}

.intro-bvr-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.intro-bvr-card h3 {
  margin: 0 0 10px;
  font-weight: var(--bvr-title-weight);
  font-size: var(--bvr-card-heading-size);
}

.intro-bvr-card p {
  margin: 0;
  line-height: 1.55;
  color: #e5e7eb;
  font-size: var(--bvr-card-body-size);
}

.intro-bvr-card--blue {
  background: linear-gradient(135deg, var(--bvr-blue-top), var(--bvr-blue-bottom));
}

.intro-bvr-card--red {
  background: linear-gradient(135deg, var(--bvr-red-top), var(--bvr-red-bottom));
}

.intro-bvr-outro {
  margin-top: 36px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  text-align: center;
  max-width: 700px;
}

.intro-bvr-outro-title {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 800;
}

.intro-bvr-outro-text {
  margin: 0;
  color: #d5dae6;
  line-height: 1.6;
}

.intro-bvr-mosaic {
  display: grid;
  max-width: var(--bvr-mosaic-max);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 130px;
  gap: 8px;
}

.intro-bvr-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 0;
  background: linear-gradient(135deg, #111827, #0b1020);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.intro-bvr-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-bvr-tile--wide {
  grid-column: span 2;
}

.intro-bvr-tile--blue {
  background: linear-gradient(135deg, #2786f6, #1350ad);
}

.intro-bvr-tile--red {
  background: linear-gradient(135deg, #c22e2e, #711010);
}

.intro-bvr-tile--img {
  background: var(--tile-img, linear-gradient(135deg, #1f2937, #0f172a)) center/cover no-repeat;
}

.intro-bvr-tile-overlay,
.intro-bvr-tile-text {
  position: absolute;
  inset: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  color: #f7f9fc;
}

.intro-bvr-tile-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.55) 100%);
}

.intro-bvr-tile-icon {
  font-size: 1.3rem;
  color: #f7f9fc;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
}

.intro-bvr-tile h3 {
  margin: 0;
  font-size: var(--bvr-card-heading-size);
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.intro-bvr-tile p {
  margin: 0;
  font-size: var(--bvr-card-body-size);
  line-height: 1.35;
}

/* Icon + two-line layout for text-only cells */
.intro-bvr-cell-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
  padding: 12px;
  text-align: center;
  align-content: flex-start;
}

.intro-bvr-cell-icon,
.intro-bvr-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: #fff;
}

.intro-bvr-cell-content h3 {
  margin: 0;
}

/* Rows layout */
.intro-bvr-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Limit the mosaic width and center it */
.intro-bvr-rows {
  max-width: var(--bvr-mosaic-max);
  margin: 0 auto;
  width: 100%;
}

.intro-bvr-row {
  display: flex;
  width: 100%;
  /* Use design token for row/tile height so it's easy to tweak */
  height: var(--bvr-tile-height);
}

.intro-bvr-cell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  /* align-items: center; */
  /* justify-content: center; */
  /* padding: 10px; */
}

.intro-bvr-cell h3 {
  margin: 0;
  color: #f7f9fc;
  font-size: 1rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  /* text-align: center; */
}

.intro-bvr-cell--blue {
  background: linear-gradient(135deg, #2786f6, #1350ad);
}

.intro-bvr-cell--red {
  background: linear-gradient(135deg, #c22e2e, #711010);
}

.intro-bvr-cell--img .intro-bvr-cell-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-bvr-cell-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  /* Darken bottom 20% to improve text contrast over images */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.62) 100%);
  /* ensure overlay sits above image content */
  z-index: 2;
}

.intro-bvr-cell--flex {
  /* base for flexible cells; actual basis is mapped via data-flex attribute */
  flex: 0 0 auto;
}

/* Map data-flex values to design tokens so proportions are editable via vars */
.intro-bvr-cell--flex[data-row="r1-left"] {
  flex-basis: var(--bvr-row1-left);
}

.intro-bvr-cell--flex[data-row="r1-right"] {
  flex-basis: var(--bvr-row1-right);
}

.intro-bvr-cell--flex[data-row="r2-left"] {
  flex-basis: var(--bvr-row2-left);
}

.intro-bvr-cell--flex[data-row="r2-right"] {
  flex-basis: var(--bvr-row2-right);
}

.intro-bvr-cell--flex[data-row="r3-left"] {
  flex-basis: var(--bvr-row3-left);
}

.intro-bvr-cell--flex[data-row="r3-right"] {
  flex-basis: var(--bvr-row3-right);
}

.intro-bvr-cell--flex[data-row="r4-left"] {
  flex-basis: var(--bvr-row4-left);
}

.intro-bvr-cell--flex[data-row="r4-right"] {
  flex-basis: var(--bvr-row4-right);
}

/* --- MEDIA QUERIES (min-width only, ascending order) --- */
@media (min-width: 768px) {
  .intro-bvr-title {
    font-size: 3.2rem;
  }

  .intro-bvr-subtitle {
    max-width: 760px;
  }

  .intro-bvr-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 130px;
    gap: 28px;
  }

  .intro-bvr-card {
    width: 100%;
  }

  .intro-bvr-mosaic {
    gap: 14px;
  }

  .intro-bvr-tile {
    min-height: 180px;
  }

  /* Respect the token for tile height on larger screens as well */
  .intro-bvr-tile {
    min-height: var(--bvr-tile-height);
  }
}

/* Full-text overlay styles (very small and self-contained) */
.intro-fulltext-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 28px;
}

.intro-fulltext-inner {
  max-width: min(var(--bvr-mosaic-max), 920px);
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: auto;
  max-height: 85vh;
}

.intro-fulltext-body h3 {
  font-size: 1.4rem;
  margin-top: 0;
}

.intro-fulltext-body p {
  margin: 0.6rem 0;
  color: #e6eefb;
}

.intro-fulltext-close {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.intro-fulltext-close:focus {
  outline: 2px solid #9cc4ff;
}

/* Static overlay styles (pre-rendered HTML overlay) */
.intro-static-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  /* default dimmed backdrop (will be overridden for benefits/risks) */
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  /* padding: 28px; */
}

.intro-static-overlay.visible {
  display: flex;
}

.intro-static-inner {
  width: 100%;
  max-width: var(--bvr-mosaic-max);
  /* keep the inner panel lightly translucent so the colored backdrop shows through
     and add a subtle blur for readability */
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  max-height: 85vh;
  overflow: auto;
  position: relative;
}

.intro-static-close {
  position: absolute;
  right: 18px;
  top: 10px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.intro-static-body {
  padding-top: 10px;
}

.intro-static-columns {
  /* display: grid; */
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.intro-static-column h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.intro-static-section {
  /* padding: 12px; */
  border-radius: 10px;
  margin-bottom: 10px;
}

.intro-static-section h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.intro-static-section p {
  font-size: 0.7rem;
  margin: 0;
  color: #e6eefb;
}

.intro-static-section--benefit {
  background: linear-gradient(135deg, rgba(39, 134, 246, 0.08), rgba(19, 80, 173, 0.04));
  border: 1px solid rgba(39, 134, 246, 0.12);
}

.intro-static-section--risk {
  background: linear-gradient(135deg, rgba(194, 46, 46, 0.08), rgba(113, 16, 16, 0.03));
  border: 1px solid rgba(194, 46, 46, 0.12);
}

/* When the overlay is open, prevent the page behind it from scrolling */
body.intro-overlay-open {
  overflow: hidden;
  height: 100%;
}

/* Colored fullscreen backgrounds for benefits / risks states. Use a strong tint
   so the user sees a clear blue/red backdrop; inner content remains readable
   because the inner container is lightly translucent and uses borders. */
.intro-static-overlay.show-benefits {
  background: linear-gradient(180deg, rgba(6, 78, 179, 0.92), rgba(13, 110, 253, 0.92));
}

.intro-static-overlay.show-risks {
  background: linear-gradient(180deg, rgba(139, 14, 14, 0.92), rgba(220, 38, 38, 0.92));
}

@media (max-width: 640px) {
  .intro-static-columns {
    grid-template-columns: 1fr;
  }

  .intro-static-inner {
    /* padding: 14px; */
  }
}

/* Show only the selected column */
.intro-static-overlay:not(.show-benefits) .intro-static-column--benefits {
  display: none;
}

.intro-static-overlay:not(.show-risks) .intro-static-column--risks {
  display: none;
}

.intro-static-overlay.show-benefits .intro-static-inner {
  border-left: 4px solid rgba(39, 134, 246, 0.5);
}

.intro-static-overlay.show-risks .intro-static-inner {
  border-left: 4px solid rgba(194, 46, 46, 0.5);
}