/* Final density and typography pass for internal pages only. */
body.qv-site:not(.home) {
  --qv-internal-h1: 4.75rem;
  --qv-internal-h2: 3.5rem;
  --qv-internal-h3: 1.6rem;
  --qv-internal-body: 1.125rem;
  --qv-internal-space: 6rem;
}

body.qv-site:not(.home) main :is(h1, h2, h3, h4) {
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

body.qv-site:not(.home) main h1 {
  max-width: 16ch;
  font-size: var(--qv-internal-h1) !important;
  line-height: 1 !important;
}

body.qv-site:not(.home) main h2 {
  max-width: 18ch;
  font-size: var(--qv-internal-h2) !important;
  line-height: 1.04 !important;
}

body.qv-site:not(.home) main h3 {
  font-size: var(--qv-internal-h3) !important;
  line-height: 1.12 !important;
}

body.qv-site:not(.home) main .qv-content-card h2 {
  max-width: none;
  font-size: var(--qv-internal-h3) !important;
  line-height: 1.12 !important;
}

body.qv-site:not(.home) main :is(p, li, dd) {
  line-height: 1.6;
}

body.qv-site:not(.home) main :is(
  .qv-page-hero__intro,
  .qv-internal-hero p:not(.qv-kicker),
  .qv-internal-split p,
  .qv-detail-copy > p,
  .qv-detail-copy > div > p
) {
  font-size: var(--qv-internal-body) !important;
}

/* Shared archives, services and detail templates. */
body.qv-site:not(.home) :is(
  .qv-application-index,
  .qv-internal-section,
  .qv-detail-section,
  .qv-detail-cta,
  .qv-global-collection-cta
) {
  padding-block: var(--qv-internal-space) !important;
}

body.qv-site:not(.home) .qv-content-grid {
  padding-block: 4.5rem !important;
}

body.qv-site:not(.home) .qv-internal-hero {
  min-height: auto !important;
  padding-block: 9rem 5.5rem !important;
}

body.qv-site:not(.home) .qv-internal-hero--compact {
  padding-block: 8rem 5rem !important;
}

body.qv-site:not(.home) .qv-page-hero--global-collection,
body.qv-site:not(.home) .qv-page-hero--services {
  min-height: 38rem !important;
}

body.qv-site:not(.home) .qv-detail-hero {
  min-height: 42rem !important;
}

body.qv-site:not(.home) :is(.qv-internal-split, .qv-detail-split) {
  gap: 4.5rem !important;
}

body.qv-site:not(.home) .qv-internal-cards {
  margin-top: 3rem;
}

body.qv-site:not(.home) .qv-internal-cards article,
body.qv-site:not(.home) .qv-detail-grid article {
  min-height: 14rem !important;
  padding: 2rem !important;
}

body.qv-site:not(.home) .qv-internal-cards article h3 {
  margin: 2rem 0 0.8rem !important;
}

body.qv-site:not(.home) .qv-contact-card {
  min-height: 28rem;
  padding: 2.75rem;
}

body.qv-site:not(.home) .qv-page-hero--services .qv-page-hero__media,
body.qv-site:not(.home) .qv-global-collection-hero__media {
  min-height: 30rem;
}

body.qv-site:not(.home) .qv-detail--machine .qv-detail-machine-media {
  min-height: 32rem;
  margin-top: 3.5rem;
}

body.qv-site:not(.home) .qv-detail--machine .qv-detail-machine-showcase {
  min-height: 28rem;
  margin-top: 3.5rem;
}

body.qv-site:not(.home) .qv-detail-gallery :is(figure, img) {
  min-height: 14rem;
}

body.qv-site:not(.home) .qv-application-card {
  min-height: 30rem;
}

body.qv-site:not(.home) .qv-global-collection-cta h2 {
  font-size: var(--qv-internal-h2) !important;
}

/* Applications flagship. */
body.qv-applications-flagship-page {
  --qv-internal-space: 6rem;
}

body.qv-applications-flagship-page .qv-app-hero,
body.qv-applications-flagship-page .qv-app-hero__grid {
  min-height: 44rem !important;
}

body.qv-applications-flagship-page .qv-app-hero__grid {
  padding-block: 8rem 5rem !important;
}

body.qv-applications-flagship-page .qv-app-hero__visual {
  min-height: 30rem;
}

body.qv-applications-flagship-page :is(
  .qv-app-products,
  .qv-app-journey,
  .qv-app-method,
  .qv-app-automation,
  .qv-app-conversion
) {
  min-height: auto !important;
  padding-block: var(--qv-internal-space) !important;
}

body.qv-applications-flagship-page :is(
  .qv-app-section-intro h2,
  .qv-app-journey h2,
  .qv-app-method h2,
  .qv-app-automation h2,
  .qv-app-conversion h2
) {
  max-width: 16ch;
  font-size: var(--qv-internal-h2) !important;
  line-height: 1.04 !important;
}

body.qv-applications-flagship-page .qv-app-products__layout {
  margin-top: 4rem;
  gap: 4rem;
}

body.qv-applications-flagship-page .qv-app-product-stage {
  min-height: 34rem;
}

body.qv-applications-flagship-page .qv-app-product-stage__media {
  min-height: 21rem;
}

body.qv-applications-flagship-page .qv-app-product-link {
  min-height: 7.25rem;
}

body.qv-applications-flagship-page .qv-app-journey__flow li {
  min-height: 7.5rem;
  padding-block: 1.25rem;
}

/* Company flagship. */
body.qv-company-flagship-page .qv-co-hero {
  min-height: 44rem !important;
}

body.qv-company-flagship-page .qv-co-hero__inner {
  padding-block: 9rem 5rem !important;
}

body.qv-company-flagship-page :is(
  .qv-co-origin,
  .qv-co-timeline,
  .qv-co-founder,
  .qv-co-people,
  .qv-co-roots,
  .qv-co-made,
  .qv-co-future,
  .qv-co-conversion
) {
  padding-block: var(--qv-internal-space) !important;
}

body.qv-company-flagship-page :is(.qv-co-craft, .qv-co-growth) {
  min-height: 42rem !important;
}

body.qv-company-flagship-page :is(
  .qv-co-origin h2,
  .qv-co-timeline h2,
  .qv-co-founder h2,
  .qv-co-people h2,
  .qv-co-craft h2,
  .qv-co-growth h2,
  .qv-co-roots h2,
  .qv-co-made h2,
  .qv-co-future h2,
  .qv-co-conversion h2
) {
  max-width: 17ch;
  font-size: var(--qv-internal-h2) !important;
  line-height: 1.04 !important;
}

body.qv-company-flagship-page :is(
  .qv-co-timeline__stage,
  .qv-co-founder__visual,
  .qv-co-roots figure,
  .qv-co-future__visual
) {
  min-height: 31rem !important;
}

body.qv-company-flagship-page .qv-co-timeline__intro {
  margin-bottom: 4rem;
}

/* Evolution flagship. */
body.qv-evolution-page .qv-evo-hero {
  min-height: 44rem !important;
}

body.qv-evolution-page :is(
  .qv-evo-problem,
  .qv-evo-answer,
  .qv-evo-process,
  .qv-evo-performance,
  .qv-evo-benefits,
  .qv-evo-modular,
  .qv-evo-visual,
  .qv-evo-conversion
) {
  padding-block: var(--qv-internal-space) !important;
}

body.qv-evolution-page :is(
  .qv-evo-hero h1,
  .qv-evo-problem h2,
  .qv-evo-answer h2,
  .qv-evo-process h2,
  .qv-evo-performance h2,
  .qv-evo-benefits h2,
  .qv-evo-modular h2,
  .qv-evo-visual h2,
  .qv-evo-conversion h2
) {
  max-width: 17ch;
  line-height: 1.04 !important;
}

body.qv-evolution-page .qv-evo-hero h1 {
  font-size: var(--qv-internal-h1) !important;
}

body.qv-evolution-page :is(
  .qv-evo-problem h2,
  .qv-evo-answer h2,
  .qv-evo-process h2,
  .qv-evo-performance h2,
  .qv-evo-benefits h2,
  .qv-evo-modular h2,
  .qv-evo-visual h2,
  .qv-evo-conversion h2
) {
  font-size: var(--qv-internal-h2) !important;
}

body.qv-evolution-page .qv-evo-benefits__list li {
  min-height: 12rem;
  padding-block: 3rem;
}

body.qv-evolution-page :is(.qv-evo-visual__frame, .qv-evo-answer__machine) {
  min-height: 32rem !important;
}

@media (max-width: 64rem) {
  body.qv-site:not(.home) {
    --qv-internal-h1: 4rem;
    --qv-internal-h2: 3rem;
    --qv-internal-h3: 1.45rem;
    --qv-internal-body: 1.05rem;
    --qv-internal-space: 5rem;
  }

  body.qv-site:not(.home) :is(.qv-internal-split, .qv-detail-split) {
    gap: 3rem !important;
  }

  body.qv-site:not(.home) .qv-page-hero--services .qv-page-hero__media,
  body.qv-site:not(.home) .qv-global-collection-hero__media {
    min-height: 26rem;
  }

  body.qv-company-flagship-page :is(
    .qv-co-timeline__stage,
    .qv-co-founder__visual,
    .qv-co-roots figure,
    .qv-co-future__visual
  ) {
    min-height: 27rem !important;
  }
}

@media (max-width: 48rem) {
  body.qv-site:not(.home) {
    --qv-internal-h1: 3.25rem;
    --qv-internal-h2: 2.5rem;
    --qv-internal-h3: 1.35rem;
    --qv-internal-body: 1rem;
    --qv-internal-space: 4rem;
  }

  body.qv-site:not(.home) main :is(h1, h2) {
    max-width: 100%;
  }

  body.qv-site.qv-applications-flagship-page:not(.home) main .qv-app-hero h1,
  body.qv-site.qv-company-flagship-page:not(.home) main .qv-co-hero h1,
  body.qv-site.qv-evolution-page:not(.home) main .qv-evo-hero h1 {
    font-size: var(--qv-internal-h1) !important;
  }

  body.qv-site:not(.home) :is(.qv-internal-hero, .qv-internal-hero--compact) {
    padding-block: 7rem 4rem !important;
  }

  body.qv-site:not(.home) .qv-content-grid {
    padding-block: 3.5rem !important;
  }

  body.qv-site:not(.home) .qv-page-hero--global-collection,
  body.qv-site:not(.home) .qv-page-hero--services,
  body.qv-site:not(.home) .qv-detail-hero {
    min-height: auto !important;
  }

  body.qv-site:not(.home) .qv-detail--machine .qv-detail-machine-media,
  body.qv-site:not(.home) .qv-detail--machine .qv-detail-machine-showcase {
    min-height: 21rem;
    margin-top: 2.5rem;
  }

  body.qv-site:not(.home) .qv-application-card {
    min-height: 25rem;
  }

  body.qv-applications-flagship-page .qv-app-hero,
  body.qv-applications-flagship-page .qv-app-hero__grid,
  body.qv-company-flagship-page .qv-co-hero,
  body.qv-evolution-page .qv-evo-hero {
    min-height: auto !important;
  }

  body.qv-applications-flagship-page .qv-app-hero__grid,
  body.qv-company-flagship-page .qv-co-hero__inner {
    padding-block: 7rem 4rem !important;
  }

  body.qv-applications-flagship-page .qv-app-hero__visual,
  body.qv-applications-flagship-page .qv-app-product-stage__media {
    min-height: 21rem;
  }

  body.qv-applications-flagship-page .qv-app-product-stage {
    min-height: auto;
  }

  body.qv-company-flagship-page :is(.qv-co-craft, .qv-co-growth) {
    min-height: 34rem !important;
  }

  body.qv-company-flagship-page :is(
    .qv-co-timeline__stage,
    .qv-co-founder__visual,
    .qv-co-roots figure,
    .qv-co-future__visual
  ),
  body.qv-evolution-page :is(.qv-evo-visual__frame, .qv-evo-answer__machine) {
    min-height: 23rem !important;
  }
}

@media (max-width: 26.875rem) {
  body.qv-site:not(.home) {
    --qv-internal-h1: 2.75rem;
    --qv-internal-h2: 2.15rem;
  }
}

@media (max-width: 24.375rem) {
  body.qv-site:not(.home) {
    --qv-internal-h1: 2.55rem;
    --qv-internal-h2: 2rem;
  }
}
