/* Migration pair pages.
   Layered on top of style.css + blog/blog.css — this file only adds what the
   generated pages need that an article doesn't: coverage badges, the hero stat
   row, and tables wide enough for a five-column mapping. */

/* ── Hero stat row ── */
.migrate-hero .stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.migrate-hero .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px 13px;
  min-width: 132px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-md);
}
.migrate-hero .stat-n {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.1;
  color: #c7d2fe;
}
.migrate-hero .stat-l {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--color-text-light-muted);
}

/* ── The answer paragraph.
   First thing on the page, and the block an answer engine is most likely to
   lift, so it carries the whole claim in one self-contained passage. ── */
.post-body .answer-block {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #1e293b;
  background: #f8f9ff;
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 22px 26px;
  margin: 0 0 40px;
}

/* ── Inline code ── */
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 5px;
  padding: 1.5px 5px;
  color: #3730a3;
  word-break: break-word;
}

/* ── Ordered lists (blog.css only styles ul) ── */
.post-body ol {
  margin: 0 0 26px;
  padding: 0;
  counter-reset: step;
  list-style: none;
}
.post-body ol > li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  counter-increment: step;
}
.post-body ol > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  opacity: 0.75;
}

/* ── Wide tables.
   The article column is 720px; a five-column mapping table needs more, so the
   wrapper breaks out of the column and re-centres on wider viewports. ── */
.post-body .table-wrap {
  margin: 30px 0 34px;
  overflow-x: auto;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1080px) {
  .post-body .table-wrap {
    width: 940px;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}
.post-body table td.num,
.post-body table th.num {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
}
.post-body table th.num { font-family: var(--font-sans); }
.post-body tbody td:first-child { white-space: nowrap; }
/* Inside an overflow-x container, so wrapping a header only costs vertical
   space it doesn't need. */
.post-body thead th { white-space: nowrap; }

/* ── Coverage badges.
   Colour is a second channel, never the only one — the label always says it. ── */
.cov {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.cov-full  { background: rgba(16, 185, 129, 0.1);  border-color: rgba(16, 185, 129, 0.3);  color: #047857; }
.cov-part  { background: rgba(245, 158, 11, 0.1);  border-color: rgba(245, 158, 11, 0.32); color: #b45309; }
.cov-lossy { background: rgba(249, 115, 22, 0.1);  border-color: rgba(249, 115, 22, 0.32); color: #c2410c; }
.cov-work  { background: rgba(139, 92, 246, 0.1);  border-color: rgba(139, 92, 246, 0.32); color: #6d28d9; }
.cov-drop  { background: rgba(239, 68, 68, 0.09);  border-color: rgba(239, 68, 68, 0.3);   color: #b91c1c; }
.cov-pend  { background: rgba(100, 116, 139, 0.1); border-color: rgba(100, 116, 139, 0.28);color: #475569; }
.cov-info  { background: rgba(148, 163, 184, 0.12);border-color: rgba(148, 163, 184, 0.28);color: #64748b; }
.cov-ask   { background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.34); color: #4338ca; }
.cov-none  { color: #94a3b8; font-size: 0.875rem; }

/* ── Caveat lists — one flagged mapping per row, reason underneath ── */
.post-body .caveat-list { margin-bottom: 30px; }
.post-body .caveat-list li {
  padding: 14px 0 14px 26px;
  margin-bottom: 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
}
.post-body .caveat-list li:last-child { border-bottom: none; }
.post-body .caveat-list li::before { top: 24px; }
.post-body .caveat-list code { margin-right: 6px; }

/* ── Cross-links to the other pairs ── */
.pair-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 12px;
}
.pair-links a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 15px;
  border: 1px solid var(--color-border-light);
  border-radius: 999px;
  background: var(--color-bg-white);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.pair-links a:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: #f8f9ff;
  color: var(--color-primary-dark);
}

/* ── Hub cards ── */
.post-card.pair-card .card-eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.post-body .cta-row { margin: 40px 0 8px; }

@media (max-width: 720px) {
  .migrate-hero .stat { flex: 1 1 132px; padding: 12px 16px; }
  .migrate-hero .stat-n { font-size: 1.35rem; }
  .post-body .answer-block { font-size: 1.03rem; padding: 18px 20px; }
}
