/*
 * content.css — long-form content added on top of base.css/pricing.css/
 * components.css (the site's former single site.css, split to stay under
 * the 600-line file-size limit): the blog (index, post pages) and the
 * /compare/ hub and its pages. Kept separate so this addition carries zero
 * risk for any existing page — only pages that opt in with
 * <link rel="stylesheet" href="/css/content.css"> load these rules. Uses
 * the same Direction 3 tokens as the rest of the site (css/tokens.css) and
 * reuses base.css/components.css's .draft-banner, .button, .wrap, .section
 * and .lede as-is rather than duplicating them.
 */

/* ---- Blog index ---- */
.post-list {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: var(--content-width-prose);
}

.post-card {
  background: var(--surface);
  border: var(--hairline) solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
}

.post-card h2 {
  margin: var(--space-1) 0 var(--space-2);
  font-size: var(--text-card-title);
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.post-card p {
  margin: 0;
  color: var(--ink-secondary);
}

.post-card--empty {
  text-align: center;
  color: var(--ink-muted);
  box-shadow: none;
  border-style: dashed;
}

.post-meta {
  font-size: var(--text-caption);
  color: var(--ink-muted);
  margin: 0;
}

.post-meta a {
  color: var(--ink-muted);
}

/* ---- Blog post page ---- */
.post-article {
  padding-block: var(--space-7);
}

.post-article .post-meta {
  margin-block-end: var(--space-3);
}

.post-article h1 {
  font-size: var(--text-title);
  max-width: var(--content-width-prose);
}

.post-body {
  max-width: var(--content-width-prose);
}

.post-body h2 {
  font-size: var(--text-body-lg);
  margin-block-start: var(--space-7);
}

.post-body ul,
.post-body ol {
  padding-inline-start: 1.25em;
}

.post-body li {
  margin-block-end: var(--space-2);
}

.post-body p {
  color: var(--ink);
}

.post-figure {
  margin: var(--space-6) 0;
  max-width: var(--content-width-prose);
}

.post-figure img {
  width: 100%;
  height: auto;
  border: var(--hairline) solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.post-figure figcaption {
  margin-block-start: var(--space-2);
  font-size: var(--text-caption);
  color: var(--ink-muted);
  text-align: center;
}

/* ---- Compare hub ---- */
.compare-grid {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.compare-card {
  background: var(--surface);
  border: var(--hairline) solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.compare-card h2 {
  font-size: var(--text-card-title);
  margin: 0;
}

.compare-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.compare-card h2 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.compare-card p {
  margin: 0;
  color: var(--ink-secondary);
  flex-grow: 1;
}

/* ---- Compare page body ---- */
.compare-article {
  padding-block: var(--space-7);
}

.compare-article h1 {
  font-size: var(--text-title);
  max-width: var(--content-width-prose);
}

.compare-body {
  max-width: var(--content-width-prose);
}

.compare-body h2 {
  font-size: var(--text-body-lg);
  margin-block-start: var(--space-7);
}

.verified-note {
  font-size: var(--text-caption);
  color: var(--ink-secondary);
  border-inline-start: 3px solid var(--rule-strong);
  padding-inline-start: var(--space-3);
  margin-block: var(--space-3) var(--space-5);
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-block: var(--space-4);
}

.pros-cons > div {
  background: var(--surface);
  border: var(--hairline) solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.pros-cons h3 {
  margin-block-end: var(--space-2);
}

.pros-cons ul {
  margin: 0;
  padding-inline-start: 1.1em;
}

.pros-cons li {
  margin-block-end: var(--space-1);
}

.table-scroll {
  overflow-x: auto;
  margin-block: var(--space-4);
  border-radius: var(--radius-md);
}

.cost-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin-block: 0;
  background: var(--surface);
  border: var(--hairline) solid var(--rule);
  border-radius: var(--radius-md);
}

.cost-table th,
.cost-table td {
  text-align: left;
  padding: var(--space-3);
  border-bottom: var(--hairline) solid var(--rule);
  vertical-align: top;
}

.cost-table tr:last-child td {
  border-bottom: none;
}

.cost-table th {
  background: var(--surface-sunken);
  border-bottom: var(--hairline) solid var(--rule-strong);
  text-transform: uppercase;
  letter-spacing: var(--tracking-overline);
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: var(--ink-secondary);
}

.cost-table td.figure,
.cost-table th.figure {
  font-variant-numeric: tabular-nums;
}

.sources {
  font-size: var(--text-caption);
  color: var(--ink-muted);
}

.sources li {
  margin-block-end: var(--space-1);
}

@media (max-width: 640px) {
  .cost-table {
    font-size: var(--text-caption);
  }
}
