/* Header-only portal styles, captured 2026-10-23T01:57:04Z.
   Source: /templates/boxed/css/portal.css?v=20260822-guides-2
   SHA-256: bde3fe984d037baa61d52b9c498f694c9978e40dd7bdb54e12fe2d8db64e99ca
   All rules are scoped to .portal_header; no editor or body styling. */
.portal_header {
    --portal-line: #dfe4ec;
    --portal-accent: #ff2856;
    --portal-accent-dark: #e71946;
    --portal-shadow: 0 24px 70px rgba(31, 40, 55, .1);
    font: 15px/1.55 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #20242c;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.portal_header,
.portal_header *,
.portal_header *::before,
.portal_header *::after { box-sizing: border-box; }
.portal_header a { transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.portal_header .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.portal_header .portal_nav_toggle:hover { opacity: 1; }

.portal_header {
    position: sticky;
    top: 0;
    z-index: 700;
    float: none;
    width: 100%;
    min-height: 0;
    margin: 0;
    background: #fff;
    border: 0;
    border-bottom: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.portal_header .portal_header_inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1480px;
    min-height: 90px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 34px;
}

.portal_header .portal_logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.portal_header .portal_logo img {
    display: block;
    width: auto;
    height: 58px;
    max-width: 240px;
    object-fit: contain;
}

.portal_header .portal_navigation,
.portal_header nav#portal_navigation {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    float: none;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 4px;
    overflow: visible;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
}

.portal_header .portal_navigation > a,
.portal_header .portal_nav_group > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #363c46 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    text-shadow: none;
    white-space: nowrap;
}

.portal_header .portal_navigation > a:hover,
.portal_header .portal_navigation > a:focus,
.portal_header .portal_navigation > a.active,
.portal_header .portal_nav_group:hover > a,
.portal_header .portal_nav_group:focus-within > a {
    background: #fff0f4;
    color: var(--portal-accent) !important;
}

.portal_header .portal_nav_group {
    position: relative;
    display: block;
    float: none;
    margin: 0;
    background: transparent !important;
}

.portal_header .portal_nav_group > a::after {
    content: "⌄";
    margin: -4px 0 0 8px;
    color: #9299a5;
    font-size: 14px;
}

.portal_header .portal_subnav {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    display: grid;
    width: 250px;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, 8px);
    background: #fff;
    border: 1px solid var(--portal-line);
    border-radius: 18px;
    box-shadow: var(--portal-shadow);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.portal_header .portal_nav_group:hover .portal_subnav,
.portal_header .portal_nav_group:focus-within .portal_subnav {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.portal_header .portal_subnav a {
    padding: 11px 13px;
    border-radius: 11px;
    color: #363c46 !important;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none !important;
}

.portal_header .portal_subnav a:hover,
.portal_header .portal_subnav a:focus {
    background: #fff0f4;
    color: var(--portal-accent) !important;
}

.portal_header .portal_header_actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 18px;
}

.portal_header .portal_login {
    color: #363c46 !important;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none !important;
}

.portal_header .portal_login:hover {
    color: var(--portal-accent) !important;
}

.portal_header .portal_account {
    position: relative;
}

.portal_header .portal_account > summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.portal_header .portal_account > summary::-webkit-details-marker {
    display: none;
}

.portal_header .portal_account > summary:focus-visible {
    outline: 3px solid rgba(255, 40, 86, .22);
    outline-offset: 3px;
    border-radius: 9px;
}

.portal_header .portal_account > summary span {
    color: #9299a5;
    font-size: 14px;
    transition: transform .2s ease;
}

.portal_header .portal_account[open] > summary span {
    transform: rotate(180deg);
}

.portal_header .portal_account_menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    display: grid;
    width: 190px;
    padding: 9px;
    background: #fff;
    border: 1px solid var(--portal-line);
    border-radius: 16px;
    box-shadow: var(--portal-shadow);
}

.portal_header .portal_account_menu a {
    padding: 11px 13px;
    border-radius: 10px;
    color: #363c46 !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.portal_header .portal_account_menu a:hover,
.portal_header .portal_account_menu a:focus,
.portal_header .portal_account_menu .portal_admin_link {
    background: #fff0f4;
    color: var(--portal-accent) !important;
}

.portal_header .portal_mobile_account_links {
    display: none;
}

.portal_header .portal_button,
.portal_header a.portal_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 27px;
    border: 1px solid var(--portal-accent);
    border-radius: 15px;
    background: var(--portal-accent);
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: none;
}

.portal_header .portal_button:hover,
.portal_header .portal_button:focus,
.portal_header a.portal_button:hover,
.portal_header a.portal_button:focus {
    background: var(--portal-accent-dark);
    border-color: var(--portal-accent-dark);
    color: #fff !important;
    box-shadow: none;
    transform: none;
}

.portal_header .portal_button.portal_button_secondary,
.portal_header a.portal_button_secondary {
    background: #fff;
    border-color: #d7dde6;
    color: #252a32 !important;
    box-shadow: none;
}

.portal_header .portal_button.portal_button_secondary:hover,
.portal_header a.portal_button_secondary:hover {
    background: #fff3f6;
    border-color: #ffc1cf;
    color: var(--portal-accent) !important;
}

.portal_header .portal_button_small,
.portal_header a.portal_button_small {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 14px;
    font-size: 14px;
}

.portal_header .portal_nav_toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--portal-line);
    border-radius: 12px;
    background: #fff;
}

.portal_header .portal_nav_toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: #2d323a;
    border-radius: 2px;
}

@media (max-width: 1540px) {
    .portal_header .portal_header_inner { padding-left: 26px; padding-right: 26px; }
    .portal_header .portal_navigation > a,
    .portal_header .portal_nav_group > a { padding-left: 11px; padding-right: 11px; font-size: 14px; }
}

@media (max-width: 1260px) {
    .portal_header .portal_header_inner { min-height: 86px; gap: 20px; }
    .portal_header .portal_logo img { height: 48px; max-width: 300px; }
    .portal_header .portal_nav_toggle { display: block; margin-left: auto; }
    .portal_header .portal_navigation,
    .portal_header nav#portal_navigation {
        position: absolute;
        top: calc(100% + 8px);
        left: 26px;
        right: 26px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: 14px;
        background: #fff !important;
        border: 1px solid var(--portal-line) !important;
        border-radius: 19px;
        box-shadow: var(--portal-shadow) !important;
    }
    .portal_header .portal_navigation.is_open,
    .portal_header nav#portal_navigation.is_open { display: flex; }
    .portal_header .portal_navigation > a,
    .portal_header .portal_nav_group > a { justify-content: space-between; width: 100%; padding: 0 15px; }
    .portal_header .portal_mobile_account_links {
        display: grid;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid var(--portal-line);
    }
    .portal_header .portal_mobile_account_links a {
        min-height: 44px;
        padding: 10px 15px;
        border-radius: 11px;
        color: #363c46 !important;
        font-size: 14px;
        font-weight: 750;
        text-decoration: none !important;
    }
    .portal_header .portal_mobile_account_links a:hover,
    .portal_header .portal_mobile_account_links a:focus { background: #fff0f4; color: var(--portal-accent) !important; }
    .portal_header .portal_subnav { position: static; display: grid; width: 100%; padding: 4px 0 8px 20px; visibility: visible; opacity: 1; transform: none; border: 0; box-shadow: none; }
}

@media (max-width: 900px) {
    .portal_header .portal_header_actions .portal_login { display: none; }
}

@media (max-width: 620px) {
    .portal_header .portal_header_inner { min-height: 72px; padding: 0 16px; }
    .portal_header .portal_logo img { height: 40px; max-width: 225px; }
    .portal_header .portal_header_actions { display: none; }
    .portal_header .portal_navigation,
    .portal_header nav#portal_navigation { left: 14px; right: 14px; }
}
