/* Scoped chart sizing: keep desktop proportions and readable mobile labels. */
.gr-chart-viewport {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.gr-table-viewport {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.gr-chart-viewport > svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.gr-chart-hint {
  display: none;
}

@media (max-width: 640px) {
  /* Remove repeated gutters around embedded reports, keeping the site header. */
  body[data-gr-research-page] .service-section-1 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body[data-gr-research-page] .service-section-1 > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body[data-gr-research-page] .blog-wrapper,
  body[data-gr-research-page] .blog-wrapper .w-richtext {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .report-body,
  .g .report-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .g {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .chart-container,
  .chart-card,
  .chart-figure {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

}

@media (max-width: 900px) {
  .gr-chart-viewport > svg {
    min-width: var(--gr-chart-width, 840px);
    /* Some original SVGs set max-width inline. Keep the full chart scrollable. */
    max-width: none !important;
  }

  .gr-chart-hint,
  .g .gr-chart-hint {
    display: block;
    margin: 8px 0 0;
    padding: 0;
    color: var(--muted, #6b6b6b);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
  }
}

@media print {
  .gr-chart-viewport {
    overflow: visible;
  }

  .gr-chart-viewport > svg {
    min-width: 0;
    max-width: 100% !important;
  }

  .gr-chart-hint {
    display: none !important;
  }
}
