/**
 * Built to Run guarantee-terms route (/built-to-run-guarantee-terms/).
 *
 * Loaded only by page-built-to-run-guarantee-terms.php and always after the
 * shared bundle. Every selector is scoped to the route's WordPress body class.
 *
 * @package AIIMN
 * @since 2.3.0
 */

/*
 * The standard E5 header/footer can exceed the viewport at 200% and 400% text
 * even though the legal content itself reflows. The header becomes
 * content-responsive through a font-relative container query, while the
 * footer can wrap without an intrinsic-width floor.
 */
body.page-built-to-run-guarantee-terms .aiimn-e5-site-header .header-container {
  container-name: aiimn-btr-terms-header;
  container-type: inline-size;
  min-width: 0;
}

body.page-built-to-run-guarantee-terms .aiimn-e5-site-header .aiimn-e5-logo-link,
body.page-built-to-run-guarantee-terms .aiimn-e5-site-header .aiimn-e5-primary-navigation,
body.page-built-to-run-guarantee-terms .aiimn-e5-site-header .nav-menu,
body.page-built-to-run-guarantee-terms .aiimn-e5-site-footer .container,
body.page-built-to-run-guarantee-terms .aiimn-e5-footer-grid > *,
body.page-built-to-run-guarantee-terms .aiimn-e5-footer-navigation,
body.page-built-to-run-guarantee-terms .aiimn-e5-footer-navigation > * {
  max-width: 100%;
  min-width: 0;
}

body.page-built-to-run-guarantee-terms .aiimn-e5-footer-grid,
body.page-built-to-run-guarantee-terms .aiimn-e5-footer-navigation {
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}

body.page-built-to-run-guarantee-terms .aiimn-e5-footer-navigation > * {
  white-space: normal;
}

@container aiimn-btr-terms-header (max-width: 60rem) {
  body.page-built-to-run-guarantee-terms .aiimn-e5-site-header .aiimn-e5-logo-link {
    flex: 1 1 auto;
    width: min(9.75rem, calc(100% - 64px));
  }

  body.page-built-to-run-guarantee-terms .aiimn-e5-site-header .aiimn-e5-primary-navigation {
    display: none;
  }

  body.page-built-to-run-guarantee-terms .aiimn-e5-site-header .mobile-menu-toggle {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
