.matilda-header {
  background: var(--matilda-header-bg);
  color: var(--matilda-nav-color);
  font-family: inherit;
  position: relative;
  z-index: 50;
}

.matilda-header *,
.matilda-header *::before,
.matilda-header *::after {
  box-sizing: border-box;
}

.matilda-header__inner {
  align-items: center;
  display: flex;
  gap: 28px;
  margin: 0 auto;
  max-width: var(--matilda-max-width);
  min-height: 104px;
  padding: 14px 22px;
}

.matilda-header__brand {
  flex: 0 0 auto;
}

.matilda-header__logo-link {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}

.matilda-header__logo {
  display: block;
  height: auto;
  max-height: 78px;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.matilda-header__logo-placeholder {
  align-items: center;
  border: 1px dashed currentColor;
  display: inline-flex;
  font-size: 15px;
  height: 56px;
  justify-content: center;
  line-height: 1;
  width: 160px;
}

.matilda-header__navigation {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 32px;
  justify-content: flex-end;
  min-width: 0;
}

.matilda-header__nav {
  min-width: 0;
}

.matilda-header__menu,
.matilda-header__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.matilda-header__menu {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2vw, 34px);
}

.matilda-header__menu-item {
  position: relative;
  white-space: nowrap;
}

.matilda-header__menu-link-wrap {
  align-items: center;
  display: flex;
}

.matilda-header__menu-link,
.matilda-header__submenu a,


.matilda-header__menu-link {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.25;
  padding: 12px 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.matilda-header__menu-link:hover,
.matilda-header__menu-link:focus-visible {
  opacity: 0.68;
}

.matilda-header__submenu-toggle,

.matilda-header__toggle {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.matilda-header__submenu-toggle {
  align-items: center;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  margin-left: 5px;
  padding: 0 4px;
  width: 24px;
}

.matilda-header__submenu-toggle span,
.matilda-header__chevron {
  border-bottom: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  display: inline-block;
  height: 8px;
  transform: rotate(45deg) translateY(-2px);
  width: 8px;
}

.matilda-header__submenu {
  background: #ffffff;
  border-top: 2px solid var(--matilda-nav-color);
  box-shadow: 0 10px 24px rgba(0, 44, 42, 0.12);
  left: -18px;
  min-width: 210px;
  opacity: 0;
  padding: 10px 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 4px);
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  visibility: hidden;
  z-index: 20;
}

.matilda-header__submenu a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  padding: 10px 18px;
  text-decoration: none;
}

.matilda-header__submenu a:hover,
.matilda-header__submenu a:focus-visible {
  background: rgba(252, 231, 227, 0.8);
}

.matilda-header__menu-item:hover > .matilda-header__submenu,
.matilda-header__menu-item:focus-within > .matilda-header__submenu,
.matilda-header__menu-item.is-open > .matilda-header__submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}


.matilda-header__toggle {
  color: var(--matilda-nav-color);
  display: none;
  height: 44px;
  margin-left: auto;
  padding: 8px;
  width: 44px;
}

.matilda-header__toggle span {
  background: currentColor;
  display: block;
  height: 2px;
  margin: 5px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
  width: 25px;
}

.matilda-header.is-menu-open .matilda-header__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.matilda-header.is-menu-open .matilda-header__toggle span:nth-child(2) {
  opacity: 0;
}

.matilda-header.is-menu-open .matilda-header__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
  .matilda-header__inner {
    min-height: 88px;
  }

  .matilda-header__logo {
    max-height: 60px;
    max-width: 170px;
  }

  .matilda-header__toggle {
    display: block;
  }

  .matilda-header__navigation {
    background: var(--matilda-header-bg);
    border-top: 1px solid rgba(0, 79, 75, 0.12);
    display: block;
    left: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 22px;
    position: absolute;
    top: 100%;
    transform: translateY(-8px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.35s ease;
    visibility: hidden;
    width: 100%;
  }

  .matilda-header.is-menu-open .matilda-header__navigation {
    max-height: 900px;
    opacity: 1;
    overflow-y: auto;
    padding-bottom: 22px;
    padding-top: 10px;
    transform: translateY(0);
    visibility: visible;
  }

  .matilda-header__menu {
    align-items: stretch;
    display: block;
  }

  .matilda-header__menu-item {
    border-bottom: 1px solid rgba(0, 79, 75, 0.14);
    white-space: normal;
  }

  .matilda-header__menu-link {
    display: block;
    font-size: 18px;
    padding: 16px 0;
    width: 100%;
  }

  .matilda-header__menu-link-wrap {
    justify-content: space-between;
  }

  .matilda-header__submenu-toggle {
    height: 52px;
    margin-left: 16px;
    width: 52px;
  }

  .matilda-header__menu-item.is-open .matilda-header__submenu-toggle span {
    transform: rotate(225deg) translateY(-2px);
  }

  .matilda-header__submenu {
    background: transparent;
    border: 0;
    box-shadow: none;
    display: none;
    opacity: 1;
    padding: 0 0 14px 16px;
    pointer-events: auto;
    position: static;
    transform: none;
    visibility: visible;
  }

  .matilda-header__menu-item.is-open > .matilda-header__submenu {
    display: block;
  }

  .matilda-header__submenu a {
    font-size: 16px;
    padding: 9px 0;
  }

@media (max-width: 480px) {
  .matilda-header__inner {
    min-height: 76px;
    padding: 10px 16px;
  }

  .matilda-header__navigation {
    padding-left: 16px;
    padding-right: 16px;
  }

  .matilda-header__logo {
    max-height: 52px;
    max-width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .matilda-header *,
  .matilda-header *::before,
  .matilda-header *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
  


  /* Remove theme-generated list markers/dashes only in this custom menu */
.matilda-header ul,
.matilda-header li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

.matilda-header__menu::before,
.matilda-header__menu::after,
.matilda-header__menu-item::before,
.matilda-header__menu-item::after,
.matilda-header__menu-link-wrap::before,
.matilda-header__menu-link-wrap::after,
.matilda-header__menu-link::before,
.matilda-header__menu-link::after,
.matilda-header__submenu li::before,
.matilda-header__submenu li::after,
.matilda-header__submenu a::before,
.matilda-header__submenu a::after {
  content: none !important;
  display: none !important;
}
  
  
  /* test menu auto collapse */
  @media (max-width: 980px) {
  /* Prevent theme-generated icons from overlaying our button */
  .matilda-header .matilda-header__toggle::before,
  .matilda-header .matilda-header__toggle::after,
  .matilda-header .matilda-header__toggle span::before,
  .matilda-header .matilda-header__toggle span::after {
    content: none !important;
    display: none !important;
  }

  /* Define the hamburger using only its three actual spans */
  .matilda-header .matilda-header__toggle {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    background-image: none !important;
  }

  .matilda-header .matilda-header__toggle span {
    position: absolute;
    left: 9px;
    display: block;
    width: 26px;
    height: 2px;
    margin: 0;
    border: 0;
    background: var(--matilda-nav-color);
    opacity: 1;
    transform: none;
  }

  .matilda-header .matilda-header__toggle span:nth-child(1) {
    top: 14px;
  }

  .matilda-header .matilda-header__toggle span:nth-child(2) {
    top: 21px;
  }

  .matilda-header .matilda-header__toggle span:nth-child(3) {
    top: 28px;
  }

  .matilda-header.is-menu-open .matilda-header__toggle span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }

  .matilda-header.is-menu-open .matilda-header__toggle span:nth-child(2) {
    opacity: 0;
  }

  .matilda-header.is-menu-open .matilda-header__toggle span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  /* Expand the panel within the header, not below it */
  .matilda-header .matilda-header__inner {
    flex-wrap: wrap;
    height: auto;
  }

  .matilda-header .matilda-header__navigation {
    position: static;
    flex: 0 0 100%;
    width: 100%;
    display: none;
    height: auto;
    max-height: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    overflow: visible;
  }

  .matilda-header.is-menu-open .matilda-header__navigation {
    display: block;
    max-height: none;
    padding: 10px 0 22px;
    overflow: visible;
  }
}