/*
 * ZeroZoneNews v2.0.3 — single-post layout guard
 * Loaded at priority 999 so the article geometry wins over WordPress core,
 * Gutenberg and common plugin layout rules without changing the theme identity.
 */
body.single-post .zzn-article-shell,
body.single-post .zzn-article-shell * { box-sizing:border-box; }

body.single-post .zzn-article-shell{
  width:min(100% - 40px,1440px)!important;
  max-width:1440px!important;
  margin:0 auto!important;
  padding:64px 0 110px!important;
  display:grid!important;
  grid-template-columns:160px minmax(0,820px) 210px!important;
  justify-content:center!important;
  align-items:start!important;
  gap:34px!important;
  overflow:visible!important;
}
body.single-post .zzn-article{
  width:100%!important;
  max-width:820px!important;
  min-width:0!important;
  margin:0!important;
  overflow:visible!important;
}
body.single-post .zzn-toc,
body.single-post .zzn-marginalia{min-width:0!important;max-width:100%!important;}

/* Hero: compact, readable, and unable to collide with the article body. */
body.single-post .zzn-article-hero{
  position:relative!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:0 0 46px!important;
  padding:0!important;
}
body.single-post .zzn-article-image{
  width:70%!important;
  max-width:70%!important;
  min-width:0!important;
  margin:0 0 0 auto!important;
}
body.single-post .zzn-article-image img{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  aspect-ratio:16/9!important;
  object-fit:cover!important;
}
body.single-post .zzn-article-head{
  position:relative!important;
  z-index:2!important;
  width:76%!important;
  max-width:76%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  margin:-56px 0 0!important;
  padding:28px 30px!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
body.single-post .zzn-article-head h1{
  max-width:100%!important;
  margin:18px 0 20px!important;
  font-size:clamp(34px,3vw,46px)!important;
  line-height:1.08!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
body.single-post .zzn-article-head p,
body.single-post .zzn-article-head span,
body.single-post .zzn-article-head a,
body.single-post .zzn-article-meta{
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
body.single-post .zzn-article-head p{font-size:17px!important;line-height:1.65!important;margin:0 0 18px!important;}

/* Main article body. This is intentionally stricter than Gutenberg defaults. */
body.single-post .entry-content{
  display:block!important;
  position:relative!important;
  width:100%!important;
  max-width:820px!important;
  min-width:0!important;
  margin:0!important;
  padding:34px 38px!important;
  border:1px solid rgba(25,26,30,.12)!important;
  border-left:4px solid var(--blue-t)!important;
  background:rgba(255,255,255,.34)!important;
  font-size:18px!important;
  line-height:1.75!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  white-space:normal!important;
}
body.single-post .entry-content > *,
body.single-post .entry-content p,
body.single-post .entry-content li,
body.single-post .entry-content h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4,
body.single-post .entry-content h5,
body.single-post .entry-content h6,
body.single-post .entry-content div,
body.single-post .entry-content section,
body.single-post .entry-content article{
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
body.single-post .entry-content > *{
  margin-left:0!important;
  margin-right:0!important;
  transform:none!important;
}
body.single-post .entry-content p{margin-top:0!important;margin-bottom:1.35em!important;}
body.single-post .entry-content h2{font-size:30px!important;line-height:1.22!important;margin:1.8em 0 .65em!important;}
body.single-post .entry-content h3{font-size:24px!important;line-height:1.28!important;margin:1.55em 0 .55em!important;}
body.single-post .entry-content ul,
body.single-post .entry-content ol{max-width:100%!important;padding-left:1.35em!important;}

/* Neutralise WordPress/Gutenberg wide and full-width geometry on posts. */
body.single-post .entry-content .alignwide,
body.single-post .entry-content .alignfull,
body.single-post .entry-content [class*="wp-block-"],
body.single-post .entry-content blockquote,
body.single-post .entry-content table,
body.single-post .entry-content figure,
body.single-post .entry-content .wp-caption,
body.single-post .entry-content .gallery{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  transform:none!important;
}
body.single-post .entry-content img,
body.single-post .entry-content video,
body.single-post .entry-content iframe,
body.single-post .entry-content embed,
body.single-post .entry-content object,
body.single-post .entry-content svg,
body.single-post .entry-content canvas{
  max-width:100%!important;
  height:auto!important;
}
body.single-post .entry-content iframe,
body.single-post .entry-content embed,
body.single-post .entry-content object{width:100%!important;}
body.single-post .entry-content pre,
body.single-post .entry-content code{
  max-width:100%!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
body.single-post .entry-content table{
  table-layout:fixed!important;
  border-collapse:collapse!important;
}
body.single-post .entry-content th,
body.single-post .entry-content td{overflow-wrap:anywhere!important;word-break:break-word!important;}

body.single-post .zzn-author-box,
body.single-post .zzn-related,
body.single-post .zzn-also{
  width:100%!important;
  max-width:820px!important;
  min-width:0!important;
}
body.single-post .zzn-related > div{min-width:0!important;}
body.single-post .zzn-related article{min-width:0!important;max-width:100%!important;}

@media (max-width:1199px){
  body.single-post .zzn-article-shell{
    display:block!important;
    width:min(92%,820px)!important;
    max-width:820px!important;
    padding:50px 0 90px!important;
  }
  body.single-post .zzn-toc,
  body.single-post .zzn-marginalia{display:none!important;}
  body.single-post .zzn-article{max-width:100%!important;}
}
@media (max-width:767px){
  body.single-post .zzn-article-shell{
    width:100%!important;
    padding:28px 16px 70px!important;
  }
  body.single-post .zzn-article-image{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
  }
  body.single-post .zzn-article-head{
    width:100%!important;
    max-width:100%!important;
    margin:18px 0 0!important;
    padding:22px!important;
  }
  body.single-post .zzn-article-head h1{font-size:clamp(29px,8vw,36px)!important;}
  body.single-post .zzn-article-hero{margin-bottom:28px!important;}
  body.single-post .entry-content{
    width:100%!important;
    max-width:100%!important;
    padding:24px 20px!important;
    font-size:17px!important;
  }
}

/* v2.0.4 — clean single-article presentation: no duplicate story/excerpt block */
body.single-post .zzn-clean-post-header{
  width:min(100%,820px)!important;
  max-width:820px!important;
  margin:22px auto 30px!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  overflow:visible!important;
}
body.single-post .zzn-clean-post-header .zzn-clean-category{
  display:inline-block!important;
  margin:0 0 14px!important;
  padding:7px 11px!important;
  border:1px solid currentColor!important;
  font-size:12px!important;
  line-height:1!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  text-decoration:none!important;
}
body.single-post .zzn-clean-post-header h1{
  margin:0 0 18px!important;
  max-width:100%!important;
  font-size:clamp(38px,5vw,62px)!important;
  line-height:1.04!important;
  letter-spacing:-.035em!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
body.single-post .zzn-clean-post-header .zzn-article-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px 18px!important;
  margin:0!important;
  font-size:12px!important;
  line-height:1.5!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
}
body.single-post .zzn-clean-featured-image{
  width:min(100%,960px)!important;
  max-width:960px!important;
  margin:0 auto 38px!important;
  padding:0!important;
}
body.single-post .zzn-clean-featured-image img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:540px!important;
  object-fit:cover!important;
  margin:0!important;
}
/* Old decorative duplicate-story elements must never reappear on single posts. */
body.single-post .zzn-article-hero,
body.single-post .zzn-article-head,
body.single-post .zzn-side-code{display:none!important;}

@media (max-width:767px){
  body.single-post .zzn-clean-post-header{margin:14px auto 22px!important;}
  body.single-post .zzn-clean-post-header h1{font-size:clamp(30px,10vw,42px)!important;line-height:1.08!important;}
  body.single-post .zzn-clean-featured-image{margin-bottom:26px!important;}
}
