/* The live header contains three groups: branding, navigation, and actions. */
.pcb-site-header .np-header-inner.alignwide {
    box-sizing:border-box;
    width:100% !important;
    max-width:1820px !important;
    margin-inline:auto !important;
    padding-inline:clamp(12px,1.6vw,28px);
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-areas:"brand nav actions";
    align-items:center;
    gap:6px clamp(10px,1.4vw,24px);
}
.pcb-site-header .pcb-brand-logo-stack { grid-area:brand; }
.pcb-site-header .np-main-nav-shell { grid-area:nav; min-width:0; }
.pcb-site-header .np-header-inner .np-header-actions {
    grid-area:actions;
    display:flex !important;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap !important;
    min-width:0;
    margin:0;
}
.pcb-site-header .np-header-actions > p:empty,
.pcb-site-header .np-main-nav-shell > p:empty { display:none; }

@media(min-width:901px) {
    .pcb-site-header .np-menu-panel { width:100%; min-width:0; }
    .pcb-site-header .np-managed-menu {
        display:flex;
        flex-wrap:wrap;
        align-items:center;
        justify-content:center;
        gap:0 clamp(10px,.95vw,18px);
    }
    .pcb-site-header .np-managed-menu > li > a { padding-block:10px; }
}
@media(min-width:901px) and (max-width:1450px) {
    .pcb-site-header .np-header-inner.alignwide {
        grid-template-columns:auto minmax(0,1fr);
        grid-template-areas:"brand actions" "brand nav";
        padding-block:6px;
        row-gap:2px;
    }
    .pcb-site-header .np-managed-menu { justify-content:flex-end; }
}
@media(max-width:900px) {
    .pcb-site-header .np-header-inner.alignwide {
        grid-template-columns:auto minmax(0,1fr) auto;
        grid-template-areas:"brand actions nav";
    }
    .pcb-site-header .np-header-inner .np-header-actions > .wp-block-button { display:block !important; }
    .pcb-site-header .np-main-nav-shell { z-index:2; justify-self:end; }
    .pcb-site-header .np-menu-panel {
        box-sizing:border-box;
        width:min(340px,calc(100vw - 48px));
        max-height:65vh;
        max-height:65dvh;
        overflow-y:auto;
    }
}
@media(max-width:650px) {
    .pcb-site-header .np-header-inner.alignwide {
        grid-template-columns:minmax(0,1fr) auto;
        grid-template-areas:"brand nav" "actions actions";
        padding-block:5px;
    }
    .pcb-site-header .np-header-inner .np-header-actions { justify-content:center; gap:5px 8px; }
    .pcb-site-header .np-header-actions a { max-width:100%; }
}
