/* © Haut Forvalting AS (Org.nr. 931 603 760) — Altibedrift.
 * Konfidensiell arkitektur/arbeidsdokument. Uautorisert kopiering/distribusjon forbudt.
 * Three-route presentation repair. #main deliberately outranks legacy !important
 * rules; no global overflow clipping or changes to calculator state/logic. */
body[data-ws-layout-repair] #main,
body[data-ws-layout-repair] #main * { box-sizing: border-box; min-width: 0; }
body[data-ws-layout-repair] #main :is(h1,h2,h3,p,a,legend,label,span,strong,small) {
  overflow-wrap: anywhere;
}
body[data-ws-layout-repair] #main .ws-mention-heading {
  padding: clamp(1.25rem,4vw,3rem);
  border: 1px solid #655a78;
  border-radius: 1.5rem;
}
body[data-ws-layout-repair] #main .ws-mention-heading h1 {
  max-width: 24ch;
  font-size: clamp(1.9rem,3.8vw,3.5rem) !important;
  line-height: 1.13 !important;
  letter-spacing: -.035em !important;
}
body[data-ws-layout-repair] #main .ws-mention-heading :is(h1,p,time,span) {
  color: #fffef8 !important;
}
body[data-ws-layout-repair] #main .ws-mention-lede {font-size: clamp(1rem,1.6vw,1.2rem);line-height:1.7;}
body[data-ws-layout-repair] #main .ws-mention-proof :is(h2,li) {color:#eef5ef !important;}
body[data-ws-layout-repair] #main .ws-mention-proof .ws-mention-eyebrow {color:#b9e6cb !important;}
body[data-ws-layout-repair] #main .ws-mention-decision li {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-content: start;
  gap: .75rem;
}
body[data-ws-layout-repair] #main .ws-mention-decision li > span {
  width: 2rem; height: 2rem; display: grid; place-items:center;
  padding:0; background:#dfeee5; border-radius:50%; white-space:nowrap;
}
body[data-ws-layout-repair] #main .ws-mention-source {
  padding:clamp(1.25rem,3vw,2rem);
  border:1px solid #c4d3ca;
}
body[data-ws-layout-repair] #main .ws-mention-conversion {
  grid-template-columns:minmax(0,1fr);
  gap:1.25rem;
}
body[data-ws-layout-repair] #main .ws-mention-actions {
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body[data-ws-layout-repair] #main :is(.ws-mention-button,.ws-mention-secondary) {
  width:100%; white-space:normal; min-height:3.25rem;
}
body[data-ws-layout-repair] #main .ws-mention-button {color:#fff !important;background:#123d35 !important;}
body[data-ws-layout-repair] #main .ws-mention-secondary {color:#16392f !important;background:#f7fbf8 !important;}
body[data-ws-layout-repair] #main .ws-mention-photo img {max-width:100%;height:auto;}

/* Calculator: one bounded column; light answer surfaces own dark text. */
body[data-ws-layout-repair][data-webcheck-focus] #main {
  padding-top:1.5rem;
}
body[data-ws-layout-repair] #main .visibility-answer-v1 {
  width:min(calc(100% - 2rem),1080px); margin:0 auto 1.5rem;
}
body[data-ws-layout-repair] #main form[data-chooser] {
  width:100% !important; padding:clamp(1rem,3vw,2rem) !important;
  border:1px solid #b8cfc0 !important; border-radius:1.5rem !important;
  background:#eef4ee !important; box-shadow:0 12px 36px #12392f12 !important;
  overflow:visible;
}
body[data-ws-layout-repair] #main form[data-chooser]::before,
body[data-ws-layout-repair] #main form[data-chooser]::after,
body[data-ws-layout-repair] #main .choice-card::after {content:none !important;animation:none !important;}
body[data-ws-layout-repair] #main form[data-chooser] :is(.chooser-intro,[data-chooser-questions]) {
  width:100% !important; max-width:none !important; margin:0 !important;
  padding:clamp(1rem,3vw,2rem) !important;
  background:#dff0e5 !important; border:1px solid #aacbb6 !important;
  box-shadow:none !important;
  --wx-text:#16392f; --wx-copy:#3e594f; --ui-fg:#16392f; --ui-body:#3e594f;
}
body[data-ws-layout-repair] #main .chooser-intro > h2 {
  color:#16392f !important; max-width:24ch !important;
  margin:.5rem auto !important; font-size:clamp(1.8rem,3.5vw,2.8rem) !important;
  line-height:1.15 !important;
}
body[data-ws-layout-repair] #main .chooser-intro > p {color:#3e594f !important;}
body[data-ws-layout-repair] #main .chooser-intro > .chooser-intro__trust {
  width:auto !important; max-width:100%; white-space:normal; margin:.75rem auto !important;
}
body[data-ws-layout-repair] #main [data-chooser-start] {
  width:min(100%,28rem) !important; min-width:0 !important;
  white-space:normal; padding:1rem !important;
}
body[data-ws-layout-repair] #main .chooser-progress {margin-bottom:1.5rem !important;}
body[data-ws-layout-repair] #main .chooser-progress__dot {background:#abc5b4 !important;}
body[data-ws-layout-repair] #main .chooser-progress__dot:is([data-state="current"],[data-state="done"]) {background:#245b43 !important;}
body[data-ws-layout-repair] #main .chooser-step {min-inline-size:0; width:100%;}
body[data-ws-layout-repair] #main .chooser-step legend {
  width:100%; max-width:38ch; color:#16392f !important;
  font-size:clamp(1.35rem,2.5vw,2rem) !important; line-height:1.3 !important;
  margin:0 auto 1.5rem !important;
}
body[data-ws-layout-repair] #main .chooser-step__progress {color:#285b46 !important;}
body[data-ws-layout-repair] #main .choice-grid {grid-template-columns:minmax(0,1fr) !important;gap:.75rem !important;}
body[data-ws-layout-repair] #main .choice-card {
  grid-template-columns:1.25rem minmax(0,1fr) !important;
  gap:.4rem .8rem !important; align-items:start;
  min-height:0 !important; height:auto !important; padding:1.15rem !important;
  background:#fffefb !important; color:#16392f !important;
  border:2px solid #b5cab9 !important; transform:none !important;
}
body[data-ws-layout-repair] #main .choice-card input {
  position:static !important; grid-column:1;grid-row:1 / 3;
  margin:.2rem 0 0 !important; width:1.15rem !important;height:1.15rem !important;
  appearance:auto !important; accent-color:#245b43;
}
body[data-ws-layout-repair] #main :is(.choice-card__label,.choice-card__copy) {
  width:auto !important; max-width:none !important; padding:0 !important;
  margin:0 !important; grid-column:2; text-align:left; white-space:normal;
}
body[data-ws-layout-repair] #main .choice-card__label {color:#16392f !important;font-size:1rem !important;line-height:1.45 !important;}
body[data-ws-layout-repair] #main .choice-card__copy {color:#3e594f !important;font-size:.95rem !important;line-height:1.6 !important;}
body[data-ws-layout-repair] #main .choice-card:has(input:checked) {background:#e8f9d5 !important;border-color:#245b43 !important;box-shadow:inset 4px 0 #245b43 !important;}
body[data-ws-layout-repair] #main .choice-card:focus-within {outline:3px solid #245b43;outline-offset:3px;}
body[data-ws-layout-repair] #main .chooser-nav {background:transparent !important;padding:0 !important;}
body[data-ws-layout-repair] #main .chooser-nav .button {white-space:normal;max-width:100%;}
body[data-ws-layout-repair] #main .chooser-confirmation {color:#16392f !important;background:#e8f9d5 !important;}
body[data-ws-layout-repair] #main form[data-chooser] .status-panel {color:#3e594f !important;}
body[data-ws-layout-repair] #main .chooser-guide__steps li > span {flex-shrink:0;}
body[data-ws-layout-repair] #main .chooser-guide__steps li > b {color:#fff !important;}
body[data-ws-layout-repair] #main .chooser-guide__steps li > small {color:#e2eee6 !important;}
/* Keep hidden semantics stronger than every visual display rule above. */
body[data-ws-layout-repair] #main form[data-chooser] [hidden] {display:none !important;}

/* Result: full-width rows instead of a nested two-column grid that squeezes the offer. */
body[data-ws-layout-repair] #main .result-v3 {width:100% !important;grid-template-columns:minmax(0,1fr);}
body[data-ws-layout-repair] #main .result-v3-hero {width:100%;padding:clamp(1.5rem,4vw,3rem);background:#123d35 !important;border-radius:1.5rem;}
body[data-ws-layout-repair] #main .result-v3-hero :is(h1,p) {color:#fffef8 !important;}
body[data-ws-layout-repair] #main :is(.result-v3__summary,.result-v3__contact) {
  width:100% !important; max-width:none !important; margin:0;
  min-height:0; color:#16392f !important; background:#fffdf7 !important;
  --wx-text:#16392f;--wx-copy:#3e594f;--ui-fg:#16392f;--ui-body:#3e594f;
}
body[data-ws-layout-repair] #main :is(.result-v3__summary,.result-v3__contact) :is(h2,label,strong) {color:#16392f !important;}
body[data-ws-layout-repair] #main :is(.result-v3__summary,.result-v3__contact) :is(p,small) {color:#3e594f !important;}
body[data-ws-layout-repair] #main .result-v3-form :is(input,textarea) {
  color:#16392f !important;background:#fff !important;border:1px solid #739782;
  font-size:1rem;max-width:100%;
}
body[data-ws-layout-repair] #main .result-v3-form :is(input,textarea)::placeholder {color:#586b60;opacity:1;}
body[data-ws-layout-repair] #main .result-v3-form__consent {color:#3e594f !important;}
body[data-ws-layout-repair] #main .result-v3-form__consent input {width:1.1rem;min-width:1.1rem;}
body[data-ws-layout-repair] #main .result-v3-form .haut-form-consent {background:#eef4ee !important;border-color:#aacbb6 !important;}
body[data-ws-layout-repair] #main .result-v3-form .haut-form-consent :is(span,a) {color:#16392f !important;}
body[data-ws-layout-repair] #main .result-v3-form input[type="checkbox"] {
  width:1.1rem !important; height:1.1rem !important; min-height:1.1rem;
  appearance:auto !important; accent-color:#245b43;
}
body[data-ws-layout-repair] #main .result-v4__price-card {min-width:0;}
body[data-ws-layout-repair] #main .result-v3__offer {grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#123d35 !important;}
body[data-ws-layout-repair] #main .result-v3__offer :is(h2,p,strong,li,small) {color:#eef9f1 !important;}
body[data-ws-layout-repair] #main .result-v4__decision-actions .button--secondary {color:#eef9f1 !important;}
body[data-ws-layout-repair] #main :is(.result-v4__decision-actions,.result-v3-form) .button {white-space:normal;max-width:100%;text-align:center;}
@media(max-width:760px) {
  body[data-ws-layout-repair] #main .ws-mention-decision li {grid-template-columns:2rem minmax(0,1fr);}
  body[data-ws-layout-repair] #main :is(.ws-mention-actions,.result-v3__offer) {grid-template-columns:minmax(0,1fr);}
}
@media(max-width:620px) {
  body[data-ws-layout-repair][data-webcheck-focus] .site-header.ws-v4-focus-header {
    grid-template-columns:minmax(0,1fr) auto; gap:.5rem;
  }
  body[data-ws-layout-repair] #main .chooser-guide .chooser-guide__steps {gap:.35rem !important;}
  body[data-ws-layout-repair] #main .chooser-guide .chooser-guide__steps li {
    grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;padding:.65rem .3rem !important;
  }
  body[data-ws-layout-repair] #main .chooser-guide__steps li > span {grid-row:auto;}
  body[data-ws-layout-repair] #main .result-v3-form__row {grid-template-columns:minmax(0,1fr);}
}

/* Owner screenshot repair: explicit paired CTA colors and balanced offer heading. */
html body[data-ws-layout-repair] #main .result-v3__offer .result-v4__decision-actions .button--secondary {
  background:#f7faf5 !important; color:#123d35 !important; border:1px solid #a7c3b4 !important;
}
html body[data-ws-layout-repair] #main .result-v3__offer #result-v4-offer-title {
  font-size:clamp(2rem,3.2vw,3.25rem) !important; line-height:1.12 !important; max-width:20ch; text-wrap:balance;
}
html body[data-ws-layout-repair] #main .result-v4__decision-actions .button:focus-visible {
  outline:3px solid #b4f46d; outline-offset:4px;
}
