/* ExpertSure editorial header styles.
 *
 * Moved verbatim out of mu-plugins/expertsure-editorial-header.php on
 * 2026-08-28, where it was printed inline at wp_head priority 5 on every
 * request (21,511 chars, unminified, uncacheable, and 68% duplicated inside
 * LiteSpeed's inline critical CSS). Source of truth is now this file: edit
 * here, commit, deploy.
 *
 * Minification is LiteSpeed's job (optm-css_min=1) -- keep this readable.
 * Enqueued by ../functions.php, gated on the mu-plugin still existing.
 *
 * 151 of the 154 selectors below are .es-hdr-prefixed. The exceptions are the
 * #brx-header hide rule (which is why the enqueue is gated) and two keyframe
 * stops. Keep it that way: this file must not become a general stylesheet.
 */
/* Skip to content link (accessibility) */
.es-hdr__skip-link {
    position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
    z-index: 10001; background: #2B4761; color: #fff; padding: 12px 24px; font-size: 14px;
    font-weight: 600; border-radius: 0 0 6px 0; text-decoration: none;
}
.es-hdr__skip-link:focus {
    position: fixed; left: 0; top: 0; width: auto; height: auto; overflow: visible;
}

/* Hide Bricks header. Belt-and-braces since 2026-09-20: the Bricks Header
   template is a draft and header.php never renders one. Kept in case a header
   template is ever published again. */
#brx-header { display: none !important; }

/* === EDITORIAL HEADER === */
.es-hdr { font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1; box-sizing: border-box; }
.es-hdr *, .es-hdr *::before, .es-hdr *::after { box-sizing: border-box; margin: 0; padding: 0; }
.es-hdr a { text-decoration: none; color: inherit; }

/* Masthead — dark navy */
.es-hdr__masthead-wrap {
    background: #2B4761; position: relative; overflow: hidden;
}
.es-hdr__masthead-wrap::before {
    content: ''; position: absolute; top: 0; left: 0; width: 65%; height: 100%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 8px 8px;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}
.es-hdr__masthead-wrap::after {
    content: ''; position: absolute; top: -15px; left: 20px; width: 250px; height: 96px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(74,117,96,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.es-hdr__masthead {
    display: flex; align-items: center; justify-content: space-between;
    width: var(--content-width-safe, min(1280px, calc(100% - var(--gutter, 2rem) * 2)));
    max-width: 100%; margin: 0 auto; padding: 18px 0;
}
.es-hdr__brand { display: flex; align-items: center; gap: 10px; transition: opacity 0.15s; flex-shrink: 0; }
.es-hdr__brand:hover { opacity: 0.9; }
.es-hdr__brand-icon {
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 6px;
}
.es-hdr__brand-name { font-size: 26px; font-weight: 400; color: #ffffff; letter-spacing: -0.02em; }
.es-hdr__brand-name em { font-style: normal; font-weight: 700; color: #ffffff; }
.es-hdr__brand-suffix {
    font-size: 9px; font-weight: 600; color: rgba(255,255,255,0.6); letter-spacing: 0.1em;
    text-transform: uppercase; margin-left: -4px; align-self: flex-start; margin-top: 8px;
}
.es-hdr__masthead-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.es-hdr__masthead-divider {
    width: 1px; height: 16px; background: rgba(255,255,255,0.15); flex-shrink: 0;
}
.es-hdr__masthead-trust {
    display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.75);
    font-family: inherit; white-space: nowrap;
}
.es-hdr__masthead-trust svg { flex-shrink: 0; }
.es-hdr a.es-hdr__masthead-link {
    font-size: 12px; color: rgba(255,255,255,0.8); transition: color 0.15s; white-space: nowrap;
}
.es-hdr a.es-hdr__masthead-link:hover { color: rgba(255,255,255,0.95); }
.es-hdr__search-trigger {
    display: flex; align-items: center; gap: 8px; padding: 7px 14px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: 8px;
    cursor: pointer; min-width: 160px; font-family: inherit; transition: all 0.15s;
}
.es-hdr__search-trigger span {
    font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 400;
}
.es-hdr__search-trigger kbd {
    font-size: 10px; color: rgba(255,255,255,0.3); font-family: inherit; font-weight: 500;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px; padding: 1px 5px; margin-left: auto;
}
.es-hdr__search-trigger svg circle, .es-hdr__search-trigger svg line { stroke: rgba(255,255,255,0.4); }
.es-hdr__search-trigger:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); }
a.es-hdr__cta, a.es-hdr__cta:visited, a.es-hdr__cta:link {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px;
    background: #ffffff; color: #2B4761 !important; border-radius: 6px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    transition: background 0.15s, transform 0.15s; text-decoration: none;
}
a.es-hdr__cta:hover { background: #e8ecf0; color: #2B4761 !important; transform: translateY(-1px); }
a.es-hdr__cta svg { flex-shrink: 0; stroke: #2B4761; }

/* Nav tabs — white bar with sage underline */
.es-hdr__tabs-wrap { position: relative; background: #ffffff; border-bottom: 1px solid #eaeaea; }
.es-hdr__tabs {
    display: flex; align-items: stretch;
    width: var(--content-width-safe, min(1280px, calc(100% - var(--gutter, 2rem) * 2)));
    max-width: 100%; margin: 0 auto; padding: 0;
    gap: 0;
}
.es-hdr__tab {
    display: flex; align-items: center; padding: 14px 16px;
    font-size: 11.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
    color: #4a5568; cursor: pointer; border-bottom: 2px solid transparent;
    border-top: none; border-left: none; border-right: none; background: none; font-family: inherit;
    transition: color 0.15s, border-color 0.15s; white-space: nowrap;
}
.es-hdr__tab:first-child { padding-left: 0; }
.es-hdr__tab:hover { color: #2B4761; }
.es-hdr__tab--active { color: #2B4761; font-weight: 600; border-bottom-color: #4a7560; }
.es-hdr__tab--calc { color: #4a7560; font-weight: 500; }
.es-hdr__tab--calc:hover { color: #3d6b55; }

/* Mega menu dropdown
 *
 * Scoped under .es-hdr (0,2,0) deliberately — NOT for readability.
 * The strips carry role="region", and WordPress core's block-components
 * stylesheet (wp-includes/css/dist/components/style.min.css, pulled onto the
 * FRONTEND for logged-in users by the media-views dependency chain) declares
 *     [role="region"] { position: relative }
 * at equal specificity (0,1,0) and much later source order. A bare
 * .es-hdr__strip lost that fight, and the mega menu dropped into flow and
 * shoved the page down — for logged-in editors only, so anonymous QA and
 * every served-asset check saw a correct header. Found 2026-08-28.
 * Regression test: tests/theme/test_header_search_binding.py */
.es-hdr .es-hdr__strip {
    display: none; /* shown via JS on tab hover */
    position: absolute; left: 0; right: 0; top: 100%; z-index: 9999;
    background: #fafafa; border-bottom: 1px solid #eaeaea;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.es-hdr .es-hdr__strip--visible { display: block; }
.es-hdr__strip-inner {
    display: flex; flex-direction: column; gap: 0;
    width: var(--content-width-safe, min(1280px, calc(100% - var(--gutter, 2rem) * 2)));
    max-width: 100%; margin: 0 auto; padding: 20px 0 24px;
}

.es-hdr__columns { display: flex; flex-wrap: wrap; gap: 0; }

.es-hdr__col {
    display: flex; flex-direction: column; gap: 8px; min-width: 0;
    flex: 1; padding: 0 20px;
    border-left: 1px solid #eaeaea;
}
.es-hdr__col:first-child { border-left: none; padding-left: 0; }

/* Featured pick — full-width dark navy banner */
.es-hdr__pick {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 20px; background: #2B4761; border-radius: 8px;
    width: 100%; margin-top: 18px; border-left: none;
    transition: background 0.15s;
}
.es-hdr__pick:hover { background: #324f6b; }
.es-hdr__pick-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700; color: #8dc2aa;
    letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.es-hdr__pick-title {
    font-size: 14px; font-weight: 600; color: #ffffff; line-height: 1.3; white-space: nowrap; flex-shrink: 0;
    transition: color 0.15s;
}
.es-hdr__pick-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-hdr__pick-read {
    font-size: 13px; font-weight: 600; color: #8dc2aa; margin-left: auto; white-space: nowrap; flex-shrink: 0;
    transition: color 0.15s;
}
.es-hdr__pick:hover .es-hdr__pick-read { color: #a3d4bc; }
.es-hdr__col-heading {
    /* #727980 measured 4.22:1 on the #fafafa panel — below WCAG AA (4.5:1) for
       10px text. #646b73 is 5.17:1 and keeps the muted look. Measured, not eyeballed. */
    font-size: 10px; font-weight: 700; color: #646b73;
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px;
}
.es-hdr__col-link {
    font-size: 14px; font-weight: 500; color: #374b5e; padding: 3px 0;
    transition: color 0.12s, padding-left 0.12s;
    /* "Businessmobiles.com" is one unbreakable word wider than a Workplace
       column below ~1290px viewport; without this it runs over the divider. */
    overflow-wrap: anywhere;
}
.es-hdr__col-link:hover { color: #4a7560; padding-left: 2px; }
.es-hdr__col-viewall {
    font-size: 12px; font-weight: 600; color: #4a7560; padding: 6px 0 0;
    letter-spacing: 0.02em; transition: color 0.12s;
}
.es-hdr__col-viewall:hover { color: #3d6b55; }

/* === MOBILE ===
 * Tabs collapse to the hamburger below 1024px. The 9 tabs measure 869px
 * (Poppins, 2026-09-21) and the content box at a 1024px viewport is 926px.
 * Adding a tab or lengthening a label eats that 57px: re-measure before
 * shipping, or the row overflows between 1024 and ~1100px. */
dialog.es-hdr__mobile-menu {
    border: none; background: #fff; padding: 0;
    width: 100%; max-width: 100%; height: 100%; max-height: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}
dialog.es-hdr__mobile-menu::backdrop { background: rgba(43, 71, 97, 0.5); }
dialog.es-hdr__mobile-menu[open] { display: flex; flex-direction: column; }
.es-hdr__mobile-menu *, .es-hdr__mobile-menu *::before, .es-hdr__mobile-menu *::after { box-sizing: border-box; margin: 0; padding: 0; }
.es-hdr__mobile-menu a { text-decoration: none; }
.es-hdr__mobile-toggle { display: none; }

@media (max-width: 1023px) {
    .es-hdr__masthead { padding: 12px 0; }
    .es-hdr__brand-icon { width: 26px; height: 26px; }
    .es-hdr__brand-name { font-size: 20px; }
    .es-hdr__brand-suffix { font-size: 8px; margin-top: 5px; }
    .es-hdr__masthead-right { gap: 6px; }
    /* Search: icon-only on mobile */
    .es-hdr__search-trigger {
        display: flex; border: none; padding: 0; background: none;
        min-width: 44px; min-height: 44px; justify-content: center; align-items: center;
    }
    .es-hdr__search-trigger span, .es-hdr__search-trigger kbd { display: none; }
    .es-hdr__search-trigger svg circle, .es-hdr__search-trigger svg line { stroke: rgba(255,255,255,0.7); }
    .es-hdr__search-trigger svg { width: 18px; height: 18px; }
    /* Compact trust signal on mobile */
    .es-hdr__masthead-trust { font-size: 11px; color: rgba(255,255,255,0.55); gap: 4px; white-space: nowrap; }
    .es-hdr__masthead-trust svg { width: 11px; height: 11px; }
    .es-hdr__masthead-divider { display: none; }
    .es-hdr__masthead-link { display: none; }
    a.es-hdr__cta, a.es-hdr__cta:visited, a.es-hdr__cta:link {
        padding: 8px 12px; font-size: 12px; border-radius: 5px; gap: 4px;
    }
    a.es-hdr__cta svg { width: 12px; height: 12px; }
    .es-hdr__tabs-wrap { display: none; }

    .es-hdr__mobile-toggle {
        display: flex; align-items: center; justify-content: center;
        background: none; border: none; cursor: pointer;
        min-width: 44px; min-height: 44px; padding: 0;
    }
    .es-hdr__mobile-toggle svg { stroke: #ffffff; }

    /* Mobile menu is a <dialog> — native top-layer, no z-index issues */
    dialog.es-hdr__mobile-menu[open] {
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }

    .es-hdr__mobile-top {
        display: flex; align-items: center; justify-content: space-between;
        padding: 12px 20px; border-bottom: 1px solid #eaeaea;
        position: sticky; top: 0; background: #fff; z-index: 1;
    }
    .es-hdr__mobile-top .es-hdr__brand-name,
    .es-hdr__mobile-top .es-hdr__brand-name em { color: #2B4761; }
    .es-hdr__mobile-top .es-hdr__brand-suffix { color: #64748b; }
    .es-hdr__mobile-close {
        display: flex; align-items: center; justify-content: center;
        min-width: 44px; min-height: 44px; padding: 0;
        background: none; border: none; cursor: pointer;
    }
    .es-hdr__mobile-close svg { stroke: #2B4761; }

    .es-hdr__mobile-cta-wrap {
        padding: 0 20px 16px; background: #f8f8f6;
    }
    .es-hdr__mobile-cta, .es-hdr__mobile-cta:visited, .es-hdr__mobile-cta:link {
        display: flex; justify-content: center; align-items: center;
        width: 100%; padding: 14px; background: #2B4761; color: #fff !important;
        border-radius: 8px; font-size: 15px; font-weight: 600;
        font-family: inherit; text-decoration: none;
    }
    .es-hdr__mobile-cta:active { background: #1e3548; color: #fff !important; }

    .es-hdr__mobile-search-wrap { padding: 16px 20px 12px; background: #f8f8f6; }
    .es-hdr__mobile-search-btn {
        display: flex; align-items: center; gap: 10px; width: 100%;
        padding: 12px 14px; background: #fff; border: 1px solid #e2e5e9;
        border-radius: 8px; font-size: 14px; color: #94a3b8;
        font-family: inherit; cursor: pointer; text-align: left;
    }
    .es-hdr__mobile-search-btn:active { background: #f8fafc; border-color: #cbd5e1; }

    .es-hdr__mobile-current {
        padding: 4px 20px 16px; background: #f8f8f6;
    }
    .es-hdr__mobile-current-label {
        display: block; margin-bottom: 7px; font-size: 10px; font-weight: 700;
        color: #8491a0; letter-spacing: 0.08em; text-transform: uppercase;
    }
    .es-hdr__mobile-current-title {
        display: flex; align-items: center; justify-content: space-between;
        padding: 11px 12px; background: #fff; border: 1px solid #dce3e8;
        border-radius: 8px; color: #2B4761; font-size: 15px; font-weight: 700;
    }
    .es-hdr__mobile-current-title svg { stroke: #4a7560; flex-shrink: 0; }
    .es-hdr__mobile-current-links { padding: 6px 12px 0; }
    .es-hdr__mobile-current-link {
        display: flex; align-items: center; min-height: 40px; padding: 7px 0;
        color: #4a5568; font-size: 13px; font-weight: 500;
    }

    .es-hdr__mobile-section { border-bottom: 1px solid #f0f0ee; }
    .es-hdr__mobile-section-toggle {
        display: flex; align-items: center; justify-content: space-between;
        width: 100%; padding: 16px 20px; background: none; border: none;
        cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 500;
        color: #4a5568; text-align: left;
    }
    .es-hdr__mobile-section-toggle--active { font-weight: 600; color: #2B4761; }
    .es-hdr__mobile-section-toggle svg {
        transition: transform 0.2s; stroke: #a0aab4; flex-shrink: 0;
    }
    .es-hdr__mobile-section--open .es-hdr__mobile-section-toggle svg {
        transform: rotate(90deg); stroke: #2B4761;
    }
    .es-hdr__mobile-section-toggle--calc { color: #4a7560; }
    .es-hdr__mobile-section-toggle--calc svg { stroke: #4a7560; }

    .es-hdr__mobile-section-body {
        display: none; padding: 6px 20px 12px; background: #faf9f7;
    }
    .es-hdr__mobile-section--open .es-hdr__mobile-section-body { display: block; }

    .es-hdr__mobile-col-heading {
        font-size: 10px; font-weight: 600; color: #a0aab4;
        letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 0 6px;
    }
    .es-hdr__mobile-link {
        display: flex; align-items: center; min-height: 40px;
        font-size: 14px; font-weight: 500; color: #2B4761; padding: 7px 0;
    }
    .es-hdr__mobile-link:active { color: #4a7560; }
    .es-hdr__mobile-viewall {
        display: block; font-size: 14px; font-weight: 600; color: #4a7560;
        padding: 10px 0 2px;
    }
    .es-hdr__mobile-vertical {
        display: flex; align-items: center; justify-content: space-between;
        min-height: 48px; padding: 10px 0; border-bottom: 1px solid #e9ecef;
        color: #2B4761; font-size: 14px; font-weight: 600;
    }
    .es-hdr__mobile-vertical:last-child { border-bottom: none; }
    .es-hdr__mobile-vertical svg { stroke: #8b98a6; flex-shrink: 0; }
    .es-hdr__mobile-vertical--all { color: #4a7560; }
    .es-hdr__mobile-subgroup { border-bottom: 1px solid #e9ecef; }
    .es-hdr__mobile-subgroup summary {
        display: flex; align-items: center; justify-content: space-between;
        min-height: 48px; padding: 10px 0; cursor: pointer; list-style: none;
        color: #2B4761; font-size: 14px; font-weight: 600;
    }
    .es-hdr__mobile-subgroup summary::-webkit-details-marker { display: none; }
    .es-hdr__mobile-subgroup summary svg {
        stroke: #8b98a6; flex-shrink: 0; transition: transform 0.2s;
    }
    .es-hdr__mobile-subgroup[open] summary svg { transform: rotate(90deg); stroke: #2B4761; }
    .es-hdr__mobile-subgroup-links { padding: 0 0 8px 12px; }

    .es-hdr__mobile-footer {
        padding: 20px; background: #f8f8f6; margin-top: auto;
    }
    .es-hdr__mobile-footer-item {
        display: flex; align-items: center; gap: 8px; padding: 4px 0;
    }
    .es-hdr__mobile-footer-dot {
        width: 6px; height: 6px; background: #4a7560; border-radius: 50%; flex-shrink: 0;
    }
    .es-hdr__mobile-footer-text { font-size: 13px; font-weight: 500; color: #4a5568; }
    .es-hdr__mobile-footer-link {
        display: inline-flex; align-items: center; min-height: 36px;
        font-size: 13px; font-weight: 500; color: #4a7560;
    }
}
@media (max-width: 640px) {
    .es-hdr__masthead-trust { display: none; }
}
@media (max-width: 480px) {
    .es-hdr__masthead { padding: 10px 0; }
    .es-hdr__brand { gap: 7px; }
    .es-hdr__brand-icon { width: 24px; height: 24px; }
    .es-hdr__brand-name { font-size: 18px; }
    .es-hdr__brand-suffix { display: none; }
    .es-hdr__masthead-right { gap: 4px; }
    a.es-hdr__cta, a.es-hdr__cta:visited, a.es-hdr__cta:link {
        padding: 7px 10px; font-size: 11px;
    }
    a.es-hdr__cta svg { display: none; }
}

/* Search dialog (native <dialog> for guaranteed top-layer rendering) */
dialog.es-hdr__search-dialog {
    border: none; background: transparent; padding: 0; max-width: 100%; max-height: 100%;
    width: 100%; height: 100%;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}
dialog.es-hdr__search-dialog::backdrop {
    background: rgba(43, 71, 97, 0.85); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
dialog.es-hdr__search-dialog[open] {
    display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh;
}
.es-hdr__search-box {
    background: #fff; border-radius: 16px; padding: 32px; width: 90%; max-width: 600px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25); position: relative;
    animation: esSearchSlideIn 0.2s ease-out;
}
@keyframes esSearchSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.es-hdr__search-label {
    font-size: 13px; font-weight: 600; color: #2B4761; letter-spacing: 0.04em;
    text-transform: uppercase; margin-bottom: 12px; display: block;
}
.es-hdr__search-input {
    width: 100%; border: 2px solid #eaeaea; border-radius: 10px;
    padding: 16px 18px; font-size: 18px; font-family: inherit;
    outline: none; transition: border-color 0.15s;
    background: #fafafa; box-sizing: border-box;
}
.es-hdr__search-input:focus { border-color: #2B4761; background: #fff; }
.es-hdr__search-hint {
    font-size: 12px; color: #a0aab4; margin-top: 10px; line-height: 1.5;
}
.es-hdr__search-close {
    position: absolute; top: 12px; right: 12px; background: none; border: none;
    cursor: pointer; padding: 8px; display: flex; align-items: center; border-radius: 8px;
    transition: background 0.15s;
}
.es-hdr__search-close:hover { background: #f0f0f0; }
.es-hdr__search-close svg { stroke: #6b7280; }

/* Search autocomplete results */
.es-hdr__search-results {
    list-style: none; margin: 12px 0 0; padding: 0;
    max-height: 280px; overflow-y: auto;
}
.es-hdr__search-results:empty { display: none; }
.es-hdr__search-result {
    display: block; padding: 10px 14px; border-radius: 8px;
    font-size: 14px; color: #2B4761; transition: background 0.1s;
    text-decoration: none; cursor: pointer;
}
.es-hdr__search-result:hover, .es-hdr__search-result--active {
    background: #f0f4f7;
}
.es-hdr__search-result--all {
    border-top: 1px solid #e5e7eb; border-radius: 0; margin-top: 4px;
    color: #4a7560; font-weight: 600;
}
.es-hdr__search-result-title { font-weight: 600; }
.es-hdr__search-result-type {
    font-size: 11px; font-weight: 500; color: #a0aab4;
    text-transform: uppercase; letter-spacing: 0.04em; margin-left: 8px;
}
.es-hdr__search-loading {
    padding: 10px 14px; font-size: 13px; color: #a0aab4;
}

/* Sticky header */
.es-hdr--sticky {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.es-hdr--sticky.es-hdr--visible { transform: translateY(0); }
.es-hdr--sticky .es-hdr__masthead { padding-top: 10px; padding-bottom: 10px; }
.es-hdr--sticky .es-hdr__brand-icon { width: 24px; height: 24px; }
.es-hdr--sticky .es-hdr__brand-name { font-size: 22px; }
.es-hdr--sticky .es-hdr__masthead-trust { display: none; }
.es-hdr--sticky .es-hdr__masthead-divider { display: none; }
.es-hdr--sticky .es-hdr__masthead-link { display: none; }
.es-hdr--sticky .es-hdr__tabs-wrap { border-bottom: none; }
.es-hdr--sticky .es-hdr__tab { padding-top: 10px; padding-bottom: 10px; }
/* Mobile sticky — even slimmer */
@media (max-width: 1023px) {
    .es-hdr--sticky .es-hdr__masthead { padding: 8px 16px; }
    .es-hdr--sticky .es-hdr__brand-icon { width: 22px; height: 22px; }
    .es-hdr--sticky .es-hdr__brand-name { font-size: 17px; }
    .es-hdr--sticky .es-hdr__masthead-trust { display: none; }
}

/* Active tab highlight (page-aware) */
.es-hdr__tab--page-active { color: #2B4761; font-weight: 600; border-bottom-color: #4a7560; }
.es-hdr__tab--calc.es-hdr__tab--page-active { color: #4a7560; font-weight: 600; border-bottom-color: #4a7560; }

/* Trust strip — hidden in Design C (trust info moved to masthead) */
.es-hdr__trust-strip { display: none; }

/* Mega menu entrance animation.
 * Kept at the same (0,2,0) specificity as the base rule above — a bare
 * .es-hdr__strip--visible would now lose the display fight to
 * `.es-hdr .es-hdr__strip { display: none }` and the menu would never open. */
.es-hdr .es-hdr__strip--visible {
    display: block;
    animation: esMegaSlideIn 0.18s ease-out;
}
@keyframes esMegaSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
