/* The documentation site (built by scripts/build-docs.mjs): the project page's palette, the
   dashboard's fonts, and type set for reading. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  font-stretch: 75% 100%;
  src: url("fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f5f3ee;
  --bg-soft: #ece9e2;
  --surface: #fffefc;
  --ink: #1f1d19;
  --ink-2: #3b3833;
  --muted: #77726a;
  --faint: #a7a197;
  --line: #e6e2d9;
  --line-2: #d8d3c8;
  --accent: #4f7a6c;
  --accent-soft: #e4ebe6;
  --pg: #5f7593;
  --hover: rgba(70, 58, 36, 0.05);
  --code-bg: #1b1b19;
  --code-ink: #edebe6;
  --code-line: #ffffff14;
  --inline-code: #ece9e2;
  --shadow: 0 1px 2px rgba(60, 48, 28, 0.05), 0 12px 32px -14px rgba(60, 48, 28, 0.22);
  --shadow-lg: 0 28px 70px -24px rgba(50, 40, 22, 0.32), 0 2px 8px rgba(50, 40, 22, 0.06);
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.22, 0.64, 1);
  --top: 60px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141413;
  --bg-soft: #1a1a18;
  --surface: #1b1b19;
  --ink: #edebe6;
  --ink-2: #d0cdc5;
  --muted: #8f8b82;
  --faint: #615e57;
  --line: #2a2926;
  --line-2: #37352f;
  --accent: #8db3a5;
  --accent-soft: #222b27;
  --pg: #94a8c4;
  --hover: rgba(240, 230, 210, 0.05);
  --code-bg: #0f0f0e;
  --inline-code: #242421;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 28px 70px -20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--top) + 20px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "kern", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 480px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(800px 320px at 20% -140px, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(700px 300px at 85% -160px, color-mix(in srgb, var(--pg) 12%, transparent), transparent 70%);
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  color: inherit;
}
kbd {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  box-shadow: inset 0 -1px 0 var(--line-2);
  color: var(--muted);
  background: var(--surface);
}
::selection {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

/* ------------------------------------------------------------------ top bar */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--top);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 680;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand img {
  transition: transform 0.5s var(--spring);
}
.brand:hover img {
  transform: rotate(-8deg) scale(1.06);
}
.brand b {
  font-weight: 450;
  color: var(--muted);
}
.crumb {
  text-decoration: none;
  color: var(--muted);
  font-weight: 520;
  font-size: 15px;
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
}
.crumb:hover {
  color: var(--ink);
}
.version {
  font-size: 12px;
  font-weight: 560;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1px 8px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.spacer {
  flex: 1;
}
.search-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  width: 280px;
  margin-left: 12px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--faint);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.2s;
}
.search-btn:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.search-btn span {
  flex: 1;
  text-align: left;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.25s var(--spring);
}
.icon-btn:hover {
  background: var(--hover);
  color: var(--ink);
}
.icon-btn:active {
  transform: scale(0.92);
}
.menu-btn {
  display: none;
}

/* ------------------------------------------------------------------ layout */

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 230px;
  max-width: 1440px;
  margin: 0 auto;
}
.sidebar,
.outline {
  position: sticky;
  top: var(--top);
  align-self: start;
  max-height: calc(100vh - var(--top));
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 28px 16px 40px 20px;
}
.nav-group + .nav-group {
  margin-top: 22px;
}
.nav-title {
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-feature-settings: "case";
  color: var(--faint);
  margin: 0 0 6px 10px;
}
.sidebar a {
  position: relative;
  display: block;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 470;
  line-height: 1.45;
  transition: background 0.15s, color 0.15s, transform 0.3s var(--spring);
}
.sidebar a:hover {
  color: var(--ink);
  background: var(--hover);
  transform: translateX(2px);
}
.sidebar a.on {
  color: var(--ink);
  font-weight: 580;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(20, 20, 30, 0.05);
}
.sidebar a.on::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  animation: grow 0.4s var(--spring);
}
.outline {
  padding: 36px 20px 40px 12px;
}
.outline a {
  display: block;
  padding: 3px 0 3px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
  transition: color 0.15s, border-color 0.25s;
}
.outline a.d3 {
  padding-left: 24px;
  font-size: 12.5px;
}
.outline a:hover {
  color: var(--ink);
}
.outline a.on {
  color: var(--ink);
  border-left-color: var(--accent);
  font-weight: 540;
}
.content {
  min-width: 0;
  padding: 36px 48px 80px;
}

/* ------------------------------------------------------------------ prose */

.doc {
  max-width: 760px;
  margin: 0 auto;
  animation: page-in 0.5s var(--ease) both;
}
.eyebrow {
  font-size: 13px;
  font-weight: 560;
  color: var(--accent);
  margin-bottom: 8px;
}
.doc h1,
.home h1 {
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
  animation: title-in 0.7s var(--ease) both;
}
.doc h2,
.doc h3,
.doc h4 {
  position: relative;
  color: var(--ink);
  text-wrap: balance;
}
.doc h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.016em;
  margin: 56px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.doc h3 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 620;
  letter-spacing: -0.014em;
  margin: 36px 0 10px;
}
.doc h4 {
  font-size: 16px;
  font-weight: 620;
  margin: 28px 0 8px;
}
.anchor {
  position: absolute;
  left: -0.9em;
  padding-right: 0.3em;
  color: var(--faint);
  text-decoration: none;
  font-weight: 450;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}
.doc h2 .anchor {
  top: 28px;
}
:is(h2, h3, h4):hover .anchor {
  opacity: 1;
}
.anchor:hover {
  color: var(--accent);
}
.doc p,
.doc ul,
.doc ol {
  margin: 0 0 16px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.doc ul,
.doc ol {
  padding-left: 22px;
}
.doc li {
  margin: 4px 0;
}
.doc li::marker {
  color: var(--faint);
}
.doc strong {
  color: var(--ink);
  font-weight: 620;
}
.doc a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.doc a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.doc a.anchor {
  text-decoration: none;
}
.doc hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.doc blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--accent-soft) 60%, transparent);
}
.doc blockquote p:last-child {
  margin-bottom: 0;
}
.doc img {
  display: block;
  margin: 20px auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.doc :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.86em;
  font-feature-settings: "calt" 0, "liga" 0, "zero";
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--inline-code);
  border: 1px solid var(--line);
  color: var(--ink);
  overflow-wrap: break-word;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.doc a code {
  color: inherit;
}

/* code blocks: always dark, like the terminal on the project page */
.code {
  margin: 0 0 20px;
  border-radius: 12px;
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid var(--code-line);
  font-family: var(--mono);
  font-size: 11.5px;
  color: #8f8b82;
}
.copy {
  border: 1px solid #ffffff1c;
  background: #ffffff0d;
  color: #d0cdc5;
  font-size: 12px;
  font-family: var(--font);
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, transform 0.25s var(--spring);
}
.copy:hover {
  background: #ffffff1c;
}
.copy:active {
  transform: scale(0.94);
}
.copy.done {
  color: #8db3a5;
}
.code pre {
  margin: 0;
  padding: 14px 16px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--code-ink);
  font-feature-settings: "calt" 0, "liga" 0, "zero";
  tab-size: 2;
}
.code .c {
  color: #77726a;
  font-style: italic;
}
.code .s {
  color: #b0b884;
}
.code .k {
  color: #cc95ad;
}
.code .n {
  color: #d4b071;
}
.code .f {
  color: #94a8c4;
}

/* tables */
.table {
  margin: 0 0 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: var(--bg-soft);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
.table tr:last-child td {
  border-bottom: 0;
}
.table tbody tr {
  transition: background 0.15s;
}
.table tbody tr:hover {
  background: var(--hover);
}

.doc-foot {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.doc-foot a {
  color: var(--muted);
  text-decoration: none;
}
.doc-foot a:hover {
  color: var(--ink);
}
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.3s var(--spring);
}
.pager a:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pager .next {
  text-align: right;
  grid-column: 2;
}
.pager span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.pager .next span {
  justify-content: flex-end;
}
.pager b {
  font-size: 16px;
  font-weight: 620;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pager svg {
  transition: transform 0.3s var(--spring);
}
.pager .next:hover svg {
  transform: translateX(3px);
}
.pager .prev:hover svg {
  transform: translateX(-3px);
}

/* ------------------------------------------------------------------ start page */

.home {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 24px;
  animation: page-in 0.5s var(--ease) both;
}
.home h1 {
  font-size: clamp(36px, 5.4vw, 56px);
  letter-spacing: -0.03em;
}
.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 660px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.quick {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 580;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.25s var(--spring), box-shadow 0.2s, border-color 0.2s;
}
.btn:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.btn:active {
  transform: scale(0.97);
}
.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn svg {
  transition: transform 0.3s var(--spring);
}
.btn:hover svg {
  transform: translateX(3px);
}
.whats-new {
  display: flex; align-items: center; gap: 12px; margin: -20px 0 44px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--accent-soft);
  color: var(--ink-2); text-decoration: none; font-size: 15px; transition: border-color .2s var(--ease);
}
.whats-new:hover { border-color: var(--accent); }
.whats-new b { color: var(--accent); white-space: nowrap; }
.whats-new span { flex: 1; }
.whats-new svg { flex: none; color: var(--accent); }
.home-section {
  margin-bottom: 40px;
}
.home-section h2 {
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.card {
  --mx: -1000px;
  --my: -1000px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 44px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(320px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.35s var(--spring);
  animation: rise 0.5s var(--ease) both;
}
.card:nth-child(2) {
  animation-delay: 40ms;
}
.card:nth-child(3) {
  animation-delay: 80ms;
}
.card:nth-child(4) {
  animation-delay: 120ms;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card b {
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.012em;
}
.card span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.card svg {
  position: absolute;
  right: 18px;
  top: 21px;
  color: var(--faint);
  transition: transform 0.3s var(--spring), color 0.2s;
}
.card:hover svg {
  transform: translateX(3px);
  color: var(--accent);
}

/* ------------------------------------------------------------------ search */

.search {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 16px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade 0.18s ease both;
}
.search[hidden] {
  display: none;
}
.search-box {
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop 0.28s var(--ease) both;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 56px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
}
.search-input input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.search-results {
  max-height: min(60vh, 480px);
  overflow-y: auto;
  padding: 6px;
}
.search-results:empty {
  display: none;
}
.result {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  animation: rise 0.25s var(--ease) both;
}
.result.on {
  background: var(--hover);
  box-shadow: inset 2px 0 0 var(--accent);
}
.result .where {
  font-size: 12px;
  color: var(--faint);
}
.result .what {
  font-weight: 580;
  font-size: 15px;
  color: var(--ink);
}
.result .snip {
  font-size: 13.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result mark {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}
.no-results {
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------------------------------------------ motion */

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes title-in {
  from {
    opacity: 0;
    letter-spacing: -0.01em;
    filter: blur(6px);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-6px);
  }
}
@keyframes grow {
  from {
    transform: scaleY(0);
  }
}
@keyframes flash {
  from {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
  }
}
.doc :target {
  animation: flash 1.6s ease;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* ------------------------------------------------------------------ small screens */

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .outline {
    display: none;
  }
}
@media (max-width: 860px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .menu-btn {
    display: inline-grid;
  }
  .sidebar {
    position: fixed;
    top: var(--top);
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    max-height: none;
    z-index: 30;
    background: var(--bg);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(-104%);
    transition: transform 0.35s var(--ease);
  }
  body.nav-open .sidebar {
    transform: none;
  }
  .content {
    padding: 28px 18px 64px;
  }
  .search-btn {
    width: auto;
    margin-left: 0;
  }
  .search-btn span,
  .search-btn kbd,
  .crumb,
  .version {
    display: none;
  }
  .top {
    padding: 0 12px;
    gap: 8px;
  }
  .anchor {
    display: none;
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .pager .next {
    grid-column: 1;
  }
}
