/* HDS dynamic editorial navigation */
body.hds-menu-open { overflow: hidden; }

.hds-menu-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.hds-menu-equals {
  position: relative;
  display: block;
  width: 18px;
  height: 11px;
}

.hds-menu-equals::before,
.hds-menu-equals::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform-origin: 50% 50%;
  transition: transform .32s cubic-bezier(.2, .72, .2, 1);
}

.hds-menu-equals::before {
  transform: translateY(-5px);
}

.hds-menu-equals::after {
  transform: translateY(5px);
}

.hds-menu-trigger[aria-expanded="true"] .hds-menu-equals::before {
  transform: rotate(45deg);
}

.hds-menu-trigger[aria-expanded="true"] .hds-menu-equals::after {
  transform: rotate(-45deg);
}

.hds-menu-trigger:hover,
.hds-menu-trigger:focus-visible {
  opacity: .62;
}

.home-editorial a,
.home-editorial button,
.hds-menu-shell a,
.hds-menu-shell button {
  touch-action: manipulation;
}

body.hds-dynamic-menu-ready .de-header nav > a:not(.home-workspace-link),
body.hds-dynamic-menu-ready .dir-nav > a:not(.dir-account-link) {
  display: none;
}

body.hds-dynamic-menu-ready .mobile-menu,
body.hds-dynamic-menu-ready .public-mobile-menu,
body.hds-dynamic-menu-ready .directory-menu-fallback {
  display: none !important;
}

.hds-menu-shell[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.hds-menu-shell:not([hidden]) {
  pointer-events: auto;
}

.hds-menu-shell.is-closing {
  pointer-events: none;
}

.hds-menu-shell {
  position: fixed;
  z-index: 2400;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: clamp(16px, 4dvh, 48px) clamp(16px, 3vw, 48px);
}

.hds-menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 12, 12, .58);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  cursor: default;
}

.hds-menu-panel {
  position: relative;
  display: flex;
  width: min(1480px, 100%);
  height: min(800px, 100%);
  min-height: 0;
  margin: 0 auto;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f4f0;
  color: #151515;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
  animation: hds-menu-in .28s cubic-bezier(.2, .72, .2, 1) both;
}

@keyframes hds-menu-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hds-menu-deploy {
  from {
    opacity: .2;
    transform: translateY(-4%) scaleY(.12);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
}

@keyframes hds-menu-retract {
  from {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
  to {
    opacity: .2;
    transform: translateY(-4%) scaleY(.12);
    clip-path: inset(0 0 100% 0);
  }
}

@keyframes hds-menu-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hds-menu-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.hds-menu-secondary > .hds-menu-account {
  display: none;
}

.hds-menu-top {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(24px, 3vw, 46px);
  border-bottom: 1px solid rgba(17, 17, 17, .1);
}

.hds-menu-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.hds-menu-close span {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}

.hds-menu-layout {
  display: grid;
  grid-template-columns: minmax(255px, .72fr) minmax(0, 1.7fr);
  min-height: 0;
  flex: 1;
}

.hds-menu-navigation {
  display: flex;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(34px, 4vw, 64px);
  flex-direction: column;
}

.hds-menu-grid {
  display: grid;
  min-height: 0;
  padding: 14px 14px 14px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hds-menu-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #d7d2ca;
  color: #fff;
}

.hds-menu-card::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 32% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, .66));
}

.hds-menu-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(1.02);
  transition: transform .7s cubic-bezier(.2, .68, .2, 1), filter .25s ease;
}

.hds-menu-card:hover img,
.hds-menu-card:focus-visible img {
  transform: scale(1.018);
  filter: saturate(.92) contrast(1.03);
}

.hds-menu-card-copy {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 16px;
  align-items: end;
}

.hds-menu-card-copy strong {
  font-size: clamp(17px, 1.55vw, 25px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.hds-menu-card-copy small {
  grid-column: 1;
  color: rgba(255, 255, 255, .78);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hds-menu-card-copy > span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 19px;
  font-weight: 300;
}

.hds-menu-unavailable {
  display: grid;
  min-height: 100%;
  padding: 32px;
  place-items: center;
  color: #777;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.hds-menu-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media (max-width: 900px) {
  .hds-menu-shell {
    z-index: 2400;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .hds-menu-panel {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 8px;
    transform-origin: 50% 0;
    animation: hds-menu-deploy .55s cubic-bezier(.32, .08, .18, 1) both;
  }

  .hds-menu-backdrop {
    animation: hds-menu-backdrop-in .55s ease both;
  }

  .hds-menu-shell.is-closing .hds-menu-panel {
    animation-name: hds-menu-retract;
  }

  .hds-menu-shell.is-closing .hds-menu-backdrop {
    animation-name: hds-menu-backdrop-out;
  }

  .hds-menu-secondary > .hds-menu-account {
    display: flex;
  }

  .hds-menu-top {
    display: flex;
    min-height: 64px;
    flex-shrink: 0;
  }

  .hds-menu-layout {
    display: block;
    overflow-y: auto;
  }

  .hds-menu-navigation {
    min-height: auto;
    padding: 24px 22px 28px;
  }

  .hds-menu-grid {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    grid-template-rows: none;
    min-height: 330px;
    padding: 0 22px 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .hds-menu-card {
    min-height: 330px;
    scroll-snap-align: start;
  }

  .hds-menu-card-copy strong {
    font-size: 20px;
  }

  .home-editorial .de-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .hds-menu-grid {
    grid-template-columns: repeat(4, minmax(78vw, 1fr));
  }

  .hds-menu-card {
    min-height: 56vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hds-menu-panel,
  .hds-menu-backdrop {
    animation: none;
  }

  .hds-menu-equals::before,
  .hds-menu-equals::after {
    transition: none;
  }

  .hds-menu-card img {
    transition: none;
  }
}

/* Text-only public header actions. */
.de-header .home-workspace-link .hds-action-mark,
.de-header .home-account-link .hds-action-mark,
.dir-header .dir-account-link .hds-action-mark {
  display: none !important;
}

.de-header .home-workspace-link,
.de-header .home-account-link,
.dir-header .dir-account-link,
.hds-menu-trigger {
  gap: 0;
}

.hds-account-text-label {
  display: inline;
}

@media (max-width: 900px) {
  .de-header .hds-menu-trigger,
  .dir-header .hds-menu-trigger {
    display: inline-flex;
    width: auto;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
    color: inherit;
  }

  .home-editorial .de-header .home-account-link,
  .dir-header .dir-actions.dir-account-link {
    display: inline-flex;
    width: auto;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0 4px;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  body.hds-menu-open .home-editorial .de-header .brand,
  body.hds-menu-open .home-editorial .de-header .home-account-link,
  body.hds-menu-open .home-editorial .de-header .hds-menu-trigger {
    color: #111 !important;
    text-shadow: none !important;
  }

  .home-editorial .de-header .home-mobile-actions,
  .dir-header .dir-actions-group {
    gap: 18px;
  }
}

.hds-account-content[hidden],
.hds-account-note[hidden] {
  display: none !important;
}

.dir-header :is(a, button, summary):focus,
.de-header :is(a, button, summary):focus,
.hds-menu-panel :is(a, button):focus {
  outline: none;
  box-shadow: none;
}

.dir-header :is(a, button, summary):focus-visible,
.de-header :is(a, button, summary):focus-visible,
.hds-menu-panel :is(a, button):focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.dir-header .dir-wishlist-button:focus-visible {
  border-radius: 50%;
  outline: 0;
  box-shadow: 0 0 0 1px currentColor;
}

.hds-menu-icon {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hds-menu-card-copy > .hds-menu-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.hds-menu-secondary a {
  gap: 12px;
}

html:not(.hds-directory-js) .site-directory .dir-nav > .hds-menu-trigger {
  display: none;
}

html.hds-directory-js .dir-nav > a:not(.dir-account-link) {
  display: none;
}

@media (max-width: 700px) {
  .dir-header .dir-actions-group {
    gap: 10px;
  }

  .hds-public-page.site-directory .dir-header {
    padding-inline: 20px;
    gap: 12px;
  }

  .hds-public-page.site-directory .dir-brand {
    width: auto;
    min-width: 0;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: .12em;
  }

  .dir-header .dir-actions.dir-account-link,
  .dir-header .hds-menu-trigger {
    padding-inline: 2px;
  }

  .hds-menu-navigation,
  .hds-menu-top {
    padding-inline: 20px;
  }
}

@media (max-width: 360px) {
  .hds-public-page.site-directory .dir-header {
    padding-inline: 16px;
    gap: 4px;
  }

  .dir-header .dir-actions-group {
    gap: 6px;
  }

  .hds-public-page.site-directory .dir-brand {
    font-size: 14px;
    letter-spacing: .12em;
  }

  .hds-public-page.site-directory .dir-actions.dir-account-link {
    font-size: 9px;
    letter-spacing: .08em;
  }
}

/* Unified HDS menu hierarchy — Home / Directory / Editions. */
.hds-menu-cities {
  display: none !important;
}

.hds-menu-cities a {
  min-height: 44px;
}

.hds-menu-sections,
.hds-menu-secondary {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(17, 17, 17, .11);
}

.hds-menu-secondary {
  border-bottom: 0;
}

.hds-menu-section,
.hds-menu-secondary a {
  appearance: none;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border: 0;
  border-top: 1px solid rgba(17, 17, 17, .11);
  background: transparent;
  color: #151515;
  font: inherit;
  font-size: clamp(19px, 1.7vw, 27px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-align: left;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .18s ease;
}

.hds-menu-section:hover,
.hds-menu-section:focus-visible,
.hds-menu-secondary a:hover,
.hds-menu-secondary a:focus-visible {
  opacity: .58;
}

.hds-menu-section[aria-current="page"] {
  color: #151515;
  font-weight: 500;
}

.hds-menu-section > .hds-menu-icon,
.hds-menu-secondary a > .hds-menu-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hds-menu-section,
  .hds-menu-secondary a {
    padding: 16px 0;
    font-size: 22px;
  }
}

/* Keep native fallback navigation until the existing full menu is ready. */
body.hds-dynamic-menu-ready .hds-nav-discover { display: none; }
.hds-nav-discover { position: relative; }
.hds-nav-discover > summary { cursor: pointer; }
.hds-nav-discover > div { position: absolute; z-index: 20; min-width: 150px; padding: 12px; background: #f5f4f0; }
body .hds-nav-discover > div > a { display: block; padding: 10px 0; color: #151515 !important; text-shadow: none; }

/* Explore and Start now are part of the menu's blocking stylesheet.
   Keep their layout available before the menu can be opened. */
.hds-menu-panel { background: #fff; font-family: 'Inter HDS', Inter, Arial, sans-serif; }
.hds-menu-panel .hds-menu-layout { grid-template-columns: minmax(440px, 1fr) minmax(0, 1.3fr); }
.hds-menu-panel .hds-menu-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-content: start;
  gap: 28px;
  padding: clamp(24px, 3vw, 48px);
}
.hds-menu-panel .hds-menu-group { min-width: 0; }
.hds-menu-panel .hds-menu-group-title {
  margin: 0 0 18px;
  color: #707070;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.4;
}
.hds-menu-panel .hds-menu-explore-links,
.hds-menu-panel .hds-menu-secondary { display: grid; gap: 0; margin: 0; padding: 0; border: 0; }
.hds-menu-panel .hds-menu-explore-links a,
.hds-menu-panel .hds-menu-secondary a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid #dedede;
  background: transparent;
  color: #151515;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-align: left;
  text-transform: none;
  text-decoration: none;
}
.hds-menu-panel .hds-menu-explore-links a > span { min-width: 0; }
.hds-menu-panel .hds-menu-explore-links small {
  display: block;
  margin-top: 5px;
  color: #707070;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}
.hds-menu-panel .hds-menu-explore-links .hds-menu-icon,
.hds-menu-panel .hds-menu-secondary .hds-menu-icon { flex: 0 0 16px; width: 16px; height: 16px; }
.hds-menu-panel .hds-menu-explore-links a:hover,
.hds-menu-panel .hds-menu-secondary a:hover { opacity: .58; }
.hds-menu-panel .hds-menu-explore-links a:focus-visible,
.hds-menu-panel .hds-menu-secondary a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
@media (max-width: 900px) {
  .hds-menu-panel .hds-menu-layout { display: block; }
  .hds-menu-panel .hds-menu-top { min-height: 56px; padding-inline: 20px; }
  .hds-menu-panel .hds-menu-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 20px; overflow: visible; }
  .hds-menu-panel .hds-menu-group-title { margin-bottom: 12px; font-size: 11px; }
  .hds-menu-panel .hds-menu-explore-links a,
  .hds-menu-panel .hds-menu-secondary a { font-size: 17px; min-height: 48px; padding-block: 12px; }
  .hds-menu-panel .hds-menu-explore-links small { font-size: 11px; }
  .hds-menu-panel .hds-menu-grid {
    grid-template-columns: none;
    grid-template-rows: minmax(0, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    min-height: 0;
    padding: 0 20px 20px;
    gap: 12px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 20px;
    overscroll-behavior-x: contain;
  }
  .hds-menu-panel .hds-menu-card { min-height: 0; height: 240px; }
  .hds-menu-panel .hds-menu-card-copy { left: 16px; right: 16px; bottom: 16px; }
  .hds-menu-panel .hds-menu-card-copy strong { font-size: 19px; line-height: 1.15; }
}
@media (max-width: 360px) {
  .hds-menu-panel .hds-menu-navigation { gap: 16px; padding-inline: 16px; }
  .hds-menu-panel .hds-menu-explore-links a,
  .hds-menu-panel .hds-menu-secondary a { font-size: 16px; gap: 8px; }
}
