/* H&C preview v9: true reference price card and feathered hero seam. */

/* The heading belongs visually to the calculator, not to the promotion above. */
@media(min-width:751px){
  html body .dbrh-hero .hc-hero-calculator-note {
    position:relative!important;
    z-index:4!important;
    transform:translateY(43px)!important;
  }
}
@media(max-width:750px){
  html body .dbrh-hero .hc-hero-calculator-note{
    transform:translateY(9px)!important;
    position:relative!important;
    z-index:4!important;
  }
}
/* Let the feathering spill across the section boundary, not stop at a clipped edge. */
html body .dbrh-hero {overflow:visible!important;}
html body .dbrh-hero .dbrh-hero__media {overflow:hidden!important;}
html body .dbrh-hero::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  z-index:1!important;
  left:0!important;right:0!important;
  bottom:-72px!important;
  height:205px!important;
  pointer-events:none!important;
  background:
    linear-gradient(180deg,
      rgba(234,243,248,0) 0%,
      rgba(234,243,248,.40) 21%,
      rgba(234,243,248,.91) 51%,
      rgba(234,243,248,.64) 79%,
      rgba(234,243,248,0) 100%)!important;
  filter:blur(19px)!important;
}
html body .dbrpf.hc-ref-calculator {
  background:linear-gradient(180deg,#eaf3f8 0%,#eaf3f8 5%,#e4f0f7 12%,#f0f7fb 29%,#f8fbfd 50%,#f4f9fc 100%)!important;
}

/* The collapsed card must replicate the reference screen IN FULL,
   including the green header, main total, 2x2 facts and expanded breakdown.
   Only the four benefits and house photo vanish. */
@media(min-width:751px){
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card {
    padding:0!important;
    border:1px solid #a4c8b2!important;
    border-radius:7px!important;
    background:#e8f5ed!important;
    background-image:none!important;
    box-shadow:0 7px 23px rgba(18,66,72,.07)!important;
    animation:none!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card > .dbrpf__price-card-head {
    display:block!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card > .dbrpf__selection-summary {
    display:grid!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card > .dbrpf__price-details-toggle {
    display:flex!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card > .dbrpf__price-details:not([hidden]) {
    display:block!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card > .dbrpf__price-details[hidden] {
    display:none!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card > .hc-ref-price-footer,
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-card > .hc-ref-price-photo {
    display:none!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-main {
    display:block!important;
    margin:0 15px!important;
    padding:10px 1px 13px!important;
    border-top:1px solid #d8e9dc!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-main > span {
    display:block!important;
  }
  html body .dbrpf.hc-ref-calculator .dbrpf__price-column.hc-price-condensed .dbrpf__price-main > strong {
    font:800 clamp(29px,2.8vw,40px)/1.13 Inter,Arial,sans-serif!important;
    color:#19734c!important;
    letter-spacing:-.04em!important;
  }
}
/* Keep original compact green treatment with readable 2-column data as per screenshot. */
html body .dbrpf.hc-ref-calculator .dbrpf__price-card-head {
  padding:12px 15px 10px!important;
  border-bottom:1px solid #c6dfd0!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__price-card {
  background:#e9f5ed!important;
  background-image:none!important;
  border:1px solid #b5d5c1!important;
  border-radius:7px!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__selection-summary {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  column-gap:12px!important;
  margin:0 15px!important;
  padding:0 0 5px!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__selection-summary>div {
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  padding:10px 0 7px!important;
  border-bottom:0!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__selection-summary strong {
  display:block!important;
  text-align:left!important;
  width:auto!important;
  max-width:100%!important;
  overflow-wrap:break-word!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__price-details-toggle {
  border-top:1px solid #c9e0d2!important;
  width:calc(100% - 30px)!important;
  margin:8px 15px 0!important;
  padding:8px 0!important;
  justify-content:flex-start!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__breakdown {
  padding:8px 0 5px!important;
}
html body .dbrpf.hc-ref-calculator .dbrpf__price-column .dbrpf__price-card{
  overflow:visible!important;
  overflow-y:visible!important;
  max-height:none!important;
}

/* Final spacing: headline visually anchors the form with only a narrow gap. */
@media(min-width:751px) {
  html body .dbrh-hero .hc-hero-calculator-note {transform:translateY(59px)!important;}
}
@media(max-width:750px) {
  html body .dbrh-hero .hc-hero-calculator-note {transform:translateY(16px)!important;}
}
/* Match the solid hero's end and the calculator's first pixels exactly; feather the side haze in front of the join. */
html body .dbrpf.hc-ref-calculator {
  background:linear-gradient(180deg,#eaf3f8 0%,#eaf3f8 10%,#e5f1f8 17%,#f0f7fb 32%,#f8fbfd 55%,#f4f9fc 100%)!important;
}
html body .dbrpf.hc-ref-calculator::before {
  top:-105px!important;
  bottom:0!important;
  height:auto!important;
  pointer-events:none!important;
  background:
    radial-gradient(ellipse 58% 175px at 50% 95px,rgba(234,243,248,.53),rgba(234,243,248,0) 100%),
    linear-gradient(180deg,rgba(234,243,248,0) 0%,rgba(234,243,248,.52) 105px,rgba(234,243,248,0) 250px)!important;
}
/* v10: prevent the calculator's decorative ::before overlay from painting across the hero heading. */
html body .dbrpf.hc-ref-calculator::before {
  content:none!important;
  display:none!important;
}
/* Keep the title anchored directly to the calculator, with full contrast. */
@media(min-width:751px){
  html body .dbrh-hero .hc-hero-calculator-note {
    transform:translateY(71px)!important;
  }
}
@media(max-width:750px){
  html body .dbrh-hero .hc-hero-calculator-note {
    transform:translateY(28px)!important;
  }
}
