.docs-page { --docs-section-gap: 48px; max-width: 1320px; }
.docs-layout { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; padding-block: 16px 32px; }
.docs-sidebar { position: sticky; top: 28px; max-height: calc(100svh - 56px); overflow-y: auto; }
.contents { display: block; font-family: 'IBM Plex Mono', 'Courier New', monospace; font-size: .875rem; font-weight: 400; letter-spacing: 0; line-height: 1.5; text-transform: none; }
.contents a { display: flex; width: fit-content; min-height: 40px; color: var(--secondary); }
.contents a[aria-current="location"] { color: var(--acid); }
.contents-label { margin: 12px 0 4px; color: var(--muted); font-size: .6875rem; letter-spacing: .07em; text-transform: uppercase; }
.contents-label:first-child { margin-top: 0; }
.docs-content { min-width: 0; width: 100%; max-width: 82ch; }
.doc-section { scroll-margin-block-start: 28px; }
.doc-section + .doc-section { margin-top: var(--docs-section-gap); }
.doc-section > :last-child { margin-bottom: 0; }
.docs-content:focus, .doc-section:focus { outline: none; }
.docs-content h1 { font-size: clamp(2.75rem, 4vw, 3.5rem); line-height: 1.13; letter-spacing: -.055em; margin-bottom: 24px; }
.docs-content h2 { font-family: Oswald, 'Arial Narrow', sans-serif; font-size: 2rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; text-transform: uppercase; margin: 0 0 20px; overflow-wrap: anywhere; }
.docs-content h3 { font: inherit; font-size: 1.125rem; line-height: 1.5; margin: 28px 0 12px; }
.docs-content p, .docs-content dd { font-size: .9375rem; line-height: 1.8; color: var(--secondary); overflow-wrap: anywhere; }
.docs-content p { margin: 0 0 12px; }
.docs-content .doc-section > p:not(.docs-lead) { max-width: 68ch; text-wrap: pretty; }
.docs-content .eyebrow { color: var(--acid); font-size: .6875rem; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.eyebrow span { color: var(--muted); }
.docs-content .docs-lead { max-width: 57ch; font-size: 1rem; line-height: 1.8; }
.docs-content a, .docs-footer a { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.docs-content a { color: var(--paper); }
.docs-content code { font: inherit; color: var(--paper); }
.concepts { margin: 18px 0 16px; }
.concepts > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; margin-top: 8px; }
.concepts dt { font-size: .875rem; line-height: 1.8; }
.concepts dd { margin: 0; font-size: .875rem; }
.docs-content .fine-print { font-size: .8125rem; line-height: 1.8; color: var(--muted); }
.code-example { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: start; column-gap: 16px; margin: 12px 0 16px; }
.code-example pre { min-width: 0; font: inherit; font-size: .8125rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; direction: ltr; text-align: start; }
.code-example:has(.copy-button[hidden]) { grid-template-columns: minmax(0, 1fr); }
.copy-button { min-height: 44px; margin-block-start: -10px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: .75rem; line-height: 1.5; text-decoration: underline; text-underline-offset: .25em; }
.reference-list { margin: 24px 0; }
.reference-list > div { margin-bottom: 24px; }
.reference-list > div:last-child { margin-bottom: 0; }
.reference-list dt { font-size: 1rem; line-height: 1.5; margin-bottom: 8px; overflow-wrap: anywhere; }
.reference-list dt code { color: var(--acid); }
.reference-list dd { max-width: 68ch; margin: 0; font-size: .875rem; text-wrap: pretty; }
.method { color: var(--muted); font-size: .75rem; }
.status-list { margin: 24px 0; }
.status-list > div { display: grid; grid-template-columns: 3ch minmax(0, 1fr); gap: 16px; margin-bottom: 12px; }
.status-list dt { color: var(--paper); font-size: .875rem; line-height: 1.8; }
.status-list dd { margin: 0; font-size: .875rem; }
.docs-content .source-link { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .8125rem; }
.source-link a { display: inline-flex; align-items: center; min-height: 44px; }
.docs-content .back-top { display: inline-flex; min-height: 44px; align-items: center; font-size: .8125rem; color: var(--acid); }
.docs-footer { padding-inline-start: calc(184px + clamp(40px, 6vw, 88px)); }
.docs-menu { display: none; }
.docs-reference .code-example { column-gap: 24px; margin-block: 20px; }
.docs-reference .code-example pre { font-size: .875rem; line-height: 1.8; }
.docs-reference :is(p, dd) code, .docs-reference .code-phrase { display: inline-block; max-inline-size: 100%; vertical-align: top; }
.docs-reference .code-phrase { overflow-wrap: normal; }
.docs-reference .code-phrase code { display: inline; overflow-wrap: anywhere; }
.guide-page { --guide-body-size: .875rem; --guide-caption-size: .75rem; }
.docs-guide { container-type: inline-size; }
.guide-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; list-style: none; margin: 32px 0 16px; padding: 0; }
.flow-step { min-width: 0; scroll-margin-block-start: 28px; }
.flow-step:focus { outline: none; }
.flow-heading { display: flex; align-items: baseline; gap: 10px; }
.flow-heading > span { color: var(--acid); font-size: .75rem; }
.docs-guide .flow-heading h2 { font-size: 1.5rem; margin: 0; text-wrap: balance; }
/* Caption order follows the directional SVG, including in mirrored layouts. */
.flow-visual { max-width: 13.75rem; margin: 20px 0; direction: ltr; }
.flow-visual svg { display: block; width: 100%; height: auto; }
.diagram-line, .diagram-accent { fill: none; stroke: var(--paper); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.diagram-accent { stroke: var(--acid); }
.flow-visual figcaption { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: var(--guide-caption-size); line-height: 1.6; }
.flow-visual figcaption span { min-width: 0; overflow-wrap: anywhere; }
.docs-guide .flow-step p { font-size: var(--guide-body-size); line-height: 1.8; margin: 0; text-wrap: pretty; }
.visibility-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin: 24px 0; }
.visibility-map h3 { margin: 0 0 12px; font-size: var(--guide-body-size); }
.visibility-map ul { list-style: none; margin: 0; padding: 0; }
.visibility-map li { font-size: .875rem; line-height: 1.8; color: var(--secondary); overflow-wrap: anywhere; }
.visibility-map li + li { margin-top: 4px; }
.visibility-map li::before { content: '— '; color: var(--acid); }
.hosting-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 24px; align-items: start; }
.hosting-option { min-width: 0; }
.hosting-option h3 { margin: 0 0 12px; font-size: 1.125rem; }
.docs-guide .hosting-option p { font-size: var(--guide-body-size); line-height: 1.8; }
.hosting-option > .setup-details { margin-top: 20px; }
.docs-guide .endpoint-address { color: var(--acid); font-size: .8125rem; margin-bottom: 8px; }
.setup-details summary { width: fit-content; max-width: 100%; min-height: 44px; padding-block: 10px; cursor: pointer; color: var(--acid); font-size: .8125rem; line-height: 1.8; text-decoration: underline; text-underline-offset: .25em; overflow-wrap: anywhere; }
.setup-details summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.setup-body { padding-block: 8px; }
.hosting-option .code-example { display: flex; flex-direction: column; }
.hosting-option .copy-button { align-self: flex-end; margin-block-start: 0; }
.docs-guide .setup-body .fine-print { font-size: .8125rem; }
.shared-commands { margin-top: 24px; }
.docs-content .inline-action { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; }
.docs-guide .guide-reference h2 { font-size: 1.375rem; margin-bottom: 4px; }
.reference-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.reference-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; scroll-margin-block-start: 28px; }
.contents .guide-return { color: var(--acid); margin-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (hover: hover) and (pointer: fine) {
  .docs-content a:hover, .copy-button:hover, .docs-footer a:hover { color: var(--acid); }
}
@media (max-width: 800px) {
  .docs-layout { display: block; padding-block: 0 24px; }
  .docs-sidebar { display: none; }
  .docs-content { max-width: 100%; }
  .docs-menu { display: block; margin-bottom: 24px; }
  .docs-menu summary { width: fit-content; min-height: 44px; padding-block: 12px; font-size: .8125rem; color: var(--acid); cursor: pointer; }
  .docs-menu summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
  .docs-menu .contents { margin: 8px 0 12px; }
  .docs-menu .contents a { min-height: 44px; text-decoration: none; }
  .docs-footer { padding-inline-start: 0; }
}
@media (max-width: 600px) {
  .docs-content h1 { font-size: clamp(1.875rem, 9vw, 2.5rem); }
  .docs-content h2 { font-size: 1.875rem; }
  .concepts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-top: 12px; }
  .docs-content .docs-lead { font-size: .9375rem; }
  .docs-content p, .docs-content dd { font-size: .875rem; }
  .code-example pre { font-size: .75rem; }
  .code-example { display: flex; flex-direction: column; }
  .copy-button { align-self: flex-end; margin-block-start: 0; }
}
@container (max-width: 44rem) {
  .guide-flow { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .flow-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 24px; align-items: center; }
  .flow-heading { grid-column: 1 / -1; }
  .flow-visual { margin: 0; }
}
@container (max-width: 34rem) {
  .hosting-options { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@container (max-width: 30rem) {
  .flow-step { display: block; }
  .flow-visual { margin: 16px 0 20px; }
  .visibility-map { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
