/* V16 sample navigation: bright brand strip with a deep-blue service menu. */
#v16-navigation {
  --jy-nav-ink: #18344b;
  --jy-nav-deep: #15344b;
  --jy-nav-gold: #c38b3f;
  --jy-nav-text: #f6f8fb;
  --jy-nav-border: rgb(255 255 255 / 16%);
  position: relative;
  z-index: 50;
  width: 100%;
  color: var(--jy-nav-ink);
  font-family: inherit;
}

#v16-navigation,
#v16-navigation * {
  box-sizing: border-box;
}

.jy-v16-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid #dce4e9;
  border-radius: 4px;
  background: #fff;
  color: var(--jy-nav-ink);
  cursor: pointer;
}

.jy-v16-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.jy-v16-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.jy-v16-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.jy-v16-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.jy-v16-nav-main {
  background: var(--jy-nav-deep);
  color: var(--jy-nav-text);
}

.jy-v16-nav-list[hidden] {
  display: none !important;
}

.jy-v16-mobile-bar {
  display: none;
}

.jy-v16-nav-list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 clamp(2px, 1vw, 16px);
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 42px);
  list-style: none;
}

.jy-v16-nav-item {
  position: relative;
  min-width: 0;
}

.jy-v16-nav-trigger {
  min-height: 52px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--jy-nav-text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.jy-v16-nav-trigger:hover,
.jy-v16-nav-trigger[aria-expanded="true"] {
  border-bottom-color: #e1b876;
  background: rgb(255 255 255 / 5%);
  color: #f5d8a9;
}

.jy-v16-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease, margin .18s ease;
}

.jy-v16-nav-trigger[aria-expanded="true"] .jy-v16-chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}

.jy-v16-submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 60;
  width: min(320px, calc(100vw - 28px));
  margin: 0;
  padding: 8px;
  border: 1px solid #e4e9ec;
  border-top: 2px solid #c28b47;
  background: #fff;
  box-shadow: 0 16px 34px rgb(12 31 47 / 19%);
  list-style: none;
}

.jy-v16-submenu[hidden] {
  display: none !important;
}

.jy-v16-submenu a {
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 2px;
  color: #27465d;
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}

.jy-v16-submenu a::after {
  content: "↗";
  flex: 0 0 auto;
  color: #ad7a39;
  font-size: 12px;
}

.jy-v16-submenu a:hover {
  background: #f5f7f8;
  color: #a66f2d;
}

#v16-navigation :focus-visible {
  outline: 3px solid #e1b876;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .jy-v16-nav-list {
    justify-content: flex-start;
    gap: 0 4px;
    padding-inline: 16px;
  }

  .jy-v16-nav-trigger {
    min-height: 48px;
    padding-inline: 10px;
    font-size: 13px;
  }
}

@media (max-width: 680px) {
  .jy-v16-menu-toggle {
    display: block;
  }

  .jy-v16-mobile-bar {
    min-height: 46px;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--jy-nav-border);
  }

  .jy-v16-mobile-bar strong {
    color: #f1d5aa;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .04em;
  }

  .jy-v16-nav-list {
    display: block;
    width: 100%;
    max-height: min(70vh, 520px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px 14px 14px;
  }

  .jy-v16-nav-list[hidden] {
    display: none !important;
  }

  .jy-v16-nav-item {
    border-bottom: 1px solid var(--jy-nav-border);
  }

  .jy-v16-nav-trigger {
    width: 100%;
    min-height: 48px;
    padding: 0 8px;
    justify-content: space-between;
    border-bottom: 0;
    text-align: left;
  }

  .jy-v16-nav-trigger:hover,
  .jy-v16-nav-trigger[aria-expanded="true"] {
    border-bottom: 0;
    background: rgb(255 255 255 / 6%);
  }

  .jy-v16-submenu {
    position: static;
    width: 100%;
    margin: 0 0 10px;
    border: 0;
    border-left: 2px solid #c28b47;
    background: #f8fafb;
    box-shadow: none;
  }

  .jy-v16-submenu a {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #v16-navigation *,
  #v16-navigation *::before,
  #v16-navigation *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Keep longer dropdowns usable on short screens. */
.jy-v16-submenu { max-height:min(70vh,520px); overflow-y:auto; overscroll-behavior:contain; }

/* Keep brand and navigation together at the top while scrolling. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.v16-brand > img { width: 60px; height: 60px; }
.v16-brand strong { font-size: 21px; }
.v16-brand small { font-size: 11px; }
html { scroll-padding-top: 150px; }
@media (min-width: 681px) and (max-width: 1020px) {
  html { scroll-padding-top: 190px; }
}
@media (max-width: 700px) {
  .v16-brand > img { width: 41px; height: 41px; }
  .v16-brand strong { font-size: 15px; }
  .v16-brand small { font-size: 8px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 145px; }
  .jy-v16-nav-list { max-height: min(60vh, 440px); max-height: min(60vh, max(0px, calc(100dvh - 130px)), 440px); }
}
/* On narrow screens the whole expanded menu scrolls as one surface. */
@media (max-width: 680px) {
  .jy-v16-nav-list .jy-v16-submenu { max-height: none; overflow: visible; }
}
/* Section names navigate; arrows retain independent submenu controls. */
.jy-v16-nav-item { display:flex; align-items:stretch; }
.jy-v16-nav-link { min-height:52px; display:inline-flex; align-items:center; padding:0 2px 0 13px; color:var(--jy-nav-text); font:inherit; font-size:14px; font-weight:650; text-decoration:none; white-space:nowrap; }
.jy-v16-nav-trigger { padding-inline:8px 10px; }
.jy-v16-nav-item:hover,.jy-v16-nav-item:focus-within { background:rgb(255 255 255 / 5%); }
.jy-v16-nav-link:hover { color:#f5d8a9; }
@media(max-width:900px) { .jy-v16-nav-link { min-height:48px; font-size:13px; padding-inline-start:10px; } }
@media(max-width:680px) { .jy-v16-nav-item { flex-wrap:wrap; } .jy-v16-nav-link { flex:1; min-height:48px; padding-inline:8px; font-size:14px; } .jy-v16-nav-trigger { width:48px; min-width:48px; justify-content:center; padding:0; } .jy-v16-submenu { flex:0 0 100%; } }
