@media (max-width: 760px) {
  html body .announcement {
    padding: 7px 12px;
    font-size: 10px;
    letter-spacing: .045em;
  }

  html body .announcement span { margin: 0 5px; }

  html body .site-header .brand {
    width: 56px;
    height: 56px;
    min-width: 56px;
    flex-basis: 56px;
  }

  html body footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  html body footer .site-credit { margin-left: 0; text-align: left; }
}

@media (max-width: 600px) {
  html body main.auth-page { padding: 40px 16px 60px; }
  html body .auth-card { padding: 32px 22px 28px; border-radius: 19px; }
}

/* Mobile header, navigation and request-form branding — 20260729-mobile2 */
html body .form-brand img {
  display: block !important;
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  overflow: hidden !important;
}

@media (max-width: 980px) {
  html body .main-nav {
    position: fixed !important;
    top: 101px !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    z-index: 19 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-height: calc(100dvh - 101px) !important;
    margin: 0 !important;
    padding: 12px 24px 18px !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    text-align: left !important;
    background: #fffafa !important;
    border-top: 1px solid rgba(78, 60, 76, .09) !important;
    box-shadow: 0 18px 34px rgba(48, 39, 51, .10) !important;
  }

  html body .main-nav a {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 11px 0 !important;
    text-align: left !important;
  }

  html body .main-nav a::after {
    display: none !important;
  }
}

@media (max-width: 760px) {
  html body .announcement {
    box-sizing: border-box !important;
    min-height: 27px !important;
    height: auto !important;
    padding: 5px 8px !important;
    font-size: 8px !important;
    line-height: 1.25 !important;
    letter-spacing: .035em !important;
  }

  html body .announcement span {
    margin: 0 4px !important;
  }

  html body .main-nav {
    top: 101px !important;
    max-height: calc(100dvh - 101px) !important;
  }

  html body .form-brand img {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
  }
}

@media (display-mode: standalone) and (max-width: 760px) {
  html body .announcement {
    font-size: 7.5px !important;
    letter-spacing: .025em !important;
  }
}

/* Mobile menu: attach directly to the bottom of the header */
@media (max-width: 900px) {
    html body .site-header {
        position: relative !important;
    }

    html body .site-header .main-nav {
        top: 100% !important;
        right: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        transform: none !important;
        border-top: 1px solid rgba(38, 31, 40, 0.08) !important;
    }

    html body .site-header .main-nav.is-open,
    html body .site-header .main-nav.active,
    html body .site-header.menu-open .main-nav,
    html body .site-header:has(.menu-toggle[aria-expanded="true"]) .main-nav {
        top: 100% !important;
        margin-top: 0 !important;
    }
}
