/* Keep the storefront and commerce navigation on the same grid. */
:where(body:not([data-view="home"])) .em-nav .head-inner {
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; min-height:78px; max-width:1580px; margin-inline:auto;
  padding-inline:clamp(18px,4vw,76px);
}
:where(body:not([data-view="home"])) .em-nav .top-nav,:where(body:not([data-view="home"])) .em-nav .header-actions {display:flex;align-items:center;gap:8px}
.em-head {background:#faf8f3;border-bottom:1px solid #e1ded7}
.em-head a {color:inherit;text-decoration:none}
.em-head .identity {display:grid;place-items:center;width:86px;min-height:44px}
.em-head .identity img {width:62px;height:auto}
.em-head :is(.nav-link,.icon,.button) {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  font:600 13px/1.25 EMGeist,monospace;border:1px solid #e1ded7;border-radius:100px;padding:8px 16px;
}
.em-head .nav-link[aria-current="page"] {background:#e8b7c5;border-color:transparent}
.em-head :is(.icon,.button) {border-color:currentColor}
.em-head .icon {padding:0;width:44px;margin-inline-start:4px}
.em-head .icon svg {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6}
.em-head .cart-button {gap:8px;white-space:nowrap;font-size:14px}
.em-head a:hover {background:#f3e5e9}
@media(max-width:740px){
  :where(body:not([data-view="home"])) .em-nav .head-inner {min-height:65px;justify-content:flex-start;gap:8px}
  :where(body:not([data-view="home"])) .em-nav .head-inner>.identity {width:45px;margin-inline-end:auto}
  :where(body:not([data-view="home"])) .em-nav .identity img {width:44px}
  :where(body:not([data-view="home"])) .em-nav .top-nav,:where(body:not([data-view="home"])) .em-nav .header-actions {gap:6px}
  .em-head .top-nav [data-view="home"] {display:none}
  .em-head :is(.nav-link,.cart-button) {padding:7px 8px;font-size:12px}
  .em-head .icon {margin:0}
}
@media(max-width:360px){
  :where(body:not([data-view="home"])) .em-nav .head-inner {gap:4px;padding-inline:8px}
  :where(body:not([data-view="home"])) .em-nav .header-actions,:where(body:not([data-view="home"])) .em-nav .top-nav {gap:4px}
}

/* The legacy commerce styles target bare header and nav elements. */
.editorial-live header.em-head {
  display:block;position:relative;padding:0;margin:0;width:100%;max-width:none;min-height:0;height:auto;
  background:var(--em-paper);border:0;border-bottom:1px solid var(--em-rule);
}
.em-head .head-inner {width:100%}
.editorial-live .em-head nav.top-nav {order:0;flex:0 0 auto;padding:0;margin:0;flex-direction:row}
@media(min-width:741px){.em-head .cart-button {padding:9px 17px}}

/* Separate page navigation from basket actions at narrow widths. */
.em-nav .head-inner .top-nav {gap:12px}
@media(max-width:740px){
  body .em-nav .head-inner {
    display:grid;grid-template-columns:1fr auto;align-items:center;
    padding:8px clamp(16px,4vw,28px) 10px;gap:6px 18px;
  }
  .em-nav .head-inner>.identity {grid-area:1/1;justify-self:start}
  .em-nav .head-inner>.header-actions {grid-area:1/2;gap:10px}
  .em-nav .head-inner>nav.top-nav {
    grid-area:2/1/3/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
    width:100%;order:0;
  }
  .em-nav .top-nav a.nav-link {min-height:44px;font-size:13px;text-align:center}
  .em-nav nav.top-nav [data-view=home] {display:none}
}
@media(prefers-reduced-motion:no-preference){
  .em-nav :is(.nav-link,.cart-button,.icon) {transition:background-color .16s ease,color .16s ease}
  .em-nav a:active {transform:translateY(1px)}
}
.em-nav .cart-button[aria-current=page] {background:var(--em-pink,#e8b7c5)}

body.editorial:not([data-view=home])>header.em-nav {position:sticky;top:0;z-index:8;background:var(--paper)}
.em-nav .icon[aria-current=page] svg {fill:currentColor}

.editorial-live header.em-head {position:sticky;top:0;z-index:8}
.editorial-live .email-login {scroll-margin-top:112px}
@media(min-width:741px){.editorial-live .email-login {scroll-margin-top:78px}}
