/* Rodcha learning guides: centred reading layout, scoped away from course and member pages. */
.guide-page { padding-block: clamp(2rem, 4vw, 4rem); }
.guide-wrap { box-sizing: border-box; width: min(calc(100% - 2.5rem), 56rem); min-width: 0; margin-inline: auto; }
.guide-hub .guide-wrap { width: min(calc(100% - 2.5rem), 70rem); }
.guide-breadcrumb { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; color: var(--muted); font-size: .85rem; }
.guide-breadcrumb a { color: var(--accent); }
.guide-header h1 { max-width: 26ch; font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1.12; margin: 0 0 1.5rem; }
.guide-meta, .guide-editorial-note { color: var(--muted); font-size: .8rem; line-height: 1.7; }
.guide-summary { color: var(--muted); max-width: 76ch; font-size: 1.05rem; line-height: 1.75; margin-block: 1.25rem 2rem; }
.guide-toc { padding: 1.4rem; margin-bottom: 2.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.guide-toc ul { margin: .75rem 0 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.guide-toc li { padding-block: .25rem; break-inside: avoid; font-size: .88rem; }
.guide-toc a, .guide-body a, .guide-callout a:not(.button), .guide-related a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; overflow-wrap: anywhere; }
.guide-body { min-width: 0; font-size: 1rem; line-height: 1.8; }
.guide-body p { margin-bottom: 1.3rem; color: var(--muted); }
.guide-body h2, .guide-callout h2, .guide-related h2 { font-size: clamp(1.65rem, 2.7vw, 2.15rem); line-height: 1.25; margin: 2.5rem 0 1.2rem; }
.guide-body h3 { font-size: 1.35rem; line-height: 1.3; margin: 1.75rem 0 .75rem; }
.guide-body h2, .guide-body h3, .guide-sources li { scroll-margin-top: 7rem; }
.guide-citation { font-size: .78em; white-space: nowrap; }
.guide-body ul, .guide-body ol, .guide-related ul { padding-left: 1.5rem; }
.guide-sources { border-top: 1px solid var(--line); margin-top: 2rem; }
.guide-sources li { padding-block: .4rem; font-size: .85rem; }
.guide-callout { margin-block: 3rem; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.guide-callout h2 { margin-top: 0; }
.guide-callout p { color: var(--muted); line-height: 1.75; margin-top: 1rem; }
.guide-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.guide-actions .button { white-space: normal; max-width: 100%; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.guide-card { min-width: 0; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.guide-card h2 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 1rem; }
.guide-card h2 a { color: white; text-decoration: none; }
.guide-card p { color: var(--muted); line-height: 1.7; }
.guide-read-link { display: inline-block; color: var(--accent); margin-top: 1.3rem; text-underline-offset: .2em; }
.guide-related li { margin-bottom: .6rem; }
.guide-page a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } .guide-toc ul { columns: 1; } .guide-breadcrumb { margin-bottom: 1.5rem; } }
