/* openOMSI website. The launcher's look carried over: neutral graphite surfaces, one amber accent,
   Inter for text, tabular figures where numbers line up. Flat: no gradients, no glow, no glass,
   no shadows. Light and dark follow the system and can be forced; contrast is kept for both. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: light-dark(#f4f5f7, #121212);
  --bg-sunk: light-dark(#ebedf0, #171717);
  --surface: light-dark(#ffffff, #1b1b1b);
  --surface-2: light-dark(#f3f4f6, #232323);
  --surface-3: light-dark(#e7e9ec, #2c2c2c);
  --line: light-dark(#dfe2e6, #2a2a2a);
  --line-strong: light-dark(#c9cdd4, #3b3b3b);
  --text: light-dark(#17181b, #ededed);
  --text-2: light-dark(#43474e, #bdbdbd);
  --muted: light-dark(#666b74, #8f8f8f);
  --accent: light-dark(#d98b00, #e8a030);
  --accent-hover: light-dark(#c47e00, #f0ad45);
  --accent-text: #1a1206;
  --accent-soft: light-dark(rgba(217, 139, 0, 0.12), rgba(232, 160, 48, 0.13));
  --link: light-dark(#8f5500, #f0ad45);
  --ok: light-dark(#1b7a4b, #4cb782);
  --warn: light-dark(#9a5b00, #e0a43a);
  --danger: light-dark(#c0362e, #e5534b);
  --info: light-dark(#1d56b8, #7fb0ff);
  --focus: light-dark(rgba(217, 139, 0, 0.6), rgba(232, 160, 48, 0.7));
  --code-bg: light-dark(#e8eaee, #1c1c1c);
  --code-line: light-dark(#dcdfe4, #2a2a2a);

  --hl-comment: light-dark(#6b7078, #7d7d7d);
  --hl-keyword: light-dark(#8f5500, #f0ad45);
  --hl-string: light-dark(#1b7a4b, #7fcf9f);
  --hl-number: light-dark(#1d56b8, #7fb0ff);
  --hl-title: light-dark(#7a3fb0, #cfa3ff);
  --hl-type: light-dark(#0f6f72, #6fcfd0);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 8px;
  --radius-sm: 6px;
  --topbar-h: 56px;
  --wrap: 1200px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-contrast: more) {
  :root { --line: light-dark(#8a8f98, #6a6a6a); --muted: light-dark(#4a4e56, #b0b0b0); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: currentColor; }
img { max-width: 100%; height: auto; }
code, kbd, pre, samp { font-family: var(--mono); font-feature-settings: normal; font-variant-ligatures: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--accent-soft); }
.num, time, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.grow { flex: 1; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-text); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.brand img.on-light, .on-light { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .on-dark { display: none; } :root:not([data-theme="dark"]) .on-light { display: inline; } }
:root[data-theme="light"] .on-dark { display: none; }
:root[data-theme="light"] .on-light { display: inline; }
:root[data-theme="dark"] .brand img.on-light, .on-light { display: none; }

kbd {
  display: inline-block; min-width: 1.6em; padding: 0.05em 0.45em; text-align: center;
  font-size: 0.8em; line-height: 1.5; color: var(--text-2);
  background: var(--surface-2); border: 0; border-radius: 5px;
}

/* ---- top bar ------------------------------------------------------------------------------ */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); background: var(--bg-sunk); }
.topbar-in { display: flex; align-items: center; gap: 4px; height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.brand { display: inline-flex; align-items: center; margin-right: 12px; padding: 4px; }
.brand img { display: block; height: 22px; width: auto; }
.topnav { display: flex; gap: 2px; }
.topnav a, .toplink {
  display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 14.5px; text-decoration: none;
}
.topnav a:hover, .toplink:hover { background: var(--surface-2); color: var(--text); }
.topnav a[aria-current="page"] { color: var(--text); background: var(--surface-3); }
.search-btn {
  display: inline-flex; align-items: center; gap: 28px; height: 34px; padding: 0 8px 0 12px; margin-right: 6px;
  background: var(--surface); border: 0; border-radius: var(--radius-sm);
  color: var(--muted); font: inherit; font-size: 14px; cursor: pointer;
}
.search-btn:hover { color: var(--text); background: var(--surface-3); }
.search-btn kbd { font-size: 12px; }
.search-ico { display: none; }
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 2px; border: 0; background: none; border-radius: var(--radius-sm); cursor: pointer; }
.theme-btn:hover { background: var(--surface-2); }
.theme-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text-2); background: linear-gradient(90deg, var(--text-2) 50%, transparent 50%); }
:root[data-theme="light"] .theme-dot { background: transparent; }
:root[data-theme="dark"] .theme-dot { background: var(--text-2); }

/* ---- buttons, tabs, tags ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 18px;
  background: var(--surface-3); color: var(--text); border: 0; border-radius: var(--radius-sm);
  font: 600 14.5px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: color-mix(in srgb, var(--surface-3), var(--text) 9%); }
.btn.primary { background: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.quiet { background: transparent; color: var(--text-2); }
.btn.quiet:hover { color: var(--text); background: var(--surface-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: 0.75; margin-top: 2px; }
.tabs { display: flex; gap: 22px; margin-top: 22px; }
.tabs a, .tabs button { padding: 8px 2px 10px; margin-bottom: -1px; color: var(--muted); font: 500 15px/1.2 var(--font); text-decoration: none; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs [aria-current="page"], .tabs .on { color: var(--text); border-bottom-color: var(--accent); }
.tag { display: inline-block; padding: 1px 7px; background: var(--surface-3); border-radius: 4px; color: var(--text-2); font: 500 12px/1.6 var(--mono); white-space: nowrap; }
.label { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; line-height: 1.6; color: var(--text); background: color-mix(in srgb, var(--lc, var(--muted)) 24%, transparent); }
.label.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 16%, transparent); }
.label.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }

/* ---- page heads, notices ------------------------------------------------------------------ */
.page { padding-top: 48px; padding-bottom: 72px; }
.page-head { max-width: 820px; margin-bottom: 32px; }
.page-head h1 { font-size: 32px; letter-spacing: -0.025em; font-weight: 700; }
.lead, .lede { color: var(--text-2); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.page-head .lead { margin-top: 14px; margin-bottom: 0; }
.notice, .callout { --bar: var(--accent); position: relative; }
.notice::before, .callout::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--bar); }
.notice { margin: 0 0 14px; padding: 12px 16px 12px 22px; background: var(--surface); border: 0; border-radius: var(--radius-sm); }
.notice p { margin: 0; color: var(--text-2); font-size: 15px; }
.notice p b { color: var(--text); font-weight: 600; }
.notice-warn { --bar: var(--warn); }
.page section { margin-top: 44px; }
.page section > h2, .modes > h2 { font-size: 22px; margin-bottom: 14px; }
ul.tight { padding-left: 1.2em; } ul.tight li { margin: 0.5em 0; }

/* ---- home --------------------------------------------------------------------------------- */
.home-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 56px; align-items: start; padding-top: 48px; padding-bottom: 24px; }
.home-text { min-width: 0; }
.home-rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--topbar-h) + 20px); max-height: calc(100vh - var(--topbar-h) - 40px); overflow-y: auto; scrollbar-width: thin; }
.wordmark { margin: 0 0 18px; line-height: 0; }
.wordmark img { height: 52px; width: auto; }
.intro .lead { margin-bottom: 18px; max-width: 60ch; }
.status { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.status .warn { color: var(--warn); }
.intro .notice { max-width: 62ch; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 18px 20px 16px; }
.panel h2 { margin: 0 0 12px; font-size: 17px; }
.panel h3 { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.btn.wide { width: 100%; min-height: 46px; font-size: 15.5px; }
.get-version { margin: 8px 0 12px; font-size: 13.5px; }
.get-others { list-style: none; margin: 0 0 12px; padding: 0; }
.get-others li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.get-others li:last-child { border-bottom: 0; }
.get-others .num { color: var(--muted); }
.get-links { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.rel-notes { max-height: 20rem; overflow-y: auto; padding-right: 8px; scrollbar-width: thin; font-size: 14px; }
.rel-notes > :first-child { margin-top: 0; }
.rel-notes h1, .rel-notes h2, .rel-notes h3 { font-size: 1em; }
.doc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.doc-cols ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.doc-cols li { margin: 2px 0; line-height: 1.4; }
.about, .community { margin-top: 40px; max-width: 760px; }
.about h2, .community h2 { font-size: 22px; margin-bottom: 14px; }
.about-list { list-style: none; margin: 0; padding: 0; }
.about-list li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.about-list b { color: var(--text); font-weight: 600; }
.community p { color: var(--text-2); max-width: 70ch; }

/* ---- footer ------------------------------------------------------------------------------- */
.footer { margin-top: 24px; background: var(--bg-sunk); }
.footer-in { max-width: 1360px; margin: 0 auto; padding: 40px 24px 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer h2 { margin: 0 0 10px; font: 600 12px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 6px 0; }
.footer a { color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.footer a:hover { color: var(--text); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 32px; padding-top: 8px; }
.footer-base p { margin: 0; max-width: 62ch; color: var(--muted); font-size: 13px; }
.footer-base a { font-size: inherit; text-decoration: underline; }
.theme-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border-radius: var(--radius-sm); }
.theme-seg button { padding: 5px 12px; border: 0; border-radius: 4px; background: none; color: var(--muted); font: 500 13px/1 var(--font); cursor: pointer; }
.theme-seg button:hover { color: var(--text); }
.theme-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); }

/* ---- plain tables ------------------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { padding: 8px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font: 600 12px/1.4 var(--font); letter-spacing: 0.04em; white-space: nowrap; border-bottom: 0; background: var(--bg); }
table.plain { background: var(--surface); border: 0; border-radius: var(--radius); overflow: hidden; }
table.plain th { background: var(--surface-2); }
table.plain td:first-child, table.plain th:first-child { padding-left: 18px; }
table.plain tr:last-child td { border-bottom: 0; }
td.num, th.num { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; text-align: right; }
.doc-table td:first-child a { font-weight: 600; }
.doc-table td:nth-child(2) { color: var(--text-2); }

/* ---- documentation ------------------------------------------------------------------------ */
.docs-layout { display: grid; grid-template-columns: 244px minmax(0, 1fr) 196px; gap: 0 32px; max-width: 1440px; margin: 0 auto; padding: 0 24px; align-items: start; }
.docs-nav, .docs-toc { position: sticky; top: var(--topbar-h); align-self: start; max-height: calc(100vh - var(--topbar-h)); overflow-y: auto; overscroll-behavior: contain; padding: 28px 0 40px; font-size: 14px; scrollbar-width: thin; }
.docs-nav { padding-right: 12px; }
.nav-group { margin-bottom: 22px; }
.nav-group h2 { margin: 0 0 6px; padding: 0 10px; font: 600 12px/1.4 var(--font); letter-spacing: 0.04em; color: var(--muted); }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.docs-nav a { display: block; padding: 5px 10px; border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; line-height: 1.4; }
.docs-nav a:hover { background: var(--surface-2); color: var(--text); }
.docs-nav a[aria-current="page"] { position: relative; background: var(--surface-3); color: var(--text); font-weight: 600; }
.docs-nav a[aria-current="page"]::before { content: ""; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--accent); }
.nav-sub { margin: 2px 0 6px 12px !important; padding-left: 0 !important; }
.nav-sub a { font-size: 13.5px; padding: 3px 10px; }
.nav-sub .nav-sub a { font-size: 13px; }
.docs-toc { padding-left: 4px; }
.docs-toc h2 { margin: 0 0 10px; font: 600 12px/1.4 var(--font); letter-spacing: 0.04em; color: var(--muted); }
.docs-toc ol, .toc-m ol { list-style: none; margin: 0; padding: 0; }
.docs-toc a { display: block; padding: 3px 0 3px 12px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.docs-toc .lv2 a { padding-left: 26px; font-size: 13px; }
.docs-toc a:hover { color: var(--text); }
.docs-toc a.on { color: var(--text); border-left-color: var(--accent); }
.docs-main { min-width: 0; padding: 36px 0 72px; }
.nav-toggle { display: none; width: 100%; margin-bottom: 18px; padding: 10px 14px; text-align: left; background: var(--surface); color: var(--text); border: 0; border-radius: var(--radius-sm); font: 600 14px/1.2 var(--font); cursor: pointer; }
.doc { max-width: 880px; }
.doc-head > *, .doc-body > p, .doc-body > ul, .doc-body > ol, .doc-body > h2, .doc-body > h3, .doc-body > h4, .doc-body > h5, .doc-body > blockquote, .doc-body > aside, .doc-body > details, .doc-body > dl { max-width: 74ch; }
.doc-body > h2 { max-width: none; }
.crumbs { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--muted); } .crumbs i { margin: 0 4px; font-style: normal; color: var(--line-strong); }
.doc-head h1 { font-size: 32px; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
.doc-head .lead { margin: 14px 0 0; font-size: 17.5px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.meta code { font-size: 12.5px; background: none; padding: 0; color: var(--muted); }
.doc-head { padding-bottom: 12px; }
.toc-m { display: none; margin-top: 16px; background: var(--surface); border: 0; border-radius: var(--radius-sm); font-size: 14px; }
.toc-m summary { padding: 9px 14px; cursor: pointer; font-weight: 600; }
.toc-m ol { padding: 4px 14px 12px; } .toc-m a { display: block; padding: 3px 0; }
.toc-m .lv2 a { padding-left: 14px; }

.doc-body { font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
.doc-body > :first-child { margin-top: 24px; }
.doc-body h2 { font-size: 25px; margin: 2.4em 0 0.6em; }
.doc-body > h2:first-child { margin-top: 1em; }
.doc-body h3 { font-size: 19px; margin: 2em 0 0.5em; }
.doc-body h4 { font-size: 16px; margin: 1.8em 0 0.4em; }
.doc-body h5, .doc-body h6 { font-size: 14px; margin: 1.6em 0 0.4em; letter-spacing: 0.04em; color: var(--muted); }
.doc-body h2, .doc-body h3, .doc-body h4 { position: relative; }
.anchor { margin-left: 0.4em; color: var(--muted); text-decoration: none; font-weight: 400; opacity: 0; }
h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, .anchor:focus { opacity: 1; }
.doc-body ul, .doc-body ol { padding-left: 1.5em; margin: 0 0 1em; }
.doc-body li { margin: 0.3em 0; } .doc-body li > p { margin: 0.4em 0; } .doc-body li::marker { color: var(--muted); }
.doc-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.doc-body a.ext::after { content: "\2197"; font-size: 0.78em; margin-left: 0.15em; opacity: 0.6; }
.doc-body :not(pre) > code, .doc-body kbd { overflow-wrap: anywhere; }
.doc-body :not(pre) > code, td code, th code, .notice code, .meta code { padding: 0.12em 0.38em; font-size: 0.86em; background: var(--code-bg); border-radius: 4px; }
.doc-body strong { font-weight: 650; }
.doc-body blockquote.quote, .gh blockquote { position: relative; margin: 1.2em 0; padding: 2px 0 2px 18px; color: var(--text-2); }
.doc-body blockquote.quote::before, .gh blockquote::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--line-strong); }
.doc-body blockquote.quote > :last-child { margin-bottom: 0; }
.doc-body details { margin: 1em 0; padding: 4px 14px; border: 0; border-radius: var(--radius-sm); background: var(--surface); }
.doc-body summary { cursor: pointer; padding: 6px 0; font-weight: 600; }
.doc-body img, .gh img { max-width: 100%; height: auto; border-radius: var(--radius); }

.callout { --bar: var(--info); margin: 1.4em 0; padding: 12px 18px 12px 22px; background: var(--surface); border: 0; border-radius: var(--radius-sm); }
.callout-title { margin-bottom: 4px; font: 650 12px/1.4 var(--font); letter-spacing: 0.05em; color: var(--info); }
.callout-body > :last-child { margin-bottom: 0; } .callout-body > :first-child { margin-top: 0; } .callout-body p { margin: 0.5em 0; }
.callout-warning { --bar: var(--warn); } .callout-warning .callout-title { color: var(--warn); }
.callout-important { --bar: var(--accent); } .callout-important .callout-title { color: var(--link); }
.callout-tip { --bar: var(--ok); } .callout-tip .callout-title { color: var(--ok); }

figure.code, figure.diagram { margin: 1.3em 0; background: var(--code-bg); border: 0; border-radius: var(--radius-sm); position: relative; overflow: hidden; }
figure.code figcaption, figure.diagram figcaption { display: flex; justify-content: space-between; align-items: center; padding: 5px 12px; color: var(--muted); font: 500 11.5px/1.5 var(--mono); letter-spacing: 0.02em; }
figure pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; tab-size: 4; }
figure.diagram pre { line-height: 1.3; font-size: 13px; }
figure.bare pre { padding-right: 70px; }
.copy { position: absolute; top: 4px; right: 6px; padding: 3px 9px; background: var(--surface); color: var(--muted); border: 0; border-radius: 5px; font: 500 12px/1.5 var(--font); cursor: pointer; opacity: 0; }
figure:hover .copy, .copy:focus-visible { opacity: 1; }
.copy:hover { color: var(--text); } .copy.done { color: var(--ok); opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }
figure.code:has(figcaption) .copy { top: 3px; }
.hljs-comment, .hljs-quote { color: var(--hl-comment); font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-meta, .hljs-doctag, .hljs-section { color: var(--hl-keyword); }
.hljs-string, .hljs-regexp, .hljs-addition { color: var(--hl-string); }
.hljs-number, .hljs-literal, .hljs-symbol, .hljs-bullet { color: var(--hl-number); }
.hljs-title, .hljs-title.function_, .hljs-name, .hljs-attr { color: var(--hl-title); }
.hljs-built_in, .hljs-type, .hljs-class .hljs-title, .hljs-variable, .hljs-template-variable { color: var(--hl-type); }
.hljs-deletion { color: var(--danger); }
.hljs-emphasis { font-style: italic; } .hljs-strong { font-weight: 700; }

.table-wrap { margin: 1.3em 0; overflow-x: auto; border: 0; border-radius: var(--radius-sm); background: var(--surface); }
.table-wrap table { border: 0; font-size: 14px; min-width: 100%; }
.table-wrap th { position: static; background: var(--surface-2); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover td { background: var(--surface-2); }
.table-wrap td p { margin: 0 0 0.4em; } .table-wrap td > :last-child { margin-bottom: 0; }
td.c-name code { font-weight: 500; overflow-wrap: break-word; }
td.c-name { min-width: 14ch; }
.c-text { min-width: 30ch; }
.c-mid { min-width: 16ch; }
td.c-mono { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
td.c-tag { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; color: var(--text-2); }
td.c-keys { white-space: nowrap; }
td.c-keys kbd { margin-right: 4px; }
.tag-bool { color: var(--info); } .tag-num { color: var(--hl-keyword); } .tag-text { color: var(--hl-string); }
.tag-once, .tag-use, .tag-frame, .tag-test { color: var(--text-2); }
.table-filter { display: flex; align-items: center; gap: 12px; margin: 1.3em 0 -0.9em; }
.table-filter input { flex: 1; max-width: 360px; height: 34px; padding: 0 12px; background: var(--surface); color: var(--text); border: 0; border-radius: var(--radius-sm); font: 14px var(--font); }
.table-filter span { color: var(--muted); font-size: 13px; }
tr.filtered { display: none; }
mark { background: var(--accent-soft); color: inherit; border-radius: 2px; }

.section-list { list-style: none; padding: 0 !important; border: 0; border-radius: var(--radius-sm); background: var(--surface); }
.section-list li { display: flex; justify-content: space-between; margin: 0 !important; padding: 9px 16px; border-bottom: 1px solid var(--line); }
.section-list li:last-child { border-bottom: 0; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 56px 0 24px; }
.pn { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--surface); border: 0; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; min-width: 0; }
.pn:hover { background: var(--surface-2); }
.pn span { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.pn b { font-weight: 600; } .pn small { color: var(--muted); }
.pn-next { grid-column: 2; text-align: right; }
.pn-prev:only-child { grid-column: 1; }
.doc-foot { font-size: 14px; }
.start-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.start-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--surface); border: 0; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.start-card:hover { background: var(--surface-2); }
.start-card b { font-size: 16px; } .start-card span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.page section h2 small { margin-left: 10px; color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.prose-page .doc { max-width: 760px; margin: 0 auto; }
.prose-page .doc h1 { font-size: 36px; margin-bottom: 10px; }
.prose-page .doc h2 { font-size: 22px; margin: 2em 0 0.5em; } .prose-page .doc h3 { font-size: 17px; margin: 1.6em 0 0.4em; }
.prose-page .doc li { margin: 0.3em 0; } .prose-page .doc ul { padding-left: 1.4em; }

/* settings lists made from runs of `name` (what it does) */
.doc-body > dl.kv { max-width: none; margin: 1.2em 0; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
.kv > div { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr); gap: 2px 20px; padding: 7px 16px; }
.kv > div + div { border-top: 1px solid var(--line); }
.kv dt { min-width: 0; overflow-wrap: anywhere; }
.kv dt code { background: none; padding: 0; font-weight: 600; font-size: 13px; color: var(--text); }
.kv dd { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.kv dd code { font-size: 0.85em; }
.kv > .bare { grid-template-columns: 1fr; padding-top: 6px; padding-bottom: 6px; }
.kv > .bare dt code { font-weight: 500; margin-right: 10px; display: inline-block; }

/* ---- downloads, releases, issues ----------------------------------------------------------- */
.release-line { margin: 28px 0 0; font: 14px/1.5 var(--mono); color: var(--text-2); }
.release-line b { color: var(--text); }
.dl-list { border: 0; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.dl-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 270px; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dl-row:last-child { border-bottom: 0; }
.dl-row.mine { background: var(--accent-soft); }
.dl-name { font-weight: 650; } .dl-name small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.dl-note { color: var(--text-2); font-size: 14px; } .dl-note .num { margin-left: 6px; }
.dl-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dl-actions .btn { min-height: 34px; padding: 0 14px; font-size: 14px; }
.dl-actions .btn:first-child { min-width: 128px; }
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.install-grid > div { padding: 18px 22px; background: var(--surface); border-radius: var(--radius); }
.install-grid h3 { font-size: 17px; margin-bottom: 8px; }
.install-grid p { font-size: 14.5px; color: var(--text-2); }
.install-grid .table-wrap, .install h3 + ul { margin-top: 0; }
.install > h3 { margin: 32px 0 8px; font-size: 18px; }
.install figure.code { margin: 0.6em 0 0; }
.rel { border: 0; border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; }
.rel summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.rel summary::-webkit-details-marker { display: none; }
.rel summary::before { content: "+"; width: 14px; color: var(--muted); font: 500 16px/1 var(--mono); }
.rel[open] summary::before { content: "\2212"; }
.rel-tag { font: 650 17px/1 var(--mono); letter-spacing: -0.01em; }
.rel-name { color: var(--text-2); } .rel summary time { margin-left: auto; color: var(--muted); font-size: 13px; }
.rel-body { padding: 4px 22px 18px; }
.rel-body img { max-width: 100%; }
.gh { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.gh > :first-child { margin-top: 12px; } .gh > :last-child { margin-bottom: 0; }
.gh h1, .gh h2, .gh h3 { margin: 1.4em 0 0.5em; font-size: 1.1em; } .gh h1 { font-size: 1.25em; }
.gh ul, .gh ol { padding-left: 1.4em; } .gh li { margin: 0.25em 0; }
.gh pre { padding: 12px 14px; overflow-x: auto; background: var(--code-bg); border: 0; border-radius: var(--radius-sm); font-size: 13px; }
.gh code { font-size: 0.88em; padding: 0.1em 0.35em; background: var(--code-bg); border-radius: 4px; } .gh pre code { padding: 0; background: none; }

.gh table { display: block; overflow-x: auto; } .gh .anchor { display: none; }
.assets { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0 22px 18px; }
.asset { padding: 4px 10px; background: var(--surface-2); border: 0; border-radius: var(--radius-sm); color: var(--text-2); font: 12.5px/1.6 var(--mono); text-decoration: none; }
.asset:hover { color: var(--text); background: var(--surface-3); } .asset small { color: var(--muted); }
.issue-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 14px; }
.issue-bar input[type="search"] { flex: 1; min-width: 200px; max-width: 360px; height: 36px; padding: 0 12px; background: var(--surface); color: var(--text); border: 0; border-radius: var(--radius-sm); font: 14px var(--font); }
.issue-bar .tabs { margin: 0; border: 0; }
.issue-list { border: 0; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.issue-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.issue-row:last-child { border-bottom: 0; } .issue-row:hover { background: var(--surface-2); }
.st { width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; border: 2px solid var(--ok); }
.st.closed { background: var(--info); border-color: var(--info); }
.issue-title { font-weight: 600; margin-right: 6px; overflow-wrap: anywhere; }
.issue-meta { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.issue-count { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.comment { margin: 14px 0; border: 0; border-radius: var(--radius); background: var(--surface); }
.comment-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface-2); font-size: 14px; }
.comment-head img { width: 24px; height: 24px; border-radius: 50%; }
.comment .gh { padding: 4px 18px 14px; }
.back { display: inline-block; margin-bottom: 16px; font-size: 14px; }

/* ---- search ------------------------------------------------------------------------------- */
.search { width: min(680px, calc(100vw - 24px)); max-height: min(560px, 80vh); margin: 10vh auto auto; padding: 0; background: var(--surface); color: var(--text); border: 0; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.search[open] { display: flex; flex-direction: column; }
.search::backdrop { background: rgba(0, 0, 0, 0.5); }
.search-form { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.search-form input { flex: 1; height: 38px; padding: 0 6px; background: none; border: 0; outline: none; color: var(--text); font: 17px var(--font); }
.search-close { background: none; border: 0; cursor: pointer; }
.search-results { flex: 1; overflow-y: auto; padding: 6px; min-height: 60px; }
.sr { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.sr[aria-selected="true"], .sr:hover { background: var(--surface-3); }
.sr b { display: block; font-weight: 600; font-size: 15px; }
.sr small { display: block; color: var(--muted); font-size: 12.5px; }
.sr p { margin: 3px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.45; }
.sr-empty { padding: 22px 14px; color: var(--muted); }
.search-foot { display: flex; gap: 18px; padding: 8px 14px; color: var(--muted); font-size: 12.5px; }

/* ---- responsive --------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .docs-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .toc-m { display: block; }
}
@media (max-width: 900px) {
  .home-main { display: flex; flex-direction: column; }
  .home-text { display: contents; }
  .intro { order: 0; } .home-rail { order: 1; position: static; max-height: none; overflow: visible; margin-top: 24px; } .about { order: 2; } .community { order: 3; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .start-cards { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .docs-layout { display: block; padding: 0 16px; }
  .docs-nav { position: static; max-height: none; border: 0; padding: 12px 0 0; display: none; }
  .nav-open .docs-nav { display: block; border: 0; border-radius: var(--radius); padding: 14px 10px; margin: 12px 0 0; background: var(--surface); }
  .js .nav-toggle { display: block; }
  html:not(.js) .docs-nav { display: block; }
  .docs-main { padding-top: 12px; }
  .topnav a { padding: 0 8px; }
  .toplink, .search-btn span, .search-btn kbd { display: none; }
  .search-ico { display: block; }
  .search-btn { width: 34px; padding: 0; justify-content: center; gap: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topnav a[href$="issues/"], .topnav a[href$="releases/"] { display: none; }
  .dl-row { grid-template-columns: 1fr; gap: 8px; }
  .dl-actions { justify-content: flex-start; }
  .prevnext { grid-template-columns: 1fr; } .pn-next { grid-column: 1; text-align: left; }
  .doc-cols { grid-template-columns: 1fr; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .footer-in { padding: 32px 16px 24px; }
}

@media print {
  .topbar, .docs-nav, .docs-toc, .footer, .prevnext, .nav-toggle, .copy, .search, .toc-m, .doc-foot { display: none !important; }
  :root { color-scheme: light; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .docs-layout { display: block; padding: 0; }
  .doc { max-width: none; }
  a { color: inherit; text-decoration: underline; }
  figure pre { white-space: pre-wrap; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
