.guide-layout { max-width: var(--page); margin: 60px auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.guide-sidebar { align-self: start; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 4px 8px 8px 4px; font-size: 15px; }
.guide-label { color: var(--ink-2); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.guide-pages { display: flex; flex-direction: column; gap: 10px; }
.guide-pages a { padding: 6px 10px; border-radius: 5px; }
.guide-pages [aria-current='page'] { background: var(--green-soft); color: var(--green-ink); font-weight: 600; }
.guide-contents { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.guide-contents p { font-size: 13px; color: var(--ink-2); }
.guide-contents ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guide-contents a { color: var(--ink-2); }
.guide-main { min-width: 0; }
.guide-heading h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 24px; }
.release { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; }
.release a { font-family: var(--mono); }
.guide-note { padding: 16px 18px; background: var(--green-soft); border-left: 3px solid var(--green); font-size: 15px; }
.guide-section { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 24px; overflow-wrap: anywhere; }
.guide-section h2 { font-size: 28px; margin-bottom: 24px; }
.guide-section h2 a { color: var(--ink); text-decoration: none; }
.guide-section p, .guide-section li { color: var(--ink-2); }
.guide-section li + li { margin-top: 8px; }
.guide-section strong { color: var(--ink); }
.guide-section a { text-decoration: underline; text-underline-offset: .16em; }
.guide-code { margin: 20px 0; background: var(--term); color: var(--term-text); border-radius: 8px; padding: 50px 18px 16px; position: relative; }
.guide-code pre { white-space: pre; overflow-x: auto; padding-bottom: 4px; }
.guide-code .copy { max-width: calc(100% - 20px); }
.copy-status { display: block; color: var(--term-text); font-size: 13px; }
.copy-status:empty { display: none; }
.copy-status:not(:empty) { margin-top: 12px; }
.guide-table { overflow-x: auto; margin: 24px 0; }
.guide-table table { min-width: 540px; }
.guide-table th { color: var(--ink-2); }
.guide-table th, .guide-table td { padding: 12px 16px; vertical-align: top; overflow-wrap: normal; }
.guide-table code { white-space: nowrap; }
.guide-section blockquote { margin: 24px 0; padding: 16px 18px; background: var(--green-soft); border-left: 3px solid var(--green); }
.guide-section blockquote p { color: var(--ink); }
.guide-section blockquote > :last-child { margin-bottom: 0; }
.guide-section h3 { margin: 32px 0 12px; }
.guide-bottom { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 24px; flex-direction: row; flex-wrap: wrap; }
.guide-page .foot { margin-top: 72px; }
@media (max-width: 800px) {
  .guide-layout { display: block; margin-top: 36px; }
  .guide-sidebar { position: static; max-height: none; margin-bottom: 36px; padding: 0; }
  .guide-pages { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .guide-contents ol { display: flex; flex-wrap: wrap; gap: 12px 20px; }
  .guide-contents { margin-top: 16px; padding-top: 16px; }
  .guide-section { margin-top: 40px; }
}
@media (max-width: 600px) {
  .guide-page .top nav a:nth-child(1) { display: inline; }
  /* Stack table rows: the first cell leads, and wider tables label the rest with their column. */
  .guide-table table { min-width: 0; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .guide-table tr, .guide-table td { display: block; }
  .guide-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .guide-table td { padding: 2px 0; border: 0; }
  .guide-table td:empty { display: none; }
  .guide-table td:first-child { color: var(--ink); font-weight: 600; padding-bottom: 4px; }
  .guide-table tr:has(td:nth-child(3)) td:not(:first-child)::before { content: attr(data-label) ": "; color: var(--ink-2); font-weight: 600; }
}
