/* ==========================================================================
   blog.css — article + index styling for /blog/
   v2 — August 2026 (session #46): RE-SKINNED onto the redesign theme
   (theme.css / rx-* system). Michroma display + Geist body, brand navy + orange
   accent, square corners, yellow (#FFF92B) hover. The hero is the shared
   .rx-phero component (styled by theme.css); this file styles the breadcrumb,
   the article body, the closing CTA and the index cards.

   Loaded ONLY by pages under /blog/, AFTER style.css / shared-dc.css and BEFORE
   theme.css, so nothing else on the site links it and it never regresses another
   page. The --rx-* tokens it uses are defined in theme.css :root (loaded on every
   blog page), so they resolve regardless of stylesheet order.
   ========================================================================== */

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.cs-crumb {
  padding: 18px 0 0;
  background-color: var(--rx-navy);
  font-family: var(--rx-fmono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--rx-t-lo);
}
.cs-crumb a { color: var(--rx-t-lo); text-decoration: none; transition: color .2s var(--rx-ease); }
.cs-crumb a:hover { color: var(--rx-t-hi); }
.cs-crumb span[aria-hidden] { margin: 0 8px; }

/* ── Article shell ───────────────────────────────────────────────────────── */
.bp-article { padding: 46px 0 70px; background-color: var(--rx-navy); }
.bp-article > .container { max-width: 820px; }

.bp-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--rx-fmono); font-size: 12.5px; color: var(--rx-t-lo);
  padding-bottom: 22px; margin-bottom: 34px;
  border-bottom: 1px solid var(--rx-line);
}
.bp-meta a { color: var(--rx-t-lo); text-decoration: none; border-bottom: 1px solid var(--rx-line-2); }
.bp-meta a:hover { color: var(--rx-t-hi); border-bottom-color: var(--rx-orange); }
.bp-meta span[aria-hidden] { color: var(--rx-t-dim); }  /* decorative separator only */

/* ── Article body ────────────────────────────────────────────────────────── */
.bp-body { font-family: var(--rx-fbody); font-size: 16px; line-height: 1.8; color: var(--rx-t); }

.bp-body > p:first-of-type {
  font-size: 18px; line-height: 1.7; color: var(--rx-t-hi); font-weight: 500;
  margin-bottom: 28px;
}

.bp-body h2 {
  font-family: var(--rx-fbody); font-size: clamp(21px, 2.6vw, 28px); font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.3; color: var(--rx-t-hi);
  margin: 48px 0 16px; scroll-margin-top: 90px;
}
.bp-body h3 {
  font-family: var(--rx-fbody); font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--rx-t-hi); margin: 32px 0 12px; scroll-margin-top: 90px;
}

.bp-body p { margin-bottom: 20px; }
.bp-body strong { color: var(--rx-t-hi); font-weight: 700; }

.bp-body a { color: var(--rx-orange); text-decoration: none; border-bottom: 1px solid rgba(232,100,26,0.35); transition: border-color .2s var(--rx-ease), color .2s var(--rx-ease); }
.bp-body a:hover { color: #FFF92B; border-bottom-color: #FFF92B; }

.bp-body ul, .bp-body ol { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: bp-ol; }
.bp-body li { position: relative; padding-left: 26px; margin-bottom: 11px; }
.bp-body ul > li::before {
  content: ''; position: absolute; left: 3px; top: 10px;
  width: 7px; height: 7px; background: var(--rx-orange); transform: rotate(45deg);
}
.bp-body ol > li { counter-increment: bp-ol; }
.bp-body ol > li::before {
  content: counter(bp-ol) '.'; position: absolute; left: 0; top: 0;
  font-family: var(--rx-fmono); color: var(--rx-orange); font-weight: 700; font-size: 13px;
}

.bp-body hr { border: 0; border-top: 1px solid var(--rx-line); margin: 42px 0; }

/* ── Tables ──────────────────────────────────────────────────────────────
   Wide comparison tables are the one element in these posts that cannot shrink
   to a phone. The wrapper scrolls itself so the PAGE never scrolls sideways.
   ⚠️ Never solve table overflow with overflow-x on html/body: the navbar is
   position: sticky and that kills it. Standing rule, and it has bitten us. */
.bp-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 0 26px; border: 1px solid var(--rx-line);
  background: var(--rx-card);
}
.bp-body table { width: 100%; border-collapse: collapse; font-family: var(--rx-fbody); font-size: 14px; min-width: 480px; }
.bp-body thead th {
  text-align: left; padding: 14px 18px; white-space: nowrap;
  font-family: var(--rx-fmono); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--rx-t-lo); background: var(--rx-navy-mid);
  border-bottom: 1px solid var(--rx-line);
}
.bp-body tbody td {
  padding: 14px 18px; vertical-align: top; line-height: 1.65;
  border-bottom: 1px solid var(--rx-line); color: var(--rx-t);
}
.bp-body tbody tr:last-child td { border-bottom: none; }
.bp-body tbody td strong { color: var(--rx-t-hi); }

/* ── Closing CTA (buttons use the shared .rx-btn from theme.css) ──────────── */
.cs-demo-cta {
  padding: 72px 0 80px; text-align: center;
  background-color: var(--rx-navy-deep);
  border-top: 1px solid var(--rx-line);
}
.cs-demo-cta h2 {
  font-family: var(--rx-fdisplay); font-weight: 400; text-transform: uppercase;
  font-size: clamp(22px, 3vw, 34px); letter-spacing: 0; line-height: 1.2;
  color: var(--rx-t-hi); margin: 0 auto 14px; max-width: 24ch; text-wrap: balance;
}
.cs-demo-cta > .container > p {
  font-family: var(--rx-fbody); font-size: 16px; color: var(--rx-t);
  max-width: 600px; margin: 0 auto 30px; line-height: 1.6;
}
.cs-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cs-cta-sub { margin-top: 20px; font-family: var(--rx-fmono); font-size: 12px; color: var(--rx-t-lo); }

/* ── Blog index ──────────────────────────────────────────────────────────── */
.bp-index { padding: 46px 0 90px; background-color: var(--rx-navy); }
.bp-index-intro { font-family: var(--rx-fbody); font-size: 16px; color: var(--rx-t); line-height: 1.75; max-width: 720px; margin-bottom: 40px; }

.bp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.bp-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: transparent; border: 1px solid var(--rx-line);
  padding: 24px 24px 22px;
  transition: border-color .25s var(--rx-ease), transform .25s var(--rx-ease);
}
.bp-card:hover { border-color: var(--rx-orange); transform: translateY(-3px); }
.bp-card .cat {
  font-family: var(--rx-fmono); font-size: 10.5px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--rx-orange); margin-bottom: 12px;
}
.bp-card h2 { font-family: var(--rx-fbody); font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--rx-t-hi); margin-bottom: 10px; letter-spacing: -0.01em; }
.bp-card p { font-family: var(--rx-fbody); font-size: 13.5px; color: var(--rx-t); line-height: 1.65; margin-bottom: 16px; }
.bp-card .date { margin-top: auto; font-family: var(--rx-fmono); font-size: 11.5px; color: var(--rx-t-lo); }

.bp-empty {
  padding: 32px 30px; background: transparent; border: 1px solid var(--rx-line);
  font-family: var(--rx-fbody); font-size: 15px; color: var(--rx-t); line-height: 1.75; max-width: 720px;
}
.bp-empty a { color: var(--rx-orange); text-decoration: none; border-bottom: 1px solid rgba(232,100,26,0.35); }
.bp-empty a:hover { color: #FFF92B; border-bottom-color: #FFF92B; }

@media (max-width: 780px) {
  .bp-grid { grid-template-columns: 1fr; }
  .bp-article { padding: 34px 0 56px; }
  .bp-body { font-size: 15.5px; }
}
