/*
 * Dhiveshi Nature Elements 2.7 — comments followed by the author profile.
 * The reading grid is owned by one Elementor widget, so it no longer depends
 * on Elementor columns, legacy percentages, DOM reordering, or JavaScript.
 */

body.single-post #primary.dnt-elementor-single-template,
body.single-post #primary.dnt-elementor-single-template > .elementor,
body.single-post #primary.dnt-elementor-single-template .elementor-section-wrap{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
body.single-post #primary.dnt-elementor-single-template{overflow-x:clip!important}

/* Full-width hero with a wide but controlled inner canvas. */
body.single-post .dnt-single-hero-v22,
body.single-post .dnt-single-hero-v22.elementor-section,
body.single-post .dnt-single-hero-v22.e-con,
body.single-post .dnt-single-hero-v22.elementor-element{
  position:relative!important;
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  padding-inline:0!important;
  overflow:hidden!important;
}
body.single-post .dnt-single-hero-v22 > .elementor-container,
body.single-post .dnt-single-hero-v22 > .e-con-inner{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
body.single-post .dnt-single-hero-v22 .dne-post-hero-shell{
  padding:70px 0 66px!important;
}
body.single-post .dnt-single-hero-v22 .dne-post-hero-container{
  width:min(calc(100% - 64px),1480px)!important;
  max-width:1480px!important;
  margin-inline:auto!important;
}
body.single-post .dnt-single-hero-v22 .dne-post-hero{
  grid-template-columns:minmax(0,1.05fr) minmax(470px,.95fr)!important;
  align-items:center!important;
  gap:78px!important;
}
body.single-post .dnt-single-hero-v22 .dne-post-hero h1{
  max-width:820px!important;
  font-size:clamp(52px,5.25vw,84px)!important;
  line-height:.99!important;
  letter-spacing:-.045em!important;
  text-wrap:balance!important;
}
body.single-post .dnt-single-hero-v22 .dne-post-hero-excerpt{
  max-width:730px!important;
  font-size:clamp(17px,1.45vw,21px)!important;
  line-height:1.72!important;
}
body.single-post .dnt-single-hero-v22 .dne-post-hero-visual{min-height:560px!important}
body.single-post .dnt-single-hero-v22 .dne-post-hero-image{
  inset:0 0 28px 0!important;
  border-radius:34px!important;
  box-shadow:0 34px 90px rgba(0,0,0,.20)!important;
}

/* Reading section — full width background, stable self-contained grid. */
body.single-post .dnt-single-reading-v26,
body.single-post .dnt-single-reading-v26.elementor-section,
body.single-post .dnt-single-reading-v26.e-con{
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  padding:0!important;
  background:#f4f8f6!important;
}
body.single-post .dnt-single-reading-v26 > .elementor-container,
body.single-post .dnt-single-reading-v26 > .e-con-inner{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
body.single-post .dnt-single-reading-v26 .elementor-column,
body.single-post .dnt-single-reading-v26 .elementor-widget-wrap,
body.single-post .dnt-single-reading-v26 .elementor-widget,
body.single-post .dnt-single-reading-v26 .elementor-widget-container{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
}

.dne-single-reading{
  --dne-reading-width:1360px;
  --dne-article-width:900px;
  --dne-sidebar-width:340px;
  --dne-reading-gap:48px;
  width:100%;
  padding:24px 32px 70px;
  background:#f4f8f6;
}
.dne-single-reading,
.dne-single-reading *{box-sizing:border-box}
.dne-single-reading__inner{
  display:grid;
  grid-template-columns:minmax(0,var(--dne-article-width)) minmax(280px,var(--dne-sidebar-width));
  justify-content:space-between;
  align-items:start;
  gap:var(--dne-reading-gap);
  width:min(100%,var(--dne-reading-width));
  margin-inline:auto;
}
.dne-single-reading__article{
  min-width:0;
  padding:48px 52px;
  background:#fff;
  border:1px solid rgba(6,72,83,.12);
  border-radius:28px;
  box-shadow:0 20px 55px rgba(3,45,55,.06);
}
.dne-single-reading__content{
  width:100%;
  max-width:100%;
  margin:0;
  color:#405e64;
  font-size:18px;
  line-height:1.9;
}
.dne-single-reading__content > :first-child{margin-top:0!important}
.dne-single-reading__content > :last-child{margin-bottom:0!important}
.dne-single-reading__content p,
.dne-single-reading__content ul,
.dne-single-reading__content ol{margin:0 0 25px}
.dne-single-reading__content > p:first-child{
  color:#183d45;
  font-size:21px;
  line-height:1.7;
  font-weight:600;
}
.dne-single-reading__content h1,
.dne-single-reading__content h2,
.dne-single-reading__content h3,
.dne-single-reading__content h4,
.dne-single-reading__content h5,
.dne-single-reading__content h6{
  color:#042f39;
  letter-spacing:-.03em;
  text-wrap:balance;
}
.dne-single-reading__content h2{
  margin:56px 0 20px;
  font-size:clamp(32px,3vw,44px);
  line-height:1.08;
}
.dne-single-reading__content h3{
  margin:40px 0 15px;
  font-size:clamp(25px,2.2vw,32px);
  line-height:1.14;
}
.dne-single-reading__content h4{
  margin:32px 0 13px;
  font-size:22px;
  line-height:1.2;
}
.dne-single-reading__content a{color:#087f8d;text-decoration-thickness:1px;text-underline-offset:3px}
.dne-single-reading__content img,
.dne-single-reading__content figure,
.dne-single-reading__content iframe,
.dne-single-reading__content video{
  display:block;
  max-width:100%!important;
  height:auto;
  margin-inline:auto;
  border-radius:20px;
}
.dne-single-reading__content figure{margin-top:32px;margin-bottom:32px}
.dne-single-reading__content figcaption{
  margin-top:10px;
  color:#6b858a;
  font-size:13px;
  line-height:1.55;
  text-align:center;
}
.dne-single-reading__content blockquote{
  margin:34px 0;
  padding:24px 28px;
  color:#15383f;
  background:#f3faf8;
  border-left:4px solid #3dceb3;
  border-radius:0 18px 18px 0;
  font-size:20px;
  line-height:1.65;
}
.dne-single-reading__content table{
  width:100%!important;
  max-width:100%!important;
  table-layout:auto!important;
  margin:28px 0!important;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(6,72,83,.12);
  border-radius:18px;
}
.dne-single-reading__content th,
.dne-single-reading__content td{
  width:auto!important;
  min-width:0!important;
  padding:14px 16px!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  border-bottom:1px solid rgba(6,72,83,.10)!important;
}
.dne-single-reading__content tr:last-child th,
.dne-single-reading__content tr:last-child td{border-bottom:0!important}

/* Taxonomy/classification blocks embedded in an individual post stay inside the article. */
.dne-single-reading__content .dne-taxonomy-table,
.dne-single-reading__content .scientific-classification,
.dne-single-reading__content .taxonomy-card,
.dne-single-reading__content [class*="classification"]{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:34px 0!important;
  float:none!important;
  clear:both!important;
}
.dne-single-reading__content .dne-taxonomy-table > div{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.dne-single-reading__content .dne-taxonomy-row{
  display:grid!important;
  grid-template-columns:minmax(100px,.42fr) minmax(0,1fr)!important;
  gap:12px!important;
  min-width:0!important;
  padding:14px 16px!important;
  background:#f8fbfa!important;
  border:1px solid rgba(6,72,83,.10)!important;
  border-radius:14px!important;
}
.dne-single-reading__content .dne-taxonomy-row span,
.dne-single-reading__content .dne-taxonomy-row strong{
  min-width:0!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
}

/* Sidebar. */
.dne-single-reading__sidebar{
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:18px;
}
.dne-single-reading__sidebar.is-sticky{
  position:sticky;
  top:96px;
}
.dne-single-reading__side-card{
  min-width:0;
  padding:22px;
  background:#fff;
  border:1px solid rgba(6,72,83,.11);
  border-radius:20px;
  box-shadow:0 12px 34px rgba(3,45,55,.045);
}
.dne-single-reading__side-card h3{
  margin:0 0 15px;
  color:#042f39;
  font-size:22px;
  line-height:1.15;
  letter-spacing:-.025em;
}
.dne-reading-share-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.dne-reading-share-links a,
.dne-reading-share-links button{
  display:inline-flex;
  min-height:36px;
  align-items:center;
  justify-content:center;
  width:auto;
  padding:0 12px;
  color:#0a4d53;
  cursor:pointer;
  background:#edf8f5;
  border:0;
  border-radius:10px;
  font:inherit;
  font-size:11px;
  font-weight:800;
  text-decoration:none;
}
.dne-reading-topic-list{display:flex;flex-wrap:wrap;gap:8px}
.dne-reading-topic-list a{
  display:inline-flex;
  padding:8px 11px;
  color:#0a4d53;
  background:#edf8f5;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  text-decoration:none;
}
.dne-reading-recent-list{display:grid;gap:12px}
.dne-reading-recent-item{
  display:grid;
  grid-template-columns:84px minmax(0,1fr);
  align-items:center;
  gap:13px;
  min-width:0;
}
.dne-reading-recent-item + .dne-reading-recent-item{
  padding-top:12px;
  border-top:1px solid rgba(6,72,83,.09);
}
.dne-reading-recent-thumb{
  display:block;
  width:84px;
  aspect-ratio:1;
  background-position:center;
  background-size:cover;
  border-radius:14px;
}
.dne-reading-recent-thumb.is-fallback{
  background:linear-gradient(135deg,#bde8dc,#0d747c);
}
.dne-reading-recent-item div{min-width:0}
.dne-reading-recent-item span{
  display:block;
  margin-bottom:5px;
  color:#789095;
  font-size:10px;
  font-weight:750;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.dne-reading-recent-item h4{
  margin:0;
  font-size:15px;
  line-height:1.3;
  letter-spacing:-.015em;
}
.dne-reading-recent-item h4 a{color:#042f39;text-decoration:none}
.dne-reading-notice{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:start;
  gap:13px;
}
.dne-reading-notice-icon{
  display:grid;
  width:42px;
  height:42px;
  place-items:center;
  color:#0fa893;
  background:#eaf8f5;
  border-radius:13px;
  font-size:13px;
}
.dne-reading-notice h3{margin-bottom:8px;font-size:17px}
.dne-reading-notice p{
  margin:0;
  color:#657d82;
  font-size:12px;
  line-height:1.65;
}
.dne-reading-notice a{
  display:inline-flex;
  margin-top:10px;
  color:#0b9b89;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}

/* Author below the article/sidebar grid. */
body.single-post .dnt-single-author-bottom-v24{
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  padding:0 32px 72px!important;
  background:#f4f8f6!important;
}
body.single-post .dnt-single-author-bottom-v24 > .elementor-container,
body.single-post .dnt-single-author-bottom-v24 > .e-con-inner{
  width:min(calc(100% - 64px),900px)!important;
  max-width:900px!important;
  margin-inline:auto!important;
}
body.single-post .dnt-single-author-bottom-v24 .dne-author-box{
  display:grid!important;
  grid-template-columns:120px minmax(0,1fr)!important;
  align-items:center!important;
  gap:28px!important;
  width:100%!important;
  max-width:900px!important;
  margin:0 auto!important;
  padding:30px 34px!important;
  text-align:left!important;
  background:linear-gradient(135deg,#fff 0%,#f7fbfa 100%)!important;
  border:1px solid rgba(6,72,83,.11)!important;
  border-radius:26px!important;
  box-shadow:0 16px 44px rgba(3,45,55,.055)!important;
}
body.single-post .dnt-single-author-bottom-v24 .dne-author-box > img{
  width:120px!important;
  height:120px!important;
  margin:0!important;
  object-fit:cover!important;
  border-radius:50%!important;
  box-shadow:0 0 0 8px rgba(61,206,179,.08)!important;
}
body.single-post .dnt-single-author-bottom-v24 .dne-author-box h3{
  margin:0 0 8px!important;
  font-size:30px!important;
  letter-spacing:-.028em!important;
}
body.single-post .dnt-single-author-bottom-v24 .dne-author-box p{
  max-width:650px!important;
  margin:0 0 12px!important;
  font-size:15px!important;
  line-height:1.72!important;
}
body.single-post .dnt-single-author-bottom-v24 .dne-author-box .dne-text-link{
  display:inline-flex!important;
  width:max-content!important;
}

/* Related posts. */
body.single-post .dnt-single-related-v22 > .elementor-container,
body.single-post .dnt-single-related-v22 > .e-con-inner{
  width:min(calc(100% - 64px),1320px)!important;
  max-width:1320px!important;
  margin-inline:auto!important;
}
body.single-post .dnt-single-related-v22 .dne-related-wrap{
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
body.single-post .dnt-single-related-v22 .dne-related-wrap > h2{
  max-width:760px!important;
  margin:0 0 34px!important;
  letter-spacing:-.035em!important;
}
body.single-post .dnt-single-related-v22 .dne-related-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:24px!important;
}
body.single-post .dnt-single-related-v22 .dne-related-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid rgba(6,72,83,.10)!important;
  border-radius:22px!important;
  box-shadow:0 14px 38px rgba(3,45,55,.06)!important;
}
body.single-post .dnt-single-related-v22 .dne-related-image{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:16/10!important;
  background-position:center!important;
  background-size:cover!important;
}
body.single-post .dnt-single-related-v22 .dne-related-card > div{
  position:static!important;
  display:flex!important;
  flex:1!important;
  flex-direction:column!important;
  padding:22px!important;
  color:#15383f!important;
  background:#fff!important;
}
body.single-post .dnt-single-related-v22 .dne-related-card h3{
  font-size:22px!important;
  line-height:1.25!important;
  letter-spacing:-.025em!important;
}
body.single-post .dnt-single-related-v22 .dne-related-card h3 a{color:#042f39!important}

/* Comments. */
body.single-post .dnt-single-comments-v22{
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  background:#f4f8f6!important;
}
body.single-post .dnt-single-comments-v22 > .elementor-container,
body.single-post .dnt-single-comments-v22 > .e-con-inner{
  width:min(calc(100% - 64px),900px)!important;
  max-width:900px!important;
  margin-inline:auto!important;
}
body.single-post .dnt-single-comments-v22 .dne-comments-widget{
  width:100%!important;
  max-width:900px!important;
  margin:0 auto!important;
  border-radius:28px!important;
  box-shadow:0 16px 44px rgba(3,45,55,.045)!important;
}

/* Consistent letter spacing for major display text. */
body.single-post .dne-post-hero h1,
body.single-post .dne-single-reading h1,
body.single-post .dne-single-reading h2,
body.single-post .dne-single-reading h3,
body.single-post .dne-related-wrap h2,
body.single-post .dne-comments-widget h2,
body.single-post .dne-author-box h3{
  letter-spacing:-.03em;
}

@media(max-width:1180px){
  body.single-post .dnt-single-hero-v22 .dne-post-hero{
    grid-template-columns:minmax(0,1fr) minmax(400px,.88fr)!important;
    gap:46px!important;
  }
  .dne-single-reading__inner{
    grid-template-columns:minmax(0,1fr) 300px;
    gap:32px;
  }
  .dne-single-reading__article{padding:40px 42px}
}

@media(max-width:920px){
  body.single-post .dnt-single-hero-v22 .dne-post-hero{grid-template-columns:1fr!important}
  body.single-post .dnt-single-hero-v22 .dne-post-hero-visual{min-height:470px!important}
  .dne-single-reading{padding-inline:20px}
  .dne-single-reading__inner{grid-template-columns:1fr;max-width:900px}
  .dne-single-reading__sidebar.is-sticky{position:static}
  .dne-single-reading__sidebar{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start;
  }
  .dne-reading-recent{grid-column:1/-1}
  body.single-post .dnt-single-related-v22 .dne-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

@media(max-width:640px){
  body.single-post .dnt-single-hero-v22 .dne-post-hero-shell{padding:54px 0 48px!important}
  body.single-post .dnt-single-hero-v22 .dne-post-hero-container{width:min(calc(100% - 28px),1480px)!important}
  body.single-post .dnt-single-hero-v22 .dne-post-hero h1{
    font-size:clamp(40px,12.5vw,58px)!important;
    letter-spacing:-.038em!important;
  }
  body.single-post .dnt-single-hero-v22 .dne-post-hero-visual{min-height:350px!important}
  .dne-single-reading{padding:20px 14px 52px}
  .dne-single-reading__article{
    padding:25px 21px;
    border-radius:22px;
  }
  .dne-single-reading__content{font-size:17px;line-height:1.82}
  .dne-single-reading__content > p:first-child{font-size:19px}
  .dne-single-reading__content h2{font-size:clamp(29px,9vw,38px)}
  .dne-single-reading__content .dne-taxonomy-table > div{grid-template-columns:1fr!important}
  .dne-single-reading__sidebar{grid-template-columns:1fr}
  .dne-reading-recent{grid-column:auto}
  body.single-post .dnt-single-author-bottom-v24{padding:0 14px 52px!important}
  body.single-post .dnt-single-author-bottom-v24 .dne-author-box{
    display:block!important;
    padding:24px 22px!important;
    text-align:center!important;
  }
  body.single-post .dnt-single-author-bottom-v24 .dne-author-box > img{
    width:96px!important;
    height:96px!important;
    margin:0 auto 20px!important;
  }
  body.single-post .dnt-single-author-bottom-v24 .dne-author-box .dne-text-link{margin-inline:auto!important}
  body.single-post .dnt-single-related-v22 > .elementor-container,
  body.single-post .dnt-single-related-v22 > .e-con-inner,
  body.single-post .dnt-single-comments-v22 > .elementor-container,
  body.single-post .dnt-single-comments-v22 > .e-con-inner{
    width:min(calc(100% - 28px),1320px)!important;
  }
  body.single-post .dnt-single-related-v22 .dne-related-grid{grid-template-columns:1fr!important}
}
