/* Styles for report and case-study pages; layered on styles.css. */

.report-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 61, 50, 0.97), rgba(36, 91, 120, 0.92)),
    var(--forest);
  padding: clamp(130px, 16vh, 180px) clamp(18px, 4vw, 56px) clamp(48px, 7vw, 84px);
}

.report-hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.report-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 820;
  line-height: 1.04;
}

.report-hero .hero-copy {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.report-hero .hero-actions {
  margin-top: 30px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1180px, 100%);
  margin: 40px auto 0;
}

.kpi {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.kpi .kpi-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 650;
}

.kpi .kpi-value {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 830;
}

.kpi .kpi-note {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.report-body .section {
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(48px, 6vw, 84px);
}

.report-body .section-inner {
  width: min(980px, 100%);
}

.report-body h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
}

.report-body .lede {
  font-size: 1.12rem;
  color: var(--ink);
}

figure.chart {
  margin: 30px 0 0;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid #cfd7d0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

figure.chart figcaption {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

figure.chart figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
}

figure.chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: inherit;
}

.hslot line {
  opacity: 0;
}

.hslot:hover line {
  opacity: 0.45;
}

.chart-tip {
  position: fixed;
  z-index: 50;
  max-width: 300px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(18, 33, 29, 0.18);
  font-size: 0.88rem;
  line-height: 1.45;
  pointer-events: none;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  width: 18px;
  height: 4px;
  border-radius: 999px;
}

details.data-table {
  margin-top: 14px;
  font-size: 0.92rem;
}

details.data-table summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 650;
}

.report-body table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.report-body th,
.report-body td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.report-body th:first-child,
.report-body td:first-child {
  text-align: left;
}

.report-body thead th {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.note-panel {
  margin-top: 26px;
  padding: 20px 24px;
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  background: rgba(200, 137, 42, 0.07);
}

.note-panel p {
  margin: 0;
  color: var(--ink);
}

.report-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.report-cta .button.primary {
  background: var(--forest-2);
}

/* Light-context secondary buttons only; the hero keeps the white
   style from styles.css. */
main .report-cta .button.secondary {
  color: var(--forest);
  background: rgba(18, 61, 50, 0.08);
  border-color: rgba(18, 61, 50, 0.28);
}

.source-list {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

.source-list li {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-body table {
    display: block;
    overflow-x: auto;
  }
}
