/* ============================================================
   BLOCK THEME — Main Stylesheet
   Financial Editorial Magazine — White & Forest Green
   Design System: Clean, Simple, WealthHub-style
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES ─────────────────────────────── */

:root {
  /* Color palette — Forest Green (Option A) */
  --bh-bg: #ffffff;
  --bh-bg-alt: #f7f9f7;
  --bh-ink: #111827;
  --bh-ink-muted: #6b7280;
  --bh-ink-light: #9ca3af;
  --bh-green: #166534;
  --bh-green-dark: #14532d;
  --bh-green-light: #dcfce7;
  --bh-border: #e5e7eb;
  --bh-white: #ffffff;

  /* Typography */
  --bh-font-display: "Merriweather", Georgia, "Times New Roman", serif;
  --bh-font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing & layout */
  --bh-container: 1400px;
  --bh-px: 16px;
  --bh-section-gap: 56px;
  --bh-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bh-bg);
  color: var(--bh-ink);
  font-family: var(--bh-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ── 3. CONTAINER ─────────────────────────────────────────── */

.container {
  max-width: var(--bh-container);
  margin-inline: auto;
  padding-inline: var(--bh-px);
}

@media (min-width: 640px) {
  .container {
    padding-inline: 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 40px;
  }
}

/* ── 4. TYPOGRAPHY UTILITIES ──────────────────────────────── */

.label-caps {
  font-family: var(--bh-font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bh-green);
  display: inline-block;
}

/* ── 5. BUTTONS ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--bh-font-body);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    background 0.2s var(--bh-ease),
    color 0.2s var(--bh-ease),
    border-color 0.2s var(--bh-ease),
    transform 0.15s var(--bh-ease);
}

.btn-primary {
  background-color: var(--bh-green);
  color: var(--bh-white);
  border-color: var(--bh-green);
}

.btn-primary:hover {
  background-color: var(--bh-green-dark);
  border-color: var(--bh-green-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--bh-green);
  border-color: var(--bh-green);
}

.btn-outline:hover {
  background-color: var(--bh-green);
  color: var(--bh-white);
}

/* ── 6. HEADER ────────────────────────────────────────────── */

.bh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bh-white);
  border-bottom: 1px solid var(--bh-border);
  transition: box-shadow 0.25s var(--bh-ease);
}

.bh-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.bh-header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

/* Logo */
.bh-header-logo {
  flex-shrink: 0;
}

.bh-header-logo a,
.bh-header-logo .custom-logo-link {
  display: flex;
  align-items: center;
  font-family: var(--bh-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--bh-green);
  text-decoration: none;
}

.bh-header-logo img,
.bh-header-logo .custom-logo {
  height: 40px;
  width: auto;
}

/* Desktop nav */
.bh-header-nav {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.bh-header-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  list-style: none;
}

.bh-header-nav-list li a {
  display: block;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--bh-ink);
  border-radius: 4px;
  transition:
    color 0.15s var(--bh-ease),
    background-color 0.15s var(--bh-ease);
}

.bh-header-nav-list li a:hover,
.bh-header-nav-list li.current-menu-item > a,
.bh-header-nav-list li.current-page-ancestor > a,
.bh-header-nav-list li.current-category-ancestor > a {
  color: var(--bh-green);
  background-color: var(--bh-green-light);
}

/* Header actions */
.bh-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.bh-header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--bh-ink-muted);
  cursor: pointer;
  transition:
    color 0.15s var(--bh-ease),
    background-color 0.15s var(--bh-ease);
}

.bh-header-search-btn:hover {
  color: var(--bh-green);
  background-color: var(--bh-green-light);
}

/* Hamburger */
.bh-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.bh-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--bh-ink);
  border-radius: 1px;
  transition:
    transform 0.2s var(--bh-ease),
    opacity 0.2s var(--bh-ease);
}

/* ── 7. SEARCH OVERLAY ────────────────────────────────────── */

.bh-search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  padding-inline: 16px;
}

.bh-search-overlay.open {
  display: flex;
}

.bh-search-box {
  background-color: var(--bh-white);
  border-radius: 8px;
  padding: 24px;
  width: min(640px, 100%);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 12px;
  align-items: center;
}

.bh-search-box form {
  display: flex;
  gap: 8px;
  flex: 1;
}

.bh-search-box input[type="search"] {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid var(--bh-border);
  border-radius: 4px;
  font-size: 16px;
  font-family: var(--bh-font-body);
  color: var(--bh-ink);
  outline: none;
  transition: border-color 0.15s;
  background-color: var(--bh-white);
}

.bh-search-box input[type="search"]:focus {
  border-color: var(--bh-green);
}

.bh-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  line-height: 1;
  color: var(--bh-ink-muted);
  cursor: pointer;
  border-radius: 4px;
  border: none;
  background: none;
  flex-shrink: 0;
  transition: color 0.15s;
}

.bh-search-close:hover {
  color: var(--bh-ink);
}

/* ── 8. MOBILE MENU ───────────────────────────────────────── */

.bh-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background-color: var(--bh-white);
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.bh-mobile-menu.open {
  display: flex;
}

.bh-mobile-menu-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
}

.bh-mobile-close {
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 36px;
  text-align: center;
  color: var(--bh-ink-muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.15s;
}

.bh-mobile-close:hover {
  color: var(--bh-ink);
}

.bh-mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.bh-mobile-nav-list li a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--bh-ink);
  border-bottom: 1px solid var(--bh-border);
  transition: color 0.15s;
}

.bh-mobile-nav-list li a:hover {
  color: var(--bh-green);
}

/* ── 9. HOMEPAGE — CATEGORY SECTIONS ─────────────────────── */

.bh-homepage {
  padding-top: 0;
}

.bh-cat-section {
  padding-block: var(--bh-section-gap);
  border-bottom: 1px solid var(--bh-border);
}

.bh-cat-section:last-of-type {
  border-bottom: none;
}

/* Section header row */
.bh-cat-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.bh-cat-section-name {
  font-family: var(--bh-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--bh-ink);
  margin-bottom: 4px;
}

.bh-cat-section-desc {
  font-size: 14px;
  color: var(--bh-ink-muted);
  line-height: 1.5;
}

.bh-cat-view-all {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--bh-green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  transition: gap 0.15s var(--bh-ease);
}

.bh-cat-view-all:hover {
  gap: 8px;
}

/* 3-column grid */
.bh-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .bh-cat-grid {
    grid-template-columns: 2.2fr 1.6fr 1fr;
    gap: 28px;
    align-items: stretch;
  }
}

/* ── 10. FEATURED POST CARD ───────────────────────────────── */

.bh-cat-featured {
  position: relative;
}

.bh-featured-card {
  display: block;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bh-ink);
  aspect-ratio: 4 / 3;
  text-decoration: none;
}

.bh-featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--bh-ease);
}

.bh-featured-card:hover img {
  transform: scale(1.03);
}

.bh-featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.bh-featured-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background-color: var(--bh-green);
  color: var(--bh-white);
  font-family: var(--bh-font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.bh-featured-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px;
}

.bh-featured-card-title {
  font-family: var(--bh-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bh-white);
  line-height: 1.35;
  margin-bottom: 8px;
}

.bh-featured-card-excerpt {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* No-thumbnail placeholder variant */
.bh-featured-card.bh-featured-card-placeholder {
  background: linear-gradient(135deg, var(--bh-green-dark) 0%, var(--bh-green) 100%);
}

/* ── 11. MINI ARTICLE CARDS ───────────────────────────────── */

.bh-mini-cards {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bh-mini-card {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--bh-border);
  text-decoration: none;
  transition: background-color 0.15s var(--bh-ease);
}

.bh-mini-card:first-child {
  padding-top: 0;
}

.bh-mini-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bh-mini-card:hover {
  background-color: transparent;
}

.bh-mini-card-thumb {
  flex-shrink: 0;
  width: 160px;
  height: 120px;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--bh-bg-alt);
}

.bh-mini-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bh-mini-card-thumb-placeholder {
  background: linear-gradient(135deg, var(--bh-bg-alt) 0%, var(--bh-border) 100%);
}

.bh-mini-card-body {
  flex: 1;
  min-width: 0;
}

.bh-mini-card-title {
  font-family: var(--bh-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--bh-ink);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s var(--bh-ease);
}

.bh-mini-card:hover .bh-mini-card-title {
  color: var(--bh-green);
}

.bh-mini-card-date {
  font-size: 12px;
  color: var(--bh-ink-muted);
}

/* ── 12. NEWSLETTER WIDGET ────────────────────────────────── */

.bh-newsletter-widget {
  border: 1px solid var(--bh-border);
  border-radius: 6px;
  padding: 24px 20px 20px;
  background-color: var(--bh-white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bh-newsletter-widget-title {
  font-family: var(--bh-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--bh-ink);
  line-height: 1.35;
  margin-bottom: 8px;
}

.bh-newsletter-widget-desc {
  font-size: 14px;
  color: var(--bh-ink-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.bh-newsletter-widget-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bh-newsletter-widget-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--bh-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--bh-font-body);
  color: var(--bh-ink);
  background-color: var(--bh-white);
  outline: none;
  transition: border-color 0.15s;
}

.bh-newsletter-widget-input:focus {
  border-color: var(--bh-green);
}

.bh-newsletter-widget-input.is-error {
  border-color: #dc2626;
}

.bh-newsletter-widget-btn {
  width: 100%;
  padding: 11px 16px;
  background-color: var(--bh-green);
  color: var(--bh-white);
  border: none;
  border-radius: 4px;
  font-family: var(--bh-font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s var(--bh-ease),
    transform 0.15s;
}

.bh-newsletter-widget-btn:hover {
  background-color: var(--bh-green-dark);
  transform: translateY(-1px);
}

.bh-newsletter-widget-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Status / error messages */
.bh-newsletter-status {
  font-size: 12px;
  min-height: 16px;
  line-height: 1.4;
}

.bh-newsletter-status.is-success {
  color: var(--bh-green);
}

.bh-newsletter-status.is-error {
  color: #dc2626;
}

.bh-newsletter-error {
  font-size: 12px;
  color: #dc2626;
  min-height: 14px;
}

/* Honeypot field */
.bh-honeypot {
  display: none !important;
}

/* Decorative icon (bottom-right) */
.bh-newsletter-widget-icon {
  position: absolute;
  bottom: 10px;
  right: 12px;
  opacity: 0.06;
  color: var(--bh-green);
  pointer-events: none;
  user-select: none;
}

/* ── 13. FOOTER ───────────────────────────────────────────── */

.bh-footer {
  background-color: var(--bh-white);
  border-top: 1px solid var(--bh-border);
  padding-top: 56px;
}

.bh-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

@media (min-width: 640px) {
  .bh-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bh-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
    gap: 32px;
  }
}

/* Brand column */
.bh-footer-brand-logo a,
.bh-footer-brand-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--bh-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bh-green);
  margin-bottom: 12px;
  text-decoration: none;
}

.bh-footer-brand-logo img,
.bh-footer-brand-logo .custom-logo {
  height: 36px;
  width: auto;
}

.bh-footer-site-name {
  font-family: var(--bh-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bh-green);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 12px;
}

.bh-footer-tagline {
  font-size: 13px;
  color: var(--bh-ink-muted);
  line-height: 1.65;
  max-width: 280px;
}

/* Nav columns */
.bh-footer-col-heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bh-ink);
  margin-bottom: 16px;
}

.bh-footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bh-footer-nav-list li a {
  font-size: 14px;
  color: var(--bh-ink-muted);
  transition: color 0.15s;
}

.bh-footer-nav-list li a:hover {
  color: var(--bh-green);
}

/* Newsletter column */
.bh-footer-newsletter-desc {
  font-size: 13px;
  color: var(--bh-ink-muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

.bh-footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bh-footer-newsletter-input {
  padding: 10px 14px;
  border: 1px solid var(--bh-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: var(--bh-font-body);
  color: var(--bh-ink);
  background-color: var(--bh-white);
  outline: none;
  transition: border-color 0.15s;
}

.bh-footer-newsletter-input:focus {
  border-color: var(--bh-green);
}

.bh-footer-newsletter-btn {
  padding: 11px 16px;
  background-color: var(--bh-green);
  color: var(--bh-white);
  border: none;
  border-radius: 4px;
  font-family: var(--bh-font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--bh-ease);
}

.bh-footer-newsletter-btn:hover {
  background-color: var(--bh-green-dark);
}

/* Footer bottom bar */
.bh-footer-bottom {
  border-top: 1px solid var(--bh-border);
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.bh-footer-copyright {
  font-size: 13px;
  color: var(--bh-ink-muted);
}

.bh-footer-social {
  display: flex;
  gap: 10px;
}

.bh-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--bh-border);
  border-radius: 50%;
  color: var(--bh-ink-muted);
  transition:
    color 0.15s,
    border-color 0.15s;
}

.bh-footer-social a:hover {
  color: var(--bh-green);
  border-color: var(--bh-green);
}

/* ── 14. INNER PAGE HERO BAND ─────────────────────────────── */

.bh-page-hero {
  background-color: var(--bh-bg-alt);
  border-bottom: 1px solid var(--bh-border);
  padding: 48px 0 40px;
}

.bh-page-hero-label {
  margin-bottom: 10px;
}

.bh-page-hero-title {
  font-family: var(--bh-font-display);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--bh-ink);
  line-height: 1.25;
}

.bh-page-hero-desc {
  font-size: 15px;
  color: var(--bh-ink-muted);
  margin-top: 8px;
  max-width: 560px;
}

/* ── 15. BLOG INDEX ───────────────────────────────────────── */

.bh-blog-index {
  padding-block: 48px;
}

.bh-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .bh-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bh-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bh-blog-card {
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bh-white);
  border: 1px solid var(--bh-border);
  transition:
    box-shadow 0.2s var(--bh-ease),
    transform 0.2s var(--bh-ease);
}

.bh-blog-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.bh-blog-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bh-bg-alt);
}

.bh-blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--bh-ease);
}

.bh-blog-card:hover .bh-blog-card-thumb img {
  transform: scale(1.04);
}

.bh-blog-card-body {
  padding: 20px;
}

.bh-blog-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bh-green);
  margin-bottom: 8px;
  display: block;
}

.bh-blog-card-title {
  font-family: var(--bh-font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--bh-ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.bh-blog-card-title a {
  transition: color 0.15s;
}

.bh-blog-card:hover .bh-blog-card-title a {
  color: var(--bh-green);
}

.bh-blog-card-excerpt {
  font-size: 13px;
  color: var(--bh-ink-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.bh-blog-card-meta {
  font-size: 12px;
  color: var(--bh-ink-muted);
}

/* ── 16. SINGLE POST ──────────────────────────────────────── */

.bh-single {
  padding-bottom: 64px;
}

.bh-single-hero-wrap {
  width: 100%;
  overflow: hidden;
  max-height: 480px;
}

.bh-single-hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.bh-single-header {
  padding-top: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--bh-border);
  margin-bottom: 40px;
}

.bh-single-category {
  margin-bottom: 12px;
}

.bh-single-title {
  font-family: var(--bh-font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  color: var(--bh-ink);
  line-height: 1.25;
  margin-bottom: 16px;
}

.bh-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--bh-ink-muted);
}

.bh-reading-time::before {
  content: "·";
  margin-right: 8px;
}

/* Content + sidebar layout */
.bh-single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .bh-single-layout {
    grid-template-columns: 1fr 300px;
  }
}

/* ── 17. PROSE ────────────────────────────────────────────── */

.bh-prose {
  font-family: var(--bh-font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--bh-ink);
}

.bh-prose h2,
.bh-prose h3,
.bh-prose h4 {
  font-family: var(--bh-font-display);
  color: var(--bh-ink);
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.bh-prose h2 {
  font-size: 24px;
}
.bh-prose h3 {
  font-size: 20px;
}
.bh-prose h4 {
  font-size: 17px;
}

.bh-prose p {
  margin-bottom: 20px;
}

.bh-prose a {
  color: var(--bh-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bh-prose a:hover {
  color: var(--bh-green-dark);
}

.bh-prose ul,
.bh-prose ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.bh-prose ul {
  list-style: disc;
}
.bh-prose ol {
  list-style: decimal;
}

.bh-prose li {
  margin-bottom: 6px;
}

.bh-prose blockquote {
  border-left: 3px solid var(--bh-green);
  margin-block: 28px;
  padding: 14px 20px;
  background-color: var(--bh-green-light);
  border-radius: 0 4px 4px 0;
  font-style: italic;
  color: var(--bh-green-dark);
}

.bh-prose img {
  border-radius: 6px;
  margin-block: 24px;
}

.bh-prose figure {
  margin-block: 24px;
}

.bh-prose figcaption {
  font-size: 13px;
  color: var(--bh-ink-muted);
  text-align: center;
  margin-top: 8px;
}

/* Post prev/next nav */
.bh-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--bh-border);
}

.bh-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--bh-border);
  border-radius: 6px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

.bh-post-nav-link:hover {
  border-color: var(--bh-green);
  background-color: var(--bh-green-light);
}

.bh-post-nav-link .label-caps {
  color: var(--bh-ink-muted);
}

.bh-post-nav-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bh-ink);
  line-height: 1.4;
}

.bh-post-nav-next {
  text-align: right;
}

/* Sidebar */
.bh-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bh-ink-muted);
  margin-bottom: 28px;
  text-decoration: none;
  transition: color 0.15s;
}

.bh-back-link:hover {
  color: var(--bh-green);
}

.bh-sidebar-section {
  margin-bottom: 32px;
}

.bh-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bh-ink);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bh-green);
  display: block;
}

.bh-sidebar-articles {
  display: flex;
  flex-direction: column;
}

.bh-sidebar-article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--bh-border);
  text-decoration: none;
}

.bh-sidebar-article:last-child {
  border-bottom: none;
}

.bh-sidebar-article-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--bh-bg-alt);
}

.bh-sidebar-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bh-sidebar-article-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--bh-ink);
  line-height: 1.4;
  transition: color 0.15s;
}

.bh-sidebar-article:hover .bh-sidebar-article-title {
  color: var(--bh-green);
}

.bh-sidebar-article-date {
  font-size: 11px;
  color: var(--bh-ink-muted);
  margin-top: 4px;
  display: block;
}

/* ── 18. GENERIC PAGE ─────────────────────────────────────── */

.bh-page-content {
  padding-block: 56px;
}

/* ── 19. 404 PAGE ─────────────────────────────────────────── */

.bh-404 {
  padding-block: 80px;
  text-align: center;
}

.bh-404-inner {
  max-width: 520px;
  margin-inline: auto;
}

.bh-error-code {
  display: block;
  margin-bottom: 16px;
}

.bh-error-title {
  font-family: var(--bh-font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--bh-ink);
  margin-bottom: 16px;
  line-height: 1.2;
}

.bh-error-message {
  font-size: 16px;
  color: var(--bh-ink-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── 20. PAGINATION ───────────────────────────────────────── */

.bh-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 48px;
  padding-bottom: 16px;
}

.bh-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding-inline: 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bh-ink-muted);
  border: 1px solid var(--bh-border);
  text-decoration: none;
  transition:
    color 0.15s,
    border-color 0.15s,
    background-color 0.15s;
}

.bh-pagination .page-numbers:hover,
.bh-pagination .page-numbers.current {
  color: var(--bh-green);
  border-color: var(--bh-green);
  background-color: var(--bh-green-light);
}

.bh-no-results {
  text-align: center;
  padding: 64px 0;
  color: var(--bh-ink-muted);
  font-size: 16px;
}

/* ── 21. REVEAL ANIMATIONS ────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.5s var(--bh-ease),
      transform 0.5s var(--bh-ease);
  }

  .reveal.active {
    opacity: 1;
    transform: none;
  }
}

/* ── 22. RESPONSIVE ───────────────────────────────────────── */

/* Mobile + tablet: collapse nav to burger */
@media (max-width: 1023px) {
  .bh-header-inner {
    gap: 16px;
  }

  .bh-header-nav {
    display: none;
  }

  .bh-header-search-btn {
    display: none;
  }

  .bh-nav-toggle {
    display: flex;
  }

  .bh-cat-section-header {
    flex-direction: column;
    gap: 8px;
  }

  .bh-cat-view-all {
    margin-top: 0;
  }
}

/* Small mobile only */
@media (max-width: 767px) {
  .bh-single-layout {
    grid-template-columns: 1fr;
  }

  .bh-post-nav {
    grid-template-columns: 1fr;
  }

  .bh-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .bh-single-hero-img {
    height: 280px;
  }
}

/* Desktop: always show desktop nav, hide burger */
@media (min-width: 1024px) {
  .bh-nav-toggle {
    display: none;
  }
}

/* JS-driven compact mode: nav overflows its container at wide viewports */
.bh-header--compact .bh-header-nav {
  display: none;
}

.bh-header--compact .bh-header-search-btn {
  display: none;
}

.bh-header--compact .bh-nav-toggle {
  display: flex;
}
