/* ========================================================================
   NUMEIQ 2.2.54 — Calculator readability / multilingual wrapping hardening
   Loaded after all legacy calculator styles. This layer only fixes sizing,
   line wrapping and responsive card readability across every calculator.
   ======================================================================== */

:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-v6,
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-v6 *,
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-name-result-v5,
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-name-result-v5 *{
  box-sizing:border-box!important;
}

/* Never allow result copy to collapse into a one-word-per-line rail. */
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-hero-v6{
  grid-template-columns:minmax(230px,30%) minmax(0,1fr)!important;
  width:100%!important;
  max-width:100%!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-copy-v6,
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-copy-v6>*,
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-insights-v6 article>div,
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-year-cards-v6 article,
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-locked-item>span,
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-locked-item>small{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  hyphens:auto!important;
}

:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-copy-v6{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:40px 44px!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-copy-v6 h2{
  display:block!important;
  width:100%!important;
  max-width:920px!important;
  margin:0!important;
  font-size:clamp(36px,4vw,56px)!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
  text-transform:none!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  hyphens:auto!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-lead-v6{
  display:block!important;
  width:100%!important;
  max-width:900px!important;
  margin:20px 0 0!important;
  font-size:19px!important;
  line-height:1.65!important;
  font-weight:500!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  hyphens:auto!important;
}

/* General result cards: larger readable text. */
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-insights-v6{
  gap:18px!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-insights-v6 article{
  grid-template-columns:48px minmax(0,1fr)!important;
  gap:16px!important;
  padding:25px 26px!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-insights-v6 h3{
  margin:0 0 9px!important;
  font-size:26px!important;
  line-height:1.15!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-insights-v6 p{
  margin:0!important;
  font-size:18px!important;
  line-height:1.62!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  hyphens:auto!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-mini-icon{
  width:46px!important;
  height:46px!important;
  font-size:23px!important;
}

/* LOVE teaser: the six cards must be actual readable content cards. */
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-depth-v6{
  padding:28px!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-depth-v6 .nq-result-note{
  margin-bottom:22px!important;
  font-size:18px!important;
  line-height:1.6!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-locked{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-locked-item{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 24px!important;
  grid-template-rows:auto auto!important;
  column-gap:14px!important;
  min-height:112px!important;
  padding:20px 20px!important;
  align-content:center!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-locked-item>span:first-child{
  grid-column:1!important;
  font-size:19px!important;
  line-height:1.32!important;
  font-weight:750!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-locked-item small{
  grid-column:1!important;
  margin-top:7px!important;
  font-size:16px!important;
  line-height:1.45!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-lock-icon{
  grid-column:2!important;
  grid-row:1/3!important;
  width:21px!important;
  height:21px!important;
}

/* Personal year and every other tile follow the same readable scale. */
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-year-cards-v6{
  gap:16px!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-year-cards-v6 article{
  padding:24px 25px!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-year-cards-v6 h3{
  margin:0 0 9px!important;
  font-size:25px!important;
  line-height:1.15!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-year-cards-v6 p{
  margin:0!important;
  font-size:18px!important;
  line-height:1.6!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  hyphens:auto!important;
}

/* Name-number result tiles. */
:is(.nq-calculator-v6,.nq-calculator-hub-v7) .nq-name-copy-pane-v5 h2{
  text-transform:none!important;
  font-size:clamp(36px,4vw,56px)!important;
  line-height:1.08!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7) .nq-name-copy-pane-v5 p{
  font-size:18px!important;
  line-height:1.62!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7) .nq-name-teasers-v5 h4{
  font-size:23px!important;
  line-height:1.16!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7) .nq-name-teasers-v5 p{
  font-size:17px!important;
  line-height:1.55!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7) .nq-name-teasers-v5 small{
  font-size:14px!important;
  line-height:1.45!important;
}

/* Product recommendation cards under results. */
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-products-heading p{
  font-size:18px!important;
  line-height:1.55!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-home-product-card .nq-home-product-copy>p{
  font-size:17px!important;
  line-height:1.55!important;
  min-height:0!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-home-product-card li{
  font-size:16px!important;
  line-height:1.48!important;
}

/* Calculator overview cards themselves stay comfortably readable. */
.nq-calculator-hub-v7 .nq-calcunit-copy-v7 p{
  font-size:18px!important;
  line-height:1.62!important;
}

@media(max-width:1050px){
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-hero-v6{
    grid-template-columns:minmax(210px,31%) minmax(0,1fr)!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-copy-v6{
    padding:34px 32px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-locked{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:780px){
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-hero-v6{
    grid-template-columns:1fr!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-copy-v6{
    align-items:flex-start!important;
    padding:26px 20px!important;
    text-align:left!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-copy-v6 h2{
    max-width:none!important;
    font-size:clamp(32px,8.7vw,44px)!important;
    line-height:1.1!important;
    text-align:left!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-copy-v6 h2::after{
    margin:18px 0 0!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-lead-v6{
    max-width:none!important;
    font-size:17px!important;
    line-height:1.62!important;
    text-align:left!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-insights-v6{
    grid-template-columns:1fr!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-insights-v6 article{
    grid-template-columns:44px minmax(0,1fr)!important;
    padding:21px 19px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-insights-v6 h3{
    font-size:23px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-insights-v6 p{
    font-size:17px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-depth-v6{
    padding:20px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-depth-v6 .nq-result-note{
    font-size:17px!important;
    text-align:left!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-locked{
    grid-template-columns:1fr!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-locked-item{
    min-height:96px!important;
    padding:18px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-locked-item>span:first-child{
    font-size:17px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-locked-item small{
    font-size:14px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-year-cards-v6{
    grid-template-columns:1fr!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-year-cards-v6 h3{
    font-size:23px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-year-cards-v6 p{
    font-size:17px!important;
  }
  .nq-calculator-hub-v7 .nq-calcunit-copy-v7 p{
    font-size:17px!important;
  }
}

@media(max-width:480px){
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-copy-v6{
    padding:24px 17px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-copy-v6 h2{
    font-size:clamp(30px,9.3vw,39px)!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-lead-v6,
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-insights-v6 p,
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-year-cards-v6 p{
    font-size:16.5px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-insights-v6 article{
    grid-template-columns:1fr!important;
    gap:11px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-mini-icon{
    width:42px!important;
    height:42px!important;
  }
}

/* 2.3.29 product-specific offer panels directly below LOVE/FUTURE results. */
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.55fr) minmax(180px,.65fr) minmax(220px,.72fr)!important;
  gap:28px!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  margin:22px 0 0!important;
  padding:30px 34px!important;
  overflow:hidden!important;
  border:1px solid #e2cda9!important;
  border-radius:16px!important;
  background:linear-gradient(105deg,#fff9ef 0%,#f7e5c6 100%)!important;
  box-sizing:border-box!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9:after{
  content:"✧"!important;
  position:absolute!important;
  right:22px!important;
  bottom:-45px!important;
  font-size:150px!important;
  line-height:1!important;
  color:rgba(177,116,35,.09)!important;
  pointer-events:none!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9>*{min-width:0!important}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9 h3{
  margin:7px 0 8px!important;
  font-size:31px!important;
  line-height:1.12!important;
  overflow-wrap:anywhere!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9 p{
  margin:0!important;
  color:#5a4f45!important;
  font-size:15px!important;
  line-height:1.5!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9 ul{
  position:relative!important;
  z-index:2!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9 li{
  margin:7px 0!important;
  color:#564a40!important;
  font-size:14px!important;
  line-height:1.4!important;
}
:is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9 .nq-primary{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:58px!important;
  margin:0!important;
  padding:14px 20px!important;
  border-radius:10px!important;
  text-align:center!important;
  font-size:14px!important;
  line-height:1.3!important;
  white-space:normal!important;
}
@media(max-width:900px){
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9{grid-template-columns:1fr 1fr!important}
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9 .nq-primary{grid-column:1/-1!important}
}
@media(max-width:700px){
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9{
    grid-template-columns:1fr!important;
    gap:20px!important;
    padding:24px 20px!important;
    text-align:left!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9 h3{font-size:27px!important}
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9 p{font-size:16px!important}
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9 li{font-size:15px!important}
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-result-offer-v9 .nq-primary{grid-column:auto!important}
}

/* 2.3.16 LOVE mobile result title safety: keep long translated titles inside the result frame. */
@media(max-width:780px){
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-love-result-v6 .nq-result-copy-v6 h2{
    width:100%!important;
    max-width:100%!important;
    padding-right:6px!important;
    font-size:clamp(28px,7.2vw,36px)!important;
    line-height:1.04!important;
    letter-spacing:-.025em!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
}
@media(max-width:480px){
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-love-result-v6 .nq-result-copy-v6{
    padding-left:20px!important;
    padding-right:24px!important;
  }
  :is(.nq-calculator-v6,.nq-calculator-hub-v7,.nq-calculator-embedded-v6) .nq-love-result-v6 .nq-result-copy-v6 h2{
    font-size:clamp(27px,7vw,32px)!important;
    line-height:1.05!important;
  }
}
