/* BTS: THE GUIDE - ONE SITE-WIDE HEADER */

#btg-header.btg-unified-header {
    position: relative !important;
    z-index: 9999 !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 92px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #57338B !important;
    border: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    box-shadow: none !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

#btg-header *,
#btg-header *::before,
#btg-header *::after {
    box-sizing: border-box !important;
}

#btg-header .btg-unified-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: calc(100% - 48px) !important;
    max-width: 1440px !important;
    min-height: 92px !important;
    margin: 0 auto !important;
    padding: 12px 0 !important;
    gap: 24px !important;
}

#btg-header .btg-unified-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    gap: 4px !important;
    color: #57338B !important;
    text-decoration: none !important;
    text-align: left !important;
}

#btg-header .btg-unified-title {
    display: block !important;
    color: #57338B !important;
    font-size: clamp(22px, 2.5vw, 32px) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.7px !important;
    white-space: nowrap !important;
}

#btg-header .btg-unified-tagline {
    display: block !important;
    color: #62546b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    line-height: 1.5 !important;
}

#btg-header .btg-unified-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
    gap: 32px !important;
    margin-left: auto !important;
}

#btg-header .btg-unified-signin,
#btg-header .btg-unified-menu {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #57338B !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

#btg-header .btg-unified-avatar {
    display: inline-flex !important;
    width: 25px !important;
    height: 25px !important;
    align-items: center !important;
    justify-content: center !important;
}

#btg-header #btg-auth-photo:not([hidden]) {
    display: inline-block !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

#btg-header [hidden] {
    display: none !important;
}

#btg-header .btg-unified-nav {
    position: absolute !important;
    top: 100% !important;
    right: max(24px, calc((100% - 1440px) / 2)) !important;
    width: min(370px, calc(100vw - 32px)) !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    padding: 12px !important;
    border: 1px solid #e9dff0 !important;
    border-radius: 0 0 12px 12px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(30, 12, 50, 0.15) !important;
}

#btg-header .btg-unified-nav > a,
#btg-header .btg-unified-progress,
#btg-header .btg-unified-progress-links > a {
    display: block !important;
    width: 100% !important;
    padding: 13px 14px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #57338B !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

#btg-header .btg-unified-nav a:hover,
#btg-header .btg-unified-progress:hover {
    background: #f3ecf8 !important;
}

#btg-header .btg-unified-progress-links {
    padding-left: 15px !important;
}

@media (max-width: 640px) {
    #btg-header.btg-unified-header {
        min-height: 78px !important;
    }

    #btg-header .btg-unified-inner {
        width: calc(100% - 32px) !important;
        min-height: 78px !important;
        gap: 10px !important;
    }

    #btg-header .btg-unified-title {
        font-size: clamp(17px, 4.5vw, 23px) !important;
        letter-spacing: -0.4px !important;
    }

    #btg-header .btg-unified-tagline {
        font-size: 9px !important;
        letter-spacing: 1.2px !important;
    }

    #btg-header .btg-unified-actions {
        gap: 12px !important;
    }

    #btg-header .btg-unified-signin,
    #btg-header .btg-unified-menu {
        font-size: 11px !important;
        gap: 5px !important;
    }

    #btg-header .btg-unified-avatar {
        display: none !important;
    }

    #btg-header .btg-unified-nav {
        right: 16px !important;
    }
}

@media (max-width: 380px) {
    #btg-header .btg-unified-title {
        font-size: 16px !important;
    }

    #btg-header .btg-unified-actions {
        gap: 8px !important;
    }
}
/* Restored original brand colors and guide emphasis. */
#btg-header .btg-unified-title { color: #25212A !important; }
#btg-header .btg-unified-bts { color: #CDACE6 !important; }
#btg-header .btg-unified-nav > a[href="/guide-library.html"] { background: #57338B !important; color: #fff !important; }
#btg-header .btg-unified-nav > a[href="/guide-library.html"]:hover { background: #402466 !important; }
