← Files DataARCHIVED FILE

templates/data-app/base/src/content/report/report.css

8.76 KB · Sep 30, 2026 · 23:19 UTC

↓ Download file

.report-page {
  --data-app-report-body-text: color-mix(in srgb, var(--text) 50%, var(--secondary));
  --data-app-content-width: var(--data-app-report-evidence-width);
  --data-app-report-prose-width: var(--data-app-content-width);
  --data-app-layout-gutter: var(--data-app-report-gutter);
  --report-chart-padding: 24px;
  --report-chart-radius: 24px;
  --report-chart-border: color-mix(in srgb, var(--text) 5%, transparent);
  --report-chart-shadow: 0 4px 6px rgb(0 0 0 / 1%);
  max-width: calc(var(--data-app-content-width) + 2 * var(--data-app-layout-gutter));
  margin-inline: auto;
  padding: 40px var(--data-app-layout-gutter) 120px;
}

.report-content {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 40px;
  margin-inline: 0;
}

.report-content > * {
  min-width: 0;
}

.report-sortable-sections {
  display: grid;
  gap: 40px;
}

.report-hero {
  display: grid;
  width: 100%;
  gap: 20px;
  margin-inline: 0;
}

.report-hero h1 {
  margin: 0;
  width: 100%;
  max-width: none;
  padding-inline: 0;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.report-page :is(.rich-narrative-content, .report-rich-editable) {
  color: var(--data-app-report-body-text);
  font-size: var(--text-md-size);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.006em;
}

.report-page :is(.rich-narrative-content, .report-rich-editable) :is(h1, h2, h3, h4, h5, h6) {
  color: var(--text);
}

.report-page .rich-narrative :is(strong, b, .markdown-bold) {
  font-weight: 600;
}

.report-page .report-content :is(.rich-narrative-content, .report-rich-editable) a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--secondary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.report-page .report-content :is(.rich-narrative-content, .report-rich-editable) a:hover {
  text-decoration-style: solid;
}

.report-page .report-content :is(.rich-narrative-content, .report-rich-editable) a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}


.report-page :is(.rich-narrative-content, .report-rich-editable) h2,
.report-page .report-summary > :is(h2, h3),
.report-page [data-component-kind="custom"]:not([data-component-variant="card"]) > .component-header .component-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.report-page :is(.rich-narrative-content, .report-rich-editable) h3 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
}

.report-page :is(.rich-narrative-content, .report-rich-editable) h4 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.report-page :is(.rich-narrative-content, .report-rich-editable) > :is(h2, h3, h4) {
  margin: 24px 0 12px;
}

.report-page :is(.rich-narrative-content, .report-rich-editable) > :first-child {
  margin-top: 0;
}

.report-page :is(.rich-narrative-content, .report-rich-editable) > :is(p, ul, ol) {
  margin: 0 0 12px;
}

.report-page :is(.rich-narrative-content, .report-rich-editable) > :last-child {
  margin-bottom: 0;
}

.report-page :is(.rich-narrative-content, .report-rich-editable) :is(ul, ol) {
  padding-inline-start: 24px;
}

.report-page :is(.rich-narrative-content, .report-rich-editable) li + li {
  margin-top: 8px;
}

.report-page .report-content > header:first-child {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.report-page .report-content > header:first-child h1 {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  text-align: start;
}

.report-page :is(
  .report-deck,
  .report-summary-lead,
  .report-analysis,
  .report-caveat,
  .report-disclosure,
  p[data-editable-narrative],
  div[data-editable-narrative]
) {
  width: min(var(--data-app-content-width), 100%);
  margin-inline: auto;
  text-align: start;
}

.report-page [data-component-kind="custom"]:not([data-component-variant="card"]) > .component-header,
.report-page .report-summary > :is(h2, h3) {
  width: min(var(--data-app-content-width), 100%);
  min-width: 0;
  max-width: 100%;
  margin-inline: auto;
  text-align: start;
}

.report-page :is([data-component-kind="chart"], [data-component-kind="table"]):not([data-component-variant="card"]) > .component-header {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.report-page [data-component-kind="custom"] :is(ul, ol),
.report-page :is(ul, ol)[data-editable-narrative] {
  box-sizing: border-box;
  width: min(var(--data-app-content-width), 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-inline-start: 24px;
  text-align: start;
}

.report-deck,
.report-summary-lead {
  width: min(var(--data-app-content-width), 100%);
  max-width: min(var(--data-app-content-width), 100%);
  margin-inline: auto;
  font-size: var(--text-md-size);
  line-height: var(--text-md-line);
  font-weight: 400;
}

.report-page .dashboard-component:not([data-component-kind="metric"]):not([data-component-variant="card"]) {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.report-page .dashboard-component:not([data-component-kind="metric"]):not([data-component-variant="card"]) > .component-header {
  margin-bottom: 16px;
}

/* Give evidence a frame without putting prose in cards. These defaults also
   apply to authored charts that use the existing DataComponent wrapper. */
.report-page .dashboard-component[data-component-kind="chart"]:not([data-component-variant="card"]) {
  box-sizing: border-box;
  min-width: 0;
  padding: var(--report-chart-padding);
  background: var(--background);
  border: 1px solid var(--report-chart-border);
  border-radius: var(--report-chart-radius);
  box-shadow: var(--report-chart-shadow);
}

.report-page .dashboard-component[data-component-kind="chart"]:not([data-component-variant="card"]) > .component-header {
  box-sizing: border-box;
  flex-shrink: 0;
  padding-inline-end: 0;
  margin-bottom: 24px;
}

.report-page [data-component-kind="chart"]:not([data-component-variant="card"]) .component-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.report-section {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.report-section > .report-narrative-section .report-analysis {
  margin-bottom: 0;
}

.report-page :is([data-component-kind="custom"], [data-component-kind="narrative"]) {
  position: relative;
}

.report-page .dashboard-component > .report-narrative-actions {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  display: block;
}

.report-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.report-disclosure {
  color: var(--secondary);
}

.report-analysis {
  width: min(var(--data-app-content-width), 100%);
  max-width: min(var(--data-app-content-width), 100%);
  margin-inline: auto;
  margin-bottom: 24px;
  font-size: var(--text-md-size);
  line-height: var(--text-md-line);
  font-weight: 400;
}

.report-page .report-disclosure {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.report-page .report-disclosure :is(.rich-narrative-content, .report-rich-editable) {
  color: var(--secondary);
  font-size: inherit;
  line-height: inherit;
}

@media (max-width: 640px) {
  .report-page {
    --data-app-layout-gutter: var(--data-app-report-mobile-gutter);
    --report-chart-padding: 16px 12px;
    padding: 16px var(--data-app-layout-gutter) 72px;
  }

  .report-content,
  .report-sortable-sections {
    gap: 36px;
  }

  .report-hero h1 {
    font-size: 32px;
    line-height: 1.12;
    font-weight: 600;
  }

  .report-page :is(.rich-narrative-content, .report-rich-editable) h2 {
    font-weight: 500;
    letter-spacing: -0.02em;
  }

  .report-page .report-narrative-actions .menu-trigger {
    top: -8px;
    right: 0;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .report-page .report-narrative-actions + .rich-narrative
    :is(.rich-narrative-content, .report-rich-editable) > :first-child {
    padding-inline-end: 52px;
  }

  .report-page [data-component-kind="chart"]:not([data-component-variant="card"])
    > .component-header .menu-trigger {
    top: -4px;
    right: 0;
    width: 44px;
    height: 44px;
  }
  .report-page .dashboard-component[data-component-kind="chart"]:not([data-component-variant="card"])
    > .component-header { padding-inline-end: 68px; }

  .report-section { gap: 20px; }

  .report-facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Mobile report charts use 16px vertical / 12px horizontal content padding.
   Align the menu to the tighter inset without changing title/plot spacing. */
@media (max-width: 640px) {
  .report-page .dashboard-component[data-component-kind="chart"]:not([data-component-variant="card"]) > .component-header .menu-trigger {
    position: absolute;
    top: -4px;
    right: 0;
  }
}

SHA-256: 0eb46187d839cc87986a5ae42500e73257e52c0daf223bc1a00ef4d59c61ab3a