/* Guides: /guides index and /guides/<slug> articles (src/pages/guides.ts). Builds on base.css and site.css. */

.guides, .guide { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4.5rem; }
.guides-lede, .guide-lede { color: var(--muted); font-size: 1.15rem; }

/* Index */
.guide-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.guide-list li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.guide-list h2 { margin: 0.2rem 0 0.4rem; font-size: 1.35rem; letter-spacing: -0.02em; }
.guide-list h2 a { text-decoration: none; }
.guide-list h2 a:hover { text-decoration: underline; }
.guide-list p { margin: 0; color: var(--muted); }
.guide-tag { font-size: 0.85rem; font-weight: 700; color: var(--accent-text) !important; }
.guide-list .guide-date { margin-top: 0.4rem; font-size: 0.9rem; }

/* Article */
.crumbs { margin-bottom: 1rem; font-size: 0.95rem; }
.crumbs a { color: var(--muted); }
.guide h1 { margin-bottom: 0.75rem; }
.guide-meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.25rem; }
.guide-body h2 { font-size: 1.4rem; margin: 2.5rem 0 0.75rem; letter-spacing: -0.02em; }
.guide-body h3 { font-size: 1.1rem; margin: 1.75rem 0 0.5rem; }
.guide-body ol, .guide-body ul { padding-left: 1.3rem; margin: 0 0 1.1rem; }
.guide-body li { margin: 0.4rem 0; }
.guide-body code { font: 600 0.9em/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--surface-2); padding: 0.12em 0.4em; border-radius: 6px; overflow-wrap: anywhere; }
/* Formulas wrap so the whole thing is visible and easy to select and copy. */
.guide-body pre { background: var(--surface-2); padding: 0.85rem 1rem; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-body pre code { background: none; padding: 0; }
.guide-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: 0.95rem; display: block; overflow-x: auto; }
.guide-body th, .guide-body td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-body th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.guide-note { margin: 1.25rem 0; padding: 0.9rem 1.1rem; border-radius: 12px; background: var(--surface-2); }
.guide-note p { margin: 0; }

/* Screenshots */
.guide-figure { margin: 1.5rem 0; }
/* Shown at the width given in the markup (half the pixel width for Retina screenshots), never wider than the column. */
.guide-figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.guide-figure figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.9rem; }

/* Closing product line and more guides */
.guide-product { margin: 3rem 0 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }
.guide-more h2 { font-size: 1.2rem; }
.guide-more ul { padding-left: 1.2rem; }
.guide-help { margin-top: 2rem; color: var(--muted); font-size: 0.95rem; }
