/* ---------- Blog single posts ---------- */

.regenred-post-main{
  background:var(--ink);
  color:var(--bone);
}

.regenred-post{
  display:block;
}

/* Hero — only large image on the page */
.regenred-post-hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-end;
  min-height:clamp(280px, 42vw, 480px);
  max-height:520px;
  padding:calc(var(--header-total, 102px) + 36px) 0 48px;
  overflow:hidden;
  background:
    radial-gradient(ellipse 55% 50% at 18% 40%, rgba(179,19,41,.28), transparent 62%),
    var(--ink-2);
  border-bottom:1px solid var(--line);
}
.regenred-post-hero__media{
  position:absolute;
  inset:0;
  z-index:0;
}
.regenred-post-hero__img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.regenred-post-hero__overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg, rgba(21,10,13,.35) 0%, rgba(21,10,13,.72) 55%, rgba(21,10,13,.92) 100%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(179,19,41,.18), transparent 60%);
  pointer-events:none;
}
.regenred-post-hero__inner{
  position:relative;
  z-index:2;
  max-width:var(--max);
  width:100%;
  margin:0 auto;
  padding:0 24px;
}
.regenred-post-hero__kicker{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--oxygen);
  margin:0 0 16px;
  display:flex;
  align-items:center;
  gap:12px;
}
.regenred-post-hero__kicker::before{
  content:"";
  width:28px;
  height:1px;
  background:var(--oxygen);
}
.regenred-post-hero__title{
  font-family:'Instrument Serif',serif;
  font-weight:400;
  font-size:clamp(32px, 4.8vw, 56px);
  line-height:1.08;
  letter-spacing:-.02em;
  color:var(--bone);
  max-width:22ch;
  margin:0;
}
.regenred-post-hero__meta{
  margin:18px 0 0;
  font-size:13.5px;
  color:var(--mute);
  letter-spacing:.04em;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.regenred-post-hero__sep{opacity:.6}

/* Body rail */
.regenred-post-body{
  max-width:var(--max);
  margin:0 auto;
  padding:56px 24px 100px;
}
.regenred-post-content{
  color:var(--bone-dim);
  font-size:17px;
  line-height:1.75;
}
.regenred-post-content > *:first-child{margin-top:0}
.regenred-post-content p{
  margin:0 0 1.15em;
  max-width:70ch;
}
.regenred-post-content p:last-child{margin-bottom:0}
.regenred-post-content a{
  color:var(--oxygen);
  text-decoration:underline;
  text-underline-offset:3px;
}
.regenred-post-content a:hover{color:var(--bone)}
.regenred-post-content h2,
.regenred-post-content h3{
  font-family:'Instrument Serif',serif;
  font-weight:400;
  color:var(--bone);
  line-height:1.15;
  margin:1.6em 0 .55em;
}
.regenred-post-content h2{font-size:clamp(28px, 3.2vw, 38px)}
.regenred-post-content h3{font-size:clamp(22px, 2.4vw, 28px)}
.regenred-post-content ul,
.regenred-post-content ol{
  margin:0 0 1.25em;
  padding-left:1.25em;
  max-width:70ch;
}
.regenred-post-content li{margin:.35em 0}
.regenred-post-content blockquote{
  margin:1.5em 0;
  padding:18px 22px;
  border-left:2px solid var(--arterial);
  background:rgba(245,239,233,.04);
  font-family:'Instrument Serif',serif;
  font-style:italic;
  font-size:clamp(20px, 2.2vw, 26px);
  color:var(--bone);
  max-width:62ch;
}

/* Cap ALL body images (Gutenberg, Kadence, Elementor, raw HTML) */
.regenred-post-content img,
.regenred-post-body img{
  max-width:100% !important;
  height:auto !important;
}

.regenred-post-content .wp-block-image,
.regenred-post-content .wp-block-image figure,
.regenred-post-content figure.wp-block-image,
.regenred-post-content figure:not(.regenred-post-card__media),
.regenred-post-content .kb-figure-wrap,
.regenred-post-content .kadence-blocks-gallery-item,
.regenred-post-content .wp-block-media-text__media,
.regenred-post-body .elementor-widget-image{
  margin:0 0 1.25em;
  max-width:100%;
  overflow:hidden;
  border-radius:6px;
  border:1px solid var(--line);
  background:var(--ink-2);
}

/* Force a short crop box so tall/portrait photos cannot dominate */
.regenred-post-content .wp-block-image img,
.regenred-post-content figure img,
.regenred-post-content .kb-gallery-image-img,
.regenred-post-content .kadence-blocks-gallery-item img,
.regenred-post-content .wp-block-media-text__media img,
.regenred-post-content p > img,
.regenred-post-content > img,
.regenred-post-body .elementor-widget-image img,
.regenred-post-body .elementor img:not(.regenred-post-card__media img):not(.regenred-post-media-pair__visual img){
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  max-height:280px !important;
  height:280px !important;
  object-fit:cover !important;
  object-position:center !important;
  margin:0 !important;
  border-radius:0;
}

/* Side-by-side columns → compact card-like grid */
.regenred-post-content .wp-block-columns{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:20px !important;
  margin:0 0 36px !important;
  align-items:stretch !important;
}
.regenred-post-content .wp-block-columns.are-vertically-aligned-top,
.regenred-post-content .wp-block-columns{
  flex-wrap:unset;
}
.regenred-post-content .wp-block-column{
  margin:0 !important;
  padding:0 !important;
  background:var(--ink-2);
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  min-width:0 !important;
}
.regenred-post-content .wp-block-column .wp-block-image,
.regenred-post-content .wp-block-column figure{
  margin:0 !important;
  border:none;
  border-radius:0;
}
.regenred-post-content .wp-block-column img{
  max-height:200px !important;
  height:200px !important;
}
.regenred-post-content .wp-block-column > *:not(.wp-block-image):not(figure){
  padding-left:16px;
  padding-right:16px;
}
.regenred-post-content .wp-block-column > *:last-child{
  padding-bottom:16px;
}
.regenred-post-content .wp-block-column h2,
.regenred-post-content .wp-block-column h3,
.regenred-post-content .wp-block-column h4{
  margin:14px 16px 8px !important;
  font-size:clamp(18px, 2vw, 22px) !important;
  padding:0 !important;
}

/* Galleries: tighter tiles */
.regenred-post-content .wp-block-gallery,
.regenred-post-content .kb-gallery-ul{
  gap:16px !important;
  margin:0 0 36px !important;
}
.regenred-post-content .wp-block-gallery .wp-block-image,
.regenred-post-content .wp-block-gallery figure{
  margin:0 !important;
}
.regenred-post-content .wp-block-gallery img{
  max-height:180px !important;
  height:180px !important;
}

/* Media-text block */
.regenred-post-content .wp-block-media-text{
  gap:24px;
  margin:0 0 36px;
  align-items:center !important;
}
.regenred-post-content .wp-block-media-text__media{
  max-height:260px;
}
.regenred-post-content .wp-block-media-text__media img{
  max-height:260px !important;
  height:260px !important;
}

/* Hide duplicate post title in body (theme hero already shows it) */
.regenred-post-content > h1:first-child,
.regenred-post-content > .wp-block-heading:first-child h1,
.regenred-post-content > h1.wp-block-heading:first-child{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Broken Kadence heading leftovers — style if they render as HTML */
.regenred-post-content .kt-adv-heading,
.regenred-post-content .wp-block-kadence-advancedheading{
  font-family:'Instrument Serif',serif;
  font-weight:400;
  color:var(--bone);
}

/* Section band widget */
.regenred-post-section-band{
  margin:48px 0 28px;
  padding:18px 22px;
  background:var(--ink-2);
  border:1px solid var(--line);
  border-left:3px solid var(--arterial);
  border-radius:4px;
}
.regenred-post-section-band__title{
  margin:0;
  font-family:'Instrument Serif',serif;
  font-weight:400;
  font-size:clamp(22px, 2.6vw, 30px);
  line-height:1.2;
  color:var(--bone);
  letter-spacing:-.01em;
}
.regenred-post-section-band__sub{
  margin:8px 0 0;
  font-size:14.5px;
  color:var(--mute);
  max-width:62ch;
  line-height:1.55;
}

/* Card grid */
.regenred-post-grid{
  display:grid;
  gap:22px;
  margin:0 0 40px;
  width:100%;
}
.regenred-post-grid--cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}
.regenred-post-grid--cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}
.regenred-post-grid--cols-4{grid-template-columns:repeat(2, minmax(0, 1fr))}

.regenred-post-card{
  display:flex;
  flex-direction:column;
  background:var(--ink-2);
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  height:100%;
  transition:border-color .25s ease, transform .25s ease;
}
.regenred-post-card:hover{
  border-color:rgba(255,77,94,.35);
  transform:translateY(-2px);
}
.regenred-post-card__media{
  position:relative;
  width:100%;
  aspect-ratio:16 / 10;
  background:var(--ink);
  overflow:hidden;
}
.regenred-post-grid--cols-4 .regenred-post-card__media{
  aspect-ratio:4 / 3;
}
.regenred-post-card__media img{
  width:100% !important;
  height:100% !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center;
  display:block;
  margin:0 !important;
  border-radius:0;
}
.regenred-post-card__body{
  padding:20px 20px 24px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.regenred-post-card__title{
  margin:0;
  font-family:'Instrument Serif',serif;
  font-weight:400;
  font-size:clamp(20px, 2vw, 24px);
  line-height:1.2;
  color:var(--bone);
}
.regenred-post-card__text{
  margin:0;
  font-size:14.5px;
  line-height:1.65;
  color:var(--bone-dim);
}
.regenred-post-card--text-only .regenred-post-card__body{
  padding:26px 24px;
}
.regenred-post-card--text-only .regenred-post-card__title{
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
  margin-bottom:4px;
}

/* Media card pair (side-by-side image + copy) */
.regenred-post-media-pair{
  display:grid;
  grid-template-columns:minmax(0, .42fr) minmax(0, .58fr);
  gap:28px;
  align-items:center;
  margin:0 0 40px;
  padding:0;
}
.regenred-post-media-pair--flip{
  grid-template-columns:minmax(0, .58fr) minmax(0, .42fr);
}
.regenred-post-media-pair--flip .regenred-post-media-pair__visual{order:2}
.regenred-post-media-pair--flip .regenred-post-media-pair__copy{order:1}
.regenred-post-media-pair__visual{
  position:relative;
  border-radius:6px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--ink-2);
  aspect-ratio:4 / 3;
  max-height:320px;
}
.regenred-post-media-pair__visual img{
  width:100% !important;
  height:100% !important;
  max-height:none !important;
  object-fit:cover !important;
  margin:0 !important;
  border-radius:0;
}
.regenred-post-media-pair__copy h3{
  margin:0 0 12px;
  font-family:'Instrument Serif',serif;
  font-weight:400;
  font-size:clamp(22px, 2.4vw, 28px);
  color:var(--bone);
  line-height:1.15;
}
.regenred-post-media-pair__copy p{
  margin:0;
  font-size:15.5px;
  line-height:1.7;
  color:var(--bone-dim);
  max-width:none;
}

.regenred-post-pages{
  margin-top:40px;
  font-size:14px;
  color:var(--mute);
}

@media (max-width:960px){
  .regenred-post-hero{
    min-height:260px;
    max-height:380px;
    padding:calc(var(--header-total, 102px) + 28px) 0 36px;
  }
  .regenred-post-hero__title{max-width:none}
  .regenred-post-body{padding:40px 20px 72px}
  .regenred-post-grid--cols-2,
  .regenred-post-grid--cols-3,
  .regenred-post-grid--cols-4{
    grid-template-columns:1fr;
  }
  .regenred-post-content .wp-block-image img,
  .regenred-post-content figure img,
  .regenred-post-content .kb-gallery-image-img,
  .regenred-post-content .kadence-blocks-gallery-item img,
  .regenred-post-content .wp-block-media-text__media img,
  .regenred-post-content p > img,
  .regenred-post-content > img,
  .regenred-post-body .elementor-widget-image img,
  .regenred-post-body .elementor img:not(.regenred-post-card__media img):not(.regenred-post-media-pair__visual img){
    max-height:200px !important;
    height:200px !important;
  }
  .regenred-post-content .wp-block-columns{
    grid-template-columns:1fr !important;
  }
  .regenred-post-content .wp-block-column img{
    max-height:180px !important;
    height:180px !important;
  }
  .regenred-post-content .wp-block-gallery img{
    max-height:160px !important;
    height:160px !important;
  }
  .regenred-post-media-pair,
  .regenred-post-media-pair--flip{
    grid-template-columns:1fr;
  }
  .regenred-post-media-pair--flip .regenred-post-media-pair__visual,
  .regenred-post-media-pair--flip .regenred-post-media-pair__copy{
    order:unset;
  }
  .regenred-post-media-pair__visual{
    max-height:240px;
  }
}

/* ---------- Blog index / archive ---------- */
.regenred-blog-index{
  background:var(--ink);
  color:var(--bone);
}
.regenred-blog-index-hero{
  position:relative;
  padding:calc(var(--header-total, 102px) + 56px) 0 48px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 50% at 12% 30%, rgba(179,19,41,.22), transparent 62%),
    var(--ink-2);
}
.regenred-blog-index-hero__inner{
  max-width:var(--max);
  margin:0 auto;
  padding:0 24px;
}
.regenred-blog-index-hero__kicker{
  font-family:'IBM Plex Mono',monospace;
  font-size:12px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--oxygen);
  margin:0 0 16px;
  display:flex;
  align-items:center;
  gap:12px;
}
.regenred-blog-index-hero__kicker::before{
  content:"";
  width:28px;
  height:1px;
  background:var(--oxygen);
}
.regenred-blog-index-hero__title{
  font-family:'Instrument Serif',serif;
  font-weight:400;
  font-size:clamp(36px, 5vw, 58px);
  line-height:1.08;
  letter-spacing:-.02em;
  color:var(--bone);
  margin:0;
  max-width:16ch;
}
.regenred-blog-index-hero__title span{
  font-weight:400;
}
.regenred-blog-index-hero__lede{
  margin:18px 0 0;
  max-width:52ch;
  font-size:17px;
  line-height:1.65;
  color:var(--bone-dim);
}
.regenred-blog-index-body{
  max-width:var(--max);
  margin:0 auto;
  padding:56px 24px 100px;
}
.regenred-blog-index-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:28px;
}
.regenred-blog-card{
  margin:0;
  background:var(--ink-2);
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  transition:border-color .25s ease, transform .25s ease;
}
.regenred-blog-card:hover{
  border-color:rgba(255,77,94,.4);
  transform:translateY(-3px);
}
.regenred-blog-card__link{
  display:flex;
  flex-direction:column;
  height:100%;
  color:inherit;
  text-decoration:none;
}
.regenred-blog-card__media{
  position:relative;
  aspect-ratio:16 / 10;
  background:var(--ink);
  overflow:hidden;
}
.regenred-blog-card__img,
.regenred-blog-card__media img{
  width:100%;
  height:100%;
  max-height:none !important;
  object-fit:cover;
  display:block;
  margin:0 !important;
  border-radius:0 !important;
  transition:transform .45s ease;
}
.regenred-blog-card:hover .regenred-blog-card__img,
.regenred-blog-card:hover .regenred-blog-card__media img{
  transform:scale(1.04);
}
.regenred-blog-card__placeholder{
  display:block;
  width:100%;
  height:100%;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(179,19,41,.35), transparent 65%),
    var(--ink);
}
.regenred-blog-card__body{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:22px 22px 24px;
  flex:1;
}
.regenred-blog-card__cat{
  font-family:'IBM Plex Mono',monospace;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--oxygen);
}
.regenred-blog-card__title{
  margin:0;
  font-family:'Instrument Serif',serif;
  font-weight:400;
  font-size:clamp(20px, 2.1vw, 26px);
  line-height:1.2;
  color:var(--bone);
  letter-spacing:-.01em;
}
.regenred-blog-card__excerpt{
  margin:0;
  font-size:14.5px;
  line-height:1.65;
  color:var(--bone-dim);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.regenred-blog-card__meta{
  margin-top:auto;
  padding-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid var(--line);
  font-size:12.5px;
  color:var(--mute);
}
.regenred-blog-card__cta{
  color:var(--oxygen);
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:11.5px;
  font-weight:600;
}
.regenred-blog-index-empty{
  color:var(--bone-dim);
  font-size:17px;
}
.regenred-blog-pagination{
  margin-top:48px;
}
.regenred-blog-pagination .nav-links,
.regenred-blog-pagination .pagination{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:center;
}
.regenred-blog-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:4px;
  color:var(--bone-dim);
  font-size:14px;
  text-decoration:none;
  transition:border-color .2s ease, color .2s ease;
}
.regenred-blog-pagination .page-numbers:hover,
.regenred-blog-pagination .page-numbers.current{
  border-color:rgba(255,77,94,.45);
  color:var(--bone);
}
.regenred-blog-pagination .page-numbers.current{
  background:rgba(179,19,41,.2);
}

@media (max-width:960px){
  .regenred-blog-index-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:20px;
  }
  .regenred-blog-index-body{
    padding:40px 20px 72px;
  }
}
@media (max-width:640px){
  .regenred-blog-index-grid{
    grid-template-columns:1fr;
  }
  .regenred-blog-index-hero{
    padding:calc(var(--header-total, 102px) + 36px) 0 36px;
  }
}

