/* QA fixes shared by every page (loaded after all page + chrome sheets).
   Found by tools/qa.mjs; each rule fixes a bug that exists in the original static site too. */

/* 1. Header / footer / cookie banner must not inherit the page's body line-height.
      Static pages set body line-height to 1.5, 1.6 or 1.65, so the footer was 1133px / 1170px / 1189px tall
      depending on which page you were on. */
.site-header,
.cf-footer,
.clms-cookie-banner { line-height: 1.5; }

/* 2. Header container: it was a shrink-to-fit grid centred by auto margins, so on screens wider than ~1440px its width
      followed the content - and the active nav link is bold, so logo/nav/CTA jumped 3-20px between pages.
      Fixed width, same 1440px container the footer uses. */
.site-header .header__inner { width: 100%; max-width: 1440px; }

/* 3. Footer brand paragraph measure: `34ch` resolved to a different pixel width on the terms page (322px vs 284px). */
.cf-footer .cf-brand p { max-width: 283.64px; }

/* 4. Header logo box: its width followed per-page CSS (61px-96px, the image itself 61px or 65px), which moved the whole
      nav 8-35px sideways between pages at desktop widths. Pin to the logo image size used by the majority of pages. */
@media (min-width: 1025px) {
  .site-header .header__logo { width: 65.22px; min-width: 65.22px; }
  .site-header .header__logo-mark { width: 65.22px; min-width: 65.22px; }
}

/* 5. Footer base font-size: partners / RBAC / DocuSign pages set body to 14px / 13.6px, which shrank every footer line
      (footer 3-4px shorter than on the other pages). Pin to the 16px the other pages use. */
.cf-footer,
.cf-footer footer { font-size: 16px; }

/* 6. Hero sections are plain white on every page: drop the per-page glow blobs, tinted fills and gradients.
      (Dark navy heroes with white text, and photo cards, are separate designs and are left as they are.) */
.hero,
.clms-cs-hero,
.clms360-hero { background: #fff !important; background-image: none !important; }
.hero::before,
.hero::after,
.clms-cs-hero::before,
.clms-cs-hero::after,
.clms360-hero::before,
.clms360-hero::after { background: none !important; background-image: none !important; }

/* 7. Split heroes (text + image): one grid for every page at desktop width.
      Pages had their own container (1120 / 1160), column ratios (442-475px text column), gaps (34-56px), and some
      right-hand images (min-content width) ran out of the container - up to x=1285 on a 1280px screen.
      Standard = the 1120px container used by most pages, 1.22fr / 1fr columns, 48px gap, vertically centred.
      The demo page (form card, top-aligned) and centred single-column heroes are not touched. */
@media (min-width: 1025px) {
  .hero:not(:has(.form-card)) .wrap:is(.hero-grid, .hero-inner) {
    max-width: 1120px !important;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr) !important;
    column-gap: 48px !important;
    align-items: center !important;
  }
  .hero:not(:has(.form-card)) .wrap:is(.hero-grid, .hero-inner) > * { min-width: 0; max-width: 100%; }
  .hero:not(:has(.form-card)) .wrap:is(.hero-grid, .hero-inner) > .hero-product-wrap { width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  .hero:not(:has(.form-card)) .wrap:is(.hero-grid, .hero-inner) > * img { max-width: 100%; height: auto; }
}

/* Footer social icons: some page stylesheets (generated blog posts) are missing the svg sizing rule, so the icons
   rendered black and oversized on the dark footer. Keep this rule here so every page gets it. */
.cf-footer .cf-social a svg { width: 18px; height: 18px; fill: currentColor; display: block; }
