body {
  margin: 0;
  padding: 0;
}

/* Retain the existing hidden overview cards while keeping the original OpenAPI download available. */
#redoc-root [data-testid="panel-overview"],
#redoc-root [data-testid="panel-servers"] {
  display: none;
}

/* Emphasize navigation groups; keep the API title and Introduction at their original weight. */
#redoc-root .menu-content > div > [data-component-name="Menu/Menu"] > [data-component-name="Menu/MenuItem"] > a:not([href="#/"]):not([href="#/section/introduction"]) [data-text] {
  font-weight: 700;
}

/* Preserve the V2 overview's scrolling download card without changing endpoint sample panels. */
#redoc-root [data-testid="middle-panel"]:has(> [data-section-id="/"]) + [data-testid="right-panel"] {
  position: static;
  top: auto;
}

/* Keep error codes and PPF event types intact; explanations still wrap and Redoc scrolls tables on narrow screens. */
#redoc-root [data-section-id^="/integration-reference/errors/"] table td:first-child code,
#redoc-root [data-section-id="/country-specifics/france/guides/france-notifications/ppf-events"] table td:first-child code {
  white-space: nowrap;
}

/* The walkthrough has no sample panel, so its four-column table takes the full content width on wide screens. */
#redoc-root [data-section-id="/country-specifics/france/guides/exchange-walkthrough"] [data-testid="middle-panel"] {
  width: 100%;
}

/* Fit all four walkthrough columns inside either Redoc layout by allowing long identifiers to wrap.
   The embedded example keeps dark text, so preserve its white background in either theme. */
#redoc-root .france-exchange-example {
  background-color: #fff;
  min-width: 0;
  overflow-wrap: anywhere;
}
