/* RC1.26-p15: single late-loaded desktop header geometry authority.
 * Goal: physical 42px brand/search row, 40px bordered search form, physical 48px nav row.
 * Global vendor .container adds 10px vertical margins; neutralize only header containers.
 * Search children must fit the bordered content box instead of covering the lower border. */
@media (min-width: 992px) {
    .xq-p2-brand-row,
    .xq-p2-nav__inner {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .xq-p2-brand-row {
        height: 42px;
        min-height: 42px;
        max-height: 42px;
    }

    .xq-p2-brand__logo-link,
    .xq-p2-brand__logo-link img {
        width: 40px;
        height: 40px;
    }
    .xq-p2-brand__logo-link img {
        border-radius: 10px;
    }

    .xq-p2-search {
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        box-sizing: border-box;
        align-self: center;
        align-items: stretch;
        border: 1px solid var(--xq-header-search-border, #cbd5e1) !important;
        border-radius: var(--xq-ui-radius, 5px) !important;
        overflow: visible !important;
    }
    .xq-p2-search::before {
        content: none !important;
        display: none !important;
    }
    .xq-p2-search > .xq-p2-category-dropdown,
    .xq-p2-search > input[name="q"],
    .xq-p2-search > button[type="submit"] {
        height: 100%;
        min-height: 0;
        max-height: none;
        box-sizing: border-box;
    }
    .xq-p2-category-trigger {
        height: 100%;
        min-height: 0;
        max-height: none;
        box-sizing: border-box;
    }

    .xq-p2-nav {
        height: auto;
        min-height: 48px;
        max-height: none;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    .xq-p2-nav__inner {
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        display: flex;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        padding-top: 0;
        padding-bottom: 0;
    }
    .xq-p2-nav a {
        display: flex;
        align-items: center;
        align-self: stretch;
        height: 100%;
        min-height: 0;
        max-height: none;
        padding: 0 18px;
        line-height: normal;
        box-sizing: border-box;
        white-space: nowrap;
    }
}
