/**
 * blog1.css v3.1 - Mr. Windows Houston
 * Agency-grade blog post & index styles
 * Save to: /css/blog1.css
 *
 * Requires: Inter (sans) + Lora (serif) already loaded in <head>
 * Color system: --green #1b6f3a, --green-dark #0f4a26
 */

/* ============================================================
   0. CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bp-green:         #1b6f3a;
  --bp-green-dark:    #0f4a26;
  --bp-green-light:   #e8f5ee;
  --bp-ink:           #111111;
  --bp-ink-secondary: #444444;
  --bp-ink-muted:     #777777;
  --bp-ink-ghost:     #999999;
  --bp-surface:       #ffffff;
  --bp-surface-2:     #f8f7f4;
  --bp-surface-3:     #f2f0ec;
  --bp-border:        #e4e1d9;
  --bp-border-light:  #eeece8;
  --bp-reading-width: 680px;
  --bp-sidebar-width: 300px;
  --bp-gap:           64px;
  --bp-wrap:          1200px;
  --bp-radius:        12px;
  --bp-radius-sm:     8px;
  --bp-progress-h:    3px;
}

/* ============================================================
   1. READING PROGRESS BAR
   ============================================================ */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--bp-progress-h);
  background: var(--bp-border-light);
  z-index: 9999;
  pointer-events: none;
}
#reading-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #1b6f3a, #4ade80);
  transition: width 0.1s linear;
}

/* ============================================================
   2. LAYOUT WRAPPER
   ============================================================ */
.bp-wrap {
  max-width: var(--bp-wrap);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 640px) { .bp-wrap { padding: 0 20px; } }

/* ============================================================
   3. BREADCRUMB
   ============================================================ */
.bp-breadcrumb {
  background: var(--bp-surface-2);
  border-bottom: 1px solid var(--bp-border-light);
  padding: 13px 0;
}
.bp-breadcrumb ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 0.8125rem;
  color: var(--bp-ink-muted);
}
.bp-breadcrumb li { display: flex; align-items: center; }
.bp-breadcrumb li + li::before {
  content: '›';
  margin: 0 8px;
  color: var(--bp-border);
  font-size: 1rem;
}
.bp-breadcrumb a {
  color: var(--bp-ink-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.bp-breadcrumb a:hover { color: var(--bp-green); }
.bp-breadcrumb [aria-current="page"] {
  color: var(--bp-ink);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

/* ============================================================
   4. HERO HEADER
   ============================================================ */
.bp-hero {
  padding: 96px 0 40px;
  background: #f0eee8;
  border-bottom: 1px solid var(--bp-border);
}
.bp-hero-inner { max-width: var(--bp-wrap); }
.bp-hero-content { max-width: 780px; }

/* Meta row */
.bp-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.bp-meta-dot {
  width: 3px; height: 3px;
  background: var(--bp-border);
  border-radius: 50%;
  display: inline-block;
}
.bp-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--bp-ink-muted);
  font-family: 'Inter', sans-serif;
}

/* Category badge */
.bp-category-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bp-green-light);
  color: var(--bp-green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.15s;
}
.bp-category-badge:hover { background: #d1ebdb; }

/* H1 */
.bp-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--bp-ink);
  margin: 0 0 18px;
}

/* Deck */
.bp-hero-deck {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--bp-ink-secondary);
  margin: 0 0 28px;
  max-width: 640px;
  font-family: 'Inter', sans-serif;
}

/* Share row */
.bp-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bp-share-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--bp-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--bp-border);
  background: var(--bp-surface);
  color: var(--bp-ink-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: 'Inter', sans-serif;
}
.bp-share-btn:hover { background: var(--bp-surface-2); border-color: #ccc; color: var(--bp-ink); }
.bp-share-x:hover  { border-color: #111; color: #111; }
.bp-share-fb:hover { border-color: #1877f2; color: #1877f2; }

/* ============================================================
   5. FEATURED IMAGE
   ============================================================ */
.bp-hero-image { padding: 0 0 48px; background: var(--bp-surface); }
.bp-hero-image figure { margin: 0; }
.bp-hero-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--bp-radius);
  display: block;
}

/* ============================================================
   6. BODY: ARTICLE + SIDEBAR
   ============================================================ */
.bp-body {
  background: var(--bp-surface);
  padding-bottom: 80px;
}
.bp-body-inner {
  display: grid;
  grid-template-columns: 1fr var(--bp-sidebar-width);
  gap: var(--bp-gap);
  align-items: start;
}

/* ============================================================
   7. ARTICLE TYPOGRAPHY
   ============================================================ */
.bp-article {
  min-width: 0;
  /* Constrain prose to readable line length */
}

/* All prose content capped at reading width */
.bp-article > *:not(.bp-toc):not(.bp-price-table):not(.bp-inline-cta):not(.bp-callout):not(.bp-faq):not(.bp-author):not(.bp-bottom-share):not(.bp-updated):not(.bp-article-recent) {
  max-width: var(--bp-reading-width);
}

.bp-article h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bp-ink);
  margin: 52px 0 18px;
  padding-top: 8px;
  max-width: var(--bp-reading-width);
  scroll-margin-top: 100px;
}
.bp-article h2:first-of-type { margin-top: 8px; }

.bp-article h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bp-ink);
  margin: 32px 0 10px;
  max-width: var(--bp-reading-width);
}

.bp-article p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.85;
  color: #2d2d2d;
  margin: 0 0 24px;
  max-width: var(--bp-reading-width);
}

.bp-article ul,
.bp-article ol {
  padding-left: 20px;
  margin: 0 0 24px;
  max-width: var(--bp-reading-width);
}
.bp-article li {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2d2d2d;
  margin-bottom: 10px;
  padding-left: 4px;
}
.bp-article ul li::marker { color: var(--bp-green); }

.bp-article a {
  color: var(--bp-green);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.bp-article a:hover { color: var(--bp-green-dark); text-decoration-thickness: 2px; }

.bp-article strong { color: var(--bp-ink); font-weight: 600; }
.bp-article em { font-style: italic; }

/* ============================================================
   8. TABLE OF CONTENTS (in-article, mobile/tablet)
   ============================================================ */
.bp-toc {
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-border);
  border-left: 4px solid var(--bp-green);
  border-radius: var(--bp-radius-sm);
  margin: 8px 0 40px;
  overflow: hidden;
  max-width: var(--bp-reading-width);
}
.bp-toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bp-ink);
  text-align: left;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}
.bp-toc-toggle:hover { background: var(--bp-surface-3); }
.bp-toc-arrow {
  margin-left: auto;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.bp-toc-toggle[aria-expanded="true"] .bp-toc-arrow { transform: rotate(180deg); }

#bp-toc-list {
  margin: 0;
  padding: 0 20px 16px 20px;
  list-style: none;
  counter-reset: toc;
}
#bp-toc-list li { counter-increment: toc; }
#bp-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--bp-ink-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--bp-border-light);
  transition: color 0.15s;
}
#bp-toc-list li:last-child a { border-bottom: none; }
#bp-toc-list a:hover { color: var(--bp-green); }
.bp-toc-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bp-green);
  background: var(--bp-green-light);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Desktop: hide in-article TOC (sidebar handles it) */
@media (min-width: 1024px) { .bp-toc { display: none; } }

/* ============================================================
   9. PRICE TABLE
   ============================================================ */
.bp-price-table {
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);
  overflow: hidden;
  margin: 28px 0 32px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}
.bp-price-row {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 0;
  border-bottom: 1px solid var(--bp-border-light);
}
.bp-price-row:last-child { border-bottom: none; }
.bp-price-row span {
  padding: 13px 16px;
  line-height: 1.5;
  color: var(--bp-ink-secondary);
  border-right: 1px solid var(--bp-border-light);
}
.bp-price-row span:last-child { border-right: none; }
.bp-price-header {
  background: var(--bp-surface-2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bp-ink-muted) !important;
}
.bp-price-header span { color: var(--bp-ink-muted) !important; }
.bp-price-highlight {
  background: var(--bp-green-light);
}
.bp-price-highlight span { color: var(--bp-ink); }

/* 4-column tables (comparison posts) */
.bp-table-4col .bp-price-row {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

/* Standard HTML tables generated by the editor */
.bp-article table,
.bp-data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 28px 0 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);
  overflow: hidden;
  background: #fff;
}
.bp-article table th,
.bp-article table td,
.bp-data-table th,
.bp-data-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--bp-border-light);
  border-bottom: 1px solid var(--bp-border-light);
}
.bp-article table th:last-child,
.bp-article table td:last-child,
.bp-data-table th:last-child,
.bp-data-table td:last-child {
  border-right: 0;
}
.bp-article table tr:last-child td,
.bp-data-table tr:last-child td {
  border-bottom: 0;
}
.bp-article table th,
.bp-data-table th {
  background: var(--bp-surface-2);
  color: var(--bp-ink);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bp-article table td,
.bp-data-table td {
  color: var(--bp-ink-secondary);
}
@media (max-width: 768px) {
  .bp-article table,
  .bp-data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bp-article table th,
  .bp-article table td,
  .bp-data-table th,
  .bp-data-table td {
    min-width: 150px;
  }
}
@media (max-width: 768px) {
  .bp-table-4col { overflow: visible; }
  .bp-table-4col .bp-price-header {
    display: none; /* Hide standard headers on mobile */
  }
  .bp-title-override { display: none; }
  .bp-price-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius-sm);
    overflow: hidden;
    background: #fff;
  }
  .bp-price-row span {
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--bp-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }
  .bp-price-row span:last-child {
    border-bottom: none;
  }
  .bp-price-row span::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--bp-ink-muted);
    text-align: left;
    margin-right: 16px;
  }
  .bp-price-row span:first-child {
    background: var(--bp-surface-2);
    font-weight: 700;
    color: var(--bp-ink);
    justify-content: flex-start;
  }
  .bp-price-row span:first-child::before {
    display: none; /* Main row label doesn't need data-label */
  }
}

/* ============================================================
   10. INLINE CTA
   ============================================================ */
.bp-inline-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 20px;
  align-items: center;
  background: var(--bp-ink);
  color: #fff;
  border-radius: var(--bp-radius);
  padding: 24px 28px;
  margin: 40px 0;
}
.bp-inline-cta-icon {
  font-size: 2rem;
  line-height: 1;
  grid-row: 1;
}
.bp-inline-cta-text {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bp-inline-cta-text strong {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}
.bp-inline-cta-text span {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.bp-inline-cta-actions {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bp-inline-cta .btn {
  white-space: nowrap;
  font-size: 0.875rem;
}
.bp-inline-cta .btn-outline {
  border-color: rgba(255,255,255,0.4) !important;
  color: #fff !important;
  background: transparent !important;
}
.bp-inline-cta .btn-outline:hover {
  border-color: #fff !important;
  color: #fff !important;
  background: rgba(255,255,255,0.1) !important;
}
@media (max-width: 768px) {
  .bp-inline-cta {
    grid-template-columns: 1fr;
  }
  .bp-inline-cta-icon { display: none; }
  .bp-inline-cta-text { grid-column: 1; }
  .bp-inline-cta-actions {
    grid-column: 1;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ============================================================
   11. CALLOUT BOXES
   ============================================================ */
.bp-callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--bp-radius-sm);
  margin: 28px 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: var(--bp-reading-width);
}
.bp-callout-warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #78350f;
}
.bp-callout-info {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  color: #1e3a5f;
}
.bp-callout-success {
  background: var(--bp-green-light);
  border-left: 4px solid var(--bp-green);
  color: var(--bp-green-dark);
}

/* ============================================================
   12. FAQ SECTION
   ============================================================ */
.bp-faq { margin: 56px 0 0; max-width: var(--bp-reading-width); }
.bp-faq > h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--bp-ink);
}
.bp-faq-list { display: flex; flex-direction: column; gap: 0; }
.bp-faq-item {
  border-bottom: 1px solid var(--bp-border-light);
}
.bp-faq-item:first-child { border-top: 1px solid var(--bp-border-light); }
.bp-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--bp-ink);
  font-family: 'Inter', sans-serif;
  transition: color 0.15s;
}
.bp-faq-q:hover { color: var(--bp-green); }
.bp-faq-icon {
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.25s ease;
  color: var(--bp-ink-muted);
}
.bp-faq-item.open .bp-faq-icon { transform: rotate(180deg); }
.bp-faq-item.open .bp-faq-q { color: var(--bp-green); }
.bp-faq-a {
  padding: 0 0 18px;
}
.bp-faq-a p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--bp-ink-secondary);
  margin: 0;
}

/* ============================================================
   13. AUTHOR BLOCK
   ============================================================ */
.bp-author {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: var(--bp-surface-2);
  border-radius: var(--bp-radius);
  margin: 56px 0 16px;
  flex-wrap: wrap;
}
.bp-author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bp-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.bp-author-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bp-author-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bp-ink);
}
.bp-author-bio {
  font-size: 0.85rem;
  color: var(--bp-ink-muted);
  line-height: 1.5;
}
.bp-author-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.bp-author-trust span {
  font-size: 0.825rem;
  color: var(--bp-green-dark);
  background: var(--bp-green-light);
  border: 1px solid rgba(27, 111, 58, 0.15);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* ============================================================
   14. BOTTOM SHARE + UPDATED
   ============================================================ */
.bp-bottom-share {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--bp-border-light);
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--bp-ink-muted);
  font-weight: 500;
}
.bp-article .bp-updated, 
p.bp-updated {
  font-size: 0.68rem;
  color: var(--bp-ink-ghost);
  margin: 16px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--bp-border-light);
  letter-spacing: 0.01em;
}

/* ============================================================
   15. SIDEBAR
   ============================================================ */
.bp-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Sidebar sticky TOC */
.bp-sidebar-toc {
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);
  padding: 20px;
}
.bp-sidebar-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-ink-muted);
  margin: 0 0 14px;
}
.bp-sidebar-toc ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: stoc;
}
.bp-sidebar-toc-link {
  display: block;
  padding: 7px 10px;
  font-size: 0.8375rem;
  color: var(--bp-ink-secondary);
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s;
}
.bp-sidebar-toc-link:hover,
.bp-sidebar-toc-link.active {
  background: var(--bp-green-light);
  color: var(--bp-green-dark);
  font-weight: 500;
}
.bp-sidebar-toc-link.active::before {
  content: '▸';
  margin-right: 6px;
  font-size: 0.7rem;
  color: var(--bp-green);
}

/* Sidebar CTA */
.bp-sidebar-cta {
  background: var(--bp-ink);
  color: #fff;
  border-radius: var(--bp-radius);
  padding: 24px;
}
.bp-sidebar-cta-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.bp-sidebar-cta h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.35;
}
.bp-sidebar-cta-list {
  list-style: none;
  padding: 0; margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bp-sidebar-cta-list li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.bp-sidebar-cta-list li::before {
  content: '✓';
  color: #4ade80;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.btn-full {
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
}
.bp-sidebar-cta .btn-outline.bp-sidebar-phone {
  border-color: rgba(255,255,255,0.3) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent !important;
}
.bp-sidebar-cta .btn-outline.bp-sidebar-phone:hover {
  border-color: #fff !important;
  color: #fff !important;
  background: rgba(255,255,255,0.08) !important;
}

/* Recent posts */
.bp-sidebar-recent {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);
  padding: 20px;
}
.bp-sidebar-recent h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-ink-muted);
  margin: 0 0 16px;
}
.bp-sidebar-recent ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.bp-recent-post { border-bottom: 1px solid var(--bp-border-light); }
.bp-recent-post:last-child { border-bottom: none; }
.bp-recent-post-link {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  align-items: flex-start;
  transition: opacity 0.15s;
}
.bp-recent-post-link:hover { opacity: 0.8; }
.bp-recent-thumb {
  flex-shrink: 0;
  width: 72px; height: 54px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bp-surface-3);
}
.bp-recent-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.bp-recent-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bp-recent-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bp-green);
}
.bp-recent-title {
  font-size: 0.8375rem;
  font-weight: 600;
  color: var(--bp-ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-recent-date {
  font-size: 0.75rem;
  color: var(--bp-ink-ghost);
  margin-top: 2px;
}

/* Trust signals sidebar */
.bp-sidebar-trust {
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bp-trust-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bp-trust-icon { font-size: 1.1rem; line-height: 1; margin-top: 1px; }
.bp-trust-row div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bp-trust-row strong {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bp-ink);
}
.bp-trust-row span {
  font-size: 0.78rem;
  color: var(--bp-ink-muted);
}

/* ============================================================
/* ============================================================
   X. BUTTONS (Base Styles)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 13px 24px;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  line-height: 1.2;
  border: 2px solid transparent;
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 10px;
}
.btn-full {
  width: 100%;
}
.btn-green {
  background: var(--bp-green);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(27, 111, 58, 0.2);
}
.btn-green:hover {
  background: var(--bp-green-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 111, 58, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--bp-ink) !important;
  border-color: var(--bp-border);
}
.btn-outline:hover {
  border-color: var(--bp-ink);
  background: var(--bp-surface-2);
}

/* ============================================================
   16. FINAL CTA BANNER
   ============================================================ */
.bp-final-cta {
  background: linear-gradient(135deg, #0f1f15 0%, #1b3a26 100%);
  padding: 80px 0;
  margin-bottom: 0 !important;
}
.bp-final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.bp-final-cta-text h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
}
.bp-final-cta-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 500px;
  line-height: 1.6;
}
.bp-final-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.bp-final-cta .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff !important;
  background: transparent;
}
.bp-final-cta .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.bp-final-cta .btn-green {
  background: #ffffff;
  color: #0f1f15 !important;
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.bp-final-cta .btn-green:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Fix White Space Bug below CTA */
body.blog-index-page main,
body.blog-post-page main,
#main-content,
.bi-grid-section {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body.blog-index-page .bp-body { padding-bottom: 0; }
body.blog-post-page .bp-body { padding-bottom: 0; }
body.blog-index-page footer,
body.blog-post-page footer,
.site-footer {
  margin-top: 0 !important;
}

/* ============================================================
   17. RESPONSIVE - MOBILE FIRST
   ============================================================ */
@media (max-width: 1140px) {
  :root {
    --bp-sidebar-width: 270px;
    --bp-gap: 48px;
  }
}

@media (max-width: 960px) {
  .bp-body-inner {
    grid-template-columns: 1fr;
  }
  .bp-sidebar {
    position: static;
    order: 1; /* sidebar goes AFTER article on mobile for better UX */
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bp-sidebar-toc { display: none; } /* TOC is in-article on mobile */
  .bp-sidebar-cta { display: none; } /* Hide on mobile to prevent double CTA fatigue */
  .bp-sidebar-recent { grid-column: 1 / -1; }
  .bp-final-cta-inner { flex-direction: column; gap: 28px; }
  .bp-final-cta-actions { width: 100%; }
}

@media (max-width: 640px) {
  .bp-hero { padding: 80px 0 28px; }
  .bp-hero h1 { font-size: 1.75rem; }
  .bp-hero-deck { font-size: 1rem; }
  .bp-hero-image img { border-radius: 8px; max-height: 240px; }
  .bp-article h2 { font-size: 1.35rem; margin-top: 40px; }
  .bp-article p, .bp-article li { font-size: 1rem; line-height: 1.78; }
  .bp-sidebar { grid-template-columns: 1fr; }
  .bp-author { flex-direction: column; }
  .bp-author-trust { gap: 8px; }
  .bp-price-row { grid-template-columns: 1.5fr 1fr; }
  .bp-price-row span:last-child { display: none; }
  .bp-price-header span:last-child { display: none; }
  .bp-table-4col .bp-price-row span:last-child { display: block; }
  .bp-table-4col .bp-price-header span:last-child { display: block; }
  .bp-final-cta { padding: 48px 0; }
  .bp-final-cta-actions { flex-direction: column; }
  .bp-final-cta-actions .btn { text-align: center; }
  .bp-breadcrumb [aria-current="page"] { max-width: 160px; }
}

/* ============================================================
   18. BLOG INDEX PAGE
   ============================================================ */
.blog-index-page .bi-header {
  background: var(--bp-ink);
  padding: 72px 0 56px;
}
.blog-index-page .bi-header h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.15;
}
.blog-index-page .bi-header p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.68);
  max-width: 520px;
  line-height: 1.65;
  margin: 0;
}
.bi-grid-section { padding: 64px 0; background: var(--bp-surface-2); }
.bi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Featured hero card */
.bi-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: var(--bp-radius);
  overflow: hidden;
  border: 1px solid var(--bp-border);
  transition: box-shadow 0.25s;
}
.bi-card-featured:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.10); }
.bi-card-featured .bi-card-img {
  overflow: hidden;
  min-height: 320px;
}
.bi-card-featured .bi-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bi-card-featured:hover .bi-card-img img { transform: scale(1.03); }
.bi-card-featured .bi-card-body {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bi-card-featured .bi-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Standard card */
.bi-card {
  background: #fff;
  border-radius: var(--bp-radius-sm);
  overflow: hidden;
  border: 1px solid var(--bp-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.bi-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.bi-card .bi-card-img {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.bi-card .bi-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.bi-card:hover .bi-card-img img { transform: scale(1.04); }
.bi-card .bi-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Shared card body elements */
.bi-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.bi-card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bp-green);
  background: var(--bp-green-light);
  padding: 3px 8px;
  border-radius: 20px;
}
.bi-card-date {
  font-size: 0.78rem;
  color: var(--bp-ink-ghost);
}
.bi-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bp-ink);
  margin: 0 0 10px;
  text-decoration: none;
  display: block;
  transition: color 0.15s;
}
.bi-card-title:hover { color: var(--bp-green); }
.bi-card-featured .bi-card-title { color: var(--bp-ink); }
.bi-card-featured .bi-card-title:hover { color: var(--bp-green); }
.bi-card-excerpt {
  font-size: 0.875rem;
  color: var(--bp-ink-secondary);
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bi-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bp-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap 0.15s;
}
.bi-card-link:hover { gap: 8px; }
.bi-card-link::after { content: '→'; }
.bi-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400e;
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: 20px;
}

/* Blog index responsive */
@media (max-width: 960px) {
  .bi-grid { grid-template-columns: 1fr 1fr; }
  .bi-card-featured { grid-template-columns: 1fr; }
  .bi-card-featured .bi-card-img { min-height: 240px; aspect-ratio: 16/7; }
  .bi-card-featured .bi-card-body { padding: 28px; }
  .bi-card-featured .bi-card-title { font-size: 1.35rem; }
}
@media (max-width: 640px) {
  .bi-grid { grid-template-columns: 1fr; }
  .bi-card-featured { grid-column: 1; }
  .bi-grid-section { padding: 40px 0; }
}

/* ============================================================
   19. RECENT POSTS (bottom of blog posts)
   ============================================================ */
.bp-recent {
  background: var(--bp-surface-2);
  padding: 56px 0 64px;
}
.bp-recent h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bp-ink);
  margin: 0 0 28px;
}
.bp-recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bp-recent-item {
  flex: 1 1 calc(33.333% - 1.25rem);
  min-width: 260px;
}
.bp-recent-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  padding: 12px;
  background: var(--bp-surface);
  border: 1px solid var(--bp-border-light);
  border-radius: var(--bp-radius-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.bp-recent-link:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.bp-recent-link img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bp-surface-3);
}
.bp-recent-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.bp-recent-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bp-green);
}
.bp-recent-title {
  font-size: 0.8375rem;
  font-weight: 600;
  color: var(--bp-ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bp-recent-date {
  font-size: 0.75rem;
  color: var(--bp-ink-ghost);
  margin-top: 2px;
}
@media (max-width: 768px) {
  .bp-recent-item { flex: 1 1 100%; }
}

/* ============================================================
   20. BLOG INDEX HERO — sticky header offset
   ============================================================ */
.blog-index-page .bi-header {
  padding-top: 96px;
}
@media (max-width: 640px) {
  .blog-index-page .bi-header {
    padding-top: 80px;
    padding-bottom: 40px;
  }
}

/* FAQ section scroll target */
.bp-faq {
  scroll-margin-top: 100px;
}

/* ============================================================
   21. IN-ARTICLE RECENT POSTS
   ============================================================ */
.bp-article-recent {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
.bp-article-recent-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bp-article-recent-link {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  padding: 0;
  background: var(--bp-surface);
  border: 1px solid var(--bp-border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.bp-article-recent-link:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-3px);
  border-color: #d8d6d0;
}
.bp-article-recent-link img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
  background: var(--bp-surface-2);
  border-bottom: 1px solid var(--bp-border-light);
}
.bp-article-recent-link div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  flex: 1;
}
.bp-article-recent-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bp-green);
}
.bp-article-recent-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bp-ink);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .bp-article-recent-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .bp-article-recent-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   22. BLOG INDEX v4 — MAGAZINE LAYOUT
   ============================================================ */

/* --- Hero deck (subheading with inline category links) --- */
.bi-header-deck {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  line-height: 1.65;
  margin: 0 0 22px;
}
.bi-header-deck a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.35);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}
.bi-header-deck a:hover { text-decoration-color: #fff; }

/* --- Trust strip (E-E-A-T signals under hero deck) --- */
.bi-trust {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.62);
}
.bi-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bi-trust li + li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  margin-right: 16px;
  align-self: center;
}
.bi-trust strong {
  color: #fff;
  font-weight: 700;
}
.bi-trust time { color: rgba(255,255,255,0.85); }

/* --- Sticky topic-filter chips --- */
/* Sits below the fixed #main-nav (z-index 9999, ~80px desktop / 56px mobile). */
.bi-chips {
  position: sticky;
  top: 80px;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--bp-border);
  padding: 14px 0;
}
.bi-chips-inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bi-chips-inner::-webkit-scrollbar { display: none; }
.bi-chip {
  flex: 0 0 auto;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bp-ink-secondary);
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-border);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
a.bi-chip { text-decoration: none; }
.bi-chip:hover {
  background: var(--bp-green-light);
  border-color: var(--bp-green-light);
  color: var(--bp-green-dark);
}
.bi-chip:active { transform: translateY(1px); }
.bi-chip.is-active {
  background: var(--bp-ink);
  border-color: var(--bp-ink);
  color: #fff;
}
.bi-chip:focus-visible {
  outline: 2px solid var(--bp-green);
  outline-offset: 2px;
}

/* --- Featured (magazine) story --- */
.bi-featured-section {
  background: var(--bp-surface);
  padding: 56px 0 32px;
}
.bi-featured-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bp-green);
  margin: 0 0 18px;
}
.bi-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bp-green);
  box-shadow: 0 0 0 3px var(--bp-green-light);
}
.bi-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius);
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.bi-featured:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.10); }
.bi-featured-img {
  display: block;
  overflow: hidden;
  min-height: 380px;
  background: var(--bp-surface-3);
}
.bi-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.bi-featured:hover .bi-featured-img img { transform: scale(1.03); }
.bi-featured-body {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.bi-featured-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0;
}
.bi-featured-title a {
  color: var(--bp-ink);
  text-decoration: none;
  transition: color 0.15s;
}
.bi-featured-title a:hover { color: var(--bp-green); }
.bi-featured-excerpt {
  font-size: 1rem;
  color: var(--bp-ink-secondary);
  line-height: 1.7;
  margin: 0;
}
.bi-card-link-lg {
  font-size: 0.95rem;
  font-weight: 700;
}

/* --- Read-time pill on cards --- */
.bi-card-read {
  font-size: 0.75rem;
  color: var(--bp-ink-ghost);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bi-card-read::before {
  content: '·';
  color: var(--bp-border);
  margin-right: 2px;
}

/* --- Topic sections (Pricing, Comparisons, etc.) --- */
.bi-sections {
  background: var(--bp-surface-2);
  padding: 64px 0 48px;
}
.bi-section {
  margin: 0 0 56px;
  scroll-margin-top: 96px;
}
.bi-section:last-child { margin-bottom: 0; }
.bi-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bp-border);
}
.bi-section-head h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--bp-ink);
  letter-spacing: -0.01em;
  margin: 0;
}
.bi-section-all {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bp-green);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}
.bi-section-all:hover { color: var(--bp-green-dark); }

/* Override default bi-grid-section padding/background since we wrap with bi-sections */
.bi-section .bi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- Cost calculator promo card --- */
.bi-tool {
  padding: 24px 0 56px;
  background: var(--bp-surface-2);
}
.bi-tool-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, #0f4a26 0%, #1b6f3a 100%);
  color: #fff;
  border-radius: var(--bp-radius);
  padding: 36px 44px;
  box-shadow: 0 12px 36px rgba(15, 74, 38, 0.18);
}
.bi-tool-icon {
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
}
.bi-tool-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.78);
  margin-bottom: 6px;
}
.bi-tool-body h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.bi-tool-body p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  margin: 0;
  max-width: 540px;
}
/* The calculator card sits on a dark green gradient, so its CTA must be a
   white-bg button with dark-green text. The site-wide `.btn-green` rule
   forces `color: #ffffff !important`, so we have to match that specificity. */
.bi-tool-actions .btn {
  background: #fff !important;
  color: var(--bp-green-dark) !important;
  border-color: #fff !important;
}
.bi-tool-actions .btn:hover {
  background: var(--bp-green-light) !important;
  color: var(--bp-green-dark) !important;
  border-color: var(--bp-green-light) !important;
}

/* --- Lead-capture block --- */
.bi-lead {
  background: var(--bp-surface);
  padding: 64px 0;
  border-top: 1px solid var(--bp-border-light);
  border-bottom: 1px solid var(--bp-border-light);
}
.bi-lead-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.bi-lead-text h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--bp-ink);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.bi-lead-text p {
  font-size: 1.05rem;
  color: var(--bp-ink-secondary);
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 580px;
}
.bi-lead-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.bi-lead-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--bp-ink-secondary);
  line-height: 1.5;
}
.bi-lead-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 18px;
  height: 18px;
  background: var(--bp-green-light);
  border-radius: 50%;
}
.bi-lead-list li::after {
  content: '';
  position: absolute;
  left: 5px; top: 11px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--bp-green);
  border-bottom: 2px solid var(--bp-green);
  transform: rotate(-45deg);
}
.bi-lead-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.bi-lead-actions .btn { justify-content: center; gap: 8px; }

/* --- Quick Answers / FAQ accordion --- */
.bi-faq {
  background: var(--bp-surface-2);
  padding: 64px 0;
}
.bi-faq-head {
  text-align: center;
  margin: 0 0 36px;
}
.bi-faq-head h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--bp-ink);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.bi-faq-head p {
  font-size: 1rem;
  color: var(--bp-ink-muted);
  margin: 0;
}
.bi-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.bi-faq-item {
  background: #fff;
  border: 1px solid var(--bp-border);
  border-radius: var(--bp-radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bi-faq-item[open] {
  border-color: var(--bp-green-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.bi-faq-q {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bp-ink);
  line-height: 1.4;
  transition: color 0.15s;
}
.bi-faq-q::-webkit-details-marker { display: none; }
.bi-faq-q:hover { color: var(--bp-green); }
.bi-faq-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  position: relative;
}
.bi-faq-icon::before,
.bi-faq-icon::after {
  content: '';
  position: absolute;
  background: var(--bp-ink-muted);
  transition: transform 0.2s;
}
.bi-faq-icon::before {
  top: 6px; left: 0; width: 14px; height: 2px;
}
.bi-faq-icon::after {
  top: 0; left: 6px; width: 2px; height: 14px;
}
.bi-faq-item[open] .bi-faq-icon::after { transform: scaleY(0); }
.bi-faq-a {
  padding: 0 22px 22px;
}
.bi-faq-a p {
  font-size: 0.95rem;
  color: var(--bp-ink-secondary);
  line-height: 1.7;
  margin: 0 0 14px;
}

/* --- Service-area suburb strip --- */
.bi-suburbs {
  background: var(--bp-surface);
  padding: 56px 0;
  text-align: center;
  border-top: 1px solid var(--bp-border-light);
}
.bi-suburbs-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bp-ink);
  margin: 0 0 6px;
}
.bi-suburbs-sub {
  font-size: 0.95rem;
  color: var(--bp-ink-muted);
  margin: 0 0 20px;
}
.bi-suburbs-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
  max-width: 900px;
}
.bi-suburbs-list li {
  display: inline-flex;
}
.bi-suburbs-list a {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bp-ink-secondary);
  background: var(--bp-surface-2);
  border: 1px solid var(--bp-border);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bi-suburbs-list a:hover {
  background: var(--bp-green);
  border-color: var(--bp-green);
  color: #fff;
}

/* ============================================================
   23. BLOG INDEX v4 — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bi-featured { grid-template-columns: 1fr; }
  .bi-featured-img { min-height: 280px; aspect-ratio: 16/9; }
  .bi-featured-body { padding: 32px 28px; }
  .bi-lead-inner { grid-template-columns: 1fr; gap: 28px; }
  .bi-tool-card { grid-template-columns: auto 1fr; gap: 20px; padding: 28px 32px; }
  .bi-tool-actions { grid-column: 1 / -1; justify-self: stretch; }
  .bi-tool-actions .btn { width: 100%; text-align: center; justify-content: center; }
}
@media (max-width: 960px) {
  .bi-section .bi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .bi-section-head h2 { font-size: 1.4rem; }
  .bi-tool-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 24px;
  }
  .bi-tool-icon { margin: 0 auto; }
  .bi-tool-body p { margin: 0 auto; }
  .bi-faq-q { padding: 16px 18px; font-size: 0.95rem; }
  .bi-faq-a { padding: 0 18px 18px; }
}
@media (max-width: 1023px) {
  .bi-chips { top: 56px; }
}
@media (max-width: 640px) {
  .bi-header-deck { font-size: 1rem; }
  .bi-trust { font-size: 0.8125rem; gap: 8px 16px; }
  .bi-trust li + li::before { margin-right: 12px; }
  .bi-chips { padding: 10px 0; }
  .bi-chip { font-size: 0.8125rem; padding: 8px 14px; }
  .bi-featured-section { padding: 40px 0 24px; }
  .bi-featured-body { padding: 26px 22px; gap: 12px; }
  .bi-sections { padding: 40px 0 32px; }
  .bi-section { margin-bottom: 40px; }
  .bi-section .bi-grid { grid-template-columns: 1fr; gap: 20px; }
  .bi-lead { padding: 44px 0; }
  .bi-lead-actions .btn { width: 100%; }
  .bi-faq { padding: 44px 0; }
  .bi-tool { padding: 12px 0 40px; }
  .bi-suburbs { padding: 40px 0; }
}

/* Reduce motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  .bi-featured-img img,
  .bi-card .bi-card-img img { transition: none; }
  .bi-featured:hover .bi-featured-img img,
  .bi-card:hover .bi-card-img img { transform: none; }
  .bi-chip { transition: none; }
}

/* ============================================================
   BLOG POST: BYLINE + AUTHOR ROLE
   Small additions for the Mike Davis Person-author treatment
   ============================================================ */
.bp-meta-author {
  color: var(--bp-ink-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.bp-meta-author:hover { color: var(--bp-green); }

.bp-author-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.bp-author-name a:hover { color: var(--bp-green); }

.bp-author-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bp-green);
  letter-spacing: 0.01em;
  margin: 2px 0 4px;
  text-transform: none;
}

/* Card title wrapper: <h3> element wraps the .bi-card-title link.
   Reset default heading margin/sizing so the visual look is unchanged
   while the document outline gains a proper heading. */
.bi-card-title-h3 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 1rem;
  font-weight: inherit;
  line-height: inherit;
}

/* ============================================================
   24. CATEGORY ARCHIVE — additions
   ============================================================ */

/* Category eyebrow above H1 in hero */
.bi-cat-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  margin: 0 0 12px;
}

/* Empty-state for categories with no posts */
.bi-empty {
  text-align: center;
  background: #fff;
  border: 1px dashed var(--bp-border);
  border-radius: var(--bp-radius);
  padding: 56px 24px;
}
.bi-empty h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--bp-ink);
  margin: 0 0 8px;
}
.bi-empty p {
  color: var(--bp-ink-secondary);
  margin: 0 0 16px;
}
.bi-empty p:last-child { margin: 0; }

/* Spacing tweak when category page renders only the grid (no featured) */
.bi-cat-grid-section { padding-top: 56px; }
.bi-featured-section + .bi-cat-grid-section { padding-top: 32px; }

/* Grid count adaptation: 1 post = constrained single, 2 posts = 2-col, 3+ = 3-col */
.bi-section .bi-grid.bi-grid-fill-1 {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.bi-section .bi-grid.bi-grid-fill-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 960px) {
  .bi-section .bi-grid.bi-grid-fill-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bi-section .bi-grid.bi-grid-fill-1,
  .bi-section .bi-grid.bi-grid-fill-2 { grid-template-columns: 1fr; }
}
