/* Buyer guides (/guides/*.html). Article layout: answer-first hero, data
   tables that stack into labelled cards on narrow screens, FAQ, reading list.
   Tokens only (global.css), so light, dark and AI themes follow. */

.guide-hero {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
}
.guide-wrap { max-width: 860px; margin-inline: auto; }

.guide-crumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.guide-crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: var(--text-muted); }
.guide-crumbs a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.guide-crumbs a:hover { color: var(--accent); }

.guide-overline {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.guide-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: var(--space-sm); }
.guide-meta { font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--space-xl); }
.guide-meta a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.guide-meta a:hover { color: var(--accent); }
.guide-answer {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--accent);
}

/* ---------- Body copy ---------- */
.guide-body h2 { margin-bottom: var(--space-md); }
.guide-body .guide-gap { margin-top: var(--space-2xl); }
.guide-body p { font-size: 1.0625rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: var(--space-md); }
.guide-body p a, .guide-body li a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.guide-body strong { color: var(--text-primary); font-weight: 600; }
.guide-list { padding-left: 1.25rem; margin: 0 0 var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }
.guide-list li { font-size: 1rem; line-height: 1.65; color: var(--text-secondary); }
.guide-list li::marker { color: var(--accent); font-weight: 600; }

/* ---------- Tables ---------- */
.guide-table-wrap { margin-top: var(--space-lg); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.guide-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  padding-bottom: var(--space-sm);
}
.guide-table th, .guide-table td {
  padding: var(--space-md);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.guide-table thead th { font-family: var(--font-display); font-weight: 600; color: var(--text-primary); background: var(--bg-secondary); }
.guide-table tbody th { font-weight: 600; color: var(--text-primary); }
.guide-table td { color: var(--text-secondary); }
.guide-source { font-size: 0.8125rem; color: var(--text-secondary); margin-top: var(--space-sm); }

/* Narrow screens: each row becomes a card, each cell carries its column name
   from data-label, so there is no horizontal scroll at 375 px. */
@media (max-width: 760px) {
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .guide-table, .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; width: 100%; }
  .guide-table caption { display: block; width: 100%; }
  .guide-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    margin-bottom: var(--space-md);
    padding: var(--space-sm) 0;
  }
  .guide-table tbody th { border-bottom: 1px solid var(--border); padding: var(--space-sm) var(--space-md); }
  .guide-table td { border-bottom: 0; padding: var(--space-sm) var(--space-md); }
  .guide-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.125rem;
  }
}

/* ---------- Fit / not fit ---------- */
.guide-fit { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); margin-top: var(--space-lg); }
.guide-fit__col { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); padding: var(--space-lg); }
.guide-fit__col h3 { font-size: 1rem; margin-bottom: var(--space-sm); }
.guide-fit__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-sm); }
.guide-fit__col li { display: flex; gap: 0.625rem; font-size: 0.9375rem; line-height: 1.55; color: var(--text-primary); }
.guide-fit__col li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.guide-fit__col li.is-no { color: var(--text-secondary); }
.guide-fit__col li.is-no svg { color: var(--text-muted); }
.guide-fit__col a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .guide-fit { grid-template-columns: 1fr; } }

/* ---------- FAQ (as private-equity-revops) ---------- */
.faq-list { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-lg); }
.faq-item { padding-left: var(--space-md); border-left: 2px solid var(--border); }
.faq-item h3 { font-size: 1.0625rem; margin-bottom: var(--space-xs); color: var(--text-primary); }
.faq-item p { font-size: 0.9375rem; line-height: 1.65; color: var(--text-secondary); margin: 0; }

/* ---------- Go deeper ---------- */
.guide-reading { list-style: none; padding: 0; margin: var(--space-lg) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.guide-reading a {
  display: block;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: var(--space-md) var(--space-lg);
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.guide-reading a:hover { border-color: var(--accent); color: var(--accent); }
.guide-reading span { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--text-muted); margin-top: 0.25rem; }
.guide-related { font-size: 0.9375rem; color: var(--text-secondary); margin-top: var(--space-lg); }
.guide-related a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 760px) { .guide-reading { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.guide-cta { text-align: center; }
.guide-cta h2 { margin-bottom: var(--space-md); }
.guide-cta p { max-width: 620px; margin: 0 auto var(--space-xl); font-size: 1.0625rem; line-height: 1.65; color: var(--text-secondary); }
