/* Page-scoped mobile compact header (home + RFP landing, <=700px). */

@media (max-width: 700px) {
  body.ph-home.aa-mobile-compact-topbar.aa-public-chrome,
  body.aa-service-rfp.aa-mobile-compact-topbar.aa-public-chrome {
    --aa-chrome-collapse-top-width: calc(100vw - 124px) !important;
    --aa-chrome-collapse-controls-width: 116px !important;
    --aa-chrome-collapse-top-height: 62px !important;
    --aa-chrome-collapse-controls-height: 40px !important;
    --aa-chrome-collapse-top-radius: 31px !important;
    --aa-chrome-collapse-controls-radius: 20px !important;
    --aa-chrome-collapse-chrome-gap: 8px !important;
    --aa-chrome-collapse-lockup-height: 42px !important;
    --aa-chrome-collapse-lockup-opacity: 1 !important;
    --aa-chrome-collapse-mark-opacity: 0 !important;
    --aa-chrome-collapse-mark-visibility: hidden !important;
    --public-chrome-expanded-height: calc(env(safe-area-inset-top, 0px) + 52px) !important;
  }

  body.ph-home.aa-mobile-compact-topbar.aa-public-chrome.aa-chrome-collapse .aa-chrome-header .aa-chrome-home-slot,
  body.aa-service-rfp.aa-mobile-compact-topbar.aa-public-chrome.aa-chrome-collapse .aa-chrome-header .aa-chrome-home-slot,
  body.ph-home.aa-mobile-compact-topbar.aa-public-chrome.aa-chrome-collapse .aa-chrome-header .public-theme-cluster,
  body.aa-service-rfp.aa-mobile-compact-topbar.aa-public-chrome.aa-chrome-collapse .aa-chrome-header .public-theme-cluster,
  body.ph-home.aa-mobile-compact-topbar.aa-public-chrome.aa-chrome-collapse .aa-chrome-header .aa-chrome-collapse-theme-compact,
  body.aa-service-rfp.aa-mobile-compact-topbar.aa-public-chrome.aa-chrome-collapse .aa-chrome-header .aa-chrome-collapse-theme-compact,
  body.ph-home.aa-mobile-compact-topbar.aa-public-chrome.aa-chrome-collapse .aa-chrome-header .mode-rail--theme-only,
  body.aa-service-rfp.aa-mobile-compact-topbar.aa-public-chrome.aa-chrome-collapse .aa-chrome-header .mode-rail--theme-only,
  body.ph-home.aa-mobile-compact-topbar.aa-public-chrome.aa-chrome-collapse .aa-chrome-header .mode-rail--theme-only > .mode-option,
  body.aa-service-rfp.aa-mobile-compact-topbar.aa-public-chrome.aa-chrome-collapse .aa-chrome-header .mode-rail--theme-only > .mode-option {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  body.ph-home.aa-mobile-compact-topbar .aa-chrome-header .aa-chrome-collapse-brand-mark,
  body.aa-service-rfp.aa-mobile-compact-topbar .aa-chrome-header .aa-chrome-collapse-brand-mark {
    display: none !important;
  }

  body.ph-home.aa-mobile-compact-topbar .aa-chrome-header .aa-chrome-brand--public > a,
  body.aa-service-rfp.aa-mobile-compact-topbar .aa-chrome-header .aa-chrome-brand--public > a {
    min-width: 0;
    max-width: 100%;
  }

  body.ph-home.aa-mobile-compact-topbar .aa-chrome-header .aa-chrome-brand-lockup-img,
  body.aa-service-rfp.aa-mobile-compact-topbar .aa-chrome-header .aa-chrome-brand-lockup-img {
    max-width: min(100%, 220px);
    width: auto;
    height: var(--aa-chrome-collapse-lockup-height, 42px);
    object-fit: contain;
    object-position: left center;
  }

  body.ph-home.aa-mobile-compact-topbar .aa-chrome-header .aa-chrome-controls-start,
  body.aa-service-rfp.aa-mobile-compact-topbar .aa-chrome-header .aa-chrome-controls-start {
    gap: 0 !important;
  }

  body.ph-home.aa-mobile-compact-topbar .aa-chrome-drawer__theme,
  body.aa-service-rfp.aa-mobile-compact-topbar .aa-chrome-drawer__theme {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(191, 220, 246, 0.22);
  }

  html[data-theme="light"] body.ph-home.aa-mobile-compact-topbar .aa-chrome-drawer__theme,
  html[data-theme="light"] body.aa-service-rfp.aa-mobile-compact-topbar .aa-chrome-drawer__theme {
    border-top-color: rgba(58, 69, 84, 0.2);
  }

  body.ph-home.aa-mobile-compact-topbar .aa-chrome-drawer__theme-label,
  body.aa-service-rfp.aa-mobile-compact-topbar .aa-chrome-drawer__theme-label {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(204, 222, 240, 0.72);
  }

  html[data-theme="light"] body.ph-home.aa-mobile-compact-topbar .aa-chrome-drawer__theme-label,
  html[data-theme="light"] body.aa-service-rfp.aa-mobile-compact-topbar .aa-chrome-drawer__theme-label {
    color: #3a4554;
  }

  body.ph-home.aa-mobile-compact-topbar .aa-chrome-drawer__theme-rail,
  body.aa-service-rfp.aa-mobile-compact-topbar .aa-chrome-drawer__theme-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.ph-home.aa-mobile-compact-topbar .aa-chrome-drawer__theme-rail .mode-option,
  body.aa-service-rfp.aa-mobile-compact-topbar .aa-chrome-drawer__theme-rail .mode-option {
    position: static !important;
    left: auto !important;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.1em;
  }
}
