/* Shared desktop dropdown navigation. */
@media (min-width: 1201px) {
  html body[class] .page > .header .header__nav {
    gap: 14px;
    font-size: 14px;
  }

  html body[class] .page > .header .header__nav-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  html body[class] .page > .header .header__nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s ease, opacity .2s ease;
  }

  html body[class] .page > .header .header__nav-trigger--icon {
    width: 18px;
    height: 32px;
    padding: 0;
    justify-content: center;
  }

  html body[class] .page > .header .header__nav-trigger > span {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
  }

  html body[class] .page > .header .header__nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 30;
    display: grid;
    min-width: 230px;
    padding: 9px;
    border: 1px solid rgba(18, 67, 39, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 44px rgba(5, 42, 22, .16);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  html body[class] .page > .header .header__nav-dropdown::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 14px;
  }

  html body[class] .page > .header .header__nav-dropdown a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #17231d;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease;
  }

  html body[class] .page > .header .header__nav-dropdown a::after {
    display: none !important;
  }

  html body[class] .page > .header .header__nav-dropdown a:hover,
  html body[class] .page > .header .header__nav-dropdown a:focus-visible {
    background: #edf8f1;
    color: #0da44f;
    opacity: 1;
    outline: none;
  }

  html body[class] .page > .header .header__nav-group:hover .header__nav-dropdown,
  html body[class] .page > .header .header__nav-group:focus-within .header__nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  html body[class] .page > .header .header__nav-group:hover .header__nav-trigger,
  html body[class] .page > .header .header__nav-trigger:focus-visible {
    color: #0da44f;
    opacity: 1;
    outline: none;
  }

  html body[class] .page > .header .header__nav-group:hover .header__nav-trigger > span,
  html body[class] .page > .header .header__nav-group:focus-within .header__nav-trigger > span {
    transform: translateY(2px) rotate(225deg);
  }
}

/* Shared mobile/tablet header and accordion menu. */
@media (max-width: 1200px) {
  html body[class] .page > .header,
  html body[class] .page > .header.is-stuck {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 40;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    right: auto;
    min-height: 0;
    height: auto;
    padding: 9px 15px;
    border: 0;
    border-radius: 0;
    transform: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html body[class] .page > .header::after { display: none; }

  html body[class] .page > .header.is-stuck {
    position: fixed;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
    animation: shared-header-drop .28s ease;
  }

  @keyframes shared-header-drop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
  }

  html body[class] .page > .header .header__logo {
    display: block;
    width: 150px;
    height: 38px;
  }

  html body[class] .page > .header .header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  html body[class] .page > .header .header__nav { display: none; }

  html body[class] .page > .header .header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 51px;
    height: 51px;
    padding: 0 13px;
    border: 0;
    border-radius: 10px;
    background: #0da44f;
    cursor: pointer;
    z-index: 60;
  }

  html body[class] .page > .header .header__burger span {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .2s ease;
  }

  html body[class] .page > .header .header__burger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  html body[class] .page > .header .header__burger.is-open span:nth-child(2) { opacity: 0; }
  html body[class] .page > .header .header__burger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

  body .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex !important;
    flex-direction: column;
    padding: 10px 15px 24px;
    background: rgba(13, 164, 79, 0.93);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body .mobile-menu[hidden] { display: none !important; }
  body .mobile-menu__bar { display: flex; align-items: center; justify-content: space-between; }
  body .mobile-menu__logo { width: 150px; }
  body .mobile-menu__logo img { width: 100%; height: auto; mix-blend-mode: multiply; }

  body .mobile-menu__close {
    position: relative;
    flex-shrink: 0;
    width: 51px;
    height: 51px;
    border: 2px solid #fff;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }

  body .mobile-menu__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: #fff;
  }

  body .mobile-menu__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
  body .mobile-menu__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

  body .mobile-menu__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(100%, 560px);
    margin-inline: auto;
    padding: 22px 0 28px;
  }

  body .mobile-menu__item {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.25);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
  }

  body .mobile-menu__item--parent { cursor: pointer; }
  body .mobile-menu__group { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  body .mobile-menu__parent-row { display: flex; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,.25); }
  body .mobile-menu__parent-row .mobile-menu__item { flex: 1; border-bottom: 0; }
  body .mobile-menu__submenu-toggle {
    width: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    color: #fff;
    cursor: pointer;
  }
  body .mobile-menu__sub {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 4px 14px 10px 28px;
    border-bottom: 1px solid rgba(255,255,255,.25);
    background: rgba(3, 92, 43, .18);
  }
  body .mobile-menu__sub[hidden] { display: none; }
  body .mobile-menu__sub a { padding: 10px 0; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.55; }
  body .mobile-menu__divider { width: 100%; max-width: 343px; height: 1px; background: rgba(255,255,255,.4); }
  body .mobile-menu__caret { width: 0; height: 0; }
  body .mobile-menu__caret--down { border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid #fff; transition: transform .2s ease; }
  body .mobile-menu__group--open .mobile-menu__caret--down { transform: rotate(180deg); }
  body .mobile-menu__caret--right { border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid #fff; }
  body .mobile-menu__ctas { width: min(100%, 560px); margin-inline: auto; display: flex; justify-content: center; gap: 12px; }

  body .mobile-menu__cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 170px;
    padding: 18px 12px;
    border-radius: 100px;
    background: #fff;
    color: #0da44f;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }

  body .mobile-menu__cta .arrow { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  body .page > .header.is-stuck { animation: none; }
  body .page > .header .header__burger span { transition: none; }
}
