/* DeedFlex Blog */

.blog-hero {
  padding: 64px 24px 32px;
  background: linear-gradient(180deg, #f7faf8 0%, #fff 100%);
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.blog-hero-inner { max-width: 980px; margin: 0 auto; text-align: center; }
.blog-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(45, 212, 122, 0.1); color: #047857;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: #0f172a;
}
.blog-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text2, #475569);
  max-width: 720px; margin: 0 auto 28px;
  line-height: 1.55;
}
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.blog-filters .chip {
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border, #e5e7eb);
  color: var(--text2, #475569);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.blog-filters .chip:hover {
  border-color: rgba(45, 212, 122, 0.5);
  color: #047857;
}
.blog-filters .chip.is-active {
  background: rgba(45, 212, 122, 0.12);
  border-color: rgba(45, 212, 122, 0.45);
  color: #047857;
}

/* List */
.blog-list { padding: 40px 24px 60px; max-width: 1100px; margin: 0 auto; }
.blog-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}
.blog-card { display: flex; }
.blog-card-link {
  display: flex; flex-direction: column;
  width: 100%;
  padding: 22px 22px 24px;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: all 0.18s ease;
  position: relative;
}
.blog-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 122, 0.4);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.08);
}
.blog-card-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; font-size: 12px; color: var(--text3, #94a3b8);
  margin-bottom: 12px;
}
.blog-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.cat {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.cat.top { background: rgba(45, 212, 122, 0.12); color: #047857; }
.cat.guide { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.cat.cal { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.cat.mkt { background: rgba(168, 85, 247, 0.12); color: #6d28d9; }
.state-pill {
  display: inline-block; padding: 3px 8px;
  background: #f1f5f9; color: #334155;
  border-radius: 4px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em;
}
.blog-card-title {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 21px; line-height: 1.2;
  margin: 0 0 8px;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.blog-card-sub {
  font-size: 13px; color: var(--text3, #94a3b8);
  margin: 0 0 12px;
  font-style: italic;
}
.blog-card-excerpt {
  font-size: 15px; line-height: 1.55;
  color: var(--text2, #475569);
  margin: 0 0 18px;
  flex: 1;
}
.blog-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent, #059669);
}
.blog-card-link:hover .blog-card-cta i { transform: translateX(2px); }
.blog-card-cta i { transition: transform 0.15s ease; }

/* Pager */
.blog-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 40px;
}
.pager-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px;
  background: #fff; border: 1px solid var(--border, #e5e7eb);
  color: var(--text2, #475569);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.pager-btn:hover {
  border-color: rgba(45, 212, 122, 0.5);
  color: #047857;
}
.pager-status { font-size: 14px; color: var(--text3, #94a3b8); }

.blog-empty {
  text-align: center; padding: 64px 24px;
  color: var(--text2, #475569);
}
.blog-empty i { font-size: 38px; color: var(--accent, #059669); margin-bottom: 16px; }
.blog-empty h2 {
  font-family: 'Source Serif 4', serif;
  font-size: 24px; margin: 0 0 8px;
  color: #0f172a;
}
.blog-empty p { font-size: 16px; margin: 0; }

/* CTA band between list and footer */
.blog-cta-band {
  padding: 56px 24px;
  background: linear-gradient(180deg, #f7faf8 0%, #ecfdf5 100%);
  border-top: 1px solid var(--border, #e5e7eb);
  border-bottom: 1px solid var(--border, #e5e7eb);
  text-align: center;
}
.blog-cta-inner { max-width: 720px; margin: 0 auto; }
.blog-cta-band h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
  color: #0f172a;
}
.blog-cta-band p {
  font-size: 17px; color: var(--text2, #475569);
  margin: 0 0 24px; line-height: 1.5;
}

/* ═══════════ ARTICLE PAGE ═══════════ */

/* Sub-nav strip — sits between top nav and article */
.blog-subnav {
  background: #fff;
  border-bottom: 1px solid var(--border, #e5e7eb);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.92);
}
.blog-subnav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 11px 24px;
  display: flex; align-items: center; gap: 18px;
  font-size: 14px;
}
.blog-subnav-back {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text2, #475569);
  font-weight: 600; text-decoration: none;
  padding: 6px 10px; border-radius: 6px;
  transition: all 0.15s;
  white-space: nowrap;
}
.blog-subnav-back:hover { background: rgba(45,212,122,0.08); color: #047857; }
.blog-subnav-tabs {
  display: flex; gap: 2px; flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-subnav-tabs::-webkit-scrollbar { display: none; }
.blog-subnav-tabs a {
  padding: 6px 12px; border-radius: 6px;
  color: var(--text3, #94a3b8);
  font-weight: 600; text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s;
}
.blog-subnav-tabs a:hover {
  background: rgba(45,212,122,0.08);
  color: #047857;
}
.blog-subnav-share {
  display: flex; gap: 4px;
}
.blog-subnav-share a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--text3, #94a3b8);
  text-decoration: none;
  transition: all 0.15s;
}
.blog-subnav-share a:hover {
  background: rgba(45,212,122,0.08);
  color: #047857;
}

/* 3-column layout — desktop */
.blog-layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}

.blog-rail { font-size: 14px; }
.blog-rail-left { position: sticky; top: 70px; }
.blog-rail-right { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 16px; }

.rail-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 16px 16px 18px;
  margin-bottom: 16px;
}
.rail-back {
  background: linear-gradient(135deg, rgba(45,212,122,0.06), rgba(45,212,122,0.02));
  border-color: rgba(45,212,122,0.25);
  padding: 14px 16px;
}
.rail-back-link {
  display: flex; align-items: center; gap: 8px;
  color: #047857;
  font-weight: 700; text-decoration: none;
  font-size: 14px;
}
.rail-back-link:hover { color: #065f46; }
.rail-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text3, #94a3b8);
  margin-bottom: 10px;
}
.rail-eyebrow-tight { margin-top: 4px; }
.rail-state-link {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: #ecfdf5;
  border: 1px solid rgba(45,212,122,0.25);
  border-radius: 8px;
  color: #047857; font-weight: 600;
  text-decoration: none; font-size: 13px;
  transition: all 0.15s;
}
.rail-state-link:hover {
  background: #d1fae5;
  transform: translateX(2px);
}
.rail-divider {
  height: 1px;
  background: var(--border, #e5e7eb);
  margin: 14px 0 12px;
}
.rail-list {
  list-style: none; padding: 0; margin: 0;
}
.rail-list li {
  border-bottom: 1px solid rgba(229,231,235,0.5);
}
.rail-list li:last-child { border-bottom: none; }
.rail-list a {
  display: flex; flex-direction: column;
  padding: 10px 0;
  color: var(--text2, #475569);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.15s;
}
.rail-list a:hover { color: #047857; }
.rail-list-title {
  font-size: 13.5px; font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.rail-list-meta {
  font-size: 11px;
  color: var(--text3, #94a3b8);
  margin-top: 3px;
  font-weight: 500;
}
.rail-list-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 12px;
  color: var(--accent, #059669);
  font-size: 12.5px; font-weight: 700;
  text-decoration: none;
}
.rail-list-more i { transition: transform 0.15s; }
.rail-list-more:hover i { transform: translateX(2px); }

/* RIGHT-RAIL SIDEBAR ADS — our own conversion tiles */
.rail-ad {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  padding: 18px 18px 20px;
  position: relative;
  transition: all 0.15s;
}
.rail-ad:hover { border-color: rgba(45,212,122,0.4); }
.rail-ad-label {
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent, #059669);
  margin-bottom: 8px;
}
.rail-ad-title {
  font-family: 'Source Serif 4', serif;
  font-size: 17px; font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.rail-ad-pitch {
  font-size: 13.5px; line-height: 1.5;
  color: var(--text2, #475569);
  margin: 0 0 14px;
}
.rail-ad-meta {
  font-size: 12.5px;
  color: var(--text3, #94a3b8);
  margin: 0 0 4px;
}
.rail-ad-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--accent, #059669); color: #fff;
  border-radius: 8px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
}
.rail-ad-cta:hover { background: #047857; transform: translateY(-1px); }
.rail-ad-cta-soft {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent, #059669);
  font-weight: 700; font-size: 13.5px;
  text-decoration: none;
}
.rail-ad-cta-soft i { transition: transform 0.15s; }
.rail-ad-cta-soft:hover i { transform: translateX(3px); }

/* Ad-1: state-specific deal teaser */
.rail-ad-deal {
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 50%);
  border-color: rgba(45,212,122,0.25);
}
.rail-ad-score {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 8px;
}
.rail-ad-score .score-num {
  font-family: 'Source Serif 4', serif;
  font-size: 38px; font-weight: 800;
  color: var(--accent, #059669);
  line-height: 1;
}
.rail-ad-score .score-out {
  font-size: 14px; color: var(--text3, #94a3b8);
  font-weight: 600;
}

/* Ad-2: persona card */
.rail-ad-persona-emoji {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

/* Ad-3: coverage stats */
.rail-ad-coverage {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.rail-ad-coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.rail-ad-coverage-num {
  font-family: 'Source Serif 4', serif;
  font-size: 26px; font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.rail-ad-coverage-label {
  font-size: 12px;
  color: var(--text3, #94a3b8);
  font-weight: 600;
  align-self: end;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Ad-4: pricing snapshot */
.rail-ad-pricing {
  background: #0f172a;
  color: #fff;
  border-color: #1e293b;
}
.rail-ad-pricing-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rail-ad-pricing-row:last-of-type { border-bottom: none; margin-bottom: 12px; }
.rail-ad-pricing-tier {
  font-size: 13.5px; font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.rail-ad-pricing-amt {
  font-family: 'Source Serif 4', serif;
  font-size: 20px; font-weight: 700;
  color: #fff;
}
.rail-ad-pricing-amt span {
  font-size: 12px; color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.rail-ad-pricing .rail-ad-cta {
  background: var(--accent, #34d399);
  color: #0f172a;
}
.rail-ad-pricing .rail-ad-cta:hover { background: #6ee7b7; color: #0f172a; }

/* CENTER article (overrides earlier max-width when used in 3-col layout) */
.blog-layout .blog-article {
  max-width: none; padding: 0;
  margin: 0;
}

/* ARTICLE PAGE (legacy single-column fallback — kept in case other pages use it) */
.blog-article-page { padding: 0; }
.blog-article {
  max-width: 760px; margin: 0 auto;
  padding: 40px 24px 60px;
}
.blog-crumb {
  font-size: 13px; color: var(--text3, #94a3b8);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.blog-crumb a { color: var(--text2, #475569); text-decoration: none; font-weight: 600; }
.blog-crumb a:hover { color: var(--accent, #059669); }
.blog-article-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border, #e5e7eb); }
.blog-article-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--text3, #94a3b8);
  margin-bottom: 18px;
}
.blog-article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }
.blog-article-head h1 {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #0f172a;
}
.blog-article-sub {
  font-size: 18px; color: var(--text2, #475569);
  margin: 0;
  font-style: italic;
}

/* Body typography */
.blog-article-body {
  font-size: 18px; line-height: 1.7;
  color: #1e293b;
}
.blog-article-body h2 {
  font-family: 'Source Serif 4', serif;
  font-weight: 700;
  font-size: 28px; line-height: 1.2;
  margin: 42px 0 14px;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.blog-article-body h3 {
  font-family: 'Source Serif 4', serif;
  font-weight: 600;
  font-size: 22px; line-height: 1.25;
  margin: 32px 0 10px;
  color: #0f172a;
}
.blog-article-body p { margin: 0 0 18px; }
.blog-article-body ul {
  margin: 0 0 22px; padding-left: 24px;
}
.blog-article-body li { margin: 0 0 8px; }
.blog-article-body strong { color: #0f172a; font-weight: 700; }
.blog-article-body a {
  color: var(--accent, #059669);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(45, 212, 122, 0.4);
}
.blog-article-body a:hover {
  color: #047857;
  border-bottom-color: #047857;
}
.blog-article-body aside.callout {
  background: rgba(45, 212, 122, 0.06);
  border-left: 3px solid var(--accent, #059669);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 22px 0;
  font-size: 15px;
  color: #047857;
}

.blog-article-cta {
  margin: 48px 0 32px;
  padding: 32px 30px 36px;
  background: linear-gradient(180deg, #f7faf8 0%, #ecfdf5 100%);
  border: 1px solid rgba(45, 212, 122, 0.28);
  border-radius: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-article-cta-glow {
  box-shadow: 0 24px 60px -28px rgba(45, 212, 122, 0.32);
}
.blog-article-cta .cta-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #047857;
  margin-bottom: 10px;
}
.blog-article-cta h3 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  margin: 0 0 12px;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.blog-article-cta p {
  font-size: 16px; line-height: 1.55;
  color: var(--text2, #475569);
  margin: 0 0 20px;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}
.blog-article-cta .cta-row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 16px;
}
.blog-article-cta .cta-trust {
  display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
  font-size: 12.5px; font-weight: 600;
  color: var(--text2, #475569);
}
.blog-article-cta .cta-trust span {
  display: inline-flex; align-items: center; gap: 5px;
}
.blog-article-cta .cta-trust i {
  color: var(--accent, #059669);
  font-size: 11px;
}

/* Related */
.blog-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border, #e5e7eb); }
.blog-related h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 22px; margin: 0 0 18px;
  color: #0f172a;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.related-card {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: all 0.15s ease;
}
.related-card:hover {
  border-color: rgba(45, 212, 122, 0.4);
  transform: translateY(-1px);
}
.related-meta {
  display: flex; gap: 8px; font-size: 12px; color: var(--text3, #94a3b8);
  margin-bottom: 8px;
}
.related-card h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 16px; line-height: 1.25;
  margin: 0 0 6px;
  color: #0f172a;
}
.related-card p {
  font-size: 13px; line-height: 1.45;
  color: var(--text2, #475569);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Drop-cap on first paragraph (NYT-style) */
.blog-article-body.has-dropcap > p:first-of-type::first-letter {
  font-family: 'Source Serif 4', serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 0.9;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--accent, #059669);
}

/* Extra category badge colors (county, risk, process, strategy, beginners) */
.cat.county    { background: rgba(20, 184, 166, 0.12); color: #0f766e; }
.cat.risk      { background: rgba(239, 68, 68, 0.12);  color: #b91c1c; }
.cat.process   { background: rgba(99, 102, 241, 0.12); color: #4338ca; }
.cat.strategy  { background: rgba(234, 88, 12, 0.12);  color: #c2410c; }
.cat.beginners { background: rgba(217, 70, 239, 0.10); color: #a21caf; }

/* Mobile-only sticky bottom CTA */
.blog-mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border, #e5e7eb);
  padding: 10px 16px;
  z-index: 100;
}
.blog-mobile-cta-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: var(--accent, #059669);
  color: #fff;
  border-radius: 10px;
  font-weight: 700; font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(45,212,122,0.32);
}

/* Responsive — tablet collapses to 2 cols, mobile to 1 col */
@media (max-width: 1180px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }
  .blog-rail-left { display: none; }
}

@media (max-width: 880px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 18px 100px;
  }
  .blog-rail-right {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
  }
  .blog-mobile-cta { display: block; }
  .blog-subnav-tabs a:nth-child(n+4) { display: none; }
}

@media (max-width: 720px) {
  .blog-hero { padding: 40px 18px 24px; }
  .blog-list { padding: 24px 18px 40px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-article-body { font-size: 16px; line-height: 1.7; }
  .blog-article-body h2 { font-size: 24px; }
  .blog-article-body h3 { font-size: 19px; }
  .blog-article-body.has-dropcap > p:first-of-type::first-letter {
    font-size: 52px;
  }
  .blog-article-cta { padding: 24px 20px 26px; }
}
