/* © Haut Forvalting AS (Org.nr. 931 603 760) — Altibedrift.
 * Websjekk Calculator Conversion V4 geometry hardening.
 * Konfidensiell arkitektur/arbeidsdokument. Uautorisert kopiering/distribusjon forbudt. */

/* The homepage v2 hero is a two-column composition. The gateway owns the right
   column only; it must never try to become a 1120px full-width surface there. */
.home-v2-hero > .ws-home-check-v4 {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  align-self: stretch;
}

.home-v2-hero > .ws-home-check-v4 .ws-home-check-v4__panel {
  min-height: 45rem;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: center;
  gap: 2.25rem;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.home-v2-hero > .ws-home-check-v4 h2 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 4.6vw, 4.65rem);
  line-height: .97;
}

.home-v2-hero > .ws-home-check-v4__action,
.home-v2-hero > .ws-home-check-v4 .ws-home-check-v4__action {
  max-width: 29rem;
}

/* /nettsidesjekk/ is now the actual product moment. The legacy surrounding
   explanation stays in source history, but is intentionally not projected in
   focus mode so the visitor gets one job and one decision at a time. */
body[data-webcheck-focus="calculator"] .webcheck-product-v4 > .wcp-hero,
body[data-webcheck-focus="calculator"] .webcheck-product-v4 > .wcp-after,
body[data-webcheck-focus="calculator"] .webcheck-product-v4 > .wcp-reasons,
body[data-webcheck-focus="calculator"] .webcheck-product-v4 > .wcp-ai-fasttrack,
body[data-webcheck-focus="calculator"] .webcheck-product-v4 > .wcp-final-conversion,
body[data-webcheck-focus="calculator"] .webcheck-product-v4 > .wcp-mobile-sticky {
  display: none !important;
}

body[data-webcheck-focus="calculator"] .webcheck-product-v4 {
  width: 100%;
  margin: 0;
  padding: 0;
}

body[data-webcheck-focus="calculator"] .wcp-calculator.webcheck-calculator {
  width: min(calc(100% - 2rem), 1080px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-webcheck-focus="calculator"] .wcp-calculator__head {
  display: none !important;
}

body[data-webcheck-focus="calculator"] .wcp-calculator__frame.webcheck-calculator__frame {
  width: 100%;
  margin: 0 !important;
}

@media (max-width: 980px) {
  .home-v2-hero > .ws-home-check-v4 .ws-home-check-v4__panel {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  body[data-webcheck-focus="calculator"] .wcp-calculator.webcheck-calculator {
    width: calc(100% - 1rem) !important;
  }
}
