/* =====================
   Shared Blog Article Styles
   ===================== */

:root { --reading-width: 760px; }
body { background: #f8fbfe; }

/* ---- Nav ---- */
.blog-article-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e7ebf7;
  z-index: 900;
}
.blog-article-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}
.blog-nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-article-nav a {
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.blog-article-nav .btn {
  padding: 8px 16px;
  font-size: 14px;
  min-width: auto;
}

/* ---- Hero ---- */
.blog-article-hero {
  padding: 72px 0 32px;
  background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
  border-bottom: 1px solid #e7ebf7;
}
.blog-article-hero .container { max-width: var(--reading-width); }
.blog-article-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--gray);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}
.blog-article-meta .pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.blog-article-hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.blog-article-hero p {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.6;
}

/* ---- Content ---- */
.blog-article-content { padding: 32px 0 80px; }
.blog-article-content .container { max-width: var(--reading-width); }
.blog-article-content h2 { font-size: 24px; margin: 32px 0 12px; }
.blog-article-content h3 { font-size: 18px; margin: 24px 0 10px; }
.blog-article-content p {
  color: #2d2d3a;
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 16px;
}
.blog-article-content ul {
  margin: 0 0 16px 18px;
  color: #2d2d3a;
  line-height: 1.7;
}
.blog-article-content li { margin-bottom: 8px; font-size: 15px; }

/* ---- Tip Box ---- */
.tip-box {
  background: #f5f7ff;
  border: 1px solid #dfe7ff;
  border-radius: 16px;
  padding: 16px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.tip-box strong { color: var(--primary); }

/* ---- Article Figure (photo/graphic) ---- */
.blog-article-figure {
  margin: 24px 0 8px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
}
.blog-article-figure img {
  width: 100%;
  display: block;
  height: auto;
}
.fig-caption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--gray);
  background: #f8fbfe;
  border-top: 1px solid #e7ebf7;
}

/* ---- CTA Panel ---- */
.cta-panel {
  margin-top: 40px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2047f4 0%, #3d7bfd 100%);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(32, 71, 244, 0.2);
}
.cta-panel p { color: rgba(255, 255, 255, 0.9); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-panel .btn {
  box-shadow: none;
  background: white;
  color: var(--primary);
  font-weight: 800;
}
.cta-panel .btn.secondary {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* =====================
   Blog Article Graphics
   ===================== */

/* -- Pricing: Fee Breakdown Visual -- */
.blog-fee-visual {
  margin: 0 0 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f7ff 100%);
  border: 1px solid #dfe7ff;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(32, 71, 244, 0.08);
}
.bfv-eyebrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bfv-bar {
  display: flex;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
}
.bfv-keep {
  flex: 85;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bfv-fee-seg {
  flex: 15;
  background: #c7d4fe;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bfv-example {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bfv-ex-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bfv-dollar {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}
.bfv-dollar.bfv-fee-amt { color: #7c8dc7; }
.bfv-dollar.bfv-green { color: #25c17e; }
.bfv-sub {
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
}
.bfv-arrow {
  font-size: 20px;
  color: #c7d4fe;
  font-weight: 700;
  flex-shrink: 0;
}

/* -- Delegate: Handoff Flow Visual -- */
.delegate-flow-visual {
  background: linear-gradient(135deg, #f0f5ff 0%, #eef7f4 100%);
  padding: 36px 20px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.dfv-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  max-width: 160px;
}
.dfv-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.dfv-icon-2 { background: #0ea5e9; }
.dfv-icon-3 { background: #25c17e; }
.dfv-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
}
.dfv-sub {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.4;
}
.dfv-connector {
  color: #c7d4fe;
  font-size: 22px;
  margin-top: 17px;
  flex-shrink: 0;
}

/* -- Matching: Routing Flow Visual -- */
.match-flow-visual {
  background: linear-gradient(135deg, #08103c 0%, #1229a0 100%);
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-height: 180px;
}
.mfv-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
  max-width: 200px;
}
.mfv-eyebrow {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mfv-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}
.mfv-agent-row {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}
.mfv-agent-row.mfv-top {
  background: rgba(37, 193, 126, 0.18);
  border: 1px solid rgba(37, 193, 126, 0.3);
  color: #4ade80;
}
.mfv-confirmed-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 120px;
}
.mfv-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25c17e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}
.mfv-conf-label {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-align: center;
}
.mfv-timer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.mfv-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 20px;
  flex-shrink: 0;
}

/* -- Trends: Bar Chart Visual -- */
.trends-chart-visual {
  background: #08103c;
  padding: 24px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tcv-header {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tcv-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
}
.tcv-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}
.tcv-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: rgba(61, 123, 253, 0.3);
  transition: background 0.2s;
}
.tcv-bar.tcv-hi { background: #3d7bfd; }
.tcv-bar.tcv-med { background: rgba(61, 123, 253, 0.6); }
.tcv-val {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
}
.tcv-labels {
  display: flex;
  gap: 6px;
}
.tcv-label {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  padding-bottom: 12px;
}
.tcv-legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-weight: 700;
  padding: 0 0 16px;
}
.tcv-leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tcv-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(61, 123, 253, 0.3);
}
.tcv-leg-dot.hi { background: #3d7bfd; }
.tcv-leg-label { color: rgba(255, 255, 255, 0.4); }

/* =====================
   Responsive
   ===================== */
@media (min-width: 769px) {
  .blog-article-hero { padding: 120px 0 48px; }
  .blog-article-hero h1 { font-size: 44px; }
  .blog-article-content { padding: 48px 0 120px; }
  .blog-article-content h2 { font-size: 28px; }
  .blog-article-content h3 { font-size: 20px; }
  .bfv-example { flex-wrap: nowrap; }
}
