/* Shared homepage navigation: visible, comfortably sized link buttons. */
.siteHeader .mainNav {
  gap: 8px;
  margin-left: 0;
  flex-wrap: wrap;
}
.siteHeader .mainNav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #d8d1f2;
  border-radius: 10px;
  background: #fff;
  color: #4530c4;
  box-shadow: 0 2px 0 #e6e1f3;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.siteHeader .mainNav a:hover {
  background: #eeebfc;
  border-color: #a89bdf;
  color: #4530c4;
  box-shadow: 0 3px 0 #d8d1f2;
}
.siteHeader .mainNav a:active {
  background: #e4def8;
  box-shadow: none;
}
.siteHeader .mainNav a:focus-visible {
  outline: 3px solid #0499ae;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .siteHeader .mainNav {
    display: flex;
    gap: 8px;
    overflow: visible;
    white-space: normal;
    padding: 4px;
    font-size: 13px;
  }
  .siteHeader .mainNav a {
    padding-inline: 12px;
  }
}
@media (max-width: 540px) {
  .siteHeader .mainNav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .siteHeader .mainNav a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  .siteHeader .mainNav a { transition: none; }
}

.siteHeader .headerInner { flex-wrap: nowrap; gap: 20px; }
.siteHeader .headerActions { margin-left: auto; gap: 12px; }
.headerMenu { position: relative; z-index: 45; flex-shrink: 0; }
.menuToggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid #d8d1f2; border-radius: 8px;
  background: #fff; color: #4530c4; cursor: pointer; list-style: none;
}
.menuToggle::-webkit-details-marker { display: none; }
.menuToggle:hover, .headerMenu[open] .menuToggle { background: #eeebfc; border-color: #a89bdf; }
.menuToggle:focus-visible { outline: 3px solid #0499ae; outline-offset: 3px; }
.menuIcon { display: flex; flex-direction: column; gap: 5px; }
.menuIcon span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.siteHeader .headerMenu .mainNav {
  position: absolute; top: calc(100% + 10px); right: 0;
  display: flex; flex-direction: column; flex-wrap: nowrap;
  width: min(260px, calc(100vw - 36px)); min-width: 0;
  gap: 8px; padding: 12px; margin: 0;
  border: 1px solid #dedbd3; border-radius: 14px;
  background: #fff; box-shadow: 0 12px 32px #25242124;
  font-size: 14px; overflow: visible; white-space: normal;
}
.siteHeader .headerMenu .mainNav a { white-space: normal; min-height: 44px; }
@media (max-width: 540px) {
  .siteHeader .headerInner { gap: 10px; padding-block: 12px; min-height: 76px; }
  .siteHeader .headerActions { gap: 8px; }
}

@media (min-width: 901px) {
  .siteHeader .headerMenu { display: none; }
  .siteHeader .desktopNav { flex-wrap: nowrap; }
}
@media (max-width: 900px) {
  .siteHeader .desktopNav { display: none; }
}

@media (max-width: 900px) {
  .siteHeader .brand { min-width: 0; flex-shrink: 1; }
  .siteHeader .brand img:first-child { flex-shrink: 0; }
  .siteHeader .brand img:last-child { min-width: 0; }
  .siteHeader .headerActions { flex-shrink: 0; }
}
