/* Header menu, matched to the Shopify header (sections/header.liquid).
   Announcement bar and the store search panel are omitted: the magazine
   keeps its own search. */

.mag-header {
    --hv5-header-bg: #f8f6f5;
    --hv5-nav-color: #000000;
    --hv5-icon-color: #625e5b;
    --hv5-divider: #e4e0da;
    --hv5-drawer-bg: #f8f6f5;
    --hv5-drawer-line: #929191;
    --hv5-drawer-icon: rgba(69, 57, 51, 0.66);
    --hv5-max: 1920px;
    --hv5-pad: clamp(20px, 5.2vw, 100px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--hv5-header-bg);
    color: var(--hv5-nav-color);
}

body.admin-bar .mag-header { top: 32px; }

.mag-header button {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    color: inherit;
    cursor: pointer;
    appearance: none;
    box-shadow: none;
}

.mag-header a { color: inherit; text-decoration: none; }

.mag-header ul {
    list-style: none;
    margin: 0;
    margin-right: 0 !important;
    padding: 0;
}

.mag-header .hv5-icons button,
.mag-header .hv5-mbar button {
    display: inline-flex;
    align-items: center;
    position: relative;
    line-height: 0;
    color: var(--hv5-icon-color);
}

.mag-header .hv5-icons button svg { display: block; height: 18px; width: auto; }
.mag-header .hv5-icons button svg path { fill: var(--hv5-icon-color); }
.mag-header .hv5-icons button:hover svg path { opacity: 0.6; }

  /* ---------- Announcement top bar ---------- */
  .mag-header .hv5-topbar {
    background: var(--hv5-bar-bg);
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Board 682-1953 / 2113-4540 set this in Calibri Light (the line measures
     259 x 14 there). Calibri Light only ships with Windows and MS Office, so
     Source Sans 3 Light is the web fallback: measured 258.1px against the
     board's 259 — and unlike Carlito it really has a 300 weight, so the
     strokes stay as fine as the board's. Plain Calibri is deliberately NOT in
     the stack; at weight 300 it would render Regular, i.e. too heavy. */
  .mag-header .hv5-topbar p {
    margin: 0;
    color: var(--hv5-bar-text);
    font-family: 'Calibri Light', 'Source Sans 3', system-ui, sans-serif;
    font-weight: 300;
    font-size: 13.5px;
    letter-spacing: 0.81px;
    line-height: 1;
    text-align: center;
    padding: 0 16px;
  }

  /* ---------- Main header row ---------- */
  .mag-header .hv5-header {
    background: var(--hv5-header-bg);
    border-bottom: 1px solid var(--hv5-divider);
  }
  .mag-header .hv5-inner {
    max-width: var(--hv5-max);
    margin: 0 auto;
    padding: clamp(12px, 0.81vw, 15.5px) var(--hv5-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  /* Logo */
  .mag-header .hv5-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
    /* Design puts the logo frame at x=96 while the icons sit 100 from the right,
       so the lockup gets a 4px nudge the shared gutter can't express. */
    margin-left: -0.21vw;
  }
  .mag-header .hv5-logo img,
  .mag-header .hv5-logo svg {
    display: block;
    width: clamp(200px, 16.25vw, 312px);
    height: auto;
    max-width: 100%;
  }

  /* Right cluster: nav + icons */
  .mag-header .hv5-right {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: clamp(32px, 9vw, 175px);
  }

  /* Primary nav */
  .mag-header .hv5-nav {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: clamp(28px, 5.94vw, 114px);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .mag-header .hv5-nav a {
    display: inline-block;
    color: var(--hv5-nav-color);
    text-transform: uppercase;
    text-decoration: none;
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(15px, 1.05vw, 20px);
    letter-spacing: clamp(1.6px, 0.17vw, 3.2px);
    line-height: 1.45;
    white-space: nowrap;
  }
  /* First item is emphasized (Jost Bold 21px / .21em) per design */
  /* On the magazine site Magazine is the emphasized item. Shop stays at the
     base weight above. */
  .mag-header .hv5-nav .hv5-mag-trigger a {
    font-weight: 700;
    font-size: clamp(16px, 1.1vw, 21px);
    letter-spacing: clamp(2px, 0.23vw, 4.41px);
  }
  .mag-header .hv5-nav a:hover { opacity: 0.6; }
  /* Shop and Magazine fill the header row and the gap down to the menu,
     so the pointer can travel from the word into the panel. */
  .mag-header .hv5-nav li[data-mega-trigger] {
    display: flex;
    align-self: stretch;
    align-items: stretch;
  }
  .mag-header .hv5-nav li[data-mega-trigger] > a {
    display: flex;
    align-items: center;
    position: relative;
    padding-inline: clamp(12px, 2.8vw, 54px);
    margin-inline: calc(clamp(12px, 2.8vw, 54px) * -1);
  }
  .mag-header .hv5-nav li[data-mega-trigger] > a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 20px;
  }

  /* Utility icons */
  .mag-header .hv5-icons {
    display: flex;
    align-items: center;
    gap: clamp(16px, 1.72vw, 33px);
  }
  .mag-header .hv5-lang {
    font-family: Jost, sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 1.4px;
    line-height: 1;
    color: var(--hv5-icon-color);
    text-decoration: none;
  }
  .mag-header .hv5-lang:hover {
    opacity: 0.6;
  }
  .mag-header .hv5-icons a {
    display: inline-flex;
    align-items: center;
    color: var(--hv5-icon-color);
    position: relative;
    line-height: 0;
  }
  .mag-header .hv5-icons a.hv5-lang,
  .mag-header .hv5-mbar a.hv5-lang {
    line-height: 1;
  }
  .mag-header .hv5-icons svg { display: block; height: 18px; width: auto; }
  .mag-header .hv5-icons svg path { fill: var(--hv5-icon-color); }

  /* ---------- Signed-in account (board 1909-2838) ----------
     The icon is replaced by the customer's first name, with a small panel
     under it. `.hv5-icons a` zeroes line-height for the icons, so the text
     links here have to put it back. */
  .mag-header .hv5-acct { position: relative; }
  /* The panel sits 14px below the name. Without something covering that gap the
     pointer loses :hover on the way down and the panel closes before it can be
     reached. The bridge has to hang off .hv5-acct — a pseudo-element on the
     panel itself disappears with it, since the panel is display:none at rest. */
  .mag-header .hv5-acct::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 153px;
    height: 14px;
  }
  .mag-header .hv5-icons .hv5-acct-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-style: italic;
    font-size: 16px;
    letter-spacing: 0.01em;
    line-height: 1.58;
    text-transform: capitalize;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--hv5-nav-color);
    white-space: nowrap;
  }
  /* Panel 153 x 131 at y127, rules inset 12 — items are centred in it, and the
     panel itself is centred on the name (board: name centre 1760.5 against
     panel centre 1756.5), not aligned to either of its edges. */
  .mag-header .hv5-acct-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    width: 153px;
    margin: 0;
    padding: 4px 0 10px;
    list-style: none;
    background: #fff;
    z-index: 70;
  }
  .mag-header .hv5-acct:hover .hv5-acct-menu,
  .mag-header .hv5-acct:focus-within .hv5-acct-menu { display: block; }
  .mag-header .hv5-acct-menu li { margin: 0 12px; }
  .mag-header .hv5-acct-menu li + li { border-top: 0.8px solid var(--hv5-divider); }
  .mag-header .hv5-icons .hv5-acct-menu a {
    display: block;
    padding: 9px 0;
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.09em;
    line-height: 1.58;
    text-align: center;
    text-transform: capitalize;
    color: var(--hv5-nav-color);
    text-decoration: none;
  }
  .mag-header .hv5-icons .hv5-acct-menu a:hover,
  .mag-header .hv5-icons .hv5-acct-menu a[aria-current="page"] {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .mag-header .hv5-cart-count {
    position: absolute;
    top: -8px;
    right: -9px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--hv5-nav-color);
    color: #fff;
    font-family: 'Jost', system-ui, sans-serif;
    font-size: 9px;
    font-weight: 500;
    line-height: 15px;
    text-align: center;
  }

  /* ---------- Shop mega menu (desktop) ----------
     Figma 2802-5292. Second level sits in two groups (Lifestyle, Publishing).
     Third level is hidden until that second-level item is hovered. */
  .mag-header .hv5-shop { cursor: pointer; }
  .mag-header .hv5-mega {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: var(--hv5-header-bg);
    border-bottom: 1px solid #e8e2d9;
    z-index: 60;
  }
  .mag-header[data-mega-open="shop"] .hv5-mega { display: block; }
  .mag-header .hv5-mega-inner {
    max-width: var(--hv5-max);
    margin: 0 auto;
    padding: clamp(28px, 2.45vw, 47px) var(--hv5-pad) clamp(40px, 2.97vw, 57px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    column-gap: clamp(24px, 3.75vw, 72px);
    align-items: start;
  }
  /* The end wrapper only groups the divider, publishing, and image.
     Its children sit on the outer grid so their columns stay put. */
  .mag-header .hv5-mega-end { display: contents; }
  .mag-header .hv5-mega-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(14px, 1.07vw, 20px);
    min-width: 0;
  }
  .mag-header .hv5-mega-kicker {
    /* The pill's left padding hangs outside the column, so the L / P
       line up with the C / M of the labels underneath. */
    margin: 0 0 0 -13px;
    padding: 7px 13px 6px;
    border-radius: 2px;
    background: #ece5d8;
    color: #6b5a45;
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 2.73px;
    line-height: normal;
    text-transform: uppercase;
  }
  .mag-header .hv5-mega-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: clamp(28px, 4.58vw, 88px);
    align-items: start;
    width: 100%;
    --hv5-hop: clamp(16px, 3.4vw, 64px);
  }
  .mag-header .hv5-mega-group--pub .hv5-mega-row {
    grid-template-columns: max-content clamp(160px, 13vw, 220px);
    column-gap: clamp(28px, 3.2vw, 64px);
    --hv5-hop: clamp(14px, 2.2vw, 44px);
  }
  .mag-header .hv5-mega-rule {
    width: 1px;
    height: clamp(200px, 16.67vw, 320px);
    background: #ded6ca;
    flex: 0 0 auto;
  }

  .mag-header .hv5-mega-cats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  /* A category with no link renders as a <button>. */
  .mag-header .hv5-cat {
    display: inline-grid;
    align-items: center;
    position: relative;
    height: 38px;
    margin: 0 0 0 -8px;
    padding: 0 8px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 0.885vw, 17px);
    letter-spacing: clamp(1.4px, 0.142vw, 2.72px);
    line-height: 1;
    text-transform: uppercase;
    color: #857c71;
    text-decoration: none;
    white-space: nowrap;
  }
  /* Reaches into the gap beside the word, so the pointer can travel
     toward the next column without dropping the hover. */
  .mag-header .hv5-cat::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: var(--hv5-hop, 16px);
  }
  /* The hidden copy is the bold width, so turning a label bold does not
     push the columns beside it. */
  .mag-header .hv5-cat > span,
  .mag-header .hv5-cat::after {
    grid-area: 1 / 1;
  }
  .mag-header .hv5-cat::after {
    content: attr(data-label);
    font-weight: 600;
    visibility: hidden;
    pointer-events: none;
  }
  .mag-header .hv5-cat:hover,
  .mag-header .hv5-cat.is-active {
    color: #1f1d1b;
  }
  .mag-header .hv5-cat:hover > span,
  .mag-header .hv5-cat.is-active > span {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  /* Every third-level panel stays in the same grid cell. Hidden ones still
     count toward the size, so the menu is always as tall as the tallest
     panel and nothing shifts when another panel is shown. */
  .mag-header .hv5-mega-fly {
    display: grid;
    min-width: 0;
    overflow: hidden;
  }
  .mag-header .hv5-mega-panel {
    grid-area: 1 / 1;
    visibility: hidden;
  }
  .mag-header .hv5-mega-panel.is-active { visibility: visible; }
  /* Theme sets `a { transition: all .2s }`. Visibility is one of those
     properties, so the panel that is closing stays painted until the
     transition ends and sits on top of the panel that just opened. */
  .mag-header .hv5-mega-panel,
  .mag-header .hv5-mega-panel * {
    transition: none;
  }
  .mag-header .hv5-mega-columns {
    display: flex;
    align-items: flex-start;
    gap: clamp(28px, 5.2vw, 100px);
  }
  .mag-header .hv5-mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .mag-header .hv5-mega-col-title,
  .mag-header .hv5-mega-col li a {
    display: flex;
    align-items: center;
    height: 34px;
    font-family: 'Jost', system-ui, sans-serif;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
  }
  .mag-header .hv5-mega-col-title {
    font-weight: 600;
    font-size: clamp(10px, 0.573vw, 11px);
    letter-spacing: clamp(1.2px, 0.126vw, 2.42px);
    color: #9c7b52;
  }
  .mag-header .hv5-mega-col li a {
    font-weight: 400;
    font-size: clamp(12px, 0.729vw, 14px);
    letter-spacing: clamp(1.1px, 0.146vw, 2.8px);
    color: #7a7268;
  }
  /* View All stays the italic serif from the board. */
  .mag-header .hv5-mega-col li a.hv5-mega-viewall {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(16px, 0.938vw, 18px);
    letter-spacing: 0.18px;
    text-transform: none;
    color: #6b5a45;
  }
  /* A title with no link renders as a <span> and must not light up. */
  .mag-header a.hv5-mega-col-title:hover,
  .mag-header a.hv5-mega-col-title.is-current {
    font-weight: 600;
    color: #1f1d1b;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
  .mag-header .hv5-mega-col li a:hover,
  .mag-header .hv5-mega-col li a.is-current {
    font-weight: 500;
    color: #1f1d1b;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }
  .mag-header .hv5-mega-col li {
    display: flex;
  }
  .mag-header a.hv5-mega-col-title,
  .mag-header .hv5-mega-col li a {
    position: relative;
    width: 100%;
    box-sizing: border-box;
  }
  .mag-header .hv5-mega-col li a {
    display: inline-grid;
    flex: 1 1 auto;
  }
  .mag-header a.hv5-mega-col-title::before,
  .mag-header .hv5-mega-col li a::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: calc(clamp(14px, 3vw, 48px) * -1);
  }
  .mag-header .hv5-mega-col li a > span,
  .mag-header .hv5-mega-col li a::after {
    grid-area: 1 / 1;
  }
  .mag-header .hv5-mega-col li a::after {
    content: attr(data-label);
    font-weight: 500;
    visibility: hidden;
    pointer-events: none;
  }
  .mag-header .hv5-mega-col li a.hv5-mega-viewall::after {
    font-weight: 600;
    font-style: italic;
  }
  .mag-header .hv5-mega-col li a.hv5-mega-viewall:hover,
  .mag-header .hv5-mega-col li a.hv5-mega-viewall.is-current {
    font-weight: 600;
    font-style: italic;
    color: #1f1d1b;
  }

  /* Right promo. Clothing shows until a category with its own image is hovered. */
  .mag-header .hv5-mega-stage {
    position: relative;
    width: clamp(148px, 12.92vw, 248px);
    height: clamp(200px, 16.67vw, 320px);
    flex: 0 0 auto;
  }
  .mag-header .hv5-mega-promo {
    display: none;
    position: absolute;
    inset: 0;
    border-radius: 2px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 10px 24px rgba(31, 29, 27, 0.12);
  }
  .mag-header .hv5-mega-promo.is-active { display: block; }
  .mag-header .hv5-mega-promo img,
  .mag-header .hv5-mega-promo video {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
  }
  /* Below this width the two groups plus the image no longer fit beside
     the longer Wellness labels, so the image steps aside. */
  @media (max-width: 1180px) {
    .mag-header .hv5-mega-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
    .mag-header .hv5-mega-stage { display: none; }
  }

  /* ---------- Magazine mega menu (desktop) ----------
     Figma 2802-1546. The Style column stays reserved, so the card
     does not move when those links appear. */
  .mag-header .hv5-mag-trigger { cursor: pointer; }
  .mag-header .hv5-mag {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: var(--hv5-header-bg);
    border-bottom: 1px solid #e8e2d9;
    z-index: 60;
  }
  .mag-header[data-mega-open="mag"] .hv5-mag { display: block; }
  .mag-header .hv5-mag-inner {
    max-width: var(--hv5-max);
    margin: 0 auto;
    padding: clamp(28px, 2.45vw, 47px) var(--hv5-pad) clamp(20px, 1.51vw, 29px);
    display: flex;
    align-items: flex-start;
    gap: clamp(24px, 3vw, 48px);
  }
  .mag-header .hv5-mag-explore {
    flex: 0 0 auto;
    min-width: max-content;
  }
  .mag-header .hv5-mag-list {
    display: grid;
    grid-template-columns: max-content max-content;
    column-gap: clamp(28px, 3.2vw, 64px);
    align-items: start;
    --hv5-hop: clamp(14px, 2.2vw, 44px);
  }
  .mag-header .hv5-mag-list > .hv5-mega-fly {
    margin-top: 40px;
    min-width: max-content;
    overflow: visible;
  }
  .mag-header .hv5-mag-card {
    /* Figma 2802:1606 is 760 × 357, sitting on the right of the panel. */
    flex: 0 1 auto;
    width: max-content;
    max-width: min(760px, 100%);
    margin-left: auto;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 60px;
    height: 357px;
    padding: 0 28px 0 48px;
    border-radius: 3px;
    background: #ede7dd;
  }
  .mag-header .hv5-mag-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .mag-header .hv5-mag-eyebrow {
    margin: 0;
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 400;
    font-size: 10.5px;
    letter-spacing: 2.73px;
    line-height: 1.4;
    text-transform: uppercase;
    color: #a8998a;
    white-space: nowrap;
  }
  .mag-header .hv5-mag-eyebrow-text {
    font-weight: 600;
    color: #6b5a45;
    margin: 0 0.45em;
  }
  .mag-header .hv5-mag-title {
    margin: 6px 0 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: 28px;
    letter-spacing: 2.66px;
    line-height: 1.275;
    text-transform: uppercase;
    color: #1f1d1b;
  }
  .mag-header .hv5-mag-dek {
    margin: 11px 0 0;
    max-width: 326px;
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 300;
    font-size: 14.2px;
    line-height: 23.43px;
    color: #5a544d;
  }
  .mag-header .hv5-mag-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 39px;
  }
  .mag-header .hv5-mag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 44px;
    padding: 0 25px;
    background: #2e2b28;
    color: #f6f4f1;
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 600;
    font-size: 11.4px;
    letter-spacing: 2.51px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
  }
  .mag-header .hv5-mag-btn--ghost {
    background: transparent;
    color: #2e2b28;
    font-weight: 500;
    border: 1px solid #b9ae9c;
  }
  .mag-header .hv5-mag-btn:hover { opacity: 0.72; }
  .mag-header .hv5-mag-btn--ghost:hover {
    background: #2e2b28;
    color: #f6f4f1;
    border-color: #2e2b28;
  }
  .mag-header .hv5-mag-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-left: -8px;
    padding: 8px 10px;
    border-radius: 2px;
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 500;
    font-size: 11.4px;
    letter-spacing: 2.51px;
    line-height: 1;
    text-transform: uppercase;
    color: #2e2b28;
    text-decoration: underline;
    text-decoration-color: #b9ae9c;
    text-underline-offset: 4px;
  }
  .mag-header .hv5-mag-all-text {
    display: inline-grid;
  }
  .mag-header .hv5-mag-all-text > span,
  .mag-header .hv5-mag-all-text::after {
    grid-area: 1 / 1;
  }
  .mag-header .hv5-mag-all-text::after {
    content: attr(data-label);
    font-weight: 600;
    visibility: hidden;
    pointer-events: none;
  }
  .mag-header .hv5-mag-all:hover {
    color: #1f1d1b;
    text-decoration-color: #1f1d1b;
  }
  .mag-header .hv5-mag-all:hover > .hv5-mag-all-text > span {
    font-weight: 600;
  }
  .mag-header .hv5-mag-arrow { display: block; flex: 0 0 auto; }
  .mag-header .hv5-mag-cover {
    flex: 0 0 auto;
    width: 236px;
    height: 304px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(31, 29, 27, 0.12);
  }
  @media (max-width: 1280px) {
    .mag-header .hv5-mag-card {
      padding-left: 32px;
      padding-right: 20px;
      gap: 28px;
    }
    .mag-header .hv5-mag-cover {
      width: 180px;
      height: 232px;
    }
  }
  .mag-header .hv5-mag-cover img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    display: block;
  }

  /* ================================================================
     MOBILE  —  Figma "New Magni" header 303-1329 · menu block 319-456
     ================================================================ */

  /* Hidden by default; the ≤989px query below turns them on. */
  .mag-header .hv5-mheader,
  .mag-header .hv5-scrim,
  .mag-header .hv5-drawer { display: none; }

  @media (max-width: 989px) {
    /* Desktop row + mega menu step aside */
    .mag-header .hv5-header,
    .mag-header .hv5-mega,
    .mag-header .hv5-mag { display: none !important; }
    .mag-header .hv5-topbar { display: none; }

    /* ---------- Mobile header bar (node 308-37, 393 × 68) ---------- */
    .mag-header .hv5-mheader {
      display: block;
      position: relative;
      z-index: 60;
      background: var(--hv5-header-bg);
    }
    .mag-header .hv5-mbar {
      height: 70px;
      padding: 0 24px;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
    }
    .mag-header .hv5-mleft,
    .mag-header .hv5-mright {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .mag-header .hv5-mright { justify-content: flex-end; }
    .mag-header .hv5-mbar button {
      background: none;
      border: 0;
      padding: 0;
      margin: 0;
      cursor: pointer;
      color: var(--hv5-icon-color);
      display: inline-flex;
      align-items: center;
      line-height: 0;
    }
    .mag-header .hv5-mbar a {
      color: var(--hv5-icon-color);
      display: inline-flex;
      align-items: center;
      position: relative;
      line-height: 0;
    }
    .mag-header .hv5-mbar .mi { display: block; }
    .mag-header .hv5-mlogo { justify-self: center; }
    .mag-header .hv5-mlogo img {
      display: block;
      width: 148px;
      height: auto;
    }
    .mag-header .hv5-mcart-count {
      position: absolute;
      top: -6px;
      right: -8px;
      min-width: 14px;
      height: 14px;
      padding: 0 3px;
      border-radius: 999px;
      background: var(--hv5-nav-color);
      color: #fff;
      font-family: 'Jost', system-ui, sans-serif;
      font-size: 9px;
      font-weight: 500;
      line-height: 14px;
      text-align: center;
    }

    /* ---------- Slide-in menu (node 319-456) ---------- */
    /* --hv5-drawer-top is set by JS to the header's bottom edge, so the
       drawer opens under the bar exactly like the "menu line" in Figma. */
    .mag-header .hv5-scrim {
      display: block;
      position: fixed;
      left: 0;
      right: 0;
      top: var(--hv5-drawer-top, 70px);
      bottom: 0;
      background: rgba(49, 48, 48, 0.6);
      border-top: 0.6px solid var(--hv5-drawer-line);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      z-index: 55;
    }
    .mag-header .hv5-drawer {
      display: block;
      position: fixed;
      left: 0;
      top: var(--hv5-drawer-top, 70px);
      bottom: 0;
      width: 84%;
      max-width: 400px;
      box-sizing: border-box;
      background: var(--hv5-drawer-bg);
      border-top: 0.6px solid var(--hv5-drawer-line);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      transform: translateX(-100%);
      visibility: hidden;
      transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
      z-index: 56;
    }
    .mag-header[data-nav-open="true"] .hv5-scrim { opacity: 1; visibility: visible; }
    .mag-header[data-nav-open="true"] .hv5-drawer { transform: translateX(0); visibility: visible; }

    .mag-header .hv5-drawer-close {
      position: absolute;
      top: 21px;
      right: 32px;
      background: none;
      border: 0;
      padding: 0;
      cursor: pointer;
      line-height: 0;
      color: var(--hv5-icon-color);
    }
    .mag-header .hv5-drawer-inner {
      box-sizing: border-box;
      min-height: 100%;
      padding: 57px 0 48px;
      display: flex;
      flex-direction: column;
      gap: 46px;
    }

    /* Level 1 — SHOP / MAGAZINE (Jost Medium 17 / 3.78 tracking) */
    .mag-header .hv5-mmenu {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .mag-header .hv5-mmenu > li { padding: 0 24px 35px 40px; }
    /* last block only carries its own 15px bottom padding; the 46px comes from the flex gap */
    .mag-header .hv5-mmenu > li:last-child { padding-bottom: 15px; }
    .mag-header .hv5-l1 {
      display: block;
      width: 100%;
      margin: 0;
      padding: 0;
      background: none;
      border: 0;
      text-align: left;
      cursor: pointer;
      font-family: 'Jost', system-ui, sans-serif;
      font-weight: 500;
      font-size: 17px;
      letter-spacing: 3.78px;
      line-height: 1.58;
      text-transform: uppercase;
      color: var(--hv5-nav-color);
      text-decoration: none;
    }

    /* Animated accordion wrapper — 0fr→1fr grid row is the smoothest
       auto-height transition available without measuring in JS. */
    .mag-header .hv5-collapse {
      display: grid;
      grid-template-rows: 0fr;
      transition: grid-template-rows 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mag-header .hv5-collapse-in {
      overflow: hidden;
      min-height: 0;
      visibility: hidden;
      transition: visibility 0.34s;
    }
    .mag-header li[data-open="true"] > .hv5-collapse { grid-template-rows: 1fr; }
    .mag-header li[data-open="true"] > .hv5-collapse > .hv5-collapse-in { visibility: visible; }

    /* Level 2 — CLOTHING / WELLNESS / BOOKSTORE (Jost 330 / 14 / 1.76).
       330 needs the variable wght axis the font link requests; the static
       cuts would snap it to 300. */
    .mag-header .hv5-l2-list {
      list-style: none;
      margin: 26px 0 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    .mag-header .hv5-l2 {
      display: block;
      margin: 0;
      padding: 0;
      background: none;
      border: 0;
      text-align: left;
      cursor: pointer;
      font-family: 'Jost', system-ui, sans-serif;
      font-weight: 330;
      font-size: 14px;
      letter-spacing: 1.76px;
      line-height: 1.58;
      text-transform: uppercase;
      color: var(--hv5-nav-color);
      text-decoration: none;
      transition: letter-spacing 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* Expanded state (node 337-613): Jost Medium, 1.6 tracking, underlined */
    .mag-header li[data-open="true"] > .hv5-l2 {
      font-weight: 500;
      letter-spacing: 1.6px;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 3px;
    }
    /* Magazine's last three links keep the level-2 face, set in italic. */
    .mag-header .hv5-l2--italic { font-style: italic; font-weight: 500;}

    /* Level 3 — Jost Regular 12 / 15px leading / 0.3 tracking, 13px gap,
       20px below level 2, flush with it */
    .mag-header .hv5-l3-list {
      list-style: none;
      margin: 20px 0 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 13px;
    }
    /* block, so each row's height is exactly the 15px line-height and does not
       pick up stray leading from whatever the theme sets on <li>. */
    .mag-header .hv5-l3 {
      display: block;
      font-family: 'Jost', system-ui, sans-serif;
      font-weight: 400;
      font-size: 12px;
      letter-spacing: 0.3px;
      line-height: 15px;
      color: var(--hv5-nav-color);
      text-decoration: none;
    }

    /* Bottom utility links (node 445-129) */
    .mag-header .hv5-mutil {
      list-style: none;
      margin: 0;
      padding: 0 39px;
      display: flex;
      flex-direction: column;
      gap: 21px;
    }
    .mag-header .hv5-mutil a,
    .mag-header .hv5-mutil button {
      display: flex;
      align-items: center;
      gap: 18px;
      font-family: 'Jost', system-ui, sans-serif;
      font-weight: 400;
      font-size: 14px;
      letter-spacing: 0.84px;
      line-height: 1.58;
      color: var(--hv5-nav-color);
      text-decoration: none;
      text-transform: none;
      text-align: left;
      width: 100%;
    }
    .mag-header .hv5-mutil .mi-d {
      flex: 0 0 15px;
      color: var(--hv5-drawer-icon);
    }

    /* Currency switcher. The locale row opens an accordion of currencies
       rather than a floating panel — a popover inside a sliding drawer is
       awkward on a phone, and the drawer already speaks accordion.
       Shopify's localization form sits between the <li> and the collapse
       wrapper, so the open rules below need their own selector — the <li>
       ones cannot reach through it. */
    .mag-header .hv5-mutil form { margin: 0; }
    .mag-header .hv5-mutil-toggle {
      display: flex;
      align-items: center;
      gap: 18px;
      width: 100%;
      margin: 0;
      padding: 0;
      background: none;
      border: 0;
      text-align: left;
      cursor: pointer;
      font-family: 'Jost', system-ui, sans-serif;
      font-weight: 400;
      font-size: 14px;
      letter-spacing: 0.84px;
      line-height: 1.58;
      color: var(--hv5-nav-color);
    }
    .mag-header li[data-open="true"] > form > .hv5-collapse { grid-template-rows: 1fr; }
    .mag-header li[data-open="true"] > form > .hv5-collapse > .hv5-collapse-in { visibility: visible; }
    /* Indented to the row's label: the 15px icon plus its 18px gap. */
    .mag-header .hv5-cur-list {
      list-style: none;
      margin: 0;
      padding: 14px 0 0 33px;
      display: flex;
      flex-direction: column;
      gap: 13px;
    }
    .mag-header .hv5-cur-list button {
      display: block;
      width: 100%;
      margin: 0;
      padding: 0;
      background: none;
      border: 0;
      text-align: left;
      cursor: pointer;
      font-family: 'Jost', system-ui, sans-serif;
      font-weight: 400;
      font-size: 12px;
      letter-spacing: 0.3px;
      line-height: 15px;
      color: var(--hv5-nav-color);
    }
    .mag-header .hv5-cur-list button[aria-current="true"] { font-weight: 500; }
    .mag-header .hv5-cur-sym { opacity: 0.6; }
  }

  /* ---------- Phone (Figma "HP content" home menu, node 489-1104) ----------
     The 402 artboard runs a tighter bar than the 393 tablet one: 349 of content
     between 26pt margins and an 18px icon set 20px apart. */
  @media (max-width: 749px) {
    /* The bar keeps the 70px height and 148px lockup of the wider tier —
       only the margins and the icon set tighten to the 402 artboard. */
    .mag-header .hv5-mbar { padding: 0 6.47%; }
    .mag-header .hv5-mleft,
    .mag-header .hv5-mright { gap: 20px; }
    .mag-header .hv5-mbar .mi-20 { width: 18px; height: 18px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .mag-header .hv5-drawer,
    .mag-header .hv5-scrim,
    .mag-header .hv5-l2,
    .mag-header .hv5-collapse,
    .mag-header .hv5-collapse-in { transition: none; }
  }

body.mag-has-php-header #masthead,
body.mag-has-php-header .elementor-location-header { display: none !important; }

body.mag-has-php-header #site-search {
    background: transparent;
    border-top: 1px solid var(--hv5-divider);
    border-bottom: 1px solid var(--hv5-divider);
    z-index: 90;
}

body.mag-has-php-header #site-search--content {
    height: auto;
    max-width: 760px;
    padding: 22px 24px 28px;
}

body.mag-has-php-header .search-form input[type="search"] {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    color: var(--hv5-nav-color);
    border-bottom-color: var(--hv5-nav-color);
    font-family: Jost, system-ui, sans-serif;
    font-size: 18px;
    letter-spacing: 0.06em;
    padding-left: 0;
}

html.mag-nav-lock { overflow: hidden; }

.mag-header .hv5-cur-list a {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: 'Jost', system-ui, sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.3px;
    line-height: 15px;
    color: var(--hv5-nav-color);
    text-decoration: none;
    text-transform: none;
}

.mag-header .hv5-cur-list a[aria-current="page"] { font-weight: 500; }

@media (max-width: 782px) {
    body.admin-bar .mag-header { top: 46px; }
}
