/* Written guides share the site's typography, panels and responsive spacing. */
.guide-section[id], #rs-install, #rs-start { scroll-margin-top: 100px; }
.rs .guide-section { max-width: none; margin-left: auto; margin-right: auto; }
.rs .rs-start { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: clamp(30px, 4vw, 56px); margin-bottom: clamp(64px, 8vw, 100px); padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--hairline); }
.rs-start h2 { grid-column: 1 / -1; }
.rs-start .guide-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: 14px; margin: 0; }
.rs-start .guide-links a { display: flex; align-items: center; min-height: 64px; padding: 14px 18px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--panel-soft); font-family: 'Barlow', sans-serif; line-height: 1.5; }
@media (max-width: 700px) { .rs .rs-start { grid-template-columns: 1fr; row-gap: 12px; } }
@media (max-width: 380px) { .rs-start .guide-links { grid-template-columns: 1fr; } }
.guide-section { margin-top: clamp(34px, 4.6vh, 52px); padding-top: clamp(26px, 3.4vw, 40px); border-top: 1px solid var(--hairline); }
.guide-section h2 { margin: 0 0 20px; font-family: 'Oswald', sans-serif; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; color: var(--ink-strong); }
.guide-section h3 { margin: 26px 0 12px; font-family: 'Oswald', sans-serif; font-size: 21px; line-height: 1.25; color: var(--ink-strong); }
.guide-section p, .guide-section li, .guide-section summary { font-family: 'Barlow', sans-serif; font-size: 16px; line-height: 1.75; color: var(--muted-soft); text-wrap: pretty; overflow-wrap: anywhere; }
.guide-section p { margin: 0 0 18px; }
.guide-section ol, .guide-section ul { padding-left: 24px; }
.guide-section li { padding-left: 4px; margin-bottom: 16px; }
.guide-section a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.guide-section a:hover { color: var(--red-hot); }
.guide-section a:focus-visible, .guide-section summary:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 5px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0; }
.guide-section details { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.guide-section summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.guide-section details p { margin: 14px 0 0; }
.guide-section code { font-size: .9em; overflow-wrap: anywhere; }

.tier-reading { margin-top: 20px; font-family: 'Barlow', sans-serif; line-height: 1.7; color: var(--muted-soft); }
.tier-reading table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tier-reading caption { text-align: left; font-weight: 600; color: var(--ink-strong); margin-bottom: 10px; }
.tier-reading th, .tier-reading td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--hairline); padding: 12px; overflow-wrap: anywhere; }
.tier-reading th:first-child { width: 58px; color: var(--ink-strong); }
.tier-reading p { font-size: 14px; }
