/* SleepBaby affiliate editorial 3.2.0.
 * Additive premium-guide discovery and Article-owned commerce contracts only. */

.sleepbaby-affiliate-editorial .sb-premium-gear {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 9vw, 126px) 0;
  color: #fffaf0;
  background:
    radial-gradient(circle at 13% 14%, rgba(231, 215, 181, .2) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 21%, rgba(255, 255, 255, .18) 0 1px, transparent 2px),
    linear-gradient(135deg, #171a35 0%, #293366 54%, #3e3151 100%);
  background-size: 74px 74px, 96px 96px, auto;
}

.sleepbaby-affiliate-editorial .sb-premium-gear::before,
.sleepbaby-affiliate-editorial .sb-premium-gear::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.sleepbaby-affiliate-editorial .sb-premium-gear::before {
  top: -170px;
  right: -110px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(231, 215, 181, .28);
}

.sleepbaby-affiliate-editorial .sb-premium-gear::after {
  right: -34px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  background: rgba(169, 143, 163, .13);
}

.sleepbaby-affiliate-editorial .sb-premium-gear > .sb-hub-shell {
  position: relative;
  z-index: 1;
}

.sleepbaby-affiliate-editorial .sb-premium-gear__heading .sb-eyebrow {
  color: #e8c8d5;
  -webkit-text-fill-color: #e8c8d5;
}

.sleepbaby-affiliate-editorial .sb-premium-gear__heading h2,
.sleepbaby-affiliate-editorial .sb-premium-gear__heading > p {
  color: #fffaf0;
  -webkit-text-fill-color: #fffaf0;
}

.sleepbaby-affiliate-editorial .sb-premium-gear__heading > p {
  max-width: 39ch;
}

.sleepbaby-affiliate-editorial .sb-premium-gear__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.sleepbaby-affiliate-editorial .sb-premium-gear--count-1 .sb-premium-gear__grid {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.sleepbaby-affiliate-editorial .sb-premium-gear--count-2 .sb-premium-gear__grid {
  width: 100%;
  max-width: 980px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: auto;
}

.sleepbaby-affiliate-editorial .sb-premium-gear--count-3 .sb-premium-gear__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, .22);
  border-radius: 28px;
  background: rgba(255, 253, 248, .97);
  box-shadow: 0 22px 56px rgba(11, 13, 35, .3);
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card__link {
  display: flex;
  height: 100%;
  min-height: 100%;
  flex-direction: column;
  color: #202026 !important;
  -webkit-text-fill-color: #202026 !important;
  text-decoration: none;
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(56, 45, 70, .12);
  background:
    radial-gradient(circle at 73% 23%, rgba(255, 236, 181, .92) 0 10%, transparent 10.5%),
    linear-gradient(145deg, #e7e0ef 0%, #d9e8ed 52%, #f2dfe4 100%);
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card__media::before {
  position: absolute;
  right: 12%;
  bottom: 14%;
  left: 12%;
  height: 12%;
  border-radius: 50%;
  background: rgba(38, 34, 54, .12);
  filter: blur(8px);
  content: "";
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card__object,
.sleepbaby-affiliate-editorial .sb-premium-guide-card__media > i,
.sleepbaby-affiliate-editorial .sb-premium-guide-card__media > b {
  position: absolute;
  display: block;
  box-sizing: border-box;
}

/* Smart crib: a bare sleep surface and monitor stem, never soft bedding. */
.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="cradlewise"] .sb-premium-guide-card__object {
  right: 18%;
  bottom: 20%;
  left: 18%;
  height: 43%;
  border: 4px solid #3b3658;
  border-top-width: 8px;
  border-radius: 18px 18px 10px 10px;
  background: rgba(255, 253, 248, .7);
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="cradlewise"] .sb-premium-guide-card__media > i {
  right: 22%;
  bottom: 61%;
  width: 4px;
  height: 21%;
  border-radius: 999px;
  background: #3b3658;
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="cradlewise"] .sb-premium-guide-card__media > b {
  right: 18.5%;
  bottom: 78%;
  width: 22px;
  height: 13px;
  border: 3px solid #3b3658;
  border-radius: 999px;
  background: #f8f2e6;
}

/* Sleepi: the distinctive oval frame is the decision cue. */
.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="stokke-sleepi"] .sb-premium-guide-card__object {
  right: 19%;
  bottom: 19%;
  left: 19%;
  height: 48%;
  border: 7px double #4f405b;
  border-radius: 50% / 26%;
  background: rgba(255, 250, 240, .74);
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="stokke-sleepi"] .sb-premium-guide-card__media > i,
.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="stokke-sleepi"] .sb-premium-guide-card__media > b {
  bottom: 12%;
  width: 5px;
  height: 19%;
  border-radius: 4px;
  background: #4f405b;
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="stokke-sleepi"] .sb-premium-guide-card__media > i { left: 27%; }
.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="stokke-sleepi"] .sb-premium-guide-card__media > b { right: 27%; }

/* Vista: a stroller silhouette signals travel and registry intent only. */
.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="uppababy-vista"] .sb-premium-guide-card__object {
  left: 25%;
  bottom: 34%;
  width: 46%;
  height: 30%;
  border: 5px solid #34395f;
  border-radius: 52% 38% 18px 20px;
  background: rgba(255, 250, 240, .72);
  transform: rotate(-3deg);
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="uppababy-vista"] .sb-premium-guide-card__object::before {
  position: absolute;
  left: -8%;
  bottom: -62%;
  width: 88%;
  height: 58%;
  border-right: 5px solid #34395f;
  border-bottom: 5px solid #34395f;
  border-left: 5px solid #34395f;
  content: "";
  transform: skewX(-12deg);
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="uppababy-vista"] .sb-premium-guide-card__media > i,
.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="uppababy-vista"] .sb-premium-guide-card__media > b {
  bottom: 14%;
  width: 31px;
  height: 31px;
  border: 6px solid #34395f;
  border-radius: 50%;
  background: #f6efe5;
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="uppababy-vista"] .sb-premium-guide-card__media > i { left: 24%; }
.sleepbaby-affiliate-editorial .sb-premium-guide-card[data-sb-guide-key="uppababy-vista"] .sb-premium-guide-card__media > b { right: 23%; }

.sleepbaby-affiliate-editorial .sb-premium-guide-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card__category {
  color: #6f5673 !important;
  -webkit-text-fill-color: #6f5673 !important;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card h3 {
  margin: 11px 0 14px;
  color: #30243b !important;
  -webkit-text-fill-color: #30243b !important;
  font-size: clamp(1.42rem, 2.2vw, 1.92rem);
  line-height: 1.12;
  text-wrap: balance;
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card__summary {
  color: #554e59 !important;
  -webkit-text-fill-color: #554e59 !important;
  line-height: 1.58;
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
  color: #5b3563 !important;
  -webkit-text-fill-color: #5b3563 !important;
  font-weight: 700;
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card__link:hover .sb-premium-guide-card__action,
.sleepbaby-affiliate-editorial .sb-premium-guide-card__link:focus-visible .sb-premium-guide-card__action {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.sleepbaby-affiliate-editorial .sb-premium-guide-card__link:focus-visible {
  outline: 4px solid #171a35;
  outline-offset: -6px;
}

/* Current Article contracts that must survive the broader reading-shell and
 * retired-acquisition guards without reopening a legacy module family. */
body.sleepbaby-affiliate-editorial.sb2046-reading-room .sb-article-content .sb2046-invitation[data-sb2046-workshop-invitation] h2 {
  color: #fffaf0 !important;
  -webkit-text-fill-color: #fffaf0 !important;
}

@media screen {
  body.sleepbaby-affiliate-editorial.sb-affiliate-page--article .sb-article-content [data-sb-component$="-final-homepage-card"][data-sb-cta-variant] {
    display: block !important;
  }
}

/* New Article-owned Amazon recommendation schema. This contract deliberately
 * does not reuse or target any plugin-owned module class. */
.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: clamp(16px, 3vw, 24px);
  margin: clamp(40px, 7vw, 68px) 0;
  padding: clamp(24px, 5vw, 42px);
  overflow: hidden;
  border: 1px solid #9ebaae;
  border-radius: 28px;
  color: #25263a;
  -webkit-text-fill-color: #25263a;
  background:
    radial-gradient(circle at 88% 16%, rgba(231, 215, 181, .62) 0 9%, transparent 9.5%),
    linear-gradient(145deg, #fffaf0 0%, #e9f0ed 100%);
  box-shadow: 0 18px 45px rgba(32, 38, 78, .14);
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"]::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  background: linear-gradient(#9ebaae, #a98fa3);
  content: "";
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] :is(h2, h3, h4) {
  max-width: 24ch;
  margin: 0;
  color: #25263a !important;
  -webkit-text-fill-color: #25263a !important;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.08;
  text-wrap: balance;
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] :is(p, li, small) {
  color: #373747 !important;
  -webkit-text-fill-color: #373747 !important;
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] :is(ul, ol) {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 1.25em;
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] [data-sb-affiliate-disclosure] {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(42, 45, 74, .2);
  border-radius: 12px;
  color: #373747 !important;
  -webkit-text-fill-color: #373747 !important;
  background: rgba(255, 255, 255, .72);
  font-size: .9rem;
  line-height: 1.45;
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] a[data-sb-contrast-role="amazon-button"]:is(:link, :visited, :hover, :focus, :active) {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 2px solid #e5b95f !important;
  border-radius: 999px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #20264e !important;
  background-image: none !important;
  box-shadow: 0 10px 24px rgba(23, 26, 53, .2);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] a[data-sb-contrast-role="amazon-button"]:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] a[data-sb-contrast-role="amazon-button"]:hover {
  background: #343b70 !important;
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] a[data-sb-contrast-role="amazon-button"]:focus-visible {
  outline: 4px solid #fff3c9 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 2px #171a35, 0 10px 24px rgba(23, 26, 53, .28) !important;
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"]:is([data-sb-background-owned="required"], [data-sb-article-flow-surface="dark"]) {
  border-color: #8daec6;
  color: #fffaf0;
  -webkit-text-fill-color: #fffaf0;
  background:
    radial-gradient(circle at 86% 14%, rgba(231, 215, 181, .24) 0 9%, transparent 9.5%),
    linear-gradient(145deg, #171a35 0%, #293366 62%, #493b58 100%);
  box-shadow: 0 22px 52px rgba(18, 21, 48, .28);
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"]:is([data-sb-background-owned="required"], [data-sb-article-flow-surface="dark"]) :is(h2, h3, h4, p, li, small) {
  color: #fffaf0 !important;
  -webkit-text-fill-color: #fffaf0 !important;
}

.sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"]:is([data-sb-background-owned="required"], [data-sb-article-flow-surface="dark"]) [data-sb-affiliate-disclosure] {
  border-color: rgba(255, 250, 240, .3);
  color: #fffaf0 !important;
  -webkit-text-fill-color: #fffaf0 !important;
  background: rgba(255, 255, 255, .1);
}

@media (max-width: 820px) {
  .sleepbaby-affiliate-editorial .sb-premium-gear--count-2 .sb-premium-gear__grid,
  .sleepbaby-affiliate-editorial .sb-premium-gear--count-3 .sb-premium-gear__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sleepbaby-affiliate-editorial .sb-premium-gear--count-1 .sb-premium-gear__grid {
    grid-template-columns: minmax(0, 720px);
  }

  .sleepbaby-affiliate-editorial .sb-premium-guide-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .sleepbaby-affiliate-editorial .sb-premium-gear__grid,
  .sleepbaby-affiliate-editorial .sb-premium-gear--count-1 .sb-premium-gear__grid,
  .sleepbaby-affiliate-editorial .sb-premium-gear--count-2 .sb-premium-gear__grid,
  .sleepbaby-affiliate-editorial .sb-premium-gear--count-3 .sb-premium-gear__grid {
    max-width: none;
    grid-template-columns: 1fr;
  }

  .sleepbaby-affiliate-editorial .sb-premium-guide-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .sleepbaby-affiliate-editorial .sb-premium-guide-card__link {
    display: grid;
    grid-template-columns: minmax(112px, 34%) minmax(0, 1fr);
  }

  .sleepbaby-affiliate-editorial .sb-premium-guide-card__media {
    min-height: 100%;
    aspect-ratio: auto;
    border-right: 1px solid rgba(56, 45, 70, .12);
    border-bottom: 0;
  }
}

@media (max-width: 460px) {
  .sleepbaby-affiliate-editorial .sb-premium-guide-card__link {
    display: flex;
  }

  .sleepbaby-affiliate-editorial .sb-premium-guide-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid rgba(56, 45, 70, .12);
  }

  .sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] {
    padding: 22px 18px 24px 24px;
    border-radius: 20px;
  }

  .sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] a[data-sb-contrast-role="amazon-button"] {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sleepbaby-affiliate-editorial .sb-premium-gear *,
  .sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (forced-colors: active) {
  body.sleepbaby-affiliate-editorial.sb2046-reading-room .sb-article-content .sb2046-invitation[data-sb2046-workshop-invitation] h2 {
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText !important;
  }

  .sleepbaby-affiliate-editorial .sb-premium-gear,
  .sleepbaby-affiliate-editorial .sb-premium-guide-card,
  .sleepbaby-affiliate-editorial .sb-premium-guide-card__media,
  .sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] {
    border-color: CanvasText !important;
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText !important;
    background: Canvas !important;
    background-image: none !important;
    box-shadow: none !important;
  }

  .sleepbaby-affiliate-editorial .sb-premium-gear :is(h2, h3, p, span),
  .sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] :is(h2, h3, h4, p, li, small) {
    color: CanvasText !important;
    -webkit-text-fill-color: CanvasText !important;
  }

  .sleepbaby-affiliate-editorial .sb-premium-guide-card__link:is(:link, :visited, :hover, :focus, :active) {
    color: LinkText !important;
    -webkit-text-fill-color: LinkText !important;
  }

  .sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] a[data-sb-contrast-role="amazon-button"]:is(:link, :visited, :hover, :focus, :active) {
    border-color: ButtonText !important;
    color: ButtonText !important;
    -webkit-text-fill-color: ButtonText !important;
    background: ButtonFace !important;
    box-shadow: none !important;
  }

  .sleepbaby-affiliate-editorial .entry-content [data-sb-component="article-specific-amazon-recommendation"] a[data-sb-contrast-role="amazon-button"]:is(:link, :visited, :hover, :focus, :active) :is(span, strong, em, b, i) {
    color: ButtonText !important;
    -webkit-text-fill-color: ButtonText !important;
  }
}
