.guide-page { --page-edge: clamp(1.25rem, 5vw, 4rem); }
.guide-page .nav-inner { width: min(1280px, calc(100% - var(--page-edge) * 2)); }
.guide-page .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-directory, .guide-shell { margin: 0 auto; padding: clamp(2rem,6vw,5.5rem) var(--page-edge); }
.guide-directory { max-width: 1200px; }
.guide-directory header { max-width: 52rem; margin-bottom: clamp(2rem,5vw,4.5rem); }
.guide-directory h1, .guide-article h1 { font-size: clamp(2.7rem,5.7vw,5.1rem); letter-spacing: -.035em; line-height: 1.04; }
.guide-directory header p, .guide-article header .guide-intro { max-width: 55ch; margin-top: 1.15rem; font-size: clamp(1.05rem,1.6vw,1.28rem); line-height: 1.55; }
.guide-topics { display: flex; flex-wrap: wrap; column-gap: 1.45rem; margin-top: 1.2rem; }
.guide-topics a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .25em; }
.guide-topic { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 1rem; scroll-margin-top: 5rem; }
.guide-directory section + section { margin-top: clamp(2.8rem, 6vw, 5rem); }
.guide-list { border-bottom: 1px solid var(--rule-2); }
.guide-entry { display: grid; grid-template-columns: minmax(180px,32%) 1fr; align-items: center; gap: clamp(1.5rem,5vw,4rem); padding: 1.5rem 0; border-top: 1px solid var(--rule-2); }
.guide-entry img { width: 100%; border-radius: 6px; }
.guide-entry h3 { font-size: clamp(1.7rem,3.2vw,2.7rem); line-height: 1.13; }
.guide-entry p { max-width: 50ch; margin: .7rem 0 1rem; line-height: 1.55; }
.guide-entry div > span { text-decoration: underline; text-underline-offset: .25em; font-size: .94rem; }
.guide-entry:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.guide-shell { max-width: 1080px; }
.crumbs, .guide-article > *, .guide-foot { max-width: 730px; margin-inline: auto; }
.crumbs { padding-bottom: 1.5rem; color: #54544f; }
.crumbs a, .guide-foot a, .guide-article a { text-decoration: underline; text-underline-offset: .25em; }
.guide-article { font-size: 1.06rem; line-height: 1.68; }
.guide-article header { margin-bottom: 2.4rem; }
.guide-article h2 { margin-top: 2.35rem; font-size: clamp(1.65rem,3vw,2.3rem); line-height: 1.14; }
.guide-article h3 { margin-top: 1.6rem; font-size: 1.32rem; }
.guide-article p, .guide-article ul, .guide-article ol, .guide-article pre { margin-top: .85rem; }
.guide-article ul, .guide-article ol { padding-left: 1.4rem; }
.guide-article dl { margin-top: 1rem; }
.guide-article dt { margin-top: .75rem; font-weight: 500; }
.guide-article dd { margin-top: .2rem; }
.guide-article li + li { margin-top: .4rem; }
.guide-article figure { margin: 2.25rem auto; max-width: 900px; }
.guide-article figure img { width: 100%; border-radius: 6px; }
.guide-article figcaption { font-size: .93rem; color: #52524c; margin-top: .55rem; }
.guide-article pre { padding: 1.2rem; background: #e7e7e0; border-radius: 6px; overflow-x: auto; white-space: pre; line-height: 1.55; }
.guide-article pre code { padding: 0; background: none; color: var(--ink-2); font-size: .9rem; }
.guide-article section, .guide-article aside { margin-top: 2rem; }
.guide-page footer { margin-top: 3.5rem; padding-top: 1.3rem; border-top: 1px solid var(--rule-2); }
.guide-foot { max-width: none; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 600px) {
  .guide-entry { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.5rem 0; }
  .guide-page .nav-links { gap: 0; }
  .guide-page .nav-links a { padding-inline: 5px; white-space: nowrap; }
  .guide-page .nav-inner { gap: .5rem; }
  .guide-shell, .guide-directory { padding-top: 2rem; }
}
