/* Reference reading, scoped to the developer documentation. */
.docs-page { padding-top: var(--header-h); }
.docs-page .docs-masthead { padding: 44px 0 28px; border-bottom: 1px solid var(--rule-2); }
.docs-kicker { font: 600 12px/1.5 var(--mono); letter-spacing: .08em; color: var(--ink-3); text-transform: uppercase; }
.docs-page h1 { margin: 10px 0 16px; font: 650 clamp(30px, 4vw, 48px)/1.18 var(--sans); letter-spacing: -.035em; }
.docs-intro { max-width: 74ch; color: var(--ink-2); font-size: 17px; }
.docs-meta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 13px; color: var(--ink-3); }
.docs-meta a { color: var(--ink); text-underline-offset: 3px; }
.docs-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); gap: clamp(28px, 5vw, 76px); align-items: start; padding-top: 32px; padding-bottom: 72px; }
.docs-aside { min-width: 0; position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100dvh - var(--header-h) - 38px); overflow: auto; scrollbar-width: thin; }
.docs-nav summary { padding: 10px 0; font-weight: 650; }
.docs-nav nav { display: grid; gap: 2px; padding: 4px 0 16px; }
.docs-nav a { display: block; padding: 7px 12px; border-left: 2px solid transparent; text-decoration: none; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.docs-nav a:hover, .docs-nav a[aria-current] { color: var(--ink); background: var(--paper-2); border-left-color: var(--sun-deep); }
.docs-nav .docs-nav-title { padding: 12px; font: 600 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.docs-content { min-width: 0; max-width: 990px; }
.docs-section { padding: 28px 0 36px; border-top: 1px solid var(--rule-2); scroll-margin-top: calc(var(--header-h) + 25px); }
.docs-section:first-child { padding-top: 0; border-top: 0; }
.docs-section h2 { font: 650 clamp(24px, 2.2vw, 30px)/1.3 var(--sans); margin: 0 0 18px; letter-spacing: -.025em; }
.docs-section h3 { font: 650 18px/1.4 var(--sans); margin: 24px 0 12px; }
.docs-section p, .docs-section ul, .docs-section ol { margin: 12px 0; color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.docs-section :is(ul,ol) { padding-left: 1.4em; }
.docs-section ul { list-style: disc; }
.docs-section ol { list-style: decimal; }
.docs-section li + li { margin-top: 6px; }
.docs-section a { color: var(--ink); text-underline-offset: 3px; }
.docs-section :not(pre) > code { font: 450 .88em/1.65 var(--mono); background: var(--paper-2); padding: .12em .32em; border-radius: 3px; overflow-wrap: anywhere; }
.docs-callout { margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--sun-deep); background: var(--sun-3); }
.docs-callout p { margin: 0; font-size: 15px; }
.docs-table-scroll { max-width: 100%; overflow-x: auto; margin: 16px 0; border: 1px solid var(--rule-2); border-radius: 6px; scrollbar-width: thin; }
.docs-table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.docs-table th, .docs-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-table th { background: var(--paper-2); font-weight: 650; white-space: nowrap; }
.docs-table td { overflow-wrap: anywhere; }
.docs-table td:first-child { min-width: 125px; }
.docs-table code { font: 400 12px/1.65 var(--mono); }
.doc-code { margin: 16px 0; border: 1px solid #393e45; border-radius: 7px; background: #202328; color: #edf0f3; overflow: hidden; min-width: 0; }
.doc-code figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-bottom: 1px solid #393e45; font: 400 12px/1.5 var(--mono); color: #c7cdd5; }
.doc-code .copy-btn { flex: 0 0 auto; min-width: 62px; padding: 5px 10px; border: 1px solid #66717e; background: #2c323a; color: #fff; box-shadow: none; border-radius: 4px; font: 500 12px/1.5 var(--sans); }
.doc-code .copy-btn:hover { background: #3a4350; }
.doc-code pre { margin: 0; padding: 18px; max-width: 100%; overflow-x: auto; scrollbar-width: thin; tab-size: 2; }
.doc-code pre code { white-space: pre; word-break: normal; overflow-wrap: normal; font: 400 13px/1.75 var(--mono); }
.docs-examples { min-width: 0; margin-top: 18px; }
.docs-examples [role=tablist] { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--rule-2); padding-bottom: 6px; }
.docs-examples [role=tab] { padding: 8px 13px; font: 550 13px/1.4 var(--sans); border-radius: 4px; border: 1px solid transparent; color: var(--ink-3); background: transparent; cursor: pointer; }
.docs-examples [role=tab][aria-selected=true] { color: var(--ink); background: var(--sun); border-color: #c9a82d; }
.docs-examples [role=tabpanel] { min-width: 0; }
.docs-examples [role=tabpanel][hidden] { display: none; }
.docs-code-details { margin-top: 20px; border-top: 1px solid var(--rule-2); }
.docs-code-details summary { padding: 16px 0; font-weight: 600; cursor: pointer; }
.docs-page :is(button,a,summary,[tabindex]):focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }
.docs-small { font-size: 13px !important; color: var(--ink-3) !important; }
.docs-reference-list li { overflow-wrap: anywhere; }
.docs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 901px) { .docs-nav summary { display: none; } }
@media (max-width: 900px) {
  .docs-layout { display: block; padding-top: 0; }
  .docs-aside { z-index: 15; top: var(--header-h); max-height: 62dvh; background: var(--paper); border-bottom: 1px solid var(--rule-2); margin-bottom: 26px; }
  .docs-nav summary { padding: 13px 4px; cursor: pointer; }
  .docs-nav nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 10px; }
  .docs-nav .docs-nav-title { grid-column: 1/-1; }
  .docs-section { scroll-margin-top: calc(var(--header-h) + 75px); }
  .docs-masthead { padding-top: 30px !important; }
}
@media (max-width: 480px) {
  .docs-page h1 { font-size: 30px; }
  .docs-intro { font-size: 15px; }
  .docs-nav a { font-size: 13px; padding: 7px 8px; }
  .docs-section p, .docs-section ul, .docs-section ol { font-size: 15px; }
  .doc-code pre { padding: 14px; }
  .doc-code pre code { font-size: 12px; }
}
