/* Single Article & Page Layout (8 + 4 Grid) */

.nbh-single-shell { padding-top: 14px; }
.nbh-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
@media (min-width: 1024px) {
  .nbh-single-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; }
}

.nbh-breadcrumbs {
  font-size: 12.5px;
  color: var(--nbh-muted);
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nbh-breadcrumbs a:hover { color: var(--nbh-red); }

.nbh-article-title {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 800;
  line-height: 1.32;
  color: var(--nbh-ink);
  overflow-wrap: break-word;
}
.nbh-article-standfirst {
  font-size: 17px;
  color: var(--nbh-muted);
  margin-top: 10px;
  line-height: 1.6;
}

.nbh-article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  margin: 14px 0;
  border-top: 1px solid var(--nbh-border);
  border-bottom: 1px solid var(--nbh-border);
  font-size: 13px;
  color: var(--nbh-muted);
}
.nbh-byline-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nbh-author-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--nbh-charcoal); }
.nbh-author-avatar { border-radius: 50%; }

.nbh-share-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.nbh-share-btn {
  min-height: 34px; padding: 5px 11px; border-radius: 6px;
  border: 1px solid var(--nbh-border); background: var(--nbh-grey);
  font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--nbh-charcoal); cursor: pointer;
  display: inline-flex; align-items: center;
}
.nbh-share-btn:hover { border-color: var(--nbh-red); color: var(--nbh-red); }

.nbh-article-figure { margin: 16px 0; }
.nbh-figcaption { font-size: 12.5px; color: var(--nbh-muted); margin-top: 6px; }

.nbh-takeaways-box, .nbh-fact-box {
  background: var(--nbh-gold-soft);
  border-left: 4px solid var(--nbh-gold);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 18px 0;
}
.nbh-takeaways-box h2, .nbh-takeaways-box h3, .nbh-fact-box h3 {
  font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--nbh-charcoal);
}
.nbh-takeaways-box ul, .nbh-fact-box ul { padding-left: 20px; }
.nbh-takeaways-box li, .nbh-fact-box li { margin-bottom: 6px; font-size: 15.5px; line-height: 1.65; }

/* Article Body Typography (Devanagari Safe) */
.nbh-entry-content {
  font-size: 17px;
  line-height: 1.78;
  color: var(--nbh-ink);
  overflow-wrap: break-word;
}
.nbh-entry-content p { margin-bottom: 1.25em; }
.nbh-entry-content h2, .nbh-entry-content h3 { margin: 1.4em 0 0.55em; line-height: 1.38; color: var(--nbh-charcoal); }
.nbh-entry-content h1 { font-size: 1.35em; margin: 1.3em 0 0.5em; } /* Demote legacy inner H1 safely without destructive DB edits */
.nbh-entry-content a { color: var(--nbh-red); text-decoration: underline; text-underline-offset: 3px; }
.nbh-entry-content ul, .nbh-entry-content ol { padding-left: 22px; margin-bottom: 1.25em; }
.nbh-entry-content blockquote {
  border-left: 4px solid var(--nbh-red); background: var(--nbh-grey);
  padding: 12px 16px; margin: 1.2em 0; border-radius: 0 6px 6px 0;
}

.nbh-tag-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0; }
.nbh-tag-label { font-size: 13px; font-weight: 700; color: var(--nbh-muted); }
.nbh-tag-chip {
  font-size: 12.5px; padding: 4px 10px; border-radius: 16px;
  background: var(--nbh-grey); border: 1px solid var(--nbh-border); color: var(--nbh-charcoal);
}

.nbh-author-box {
  background: var(--nbh-grey); border: 1px solid var(--nbh-border);
  border-radius: 8px; padding: 16px; margin: 22px 0;
}
.nbh-author-box-inner { display: flex; gap: 14px; align-items: flex-start; }
.nbh-author-box-avatar { border-radius: 50%; flex-shrink: 0; }
.nbh-author-box-name { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.nbh-author-box-bio { font-size: 14px; color: var(--nbh-muted); }

.nbh-related-stories { margin-top: 26px; }
.nbh-sidebar-sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }

/* Contact Form (nbh-core shortcode) */
.nbh-contact-box {
  background: var(--nbh-grey); border: 1px solid var(--nbh-border);
  border-radius: 8px; padding: 20px; margin-top: 22px;
}
.nbh-hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nbh-form-row { margin-bottom: 14px; }
.nbh-form-row label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.nbh-form-row input, .nbh-form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #B6BEC8; border-radius: 6px;
  font-family: inherit; font-size: 15px; background: #FFF; color: var(--nbh-charcoal);
}
.nbh-btn-primary {
  min-height: 44px; padding: 10px 20px; border: none; border-radius: 6px;
  background: var(--nbh-red); color: #FFF; font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.nbh-form-alert { padding: 12px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.nbh-form-alert--success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.nbh-form-alert--error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* Table of Contents Styling (In-Post & Foxiz Fallback) */
.nbh-toc {
  background: var(--nbh-grey);
  border: 1px solid var(--nbh-border);
  border-left: 4px solid var(--nbh-red);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 22px 0;
}
.nbh-toc p {
  font-weight: 800;
  margin-bottom: 10px !important;
  color: var(--nbh-charcoal);
  font-size: 16px;
}
.nbh-toc ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nbh-toc li {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 0 !important;
}
.nbh-toc li a {
  color: var(--nbh-charcoal);
  text-decoration: none;
  font-weight: 600;
  display: block;
}
.nbh-toc li a:hover {
  color: var(--nbh-red);
  text-decoration: underline;
}

/* Fallback for Foxiz Core TOC if present without in-post TOC */
.ruby-table-contents,
.rbtoc {
  background: var(--nbh-grey);
  border: 1px solid var(--nbh-border);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 22px 0;
}
.ruby-table-contents .toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--nbh-charcoal);
}
.ruby-table-contents .toc-content,
.rbtoc .toc-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.ruby-table-contents a.table-link,
.rbtoc a.table-link {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: var(--nbh-charcoal) !important;
  text-decoration: none !important;
  padding: 2px 0 !important;
}
.ruby-table-contents a.table-link:hover,
.rbtoc a.table-link:hover {
  color: var(--nbh-red) !important;
  text-decoration: underline !important;
}

/* Mobile Article Shell Spacing */
@media (max-width: 767px) {
  .nbh-single-shell { padding-bottom: 20px; }
  .nbh-entry-content { margin-bottom: 24px; }
}
