.guide-page .header { position: static; }
.guide-page .skip-link { position: absolute; left: 1rem; top: 0; transform: translateY(-150%); background: var(--card-background); color: var(--text-primary); padding: .75rem; z-index: 1001; }
.guide-page .skip-link:focus { transform: translateY(0); }
.guide-page .header .container { flex-wrap: wrap; gap: 1rem; margin-inline: auto; }
.guide-page .nav { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 1rem; }
.guide-page .logo { color: var(--text-primary); text-decoration: none; }
.guide-page .guide-tools { display: flex; align-items: center; gap: 1rem; }
.guide-page .guide-tools a { color: var(--text-primary); }
.guide-page .theme-button { border: 1px solid var(--border-color); border-radius: 8px; padding: .5rem .8rem; background: var(--card-background); color: var(--text-primary); font: inherit; cursor: pointer; }
.guide-page .theme-button[hidden] { display: none; }
.guide-page main { max-width: 1080px; margin: auto; padding: 3rem 2rem 4rem; }
.guide-page h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -.025em; max-width: 22ch; margin: .7rem 0 1.5rem; }
.guide-page h2 { font-size: 1.65rem; line-height: 1.3; margin: 2.5rem 0 1rem; }
.guide-page p { max-width: 72ch; margin-bottom: 1.1rem; }
.guide-page article a, .guide-page .guide-nav a { color: var(--text-primary); text-decoration-thickness: .1em; text-underline-offset: .2em; }
.guide-page .eyebrow, .guide-page .meta, .guide-page figcaption { color: var(--text-secondary); font-size: .95rem; }
.guide-page .eyebrow { font-weight: 650; }
.guide-page .intro { font-size: 1.25rem; }
.guide-page .guide-nav { border-block: 1px solid var(--border-color); padding: 1rem 0; margin: 2rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.guide-page .note { border-left: 4px solid var(--primary-color); padding: 1.25rem 1.5rem; background: var(--background-secondary); margin: 2rem 0; }
.guide-page .note p:last-child { margin-bottom: 0; }
.guide-page .step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 310px); align-items: start; gap: 2.5rem; margin: 2.5rem 0 3.5rem; }
.guide-page .step h2 { margin-top: .5rem; }
.guide-page .proof-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 310px)); gap: 2rem; margin: 1.5rem 0; }
.guide-page figure { min-width: 0; }
.guide-page figure img { display: block; width: 100%; height: auto; border-radius: 1rem; border: 1px solid var(--border-color); }
.guide-page figcaption { margin-top: .75rem; line-height: 1.5; }
.guide-page .download-note { margin-top: 2.5rem; padding: 1.5rem; border-radius: 1rem; background: var(--background-secondary); }
.guide-page .download-note .btn-primary { margin-top: .5rem; }
.guide-page :focus-visible { outline: 3px solid var(--primary-color); outline-offset: 4px; }
.guide-page section { scroll-margin-top: 1rem; }
@media (max-width: 650px) {
    .guide-page main { padding: 2rem 1.25rem 3rem; }
    .guide-page .header .container { padding: 1rem 1.25rem; }
    .guide-page .nav { gap: .75rem; }
    .guide-page .step { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .guide-page .proof-pair { grid-template-columns: minmax(0, 1fr); }
    .guide-page figure { max-width: 310px; margin-inline: auto; }
    .guide-page .note { padding: 1rem; }
}
