/* Shared geometry for the public site, sign-in and customer/team area.
   Load after each area's stylesheet so legacy viewport units cannot move the header. */
:root {
    --site-width: 1348px;
    --site-gutter: clamp(16px, 4vw, 72px);
}
html:has(> body.site_shell) {
    height: auto !important;
    min-height: 100%;
    overflow-y: auto !important;
    scrollbar-gutter: stable;
}
html:has(> body.site_shell)::-webkit-scrollbar,
body.site_shell::-webkit-scrollbar { width: 8px; }
html > body.site_shell {
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    padding-inline: var(--site-gutter) !important;
    padding-top: 0 !important;
}
body.site_shell > :is(.site_header, .dashboard_header) {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--site-width);
    min-height: 88px;
    height: auto;
    margin-inline: auto;
    padding: 8px 0;
    gap: 16px;
    flex-shrink: 0;
    border-bottom: 1px solid #d4dfe6;
}
.site_shell > .main_ucp {
    width: 100%;
    max-width: var(--site-width);
    margin-inline: auto;
    min-width: 0;
}
.site_shell > .main_ucp > .ucp { flex: 1; min-width: 0; }
@media (min-width: 1025px) {
    .site_shell > .main_ucp > .left_ucp { width: 240px; flex: 0 0 240px; }
}
.site_shell :is(.site_header, .dashboard_header) .logo_link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    flex-shrink: 0;
}
.site_shell :is(.site_header, .dashboard_header) .logo {
    display: block;
    width: 180px;
    height: auto;
}
.site_shell :is(.site_header, .dashboard_header) .flex_categorys_header {
    display: flex;
    gap: 28px;
    margin-inline: auto;
}
.site_shell :is(.site_header, .dashboard_header) .category_header {
    min-height: 44px;
    height: auto;
    gap: 7px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #17243a;
    font-family: 'Regular', Arial, sans-serif;
    cursor: pointer;
}
.site_shell :is(.site_header, .dashboard_header) .category_header span { font-size: 17px; }
.site_shell :is(.site_header, .dashboard_header) .category_header svg { width: 16px; height: 16px; }
.site_shell :is(.site_header, .dashboard_header) .nav_dd_panel { min-width: 265px; padding: 8px; border-radius: 12px; gap: 2px; }
.site_shell :is(.site_header, .dashboard_header) .nav_dd_item { min-height: 56px; padding: 10px; gap: 12px; border-radius: 8px; }
.site_shell :is(.site_header, .dashboard_header) .nav_dd_item[aria-current="page"] { background: #e6f4f8; }
.site_shell :is(.site_header, .dashboard_header) .nav_dd_icon { width: 36px; height: 36px; border-radius: 8px; }
.site_shell :is(.site_header, .dashboard_header) .nav_dd_icon i { color: #0f7799; font-size: 16px; }
.site_shell :is(.site_header, .dashboard_header) .nav_dd_text { min-width: 0; gap: 3px; }
.site_shell :is(.site_header, .dashboard_header) .nav_dd_name { font-size: 15px; line-height: 1.3; }
.site_shell :is(.site_header, .dashboard_header) .nav_dd_desc { color: #506078; font-size: 13px; line-height: 1.4; }
.site_shell :is(.site_header, .dashboard_header) .flex_icons { display: flex; gap: 8px; flex-shrink: 0; }
.site_shell :is(.site_header, .dashboard_header) .min_ic {
    display: inline-flex;
    width: auto;
    min-width: 44px;
    min-height: 44px;
    height: auto;
    padding: 10px 12px;
    gap: 8px;
    border-radius: 8px;
    color: #075d79;
    text-decoration: none;
}
.site_shell :is(.site_header, .dashboard_header) .min_ic svg { width: 20px; height: 20px; flex-shrink: 0; }
.site_shell .front_account_label { font-family: 'SemiBold', Arial, sans-serif; font-size: 15px; line-height: 1.3; }
.site_shell :is(.site_header, .dashboard_header) :is(a, button):focus-visible { outline: 3px solid #075d79; outline-offset: 4px; }
.site_shell > .site_footer { padding: 40px var(--site-gutter) 28px; gap: 28px; }
.site_shell .site_footer_grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: var(--site-width); margin-inline: auto; gap: 24px; }
.site_shell .site_footer_col { min-width: 0; gap: 10px; }
.site_shell .site_footer_heading { font: 17px/1.3 'SemiBold', Arial, sans-serif; }
.site_shell .site_footer_nav { gap: 0; }
.site_shell .site_footer_nav a { display: flex; align-items: center; min-height: 44px; padding-block: 7px; color: #43536a; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.site_shell .site_footer_legal, .site_shell .site_footer_legal_sub { color: #506078; font-size: 14px; line-height: 1.5; }
.site_shell .site_footer_logo { width: 126px; height: 26px; }

@media (max-width: 1024px) {
    body.site_shell > :is(.site_header, .dashboard_header) { min-height: 64px; gap: 8px; }
    .site_shell :is(.site_header, .dashboard_header) .logo { width: 126px; }
    .site_shell :is(.site_header, .dashboard_header) .flex_categorys_header { display: none; }
    .site_shell :is(.site_header, .dashboard_header) .flex_icons { display: flex !important; margin-left: auto; }
    .site_shell :is(.site_header, .dashboard_header) :is(.burger_btn, .ucp_burger) { display: block; position: relative !important; top: auto !important; right: auto !important; margin: 0 !important; width: 44px; height: 44px; flex-shrink: 0; }
    .site_shell :is(.burger_btn, .ucp_burger) span { left: 12px; width: 20px; height: 2px; background: #075d79; }
    .site_shell :is(.burger_btn, .ucp_burger) span:nth-child(1) { top: 14px; }
    .site_shell :is(.burger_btn, .ucp_burger) span:nth-child(2) { top: 21px; }
    .site_shell :is(.burger_btn, .ucp_burger) span:nth-child(3) { top: 28px; }
    .site_shell :is(.burger_btn, .ucp_burger).active span:is(:nth-child(1), :nth-child(3)) { top: 21px; }
    body.site_shell.drawer-open .ucp_burger { position: fixed !important; top: 10px !important; right: var(--site-gutter) !important; }
    body.site_shell.drawer-open > .dashboard_header { z-index: 1200 !important; }
    body.site_shell.drawer-open .dashboard_header .flex_icons { visibility: hidden; }
    body.site_shell.drawer-open .ucp_burger { pointer-events: auto; }
    body.site_shell.drawer-open > .ucp_drawer_backdrop { display: block; position: fixed; inset: 0; z-index: 1000; background: #102d3a59; }
    .site_shell > .mobile_nav { display: none; top: 64px; left: var(--site-gutter); right: var(--site-gutter); width: auto; max-height: calc(100dvh - 80px); }
    .site_shell > .mobile_nav.open { display: flex; }
    .site_shell > .mobile_nav { position: fixed; inset: var(--front-menu-top, 64px) var(--site-gutter) 12px; height: auto; padding: 12px 16px 20px; border: 1px solid #d7e7ed; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px #102d3a26; gap: 4px; overflow-y: auto; overscroll-behavior: contain; }
    .site_shell .mobile_nav_header { min-height: 48px; padding: 12px 4px; }
    .site_shell .mobile_nav_header span { font-size: 17px; }
    .site_shell .mobile_nav_header svg { width: 18px; height: 18px; }
    .site_shell .mobile_nav_link { min-height: 56px; padding: 10px; gap: 12px; }
    .site_shell .mobile_nav_link .nav_dd_name { font-size: 15px; }
    .site_shell .mobile_nav_link .nav_dd_desc { font-size: 13px; line-height: 1.4; }
    .site_shell .mobile_nav_link .nav_dd_icon { width: 36px; height: 36px; }
    .site_shell .mobile_nav_link .nav_dd_icon i { font-size: 16px; }
}
html:is(.front-menu-open, .drawer-open):has(> .site_shell),
.site_shell:is(.front-menu-open, .drawer-open) { overflow: hidden !important; }
@media (max-width: 768px) {
    :root { --site-gutter: 16px; }
    .site_shell .site_footer_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 374px) {
    .site_shell :is(.site_header, .dashboard_header) .front_account_label { display: none; }
}
