.docs-page { background: #fffaf6; }
.docs-frame { width: min(calc(100% - 48px), 1120px); margin-inline: auto; }
.docs-header { border-block-end: 1px solid var(--border); background: #fcf0e8; }
.docs-header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.docs-header-inner > .button { justify-self: start; padding-inline: 16px; }
.docs-header .brand { margin: 0; font-size: 32px; }
.docs-home { display: flex; align-items: center; gap: 8px; color: var(--accent-dark); font-weight: 780; }
.docs-home .icon { font-size: 22px; }

.docs-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: clamp(24px, 5vw, 75px); padding-block: 48px 80px; }
.docs-sidebar { position: sticky; top: 24px; align-self: start; padding: 18px 14px; border: 1px solid #efdbce; border-radius: 17px; background: #fcf1e9; }
.docs-sidebar ul { display: grid; gap: 4px; padding: 0; margin: 0; list-style: none; }
.docs-sidebar li[hidden] { display: none; }
.docs-sidebar a { display: block; padding: 8px 11px; border-radius: 8px; }
.docs-sidebar a:hover { background: #fbe5d6; }
.docs-sidebar a[aria-current] { background: #f9dfcf; color: var(--accent-dark); font-weight: 750; }
.docs-search { margin-block-end: 12px; }
.docs-search label { display: block; margin-block-end: 6px; color: var(--muted); font-size: .88rem; }
.docs-search input { width: 100%; padding: 9px 10px; border: 1px solid #d5afa0; border-radius: 9px; font: inherit; background: #fffaf6; color: var(--ink); }
.docs-sidebar [role="status"] { padding: 9px 10px; font-size: .9rem; }
.docs-title { padding: 0 0 20px; border-bottom: 1px solid #eddbd0; }
.docs-title h1 { font-size: clamp(31px, 5vw, 48px); line-height: 1.25; font-weight: 900; }
.docs-title p { margin-block-start: 10px; color: var(--muted); font-size: 1.04rem; }
.docs-toc { display: flex; flex-wrap: wrap; gap: 7px; padding-block: 15px 7px; }
.docs-toc a { padding: 5px 12px; border: 1px solid #efdbce; border-radius: 99px; color: var(--accent-dark); font-size: .9rem; }
.docs-toc a:hover { background: #fae7da; }
.docs-prose { line-height: 1.95; }
.docs-prose :is(pre, code) { font-family: inherit; }
.docs-prose section { margin-block-start: 30px; }
.docs-prose h2 { font-size: clamp(21px, 3.5vw, 28px); line-height: 1.4; font-weight: 850; }
.docs-prose h3 { margin-block-start: 18px; font-size: 1.18rem; }
.docs-prose :is(p, ul, ol) { margin-block: 10px; }
.docs-prose :is(ul, ol) { padding-inline-start: 23px; }
.docs-prose li + li { margin-block-start: 4px; }
.docs-prose p a:not(.button) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .2em; }
.docs-prose .button { white-space: normal; }
.docs-note { padding: 13px 15px; border-inline-start: 3px solid #db4804; border-radius: 10px; background: #fbe7d9; }
.docs-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block-start: 14px; }
.docs-paths a, .docs-pagination a { display: grid; padding: 14px 16px; border: 1px solid #efdbce; border-radius: 12px; background: #fcf1e9; }
.docs-paths a:hover, .docs-pagination a:hover { border-color: #d99774; }
.docs-paths a span, .docs-pagination small { color: var(--muted); font-size: .9rem; }

.docs-prose :not(pre) > code { display: inline-block; vertical-align: baseline; padding-inline: 5px; max-width: 100%; overflow-wrap: anywhere; border-radius: 4px; background: #f2e7de; font-size: .87em; }
.docs-code { margin: 13px 0; overflow: hidden; border: 1px solid #473a34; border-radius: 12px; background: #241e1b; color: #fff2e8; }
.docs-code figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 43px; padding: 6px 12px; border-bottom: 1px solid #52453e; font-size: .9rem; }
.docs-copy { padding: 2px 9px; border: 1px solid #927260; border-radius: 6px; background: #382c26; }
.docs-copy:hover { background: #614737; }
.docs-copy:focus-visible { outline-color: #ffceab; }
.docs-code pre { overflow: auto; margin: 0; padding: 12px 14px 15px; text-align: left; font-size: .87rem; line-height: 1.65; }
.docs-table { overflow-x: auto; border: 1px solid #eddbd0; border-radius: 10px; }
.docs-table table { width: 100%; border-collapse: collapse; text-align: right; line-height: 1.65; }
.docs-table th, .docs-table td { min-width: 105px; padding: 10px 12px; vertical-align: top; }
.docs-table th { background: #fcf1e9; }
.docs-table tr + tr td, .docs-table tbody { border-top: 1px solid #eddbd0; }
.docs-pagination { display: flex; gap: 12px; justify-content: space-between; margin-block-start: 35px; }
.docs-pagination a { flex: 0 1 50%; font-weight: 730; }
.docs-pagination small { font-weight: 450; }
.docs-pagination [rel="next"] { margin-inline-start: auto; }

@media (max-width: 780px) {
    .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 25px 48px; }
    .docs-sidebar { position: static; }
    .docs-sidebar ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .docs-frame { width: calc(100% - 32px); }
    .docs-header-inner { min-height: 64px; gap: 7px; }
    .docs-header .brand { font-size: 21px; }
    .docs-header-inner > .button { min-height: 36px; padding-inline: 7px; font-size: .8rem; }
    .docs-home { gap: 4px; font-size: .8rem; }
    .docs-home .icon { font-size: 16px; }
    .docs-paths { grid-template-columns: 1fr; }
    .docs-pagination a { padding: 10px; font-size: .9rem; }
}
