/* NAS Press V1.5: shared brand header; independent of the selected page template. */
body .main-header.fpv3-global-header[data-np-brand] {
    --np-header-start:#102438; --np-header-end:#14566a; --np-header-accent:#ffb347;
    --np-header-menu:#122c3c; --np-header-muted:#d0e1eb;
    position:relative; isolation:isolate; color:#fff;
    background:linear-gradient(112deg,var(--np-header-start),var(--np-header-end));
    background:linear-gradient(112deg, var(--np-header-start) 0%, #142b40 50%, color-mix(in srgb, var(--np-header-end) 70%, #101f32) 100%);
    border:0; border-bottom:2px solid var(--np-header-accent); padding:0;
    box-shadow:none; font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
}
body .main-header.fpv3-global-header[data-np-brand="pixelfota"] {
    --np-header-end:#61356f; --np-header-accent:#f05cc7;
    --np-header-menu:#29223e; --np-header-muted:#eee0ef;
}
body .main-header.fpv3-global-header[data-np-brand][data-np-custom-tint] {
    background:linear-gradient(112deg,#102438,#26364b);
    background:linear-gradient(112deg,#102438 0%,#142b40 50%,color-mix(in srgb,var(--np-header-end) 28%,#101f32) 100%);
}
body .main-header.fpv3-global-header[data-np-brand]::before {
    content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
    background:radial-gradient(ellipse at 95% -60%,rgba(255,255,255,.15),transparent 66%);
}
body .main-header.fpv3-global-header[data-np-brand] .header-container {
    min-height:68px; padding-block:8px; gap:28px; display:flex; flex-direction:row;
    align-items:center; justify-content:space-between;
}
body .main-header.fpv3-global-header[data-np-brand] .site-branding {flex:0 1 auto;min-width:0;}
body .main-header.fpv3-global-header[data-np-brand] .fpv3-brand-home {display:flex;gap:11px;align-items:center;color:white;text-decoration:none;}
body .main-header.fpv3-global-header[data-np-brand] .np-header-mark {display:block;flex:0 0 auto;width:45px;height:45px;object-fit:contain;}
body .main-header.fpv3-global-header[data-np-brand] .fpv3-brand-words {display:flex;flex-direction:column;min-width:0;gap:0;}
body .main-header.fpv3-global-header[data-np-brand] .np-header-word {display:block;height:34px;width:auto;max-width:100%;object-fit:contain;object-position:left center;}
body .main-header.fpv3-global-header[data-np-brand="pixelfota"] .np-header-word {height:30px;}
body .main-header.fpv3-global-header[data-np-brand] .main-navigation {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:clamp(14px,2.5vw,30px);align-items:center;background:transparent;}
body .main-header.fpv3-global-header[data-np-brand] .main-navigation a {color:#f6f8fc;font-size:14px;font-weight:650;line-height:1.35;text-decoration:none;white-space:nowrap;padding:10px 0 8px;border:0;border-bottom:2px solid transparent;}
body .main-header.fpv3-global-header[data-np-brand] .main-navigation a:is(:hover,:focus-visible,.active) {color:white;text-decoration:none;border-bottom-color:var(--np-header-accent);background:transparent;}
body .main-header.fpv3-global-header[data-np-brand] :is(.fpv3-brand-home,.main-navigation a,.menu-toggle):focus-visible {outline:2px solid var(--np-header-accent);outline-offset:4px;}
body .main-header.fpv3-global-header[data-np-brand] .menu-toggle-line {background:#fff;}
@media(max-width:800px) {
    body .main-header.fpv3-global-header[data-np-brand] .header-container {position:relative;min-height:62px;gap:12px;padding-block:8px;}
    body .main-header.fpv3-global-header[data-np-brand] .site-branding {max-width:calc(100% - 56px);}
    body .main-header.fpv3-global-header[data-np-brand] .np-header-mark {width:42px;height:42px;}
    body .main-header.fpv3-global-header[data-np-brand] .np-header-word {height:28px;}
    body .main-header.fpv3-global-header[data-np-brand="pixelfota"] .np-header-word {height:25px;}
    body .main-header.fpv3-global-header[data-np-brand] .menu-toggle {display:block;flex:0 0 44px;margin-left:auto;border:1px solid rgba(255,255,255,.24);border-radius:8px;}
    body .main-header.fpv3-global-header[data-np-brand] .main-navigation {display:none!important;position:absolute;top:calc(100% + 4px);left:12px;right:12px;z-index:1000;flex-direction:column;align-items:stretch;gap:0;padding:8px;background:var(--np-header-menu)!important;border:1px solid rgba(255,255,255,.2);border-radius:10px;box-shadow:0 12px 28px #101f3255;}
    body .main-header.fpv3-global-header[data-np-brand] .main-navigation.is-open {display:flex!important;}
    body .main-header.fpv3-global-header[data-np-brand] .main-navigation a {padding:12px 14px;border:0;border-radius:6px;white-space:normal;}
    body .main-header.fpv3-global-header[data-np-brand] .main-navigation a:is(:hover,:focus-visible,.active) {background:rgba(255,255,255,.10);}
}
@media(max-width:360px) {
    body .main-header.fpv3-global-header[data-np-brand] .header-container {padding-inline:12px;gap:8px;}
    body .main-header.fpv3-global-header[data-np-brand] .fpv3-brand-home {gap:8px;}
    body .main-header.fpv3-global-header[data-np-brand] .np-header-mark {width:37px;height:37px;}
    body .main-header.fpv3-global-header[data-np-brand] .np-header-word {height:23px;}
    body .main-header.fpv3-global-header[data-np-brand="pixelfota"] .np-header-word {height:21px;}
}

body .main-header.fpv3-global-header[data-np-brand="lifestyle"] {--np-header-end:#7a3e56;--np-header-accent:#f6a177;--np-header-menu:#302337;--np-header-muted:#f3e0e6;}

/* Astronomy uses the same compact header geometry and brand-specific accents. */
body .main-header.fpv3-global-header[data-np-brand="slunce"]{--np-header-end:#68502f;--np-header-accent:#f2b54e;--np-header-menu:#302b27;}
body .main-header.fpv3-global-header[data-np-brand="mesic"]{--np-header-end:#465b83;--np-header-accent:#a6bbdc;--np-header-menu:#252d44;}
body .main-header.fpv3-global-header[data-np-brand] .np-astro-header-logo{display:block;width:auto!important;max-width:100%;height:48px!important;object-fit:contain;object-position:left center;}
@media(max-width:800px){body .main-header.fpv3-global-header[data-np-brand] .np-astro-header-logo{height:42px!important;}}
