/* AE2CSS guide / long-read — article prose only.
   Reuses tokens, nav, buttons and footer from styles.css; this file styles the article body.
   Scoped under .guide so it can never collide with landing-page classes. */

.guide-wrap { width: min(760px, 100% - 44px); margin-inline: auto; }
.guide-main { padding: 40px 0 80px; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 13px; color: var(--muted-2); margin: 0 0 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 8px; opacity: 0.5; }

/* ---------- Article head ---------- */
.guide-head { margin-bottom: 34px; }
.guide-head h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.03em; line-height: 1.08; }
.guide-head .lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); margin: 20px 0 0; }
.guide-meta { margin: 18px 0 0; font-size: 13px; color: var(--muted-2); display: flex; gap: 14px; flex-wrap: wrap; }
.guide-meta b { color: var(--muted); font-weight: 600; }

/* ---------- Snippet answer (featured-snippet bait) ---------- */
.answer {
  margin: 0 0 36px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 17px;
  line-height: 1.6;
}
.answer b { color: var(--text); }

/* ---------- Table of contents ---------- */
.toc { margin: 0 0 40px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.toc p { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.toc li { margin: 4px 0; }
.toc a { color: var(--muted); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--accent); }

/* ---------- Prose ---------- */
.prose { font-size: 17px; line-height: 1.72; color: #cdd8e6; }
.prose h2 { font-size: clamp(23px, 3.4vw, 30px); letter-spacing: -0.02em; line-height: 1.15; color: var(--text); margin: 52px 0 14px; scroll-margin-top: 80px; }
.prose h3 { font-size: 19px; color: var(--text); margin: 30px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--text); }
/* buttons are not prose links — keep them solid, no underline/accent recolor */
.prose a.btn { color: #fff; text-decoration: none; }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.prose blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-strong); color: var(--muted); font-style: italic; }

/* ---------- Method block ---------- */
.method { margin: 22px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.method-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.method-head h3 { margin: 0; font-size: 19px; }
.verdict { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.verdict.good { color: var(--good); background: rgba(87, 217, 163, 0.12); }
.verdict.ok   { color: #ffcf6b; background: rgba(255, 207, 107, 0.12); }
.verdict.avoid{ color: #ff8d8d; background: rgba(255, 141, 141, 0.12); }
.method p { margin: 12px 0 0; }
.method .facts { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .method .facts { grid-template-columns: 1fr; } }
.method .facts li { margin: 0; font-size: 13px; color: var(--muted); }
.method .facts b { display: block; color: var(--muted-2); font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }

/* ---------- Comparison table ---------- */
.cmp-scroll { overflow-x: auto; margin: 18px 0 8px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.cmp th, table.cmp td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.cmp thead th { color: var(--muted-2); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
table.cmp tbody th { color: var(--text); font-weight: 600; }
table.cmp td { color: var(--muted); }
table.cmp .win { color: var(--good); }

/* ---------- Inline callout / CTA ---------- */
.callout { margin: 26px 0; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: linear-gradient(180deg, rgba(86,130,255,0.07), rgba(124,92,255,0.04)); }
.callout p { margin: 0; }
.cta-inline { margin: 44px 0 0; padding: 28px; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.cta-inline h2 { margin: 0 0 8px; }
.cta-inline p { color: var(--muted); margin: 0 0 18px; }

/* ---------- Guide index (hub / card list) ----------
   Reuses the .card base from styles.css; adds the grid + link-card affordance. */
.guide-index { width: min(920px, 100% - 44px); margin-inline: auto; }
.gcard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 4px 0 0; padding: 0; list-style: none; }
@media (max-width: 720px) { .gcard-grid { grid-template-columns: 1fr; } }
.gcard-grid > li { margin: 0; }
.gcard {
  display: flex; flex-direction: column; height: 100%;
  padding: 24px 24px 22px; text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.gcard:hover, .gcard:focus-visible { border-color: var(--line-strong); background: var(--panel-2); transform: translateY(-2px); }
.gcard:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.gcard-title { margin: 0; font-size: 20px; letter-spacing: -0.01em; line-height: 1.22; color: var(--text); }
.gcard-desc { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
/* margin-top:auto pins the meta + "Read the guide" pair to the card bottom so
   they align across cards regardless of title/description length; padding-top
   keeps a minimum gap even on the tallest card (where free space is zero). */
.gcard-meta { margin: 0; margin-top: auto; padding-top: 18px; font-size: 12.5px; color: var(--muted-2); }
.gcard-meta b { color: var(--muted); font-weight: 600; }
.gcard-go { margin: 14px 0 0; font-size: 14px; font-weight: 600; color: var(--accent); }
.gcard:hover .gcard-go, .gcard:focus-visible .gcard-go { color: var(--text); }

/* ---------- Article FAQ ----------
   Same component as the main site: .faq-item is styled globally in styles.css (icon,
   padding, borders) and animated by the shared app.js accordion. Keep only the spacing
   above; DON'T re-style .guide-faq summary/::before/::after or it diverges again. */
.guide-faq { margin-top: 8px; }
