/* NytheraDragon header correction: large on home; compact on every other public page. */
body:not(.portal-home) > header {
  min-height: 70px !important;
  height: auto !important;
  padding: 6px clamp(14px, 3vw, 38px) !important;
  gap: clamp(10px, 1.5vw, 22px) !important;
}
body:not(.portal-home) > header .header-logo {
  flex: 0 1 190px !important;
  width: auto !important;
  min-width: 0 !important;
}
body:not(.portal-home) > header .header-logo img {
  width: min(100%, 184px) !important;
  max-height: 54px !important;
  height: auto !important;
  object-fit: contain !important;
}
body:not(.portal-home) > header .header-nav {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
body:not(.portal-home) > header .nav-links {
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body:not(.portal-home) > header .nav-link {
  min-height: 35px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  border-radius: 8px !important;
}

/* The home header intentionally remains at the full theme size. */
body.portal-home > header {
  min-height: 92px;
}

@media (max-width: 720px) {
  body:not(.portal-home) > header {
    gap: 8px !important;
    padding: 8px 12px !important;
  }
  body:not(.portal-home) > header .header-logo {
    flex-basis: 145px !important;
  }
  body:not(.portal-home) > header .header-logo img {
    width: min(100%, 142px) !important;
    max-height: 43px !important;
  }
  body:not(.portal-home) > header .nav-links {
    gap: 1px !important;
  }
  body:not(.portal-home) > header .nav-link {
    min-height: 32px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
  }
}
