body.hypp-mobile-header-active #masthead,
body.hypp-mobile-header-active.hypp-blog-page .hypp-blog > .gnav,
.hypp-mobile-header[hidden],
.hypp-mobile-header [hidden] {
    display: none !important;
}

.hypp-mobile-header {
    --hypp-mobile-bg: #fbfcfb;
    --hypp-mobile-ink: #16251e;
    --hypp-mobile-accent: #267650;
    --hypp-mobile-line: #e1e9e4;
    position: sticky;
    inset-block-start: 0;
    z-index: 60;
    color: var(--hypp-mobile-ink);
    background: var(--hypp-mobile-bg);
    border-bottom: 1px solid var(--hypp-mobile-line);
}

.admin-bar .hypp-mobile-header { inset-block-start: 32px; }
@media (max-width: 782px) {
    .admin-bar .hypp-mobile-header { inset-block-start: 46px; }
}
@media (max-width: 600px) {
    .admin-bar .hypp-mobile-header { inset-block-start: 0; }
}

.hypp-mobile-header__bar {
    min-height: 56px;
    padding-inline: 10px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
}

.hypp-mobile-header a { color: inherit; text-decoration: none; }
.hypp-mobile-header a:hover { color: var(--hypp-mobile-accent); }
.hypp-mobile-header :focus-visible { outline: 2px solid var(--hypp-mobile-accent); outline-offset: 2px; }

.hypp-mobile-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.hypp-mobile-header__bar > .hypp-mobile-header__logo { justify-self: center; }
.hypp-mobile-header__logo span { width: 9px; height: 9px; border-radius: 50%; background: var(--hypp-mobile-accent); }

.hypp-mobile-header .hypp-mobile-header__icon {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--hypp-mobile-ink);
    background: transparent;
    cursor: pointer;
}

.hypp-mobile-header .hypp-mobile-header__contact,
.hypp-mobile-header .hypp-mobile-header__quote {
    background: var(--hypp-mobile-accent);
    color: white;
}

.hypp-mobile-header .hypp-mobile-header__contact:hover,
.hypp-mobile-header .hypp-mobile-header__quote:hover { background: #1b5b3e; color: white; }

.hypp-mobile-header__drawer {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(88vw, 400px);
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--hypp-mobile-ink);
    background: var(--hypp-mobile-bg);
    box-shadow: 20px 0 60px -20px rgb(15 35 25 / .35);
}

.hypp-mobile-header__drawer[open] {
    display: flex;
    flex-direction: column;
    animation: hypp-mobile-drawer-in .28s ease-out both;
}

.hypp-mobile-header__drawer::backdrop { background: rgb(15 35 25 / .45); }
html:has(.hypp-mobile-header__drawer[open]) { overflow: hidden; }

@keyframes hypp-mobile-drawer-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hypp-mobile-header__drawer[open] { animation: none; }
}

.hypp-mobile-header__top {
    flex: none;
    min-height: 56px;
    padding-inline: 22px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--hypp-mobile-line);
}

.hypp-mobile-header .hypp-mobile-header__close { background: #eef3f0; }
.hypp-mobile-header__nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px 24px; }

.hypp-mobile-header__nav ul { list-style: none; margin: 0; padding: 0; }
.hypp-mobile-header__nav .sub-menu { padding-inline-start: 14px; }
.hypp-mobile-header__links > li { border-bottom: 1px solid var(--hypp-mobile-line); }
.hypp-mobile-header__nav .menu-item-has-children { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.hypp-mobile-header__nav .menu-item-has-children > .sub-menu { grid-column: 1 / -1; }

.hypp-mobile-header__nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding-block: 6px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.hypp-mobile-header__links > li > a { min-height: 58px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.hypp-mobile-header__links a[aria-current] { color: var(--hypp-mobile-accent); font-weight: 700; }

.hypp-mobile-header .hypp-mobile-header__submenu {
    align-self: center;
    color: var(--hypp-mobile-accent);
}

.hypp-mobile-header__submenu svg { transition: transform .2s; }
.hypp-mobile-header__submenu[aria-expanded="true"] svg { transform: rotate(180deg); }

.hypp-mobile-header__actions {
    flex: none;
    display: grid;
    gap: 6px;
    padding: 16px 22px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--hypp-mobile-line);
}

.hypp-mobile-header__actions a {
    display: grid;
    min-height: 44px;
    place-items: center;
    padding: 8px 14px;
    border-radius: 100px;
    line-height: 1.25;
    text-align: center;
    font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
    .hypp-mobile-header__submenu svg { transition: none; }
}
