/**
 * treated_reality.css
 * Additional styling for Treated Patient Reality module
 * This file extends front_md.css - include AFTER front_md.css
 * Most styling uses existing classes from front_md.css
 */

/* Bullet list styling for narrative sections */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  line-height: 1.6;
  color: #2b2f42;
  border-bottom: 1px solid #e9e9ef;
}

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

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #7B38C2;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

/* Extra large KPI values for key metrics */
.kpi-val-xl {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: #7B38C2 !important;
  line-height: 1.1 !important;
}

/* KPI sublabel styling */
.kpi-sublabel {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

/* Chart sizing variants */
.chart-medium {
  min-height: 300px;
  height: 300px;
}

.chart-tall {
  min-height: 400px;
  height: 400px;
}

/* Ensure narrative text is readable */
.narrative {
  line-height: 1.7;
  color: #2b2f42;
}

.narrative p {
  margin-bottom: 12px;
}

/* Source citations */
.micro {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px;
}

/* Report module visibility */
#mod_treated_reality {
  /* Module is always rendered but hidden from UI */
  /* Visibility controlled by body.px-exporting class in front_md.css */
}

/* Year span auto-update */
.px-year::before {
  content: "2025";
}

/* Ensure proper spacing in two-column layouts */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media print {
  /* Ensure charts render properly in PDF */
  .chart-medium,
  .chart-tall {
    page-break-inside: avoid;
  }
  
  /* Prevent bullet list items from breaking across pages */
  .bullet-list li {
    page-break-inside: avoid;
  }
}
