/**
 * Unified public header for attorney/client auth funnels and legal/marketing subpages
 * (terms, about, benefits) that include layouts.partials.bk-public-auth-header.
 * Scoped under .bk-pub-header — does not affect landing home (bk-main-header).
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

.bk-pub-header {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 39, 68, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.bk-pub-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.125rem 1.5rem;  /* was: 0.65rem 1.25rem */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bk-pub-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.bk-pub-logo img {
    height: 52px;       /* was: 42px */
    width: auto;
    max-width: 240px; /* was: 200px — optional, keeps wide logos from dominating */
    object-fit: contain;
}

.bk-pub-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--bk-pub-border, #e2e8f0);
    border-radius: 10px;
    background: #f8fafc;
    color: #012cae;
    cursor: pointer;
}

.bk-pub-nav-toggle:hover {
    background: #f1f5f9;
}

.bk-pub-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bk-pub-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569 !important;
    text-decoration: none !important;
    transition: color 0.15s, background 0.15s;
    border: 1px solid transparent;
}

.bk-pub-nav-link:hover {
    color: #012cae !important;
    background: rgba(1, 44, 174, 0.06);
}

.bk-pub-nav-link.is-active {
    
    background: rgba(1, 44, 174, 0.1);
}

.bk-pub-nav-link--cta {
    background: linear-gradient(180deg, #0d47e8 0%, #012cae 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(1, 44, 174, 0.25);
    border-color: transparent !important;
}

.bk-pub-nav-link--cta:hover {
    color: #fff !important;
    filter: brightness(1.05);
    background: linear-gradient(180deg, #1a56f0 0%, #021f8f 100%) !important;
}

.bk-pub-nav-link--cta.is-active {
    box-shadow: 0 4px 18px rgba(1, 44, 174, 0.35);
}

.bk-pub-nav-link--logout {
    color: #64748b !important;
}

@media screen and (max-width: 767px) {
    .bk-pub-nav-toggle {
        display: inline-flex;
    }

    .bk-pub-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 0.5rem;
    }

    .bk-pub-nav.is-open {
        display: flex;
    }

    .bk-pub-nav-link {
        justify-content: center;
    }
}
