/* ════════════════════════════════════════
   NUMLYTICS BLOG — Single Post Layout
   Paste into: Appearance → Customize → Additional CSS
════════════════════════════════════════ */

.nblog-page-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 50px clamp(20px,5vw,50px) 60px;
}
.nblog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}
.nblog-content { min-width: 0; }

/* Category pills */
.nblog-post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.nblog-post-cat {
  font-family: 'Sora', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #1A2356; background: #EEF1FF;
  border: 1px solid rgba(26,35,86,0.10);
  padding: 4px 12px; text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.nblog-post-cat:hover { background: #1A2356; color: #fff; }

/* Post title */
.nblog-post-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(26px, 3.5vw, 46px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.025em; color: #1A2356; margin: 0 0 20px;
}

/* Meta row */
.nblog-post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px; font-family: 'Sora', sans-serif;
  font-size: 12px; font-weight: 400; color: rgba(26,35,86,0.45);
}
.nblog-meta-author, .nblog-meta-date, .nblog-meta-read { display: flex; align-items: center; gap: 5px; }
.nblog-meta-sep { opacity: 0.3; }

/* Featured image */
.nblog-post-thumb { margin-bottom: 32px; overflow: hidden; border: 1px solid rgba(26,35,86,0.08); }
.nblog-thumb-img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.nblog-post-thumb:hover .nblog-thumb-img { transform: scale(1.02); }

/* Body typography */
.nblog-post-body {
  font-family: 'Sora', sans-serif;
  font-size: 15.5px; font-weight: 300; line-height: 1.88; color: #1A2356;
}
.nblog-post-body h2 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; color: #1A2356;
  margin: 48px 0 16px; letter-spacing: -0.018em; line-height: 1.15;
  padding-bottom: 12px; border-bottom: 2px solid #EEF1FF;
}
.nblog-post-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(17px, 2vw, 22px); font-weight: 700; color: #1A2356;
  margin: 36px 0 12px; letter-spacing: -0.01em; line-height: 1.25;
}
.nblog-post-body p { margin: 0 0 22px; color: rgba(26,35,86,0.75); }
.nblog-post-body strong { color: #1A2356; font-weight: 600; }
.nblog-post-body a { color: #1A2356; font-weight: 500; border-bottom: 1.5px solid #A5ADFF; text-decoration: none; transition: color 0.18s; }
.nblog-post-body a:hover { color: #A5ADFF; }
.nblog-post-body ul, .nblog-post-body ol { padding-left: 0; margin: 0 0 24px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nblog-post-body ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: rgba(26,35,86,0.72); line-height: 1.65; }
.nblog-post-body ul li::before { content: '→'; color: #A5ADFF; font-weight: 700; font-size: 12px; flex-shrink: 0; margin-top: 3px; }
.nblog-post-body ol { counter-reset: nblog-ol; }
.nblog-post-body ol li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: rgba(26,35,86,0.72); line-height: 1.65; counter-increment: nblog-ol; }
.nblog-post-body ol li::before { content: counter(nblog-ol); font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 800; color: #A5ADFF; background: #EEF1FF; border: 1px solid rgba(26,35,86,0.09); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.nblog-post-body blockquote { margin: 32px 0; padding: 24px 28px; background: #EEF1FF; border-left: 4px solid #A5ADFF; font-size: 16px; font-weight: 400; font-style: italic; color: rgba(26,35,86,0.65); line-height: 1.75; }
.nblog-post-body pre, .nblog-post-body code { font-family: 'Courier New', Courier, monospace; font-size: 13.5px; background: #1A2356; color: #A5ADFF; }
.nblog-post-body pre { padding: 24px; overflow-x: auto; margin: 28px 0; line-height: 1.65; }
.nblog-post-body code { padding: 2px 7px; border-radius: 3px; }
.nblog-post-body img { max-width: 100%; height: auto; display: block; margin: 28px 0; border: 1px solid rgba(26,35,86,0.08); }
.nblog-post-body table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 13.5px; }
.nblog-post-body table th { background: #1A2356; color: #fff; font-weight: 600; padding: 12px 16px; text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.nblog-post-body table td { padding: 11px 16px; border-bottom: 1px solid rgba(26,35,86,0.08); color: rgba(26,35,86,0.72); vertical-align: top; }
.nblog-post-body table tr:nth-child(even) td { background: #EEF1FF; }

/* Tags */
.nblog-post-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 40px 0; padding: 24px 0; border-top: 1px solid rgba(26,35,86,0.09); }
.nblog-tags-label { font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26,35,86,0.40); }
.nblog-tag { font-family: 'Sora', sans-serif; font-size: 11px; font-weight: 500; color: rgba(26,35,86,0.55); padding: 4px 12px; border: 1px solid rgba(26,35,86,0.10); background: #EEF1FF; text-decoration: none; transition: background 0.18s, color 0.18s; }
.nblog-tag:hover { background: #1A2356; color: #fff; }

/* Author box */
.nblog-author-box { display: flex; align-items: flex-start; gap: 20px; padding: 28px 32px; background: #EEF1FF; border: 1px solid rgba(26,35,86,0.09); margin: 40px 0; }
.nblog-avatar-img { width: 64px !important; height: 64px !important; border-radius: 50% !important; flex-shrink: 0; border: 2px solid rgba(26,35,86,0.10); }
.nblog-author-label { font-family: 'Sora', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #A5ADFF; margin-bottom: 4px; }
.nblog-author-name { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: #1A2356; margin-bottom: 6px; }
.nblog-author-desc { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 300; color: rgba(26,35,86,0.55); line-height: 1.65; }

/* Post nav */
.nblog-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(26,35,86,0.09); }
.nblog-nav-prev { text-align: left; }
.nblog-nav-next { text-align: right; }
.nblog-nav-label { font-family: 'Sora', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(26,35,86,0.35); display: block; margin-bottom: 6px; }
.nblog-nav-link { font-family: 'Sora', sans-serif; font-size: 13.5px; font-weight: 600; color: #1A2356; text-decoration: none; line-height: 1.4; border-bottom: 1.5px solid #A5ADFF; padding-bottom: 1px; transition: color 0.18s; }
.nblog-nav-link:hover { color: #A5ADFF; }

/* Sidebar */
.nblog-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.nblog-widget { background: #EEF1FF; border: 1px solid rgba(26,35,86,0.09); padding: 24px 22px; font-family: 'Sora', sans-serif; }
.nblog-widget-title { font-family: 'Sora', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #1A2356; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid #A5ADFF; display: flex; align-items: center; gap: 8px; }
.nblog-widget-title::before { content: ''; display: block; width: 14px; height: 2px; background: #A5ADFF; flex-shrink: 0; }

/* Recent Posts — image left, title right */
.nblog-widget.widget_recent_entries ul li {
  display: flex;
  align-items: left;
  gap: 12px;
  padding: 10px 0;
}

.nblog-widget.widget_recent_entries ul li img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(26,35,86,0.09);
  display: block !important;
  margin: 0 !important;
}

.nblog-widget.widget_recent_entries ul li a {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.nblog-widget.widget_recent_entries .post-date {
  display: block;
  font-size: 10.5px;
  color: rgba(26,35,86,0.35);
  margin-top: 3px;
}

/* Sidebar: Categories */
.nblog-widget.widget_categories ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.nblog-widget.widget_categories li a { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 500; color: #1A2356; text-decoration: none; display: flex; align-items: center; gap: 8px; padding: 8px 11px; background: #ffffff; border: 1px solid rgba(26,35,86,0.08); transition: background 0.18s, color 0.18s; }
.nblog-widget.widget_categories li a::before { content: '→'; color: #A5ADFF; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.nblog-widget.widget_categories li a:hover { background: #1A2356; color: #fff; }

/* Search widget — nuclear fix for all possible structures */
.nblog-widget form,
.nblog-widget .search-form,
.nblog-widget .wp-block-search__inside-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
}

.nblog-widget input[type="search"],
.nblog-widget input[type="text"],
.nblog-widget .search-field,
.nblog-widget .wp-block-search__input {
  flex: 1 !important;
  min-width: 0 !important;
  border-right: none !important;
  border-radius: 0 !important;
  padding: 10px 12px !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 13px !important;
  border: 1px solid rgba(26,35,86,0.15) !important;
  background: #ffffff !important;
  color: #1A2356 !important;
  outline: none !important;
  height: auto !important;
  width: auto !important;
  display: block !important;
}

.nblog-widget input[type="submit"],
.nblog-widget button[type="submit"],
.nblog-widget .search-submit,
.nblog-widget .wp-block-search__button {
  flex-shrink: 0 !important;
  background: #1A2356 !important;
  color: white !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 10px 14px !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
}

.nblog-widget input[type="submit"]:hover,
.nblog-widget button[type="submit"]:hover,
.nblog-widget .wp-block-search__button:hover {
  background: #A5ADFF !important;
  color: #1A2356 !important;
}

/* Hide the floating Search label */
.nblog-widget.widget_search label,
.nblog-widget .wp-block-search__label {
  display: none !important;
}

/* Clean up the input row */
.nblog-widget input[type="search"],
.nblog-widget input[type="text"],
.nblog-widget .wp-block-search__input {
  flex: 1 !important;
  min-width: 0 !important;
  border: 1px solid rgba(26,35,86,0.15) !important;
  border-right: none !important;
  border-radius: 0 !important;
  padding: 11px 13px !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 13px !important;
  background: #ffffff !important;
  color: #1A2356 !important;
  outline: none !important;
  box-shadow: none !important;
  height: auto !important;
}

.nblog-widget input[type="search"]::placeholder {
  color: #ffffff !important;
  font-size: 12px !important;
}

/* Button stays navy, no gap */
.nblog-widget input[type="submit"],
.nblog-widget button[type="submit"],
.nblog-widget .wp-block-search__button {
  flex-shrink: 0 !important;
  background: #1A2356 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  cursor: pointer !important;
  margin: 0 !important;
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.nblog-widget input[type="submit"]:hover,
.nblog-widget button[type="submit"]:hover {
  background: #A5ADFF !important;
  color: #1A2356 !important;
}

/* Add Search title inside Search widget via CSS */
.nblog-widget.widget_search::before {
  content: 'Search' !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #1A2356 !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #A5ADFF !important;
  width: 100% !important;
}
/* Add Latest Articles title inside Recent Posts widget via CSS */
.nblog-widget.widget_recent_entries::before {
  content: 'Latest Articles' !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #1A2356 !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid #A5ADFF !important;
  width: 100% !important;
}

.nblog-widget.widget_recent_entries::before::before {
  content: '' !important;
  display: block !important;
  width: 14px !important;
  height: 2px !important;
  background: #A5ADFF !important;
  flex-shrink: 0 !important;
}

/* Sidebar: Tags */
.nblog-widget.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.nblog-widget.widget_tag_cloud .tagcloud a { font-family: 'Sora', sans-serif; font-size: 11px !important; font-weight: 500; color: rgba(26,35,86,0.55); text-decoration: none; padding: 4px 10px; border: 1px solid rgba(26,35,86,0.10); background: #ffffff; transition: background 0.18s, color 0.18s; }
.nblog-widget.widget_tag_cloud .tagcloud a:hover { background: #1A2356; color: #fff; }

/* Sidebar: CTA Card (Custom HTML widget) */
.nblog-cta-card { background: #1A2356; padding: 28px 24px; font-family: 'Sora', sans-serif; }
.nblog-cta-label { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #A5ADFF; margin-bottom: 10px; }
.nblog-cta-title { font-size: 17px; font-weight: 800; color: #ffffff; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 10px; }
.nblog-cta-desc { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.50); line-height: 1.70; margin-bottom: 20px; }
.nblog-cta-btn { display: flex; align-items: center; justify-content: center; gap: 8px; background: #EEF1FF; color: #1A2356; font-family: 'Sora', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 13px 20px; text-decoration: none; transition: background 0.2s, color 0.2s; }
.nblog-cta-btn:hover { background: #A5ADFF; color: #1A2356; }

/* Responsive */
@media(max-width:1024px){ .nblog-layout { grid-template-columns: 1fr 280px; gap: 40px; } .nblog-sidebar { top: 80px; } }
@media(max-width:767px){ .nblog-page-wrap { padding: 36px clamp(16px,4vw,28px) 56px; } .nblog-layout { grid-template-columns: 1fr; gap: 48px; } .nblog-sidebar { position: static; } .nblog-post-title { font-size: clamp(22px, 6vw, 32px); } .nblog-post-nav { grid-template-columns: 1fr; gap: 24px; } .nblog-nav-next { text-align: left; } .nblog-author-box { flex-direction: column; gap: 14px; } .nblog-post-body h2 { font-size: clamp(18px, 5vw, 24px); } .nblog-post-body pre { font-size: 12px; padding: 16px; } .nblog-post-body table { font-size: 12px; } .nblog-post-body table th, .nblog-post-body table td { padding: 9px 11px; } }

/* ============================================================
   NUMLYTICS BLOG — nb-post Responsive CSS
   Breakpoints: Desktop (>1280) · Laptop (1280) · Tablet (1024) · Mobile (767)
   Paste into: Appearance → Customize → Additional CSS
   ============================================================ */

/* ── BASE (all screens, max-width already set to 780px on .nb-post) ── */
.nb-post {
  max-width: 780px;
  width: 100%;
  box-sizing: border-box;
}

/* Images never overflow */
.nb-post img,
.nb-post .nb-hero {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* Tables never overflow */
.nb-post .nb-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prevent any element breaking out */
.nb-post * {
  box-sizing: border-box;
  max-width: 100%;
}

/* ============================================================
   LAPTOP — max-width: 1280px
   Slightly tighter layout, reduce font sizes minimally
   ============================================================ */
@media (max-width: 1280px) {

  .nb-post {
    max-width: 720px;
  }

  .nb-post .nb-title {
    font-size: clamp(24px, 3vw, 40px);
  }

  .nb-post .nb-body h2 {
    font-size: clamp(19px, 2.1vw, 25px);
  }

  .nb-post .nb-body h3 {
    font-size: 17px;
  }

  .nb-post .nb-body {
    font-size: 15.5px;
  }

  .nb-post .nb-toc {
    padding: 20px 24px;
  }

  .nb-post .nb-takeaway {
    padding: 26px 28px;
  }

  .nb-post .nb-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .nb-post .nb-related-card {
    padding: 18px;
  }

  .nb-post .nb-pull {
    font-size: 15px;
    padding: 20px 24px;
  }

}

/* ============================================================
   TABLET — max-width: 1024px
   Single column, larger touch targets, reduced density
   ============================================================ */
@media (max-width: 1024px) {

  .nb-post {
    max-width: 100%;
    padding: 0 24px;
  }

  /* Title scales fluidly */
  .nb-post .nb-title {
    font-size: clamp(22px, 4vw, 36px);
    letter-spacing: -0.018em;
    margin-bottom: 16px;
  }

  /* Meta row wraps gracefully */
  .nb-post .nb-meta {
    gap: 12px;
    flex-wrap: wrap;
  }

  .nb-post .nb-dot {
    display: none;
  }

  /* Hero image */
  .nb-post .nb-hero {
    margin-bottom: 8px;
  }

  .nb-post .nb-hero-cap {
    font-size: 12px;
    margin-bottom: 28px;
  }

  /* TOC */
  .nb-post .nb-toc {
    padding: 18px 22px;
    margin-bottom: 34px;
  }

  .nb-post .nb-toc-head {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .nb-post .nb-toc li {
    font-size: 13px;
    line-height: 1.55;
  }

  /* Body text */
  .nb-post .nb-body {
    font-size: 15px;
    line-height: 1.80;
  }

  .nb-post .nb-body p {
    margin-bottom: 20px;
  }

  .nb-post .nb-body h2 {
    font-size: clamp(18px, 3vw, 24px);
    margin: 44px 0 14px;
    padding-bottom: 10px;
  }

  .nb-post .nb-body h3 {
    font-size: 16px;
    margin: 28px 0 10px;
  }

  /* Pull quote */
  .nb-post .nb-pull {
    font-size: 15px;
    padding: 18px 20px;
    margin: 26px 0;
  }

  /* Comparison table — allow horizontal scroll */
  .nb-post .nb-table-wrap {
    margin: 26px 0;
    font-size: 13px;
  }

  .nb-post .nb-table th {
    padding: 11px 13px;
    font-size: 10px;
  }

  .nb-post .nb-table td {
    padding: 10px 13px;
    font-size: 13px;
  }

  /* Takeaway box */
  .nb-post .nb-takeaway {
    padding: 22px 24px;
    margin: 30px 0;
  }

  .nb-post .nb-takeaway-title {
    font-size: 9.5px;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
  }

  .nb-post .nb-takeaway li {
    font-size: 13.5px;
    gap: 9px;
  }

  /* Tags */
  .nb-post .nb-tags {
    gap: 7px;
    padding: 22px 0;
    margin-top: 36px;
  }

  .nb-post .nb-tag {
    font-size: 11px;
    padding: 5px 11px;
  }

  /* Related posts — keep 2 columns on tablet */
  .nb-post .nb-related {
    margin-top: 40px;
  }

  .nb-post .nb-related-title {
    font-size: 16px;
    margin-bottom: 16px;
  }

 .nb-post .nb-related-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nb-post .nb-related-card {
    padding: 16px;
    gap: 7px;
  }

  .nb-post .nb-related-title-text {
    font-size: 13px;
  }

  /* Category tag */
  .nb-post .nb-cat {
    font-size: 9.5px;
    padding: 4px 11px;
    margin-bottom: 16px;
  }

}

/* ============================================================
   MOBILE — max-width: 767px
   Full single-column, larger tap targets, simplified layout
   ============================================================ */
@media (max-width: 767px) {

  .nb-post {
    max-width: 100%;
    padding: 0 16px;
  }

  /* Category tag */
  .nb-post .nb-cat {
    font-size: 9px;
    padding: 4px 10px;
    margin-bottom: 14px;
    letter-spacing: 0.14em;
  }

  /* H1 */
  .nb-post .nb-title {
    font-size: clamp(20px, 6.5vw, 30px);
    line-height: 1.12;
    letter-spacing: -0.016em;
    margin-bottom: 14px;
  }

  /* Meta row — stack vertically */
  .nb-post .nb-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 0;
    margin-bottom: 22px;
  }

  .nb-post .nb-dot {
    display: none;
  }

  .nb-post .nb-meta-item {
    font-size: 11.5px;
  }

  /* Hero image */
  .nb-post .nb-hero {
    margin-bottom: 6px;
  }

  .nb-post .nb-hero-cap {
    font-size: 11px;
    margin-bottom: 24px;
    line-height: 1.55;
  }

  /* TOC — compact */
  .nb-post .nb-toc {
    padding: 16px 18px;
    margin-bottom: 28px;
    border-left-width: 3px;
  }

  .nb-post .nb-toc-head {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
  }

  .nb-post .nb-toc ol {
    padding-left: 16px;
    gap: 8px;
  }

  .nb-post .nb-toc li {
    font-size: 12.5px;
    line-height: 1.50;
  }

  /* Body text */
  .nb-post .nb-body {
    font-size: 14.5px;
    line-height: 1.78;
  }

  .nb-post .nb-body p {
    margin-bottom: 18px;
  }

  /* H2 */
  .nb-post .nb-body h2 {
    font-size: clamp(17px, 5.5vw, 22px);
    margin: 38px 0 13px;
    padding-bottom: 9px;
    letter-spacing: -0.012em;
  }

  /* H3 */
  .nb-post .nb-body h3 {
    font-size: 15.5px;
    margin: 24px 0 9px;
    letter-spacing: -0.008em;
  }

  /* Pull quote */
  .nb-post .nb-pull {
    font-size: 14px;
    padding: 16px 18px;
    margin: 22px 0;
    line-height: 1.68;
    border-left-width: 3px;
  }

  /* Inline code */
  .nb-post .nb-body code {
    font-size: 12.5px;
    padding: 2px 6px;
    word-break: break-word;
  }

  /* Comparison table */
  .nb-post .nb-table-wrap {
    margin: 22px -16px;
    border-left: none;
    border-right: none;
    width: calc(100% + 32px);
  }

  .nb-post .nb-table {
    font-size: 12px;
    min-width: 480px;
  }

  .nb-post .nb-table th {
    padding: 10px 12px;
    font-size: 9.5px;
    letter-spacing: 0.07em;
  }

  .nb-post .nb-table td {
    padding: 9px 12px;
    font-size: 12px;
    line-height: 1.50;
  }

  /* Takeaway box */
  .nb-post .nb-takeaway {
    padding: 20px 18px;
    margin: 26px 0;
  }

  .nb-post .nb-takeaway-title {
    font-size: 9px;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
    gap: 7px;
  }

  .nb-post .nb-takeaway-title::before {
    width: 12px;
  }

  .nb-post .nb-takeaway ul {
    gap: 10px;
  }

  .nb-post .nb-takeaway li {
    font-size: 13px;
    line-height: 1.62;
    gap: 9px;
  }

  /* Tags */
  .nb-post .nb-tags {
    gap: 6px;
    padding: 20px 0;
    margin-top: 30px;
  }

  .nb-post .nb-tag-lbl {
    font-size: 10px;
    margin-right: 2px;
    width: 100%;
    margin-bottom: 4px;
  }

  .nb-post .nb-tag {
    font-size: 10.5px;
    padding: 5px 10px;
  }

  /* Related posts — full single column on mobile */
  .nb-post .nb-related {
    margin-top: 34px;
  }

  .nb-post .nb-related-title {
    font-size: 15px;
    margin-bottom: 14px;
    padding-bottom: 11px;
  }

  .nb-post .nb-related-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nb-post .nb-related-card {
    padding: 15px;
    gap: 6px;
  }

  .nb-post .nb-related-cat {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .nb-post .nb-related-title-text {
    font-size: 13px;
    line-height: 1.38;
  }

  .nb-post .nb-related-arrow {
    font-size: 13px;
    margin-top: 2px;
  }

  /* Body links — easier to tap */
  .nb-post .nb-body a {
    padding-bottom: 1px;
  }

}

/* ============================================================
   EXTRA SMALL — max-width: 480px
   Phones in portrait, ultra-compact
   ============================================================ */
@media (max-width: 480px) {

  .nb-post {
    padding: 0 14px;
  }

  .nb-post .nb-title {
    font-size: clamp(18px, 7vw, 26px);
  }

  .nb-post .nb-body {
    font-size: 14px;
    line-height: 1.75;
  }

  .nb-post .nb-body h2 {
    font-size: clamp(16px, 6vw, 20px);
    margin: 32px 0 12px;
  }

  .nb-post .nb-body h3 {
    font-size: 15px;
    margin: 20px 0 8px;
  }

  .nb-post .nb-takeaway {
    padding: 18px 16px;
  }

  .nb-post .nb-takeaway li {
    font-size: 12.5px;
  }

  .nb-post .nb-pull {
    font-size: 13.5px;
    padding: 14px 16px;
  }

  .nb-post .nb-toc li {
    font-size: 12px;
  }

  .nb-post .nb-table-wrap {
    margin: 20px -14px;
    width: calc(100% + 28px);
  }

  .nb-post .nb-table {
    font-size: 11.5px;
  }

  .nb-post .nb-tag {
    font-size: 10px;
    padding: 4px 9px;
  }

  .nb-post .nb-related-title-text {
    font-size: 12.5px;
  }

}

/* Remove ghost widget drop zone from blog posts */
.widget-area,
.wp-block-widget-area,
[id*="block-widget-area"] {
  display: none !important;
}

/* Hide Hello Elementor default author box */
.elementor-post__excerpt,
.elementor-author-box,
.author-box,
.post-author,
.entry-author,
[class*="author-bio"],
[class*="author_bio"] {
  display: none !important;
}

/* Fix Recent Posts title colour and left alignment */
.nblog-widget.widget_recent_entries ul li a {
  color: #1A2356 !important;
  font-family: 'Sora', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none !important;
}

.nblog-widget.widget_recent_entries ul li a:hover {
  color: #A5ADFF !important;
}

/* Ensure widget padding is consistent with others */
.nblog-widget.widget_recent_entries {
  padding: 24px 22px;
}

/* Remove any extra margin pushing content inward */
.nblog-widget.widget_recent_entries ul {
  margin: 0 !important;
  padding: 0 !important;
}

.nblog-widget.widget_recent_entries ul li {
  margin: 0 !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(26,35,86,0.08);
}

.nblog-widget.widget_recent_entries ul li:last-child {
  border-bottom: none;
  padding-bottom: 0 !important;
}

/* Vertically center title with image */
.nblog-widget.widget_recent_entries ul li {
  display: flex;
  align-items: center !important;
  gap: 12px;
}

/* Fix hero image cropping on single blog posts */
.nblog-post-thumb,
.nblog-post-thumb img,
.nblog-thumb-img {
  height: auto !important;
  max-height: none !important;
  object-fit: unset !important;
  aspect-ratio: unset !important;
}

/* Also override any theme-level image cropping */
.single .post-thumbnail,
.single .post-thumbnail img,
.single .wp-post-image {
  height: auto !important;
  max-height: none !important;
  object-fit: unset !important;
  width: 100% !important;
}

/* ══════════════════════════════════════
   DMA Block 02 — Desktop Layout Restore
   Forces correct grids above 1024px
   Overrides any leaked tablet/mobile CSS
══════════════════════════════════════ */
@media(min-width:1025px){

  /* ── Dimension cards: restore 3+2 layout ── */
  .ndma2-dims-inner{
    display:block !important;
  }
  .ndma2-dims-row1{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    gap:2px !important;
    margin-bottom:2px !important;
  }
  .ndma2-dims-row2{
    display:grid !important;
    grid-template-columns:repeat(2,1fr) !important;
    gap:2px !important;
  }
  /* Reset any orphan-card centering from tablet fix */
  .ndma2-dims-row2 .ndma2-dim:last-child{
    grid-column:unset !important;
    width:100% !important;
    margin:0 !important;
  }

  /* ── Steps: restore 4-col ── */
  .ndma2-steps{
    grid-template-columns:repeat(4,1fr) !important;
    gap:2px !important;
  }

  /* ── Deliverables: restore 4-col stacked cards ── */
  .ndma2-deliverables{
    grid-template-columns:repeat(4,1fr) !important;
    gap:16px !important;
  }
  .ndma2-del{
    flex-direction:column !important;
    align-items:center !important;
    text-align:center !important;
    padding:28px 24px !important;
    gap:0 !important;
  }
  .ndma2-del-icon-wrap{
    margin-bottom:16px !important;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — all prefixed with .blog / .archive
════════════════════════════════════════ */

/* ── Laptop ≤1280px ── */
@media (max-width: 1280px) {
  .blog .page-content,
  .archive .page-content {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    padding: 36px 0 !important;
  }
  .blog article.post,
  .archive article.post {
    height: 400px !important;
    max-height: 400px !important;
  }
  .blog article.post > a,
  .archive article.post > a {
    height: 185px !important;
    max-height: 185px !important;
  }
  .blog article.post > a img,
  .archive article.post > a img,
  .blog .post .wp-post-image,
  .archive .post .wp-post-image {
    height: 185px !important;
    max-height: 185px !important;
  }
  .blog article.post > h2.entry-title,
  .archive article.post > h2.entry-title {
    font-size: 14.5px !important;
    margin: 13px 16px 7px !important;
  }
  .blog article.post > p,
  .archive article.post > p {
    font-size: 12.5px !important;
    margin: 0 16px !important;
  }
  .blog article.post > .more-link,
  .archive article.post > .more-link {
    margin: auto 16px 16px !important;
  }
}

/* ── Tablet ≤1024px ── */
@media (max-width: 1024px) {
  .blog .page-content,
  .archive .page-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 18px !important;
    padding: 30px 0 !important;
  }
  .blog article.post,
  .archive article.post {
    height: 420px !important;
    max-height: 420px !important;
  }
  .blog article.post > a,
  .archive article.post > a {
    height: 200px !important;
    max-height: 200px !important;
  }
  .blog article.post > a img,
  .archive article.post > a img,
  .blog .post .wp-post-image,
  .archive .post .wp-post-image {
    height: 200px !important;
    max-height: 200px !important;
  }
  .blog article.post > h2.entry-title,
  .archive article.post > h2.entry-title {
    font-size: 15px !important;
    margin: 13px 16px 7px !important;
  }
  .blog article.post > p,
  .archive article.post > p {
    margin: 0 16px !important;
  }
  .blog article.post > .more-link,
  .archive article.post > .more-link {
    margin: auto 16px 16px !important;
  }
}

/* ── Mobile ≤767px ── */
@media (max-width: 767px) {
  .blog .page-content,
  .archive .page-content {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 24px 0 !important;
  }
  .blog article.post,
  .archive article.post {
    height: 120px !important;
    max-height: 120px !important;
    flex-direction: row !important;
    align-items: stretch !important;
  }
  .blog article.post > a,
  .archive article.post > a {
    order: -3 !important;
    width: 110px !important;
    min-width: 110px !important;
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
  }
  .blog article.post > a img,
  .archive article.post > a img,
  .blog .post .wp-post-image,
  .archive .post .wp-post-image {
    width: 110px !important;
    height: 120px !important;
    max-height: 120px !important;
  }
  .blog article.post > h2.entry-title,
  .archive article.post > h2.entry-title {
    font-size: 13px !important;
    height: auto !important;
    max-height: 52px !important;
    margin: 12px 13px 6px !important;
  }
  .blog article.post > p,
  .archive article.post > p {
    display: none !important;
  }
  .blog article.post > .more-link,
  .archive article.post > .more-link {
    margin: auto 13px 12px !important;
    font-size: 9.5px !important;
  }
}

/* ── Extra small ≤480px ── */
@media (max-width: 480px) {
  .blog article.post,
  .archive article.post {
    height: 110px !important;
    max-height: 110px !important;
  }
  .blog article.post > a,
  .archive article.post > a {
    width: 90px !important;
    min-width: 90px !important;
    height: 110px !important;
    max-height: 110px !important;
  }
  .blog article.post > a img,
  .archive article.post > a img {
    width: 90px !important;
    height: 110px !important;
    max-height: 110px !important;
  }
  .blog article.post > h2.entry-title,
  .archive article.post > h2.entry-title {
    font-size: 12.5px !important;
    margin: 10px 12px 5px !important;
  }
  .blog article.post > .more-link,
  .archive article.post > .more-link {
    margin: auto 12px 10px !important;
  }
}

.single .nblog-post-header {
    display: none !important;
}

/* Keep nav links dark and visible */
.nmh-nav-link {
    color: #1A2356 !important;
}

.nmh-logo-text {
    color: #1A2356 !important;
}

/* Remove gap below header */
.nmh-header {
    position: relative !important;
    top: 0 !important;
}

/* Remove top padding/margin on first section */
.elementor-section:first-child,
.e-con:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove all top spacing before hero */
.htb-header + * .nm-hero,
.htb-header ~ * .nm-hero,
.nm-hero {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove Elementor section top padding on homepage */
.home .elementor-section:first-of-type,
.home .e-con:first-of-type,
.page-template-elementor_header_footer .elementor-section:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove any HT Builder spacer */
.ht-builder-spacer,
[class*="htb-spacer"],
[class*="ht-spacer"] {
    display: none !important;
    height: 0 !important;
}

/* FAQ section width fix */
.nm-faq-wrap,
.nm-faq-inner,
.nm-faq-layout,
.nm-faq-list {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.nm-faq-inner {
    max-width: 1300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Prevent Elementor widget from adding extra width */
.elementor-widget-html .nm-faq-wrap {
    width: 100% !important;
}

/* Kill WordPress theme red color on hamburger button */
#nmh-hamburger,
#nmh-hamburger.nmh-open,
button#nmh-hamburger,
.nmh-hamburger,
.nmh-hamburger.nmh-open {
    background: #1A2356 !important;
    background-color: #1A2356 !important;
    border-color: rgba(255,255,255,0.10) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Kill any red from WordPress dialog-buttons-body class */
.dialog-buttons-body button,
.dialog-buttons-body .nmh-hamburger {
    background: #1A2356 !important;
}

/* Ensure spans inside hamburger stay white */
#nmh-hamburger span,
#nmh-hamburger.nmh-open span {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Hide Jetpack stats bar tooltip and widget */
.jp-stats-widget,
.jetpack-stats-widget,
#jp-stats-widget,
[data-jp-stats],
.jp-stats-bar,
#jetpack-stats-widget {
    display: none !important;
}

/* Hide the dark hamburger-looking button top right (Jetpack widget) */
.jp-stats-dashboard-widget,
.stats-widget-button {
    display: none !important;
}

/* Make HT Builder header container sticky */
.htbuilder-header-area {
    position: sticky !important;
    top: 0 !important;
    z-index: 99999 !important;
    width: 100% !important;
}

/* Allow Elementor admin bar to show above header */
#wpadminbar,
#wpadminbar * {
    z-index: 999999 !important;
}

/* Lower header z-index slightly so admin bar dropdowns show above it */
.htbuilder-header-area {
    z-index: 9999 !important;
}

#nmh-header {
    z-index: 9999 !important;
}

/* ═══════════════════════════════════════════
   NUMLYTICS — Blog Index Grid
   Scoped to .blog and .archive only
═══════════════════════════════════════════ */

/* Hide Archives heading */
.blog .page-header,
.blog .page-title,
.archive .page-header,
.archive .page-title {
  display: none !important;
}

/* 3-column grid */
.blog .page-content,
.archive .page-content {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
  padding: 40px 0 !important;
}

/* Card */
.blog article.post,
.archive article.post {
  border: 1px solid rgba(26,35,86,0.09) !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: background 0.2s, transform 0.18s !important;
}
.blog article.post:hover,
.archive article.post:hover {
  background: #EEF1FF !important;
  transform: translateY(-3px) !important;
}

/* Featured image */
.blog .post .wp-post-image,
.archive .post .wp-post-image {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 !important;
  border: none !important;
}

/* Image anchor — order top */
.blog article.post > a,
.archive article.post > a {
  display: block !important;
  overflow: hidden !important;
  width: 100% !important;
  height: 200px !important;
  flex-shrink: 0 !important;
  order: 1 !important;
}

/* Title */
.blog article.post > h2.entry-title,
.archive article.post > h2.entry-title {
  order: 2 !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: #1A2356 !important;
  margin: 14px 18px 0 !important;
  padding: 0 !important;
  height: 110px !important;
  max-height: 110px !important;
  overflow: hidden  !important;
  display: flex !important;
	flex-direction: column !important;
}
.blog article.post > h2.entry-title > a,
.archive article.post > h2.entry-title > a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  max-height: 40px !important;
	flex-shrink: 0 !important;
  color: #1A2356 !important;
  text-decoration: none !important;
  border: none !important;
}

/* Categories — injected via excerpt filter, sits inside excerpt wrapper */
.blog article.post .nb-cats-index,
.archive article.post .nb-cats-index {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  height: auto !important;
  max-height: 52px !important;
	max-height: 52px !important;
  overflow: hidden !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
	flex-shrink: 0 !important;
}

.nb-cat-index-tag {
  display: inline-flex !important;
  align-items: center !important;
  background: #EEF1FF !important;
  color: #1A2356 !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  border: 1px solid rgba(26,35,86,0.10) !important;
  text-decoration: none !important;
  line-height: 1 !important;
  height: 20px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.nb-cat-index-tag:hover {
  background: #1A2356 !important;
  color: #fff !important;
}

/* Excerpt */
.blog article.post > p,
.archive article.post > p {
  order: 3 !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  color: rgba(26,35,86,0.68) !important;
  line-height: 1.70 !important;
	height: 65px !important;
  max-height: 65px !important;
  overflow: hidden !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  margin: 0 18px !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

/* Read more */
.blog article.post > .more-link,
.archive article.post > .more-link {
  order: 4 !important;
  display: inline-block !important;
  margin: auto 18px 18px !important;
  font-family: 'Sora', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: #1A2356 !important;
  text-decoration: none !important;
  border-bottom: 1.5px solid #A5ADFF !important;
  padding-bottom: 2px !important;
  flex-shrink: 0 !important;
}
.blog article.post > .more-link:hover,
.archive article.post > .more-link:hover {
  color: #A5ADFF !important;
}

/* Hide unused theme wrappers */
.blog article.post .entry-header,
.archive article.post .entry-header,
.blog article.post .entry-footer,
.archive article.post .entry-footer,
.blog article.post .entry-summary,
.archive article.post .entry-summary,
.blog article.post .entry-content,
.archive article.post .entry-content {
  display: contents !important;
}

/* Pagination */
.blog nav.pagination,
.archive nav.pagination {
  grid-column: 1 / -1 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
  padding: 0 !important;
}
.blog nav.pagination .page-numbers,
.archive nav.pagination .page-numbers {
  font-family: 'Sora', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 8px 15px !important;
  border: 1px solid rgba(26,35,86,0.12) !important;
  color: #1A2356 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: background 0.18s !important;
}
.blog nav.pagination .current,
.archive nav.pagination .current {
  background: #1A2356 !important;
  color: #EEF1FF !important;
  border-color: #1A2356 !important;
}
.blog nav.pagination .page-numbers:hover,
.archive nav.pagination .page-numbers:hover {
  background: #EEF1FF !important;
}

html {
    scroll-behavior: smooth !important;
}