/* Beauty Pitara — Rose & Ivory Magazine: scoped exclusively to active single posts. */
body.single-post.bp-ae-active {
  --bp-ivory: #FAF7F5;
  --bp-blush: #F0E0DF;
  --bp-rose: #B47783;
  --bp-burgundy: #813E53;
  --bp-ink: #30272B;
  --bp-muted: #66585E;
}

body.single-post.bp-ae-active .site-main .entry-header,
body.single-post.bp-ae-active .site-main .entry-content,
body.single-post.bp-ae-active .site-main .entry-summary,
body.single-post.bp-ae-active .site-main .entry-footer {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

body.single-post.bp-ae-active .site-main .entry-header {
  text-align: center;
  padding-bottom: 8px;
}

body.single-post.bp-ae-active .bp-ae-category-label {
  color: var(--bp-burgundy);
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.5;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 auto 15px;
  text-align: center;
}

body.single-post.bp-ae-active .site-main .entry-title {
  color: var(--bp-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(29px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.23;
  letter-spacing: -.022em;
  text-wrap: balance;
}

body.single-post.bp-ae-active .site-main .entry-header .entry-meta {
  color: var(--bp-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 16px;
}
body.single-post.bp-ae-active .site-main .entry-header .entry-meta a { color: var(--bp-burgundy); }

body.single-post.bp-ae-active .site-main .entry-content {
  color: var(--bp-ink);
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
body.single-post.bp-ae-active .site-main .entry-content > p { margin-bottom: 1.45em; }

body.single-post.bp-ae-active .site-main .entry-content h2:not(.bp-ae-recommendations-title) {
  color: var(--bp-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.014em;
  margin-top: 44px;
  margin-bottom: 19px;
}
body.single-post.bp-ae-active .site-main .entry-content h3 {
  color: var(--bp-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 37px;
  margin-bottom: 19px;
}
body.single-post.bp-ae-active .site-main .entry-content h3::after {
  content: '';
  display: block;
  width: 48px;
  max-width: 100%;
  height: 2px;
  margin-top: 12px;
  background: var(--bp-rose);
}
body.single-post.bp-ae-active .site-main .entry-content h4 {
  color: var(--bp-ink);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.4;
  margin-top: 25px;
}

/* v1.1: title and metadata first, then the ORIGINAL GeneratePress featured image.
   Avoid any image duplication or content rewriting; keep image's natural ratio. */
body.single-post.bp-ae-active .site-main .entry-header {
  margin-bottom: 0;
  padding-bottom: 0;
}
body.single-post.bp-ae-active .site-main .entry-header .entry-meta {
  margin-top: 11px;
  margin-bottom: 0;
}
body.single-post.bp-ae-active .site-main .inside-article > .post-image,
body.single-post.bp-ae-active .site-main .inside-article > .featured-image,
body.single-post.bp-ae-active .site-main .inside-article > .page-header-image-single {
  box-sizing: border-box;
  max-width: 760px;
  margin: 22px auto 24px;
  text-align: center;
}
body.single-post.bp-ae-active .site-main .entry-content {
  margin-top: 14px;
}

/* Natural original-image proportions: editorial width on desktop, never crop. */
body.single-post.bp-ae-active .site-main .post-image img,
body.single-post.bp-ae-active .site-main .featured-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  border-radius: 5px;
}
body.single-post.bp-ae-active .site-main .entry-content figure.wp-block-image,
body.single-post.bp-ae-active .site-main .entry-content figure.wp-caption {
  margin: 26px auto 28px;
  max-width: 620px;
  text-align: center;
}
body.single-post.bp-ae-active .site-main .entry-content figure.wp-block-image img,
body.single-post.bp-ae-active .site-main .entry-content figure.wp-caption img,
body.single-post.bp-ae-active .site-main .entry-content > p > img,
body.single-post.bp-ae-active .site-main .entry-content > p > a > img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 620px);
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  border-radius: 5px;
}
body.single-post.bp-ae-active .site-main .entry-content figcaption,
body.single-post.bp-ae-active .site-main .entry-content .wp-caption-text {
  color: var(--bp-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 9px;
}

/* Small readable notice; close to main post header, not hidden behind a policy link. */
body.single-post.bp-ae-active .bp-ae-disclosure {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 17px;
  margin: 14px 0 29px;
  background: var(--bp-ivory);
  border: 1px solid #E9D7DB;
  border-left: 3px solid var(--bp-rose);
  border-radius: 5px;
  color: var(--bp-ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
body.single-post.bp-ae-active .bp-ae-disclosure-icon { color: var(--bp-burgundy); font-size: 20px; line-height: 1; }
body.single-post.bp-ae-active .bp-ae-disclosure strong { display:block; color: var(--bp-burgundy); font-weight: 700; margin-bottom: 3px; }
body.single-post.bp-ae-active .bp-ae-disclosure p { margin: 0; font-size: 14px; line-height: 1.55; }
body.single-post.bp-ae-active .bp-ae-disclosure a { color: var(--bp-burgundy); text-decoration: underline; text-underline-offset: 2px; }

/* Restyle the installed Easy Table of Contents, without creating another TOC. */
body.single-post.bp-ae-active .site-main .entry-content #ez-toc-container,
body.single-post.bp-ae-active .site-main .entry-content .ez-toc-container {
  box-sizing: border-box;
  background: var(--bp-ivory);
  border: 1px solid #E9D7DB;
  border-radius: 7px;
  box-shadow: none;
  padding: 16px 18px;
  max-width: 100%;
}
body.single-post.bp-ae-active .site-main .entry-content .ez-toc-title { font-size: 17px; color: var(--bp-ink); }
body.single-post.bp-ae-active .site-main .entry-content .ez-toc-container a { color: #65444F; }
body.single-post.bp-ae-active .site-main .entry-content .ez-toc-container a:hover { color: var(--bp-burgundy); }

/* Static, fully linked recommendations: no autoplay, no JavaScript, no carousel library. */
body.single-post.bp-ae-active .site-main .entry-content nav.bp-ae-recommendations {
  box-sizing: border-box;
  display: block;
  clear: both;
  padding: 21px 20px;
  margin: 36px 0;
  background: var(--bp-ivory);
  border: 1px solid #E9D7DB;
  border-radius: 9px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.single-post.bp-ae-active .bp-ae-recommendations-topline {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--bp-rose);
  margin-bottom: 7px;
}
body.single-post.bp-ae-active .site-main .entry-content h2.bp-ae-recommendations-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23px;
  line-height: 1.3;
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--bp-ink);
  letter-spacing: -.01em;
}
body.single-post.bp-ae-active .bp-ae-recommendations-list { display: grid; grid-template-columns: 1fr; gap: 13px; }
body.single-post.bp-ae-active .bp-ae-related-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
  padding: 10px;
  background: #fff;
  border: 1px solid #EDDFE2;
  border-radius: 6px;
  color: var(--bp-ink);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
body.single-post.bp-ae-active .bp-ae-related-card:hover,
body.single-post.bp-ae-active .bp-ae-related-card:focus-visible { border-color: var(--bp-rose); background: #FFFCFD; }
body.single-post.bp-ae-active .bp-ae-related-card:focus-visible { outline: 2px solid var(--bp-burgundy); outline-offset: 2px; }
/* Show every pixel of the original featured image, even images containing overlaid title text. */
body.single-post.bp-ae-active .bp-ae-card-thumbnail { display:flex; align-items:center; justify-content:center; flex:0 0 120px; width:120px; height:95px; overflow:hidden; border-radius:4px; background:#F7F0EF; }
body.single-post.bp-ae-active .bp-ae-card-thumbnail .bp-ae-card-image { display:block; width:auto; height:auto; max-width:100%; max-height:100%; margin:0; border-radius:0; object-fit:contain !important; object-position:center center; }
body.single-post.bp-ae-active .bp-ae-card-copy { display: flex; flex-direction: column; min-width:0; gap: 4px; }
body.single-post.bp-ae-active .bp-ae-card-category { color:var(--bp-burgundy); font-size:10px; font-weight:700; letter-spacing:.07em; }
body.single-post.bp-ae-active .bp-ae-card-title { color:var(--bp-ink); font-size:15px; font-weight:700; line-height:1.42; }
body.single-post.bp-ae-active .bp-ae-card-cta { color:var(--bp-burgundy); font-size:12px; line-height:1.4; }

/* Final recommendations are a simple responsive card grid. */
@media (min-width: 700px) {
  body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-recommendations-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-card-thumbnail { flex-basis: 108px; width:108px; height:88px; }
  body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-related-card { gap: 10px; }
}
@media (max-width: 767px) {
  body.single-post.bp-ae-active .site-main .entry-header .entry-meta { margin-top: 8px; }
  body.single-post.bp-ae-active .site-main .inside-article > .post-image,
  body.single-post.bp-ae-active .site-main .inside-article > .featured-image,
  body.single-post.bp-ae-active .site-main .inside-article > .page-header-image-single {
    width: 100%;
    max-width: 100%;
    margin: 16px auto 17px;
  }
  body.single-post.bp-ae-active .site-main .entry-content { margin-top: 10px; }
  body.single-post.bp-ae-active .site-main .entry-title { font-size: 29px; }
  body.single-post.bp-ae-active .site-main .entry-content { font-size:17px; line-height:1.7; }
  body.single-post.bp-ae-active .site-main .entry-content h2:not(.bp-ae-recommendations-title) { font-size:24px; margin-top: 35px; }
  body.single-post.bp-ae-active .site-main .entry-content h3 { font-size:23px; margin-top:33px; }
  body.single-post.bp-ae-active .site-main .entry-content h4 { font-size:20px; }
  body.single-post.bp-ae-active .site-main .entry-content figure.wp-block-image,
  body.single-post.bp-ae-active .site-main .entry-content figure.wp-caption { max-width: 100%; }
  body.single-post.bp-ae-active .site-main .entry-content figure.wp-block-image img,
  body.single-post.bp-ae-active .site-main .entry-content figure.wp-caption img,
  body.single-post.bp-ae-active .site-main .entry-content > p > img,
  body.single-post.bp-ae-active .site-main .entry-content > p > a > img { max-width: 100%; }
  body.single-post.bp-ae-active .site-main .entry-content nav.bp-ae-recommendations { padding:17px 13px; margin: 30px 0; }
  body.single-post.bp-ae-active .site-main .entry-content h2.bp-ae-recommendations-title { font-size: 21px; }
  body.single-post.bp-ae-active .bp-ae-card-thumbnail { flex-basis: 104px; width:104px; height:88px; }
  body.single-post.bp-ae-active .bp-ae-related-card { padding:8px; gap:10px; }
  body.single-post.bp-ae-active .bp-ae-card-title { font-size:14px; }
}
@media (max-width: 359px) {
  body.single-post.bp-ae-active .bp-ae-card-thumbnail { flex-basis:88px; width:88px; height:76px; }
  body.single-post.bp-ae-active .bp-ae-card-cta { font-size:11px; }
}
@media (prefers-reduced-motion: reduce) {
  body.single-post.bp-ae-active .bp-ae-related-card { transition:none; }
}


/* v1.3: End-of-article recommendations are an unboxed, image-first magazine grid.
   This applies ONLY to the final "More From Beauty Pitara" section.
   The two IN-ARTICLE related boxes retain their original horizontal bordered cards. */
body.single-post.bp-ae-active .site-main .entry-content nav.bp-ae-recommendations.bp-ae-footer-related {
  background: transparent;
  border: 0;
  border-top: 1px solid #eadadc;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 0 0;
  margin: 46px 0 30px;
}
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-recommendations-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
}
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-related-card {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--bp-ink);
  text-decoration: none;
  transition: none;
}
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-related-card:hover,
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-related-card:focus-visible {
  border: 0;
  background: transparent;
}
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-related-card:focus-visible {
  outline: 2px solid var(--bp-burgundy);
  outline-offset: 4px;
}
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-card-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  flex: none;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  margin: 0 0 11px;
}
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-card-thumbnail .bp-ae-card-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain !important;
  object-position: center center;
  border-radius: 4px;
}
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-card-copy {
  display: block;
}
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-card-category {
  display: block;
  margin: 0 0 5px;
  font-size: 10px;
  line-height: 1.45;
}
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-card-title {
  display: block;
  color: var(--bp-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-related-card:hover .bp-ae-card-title,
body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-related-card:focus-visible .bp-ae-card-title {
  color: var(--bp-burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 767px) {
  body.single-post.bp-ae-active .site-main .entry-content nav.bp-ae-recommendations.bp-ae-footer-related {
    padding: 22px 0 0;
    margin: 36px 0 22px;
  }
  body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-recommendations-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 13px;
  }
  body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-card-title {
    font-size: 15px;
  }
}
@media (max-width: 339px) {
  body.single-post.bp-ae-active .bp-ae-footer-related .bp-ae-recommendations-list {
    grid-template-columns: 1fr;
  }
}
