/* =====================================================================
   BLOG + COMPARISON PAGES — the index grid, post byline, and the
   comparison table shared by /cadence-vs-* pages. Long-form body copy
   itself reuses .legal (see css/legal.css) rather than duplicating it.
   ===================================================================== */

/* ---------- Hero band ----------
   Full-width like the homepage sections (not the narrow .legal column) —
   a blog index is a landing surface in its own right, not a document. */
.blog-hero {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(52px, 8vw, 88px) 24px clamp(28px, 4vw, 40px);
}
.blog-hero__eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 3.6rem);
  max-width: 720px;
  margin-bottom: 16px;
}
.blog-hero p {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 560px;
}

/* ---------- Card grid ---------- */
.blog-grid-wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 24px clamp(64px, 8vw, 96px);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.03); }

.post-card__body {
  padding: 24px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  color: var(--accent-ink);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.post-card__date { font-size: .8rem; color: var(--muted); }
.post-card__title {
  font-size: 1.32rem;
  line-height: 1.3;
  color: var(--text);
  transition: color .15s var(--ease);
}
.post-card:hover .post-card__title { color: var(--accent-ink); }
.post-card__excerpt {
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.6;
  flex: 1;
}
.post-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.post-card__byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: var(--muted);
}
.post-card__mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex: none;
}
.post-card__cta {
  color: var(--accent-ink);
  font-weight: 600;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.post-card__cta svg {
  width: 14px;
  height: 14px;
  transition: transform .15s var(--ease);
}
.post-card:hover .post-card__cta svg { transform: translateX(3px); }

/* ---------- Post byline (sits where .legal__updated normally does) ---------- */
.post-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: .9rem;
}
.post-meta .dot { opacity: .5; }

/* ---------- Pull quote used inside post bodies for the one operator-voice
   observation worth setting apart from the rest of the copy ---------- */
.legal__body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-size: 1.08rem;
  font-style: italic;
}

/* ---------- Blog post body: roomier than a legal document ----------
   .legal gives correct, readable defaults for a policy page; a blog post
   earns a bigger type size, more line-height, and a visible break between
   sections so a 1200-word post doesn't read as one dense grey block. */
.post-body { font-size: 1.08rem; }
.post-body > p {
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 24px;
}
.post-body h2 {
  margin-top: 52px;
  margin-bottom: 18px;
  font-size: 1.55rem;
}
.post-body h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 12px;
  background: var(--accent);
  border-radius: 2px;
}
.post-body ul,
.post-body ol {
  font-size: 1.06rem;
  line-height: 1.85;
}
.post-body li { margin-bottom: 12px; }

/* ---------- In-post images ----------
   onerror on the <img> removes the whole <figure> — until the real asset is
   dropped in at the expected path, the slot just isn't there rather than
   showing a broken-image icon. */
.post-image {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.post-image img {
  display: block;
  width: 100%;
  height: auto;
}
.post-image figcaption {
  padding: 12px 16px;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}

/* ---------- Comparison table (cadence-vs-*) ---------- */
.compare-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  min-width: 480px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }
.compare-table thead th {
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  background: var(--surface-2);
}
.compare-table th[scope="row"] {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.compare-table td { color: var(--muted); }
.compare-table td.is-cadence { color: var(--text); }
.compare-table td.is-cadence strong { color: var(--accent-ink); }

/* ---------- Verdict / fairness callout ---------- */
.compare-note {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  color: var(--text);
  font-size: .92rem;
  line-height: 1.6;
  margin: 24px 0;
}
.compare-note strong { color: var(--accent-ink); }
