/* ============================================================
   learn.css — Guides / articles layer for hatchos.one
   Loaded only on /guides pages. Reuses tokens + classes from
   tokens.css + styles.css (.container, .eyebrow, .compare,
   .faq__item, .apply.ink-panel, .btn, .reveal, .glass, .mark).
   ============================================================ */

/* ---- Guide header ---- */
.guide__hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.crumbs { font-family: var(--font-display); font-size: var(--fs-small); color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--lime); }
.crumbs span[aria-current] { color: var(--ink); }
.crumbs .sep { color: var(--line-strong); }
.guide__hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 20ch; margin-top: .25rem; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem; margin-top: 1.5rem; font-size: var(--fs-small); color: var(--muted); }
.byline strong { color: var(--ink); font-weight: 600; }
.byline .updated { color: var(--lime-ink); font-weight: 600; }
.byline .sep { opacity: .5; }

/* ---- Layout ---- */
.guide__layout { padding-top: clamp(2rem, 4vw, 3rem); }
.guide__body { max-width: 760px; }

/* ---- Answer-first / TL;DR box (the snippet AI lifts) ---- */
.answer-box { background: linear-gradient(170deg, rgba(198,255,58,0.16), var(--surface) 60%); border: 1px solid var(--line-strong); border-left: 4px solid var(--lime); border-radius: var(--radius); padding: 1.5rem 1.75rem; box-shadow: var(--shadow-card); }
.answer-box p { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--ink); }
.answer-box .answer-box__label { display: block; font-family: var(--font-display); font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase; color: var(--lime-ink); font-weight: 700; margin-bottom: .55rem; }

/* ---- Table of contents ---- */
.toc { margin-top: 2.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-card); }
.toc__label { font-family: var(--font-display); font-size: var(--fs-small); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .8rem; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: .55rem; }
.toc li { counter-increment: toc; position: relative; padding-left: 2.1rem; font-size: .98rem; }
.toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: var(--lime-ink); }
.toc a { border-bottom: 1px solid transparent; }
.toc a:hover { color: var(--lime-ink); border-bottom-color: var(--lime); }

/* ---- Prose ---- */
.prose { color: var(--ink); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 3rem; scroll-margin-top: 90px; }
.prose h3 { font-size: var(--fs-h3); margin-top: 2rem; scroll-margin-top: 90px; }
.prose h2 + p, .prose h3 + p { margin-top: .85rem; }
.prose p { color: var(--ink); }
.prose .lead-answer { font-size: 1.12rem; color: var(--ink); font-weight: 500; }
.prose a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--lime-ink); }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: .65rem; }
.prose ul li, .prose ol li { position: relative; padding-left: 1.7rem; }
.prose ul li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); border: 1px solid rgba(11,14,12,0.18); }
.prose ol { counter-reset: prose; }
.prose ol li { counter-increment: prose; }
.prose ol li::before { content: counter(prose) "."; position: absolute; left: 0; top: 0; font-family: var(--font-display); font-weight: 700; color: var(--lime-ink); }
.prose strong { font-weight: 600; }
.prose blockquote { border-left: 3px solid var(--lime); padding: .35rem 0 .35rem 1.25rem; margin-left: 0; color: var(--muted); font-size: 1.1rem; font-style: italic; }
.prose blockquote cite { display: block; margin-top: .5rem; font-size: var(--fs-small); font-style: normal; color: var(--ink); font-weight: 600; }
.prose figure { margin: 0; }

/* Stat strip — pull-quote numbers inside an article */
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.stat-strip > div { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--lime); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-card); }
.stat-strip b { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; letter-spacing: -.02em; }
.stat-strip span { display: block; margin-top: .5rem; font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 700px) { .stat-strip { grid-template-columns: 1fr; } }

/* ---- Key takeaways callout ---- */
.takeaway { margin-top: 2.5rem; background: var(--surface-tint); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.takeaway h2, .takeaway h3 { margin-top: 0; font-size: var(--fs-h3); }
.takeaway ul { margin-top: 1rem; display: grid; gap: .65rem; list-style: none; padding-left: 0; }
.takeaway ul li { position: relative; padding-left: 1.7rem; }
.takeaway ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--lime-ink); font-weight: 700; }

/* ---- Inline source / citation note ---- */
.src { font-size: var(--fs-small); color: var(--muted); }

/* ---- Guide FAQ (reuses .faq__item from styles.css; tighter heads) ---- */
.guide-faq { margin-top: 3rem; }
.guide-faq > h2 { margin-bottom: 1.25rem; }
.guide-faq .faq__list { margin-top: 0; }
.guide-faq .faq__item summary { font-size: 1.15rem; }

/* ---- Related guides ---- */
.related { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.related__label { font-family: var(--font-display); font-size: var(--fs-small); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.related ul { list-style: none; display: grid; gap: .75rem; padding-left: 0; }
.related a { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; border-bottom: 1px solid transparent; width: fit-content; }
.related a::before { content: "→"; color: var(--lime-ink); }
.related a:hover { color: var(--lime-ink); }

/* ============================================================
   Guides hub (/guides)
   ============================================================ */
.hub__intro { max-width: 680px; }
.hub__intro .page-hero__sub { margin-top: 1.25rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1rem; }
.guide-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.5rem; box-shadow: var(--shadow-card); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.guide-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }
.guide-card__tag { font-family: var(--font-display); font-size: var(--fs-small); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--lime-ink); }
.guide-card h2, .guide-card h3 { font-size: 1.22rem; line-height: 1.18; margin-top: .55rem; }
.guide-card p { color: var(--muted); font-size: .96rem; margin-top: .6rem; }
.guide-card__more { margin-top: auto; padding-top: 1rem; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; }
.guide-card__more::after { content: "→"; color: var(--lime-ink); transition: transform .2s var(--ease); }
.guide-card:hover .guide-card__more::after { transform: translateX(4px); }
.guide-card--lead { grid-column: span 3; flex-direction: row; align-items: center; gap: 2rem; background: linear-gradient(165deg, rgba(198,255,58,0.16), var(--surface) 55%); border-color: var(--line-strong); }
.guide-card--lead > div { flex: 1; }
.guide-card--lead h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.guide-card--lead p { font-size: 1.02rem; }
@media (max-width: 920px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } .guide-card--lead { grid-column: span 2; } }
@media (max-width: 600px) { .guide-grid { grid-template-columns: 1fr; } .guide-card--lead { grid-column: span 1; flex-direction: column; align-items: flex-start; gap: 1rem; } }
