/* meaty.me docs: quiet, near-white, informative (issue #151).
   v2: Geist with two clear voices. Sections speak in small mono capitals
   with an icon; topics (article titles, h2) speak in large tight Geist.
   Ember stays in the logo mark only. Motion: cross-page view transitions,
   a gliding active marker in the sidebar and TOC, soft reveals. */

:root {
  --bg:        #FFFFFF;
  --bg-soft:   oklch(0.975 0.003 80);   /* search field, code, active nav, table head */
  --bg-hover:  oklch(0.958 0.004 80);
  --line:      oklch(0.925 0.004 78);   /* hairlines */
  --line-2:    oklch(0.872 0.005 76);   /* field borders, underlines */
  --text:      oklch(0.235 0.008 56);   /* headings, links, active */
  --text-body: oklch(0.345 0.007 58);   /* running text */
  --text-2:    oklch(0.445 0.007 60);   /* secondary, nav */
  --text-3:    oklch(0.540 0.007 64);   /* metadata, stubs */
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 140ms;
  --base: 220ms;
  --header-h: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 16px/1.7 var(--sans);
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--text); text-decoration: none; }
:focus-visible { outline: 2px solid var(--text-2); outline-offset: 2px; border-radius: 4px; }
.docs-icon { flex-shrink: 0; display: block; }

/* The section voice, reused everywhere a section (not a topic) is named. */
.docs-overline {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
}

/* ---- page transitions (Chrome/Edge/Safari 18+; others just navigate) ---- */
@view-transition { navigation: auto; }
.docs-header { view-transition-name: docs-header; }
.docs-side   { view-transition-name: docs-side; }
.docs-main   { view-transition-name: docs-main; }
.docs-cat li a[aria-current="page"] { view-transition-name: docs-current; }
::view-transition-group(docs-header),
::view-transition-group(docs-side) { animation: none; }
::view-transition-old(docs-main) { animation: docs-out 120ms ease-in both; }
::view-transition-new(docs-main) { animation: docs-in 320ms var(--ease) both; }
::view-transition-group(docs-current) { animation-duration: 320ms; animation-timing-function: var(--ease); }
@keyframes docs-out { to { opacity: 0; } }
@keyframes docs-in  { from { opacity: 0; transform: translateY(6px); } }

/* ---- header ---------------------------------------------------------- */
.docs-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.docs-header-inner {
  display: flex; align-items: center; gap: 24px;
  max-width: 1280px; height: var(--header-h); margin: 0 auto; padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); flex: 1 1 0; }
.brand span { font-weight: 650; font-size: 16px; letter-spacing: -0.02em; }
.brand em { font-style: normal; color: var(--text-3); font-weight: 500; }
.brand b {
  font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
  border-left: 1px solid var(--line-2); padding-left: 10px; margin-left: 3px;
}
.docs-topnav { flex: 1 1 0; justify-content: flex-end; display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.docs-topnav a {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; color: var(--text-2);
  transition: color var(--fast), background-color var(--fast);
}
.docs-topnav a:hover { color: var(--text); background: var(--bg-hover); }
.docs-topnav a.docs-topnav-cta { color: var(--text); border: 1px solid var(--line-2); }

/* ---- search ---------------------------------------------------------- */
.docs-search { position: relative; flex: 0 1 420px; }
.docs-search-glyph { position: absolute; left: 11px; top: 10px; color: var(--text-3); pointer-events: none; }
.docs-search input {
  width: 100%; height: 36px; padding: 0 36px 0 34px;
  font: 14px var(--sans); color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 9px;
  outline: none;
  transition: background-color var(--fast), border-color var(--fast), box-shadow var(--base) var(--ease);
}
.docs-search input::placeholder { color: var(--text-3); }
.docs-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.docs-search input:focus ~ .docs-search-kbd,
.docs-search input:not(:placeholder-shown) ~ .docs-search-kbd { opacity: 0; }
.docs-search input:hover { border-color: var(--line-2); }
.docs-search input:focus { background: var(--bg); border-color: var(--line-2); box-shadow: 0 0 0 4px var(--bg-hover); }
.docs-search-kbd {
  position: absolute; right: 9px; top: 8px;
  font: 11px/18px var(--mono); color: var(--text-3);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px;
  background: var(--bg); pointer-events: none;
  transition: opacity var(--fast);
}
.docs-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 360px;
  background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px oklch(0.3 0.02 60 / 0.10), 0 2px 6px oklch(0.3 0.02 60 / 0.05);
  overflow: hidden;
  transform-origin: top center;
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), display var(--base) allow-discrete;
}
.docs-search-results[hidden] { display: none; opacity: 0; transform: translateY(-4px) scale(0.99); }
@starting-style {
  .docs-search-results:not([hidden]) { opacity: 0; transform: translateY(-4px) scale(0.99); }
}
.docs-hits { padding: 6px; display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
.docs-hit {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 10px; border-radius: 8px; color: var(--text);
  transition: background-color var(--fast);
}
.docs-hit:hover, .docs-hit.is-active { background: var(--bg-soft); }
.docs-hit-top { display: flex; align-items: center; gap: 10px; }
.docs-hit b { font-weight: 600; font-size: 14px; line-height: 1.4; flex: 1; min-width: 0; }
.docs-hit-cat { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.docs-hit small { display: block; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.docs-results-foot {
  display: flex; gap: 14px; padding: 8px 14px;
  border-top: 1px solid var(--line); background: var(--bg-soft);
  font-size: 12px; color: var(--text-3);
}
.docs-results-foot span { display: flex; align-items: center; gap: 4px; }
.docs-results-foot kbd { font-size: 11px; padding: 0 4px; background: var(--bg); }
.docs-empty { padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.docs-empty b { font-size: 14px; font-weight: 600; color: var(--text); }
.docs-empty > span { font-size: 13px; color: var(--text-2); }
.docs-empty-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.docs-empty-links a {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; font-size: 13px; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  transition: background-color var(--fast), border-color var(--fast);
}
.docs-empty-links a:hover { background: var(--bg-soft); border-color: var(--line-2); }

/* ---- shell: sidebar + main ------------------------------------------- */
.docs-shell {
  display: grid; grid-template-columns: 272px minmax(0, 1fr);
  max-width: 1280px; margin: 0 auto; min-height: calc(100vh - 120px);
}
.docs-side {
  padding: 24px 16px 48px 16px;
  position: sticky; top: var(--header-h); align-self: start;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.docs-side-summary { display: none; }
.docs-cat { margin-bottom: 6px; }
.docs-cat summary {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; list-style: none; user-select: none;
  padding: 7px 8px; border-radius: 8px;
  font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
  transition: color var(--fast), background-color var(--fast);
}
.docs-cat summary::-webkit-details-marker { display: none; }
.docs-cat summary:hover { color: var(--text); background: var(--bg-hover); }
.docs-cat[open] > summary, .docs-cat.is-current > summary { color: var(--text); }
.docs-cat summary::after {
  content: ""; margin-left: auto; width: 5px; height: 5px; margin-top: -2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  opacity: 0.6; transform: rotate(-45deg); transition: transform var(--base) var(--ease);
}
.docs-cat[open] > summary::after { transform: rotate(45deg); }

.docs-cat[open] > ul { animation: docs-reveal var(--base) var(--ease); }
@keyframes docs-reveal { from { opacity: 0; transform: translateY(-4px); } }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .docs-cat::details-content, .docs-side-menu::details-content {
    block-size: 0; overflow: clip;
    transition: block-size var(--base) var(--ease), content-visibility var(--base) allow-discrete;
  }
  .docs-cat[open]::details-content, .docs-side-menu[open]::details-content { block-size: auto; }
}

/* Topics hang off a hairline rail that starts under the section icon. */
.docs-cat ul {
  list-style: none; margin: 2px 0 10px 16px; padding: 0;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.docs-cat li a {
  display: flex; align-items: center; gap: 8px;
  margin-left: -1px; padding: 6px 10px 6px 15px;
  border-radius: 0 7px 7px 0;
  font-size: 14px; font-weight: 450; line-height: 1.45; color: var(--text-2);
  box-shadow: inset 1px 0 0 transparent;
  transition: color var(--fast), background-color var(--fast), box-shadow var(--fast);
}
.docs-cat li a:hover { color: var(--text); box-shadow: inset 1px 0 0 var(--line-2); }
.docs-cat li a[aria-current="page"] {
  color: var(--text); font-weight: 600; background: var(--bg-soft);
  box-shadow: inset 2px 0 0 var(--text);
}
.docs-stub-dot {
  flex-shrink: 0; width: 6px; height: 6px; margin-left: auto;
  border-radius: 50%; border: 1px dashed var(--text-3);
}
.docs-cat li a:has(.docs-stub-dot) span { color: var(--text-3); }

.docs-main { padding: 40px 32px 80px 48px; border-left: 1px solid var(--line); }

/* ---- index ------------------------------------------------------------ */
.docs-home { max-width: 920px; }
.docs-home h1 {
  margin: 10px 0 12px; font-size: 44px; line-height: 1.05; font-weight: 700;
  letter-spacing: -0.035em; color: var(--text); text-wrap: balance;
}
.docs-lede { margin: 0 0 40px; max-width: 620px; color: var(--text-2); font-size: 18px; line-height: 1.6; text-wrap: pretty; }

.docs-surfaces {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin: 0 0 56px;
}
.docs-surface {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px;
  color: var(--text); background: var(--bg);
  transition: border-color var(--base), background-color var(--base), transform var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.docs-surface:hover {
  border-color: var(--line-2); transform: translateY(-2px);
  box-shadow: 0 10px 24px oklch(0.3 0.02 60 / 0.07);
}
.docs-surface:active { transform: translateY(0) scale(0.99); }
.docs-tile {
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
}
.docs-surface .docs-tile { margin-bottom: 10px; }
.docs-surface b { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.docs-surface span { font-size: 13.5px; line-height: 1.5; color: var(--text-2); flex: 1; text-wrap: pretty; }
.docs-surface em {
  display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-style: normal; font-size: 13px; font-weight: 500; color: var(--text);
}
.docs-surface em .docs-icon { margin-left: auto; transition: transform var(--base) var(--ease); }
.docs-surface:hover em .docs-icon { transform: translateX(3px); }

.docs-home-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.docs-home-cat h2 {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
}
.docs-home-cat h2 .docs-tile { width: 26px; height: 26px; border-radius: 7px; }
.docs-home-cat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.docs-home-cat li a {
  display: flex; flex-direction: column; gap: 1px;
  margin: 0 -10px; padding: 9px 10px; border-radius: 8px;
  transition: background-color var(--fast);
}
.docs-home-cat li a:hover { background: var(--bg-soft); }
.docs-home-cat li b { font-size: 15px; font-weight: 550; color: var(--text); line-height: 1.4; }
.docs-home-cat li span { color: var(--text-3); font-size: 13.5px; line-height: 1.45; }
.docs-home-foot { margin: 48px 0 0; font-size: 13px; color: var(--text-3); }
kbd {
  font: 12px var(--mono); color: var(--text-2); background: var(--bg-soft);
  border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px;
}

/* ---- article + right-hand TOC rail ------------------------------------ */
.docs-article-layout { display: grid; grid-template-columns: minmax(0, 700px) 208px; gap: 64px; }
.docs-article { min-width: 0; }
.docs-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.docs-crumbs > a:first-child { font-size: 13px; color: var(--text-3); transition: color var(--fast); }
.docs-crumbs > a:first-child:hover { color: var(--text); }
.docs-crumbs > .docs-icon { color: var(--line-2); }
.docs-crumb-section {
  display: flex; align-items: center; gap: 9px;
  font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
}
.docs-crumb-section .docs-tile { width: 26px; height: 26px; border-radius: 7px; transition: background-color var(--fast); }
.docs-crumb-section:hover .docs-tile { background: var(--bg-hover); }
.docs-article h1 {
  margin: 0 0 10px; font-size: 40px; line-height: 1.08; font-weight: 700;
  letter-spacing: -0.035em; color: var(--text); text-wrap: balance;
}
.docs-article .docs-lede { margin: 0 0 18px; font-size: 18px; }
.docs-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px;
  margin: 0 0 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}
.docs-meta span, .docs-meta a { display: flex; align-items: center; gap: 6px; }
.docs-meta a { color: var(--text-3); margin-left: auto; transition: color var(--fast); }
.docs-meta a:hover { color: var(--text); }
.docs-stub-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 28px; padding: 14px 16px; font-size: 14px; line-height: 1.55;
  color: var(--text-2); background: var(--bg-soft);
  border: 1px dashed var(--line-2); border-radius: 10px;
}
.docs-stub-note .docs-icon { margin-top: 2px; color: var(--text-3); }

.docs-toc { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; font-size: 13px; }
.docs-toc > span { display: block; margin-bottom: 12px; }
.docs-toc ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; border-left: 1px solid var(--line);
}
.docs-toc a {
  display: block; margin-left: -1px; padding: 5px 0 5px 13px;
  color: var(--text-3); line-height: 1.4;
  box-shadow: inset 1px 0 0 transparent;
  transition: color var(--base), box-shadow var(--base) var(--ease);
}
.docs-toc a:hover { color: var(--text); }
.docs-toc a[aria-current="true"] { color: var(--text); font-weight: 500; box-shadow: inset 2px 0 0 var(--text); }

/* ---- body typography: topics loud, running text calm ------------------ */
.docs-body { font-size: 16px; line-height: 1.7; }
.docs-body > :first-child { margin-top: 0; }
.docs-body h2 {
  margin: 48px 0 14px; padding-top: 32px; border-top: 1px solid var(--line);
  font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -0.022em;
  color: var(--text); text-wrap: balance;
}
.docs-body > h2:first-child { padding-top: 0; border-top: 0; }
.docs-body h3 {
  margin: 32px 0 8px; font-size: 17px; line-height: 1.35; font-weight: 600;
  letter-spacing: -0.01em; color: var(--text);
}
.docs-body h2:target, .docs-body h3:target { animation: docs-target 1.6s var(--ease); }
@keyframes docs-target {
  0%, 30% { background: var(--bg-soft); box-shadow: 0 0 0 8px var(--bg-soft); border-radius: 6px; }
}
.docs-body p { margin: 0 0 16px; text-wrap: pretty; }
.docs-body strong { font-weight: 600; color: var(--text); }
.docs-body a {
  color: var(--text); text-decoration: underline;
  text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: text-decoration-color var(--fast);
}
.docs-body a:hover { text-decoration-color: var(--text); }

/* Bulleted lists: a small square, set in the gutter. */
.docs-body ul { list-style: none; margin: 0 0 18px; padding: 0; }
.docs-body ul > li { position: relative; margin-bottom: 8px; padding-left: 22px; }
.docs-body ul > li::before {
  content: ""; position: absolute; left: 4px; top: 0.72em;
  width: 5px; height: 5px; border-radius: 1.5px; background: var(--line-2);
}
/* Numbered lists read as steps: a numbered dot on a connecting rail. */
.docs-body ol { list-style: none; counter-reset: step; margin: 4px 0 22px; padding: 0; }
.docs-body ol > li {
  counter-increment: step; position: relative;
  padding: 0 0 16px 42px; min-height: 26px;
}
.docs-body ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font: 500 12px/1 var(--mono); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2);
}
.docs-body ol > li:not(:last-child)::after {
  content: ""; position: absolute; left: 13px; top: 31px; bottom: 3px;
  width: 1px; background: var(--line);
}
.docs-body ol > li:last-child { padding-bottom: 0; }
.docs-body li > ul, .docs-body li > ol { margin: 8px 0 0; }
.docs-body li > p { margin: 0 0 8px; }

/* Definition lists (markdown "extra"): label column + answer column. */
.docs-body dl {
  display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr);
  margin: 0 0 20px; border-top: 1px solid var(--line);
}
.docs-body dt, .docs-body dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.docs-body dt { font-weight: 600; color: var(--text); padding-right: 16px; }

.docs-body code {
  font: 0.84em var(--mono); color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px;
}
.docs-body pre {
  position: relative; margin: 0 0 20px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 38px 18px 16px; overflow-x: auto;
  font-size: 13.5px; line-height: 1.65;
}
.docs-body pre code { font-size: inherit; background: none; border: 0; padding: 0; }
.docs-body pre::before {
  content: "Code"; position: absolute; top: 0; left: 0; right: 0; padding: 7px 18px;
  border-bottom: 1px solid var(--line);
  font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3);
}
.docs-body pre:has(.language-json)::before   { content: "JSON"; }
.docs-body pre:has(.language-python)::before { content: "Python"; }
.docs-body pre:has(.language-bash)::before,
.docs-body pre:has(.language-sh)::before     { content: "Shell"; }
.docs-body pre:has(.language-js)::before,
.docs-body pre:has(.language-javascript)::before { content: "JavaScript"; }

/* Tables: a soft card; mono head, the first column is the row's name. */
.docs-body table {
  width: 100%; margin: 4px 0 24px;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  font-size: 14.5px; line-height: 1.5;
}
.docs-body th, .docs-body td {
  padding: 11px 16px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.docs-body tr > :not(:first-child) { border-left: 1px solid var(--line); }
.docs-body tbody tr:last-child > * { border-bottom: 0; }
.docs-body thead th {
  background: var(--bg-soft);
  font: 500 11px/1.4 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-2);
}
.docs-body tbody td:first-child { font-weight: 550; color: var(--text); }
.docs-body tbody tr { transition: background-color var(--fast); }
.docs-body tbody tr:hover { background: oklch(0.985 0.002 80); }
.docs-body td code { white-space: nowrap; }

/* Callouts (blockquote). */
.docs-body blockquote {
  position: relative; margin: 0 0 20px; padding: 14px 16px 14px 46px;
  color: var(--text-body); font-size: 15px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
}
.docs-body blockquote::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px;
  background: var(--text-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.docs-body blockquote p { margin: 0 0 8px; }
.docs-body blockquote p:last-child { margin: 0; }

/* A fact not yet confirmed: present, plainly marked, never guessed. */
.docs-tbd {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px/1.6 var(--sans); color: var(--text-2);
  background: var(--bg); border: 1px dashed var(--line-2); border-radius: 999px;
  padding: 0 9px 0 7px; white-space: nowrap; vertical-align: 1px;
}
.docs-tbd::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px dashed var(--text-3);
}
td .docs-tbd { vertical-align: 0; }

/* "Where does this work?": one quiet row of surface icons, names on hover/focus. */
.docs-where { display: flex; align-items: center; gap: 12px; margin: 0 0 32px; }
.docs-where-label { margin: 0; }
.docs-where ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.docs-where li {
  position: relative; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  cursor: default; outline: none;
  transition: background-color var(--fast), border-color var(--fast);
}
.docs-where li:hover, .docs-where li:focus-visible { background: var(--bg); border-color: var(--line-2); }
.docs-where li::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px);
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  font: 500 12px/1.4 var(--sans); color: var(--bg); background: var(--text);
  opacity: 0; transform: translate(-50%, 3px); pointer-events: none;
  transition: opacity var(--fast), transform var(--base) var(--ease);
}
.docs-where li:hover::after, .docs-where li:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Previous / next. */
.docs-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
.docs-pager a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text);
  transition: border-color var(--base), background-color var(--base);
}
.docs-pager a:hover { border-color: var(--line-2); background: var(--bg-soft); }
.docs-pager a > .docs-icon { color: var(--text-3); transition: transform var(--base) var(--ease), color var(--base); }
.docs-pager-prev:hover > .docs-icon { transform: translateX(-3px); color: var(--text); }
.docs-pager-next:hover > .docs-icon { transform: translateX(3px); color: var(--text); }
.docs-pager a > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.docs-pager b { font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.docs-pager-next { grid-column: 2; text-align: right; }

/* ---- footer ------------------------------------------------------------ */
.docs-footer {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: 20px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}
.docs-footer nav { display: flex; gap: 18px; }
.docs-footer a { color: var(--text-2); transition: color var(--fast); }
.docs-footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  @view-transition { navigation: none; }
  .docs-cat::details-content, .docs-side-menu::details-content { transition: none; }
}

/* ---- narrower screens ---------------------------------------------------- */
@media (max-width: 1100px) {
  .docs-article-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-surfaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-main { padding-left: 32px; }
}
@media (max-width: 780px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side {
    position: sticky; top: var(--header-h); z-index: 5; max-height: none;
    background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); padding: 0 16px;
  }
  .docs-side-menu[open] { max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding-bottom: 12px; }
  .docs-side-summary {
    display: flex; align-items: center; gap: 10px;
    min-height: 48px; cursor: pointer; list-style: none;
    font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
  }
  .docs-side-summary::-webkit-details-marker { display: none; }
  .docs-side-summary::after {
    content: "Menu"; margin-left: auto; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px;
    font: 500 12px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text-2);
  }
  .docs-side-menu[open] .docs-side-summary::after { content: "Close"; }
  .docs-cat summary { min-height: 44px; }
  .docs-cat li a { min-height: 44px; padding: 10px 10px 10px 15px; }
  .docs-main { padding: 28px 20px 56px; border-left: 0; }
  .docs-home h1 { font-size: 34px; }
  .docs-article h1 { font-size: 32px; }
  .docs-lede, .docs-article .docs-lede { font-size: 16.5px; }
  .docs-body h2 { font-size: 21px; margin-top: 40px; padding-top: 28px; }
  .docs-home-cats { grid-template-columns: 1fr; gap: 32px; }
  .docs-surfaces { grid-template-columns: 1fr; gap: 10px; }
  .docs-surface { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .docs-surface .docs-tile { margin: 0; }
  .docs-surface b { flex: 1; }
  .docs-surface span, .docs-surface em { flex-basis: 100%; }
  .docs-where li { width: 40px; height: 40px; }
  .docs-body table { display: block; overflow-x: auto; }
  .docs-topnav { display: none; }
  .docs-search-kbd { display: none; }
  .docs-search-results { min-width: 0; position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 6px); }
  .docs-results-foot { display: none; }
  .docs-header-inner { padding: 0 16px; gap: 14px; }
  .brand b { display: none; }
  .brand { flex: none; }
  .docs-search { flex: 1; }
  .docs-meta a { margin-left: 0; }
  .docs-pager { grid-template-columns: 1fr; gap: 10px; margin-top: 40px; }
  .docs-pager-next { grid-column: 1; }
}
