/* Guide pages (tools/build-guides.mjs). Uses site.css tokens; --guide-accent is set per tool. */
.guide { max-width: 720px; margin: 0 auto; padding: 40px 0 80px; }
.guide-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.guide-crumbs a { color: var(--muted); }
.guide h1 { font-family: var(--font-display); font-size: clamp(30px, 6vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 10px; }
.guide-meta { font-size: 14px; color: var(--muted); margin: 0 0 26px; }
.guide h2 { font-size: 22px; line-height: 1.25; margin: 38px 0 10px; }
.guide h3 { font-size: 18px; margin: 26px 0 8px; }
.guide p, .guide li { font-size: 17px; line-height: 1.7; }
.guide ul, .guide ol { padding-left: 22px; }
.guide li + li { margin-top: 6px; }
.guide .answer { font-size: 19px; line-height: 1.6; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--guide-accent, var(--accent)); }
.guide .formula { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; padding: 14px 16px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); overflow-x: auto; white-space: pre-wrap; }
.guide .note { font-size: 15px; color: var(--muted); }
.guide-table { width: 100%; overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: 14px; }
.guide-table table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.guide-table caption { text-align: left; font-weight: 600; padding: 12px 14px 0; }
.guide-table th, .guide-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.guide-table th:first-child, .guide-table td:first-child { text-align: left; }
.guide-table thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.guide-table tbody tr:last-child td, .guide-table tbody tr:last-child th { border-bottom: 0; }
.guide-table tbody th { font-weight: 600; }

.guide-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 40px 0 8px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.guide-icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; }
.guide-cta-copy { flex: 1 1 220px; min-width: 0; }
.guide-cta-copy strong { display: block; font-size: 17px; }
.guide-cta-copy span { font-size: 15px; color: var(--muted); }
.guide-cta-btn { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none; }
.guide-cta-btn:hover { opacity: .9; }

.guide-faq { max-width: none; margin-top: 40px; }
.guide-faq h2 { margin-bottom: 4px; }
.guide-faq details { border-top: 1px solid var(--border); padding: 16px 0; }
.guide-faq summary { font-weight: 600; cursor: pointer; font-size: 17px; }
.guide-faq details p { margin: 10px 0 0; color: var(--muted); }
.guide-related { margin-top: 36px; }
.guide-related ul { list-style: none; padding: 0; margin: 0; }
.guide-related li { border-top: 1px solid var(--border); padding: 12px 0; margin: 0; }
.guide-related a { font-weight: 600; }
@media (max-width: 520px) { .guide-cta-btn { width: 100%; justify-content: center; } }
