/* Copied from pim/src/shared/tokens.css. Keep in sync: the help site uses the suite's colours unchanged. */
/*
 * Design tokens shared by every app of the suite: colour, type, radius,
 * shadow. Light values on :root; dark values follow the system setting unless
 * the person picked one (html[data-theme]). Components use these variables and
 * nothing else, so a theme is only ever this file.
 */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface2: #f4f4f5;
  --border: #e4e4e7;
  --text: #18181b;
  --muted: #71717a;
  --muted2: #a1a1aa;
  --primary: #2563eb;
  --primary-h: #1d4ed8;
  --primary-s: #f4f4f5;
  --on-primary: #ffffff;
  --ring: rgba(37, 99, 235, 0.18);
  --danger: #dc2626;
  --danger-bg: #fff1f2;
  --danger-bg-h: #ffe4e6;
  --danger-border: #fecdd3;
  --danger-text: #b91c1c;
  --success: #16a34a;
  --warning: #d97706;
  --star: #d97706;
  --overlay: rgba(0, 0, 0, 0.55);
  --shadow-pop: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.18);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-s: 6px;
  --radius: 8px;
  --radius-l: 12px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b;
    --surface: #111113;
    --surface2: #1c1c1f;
    --border: #27272a;
    --text: #fafafa;
    --muted: #a1a1aa;
    --muted2: #52525b;
    --primary: #64748b;
    --primary-h: #60a5fa;
    --primary-s: #1c1c1f;
    --ring: rgba(59, 130, 246, 0.25);
    --danger: #f87171;
    --danger-bg: #3a1620;
    --danger-bg-h: #4a1a27;
    --danger-border: #6b2333;
    --danger-text: #fca5a5;
    --warning: #f59e0b;
    --overlay: rgba(0, 0, 0, 0.7);
    --shadow-pop: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #09090b;
  --surface: #111113;
  --surface2: #1c1c1f;
  --border: #27272a;
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted2: #52525b;
  --primary: #64748b;
  --primary-h: #60a5fa;
  --primary-s: #1c1c1f;
  --ring: rgba(59, 130, 246, 0.25);
  --danger: #f87171;
  --danger-bg: #3a1620;
  --danger-bg-h: #4a1a27;
  --danger-border: #6b2333;
  --danger-text: #fca5a5;
  --warning: #f59e0b;
  --overlay: rgba(0, 0, 0, 0.7);
  --shadow-pop: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-modal: 0 16px 48px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/*
 * Layout and type of the help site. Colours, radii and shadows come from
 * tokens.css (the suite's), so the site looks like the apps it describes.
 * The build puts fonts, tokens and this file together into assets/site.css.
 */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/inter-latin-400-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/inter-latin-500-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/inter-latin-600-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/inter-latin-700-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/inter-latin-ext-400-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/inter-latin-ext-500-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/inter-latin-ext-600-normal.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: "Inter"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/inter-latin-ext-700-normal.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 {
  --topbar: 56px;
  --sidebar: 264px;
  --toc: 224px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --accent-bg: color-mix(in srgb, var(--primary) 8%, var(--surface));
  --tip: #16a34a;
  --note: var(--primary);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --note: #60a5fa; }
}
:root[data-theme="dark"] { --note: #60a5fa; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--topbar) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

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

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  width: calc(var(--sidebar) - 28px); flex-shrink: 0;
}
.brand-icon { width: 26px; height: 26px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; min-width: 34px; padding: 0 8px;
  border-radius: var(--radius); color: var(--muted);
}
.icon-btn:hover { background: var(--surface2); color: var(--text); }
.menu-lang { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.nav-toggle { display: none; }

.search { position: relative; flex: 1; min-width: 0; max-width: 560px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px;
  background: var(--surface2); border: 1px solid transparent; border-radius: var(--radius);
  color: var(--muted); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.search-box:focus-within { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; color: var(--text); }
.search-box input::placeholder { color: var(--muted); }
.search-box input::-webkit-search-cancel-button { display: none; }
kbd, .search-key {
  font-family: var(--font); font-size: 11.5px; font-weight: 500;
  padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--border); border-bottom-width: 2px;
  background: var(--surface); color: var(--muted); white-space: nowrap;
}
.search-box:focus-within .search-key { display: none; }

.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  max-height: min(70vh, 560px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop); padding: 6px;
}
.search-results a {
  display: block; padding: 8px 10px; border-radius: var(--radius);
  color: var(--text); text-decoration: none; line-height: 1.45;
}
.search-results a:hover, .search-results a[aria-selected="true"] { background: var(--surface2); }
.search-results a[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--primary); }
.sr-path { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.sr-title { display: block; font-weight: 600; font-size: 14px; }
.sr-sep { color: var(--muted2); font-weight: 400; }
.sr-text { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.search-results mark { background: color-mix(in srgb, var(--warning) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-none, .search-hint { margin: 0; padding: 10px; color: var(--muted); font-size: 13px; }
.search-hint { font-size: 12px; padding: 6px 10px 4px; border-top: 1px solid var(--border); margin-top: 4px; }

.menu-wrap { position: relative; margin-left: auto; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  min-width: 240px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
}
.menu-label {
  margin: 6px 10px 2px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.menu [role="menuitemradio"] {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 10px 7px 30px; border-radius: var(--radius); position: relative;
  font-size: 13.5px; color: var(--text); text-decoration: none; text-align: left;
}
.menu [role="menuitemradio"]:hover, .menu [role="menuitemradio"]:focus-visible { background: var(--surface2); outline: none; }
.menu [aria-checked="true"]::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--primary);
}

/* --- frame --------------------------------------------------------------- */

.frame {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--toc);
  max-width: 1440px; margin: 0 auto;
}
.sidebar {
  position: sticky; top: var(--topbar);
  height: calc(100vh - var(--topbar)); overflow-y: auto;
  padding: 16px 12px 32px;
  border-right: 1px solid var(--border);
}
.nav, .nav-pages { list-style: none; margin: 0; padding: 0; }
.nav-app {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none;
}
.nav-app:hover { color: var(--text); background: var(--surface2); }
.nav-section.open > .nav-app { color: var(--text); font-weight: 600; }
.nav-app[aria-current="page"] { background: var(--accent-bg); color: var(--primary) !important; }
.app-icon { width: 20px; height: 20px; flex-shrink: 0; }
.nav-pages { display: none; margin: 2px 0 8px 19px; padding-left: 12px; border-left: 1px solid var(--border); }
.nav-section.open .nav-pages { display: block; }
.nav-pages a {
  display: block; padding: 4px 10px; border-radius: var(--radius-s);
  font-size: 13.5px; color: var(--muted); text-decoration: none; line-height: 1.45;
}
.nav-pages a:hover { color: var(--text); }
.nav-pages a[aria-current="page"] { color: var(--primary); font-weight: 600; background: var(--accent-bg); }

.content { min-width: 0; padding: 32px 48px 24px; }
.doc { max-width: 760px; margin: 0 auto; }

.toc {
  position: sticky; top: var(--topbar);
  height: calc(100vh - var(--topbar)); overflow-y: auto;
  padding: 36px 16px 32px 8px; font-size: 13px;
}
.toc-title { margin: 0 0 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 3px 0 3px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc-l3 a { padding-left: 24px; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--primary); border-left-color: var(--primary); font-weight: 500; }

/* --- article ------------------------------------------------------------- */

.crumbs { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.doc h1 { font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 700; }
.doc h2 { font-size: 21px; line-height: 1.35; letter-spacing: -0.01em; margin: 40px 0 10px; font-weight: 650; padding-top: 4px; }
.doc h3 { font-size: 16.5px; margin: 28px 0 6px; font-weight: 600; }
.doc h4 { font-size: 15px; margin: 20px 0 4px; font-weight: 600; }
.doc h1 + p { font-size: 17px; color: var(--muted); line-height: 1.6; }
.doc p, .doc ul, .doc ol, .doc blockquote, .doc pre, .doc .table-wrap { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 3px 0; }
.doc li > p { margin: 0 0 6px; }
.doc li > ul, .doc li > ol { margin: 4px 0 6px; }
.anchor { margin-left: 8px; color: var(--muted2); text-decoration: none; opacity: 0; font-weight: 400; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
.doc a:hover { color: var(--primary-h); }
.doc strong { font-weight: 600; }
.doc code { font-family: var(--mono); font-size: 0.88em; background: var(--surface2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
.doc pre { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; overflow-x: auto; line-height: 1.5; }
.doc pre code { background: none; border: 0; padding: 0; font-size: 13px; }
.doc blockquote { border-left: 3px solid var(--border); padding: 2px 0 2px 16px; color: var(--muted); }

/* A label exactly as the app shows it: a button, a menu item, a field. */
.ui {
  display: inline; font-weight: 600; font-size: 0.94em;
  padding: 1px 6px; border-radius: 5px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border); white-space: nowrap;
}

/* Numbered steps: ordered lists at the top level read as a procedure. */
.doc > ol { list-style: none; counter-reset: step; padding-left: 0; }
.doc > ol > li { counter-increment: step; position: relative; padding-left: 38px; margin: 10px 0; }
.doc > ol > li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600;
  background: var(--accent-bg); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}
.doc > ol[start] { counter-reset: none; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.5; }
.doc th, .doc td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { background: var(--surface2); font-weight: 600; font-size: 13px; }
.doc tr:last-child td { border-bottom: 0; }

.callout {
  margin: 18px 0; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); border-left: 3px solid var(--note);
  background: var(--surface);
}
.callout > :last-child { margin-bottom: 0; }
.callout-title { font-weight: 600; font-size: 13.5px; margin: 0 0 4px !important; color: var(--note); }
.callout-tip { border-left-color: var(--tip); }
.callout-tip .callout-title { color: var(--tip); }
.callout-warning { border-left-color: var(--warning); }
.callout-warning .callout-title { color: var(--warning); }
.callout-setup { border-left-color: var(--muted2); border-style: dashed; border-left-style: solid; }
.callout-setup .callout-title { color: var(--muted); }
.callout-setup .callout-title::before { content: "⚙ "; }
.untranslated { color: var(--muted); }

.shot { margin: 20px 0 24px; }
/* A screenshot shows at its natural size (taken at 2x, shown at half its
   pixels, as the width/height attributes say) and only shrinks to fit: a small
   dialog stays the size it is in the app instead of being blown up. */
.shot { text-align: center; }
.shot-frame {
  display: inline-block; max-width: 100%; vertical-align: top;
  border: 1px solid var(--border); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  background: var(--surface);
}
.shot img { display: block; max-width: 100%; height: auto; }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.shot-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-light:has(+ .shot-dark) { display: none !important; }
  :root:not([data-theme="light"]) .shot-dark { display: block !important; }
}
:root[data-theme="dark"] .shot-light:has(+ .shot-dark) { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }
.shot-missing {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  aspect-ratio: 16 / 9; border: 1.5px dashed var(--border); border-radius: var(--radius-l);
  background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--surface2) 12px, var(--surface2) 24px);
  color: var(--muted); font-size: 13px;
}
.shot-missing span { font-weight: 600; }

.cards { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cards a, .tiles a {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-l);
  background: var(--surface); color: var(--text); text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.cards a:hover, .tiles a:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--shadow-pop); color: var(--text); }
.cards li { margin: 0; }
.cards span, .tiles span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.pager { max-width: 760px; margin: 48px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager a {
  display: flex; flex-direction: column; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-l);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px;
}
.pager a:hover { border-color: var(--primary); }
.pager span { font-size: 12px; font-weight: 500; color: var(--muted); }
.pager-next { text-align: right; grid-column: 2; }
.footer { max-width: 760px; margin: 40px auto 0; padding: 16px 0 8px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }

/* --- home ---------------------------------------------------------------- */

.is-home .frame { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.is-home .doc { max-width: 960px; }
.hero { text-align: center; padding: 40px 0 28px; }
.hero h1 { font-size: 34px; margin-bottom: 8px; }
.hero p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.hero-search {
  display: inline-flex; align-items: center; gap: 10px;
  width: min(100%, 520px); height: 46px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);
  color: var(--muted); font-size: 15px; text-align: left;
}
.hero-search span { flex: 1; }
.hero-search:hover { border-color: var(--primary); }
.tiles-title { text-align: left; }
.tiles { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tiles li { margin: 0; }
.tiles a { flex-direction: column; gap: 4px; padding: 16px; }
.tiles strong { font-size: 15px; margin-top: 6px; }
.tile-icon { width: 36px; height: 36px; }

/* --- narrow screens ------------------------------------------------------ */

@media (max-width: 1180px) {
  .frame { grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .frame, .is-home .frame { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle { display: inline-flex; }
  .brand { width: auto; }
  .brand span { display: none; }
  .sidebar {
    position: fixed; top: var(--topbar); left: 0; bottom: 0; z-index: 25;
    width: min(85vw, 300px); height: auto;
    background: var(--surface); transform: translateX(-100%); transition: transform 0.2s;
  }
  .nav-open .sidebar { transform: none; box-shadow: var(--shadow-modal); }
  .topbar { gap: 8px; padding: 0 10px; }
  .menu-lang { display: none; }
  .scrim { position: fixed; inset: var(--topbar) 0 0 0; z-index: 20; background: var(--overlay); }
  .content { padding: 24px 18px; }
  .doc h1 { font-size: 26px; }
  .hero h1 { font-size: 27px; }
  .search-key { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
