/* ============================================================
   citeproof.ai — /guides pages
   Additive only, same rule as resources.css: reuses the design
   tokens and shared components from styles.css (loaded first).
   Nothing here overrides a selector used by the landing page.
   ============================================================ */

/* ---------- Breadcrumb ---------- */
/* Mirrors the BreadcrumbList JSON-LD on each page. If you change the
   visible trail, change the schema too — they must describe the same path. */
.crumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: var(--sp-4); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: '/'; color: var(--border-strong); }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent-1); }
.crumbs [aria-current='page'] { color: var(--text); font-weight: 600; }

/* ---------- Guide hero ---------- */
.guide-hero { padding: clamp(40px, 6vw, 68px) 0 var(--sp-5); }
.guide-hero .wrap { max-width: 760px; }
.guide-hero h1 { margin-bottom: var(--sp-4); }
.guide-hero .lede { max-width: 100%; }
.guide-meta { margin-top: var(--sp-5); font-size: .84rem; color: var(--text-muted); display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* ---------- Prose ---------- */
/* Long-form reading measure. 68ch keeps lines in the 60-80 character range
   that stays comfortable to read; the landing page's wider .wrap is tuned for
   marketing layout, not paragraphs. */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 {
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
  letter-spacing: var(--tracking-display);
  margin-top: var(--sp-8);
  scroll-margin-top: 84px; /* clears the sticky nav when jumped to from the TOC */
}
.prose h3 { font-size: 1.08rem; margin-top: var(--sp-6); scroll-margin-top: 84px; }
.prose p, .prose li { color: var(--text-muted); line-height: var(--lh-body); }
.prose strong { color: var(--text); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: var(--sp-2); }
/* :not(.btn) matters here, not just style: .btn-primary sets white text for
   contrast against its own gradient, and this rule's specificity (class +
   tag) otherwise beats .btn-primary's (single class), silently recoloring
   any button placed inside prose text to accent-blue — which is close
   enough to the gradient's own start color to make the label unreadable. */
.prose a:not(.btn) { color: var(--accent-1); text-decoration: underline; text-underline-offset: 2px; }
.prose a:not(.btn):hover { text-decoration-thickness: 2px; }

/* ---------- Table of contents ---------- */
.toc {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px;
}
.toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 var(--sp-3); }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li + li { margin-top: 6px; }
.toc a { color: var(--text); text-decoration: none; font-size: .92rem; }
.toc a:hover { color: var(--accent-1); text-decoration: underline; }

/* ---------- Callout ---------- */
.callout {
  border-left: 3px solid var(--accent-1);
  background: var(--surface-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
}
.callout p { margin: 0; }
.callout p + p { margin-top: var(--sp-3); }

/* ---------- Comparison table ---------- */
/* Wrapper scrolls rather than the page, so a wide table can't cause
   horizontal overflow on mobile. */
.table-scroll { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); border-bottom: 1px solid var(--border-strong); }
.cmp-table tbody th { font-weight: 650; color: var(--text); white-space: nowrap; }
.cmp-table td { color: var(--text-muted); }

/* ---------- Guide index cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-5); margin-top: var(--sp-6); }
.guide-card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-card h2 { font-size: 1.05rem; margin: 0; }
.guide-card h2 a { color: var(--text); text-decoration: none; }
.guide-card h2 a:hover { color: var(--accent-1); }
.guide-card p { color: var(--text-muted); font-size: .9rem; flex-grow: 1; margin: 0; }
.guide-card .guide-card-more { font-size: .86rem; font-weight: 600; color: var(--accent-1); }

/* ---------- End-of-guide CTA ---------- */
.guide-cta {
  margin-top: var(--sp-8); padding: 26px 28px;
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.guide-cta h2 { font-size: 1.15rem; margin: 0 0 var(--sp-3); }
.guide-cta p { color: var(--text-muted); margin: 0 0 var(--sp-4); font-size: .95rem; }

/* ---------- Checkmark list (trust center security overview) ---------- */
/* Same icon+text flex pattern as .compare-col li on the landing page, just
   without a bullet since the icon IS the bullet. */
.trust-list { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.trust-list li { display: flex; align-items: flex-start; gap: var(--sp-3); }
.trust-list .icon { flex-shrink: 0; margin-top: 3px; }

/* ---------- Related links ---------- */
.related { margin-top: var(--sp-8); border-top: 1px solid var(--border); padding-top: var(--sp-5); }
.related h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 var(--sp-3); }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li + li { margin-top: var(--sp-2); }

@media (prefers-reduced-motion: reduce) {
  .guide-card { transition: none; }
  .guide-card:hover { transform: none; }
}
