/* Unified social header used across the homepage, About, newsletter and World Hub. */
body .nav .hero-socials {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-left: auto;
  margin-right: 34px;
  flex-shrink: 0;
}
body .nav .hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  color: #8cc6ff;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
body .nav .hero-socials a:hover,
body .nav .hero-socials a:focus-visible {
  color: #e6c787;
  transform: translateY(-1px);
}
body .nav .hero-socials svg.icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* At intermediate widths, keep the existing compact tablet nav. */
@media (max-width: 1100px) and (min-width: 981px) {
  body .nav .hero-socials { display: none !important; }
}

/* Phones and small tablets: one single header line: brand | socials | menu. */
@media (max-width: 980px) {
  body .nav,
  body.world-site .nav,
  body .global-header .nav {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(4px, 1.2vw, 11px);
    row-gap: 0;
    padding: 10px 0;
  }
  body .nav .brand,
  body.world-site .nav .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    gap: .4rem;
    overflow: hidden;
  }
  body .nav .brand a,
  body.world-site .nav .brand a {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body .nav .brand .mark,
  body.world-site .nav .brand .mark { flex-shrink: 0; }
  body .nav .hero-socials,
  body.world-site .nav .hero-socials,
  body .global-header .nav .hero-socials {
    display: flex !important;
    grid-column: 2;
    grid-row: 1;
    order: initial;
    width: auto;
    flex: none;
    justify-self: center;
    justify-content: center;
    align-items: center;
    gap: clamp(2px, .7vw, 8px);
    margin: 0;
    padding: 0;
    border: 0;
    visibility: visible;
    opacity: 1;
  }
  body .nav .hero-socials a,
  body .nav .hero-socials a:nth-child(n+4) {
    display: flex !important;
    flex: 0 0 34px;
    width: 34px;
    height: 36px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #8cc6ff;
  }
  body .nav .hero-socials svg.icon {
    display: block;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
  }
  body .nav .menu-toggle,
  body.world-site .nav .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin: 0;
    padding: .46rem .59rem;
  }
  body .nav ul#menu,
  body .global-header .nav ul#menu,
  body.world-site .nav ul#menu {
    position: absolute !important;
    inset: auto 0 auto 0 !important;
    top: 100% !important;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    z-index: 9999;
  }
}

@media (max-width: 480px) {
  body .nav, body.world-site .nav { column-gap: 4px; }
  body .nav .brand, body.world-site .nav .brand { gap: 4px; }
  body .nav .brand .mark, body.world-site .nav .brand .mark { width: 23px; height: 23px; }
  body .nav .brand a, body.world-site .nav .brand a { font-size: clamp(10px, 2.8vw, 12px); letter-spacing: -.02em; }
  body .nav .hero-socials, body.world-site .nav .hero-socials { gap: 2px; }
  body .nav .hero-socials a, body .nav .hero-socials a:nth-child(n+4) {
    flex: 0 0 28px;
    width: 28px;
    height: 34px;
    min-height: 34px;
  }
  body .nav .hero-socials svg.icon { width: 18px; height: 18px; flex-basis: 18px; }
  body .nav .menu-toggle, body.world-site .nav .menu-toggle { padding: 7px 8px; }
  body .nav .menu-toggle svg, body.world-site .nav .menu-toggle svg { width: 18px; height: 18px; }
}
@media (max-width: 355px) {
  body .nav .brand .mark, body.world-site .nav .brand .mark { width: 21px; height: 21px; }
  body .nav .brand a, body.world-site .nav .brand a { font-size: 10px; }
  body .nav .hero-socials, body.world-site .nav .hero-socials { gap: 1px; }
  body .nav .hero-socials a, body .nav .hero-socials a:nth-child(n+4) {
    flex-basis: 25px;
    width: 25px;
  }
  body .nav .menu-toggle, body.world-site .nav .menu-toggle { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  body .nav .hero-socials a { transition: none; }
}
