/* =====================================================================
 * Hashbox V2 — Blog layer
 *
 * Loaded only on /blog/, single posts, category, tag, author, date,
 * and search results (see hashbox_enqueue_blog_assets() in
 * functions.php). The landing page does not reference any of these
 * selectors and therefore does not pay for them.
 *
 * Sections:
 *   1. Blog hero (archive header)
 *   2. Blog grid + post cards (3 variants: standard / hero / compact)
 *   3. Single post hero + featured image
 *   4. Single post 2-col body (sticky TOC sidebar)
 *   5. Post meta strip (author / date / reading time)
 *   6. Sticky TOC
 *   7. Share rail
 *   8. CTA panel, tags, related posts
 *   9. Pagination + empty state
 *
 * All sizes consume the trimmed token scale (h1 ~76px, h2 ~42px,
 * h3 ~32px maxima). Mobile-first; breakpoints at 720px (tablet)
 * and 1024px (desktop) follow the rest of the design system.
 * =================================================================== */


/* ---------------------------------------------------------------------
 * 1. Blog hero (archive / category / tag / search header)
 * ------------------------------------------------------------------ */
.hb-blog-hero {
  padding: var(--hb-space-16) 0 var(--hb-space-10);
  background:
    radial-gradient(ellipse at top, color-mix(in oklab, var(--hb-accent-blue) 6%, transparent) 0%, transparent 60%),
    var(--hb-bg);
  border-bottom: 1px solid var(--hb-border);
}
.hb-blog-hero .hb-eyebrow {
  margin-bottom: var(--hb-space-3);
}
.hb-blog-hero__title {
  font-family: var(--hb-font-display);
  font-size: var(--hb-text-5xl);
  font-weight: var(--hb-weight-bold, 700);
  line-height: var(--hb-leading-tight);
  letter-spacing: var(--hb-tracking-tight);
  color: var(--hb-text-strong);
  margin: var(--hb-space-2) 0 var(--hb-space-5);
  max-width: 22ch;
}
.hb-blog-hero__lede {
  font-size: var(--hb-text-lg);
  line-height: var(--hb-leading-relaxed);
  color: var(--hb-text-muted);
  max-width: 60ch;
  margin: 0;
}
.hb-blog-hero__lede p { margin: 0; }
.hb-blog-hero__lede p + p { margin-top: var(--hb-space-3); }
.hb-blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-2);
  margin: var(--hb-space-6) 0 0;
  padding: 0;
}
.hb-blog-cats__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hb-space-2);
  min-height: 2.25rem;
  padding: 0.45rem var(--hb-space-4);
  font-size: var(--hb-text-sm);
  font-weight: var(--hb-weight-medium, 500);
  line-height: var(--hb-leading-none);
  color: var(--hb-text);
  text-decoration: none;
  background: color-mix(in oklab, var(--hb-surface-1) 86%, transparent);
  border: 1px solid var(--hb-border-strong);
  border-radius: var(--hb-radius-full);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--hb-text-strong) 6%, transparent);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.hb-blog-cats__pill:hover,
.hb-blog-cats__pill.is-active {
  color: var(--hb-text-strong);
  background: color-mix(in oklab, var(--hb-accent-blue) 26%, var(--hb-surface-1));
  border-color: color-mix(in oklab, var(--hb-accent-blue) 58%, var(--hb-border-strong));
  transform: translateY(-1px);
}
.hb-blog-cats__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 var(--hb-space-1);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--hb-text-muted);
  background: color-mix(in oklab, var(--hb-bg) 70%, transparent);
  border-radius: var(--hb-radius-full);
}
.hb-blog-cats__pill:hover .hb-blog-cats__count,
.hb-blog-cats__pill.is-active .hb-blog-cats__count {
  color: var(--hb-text-strong);
  background: color-mix(in oklab, var(--hb-bg) 34%, transparent);
}

@media (min-width: 720px) {
  .hb-blog-hero { padding: var(--hb-space-20) 0 var(--hb-space-12); }
}

@media (max-width: 719px) {
  .hb-blog-hero {
    padding: calc(var(--hb-space-20) + var(--hb-space-2)) 0 var(--hb-space-8);
  }
  .hb-blog-hero__title {
    font-size: var(--hb-text-4xl);
    letter-spacing: 0;
    margin-bottom: var(--hb-space-4);
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .hb-blog-hero__lede {
    font-size: var(--hb-text-base);
  }
  .hb-blog-cats {
    gap: var(--hb-space-2);
    margin-top: var(--hb-space-5);
  }
  .hb-blog-cats__pill {
    min-height: 2.125rem;
    padding: 0.42rem var(--hb-space-3);
  }
}


/* Featured post on the main blog index. */
.hb-blog-featured {
  padding: var(--hb-space-8) 0 var(--hb-space-4);
  background: var(--hb-bg);
}
.hb-blog-featured__card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--hb-accent-blue) 10%, transparent), transparent 46%),
    var(--hb-surface-1);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-lg);
  box-shadow: var(--hb-shadow-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hb-blog-featured__card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--hb-grad-warm);
  opacity: 0.9;
}
.hb-blog-featured__card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--hb-accent-blue) 44%, var(--hb-border));
  box-shadow: 0 22px 60px -28px color-mix(in oklab, var(--hb-accent-blue) 45%, transparent);
}
.hb-blog-featured__link {
  display: block;
  color: inherit;
  text-decoration: none;
  outline: none;
}
.hb-blog-featured__link:focus-visible {
  box-shadow: var(--hb-focus-ring);
}
.hb-blog-featured__card--with-media .hb-blog-featured__link {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 24rem;
}
.hb-blog-featured__media {
  min-height: 100%;
  background: var(--hb-surface-2);
  overflow: hidden;
}
.hb-blog-featured__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hb-blog-featured__card:hover .hb-blog-featured__media img {
  transform: scale(1.03);
}
.hb-blog-featured__body {
  display: flex;
  flex-direction: column;
  gap: var(--hb-space-4);
  padding: var(--hb-space-8);
}
.hb-blog-featured__body .hb-eyebrow {
  margin-bottom: 0;
}
.hb-blog-featured__cat {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.28rem 0.7rem;
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-medium, 500);
  line-height: var(--hb-leading-none);
  letter-spacing: var(--hb-tracking-wide);
  text-transform: uppercase;
  color: var(--hb-accent-blue-soft);
  background: color-mix(in oklab, var(--hb-accent-blue) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--hb-accent-blue) 30%, transparent);
  border-radius: var(--hb-radius-full);
}
.hb-blog-featured__title {
  font-family: var(--hb-font-display);
  font-size: var(--hb-text-3xl);
  font-weight: var(--hb-weight-semibold, 600);
  line-height: var(--hb-leading-tight);
  letter-spacing: 0;
  color: var(--hb-text-strong);
  margin: 0;
  max-width: 26ch;
}
.hb-blog-featured__link:hover .hb-blog-featured__title {
  color: var(--hb-accent-blue-soft);
}
.hb-blog-featured__excerpt {
  font-size: var(--hb-text-base);
  line-height: var(--hb-leading-relaxed);
  color: var(--hb-text);
  margin: 0;
  max-width: 68ch;
}
.hb-blog-featured__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hb-space-2);
  margin-top: auto;
  padding-top: var(--hb-space-2);
  font-size: var(--hb-text-sm);
  color: var(--hb-text-muted);
}

@media (max-width: 719px) {
  .hb-blog-featured {
    padding: var(--hb-space-6) 0 var(--hb-space-3);
  }
  .hb-blog-featured__card--with-media .hb-blog-featured__link {
    display: block;
    min-height: 0;
  }
  .hb-blog-featured__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .hb-blog-featured__body {
    padding: var(--hb-space-5);
    gap: var(--hb-space-3);
  }
  .hb-blog-featured__title {
    font-size: var(--hb-text-2xl);
    max-width: none;
  }
}


/* ---------------------------------------------------------------------
 * 2. Blog grid + post cards
 * ------------------------------------------------------------------ */
.hb-blog-grid-section {
  padding: var(--hb-space-12) 0 var(--hb-space-20);
  background: var(--hb-bg);
}
.hb-blog-grid-section__header {
  margin-bottom: var(--hb-space-8);
}
.hb-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hb-space-8);
}
@media (min-width: 720px) {
  .hb-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hb-space-8) var(--hb-space-6);
  }
}
@media (min-width: 1024px) {
  .hb-blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--hb-space-10) var(--hb-space-6);
  }
}

/* Card chassis — overrides the generic .hb-card from surface.css to
 * give blog cards an image-first vertical layout. */
.hb-card--standard,
.hb-card--hero,
.hb-card--compact {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hb-card--standard:hover,
.hb-card--hero:hover,
.hb-card--compact:hover { transform: translateY(-2px); }

.hb-card__link {
  display: flex;
  flex-direction: column;
  gap: var(--hb-space-4);
  text-decoration: none;
  color: inherit;
  outline: none;
}
.hb-card__link:focus-visible {
  box-shadow: var(--hb-focus-ring);
  border-radius: var(--hb-radius-md);
}

.hb-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--hb-radius-md);
  background: var(--hb-surface-2);
}
.hb-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hb-card--standard:hover .hb-card__media img,
.hb-card--hero:hover .hb-card__media img,
.hb-card--compact:hover .hb-card__media img { transform: scale(1.03); }

.hb-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--hb-space-3);
  padding: 0;
}

.hb-card__cat {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.25rem 0.625rem;
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-medium, 500);
  letter-spacing: var(--hb-tracking-wide);
  text-transform: uppercase;
  color: var(--hb-accent-blue-soft);
  background: color-mix(in oklab, var(--hb-accent-blue) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--hb-accent-blue) 25%, transparent);
  border-radius: var(--hb-radius-full);
}

.hb-card__title {
  font-family: var(--hb-font-display);
  font-size: var(--hb-text-xl);
  font-weight: var(--hb-weight-semibold, 600);
  line-height: var(--hb-leading-snug);
  letter-spacing: var(--hb-tracking-tight);
  color: var(--hb-text-strong);
  margin: 0;
  /* Clamp to 3 lines so cards line up in a grid. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hb-card__link:hover .hb-card__title { color: var(--hb-accent-blue-soft); }

.hb-card__excerpt {
  font-size: var(--hb-text-sm);
  line-height: var(--hb-leading-normal);
  color: var(--hb-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hb-card__meta {
  display: flex;
  align-items: center;
  gap: var(--hb-space-2);
  font-size: var(--hb-text-xs);
  color: var(--hb-text-faint);
  margin-top: var(--hb-space-2);
}
.hb-card__dot { opacity: 0.6; }

/* Hero card — taller image, larger title, full excerpt, spans
 * full width on its own row when used at the top of an archive. */
.hb-card--hero { grid-column: 1 / -1; }
.hb-card--hero .hb-card__link {
  gap: var(--hb-space-5);
}
.hb-card--hero .hb-card__media { aspect-ratio: 16 / 9; }
.hb-card--hero .hb-card__title {
  font-size: var(--hb-text-3xl);
  -webkit-line-clamp: 2;
}
.hb-card--hero .hb-card__excerpt {
  font-size: var(--hb-text-base);
  -webkit-line-clamp: 3;
}
@media (min-width: 1024px) {
  .hb-card--hero .hb-card__link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--hb-space-10);
    align-items: center;
  }
  .hb-card--hero .hb-card__media { aspect-ratio: 4 / 3; }
}

/* Compact — used in related posts; no excerpt, tighter spacing. */
.hb-card--compact .hb-card__link { gap: var(--hb-space-3); }
.hb-card--compact .hb-card__media { aspect-ratio: 3 / 2; }
.hb-card--compact .hb-card__title { font-size: var(--hb-text-lg); }

/* Listing card surface. Scoped to archive grids so single-post related
 * cards keep their existing compact treatment. */
.hb-blog-grid .hb-card--standard,
.hb-blog-grid .hb-card--hero {
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--hb-surface-2) 58%, transparent), transparent 70%),
    var(--hb-surface-1);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-lg);
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--hb-text-strong) 4%, transparent);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hb-blog-grid .hb-card--standard:hover,
.hb-blog-grid .hb-card--hero:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--hb-accent-blue) 40%, var(--hb-border));
  box-shadow: 0 18px 50px -28px color-mix(in oklab, var(--hb-accent-blue) 42%, transparent);
}
.hb-blog-grid .hb-card__link {
  gap: 0;
  min-height: 100%;
}
.hb-blog-grid .hb-card__media {
  border-radius: 0;
  border-bottom: 1px solid var(--hb-border);
}
.hb-blog-grid .hb-card__body {
  flex: 1;
  padding: var(--hb-space-6);
}
.hb-blog-grid .hb-card--text-only .hb-card__body {
  min-height: 15rem;
}
.hb-blog-grid .hb-card__title {
  letter-spacing: 0;
}
.hb-blog-grid .hb-card__meta {
  margin-top: auto;
  padding-top: var(--hb-space-2);
}

@media (max-width: 719px) {
  .hb-blog-grid-section {
    padding: var(--hb-space-8) 0 var(--hb-space-16);
  }
  .hb-blog-grid-section__header {
    margin-bottom: var(--hb-space-5);
  }
  .hb-blog-grid {
    gap: var(--hb-space-5);
  }
  .hb-blog-grid .hb-card__body {
    padding: var(--hb-space-5);
  }
  .hb-blog-grid .hb-card--text-only .hb-card__body {
    min-height: 0;
  }
}


/* ---------------------------------------------------------------------
 * 3. Single post hero
 * ------------------------------------------------------------------ */
.hb-post__hero {
  padding: var(--hb-space-12) 0 var(--hb-space-10);
  background:
    radial-gradient(ellipse at top, color-mix(in oklab, var(--hb-accent-blue) 5%, transparent) 0%, transparent 55%),
    var(--hb-bg);
}
.hb-post__hero .hb-breadcrumbs {
  margin-bottom: var(--hb-space-6);
}
.hb-post__cat {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-medium, 500);
  letter-spacing: var(--hb-tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hb-accent-blue-soft);
  background: color-mix(in oklab, var(--hb-accent-blue) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--hb-accent-blue) 25%, transparent);
  border-radius: var(--hb-radius-full);
  margin-bottom: var(--hb-space-5);
  transition: background 0.2s ease;
}
.hb-post__cat:hover {
  background: color-mix(in oklab, var(--hb-accent-blue) 18%, transparent);
}
.hb-post__title {
  font-family: var(--hb-font-display);
  font-size: var(--hb-text-5xl);
  font-weight: var(--hb-weight-bold, 700);
  line-height: var(--hb-leading-tight);
  letter-spacing: var(--hb-tracking-tight);
  color: var(--hb-text-strong);
  margin: 0 0 var(--hb-space-5);
  max-width: 24ch;
}
.hb-post__lede {
  font-size: var(--hb-text-xl);
  line-height: var(--hb-leading-relaxed);
  color: var(--hb-text-muted);
  margin: 0 0 var(--hb-space-8);
  max-width: 56ch;
}

.hb-post__featured {
  margin: var(--hb-space-10) auto 0;
  max-width: 1080px;
  padding: 0 var(--hb-space-4);
}
.hb-post__featured-img {
  width: 100%;
  height: auto;
  border-radius: var(--hb-radius-lg);
  display: block;
}
@media (min-width: 720px) {
  .hb-post__hero { padding: var(--hb-space-16) 0 var(--hb-space-12); }
  .hb-post__featured { padding: 0 var(--hb-space-6); }
}


/* ---------------------------------------------------------------------
 * 4. Single post body — 2-col layout with sticky sidebar
 * ------------------------------------------------------------------ */
.hb-post__body {
  padding: var(--hb-space-12) 0 var(--hb-space-20);
}
.hb-post__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hb-space-10);
}
.hb-post__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--hb-space-6);
  order: 2;
}
.hb-post__content { order: 1; min-width: 0; }
.hb-post__content.hb-prose { max-width: 720px; }

@media (min-width: 1024px) {
  .hb-post__layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--hb-space-16);
    align-items: start;
  }
  .hb-post__sidebar {
    order: 1;
    position: sticky;
    top: calc(var(--hb-space-20) + var(--hb-space-4));
    max-height: calc(100vh - var(--hb-space-24));
    overflow-y: auto;
    padding-right: var(--hb-space-2);
    scrollbar-width: thin;
  }
  .hb-post__content { order: 2; }
}


/* ---------------------------------------------------------------------
 * 5. Post meta strip (author / date / reading)
 * ------------------------------------------------------------------ */
.hb-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hb-space-2) var(--hb-space-3);
  font-size: var(--hb-text-sm);
  color: var(--hb-text-muted);
  margin-top: var(--hb-space-6);
}
.hb-post-meta__author {
  display: inline-flex;
  align-items: center;
  gap: var(--hb-space-3);
  text-decoration: none;
  color: inherit;
}
.hb-post-meta__author:hover { color: var(--hb-text-strong); }
.hb-post-meta__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--hb-radius-full);
  border: 1px solid var(--hb-border);
}
.hb-post-meta__label {
  display: block;
  font-size: var(--hb-text-xs);
  color: var(--hb-text-faint);
  letter-spacing: var(--hb-tracking-wide);
  text-transform: uppercase;
}
.hb-post-meta__author strong {
  color: var(--hb-text-strong);
  font-weight: var(--hb-weight-semibold, 600);
}
.hb-post-meta__sep { opacity: 0.4; }
.hb-post-meta__updated {
  padding: 0.15rem 0.5rem;
  font-size: var(--hb-text-xs);
  color: var(--hb-accent-amber-soft);
  background: color-mix(in oklab, var(--hb-accent-amber) 12%, transparent);
  border-radius: var(--hb-radius-full);
}


/* ---------------------------------------------------------------------
 * 6. Sticky TOC
 * ------------------------------------------------------------------ */
.hb-post-toc {
  padding: var(--hb-space-5);
  background: var(--hb-surface-1);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-md);
}
.hb-post-toc__title {
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-semibold, 600);
  letter-spacing: var(--hb-tracking-wider);
  text-transform: uppercase;
  color: var(--hb-text-faint);
  margin: 0 0 var(--hb-space-4);
}
.hb-post-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hb-space-2);
}
.hb-post-toc__item a {
  display: block;
  font-size: var(--hb-text-sm);
  line-height: var(--hb-leading-snug);
  color: var(--hb-text-muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-left: 2px solid transparent;
  padding-left: var(--hb-space-3);
  margin-left: calc(var(--hb-space-3) * -1);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hb-post-toc__item a:hover {
  color: var(--hb-text-strong);
  border-left-color: var(--hb-accent-blue);
}
.hb-post-toc__item--h3 a {
  padding-left: var(--hb-space-6);
  font-size: var(--hb-text-xs);
  color: var(--hb-text-faint);
}


/* ---------------------------------------------------------------------
 * 7. Share rail
 * ------------------------------------------------------------------ */
.hb-post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--hb-space-2);
  padding: var(--hb-space-4);
  background: var(--hb-surface-1);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-md);
}
.hb-post-share__label {
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-semibold, 600);
  letter-spacing: var(--hb-tracking-wider);
  text-transform: uppercase;
  color: var(--hb-text-faint);
  margin-right: var(--hb-space-2);
}
.hb-post-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--hb-text-muted);
  background: var(--hb-surface-2);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.hb-post-share__btn:hover {
  color: var(--hb-text-strong);
  background: var(--hb-surface-3);
  border-color: var(--hb-border-strong);
  transform: translateY(-1px);
}
.hb-post-share__btn--copy { padding: 0; }


/* ---------------------------------------------------------------------
 * 8. Tags, CTA, related posts
 * ------------------------------------------------------------------ */
.hb-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-2);
  margin-top: var(--hb-space-12);
  padding-top: var(--hb-space-8);
  border-top: 1px solid var(--hb-border);
}
.hb-post__tag {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  font-size: var(--hb-text-xs);
  color: var(--hb-text-muted);
  background: var(--hb-surface-1);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
}
.hb-post__tag:hover {
  color: var(--hb-text-strong);
  background: var(--hb-surface-2);
  border-color: var(--hb-border-strong);
}

.hb-post__cta {
  margin-top: var(--hb-space-16);
  padding: var(--hb-space-10) var(--hb-space-8);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--hb-accent-blue) 12%, transparent), color-mix(in oklab, var(--hb-accent-violet) 8%, transparent)),
    var(--hb-surface-1);
  border: 1px solid color-mix(in oklab, var(--hb-accent-blue) 30%, var(--hb-border));
  border-radius: var(--hb-radius-lg);
  text-align: center;
}
.hb-post__cta-title {
  font-family: var(--hb-font-display);
  font-size: var(--hb-text-3xl);
  font-weight: var(--hb-weight-bold, 700);
  line-height: var(--hb-leading-tight);
  letter-spacing: var(--hb-tracking-tight);
  color: var(--hb-text-strong);
  margin: 0 0 var(--hb-space-3);
}
.hb-post__cta-text {
  font-size: var(--hb-text-base);
  color: var(--hb-text-muted);
  margin: 0 auto var(--hb-space-6);
  max-width: 50ch;
}

.hb-post-related {
  padding: var(--hb-space-16) 0 var(--hb-space-20);
  background: var(--hb-surface-1);
  border-top: 1px solid var(--hb-border);
}
.hb-post-related__header {
  margin-bottom: var(--hb-space-10);
  text-align: center;
}
.hb-post-related__title {
  font-family: var(--hb-font-display);
  font-size: var(--hb-text-3xl);
  font-weight: var(--hb-weight-bold, 700);
  line-height: var(--hb-leading-tight);
  color: var(--hb-text-strong);
  margin: var(--hb-space-2) 0 0;
}
.hb-post-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hb-space-8);
}
@media (min-width: 720px) {
  .hb-post-related__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--hb-space-6);
  }
}
@media (min-width: 1024px) {
  .hb-post-related__grid { grid-template-columns: repeat(3, 1fr); }
}


/* ---------------------------------------------------------------------
 * 9. Pagination + empty state
 * ------------------------------------------------------------------ */
.hb-pagination {
  margin-top: var(--hb-space-12);
  display: flex;
  justify-content: center;
}
.hb-pagination__list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--hb-space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}
.hb-pagination__list a,
.hb-pagination__list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--hb-space-3);
  font-size: var(--hb-text-sm);
  font-weight: var(--hb-weight-medium, 500);
  color: var(--hb-text-muted);
  background: var(--hb-surface-1);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-sm);
  text-decoration: none;
  transition: all 0.15s ease;
}
.hb-pagination__list a:hover {
  color: var(--hb-text-strong);
  background: var(--hb-surface-2);
  border-color: var(--hb-border-strong);
}
.hb-pagination__list .current,
.hb-pagination__list [aria-current="page"] {
  color: var(--hb-text-strong);
  background: var(--hb-accent-blue);
  border-color: var(--hb-accent-blue);
}

.hb-empty {
  padding: var(--hb-space-20) var(--hb-space-4);
  text-align: center;
  font-size: var(--hb-text-lg);
  color: var(--hb-text-muted);
}


/* ---------------------------------------------------------------------
 * 10. Prose-in-blog tweaks (extends primitives.css .hb-prose)
 * ------------------------------------------------------------------ */
.hb-post__content.hb-prose h2 {
  font-size: var(--hb-text-3xl);
  margin-top: var(--hb-space-16);
  scroll-margin-top: var(--hb-space-20);
}
.hb-post__content.hb-prose h3 {
  font-size: var(--hb-text-2xl);
  margin-top: var(--hb-space-10);
  scroll-margin-top: var(--hb-space-20);
}
.hb-post__content.hb-prose p {
  font-size: var(--hb-text-lg);
  line-height: var(--hb-leading-relaxed);
}
.hb-post__content.hb-prose blockquote {
  margin: var(--hb-space-8) 0;
  padding: var(--hb-space-2) var(--hb-space-6);
  border-left: 3px solid var(--hb-accent-blue);
  font-size: var(--hb-text-xl);
  line-height: var(--hb-leading-snug);
  font-style: italic;
  color: var(--hb-text-strong);
}
.hb-post__content.hb-prose img,
.hb-post__content.hb-prose figure {
  margin: var(--hb-space-8) 0;
  border-radius: var(--hb-radius-md);
  overflow: hidden;
}
.hb-post__content.hb-prose figcaption {
  margin-top: var(--hb-space-2);
  font-size: var(--hb-text-sm);
  color: var(--hb-text-faint);
  text-align: center;
}
.hb-post__content.hb-prose pre {
  margin: var(--hb-space-6) 0;
  padding: var(--hb-space-5);
  background: var(--hb-surface-1);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-md);
  overflow-x: auto;
  font-size: var(--hb-text-sm);
  line-height: var(--hb-leading-snug);
}


/* ---------------------------------------------------------------------
 * 11. Single post redesign — agency editorial layout
 * ------------------------------------------------------------------ */
.hb-blog-single .hb-post {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--hb-accent-blue) 5%, transparent), transparent 22rem),
    var(--hb-bg);
}

.hb-blog-single .hb-post__hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--hb-space-20) + var(--hb-space-2)) 0 var(--hb-space-14);
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--hb-accent-blue) 12%, transparent) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, color-mix(in oklab, var(--hb-accent-cyan) 9%, transparent) 0 1px, transparent 1px 100%),
    linear-gradient(135deg, color-mix(in oklab, var(--hb-surface-2) 86%, transparent), var(--hb-bg) 58%);
  background-size: 4.5rem 4.5rem, 4.5rem 4.5rem, auto;
  border-bottom: 1px solid var(--hb-border);
}

.hb-blog-single .hb-post__hero .hb-breadcrumbs {
  margin-bottom: var(--hb-space-8);
}

.hb-post__hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hb-space-8);
  align-items: end;
}

.hb-post__intro {
  min-width: 0;
}

.hb-blog-single .hb-post__cat {
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem var(--hb-space-3);
  margin: 0 0 var(--hb-space-5);
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-semibold, 600);
  letter-spacing: 0;
  text-transform: none;
  color: var(--hb-accent-cyan-soft, #67e8f9);
  background: color-mix(in oklab, var(--hb-accent-cyan) 12%, var(--hb-bg));
  border-color: color-mix(in oklab, var(--hb-accent-cyan) 36%, var(--hb-border));
  border-radius: 999px;
}

.hb-blog-single .hb-post__title {
  max-width: 15ch;
  margin: 0 0 var(--hb-space-5);
  font-size: var(--hb-text-5xl);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hb-blog-single .hb-post__lede {
  max-width: 62ch;
  margin: 0 0 var(--hb-space-7);
  font-size: var(--hb-text-lg);
  line-height: 1.85;
  color: color-mix(in oklab, var(--hb-text) 82%, var(--hb-text-muted));
}

.hb-post__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-3);
  margin-top: var(--hb-space-7);
}

.hb-post__hero-actions .hb-btn {
  min-height: 2.75rem;
  border-radius: 8px;
}

.hb-post-brief {
  padding: var(--hb-space-6);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--hb-surface-3, #27272a) 54%, transparent), transparent),
    color-mix(in oklab, var(--hb-surface-1) 92%, var(--hb-bg));
  border: 1px solid color-mix(in oklab, var(--hb-accent-blue) 34%, var(--hb-border));
  border-radius: 8px;
  box-shadow: 0 24px 80px -48px color-mix(in oklab, var(--hb-accent-cyan) 42%, transparent);
}

.hb-post-brief__eyebrow,
.hb-post-service__eyebrow {
  display: inline-flex;
  margin-bottom: var(--hb-space-3);
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-semibold, 600);
  letter-spacing: 0;
  color: var(--hb-accent-amber-soft, #fbbf24);
}

.hb-post-brief__title {
  margin: 0 0 var(--hb-space-5);
  font-family: var(--hb-font-display);
  font-size: var(--hb-text-2xl);
  line-height: var(--hb-leading-tight);
  letter-spacing: 0;
  color: var(--hb-text-strong);
}

.hb-post-brief__list {
  display: grid;
  gap: var(--hb-space-3);
  margin: 0;
}

.hb-post-brief__list div {
  padding: var(--hb-space-3) 0;
  border-top: 1px solid var(--hb-border);
}

.hb-post-brief__list dt {
  margin-bottom: var(--hb-space-1);
  font-size: var(--hb-text-xs);
  color: var(--hb-text-faint);
}

.hb-post-brief__list dd {
  margin: 0;
  font-size: var(--hb-text-sm);
  font-weight: var(--hb-weight-semibold, 600);
  line-height: var(--hb-leading-snug);
  color: var(--hb-text-strong);
}

.hb-post-brief__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-2);
  margin-top: var(--hb-space-5);
}

.hb-post-brief__metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.3rem var(--hb-space-3);
  font-size: var(--hb-text-xs);
  color: var(--hb-text);
  background: color-mix(in oklab, var(--hb-accent-blue) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--hb-accent-blue) 30%, transparent);
  border-radius: 999px;
}

.hb-blog-single .hb-post__featured {
  margin-top: var(--hb-space-10);
  padding: 0 var(--hb-space-4);
}

.hb-blog-single .hb-post__featured-img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  border: 1px solid var(--hb-border);
  border-radius: 8px;
  box-shadow: 0 28px 90px -56px color-mix(in oklab, var(--hb-accent-blue) 55%, transparent);
}

.hb-blog-single .hb-post__body {
  padding: var(--hb-space-12) 0 var(--hb-space-20);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--hb-bg) 64%, transparent), transparent 20rem),
    var(--hb-bg);
}

.hb-blog-single .hb-post__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hb-space-8);
  align-items: start;
}

.hb-blog-single .hb-post__sidebar {
  order: 1;
  gap: var(--hb-space-4);
}

.hb-blog-single .hb-post__content {
  order: 2;
  min-width: 0;
}

.hb-blog-single .hb-post__content.hb-prose {
  max-width: 100%;
}

.hb-blog-single .hb-post-toc,
.hb-blog-single .hb-post-share,
.hb-post-service {
  background: color-mix(in oklab, var(--hb-surface-1) 92%, var(--hb-bg));
  border: 1px solid var(--hb-border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--hb-text-strong) 5%, transparent);
}

.hb-blog-single .hb-post-toc {
  padding: var(--hb-space-5);
}

.hb-blog-single .hb-post-toc__title {
  display: flex;
  align-items: center;
  gap: var(--hb-space-2);
  margin-bottom: var(--hb-space-4);
  font-size: var(--hb-text-sm);
  letter-spacing: 0;
  text-transform: none;
  color: var(--hb-text-strong);
}

.hb-blog-single .hb-post-toc__title::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--hb-accent-cyan);
  border-radius: 999px;
}

.hb-blog-single .hb-post-toc__item a {
  padding: 0.45rem 0 0.45rem var(--hb-space-3);
  margin-left: 0;
  font-size: var(--hb-text-sm);
  line-height: 1.45;
  border-left-color: color-mix(in oklab, var(--hb-border) 72%, transparent);
}

.hb-blog-single .hb-post-toc__item a:hover {
  color: var(--hb-accent-cyan-soft, #67e8f9);
  border-left-color: var(--hb-accent-cyan);
}

.hb-blog-single .hb-post-toc__item--h3 a {
  padding-left: var(--hb-space-5);
  font-size: var(--hb-text-xs);
}

.hb-blog-single .hb-post-share {
  padding: var(--hb-space-4);
}

.hb-blog-single .hb-post-share__btn {
  border-radius: 8px;
}

.hb-post-service {
  padding: var(--hb-space-5);
  border-color: color-mix(in oklab, var(--hb-accent-amber) 30%, var(--hb-border));
}

.hb-post-service__title {
  margin: 0;
  font-family: var(--hb-font-display);
  font-size: var(--hb-text-lg);
  line-height: var(--hb-leading-snug);
  letter-spacing: 0;
  color: var(--hb-text-strong);
}

.hb-post-service__text {
  margin: var(--hb-space-2) 0 0;
  font-size: var(--hb-text-sm);
  line-height: var(--hb-leading-normal);
  color: var(--hb-text-muted);
}

.hb-post-service__link {
  display: inline-flex;
  margin-top: var(--hb-space-4);
  font-size: var(--hb-text-sm);
  font-weight: var(--hb-weight-semibold, 600);
  color: var(--hb-accent-amber-soft, #fbbf24);
  text-decoration: none;
}

.hb-post-service__link:hover {
  color: var(--hb-text-strong);
}

.hb-blog-single .hb-post-meta {
  gap: var(--hb-space-2);
  margin-top: var(--hb-space-5);
  color: var(--hb-text);
}

.hb-blog-single .hb-post-meta__author,
.hb-blog-single .hb-post-meta__date,
.hb-blog-single .hb-post-meta__reading,
.hb-blog-single .hb-post-meta__updated {
  min-height: 2.35rem;
  padding: 0.2rem var(--hb-space-3);
  background: color-mix(in oklab, var(--hb-surface-1) 82%, transparent);
  border: 1px solid var(--hb-border);
  border-radius: 999px;
}

.hb-blog-single .hb-post-meta__author {
  padding-left: var(--hb-space-1);
}

.hb-blog-single .hb-post-meta__avatar {
  width: 2rem;
  height: 2rem;
}

.hb-blog-single .hb-post-meta__label,
.hb-blog-single .hb-post-meta__sep {
  display: none;
}

.hb-blog-single .hb-post-meta__author strong {
  font-size: var(--hb-text-sm);
}

.hb-blog-single .hb-post-meta__updated {
  color: var(--hb-accent-amber-soft, #fbbf24);
}

.hb-blog-single .hb-post__content.hb-prose {
  font-family: var(--hb-font-body);
  color: color-mix(in oklab, var(--hb-text) 88%, var(--hb-text-muted));
}

.hb-blog-single .hb-post__content.hb-prose > *:first-child {
  margin-top: 0;
}

.hb-blog-single .hb-post__content.hb-prose h2 {
  position: relative;
  margin-top: var(--hb-space-14);
  padding-top: var(--hb-space-8);
  font-size: var(--hb-text-3xl);
  line-height: 1.22;
  letter-spacing: 0;
  border-top: 1px solid var(--hb-border);
}

.hb-blog-single .hb-post__content.hb-prose h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--hb-accent-cyan), var(--hb-accent-amber));
}

.hb-blog-single .hb-post__content.hb-prose h3 {
  margin-top: var(--hb-space-9);
  font-size: var(--hb-text-2xl);
  line-height: 1.28;
  letter-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose p,
.hb-blog-single .hb-post__content.hb-prose li {
  font-size: var(--hb-text-lg);
  line-height: 1.9;
}

.hb-blog-single .hb-post__content.hb-prose p {
  margin-top: var(--hb-space-5);
}

.hb-blog-single .hb-post__content.hb-prose a {
  color: var(--hb-accent-cyan-soft, #67e8f9);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hb-blog-single .hb-post__content.hb-prose a:hover {
  color: var(--hb-text-strong);
}

.hb-blog-single .hb-post__content.hb-prose blockquote {
  margin: var(--hb-space-8) 0;
  padding: var(--hb-space-6);
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--hb-accent-cyan) 10%, transparent), transparent 65%),
    color-mix(in oklab, var(--hb-surface-1) 94%, var(--hb-bg));
  border: 1px solid color-mix(in oklab, var(--hb-accent-cyan) 34%, var(--hb-border));
  border-left: 4px solid var(--hb-accent-cyan);
  border-radius: 8px;
  font-style: normal;
  color: var(--hb-text-strong);
}

.hb-blog-single .hb-post__content.hb-prose blockquote p {
  margin: 0;
  font-size: var(--hb-text-xl);
  line-height: 1.75;
}

.hb-blog-single .hb-post__content.hb-prose ul,
.hb-blog-single .hb-post__content.hb-prose ol {
  display: grid;
  gap: var(--hb-space-3);
  margin: var(--hb-space-5) 0 var(--hb-space-7);
  padding-left: 0;
  list-style: none;
}

.hb-blog-single .hb-post__content.hb-prose li {
  position: relative;
  padding-left: var(--hb-space-7);
}

.hb-blog-single .hb-post__content.hb-prose ul li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0.35rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--hb-accent-cyan);
  border-radius: 999px;
}

.hb-blog-single .hb-post__content.hb-prose ol {
  counter-reset: hb-post-list;
}

.hb-blog-single .hb-post__content.hb-prose ol li {
  counter-increment: hb-post-list;
}

.hb-blog-single .hb-post__content.hb-prose ol li::before {
  content: counter(hb-post-list);
  position: absolute;
  top: 0.35rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  color: var(--hb-bg);
  background: var(--hb-accent-amber);
  border-radius: 999px;
}

.hb-blog-single .hb-post__content.hb-prose code {
  border-radius: 6px;
}

.hb-blog-single .hb-post__content.hb-prose pre {
  margin: var(--hb-space-7) 0;
  border-radius: 8px;
  background: #0f172a;
  border-color: color-mix(in oklab, var(--hb-accent-blue) 28%, var(--hb-border));
}

.hb-blog-single .hb-post__tags {
  margin-top: var(--hb-space-12);
  padding-top: var(--hb-space-7);
}

.hb-blog-single .hb-post__tag {
  border-radius: 999px;
}

.hb-blog-single .hb-post__cta {
  margin-top: var(--hb-space-14);
  padding: var(--hb-space-8);
  text-align: left;
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--hb-accent-blue) 16%, transparent), color-mix(in oklab, var(--hb-accent-amber) 10%, transparent)),
    color-mix(in oklab, var(--hb-surface-1) 94%, var(--hb-bg));
}

.hb-blog-single .hb-post__cta-title {
  letter-spacing: 0;
}

.hb-blog-single .hb-post__cta-text {
  margin-left: 0;
  margin-right: 0;
  line-height: 1.75;
}

.hb-blog-single .hb-post-related {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--hb-surface-1) 76%, var(--hb-bg)), var(--hb-bg));
}

.hb-blog-single .hb-post-related__title {
  letter-spacing: 0;
}

@media (min-width: 720px) {
  .hb-blog-single .hb-post__hero {
    padding: calc(var(--hb-space-24) + var(--hb-space-4)) 0 var(--hb-space-16);
  }

  .hb-post__hero-grid {
    gap: var(--hb-space-10);
  }

  .hb-blog-single .hb-post__featured {
    padding: 0 var(--hb-space-6);
  }

  .hb-blog-single .hb-post__content.hb-prose h2 {
    font-size: var(--hb-text-4xl);
  }
}

@media (min-width: 1024px) {
  .hb-post__hero-grid {
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: var(--hb-space-16);
  }

  .hb-blog-single .hb-post__title {
    max-width: 18ch;
  }

  .hb-blog-single .hb-post__layout {
    grid-template-columns: minmax(0, 46rem) 18rem;
    gap: var(--hb-space-14);
    justify-content: center;
  }

  .hb-blog-single .hb-post__sidebar {
    order: 2;
    position: sticky;
    top: calc(var(--hb-space-20) + var(--hb-space-4));
    max-height: calc(100vh - var(--hb-space-24));
    overflow-y: auto;
    padding-right: 0;
  }

  .hb-blog-single .hb-post__content {
    order: 1;
  }
}

@media (max-width: 719px) {
  .hb-blog-single .hb-post__hero {
    padding: calc(var(--hb-space-16) + var(--hb-space-3)) 0 var(--hb-space-10);
    background-size: 3.25rem 3.25rem, 3.25rem 3.25rem, auto;
  }

  .hb-blog-single .hb-post__hero .hb-breadcrumbs {
    margin-bottom: var(--hb-space-5);
  }

  .hb-blog-single .hb-post__title {
    max-width: none;
    font-size: var(--hb-text-4xl);
    line-height: 1.14;
    word-break: keep-all;
  }

  .hb-blog-single .hb-post__lede {
    font-size: var(--hb-text-base);
    line-height: 1.8;
  }

  .hb-post__hero-actions .hb-btn {
    width: 100%;
  }

  .hb-post-brief {
    padding: var(--hb-space-5);
  }

  .hb-blog-single .hb-post__body {
    padding: var(--hb-space-8) 0 var(--hb-space-16);
  }

  .hb-blog-single .hb-post__layout {
    gap: var(--hb-space-7);
  }

  .hb-blog-single .hb-post__content.hb-prose h2 {
    margin-top: var(--hb-space-10);
    padding-top: var(--hb-space-6);
    font-size: var(--hb-text-2xl);
  }

  .hb-blog-single .hb-post__content.hb-prose h3 {
    font-size: var(--hb-text-xl);
  }

  .hb-blog-single .hb-post__content.hb-prose p,
  .hb-blog-single .hb-post__content.hb-prose li {
    font-size: var(--hb-text-base);
    line-height: 1.85;
  }

  .hb-blog-single .hb-post__content.hb-prose blockquote,
  .hb-blog-single .hb-post__cta {
    padding: var(--hb-space-5);
  }

  .hb-blog-single .hb-post__content.hb-prose blockquote p {
    font-size: var(--hb-text-lg);
  }
}


/* ---------------------------------------------------------------------
 * 12. Single post polish v2 — cleaner agency reading experience
 * ------------------------------------------------------------------ */
.hb-blog-single {
  background: #09090b;
}

.hb-blog-single .hb-post {
  background: #f7f7f4;
}

.hb-blog-single .hb-post__hero {
  padding: calc(var(--hb-space-20) + var(--hb-space-3)) 0 var(--hb-space-12);
  background:
    radial-gradient(circle at 16% 12%, color-mix(in oklab, var(--hb-accent-blue) 20%, transparent), transparent 28rem),
    linear-gradient(180deg, #101018 0%, #0b0b12 100%);
  background-size: auto;
  border-bottom: 1px solid color-mix(in oklab, var(--hb-text-strong) 9%, transparent);
}

.hb-blog-single .hb-post__hero .hb-breadcrumbs {
  margin-bottom: var(--hb-space-6);
}

.hb-blog-single .hb-post__hero-grid {
  align-items: center;
}

.hb-blog-single .hb-post__cat {
  color: #c7d2fe;
  background: rgba(79, 70, 229, 0.16);
  border-color: rgba(129, 140, 248, 0.34);
}

.hb-blog-single .hb-post__title {
  max-width: 21ch;
  font-size: clamp(2.25rem, 5vw, 4.4rem);
  line-height: 1.06;
}

.hb-blog-single .hb-post__lede {
  max-width: 66ch;
  color: #d6d3d1;
}

.hb-blog-single .hb-post__hero-actions {
  margin-top: var(--hb-space-6);
}

.hb-blog-single .hb-post-brief {
  background: rgba(21, 21, 30, 0.84);
  border-color: rgba(129, 140, 248, 0.28);
  box-shadow: 0 28px 70px -50px rgba(79, 70, 229, 0.9);
}

.hb-blog-single .hb-post__body {
  padding: var(--hb-space-16) 0 var(--hb-space-20);
  background: #f7f7f4;
  color: #18181b;
}

.hb-blog-single .hb-post__layout {
  grid-template-columns: 1fr;
  gap: var(--hb-space-8);
}

.hb-blog-single .hb-post__content.hb-prose {
  color: #27272a;
}

.hb-blog-single .hb-post__content.hb-prose > h1:first-child {
  display: none;
}

.hb-blog-single .hb-post__content.hb-prose h2,
.hb-blog-single .hb-post__content.hb-prose h3,
.hb-blog-single .hb-post__content.hb-prose h4,
.hb-blog-single .hb-post__content.hb-prose strong {
  color: #111113;
}

.hb-blog-single .hb-post__content.hb-prose h2 {
  margin-top: var(--hb-space-14);
  padding-top: var(--hb-space-8);
  border-top-color: #deded9;
}

.hb-blog-single .hb-post__content.hb-prose h2::before {
  width: 4rem;
  background: linear-gradient(90deg, #4f46e5, #c2410c);
}

.hb-blog-single .hb-post__content.hb-prose h3 {
  margin-top: var(--hb-space-9);
}

.hb-blog-single .hb-post__content.hb-prose p,
.hb-blog-single .hb-post__content.hb-prose li {
  color: #303036;
}

.hb-blog-single .hb-post__content.hb-prose a {
  color: #4338ca;
}

.hb-blog-single .hb-post__content.hb-prose a:hover {
  color: #111113;
}

.hb-blog-single .hb-post__content.hb-prose blockquote {
  background: #ffffff;
  border-color: #deded9;
  border-left-color: #4f46e5;
  box-shadow: 0 18px 50px -42px rgba(15, 23, 42, 0.55);
}

.hb-blog-single .hb-post__content.hb-prose blockquote p {
  color: #18181b;
}

.hb-blog-single .hb-post__content.hb-prose ul li::before {
  background: #4f46e5;
}

.hb-blog-single .hb-post__content.hb-prose ol li::before {
  color: #ffffff;
  background: #4f46e5;
}

.hb-blog-single .hb-post__content.hb-prose code {
  color: #111827;
  background: #ececea;
}

.hb-blog-single .hb-post__content.hb-prose pre {
  color: #e5e7eb;
  background: #111827;
  border-color: #1f2937;
}

.hb-blog-single .hb-post__sidebar {
  gap: var(--hb-space-4);
}

.hb-blog-single .hb-post-toc,
.hb-blog-single .hb-post-share,
.hb-blog-single .hb-post-service {
  background: #ffffff;
  border-color: #deded9;
  box-shadow: 0 20px 60px -52px rgba(15, 23, 42, 0.45);
}

.hb-blog-single .hb-post-toc__title,
.hb-blog-single .hb-post-service__title {
  color: #111113;
}

.hb-blog-single .hb-post-toc__title::before {
  background: #4f46e5;
}

.hb-blog-single .hb-post-toc__item a {
  color: #52525b;
  border-left-color: #e4e4df;
}

.hb-blog-single .hb-post-toc__item a:hover {
  color: #4338ca;
  border-left-color: #4f46e5;
}

.hb-blog-single .hb-post-share__label,
.hb-blog-single .hb-post-brief__eyebrow,
.hb-blog-single .hb-post-service__eyebrow {
  color: #c2410c;
}

.hb-blog-single .hb-post-share__btn {
  color: #52525b;
  background: #f7f7f4;
  border-color: #deded9;
}

.hb-blog-single .hb-post-share__btn:hover {
  color: #111113;
  background: #ffffff;
  border-color: #b8b8b2;
}

.hb-blog-single .hb-post-service__text {
  color: #52525b;
}

.hb-blog-single .hb-post-service__link {
  color: #4338ca;
}

.hb-blog-single .hb-post__tag {
  color: #3f3f46;
  background: #ffffff;
  border-color: #deded9;
}

.hb-blog-single .hb-post__tag:hover {
  color: #111113;
  background: #f1f1ee;
  border-color: #c7c7c0;
}

.hb-blog-single .hb-post__cta {
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.09), rgba(194, 65, 12, 0.08)),
    #ffffff;
  border-color: #deded9;
  box-shadow: 0 28px 80px -58px rgba(15, 23, 42, 0.55);
}

.hb-blog-single .hb-post__cta-title {
  color: #111113;
}

.hb-blog-single .hb-post__cta-text {
  color: #3f3f46;
}

.hb-blog-single .hb-post-related {
  background: #101018;
  border-top-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .hb-blog-single .hb-post__layout {
    grid-template-columns: minmax(0, 52rem) 19rem;
    gap: var(--hb-space-16);
    justify-content: center;
  }

  .hb-blog-single .hb-post__content.hb-prose {
    max-width: 52rem;
  }
}

@media (max-width: 719px) {
  .hb-blog-single .hb-post__hero {
    padding: calc(var(--hb-space-16) + var(--hb-space-4)) 0 var(--hb-space-8);
  }

  .hb-blog-single .hb-post__title {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .hb-blog-single .hb-post__body {
    padding: var(--hb-space-8) 0 var(--hb-space-14);
  }

  .hb-blog-single .hb-post__sidebar {
    order: 1;
  }

  .hb-blog-single .hb-post__content {
    order: 2;
  }
}


/* ---------------------------------------------------------------------
 * 13. Single post rebuild v3 — section-card article system for all posts
 * ------------------------------------------------------------------ */
.hb-blog-single .hb-post {
  background: #f5f5f1;
}

.hb-blog-single .hb-post__hero {
  padding: calc(var(--hb-space-20) + var(--hb-space-2)) 0 var(--hb-space-14);
  background:
    radial-gradient(circle at 12% 0%, rgba(79, 70, 229, 0.24), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(194, 65, 12, 0.12), transparent 22rem),
    linear-gradient(180deg, #111118 0%, #09090b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-blog-single .hb-post__hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hb-space-8);
  align-items: end;
}

.hb-blog-single .hb-post__hero .hb-breadcrumbs {
  margin-bottom: var(--hb-space-7);
}

.hb-blog-single .hb-post__cat {
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  margin-bottom: var(--hb-space-5);
  color: #c7d2fe;
  background: rgba(79, 70, 229, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.34);
  border-radius: 999px;
  letter-spacing: 0;
  text-transform: none;
}

.hb-blog-single .hb-post__title {
  max-width: 20ch;
  margin-bottom: var(--hb-space-5);
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.hb-blog-single .hb-post__lede {
  max-width: 64ch;
  margin-bottom: var(--hb-space-6);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.8;
  color: #d6d3d1;
}

.hb-blog-single .hb-post-meta {
  margin-top: var(--hb-space-5);
}

.hb-blog-single .hb-post-meta__author,
.hb-blog-single .hb-post-meta__date,
.hb-blog-single .hb-post-meta__reading,
.hb-blog-single .hb-post-meta__updated {
  min-height: 2.4rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e7e5e4;
}

.hb-blog-single .hb-post-meta__author strong {
  color: #ffffff;
}

.hb-blog-single .hb-post__hero-actions {
  margin-top: var(--hb-space-7);
}

.hb-blog-single .hb-post__hero-actions .hb-btn {
  min-height: 2.85rem;
  border-radius: 8px;
}

.hb-blog-single .hb-post-brief {
  padding: var(--hb-space-6);
  background: rgba(17, 17, 24, 0.86);
  border: 1px solid rgba(129, 140, 248, 0.26);
  border-radius: 12px;
  box-shadow: 0 28px 80px -54px rgba(79, 70, 229, 0.9);
}

.hb-blog-single .hb-post-brief__eyebrow {
  color: #fb923c;
}

.hb-blog-single .hb-post-brief__title {
  color: #ffffff;
}

.hb-blog-single .hb-post-brief__list div {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.hb-blog-single .hb-post-brief__list dt {
  color: #a8a29e;
}

.hb-blog-single .hb-post-brief__list dd {
  color: #f5f5f4;
}

.hb-blog-single .hb-post-brief__metrics span {
  color: #e0e7ff;
  background: rgba(79, 70, 229, 0.18);
  border-color: rgba(129, 140, 248, 0.32);
}

.hb-blog-single .hb-post__body {
  padding: var(--hb-space-14) 0 var(--hb-space-20);
  background:
    linear-gradient(180deg, #ffffff 0, #f5f5f1 13rem),
    #f5f5f1;
  color: #18181b;
}

.hb-blog-single .hb-post__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hb-space-8);
  align-items: start;
}

.hb-blog-single .hb-post__content {
  order: 2;
  min-width: 0;
}

.hb-blog-single .hb-post__content.hb-prose {
  max-width: none;
  color: #27272a;
}

.hb-blog-single .hb-post__sidebar {
  order: 1;
  gap: var(--hb-space-4);
}

.hb-blog-single .hb-post-intro-card,
.hb-blog-single .hb-post-section,
.hb-blog-single .hb-post__tags,
.hb-blog-single .hb-post__cta {
  background: #ffffff;
  border: 1px solid #e5e5df;
  border-radius: 14px;
  box-shadow: 0 24px 70px -62px rgba(15, 23, 42, 0.5);
}

.hb-blog-single .hb-post-intro-card,
.hb-blog-single .hb-post-section {
  padding: clamp(1.35rem, 3.5vw, 2.75rem);
  margin-bottom: var(--hb-space-6);
}

.hb-blog-single .hb-post-intro-card {
  border-left: 4px solid #4f46e5;
}

.hb-blog-single .hb-post__content.hb-prose > h1:first-child {
  display: none;
}

.hb-blog-single .hb-post__content.hb-prose h2,
.hb-blog-single .hb-post__content.hb-prose h3,
.hb-blog-single .hb-post__content.hb-prose h4,
.hb-blog-single .hb-post__content.hb-prose strong {
  color: #111113;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-section h2 {
  position: relative;
  margin: 0 0 var(--hb-space-5);
  padding: 0 0 var(--hb-space-5);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: 0;
  border: 0;
  border-bottom: 1px solid #e7e7e2;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #c2410c);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-section h3 {
  margin-top: var(--hb-space-7);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose p,
.hb-blog-single .hb-post__content.hb-prose li {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.86;
  color: #303036;
}

.hb-blog-single .hb-post__content.hb-prose p {
  margin-top: var(--hb-space-4);
}

.hb-blog-single .hb-post__content.hb-prose a {
  color: #4338ca;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hb-blog-single .hb-post__content.hb-prose a:hover {
  color: #111113;
}

.hb-blog-single .hb-post__content.hb-prose blockquote {
  margin: 0;
  padding: var(--hb-space-6);
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(194, 65, 12, 0.05)),
    #ffffff;
  border: 1px solid #e1e1dc;
  border-left: 4px solid #4f46e5;
  border-radius: 12px;
  color: #18181b;
}

.hb-blog-single .hb-post__content.hb-prose blockquote p {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.75;
  color: #18181b;
}

.hb-blog-single .hb-post__content.hb-prose ul,
.hb-blog-single .hb-post__content.hb-prose ol {
  display: grid;
  gap: var(--hb-space-3);
  margin: var(--hb-space-5) 0 var(--hb-space-6);
  padding-left: 0;
  list-style: none;
}

.hb-blog-single .hb-post__content.hb-prose li {
  position: relative;
  padding: var(--hb-space-3) var(--hb-space-4) var(--hb-space-3) var(--hb-space-9);
  background: #f8f8f5;
  border: 1px solid #ecece7;
  border-radius: 10px;
}

.hb-blog-single .hb-post__content.hb-prose ul li::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: var(--hb-space-4);
  width: 0.48rem;
  height: 0.48rem;
  background: #4f46e5;
  border-radius: 999px;
}

.hb-blog-single .hb-post__content.hb-prose ol {
  counter-reset: hb-post-list;
}

.hb-blog-single .hb-post__content.hb-prose ol li {
  counter-increment: hb-post-list;
}

.hb-blog-single .hb-post__content.hb-prose ol li::before {
  content: counter(hb-post-list);
  position: absolute;
  top: 0.8rem;
  left: var(--hb-space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  color: #ffffff;
  background: #4f46e5;
  border-radius: 999px;
}

.hb-blog-single .hb-post__content.hb-prose pre {
  margin: var(--hb-space-6) 0;
  color: #e5e7eb;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
}

.hb-blog-single .hb-post__content.hb-prose code {
  color: #111827;
  background: #ececea;
  border-radius: 6px;
}

.hb-blog-single .hb-post__content.hb-prose pre code {
  color: inherit;
  background: transparent;
}

.hb-blog-single .hb-post__content.hb-prose table {
  display: block;
  width: 100%;
  margin: var(--hb-space-6) 0;
  overflow-x: auto;
  border: 1px solid #e5e5df;
  border-radius: 12px;
  border-spacing: 0;
  background: #ffffff;
}

.hb-blog-single .hb-post__content.hb-prose th,
.hb-blog-single .hb-post__content.hb-prose td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #ecece7;
  font-size: var(--hb-text-sm);
  line-height: 1.55;
  text-align: left;
  white-space: nowrap;
}

.hb-blog-single .hb-post__content.hb-prose th {
  color: #111113;
  background: #f8f8f5;
  font-weight: var(--hb-weight-semibold, 600);
}

.hb-blog-single .hb-post__content.hb-prose tr:last-child td {
  border-bottom: 0;
}

.hb-blog-single .hb-post-toc,
.hb-blog-single .hb-post-share,
.hb-blog-single .hb-post-service {
  background: #ffffff;
  border: 1px solid #e5e5df;
  border-radius: 14px;
  box-shadow: 0 18px 60px -56px rgba(15, 23, 42, 0.55);
}

.hb-blog-single .hb-post-toc__title,
.hb-blog-single .hb-post-service__title {
  color: #111113;
  letter-spacing: 0;
}

.hb-blog-single .hb-post-toc__title::before {
  background: #4f46e5;
}

.hb-blog-single .hb-post-toc__item a {
  color: #52525b;
  border-left-color: #e5e5df;
}

.hb-blog-single .hb-post-toc__item a:hover {
  color: #4338ca;
  border-left-color: #4f46e5;
}

.hb-blog-single .hb-post-share__label,
.hb-blog-single .hb-post-service__eyebrow {
  color: #c2410c;
}

.hb-blog-single .hb-post-share__btn {
  color: #52525b;
  background: #f8f8f5;
  border-color: #e5e5df;
  border-radius: 8px;
}

.hb-blog-single .hb-post-share__btn:hover {
  color: #111113;
  background: #ffffff;
  border-color: #c7c7c0;
}

.hb-blog-single .hb-post-service__text {
  color: #52525b;
}

.hb-blog-single .hb-post-service__link {
  color: #4338ca;
}

.hb-blog-single .hb-post__tags {
  padding: var(--hb-space-5);
  margin-top: var(--hb-space-8);
  border-top: 0;
}

.hb-blog-single .hb-post__tag {
  color: #3f3f46;
  background: #f8f8f5;
  border-color: #e5e5df;
}

.hb-blog-single .hb-post__cta {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  margin-top: var(--hb-space-6);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(194, 65, 12, 0.08)),
    #ffffff;
}

.hb-blog-single .hb-post__cta-title {
  color: #111113;
  letter-spacing: 0;
}

.hb-blog-single .hb-post__cta-text {
  color: #3f3f46;
  line-height: 1.75;
}

.hb-blog-single .hb-post-related {
  background: #101018;
  border-top-color: rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .hb-blog-single .hb-post__hero-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: var(--hb-space-14);
  }

  .hb-blog-single .hb-post__layout {
    grid-template-columns: minmax(0, 52rem) 19rem;
    gap: var(--hb-space-14);
    justify-content: center;
  }

  .hb-blog-single .hb-post__content {
    order: 1;
  }

  .hb-blog-single .hb-post__sidebar {
    order: 2;
    position: sticky;
    top: calc(var(--hb-space-20) + var(--hb-space-4));
    max-height: calc(100vh - var(--hb-space-24));
    overflow-y: auto;
    padding-right: 0;
  }
}

@media (max-width: 719px) {
  .hb-blog-single .hb-post__hero {
    padding: calc(var(--hb-space-16) + var(--hb-space-4)) 0 var(--hb-space-9);
  }

  .hb-blog-single .hb-post__title {
    max-width: none;
    font-size: clamp(2rem, 11vw, 2.8rem);
    line-height: 1.12;
  }

  .hb-blog-single .hb-post__lede {
    font-size: var(--hb-text-base);
    line-height: 1.75;
  }

  .hb-blog-single .hb-post__hero-actions .hb-btn {
    width: 100%;
  }

  .hb-blog-single .hb-post__body {
    padding: var(--hb-space-8) 0 var(--hb-space-14);
  }

  .hb-blog-single .hb-post-intro-card,
  .hb-blog-single .hb-post-section {
    border-radius: 12px;
  }

  .hb-blog-single .hb-post__content.hb-prose li {
    padding-left: var(--hb-space-8);
  }
}


/* ---------------------------------------------------------------------
 * 14. Single post rebuild v4 - premium article template for all posts
 * ------------------------------------------------------------------ */
.hb-blog-single {
  --hb-post-paper: #fffdfa;
  --hb-post-ink: #19191f;
  --hb-post-muted: #5d5b63;
  --hb-post-line: #e4ded2;
  --hb-post-warm: #f3f1ea;
  --hb-post-accent: #4f46e5;
  --hb-post-accent-2: #b7791f;
  background: var(--hb-post-warm);
}

.hb-blog-single .hb-post {
  color: var(--hb-post-ink);
  background: var(--hb-post-warm);
}

.hb-blog-single .hb-post__hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--hb-space-20) + var(--hb-space-4)) 0 var(--hb-space-14);
  background:
    linear-gradient(115deg, rgba(79, 70, 229, 0.18), transparent 38%),
    linear-gradient(180deg, #111118 0%, #09090b 72%, #15120f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hb-blog-single .hb-post__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
  opacity: 0.3;
}

.hb-blog-single .hb-post__hero > * {
  position: relative;
  z-index: 1;
}

.hb-blog-single .hb-post__hero .hb-breadcrumbs {
  margin-bottom: var(--hb-space-8);
  color: rgba(244, 244, 245, 0.66);
}

.hb-blog-single .hb-post__hero .hb-breadcrumbs a {
  color: rgba(244, 244, 245, 0.82);
}

.hb-blog-single .hb-post__hero-grid {
  align-items: end;
  gap: var(--hb-space-10);
}

.hb-blog-single .hb-post__cat {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.4rem 0.78rem;
  color: #fafaf9;
  background: rgba(79, 70, 229, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.42);
  border-radius: var(--hb-radius-sm);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-semibold, 600);
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.hb-blog-single .hb-post__title {
  max-width: 19ch;
  margin: var(--hb-space-4) 0 var(--hb-space-5);
  color: #ffffff;
  font-size: 3.65rem;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hb-blog-single .hb-post__lede {
  max-width: 64ch;
  color: rgba(244, 244, 245, 0.76);
  font-size: 1.08rem;
  line-height: 1.82;
}

.hb-blog-single .hb-post-meta {
  gap: var(--hb-space-2);
  color: rgba(244, 244, 245, 0.68);
}

.hb-blog-single .hb-post-meta__author,
.hb-blog-single .hb-post-meta__date,
.hb-blog-single .hb-post-meta__reading,
.hb-blog-single .hb-post-meta__updated {
  color: rgba(244, 244, 245, 0.72);
}

.hb-blog-single .hb-post-meta__author strong {
  color: #ffffff;
}

.hb-blog-single .hb-post__hero-actions {
  margin-top: var(--hb-space-6);
}

.hb-blog-single .hb-post__hero-actions .hb-btn,
.hb-blog-single .hb-post__cta-actions .hb-btn {
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post__hero-actions .hb-btn--outline {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

.hb-blog-single .hb-post-brief {
  padding: var(--hb-space-5);
  color: #f4f4f5;
  background: rgba(16, 16, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--hb-radius-sm);
  box-shadow: 0 28px 80px -56px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
}

.hb-blog-single .hb-post-brief__eyebrow {
  color: #f59e0b;
  font-family: var(--hb-font-mono);
  letter-spacing: 0;
}

.hb-blog-single .hb-post-brief__title {
  margin-top: var(--hb-space-2);
  color: #ffffff;
  letter-spacing: 0;
}

.hb-blog-single .hb-post-brief__list {
  margin-top: var(--hb-space-5);
}

.hb-blog-single .hb-post-brief__list div {
  padding: var(--hb-space-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hb-blog-single .hb-post-brief__list dt {
  color: rgba(244, 244, 245, 0.58);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hb-blog-single .hb-post-brief__list dd {
  margin-top: var(--hb-space-1);
  color: #ffffff;
}

.hb-blog-single .hb-post-brief__metrics {
  gap: var(--hb-space-2);
  margin-top: var(--hb-space-4);
}

.hb-blog-single .hb-post-brief__metrics span {
  color: rgba(244, 244, 245, 0.86);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post__featured {
  margin-top: var(--hb-space-10);
}

.hb-blog-single .hb-post__featured-img {
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post__body {
  padding: var(--hb-space-12) 0 var(--hb-space-20);
  background: var(--hb-post-warm);
}

.hb-blog-single .hb-post__layout {
  align-items: start;
  gap: var(--hb-space-8);
}

.hb-blog-single .hb-post__content.hb-prose {
  max-width: none;
  color: var(--hb-post-ink);
}

.hb-blog-single .hb-post-article-shell {
  counter-reset: hb-post-section;
  padding: var(--hb-space-9);
  background: var(--hb-post-paper);
  border: 1px solid var(--hb-post-line);
  border-radius: var(--hb-radius-sm);
  box-shadow: 0 32px 80px -68px rgba(39, 33, 24, 0.72);
}

.hb-blog-single .hb-post-article-shell > *:first-child {
  margin-top: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell > h1:first-child {
  display: none;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h2,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h3,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h4,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell strong {
  color: var(--hb-post-ink);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h2 {
  counter-increment: hb-post-section;
  display: flex;
  align-items: flex-start;
  gap: var(--hb-space-4);
  margin: var(--hb-space-12) 0 var(--hb-space-5);
  padding-top: var(--hb-space-7);
  border-top: 1px solid var(--hb-post-line);
  font-size: 2rem;
  line-height: 1.24;
  letter-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h2:first-child,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell blockquote + h2 {
  margin-top: var(--hb-space-7);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h2::before {
  content: counter(hb-post-section, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 2.35rem;
  padding-top: 0.1rem;
  color: var(--hb-post-accent-2);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-sm);
  font-weight: var(--hb-weight-semibold, 600);
  letter-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h3 {
  margin: var(--hb-space-8) 0 var(--hb-space-3);
  padding-left: var(--hb-space-4);
  border-left: 3px solid var(--hb-post-accent);
  font-size: 1.38rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h4 {
  margin-top: var(--hb-space-6);
  font-size: 1.08rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell p,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell li {
  color: var(--hb-post-muted);
  font-size: 1.06rem;
  line-height: 1.9;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell p {
  margin: var(--hb-space-4) 0 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell a {
  color: #4338ca;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell a:hover {
  color: #111113;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell blockquote {
  position: relative;
  margin: var(--hb-space-7) 0;
  padding: var(--hb-space-6) var(--hb-space-7);
  color: #211f1b;
  background: #f6efe2;
  border: 1px solid #eadbc5;
  border-left: 4px solid var(--hb-post-accent-2);
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell blockquote p {
  margin: 0;
  color: #25211d;
  font-size: 1.16rem;
  line-height: 1.82;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ul,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ol {
  display: grid;
  gap: 0.78rem;
  margin: var(--hb-space-5) 0 var(--hb-space-6);
  padding-left: 0;
  list-style: none;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell li {
  position: relative;
  padding: 0 0 0 1.85rem;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ul li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0.2rem;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--hb-post-accent);
  border-radius: 999px;
  box-shadow: 0 0 0 4px #eceafd;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ol {
  counter-reset: hb-post-list;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ol li {
  counter-increment: hb-post-list;
  padding-left: 2.35rem;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ol li::before {
  content: counter(hb-post-list);
  position: absolute;
  top: 0.18rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  color: #ffffff;
  background: var(--hb-post-accent);
  border-radius: 999px;
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-semibold, 600);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--hb-post-line);
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell figure {
  margin: var(--hb-space-7) 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell figcaption {
  margin-top: var(--hb-space-2);
  color: #77727c;
  font-size: var(--hb-text-sm);
  line-height: 1.6;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell pre {
  margin: var(--hb-space-7) 0;
  padding: var(--hb-space-6);
  overflow-x: auto;
  color: #e5e7eb;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: var(--hb-radius-sm);
  font-size: 0.92rem;
  line-height: 1.72;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell code {
  color: #111827;
  background: #ece8de;
  border: 1px solid #ddd6ca;
  border-radius: var(--hb-radius-xs);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell pre code {
  color: inherit;
  background: transparent;
  border: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell table {
  display: block;
  width: 100%;
  margin: var(--hb-space-7) 0;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--hb-post-line);
  border-radius: var(--hb-radius-sm);
  border-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell th,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #ece7dd;
  color: #3f3f46;
  font-size: var(--hb-text-sm);
  line-height: 1.58;
  text-align: left;
  white-space: nowrap;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell th {
  color: #18181b;
  background: #f7f4ee;
  font-weight: var(--hb-weight-semibold, 600);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell tr:last-child td {
  border-bottom: 0;
}

.hb-blog-single .hb-post__sidebar {
  display: grid;
  gap: var(--hb-space-4);
}

.hb-blog-single .hb-post-toc,
.hb-blog-single .hb-post-share,
.hb-blog-single .hb-post-service {
  padding: var(--hb-space-5);
  background: var(--hb-post-paper);
  border: 1px solid var(--hb-post-line);
  border-radius: var(--hb-radius-sm);
  box-shadow: none;
}

.hb-blog-single .hb-post-toc__title,
.hb-blog-single .hb-post-service__title {
  color: var(--hb-post-ink);
  letter-spacing: 0;
}

.hb-blog-single .hb-post-toc__title::before {
  background: var(--hb-post-accent);
}

.hb-blog-single .hb-post-toc__list {
  margin-top: var(--hb-space-4);
}

.hb-blog-single .hb-post-toc__item a {
  color: #68656f;
  border-left-color: #ded8cc;
}

.hb-blog-single .hb-post-toc__item a:hover {
  color: #312e81;
  border-left-color: var(--hb-post-accent);
}

.hb-blog-single .hb-post-share__label,
.hb-blog-single .hb-post-service__eyebrow {
  color: var(--hb-post-accent-2);
  font-family: var(--hb-font-mono);
  letter-spacing: 0;
}

.hb-blog-single .hb-post-share__btn {
  color: #52525b;
  background: #f7f4ee;
  border-color: var(--hb-post-line);
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post-share__btn:hover {
  color: #18181b;
  background: #ffffff;
  border-color: #cfc4b2;
}

.hb-blog-single .hb-post-service__text {
  color: #68656f;
  line-height: 1.72;
}

.hb-blog-single .hb-post-service__link {
  color: #4338ca;
  font-weight: var(--hb-weight-semibold, 600);
}

.hb-blog-single .hb-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-2);
  margin-top: var(--hb-space-6);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hb-blog-single .hb-post__tag {
  color: #52525b;
  background: #fffdfa;
  border: 1px solid var(--hb-post-line);
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post__tag:hover {
  color: #312e81;
  border-color: #c7d2fe;
}

.hb-blog-single .hb-post__cta {
  margin-top: var(--hb-space-6);
  padding: var(--hb-space-8);
  color: #ffffff;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.24), rgba(180, 83, 9, 0.18)),
    #111118;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--hb-radius-sm);
  box-shadow: 0 30px 80px -60px rgba(17, 17, 24, 0.8);
}

.hb-blog-single .hb-post__cta-title {
  max-width: 18ch;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta-title {
  max-width: 18ch;
  margin: 0;
  padding: 0;
  color: #ffffff;
  border: 0;
  font-size: 1.8rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta-title::before {
  content: none;
  display: none;
}

.hb-blog-single .hb-post__cta-text {
  max-width: 62ch;
  color: rgba(244, 244, 245, 0.76);
  line-height: 1.8;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta-text {
  max-width: 62ch;
  margin-top: var(--hb-space-3);
  color: rgba(244, 244, 245, 0.76);
  line-height: 1.8;
}

.hb-blog-single .hb-post__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-3);
  margin-top: var(--hb-space-5);
}

.hb-blog-single .hb-post__cta .hb-btn--outline {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
}

.hb-blog-single .hb-post-related {
  background: #101018;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 1024px) {
  .hb-blog-single .hb-post__hero-grid {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: var(--hb-space-14);
  }

  .hb-blog-single .hb-post__layout {
    grid-template-columns: minmax(0, 54rem) 18rem;
    gap: var(--hb-space-12);
    justify-content: center;
  }

  .hb-blog-single .hb-post__content {
    order: 1;
  }

  .hb-blog-single .hb-post__sidebar {
    order: 2;
    position: sticky;
    top: calc(var(--hb-space-20) + var(--hb-space-4));
    max-height: calc(100vh - var(--hb-space-24));
    overflow-y: auto;
    padding-right: var(--hb-space-1);
  }

  .hb-blog-single .hb-post-article-shell {
    padding: var(--hb-space-10) var(--hb-space-12);
  }
}

@media (max-width: 1023px) {
  .hb-blog-single .hb-post__content {
    order: 1;
  }

  .hb-blog-single .hb-post__sidebar {
    order: 2;
  }
}

@media (max-width: 719px) {
  .hb-blog-single .hb-post__hero {
    padding: calc(var(--hb-space-16) + var(--hb-space-4)) 0 var(--hb-space-9);
  }

  .hb-blog-single .hb-post__hero .hb-breadcrumbs {
    margin-bottom: var(--hb-space-5);
  }

  .hb-blog-single .hb-post__title {
    max-width: none;
    font-size: 2.25rem;
    line-height: 1.14;
  }

  .hb-blog-single .hb-post__lede {
    font-size: var(--hb-text-base);
    line-height: 1.78;
  }

  .hb-blog-single .hb-post__hero-actions .hb-btn,
  .hb-blog-single .hb-post__cta-actions .hb-btn {
    width: 100%;
  }

  .hb-blog-single .hb-post__body {
    padding: var(--hb-space-7) 0 var(--hb-space-14);
  }

  .hb-blog-single .hb-post-article-shell {
    padding: var(--hb-space-5);
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h2 {
    gap: var(--hb-space-3);
    margin-top: var(--hb-space-9);
    padding-top: var(--hb-space-6);
    font-size: 1.55rem;
    line-height: 1.28;
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h2::before {
    min-width: 2rem;
    font-size: var(--hb-text-xs);
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h3 {
    font-size: 1.22rem;
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell p,
  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell li {
    font-size: 1rem;
    line-height: 1.82;
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell blockquote {
    padding: var(--hb-space-5);
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell blockquote p {
    font-size: 1.04rem;
  }

  .hb-blog-single .hb-post__cta {
    padding: var(--hb-space-6);
  }

  .hb-blog-single .hb-post__cta-title {
    font-size: 1.45rem;
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post__cta-title {
    font-size: 1.45rem;
  }
}


/* ---------------------------------------------------------------------
 * 15. Single post rebuild v5 - Hashbox CI readable article
 * ------------------------------------------------------------------ */
.hb-blog-single {
  --hb-post-page: var(--hb-bg);
  --hb-post-page-2: #101018;
  --hb-post-paper: var(--hb-light-bg);
  --hb-post-paper-2: #f2f2f0;
  --hb-post-ink: var(--hb-light-text-strong);
  --hb-post-copy: var(--hb-light-text);
  --hb-post-muted: var(--hb-light-text-muted);
  --hb-post-line: var(--hb-light-border);
  --hb-post-brand: var(--hb-accent-blue);
  --hb-post-brand-strong: var(--hb-accent-blue-strong);
  --hb-post-warm: var(--hb-accent-amber);
  background: var(--hb-post-page);
}

.hb-blog-single .hb-post {
  color: var(--hb-text);
  background:
    linear-gradient(180deg, rgba(79, 70, 229, 0.12), transparent 21rem),
    linear-gradient(180deg, var(--hb-post-page) 0%, var(--hb-post-page-2) 100%);
}

.hb-blog-single .hb-post__hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--hb-space-20) + var(--hb-space-2)) 0 var(--hb-space-12);
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.16), transparent 44%),
    linear-gradient(180deg, #0b0b12 0%, #11111a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-blog-single .hb-post__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.32;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 78%);
}

.hb-blog-single .hb-post__hero > * {
  position: relative;
  z-index: 1;
}

.hb-blog-single .hb-post__hero .hb-breadcrumbs {
  margin-bottom: var(--hb-space-7);
  color: var(--hb-text-faint);
}

.hb-blog-single .hb-post__hero .hb-breadcrumbs a {
  color: var(--hb-text-muted);
}

.hb-blog-single .hb-post__hero-grid {
  align-items: end;
  gap: var(--hb-space-10);
}

.hb-blog-single .hb-post__intro {
  min-width: 0;
}

.hb-blog-single .hb-post__cat {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin: 0 0 var(--hb-space-4);
  padding: 0.38rem 0.72rem;
  color: var(--hb-accent-blue-soft);
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.32);
  border-radius: var(--hb-radius-sm);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-semibold, 600);
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.hb-blog-single .hb-post__cat:hover {
  color: #ffffff;
  background: rgba(79, 70, 229, 0.2);
  border-color: rgba(129, 140, 248, 0.52);
}

.hb-blog-single .hb-post__title {
  max-width: 22ch;
  margin: 0 0 var(--hb-space-5);
  color: var(--hb-text-strong);
  font-size: 3.15rem;
  line-height: 1.1;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hb-blog-single .hb-post__lede {
  max-width: 64ch;
  margin: 0;
  color: var(--hb-text-muted);
  font-size: 1.08rem;
  line-height: 1.82;
}

.hb-blog-single .hb-post-meta {
  margin-top: var(--hb-space-6);
  color: var(--hb-text-muted);
}

.hb-blog-single .hb-post-meta__author,
.hb-blog-single .hb-post-meta__date,
.hb-blog-single .hb-post-meta__reading,
.hb-blog-single .hb-post-meta__updated {
  color: var(--hb-text-muted);
}

.hb-blog-single .hb-post-meta__author strong {
  color: var(--hb-text-strong);
}

.hb-blog-single .hb-post-meta__avatar {
  border-color: rgba(255, 255, 255, 0.12);
}

.hb-blog-single .hb-post__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-3);
  margin-top: var(--hb-space-7);
}

.hb-blog-single .hb-post__hero-actions .hb-btn,
.hb-blog-single .hb-post__cta-actions .hb-btn {
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post__hero-actions .hb-btn--outline {
  color: var(--hb-text-strong);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.hb-blog-single .hb-post-brief {
  padding: var(--hb-space-5);
  color: var(--hb-text);
  background: rgba(21, 21, 30, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--hb-radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.hb-blog-single .hb-post-brief__eyebrow {
  color: var(--hb-accent-blue-soft);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hb-blog-single .hb-post-brief__title {
  margin: var(--hb-space-2) 0 0;
  color: var(--hb-text-strong);
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: 0;
}

.hb-blog-single .hb-post-brief__list {
  margin-top: var(--hb-space-5);
}

.hb-blog-single .hb-post-brief__list div {
  padding: var(--hb-space-3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-blog-single .hb-post-brief__list dt {
  color: var(--hb-text-faint);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hb-blog-single .hb-post-brief__list dd {
  margin-top: var(--hb-space-1);
  color: var(--hb-text-strong);
}

.hb-blog-single .hb-post-brief__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-2);
  margin-top: var(--hb-space-4);
}

.hb-blog-single .hb-post-brief__metrics span {
  color: var(--hb-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post__featured {
  margin-top: var(--hb-space-10);
}

.hb-blog-single .hb-post__featured-img {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post__body {
  padding: var(--hb-space-12) 0 var(--hb-space-20);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16rem),
    var(--hb-post-page);
}

.hb-blog-single .hb-post__layout {
  align-items: start;
  gap: var(--hb-space-8);
}

.hb-blog-single .hb-post__content {
  min-width: 0;
}

.hb-blog-single .hb-post__content.hb-prose {
  max-width: none;
}

.hb-blog-single .hb-post-article-shell {
  counter-reset: none;
  padding: var(--hb-space-8);
  color: var(--hb-post-copy);
  background: var(--hb-post-paper);
  border: 1px solid var(--hb-post-line);
  border-radius: var(--hb-radius-sm);
  box-shadow: 0 32px 90px -70px rgba(0, 0, 0, 0.9);
}

.hb-blog-single .hb-post-article-shell > *:first-child {
  margin-top: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell > h1:first-child {
  display: none;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h2,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h3,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h4,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell strong {
  color: var(--hb-post-ink);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h2 {
  display: block;
  margin: var(--hb-space-12) 0 var(--hb-space-5);
  padding: var(--hb-space-7) 0 0;
  border-top: 1px solid var(--hb-post-line);
  font-size: 2rem;
  line-height: 1.28;
  letter-spacing: 0;
  scroll-margin-top: var(--hb-space-20);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h2:first-child,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell blockquote + h2 {
  margin-top: var(--hb-space-7);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h2::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-bottom: var(--hb-space-4);
  background: var(--hb-post-brand);
  border-radius: var(--hb-radius-full);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h3 {
  margin: var(--hb-space-8) 0 var(--hb-space-3);
  padding: 0 0 0 var(--hb-space-4);
  border-left: 3px solid var(--hb-post-brand);
  font-size: 1.34rem;
  line-height: 1.38;
  letter-spacing: 0;
  scroll-margin-top: var(--hb-space-20);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h4 {
  margin-top: var(--hb-space-6);
  font-size: 1.08rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell p,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell li {
  color: var(--hb-post-copy);
  font-size: 1.06rem;
  line-height: 1.9;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell p {
  margin: var(--hb-space-4) 0 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell a {
  color: var(--hb-post-brand-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell a:hover {
  color: var(--hb-post-ink);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell blockquote {
  margin: var(--hb-space-7) 0;
  padding: var(--hb-space-6);
  color: #1f1f26;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-left: 4px solid var(--hb-post-brand);
  border-radius: var(--hb-radius-sm);
  font-style: normal;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell blockquote p {
  margin: 0;
  color: #1f1f26;
  font-size: 1.12rem;
  line-height: 1.82;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ul,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ol {
  display: grid;
  gap: 0.78rem;
  margin: var(--hb-space-5) 0 var(--hb-space-6);
  padding-left: 0;
  list-style: none;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell li {
  position: relative;
  padding: 0 0 0 1.8rem;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ul li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0.18rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--hb-post-brand);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ol {
  counter-reset: hb-post-list;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ol li {
  counter-increment: hb-post-list;
  padding-left: 2.35rem;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell ol li::before {
  content: counter(hb-post-list);
  position: absolute;
  top: 0.2rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  color: #ffffff;
  background: var(--hb-post-brand);
  border-radius: 999px;
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-semibold, 600);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--hb-post-line);
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell figure {
  margin: var(--hb-space-7) 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell figcaption {
  margin-top: var(--hb-space-2);
  color: var(--hb-light-text-faint);
  font-size: var(--hb-text-sm);
  line-height: 1.6;
  text-align: center;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell pre {
  margin: var(--hb-space-7) 0;
  padding: var(--hb-space-5);
  overflow-x: auto;
  color: #e5e7eb;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: var(--hb-radius-sm);
  font-size: 0.92rem;
  line-height: 1.72;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell code {
  color: #111827;
  background: #eef2ff;
  border: 1px solid #dbe3ff;
  border-radius: var(--hb-radius-xs);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell pre code {
  color: inherit;
  background: transparent;
  border: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell table {
  display: block;
  width: 100%;
  margin: var(--hb-space-7) 0;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--hb-post-line);
  border-radius: var(--hb-radius-sm);
  border-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell th,
.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--hb-post-line);
  color: var(--hb-post-copy);
  font-size: var(--hb-text-sm);
  line-height: 1.58;
  text-align: left;
  white-space: nowrap;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell th {
  color: var(--hb-post-ink);
  background: var(--hb-post-paper-2);
  font-weight: var(--hb-weight-semibold, 600);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell tr:last-child td {
  border-bottom: 0;
}

.hb-blog-single .hb-post__sidebar {
  display: grid;
  gap: var(--hb-space-4);
}

.hb-blog-single .hb-post-toc,
.hb-blog-single .hb-post-share,
.hb-blog-single .hb-post-service {
  padding: var(--hb-space-5);
  color: var(--hb-text);
  background: var(--hb-surface-1);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hb-blog-single .hb-post-toc__title,
.hb-blog-single .hb-post-service__title {
  color: var(--hb-text-strong);
  letter-spacing: 0;
}

.hb-blog-single .hb-post-toc__title::before {
  background: var(--hb-post-brand);
}

.hb-blog-single .hb-post-toc__list {
  margin-top: var(--hb-space-4);
}

.hb-blog-single .hb-post-toc__item a {
  color: var(--hb-text-muted);
  border-left-color: transparent;
}

.hb-blog-single .hb-post-toc__item a:hover {
  color: var(--hb-text-strong);
  border-left-color: var(--hb-post-brand);
}

.hb-blog-single .hb-post-share__label,
.hb-blog-single .hb-post-service__eyebrow {
  color: var(--hb-accent-blue-soft);
  font-family: var(--hb-font-mono);
  letter-spacing: 0;
}

.hb-blog-single .hb-post-share__btn {
  color: var(--hb-text-muted);
  background: var(--hb-surface-2);
  border-color: var(--hb-border);
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post-share__btn:hover {
  color: var(--hb-text-strong);
  background: var(--hb-surface-3);
  border-color: var(--hb-border-strong);
}

.hb-blog-single .hb-post-service__text {
  color: var(--hb-text-muted);
  line-height: 1.72;
}

.hb-blog-single .hb-post-service__link {
  color: var(--hb-accent-blue-soft);
  font-weight: var(--hb-weight-semibold, 600);
}

.hb-blog-single .hb-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-2);
  margin-top: var(--hb-space-6);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hb-blog-single .hb-post__tag {
  color: var(--hb-text-muted);
  background: var(--hb-surface-1);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-sm);
}

.hb-blog-single .hb-post__tag:hover {
  color: var(--hb-text-strong);
  border-color: var(--hb-border-strong);
}

.hb-blog-single .hb-post__cta {
  margin-top: var(--hb-space-6);
  padding: var(--hb-space-8);
  color: var(--hb-text);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.22), rgba(194, 65, 12, 0.08)),
    var(--hb-surface-1);
  border: 1px solid color-mix(in oklab, var(--hb-accent-blue) 34%, var(--hb-border));
  border-radius: var(--hb-radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hb-blog-single .hb-post__cta-title,
.hb-blog-single .hb-post__content.hb-prose .hb-post__cta-title {
  max-width: 22ch;
  margin: 0;
  padding: 0;
  color: var(--hb-text-strong);
  border: 0;
  font-size: 1.8rem;
  line-height: 1.24;
  letter-spacing: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta-title::before {
  content: none;
  display: none;
}

.hb-blog-single .hb-post__cta-text,
.hb-blog-single .hb-post__content.hb-prose .hb-post__cta-text {
  max-width: 62ch;
  margin-top: var(--hb-space-3);
  color: var(--hb-text-muted);
  line-height: 1.8;
}

.hb-blog-single .hb-post__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-3);
  margin-top: var(--hb-space-5);
}

.hb-blog-single .hb-post__cta .hb-btn--outline {
  color: var(--hb-text-strong);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.hb-blog-single .hb-post-related {
  background: var(--hb-surface-1);
  border-top: 1px solid var(--hb-border);
}

@media (min-width: 1024px) {
  .hb-blog-single .hb-post__hero-grid {
    grid-template-columns: minmax(0, 1fr) 18rem;
    gap: var(--hb-space-12);
  }

  .hb-blog-single .hb-post__layout {
    grid-template-columns: minmax(0, 51rem) 18rem;
    gap: var(--hb-space-10);
    justify-content: center;
  }

  .hb-blog-single .hb-post__content {
    order: 1;
  }

  .hb-blog-single .hb-post__sidebar {
    order: 2;
    position: sticky;
    top: calc(var(--hb-space-20) + var(--hb-space-4));
    max-height: calc(100vh - var(--hb-space-24));
    overflow-y: auto;
    padding-right: var(--hb-space-1);
  }

  .hb-blog-single .hb-post-article-shell {
    padding: var(--hb-space-10) var(--hb-space-12);
  }
}

@media (max-width: 1023px) {
  .hb-blog-single .hb-post__content {
    order: 1;
  }

  .hb-blog-single .hb-post__sidebar {
    order: 2;
  }
}

@media (max-width: 719px) {
  .hb-blog-single .hb-post__hero {
    padding: calc(var(--hb-space-16) + var(--hb-space-4)) 0 var(--hb-space-9);
  }

  .hb-blog-single .hb-post__hero .hb-breadcrumbs {
    margin-bottom: var(--hb-space-5);
  }

  .hb-blog-single .hb-post__title {
    max-width: none;
    font-size: 2.25rem;
    line-height: 1.16;
  }

  .hb-blog-single .hb-post__lede {
    font-size: 1rem;
    line-height: 1.78;
  }

  .hb-blog-single .hb-post__hero-actions .hb-btn,
  .hb-blog-single .hb-post__cta-actions .hb-btn {
    width: 100%;
  }

  .hb-blog-single .hb-post__body {
    padding: var(--hb-space-6) 0 var(--hb-space-14);
  }

  .hb-blog-single .hb-post-article-shell {
    padding: var(--hb-space-5);
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h2 {
    margin-top: var(--hb-space-9);
    padding-top: var(--hb-space-6);
    font-size: 1.52rem;
    line-height: 1.32;
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell h3 {
    font-size: 1.2rem;
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell p,
  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell li {
    font-size: 1rem;
    line-height: 1.84;
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell blockquote {
    padding: var(--hb-space-5);
  }

  .hb-blog-single .hb-post__content.hb-prose .hb-post-article-shell blockquote p {
    font-size: 1.02rem;
  }

  .hb-blog-single .hb-post__cta {
    padding: var(--hb-space-6);
  }

  .hb-blog-single .hb-post__cta-title,
  .hb-blog-single .hb-post__content.hb-prose .hb-post__cta-title {
    font-size: 1.45rem;
  }
}


/* ---------------------------------------------------------------------
 * 16. Single post spacing polish - CTA, tags, hero rhythm
 * ------------------------------------------------------------------ */
.hb-blog-single .hb-post__hero {
  padding: var(--hb-space-20) 0 var(--hb-space-10);
}

.hb-blog-single .hb-post__hero .hb-breadcrumbs {
  margin-bottom: var(--hb-space-6);
}

.hb-blog-single .hb-post__title {
  max-width: 24ch;
  margin-bottom: var(--hb-space-4);
  font-size: 2.78rem;
  line-height: 1.12;
}

.hb-blog-single .hb-post__lede {
  max-width: 58ch;
  font-size: 1.02rem;
  line-height: 1.76;
}

.hb-blog-single .hb-post-meta {
  margin-top: var(--hb-space-5);
}

.hb-blog-single .hb-post__hero-actions {
  margin-top: var(--hb-space-5);
}

.hb-blog-single .hb-post-brief {
  padding: var(--hb-space-4);
  background: rgba(21, 21, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

.hb-blog-single .hb-post-brief__title {
  font-size: 1.12rem;
}

.hb-blog-single .hb-post-brief__list {
  margin-top: var(--hb-space-4);
}

.hb-blog-single .hb-post-brief__list div {
  padding: var(--hb-space-2) 0;
}

.hb-blog-single .hb-post-brief__metrics {
  gap: var(--hb-space-2);
  margin-top: var(--hb-space-3);
}

.hb-blog-single .hb-post-brief__metrics span {
  padding: 0.32rem 0.55rem;
  font-size: var(--hb-text-xs);
}

.hb-blog-single .hb-post__body {
  padding: var(--hb-space-10) 0 var(--hb-space-16);
}

.hb-blog-single .hb-post__tags {
  gap: var(--hb-space-2);
  margin-top: var(--hb-space-5);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__tag {
  min-height: 2.1rem;
  padding: 0.34rem 0.68rem;
  color: var(--hb-text-muted);
  text-decoration: none;
  background: rgba(21, 21, 30, 0.78);
  border-color: var(--hb-border);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__tag:hover {
  color: var(--hb-text-strong);
  text-decoration: none;
  background: var(--hb-surface-2);
  border-color: var(--hb-border-strong);
}

.hb-blog-single .hb-post__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hb-space-5);
  margin-top: var(--hb-space-5);
  padding: var(--hb-space-6);
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(194, 65, 12, 0.06)),
    #15151e;
  border-color: rgba(129, 140, 248, 0.28);
}

.hb-blog-single .hb-post__cta-title,
.hb-blog-single .hb-post__content.hb-prose .hb-post__cta-title {
  max-width: 26ch;
  font-size: 1.45rem;
  line-height: 1.28;
}

.hb-blog-single .hb-post__cta-text,
.hb-blog-single .hb-post__content.hb-prose .hb-post__cta-text {
  max-width: 58ch;
  margin-top: var(--hb-space-2);
  color: var(--hb-text-muted);
  font-size: var(--hb-text-base);
  line-height: 1.72;
}

.hb-blog-single .hb-post__cta-actions {
  gap: var(--hb-space-3);
  margin-top: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta a.hb-btn {
  color: var(--hb-text-strong);
  text-decoration: none;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta a.hb-btn:hover {
  color: #ffffff;
  text-decoration: none;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta .hb-btn--gradient {
  color: #ffffff;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta .hb-btn--outline {
  color: var(--hb-text-strong);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.16);
}

@media (min-width: 1024px) {
  .hb-blog-single .hb-post__hero-grid {
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: var(--hb-space-10);
  }

  .hb-blog-single .hb-post__layout {
    grid-template-columns: minmax(0, 49rem) 17rem;
    gap: var(--hb-space-9);
  }

  .hb-blog-single .hb-post__cta {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .hb-blog-single .hb-post__cta-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 719px) {
  .hb-blog-single .hb-post__hero {
    padding: calc(var(--hb-space-16) + var(--hb-space-2)) 0 var(--hb-space-8);
  }

  .hb-blog-single .hb-post__title {
    font-size: 2rem;
    line-height: 1.18;
  }

  .hb-blog-single .hb-post__body {
    padding: var(--hb-space-5) 0 var(--hb-space-12);
  }

  .hb-blog-single .hb-post__cta {
    padding: var(--hb-space-5);
  }

  .hb-blog-single .hb-post__cta-title,
  .hb-blog-single .hb-post__content.hb-prose .hb-post__cta-title {
    font-size: 1.28rem;
  }
}


/* ---------------------------------------------------------------------
 * 17. Single post CTA redesign - structured brand panel
 * ------------------------------------------------------------------ */
.hb-blog-single .hb-post__cta {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  margin-top: var(--hb-space-5);
  padding: var(--hb-space-5);
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(194, 65, 12, 0.08)),
    linear-gradient(180deg, #181823 0%, #12121a 100%);
  border: 1px solid rgba(129, 140, 248, 0.32);
  border-radius: var(--hb-radius-sm);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 26px 80px -64px rgba(79, 70, 229, 0.9);
}

.hb-blog-single .hb-post__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.18;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), transparent 82%);
}

.hb-blog-single .hb-post__cta-main,
.hb-blog-single .hb-post__cta-side {
  min-width: 0;
}

.hb-blog-single .hb-post__cta-main {
  padding: 0 0 var(--hb-space-5);
}

.hb-blog-single .hb-post__cta-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.22rem 0.5rem;
  color: var(--hb-accent-blue-soft);
  background: rgba(79, 70, 229, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.28);
  border-radius: var(--hb-radius-sm);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  font-weight: var(--hb-weight-semibold, 600);
  letter-spacing: 0;
  text-transform: uppercase;
}

.hb-blog-single .hb-post__cta-title,
.hb-blog-single .hb-post__content.hb-prose .hb-post__cta-title {
  max-width: 30ch;
  margin-top: var(--hb-space-3);
  color: var(--hb-text-strong);
  font-size: 1.42rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.hb-blog-single .hb-post__cta-text,
.hb-blog-single .hb-post__content.hb-prose .hb-post__cta-text {
  max-width: 56rem;
  margin-top: var(--hb-space-2);
  color: rgba(214, 214, 212, 0.78);
  font-size: 1rem;
  line-height: 1.68;
}

.hb-blog-single .hb-post__cta-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hb-space-4);
  padding: var(--hb-space-4) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hb-blog-single .hb-post__cta-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-2);
}

.hb-blog-single .hb-post__cta-points span {
  display: inline-flex;
  align-items: center;
  min-height: 1.82rem;
  padding: 0.28rem 0.55rem;
  color: var(--hb-text-muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--hb-radius-sm);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  letter-spacing: 0;
}

.hb-blog-single .hb-post__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hb-space-2);
  margin: 0;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta a.hb-btn {
  min-height: 2.55rem;
  padding: 0.62rem var(--hb-space-4);
  color: var(--hb-text-strong);
  text-decoration: none;
  white-space: nowrap;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta a.hb-btn:hover {
  color: #ffffff;
  text-decoration: none;
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta .hb-btn--gradient {
  color: #ffffff;
  box-shadow: 0 16px 38px -24px rgba(79, 70, 229, 0.9);
}

.hb-blog-single .hb-post__content.hb-prose .hb-post__cta .hb-btn--outline {
  color: var(--hb-text-strong);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.16);
}

@media (min-width: 1024px) {
  .hb-blog-single .hb-post__cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: var(--hb-space-5);
  }

  .hb-blog-single .hb-post__cta-side {
    justify-items: initial;
  }

  .hb-blog-single .hb-post__cta-points,
  .hb-blog-single .hb-post__cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 719px) {
  .hb-blog-single .hb-post__cta {
    gap: 0;
    padding: var(--hb-space-4);
  }

  .hb-blog-single .hb-post__cta-main {
    padding: 0 0 var(--hb-space-4);
  }

  .hb-blog-single .hb-post__cta-side {
    padding: var(--hb-space-4) 0 0;
  }

  .hb-blog-single .hb-post__cta-title,
  .hb-blog-single .hb-post__content.hb-prose .hb-post__cta-title {
    max-width: none;
    font-size: 1.24rem;
  }

  .hb-blog-single .hb-post__cta-actions .hb-btn {
    width: 100%;
  }
}


/* ---------------------------------------------------------------------
 * 18. Single post body layout polish - readable width + sidebar spacing
 * ------------------------------------------------------------------ */
.hb-blog-single .hb-post__layout {
  max-width: 76rem;
  align-items: start;
  column-gap: var(--hb-space-8);
  row-gap: var(--hb-space-8);
}

.hb-blog-single .hb-post__content,
.hb-blog-single .hb-post__sidebar {
  min-width: 0;
}

.hb-blog-single .hb-post__content.hb-prose {
  max-width: none;
}

.hb-blog-single .hb-post-article-shell {
  width: 100%;
}

.hb-blog-single .hb-post__sidebar {
  width: 100%;
}

.hb-blog-single .hb-post-toc,
.hb-blog-single .hb-post-share,
.hb-blog-single .hb-post-service {
  width: 100%;
}

@media (min-width: 1024px) {
  .hb-blog-single .hb-post__layout {
    grid-template-columns: minmax(0, 44rem) minmax(16rem, 18rem);
    column-gap: clamp(var(--hb-space-10), 5vw, var(--hb-space-16));
    row-gap: var(--hb-space-10);
    justify-content: center;
  }

  .hb-blog-single .hb-post__sidebar {
    justify-self: stretch;
    max-width: 18rem;
  }
}

@media (min-width: 1280px) {
  .hb-blog-single .hb-post__layout {
    grid-template-columns: minmax(0, 46rem) 18rem;
  }
}

@media (max-width: 1023px) {
  .hb-blog-single .hb-post__layout {
    max-width: 48rem;
  }
}
