/* ============================================================
   BigFoldr Theme 2.0 — "House of Psalm" editorial palette + fonts
   Fraunces (serif headings) + Hanken Grotesk (body)
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Raw palette (House of Psalm inspired) */
  --navy:        #20306B;
  --navy-dark:   #16224F;
  --brown:       #382A22;
  --brown-dark:  #2A1F19;
  --cream:       #ECE7DA;
  --cream-card:  #FBF9F2;
  --butter:      #F2E6A6;
  --butter-soft: #FAF3CB;
  --butter-deep: #E3D27E;
  --peri:        #C3C9F4;
  --peri-light:  #E9EBF8;

  /* Theme tokens mapped onto the palette */
  --primary:        var(--navy);
  --primary-dark:   var(--navy-dark);
  --primary-light:  var(--peri-light);
  --primary-mid:    var(--peri);
  --accent:         var(--butter);
  --accent-dark:    var(--butter-deep);
  --text:           #382A22;
  --text-muted:     #6E5D50;
  --text-faint:     #9A897B;
  --border:         #DCD4C4;
  --border-strong:  #C8BDA8;
  --bg:             #ECE7DA;
  --surface:        #F3EEE2;
  --surface-dark:   #2E2018;

  --font-sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --max-w:        1160px;
  --max-w-narrow: 880px;
  --max-w-read:   720px;
  --pad:      48px;
  --pad-mob:  20px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-full: 999px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
em { font-style: italic; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn-solid {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  border: none; padding: 11px 22px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 500;
  transition: background 0.15s ease; line-height: 1;
}
.btn-solid:hover { background: var(--primary-dark); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--primary);
  border: 1px solid var(--border-strong); padding: 10px 22px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 500;
  transition: border-color 0.15s, color 0.15s, background 0.15s; line-height: 1;
}
.btn-outline:hover { border-color: var(--primary); background: var(--peri-light); color: var(--primary); }

/* ---------- Generic section scaffolding ---------- */
.section { padding: 72px var(--pad); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { max-width: var(--max-w-narrow); margin: 0 auto 40px; text-align: center; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-serif); font-size: clamp(28px, 4vw, 38px);
  font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; color: var(--text);
}
.section-header h2 em { color: var(--primary); }
.section-header p {
  font-size: 16px; color: var(--text-muted); line-height: 1.6;
  margin-top: 14px; max-width: 620px; margin-left: auto; margin-right: auto;
}

.compare-bg  { background: var(--bg); }
.steps-bg    { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cards-bg    { background: var(--bg); }
.articles-bg { background: var(--surface); border-top: 1px solid var(--border); }
.seo-bg      { background: var(--bg); border-top: 1px solid var(--border); }

/* ---------- Nav ---------- */
.site-nav { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 16px var(--pad); display: flex; align-items: center; gap: 28px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon { width: 30px; height: 30px; background: var(--primary); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--butter); flex-shrink: 0; }
.nav-wordmark span { font-family: var(--font-serif); font-size: 21px; font-weight: 500; color: var(--text); letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { font-size: 13px; padding: 9px 18px; background: var(--brown); }
.nav-cta:hover { background: var(--brown-dark); }
.nav-mobile-btn { display: none; background: transparent; border: none; flex-direction: column; gap: 4px; padding: 6px; }
.nav-mobile-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-links.open { display: flex; }

/* ---------- Hero ---------- */
.bf-hero { background: var(--peri); border-bottom: 1px solid var(--peri); padding: 104px var(--pad) 88px; text-align: center; }
.bf-hero-inner { max-width: 820px; margin: 0 auto; }
.bf-hero-eyebrow { font-size: 13px; color: rgba(32, 48, 107, 0.7); margin-bottom: 24px; letter-spacing: 0.02em; }
.bf-hero-headline { font-family: var(--font-serif); font-size: clamp(34px, 6vw, 62px); font-weight: 400; line-height: 1.04; letter-spacing: -0.005em; color: var(--primary); margin-bottom: 26px; max-width: 760px; margin-left: auto; margin-right: auto; }
.bf-hero-headline em { color: var(--primary); }
.bf-hero-sub { font-size: 17px; color: rgba(32, 48, 107, 0.78); line-height: 1.6; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.bf-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bf-hero-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--brown); color: #fff; padding: 13px 26px; border-radius: var(--r-full); font-size: 14px; font-weight: 500; transition: background 0.15s ease; }
.bf-hero-cta:hover { background: var(--brown-dark); color: #fff; }
.bf-hero-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--primary); border: 1px solid var(--border-strong); padding: 13px 26px; border-radius: var(--r-full); font-size: 14px; font-weight: 500; transition: border-color 0.15s, background 0.15s; }
.bf-hero-ghost:hover { border-color: var(--primary); background: var(--peri-light); }
.bf-hero-trust { margin-top: 24px; font-size: 12px; color: rgba(32, 48, 107, 0.55); }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--cream-card); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table thead th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.compare-table tbody td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); vertical-align: middle; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--surface); }
.firm-cell { display: flex; align-items: center; gap: 12px; }
.firm-avatar { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--navy); color: var(--butter); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 14px; flex-shrink: 0; }
.firm-name { font-weight: 600; font-size: 15px; color: var(--text); }
.type-pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: var(--r-full); letter-spacing: 0.02em; }
.type-a { background: var(--peri-light); color: var(--navy); }
.type-b { background: var(--butter-soft); color: #8A6D1E; }
.type-c { background: #E7E0F3; color: #5B3F8F; }
.type-d { background: #E0EBE4; color: #2F6B47; }
.visit-btn { display: inline-flex; align-items: center; white-space: nowrap; background: var(--brown); color: #fff; font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: var(--r-full); transition: background 0.15s; }
.visit-btn:hover { background: var(--brown-dark); color: #fff; }

/* ---------- How-we-test steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.step { background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 24px; }
.step-num { font-family: var(--font-serif); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.step h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 10px; line-height: 1.2; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Posts grid (Latest reviews) ---------- */
.bf-posts-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; max-width: none; text-align: left; }
.bf-posts-header h2 { font-family: var(--font-serif); font-size: 34px; font-weight: 400; letter-spacing: -0.005em; color: var(--text); }
.bf-posts-header h2 em { color: var(--primary); }
.bf-posts-view-all { font-size: 13px; color: var(--primary); font-weight: 500; }
.bf-posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.bf-card { display: block; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--cream-card); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.bf-card:hover { border-color: var(--primary-mid); transform: translateY(-3px); }
.bf-card-link { display: block; color: inherit; }
.bf-card-thumb { aspect-ratio: 16 / 9; background: var(--surface); overflow: hidden; }
.bf-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bf-card-thumb-placeholder { width: 100%; height: 100%; }
.bf-card:nth-child(3n+1) .bf-card-thumb-placeholder { background: linear-gradient(135deg, var(--peri), var(--butter-soft)); }
.bf-card:nth-child(3n+2) .bf-card-thumb-placeholder { background: linear-gradient(135deg, var(--butter-soft), var(--cream)); }
.bf-card:nth-child(3n)   .bf-card-thumb-placeholder { background: linear-gradient(135deg, var(--navy), var(--peri)); }
.bf-card-body { padding: 18px 18px 22px; }
.bf-card-tag { font-size: 11px; font-weight: 600; color: var(--primary); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.bf-card-title { font-family: var(--font-serif); font-size: 20px; font-weight: 400; line-height: 1.25; color: var(--text); margin-bottom: 12px; letter-spacing: 0; }
.bf-card-meta { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text-muted); }
.read-link { color: var(--primary); font-weight: 500; }

/* ---------- Guides article list ---------- */
.article-list { max-width: var(--max-w-narrow); margin: 0 auto; border-top: 1px solid var(--border); }
.article-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--border); transition: padding-left 0.15s, background 0.15s; }
.article-row:hover { padding-left: 14px; background: var(--cream-card); }
.article-title { font-family: var(--font-serif); font-size: 19px; font-weight: 400; color: var(--text); line-height: 1.3; }
.article-arrow { font-size: 13px; font-weight: 500; color: var(--primary); white-space: nowrap; }
.article-empty { text-align: center; color: var(--text-muted); padding: 30px 0; }
.articles-cta { text-align: center; margin-top: 36px; }

/* ---------- Newsletter band ---------- */
.bf-newsletter { background: var(--primary); padding: 80px var(--pad); text-align: center; color: #fff; }
.bf-newsletter-inner { max-width: 580px; margin: 0 auto; }
.bf-newsletter-headline { font-family: var(--font-serif); font-size: 36px; font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; margin-bottom: 12px; color: var(--butter); }
.bf-newsletter-headline em { color: var(--peri); }
.bf-newsletter-sub { font-size: 15px; color: var(--peri); margin-bottom: 26px; }
.bf-newsletter-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.bf-newsletter-input { flex: 1; background: var(--cream-card); border: none; border-radius: var(--r-full); padding: 13px 18px; font-size: 14px; color: var(--text); font-family: inherit; }
.bf-newsletter-input::placeholder { color: var(--text-faint); }
.bf-newsletter-btn { background: var(--butter); color: var(--brown); border: none; border-radius: var(--r-full); padding: 13px 24px; font-size: 14px; font-weight: 600; transition: background 0.15s; }
.bf-newsletter-btn:hover { background: var(--butter-deep); }
.bf-newsletter-fine { margin-top: 16px; font-size: 11px; color: var(--peri); }

/* ---------- SEO block ---------- */
.seo-inner { max-width: var(--max-w-read); margin: 0 auto; }
.seo-inner h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; color: var(--text); margin-bottom: 18px; line-height: 1.15; }
.seo-inner p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-dark); color: #C9BBAA; padding: 64px var(--pad) 28px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-logo { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.footer-logo-icon { width: 28px; height: 28px; background: var(--butter); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--brown); }
.footer-wordmark span { font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--cream); letter-spacing: 0.01em; }
.footer-desc { font-size: 13px; color: #A8998A; line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--cream); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: #A8998A; margin-bottom: 9px; transition: color 0.12s; }
.footer-col a:hover { color: var(--butter); }
.footer-bottom { border-top: 1px solid #463528; padding-top: 22px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-disclaimer { font-size: 11px; color: #8C7D6E; line-height: 1.6; max-width: 720px; }
.footer-disclaimer strong { color: #A8998A; font-weight: 600; }
.footer-copy { font-size: 11px; color: #8C7D6E; white-space: nowrap; }

/* ============================================================
   POST / ARTICLE PAGE
   ============================================================ */
.post-header { background: var(--peri); border-bottom: 1px solid var(--peri); padding: 64px var(--pad) 52px; }
.post-header-inner { max-width: var(--max-w-read); margin: 0 auto; text-align: center; }
.breadcrumb { font-size: 12px; color: rgba(32, 48, 107, 0.6); letter-spacing: 0.04em; margin-bottom: 20px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.breadcrumb a { color: rgba(32, 48, 107, 0.75); transition: color 0.12s; }
.breadcrumb a:hover { color: var(--primary); }
.post-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.post-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--primary); letter-spacing: 0.1em; text-transform: uppercase; background: var(--peri-light); padding: 5px 12px; border-radius: var(--r-full); }
.post-title { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 52px); font-weight: 400; line-height: 1.06; letter-spacing: -0.005em; color: var(--primary); margin-bottom: 22px; }
.post-title em { color: var(--primary); }
.post-meta { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 13px; color: rgba(32, 48, 107, 0.75); }
.post-meta-item strong { font-weight: 600; color: var(--primary); }

/* Feature image */
.post-feature { max-width: var(--max-w); margin: -28px auto 0; padding: 0 var(--pad); }
.post-feature-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--border); background: linear-gradient(135deg, var(--navy), var(--peri)); }
.post-feature-caption { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 10px; }

/* Body layout: article + sticky sidebar */
.post-layout { max-width: var(--max-w); margin: 0 auto; padding: 56px var(--pad) 72px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.post-content { max-width: var(--max-w-read); }

/* Ghost-generated content typography */
.post-content h2 { font-family: var(--font-serif); font-size: 30px; font-weight: 400; line-height: 1.15; color: var(--text); margin: 44px 0 16px; scroll-margin-top: 90px; }
.post-content h2 em { color: var(--primary); }
.post-content h3 { font-family: var(--font-serif); font-size: 23px; font-weight: 400; color: var(--text); margin: 32px 0 12px; }
.post-content h4 { font-family: var(--font-serif); font-size: 19px; font-weight: 500; color: var(--text); margin: 26px 0 10px; }
.post-content p { font-size: 17px; line-height: 1.75; color: #4A3B30; margin-bottom: 20px; }
.post-content a { color: var(--primary); border-bottom: 1px solid var(--primary-mid); transition: border-color 0.12s; }
.post-content a:hover { border-bottom-color: var(--primary); }
.post-content ul, .post-content ol { margin: 0 0 22px; padding-left: 4px; }
.post-content ul li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 17px; line-height: 1.65; color: #4A3B30; list-style: none; }
.post-content ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--butter-deep); }
.post-content ol { list-style: decimal; padding-left: 24px; }
.post-content ol li { margin-bottom: 12px; font-size: 17px; line-height: 1.65; color: #4A3B30; }
.post-content blockquote { font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1.35; color: var(--primary); border-left: 3px solid var(--butter-deep); padding: 6px 0 6px 24px; margin: 32px 0; }
.post-content img { border-radius: var(--r-md); margin: 28px 0; }
.post-content figure { margin: 28px 0; }
.post-content figcaption { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 8px; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.post-content pre { background: var(--surface-dark); color: #ECE7DA; padding: 18px 20px; border-radius: var(--r-md); overflow-x: auto; margin: 24px 0; font-size: 14px; }
.post-content code { font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 0.9em; }
.post-content :not(pre) > code { background: var(--peri-light); color: var(--navy); padding: 2px 6px; border-radius: 4px; }

/* Koenig editor image widths (wide / full) */
.post-content .kg-width-wide,
.post-content .kg-width-full { margin: 32px 0; }
.post-content .kg-width-wide { width: 100%; max-width: none; }
.post-content .kg-width-full { width: 100%; max-width: none; }
.post-content .kg-width-wide img,
.post-content .kg-width-full img { width: 100%; height: auto; margin: 0; border-radius: var(--r-md); }
.post-content .kg-width-full figcaption,
.post-content .kg-width-wide figcaption { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 8px; }

/* Verdict box (usable in editor as an HTML card) */
.verdict-box { background: var(--cream-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 28px; margin: 36px 0; }
.verdict-box h4 { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.verdict-score { display: inline-flex; align-items: baseline; gap: 4px; margin: 8px 0 12px; }
.verdict-score .num { font-family: var(--font-serif); font-size: 40px; color: var(--primary); line-height: 1; }
.verdict-score .den { font-size: 16px; color: var(--text-faint); }
.verdict-box p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Post footer */
.post-footer { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 28px; }
.post-tags-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tags-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.post-tag-link { font-size: 13px; color: var(--primary); background: var(--peri-light); padding: 5px 13px; border-radius: var(--r-full); transition: background 0.12s; }
.post-tag-link:hover { background: var(--peri); }

/* Prev / Next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav-item { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; background: var(--cream-card); transition: border-color 0.15s; }
.post-nav-item:hover { border-color: var(--primary-mid); }
.post-nav-next { text-align: right; }
.post-nav-label { font-size: 12px; color: var(--text-faint); font-weight: 600; letter-spacing: 0.04em; }
.post-nav-title { font-family: var(--font-serif); font-size: 16px; color: var(--text); line-height: 1.3; }

/* Related posts */
.related-posts { margin-top: 56px; }
.related-posts h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 400; color: var(--text); margin-bottom: 22px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-card { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--cream-card); transition: border-color 0.15s, transform 0.15s; }
.related-card:hover { border-color: var(--primary-mid); transform: translateY(-3px); }
.related-thumb { aspect-ratio: 16/9; background: var(--surface); overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-thumb-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; font-family: var(--font-serif); font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--peri)); }
.related-body { padding: 16px 16px 18px; }
.related-body h4 { font-family: var(--font-serif); font-size: 17px; font-weight: 400; color: var(--text); line-height: 1.3; margin-bottom: 10px; }
.related-body span { font-size: 13px; color: var(--primary); font-weight: 500; }

/* Sidebar */
.post-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 24px; }
.toc-widget { background: transparent; }
.toc-widget .widget-header { font-size: 11px; font-weight: 600; color: var(--text-faint); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.toc-list a { display: block; font-size: 14px; color: var(--text-muted); padding: 5px 0 5px 14px; border-left: 2px solid var(--border); transition: color 0.12s, border-color 0.12s; }
.toc-list a:hover, .toc-list a.active { color: var(--primary); border-left-color: var(--primary); }

.top-pick { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 24px 22px; }
.top-pick-header { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--butter); margin-bottom: 16px; }
.top-pick-header .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--butter); }
.top-pick-firm { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.top-pick-avatar { width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--butter); color: var(--brown); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 16px; flex-shrink: 0; }
.top-pick-name { font-family: var(--font-serif); font-size: 20px; line-height: 1.1; color: #fff; }
.top-pick-sub { font-size: 13px; color: var(--peri); line-height: 1.5; margin-top: 3px; }
.top-pick-cta { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--butter); color: var(--brown); font-weight: 600; font-size: 14px; padding: 12px 16px; border-radius: var(--r-full); transition: background 0.15s; }
.top-pick-cta:hover { background: var(--butter-deep); }
.top-pick-disclaimer { font-size: 10px; color: var(--peri); margin-top: 12px; text-align: center; opacity: 0.85; }
.top-pick .verdict-score { margin: 0 0 16px; }
.top-pick .verdict-score .num { color: var(--butter); }
.top-pick .verdict-score .den { color: var(--peri); }

/* ============================================================
   PAGE (static)
   ============================================================ */
.page-layout { padding: 56px var(--pad) 72px; }
.page-content { max-width: var(--max-w-read); margin: 0 auto; }

/* ============================================================
   ARCHIVE (tag) + AUTHOR
   ============================================================ */
.archive-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 72px var(--pad) 56px; }
.archive-header-inner { max-width: var(--max-w-narrow); margin: 0 auto; text-align: center; }
.archive-header h1 { font-family: var(--font-serif); font-size: clamp(32px, 5vw, 48px); font-weight: 400; line-height: 1.08; color: var(--text); }
.archive-desc { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-top: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }

.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

/* Archive firm cards */
.firm-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--cream-card); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
.firm-card:hover { border-color: var(--primary-mid); transform: translateY(-3px); }
.firm-card-link { display: block; color: inherit; }
.firm-card-thumb { aspect-ratio: 16/9; background: var(--surface); overflow: hidden; }
.firm-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.firm-card-thumb-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-family: var(--font-serif); font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--navy), var(--peri)); }
.firm-card-body { padding: 18px 18px 22px; }
.firm-card-body h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 400; line-height: 1.25; color: var(--text); margin-bottom: 12px; }
.firm-card-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.firm-pill { font-size: 11px; font-weight: 600; color: var(--primary); background: var(--peri-light); padding: 3px 10px; border-radius: var(--r-full); letter-spacing: 0.02em; }

/* Author header */
.author-header .archive-header-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.author-avatar-wrap { width: 80px; height: 80px; }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--butter-deep); }
.author-info { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.author-info h1 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 40px); font-weight: 400; color: var(--text); }
.author-bio { font-size: 15px; color: var(--text-muted); line-height: 1.6; max-width: 520px; }
.author-meta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--text-faint); }
.author-meta-item { color: var(--text-muted); }
.author-website { color: var(--primary); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 44px; }
.pagination-info { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-page { min-height: 56vh; display: flex; align-items: center; justify-content: center; padding: 80px var(--pad); }
.error-inner { text-align: center; max-width: 520px; }
.error-inner h1 { font-family: var(--font-serif); font-size: clamp(30px, 5vw, 46px); font-weight: 400; color: var(--text); margin: 12px 0 14px; }
.error-inner p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-bottom: 26px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .post-layout { grid-template-columns: 1fr; gap: 40px; }
  .post-sidebar { position: static; flex-direction: column-reverse; }
  .toc-widget { display: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  /* On mobile (no sidebar), let full-width images go edge-to-edge */
  .post-content .kg-width-full { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
  .post-content .kg-width-full img { border-radius: 0; }
}
@media (max-width: 900px) {
  :root { --pad: var(--pad-mob); }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: 8px var(--pad-mob) 16px; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-mobile-btn { display: flex; order: 3; }
  .nav-cta { margin-left: auto; }
  .bf-posts-grid, .cards-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .post-nav { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bf-hero { padding: 72px var(--pad-mob) 56px; }
  .post-header { padding: 48px var(--pad-mob) 40px; }
  .bf-newsletter-form { flex-direction: column; }
  .bf-posts-grid { gap: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
}
