/* S16 Standards (#standards). Owner: S16. Only what Elementor controls cannot do. */
/* Video column: keep the rounded corners on the native background video. */
body.page-id-5703 #standards .lz-s16-video{isolation:isolate}
body.page-id-5703 #standards .lz-s16-video .elementor-background-video-container{border-radius:16px}
/* Owner attribution: short orange rule before the name. */
body.page-id-5703 #standards .lz-s16-owner .elementor-heading-title{display:flex;align-items:center;gap:14px}
body.page-id-5703 #standards .lz-s16-owner .elementor-heading-title::before{content:"";width:34px;height:2px;background:#D94D06;flex:0 0 34px}
/* Work mix cards: soft depth, bar sits in the card rhythm. The card is a size container so its label and one line note never wrap. */
body.page-id-5703 #standards .lz-s16-card{box-shadow:0 18px 40px -26px rgba(0,17,36,.35);container-type:inline-size}
body.page-id-5703 #standards .lz-s16-bar .elementor-progress-wrapper{overflow:hidden;margin:0}
body.page-id-5703 #standards .lz-s16-bar .elementor-progress-bar{border-radius:999px}
/* One line notes under 85% and 15% (round 2): same font and size, never wrap; shrink only if a card is ever narrower than the text. */
body.page-id-5703 #standards .lz-s16-note .elementor-heading-title{white-space:nowrap;font-size:min(16px,7.2cqi)}
body.page-id-5703 #standards .lz-s16-label .elementor-heading-title{white-space:nowrap;font-size:min(23px,9.6cqi)}
@media (max-width:1279px){
  body.page-id-5703 #standards .lz-s16-note .elementor-heading-title{font-size:min(15px,7.2cqi)}
  body.page-id-5703 #standards .lz-s16-label .elementor-heading-title{font-size:min(20px,9.6cqi)}
}
@media (max-width:767px){
  body.page-id-5703 #standards .lz-s16-label .elementor-heading-title{font-size:min(19px,9.6cqi)}
}

/* No lone last words: balance the quote lines, keep the card text from ending on one word. */
body.page-id-5703 #standards .lz-s16-quote .trx-addons-advanced-title{text-wrap:balance}
body.page-id-5703 #standards .lz-s16-card .elementor-widget-text-editor p{text-wrap:pretty}

/* Small tablet (768 to 900): three columns are too narrow for the quote and the CTA, so the video and the promise
   share the first row and the two work mix cards sit side by side below. */
@media (min-width:768px) and (max-width:900px){
  body.page-id-5703 #standards,body.page-id-5703 #standards > .e-con-inner{flex-wrap:wrap}
  body.page-id-5703 #standards .elementor-element-3dd9cc1{flex:0 0 38%;max-width:38%;min-height:440px;align-self:stretch}
  body.page-id-5703 #standards .elementor-element-54bd235{flex:1 1 0%;min-width:0}
  body.page-id-5703 #standards .elementor-element-f00bf78{flex:0 0 100%;max-width:100%;--e-con-grid-template-columns:repeat(2,minmax(0,1fr));--e-con-grid-template-rows:auto}
}

/* Laptop (1280 to 1439): the Commercial card text left "washrooms." alone on line 3; balance carries two words down. */
@media (min-width:1280px) and (max-width:1439px){
  body.page-id-5703 #standards .lz-s16-card .elementor-widget-text-editor p{text-wrap:balance}
  /* Round 3 larger quote (native 38 / 26 / 25px): the promise column is 360px wide here, so 34px keeps the card close to its old height. */
  body.page-id-5703 #standards .lz-s16-quote .trx-addons-advanced-title{font-size:34px}
  /* Fix r1: at 34px a 360px measure gave 8 ragged lines ending on a lone "walkthrough." (Chrome only balances up to 6 lines).
     32px side padding in the promise card (40 elsewhere) gives a 375px measure: 7 even lines ending "your final walkthrough.". */
  body.page-id-5703 #standards .elementor-element-54bd235{--padding-left:32px;--padding-right:32px}
}
/* Round 3 larger quote, small phones (under 390): 24px (native 21 before round 3) still ends on "your final walkthrough.". */
@media (max-width:389px){
  body.page-id-5703 #standards .lz-s16-quote .trx-addons-advanced-title{font-size:24px}
}
/* Small phones (under 380): keep "Plan My Renovation Right" on one line. */
@media (max-width:379px){
  body.page-id-5703 #standards .lz-cta .elementor-button{font-size:16px;padding-left:20px;padding-right:20px}
}
/* Fix r1 under 360: 24px left 9 lines ending on a lone "walkthrough.”" and the CTA wrapped to "Plan My Renovation / Right".
   22px in a slightly wider measure gives 7 lines ending "your final walkthrough.”", and the CTA stays on one line. */
@media (max-width:359px){
  body.page-id-5703 #standards .elementor-element-54bd235{--padding-left:18px;--padding-right:18px}
  body.page-id-5703 #standards .lz-s16-quote .trx-addons-advanced-title{font-size:22px}
  body.page-id-5703 #standards .lz-cta .elementor-button{font-size:16px;padding-left:16px;padding-right:16px}
}
/* Fix r1 landscape phones: the shower video (480px) was taller than the screen. */
@media (max-width:767px) and (orientation:landscape){
  body.page-id-5703 #standards .elementor-element-3dd9cc1{--min-height:min(480px,80vh)}
}
