/* Shared geometry for the six product-family homepages. */
html[data-px7-suite] body {
  --px7-home-width: min(980px, calc(100% - 32px));
  line-height: 1.55;
}

html[data-px7-suite] body > .wrap,
html[data-px7-suite] body > footer {
  width: var(--px7-home-width);
  margin-inline: auto;
}

html[data-px7-suite] :is(main > .chooser, main > footer, footer > .wrap) {
  width: 100%;
}

html[data-px7-suite] body .suitebar {
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border: 0;
}

html[data-px7-suite] :is(.suitebrand, .suitelinks) {
  font-size: 13px;
  line-height: 1.4;
}

html[data-px7-suite] .suitelinks a {
  white-space: nowrap;
}

html[data-px7-suite]:not([data-px7-suite-style]) .site-header {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  margin: clamp(18px, 3vw, 32px) 0 0;
  padding: clamp(30px, 4vw, 40px) clamp(18px, 4vw, 44px);
  text-align: center;
}

html[data-px7-suite]:not([data-px7-suite-style]) .site-header .eyebrow {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

html[data-px7-suite]:not([data-px7-suite-style]) .site-header h1 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
}

html[data-px7-suite]:not([data-px7-suite-style]) .site-header .lede {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.55;
}

html[data-px7-suite] .mac-hub-callout {
  margin: 24px 0 0;
}

html[data-px7-suite] .mac-hub-callout + .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 26px;
  padding: 0;
}

html[data-px7-suite] .product-grid .product {
  min-width: 0;
  min-height: 350px;
  gap: 6px;
  padding: 30px 24px 24px;
  line-height: 1.45;
}

html[data-px7-suite] .product-grid .product::before { content: none; }

html[data-px7-suite] .product-grid .product > img {
  width: 138px;
  height: 138px;
  margin: 0;
  object-fit: contain;
}

html[data-px7-suite] .product-grid .product .verb {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

html[data-px7-suite] .product-grid .product .name {
  margin: 8px 0 0;
  font-size: 27px;
  line-height: 1.18;
  text-wrap: balance;
}

html[data-px7-suite] .product-grid .product .what {
  max-width: 23rem;
  font-size: 14.5px;
  line-height: 1.45;
  text-wrap: pretty;
}

html[data-px7-suite] .product-grid .product .tag {
  margin: auto 0 0;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
}

html[data-px7-suite]:not([data-px7-suite-style]) .site-promise {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 38px 0 48px;
}

html[data-px7-suite] .site-promise h3 { margin: 0 0 7px; font-size: 17px; }
html[data-px7-suite] .site-promise p { margin: 0; font-size: 14.5px; line-height: 1.55; }

html[data-px7-suite] .chooser {
  margin-block: 0;
  padding-block: 40px 0;
}

html[data-px7-suite] footer {
  margin-block: 64px 0;
  padding: 36px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

html[data-px7-suite] footer :is(.sibling, .job-picker) {
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 14px;
}

html[data-px7-suite] footer .colophon { font-size: 14px; }

@media (min-width: 621px) {
  html[data-px7-suite] .suitebar > .suite-menu-toggle { display: none; }

  html[data-px7-suite] .suitebar .suitelinks {
    display: flex;
    width: auto;
    margin-inline-start: auto;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: clamp(10px, 1.2vw, 18px);
    overflow: visible;
  }

  html[data-px7-suite]:not([data-px7-suite-style]) .site-header { min-height: 300px; }
}

@media (min-width: 900px) {
  html[data-px7-suite]:not([data-px7-suite-style]) .site-header { min-height: 354px; }
}

@media (max-width: 620px) {
  html[data-px7-suite].suite-menu-ready .suitebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  html[data-px7-suite].suite-menu-ready .suitebar > .suitelinks {
    display: none;
    width: 100%;
    margin: 0;
    font-size: 14px;
  }

  html[data-px7-suite].suite-menu-ready .suitebar.suite-menu-open > .suitelinks { display: flex; }

  html[data-px7-suite] .mac-hub-callout + .product-grid,
  html[data-px7-suite]:not([data-px7-suite-style]) .site-promise { grid-template-columns: minmax(0, 1fr); }

  html[data-px7-suite] .product-grid .product { padding-inline: 20px; }
  html[data-px7-suite] .chooser { padding-top: 32px; }
}

html[data-px7-suite="utilities"] .product-grid .product[href="/brainstack/en/"] > img {
  border-radius: 22%;
  scale: .875;
}
