/* ==== HARD RESET of Astra / older tests on single posts ==== */
body.single-post,
body.single-post .site,
body.single-post .site-content,
body.single-post .ast-container,
body.single-post .ast-separate-container,
body.single-post #primary,
body.single-post .site-main,
body.single-post .ast-article-single,
body.single-post .ast-article-post{
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* Kill any width/padding your previous experiments put on entry-content */
body.single-post .entry-content{
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ==== MAIN WRAPPER: 10% gutters; center everything ==== */
body.single-post .ypbb-single{
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto !important;
  padding-left: 10% !important;
  padding-right: 10% !important;
}

/* Key sections sit in a nice readable column */
body.single-post .ypbb-hero,
body.single-post .ypbb-article,
body.single-post .ypbb-tags,
body.single-post .ypbb-dontmiss-minimal,
body.single-post .ypbb-related,
body.single-post .ypbb-comments{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Respect editor "align center" for images */
.aligncenter,
.wp-block-image .aligncenter,
figure.wp-block-image.aligncenter,
.wp-caption.aligncenter{
  display: block;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}
.wp-block-image img,
.wp-caption img{ display:inline-block; height:auto; }

/* ==== HERO ==== */
.ypbb-hero{ margin: 0 0 3%; }
.ypbb-hero__eyebrow{
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #7a7a7a; margin-bottom: 8px;
}

/* Title size (no clamp); prevent weird clipping and allow wrapping */
.ypbb-hero__title{
  font-weight: 800;
  font-size: 42px;          /* desktop default */
  line-height: 1.12;
  margin: 0 0 10px;
  color: #121212;
  overflow: visible !important;
  white-space: normal !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  word-break: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 1024px){
  .ypbb-hero__title{ font-size: 36px; }
}
@media (max-width: 640px){
  .ypbb-hero__title{ font-size: 28px; }
}

.ypbb-hero__meta{ color:#4a4a4a; font-size:14px; }
.ypbb-dot{ margin: 0 8px; }

.ypbb-hero__media{ margin-top: 1.5%; }
.ypbb-hero__media img{
  width: 100%; height: auto; display: block;
  border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.ypbb-hero__caption{ font-size: 13px; color: #6a6a6a; margin-top: 8px; }

/* ==== ARTICLE BODY ==== */
.ypbb-prose{ color:#232323; line-height:1.72; font-size:18px; }
.ypbb-prose p{ margin: 0 0 18px; }
.ypbb-prose h2{ font-size: 32px; margin: 40px 0 16px; font-weight: 800; }
.ypbb-prose h3{ font-size: 24px; margin: 28px 0 12px; font-weight: 800; }
.ypbb-prose img{ max-width:100%; height:auto; border-radius:6px; }
.ypbb-prose figure{ margin:24px 0; }
.ypbb-prose figcaption{ font-size:14px; color:#6a6a6a; margin-top:6px; }

/* ==== TAGS ==== */
.ypbb-tags{ margin-top: 2%; font-size:14px; color:#4a4a4a; }
.ypbb-tags a{ color:#0b7f62; text-decoration:none; }
.ypbb-tags a:hover{ text-decoration:underline; }

/* ==== DON'T MISS / UP NEXT ==== */
.ypbb-dontmiss-minimal{ margin-top: 3%; }

/* Two even columns with a % gap; left/right alignment */
.ypbb-dm-grid{
  display: flex;
  justify-content: space-between;
  gap: 6%;
}
.ypbb-dm-col{ flex: 1 1 47%; min-width: 0; }
.ypbb-dm-col--left{  text-align:left; }
.ypbb-dm-col--right{ text-align:right; }
.ypbb-dm-col--right .ypbb-dm-eyebrow{
  padding-right: 16px;
}
.ypbb-dm-col--left  .ypbb-dm-eyebrow{
  padding-left: 16px;
}
.ypbb-dm-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;                 /* space between icon and text */
  padding: 6px 12px;         /* give the icon breathing room */
  line-height: 1.2;          /* prevents vertical cutoffs */
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6a6a6a;
  overflow: visible !important;
}

/* Icon sizing & rendering */
.ypbb-dm-icon{
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ypbb-dm-icon svg{
  width: 100%;
  height: 100%;
  display: block;            /* no inline gap */
}


.ypbb-dm-eyebrow--right{ flex-direction: row-reverse; }

.ypbb-dm-title{
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 800;
  word-wrap: break-word;
}
.ypbb-dm-title a{
  color: #111 !important;          /* stop theme blue */
  text-decoration: none !important;
}
.ypbb-dm-title a:hover{ text-decoration: underline !important; }

@media (max-width: 900px){
  .ypbb-dm-grid{ flex-direction: column; gap: 18px; }
  .ypbb-dm-col--right{ text-align: left; }
}

/* ==== RELATED ==== */
.ypbb-related{ margin-top: 3.5%; }
.ypbb-related__title{ font-size: 20px; font-weight: 800; margin: 0 0 12px; text-align: center; }
.ypbb-related__grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media (max-width: 960px){ .ypbb-related__grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 680px){ .ypbb-related__grid{ grid-template-columns: repeat(2,1fr); } }
.ypbb-card{ display: flex; flex-direction: column; gap: 8px; }
.ypbb-card__thumb img{ width: 100%; height: auto; display: block; border-radius: 8px; }
.ypbb-card__title{ font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0; }
.ypbb-card__title a{ color:#111; text-decoration:none; }
.ypbb-card__title a:hover{ text-decoration:underline; }

/* ==== COMMENTS (2-up) ==== */
.ypbb-comments{ margin-top: 4%; }
.ypbb-cmt-slider{ position:relative; overflow:hidden; }
.ypbb-cmt-track{ display:flex; transition:transform .35s ease; will-change:transform; }
.ypbb-cmt-slide{ flex:0 0 100%; }
.comment-list{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:680px){ .comment-list{ grid-template-columns:1fr; } }

.ypbb-cmt-min{ padding:14px; border-radius:10px; background:#f7f7f7; }
.ypbb-cmt-min__text{ font-style:italic; }
.ypbb-cmt-min__by{ margin-top:6px; font-size:13px; color:#666; }

.ypbb-cmt-pager{ display:flex; gap:10px; margin-top:10px; }
.ypbb-cmt-prev, .ypbb-cmt-next{
  width:36px; height:36px; border-radius:50%; border:0; background:#f0f0f0;
  cursor:pointer; display:grid; place-items:center;
}
.ypbb-cmt-prev.is-disabled, .ypbb-cmt-next.is-disabled{ opacity:.4; cursor:not-allowed; }

/* ==== Submit button ==== */
.ypbb-button--comment{
  background:#0b7f62; color:#fff; border:0; border-radius:999px; padding:12px 20px; font-weight:700; cursor:pointer;
}
.ypbb-button--comment:hover{ filter:brightness(.95); }

/* ==== Mobile gutters ==== */
@media (max-width:768px){
  .ypbb-single{ padding-left: 4% !important; padding-right: 4% !important; }
}

.ypbb-dontmiss-minimal,
.ypbb-dm-grid,
.ypbb-dm-col{
  overflow: visible !important;
}
