/* Wide layout for model-churn charts (980px SVGs). */
body:has(.rai-model-churn-page) .rai-models-main.rai-lb-page {
  max-width: 72rem;
}

.rai-model-churn-page {
  padding-bottom: 2rem;
}

.rai-model-churn-page .chart-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
}

.rai-model-churn-page .chart-wrap svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.rai-model-churn-page .table-wrap {
  overflow-x: auto;
  margin: 0.65rem 0 0.9rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.4rem;
  background: #fff;
}

.rai-model-churn-page table.tbl {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.84rem;
  line-height: 1.35;
}

.rai-model-churn-page table.tbl th,
.rai-model-churn-page table.tbl td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e5e7eb;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.rai-model-churn-page table.tbl thead th {
  background: #f0f6fc;
  color: #1375d9;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #c7d9ef;
}

.rai-model-churn-page table.tbl tbody tr:nth-child(even) td {
  background: #fafafa;
}

.rai-model-churn-page table.tbl tbody tr:last-child td {
  border-bottom: none;
}

.rai-model-churn-page table.tbl .num,
.rai-model-churn-page table.tbl td.num,
.rai-model-churn-page table.tbl th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rai-model-churn-page .churn-extremes {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.35rem;
  background: #fafafa;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #374151;
}

.rai-model-churn-page .churn-extremes code {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78em;
  font-weight: 500;
  color: #374151;
  background: #f3f4f6;
  padding: 0.1em 0.35em;
  border-radius: 0.25rem;
}

@media (max-width: 720px) {
  body:has(.rai-model-churn-page) .rai-models-main.rai-lb-page {
    max-width: none;
  }
}
