/*
 * 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(34px,4.4vw,calc(var(--dnt-display-size,62px)*.9))!important;
  line-height:.99!important;
  letter-spacing:var(--dnt-heading-tracking,0em)!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:var(--dnt-soft,#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:var(--dnt-soft,#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 color-mix(in srgb,var(--dnt-primary-dark,#064853) 12%,transparent);
  border-radius:28px;
  box-shadow:0 20px 55px color-mix(in srgb,var(--dnt-deep,#032d37) 6%,transparent);
}
.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:var(--dnt-deep,#042f39);
  letter-spacing:var(--dnt-heading-tracking,0em);
  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:var(--dnt-primary,#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:var(--dnt-heading,#15383f);
  background:var(--dnt-soft,#f3faf8);
  border-left:4px solid var(--dnt-aqua,#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 color-mix(in srgb,var(--dnt-primary-dark,#064853) 12%,transparent);
  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 color-mix(in srgb,var(--dnt-primary-dark,#064853) 10%,transparent)!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 color-mix(in srgb,var(--dnt-primary-dark,#064853) 10%,transparent)!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 color-mix(in srgb,var(--dnt-primary-dark,#064853) 11%,transparent);
  border-radius:20px;
  box-shadow:0 12px 34px color-mix(in srgb,var(--dnt-deep,#032d37) 4.5%,transparent);
}
.dne-single-reading__side-card h3{
  margin:0 0 15px;
  color:var(--dnt-deep,#042f39);
  font-size:22px;
  line-height:1.15;
  letter-spacing:var(--dnt-heading-tracking,0em);
}
.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:var(--dnt-primary-dark,#0a4d53);
  cursor:pointer;
  background:var(--dnt-soft,#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:var(--dnt-primary-dark,#0a4d53);
  background:var(--dnt-soft,#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 color-mix(in srgb,var(--dnt-primary-dark,#064853) 9%,transparent);
}
.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,var(--dnt-primary,#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:var(--dnt-deep,#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:var(--dnt-soft,#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:var(--dnt-soft,#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 color-mix(in srgb,var(--dnt-primary-dark,#064853) 11%,transparent)!important;
  border-radius:26px!important;
  box-shadow:0 16px 44px color-mix(in srgb,var(--dnt-deep,#032d37) 5.5%,transparent)!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 color-mix(in srgb,var(--dnt-secondary,#3dceb3) 8%,transparent)!important;
}
body.single-post .dnt-single-author-bottom-v24 .dne-author-box h3{
  margin:0 0 8px!important;
  font-size:30px!important;
  letter-spacing:var(--dnt-heading-tracking,0em)!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:var(--dnt-heading-tracking,0em)!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 color-mix(in srgb,var(--dnt-primary-dark,#064853) 10%,transparent)!important;
  border-radius:22px!important;
  box-shadow:0 14px 38px color-mix(in srgb,var(--dnt-deep,#032d37) 6%,transparent)!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:var(--dnt-heading,#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:var(--dnt-heading-tracking,0em)!important;
}
body.single-post .dnt-single-related-v22 .dne-related-card h3 a{color:var(--dnt-deep,#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:var(--dnt-soft,#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 color-mix(in srgb,var(--dnt-deep,#032d37) 4.5%,transparent)!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:var(--dnt-heading-tracking,0em);
}

@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(32px,9vw,44px)!important;
    letter-spacing:var(--dnt-heading-tracking,0em)!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}
}


/* Version 3.5.0 — dark-mode compatibility for single-post reading surfaces. */
[data-theme="dark"] .dne-single-reading,
[data-theme="dark"] .dnt-single-author-bottom-v24,
[data-theme="dark"] .dnt-single-related-section,
[data-theme="dark"] .dnt-single-comments-section{
  background:var(--dnt-soft)!important;
}
[data-theme="dark"] .dne-single-reading__article,
[data-theme="dark"] .dne-reading-card,
[data-theme="dark"] .dne-reading-sidebar-card,
[data-theme="dark"] .dnt-single-author-bottom-v24 .dne-author-box,
[data-theme="dark"] .dne-comments-widget,
[data-theme="dark"] .dne-related-card{
  background:var(--dnt-surface)!important;
  color:var(--dnt-text)!important;
  border-color:var(--dnt-border)!important;
  box-shadow:0 18px 50px rgba(0,0,0,.2)!important;
}
[data-theme="dark"] .dne-single-reading__content,
[data-theme="dark"] .dne-single-reading__content p,
[data-theme="dark"] .dne-single-reading__content li,
[data-theme="dark"] .dne-single-reading__content h2,
[data-theme="dark"] .dne-single-reading__content h3,
[data-theme="dark"] .dne-single-reading__content h4{
  color:var(--dnt-text)!important;
}


/* Version 4.3.0 — mobile single-post readability repair.
   The previous mobile layout left too much side padding and made old taxonomy /
   scientific-classification blocks too narrow. This patch widens the article,
   reduces mobile type size, and prevents taxonomy values from breaking one
   letter at a time. */
@media (max-width: 767px) {
  body.single-post,
  body.single-post #page,
  body.single-post .site,
  body.single-post .dnt-site-wrap,
  body.single-post #content,
  body.single-post #primary,
  body.single-post main,
  body.single-post article {
    overflow-x: hidden !important;
  }

  body.single-post #primary,
  body.single-post #primary.dnt-elementor-single-template,
  body.single-post .content-area,
  body.single-post .site-main,
  body.single-post .entry-content,
  body.single-post .post-content,
  body.single-post .wp-block-post-content,
  body.single-post .elementor-widget-theme-post-content,
  body.single-post .elementor-widget-theme-post-content .elementor-widget-container,
  body.single-post .dne-post-content-output,
  body.single-post .dne-single-reading,
  body.single-post .dne-single-reading__inner,
  body.single-post .dne-single-reading__article,
  body.single-post .dne-single-reading__content {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  body.single-post .dne-single-reading {
    padding: 16px 10px 46px !important;
  }

  body.single-post .dne-single-reading__inner {
    display: block !important;
    width: min(100%, calc(100vw - 20px)) !important;
    margin-inline: auto !important;
  }

  body.single-post .dne-single-reading__article {
    padding: 24px 18px !important;
    border-radius: 20px !important;
  }

  body.single-post .dne-single-reading__sidebar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 18px !important;
  }

  body.single-post .dne-single-reading__content,
  body.single-post .dne-post-content-output,
  body.single-post .entry-content,
  body.single-post .post-content,
  body.single-post .wp-block-post-content {
    color: #405e64 !important;
    font-size: 18px !important;
    line-height: 1.72 !important;
    letter-spacing: 0 !important;
  }

  body.single-post .dne-single-reading__content p,
  body.single-post .dne-post-content-output p,
  body.single-post .entry-content p,
  body.single-post .post-content p,
  body.single-post .wp-block-post-content p {
    margin-bottom: 20px !important;
    font-size: inherit !important;
    line-height: inherit !important;
  }

  body.single-post .dne-single-reading__content > p:first-child,
  body.single-post .dne-post-content-output > p:first-child,
  body.single-post .entry-content > p:first-child {
    font-size: 19px !important;
    line-height: 1.7 !important;
    font-weight: 600 !important;
  }

  body.single-post .dne-single-reading__content h1,
  body.single-post .dne-single-reading__content h2,
  body.single-post .dne-single-reading__content h3,
  body.single-post .dne-post-content-output h1,
  body.single-post .dne-post-content-output h2,
  body.single-post .dne-post-content-output h3,
  body.single-post .entry-content h1,
  body.single-post .entry-content h2,
  body.single-post .entry-content h3 {
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  body.single-post .dne-single-reading__content h2,
  body.single-post .dne-post-content-output h2,
  body.single-post .entry-content h2 {
    margin: 36px 0 14px !important;
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.12 !important;
  }

  body.single-post .dne-single-reading__content h3,
  body.single-post .dne-post-content-output h3,
  body.single-post .entry-content h3 {
    margin: 28px 0 12px !important;
    font-size: clamp(23px, 6.4vw, 29px) !important;
    line-height: 1.16 !important;
  }

  body.single-post .dne-single-reading__content img,
  body.single-post .dne-post-content-output img,
  body.single-post .entry-content img,
  body.single-post figure,
  body.single-post .wp-block-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Old scientific/taxonomy boxes inside posts: full mobile width and readable cells. */
  body.single-post .dne-single-reading__content .dne-taxonomy-table,
  body.single-post .dne-single-reading__content .scientific-classification,
  body.single-post .dne-single-reading__content .taxonomy-card,
  body.single-post .dne-single-reading__content [class*="classification"],
  body.single-post .dne-post-content-output .dne-taxonomy-table,
  body.single-post .dne-post-content-output .scientific-classification,
  body.single-post .dne-post-content-output .taxonomy-card,
  body.single-post .dne-post-content-output [class*="classification"],
  body.single-post .entry-content .dne-taxonomy-table,
  body.single-post .entry-content .scientific-classification,
  body.single-post .entry-content .taxonomy-card,
  body.single-post .entry-content [class*="classification"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 24px 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

  body.single-post .dne-single-reading__content .dne-taxonomy-table > div,
  body.single-post .dne-post-content-output .dne-taxonomy-table > div,
  body.single-post .entry-content .dne-taxonomy-table > div {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.single-post .dne-single-reading__content .dne-taxonomy-row,
  body.single-post .dne-post-content-output .dne-taxonomy-row,
  body.single-post .entry-content .dne-taxonomy-row,
  body.single-post [class*="classification"] .dne-taxonomy-row,
  body.single-post [class*="classification"] .taxonomy-row,
  body.single-post [class*="classification"] .classification-row {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
    width: 100% !important;
    padding: 13px 14px !important;
  }

  body.single-post .dne-single-reading__content .dne-taxonomy-row *,
  body.single-post .dne-post-content-output .dne-taxonomy-row *,
  body.single-post .entry-content .dne-taxonomy-row *,
  body.single-post [class*="classification"] *,
  body.single-post [class*="taxonomy"] * {
    max-width: 100% !important;
    min-width: 0 !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
  }

  body.single-post .dne-single-reading__content .dne-taxonomy-row strong,
  body.single-post .dne-post-content-output .dne-taxonomy-row strong,
  body.single-post .entry-content .dne-taxonomy-row strong,
  body.single-post [class*="classification"] strong,
  body.single-post [class*="taxonomy"] strong {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  body.single-post .dne-single-reading__content .dne-taxonomy-row span,
  body.single-post .dne-post-content-output .dne-taxonomy-row span,
  body.single-post .entry-content .dne-taxonomy-row span,
  body.single-post [class*="classification"] span,
  body.single-post [class*="taxonomy"] span {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }

  body.single-post .dnt-single-comments-v22 > .elementor-container,
  body.single-post .dnt-single-comments-v22 > .e-con-inner,
  body.single-post .dnt-single-author-bottom-v24 > .elementor-container,
  body.single-post .dnt-single-author-bottom-v24 > .e-con-inner,
  body.single-post .dnt-single-related-v22 > .elementor-container,
  body.single-post .dnt-single-related-v22 > .e-con-inner {
    width: min(calc(100% - 20px), 100%) !important;
  }
}

@media (max-width: 420px) {
  body.single-post .dne-single-reading {
    padding-inline: 8px !important;
  }
  body.single-post .dne-single-reading__inner {
    width: calc(100vw - 16px) !important;
  }
  body.single-post .dne-single-reading__article {
    padding: 22px 16px !important;
    border-radius: 18px !important;
  }
  body.single-post .dne-single-reading__content,
  body.single-post .dne-post-content-output,
  body.single-post .entry-content,
  body.single-post .post-content,
  body.single-post .wp-block-post-content {
    font-size: 17px !important;
    line-height: 1.72 !important;
  }
  body.single-post .dne-single-reading__content > p:first-child,
  body.single-post .dne-post-content-output > p:first-child,
  body.single-post .entry-content > p:first-child {
    font-size: 18px !important;
  }
}


/* Version 4.4.0 — equal mobile side spacing for single posts.
   Keeps the article/card centered, prevents images/figures from pushing to one
   side, and gives the same left/right breathing room on mobile screens. */
@media (max-width: 767px) {
  body.single-post {
    --dne-mobile-page-gap: 14px;
    --dne-mobile-card-pad: 18px;
  }

  body.single-post .dnt-single-reading-v26,
  body.single-post .dnt-single-comments-v22,
  body.single-post .dnt-single-author-bottom-v24,
  body.single-post .dnt-single-related-v22 {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: var(--dne-mobile-page-gap) !important;
    padding-right: var(--dne-mobile-page-gap) !important;
    overflow-x: hidden !important;
  }

  body.single-post .dne-single-reading {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.single-post .dne-single-reading__inner,
  body.single-post .dne-single-reading__article,
  body.single-post .dne-single-reading__sidebar,
  body.single-post .dnt-single-comments-v22 > .elementor-container,
  body.single-post .dnt-single-comments-v22 > .e-con-inner,
  body.single-post .dnt-single-author-bottom-v24 > .elementor-container,
  body.single-post .dnt-single-author-bottom-v24 > .e-con-inner,
  body.single-post .dnt-single-related-v22 > .elementor-container,
  body.single-post .dnt-single-related-v22 > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  body.single-post .dne-single-reading__article {
    padding-left: var(--dne-mobile-card-pad) !important;
    padding-right: var(--dne-mobile-card-pad) !important;
  }

  body.single-post .dne-single-reading__content,
  body.single-post .dne-post-content-output,
  body.single-post .entry-content,
  body.single-post .post-content,
  body.single-post .wp-block-post-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-post .dne-single-reading__content > *,
  body.single-post .dne-post-content-output > *,
  body.single-post .entry-content > *,
  body.single-post .post-content > *,
  body.single-post .wp-block-post-content > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body.single-post .dne-single-reading__content figure,
  body.single-post .dne-single-reading__content .wp-block-image,
  body.single-post .dne-post-content-output figure,
  body.single-post .dne-post-content-output .wp-block-image,
  body.single-post .entry-content figure,
  body.single-post .entry-content .wp-block-image {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.single-post .dne-single-reading__content img,
  body.single-post .dne-post-content-output img,
  body.single-post .entry-content img,
  body.single-post .post-content img,
  body.single-post .wp-block-post-content img,
  body.single-post .wp-block-image img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.single-post .dne-single-reading__content .alignwide,
  body.single-post .dne-single-reading__content .alignfull,
  body.single-post .dne-post-content-output .alignwide,
  body.single-post .dne-post-content-output .alignfull,
  body.single-post .entry-content .alignwide,
  body.single-post .entry-content .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.single-post .dne-reading-recent-item {
    grid-template-columns: 86px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  body.single-post .dne-reading-recent-item h4 {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.single-post .dne-reading-notice,
  body.single-post .dne-single-reading__side-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 420px) {
  body.single-post {
    --dne-mobile-page-gap: 12px;
    --dne-mobile-card-pad: 16px;
  }

  body.single-post .dne-single-reading__article {
    border-radius: 18px !important;
  }

  body.single-post .dne-reading-recent-item {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  body.single-post .dne-reading-recent-thumb {
    width: 76px !important;
  }
}

/* 4.9.0 — Readability and palette sync with Dhiveshi Nature Pro 3.7 color themes.
   Large titles use natural letter spacing and comfortable line height. */
:is(.dne-hero-title,.dne-post-hero h1,.dne-archive-copy h1,.dne-section-heading h2,.dne-image-copy h2,.dne-cta-shell h2,.dne-species-directory-pro__title,.dne-species-directory-pro__card-title,.dne-post-title,.dne-card-title){letter-spacing:var(--dnt-heading-tracking,0em)!important;word-spacing:.02em}
:is(.dne-hero-title,.dne-post-hero h1,.dne-archive-copy h1,.dne-species-directory-pro__title){line-height:var(--dnt-display-line,1.12)!important}
.dne-single-reading__content :is(h2,h3,h4){letter-spacing:var(--dnt-heading-tracking,0em);line-height:1.3;color:var(--dnt-heading,#042f39)}
.dne-single-reading__content p,.dne-single-reading__content li{line-height:1.8}
