:root {
  --shell-focus: rgba(0, 166, 42, 0.28);
  --shell-focus-strong: #00a62a;
  --shell-shadow: 0 14px 36px rgba(16, 24, 20, 0.08);
}

html {
  scroll-padding-top: 6rem;
}

body.has-js .site-header {
  transition: box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

body.has-js[data-scrolled="true"] .site-header {
  box-shadow: 0 10px 28px rgba(17, 24, 19, 0.06);
}

.site-menu a,
.dropdown a,
.btn,
.social-links a,
.store-chip,
.store-badge,
.site-footer-col a {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.site-menu a:focus-visible,
.dropdown a:focus-visible,
.btn:focus-visible,
.social-links a:focus-visible,
.store-chip:focus-visible,
.store-badge:focus-visible,
.site-footer-col a:focus-visible,
.sidebar a:focus-visible,
.navpanel a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--shell-focus);
  border-radius: 12px;
}

.menu-item-has-children > a[aria-expanded="true"] {
  color: var(--theme-accent, #00a62a) !important;
}

.menu-item-has-children {
  position: relative;
}

.dropdown {
  transform-origin: top center;
}

body.has-js .dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

body.has-js .menu-item-has-children:hover .dropdown,
body.has-js .menu-item-has-children:focus-within .dropdown,
body.has-js .menu-item-has-children.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.has-js .dropdown a:hover {
  text-decoration: none;
}

@media (min-width: 901px) {
  body.has-js .menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
  }
}

.sidebar a.active,
.navpanel a.active {
  color: var(--theme-accent, #00a62a) !important;
}

.sidebar a.active::before,
.navpanel a.active::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  vertical-align: middle;
}

body.has-js .reveal-target {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
  will-change: opacity, transform;
}

body.has-js .reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 36, 23, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d2b24;
  cursor: pointer;
}

.site-nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.site-nav-toggle .icon-close {
  display: none;
}

body.has-js .site-header.mobile-nav-open .site-nav-toggle .icon-menu {
  display: none;
}

body.has-js .site-header.mobile-nav-open .site-nav-toggle .icon-close {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.has-js .site-header,
  .site-menu a,
  .dropdown a,
  .btn,
  .social-links a,
  .store-chip,
  .store-badge,
  .site-footer-col a,
  .site-nav-toggle,
  body.has-js .dropdown,
  body.has-js .reveal-target {
    transition: none !important;
  }

  body.has-js .reveal-target {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  body.has-js .site-nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }

  body.has-js .site-menu,
  body.has-js .nav-actions {
    display: none !important;
    grid-column: 1 / -1;
    width: 100%;
  }

  body.has-js .site-header.mobile-nav-open .site-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.8rem !important;
    padding-top: 0.9rem;
  }

  body.has-js .site-header.mobile-nav-open .nav-actions {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.65rem;
    padding-top: 0.8rem;
  }

  body.has-js .site-header.mobile-nav-open .nav-actions .btn {
    flex: 1 1 170px;
    justify-content: center;
    text-align: center;
  }

  body.has-js .site-nav-spacer {
    display: none !important;
  }

  body.has-js .site-menu > li {
    width: 100%;
  }

  body.has-js .site-menu > li > a {
    display: block;
    width: 100%;
  }

  body.has-js .dropdown {
    display: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-top: 0.15rem;
  }

  body.has-js .menu-item-has-children.open > .dropdown {
    display: grid !important;
  }
}
