@charset "utf-8";

/* ==========================================================================
   data-header widget  (_structure/widgets/data-header)
   Site header: logo (left) · search with scope select · account button (right)
   Transparent background — inherits the (white) page background.
   ========================================================================== */

.hd {
    color: #1a1a1a;
}

/* Uses the theme's .nt-container (width + centering) + px-* utilities (side padding),
   so the header content lines up with the top bar. We only add the flex layout here. */
.hd .nt-container {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
}

/* 1. Logo — left; margin-right:auto pushes search + account to the right edge */
.hd .logo {
    margin: 0 auto 0 0;
    line-height: 0;
    flex: 0 0 auto;
}

.hd .logo img {
    height: 56px;
    width: auto;
    display: block;
}

/* 2. Search: one rounded box = scope select | input | square button */
.hd .search {
    display: flex;
    align-items: stretch;
    flex: 0 0 auto;
    height: 40px;
    border: 1px solid #d9dce1;
    border-radius: 999px 8px 8px 999px;
    background: #fff;
    overflow: hidden;
}

.hd .search:focus-within {
    border-color: var(--web-primary);
}

/* Scope select — the global select rule in theme.css supplies the chevron */
.hd .search .search-scope {
    flex: 0 0 auto;
    padding: 0 1.9rem 0 1rem;
    background-color: transparent;
    background-position: right .7rem center;
    border: 0;
    border-right: 1px solid #e5e7eb;
    color: #343a40;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.hd .search input {
    width: 200px;
    padding: 0 12px;
    background: transparent;
    color: #1a1a1a;
    border: 0;
    font-size: 13px;
    outline: none;
}

.hd .search input::placeholder {
    color: #9aa0aa;
}

/* Button color: bright primary via .bg-primary (css/color/*.css) */
.hd .search .search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.hd .search .search-btn:hover {
    background: var(--web-primary-hover) !important;
}

.hd .search .search-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
}

/* 3. Account pill(s) */
.hd .acct {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: 6px;
}

.hd .acct-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 16px;
    background: #fff;
    color: #343a40;
    border: 1px solid #d9dce1;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.hd .acct-btn:hover {
    color: var(--web-primary);
    border-color: var(--web-primary);
    text-decoration: none;
}

.hd .acct-icon {
    width: 40px;
    padding: 0;
    justify-content: center;
}

/* Mobile-only buttons (hidden on desktop) */
.hd .hsearch,
.hd .hbtn {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.hd .hsearch svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #1a1a1a;
    stroke-width: 2;
    stroke-linecap: round;
}

.hd .hbtn span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background: #1a1a1a;
    border-radius: 2px;
}

/* Widget setup gear */
.hd+.btn-wset {
    text-align: right;
    margin-top: 4px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hd .logo img { height: 46px; }
    .hd .search input { width: 150px; }
}

@media (max-width: 767px) {
    .hd .nt-container {
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hd .logo img { height: 34px; }

    /* Account lives in the sidebar/menu on mobile */
    .hd .acct { display: none; }

    /* Elevated mobile header bar: solid white + bottom border + soft shadow */
    .hd {
        position: relative;
        z-index: 5;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    }

    /* Square outlined icon buttons (search / menu) */
    .hd .hsearch,
    .hd .hbtn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        transition: border-color .15s ease, background .15s ease;
    }
    .hd .hsearch:hover,
    .hd .hbtn:hover,
    .hd.search-open .hsearch {
        border-color: var(--web-primary);
    }
    .hd .hsearch:focus,
    .hd .hbtn:focus { outline: none; }
    .hd .hsearch svg { width: 19px; height: 19px; stroke: var(--web-primary-foreground); }
    .hd .hbtn span { width: 18px; margin: 2px 0; background: var(--web-primary-foreground); }

    /* Search collapses under the bar; toggled by .hsearch */
    .hd .search {
        order: 3;
        width: 100%;
        display: none;
    }

    .hd.search-open .search {
        display: flex;
    }

    .hd .search input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
}
