/*
 * The slim public header (2026-11-12, decision 181).
 *
 * The home page's header: no blue top bar, a slim white bar with the logo,
 * and the bold blue menu lines with no circle around them. It used to live
 * only in public-pass.css, scoped to pages with a .zp-page wrapper, so the
 * free tools pages (which use their own .zgc design and never load
 * public-pass.css) still drew the old two row header.
 *
 * Any page under layouts/public-base turns this on with
 * @section('zp_header', '1'); the layout then puts class "zp-header" on
 * <body>. The .zp-page pages keep getting it the way they always did.
 * The same rules still sit in public-pass.css (lines 67 to 109 and the
 * 900px rule) until that file's pending edit is saved; once it is, they can
 * be deleted there and this file is the only home.
 */

/* 2026-11-12 review: the body.zp-header rules and the body:has(.zp-page)
   rules are written as separate rules on purpose. In a browser without
   :has, one :has selector in a list throws the whole rule away, which would
   take the zp-header rules down with it. */

body.zp-header { padding-top: 64px !important; background: #ffffff; }
body:has(.zp-page) { padding-top: 64px !important; background: #ffffff; }

body.zp-header .public-top-bar { display: none !important; }
body:has(.zp-page) .public-top-bar { display: none !important; }

body.zp-header .public-navbar-logged-out {
    top: 0 !important;
    height: 64px !important;
    box-shadow: none !important;
    border-bottom: 1px solid #edf1f5;
    background: rgba(255, 255, 255, 0.94) !important;
    -webkit-backdrop-filter: saturate(1.6) blur(10px);
    backdrop-filter: saturate(1.6) blur(10px);
}
body:has(.zp-page) .public-navbar-logged-out {
    top: 0 !important;
    height: 64px !important;
    box-shadow: none !important;
    border-bottom: 1px solid #edf1f5;
    background: rgba(255, 255, 255, 0.94) !important;
    -webkit-backdrop-filter: saturate(1.6) blur(10px);
    backdrop-filter: saturate(1.6) blur(10px);
}

body.zp-header .public-navbar-logged-out .public-brand-logo { height: 30px !important; }
body:has(.zp-page) .public-navbar-logged-out .public-brand-logo { height: 30px !important; }

/* No circle, just the lines in ZOOGABOOG! blue, bold, in every state, so a
   tap that sticks as hover never turns the icon white (decision 172). */
body.zp-header .public-mobile-menu-toggle,
body.zp-header .public-mobile-menu-toggle:hover,
body.zp-header .public-mobile-menu-toggle:focus,
body.zp-header .public-mobile-menu-toggle.active {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--zoogaboog-blue, #01aade) !important;
}
body:has(.zp-page) .public-mobile-menu-toggle,
body:has(.zp-page) .public-mobile-menu-toggle:hover,
body:has(.zp-page) .public-mobile-menu-toggle:focus,
body:has(.zp-page) .public-mobile-menu-toggle.active {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--zoogaboog-blue, #01aade) !important;
}

body.zp-header .public-mobile-menu-toggle i,
body.zp-header .public-mobile-menu-toggle:hover i,
body.zp-header .public-mobile-menu-toggle.active i {
    color: var(--zoogaboog-blue, #01aade) !important;
    font-size: 1.9rem;
    -webkit-text-stroke: 0.6px var(--zoogaboog-blue, #01aade);
}
body:has(.zp-page) .public-mobile-menu-toggle i,
body:has(.zp-page) .public-mobile-menu-toggle:hover i,
body:has(.zp-page) .public-mobile-menu-toggle.active i {
    color: var(--zoogaboog-blue, #01aade) !important;
    font-size: 1.9rem;
    -webkit-text-stroke: 0.6px var(--zoogaboog-blue, #01aade);
}

body.zp-header .public-navbar-logged-out .public-nav-link { font-weight: 600; color: #0f172a; }
body:has(.zp-page) .public-navbar-logged-out .public-nav-link { font-weight: 600; color: #0f172a; }

body.zp-header .public-navbar-logged-out .public-auth-actions .public-btn-sign-in,
body.zp-header .public-navbar-logged-out .public-auth-actions .public-btn-get-started {
    border-radius: 999px !important;
    text-transform: none;
}
body:has(.zp-page) .public-navbar-logged-out .public-auth-actions .public-btn-sign-in,
body:has(.zp-page) .public-navbar-logged-out .public-auth-actions .public-btn-get-started {
    border-radius: 999px !important;
    text-transform: none;
}

body.zp-header .public-navbar-logged-out .public-auth-actions .public-btn-sign-in { border: 0 !important; background: transparent !important; color: #0f172a !important; }
body:has(.zp-page) .public-navbar-logged-out .public-auth-actions .public-btn-sign-in { border: 0 !important; background: transparent !important; color: #0f172a !important; }

body.zp-header .public-navbar-logged-out .public-auth-actions .public-btn-sign-in:hover { color: var(--zoogaboog-blue, #01aade) !important; box-shadow: none !important; transform: none !important; }
body:has(.zp-page) .public-navbar-logged-out .public-auth-actions .public-btn-sign-in:hover { color: var(--zoogaboog-blue, #01aade) !important; box-shadow: none !important; transform: none !important; }

body.zp-header .public-navbar-logged-out .public-auth-actions .public-btn-get-started { box-shadow: none !important; }
body:has(.zp-page) .public-navbar-logged-out .public-auth-actions .public-btn-get-started { box-shadow: none !important; }

@media (min-width: 900px) {
    body.zp-header { padding-top: 72px !important; }
    body:has(.zp-page) { padding-top: 72px !important; }

    body.zp-header .public-navbar-logged-out { height: 72px !important; }
    body:has(.zp-page) .public-navbar-logged-out { height: 72px !important; }

    body.zp-header .public-navbar-logged-out .public-brand-logo { height: 34px !important; }
    body:has(.zp-page) .public-navbar-logged-out .public-brand-logo { height: 34px !important; }
}
