/* Shared public-page header and footer responsiveness. */
body > header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 105px;
  height: auto !important;
  padding: 8px 16px;
  background: #0056d2;
  color: #fff;
}

body > header .brand {
  position: static !important;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: auto;
}

body > header .brand img {
  display: block;
  width: auto;
  height: auto !important;
  max-width: min(240px, 60vw);
  max-height: 92px;
}

body > header .brand span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

body > header nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 0 auto;
}

body > header nav a {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

body > header nav a:hover,
body > header nav a:focus-visible {
  text-decoration: underline;
}

body > header .hamburger,
body > header .nav-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

body > header .hamburger {
  display: none;
  margin-left: auto;
}

body > header .nav-close {
  display: none;
}

@media (max-width: 980px) {
  body > header .brand span {
    display: none !important;
  }
}

@media (max-width: 768px) {
  body > header {
    flex-direction: row !important;
    justify-content: flex-start;
    min-height: 68px;
    padding: 2px 10px;
  }

  body > header .brand img {
    width: 64px !important;
    height: 64px !important;
    max-width: 64px;
    max-height: 64px;
  }

  body > header .hamburger {
    display: flex;
  }

  body > header nav {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0;
    padding: 72px 24px 24px;
    overflow-y: auto;
    background: rgba(26, 54, 180, 0.98);
  }

  body > header nav.open {
    display: flex;
  }

  body > header nav a {
    margin: 0;
    font-size: 22px;
  }

  body > header .nav-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
  }
}

@media (max-width: 800px) {
  footer .f-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  footer {
    padding: 24px 18px;
  }

  footer .f-grid {
    grid-template-columns: 1fr;
  }
}
