/* bb.css: The Bliss Body page only. Everything shared lives in upsell.css (unchanged copy of the Opening To Love template). */
.hero{--hero-bg:url(img/s-bb-room.jpg)}
.hfig img{object-position:50% 55%}

/* H1 cascade: forced breaks per width band (standards 5, item 4); balance off where breaks are forced */
.hero h1 br{display:none}
@media (min-width:768px){.hero h1 .br-d{display:inline}}
@media (min-width:768px) and (max-width:1099px){.hero h1{font-size:36px}}
@media (min-width:768px){.hero h1 .hl{letter-spacing:-.008em}}
@media (max-width:767px){.hero h1{text-wrap:balance}}

/* section heads with hand-set breaks: shown from 900px up, natural balanced wrap below */
.head h2 .br-n{display:none}
@media (min-width:900px){.head h2 .br-n{display:inline}.head h2:has(.br-n){text-wrap:wrap}}
/* tablet (768-899): the days and benefits heads get their own cascade */
.head h2 .br-t{display:none}
@media (min-width:768px) and (max-width:899px){.days-sec .head h2 .br-t,.bens-sec .head h2 .br-t{display:inline}.days-sec .head h2,.bens-sec .head h2{text-wrap:wrap}.bens-sec .head h2{font-size:36px}}
/* card heading break used only where the card is narrow */
h3 .br-c{display:none}
@media (max-width:1023px){h3 .br-c{display:inline}}
/* keep reading lines in measure where a card or lead runs wide */
.days-sec .head .lead{max-width:660px}
.card.slim .cbd > div{max-width:780px}
.inside-sec .head{max-width:1040px}
@media (min-width:900px) and (max-width:1099px){.inside-sec .head h2{font-size:34px}}
@media (max-width:899px){.inside-sec .head h2 .br-n{display:none}.inside-sec .head h2{text-wrap:balance}}
.head h2 br.br-m:not(.br-n){display:none}
@media (max-width:899px){.head h2 br.br-m{display:none}}
@media (min-width:768px) and (max-width:899px){.inside-sec .head h2{font-size:36px;text-wrap:wrap}.inside-sec .head h2 br.br-m{display:inline}}

/* 5 benefits: the 5th card spans both columns so the grid ends level */
@media (min-width:900px){
  .ben:last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);column-gap:48px;align-items:start}
  .ben:last-child:nth-child(odd) .num{grid-column:1;grid-row:1}
  .ben:last-child:nth-child(odd) .bl{grid-column:1;grid-row:2;margin-bottom:0}
  .ben:last-child:nth-child(odd) p:not(.bl){grid-column:2;grid-row:1 / span 2;align-self:center}
}

/* teaching card: icon beside a longer paragraph, so align to the top */
.card.teach .cbd{align-items:flex-start}
.card.teach img.ic{margin-top:4px}

/* the 5 home meditations: typographic tiles in the page colours (title + length only), numbered */
.meds{list-style:none;margin:36px 0 0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;counter-reset:m}
.meds li{counter-increment:m;position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:208px;padding:62px 20px 22px;border-radius:16px;
  background:radial-gradient(120% 90% at 20% 0%,rgba(58,58,134,.9),rgba(28,27,74,1) 70%);color:var(--ondark);box-shadow:0 12px 26px -14px rgba(28,27,74,.7)}
.meds li::before{content:counter(m);position:absolute;left:20px;top:20px;width:32px;height:32px;border-radius:50%;background:linear-gradient(160deg,#FFC27A,var(--orange));color:var(--onorange);font:700 15px/32px var(--serif);text-align:center}
.meds .mt{display:block;font:700 17px/1.35 var(--serif);text-wrap:balance}
.meds .ml{display:block;margin-top:10px;font:900 12px/1.3 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--lilac)}
@media (max-width:1023px){
  .meds{grid-template-columns:minmax(0,1fr);gap:14px}
  .meds li{display:block;min-height:0;padding:18px 16px 20px}
  .meds li::before{position:static;display:block;margin-bottom:12px}
  .meds .mt{font-size:17px;text-wrap:pretty}
  .meds li:nth-child(4) .nb{white-space:nowrap}
  .meds .ml{margin-top:6px}
}
@media (max-width:420px){.meds .mt{font-size:16px}.meds{margin-left:-10px;margin-right:-10px}.meds li{padding-left:14px;padding-right:14px}}
@media (max-width:374px){.meds .mt{font-size:15.5px}}
@media (max-width:359px){.meds li:nth-child(4) .nb{white-space:normal}}
@media (min-width:1024px) and (max-width:1199px){.meds .mt{font-size:15px}.meds li{padding-left:16px;padding-right:16px}.meds li::before{left:16px}}

/* room cards: stack below 1000px so each heading gets a full line; slightly smaller heading where 2 cards sit side by side and narrow */
.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,470px),1fr))}
@media (min-width:1000px) and (max-width:1199px){.card.room h3{font-size:22px}}

/* room card headings: break where the sentence breaks, so the name stays whole */
@media (min-width:768px){.card.room h3{text-wrap:pretty}}
