:root {
    --shared-portal-topbar-height: 36px;
    --shared-portal-header-height: 78px;
    --shared-portal-nav-height: 48px;
    --shared-portal-stack-height: calc(var(--shared-portal-topbar-height) + var(--shared-portal-header-height));
}

.site-shared-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-shared-topbar {
    background: #e8e8e8;
    border-bottom: 1px solid #d8d8d8;
    color: #666;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 2001;
}

.site-shared-topbar .site-shared-container {
    min-height: var(--shared-portal-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-shared-topbar-text {
    min-width: 0;
    color: #666;
}

.site-shared-topbar-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
}

.site-shared-topbar-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-shared-topbar-links a:hover {
    color: #4c80bf;
}

.site-shared-link-icon {
    line-height: 1;
}

.site-shared-header {
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.site-shared-header-content {
    min-height: var(--shared-portal-header-height);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    /* padding: 20px 0; */
}

.site-shared-logo-section {
    min-width: 0;
}

.site-shared-logo {
    /* display: inline-flex;
    align-items: center;
    gap: 12px; */
    color: #111827;
    text-decoration: none;
}

.site-shared-logo-image,
.site-shared-logo-icon {
    /* max-width: 660px;
    height: 90px; */
    /* flex: 0 0 50px;
    border-radius: 12px; */
}

.site-shared-logo-image {
    object-fit: contain;
    background: #fff;
    height: 118px;
    max-width: 1200px;
}

.site-shared-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.site-shared-brand-copy {
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.site-shared-brand-copy strong {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.site-shared-brand-copy small {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.2;
}

.site-shared-nav-region {
    min-width: 0;
    background: #0066cc;
}

.site-shared-nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 48px;
    line-height: 48px;
}

.site-shared-nav-group {
    position: relative;
}

.site-shared-nav-item {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
    padding: 0 28px;
    min-height: 48px;
}

.site-shared-nav-item:hover,
.site-shared-nav-item.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.site-shared-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 140px;
    max-width: 200px;
    padding: 10px 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16);
    display: none;
    z-index: 1100;
}

.site-shared-nav-group:hover .site-shared-nav-dropdown,
.site-shared-nav-group:focus-within .site-shared-nav-dropdown {
    display: block;
}

.site-shared-nav-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-shared-nav-dropdown a:hover,
.site-shared-nav-dropdown a.active {
    background: #f5f7fa;
    color: #3557ff;
}

@media (max-width: 900px) {
    .site-shared-topbar .site-shared-container,
    .site-shared-header-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-shared-header-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 14px;
        padding-top: 14px;
        padding-bottom: 14px;
        min-height: auto;
    }

    .site-shared-nav-menu {
        flex-wrap: wrap;
        gap: 14px 18px;
    }
}

@media (max-width: 640px) {
    .site-shared-topbar .site-shared-container {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        padding-top: 10px;
        padding-bottom: 10px;
        min-height: auto;
    }

    .site-shared-topbar-links {
        gap: 12px;
    }

    .site-shared-logo {
        align-items: flex-start;
    }

    .site-shared-brand-copy strong {
        font-size: 16px;
    }
}
