/* Guide styles stay scoped so the product landing can evolve independently. */
.guide-page {
  --guide-paper: var(--paper);
  --guide-ink: var(--ink);
  --guide-muted: var(--muted);
  --guide-teal: var(--green);
  --guide-line: var(--line);
  --guide-surface: var(--soft);
  margin: 0;
  color: var(--guide-ink);
  background: var(--guide-paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.guide-page *, .guide-page *::before, .guide-page *::after { box-sizing: border-box; }
.guide-page a { color: var(--guide-teal); text-underline-offset: .2em; }
.guide-page a:hover { text-decoration-thickness: 2px; }
.guide-page :is(a, button, [tabindex]):focus-visible { outline: 3px solid var(--guide-teal); outline-offset: 4px; }
.guide-page .guide-skip { position: absolute; left: 16px; top: 8px; padding: 12px 16px; background: var(--guide-ink); color: var(--guide-paper); transform: translateY(-150%); z-index: 20; }
.guide-page .guide-skip:focus { transform: none; }
.guide-page .guide-site-header { border-bottom: 1px solid var(--guide-line); }
.guide-page .guide-header-inner { width: min(1160px, calc(100% - 64px)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-block: 24px; }
.guide-page .guide-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--guide-ink); font-size: 20px; font-weight: 730; line-height: 1.3; text-decoration: none; letter-spacing: -.035em; }
.guide-page .guide-brand-symbol { width: 36px; height: 36px; flex: 0 0 auto; color: var(--guide-teal); }
.guide-page .guide-brand-name { display: block; min-width: 0; }
.guide-page .guide-brand-name small { display: block; margin-top: 6px; font-size: 12px; font-weight: 450; letter-spacing: 0; color: var(--guide-muted); }
.guide-page .guide-header-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 24px; }
.guide-page .guide-header-inner nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 550; text-decoration: none; }
.guide-page .page-shell { width: min(1160px, calc(100% - 64px)); padding: 0; margin: 0 auto; }
.guide-page .guide-breadcrumbs { margin-block: 30px 26px; color: var(--guide-muted); font-size: 13px; }
.guide-page .guide-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 0; margin: 0; }
.guide-page .guide-breadcrumbs li + li::before { content: "/"; padding-right: 10px; color: var(--guide-muted); }
.guide-page .guide-heading { max-width: 940px; padding: 0 0 36px; border-bottom: 1px solid var(--guide-line); margin: 0; }
.guide-page .guide-heading h1 { font-size: clamp(32px, 4.3vw, 54px); line-height: 1.12; letter-spacing: -.045em; font-weight: 700; margin: 0; max-width: 20ch; overflow-wrap: anywhere; hyphens: auto; }
.guide-page .guide-breadcrumbs li { margin: 0; }
.guide-page .guide-heading > p { font-size: 18px; line-height: 1.65; color: var(--guide-muted); max-width: 75ch; margin: 22px 0 0; }
.guide-page .guide-heading .guide-author { font-size: 12px; line-height: 1.6; margin-top: 18px; }
.guide-page .guide-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; color: var(--guide-teal); font-size: 13px; font-weight: 550; }
.guide-page .guide-layout { display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 76px); padding-block: 40px 64px; }
.guide-page .guide-toc { position: sticky; top: 24px; padding-left: 18px; border-left: 2px solid var(--guide-line); font-size: 14px; }
.guide-page .guide-toc > p { font-weight: 650; margin: 0 0 12px; }
.guide-page .guide-toc ul { list-style: none; padding: 0; margin: 0; }
.guide-page .guide-toc a { display: block; min-height: 44px; padding-block: 10px; line-height: 1.5; text-decoration: none; }
.guide-page .guide-content { min-width: 0; width: 100%; max-width: 800px; overflow-wrap: anywhere; margin: 0; }
.guide-page .guide-content :is(section, h2, h3) { scroll-margin-top: 24px; }
.guide-page .guide-content section { margin: 0; padding: 0; }
.guide-page .guide-content section + section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--guide-line); }
.guide-page .guide-content h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.025em; font-weight: 650; margin: 0 0 20px; }
.guide-page .guide-content h3 { font-size: 20px; line-height: 1.35; margin: 28px 0 14px; }
.guide-page .guide-content p { margin: 0 0 18px; }
.guide-page .guide-content :is(ul, ol) { padding-left: 1.4em; margin: 18px 0 24px; }
.guide-page .guide-content li { padding-left: 5px; }
.guide-page .guide-content li + li { margin-top: 14px; }
.guide-page .guide-content li::marker { color: var(--guide-teal); }
.guide-page .guide-content dl { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px 18px; margin: 24px 0; }
.guide-page .guide-content :is(dt, dd) { margin: 0; }
.guide-page .guide-content dt { font-weight: 650; color: var(--guide-teal); }
.guide-page .guide-content code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .88em; overflow-wrap: anywhere; }
.guide-page .guide-content :is(p, li) code { color: var(--guide-teal); }
.guide-page .guide-code { min-width: 0; max-width: 100%; padding: 20px; margin-block: 20px; border: 1px solid var(--guide-line); background: var(--white); color: var(--guide-ink); font-size: 13px; line-height: 1.65; white-space: pre; overflow-x: auto; tab-size: 2; }
.guide-page .guide-code code { font-size: inherit; color: inherit; overflow-wrap: normal; }
.guide-page .guide-content .guide-note { padding: 18px 22px; margin-block: 24px; border-left: 3px solid var(--guide-teal); background: var(--guide-surface); font-size: 14px; }
.guide-page .guide-content .guide-warning { border-left-color: #9b5d28; }
.guide-page .guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-block: 24px; }
.guide-page .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: 100%; border: 1px solid var(--guide-teal); padding: 12px 20px; background: transparent; color: var(--guide-teal); font-size: 14px; line-height: 1.4; font-weight: 600; text-decoration: none; border-radius: 6px; }
.guide-page .button--primary { background: var(--guide-teal); color: var(--on-green); }
.guide-page .button:hover { background: var(--guide-ink); color: var(--paper); border-color: var(--guide-ink); }
.guide-page .guide-source-list { font-size: 14px; }
.guide-page .guide-content .guide-next { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--guide-line); }
.guide-page .document-footer { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; padding-block: 0 48px; }
.guide-page .guide-site-footer { border-top: 1px solid var(--guide-line); background: var(--soft); }
.guide-page .guide-site-footer > div { width: min(1160px, calc(100% - 64px)); margin-inline: auto; padding-block: 32px; }
.guide-page .guide-site-footer p { margin: 0 0 16px; font-size: 14px; }
.guide-page .guide-site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.guide-page .guide-site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; }
.guide-page .guide-site-footer .guide-footer-note { color: var(--guide-muted); font-size: 12px; margin: 14px 0 0; }
/* Keep the theme menu against the right edge when navigation needs a new row. */
@media (min-width: 481px) and (max-width: 1100px) {
  .guide-page .guide-header-inner { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:12px 24px; }
  .guide-page .guide-brand { grid-column:1; grid-row:1; }
  .guide-page .guide-header-inner .theme-control { grid-column:2; grid-row:1; }
  .guide-page .guide-header-inner nav { grid-column:1 / -1; }
}
@media (max-width: 760px) {
  .guide-page .guide-header-inner, .guide-page .page-shell, .guide-page .guide-site-footer > div { width: calc(100% - 40px); }
  .guide-page .guide-header-inner { gap: 14px; padding-block: 20px; }
  .guide-page .guide-header-inner nav { gap: 0 20px; }
  .guide-page .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px 48px; }
  .guide-page .guide-toc { position: static; border-left: 0; border-bottom: 1px solid var(--guide-line); padding: 0 0 18px; }
  .guide-page .guide-toc ul { display: flex; flex-wrap: wrap; gap: 0 20px; }
  .guide-page .guide-heading { padding-bottom: 28px; }
  .guide-page .guide-heading > p { font-size: 16px; }
  .guide-page .guide-heading .guide-author { font-size: 12px; }
  .guide-page .guide-breadcrumbs { margin-block: 24px; }
  .guide-page .guide-content section + section { margin-top: 30px; padding-top: 28px; }
  .guide-page .guide-code { padding: 14px; font-size: 12px; }
  .guide-page .guide-content .guide-note { padding: 16px; }
  .guide-page .guide-content dl { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 360px) {
  .guide-page .guide-header-inner, .guide-page .page-shell, .guide-page .guide-site-footer > div { width: calc(100% - 32px); }
  .guide-page .guide-heading h1 { font-size: 30px; }
  .guide-page .guide-header-inner nav { gap: 0 16px; }
}
@media (max-width: 480px) {
  .guide-page .guide-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; }
  .guide-page .guide-brand { grid-column: 1; grid-row: 1; font-size: 18px; }
  .guide-page .guide-brand-symbol { width: 28px; height: 28px; }
  .guide-page .guide-header-inner .theme-control { grid-column: 2; grid-row: 1; }
  .guide-page .guide-header-inner nav { grid-column: 1 / -1; gap: 0 18px; }
}
@media print {
  .guide-page { background: white; color: black; font-size: 11pt; }
  .guide-page .guide-layout { display: block; }
  .guide-page :is(.guide-site-header, .guide-toc, .guide-site-footer, .guide-skip) { display: none; }
  .guide-page .page-shell { width: 100%; }
  .guide-page .guide-code { white-space: pre-wrap; overflow-wrap: anywhere; }
}
