/* AXIS documentation theme, dark only, palette shared with the landing page */

:root {
    color-scheme: dark;
    --bg: #0a1628;
    --bg-2: #0d2b3e;
    --panel: #0c1d31;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-2: rgba(255, 255, 255, 0.14);
    --text: rgba(255, 255, 255, 0.86);
    --text-strong: #ffffff;
    --muted: rgba(255, 255, 255, 0.62);
    --faint: rgba(255, 255, 255, 0.45);
    --accent: #00d4aa;
    --accent-2: #5eead4;
    --accent-3: #00a896;
    --accent-soft: rgba(0, 212, 170, 0.12);
    --accent-line: rgba(0, 212, 170, 0.45);
    --header-h: 60px;
    --sidebar-w: 272px;
    --content-w: 760px;
    --toc-w: 220px;
    --font-head: 'Roboto Condensed', 'Arial Narrow', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
}

/* Base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font: 400 16px/1.7 var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('/docs/img/tilesbg1.jpg') center center repeat fixed;
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

body:has(dialog[open]) {
    overflow: hidden;
}

a {
    color: var(--accent-2);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    z-index: 50;
    padding: 8px 14px;
    background: var(--accent);
    color: #06241c;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 10px;
}

/* Icons and buttons */

.docs-header svg,
.search-box svg,
.btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.docs-header svg.fill {
    fill: currentColor;
    stroke: none;
}

.icon-button {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.icon-button:hover {
    color: var(--text-strong);
    background: var(--surface-2);
}

.icon-button svg {
    width: 20px;
    height: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    border: 0;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.btn::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 20%;
    border: 1px solid var(--accent-line);
    border-right: none;
    transition: width 0.2s;
    box-sizing: border-box;
}

.btn::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 20%;
    border: 1px solid var(--accent-line);
    border-left: none;
    transition: width 0.2s;
    box-sizing: border-box;
}

.btn:hover::before,
.btn:hover::after {
    width: 50%;
    background: var(--accent-soft);
}

.btn-primary {
    color: var(--accent);
}

.btn-small {
    padding: 0.5em 1em;
    font-size: 0.88rem;
}

.btn svg {
    width: 14px;
    height: 14px;
}

/* Angled corners of content blocks, set --corner to recolor them */

.doc-home li::before,
.callout::before,
.code-block::before,
.table-block::before,
.search-dialog::before {
    content: "";
    width: 20%;
    height: 40%;
    position: absolute;
    display: block;
    border-top: 1px solid var(--corner, var(--accent-line));
    border-left: 1px solid var(--corner, var(--accent-line));
    top: -4px;
    left: -4px;
    z-index: -1;
}

.doc-home li::after,
.callout::after,
.code-block::after,
.table-block::after,
.search-dialog::after {
    content: "";
    width: 20%;
    height: 40%;
    position: absolute;
    display: block;
    border-bottom: 1px solid var(--corner, var(--accent-line));
    border-right: 1px solid var(--corner, var(--accent-line));
    right: -4px;
    bottom: -4px;
    z-index: -1;
}

/* tall and wide blocks keep corners the size of a home page card */
.callout::before,
.callout::after,
.code-block::before,
.code-block::after,
.table-block::before,
.table-block::after,
.search-dialog::before,
.search-dialog::after {
    max-width: 80px;
    max-height: 60px;
}

/* Header */

.docs-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--header-h);
    padding: 0 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 22, 40, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nav-toggle {
    display: none;
    margin-left: -8px;
}

.brand {
    display: flex;
    flex: none;
    align-items: center;
}

.brand img {
    display: block;
    width: auto;
    height: 22px;
    filter: invert(1);
}

.brand-docs {
    flex: none;
    padding: 2px 10px;
    border: 1px solid rgba(0, 212, 170, 0.4);
    background: rgba(0, 212, 170, 0.06);
    color: var(--accent-2);
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
}

.search-button {
    display: flex;
    flex: 0 1 320px;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    height: 38px;
    margin-left: 20px;
    padding: 0 10px 0 12px;
    background: var(--surface);
    color: var(--faint);
    font: inherit;
    font-size: 0.9rem;
    transition: color 0.2s ease, background 0.2s ease;
    border: 1px solid var(--accent-soft);
}

.search-button:hover {
    background: var(--surface-2);
    color: var(--muted);
}

.search-button svg {
    flex: none;
    width: 18px;
    height: 18px;
}

.search-button-label {
    flex: 1;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-links {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Layout */

.docs-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.docs-main {
    min-width: 0;
    padding: 40px 48px 64px;
}

.docs-main:focus {
    outline: none;
}

/* Sidebar */

.docs-sidebar {
    position: sticky;
    top: var(--header-h);
    align-self: start;
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 28px 16px 28px 20px;
    border-right: 1px solid var(--border);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.nav-group + .nav-group {
    margin-top: 26px;
}

.nav-group-title {
    margin: 0 0 8px 10px;
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--faint);
}

.docs-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-sidebar ul ul {
    margin: 2px 0 4px 14px;
    padding-left: 8px;
    border-left: 1px solid var(--border);
}

.nav-group a,
.nav-group summary {
    display: block;
    padding: 5px 10px;
    color: var(--muted);
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-group a:hover,
.nav-group summary:hover {
    color: var(--text-strong);
    background: var(--surface);
}

.nav-group a[aria-current="page"] {
    color: var(--accent-2);
    background: var(--accent-soft);
}

.nav-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
}

.nav-group summary::-webkit-details-marker {
    display: none;
}

.nav-group summary::after {
    content: '';
    flex: none;
    width: 6px;
    height: 6px;
    margin: 0 4px 0 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}

.nav-group details[open] > summary::after {
    transform: rotate(45deg);
}

.docs-sidebar .sidebar-app-link {
    display: none;
    margin: 28px 0 0 10px;
}

.nav-backdrop {
    display: none;
}

.github .fill {
    color: var(--accent);
}

/* Article */

.doc {
    max-width: var(--content-w);
    margin: 0 auto;
    overflow-wrap: break-word;
}

.doc-trail {
    margin: 0 0 10px;
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.doc h1,
.doc h2,
.doc h3,
.doc h4 {
    color: var(--text-strong);
}

.doc h1 {
    margin: 0 0 16px;
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.doc h1 + p {
    font-size: 1.1rem;
    color: var(--muted);
}

.doc h2 {
    margin: 1.6em 0 0.6em;
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 1.8rem;
    line-height: 1.25;
}

.doc h3 {
    margin: 1.4em 0 0.5em;
    font-family: var(--font-head);
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.3;
}

.doc h4 {
    margin: 1.2em 0 0.4em;
    font-size: 1rem;
    font-weight: 600;
}

.doc .anchor {
    margin-left: 0.35em;
    color: var(--accent);
    font-weight: 300;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.doc h2:hover .anchor,
.doc h3:hover .anchor,
.doc h4:hover .anchor,
.doc .anchor:focus-visible,
.doc .anchor.copied {
    opacity: 0.85;
}

.doc p,
.doc ul,
.doc ol,
.doc blockquote {
    margin: 0 0 1.1em;
}

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

.doc li + li {
    margin-top: 0.35em;
}

.doc li > ul,
.doc li > ol {
    margin-top: 0.35em;
    margin-bottom: 0;
}

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

.doc a {
    text-decoration: underline;
    text-decoration-color: rgba(94, 234, 212, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.15s ease;
}

.doc a:hover {
    text-decoration-color: currentColor;
}

.doc strong {
    color: var(--text-strong);
    font-weight: 600;
}

.doc hr {
    margin: 2.5em 0;
    border: 0;
    border-top: 1px solid var(--border);
}

.doc img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6em auto;
}

.doc .figure {
    margin: 1.8em 0;
}

.doc .figure img {
    margin: 0 auto;
}

.doc figcaption {
    margin-top: 10px;
    color: var(--faint);
    font-size: 0.85rem;
    text-align: center;
}

.doc blockquote {
    padding: 2px 16px;
    border-left: 3px solid var(--border-2);
    color: var(--muted);
}

.doc :not(pre) > code {
    padding: 0.1em 0.38em;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.07);
    color: #e6edf3;
    font-family: var(--font-mono);
    font-size: 0.86em;
}

.doc a code {
    color: inherit;
}

/* Code blocks */

.code-block {
    position: relative;
    margin: 0 0 1.3em;
}

.code-block pre {
    margin: 0;
    padding: 16px 18px;
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.28);
    font-size: 0.86rem;
    line-height: 1.6;
    tab-size: 4;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.code-block code {
    font-family: var(--font-mono);
    color: #d6deeb;
}

.code-lang {
    position: absolute;
    top: 6px;
    right: 12px;
    color: var(--faint);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 9px;
    background: var(--panel);
    color: var(--muted);
    font: inherit;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.copy-button:hover {
    color: var(--text-strong);
}

.code-block:hover .copy-button,
.copy-button:focus-visible {
    opacity: 1;
}

.code-block:hover .code-lang,
.code-block:focus-within .code-lang {
    opacity: 0;
}

@media (hover: none) {
    .copy-button {
        opacity: 1;
    }

    .code-lang {
        display: none;
    }
}

/* Syntax highlighting */

.hljs-comment,
.hljs-quote {
    color: #6b7d93;
    font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal.hljs-keyword {
    color: #5eead4;
}

.hljs-string,
.hljs-regexp,
.hljs-template-tag {
    color: #f5c27a;
}

.hljs-number,
.hljs-literal,
.hljs-symbol {
    color: #f78c6c;
}

.hljs-title.function_,
.hljs-title {
    color: #82aaff;
}

.hljs-type,
.hljs-built_in,
.hljs-title.class_ {
    color: #c3a6ff;
}

.hljs-attr,
.hljs-attribute,
.hljs-property {
    color: #89ddff;
}

.hljs-meta,
.hljs-meta .hljs-keyword {
    color: #ff9cac;
}

.hljs-variable,
.hljs-params,
.hljs-subst {
    color: inherit;
}

.hljs-section,
.hljs-name {
    color: #5eead4;
}

/* Callouts */

.callout {
    --c: #58a6ff;
    --corner: color-mix(in srgb, var(--c) 65%, transparent);
    position: relative;
    margin: 0 0 1.3em;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    background: color-mix(in srgb, var(--c) 8%, transparent);
}

.callout > :last-child {
    margin-bottom: 0;
}

.doc .callout-title {
    margin: 0 0 4px;
    color: var(--c);
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.callout-note {
    --c: #58a6ff;
}

.callout-tip {
    --c: #00d4aa;
}

.callout-important {
    --c: #a78bfa;
}

.callout-warning {
    --c: #f5b84b;
}

.callout-caution {
    --c: #ff6b6b;
}

/* Tables */

.table-block {
    position: relative;
    margin: 0 0 1.3em;
    background: var(--surface);
}

.table-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.55;
}

.table-wrap th,
.table-wrap td {
    min-width: 8ch;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.table-wrap th {
    background: var(--surface);
    color: var(--text-strong);
    font-weight: 600;
    white-space: nowrap;
}

.table-wrap tr:last-child td {
    border-bottom: 0;
}

.table-wrap td code {
    overflow-wrap: anywhere;
}

/* On this page */

.docs-toc {
    position: sticky;
    top: var(--header-h);
    align-self: start;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 44px 20px 40px 8px;
    font-size: 0.85rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.toc-title {
    margin: 0 0 10px;
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--faint);
}

.docs-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--border);
}

.docs-toc a {
    display: block;
    margin-left: -1px;
    padding: 4px 0 4px 12px;
    border-left: 1px solid transparent;
    color: var(--muted);
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.docs-toc .toc-h3 a {
    padding-left: 24px;
}

.docs-toc a:hover {
    color: var(--text-strong);
}

.docs-toc a[aria-current="true"] {
    border-left-color: var(--accent);
    color: var(--accent-2);
}

/* Pager and footer */

.pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: var(--content-w);
    margin: 56px auto 0;
}

.pager .btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 18px;
    font-weight: 400;
    white-space: normal;
}

.pager .pager-next {
    grid-column: 2;
    align-items: flex-end;
    text-align: right;
}

.pager-next.btn:before {
    display: none;
}

.pager-next.btn:hover:before {
    display: block;
}

.pager-prev.btn:after {
    display: none;
}

.pager-prev.btn:hover:after {
    display: block;
}

.pager-label {
    color: var(--faint);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pager-title {
    color: var(--accent-2);
}

.docs-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 20px 32px;
    border-top: 1px solid var(--border);
    color: var(--faint);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.docs-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.docs-footer a {
    color: var(--muted);
    text-decoration: none;
}

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

/* Home page */

.doc-home {
    max-width: 960px;
}

.doc-home h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
}

.doc-home ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    padding: 0;
    list-style: none;
}

.doc-home li,
.doc-home li + li {
    margin: 0;
}

.doc-home li {
    padding: 14px 16px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: background 0.2s ease;
    position: relative;
}

.doc-home li:hover {
    background: var(--surface-2);
}

.doc-home li:hover::before,
.doc-home li:hover::after {
    border-color: var(--accent);
}

.doc-home li > a:first-child {
    display: block;
    margin-bottom: 4px;
    color: var(--text-strong);
    font-family: var(--font-head);
    font-size: 1.12rem;
    text-decoration: none;
}

.doc-home li > a:first-child:hover {
    color: var(--accent-2);
}

.doc-home li br {
    display: none;
}

.doc-not-found {
    padding: 48px 0;
}

/* Search */

.search-dialog {
    width: min(640px, calc(100vw - 32px));
    max-width: none;
    max-height: min(72vh, 640px);
    --corner: var(--accent);
    margin: 10vh auto auto;
    padding: 0;
    border: 0;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    overflow: visible;
}

.search-dialog[open] {
    display: flex;
    flex-direction: column;
}

.search-dialog::backdrop {
    background: rgba(4, 10, 20, 0.7);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.search-box {
    display: flex;
    flex: none;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 12px 16px;
    border-bottom: 1px solid var(--border);
}

.search-box svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--faint);
}

.search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-strong);
    font: inherit;
    font-size: 1.05rem;
}

.search-input::placeholder {
    color: var(--faint);
}

.search-close {
    flex: none;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.search-results {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 8px;
}

.search-results:empty {
    display: none;
}

.search-group + .search-group {
    margin-top: 6px;
}

.search-group-title {
    padding: 10px 10px 4px;
    color: var(--faint);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.search-hit {
    display: block;
    padding: 8px 10px;
    color: var(--text);
    text-decoration: none;
}

.search-hit[aria-selected="true"] {
    background: var(--accent-soft);
}

.search-hit-title {
    display: block;
    color: var(--text-strong);
    font-weight: 500;
}

.search-hit-snippet {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.search-hit mark {
    background: transparent;
    color: var(--accent-2);
    font-weight: 600;
}

.search-status {
    flex: none;
    margin: 0;
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    color: var(--faint);
    font-size: 0.78rem;
}

.search-status:empty {
    display: none;
}

/* Responsive */

@media (max-width: 1199px) {
    .docs-layout {
        grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    }

    .docs-toc {
        display: none;
    }
}

@media (max-width: 1023px) {
    .docs-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .nav-toggle {
        display: inline-flex;
    }

    .docs-sidebar {
        position: fixed;
        top: var(--header-h);
        bottom: 0;
        left: 0;
        z-index: 25;
        width: min(300px, 86vw);
        border-right: 1px solid var(--border-2);
        background: var(--panel);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s;
    }

    .nav-open .docs-sidebar {
        transform: none;
        visibility: visible;
    }

    .nav-open .nav-backdrop {
        position: fixed;
        inset: var(--header-h) 0 0 0;
        z-index: 20;
        display: block;
        background: rgba(4, 10, 20, 0.6);
    }

    .docs-main {
        padding: 28px 20px 48px;
    }
}

@media (max-width: 639px) {
    .docs-header {
        gap: 8px;
        padding: 0 16px;
    }

    .search-button {
        flex: none;
        width: 38px;
        margin-left: auto;
    }

    .search-button-label,
    .search-button-key,
    .header-links .btn {
        display: none;
    }

    .docs-sidebar .sidebar-app-link {
        display: inline-flex;
    }

    .docs-main {
        padding: 24px 16px 40px;
    }

    .doc h2 {
        font-size: 1.45rem;
    }

    /* diagrams keep a readable size and scroll sideways on phones */
    .doc .figure {
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .doc .figure img[src$=".svg"] {
        width: 640px;
        min-width: 640px;
        max-width: none;
    }

    .search-dialog {
        width: calc(100vw - 16px);
        margin-top: 8px;
        max-height: calc(100dvh - 16px);
    }

    .search-input {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .docs-header,
    .docs-sidebar,
    .docs-toc,
    .pager,
    .docs-footer,
    .copy-button,
    .skip-link {
        display: none !important;
    }

    .docs-layout {
        display: block;
    }

    body,
    body::before {
        background: #ffffff;
        color: #000000;
    }

    .doc h1,
    .doc h2,
    .doc h3,
    .doc h4,
    .doc strong {
        color: #000000;
    }
}
