html:has(body.menuon) { overflow: hidden; }
body.menuon { overflow: hidden; }
.menu .mi { overscroll-behavior: contain; }
.kv2 .home-actions { position: absolute; right: 124px; top: 15px; display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.kv2 .home-actions .join, .kv2 .home-actions .lng { position: static; flex: none; }
@media (max-width: 900px) {
  .kv2 .home-actions { right: 64px; top: 18px; gap: 8px; }
}

/* Keep the current page aligned before and during hover. */
body .menu nav a.cur { padding-left: 32px; }
body .menu nav a.sub.cur { padding-left: 16px; }
body .menu nav a,
body .menu nav a small { transition: color .3s ease, background-color .3s ease; }

/* Short desktop windows scroll the complete hero instead of clipping themes. */
@media (min-width: 901px) {
  .hero.kv2on { min-height: 680px; }
}
@media (max-width: 900px) {
  body .menu nav a.cur,
  body .menu nav a.sub.cur { padding-left: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  body .menu nav a,
  body .menu nav a small { transition: none; }
}

/* The logo already links home; reserve room for language and menu controls. */
@media (max-width: 600px) {
  header.site { padding-right: 64px; }
  header.site .home:not(.lg) { display: none; }
  header.site .home.lg { flex: none; white-space: nowrap; padding: 8px; }
  header.site .bd.logo .lt { width: clamp(110px, 35vw, 136px); }
}
@media (max-width: 380px) {
  .phead h1 { font-size: clamp(24px, 8vw, 30px) !important; overflow-wrap: anywhere; }
}
/* Preserve the mobile title row after the news thumbnail layout override. */
@media (max-width: 900px) {
  .row.nrow .ti { flex: 1 1 100%; }
}
/* Keep two readable menu columns on smaller desktop windows. */
@media (min-width: 901px) and (max-width: 1200px) {
  body .menu .mi { padding: 64px 40px; column-gap: 40px; }
  body .menu .mhead { gap: 16px; }
  body .menu .mhead .lm { width: 40px; }
  body .menu .mhead .lt { width: 188px; }
}

/* Leave breathing room around pill borders inside horizontal scrollers. */
.fbar .lbar, .lbar, .fbar .abar { padding-bottom: 3px; }
.chips, .fbar .crow { padding-top: 3px; padding-bottom: 3px; }

/* Shared members pages use the same approved typography and logo alignment. */
.brand.logo, header.site .bd.logo, body .menu .mhead { align-items: flex-end; }
.form label { font-size: 14px; }
@media (min-width: 901px) { .form label { min-width: 180px; } }
