/* Scoped to the masthead and its own mobile menu. Accepted page palette stays. */
html body.yas-theme-unified nav[data-header-preview] {
  box-sizing: border-box;
  min-height: 72px;
  margin: 0 0 12px;
  padding: 12px 18px;
  border: 1px solid #44678b;
  border-radius: 10px;
  background: #183e66;
  gap: 18px;
}
html body.yas-theme-unified nav[data-header-preview] .nav-links {
  align-items: center;
  gap: 18px;
}
html body.yas-theme-unified nav[data-header-preview] .nav-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #d0dff0;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
html body.yas-theme-unified nav[data-header-preview] .nav-links > a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 6px;
}
html body.yas-theme-unified nav[data-header-preview] .nav-links > a[data-header-check] {
  padding: 10px 15px;
  border: 1px solid #78c6f4;
  border-radius: 7px;
  background: #78c6f4;
  color: #091b30 !important;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
html body.yas-theme-unified nav[data-header-preview] .nav-links > a[data-header-check]:hover {
  background: #9bd8fc;
  border-color: #9bd8fc;
}
html body.yas-theme-unified nav[data-header-preview] :is(a,button):focus-visible,
html body.yas-theme-unified #mobileMenu a:focus-visible {
  outline: 2px solid #9bd8fc;
  outline-offset: 4px;
}
@media (min-width:1101px) and (max-width:1250px) {
  html body.yas-theme-unified nav[data-header-preview] { padding-inline: 14px; gap: 14px; }
  html body.yas-theme-unified nav[data-header-preview] .nav-links { gap: 13px; }
  html body.yas-theme-unified nav[data-header-preview] .nav-links > a { font-size: 14px; }
  html body.yas-theme-unified nav[data-header-preview] .nav-links > a[data-header-check] { padding-inline: 12px; }
}
@media (max-width:1100px) {
  html body.yas-theme-unified nav[data-header-preview] { flex-wrap: nowrap; padding-inline: 13px; }
  html body.yas-theme-unified nav[data-header-preview] .burger {
    min-width: 44px;
    min-height: 44px;
    padding: 9px;
    align-items: center;
    justify-content: center;
    border: 1px solid #87a5c2;
    border-radius: 7px;
    background: transparent;
  }
  html body.yas-theme-unified nav[data-header-preview] .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  html body.yas-theme-unified nav[data-header-preview] .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  html body.yas-theme-unified nav[data-header-preview] .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html body.yas-theme-unified #mobileMenu {
    box-sizing: border-box;
    inset: 0;
    z-index: 1000;
    height: 100dvh;
    padding: 116px max(20px, calc((100vw - 1220px) / 2)) 28px;
    gap: 0;
    align-items: stretch;
    overflow-y: auto;
    background: #14365b !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  html body.yas-theme-unified #mobileMenu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid #3f6488;
    border-radius: 0;
    font-size: 18px !important;
    line-height: 1.4;
    color: #d0dff0 !important;
    text-align: left;
    text-decoration: none;
  }
  html body.yas-theme-unified #mobileMenu a[href*="proverit.html"] { color: #78c6f4 !important; }
}
@media (prefers-reduced-motion:reduce) {
  html body.yas-theme-unified nav[data-header-preview] .nav-links > a[data-header-check] { transition: none; }
}
/* Keep the actual links visible in normal desktop windows, including the app panel. */
@media (min-width:900px) {
  html body.yas-theme-unified nav[data-header-preview] .nav-links {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
  }
  html body.yas-theme-unified nav[data-header-preview] .burger { display:none!important; }
}
@media (min-width:900px) and (max-width:1100px) {
  html body.yas-theme-unified nav[data-header-preview] { gap:12px!important; padding-inline:14px!important; }
  html body.yas-theme-unified nav[data-header-preview] .logo { flex-shrink:0; }
  html body.yas-theme-unified nav[data-header-preview] .nav-links { gap:10px!important; }
  html body.yas-theme-unified nav[data-header-preview] .nav-links > a { font-size:15px!important; flex-shrink:0; }
  html body.yas-theme-unified nav[data-header-preview] .nav-links > a[data-header-check] { padding-inline:10px!important; }
}
