.guide-main { padding-block: var(--space-xl) var(--space-3xl); }
.guide-article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 var(--space-2xl); align-items: start; }
.guide-header { grid-column: 1 / -1; padding-bottom: var(--space-xl); margin-bottom: var(--space-xl); border-bottom: var(--rule); }
.guide-header h1 { max-width: 20ch; font-size: clamp(2.25rem, 6.2vw, 5.75rem); line-height: 0.96; letter-spacing: -0.045em; }
.guide-breadcrumb { margin-bottom: var(--space-md); font-size: var(--text-md); color: var(--color-muted); }
.guide-meta { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.guide-intro { margin-top: var(--space-lg); max-width: 70ch; font-size: var(--text-lg); line-height: 1.6; }
.guide-contents { position: sticky; top: var(--space-lg); max-height: calc(100svh - 48px); overflow-y: auto; }
.guide-contents > p { font: var(--display-weight) 1.375rem/1.2 var(--font-display); }
.guide-contents ul, .guide-related ul { margin: var(--space-sm) 0 0; padding: 0; list-style: none; }
.guide-contents li, .guide-related li { margin-top: var(--space-xs); }
.guide-section { margin-top: var(--space-2xl); scroll-margin-top: var(--space-lg); }
.guide-section h2, .guide-next h2, .guide-related h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); max-width: none; line-height: 1.2; }
.guide-section > p, .guide-next > p { margin-top: var(--space-lg); max-width: 70ch; }
.guide-checks { margin-block: var(--space-md) 0; padding-left: 1.25em; }
.guide-checks li { margin-top: var(--space-sm); padding-left: var(--space-2xs); }
.guide-sources { font-size: var(--text-sm); line-height: 1.65; color: var(--color-muted); }
.guide-sources a, .guide-article code, .guide-article p, .guide-article li { overflow-wrap: anywhere; }
.guide-next { margin-top: var(--space-2xl); padding: var(--space-xl); background: var(--color-field); color: var(--color-field-ink); --color-focus: var(--color-field-ink); }
.guide-next .btn { background: var(--color-paper); color: var(--color-ink); max-width: 100%; white-space: normal; text-align: center; padding-block: var(--space-md); }
.guide-related { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule); }
.guide-list { display: grid; }
.guide-list > article { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 var(--space-2xl); padding-block: var(--space-lg); border-top: var(--rule); }
.guide-list h2 { margin-top: var(--space-sm); max-width: 34ch; font-size: var(--text-2xl); line-height: 1.2; }
.guide-list article > p:not(.guide-meta) { margin-block: var(--space-md); }
@media (max-width: 40rem) {
  .guide-main { padding-top: var(--space-xl); }
  .guide-intro { font-size: 1.125rem; }
  .guide-next { padding: var(--space-lg); }
}
.guide-figure { margin: var(--space-xl) 0; }
.guide-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--color-rule);  }
.guide-figure figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); line-height: 1.6; }
.guide-table { margin-block: var(--space-lg); overflow-x: auto; }
.guide-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.6; }
.guide-table th, .guide-table td { padding: var(--space-md); border: 1px solid var(--color-rule); text-align: left; vertical-align: top; min-width: 10rem; }
.guide-table thead { background: var(--color-paper-2); }
.guide-code { margin-top: var(--space-lg); min-width: 0; }
.guide-code > p { font-weight: 500; margin-bottom: var(--space-sm); }
.guide-code pre { max-width: 100%; overflow-x: auto; padding: var(--space-lg); background: var(--color-paper-2); border: 1px solid var(--color-rule);  font-size: 0.875rem; line-height: 1.6; tab-size: 4; }
.guide-code code { white-space: pre; overflow-wrap: normal; }
.guide-offer { margin-top: var(--space-2xl); padding-block: var(--space-lg); border-block: var(--rule); }
.guide-offer h2, .guide-faq h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.2; max-width: none; }
.guide-offer p { margin-top: var(--space-md); }
.guide-offer .btn { max-width: 100%; white-space: normal; text-align: center; }
.guide-faq { margin-top: var(--space-2xl); }
.guide-faq details { border-bottom: var(--rule); padding-block: var(--space-md); }
.guide-faq summary { cursor: pointer; font-weight: 500; font-size: var(--text-lg); }
.guide-faq details p { margin-top: var(--space-md); }
.guide-table:focus-visible, .guide-code pre:focus-visible, .guide-faq summary:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 4px; }
@media (max-width: 40rem) { .guide-code pre { padding: var(--space-md); } }
.guide-example-notice { margin-top: var(--space-lg); font-size: var(--text-sm); line-height: 1.6; color: var(--color-muted); }
.guide-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.guide-comparison > div > p { margin-bottom: var(--space-sm); font-weight: 500; }
.guide-body { min-width: 0; max-width: 72ch; }
.guide-body > :first-child { margin-top: 0; }
.guide-next .guide-sources { color: inherit; }
.guide-list > article > * { grid-column: 2; }
.guide-list > article > .guide-meta { grid-column: 1; grid-row: 1; margin-top: var(--space-sm); }
.guide-list > article > .link { justify-self: start; }
.guide-faq summary { list-style: square; }
@media (max-width: 60rem) {
  .guide-article, .guide-list > article { grid-template-columns: minmax(0, 1fr); }
  .guide-list > article > *, .guide-list > article > .guide-meta { grid-column: 1; grid-row: auto; }
  .guide-contents { position: static; max-height: none; margin-bottom: var(--space-xl); }
}
.guide-header:has(+ .guide-list) { margin-bottom: 0; }
