/* Loaded after the exported styles: keep desktop intact and reflow mobile. */
@media (max-width: 640px) {
  .hifi-home { --ps-font-tracking-tight: 0; --ps-font-tracking-snug: 0; --ps-text-h1-tracking: 0; --ps-text-h2-tracking: 0; --ps-text-h3-tracking: 0; }
  .hifi-home .container { padding-inline: 20px; }
  .hifi-home .section { padding-block: 48px; }
  .hifi-home .hifi-section-heading { font-size: 30px; line-height: 1.2; letter-spacing: 0; overflow-wrap: break-word; }
  .hifi-home .hifi-section-subtext { font-size: 16px; line-height: 1.65; margin-bottom: 24px; }
  .hifi-home .hifi-section-subtext__link { white-space: normal; }
  .hifi-home main .btn, .hifi-home .btn {
    width: 100%; max-width: 100%; min-width: 0; min-height: 48px;
    margin-inline: 0; padding: 14px 18px; font-size: 16px;
    line-height: 1.4; white-space: normal; justify-content: center;
  }
  header.ps-nav-page-header .ps-nav-container {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px; padding-inline: 20px; min-height: 68px;
  }
  .ps-nav-page-header .ps-nav-header-right { min-width: 0; flex-shrink: 0; }
  .ps-nav-page-header .ps-nav-logo { flex-shrink: 0; }
  .ps-nav-page-header .ps-nav-button-orange-small { font-size: 12px; padding: 10px 14px; max-width: 172px; min-height: 44px; white-space: normal; line-height: 1.3; box-sizing: border-box; text-align: center; }
  header.ps-nav-page-header .ps-nav-header-right .ps-nav-login-buttons a.ps-nav-button-orange-small { width: 152px; max-width: 152px; min-width: 0; font-size: 12px; padding: 10px 14px; white-space: normal; }
  .ps-nav-page-header .ps-nav-hamburger-menu-label { min-width: 44px; min-height: 44px; box-sizing: border-box; margin-right: 0; }
  header.ps-nav-page-header .ps-nav-header-right { align-items: center; gap: 8px; }
  header.ps-nav-page-header .ps-nav-header-right .ps-nav-login-buttons { min-height: 0; }
  header.ps-nav-page-header .ps-nav-header-right .ps-nav-login-buttons a { margin-bottom: 0; }
  .ps-nav-page-header .ps-nav-hamburger-menu-mobile { position: relative; top: auto; right: auto; width: 44px; height: 44px; margin: 0; padding: 0; align-self: center; flex-shrink: 0; }
  .ps-nav-page-header .ps-nav-hamburger-menu-mobile .ps-nav-hamburger-menu-label { display: grid; place-items: center; width: 44px; height: 44px; }
  .ps-nav-page-header .ps-nav-mega-nav { max-width: 100%; }
  a.ivy-distribution-notice { padding: 8px 20px; font-size: 11px; line-height: 1.5; }
  .hifi-home .home-test-page .cornerstone-hero { padding: 36px 0 28px; }
  .hifi-home .home-test-page .cornerstone-hero__copy { width: 100%; min-width: 0; padding-inline: 20px; }
  .hifi-home .cornerstone-hero__headline-lead { font-size: 24px; line-height: 1.25; letter-spacing: 0; }
  .hifi-home .cornerstone-hero__headline-emphasis { font-size: 40px; line-height: 1.15; letter-spacing: 0; margin-top: 8px; }
  .hifi-home .cornerstone-hero__subcopy { font-family: var(--ps-font-family-base); font-size: 16px; line-height: 1.65; margin-top: 20px; }
  .hifi-home .home-test-tabs__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .hifi-home .home-test-tabs__tab { min-height: 52px; padding: 10px 8px; font-size: 14px; line-height: 1.3; }
  .hifi-home .home-test-selector { padding: 24px 0 32px; }
  .hifi-home .home-test-selector__cards { gap: 16px; }
  .hifi-home .home-test-card { padding: 22px; min-width: 0; }
  .hifi-home .home-test-card__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 16px; }
  .hifi-home .home-test-card__name { font-size: 22px; line-height: 1.3; letter-spacing: 0; }
  .hifi-home .home-test-card__desc { font-size: 15px; line-height: 1.65; margin: 12px 0 20px; }
  .hifi-home .home-test-card__actions { width: 100%; min-width: 0; }
  .hifi-home .home-test-academy { padding-inline: 0; }
  .hifi-home .home-test-academy__card { padding: 22px; min-width: 0; }
  .hifi-home .home-test-academy__copy { min-width: 0; }
  .hifi-home .home-test-trust__line { flex-direction: column; gap: 12px; margin-top: 24px; padding-inline: 20px; line-height: 1.5; }
  .hifi-home .home-test-trust__sep { display: none; }
  .hifi-home .home-test-trust__logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 100%; gap: 20px; padding: 16px 24px; mask-image: none; -webkit-mask-image: none; }
  .hifi-home .home-test-trust__logo { width: 100%; max-width: 100%; height: 32px; object-fit: contain; }
  .hifi-home .home-test-trust__logo--nasa { height: 48px; }
  .hifi-home .stats-hex-block__toolstrip { overflow-x: auto; overscroll-behavior-x: contain; }
  .hifi-home .stats-hex-block__pane-header { overflow-x: auto; }
  .hifi-home .stats-hex-block__line-content { font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
  .hifi-home .stats-hex-block__line[data-reveal-index] { display: flex !important; opacity: 1 !important; visibility: visible !important; }
  .hifi-home .stats-hex-block__icons { display: none; }
  .hifi-home .stats-hex-block__type-mask { display: inline; width: auto !important; white-space: pre-wrap !important; overflow: visible !important; }
  .hifi-home .stats-hex-block__searchbar { gap: 8px; }
  .hifi-home .stats-hex-block__searchbar-field { min-width: 0; }
  .hifi-home .stats-hex-block__searchbar-count { font-size: 10px; white-space: nowrap; }
  .hifi-home .community-proof-hifi { padding-top: 24px; padding-bottom: 40px; }
  .hifi-home .ambassador-wall {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center; justify-items: center; gap: 24px 20px;
    min-height: 0; padding: 0 20px 32px;
  }
  .hifi-home .ambassador-wall__text { position: relative; top: auto; left: auto; transform: none; width: 100%; grid-column: 1 / -1; margin-bottom: 8px; }
  .hifi-home .ambassador-wall__update-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin-bottom: 20px; }
  .hifi-home .ambassador-wall__update-chip { height: auto; min-height: 44px; min-width: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; padding: 8px 12px; font-size: 12px; line-height: 1.4; }
  .hifi-home .ambassador-wall__update-link { width: 44px; height: 44px; flex-shrink: 0; }
  .hifi-home .ambassador-wall .ambassador-circle,
  .hifi-home .ambassador-wall .community-highlight { position: relative; top: auto; left: auto; right: auto; bottom: auto; transform: none; width: 100%; max-width: 136px; margin: 0; }
  .hifi-home .ambassador-wall .ambassador-circle .ambassador-circle__inner,
  .hifi-home .ambassador-wall .community-highlight .community-highlight__inner,
  .hifi-home .ambassador-wall .ambassador-circle:hover .ambassador-circle__photo-wrap { transform: none; }
  .hifi-home .community-highlight__tooltip,
  .hifi-home .ambassador-circle__tooltip { display: none; }
  .hifi-home .research-showcase-hifi { padding-block: 48px 32px; }
  .hifi-home .research-talks__header { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 20px; }
  .hifi-home .research-talks__header > * { min-width: 0; white-space: normal; }
  .hifi-home .research-talks__header a { min-height: 44px; display: inline-flex; align-items: center; }
  .hifi-home .enterprise-trust-hifi__row--chips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hifi-home .enterprise-trust-hifi__chip { max-width: 100%; white-space: normal; min-height: 48px; }
  .hifi-home .enterprise-trust-hifi__cta-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hifi-home .logo-hex-dump { margin-block: 32px 0; padding: 24px 12px; }
  .hifi-home .logo-hex-dump__grid { gap: 16px; }
  .hifi-home .logo-hex-dump__tile { min-width: 0; padding: 12px; }
  .hifi-home .logo-hex-dump__icon { opacity: .85; transform: none; }
  .hifi-home .final-cta-hifi { padding: 56px 20px 40px; }
  .hifi-home .final-cta-hifi__cta { font-size: 20px; padding: 18px 20px; }
  .hifi-home .final-cta-hifi__label { font-size: 20px; line-height: 1.5; }
  footer.ps-footer .ps-footer-container { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding: 28px 20px; }
  footer.ps-footer .ps-footer-container::before, footer.ps-footer .ps-footer-container::after { display: none; }
  footer.ps-footer .ps-footer-container > div { width: auto; min-width: 0; padding: 0; }
  footer.ps-footer .ps-footer-container > div:last-child { grid-column: 1 / -1; }
  footer.ps-footer a { overflow-wrap: anywhere; }
  footer.ps-footer .ps-footer-container > div > a:not(.ivy-partner) { display: block; padding-block: 6px; line-height: 1.5; }
}
@media (max-width: 360px) {
  .hifi-home .container { padding-inline: 16px; }
  .hifi-home .cornerstone-hero__headline-emphasis { font-size: 34px; }
  .hifi-home .hifi-section-heading { font-size: 28px; }
}