/* Language-navigation and WordPress-preview stability for tablet/mobile viewports. */
@media (max-width: 1100px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .topbar {
    position: fixed !important;
    top: 8px;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    height: 62px !important;
    padding: 0 14px !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-radius: 15px !important;
    background: rgba(5,12,20,.58) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    box-shadow: 0 12px 34px rgba(0,0,0,.12) !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 12px !important;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease !important;
  }

  .topbar.is-scrolled {
    background: rgba(5,12,20,.79) !important;
    border-color: rgba(255,255,255,.2) !important;
    box-shadow: 0 15px 38px rgba(0,0,0,.2) !important;
  }

  .coalition-logo {
    width: 165px !important;
    height: 38px !important;
    min-width: 0 !important;
  }

  .coalition-logo img {
    width: 165px !important;
    height: 165px !important;
    transform: translateY(-64px) !important;
  }

  .desktop-nav,
  .header-actions .header-cta {
    display: none !important;
  }

  .header-actions {
    display: block !important;
    justify-self: end;
  }

  .language-switch a {
    width: 31px;
    height: 27px;
  }

  .menu-button {
    display: flex !important;
    align-items: center;
    gap: 9px;
    color: #fff;
    padding: 6px;
    border: 0;
    background: transparent;
    text-transform: uppercase;
    font-size: 11px;
  }

  .menu-button i {
    width: 20px;
    height: 10px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
  }

  .mobile-nav {
    position: fixed !important;
    z-index: 20;
    top: 74px;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    display: flex;
    background: rgba(6,13,22,.94);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    padding: 10px 18px 18px;
    flex-direction: column;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s, visibility .3s;
  }

  .mobile-nav.is-open {
    display: flex !important;
    transform: none;
    visibility: visible;
  }

  .hero {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100svh;
    padding: 120px 20px 56px !important;
    overflow: hidden !important;
  }

  .hero-content {
    width: 100% !important;
    max-width: 760px !important;
    min-width: 0 !important;
  }

  .hero-pill {
    max-width: 100%;
    white-space: normal !important;
    line-height: 1.5;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(3.6rem, 14vw, 7rem) !important;
    line-height: .82 !important;
  }

  .hero-copy {
    width: 100%;
    max-width: 680px;
  }

  .hero-proof {
    display: none !important;
  }
}

@media (min-width: 783px) and (max-width: 1100px) {
  body.admin-bar .topbar { top: 40px !important; }
  body.admin-bar .mobile-nav {
    top: 106px;
    max-height: calc(100vh - 114px);
  }
}

@media (max-width: 782px) {
  body.admin-bar .topbar { top: 54px !important; }
  body.admin-bar .mobile-nav {
    top: 120px;
    max-height: calc(100vh - 128px);
  }
}

@media (max-width: 380px) {
  .topbar {
    gap: 8px !important;
    padding-inline: 12px !important;
  }

  .coalition-logo {
    width: 142px !important;
    height: 33px !important;
  }

  .coalition-logo img {
    width: 142px !important;
    height: 142px !important;
    transform: translateY(-55px) !important;
  }

  .language-switch { padding: 2px; }
  .language-switch a { width: 29px; height: 27px; }
  .menu-button { width: 38px; justify-content: center; padding: 6px 4px; }
  .menu-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .menu-button i { width: 22px; }
  .hero h1 { font-size: clamp(3.35rem, 14.5vw, 4rem) !important; }
}
