/* Native <details> is the source of truth for the disclosure state. */
.service-menu {
  position: static;
  flex: 0 0 auto;
}

.service-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.service-menu-toggle::-webkit-details-marker {
  display: none;
}

.service-menu-toggle::marker {
  content: "";
}

.service-menu-chevron {
  display: inline-block;
  color: #997200;
  font-size: 16px;
  line-height: 0.75;
  transition: transform 0.2s ease;
}

.service-menu[open] > .service-menu-toggle {
  color: #806000;
}

.service-menu[open] .service-menu-chevron {
  transform: rotate(180deg);
}

.service-menu-toggle:focus-visible,
.service-mega a:focus-visible {
  outline: 3px solid #a77b00;
  outline-offset: 3px;
  border-radius: 2px;
}

/* The sticky header is the positioned ancestor: the panel spans the header,
   not just the width of its summary. */
.service-mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  max-height: calc(100vh - 125px);
  max-height: calc(100dvh - 125px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-top: 1px solid #edf1e9;
  border-bottom: 4px solid #fbc02b;
  box-shadow: 0 18px 28px rgba(8, 45, 20, 0.13);
}

.service-mega > .container {
  padding-top: 28px;
  padding-bottom: 32px;
}

.service-mega-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding-bottom: 21px;
  border-bottom: 1px solid #e5ebdd;
}

.service-mega-top > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.service-mega-top small {
  color: #806000;
  font: 800 10px/1.3 Manrope, Arial, sans-serif;
  letter-spacing: 0.14em;
}

.service-mega-top strong {
  color: #0e391a;
  font: 800 clamp(17px, 1.6vw, 22px)/1.25 Manrope, Arial, sans-serif;
  letter-spacing: -0.025em;
}

.service-mega-top > a {
  flex: 0 0 auto;
  color: #0e391a;
  font: 800 12px/1.4 Manrope, Arial, sans-serif;
  text-decoration: underline;
  text-decoration-color: #fbc02b;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.2s ease;
}

.service-mega-top > a:hover {
  color: #806000;
}

.service-mega-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
  padding-top: 15px;
}

.material-mega-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-mega-column {
  min-width: 0;
}

.service-mega-column a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 11px 2px;
  color: #24352b;
  border-bottom: 1px solid #eff2ed;
  font: 700 13px/1.4 Manrope, Arial, sans-serif;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.service-mega-column a > span {
  flex: 0 0 auto;
  color: #a07800;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.service-mega-column a:hover {
  color: #806000;
  border-color: #d4bf6c;
}

.service-mega-column a:hover > span,
.service-mega-column a:focus-visible > span {
  transform: translate(2px, -2px);
}

@media (max-width: 950px) {
  /* Scroll the whole mobile navigation, so links after the expanded panel
     remain reachable as well. The existing mobile script still owns .open. */
  .site-header .site-nav {
    justify-content: flex-start;
    max-height: calc(100vh - 106px);
    max-height: calc(100dvh - 106px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .service-menu {
    flex: 0 0 auto;
    width: 100%;
  }

  .service-menu-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .service-mega {
    position: static;
    max-height: none;
    overflow: visible;
    border-top: 0;
    border-bottom: 2px solid #fbc02b;
    box-shadow: none;
    background: #f8f9f5;
  }

  .service-mega > .container {
    width: auto;
    margin: 0;
    padding: 20px 16px 18px;
  }

  .service-mega-top {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 15px;
  }

  .service-mega-top strong {
    font-size: 16px;
  }

  .service-mega-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    padding-top: 8px;
  }

  .service-mega-column a {
    min-height: 44px;
    align-items: center;
    padding: 10px 2px;
    font-size: 12px;
  }

  /* With JavaScript unavailable, expose the existing navigation in normal
     document flow instead of leaving it behind a nonfunctional hamburger. */
  html:not(.service-menu-enhanced) .site-header {
    position: static;
  }

  html:not(.service-menu-enhanced) .site-header .nav-shell {
    height: auto;
    flex-wrap: wrap;
    padding-top: 6px;
  }

  html:not(.service-menu-enhanced) .site-header .menu-toggle {
    display: none;
  }

  html:not(.service-menu-enhanced) .site-header .site-nav {
    position: static;
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    max-height: none;
    overflow: visible;
    padding: 0 0 24px;
    box-shadow: none;
  }
}

@media (max-width: 640px) {
  .site-header .site-nav {
    max-height: calc(100vh - 102px);
    max-height: calc(100dvh - 102px);
  }
}

@media (max-width: 519px) {
  .service-mega-columns {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-menu-chevron,
  .service-mega a,
  .service-mega-column a > span {
    transition: none;
  }
}
