/* layout container (used by site nav on main + sub pages) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
}

/* site navigation */
.site-nav {
  background: #fff;
  border-bottom: 1px solid #e3eaf0;
  position: sticky;
  top: 0;
  z-index: 300;
  overflow: visible;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-nav__brand {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #0061c1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dbe7f2;
  border-radius: 12px;
  background: #f5f8fb;
  cursor: pointer;
  flex-shrink: 0;
}

.site-nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #0061c1;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav.is-open .site-nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .site-nav__toggle span:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .site-nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav__panel {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.site-nav__panel-title {
  display: none;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #1e85b6;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__menu li {
  flex-shrink: 0;
}

.site-nav__menu a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #444;
  background: #f5f8fb;
  transition: 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.site-nav__menu a:hover,
.site-nav__menu a.is-active {
  color: #fff;
  background: #0061c1;
}

.site-nav__overlay {
  display: none;
}

body.site-nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .container {
    max-width: 480px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 992px) {
  html,
  body {
    min-width: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-nav.is-open {
    z-index: 1200;
  }

  .site-nav__brand {
    font-size: 18px;
  }

  .site-nav__toggle {
    display: flex;
    position: relative;
    z-index: 1204;
  }

  .site-nav__panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 86vw);
    height: 100dvh;
    flex: none;
    display: block;
    padding: 88px 20px 28px;
    background: #fff;
    box-shadow: -8px 0 28px rgba(0, 97, 193, 0.12);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 1203;
    overflow-y: auto;
    box-sizing: border-box;
    pointer-events: none;
  }

  .site-nav.is-open .site-nav__panel {
    transform: translateX(0);
    pointer-events: auto;
  }

  .site-nav__panel-title {
    display: block;
  }

  .site-nav__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    overflow: visible;
  }

  .site-nav__menu a {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    white-space: normal;
    line-height: 1.4;
    text-align: left;
  }

  .site-nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 1201;
  }

  .site-nav.is-open .site-nav__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 586px) {
  .site-nav__brand {
    font-size: 16px;
    max-width: calc(100% - 56px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav__inner {
    min-height: 58px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
