.docs-home { align-items: center; gap: 1rem; font-size: 1.125rem; text-decoration: none; }
.docs-home:hover span { text-decoration: underline; }
.docs-layout { display: grid; grid-template-columns: 13rem minmax(0, 42rem); align-items: start; gap: clamp(2rem, 4vw, 4rem); }
.docs-layout main { min-width: 0; }
.docs-contents { position: sticky; top: 2rem; font-size: .875rem; }
.docs-contents ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.docs-contents a { display: block; padding: .5rem .75rem; border-left: 2px solid transparent; color: var(--mid); text-decoration: none; }
.docs-contents a:hover { color: var(--ink); background: var(--hover); }
.docs-contents [aria-current="page"] { border-color: var(--ink); background: var(--hover); color: var(--ink); }
.docs-article { line-height: 1.65; overflow-wrap: anywhere; }
.docs-article h1 { margin-bottom: 1.5rem; }
.docs-article p, .docs-article ul, .docs-article ol { margin-block: 1rem; }
.docs-article ul, .docs-article ol { padding-left: 1.5rem; }
.docs-article li + li { margin-top: .5rem; }
.docs-article .callout p { margin: 0; }
.docs-article .docs-topics { list-style: none; padding: 0; margin-top: 2rem; }
.docs-topics li { padding-block: 1rem; border-top: 1px solid var(--line); }
.docs-topics a { font-size: 1.125rem; }
.docs-topics p { margin: .375rem 0 0; color: var(--mid); }
.docs-article table { table-layout: fixed; }
.docs-article th, .docs-article td { vertical-align: top; overflow-wrap: anywhere; }
.docs-article th:first-child { width: 40%; }
.docs-code { position: relative; margin: 1.5rem 0; background: #1d2021; color: #ebdbb2; }
.docs-code figcaption { width: fit-content; padding: .75rem 1rem; border-bottom: 2px solid #a89984; font-family: var(--font-mono); font-size: .8125rem; }
.docs-code > .copy-button { position: absolute; top: .875rem; right: .75rem; margin: 0; color: #ebdbb2; }
.docs-code > .copy-button:hover { color: #fabd2f; }
.docs-code .copy-button__done { color: #b8bb26; }
.docs-code pre { margin: 0; padding: 1rem; overflow-x: auto; counter-reset: line; }
.docs-code pre, .docs-code code { font-family: var(--font-mono); font-size: .8125rem; line-height: 1.75; white-space: pre; overflow-wrap: normal; }
.docs-code pre:focus-visible, .docs-code .copy-button:focus-visible { outline-color: #a89984; }
.docs-code__line { counter-increment: line; }
.docs-code__number { display: inline-block; width: 3ch; margin-right: 1.5ch; color: #a89984; text-align: right; user-select: none; }
.docs-code__number::before { content: counter(line); }
@media (max-width: 767px) {
  .docs-page { --gutter: 16px; }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .docs-contents { position: static; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  .docs-contents ul { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
  .docs-contents a { padding: .25rem 0; border-left: 0; border-bottom: 2px solid transparent; }
}
