/* ═══════════════════════════════════════════════════════════
   BLOG — Local Answers
   Shared styles for /blog/index.html and /blog/{slug}/index.html
   Dark navy + cyan accent system, article column ~720px.
   ═══════════════════════════════════════════════════════════ */

.blog-main {
  --navy:  #05050f;
  --cyan:  #22d3ee;
  --text:  #f1f5f9;
  --muted: rgba(148, 163, 184, 0.9);
  --card:  rgba(255, 255, 255, 0.025);
  --line:  rgba(34, 211, 238, 0.16);

  display: block;
  background: var(--navy);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.65;
  padding-top: 72px; /* clear fixed nav */
}

.blog-wrap   { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.article-wrap { max-width: 720px;  margin: 0 auto; padding: 0 24px; }

.blog-main a { color: var(--cyan); text-decoration: none; }

/* ── Shared eyebrow ─────────────────────────────── */
.blog-eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ═══════════ INDEX PAGE ═══════════ */

.blog-hero {
  padding: 96px 0 56px;
  background:
    radial-gradient(ellipse at 70% -10%, rgba(34, 211, 238, 0.10), transparent 55%),
    radial-gradient(ellipse at 10% 20%, rgba(124, 92, 252, 0.07), transparent 60%);
}
.blog-hero h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  max-width: 720px;
}
.blog-hero-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 640px;
  margin: 18px 0 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 24px 0 96px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s, background 0.25s;
}
.blog-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-3px);
}
.blog-card-thumb {
  width: 100%;
  height: auto;          /* let aspect-ratio win over the height attribute */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card-meta { font-size: 12px; color: rgba(148,163,184,.6); display: flex; gap: 10px; align-items: center; }
.blog-card-cat  { color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.blog-card-title {
  font-size: 19px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.3; color: #fff; margin: 0;
}
.blog-card-title a { color: #fff; transition: color .18s; }
.blog-card-title a:hover { color: var(--cyan); }
.blog-card-excerpt { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.blog-card-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--cyan);
  transition: gap .18s;
}
.blog-card-more:hover { gap: 9px; }

/* ═══════════ POST PAGE ═══════════ */

.post-header { padding: 88px 0 8px; }
.post-header h1 {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 18px;
}
.post-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 13.5px; color: rgba(148,163,184,.65);
  margin-bottom: 32px;
}
.post-byline .dot { color: rgba(255,255,255,.18); }

/* Featured image — also used as index card thumb */
.post-featured {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  margin-bottom: 40px;
}

/* ── Article body typography ───────────────────── */
.post-body { padding-bottom: 24px; }
.post-body p {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 22px;
}
.post-body h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  margin: 44px 0 16px;
}
.post-body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 34px 0 12px;
}
.post-body strong { color: #e2e8f0; font-weight: 700; }
.post-body ul, .post-body ol { margin: 0 0 22px 24px; color: var(--muted); }
.post-body li { margin-bottom: 10px; font-size: 16.5px; line-height: 1.75; }
.post-body a { border-bottom: 1px solid rgba(34,211,238,.35); transition: border-color .18s; }
.post-body a:hover { border-color: var(--cyan); }

/* ── In-body comparison table ──────────────────── */
.post-table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: var(--card);
}
.post-table {
  width: 100%;
  min-width: 560px;          /* forces horizontal scroll on narrow screens */
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}
.post-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(34, 211, 238, 0.04);
}
.post-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  padding: 13px 18px;
  vertical-align: top;
}
.post-table tbody td {
  color: var(--muted);
  padding: 13px 18px;
  vertical-align: top;
}
.post-table tbody tr + tr th,
.post-table tbody tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── In-body figure component ──────────────────── */
.post-figure { margin: 36px 0; }
.post-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
.post-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.55);
  text-align: center;
}

/* ── Related links ─────────────────────────────── */
.post-related {
  margin: 48px 0;
  padding: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}
.post-related-title {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.45);
  margin: 0 0 14px;
}
.post-related-links { display: flex; flex-direction: column; gap: 10px; }
.post-related-links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--cyan);
}
.post-related-links a:hover { text-decoration: underline; }

/* ── End-of-post CTA ───────────────────────────── */
.post-cta {
  margin: 24px 0 88px;
  padding: 48px 32px;
  text-align: center;
  background: linear-gradient(135deg, #0b0b1f, #0a2233);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.post-cta h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 12px;
}
.post-cta p { color: var(--muted); max-width: 480px; margin: 0 auto 26px; font-size: 15.5px; }
.post-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 100%);
  color: #05050f;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 10px;
  transition: opacity .2s, transform .18s;
}
.post-cta-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 760px) {
  .blog-hero   { padding: 72px 0 40px; }
  .post-header { padding: 64px 0 8px; }
  .blog-grid   { padding-bottom: 72px; }
  .post-cta    { padding: 40px 22px; margin-bottom: 64px; }
}
