/* Public header sizing follows /conteudo. Repeated class specificity keeps
   this shared layer above the older, page-specific header rules. Positions
   (fixed, sticky, absolute or relative) remain owned by the existing page. */
body .public-header.public-header {
    --public-header-height: 80px;
    --public-header-logo: 170px;
    --public-header-gap: 28px;
    --public-header-nav-gap: 24px;
    --public-header-font: 15px;
    box-sizing: border-box;
    width: 100%;
    height: var(--public-header-height);
    padding: 0 max(28px, calc((100% - 1544px) / 2));
    display: flex;
    align-items: center;
    gap: var(--public-header-gap);
    background: #001321;
    color: #fff;
    border-bottom: 1px solid #263744;
    font-family: Manrope, Arial, sans-serif;
    z-index: 50;
}
body .public-header.public-header .site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: initial;
    gap: var(--public-header-gap);
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 60;
}
body .public-header.public-header > a:first-child,
body .public-header.public-header .site-brand {
    flex: 0 0 auto;
    margin: 0 auto 0 0;
    padding: 0;
}
body .public-header.public-header > a:first-child > img,
body .public-header.public-header .site-brand__logo {
    display: block;
    width: var(--public-header-logo);
    height: auto;
    max-height: calc(var(--public-header-height) - 10px);
    object-fit: contain;
    object-position: left center;
}
body .public-header.public-header > nav,
body .public-header.public-header .site-nav__links {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: var(--public-header-nav-gap);
    height: 100%;
    margin: 0;
    font: 800 var(--public-header-font)/1.55 Manrope, Arial, sans-serif;
    white-space: nowrap;
}
body .public-header.public-header > nav > a,
body .public-header.public-header .site-nav__links > a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    border: 0;
    color: #fff;
    font: inherit;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
}
body .public-header.public-header > nav > a.active::after {
    content: "";
    position: absolute;
    height: 3px;
    left: 0;
    right: 0;
    bottom: 16px;
    background: #ff570a;
}
body .public-header.public-header :is(.header-account, .home-access, .x-access, .site-nav__actions) {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
    margin: 0;
}
body .public-header.public-header :is(.header-account, .home-access, .x-access, .site-nav__actions) > :is(a, button):not(.site-menu-button),
body .public-header.public-header :is(.nav-account, .nav-account-actions, .studio-nav-actions) > :is(a, button) {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #526579;
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .02);
    font: 800 15px/1 Manrope, Arial, sans-serif;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
body .public-header.public-header :is(.header-account, .home-access, .x-access, .site-nav__actions, .nav-account, .nav-account-actions, .studio-nav-actions) > :is(.create, .header-create, .x-create, .nav-create, .site-button--ghost):not(.site-menu-button) {
    background: #c7430c;
    border-color: #c7430c;
}
body .public-header.public-header :is(.header-account, .home-access, .x-access, .site-nav__actions, .nav-account, .nav-account-actions, .studio-nav-actions) > :is(.create, .header-create, .x-create, .nav-create, .site-button--ghost):not(.site-menu-button):hover {
    background: #a93709;
    border-color: #a93709;
}
body .public-header.public-header :is(a, button):focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}
body .public-header.public-header :is(.nav-account, .nav-account-actions, .studio-nav-actions, .menu-button, .home-menu, .x-menu, .site-menu-button, .site-mobile-menu, .site-menu-backdrop) {
    display: none;
}
@media (max-width: 1350px) {
    body .public-header.public-header {
        --public-header-logo: 150px;
        --public-header-gap: 20px;
        --public-header-nav-gap: 16px;
        --public-header-font: 14px;
    }
    body .public-header.public-header :is(.header-account, .home-access, .x-access, .site-nav__actions) > :is(a, button):not(.site-menu-button) {
        padding-inline: 14px;
    }
}
@media (min-width: 1101px) {
    body .public-header.public-header > nav {
        display: flex !important; /* Studio's legacy menu writes inline styles. */
        position: static !important;
        padding: 0 !important;
        flex-direction: row !important;
        background: transparent !important;
    }
}
@media (max-width: 1100px) {
    body .public-header.public-header > nav,
    body .public-header.public-header .site-nav__links,
    body .public-header.public-header :is(.header-account, .home-access, .x-access),
    body .public-header.public-header .site-nav__actions > a {
        display: none !important;
    }
    body .public-header.public-header :is(.menu-button, .home-menu, .x-menu, .site-menu-button) {
        box-sizing: border-box;
        display: grid;
        place-items: center;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        margin: 0;
        padding: 0;
        border: 1px solid #526579;
        border-radius: 8px;
        background: transparent;
        color: #fff;
        font-size: 20px;
        cursor: pointer;
    }
    body .public-header.public-header > nav.menu-open,
    body.site-menu-open .public-header.public-header .site-mobile-menu {
        box-sizing: border-box;
        display: flex !important;
        position: absolute !important;
        top: var(--public-header-height) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        height: auto;
        max-height: calc(100dvh - var(--public-header-height));
        overflow-y: auto;
        overscroll-behavior: contain;
        flex-direction: column !important;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 16px 28px 24px !important;
        border: 0;
        border-radius: 0;
        background: #001321 !important;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        z-index: 60;
        white-space: normal;
    }
    body .public-header.public-header > nav.menu-open > a,
    body .public-header.public-header .site-mobile-menu > a {
        display: flex;
        align-items: center;
        min-height: 48px;
        height: auto;
        padding: 10px 0;
        color: #fff;
        font: 800 16px/1.55 Manrope, Arial, sans-serif;
        text-decoration: none;
    }
    body .public-header.public-header > nav.menu-open > a.active::after { display: none; }
    body .public-header.public-header > nav.menu-open :is(.nav-account, .nav-account-actions, .studio-nav-actions) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 12px;
        padding-top: 16px;
        border-top: 1px solid #31455a;
    }
    body.site-menu-open .public-header.public-header .site-menu-backdrop {
        display: block;
        top: var(--public-header-height);
    }
}
@media (max-width: 700px) {
    body .public-header.public-header {
        --public-header-height: 72px;
        --public-header-logo: 144px;
        padding-inline: 20px;
    }
    body .public-header.public-header > nav.menu-open,
    body.site-menu-open .public-header.public-header .site-mobile-menu { padding-inline: 20px !important; }
}
@media (max-width: 360px) {
    body .public-header.public-header { padding-inline: 16px; }
    body .public-header.public-header > nav.menu-open,
    body.site-menu-open .public-header.public-header .site-mobile-menu { padding-inline: 16px !important; }
}
