/* ==========================================================================
   Tiendy Docs — design system
   Identity: ink on paper, one indigo for interaction, teal marks the API rail.
   Type: Plus Jakarta Sans (brand) + JetBrains Mono (code and data).
   ========================================================================== */

:root {
  /* color */
  --ink: #0f172a;
  --text: #334155;
  --text-soft: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --paper: #ffffff;
  --canvas: #fbfcfe;
  --rail: #f1f4fe;
  --rail-hover: #ffffff;
  --brand: #4f46e5;
  --brand-ink: #3730a3;
  --brand-soft: #eef2ff;
  --teal: #0d9488;
  --teal-soft: #f0fdfa;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --rose: #e11d48;
  --rose-soft: #fff1f2;

  /* code specimen */
  --code-bg: #0b1220;
  --code-head: #111a2e;
  --code-text: #e2e8f0;
  --code-dim: #94a3b8;
  --tok-string: #7dd3fc;
  --tok-key: #c4b5fd;
  --tok-tag: #fbbf24;
  --tok-comment: #64748b;

  /* type */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* layout */
  --topbar-h: 60px;
  --sidebar-w: 264px;
  --toc-w: 220px;
  --measure: 74ch;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 24px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: var(--brand); text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { left: 12px; }

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand img { display: block; height: 22px; width: auto; }
.brand-sep { width: 1px; height: 20px; background: var(--line); }
.brand-sub {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.menu-btn:hover { border-color: var(--line-strong); }

/* search */

.search { position: relative; margin-left: auto; width: min(340px, 42vw); flex: none; }
.search-field { position: relative; }
.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 38px;
  padding: 0 44px 0 34px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.search input::placeholder { color: var(--faint); }
.search input:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.16);
}
.search-kbd {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  pointer-events: none;
}
.search input:focus ~ .search-kbd { opacity: 0; }

.search-results {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(15, 23, 42, 0.4);
  overflow: hidden;
  max-height: min(60vh, 460px);
  overflow-y: auto;
}
.search-results[hidden] { display: none; }
.search-results a {
  display: block;
  padding: 9px 14px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover,
.search-results a:focus-visible { background: var(--rail); }
.search-results .r-title { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.search-results .r-meta { display: block; font-size: 12.5px; color: var(--muted); }
.search-results .r-empty { padding: 14px; font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  max-width: 1560px;
  margin: 0 auto;
  align-items: start;
}
.shell.has-toc { grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w); }

.sidebar {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 14px 48px;
  background: var(--rail);
  border-right: 1px solid var(--line);
}

.nav-group + .nav-group { margin-top: 24px; }
.nav-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.nav-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--brand); flex: none; }
.nav-group.is-api .nav-dot { background: var(--teal); }

.nav-link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-soft);
  text-decoration: none;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.72); color: var(--ink); }
.nav-link[aria-current="page"] {
  background: var(--rail-hover);
  color: var(--brand-ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.07);
}
.nav-link .num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  margin-right: 7px;
}

.scrim {
  display: none;
  position: fixed;
  inset: var(--topbar-h) 0 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 45;
}
.scrim.is-on { display: block; }

/* --------------------------------------------------------------------------
   Document column
   -------------------------------------------------------------------------- */

.doc {
  min-width: 0;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 44px 56px 24px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs .sep { color: var(--faint); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  text-decoration: none;
}
.chip.is-api { background: var(--teal-soft); color: #115e59; }
.chip:hover { filter: brightness(0.97); }

.doc h1 {
  margin: 6px 0 14px;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 800;
  color: var(--ink);
}

.lede {
  margin: 0 0 6px;
  font-size: 18.5px;
  line-height: 1.62;
  color: var(--text-soft);
  max-width: var(--measure);
}

.doc h2 {
  margin: 46px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}
.doc h3 {
  margin: 30px 0 10px;
  font-size: 17.5px;
  line-height: 1.4;
  letter-spacing: -0.012em;
  font-weight: 700;
  color: var(--ink);
}
.doc h4 {
  margin: 24px 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.doc p, .doc ul, .doc ol, .table-wrap, .callout, .endpoint-list {
  max-width: var(--measure);
}
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 18px; padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc li::marker { color: var(--faint); }
.doc strong { font-weight: 700; color: var(--ink); }

.doc :not(pre) > code {
  font-family: var(--mono);
  font-size: 0.855em;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.1em 0.36em;
  color: var(--ink);
  word-break: break-word;
}

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

/* inline definition list used for variable tables */
.dl { margin: 0 0 20px; border-top: 1px solid var(--line); max-width: var(--measure); }
.dl-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 4px 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.dl-row dt {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}
.dl-row dd { margin: 0; font-size: 15px; color: var(--text-soft); }

/* --------------------------------------------------------------------------
   Code blocks
   -------------------------------------------------------------------------- */

.code {
  margin: 20px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--code-bg);
  box-shadow: 0 18px 36px -26px rgba(15, 23, 42, 0.75);
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px 7px 16px;
  background: var(--code-head);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-lang {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--code-dim);
}
.copy {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
}
.copy:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.copy.is-done { color: #5eead4; border-color: rgba(94, 234, 212, 0.5); }
.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
}
.code pre code {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--code-text);
  white-space: pre;
}
.tok-string { color: var(--tok-string); }
.tok-key { color: var(--tok-key); }
.tok-tag { color: var(--tok-tag); }
.tok-comment { color: var(--tok-comment); font-style: italic; }

/* inline sample values inside prose */
.sample {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   API pieces
   -------------------------------------------------------------------------- */

.endpoint-list { margin: 0 0 8px; border-top: 1px solid var(--line); }
.endpoint {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.endpoint:last-child { border-bottom: 0; }
.endpoint-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.method {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 6px;
  flex: none;
}
.method-get { background: #ccfbf1; color: #0f766e; }
.method-post { background: #e0e7ff; color: #4338ca; }
.method-put { background: #fef3c7; color: #b45309; }
.method-delete { background: #ffe4e6; color: #be123c; }
.method-all { background: #f1f5f9; color: #475569; border: 1px solid var(--line); }
.endpoint-path {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 9px;
  word-break: break-all;
}
.endpoint p {
  margin: 9px 0 0;
  font-size: 15px;
  color: var(--muted);
  max-width: var(--measure);
}

/* tables */

.table-wrap {
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  background: #fff;
}
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: #f8fafc;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.62;
  color: var(--text-soft);
}
.table tr:last-child td { border-bottom: 0; }
.table td:first-child {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: normal;
  overflow-wrap: break-word;
}
.table td .sample { margin-top: 6px; }

/* callouts */

.callout {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--line-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #f8fafc;
  color: var(--text);
}
.callout p { margin: 0; font-size: 15px; max-width: none; }
.callout p + p { margin-top: 9px; }
.callout strong { color: inherit; }
.callout-note { border-color: #f59e0b; background: var(--amber-soft); color: #78350f; }
.callout-tip { border-color: var(--teal); background: var(--teal-soft); color: #115e59; }
.callout-warn { border-color: var(--rose); background: var(--rose-soft); color: #881337; }

/* --------------------------------------------------------------------------
   Table of contents
   -------------------------------------------------------------------------- */

.toc {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  padding: 46px 22px 40px 22px;
  border-left: 1px solid var(--line);
  margin-left: -1px;
}
.toc-title {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.toc a {
  display: block;
  padding: 4px 0 4px 12px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 600; }
.toc a.lv3 { padding-left: 24px; font-size: 13px; }

/* --------------------------------------------------------------------------
   Page footer / pager
   -------------------------------------------------------------------------- */

.docfoot {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.pager-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.pager {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: var(--text);
  min-height: 74px;
}
.pager:hover { border-color: var(--line-strong); background: var(--canvas); }
.pager .dir { font-size: 12.5px; color: var(--muted); }
.pager .t { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.pager.next { align-items: flex-end; text-align: right; }
.pager.is-empty { visibility: hidden; pointer-events: none; }

.meta-note {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  max-width: var(--measure);
}
.meta-note a { color: var(--muted); }

.sitefoot {
  border-top: 1px solid var(--line);
  padding: 26px 56px 40px;
  max-width: 1560px;
  margin: 0 auto;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}
.sitefoot a { color: var(--muted); }

/* --------------------------------------------------------------------------
   Landing
   -------------------------------------------------------------------------- */

.landing { max-width: 940px; }

.hero { padding: 52px 0 4px; }
.hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(36px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--ink);
  max-width: 16ch;
}
.hero .lede { font-size: 19.5px; max-width: 62ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--canvas); }

/* specimen */

.specimen {
  margin: 44px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--code-bg);
  box-shadow: 0 40px 70px -44px rgba(15, 23, 42, 0.85);
}
.specimen-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--code-head);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--code-dim);
}
.specimen-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.specimen pre {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.85;
  color: var(--code-text);
}
.var {
  color: #a5b4fc;
  text-decoration: none;
  border-bottom: 1px dashed rgba(165, 180, 252, 0.55);
  border-radius: 3px;
  padding: 0 1px;
}
.var:hover, .var:focus-visible {
  color: #fff;
  background: rgba(99, 102, 241, 0.42);
  border-bottom-color: transparent;
  outline: none;
}
.specimen.is-armed .var {
  animation: var-sweep 620ms ease both;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes var-sweep {
  0% { background: rgba(99, 102, 241, 0.85); color: #fff; }
  70% { background: rgba(99, 102, 241, 0.35); color: #fff; }
  100% { background: transparent; color: #a5b4fc; }
}

.specimen-legend {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.legend-item {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 11px 24px;
  background: var(--code-bg);
  font-size: 13.5px;
  color: var(--code-dim);
}
.legend-item + .legend-item { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.specimen .legend-item code {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #a5b4fc;
  background: transparent;
  border: 0;
  padding: 0;
  word-break: break-word;
}
.legend-item.is-lit { background: #141d36; }
.specimen .legend-item.is-lit code { color: #fff; }

/* entry routes */

.routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.route {
  position: relative;
  display: block;
  padding: 26px 26px 24px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}
.route::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
}
.route.is-api::before { background: var(--teal); }
.route:hover { border-color: var(--line-strong); background: var(--canvas); }
.route-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.route h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.route p { margin: 0; font-size: 15px; color: var(--text-soft); max-width: none; }
.route ul { margin: 16px 0 0; padding-left: 18px; font-size: 14.5px; color: var(--muted); }
.route li { margin-bottom: 5px; }

.quick { margin-top: 48px; }
.quick-list { border-top: 1px solid var(--line); max-width: none; }
.quick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 6px 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}
.quick-row:hover .q-t { color: var(--brand); }
.q-t { font-weight: 700; color: var(--ink); font-size: 15.5px; letter-spacing: -0.01em; }
.q-d { font-size: 14.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1279px) {
  .shell.has-toc { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
}

@media (max-width: 1023px) {
  .shell,
  .shell.has-toc { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  .brand-sep, .brand-sub { display: none; }

  .sidebar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: min(300px, 84vw);
    height: auto;
    transform: translateX(-102%);
    transition: transform 0.24s ease;
    z-index: 50;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.6);
  }
  .sidebar.is-open { transform: none; }

  .doc { padding: 32px 22px 20px; max-width: none; }
  .sitefoot { padding: 24px 22px 36px; }
  .routes { grid-template-columns: minmax(0, 1fr); }
  .quick-row { grid-template-columns: minmax(0, 1fr); }
  .pager-row { grid-template-columns: minmax(0, 1fr); }
  .dl-row { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 36px; }
}

@media (max-width: 560px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .search { width: auto; flex: 1; }
  .search-kbd { display: none; }
  .search input { padding-right: 12px; }
  .specimen pre { font-size: 13px; padding: 18px 16px; }
  .code pre code { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .specimen.is-armed .var { animation: none; }
  .sidebar { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
