/* Shared report layout contract. Keep index/classification content in flow on
   mobile, even when a report loads an older stylesheet after this one.
   Breakpoints match the stacked layout of each report shell. */
@media (max-width: 899px) {
  .io-mari .mari-essay .doc-toc {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 760px) {
  .io-mari .swiss-report .chapter-nav {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }
}

/* Approved report tables and charts, 28 November 2026.
   Opt-in preserves each report's existing shell, palette and headline hierarchy. */
:is([data-report-layout],[data-report-default]) :is(figure.chart,figure.microchart,[data-report-content] > figure) {
  margin-block: 2rem !important;
}
:is([data-report-layout],[data-report-default]) :is(.chart-data,.source-chart-data,.ai-exact,.ai-data-details) {
  margin-block: 3rem !important;
  clear: both;
}
:is([data-report-layout],[data-report-default]) .report-table-scroll {
  display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;
  overscroll-behavior-x:contain;margin-block:1.25rem; padding-bottom:.5rem;clear:both;
}
:is([data-report-layout],[data-report-default]) .report-table-scroll > table {
  width:100%;max-width:none;margin:0!important;border-collapse:collapse;
  font-size:13px!important;line-height:1.4;font-variant-numeric:tabular-nums lining-nums;
}
:is([data-report-layout],[data-report-default]) .report-table-scroll > table:not(.evidence) { display:table; }
:is([data-report-layout],[data-report-default]) .report-table-scroll > table.report-wide-table { min-width:36rem; }
:is([data-report-layout],[data-report-default]) .report-table-scroll :is(th,td) {
  font-size:inherit!important;text-transform:none;letter-spacing:0;
}
:is([data-report-layout],[data-report-default]) .report-table-scroll thead th { font-weight:600; }
:is([data-report-layout],[data-report-default]) .report-table-scroll tbody th { font-weight:400; }
:is([data-report-layout],[data-report-default]) .report-table-scroll caption {
  text-align:left;font-size:13px;line-height:1.4;margin-bottom:.75rem;
}
:is([data-report-layout],[data-report-default]) .report-number { text-align:right; }
:is([data-report-layout],[data-report-default]) .report-table-scroll:focus-visible {
  outline:2px solid currentColor;outline-offset:4px;
}
:is([data-report-layout],[data-report-default]) :is(.report-chart-label,.report-small-label) {
  font-size:13px!important;line-height:18px;text-transform:none;letter-spacing:0;
}
:is([data-report-layout],[data-report-default]) .chart text {
  text-transform:none;letter-spacing:0;
}
:is([data-report-layout],[data-report-default]) :is(figure.chart,figure.microchart) > figcaption strong {
  font-size:15px!important;line-height:20px;
}
/* Compact HTML microcharts remain charts in the prose measure. */
:is([data-report-layout],[data-report-default]) figure.microchart .report-table-scroll > table {
  width:auto;min-width:0;
}
@media(min-width:1200px) {
  .mari-essay[data-report-layout] :is(details.report-wide-data,.report-table-scroll.report-wide-data) {
    width:calc(100% + var(--gutter) + var(--margin-w));
    max-width:calc(var(--measure) + var(--gutter) + var(--margin-w));
  }
  .mari-essay[data-report-layout] figure:has(.report-wide-data) > figcaption {
    position:static;float:none;width:auto;max-width:var(--measure);margin-top:1rem;
  }
}
/* Retain Value per Head's authored stacked evidence rows on phones. */
@media(max-width:700px) {
  [data-report-layout] .report-table-scroll > table.evidence { min-width:0; }
}
@media print {
  :is([data-report-layout],[data-report-default]) .report-table-scroll { overflow:visible; }
  :is([data-report-layout],[data-report-default]) .report-table-scroll > table.report-wide-table { min-width:0; }
}

/* Authored Swiss grids place wide data beside neither prose nor notes. */
.swiss-report :is([data-report-layout],[data-report-default]) .report-wide-data,
.swiss-report[data-report-layout] .report-wide-data,
.swiss-report[data-report-default] .report-wide-data { grid-column:1 / -1; }
/* Swiss figures retain their original two-thirds chart width; only their Data
   block extends across the full chapter. Notes stack at the Swiss breakpoint. */
@media(min-width:761px) {
  .swiss-report:is([data-report-layout],[data-report-default]) .chapter > figure > :is(details.report-wide-data,.report-table-scroll.report-wide-data) {
    width:calc(149.925% + var(--gutter));max-width:none;
  }
}
