.docs {
    padding-top: 1.5rem;
    padding-bottom: var(--band);
}

.docs-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.docs-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: var(--text-small);
    line-height: var(--leading);
}

.docs-crumbs li + li::before {
    content: '/';
    margin: 0 0.5rem;
}

.docs-crumbs a {
    color: var(--muted);
    transition: color 0.18s var(--ease);
}

.docs-crumbs a:hover {
    color: var(--accent-ink);
}

.docs-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    width: 100%;
}

.docs-search .input::-webkit-search-decoration {
    -webkit-appearance: none;
}

.docs-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    overflow: hidden;
    background: var(--tint);
    color: var(--accent-ink);
}

.docs-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.docs-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.docs-home-head {
    max-width: var(--measure);
    margin-bottom: var(--space-xl);
}

.docs-home-head > * + * {
    margin-top: 1rem;
}

.docs-home-head > .docs-search {
    margin-top: 2rem;
}

.docs-sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--gap);
}

.docs-section {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 1rem;
    height: 100%;
    padding: 1.25rem;
    background: var(--bg-alt);
    transition: background-color 0.18s var(--ease);
}

.docs-section:hover {
    background: var(--tint);
}

.docs-section-title {
    display: block;
    color: var(--ink);
    font-size: var(--text-title);
    font-weight: 600;
    line-height: var(--leading-tight);
}

.docs-section-summary {
    display: block;
    margin-top: 0.375rem;
    color: var(--muted);
    font-size: var(--text-small);
    line-height: var(--leading);
}

.docs-home-more {
    margin-top: var(--space-xl);
}

.docs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.docs-main {
    min-width: 0;
}

.docs-sidebar,
.docs-outline {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header) + 1.5rem);
    align-self: start;
    max-height: calc(100vh - var(--header) - 3rem);
    overflow-y: auto;
    padding-bottom: 1.5rem;
}

.docs-menu {
    margin-bottom: 2rem;
}

.docs-sidebar .docs-nav {
    margin-left: -0.625rem;
}

.docs-menu .faq-answer {
    color: var(--ink);
}

.docs-nav {
    font-size: var(--text-small);
    line-height: var(--leading);
}

.docs-nav a {
    display: block;
    padding: 0.375rem 0.625rem;
    color: var(--muted);
    transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.docs-nav a:hover {
    background: var(--bg-alt);
    color: var(--ink);
}

.docs-nav a[aria-current='page'] {
    background: var(--tint);
    color: var(--ink);
    font-weight: 600;
}

.docs-nav .docs-nav-head {
    display: flex;
    align-items: center;
    color: var(--ink);
    font-size: var(--text-body);
    font-weight: 600;
}

.docs-nav-head .docs-icon {
    width: 2rem;
    height: 2rem;
    margin-right: 0.75rem;
}

.docs-nav-head .docs-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.docs-nav-group {
    margin-top: 1.25rem;
    padding: 0.375rem 0.625rem;
    color: var(--ink);
    font-weight: 600;
}

.docs-outline {
    display: none;
    font-size: var(--text-small);
    line-height: var(--leading);
}

.docs-outline-title {
    margin-bottom: 0.5rem;
    color: var(--ink);
    font-weight: 600;
}

.docs-outline a {
    display: block;
    padding: 0.25rem 0;
    color: var(--muted);
    transition: color 0.18s var(--ease);
}

.docs-outline a:hover {
    color: var(--accent-ink);
}

.docs-outline .docs-outline-sub a {
    padding-left: 0.875rem;
}

.docs-outline code {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

.docs-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
    margin-top: var(--space-xl);
}

.docs-pager a {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--bg-alt);
    line-height: var(--leading);
    transition: background-color 0.18s var(--ease);
}

.docs-pager a:hover {
    background: var(--tint);
}

.docs-pager span {
    display: block;
}

.docs-pager-label {
    color: var(--accent-ink);
    font-weight: 600;
    overflow-wrap: break-word;
}

.docs-pager-next {
    grid-column: 2;
    text-align: right;
}

.docs-results-page {
    max-width: var(--measure);
}

.docs-results-page > * + * {
    margin-top: 1rem;
}

.docs-results {
    margin-top: 2rem;
}

.docs-results > li + li {
    margin-top: 1.75rem;
}

.docs-results p {
    margin-top: 0.25rem;
    overflow-wrap: break-word;
}

.docs-result-title {
    color: var(--ink);
    font-size: var(--text-title);
    font-weight: 600;
    line-height: var(--leading-tight);
    overflow-wrap: break-word;
}

.docs-result-title:hover {
    color: var(--accent-ink);
}

.docs mark {
    background: var(--warning-soft);
    color: var(--ink);
}

.doc {
    color: var(--muted);
    font-size: var(--text-body);
    line-height: var(--leading-loose);
    overflow-wrap: break-word;
}

.doc > * + *,
.doc li > * + *,
.doc blockquote > * + *,
.doc .faq-answer > * + * {
    margin-top: 1.25em;
}

.doc [id] {
    scroll-margin-top: calc(var(--header) + 1.5rem);
}

.doc h1,
.doc h2 {
    margin-top: 2em;
    font-size: var(--text-title);
    line-height: var(--leading-tight);
    letter-spacing: -0.018em;
}

.doc h1 {
    font-size: var(--text-heading);
}

.doc h3 {
    margin-top: 1.75em;
    font-size: var(--text-lead);
    line-height: var(--leading-tight);
}

.doc h4 {
    margin-top: 1.5em;
    font-size: var(--text-body);
}

.doc > :first-child {
    margin-top: 0;
}

.doc h2 + *,
.doc h3 + *,
.doc h4 + * {
    margin-top: 0.75em;
}

.doc small {
    color: var(--muted);
    font-size: var(--text-small);
    font-weight: 400;
    letter-spacing: 0;
}

.doc a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.doc a:hover {
    color: var(--ink);
}

.doc ul,
.doc ol {
    padding-left: 1.375em;
}

.doc ul {
    list-style: disc;
}

.doc ol {
    list-style: decimal;
}

.doc li + li,
.doc li > ul,
.doc li > ol {
    margin-top: 0.5em;
}

.doc li::marker {
    color: var(--accent-ink);
}

.doc blockquote {
    padding: 1.25rem 1.5rem;
    background: var(--tint);
    font-style: italic;
}

.doc code {
    padding: 0.125rem 0.375rem;
    background: var(--tint);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.875em;
}

.doc strong {
    color: var(--ink);
}

.doc :not(pre) > code {
    overflow-wrap: break-word;
    word-break: break-word;
}

.doc hr {
    margin: 2.5em 0;
}

.doc .image-link {
    width: -moz-fit-content;
    width: fit-content;
    max-width: 100%;
}

.doc .notice {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--ink);
}

.doc .notice > * + *,
.doc .notice li > * + *,
.doc .card > * + * {
    margin-top: 0.75em;
}

.doc .notice a {
    color: inherit;
}

.doc .notice-title {
    font-weight: 600;
}

.doc .notice[data-tone='success'] .notice-title {
    color: var(--success);
}

.doc .notice[data-tone='warning'] .notice-title {
    color: var(--warning);
}

.doc .notice[data-tone='error'] .notice-title {
    color: var(--danger);
}

.doc .notice code,
.doc .notice .code,
.doc .notice .faq-item {
    background: var(--bg);
}

.doc .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.doc table {
    width: 100%;
    font-size: var(--text-small);
    line-height: var(--leading);
}

.doc th,
.doc td {
    padding: 0.625rem 0.875rem;
    text-align: left;
    vertical-align: top;
}

.doc td code {
    word-break: normal;
}

.doc th {
    color: var(--ink);
    font-weight: 600;
}

.doc tbody tr:nth-child(odd) {
    background: var(--bg-alt);
}

.doc .card {
    padding: 1.25rem;
}

.doc .card > :first-child {
    margin-top: 0;
}

.doc .wide {
    grid-column: 1 / -1;
}

.doc .sign {
    width: 13rem;
    max-width: 100%;
    padding: 0.75rem 1rem;
    background: var(--tint);
    font-family: var(--font-mono);
    font-size: var(--text-small);
    line-height: var(--leading);
    text-align: center;
}

.doc .sign > p {
    min-height: 1.5em;
}

.doc dt {
    font-weight: 600;
}

.doc dd {
    margin-top: 0.25rem;
}

.doc dd + dt {
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .docs-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .docs-bar {
        grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    }
}

@media (min-width: 1024px) {
    .docs-layout {
        grid-template-columns: 13rem minmax(0, var(--measure));
        column-gap: 3rem;
    }
}

@media (min-width: 1280px) {
    .docs-layout {
        grid-template-columns: 13rem minmax(0, var(--measure)) 12rem;
        justify-content: space-between;
    }

    .docs-outline {
        display: block;
    }
}

@media (max-width: 1023px) {
    .docs-nav a {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}
