diff --git a/style.css b/style.css index 25cc549c..5d53248c 100644 --- a/style.css +++ b/style.css @@ -2680,6 +2680,18 @@ margin-right: auto !important; } + /* API endpoint pages (frontmatter `openapi:`) render a sticky request/response + code rail (#content-side-layout, ~28rem) as a flex sibling to the right of + the content column. Our viewport-based centering above pushes the column + rightward past ~1650px and overruns that rail. Keep the same 820px column, + but center it within its own flex track instead of the viewport so it never + crosses into the rail. Scoped by path (covers all locales); the plain API + pages (Introduction/Rate Limits/Error Codes) are unaffected. */ + html[data-current-path*="/api-reference/endpoint/"] #content-area { + margin-left: auto !important; + margin-right: auto !important; + } + /* Taller top navigation bar. Mintlify sets the navbar content row to h-12 (48px) with items-center, and paints the bottom border on an absolute h-full background layer. Growing the