/*
 * Approved 2026-08-14 morning fixes.
 * Loaded last by _worker.js so older page styles cannot roll these values back.
 */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* Home: exact line-count approvals. */
#service-title > .mobile-service-line {
  display: block;
  white-space: nowrap;
  word-break: keep-all;
}

#media-title {
  display: block;
  width: max-content;
  max-width: none;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  font-size: clamp(45px, 4.35vw, 66px);
  letter-spacing: -.055em;
}

/* Shared brand lockups: keep the wordmark and Corporate site separated. */
.footer-brand,
.gx-footer-brand,
.portal-brand,
.site-footer .footer-brand,
.consulting-footer > a {
  min-width: 0;
  column-gap: 30px !important;
}

.footer-brand > span,
.gx-footer-brand > span,
.portal-brand > span,
.consulting-footer > a > span {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Company-information pages: one canonical hero-video geometry. */
body[data-page] .corporate-video-hero,
body[data-page] .corporate-video-hero .page-hero-video {
  max-width: 100%;
}

body[data-page] .corporate-video-hero .page-hero-video {
  transform: translate3d(0, 18px, 0) scale(1.12) !important;
  transform-origin: center center !important;
}

body[data-page] .company-media-layout,
body[data-page] .company-media-card,
body[data-page] .company-media-card * {
  min-width: 0;
  max-width: 100%;
}

body[data-page="company"] .company-media-card-title {
  white-space: normal;
}

/* Forms: approved centered controls. */
.privacy-check {
  justify-content: center !important;
  text-align: center !important;
}

.submit-button,
.form-submit {
  position: relative !important;
  justify-content: center !important;
  text-align: center !important;
}

.submit-button > i,
.form-submit > :last-child {
  position: absolute !important;
  right: 25px !important;
}

/* Factoring/info pages: no grid child may force the page beyond the viewport. */
body[data-page="invoice-factoring"] main,
body[data-page="invoice-factoring"] main section,
body[data-page="invoice-factoring"] main article,
body[data-page="invoice-factoring"] main div {
  min-width: 0;
  max-width: 100%;
}

body[data-page="invoice-factoring"] .reveal {
  transform: translateY(34px);
}

body[data-page="invoice-factoring"] .reveal.is-visible {
  transform: none;
}

/* Consulting philosophy: preserve the approved two explicit lines. */
.philosophy h2 > span,
.consulting-philosophy-title > span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 1240px) {
  body[data-page="company"] .company-media-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  #service-title {
    font-size: clamp(30px, 8.2vw, 38px) !important;
  }

  #media-title {
    font-size: clamp(38px, 12.5vw, 52px) !important;
    letter-spacing: -.05em;
  }

  body[data-page] .corporate-video-hero .page-hero-video {
    transform: translate3d(0, 10px, 0) scale(1.12) !important;
  }

  .career-page .entry-section {
    background-position: 38% center !important;
  }

  .footer-brand,
  .gx-footer-brand,
  .portal-brand,
  .site-footer .footer-brand,
  .consulting-footer > a {
    display: grid !important;
    justify-items: start;
    row-gap: 8px !important;
    column-gap: 0 !important;
    width: 100%;
    max-width: 100%;
  }

  .footer-brand > span,
  .gx-footer-brand > span,
  .portal-brand > span,
  .consulting-footer > a > span {
    padding-left: 0 !important;
    border-left: 0 !important;
  }

  .philosophy h2 > span,
  .consulting-philosophy-title > span {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .company-media-card,
  .company-media-card::before,
  .company-media-card::after,
  .company-media-card * {
    animation: none !important;
  }
}
