/* Click-operated, six-column navigation. Original logo pixels remain unchanged. */
:root { --mjds-mega-font: clamp(12px, .92vw, 15px); }

.site-header:has(.mjds-original-logo-frame) { --header-height: 104px; }
.site-header:has(.mjds-original-logo-frame) .header-inner { height: 104px; }
.mjds-header .custom-logo-link.mjds-original-logo-frame {
  display: block;
  position: relative;
  flex: 0 0 138px;
  width: 138px;
  height: 100px;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
}
.mjds-header .mjds-original-logo-frame > .custom-logo.mjds-original-logo {
  position: absolute;
  left: -17px;
  top: -26px;
  width: 166px;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
}
.mjds-footer .custom-logo-link.mjds-original-logo-frame {
  display: block;
  position: relative;
  width: 180px;
  height: 130px;
  margin: 0 0 24px;
  padding: 0;
  overflow: hidden;
  border-radius: 5px;
  background: transparent;
}
.mjds-footer .mjds-original-logo-frame > .custom-logo.mjds-original-logo {
  position: absolute;
  left: -22px;
  top: -33px;
  width: 216px;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
}

/* Preserve the original artwork and lettering while adapting its white canvas
   to the dark header/footer. Screen blending makes the inverted canvas blend
   into its backdrop; the hue rotation keeps the emblem in the green family. */
.mjds-header .mjds-original-logo-frame > .custom-logo.mjds-original-logo,
.mjds-footer .mjds-original-logo-frame > .custom-logo.mjds-original-logo {
  filter: invert(1) hue-rotate(180deg) saturate(1.4) brightness(1.2);
  mix-blend-mode: screen;
}

[data-mjds-mega-toggle] { cursor: pointer; }
.site-header.mega-open [data-mjds-mega-toggle] { color: #8de969; }
.site-header.mega-open [data-mjds-mega-toggle]::after { width: 100%; background: #8de969; }
.mjds-mega-menu[hidden] { display: none !important; }
.mjds-mega-menu {
  position: absolute;
  z-index: 120;
  left: 44px;
  right: 44px;
  top: 100%;
  max-height: var(--mjds-mega-available-height, calc(100dvh - 125px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #4b777377;
  border-top-color: #53837e88;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(120deg, #00191efa, #09262bfa 64%, #143036f5);
  box-shadow: 0 24px 45px #00151d36;
  color: #e6efef;
  -webkit-backdrop-filter: blur(22px) saturate(.9);
  backdrop-filter: blur(22px) saturate(.9);
  scrollbar-width: thin;
  scrollbar-color: #527b6b #061f24;
}
.mjds-mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(5, minmax(0, 1fr));
  max-width: 1700px;
  margin: 0 auto;
  padding: 50px 40px 30px;
}
.mjds-mega-column {
  min-width: 0;
  margin: 0;
  padding: 0 25px;
  border-left: 1px solid #4f777568;
}
.mjds-mega-column:first-child { padding-left: 0; border-left: 0; }
.mjds-mega-column:last-child { padding-right: 0; }
.mjds-mega-column h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin: 0 0 18px;
  padding: 0 0 17px;
  border-bottom: 1px solid #75a582a3;
  color: #f2f6f3;
  font-family: inherit;
  font-size: clamp(10px, .8vw, 13px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.mjds-mega-column h2 a { min-width: 0; color: inherit; overflow-wrap: anywhere; }
.mjds-mega-column h2 a:hover { color: #9de764; }
.mjds-mega-icon {
  display: block;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  color: #a0e464;
  fill: none;
  stroke: currentColor;
}
.mjds-mega-links { list-style: none; margin: 0; padding: 0; }
.mjds-mega-links li { margin: 0; padding: 0; }
.mjds-mega-links a {
  display: block;
  min-height: 43px;
  padding: 10px 0;
  color: #e0ebed;
  font-size: var(--mjds-mega-font);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
  transition: color .16s ease;
}
.mjds-mega-column:first-child .mjds-mega-links a { text-transform: uppercase; }
.mjds-mega-links a:hover,.mjds-mega-links a:focus-visible { color: #a2eb70; }
.mjds-mega-finder {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 17px;
  padding: 23px 0 4px;
  border-top: 1px solid #75a582a3;
  color: #a4efaf;
  font-size: clamp(10px, .75vw, 12px);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.mjds-mega-finder > svg { flex: 0 0 33px; width: 33px; height: 33px; color: #a0e464; fill: none; stroke: currentColor; }
.mjds-mega-finder > span { min-width: 0; }
.mjds-mega-finder > [aria-hidden="true"]:last-child { margin-left: auto; flex-shrink: 0; color: #a0e464; font-size: 21px; }
.mjds-mega-finder:hover { color: #d1ffb3; }
.mjds-mega-close {
  position: absolute;
  top: 8px;
  right: 14px;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: #0d3032;
  color: #f1f8f3;
  font-size: 11px;
  line-height: 1.5;
  border-radius: 4px;
}
.mjds-mega-close:focus-visible { width: auto; height: 32px; padding: 6px 12px; clip-path: none; overflow: visible; }
.mjds-mega-close > svg { width: 17px; height: 17px; vertical-align: middle; }

@media (min-width: 1600px) {
  .mjds-mega-inner { padding: 55px 43px 33px; }
  .mjds-mega-column { padding-left: 30px; padding-right: 30px; }
  .mjds-mega-column h2 { gap: 17px; margin-bottom: 19px; }
  .mjds-mega-icon { flex-basis: 34px; width: 34px; height: 34px; }
  .mjds-mega-links a { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
}
@media (min-width: 1101px) and (max-width: 1399px) {
  .mjds-mega-inner { padding: 38px 28px 27px; }
  .mjds-mega-column { padding-left: 18px; padding-right: 18px; }
  .mjds-mega-column h2 { gap: 10px; font-size: 10px; letter-spacing: .1em; }
  .mjds-mega-icon { flex-basis: 26px; width: 26px; height: 26px; }
  .mjds-mega-links a { min-height: 40px; padding-top: 9px; padding-bottom: 9px; }
  .mjds-mega-finder { gap: 10px; letter-spacing: .04em; }
  .mjds-mega-finder > svg { flex-basis: 27px; width: 27px; height: 27px; }
}
@media (max-width: 1100px) {
  .site-header:has(.mjds-original-logo-frame) { --header-height: 88px; }
  .site-header:has(.mjds-original-logo-frame) .header-inner { height: 88px; }
  .mjds-header .custom-logo-link.mjds-original-logo-frame { width: 108px; height: 78px; flex-basis: 108px; }
  .mjds-header .mjds-original-logo-frame > .custom-logo.mjds-original-logo { width: 130px; left: -13px; top: -20px; }
  .mjds-mega-menu { left: 18px; right: 18px; background: linear-gradient(125deg,#001b20f7,#0b2b30f5); border-top-color: #4c7775; }
  .mjds-mega-inner { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 0; padding: 56px 28px 32px; }
  .mjds-mega-column,.mjds-mega-column:last-child { padding: 0 24px; }
  .mjds-mega-column:nth-child(odd) { border-left: 0; padding-left: 0; }
  .mjds-mega-column:nth-child(even) { padding-right: 0; }
  .mjds-mega-column h2 { font-size: 12px; gap: 14px; }
  .mjds-mega-links a { font-size: 14px; min-height: 43px; }
  .mjds-mega-finder { font-size: 11px; }
  .mjds-mega-close { top: 12px; right: 15px; width: auto; min-width: 32px; height: 32px; padding: 6px 12px; border: 1px solid #6f9f8166; clip-path: none; overflow: visible; }
}
@media (max-width: 600px) {
  .mjds-mega-menu { left: 12px; right: 12px; border-radius: 0 0 8px 8px; }
  .mjds-mega-inner { grid-template-columns: minmax(0,1fr); gap: 24px; padding: 56px 25px 27px; }
  .mjds-mega-column,.mjds-mega-column:first-child,.mjds-mega-column:last-child,.mjds-mega-column:nth-child(even),.mjds-mega-column:nth-child(odd) { padding: 0; border-left: 0; }
  .mjds-mega-column + .mjds-mega-column { padding-top: 22px; border-top: 1px solid #4f777566; }
  .mjds-mega-column h2 { font-size: 12px; margin-bottom: 12px; }
  .mjds-mega-links a { font-size: 13px; min-height: 42px; }
  .mjds-mega-finder { max-width: 310px; margin-top: 15px; padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { .mjds-mega-links a { transition: none; } }
