/* CP393: full-width outer section canvases on every public page. */
html body.pg-visual-system .page main#main > section,
html body.pg-visual-system.pg-page-home .page.home-shell main#main > section,
html body.pg-visual-system .page.subpage-shell main#main > section {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* CP392: enlarge the desktop home Hero to use its available canvas. */
@media (min-width: 1024px) {
  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section > .pg-home-hero-inner {
    width: 100% !important;
    max-width: none !important;
    min-height: clamp(520px, 34vw, 660px) !important;
    height: auto !important;
    padding: clamp(18px, 1.4vw, 26px) clamp(18px, 1.8vw, 34px) !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: clamp(14px, 1.4vw, 22px) !important;
    align-items: center !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-copy {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-copy h1 {
    font-size: clamp(48px, 4.3vw, 82px) !important;
    line-height: .99 !important;
    letter-spacing: -.04em !important;
    margin: 0 0 16px !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-copy > p:not(.pgd-hero-eyebrow) {
    max-width: 100% !important;
    font-size: clamp(18px, 1.3vw, 23px) !important;
    line-height: 1.5 !important;
    margin: 0 0 20px !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-visual {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 900 / 580 !important;
    max-width: none !important;
    align-self: center !important;
    overflow: hidden !important;
    position: relative !important;
    isolation: isolate !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-visual picture,
  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-visual img {
    width: 100% !important;
    height: 100% !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-visual img {
    object-fit: contain !important;
    object-position: center !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-cms-quote {
    min-height: 48px !important;
    margin-bottom: 8px !important;
    font-size: 16px !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-search {
    min-height: 48px !important;
    margin-bottom: 10px !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-search input,
  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-search button {
    min-height: 38px !important;
    font-size: 13px !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-cms-benefits {
    margin-top: 12px !important;
    gap: 10px !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-cms-benefits > span {
    min-height: 40px !important;
    padding: 8px !important;
    font-size: 12px !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-flow {
    margin-top: 8px !important;
    gap: 10px !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-flow span {
    font-size: 10px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-flow b {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
  }

  /* Hide only the stray legacy "IKA" mark baked into the lower-left of the desktop artwork. */
  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-visual::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: 3 !important;
    left: 6.1% !important;
    bottom: 10.5% !important;
    width: 4.2% !important;
    height: 4.5% !important;
    pointer-events: none !important;
    background: radial-gradient(
      ellipse at center,
      rgba(2, 8, 17, 1) 0%,
      rgba(2, 8, 17, 1) 52%,
      rgba(2, 8, 17, .92) 70%,
      rgba(2, 8, 17, .5) 88%,
      transparent 100%
    ) !important;
    filter: blur(1px) !important;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section > .pg-home-hero-inner {
    min-height: clamp(520px, 44vw, 580px) !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-copy h1 {
    font-size: clamp(44px, 4.25vw, 52px) !important;
  }

  html body.pg-fx-visual-repair.pg-page-home .pgd-hero-section .pgd-hero-copy > p:not(.pgd-hero-eyebrow) {
    font-size: 16.5px !important;
  }
}
