/* v47.15: repair the saved author hero, podcast gallery and WordPress blog.
   Loaded LAST to override older split-screen rules. No page content is rewritten. */

/* Homepage: the saved block has no .dnj-hero-content wrapper. Make the
   actual Gutenberg columns use the full available space. */
body .dnj-homepage .dnj-hero.dnj-author-hero {
  width:100%!important; max-width:none!important; box-sizing:border-box!important;
  min-width:0!important; padding:clamp(105px,11vh,148px) clamp(22px,5vw,80px) clamp(62px,9vh,108px)!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
}
body .dnj-homepage .dnj-hero.dnj-author-hero > .dnj-author-hero-columns,
body .dnj-homepage .dnj-author-hero .wp-block-columns.dnj-author-hero-columns {
  display:grid!important;
  grid-template-columns:minmax(0, 1.18fr) minmax(0, .82fr)!important;
  width:min(100%,1160px)!important; max-width:1160px!important;
  min-width:0!important; box-sizing:border-box!important;
  margin:0 auto!important; padding:0!important;
  gap:clamp(30px,5vw,84px)!important; align-items:center!important; justify-items:stretch!important;
}
body .dnj-homepage .dnj-author-hero .dnj-author-hero-columns > .wp-block-column,
body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy,
body .dnj-homepage .dnj-author-hero .dnj-author-hero-portrait-column {
  box-sizing:border-box!important; min-width:0!important; max-width:none!important;
  width:100%!important; flex:initial!important; flex-basis:auto!important;
  margin:0!important; padding:0!important;
}
body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy { text-align:left!important; }
body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy :is(h1,h2,p),
body .dnj-homepage .dnj-author-hero .dnj-author-statement :is(p,h2) {
  text-align:left!important; margin-left:0!important; margin-right:0!important;
}
body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy .dnj-hero-title,
body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy .dnj-responsive-home-title {
  width:100%!important; max-width:100%!important;
  font-size:clamp(2.45rem,3.65vw,4rem)!important; line-height:1.13!important;
  overflow-wrap:normal!important; word-break:normal!important; hyphens:none!important;
  text-wrap:balance!important; white-space:normal!important;
}
body .dnj-homepage .dnj-author-hero .dnj-author-hero-intro,
body .dnj-homepage .dnj-author-hero .dnj-author-statement p {
  max-width:650px!important; font-size:clamp(1rem,1.25vw,1.2rem)!important;
  line-height:1.65!important;
}
body .dnj-homepage .dnj-author-hero .dnj-hero-buttons {
  display:flex!important; width:100%!important; max-width:none!important;
  justify-content:flex-start!important; align-items:center!important; flex-wrap:wrap!important;
  gap:14px!important; margin:28px 0 0!important;
}
body .dnj-homepage .dnj-author-hero .dnj-hero-buttons > .wp-block-button { margin:0!important; }
body .dnj-homepage .dnj-author-hero .dnj-author-hero-portrait-column {
  display:flex!important; align-items:center!important; justify-content:center!important;
  text-align:center!important;
}
body .dnj-homepage .dnj-author-hero .dnj-author-hero-portrait-column img,
body .dnj-homepage .dnj-author-hero img.dnj-author-portrait-image {
  display:block!important; position:relative!important; float:none!important;
  width:min(100%,380px)!important; max-width:380px!important;
  height:auto!important; aspect-ratio:1!important;
  margin:0 auto!important; object-fit:cover!important;
  border-radius:18px; box-shadow:0 25px 68px rgba(0,0,0,.28);
}
@media (max-width:1180px) {
  body .dnj-homepage .dnj-hero.dnj-author-hero { padding:clamp(110px,12vw,145px) 24px 70px!important; min-height:0!important; }
  body .dnj-homepage .dnj-author-hero .wp-block-columns.dnj-author-hero-columns {
    display:flex!important; flex-direction:column!important;
    width:min(100%,780px)!important; max-width:780px!important;
    gap:clamp(24px,4vw,42px)!important; align-items:center!important;
  }
  body .dnj-homepage .dnj-author-hero .dnj-author-hero-columns > .wp-block-column { width:100%!important; max-width:780px!important; }
  body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy,
  body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy :is(h1,h2,p),
  body .dnj-homepage .dnj-author-hero .dnj-author-statement :is(p,h2) { text-align:center!important; }
  body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy :is(h1,h2,p),
  body .dnj-homepage .dnj-author-hero .dnj-author-statement :is(p,h2) { margin-left:auto!important; margin-right:auto!important; }
  body .dnj-homepage .dnj-author-hero .dnj-hero-buttons { justify-content:center!important; margin-inline:auto!important; }
  body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy .dnj-hero-title,
  body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy .dnj-responsive-home-title {
    font-size:clamp(2.35rem,5.2vw,3.6rem)!important;
  }
}
@media (max-width:600px) {
  body .dnj-homepage .dnj-hero.dnj-author-hero {padding:104px 18px 56px!important}
  body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy .dnj-hero-title,
  body .dnj-homepage .dnj-author-hero .dnj-author-hero-copy .dnj-responsive-home-title {
    font-size:clamp(1.85rem,7.6vw,2.4rem)!important; line-height:1.17!important;
  }
  body .dnj-homepage .dnj-author-hero .dnj-hero-buttons {flex-direction:column!important;}
  body .dnj-homepage .dnj-author-hero .dnj-hero-buttons > .wp-block-button {width:min(100%,320px)!important;}
  body .dnj-homepage .dnj-author-hero .dnj-hero-buttons .wp-block-button__link {display:block;width:100%;box-sizing:border-box;text-align:center;}
  body .dnj-homepage .dnj-author-hero .dnj-author-hero-portrait-column img {max-width:310px!important;}
}

/* Singularity companion gallery: real thumbnail grid, never broken flex rows. */
body .dnj-singularity-page .wp-block-gallery.dnj-gallery-grid {
  display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:100%!important; max-width:100%!important;
  gap:18px!important; margin:24px auto 0!important; box-sizing:border-box!important;
}
body .dnj-singularity-page .wp-block-gallery.dnj-gallery-grid > figure.wp-block-image {
  width:100%!important; max-width:100%!important; margin:0!important;
  padding:0!important; flex:initial!important; overflow:hidden;
  border-radius:16px; background:#0f172a;
}
body .dnj-singularity-page .wp-block-gallery.dnj-gallery-grid > figure.wp-block-image img {
  display:block!important; width:100%!important; max-width:none!important;
  height:100%!important; min-height:0!important; aspect-ratio:4/3!important;
  object-fit:cover!important; border-radius:16px!important;
}
@media(max-width:900px){body .dnj-singularity-page .wp-block-gallery.dnj-gallery-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:560px){body .dnj-singularity-page .wp-block-gallery.dnj-gallery-grid {grid-template-columns:minmax(0,1fr)!important;gap:15px!important;}}

/* WordPress-native blog listings and complete individual articles. */
body .dnj-blog-page, body .dnj-blog-article {background:radial-gradient(ellipse at 92% 0%,rgba(75,38,144,.22),transparent 50%),#080d1f;color:#f8fafc;min-height:75vh;}
body .dnj-blog-shell {box-sizing:border-box;width:min(100% - 48px,1180px);margin:0 auto;padding:clamp(118px,11vw,160px) 0 90px;}
body .dnj-blog-intro {max-width:740px;margin:0 auto 42px;text-align:center;}
body .dnj-blog-eyebrow {color:#22d3ee;font-size:.8rem;font-weight:800;letter-spacing:.25em;text-transform:uppercase;margin:0 auto 12px;}
body .dnj-blog-heading {font-size:clamp(2.25rem,5vw,3.7rem);line-height:1.12;font-weight:800;margin:0 0 16px;text-align:center;background:linear-gradient(100deg,#67e8f9,#a78bfa,#e879f9);background-clip:text;-webkit-background-clip:text;color:transparent;}
body .dnj-blog-description {font-size:clamp(1rem,1.5vw,1.13rem);line-height:1.7;color:#cbd5e1;margin:0 auto;text-align:center;}
body .dnj-blog-query {width:100%;max-width:100%;}
body .dnj-blog-posts {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important;align-items:stretch;list-style:none;padding:0;margin:0 auto;}
body .dnj-blog-post-card {display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0;max-width:none!important;margin:0!important;padding:0 0 22px!important;overflow:hidden;border:1px solid rgba(125,211,252,.17);border-radius:20px;background:linear-gradient(155deg,#151d32,#101427);box-shadow:0 12px 35px rgba(0,0,0,.12);}
body .dnj-blog-post-card .wp-block-post-featured-image {margin:0 0 18px;width:100%;}
body .dnj-blog-post-card .wp-block-post-featured-image img {width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block;}
body .dnj-blog-post-card .wp-block-post-date {padding:0 23px;color:#67e8f9;font-size:.86rem;letter-spacing:.04em;margin:0 0 10px;}
body .dnj-blog-post-card .wp-block-post-title {padding:0 23px;font-size:clamp(1.25rem,1.7vw,1.5rem);line-height:1.35;margin:0 0 12px;}
body .dnj-blog-post-card .wp-block-post-title a {color:#fff;text-decoration:none;}
body .dnj-blog-post-card .wp-block-post-title a:hover {color:#67e8f9;}
body .dnj-blog-post-card .wp-block-post-excerpt {color:#cbd5e1;padding:0 23px;margin:0 0 18px;line-height:1.7;flex:1;}
body .dnj-blog-post-card .wp-block-post-excerpt__more-text {margin:15px 0 0;}
body .dnj-blog-post-card a.wp-block-post-excerpt__more-link {display:inline-block;color:#67e8f9;text-decoration:none;font-weight:700;}
body .dnj-blog-query .wp-block-query-pagination {margin:34px auto 0;display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;color:#e9d5ff;}
body .dnj-blog-query .wp-block-query-pagination a {color:#67e8f9;}
body .dnj-blog-query .wp-block-query-no-results {max-width:700px;text-align:center;margin:30px auto;padding:32px;border:1px solid #35415f;border-radius:18px;color:#cbd5e1;}
body .dnj-blog-article .dnj-blog-shell {max-width:900px;}
body .dnj-blog-article .dnj-article-heading {font-size:clamp(2.3rem,5vw,4rem);line-height:1.1;margin:12px 0 18px;text-align:center;color:#f8fafc;}
body .dnj-blog-article .dnj-article-meta {display:flex;align-items:center;justify-content:center;gap:14px;color:#94a3b8;margin:0 auto 26px;text-align:center;}
body .dnj-blog-article .dnj-article-cover {margin:0 auto 40px;max-width:900px;}
body .dnj-blog-article .dnj-article-cover img {border-radius:18px;display:block;width:100%;height:auto;max-height:510px;object-fit:cover;}
body .dnj-blog-article .dnj-article-body {max-width:760px;margin:0 auto;color:#e2e8f0;font-size:1.1rem;line-height:1.85;}
body .dnj-blog-article .dnj-article-body :is(h2,h3,h4) {color:#fff;line-height:1.3;margin:1.6em 0 .6em;}
body .dnj-blog-article .dnj-article-body p {margin:0 0 1.35em;}
body .dnj-blog-article .dnj-article-body img {max-width:100%;height:auto;display:block;margin:1.5em auto;border-radius:10px;}
body .dnj-blog-article .dnj-article-body a {color:#67e8f9;text-decoration:underline;}
body .dnj-blog-article .wp-block-post-navigation-link {margin-top:30px;}
body .dnj-blog-article .wp-block-post-navigation-link a {color:#67e8f9;}
@media(max-width:1000px){body .dnj-blog-posts {grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:640px){body .dnj-blog-shell{width:min(100% - 32px,1180px);padding-top:112px;}body .dnj-blog-posts{grid-template-columns:minmax(0,1fr)!important;gap:18px!important;}body .dnj-blog-post-card .wp-block-post-title{font-size:1.4rem;}body .dnj-blog-article .dnj-article-body{font-size:1rem;}}
