/* Shared public navigation. Independent of the older .site-header rules. */
:root { --public-header-height: 88px; }
html { scroll-padding-top: calc(var(--public-header-height) + 20px); }
section[id] { scroll-margin-top: calc(var(--public-header-height) + 20px); }
.sm-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--public-header-height);
  color: #f5f0e7;
  background: #090f15;
  border-bottom: 1px solid #bd965954;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.sm-header.is-scrolled { background: #090f15f5; box-shadow: 0 8px 30px #00000029; }
.sm-header-inner {
  width: min(1480px, 100%);
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(20px, 2.2vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.sm-brand { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; min-height: 56px; color: #fff; }
.sm-brand img { width: 62px; height: 62px; object-fit: contain; flex: 0 0 auto; }
.sm-brand > span { display: grid; gap: 5px; }
.sm-brand b { font: 800 18px/1 var(--display, Arial, sans-serif); letter-spacing: .035em; white-space: nowrap; }
.sm-brand small { color: #d6bd94; font: 700 8px/1.3 Arial, sans-serif; letter-spacing: .18em; white-space: nowrap; }
.sm-header a, .sm-header summary { -webkit-tap-highlight-color: #3d9cff33; }
.sm-header a:focus-visible, .sm-header summary:focus-visible { outline: 2px solid #72c5ff; outline-offset: 4px; }
.sm-menu { min-width: 0; }
.sm-menu-toggle { display: none; }
.sm-nav { display: flex; align-items: center; gap: clamp(3px, .55vw, 9px); }
.sm-nav-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 700 clamp(12px, 1.05vw, 14px)/1.4 Arial, sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
  cursor: pointer;
  color: #f5f0e7;
  transition: color .2s, border-color .2s, background-color .2s, box-shadow .2s;
}
.sm-nav-link::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(110deg, transparent 5%, #1c78ef00 20%, #50b8ff70 50%, #1c78ef00 80%, transparent 95%);
  transform: translateX(-100%);
}
.sm-nav-link::after {
  content: "";
  pointer-events: none;
  position: absolute;
  height: 2px;
  inset: auto 11px 4px;
  background: #6bc0ff;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(.4);
  transition: opacity .2s ease, transform .2s ease;
}
.sm-nav-link[aria-current="page"]::after,
.sm-nav-group[data-current="true"] > .sm-nav-link::after { opacity: 1; transform: scaleX(1); }
.sm-nav-link:hover, .sm-nav-link:focus-visible, .sm-nav-group[open] > .sm-nav-link {
  color: #fff;
  border-color: #5aafff66;
  background-color: #12304e;
  box-shadow: 0 0 20px #007dff30, inset 0 0 16px #2c85dd18;
}
.sm-nav-link:hover::before, .sm-nav-link:focus-visible::before {
  opacity: 1;
  animation: sm-beacon-sweep 1.4s ease-out 1 both;
}
.sm-nav-link:hover::after, .sm-nav-link:focus-visible::after { opacity: 1; transform: scaleX(1); }
@keyframes sm-beacon-sweep {
  0% { transform: translateX(-100%); opacity: 0; }
  30% { opacity: .85; }
  100% { transform: translateX(100%); opacity: 0; }
}
.sm-nav-contact { background: #8d2228; border-color: #b44148; padding-inline: 15px; margin-left: 5px; }
.sm-nav-contact > span { font-size: 16px; }
.sm-nav-group { position: relative; }
.sm-nav-group > summary { list-style: none; }
.sm-header summary::-webkit-details-marker { display: none; }
.sm-header summary::marker { content: ""; }
.sm-chevron { width: 6px; height: 6px; flex: 0 0 auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.sm-nav-group[open] .sm-chevron { transform: translateY(1px) rotate(225deg); }
.sm-submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 294px;
  padding: 9px;
  color: #fff;
  background: #101e2b;
  border: 1px solid #84b2d148;
  border-top: 2px solid #61baff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 22px 45px #00000050;
}
.sm-nav-group:nth-last-of-type(1) .sm-submenu { left: auto; right: 0; }
.sm-submenu a { position: relative; display: grid; gap: 4px; min-height: 62px; padding: 11px 12px; border-radius: 3px; color: #fff; font: 700 14px/1.4 Arial, sans-serif; transition: background-color .2s; }
.sm-submenu a + a { border-top: 1px solid #fff1; }
.sm-submenu a span { color: #b4c1cc; font-size: 11px; font-weight: 400; }
.sm-submenu a:hover, .sm-submenu a:focus-visible { background: #174568; }
.sm-submenu a[aria-current="page"] { background: #153651; box-shadow: inset 3px 0 #69c0ff; }
@media (min-width: 1400px) {
  .sm-brand b { font-size: 21px; }
  .sm-brand small { font-size: 9px; }
  .sm-brand img { width: 68px; height: 68px; }
  .sm-nav-link { padding-inline: 13px; }
  .sm-nav-contact { padding-inline: 20px; }
}
@media (max-width: 1023px) {
  :root { --public-header-height: 76px; }
  .sm-header-inner { padding-inline: 20px; gap: 14px; }
  .sm-brand img { width: 54px; height: 54px; }
  .sm-brand b { font-size: 17px; }
  .sm-menu { margin-left: auto; }
  .sm-menu-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 84px; min-height: 44px; padding: 9px; border: 1px solid #bd965969; border-radius: 4px; list-style: none; color: #f5f0e7; cursor: pointer; }
  .sm-menu-label { font: 700 12px/1 Arial, sans-serif; }
  .sm-menu-icon { display: grid; align-content: center; gap: 4px; width: 19px; height: 20px; }
  .sm-menu-icon i { display: block; height: 2px; background: currentColor; transform-origin: center; transition: transform .2s, opacity .2s; }
  .sm-menu[open] .sm-menu-icon i:first-child { transform: translateY(6px) rotate(45deg); }
  .sm-menu[open] .sm-menu-icon i:nth-child(2) { opacity: 0; }
  .sm-menu[open] .sm-menu-icon i:last-child { transform: translateY(-6px) rotate(-45deg); }
  .sm-nav {
    position: absolute;
    inset: var(--public-header-height) 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--public-header-height));
    max-height: calc(100dvh - var(--public-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px max(20px, calc((100vw - 660px)/2)) 24px;
    background: #0b141e;
    border-bottom: 1px solid #bd965966;
    box-shadow: 0 18px 35px #00000040;
  }
  .sm-nav > .sm-nav-link, .sm-nav-group > summary { justify-content: space-between; min-height: 51px; padding: 12px; font-size: 15px; border-bottom-color: #ffffff18; border-radius: 0; }
  .sm-nav-link::after { inset-inline: 12px; }
  .sm-nav-contact { margin: 14px 0 0; border: 1px solid #b44148; border-radius: 4px !important; }
  .sm-submenu { position: static; width: auto; margin: 3px 0 10px 12px; border: 0; border-left: 2px solid #31648b; border-radius: 0; box-shadow: none; padding: 3px 8px; background: #101e2b; }
  .sm-submenu a { min-height: 61px; padding-inline: 11px; }
}
@media (max-width: 380px) {
  .sm-header-inner { padding-inline: 12px; gap: 8px; }
  .sm-brand { gap: 6px; }
  .sm-brand img { width: 43px; height: 49px; }
  .sm-brand b { font-size: 15px; }
  .sm-brand small { font-size: 7px; letter-spacing: .13em; }
  .sm-menu-toggle { min-width: 73px; gap: 8px; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-header *, .sm-header *::before, .sm-header *::after { animation: none !important; transition: none !important; }
  .sm-nav-link:hover::before, .sm-nav-link:focus-visible::before { opacity: 0; }
}
@media print { .sm-header { display: none; } }
