/* =============================================================================================
   The documentation (/<lang>/docs/, site/docs/build_docs.py): only what its pages add to site.css.
   Its pages are light or dark: the site's own dark tokens, and light ones when <html data-docs-scheme="light">
   (the rest of the site is dark only). That attribute is set before the first paint by the head script of
   build_docs.py (THEME_SCRIPT): the reader's choice of the « Appearance » control (Auto · Light · Dark), Auto =
   the Mac's appearance; dark without JavaScript. Sections: light tokens · layout · hub · navigation · appearance ·
   search · page head · body text · callouts · video tutorials · pictures · pager and help · responsive
   ============================================================================================= */

/* ---------- Light tokens (the same names as site.css) ---------- */
/* « html:root »: this sheet comes before site.css in the page (base.html's extra_head), its tokens must win. Every
   light-only rule of this sheet starts with [data-docs-scheme="light"]. */
html:root[data-docs-scheme="light"] {
  color-scheme: light;
  --bg: #f7f8fb;
  --bg-2: #eef0f5;
  --text: #14151c;
  --text-2: #42454f;
  --text-3: #5b5e6a;
  --dim: #868995;
  --line: rgba(20, 22, 34, .09);
  --line-2: rgba(20, 22, 34, .16);
  --surface: rgba(20, 22, 34, .035);
  --surface-2: rgba(20, 22, 34, .06);
  --surface-3: rgba(20, 22, 34, .1);
  --card: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, .72);
  --pop: rgba(255, 255, 255, .97);
  --input: rgba(20, 22, 34, .04);
  --kbd: rgba(20, 22, 34, .055);
  --btn-bg: #14151c;
  --btn-text: #ffffff;
  --accent: #2563eb;
  --accent-text: #1d4fd6;
  --focus: #2563eb;
  --ok: #04855c;
  --grad: linear-gradient(100deg, #2563eb 0%, #6366f1 45%, #9333ea 80%, #c026d3 100%);
  --shadow-card: 0 1px 2px rgba(20, 22, 34, .05), 0 14px 34px -22px rgba(20, 22, 34, .28);
  --shadow-lg: 0 30px 80px -30px rgba(20, 22, 34, .35);
  --toast-bg: #14151c;
  --toast-text: #ffffff;
  --grain-opacity: 0;
}
[data-docs-scheme="light"] .p-docs ::selection { background: rgba(37, 99, 235, .2); }
[data-docs-scheme="light"] .p-docs .aurora { opacity: .45; }
[data-docs-scheme="light"] .p-docs .card { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); }
[data-docs-scheme="light"] .p-docs .btn-primary { box-shadow: 0 10px 24px -14px rgba(20, 22, 34, .55); }

/* ---------- Layout: navigation · page · « On this page » ---------- */
.docs-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: clamp(28px, 3.4vw, 52px); align-items: start;
  padding-top: calc(var(--nav-h) + clamp(22px, 3.4vw, 40px)); padding-bottom: clamp(56px, 8vw, 104px);
}
.docs-layout-cat, .docs-layout-notoc { grid-template-columns: 250px minmax(0, 1fr); }
.docs-main { min-width: 0; max-width: 800px; overflow-wrap: break-word; }
.docs-layout-cat .docs-main, .docs-layout-notoc .docs-main { max-width: 860px; }
.docs-side { position: sticky; z-index: 5; top: calc(var(--nav-h) + 18px); display: grid; gap: 14px; min-width: 0; }
/* Two classes at least where site.css styles the same element (.i): this sheet comes first in the page. */
.docs-nav .docs-ic { width: 16px; height: 16px; flex: none; }

/* ---------- Hub ---------- */
/* Above the cards (its search's results open over them); its light clipped by its own layer. */
.docs-hero { position: relative; z-index: 3; padding: calc(var(--nav-h) + clamp(44px, 7vw, 92px)) 0 clamp(28px, 4vw, 44px); }
.docs-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none; }
.docs-hero-in { display: grid; justify-items: center; gap: 16px; text-align: center; }
.docs-hero .lead { max-width: 36em; }
.docs-hero .docs-search { width: min(640px, 100%); margin-top: 12px; }
.docs-hub { padding-bottom: clamp(64px, 9vw, 120px); }
.docs-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; margin: 0 0 40px; padding: 0; }
.docs-card { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 20px; }
.docs-card-head { display: flex; align-items: center; gap: 14px; }
.docs-card-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; color: #fff; background: var(--grad-soft); box-shadow: 0 10px 22px -14px rgba(59, 130, 246, .8); }
.docs-card-ic .docs-ic { width: 21px; height: 21px; }
.docs-card-copy { display: grid; gap: 2px; min-width: 0; }
.docs-card-t { font-size: 18px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; transition: color .2s; }
.docs-card-head:hover .docs-card-t { color: var(--accent-text); }
.docs-card-n { font-size: 13px; color: var(--text-3); }
.docs-card-s { font-size: 14.5px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.docs-card-pages { list-style: none; display: grid; gap: 2px; margin: 2px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); }
.docs-card-pages a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--text); transition: color .15s; }
.docs-card-pages a:hover { color: var(--accent-text); }
.docs-card-all { margin-top: auto; font-size: 14.5px; }
.docs-card-empty { font-size: 14px; color: var(--text-3); font-style: italic; }

/* ---------- Navigation (left) ---------- */
.docs-nav-toggle { display: none; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; font-size: 15px; font-weight: 600; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.docs-nav-toggle .i { width: 18px; height: 18px; }
.docs-nav-toggle .i:last-child { margin-left: auto; transition: transform .25s var(--ease); }
.docs-nav-toggle[aria-expanded="true"] .i:last-child { transform: rotate(180deg); }
.docs-nav {
  max-height: calc(100vh - var(--nav-h) - 144px); overflow-y: auto; overscroll-behavior: contain;
  margin: 0 -6px; padding: 2px 6px 24px; font-size: 14px; scrollbar-width: thin;
}
.docs-nav-home { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; font-weight: 600; color: var(--text-2); }
.docs-nav-home .i { width: 16px; height: 16px; }
.docs-nav-home:hover { color: var(--text); background: var(--surface-2); }
.docs-nav-cat summary {
  display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 9px; cursor: pointer;
  font-weight: 600; color: var(--text); list-style: none; -webkit-user-select: none; user-select: none;
}
.docs-nav-cat summary::-webkit-details-marker { display: none; }
.docs-nav-cat summary:hover { background: var(--surface-2); }
.docs-nav-cat summary > span { flex: 1; min-width: 0; }
.docs-nav-cat summary .docs-ic { color: var(--accent-text); }
.docs-nav-cat summary .i:last-child { width: 14px; height: 14px; color: var(--text-3); transition: transform .2s var(--ease); }
.docs-nav-cat[open] summary .i:last-child { transform: rotate(90deg); }
.docs-nav-cat ul { list-style: none; margin: 2px 0 8px 16px; padding: 0 0 0 10px; border-left: 1px solid var(--line-2); }
.docs-nav-cat li a { display: block; padding: 5px 9px; border-radius: 7px; color: var(--text-2); line-height: 1.35; transition: color .15s, background-color .15s; }
.docs-nav-cat li a:hover { color: var(--text); background: var(--surface); }
.docs-nav-cat li a[aria-current] { color: var(--accent-text); font-weight: 600; background: color-mix(in srgb, var(--accent) 13%, transparent); }
.docs-nav-over { font-size: 13px; }

/* ---------- Appearance: Light · Dark, dark unless Light is picked (docs-theme.html, docs.js) ---------- */
/* Shown only when the head script has run (it sets data-docs-theme); the choice is highlighted from that attribute
   at the first paint, before docs.js sets aria-checked. */
.docs-theme { display: none; }
[data-docs-theme] .docs-theme {
  display: flex; gap: 2px; padding: 3px; border-radius: 11px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.docs-theme button {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 28px; padding: 0 6px;
  border-radius: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--text-3);
  transition: color .15s, background-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent;
}
.docs-theme button span { overflow: hidden; text-overflow: ellipsis; }
.docs-theme .i { width: 14px; height: 14px; }
.docs-theme button:hover { color: var(--text); }
.docs-theme button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: 8px; }
[data-docs-theme="light"] .docs-theme [data-theme-choice="light"],
[data-docs-theme="dark"] .docs-theme [data-theme-choice="dark"] {
  color: var(--text); background: var(--surface-3); box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
[data-docs-scheme="light"][data-docs-scheme="light"][data-docs-theme="light"] .docs-theme [data-theme-choice="light"],
[data-docs-scheme="light"][data-docs-theme="dark"] .docs-theme [data-theme-choice="dark"] {
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(20, 22, 34, .12);
}
.docs-hero .docs-theme { width: min(330px, 100%); margin-top: 2px; }
/* A change of appearance: every colour at once, no transition half-way (THEME_SCRIPT, one frame). */
.docs-still, .docs-still *, .docs-still *::before, .docs-still *::after { transition: none !important; }

/* ---------- Search ---------- */
.docs-search { position: relative; }
.docs-search-box {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 8px 0 12px; border-radius: 12px;
  background: var(--input); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background-color .2s;
}
.docs-search-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--focus), 0 0 0 4px color-mix(in srgb, var(--focus) 18%, transparent); }
.docs-search-box > .i { width: 17px; height: 17px; color: var(--text-3); }
.docs-search-box input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--text);
  font: 15px/1 var(--font); -webkit-appearance: none; appearance: none;
}
.docs-search-box input::placeholder { color: var(--text-3); }
.docs-search-box input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.docs-search-key { min-width: 22px; height: 22px; font-size: 12px; }
.docs-search-box:focus-within .docs-search-key { visibility: hidden; }
.docs-search-lg .docs-search-box { height: 54px; padding: 0 12px 0 18px; border-radius: 16px; background: var(--card-solid); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card); }
.docs-search-lg .docs-search-box > .i { width: 20px; height: 20px; }
.docs-search-lg input { font-size: 17px; }
.docs-results {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(560px, calc(100vw - 2 * var(--gutter)));
  max-height: min(68vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 16px;
  text-align: left; background: var(--pop); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-lg);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); animation: pop .2s var(--ease);
}
.docs-search-lg .docs-results { width: 100%; }
.docs-hit { display: grid; gap: 2px; padding: 10px 12px; border-radius: 11px; color: var(--text); }
.docs-hit[aria-selected="true"], .docs-hit:hover { background: var(--surface-2); }
.docs-hit[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--line-2); }
.docs-hit-c { font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--accent-text); }
.docs-hit-t { font-size: 15px; font-weight: 600; line-height: 1.35; }
.docs-hit-s { font-size: 13.5px; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.docs-hit mark, .docs-body mark.docs-found { color: inherit; background: color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 3px; padding: 0 1px; }
.docs-results-foot, .docs-results-note { padding: 9px 12px 6px; font-size: 12.5px; color: var(--text-3); }
.docs-results-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 4px; }
.docs-results-note { padding: 14px 12px; font-size: 14px; color: var(--text-2); }
@media (hover: none) { .docs-search-key, .docs-results-keys { display: none; } }

/* ---------- Crumbs, page head ---------- */
.docs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 18px; font-size: 13.5px; color: var(--text-3); }
.docs-crumbs a { color: var(--text-2); }
.docs-crumbs a:hover { color: var(--text); }
.docs-crumbs [aria-current] { color: var(--text-3); }
.docs-head { display: grid; gap: 12px; margin-bottom: 24px; }
.docs-head-cat { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
.docs-head-cat .docs-lead { grid-column: 1 / -1; }
.docs-head-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #fff; background: var(--grad-soft); box-shadow: 0 14px 28px -16px rgba(59, 130, 246, .8); }
.docs-head-ic .docs-ic-lg { width: 26px; height: 26px; }
.docs-title { font-size: clamp(1.9rem, 1.3rem + 2.3vw, 2.75rem); line-height: 1.12; letter-spacing: -.032em; font-weight: 700; text-wrap: balance; }
.docs-lead { font-size: clamp(1.05rem, .98rem + .35vw, 1.2rem); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.docs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--text-3); }
.docs-meta-i + .docs-meta-i::before { content: "·"; margin-right: 14px; color: var(--dim); }
.docs-badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.docs-badge-site { color: #5eead4; background: rgba(45, 212, 191, .12); box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .24); }
.docs-badge-appstore { color: #c4b5fd; background: rgba(167, 139, 250, .14); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .26); }
[data-docs-scheme="light"] .docs-badge-site { color: #0f766e; background: rgba(20, 184, 166, .11); box-shadow: inset 0 0 0 1px rgba(20, 184, 166, .28); }
[data-docs-scheme="light"] .docs-badge-appstore { color: #6d28d9; background: rgba(139, 92, 246, .1); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .26); }
.docs-untranslated { display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 22px; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; color: var(--text-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.docs-untranslated .i { width: 17px; height: 17px; margin-top: 1px; color: var(--accent-text); }

/* « On this page »: in the right column, or folded above the text when there is no room for it. */
.docs-toc { position: sticky; top: calc(var(--nav-h) + 22px); max-height: calc(100vh - var(--nav-h) - 44px); overflow-y: auto; font-size: 13.5px; scrollbar-width: thin; }
.docs-toc-t { margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.docs-toc ul, .docs-toc-inline ul { list-style: none; margin: 0; padding: 0; }
.docs-toc ul ul, .docs-toc-inline ul ul { padding-left: 12px; }
.docs-toc a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); color: var(--text-3); line-height: 1.35; transition: color .15s, border-color .15s; }
.docs-toc ul ul a { padding-left: 12px; }
.docs-toc a:hover { color: var(--text); }
.docs-toc a.is-current { color: var(--accent-text); border-left-color: var(--accent); }
.docs-toc-inline { display: none; margin: 0 0 26px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.docs-toc-inline summary { display: flex; align-items: center; gap: 9px; padding: 12px 16px; font-size: 14.5px; font-weight: 600; cursor: pointer; list-style: none; }
.docs-toc-inline summary::-webkit-details-marker { display: none; }
.docs-toc-inline summary .i { width: 17px; height: 17px; }
.docs-toc-inline summary .i:last-child { margin-left: auto; color: var(--text-3); transition: transform .2s var(--ease); }
.docs-toc-inline[open] summary .i:last-child { transform: rotate(180deg); }
.docs-toc-inline > ul { padding: 0 16px 14px; }
.docs-toc-inline a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--text-2); }
.docs-toc-inline a:hover { color: var(--accent-text); }

/* ---------- Body text ---------- */
.docs-body { font-size: 16.5px; line-height: 1.72; color: var(--text-2); }
.docs-body > * + * { margin-top: 1em; }
.docs-body > :first-child { margin-top: 0; }
.docs-body h2, .docs-body h3, .docs-body h4 { color: var(--text); letter-spacing: -.018em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.docs-body h2 { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: 1.5rem; line-height: 1.3; font-weight: 680; }
.docs-body > h2:first-child { padding-top: 0; border-top: 0; }
.docs-body h3 { margin-top: 1.7em; font-size: 1.18rem; line-height: 1.35; font-weight: 650; }
.docs-body h4 { margin-top: 1.4em; font-size: 1.02rem; font-weight: 650; }
.docs-anchor { display: inline-block; margin-left: .35em; padding: 0 .15em; color: var(--text-3); font-weight: 500; opacity: 0; transition: opacity .15s; text-decoration: none; }
.docs-body :is(h2, h3, h4):hover .docs-anchor, .docs-anchor:focus-visible { opacity: 1; }
.docs-anchor:hover { color: var(--accent-text); }
.docs-body strong { color: var(--text); font-weight: 620; }
.docs-body a:not(.docs-anchor) { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.docs-body ul, .docs-body ol { display: grid; gap: .4em; padding-left: 1.45em; }
.docs-body ul { list-style: disc; }
.docs-body ol { list-style: decimal; }
.docs-body li::marker { color: var(--text-3); }
.docs-body ol > li::marker { font-weight: 600; color: var(--text-2); }
.docs-body li > ul, .docs-body li > ol { margin-top: .4em; }
.docs-body li > p + p, .docs-body li > * + * { margin-top: .55em; }
.docs-body blockquote { padding: 2px 0 2px 18px; border-left: 3px solid var(--line-2); color: var(--text); }
.docs-body blockquote > * + * { margin-top: .7em; }
.docs-body code { padding: .12em .38em; border-radius: 6px; background: var(--kbd); font: .86em var(--mono); color: var(--text); overflow-wrap: anywhere; }
.docs-code { overflow-x: auto; padding: 15px 18px; border-radius: 12px; font-size: 14px; line-height: 1.6; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.docs-code code { padding: 0; background: none; font-size: 1em; overflow-wrap: normal; white-space: pre; }
.docs-body kbd { min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 6px; font-size: .8em; vertical-align: .1em; color: var(--text); }
.docs-body hr { height: 1px; margin: 2em 0; border: 0; background: var(--line); }
.docs-body del { color: var(--text-3); }
.docs-table { overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.docs-table th, .docs-table td { padding: 9px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.docs-table th { color: var(--text); font-weight: 620; background: var(--surface); white-space: nowrap; }
.docs-table tr:last-child td { border-bottom: 0; }
.docs-broken { color: var(--text); text-decoration: underline dotted; text-underline-offset: 3px; }

/* ---------- Callouts: Tip, Note, Important, App Store version, Website version ---------- */
.docs-callout {
  --c: #60a5fa; --ct: #93c5fd;
  margin: 1.4em 0; padding: 13px 17px 14px; border-radius: 13px; font-size: 15.5px; line-height: 1.6; color: var(--text-2);
  background: color-mix(in srgb, var(--c) 8%, transparent);
  box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent);
}
.docs-callout > * + * { margin-top: .55em; }
.docs-callout-t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: .005em; color: var(--ct); }
.docs-callout-t .i { width: 17px; height: 17px; }
.docs-callout-tip { --c: #34d399; --ct: #6ee7b7; }
.docs-callout-important { --c: #fbbf24; --ct: #fcd34d; }
.docs-callout-appstore { --c: #a78bfa; --ct: #c4b5fd; }
.docs-callout-website { --c: #2dd4bf; --ct: #5eead4; }
[data-docs-scheme="light"] .docs-callout { --c: #3b82f6; --ct: #1d4fd6; }
[data-docs-scheme="light"] .docs-callout-tip { --c: #10b981; --ct: #047857; }
[data-docs-scheme="light"] .docs-callout-important { --c: #f59e0b; --ct: #a15c07; }
[data-docs-scheme="light"] .docs-callout-appstore { --c: #8b5cf6; --ct: #6d28d9; }
[data-docs-scheme="light"] .docs-callout-website { --c: #14b8a6; --ct: #0f766e; }
.docs-head + .docs-callout, .docs-untranslated + .docs-callout, .docs-soon + .docs-callout { margin: -6px 0 24px; }

/* « The Mac App Store edition is coming soon » (until site.json app_store_live): under the title, in a section, or
   at the top of the App Store callout. */
.docs-soon {
  --c: #a78bfa; --ct: #c4b5fd;
  display: flex; gap: 10px; align-items: flex-start; margin: -6px 0 22px; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; line-height: 1.5; color: var(--text-2);
  background: color-mix(in srgb, var(--c) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 24%, transparent);
}
.docs-soon .i, .docs-soon-p .i { flex: none; width: 17px; height: 17px; margin-top: 1.5px; color: var(--ct); }
.docs-soon a, .docs-soon-p a { white-space: nowrap; color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.docs-soon a:hover, .docs-soon-p a:hover { color: var(--text); }
.docs-soon + .docs-soon, .docs-untranslated + .docs-soon { margin-top: -10px; }
.docs-body .docs-soon-in { margin: .2em 0 1.1em; }
.docs-body > .docs-soon-in:first-child { margin-top: 0; }
.docs-soon-p { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
[data-docs-scheme="light"] .docs-soon { --c: #8b5cf6; --ct: #6d28d9; }

/* « Watch the tutorial » (site/docs/tutorials.json, templates/pages/docs-tuts.html): under the title of a page or a
   category, its video tutorials, each a link to its card on the tutorials page. */
.docs-tuts {
  display: flex; gap: 14px; align-items: flex-start; margin: -6px 0 24px; padding: 13px 16px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.docs-tuts-ic {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff;
  background: var(--grad-soft); box-shadow: 0 10px 22px -14px rgba(59, 130, 246, .8);
}
.docs-tuts-ic .i { width: 14px; height: 14px; margin-left: 2px; }
.docs-tuts-copy { flex: 1; min-width: 0; display: grid; gap: 3px; padding-top: 1px; }
.docs-tuts-t { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.docs-tuts-list { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }
.docs-tuts-list a { display: inline-flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; max-width: 100%; padding: 1px 0; font-size: 15.5px; font-weight: 620; line-height: 1.4; color: var(--accent-text); }
.docs-tuts-name { min-width: 0; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.docs-tuts-list a:hover .docs-tuts-name, .docs-tuts-list a:focus-visible .docs-tuts-name { text-decoration-color: currentColor; }
.docs-tuts-len { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text-3); }
.docs-tuts-list a .i { width: 14px; height: 14px; margin-left: -6px; color: var(--text-3); transition: transform .2s var(--ease), color .15s; }
.docs-tuts-list a:hover .i { transform: translateX(2px); color: var(--accent-text); }
.docs-tuts-note { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text-3); }

/* ---------- Pictures ---------- */
.docs-fig { margin: 1.6em 0; }
.docs-fig picture, .docs-fig img { display: block; }
.docs-fig img { max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); }
/* site/docs/media pictures: windows with their own shadow on a transparent background, no frame of ours. */
.docs-fig-bare img { border-radius: 0; box-shadow: none; }
.docs-fig figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.45; text-align: center; color: var(--text-3); }
.docs-pending {
  display: grid; place-items: center; align-content: center; gap: 6px; min-height: 180px; padding: 24px; border-radius: 14px;
  text-align: center; color: var(--text-3); background: repeating-linear-gradient(135deg, var(--surface) 0 10px, transparent 10px 20px);
  outline: 1px dashed var(--line-2); outline-offset: -1px;
}
.docs-pending .i { width: 30px; height: 30px; opacity: .7; }
.docs-pending-t { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.docs-pending-d { max-width: 38em; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.docs-inline-pic img { display: inline-block; max-height: 1.6em; width: auto; vertical-align: middle; border-radius: 4px; }
.docs-pending-inline { font-style: italic; color: var(--text-3); }

/* ---------- Category: its pages ---------- */
.docs-list { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.docs-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 15px 18px; border-radius: 15px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); transition: box-shadow .2s, transform .25s var(--ease);
}
.docs-item:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-card); }
.docs-item-t { grid-column: 1; font-size: 16.5px; font-weight: 640; color: var(--text); letter-spacing: -.01em; }
.docs-item:hover .docs-item-t { color: var(--accent-text); }
.docs-item .docs-badge { grid-column: 1; justify-self: start; }
.docs-item-s { grid-column: 1; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.docs-item > .i { grid-column: 2; grid-row: 1 / span 3; width: 17px; height: 17px; color: var(--text-3); }
.docs-empty { padding: 22px; border-radius: 14px; color: var(--text-3); background: var(--surface); }
.docs-other-t { margin: 44px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.docs-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.docs-chips a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 11px; border-radius: 999px; font-size: 14px; color: var(--text-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: color .15s, background-color .15s; }
.docs-chips a:hover { color: var(--text); background: var(--surface-2); }
.docs-chips a[aria-current] { color: var(--accent-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.docs-chips .docs-ic { width: 15px; height: 15px; }

/* ---------- Previous / next, help ---------- */
.docs-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.docs-pager-a { display: grid; gap: 3px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .15s, box-shadow .15s; }
.docs-pager-a:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.docs-pager-next { grid-column: 2; text-align: right; justify-items: end; }
.docs-pager-k { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.docs-pager-k .i { width: 14px; height: 14px; }
.docs-pager-t { font-size: 15.5px; font-weight: 620; color: var(--text); line-height: 1.35; }
.docs-pager-a:hover .docs-pager-t { color: var(--accent-text); }
.docs-pager-c { font-size: 12.5px; color: var(--text-3); }
.docs-help { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 18px 20px; }
.docs-help-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; color: var(--accent-text); background: var(--surface-2); }
.docs-help-ic .i { width: 19px; height: 19px; }
.docs-help-copy { flex: 1; min-width: 0; }
.docs-help-t { font-size: 15.5px; font-weight: 650; }
.docs-help-copy p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.docs-help-more { display: flex; gap: 7px; align-items: flex-start; margin-top: 6px; }
.docs-help-more .i { flex: none; width: 15px; height: 15px; margin-top: 2.5px; color: var(--text-3); }
.docs-help-more a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.docs-help-more a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1179px) {
  .docs-layout { grid-template-columns: 236px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-toc-inline { display: block; }
}
@media (max-width: 899px) {
  .docs-layout, .docs-layout-cat, .docs-layout-notoc { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .docs-side { position: static; }
  .docs-nav-toggle { display: flex; }
  .docs-nav { max-height: none; overflow: visible; margin: 0; padding: 6px 4px 4px; }
  .js .docs-nav { display: none; }
  .js .docs-nav.is-open { display: block; }
  .docs-main { max-width: none; }
}
@media (max-width: 560px) {
  .docs-pager { grid-template-columns: minmax(0, 1fr); }
  .docs-pager-next { grid-column: 1; }
  .docs-help { flex-wrap: wrap; }
  .docs-help .btn { width: 100%; }
  .docs-body { font-size: 16px; }
  .docs-card { padding: 18px; }
  .docs-results { width: calc(100vw - 2 * var(--gutter)); }
}
@media (prefers-reduced-motion: reduce) {
  .docs-results { animation: none; }
  .docs-tuts-list a .i, .docs-tuts-list a:hover .i { transition: none; transform: none; }
  .docs-item, .docs-item:hover { transition: none; transform: none; }
}

/* ---------- Video tutorials and the GitHub community, under the docs home's hero (docs-hub.html, 17 Nov. 2026) ---------- */
.docs-more { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; margin: 0 0 28px; padding: 0; }
.docs-more a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; height: 100%; padding: 16px 18px; border-radius: 16px;
  color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, box-shadow .2s; }
.docs-more a:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.docs-more-ic { grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--accent-text); background: var(--surface-2); }
.docs-more-ic .i { width: 20px; height: 20px; }
.docs-more-ic.is-github { color: var(--text); }
.docs-more-t { font-weight: 650; line-height: 1.3; }
.docs-more-d { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.docs-more-go { grid-column: 3; grid-row: 1 / span 2; color: var(--text-3); }
.docs-more-go .i { width: 16px; height: 16px; transition: transform .2s; }
.docs-more a:hover .docs-more-go .i { transform: translateX(3px); color: var(--accent-text); }
