/* assets/css/public-consistency.css - one width for every public page (linked from includes/brand_head.php,
 * public pages only). The content lines up with the header and the footer: 1400px plus the same 2rem side space.
 * Pages keep their own top spacing (some overlap the hero on purpose). */

body > main.main,
body > .main {
    width: 100%;
    max-width: calc(1400px + 4rem);
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
    align-self: stretch;
}

.footer-bottom {
    max-width: 1400px;
}

@media (max-width: 768px) {
    body > main.main,
    body > .main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Long code lines scroll inside their box instead of widening the page (API reference, developers, webhooks) */
.code-block,
pre {
    max-width: 100%;
    overflow-x: auto;
}

.api-layout > *,
.api-content,
.api-endpoint-detail {
    min-width: 0;
}

/* Hero badges: one row across the page width when they fit (the hero text block is narrower), wrap on small screens */
@media (min-width: 769px) {
    .hero .hero-badges {
        margin-left: calc(50% - 50vw + 2rem);
        margin-right: calc(50% - 50vw + 2rem);
    }
}
