/* LOREUM RC5.15: Editorial recommendations on post pages only.
 * Keep Google ads, iframes, the review score and main article headings unchanged. */
body.single-post {
  --ld-rec-surface: #202937;
  --ld-rec-border: #394556;
  --ld-rec-text: #f4f7fc;
}
/* LOREUM Engagement: its own card grid and continue-reading feature. */
body.single-post .le-related,
body.single-post .le-next-metric {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin: 28px 0;
  color: var(--ld-rec-text);
}
body.single-post .le-related > h2 {
  margin: 0 0 16px!important;
  color: #f4f7fc!important;
  font-size: clamp(21px,2vw,25px)!important;
  line-height: 1.25!important;
  font-weight: 800!important;
  letter-spacing: -.025em;
}
body.single-post .le-related .le-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  min-width:0!important;
  width:100%;
}
body.single-post .le-related .le-card {
  display:block!important;
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
  padding:10px!important;
  color:var(--ld-rec-text)!important;
  background:var(--ld-rec-surface)!important;
  border:1px solid var(--ld-rec-border)!important;
  border-radius:15px!important;
  overflow:hidden;
  text-decoration:none!important;
  transition: border-color .2s ease,transform .2s ease;
}
body.single-post .le-related .le-card .le-image {
  display:block!important;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:10px;
}
body.single-post .le-related .le-card .le-image img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  max-width:100%;
}
body.single-post .le-related .le-card > strong {
  display:block!important;
  margin:9px 0 0!important;
  padding:0!important;
  color:var(--ld-rec-text)!important;
  font-size:clamp(13px,1vw,15px)!important;
  line-height:1.42!important;
  font-weight:700!important;
  letter-spacing:0!important;
  word-break:normal!important;
  overflow-wrap:break-word;
  text-decoration:none!important;
}
body.single-post .le-related .le-card:hover,
body.single-post .le-related .le-card:focus-visible {
  border-color:#c04b5c!important;
}
body.single-post .le-related .le-card:hover { transform:translateY(-2px) }
/* Builder link in the automatic 'continue reading' block. */
body.single-post .le-next-metric .le-link {
  display:grid!important;
  grid-template-columns:minmax(0,175px) minmax(0,1fr);
  align-items:center;
  gap:16px;
  padding:14px!important;
  border:1px solid var(--ld-rec-border)!important;
  border-radius:16px!important;
  background:#202937!important;
  color:#f4f7fc!important;
  text-decoration:none!important;
  min-width:0;
}
body.single-post .le-next-metric .le-link .le-image {
  width:100%;
  max-width:none;
  aspect-ratio:16/9;
  border-radius:11px;
  overflow:hidden;
}
body.single-post .le-next-metric .le-link .le-image img {width:100%;height:100%;object-fit:cover}
body.single-post .le-next-metric .le-link-copy {display:flex;flex-direction:column;gap:5px;min-width:0}
body.single-post .le-next-metric .le-link-copy small {
  color:#ed9ca9!important;
  font-size:10px!important;
  font-weight:800!important;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.single-post .le-next-metric .le-link-copy strong {
  font-size:clamp(15px,1.4vw,19px)!important;
  line-height:1.38!important;
  font-weight:750!important;
  color:#f4f7fc!important;
  overflow-wrap:break-word;
  word-break:normal;
}
body.single-post .le-next-metric .le-link-copy b {
  color:#f5b5c0!important;
  font-size:13px!important;
}
body.single-post .le-surprise {
  color:#f4f7fc!important;
  background:#273344!important;
  border:1px solid #556478!important;
  border-radius:999px;
  font-weight:700;
  text-decoration:none!important;
}
body.single-post .le-surprise:hover {background:#37455a!important;border-color:#ef778a!important}
/* Jannah's separate related-posts widget: scope styles to those cards,
 * never to article-wide .post-title headings. */
body.single-post :is(.related-posts,.related-posts-wrapper,.related-posts-container,.related-posts-list) {
  box-sizing:border-box;
  max-width:100%;
  min-width:0;
  color:var(--ld-rec-text)!important;
}
body.single-post :is(.related-posts,.related-posts-wrapper,.related-posts-container) :is(.related-posts-title,.section-title,h2.section-title) {
  color:#f4f7fc!important;
  font-size:clamp(20px,2vw,25px)!important;
  line-height:1.3!important;
}
body.single-post :is(.related-posts,.related-posts-wrapper,.related-posts-container) :is(.post-title,.post-title a,.entry-title,.entry-title a,h3,h3 a,h4,h4 a) {
  color:#f4f7fc!important;
  font-size:clamp(13px,1vw,15px)!important;
  line-height:1.42!important;
  letter-spacing:0!important;
  font-weight:700!important;
  text-transform:none!important;
  text-decoration:none!important;
  overflow-wrap:break-word;
  word-break:normal!important;
  white-space:normal!important;
}
body.single-post :is(.related-posts,.related-posts-wrapper,.related-posts-container) :is(.post-title a,.entry-title a,h3 a,h4 a):hover {
  color:#ffc2cb!important;
}
body.single-post :is(.related-posts,.related-posts-wrapper,.related-posts-container) :is(.post-thumb,.post-thumbnail,.post-img) img {
  max-width:100%;height:auto;object-fit:cover;border-radius:10px;
}
/* Do not allow a generic dark theme rule to blacken Jannah's related cards. */
body.single-post :is(.related-posts,.related-posts-wrapper,.related-posts-container) :is(.posts-list,.posts-list li,.related-item,.related-posts-list) {
  min-width:0;
}
@media(max-width:680px) {
  body.single-post .le-related .le-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.single-post .le-next-metric .le-link {grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:390px) {
  body.single-post .le-related .le-grid {grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce) {
  body.single-post .le-related .le-card {transition:none!important;transform:none!important}
}


/* RC5.16: Jannah related recommendations, with a DOM hook to accommodate
   different parent theme layouts. These changes never target the article body. */
body.single-post .ld-fixed-related,
body.single-post .ld-fixed-related * { box-sizing:border-box; min-width:0; }
body.single-post .ld-fixed-related :is(h3,h4,h5,.post-title,.entry-title,.post-details),
body.single-post .ld-fixed-related :is(h3,h4,h5,.post-title,.entry-title,.post-details) a,
body.single-post .ld-fixed-related a.ld-related-title {
  color:#f4f7fc!important;
  font-family:inherit!important;
  font-size:14px!important;
  line-height:1.42!important;
  font-weight:700!important;
  letter-spacing:0!important;
  text-transform:none!important;
  text-shadow:none!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
  hyphens:auto;
  max-width:100%;
}
body.single-post .ld-fixed-related a.ld-related-title:hover {color:#ffb7c3!important}
body.single-post .ld-fixed-related :is(.post-title,.entry-title) {margin:8px 0 0!important;padding:0!important}
body.single-post .ld-fixed-related img{max-width:100%;height:auto;object-fit:cover;border-radius:11px}
/* The floating 'CTETE TAKE' recommendation is Jannah's Fly Check Also box.
   This is NOT Google AdSense. Keep it disabled to avoid covering articles. */
body.single-post :is(#check-also-box,.check-also-box,#fly-check-also-box,.fly-check-also-box,#check-also,.check-also){display:none!important}

/* RC5.17: High-specificity repair for native Jannah related-post CARDS only.
   JS tags the actual related list by the visible section heading. */
body.single-post .ld-related-517,
body.single-post .ld-related-517 * { box-sizing:border-box !important; min-width:0 !important; }
body.single-post .ld-related-517 .ld-related-517-title,
body.single-post .ld-related-517 .ld-related-517-title:link,
body.single-post .ld-related-517 .ld-related-517-title:visited,
body.single-post .ld-related-517 .ld-related-517-title *,
body.single-post .ld-related-517 .ld-related-517-title-wrap,
body.single-post .ld-related-517 .ld-related-517-title-wrap :is(a,h2,h3,h4,h5,p,span,strong) {
 color:#eef2fa !important; font-size:14px !important; line-height:1.42 !important;
 font-weight:700 !important; font-family:inherit !important; letter-spacing:normal !important;
 text-transform:none !important; text-shadow:none !important; text-decoration:none !important;
 white-space:normal !important; overflow-wrap:anywhere !important; word-break:normal !important;
 max-width:100% !important; height:auto !important; margin-top:8px !important;
}
body.single-post .ld-related-517 .ld-related-517-title:hover {color:#ffb1bd !important;}
body.single-post .ld-related-517 img {max-width:100% !important; height:auto !important; border-radius:11px;}
/* The floating Jannah Check Also panel is not an advertising placement. */
body.single-post :is(#check-also-box,.check-also-box,#fly-check-also-box,.fly-check-also-box,#check-also,.check-also,.check-also-wrapper,#tie-check-also,.tie-check-also) {display:none !important;}
