/* Billfold guides: the reading pages under /guides, generated by tools/guides.py. Loads after styles.css
   (tokens, nav, buttons, .faq, .guide-card); guide pages load neither app.css nor script.js. */

.guide { padding: 28px 0 80px; }
.guide .wrap.narrow { max-width: 720px; }
.hub .wrap { max-width: 980px; }

.crumbs { font-size: 14px; color: var(--sub); margin-bottom: 28px; }
.crumbs a { color: var(--sub); }
.crumbs span { color: var(--ink); }
.guide .kicker { margin-bottom: 10px; }
.guide h1 { font-size: clamp(32px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; max-width: 22ch; }
.guide .meta { margin-top: 14px; font-size: 14px; color: var(--sub); }
.hub .lede { margin-top: 16px; }

/* The short answer: what a skimmer, a search engine or an AI overview should take away. */
.answer { margin: 28px 0 8px; padding: 20px 22px; border-radius: 16px; background: #eaf5ee; border: 1px solid rgba(20,96,66,0.18); border-left: 5px solid var(--racing); }
.answer-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--racing); margin-bottom: 6px; }
.answer p { font-size: 18px; line-height: 1.55; }
.answer p + p { margin-top: 10px; }

/* Article prose */
.prose { font-size: 17.5px; line-height: 1.65; }
.prose h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: -0.02em; }
.prose h3 { font-size: 20px; margin: 30px 0 8px; }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { padding-left: 24px; margin: 14px 0; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: rgba(24,132,90,0.35); text-underline-offset: 2px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose blockquote { margin: 18px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--sub); }
.prose blockquote p { margin: 8px 0; }
.prose code { font: 500 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--stage-b); padding: 1px 5px; border-radius: 5px; }
.prose img { border-radius: 12px; border: 1px solid var(--line); margin: 16px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0; font-size: 15.5px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--stage-b); font-weight: 700; font-size: 14px; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:not(:first-child), .prose th:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose td:not(:first-child) { text-align: right; }
.prose th:not(:first-child) { text-align: right; }
/* A comparison table is text, not numbers: left-aligned, wrapping */
.prose .compare td, .prose .compare th { text-align: left; white-space: normal; font-variant-numeric: normal; }
.prose .compare th:first-child, .prose .compare td:first-child { font-weight: 600; }
@media (max-width: 560px) { .prose table { font-size: 14px; } .prose th, .prose td { padding: 8px 8px; } .prose td:not(:first-child), .prose th:not(:first-child) { white-space: normal; } }

/* A worked example: a white card so the numbers stand apart from the argument. */
.example { margin: 26px 0; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(6,40,28,0.06); }
.example > :first-child { margin-top: 0; }
.example > :last-child { margin-bottom: 0; }
.example h3 { margin-top: 0; }

/* "Do this in Billfold": one setting, one screenshot, one button. Dark green like the privacy section. */
.do-it { margin: 36px 0; padding: 24px 26px; border-radius: 18px; background: var(--racing-deep); color: #eaf3ee; }
.do-it .kicker { color: #7fd0a6; margin-bottom: 8px; }
.do-it p { color: rgba(234,243,238,0.86); margin: 10px 0; }
.do-it strong { color: #fff; }
.do-it a { color: #8fe3b6; }
.do-it img { border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; margin: 14px 0 6px; }
.do-it-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 18px !important; }
.do-it-cta .btn { color: #fff; }
.do-it-cta span { font-size: 14px; color: rgba(234,243,238,0.7); }

/* FAQ, related, sources */
.faq-block { margin-top: 44px; }
.faq-block h2, .related h2, .sources h2 { font-size: 22px; letter-spacing: -0.02em; }
.faq-block .faq { margin-top: 16px; }
.faq-block .faq details p { margin: 0 0 12px; }
.related { margin-top: 44px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.hub-section { margin-top: 44px; }
.hub-section h2 { font-size: 24px; letter-spacing: -0.02em; }
.sources { margin-top: 40px; font-size: 14.5px; color: var(--sub); }
.sources ol { padding-left: 20px; margin: 12px 0 0; }
.sources li { margin: 4px 0; }
.sources a { color: var(--sub); text-decoration: underline; text-underline-offset: 2px; }
.disclaimer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--sub); }
