.mobile-account-actions { display: none; }

@media (max-width: 1180px) {
  .site-header .header-inner {
    min-height: 70px;
    gap: 8px;
    padding-block: 8px;
  }
  .site-header .brand { min-width: 0; flex-shrink: 1; }
  .site-header .brand-logo-only .brand-logo { width: 52px; height: 52px; }
  .mobile-account-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
  }
  .mobile-account-actions a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }
  .mobile-account-actions a:last-child {
    border-radius: 6px;
    background: var(--navy);
    color: #fff;
  }
  .site-header .menu-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
  }
  .site-header .menu-toggle-icon,
  .site-header .menu-toggle-icon::before,
  .site-header .menu-toggle-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
  }
  .site-header .menu-toggle-icon { position: relative; }
  .site-header .menu-toggle-icon::before,
  .site-header .menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .site-header .menu-toggle-icon::before { top: -6px; }
  .site-header .menu-toggle-icon::after { top: 6px; }
  .site-header .menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
  .site-header .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
  .site-header .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .site-header #primary-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 108px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 20px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px #183b4520;
  }
  .site-header #primary-nav.open { display: flex; }
  #primary-nav a { min-height: 48px; font-size: 15px; }
  #primary-nav :is(.desktop-join, .desktop-login) { display: none; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 78px; }
  .site-header .header-inner { width: calc(100% - 24px); }
  .site-header .brand.brand-has-logo:not(.brand-logo-only) {
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 5px;
  }
  .site-header .brand-has-logo:not(.brand-logo-only) .brand-logo { width: 40px; height: 40px; }
  .site-header .brand-name { font-size: clamp(16px, 5vw, 22px); }
  .site-header .brand-sub { font-size: 7px; letter-spacing: .05em; }
  .hero h1, .page-hero h1 { font-size: clamp(32px, 9vw, 48px); overflow-wrap: anywhere; }
  .hero .button, .join-banner .button { font-size: 14px; }
  .hero-photo { height: clamp(200px, 65vw, 360px); }
  .program-card p, .footer-grid p { font-size: 14px; }
  .footer-grid > div > a:not(.brand) {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .field :is(input, select, textarea), .search-input { font-size: 16px; }
  .auth-main .auth-form { width: 100%; min-width: 0; }
  .auth-main .field :is(input, select), .auth-main .btn { min-height: 48px; }
  .auth-main a.btn { display: inline-flex; align-items: center; justify-content: center; }
  .auth-main .field :is(label, small), .signup-meta { overflow-wrap: anywhere; }
}

@media (max-width: 420px) {
  .program-grid, .checkbox-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .button-row .button, .join-banner .button-row .button { width: 100%; }
  .auth-main { padding-inline: 16px; }
}
