#topBar button#closeButton { border: 0; background: transparent; padding: 0; }
/* Compact navigation on phones and tablets; retain the desktop header. */
@media (max-width: 1024px) {
    #topBar { height: auto; min-height: 36px; padding: .35rem 3rem .35rem 1rem; position: relative; box-sizing: border-box; gap: 0; }
    #topBar > div:first-child { min-width: 0; text-align: center; }
    #topBar span { font-size: .75rem; line-height: 1.5; }
    #topBar #closeButton { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: white; }
    #topBar #closeButton i { font-size: 1rem; }
    header.site-header .header-container { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .25rem .5rem; width: 100%; height: auto; min-height: 68px; padding: .5rem 1rem; box-sizing: border-box; }
    header.site-header .header-container > a:first-child { grid-column: 1; grid-row: 1; justify-self: start; display: flex; align-items: center; min-height: 48px; }
    header.site-header .header-container > a:first-child img { display: block; height: 48px; width: auto; max-width: 110px; object-fit: contain; }
    header.site-header .menu-toggle { grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 8px; background: transparent; color: #24364b; font-size: 1.35rem; }
    header.site-header .icons { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: .25rem; margin: 0; }
    header.site-header .icons a { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; text-decoration: none; }
    header.site-header .icons i { font-size: 1.25rem; }
    header.site-header .cart-item-count { top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 .2rem; display: grid; place-items: center; font-size: .65rem; line-height: 1; }
    header.site-header .nav-links { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; display: none; padding: .65rem 0 .25rem; margin: .25rem 0 0; border-top: 1px solid #e6ebf1; gap: .25rem; }
    header.site-header .nav-links.show { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    header.site-header .nav-links a { display: flex; align-items: center; min-height: 44px; padding: .5rem .65rem; border-radius: 8px; font-size: .85rem; line-height: 1.5; }
    header.site-header .nav-links a:hover { background: #f0f6ff; }
    header.site-header .nav-links a.active::before { content: none; }
    header.site-header a:focus-visible, header.site-header button:focus-visible { outline: 2px solid #667085; outline-offset: 2px; }
}

header.site-header .menu-toggle { -webkit-tap-highlight-color: transparent; }
header.site-header .menu-toggle:focus:not(:focus-visible) { outline: none; box-shadow: none; }

.mobile-nav-shell { display: contents; }
.menu-toggle-lines { position: relative; display: block; width: 22px; height: 18px; }
.menu-toggle-lines > span { position: absolute; left: 0; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .15s ease; }
.menu-toggle-lines > span:nth-child(1) { top: 1px; }
.menu-toggle-lines > span:nth-child(2) { top: 8px; }
.menu-toggle-lines > span:nth-child(3) { top: 15px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines > span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1024px) {
    header.site-header .header-container { row-gap: 0; }
    header.site-header .mobile-nav-shell { display: grid; grid-column: 1 / -1; grid-row: 2; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
    header.site-header .mobile-nav-shell:has(.nav-links.show) { grid-template-rows: 1fr; }
    header.site-header .mobile-nav-shell .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-row: auto; min-height: 0; overflow: hidden; padding: 0; margin: 0; border: 0; opacity: 0; transition: opacity .18s ease; }
    header.site-header .mobile-nav-shell .nav-links.show { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .menu-toggle-lines > span, header.site-header .mobile-nav-shell, header.site-header .mobile-nav-shell .nav-links { transition: none; }
}


/* Anchor the selected-menu marker to the navigation's top edge. */
@media (min-width: 1025px) {
    header.site-header .header-container { display: flex; }
    header.site-header .nav-links { height: 100%; align-items: stretch; }
    header.site-header .nav-links > a { display: flex; align-items: center; height: 100%; }
    header.site-header .nav-links > a.active::before { top: 0; }
}

/* Preserve the full-width blue navigation banner with one positioning model. */
body #helpContent, body #informationContent {
    display: block; position: fixed; left: 0; right: 0; width: 100%;
    max-height: calc(100dvh - var(--navigation-top, 100px)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    border-radius: 0; animation: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
body #helpContent.show, body #informationContent.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); animation: none; }
body #helpContent.hide, body #informationContent.hide { animation: none; }
body #helpContent .content-container, body #informationContent .content-container { display: block; width: 100%; height: auto; min-height: 0; padding: 1rem 0; }
body #helpContent .content-container > div, body #informationContent .content-container > div { width: fit-content; margin-left: clamp(1rem,var(--navigation-link-left,50vw),calc(100% - 220px)); }
body #helpContent .content-container a, body #informationContent .content-container a { display: flex; align-items: center; min-height: 44px; padding-inline: .5rem; }
body #helpContent .content-container br, body #informationContent .content-container br { display: none; }
@media(max-width:1024px) {
    body #helpContent .content-container > div, body #informationContent .content-container > div { margin-inline: auto; text-align: center; }
    body #helpContent .content-container a, body #informationContent .content-container a { justify-content: center; }
}
@media(prefers-reduced-motion:reduce) { body #helpContent, body #informationContent { transition: none; transform: none; } }

/* A gentle unfold from the header, followed by a short link sequence. */
body #helpContent, body #informationContent {
    transform-origin: top center;
    transform: translateY(-6px) scaleY(.94);
    transition: opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility .28s;
}
body #helpContent.show, body #informationContent.show { transform: translateY(0) scaleY(1); }
body #helpContent .content-container a, body #informationContent .content-container a {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity .16s ease, transform .22s cubic-bezier(.2,.8,.2,1);
}
body #helpContent.show .content-container a, body #informationContent.show .content-container a { opacity: 1; transform: translateY(0); }
body #helpContent.show .content-container a:nth-of-type(1), body #informationContent.show .content-container a:nth-of-type(1) { transition-delay: .04s; }
body #helpContent.show .content-container a:nth-of-type(2), body #informationContent.show .content-container a:nth-of-type(2) { transition-delay: .08s; }
body #helpContent.show .content-container a:nth-of-type(3), body #informationContent.show .content-container a:nth-of-type(3) { transition-delay: .12s; }
@media(prefers-reduced-motion:reduce) {
    body #helpContent, body #informationContent,
    body #helpContent .content-container a, body #informationContent .content-container a { transition: none; transform: none; }
}

/* Close with a clean fade; preserve the unfolding entrance. */
body #helpContent.hide, body #informationContent.hide {
    transform: translateY(0) scaleY(1);
    opacity: 0;
    transition: opacity .16s ease-out, visibility 0s linear .16s;
}
body #helpContent.hide .content-container a, body #informationContent.hide .content-container a {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}
@media(prefers-reduced-motion:reduce) {
    body #helpContent.hide, body #informationContent.hide { transition: none; }
}

/* Blend only Home and About Us navigation into their hero at the top. */
body.hero-navigation-ready > .body-container { margin-top: calc(var(--hero-navigation-height, 68px) * -1); }
body[data-hero-navigation="home"] header.site-header,
body[data-hero-navigation="about"] header.site-header { transition: background-color .25s ease, box-shadow .25s ease; }
body.hero-navigation-ready header.site-header:not(.is-scrolled):not(.is-navigation-open) { background: transparent; box-shadow: none; }
body.hero-navigation-ready header.site-header.is-scrolled,
body.hero-navigation-ready header.site-header.is-navigation-open { background: #fff; box-shadow: 0 2px 8px #24364b14; }
body[data-hero-navigation="about"].hero-navigation-ready header.site-header:not(.is-scrolled):not(.is-navigation-open) .nav-links > a:not(.active) { color: #fff; text-shadow: 0 1px 4px #09284670; }
body[data-hero-navigation="about"].hero-navigation-ready header.site-header:not(.is-scrolled):not(.is-navigation-open) .menu-toggle { color: #fff; }
body[data-hero-navigation="about"].hero-navigation-ready .about-us-container { padding-top: calc(var(--hero-navigation-height, 68px) + 3rem); }
body[data-hero-navigation="home"].hero-navigation-ready #homePageContainer .left-center-container { padding-top: calc(var(--hero-navigation-height, 68px) + 1.5rem); }
body[data-hero-navigation="home"].hero-navigation-ready #homePageContainer:has(> .edit-button-container) .left-center-container { padding-top: calc(var(--hero-navigation-height, 68px) + 5rem); }
body[data-hero-navigation="home"].hero-navigation-ready #homePageContainer > .edit-button-container { top: calc(var(--hero-navigation-height, 68px) + .75rem); }
body[data-hero-navigation="about"].hero-navigation-ready .about-us-container > .edit-button-container { top: calc(var(--hero-navigation-height, 68px) + .75rem); }
@media(prefers-reduced-motion:reduce) {
 body[data-hero-navigation="home"] header.site-header, body[data-hero-navigation="about"] header.site-header { transition: none; }
}
