/* r14: one promo pill spec + one balanced layout sitewide */
html body :is(.detail-actions,.explore-actions,.naming-actions,.yiwen-cross-sell-actions,.baby-footer-cross-sell,.am-theory-bottom-actions,.am-article-actions,.article-conversion-cta__buttons).am-promo-row:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4){
  --am-cols:3;--am-w:220px;--am-gap:16px;
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;
  gap:var(--am-gap)!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;
  margin-left:auto!important;margin-right:auto!important;
  padding-left:max(0px,calc((100% - (var(--am-cols) * var(--am-w) + (var(--am-cols) - 1) * var(--am-gap))) / 2))!important;
  padding-right:max(0px,calc((100% - (var(--am-cols) * var(--am-w) + (var(--am-cols) - 1) * var(--am-gap))) / 2))!important;
}
html body .am-promo-row:has(> :nth-child(1):last-child):not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4){--am-cols:1}
html body .am-promo-row:has(> :nth-child(2):last-child):not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4){--am-cols:2}
html body .am-promo-row:has(> :nth-child(4):last-child):not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4){--am-cols:2}
html body .am-promo-row:has(> :nth-child(7):last-child):not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4),
html body .am-promo-row:has(> :nth-child(8):last-child):not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4){--am-cols:4}
html body .am-promo-row > a.am-promo-pill:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v),
html body .detail-coming-soon > button.am-promo-pill:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;
  flex:0 0 var(--am-w,220px)!important;width:var(--am-w,220px)!important;min-width:0!important;max-width:100%!important;
  height:60px!important;min-height:60px!important;max-height:60px!important;margin:0!important;padding:0 14px!important;
  font-family:"Songti SC","STSong","Noto Serif SC",serif!important;font-size:18px!important;font-weight:600!important;line-height:1.2!important;letter-spacing:.72px!important;
  white-space:nowrap!important;text-align:center!important;text-decoration:none!important;text-transform:none!important;
  border-radius:999px!important;border:1px solid rgba(198,138,50,.58)!important;
  color:#123f5c!important;-webkit-text-fill-color:#123f5c!important;
  background:linear-gradient(135deg,#fff4cf 0%,#e8c46d 42%,#d39a3d 100%)!important;
  box-shadow:0 14px 30px rgba(188,132,46,.18),inset 0 1px 0 rgba(255,255,255,.68)!important;
  transform:none!important;opacity:1!important;
}
/* article CTA rows carry long labels: same pill, equal-width 2-column grid so nothing wraps or orphans */
html body :is(.am-article-actions,.article-conversion-cta__buttons).am-promo-row:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z){
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;padding-left:0!important;padding-right:0!important;max-width:1000px!important}
html body :is(.am-article-actions,.article-conversion-cta__buttons).am-promo-row > a.am-promo-pill:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v):not(#am-u){width:100%!important;flex:none!important}
html body :is(.am-article-actions,.article-conversion-cta__buttons).am-promo-row:has(> :nth-child(2n+1):last-child) > a.am-promo-pill:last-child:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v):not(#am-u){grid-column:1 / -1!important;justify-self:center!important;width:calc((100% - 16px) / 2)!important}
html body .detail-coming-soon:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4){display:block!important;margin:22px 0 0!important;padding:0!important}
html body .detail-coming-soon > button.am-promo-pill:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v):not(#am-u){
  cursor:default!important;pointer-events:none!important;
  color:#8f8270!important;-webkit-text-fill-color:#8f8270!important;
  background:linear-gradient(135deg,#f6f2ea 0%,#ece5d8 100%)!important;
  border:1px solid rgba(176,160,132,.55)!important;box-shadow:none!important;
}
@media (max-width:600px){
  html body :is(.detail-actions,.explore-actions,.naming-actions,.yiwen-cross-sell-actions,.baby-footer-cross-sell,.am-theory-bottom-actions,.am-article-actions,.article-conversion-cta__buttons).am-promo-row:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z){
    --am-cols:2;--am-gap:12px;--am-w:min(150px, calc((100% - 12px) / 2));
    padding-left:max(0px,calc((100% - 312px) / 2))!important;padding-right:max(0px,calc((100% - 312px) / 2))!important}
  html body .am-promo-row:has(> :nth-child(1):last-child):not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v){--am-cols:1;--am-w:min(100%,220px)}
  html body .am-promo-row > a.am-promo-pill:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v):not(#am-u),
  html body .detail-coming-soon > button.am-promo-pill:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v):not(#am-u):not(#am-t){height:52px!important;min-height:52px!important;max-height:52px!important;font-size:15px!important;letter-spacing:.3px!important;padding:0 8px!important}
  html body .detail-coming-soon > button.am-promo-pill:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v):not(#am-u):not(#am-t){width:150px!important;flex-basis:150px!important}
  html body :is(.am-article-actions,.article-conversion-cta__buttons).am-promo-row:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v){grid-template-columns:1fr!important;gap:12px!important;padding-left:0!important;padding-right:0!important}
  html body :is(.am-article-actions,.article-conversion-cta__buttons).am-promo-row > a.am-promo-pill:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v):not(#am-u):not(#am-t):not(#am-s){width:100%!important;grid-column:auto!important;font-size:14px!important;letter-spacing:0!important}
}

/* r14b: article CTA labels are long sentences; keep the same pill but let them use two lines inside an equal-height pill instead of clipping */
html body :is(.am-article-actions,.article-conversion-cta__buttons).am-promo-row > a.am-promo-pill:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v):not(#am-u):not(#am-t):not(#am-s):not(#am-r){
  white-space:normal!important;height:auto!important;max-height:none!important;min-height:60px!important;padding:8px 18px!important;font-size:18px!important;line-height:1.3!important;align-self:stretch!important}
@media (max-width:600px){
  html body :is(.am-article-actions,.article-conversion-cta__buttons).am-promo-row > a.am-promo-pill:not(#am-x):not(#am-y):not(#am-p1):not(#am-p2):not(#am-p3):not(#am-p4):not(#am-z):not(#am-v):not(#am-u):not(#am-t):not(#am-s):not(#am-r):not(#am-q){min-height:52px!important;font-size:15px!important;padding:8px 14px!important}
}
