/* Shared Workshop invitations. Explicitly scoped away from article teaching,
   approved Amazon components, the floating offer, and the homepage shell. */
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] {
  --sbac-ink:#30213d; --sbac-paper:#fffaf0; --sbac-mint:#dceee5;
  box-sizing:border-box; position:relative; isolation:isolate; max-width:100%;
  margin:56px auto; padding:32px; border:1px solid #cfbdcf; border-radius:28px;
  background:#f4edf8; color:var(--sbac-ink); box-shadow:0 8px 0 #e7dce9;
  font-size:17px; line-height:1.6; text-align:left;
}
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] *,
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] *::before { box-sizing:border-box; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] :is(h2,h3,p,li,strong,small,span,figcaption) {
  color:var(--sbac-ink)!important; -webkit-text-fill-color:var(--sbac-ink)!important;
  overflow-wrap:normal; word-break:normal; hyphens:none;
}
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] h2 {
  max-width:24ch; margin:10px 0 16px; padding:0; font-size:clamp(26px,3vw,36px); line-height:1.13; letter-spacing:-.025em;
}
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] h2::before { display:none; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] p { margin:0 0 18px; font-size:17px; line-height:1.6; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-promo__eyebrow { font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; line-height:1.5; margin:0; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-promo__note { font-size:13px; line-height:1.5; margin:14px 0 0; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] a.sbac-promo__button {
  display:inline-flex; align-items:center; justify-content:center; gap:14px; min-height:48px;
  max-width:100%; padding:13px 19px; border:1px solid #4b2c60; border-radius:14px;
  color:#fffaf0!important; -webkit-text-fill-color:#fffaf0!important; background:#4b2c60;
  font-size:16px; font-weight:700; line-height:1.35; text-decoration:none!important;
  box-shadow:0 4px 0 #d7c4dd; white-space:normal; text-align:center;
}
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] a.sbac-promo__button span { color:inherit!important; -webkit-text-fill-color:inherit!important; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] a.sbac-promo__button:hover { background:#372044; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] a.sbac-promo__button:focus-visible { outline:3px solid #19635e; outline-offset:5px; }
body.sb2046-reading-room .sb-article-content .sbac-promo--preview[data-sb-article-promo] { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:28px; align-items:center; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-preview-paper {
  position:relative; padding:27px 20px 16px; border:1px solid #d9c8aa; border-radius:10px 24px 24px 10px;
  background:repeating-linear-gradient(#fffaf0 0 31px,#e9dfcc 32px,#fffaf0 33px); box-shadow:5px 5px 0 #e1d5c2; transform:rotate(1deg);
}
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-preview-paper__tab { position:absolute; top:-15px; left:22px; padding:5px 13px; border-radius:6px; background:#dceee5; border:1px solid #a8c5b6; font-size:12px; font-weight:800; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-preview-paper ol { display:grid; gap:17px; list-style:none; margin:0; padding:0; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-preview-paper li { display:grid; grid-template-columns:30px minmax(0,1fr); gap:11px; margin:0; padding:0; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-preview-paper li>span { font-size:12px; font-weight:800; width:30px; height:30px; display:grid; place-items:center; border:1px solid #c1add2; border-radius:50%; background:#eee4f5; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-preview-paper strong { display:block; font-size:16px; line-height:1.4; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-preview-paper small { display:block; font-size:12px; line-height:1.5; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-preview-paper>p { margin:20px 0 0; padding-top:10px; border-top:1px dashed #b6a392; font-size:12px; }
body.sb2046-reading-room .sb-article-content .sbac-promo--paths[data-sb-article-promo] { border-color:#aec6bd; border-radius:8px 32px 8px 32px; background:#eaf4ed; box-shadow:0 8px 0 #d4e4dc; }
body.sb2046-reading-room .sb-article-content .sbac-promo--paths[data-sb-article-promo] h2 { max-width:none; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-paths { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; position:relative; margin:30px 0; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-paths::before { content:''; position:absolute; top:20px; left:20px; right:20px; height:1px; background:#8fa99c; z-index:-1; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-paths__number { display:grid; place-items:center; width:42px; height:42px; margin-bottom:15px; border:1px solid #97b5a6; border-radius:50%; background:#fffaf0; font-size:18px; font-weight:700; box-shadow:0 0 0 7px #eaf4ed; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-paths h3 { padding:0; margin:0 0 8px; font-size:20px; line-height:1.25; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-paths p { font-size:15px; margin:0; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-promo__action-row { border-top:1px solid #b6cdc1; padding-top:22px; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:22px; align-items:center; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-promo__action-row .sbac-promo__note { margin:0; }
body.sb2046-reading-room .sb-article-content .sbac-promo--workshop[data-sb-article-promo] { padding:0; overflow:hidden; border-color:#d4bca5; border-radius:28px 28px 10px 10px; background:#fff4e3; box-shadow:0 8px 0 #ead9c6; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-promo__scene { width:100%; max-width:none; margin:0; padding:0; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-promo__scene img { display:block; width:100%; height:auto; max-width:100%; margin:0; border-radius:0; aspect-ratio:1440/683; object-fit:cover; }
body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-promo__scene figcaption { padding:9px 22px; margin:0; background:#efdfcc; font-size:12px; text-align:left; }
body.sb2046-reading-room .sb-article-content .sbac-promo--workshop[data-sb-article-promo] .sbac-promo__copy { padding:28px 32px 32px; }
body.sb2046-reading-room .sb-article-content .sbac-promo--workshop[data-sb-article-promo] h2 { max-width:25ch; }

/* Restore the two accepted authored final-card schemas missed by the old
   suffix-only exception. Never expose generic retired acquisition boxes. */
body.sleepbaby-affiliate-editorial.sb2046-reading-room .sb-article-content .sleepbaby-workshop-cta:is([data-sb-component="topic-to-sleep-homepage-card"],[data-sb-component="final-homepage-invitation"])[data-sb-cta-variant] { display:block!important; }
body.sleepbaby-affiliate-editorial.sb2046-reading-room [data-sb-article-body] .sleepbaby-workshop-cta:is([data-sb-component="topic-to-sleep-homepage-card"],[data-sb-component="final-homepage-invitation"])[data-sb-cta-variant] a.sleepbaby-workshop-cta__button,
body.sleepbaby-affiliate-editorial.sb2046-reading-room [data-sb-article-body] .sleepbaby-workshop-cta:is([data-sb-component="topic-to-sleep-homepage-card"],[data-sb-component="final-homepage-invitation"])[data-sb-cta-variant] a.sleepbaby-workshop-cta__button * {
 color:#fffaf2!important; -webkit-text-fill-color:#fffaf2!important;
}
body.sleepbaby-affiliate-editorial.sb2046-reading-room [data-sb-article-body] .sleepbaby-workshop-cta[data-sb-cta-variant] a.sleepbaby-workshop-cta__button:focus-visible { outline:3px solid #19635e; outline-offset:5px; }

/* The full homepage offer follows the article; this owns one section, not a
   second main/header/footer. ID scoping keeps article/Amazon styles intact. */
#sbgf-home.sbgf-home--article { min-height:0; border-top:1px solid #b49a74; }
#sbgf-home.sbgf-home--article .sbgf-home__hero { padding-top:40px; }
#sbgf-home.sbgf-home--article .sbgf-home__lights { top:12px; }
#sbgf-home.sbgf-home--article .sbgf-home__hero-grid { width:min(1120px,calc(100% - 64px)); grid-template-columns:minmax(0,1fr) minmax(390px,1fr); gap:60px; }
#sbgf-home.sbgf-home--article .sbgf-home__lede { font-size:17px; }
#sbgf-home.sbgf-home--article .sbac-continuation-intro { position:relative; z-index:2; width:min(1200px,calc(100% - 64px)); margin:0 auto 48px; display:flex; flex-wrap:wrap; gap:15px; align-items:center; justify-content:space-between; border-bottom:1px solid #76667a; padding-bottom:18px; color:#fffaf0; }
#sbgf-home.sbgf-home--article .sbac-continuation-intro p { margin:0; color:#f6d894; font-size:13px; text-transform:uppercase; letter-spacing:.12em; font-weight:700; }
#sbgf-home.sbgf-home--article .sbac-continuation-intro a { color:#fffaf0; min-height:44px; display:inline-flex; align-items:center; gap:12px; text-underline-offset:5px; font-size:15px; }
#sbgf-home.sbgf-home--article #sbgf-home-title { color:#fffaf0!important; -webkit-text-fill-color:#fffaf0!important; font-family:var(--sbgf-display)!important; font-size:clamp(38px,4.7vw,68px); font-weight:500; letter-spacing:-.035em; line-height:1.04; margin:16px 0 24px; }
@media(max-width:680px) {
 body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] { padding:24px 20px; margin:42px auto; }
 body.sb2046-reading-room .sb-article-content .sbac-promo--preview[data-sb-article-promo] { grid-template-columns:1fr; gap:32px; }
 body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-preview-paper { transform:none; }
 body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] a.sbac-promo__button { width:100%; }
 body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-paths { grid-template-columns:1fr; gap:20px; }
 body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-paths::before { left:20px; top:20px; bottom:20px; width:1px; height:auto; right:auto; }
 body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-paths>div { display:grid; grid-template-columns:42px minmax(0,1fr); column-gap:16px; }
 body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-paths__number { grid-row:span 2; margin:0; }
 body.sb2046-reading-room .sb-article-content .sbac-promo[data-sb-article-promo] .sbac-promo__action-row { grid-template-columns:1fr; gap:15px; }
 body.sb2046-reading-room .sb-article-content .sbac-promo--workshop[data-sb-article-promo] { padding:0; }
 body.sb2046-reading-room .sb-article-content .sbac-promo--workshop[data-sb-article-promo] .sbac-promo__copy { padding:24px 20px; }
 #sbgf-home.sbgf-home--article .sbac-continuation-intro { width:calc(100% - 40px); margin-bottom:24px; }
}
@media(max-width:820px) {
 #sbgf-home.sbgf-home--article .sbgf-home__hero-grid { width:calc(100% - 40px); grid-template-columns:1fr; gap:35px; padding-top:22px; }
 #sbgf-home.sbgf-home--article .sbgf-home__lede { font-size:16px; }
}
/* Keep the mobile/tablet continuation's readable copy within the inherited
   reading-room measure, including the inset used by accepted article bodies.
   Backgrounds, art and interactive panels retain their own responsive width. */
@media(max-width:768px) {
 #sbgf-home.sbgf-home--article :is(h2,h3,h4,p,ul,ol,blockquote) { max-width:min(100%,calc(90vw - 32px)); }
}
@media(prefers-reduced-motion:reduce) { #sbgf-home.sbgf-home--article * { scroll-behavior:auto!important; } }
