/* iQQuip final QA corrections — 2026-08-26
   Responsive containment, multilingual hero consistency and accessibility. */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

:root {
  --muted: #52697d;
}

/* Keep translated inertia labels inside the homepage grid. */
.mechanics,
.mechanics > *,
.inertia-grid,
.inertia-grid > article {
  min-width: 0;
}

.inertia-grid h3,
.inertia-grid p {
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (min-width: 1001px) and (max-width: 1430px) {
  .mechanics {
    grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
    gap: 4vw;
  }

  .inertia-grid article {
    padding-inline: clamp(14px, 1.35vw, 20px);
  }
}

/* Give long German, Dutch and Polish footer labels sufficient width. */
footer > *,
.footer-links,
.footer-links > div,
.footer-links a {
  min-width: 0;
}

.footer-links a {
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (min-width: 1241px) {
  footer {
    grid-template-columns: minmax(160px, .65fr) minmax(250px, .9fr) minmax(540px, 1.8fr);
    gap: clamp(24px, 3vw, 45px);
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 1.8vw, 28px);
  }
}

@media (min-width: 1001px) and (max-width: 1240px) {
  footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-links,
  .footer-bottom {
    grid-column: 1 / -1;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The approved legal icons use one shared 520 px desktop canvas. */
@media (min-width: 701px) {
  .support-hero.terms-of-use-hero,
  .support-hero.sales-terms-hero,
  .support-hero.legal-notice-hero,
  .support-hero.privacy-hero,
  .support-hero.legal-guarantee-hero {
    height: 520px;
    min-height: 520px;
  }

  .support-hero.terms-of-use-hero > div,
  .support-hero.sales-terms-hero > div,
  .support-hero.legal-notice-hero > div,
  .support-hero.privacy-hero > div,
  .support-hero.legal-guarantee-hero > div {
    min-height: 0;
  }
}

/* Match each translated desktop hero to the tallest safe language variant. */
@media (min-width: 1001px) {
  .about-hero { min-height: 758px; }
  .research-hero { min-height: 824px; }
  .professional-hero { min-height: 781px; }
  .science-hero { min-height: 704px; }
  .exercises-hero { min-height: 1221px; }
  .documentation-hero { min-height: 776px; }
  .record-hero { min-height: 781px; }
  .support-hero:not(.terms-of-use-hero):not(.sales-terms-hero):not(.legal-notice-hero):not(.privacy-hero):not(.legal-guarantee-hero) {
    min-height: 625px;
  }

  /* Keep translated exercise copy within the approved 838 px English image canvas. */
  html:not([lang="en"]) .subject-hero-copy {
    padding-top: 45px;
    padding-bottom: 55px;
  }

  html:not([lang="en"]) .subject-hero h1 {
    font-size: clamp(48px, 5vw, 68px);
    margin-bottom: 24px;
  }

  html:not([lang="en"]) .subject-hero-copy > p:not(.eyebrow) {
    font-size: 18px;
    line-height: 1.56;
  }

  html:not([lang="en"]) .subject-system-note {
    margin-top: 24px;
    padding: 18px 20px;
  }
}

/* Accessible accent colours on dark panels. */
.mechanics .inertia-grid span,
.package-grid span,
.feature-list b,
.research-questions span,
.about-principles span,
.variable-grid b,
.training-phases b,
.dark-feature .section-number,
.coupling-feature .section-number,
.inertia-page .section-number,
.closing-cta .section-number {
  color: #ff7a82;
}

.evidence-note {
  color: #52697d;
}

footer p,
footer .footer-social-link,
footer .footer-social-link span,
.faq-product-card span,
.faq-hero-answer-copy-v2 span {
  color: #52697d;
}

/* Prevent translated auxiliary copy from dropping below WCAG AA contrast. */
.legal-page .legal-updated,
.exercise-body-region-note,
.faq-index,
.faq-index p {
  color: #52697d;
}
