/* Yandex RTB placements — StroyKalk v259 */
.site-ad-v259{
  width:min(1180px,calc(100% - 32px));
  margin:34px auto;
  clear:both;
  position:relative;
  z-index:1;
}
.site-ad-v259--embedded{
  width:100%;
  margin:34px 0;
}
.site-ad-v259__label{
  display:block;
  margin:0 0 8px;
  color:#748279;
  font-size:11px;
  font-weight:700;
  line-height:1;
  letter-spacing:.08em;
  text-align:center;
  text-transform:uppercase;
}
.site-ad-v259__frame{
  width:100%;
  min-width:160px;
  min-height:min(45vh,405px);
  max-height:min(50vh,450px);
  border-radius:18px;
  background:#f7faf8;
  overflow:hidden;
  contain:layout paint;
}
.site-ad-v259.is-loading .site-ad-v259__frame::before{
  content:"";
  display:block;
  width:100%;
  min-height:inherit;
  max-height:inherit;
  height:100%;
  border:1px solid #edf3ef;
  border-radius:inherit;
  background:linear-gradient(90deg,#f7faf8 0%,#fbfdfc 50%,#f7faf8 100%);
}
.site-ad-v259.is-rendered .site-ad-v259__frame{
  min-height:0;
  background:transparent;
}
.site-ad-v259.is-empty{display:none!important;}
.site-ad-v259--after-hero{margin-top:28px;margin-bottom:38px;}
@media(max-width:767px){
  .site-ad-v259{width:calc(100% - 24px);margin-top:28px;margin-bottom:30px;}
  .site-ad-v259--embedded{width:100%;margin:30px 0;}
  .site-ad-v259__frame{min-height:min(45vh,324px);max-height:min(50vh,360px);border-radius:14px;}
  .site-ad-v259__label{margin-bottom:7px;font-size:10px;}
}

/* v260: four-position inventory with mobile overflow protection */
.site-ad-v259--content-mid,
.site-ad-v259--before-related,
.site-ad-v259--after-calculator{
  margin-top:38px;
  margin-bottom:38px;
}
.site-ad-v259__frame,
.site-ad-v259__frame > *{
  max-width:100%;
}
@media(max-width:767px){
  .site-ad-v259{
    max-width:calc(100vw - 20px);
    overflow:hidden;
  }
  .site-ad-v259--content-mid,
  .site-ad-v259--before-related,
  .site-ad-v259--after-calculator{
    margin-top:30px;
    margin-bottom:30px;
  }
}

/* v112 — desktop calculator pushed to the right with adaptive left ad rail */
@media (min-width:1200px){
  html.calc-ad-layout-v112,
  html.calc-ad-layout-v112 body{overflow-x:clip!important;}

  html.calc-ad-layout-v112 .calc-ad-shell-v112{
    box-sizing:border-box;
    width:calc(100% - clamp(12px,1.2vw,22px));
    max-width:1840px;
    margin:28px 0 42px auto;
    padding:0;
    display:grid;
    grid-template-columns:minmax(245px,300px) minmax(0,1fr);
    gap:24px;
    align-items:start;
  }

  html.calc-ad-layout-v112 .calc-ad-main-v112{
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:28px;
    align-content:start;
  }

  html.calc-ad-layout-v112 .calc-ad-primary-v112,
  html.calc-ad-layout-v112 .calc-ad-ledger-carry-v112{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
  }

  html.calc-ad-layout-v112 .calc-ad-rail-v112{
    box-sizing:border-box;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:18px;
    align-content:start;
    min-width:0;
    min-height:0;
    max-height:var(--calc-rail-target-height,1200px);
    overflow:hidden;
    contain:layout paint;
  }

  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259{
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    margin:0;
    padding:8px;
    border:1px solid #e2e9e5;
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 24px rgba(23,42,34,.045);
    overflow:visible;
  }

  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259__label{
    margin:0 0 7px;
    font-size:9px;
    color:#8a968f;
    letter-spacing:.09em;
  }

  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259__frame{
    width:100%;
    min-width:0;
    min-height:240px;
    max-height:none!important;
    border-radius:13px;
    overflow:visible!important;
    contain:layout;
    background:#f7faf8;
  }

  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259.is-rendered .site-ad-v259__frame{
    min-height:0;
    background:transparent;
  }

  html.calc-ad-layout-v112 .site-ad-v259--between-calculator-ledger{
    box-sizing:border-box;
    width:100%;
    max-width:none;
    margin:0!important;
    padding:10px;
    border:1px solid #e2e9e5;
    border-radius:18px;
    background:#fff;
    box-shadow:0 8px 24px rgba(23,42,34,.04);
    overflow:visible;
  }

  html.calc-ad-layout-v112 .site-ad-v259--between-calculator-ledger .site-ad-v259__frame{
    width:100%;
    min-height:180px;
    max-height:380px;
    border-radius:13px;
    overflow:hidden;
    background:#f7faf8;
  }

  html.calc-ad-layout-v112 .site-ad-v259--between-calculator-ledger.is-rendered .site-ad-v259__frame{
    min-height:0;
    background:transparent;
  }
}

/* v436: do not show an empty advertising card while a lazy rail request is
   idle or loading. The detached rail keeps only invisible geometry needed for
   proximity measurement; the creative becomes visible after a real fill. */
@media (min-width:1200px){
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259--left-rail.is-idle .site-ad-v259__label,
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259--left-rail.is-idle .site-ad-v259__frame,
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259--left-rail.is-loading .site-ad-v259__label,
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259--left-rail.is-loading .site-ad-v259__frame{
    visibility:hidden!important;
  }
}


/* v112 — carried material/result ledgers belong to the right work edge */
@media (min-width:1200px){
  html.calc-ad-layout-v112 .calc-ad-main-v112{
    justify-items:stretch;
  }
  html.calc-ad-layout-v112 .calc-ad-ledger-carry-v112{
    justify-self:end!important;
    margin-left:auto!important;
    margin-right:0!important;
    width:100%!important;
    max-width:none!important;
  }
}


/* v113 — dedicated adaptive manual ad immediately below calculator hero */
.site-ad-v259--after-hero{
  width:min(1500px,calc(100% - 40px));
  margin-top:24px;
  margin-bottom:30px;
}
@media(max-width:767px){
  .site-ad-v259--after-hero{
    width:calc(100% - 24px);
    margin-top:20px;
    margin-bottom:26px;
  }
}

/* v125 — Geometry + Wizard Anchor Adaptive Gap Ads */
@media (min-width:1200px){
  .calc-gap-ads-v125{
    box-sizing:border-box;
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:18px;
    align-content:start;
    margin-top:30px;
    padding:0 10px 16px;
    max-height:var(--gap-free-max,none);
    overflow:hidden;
  }
  .calc-gap-ads-v125[hidden],
  .calc-gap-ads-v125:empty,
  .calc-gap-ads-v125.is-gap-measuring-v125{
    display:none!important;
  }
  .calc-gap-sticky-stack-v125{
    min-width:0;
    align-self:start;
    position:sticky;
    top:var(--gap-sticky-top,84px);
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-content:start;
  }
  .calc-gap-sticky-child-v125{
    position:static!important;
    top:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .calc-gap-sticky-stack-v125>.calc-gap-ads-v125{
    padding-left:0;
    padding-right:0;
  }
  .calc-gap-ads-v125 .site-ad-v259--gap{
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    margin:0!important;
    padding:9px;
    border:1px solid #dfe8e2;
    border-radius:18px;
    background:rgba(255,255,255,.94);
    box-shadow:0 8px 24px rgba(23,42,34,.04);
    overflow:hidden;
  }
  .calc-gap-ads-v125 .site-ad-v259--gap[hidden]{display:none!important;}
  .calc-gap-ads-v125 .site-ad-v259--gap .site-ad-v259__label{
    margin:0 0 7px;
    color:#8b9790;
    font-size:9px;
    line-height:1;
    letter-spacing:.1em;
  }
  .calc-gap-ads-v125 .site-ad-v259--gap .site-ad-v259__frame{
    width:100%;
    min-width:0;
    min-height:250px;
    max-height:none!important;
    border-radius:13px;
    background:#f7faf8;
    overflow:hidden;
    contain:layout paint;
  }
  .calc-gap-ads-v125 .site-ad-v259--gap.is-rendered .site-ad-v259__frame{
    min-height:0;
    background:transparent;
  }
  .calc-gap-ads-v125 .site-ad-v259--gap.is-empty{display:none!important;}
}
@media (max-width:1199px){
  .calc-gap-ads-v125{display:none!important;}
  .calc-gap-sticky-stack-v125{position:static!important;top:auto!important;display:contents;}
  .calc-gap-sticky-child-v125{position:static!important;top:auto!important;}
}


/* v125: keep injected gap hosts inside the real empty tail of wizard lanes. */
@media (min-width:1200px){
  :is(.sf-controls,.slp-controls,.pg-controls,.bp-controls,.sp-controls) > .calc-gap-ads-v125{
    margin-top:30px;
    padding-left:18px;
    padding-right:18px;
  }
  :is(.sf-controls,.slp-controls,.pg-controls,.bp-controls,.sp-controls) > .calc-gap-ads-v125:first-child{margin-top:0;}
}

/* v126 — request-efficient loading states.
   Idle slots keep their layout geometry for accurate rail/gap planning but
   remain visually absent until an RTB request is actually eligible. */
.site-ad-v259.is-idle .site-ad-v259__label,
.site-ad-v259.is-idle .site-ad-v259__frame{
  visibility:hidden;
}
@media (min-width:1200px){
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259.is-idle,
  html.calc-ad-layout-v112 .site-ad-v259--between-calculator-ledger.is-idle,
  .calc-gap-ads-v125 .site-ad-v259--gap.is-idle{
    border-color:transparent;
    background:transparent;
    box-shadow:none;
  }
}

/* v127 — profile lane gap filling + visually separated final ledger */
@media (min-width:1200px){
  .calc-gap-lane-v127{
    box-sizing:border-box;
    min-width:0;
    width:100%;
    align-self:start;
    display:flex;
    flex-direction:column;
  }
  .calc-gap-lane-v127 > :first-child{
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .calc-gap-lane-v127--sticky{
    position:sticky;
    top:var(--gap-lane-top,84px);
    align-self:start;
  }
  .calc-gap-lane-v127__sticky-child{
    position:static!important;
    top:auto!important;
  }
  .calc-gap-profile-host-v127{
    flex:0 0 auto;
    margin-top:30px;
    padding-left:0;
    padding-right:0;
  }
  .calc-gap-profile-host-v127[hidden],
  .calc-gap-profile-host-v127.is-gap-measuring-v125{
    display:none!important;
  }

  /* keep border separators on the lane rather than depending on direct grid children */
  .sf-workbench > .calc-gap-lane-v127:first-child,
  .slp-workbench > .calc-gap-lane-v127:first-child,
  .pg-workbench > .calc-gap-lane-v127:first-child,
  .bp-workbench > .calc-gap-lane-v127:first-child,
  .sp-workbench > .calc-gap-lane-v127:first-child,
  .lathpro-workbench > .calc-gap-lane-v127:first-child{
    border-right:1px solid rgba(110,132,119,.14);
  }
  .sf-workbench > .calc-gap-lane-v127:first-child > .sf-controls,
  .slp-workbench > .calc-gap-lane-v127:first-child > .slp-controls,
  .pg-workbench > .calc-gap-lane-v127:first-child > .pg-controls,
  .bp-workbench > .calc-gap-lane-v127:first-child > .bp-controls,
  .sp-workbench > .calc-gap-lane-v127:first-child > .sp-controls,
  .lathpro-workbench > .calc-gap-lane-v127:first-child > .lathpro-controls{
    border-right:0!important;
  }

  .site-ad-v259--ledger-break-v127{
    width:auto!important;
    max-width:none!important;
    margin:32px clamp(14px,2vw,30px)!important;
  }
  .calc-ledger-separated-v127{
    box-sizing:border-box!important;
    margin:0 clamp(14px,2vw,30px) clamp(16px,2vw,30px)!important;
    border:1px solid #dce7e0!important;
    border-radius:24px!important;
    background:#fff!important;
    box-shadow:0 14px 34px rgba(20,42,28,.055)!important;
    overflow:hidden;
  }
  .calc-ad-ledger-carry-v112.calc-ledger-separated-v127{
    width:calc(100% - clamp(28px,4vw,60px))!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

@media (max-width:1199px){
  .calc-gap-lane-v127{display:contents!important;}
  .calc-gap-lane-v127--sticky{position:static!important;top:auto!important;}
  .calc-gap-lane-v127__sticky-child{position:static!important;top:auto!important;}
  .site-ad-v259--ledger-break-v127{margin-top:28px!important;margin-bottom:28px!important;}
  .calc-ledger-separated-v127{
    margin-top:0!important;
    border-radius:20px!important;
  }
}

@media(max-width:767px){
  .site-ad-v259--ledger-break-v127{margin-top:24px!important;margin-bottom:24px!important;}
  .calc-ledger-separated-v127{border-radius:16px!important;}
}


/* v128 — non-stretching progressive desktop ad rail.
   The rail may never create document height beyond the real calculator/result
   column. Lazy cards are materialised progressively by JS and every visible
   card remains fully painted; no clipping is used for the final card. */
@media (min-width:1200px){
  html.calc-ad-layout-v112 .calc-ad-shell-v112{
    align-items:start!important;
  }
  html.calc-ad-layout-v112 .calc-ad-main-v112{
    align-self:start!important;
    min-height:0!important;
  }
  html.calc-ad-layout-v112 .calc-ad-rail-v112{
    align-self:start!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259--left-rail{
    flex:none!important;
    min-height:0!important;
  }
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259--left-rail.is-idle{
    /* An idle slot exists only when it is already close enough to be useful;
       do not add any extra decorative minimum outside its RTB frame. */
    min-height:0!important;
  }
  html.calc-ad-layout-v112 .calc-ad-shell-v112 + .calc-info-disclaimer-section-v263,
  html.calc-ad-layout-v112 + .calc-info-disclaimer-section-v263{
    margin-top:0!important;
  }
}


/* v129 — detached desktop rail.
   The ad rail is absolutely positioned inside the calculator shell and is
   therefore incapable of contributing to grid-row/document height. The main
   calculator/result column is explicitly fixed to grid column 2. */
@media (min-width:1200px){
  html.calc-ad-layout-v112 .calc-ad-shell-v112{
    --calc-rail-width:clamp(245px,16vw,300px);
    position:relative!important;
    grid-template-columns:var(--calc-rail-width) minmax(0,1fr)!important;
    align-items:start!important;
    min-height:0!important;
  }
  html.calc-ad-layout-v112 .calc-ad-main-v112{
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
    min-height:0!important;
    height:auto!important;
  }
  html.calc-ad-layout-v112 .calc-ad-rail-v112{
    position:absolute!important;
    inset:0 auto auto 0!important;
    width:var(--calc-rail-width)!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    overflow:visible!important;
    z-index:2;
    align-self:auto!important;
  }
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259--left-rail.is-rail-pruned-v129:not([data-requested="1"]){
    display:none!important;
  }
  /* No rail child is allowed to manufacture a minimum page footprint. */
  html.calc-ad-layout-v112 .calc-ad-rail-v112,
  html.calc-ad-layout-v112 .calc-ad-rail-v112 > *,
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259__frame{
    flex-shrink:0;
  }
}

@media (max-width:1199px){
  html.calc-ad-layout-v112 .calc-ad-rail-v112{
    position:static!important;
    inset:auto!important;
    width:auto!important;
  }
  html.calc-ad-layout-v112 .calc-ad-main-v112{
    grid-column:auto!important;
    grid-row:auto!important;
  }
}

/* v130 — rail terminal boundary is measured by JS from the last visible
   material/final-ledger row. CSS intentionally adds no clipping. */

/* v131 — structural split between the interactive calculator and the final
   result/ledger area. The ad break is always a sibling of the complete final
   area; it must never sit between result cards or inside a table/estimate. */
.site-ad-v259--ledger-break-v131{
  position:relative!important;
  display:block;
  clear:both;
  width:auto!important;
  max-width:none!important;
  margin-top:30px!important;
  margin-bottom:30px!important;
}
.calc-ledger-separated-v131{
  position:relative;
  min-width:0;
  max-width:100%;
}
.calc-ledger-unit-v131--first{
  margin-top:0!important;
}
/* Reports promoted out of a form keep their native visual language while
   becoming a distinct card after the advertising break. */
form + .site-ad-v259--ledger-break-v131 + .calc-ledger-unit-v131,
.site-ad-v259--ledger-break-v131 + .calc-ledger-unit-v131{
  margin-top:0!important;
}
/* Explicit result containers become a visually independent final block, but
   existing calculator-specific cards/tables keep their own styling. */
[id="calculator"][data-ledger-structure-v131="group"] > .calc-ledger-unit-v131,
[id="calculator"][data-ledger-structure-v131="siblings"] > .calc-ledger-unit-v131{
  isolation:isolate;
}
@media (max-width:1199px){
  .site-ad-v259--ledger-break-v131{
    margin-top:24px!important;
    margin-bottom:24px!important;
  }
}
@media(max-width:767px){
  .site-ad-v259--ledger-break-v131{
    margin-top:20px!important;
    margin-bottom:20px!important;
  }
}


/* v133 — bounded soft extension for a nearly fitting last desktop rail ad.
   The rail remains detached from normal flow. Only JS may raise this minimum
   height, and never by more than the configured 180 px over the real ledger. */
@media (min-width:1200px){
  html.calc-ad-layout-v112 .calc-ad-shell-v112{
    min-height:0!important;
  }
}

/* v135 — stable final rail creative. The state itself is managed in JS;
   these markers intentionally do not animate or transition visibility. */
@media (min-width:1200px){
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259--left-rail.is-rail-tail-locked-v135{
    visibility:visible!important;
  }
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259--left-rail.is-rail-tail-rejected-v135:not([data-requested="1"]){
    display:none!important;
  }
  /* v257: a requested/rendered rail creative is never hidden again by a later
     geometry reconciliation. The footer guard only blocks future IDs. */
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259--left-rail[data-requested="1"]:not(.is-empty),
  html.calc-ad-layout-v112 .calc-ad-rail-v112 .site-ad-v259--left-rail.is-rail-stable-v257:not(.is-empty){
    display:block!important;
    visibility:visible!important;
  }
}

/* v138 — mobile ad density controller.
   Deep mobile positions exist in the DOM only as zero-height anchors until
   real user scroll + proximity (+ engagement for content-depth slots) unlocks
   the request. This avoids blank ad panels and reduces CLS near the viewport. */
@media(max-width:767px){
  .site-ad-v259.mobile-ad-deferred-v138:not(.is-materialized-v138){
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:1px!important;
    min-height:0!important;
    max-height:1px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:visible!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  .site-ad-v259.mobile-ad-deferred-v138:not(.is-materialized-v138)>.site-ad-v259__label,
  .site-ad-v259.mobile-ad-deferred-v138:not(.is-materialized-v138)>.site-ad-v259__frame{
    display:none!important;
  }
  .site-ad-v259--mobile-density-v138.is-materialized-v138{
    width:calc(100% - 24px);
    margin:30px auto;
    opacity:1;
    pointer-events:auto;
  }
  .site-ad-v259--after-ledger-mobile.is-materialized-v138{margin-top:26px;margin-bottom:32px}
}

/* v139 — mobile stage ads. A stage slot lives at the end of its own stage,
   after navigation/actions. It is a 1px anchor until proximity + real scroll
   requests the creative, so switching stages never inserts a blank panel. */
@media(max-width:767px){
  .site-ad-v259--mobile-stage-v139{
    grid-column:1/-1;
    width:100%;
    max-width:100%;
    clear:both;
  }
  .site-ad-v259--mobile-stage-v139.is-materialized-v138{
    width:100%;
    max-width:100%;
    margin:24px 0 6px;
  }
}
@media(min-width:768px){
  .site-ad-v259--mobile-stage-v139{display:none!important}
}

/* v141 — ads owned by individual hip-roof ledger tabs */
.site-ad-v259--hip-ledger-tab-v141{width:100%;max-width:none;margin:0;padding:18px 18px 20px;border-bottom:1px solid #edf3ef;background:#fbfdfb}
.site-ad-v259--hip-ledger-tab-v141 .site-ad-v259__frame{min-height:250px;max-height:380px}
.site-ad-v259--hip-ledger-tab-v141.is-rendered .site-ad-v259__frame{min-height:0}
@media(max-width:767px){
  .site-ad-v259--hip-ledger-tab-v141{width:100%;max-width:none;margin:0;padding:14px 10px 16px}
  .site-ad-v259--hip-ledger-tab-v141 .site-ad-v259__frame{min-height:220px;max-height:340px}
}

/* v248 — centered calculator workspace with a dedicated left-only ad lane.
   The rail remains detached from document flow; the calculator/results are
   centered inside the remaining desktop workspace instead of stretching to
   the viewport edge. */
@media (min-width:1200px){
  html.calc-ad-layout-v112 .calc-ad-shell-v112{
    width:min(calc(100% - 32px),1840px)!important;
    max-width:1840px!important;
    margin:28px auto 42px!important;
    padding:0!important;
    grid-template-columns:var(--calc-rail-width,clamp(245px,16vw,300px)) minmax(0,1fr)!important;
    column-gap:24px!important;
  }
  html.calc-ad-layout-v112 .calc-ad-main-v112{
    width:100%!important;
    max-width:1480px!important;
    min-width:0!important;
    justify-self:center!important;
    margin:0 auto!important;
  }
  html.calc-ad-layout-v112 .calc-ad-primary-v112,
  html.calc-ad-layout-v112 .calc-ad-ledger-carry-v112,
  html.calc-ad-layout-v112 .site-ad-v259--between-calculator-ledger{
    width:100%!important;
    max-width:1480px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  html.calc-ad-layout-v112 .calc-ad-rail-v112{
    left:0!important;
    right:auto!important;
    margin:0!important;
  }
}

/* v249 — align post-calculator content with the calculator main column.
   On desktop, informational sections that come after the ad-shell should
   begin at the same left boundary as the calculator itself, leaving the
   detached left rail free for manual ads. */
@media (min-width:1200px){
  html.calc-ad-layout-v112{
    --calc-rail-gap-v249:24px;
    --calc-shell-gutter-v249:clamp(12px,1.2vw,22px);
    --calc-main-max-v249:calc(1840px - var(--calc-rail-width, clamp(245px,16vw,300px)) - var(--calc-rail-gap-v249));
    --calc-main-fluid-v249:calc(100% - var(--calc-rail-width, clamp(245px,16vw,300px)) - var(--calc-rail-gap-v249) - var(--calc-shell-gutter-v249));
  }

  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > .wrap,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class$='-wrap'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > .wrap,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > [class$='-wrap'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ .calc-info-disclaimer-section-v263,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ .site-ad-v259{
    width:min(var(--calc-main-fluid-v249), var(--calc-main-max-v249))!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:0!important;
  }

  /* Preserve full-width backgrounds but keep the actual content aligned to the
     calculator column. */
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > .wrap,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class$='-wrap'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > .wrap,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > [class$='-wrap']{
    box-sizing:border-box;
  }
}

/* v252 — unify post-calculator content sections to the cable-page visual standard */
@media (min-width: 1200px){
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div{
    position:relative;
  }

  /* Main post-calculator content cards */
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > .wrap,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class$='-wrap'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > .wrap,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > [class$='-wrap']{
    box-sizing:border-box !important;
    padding:28px 20px 30px !important;
    border:1px solid #dce8e6 !important;
    border-radius:28px !important;
    background:linear-gradient(180deg,#ffffff 0%,#fbfdfc 100%) !important;
    box-shadow:0 10px 30px rgba(24,50,56,.04) !important;
    overflow:hidden;
  }

  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > .wrap > [class$='-section-head'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class$='-wrap'] > [class$='-section-head'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > .wrap > [class$='-section-head'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > [class$='-wrap'] > [class$='-section-head']{
    max-width:none !important;
    width:100% !important;
    margin:0 0 24px 0 !important;
    padding:0 !important;
    border:none !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > .wrap > [class$='-section-head'] [class$='-eyebrow'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class$='-wrap'] > [class$='-section-head'] [class$='-eyebrow'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > .wrap > [class$='-section-head'] [class$='-eyebrow'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > [class$='-wrap'] > [class$='-section-head'] [class$='-eyebrow']{
    display:block !important;
    margin:0 0 10px 0 !important;
    font-size:12px !important;
    font-weight:900 !important;
    letter-spacing:.16em !important;
    text-transform:uppercase !important;
    color:#0c7a73 !important;
  }

  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > .wrap > [class$='-section-head'] h2,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class$='-wrap'] > [class$='-section-head'] h2,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > .wrap > [class$='-section-head'] h2,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > [class$='-wrap'] > [class$='-section-head'] h2{
    margin:0 0 12px 0 !important;
    max-width:1100px !important;
    font-size:clamp(32px,2.3vw,52px) !important;
    line-height:1.08 !important;
    letter-spacing:-.03em !important;
    color:#102532 !important;
  }

  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > .wrap > [class$='-section-head'] p,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class$='-wrap'] > [class$='-section-head'] p,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > .wrap > [class$='-section-head'] p,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > [class$='-wrap'] > [class$='-section-head'] p{
    max-width:1120px !important;
    margin:0 !important;
    font-size:18px !important;
    line-height:1.7 !important;
    color:#546a70 !important;
  }

  /* card grids/articles inside public sections */
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section [class*='-grid'] > article,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div [class*='-grid'] > article{
    border:1px solid #dce8e6 !important;
    border-radius:22px !important;
    background:#fff !important;
    box-shadow:none !important;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section [class*='-grid'] > article:hover,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div [class*='-grid'] > article:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 26px rgba(20,44,51,.06) !important;
    border-color:#cfe1de !important;
  }
}

@media (max-width: 1199px){
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > .wrap,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class$='-wrap'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > .wrap,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > [class$='-wrap']{
    box-sizing:border-box !important;
    padding:20px 16px 22px !important;
    border:1px solid #dce8e6 !important;
    border-radius:22px !important;
    background:linear-gradient(180deg,#ffffff 0%,#fbfdfc 100%) !important;
  }
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > .wrap > [class$='-section-head'] h2,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class$='-wrap'] > [class$='-section-head'] h2,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > .wrap > [class$='-section-head'] h2,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > [class$='-wrap'] > [class$='-section-head'] h2{
    font-size:clamp(28px,7vw,40px) !important;
    line-height:1.1 !important;
    margin:0 0 10px 0 !important;
  }
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > .wrap > [class$='-section-head'] p,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class$='-wrap'] > [class$='-section-head'] p,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > .wrap > [class$='-section-head'] p,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div > [class$='-wrap'] > [class$='-section-head'] p{
    font-size:16px !important;
    line-height:1.65 !important;
    margin:0 !important;
  }
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section [class*='-grid'] > article,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ div [class*='-grid'] > article{
    border:1px solid #dce8e6 !important;
    border-radius:18px !important;
    background:#fff !important;
  }
}

/* v253 — hard-align ALL direct post-calculator sections to the calculator column.
   This covers mixed templates: section.wrap, section with inner *.wrap,
   formula/faq/source/collapsible blocks and other direct content sections. */
@media (min-width:1200px){
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ .calc-info-disclaimer-section-v263,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ .site-ad-v259{
    width:min(var(--calc-main-fluid-v249), var(--calc-main-max-v249)) !important;
    max-width:none !important;
    margin-left:auto !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }

  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > .wrap,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class$='-wrap'],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section > [class*='-wrap '],
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ .calc-info-disclaimer-section-v263 > .wrap,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ .site-ad-v259 > .wrap{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    box-sizing:border-box !important;
  }

  /* Inner special cards should also inherit the full available width cleanly */
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section .formula-card-v205,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section .calc-info-disclaimer-v263,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section .expert-details-v184,
  html.calc-ad-layout-v112 .calc-ad-shell-v112 ~ section .calc-sources-v260__body{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
  }
}


/* v254 — unlimited desktop left rail until footer/free-ID exhaustion. */
@media (min-width:1200px){
  html.calc-ad-layout-v112 .calc-ad-rail-v112{
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    contain:layout!important;
  }
  html.calc-ad-layout-v112 .calc-ad-rail-v112 > *{
    overflow:visible;
  }
}




/* v796 — compact manual-ad states across calculator/PTO pages.
   Idle/no-fill slots must never create unexplained 300–400 px holes. */
.site-ad-v259:not(.site-ad-v259--left-rail):not(.site-ad-v259--gap).is-idle{
  min-height:2px!important;max-height:2px!important;margin-top:6px!important;margin-bottom:6px!important;
  padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important;
}
.site-ad-v259:not(.site-ad-v259--left-rail):not(.site-ad-v259--gap).is-idle>.site-ad-v259__label{display:none!important;}
.site-ad-v259:not(.site-ad-v259--left-rail):not(.site-ad-v259--gap).is-idle>.site-ad-v259__frame{
  min-height:2px!important;max-height:2px!important;height:2px!important;background:transparent!important;border:0!important;
}
.site-ad-v259:not(.site-ad-v259--left-rail):not(.site-ad-v259--gap).is-loading{
  min-height:96px!important;max-height:none!important;margin-top:18px!important;margin-bottom:18px!important;
}
.site-ad-v259:not(.site-ad-v259--left-rail):not(.site-ad-v259--gap).is-loading>.site-ad-v259__frame{min-height:96px!important;max-height:180px!important;}
.site-ad-v259.is-rendered>.site-ad-v259__frame,.site-ad-v259[data-ad-state="filled"]>.site-ad-v259__frame{
  min-height:0!important;max-height:none!important;height:auto!important;background:transparent!important;
}
.site-ad-v259.is-empty{display:none!important;margin:0!important;padding:0!important;min-height:0!important;}
@media(max-width:767px){
  .site-ad-v259:not(.site-ad-v259--left-rail):not(.site-ad-v259--gap).is-loading{min-height:80px!important;margin-top:14px!important;margin-bottom:14px!important;}
  .site-ad-v259:not(.site-ad-v259--left-rail):not(.site-ad-v259--gap).is-loading>.site-ad-v259__frame{min-height:80px!important;max-height:150px!important;}
}
