/* Compact dropdowns; the normal top-level navigation keeps its spacing. */
body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container {
  gap:0!important;
  row-gap:0!important;
  padding:6px 0!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  background:#fff!important;
  border:1px solid #dfe3e8!important;
}
body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container > .wp-block-navigation-item {
  margin:0!important;
  padding:0!important;
  width:100%!important;
  min-height:0!important;
  flex:0 0 auto!important;
  border:0!important;
}
body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container > .wp-block-navigation-item + .wp-block-navigation-item {
  border-top:1px solid #eeeae4!important;
}
body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display:block!important;
  box-sizing:border-box;
  width:100%!important;
  margin:0!important;
  padding:11px 18px!important;
  font-family:var(--sc-font,"Montserrat",sans-serif)!important;
  font-size:15px!important;
  font-weight:300!important;
  line-height:1.4!important;
  color:#596575!important;
  text-align:left!important;
  white-space:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
  background:#f2eee7!important;
}
body .sc-header .sc-shared-menu.sc-shared-menu .sc-menu-overview .wp-block-navigation-item__content {
  background:transparent!important;
  font-weight:300!important;
}
body .sc-shared-menu.sc-shared-menu .sc-menu-new {
  display:inline-flex!important;
  vertical-align:middle;
  align-items:center;
  gap:4px;
  margin-left:7px!important;
  padding:4px 7px!important;
  border:1px solid #74685c!important;
  border-radius:3px;
  background:#74685c!important;
  color:#fff!important;
  font-family:var(--sc-font,"Montserrat",sans-serif)!important;
  font-size:10px!important;
  font-weight:500!important;
  line-height:1!important;
  letter-spacing:.04em;
  white-space:nowrap!important;
}
@media(min-width:981px) {
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container {
    width:300px!important;
    min-width:260px!important;
    max-width:calc(100vw - 40px)!important;
  }
}
@media(max-width:980px) {
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container {
    width:100%!important;
    min-width:0!important;
    padding:0 0 6px 12px!important;
    background:transparent!important;
    border:0!important;
    box-sizing:border-box;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    min-height:44px;
    padding:11px 10px!important;
  }
}

/* Match the existing footer links: no card treatment or special overview row. */
body footer .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container {
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  margin:0!important;
  gap:0!important;
  width:100%!important;
  min-width:0!important;
  align-items:flex-start!important;
}
body footer .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container > .wp-block-navigation-item {
  border:0!important;
  background:transparent!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
}
body footer .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  background:transparent!important;
  border:0!important;
  padding:4px 0!important;
  margin:0!important;
  color:inherit!important;
  font-family:inherit!important;
  font-size:inherit!important;
  font-weight:300!important;
  line-height:1.6!important;
}
@media(min-width:981px) {
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation-item__content {
    font-family:var(--sc-font,"Montserrat",sans-serif)!important;
    font-size:18px!important;
    font-weight:300!important;
    color:#596575!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    font-size:16px!important;
  }
}

/* Keep the desktop navigation on one line; adjust to the available viewport. */
@media(min-width:981px) {
  body .sc-header .sc-shared-menu.sc-shared-menu {
    min-width:0!important;
    flex-shrink:1!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__container {
    flex-wrap:nowrap!important;
    column-gap:clamp(8px,1.1vw,20px)!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__container > .wp-block-navigation-item {
    flex-shrink:0!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    font-size:clamp(14px,1.18vw,18px)!important;
    white-space:nowrap!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .sc-menu-new {
    margin-left:5px!important;
    padding:4px 5px!important;
  }
}
@media(min-width:981px) and (max-width:1250px) {
  body .sc-header .sc-header-inner {
    gap:12px!important;
  }
  body .sc-header .sc-brand img {
    max-width:120px!important;
    height:auto!important;
  }
  body .sc-header .sc-header-actions .wp-block-button__link {
    font-size:14px!important;
    padding:10px 12px!important;
    white-space:nowrap!important;
  }
}

/* Remove only the desktop header action. Keep the existing mobile bottom bar. */
@media(min-width:981px) {
  body .sc-header .sc-header-actions {
    display:none!important;
  }
}

/* Mobile: viewport-sized panel and quiet, collapsible groups. */
@media(max-width:980px) {
  body .sc-header .sc-header-inner {position:static!important;min-width:0!important;}
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__responsive-container.is-menu-open {
    position:absolute!important;
    inset:100% 0 auto 0!important;
    width:100%!important;
    max-width:100vw!important;
    min-width:0!important;
    box-sizing:border-box!important;
    padding:10px 20px 20px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    max-height:calc(100dvh - 210px)!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__responsive-close,
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__responsive-dialog,
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__responsive-container-content {
    width:100%!important;max-width:100%!important;min-width:0!important;
    margin:0!important;box-sizing:border-box!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__responsive-container-close {
    position:relative!important;inset:auto!important;
    margin:0 0 4px auto!important;width:40px!important;height:40px!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__container {
    display:flex!important;flex-direction:column!important;gap:0!important;
    align-items:stretch!important;width:100%!important;min-width:0!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__container > .wp-block-navigation-item {
    width:100%!important;min-width:0!important;margin:0!important;
    border-bottom:1px solid #e7e3dd!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation-item__content {
    font-family:var(--sc-font,"Montserrat",sans-serif)!important;
    font-size:17px!important;font-weight:300!important;line-height:1.4!important;
    padding:13px 0!important;margin:0!important;white-space:normal!important;
    overflow-wrap:anywhere!important;min-width:0!important;box-sizing:border-box!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation-item.has-child {
    display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;
    align-items:center!important;gap:0!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .has-child > .wp-block-navigation-item__content {
    grid-column:1!important;grid-row:1!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .has-child > .wp-block-navigation__submenu-icon {
    display:flex!important;position:static!important;grid-column:2!important;grid-row:1!important;
    align-items:center!important;justify-content:center!important;
    width:44px!important;height:44px!important;margin:0!important;padding:12px!important;
    color:#596575!important;background:transparent!important;border:0!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .has-child > .wp-block-navigation__submenu-container {
    display:none!important;grid-column:1 / -1!important;grid-row:2!important;
    position:static!important;width:100%!important;min-width:0!important;max-width:100%!important;
    margin:0!important;padding:0 0 8px 14px!important;
    border:0!important;background:transparent!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .has-child.sc-mobile-expanded > .wp-block-navigation__submenu-container {
    display:flex!important;flex-direction:column!important;
    visibility:visible!important;opacity:1!important;height:auto!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container > .wp-block-navigation-item {
    border:0!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    font-size:15px!important;min-height:44px!important;padding:11px 0!important;
    color:#74685c!important;background:transparent!important;
  }
  body .sc-header .sc-shared-menu.sc-shared-menu .sc-mobile-expanded > .wp-block-navigation__submenu-icon svg {transform:rotate(180deg);}
}
