/**
 * Unified public header (home, pricing, terms, auth funnels, etc.)
 * via layouts.partials.bk-public-auth-header. Scoped under .bk-pub-header.
 *
 * Nav bar padding/font use px (not rem): auth pages load guest-css.css which sets
 * html { font-size: 14px }, so rem-based links would look smaller than on the home
 * layout where the root size stays at the typical 16px default.
 */

@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');

/* Home only — compact contact strip above the main header */
.bk-pub-contact-bar {
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0d1421;
    color: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.bk-pub-contact-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1.5rem;
    padding: 0.5rem 0;
    min-height: 2.75rem;
}

.bk-pub-contact-bar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    min-width: 0;
}

.bk-pub-contact-bar__group--phones {
    flex: 1 1 auto;
}

.bk-pub-contact-bar__divider {
    display: inline-block;
    width: 1px;
    height: 1.15rem;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.bk-pub-contact-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem 0.5rem;
    flex-wrap: wrap;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.2rem 0;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    min-width: 0;
}

.bk-pub-contact-bar__link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.bk-pub-contact-bar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #93c5fd;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.bk-pub-contact-bar__link:hover .bk-pub-contact-bar__icon {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.bk-pub-contact-bar__meta {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    flex-shrink: 0;
}

.bk-pub-contact-bar__value {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.bk-pub-contact-bar__link--email .bk-pub-contact-bar__value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(18rem, 52vw);
}

@media screen and (max-width: 575px) {
    .bk-pub-contact-bar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.55rem 0;
    }

    .bk-pub-contact-bar__group--phones {
        justify-content: flex-start;
    }

    .bk-pub-contact-bar__link--email {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 0.45rem;
        margin-top: 0.1rem;
    }

    .bk-pub-contact-bar__link--email .bk-pub-contact-bar__value {
        max-width: 100%;
    }
}

.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;
}

/*
 * Guest/auth layout loads style.css → responsive.css, which forces `.container { max-width: 100% }`
 * at min-width 1600px and max-width 992px. The marketing layout uses Bootstrap 5 without that rule,
 * so the header bar matches BS5 container widths here (same breakpoints as assets/css/bootstrap.min.css).
 */
.bk-pub-header .bk-pub-header-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .bk-pub-header .bk-pub-header-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .bk-pub-header .bk-pub-header-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .bk-pub-header .bk-pub-header-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .bk-pub-header .bk-pub-header-container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .bk-pub-header .bk-pub-header-container {
        max-width: 1320px;
    }
}

/* Inner sits inside Bootstrap `.container` (same as page sections); vertical padding only */
.bk-pub-header-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

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

.bk-pub-logo img {
    height: auto;
    width: auto;
    max-width: min(340px, 100%);
    max-height: 78px;
    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: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.bk-pub-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14.4px;
    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, #22c55e 0%, #15803d 100%) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
    border-color: transparent !important;
}

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

.bk-pub-nav-link--cta.is-active {
    box-shadow: 0 4px 18px rgba(22, 163, 74, 0.4);
}

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

/* Phone: hamburger stays on the same row as the logo; links open full-width below */
@media screen and (max-width: 767px) {
    .bk-pub-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        column-gap: 16px;
        row-gap: 12px;
        align-items: center;
    }

    .bk-pub-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .bk-pub-nav-toggle {
        grid-column: 2;
        grid-row: 1;
        display: inline-flex;
        flex-shrink: 0;
        align-self: center;
    }

    .bk-pub-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 8px;
        justify-content: stretch;
    }

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

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

    .bk-pub-logo img {
        max-height: 56px;
        max-width: min(280px, calc(100vw - 96px));
    }
}

@media screen and (max-width: 575px) {
    .bk-pub-header-inner {
        padding: 10px 0;
        column-gap: 12px;
    }

    .bk-pub-logo img {
        max-height: 48px;
        max-width: min(240px, calc(100vw - 80px));
    }
}
