/* Generated by scripts/build.js from src/renderer/styles.css. Do not edit:
   change the document rules there and both the app and the web view follow. */

.markdown-body {
  --titlebar-h: 40px;
  --sidebar-w: 260px;
  --content-size: 16px;
  --measure: 780px;
  --font-ui: "Segoe UI Variable Text", "Segoe UI", -apple-system, system-ui, "Yu Gothic UI", "Meiryo UI", sans-serif;
  --font-sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, system-ui, "Yu Gothic UI", "Yu Gothic", "Meiryo", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-serif: "Charter", "Iowan Old Style", Georgia, Cambria, "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-mono: "Cascadia Code", "Cascadia Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "BIZ UDGothic", "MS Gothic", monospace;
  --font-content: var(--font-sans);
}

:root .markdown-body {
  --bg: #ffffff;
  --chrome: #f6f6f8;
  --chrome-2: #ececf0;
  --pop-bg: #ffffff;
  --seg-active: #ffffff;
  --border: #e4e4e9;
  --border-soft: #efeff3;
  --border-strong: #cfcfd8;
  --text: #1d1d22;
  --heading: #121216;
  --text-2: #55555f;
  --text-3: #8b8b96;
  --accent: #6e56cf;
  --accent-strong: #5b45bd;
  --accent-soft: rgba(110, 86, 207, 0.11);
  --link: #5f46c8;
  --code-bg: #f6f6f9;
  --code-text: #24292f;
  --inline-code-bg: #f0f0f4;
  --inline-code-text: #3b3b46;
  --quote-border: #dcdce4;
  --zebra: #fafafc;
  --mark: #fff1a6;
  --selection: rgba(110, 86, 207, 0.2);
  --find: rgba(255, 196, 0, 0.4);
  --find-current: #ffb02e;
  --scroll: rgba(0, 0, 0, 0.16);
  --scroll-hover: rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px rgba(17, 17, 26, 0.12), 0 2px 6px rgba(17, 17, 26, 0.06);
  --img-border: #e8e8ee;
  --toast-bg: #1f1f24;
  --toast-text: #ffffff;
  --danger: #d93f3f;
  --success: #1f9d55;
  --warn-bg: #fff6e0;
  --warn-text: #7a5300;
  --hl-comment: #6a737d;
  --hl-keyword: #cf222e;
  --hl-string: #0a3069;
  --hl-number: #0550ae;
  --hl-title: #8250df;
  --hl-builtin: #953800;
  --hl-name: #116329;
  --hl-attr: #0550ae;
  --hl-meta: #57606a;
  --hl-del-bg: #ffebe9;
  --hl-del: #82071e;
  --hl-add-bg: #dafbe1;
  --hl-add: #116329;
}
:root[data-theme="dark"] .markdown-body {
  --bg: #1e1e22;
  --chrome: #18181b;
  --chrome-2: #27272d;
  --pop-bg: #232328;
  --seg-active: #34343b;
  --border: #2e2e35;
  --border-soft: #29292f;
  --border-strong: #4a4a54;
  --text: #dcdce3;
  --heading: #f0f0f4;
  --text-2: #a4a4ae;
  --text-3: #75757f;
  --accent: #9d88f7;
  --accent-strong: #b3a3ff;
  --accent-soft: rgba(157, 136, 247, 0.15);
  --link: #ab99ff;
  --code-bg: #18181c;
  --code-text: #e1e4e8;
  --inline-code-bg: #2b2b32;
  --inline-code-text: #e4e4ea;
  --quote-border: #3a3a43;
  --zebra: #212126;
  --mark: rgba(255, 208, 0, 0.3);
  --selection: rgba(157, 136, 247, 0.32);
  --find: rgba(255, 196, 0, 0.3);
  --find-current: #ffb02e;
  --scroll: rgba(255, 255, 255, 0.13);
  --scroll-hover: rgba(255, 255, 255, 0.26);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  --img-border: #33333b;
  --toast-bg: #ececf1;
  --toast-text: #17171b;
  --danger: #ff6b6b;
  --success: #4ade80;
  --warn-bg: #3a2f12;
  --warn-text: #f3d48a;
  --hl-comment: #8b949e;
  --hl-keyword: #ff7b72;
  --hl-string: #a5d6ff;
  --hl-number: #79c0ff;
  --hl-title: #d2a8ff;
  --hl-builtin: #ffa657;
  --hl-name: #7ee787;
  --hl-attr: #79c0ff;
  --hl-meta: #8b949e;
  --hl-del-bg: #490202;
  --hl-del: #ffa198;
  --hl-add-bg: #033a16;
  --hl-add: #aff5b4;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .markdown-body {
  --bg: #1e1e22;
  --chrome: #18181b;
  --chrome-2: #27272d;
  --pop-bg: #232328;
  --seg-active: #34343b;
  --border: #2e2e35;
  --border-soft: #29292f;
  --border-strong: #4a4a54;
  --text: #dcdce3;
  --heading: #f0f0f4;
  --text-2: #a4a4ae;
  --text-3: #75757f;
  --accent: #9d88f7;
  --accent-strong: #b3a3ff;
  --accent-soft: rgba(157, 136, 247, 0.15);
  --link: #ab99ff;
  --code-bg: #18181c;
  --code-text: #e1e4e8;
  --inline-code-bg: #2b2b32;
  --inline-code-text: #e4e4ea;
  --quote-border: #3a3a43;
  --zebra: #212126;
  --mark: rgba(255, 208, 0, 0.3);
  --selection: rgba(157, 136, 247, 0.32);
  --find: rgba(255, 196, 0, 0.3);
  --find-current: #ffb02e;
  --scroll: rgba(255, 255, 255, 0.13);
  --scroll-hover: rgba(255, 255, 255, 0.26);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
  --img-border: #33333b;
  --toast-bg: #ececf1;
  --toast-text: #17171b;
  --danger: #ff6b6b;
  --success: #4ade80;
  --warn-bg: #3a2f12;
  --warn-text: #f3d48a;
  --hl-comment: #8b949e;
  --hl-keyword: #ff7b72;
  --hl-string: #a5d6ff;
  --hl-number: #79c0ff;
  --hl-title: #d2a8ff;
  --hl-builtin: #ffa657;
  --hl-name: #7ee787;
  --hl-attr: #79c0ff;
  --hl-meta: #8b949e;
  --hl-del-bg: #490202;
  --hl-del: #ffa198;
  --hl-add-bg: #033a16;
  --hl-add: #aff5b4;
}
}

:root[data-palette="starless"] .markdown-body {
  --bg: #ffffff;
  --chrome: #f4f4f4;
  --chrome-2: #e9e9e9;
  --pop-bg: #ffffff;
  --seg-active: #ffffff;
  --border: #dcdcdc;
  --border-soft: #ededed;
  --border-strong: #bdbdbd;
  --text: #16161a;
  --heading: #000000;
  --text-2: #4f4f4f;
  --text-3: #7d7d7d;
  --accent: #3a3a3a;
  --accent-strong: #000000;
  --accent-soft: rgba(0, 0, 0, 0.07);
  --link: #2b2b2b;
  --code-bg: #f4f4f4;
  --inline-code-bg: #ededed;
  --quote-border: #d4d4d4;
  --zebra: #fafafa;
  --selection: rgba(0, 0, 0, 0.13);
  --img-border: #e2e2e2;
}
:root[data-theme="dark"][data-palette="starless"] .markdown-body {
  --bg: #0b0b0b;
  --chrome: #0a0a0a;
  --chrome-2: #121111;
  --pop-bg: #121111;
  --seg-active: #1f1f1f;
  --border: #202020;
  --border-soft: #171717;
  --border-strong: #3d3d3d;
  --text: #e6e6e6;
  --heading: #f6f6f6;
  --text-2: #a9a9a9;
  --text-3: #767676;
  --accent: #d3d3d3;
  --accent-strong: #ffffff;
  --accent-soft: rgba(232, 232, 232, 0.10);
  --link: #e0e0e0;
  --code-bg: #1a1a1a;
  --code-text: #e6e6e6;
  --inline-code-bg: #1a1a1a;
  --inline-code-text: #dcdcdc;
  --quote-border: #2a2a2a;
  --zebra: #101010;
  --selection: rgba(232, 232, 232, 0.15);
  --img-border: #202020;
  --scroll: rgba(255, 255, 255, 0.14);
  --scroll-hover: rgba(255, 255, 255, 0.3);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"])[data-palette="starless"] .markdown-body {
  --bg: #0b0b0b;
  --chrome: #0a0a0a;
  --chrome-2: #121111;
  --pop-bg: #121111;
  --seg-active: #1f1f1f;
  --border: #202020;
  --border-soft: #171717;
  --border-strong: #3d3d3d;
  --text: #e6e6e6;
  --heading: #f6f6f6;
  --text-2: #a9a9a9;
  --text-3: #767676;
  --accent: #d3d3d3;
  --accent-strong: #ffffff;
  --accent-soft: rgba(232, 232, 232, 0.10);
  --link: #e0e0e0;
  --code-bg: #1a1a1a;
  --code-text: #e6e6e6;
  --inline-code-bg: #1a1a1a;
  --inline-code-text: #dcdcdc;
  --quote-border: #2a2a2a;
  --zebra: #101010;
  --selection: rgba(232, 232, 232, 0.15);
  --img-border: #202020;
  --scroll: rgba(255, 255, 255, 0.14);
  --scroll-hover: rgba(255, 255, 255, 0.3);
}
}
:root[data-palette="greenwood"] .markdown-body {
  --bg: #fffbef;
  --chrome: #f8f5e4;
  --chrome-2: #f2efdf;
  --pop-bg: #fffbef;
  --seg-active: #ffffff;
  --border: #dfdac4;
  --border-soft: #efebd8;
  --border-strong: #bec5b2;
  --text: #5c6a72;
  --heading: #414b53;
  --text-2: #687363;
  --text-3: #717f68;
  --accent: #3f8763;
  --accent-strong: #2f6e4f;
  --accent-soft: rgba(63, 135, 99, 0.14);
  --link: #3a7d8c;
  --code-bg: #f2efdf;
  --inline-code-bg: #f4f1e0;
  --quote-border: #dfdac4;
  --zebra: #faf7e8;
  --mark: #fef2d5;
  --selection: rgba(222, 216, 219, 0.95);
  --img-border: #e6e1cc;
  --danger: #f85552;
  --success: #8da101;
  --warn-bg: #fef2d5;
  --warn-text: #8a6a16;
}
:root[data-theme="dark"][data-palette="greenwood"] .markdown-body {
  --bg: #333c43;
  --chrome: #293136;
  --chrome-2: #3a464c;
  --pop-bg: #3a464c;
  --seg-active: #434f55;
  --border: #4b575d;
  --border-soft: #3d474d;
  --border-strong: #5d6b66;
  --text: #d3c6aa;
  --heading: #e6dcc3;
  --text-2: #a7b0a6;
  --text-3: #859289;
  --accent: #76bf98;
  --accent-strong: #8fd0ad;
  --accent-soft: rgba(86, 157, 121, 0.18);
  --link: #7fb3c0;
  --code-bg: #293136;
  --code-text: #d3c6aa;
  --inline-code-bg: #2c353b;
  --inline-code-text: #d8cdb4;
  --quote-border: #5d6b66;
  --zebra: #38424a;
  --mark: #55544a;
  --selection: rgba(92, 63, 79, 0.6);
  --img-border: #4a555b;
  --danger: #da6362;
  --success: #899c40;
  --warn-bg: #55544a;
  --warn-text: #e8d9a8;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"])[data-palette="greenwood"] .markdown-body {
  --bg: #333c43;
  --chrome: #293136;
  --chrome-2: #3a464c;
  --pop-bg: #3a464c;
  --seg-active: #434f55;
  --border: #4b575d;
  --border-soft: #3d474d;
  --border-strong: #5d6b66;
  --text: #d3c6aa;
  --heading: #e6dcc3;
  --text-2: #a7b0a6;
  --text-3: #859289;
  --accent: #76bf98;
  --accent-strong: #8fd0ad;
  --accent-soft: rgba(86, 157, 121, 0.18);
  --link: #7fb3c0;
  --code-bg: #293136;
  --code-text: #d3c6aa;
  --inline-code-bg: #2c353b;
  --inline-code-text: #d8cdb4;
  --quote-border: #5d6b66;
  --zebra: #38424a;
  --mark: #55544a;
  --selection: rgba(92, 63, 79, 0.6);
  --img-border: #4a555b;
  --danger: #da6362;
  --success: #899c40;
  --warn-bg: #55544a;
  --warn-text: #e8d9a8;
}
}
:root[data-palette="commit"] .markdown-body {
  --bg: #ffffff;
  --chrome: #f6f8fa;
  --chrome-2: #eaeef2;
  --pop-bg: #ffffff;
  --seg-active: #ffffff;
  --border: #d0d7de;
  --border-soft: #eaeef2;
  --border-strong: #afb8c1;
  --text: #1f2328;
  --heading: #1f2328;
  --text-2: #57606a;
  --text-3: #6e7781;
  --accent: #0969da;
  --accent-strong: #0550ae;
  --accent-soft: rgba(9, 105, 218, 0.1);
  --link: #0969da;
  --code-bg: #f6f8fa;
  --inline-code-bg: #eff1f3;
  --quote-border: #d0d7de;
  --zebra: #f6f8fa;
  --selection: rgba(9, 105, 218, 0.2);
  --img-border: #d8dee4;
}
:root[data-theme="dark"][data-palette="commit"] .markdown-body {
  --bg: #0d1117;
  --chrome: #161b22;
  --chrome-2: #010409;
  --pop-bg: #161b22;
  --seg-active: #21262d;
  --border: #30363d;
  --border-soft: #21262d;
  --border-strong: #484f58;
  --text: #c9d1d9;
  --heading: #e6edf3;
  --text-2: #8b949e;
  --text-3: #6e7681;
  --accent: #2f81f7;
  --accent-strong: #58a6ff;
  --accent-soft: rgba(47, 129, 247, 0.15);
  --link: #58a6ff;
  --code-bg: #161b22;
  --code-text: #c9d1d9;
  --inline-code-bg: #21262d;
  --inline-code-text: #c9d1d9;
  --quote-border: #30363d;
  --zebra: #11161d;
  --selection: rgba(47, 129, 247, 0.28);
  --img-border: #30363d;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"])[data-palette="commit"] .markdown-body {
  --bg: #0d1117;
  --chrome: #161b22;
  --chrome-2: #010409;
  --pop-bg: #161b22;
  --seg-active: #21262d;
  --border: #30363d;
  --border-soft: #21262d;
  --border-strong: #484f58;
  --text: #c9d1d9;
  --heading: #e6edf3;
  --text-2: #8b949e;
  --text-3: #6e7681;
  --accent: #2f81f7;
  --accent-strong: #58a6ff;
  --accent-soft: rgba(47, 129, 247, 0.15);
  --link: #58a6ff;
  --code-bg: #161b22;
  --code-text: #c9d1d9;
  --inline-code-bg: #21262d;
  --inline-code-text: #c9d1d9;
  --quote-border: #30363d;
  --zebra: #11161d;
  --selection: rgba(47, 129, 247, 0.28);
  --img-border: #30363d;
}
}
:root[data-palette="lapis"] .markdown-body {
  --bg: #f7f8fb;
  --chrome: #eef1f7;
  --chrome-2: #e4e9f2;
  --pop-bg: #ffffff;
  --seg-active: #ffffff;
  --border: #d7dce6;
  --border-soft: #e8ecf3;
  --border-strong: #b8c1d1;
  --text: #1c2230;
  --heading: #131824;
  --text-2: #4d586b;
  --text-3: #7c8799;
  --accent: #304f80;
  --accent-strong: #22395e;
  --accent-soft: rgba(48, 79, 128, 0.12);
  --link: #304f80;
  --code-bg: #eef1f7;
  --inline-code-bg: #e8edf5;
  --quote-border: #c3cde0;
  --zebra: #f2f5fa;
  --selection: rgba(48, 79, 128, 0.2);
  --img-border: #dde3ed;
}
:root[data-theme="dark"][data-palette="lapis"] .markdown-body {
  --bg: #222832;
  --chrome: #202028;
  --chrome-2: #1b2020;
  --pop-bg: #252c38;
  --seg-active: #2b3340;
  --border: #1a1f28;
  --border-soft: #232a34;
  --border-strong: #404050;
  --text: #e3e6ea;
  --heading: #f2f4f7;
  --text-2: #cacaca;
  --text-3: #909090;
  --accent: #8ba4cc;
  --accent-strong: #a8bde0;
  --accent-soft: rgba(48, 79, 128, 0.32);
  --link: #8ba4cc;
  --code-bg: #1b2029;
  --code-text: #e3e6ea;
  --inline-code-bg: #20262f;
  --inline-code-text: #dfe3e8;
  --quote-border: #304f80;
  --zebra: #242b35;
  --mark: #caca00;
  --selection: rgba(48, 79, 128, 0.6);
  --img-border: #2a313c;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"])[data-palette="lapis"] .markdown-body {
  --bg: #222832;
  --chrome: #202028;
  --chrome-2: #1b2020;
  --pop-bg: #252c38;
  --seg-active: #2b3340;
  --border: #1a1f28;
  --border-soft: #232a34;
  --border-strong: #404050;
  --text: #e3e6ea;
  --heading: #f2f4f7;
  --text-2: #cacaca;
  --text-3: #909090;
  --accent: #8ba4cc;
  --accent-strong: #a8bde0;
  --accent-soft: rgba(48, 79, 128, 0.32);
  --link: #8ba4cc;
  --code-bg: #1b2029;
  --code-text: #e3e6ea;
  --inline-code-bg: #20262f;
  --inline-code-text: #dfe3e8;
  --quote-border: #304f80;
  --zebra: #242b35;
  --mark: #caca00;
  --selection: rgba(48, 79, 128, 0.6);
  --img-border: #2a313c;
}
}

/* ============================================================ document */
/* >>> shared with the web view: scripts/build.js copies everything between
   this marker and the one before `print` into site/assets/web-doc.css, so a
   note looks the same in a browser tab as it does in the app. Keep rules in
   here about the document itself — nothing about the window around it. */

.markdown-body {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 40px 48px 140px;
  font-family: var(--font-content);
  font-size: var(--content-size);
  line-height: 1.72;
  color: var(--text);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
[data-width="full"] .markdown-body { max-width: none; padding-left: 56px; padding-right: 56px; }
.markdown-body > :first-child { margin-top: 0 !important; }
.markdown-body > :last-child { margin-bottom: 0 !important; }

@media screen {
  /* The document is its own containing block and paint box: content that
     slips position:fixed past the sanitiser (CSS escapes, Mermaid labels)
     cannot cover Plume's chrome. All of Plume's own overlays live outside
     #doc. Screen only, so print fragmentation is unaffected. */
  #doc { contain: layout paint; }

  /* Huge documents: skip layout and paint of off-screen blocks. */
  .markdown-body.is-large > * { content-visibility: auto; contain-intrinsic-size: auto 3em; }
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin: 1.9em 0 0.6em;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--heading);
  scroll-margin-top: 24px;
}
.markdown-body h1 { font-size: 2em; margin-top: 1.4em; letter-spacing: -0.02em; }
.markdown-body h2 { font-size: 1.5em; }
.markdown-body h3 { font-size: 1.25em; }
.markdown-body h4 { font-size: 1.08em; }
.markdown-body h5 { font-size: 1em; }
.markdown-body h6 { font-size: 0.94em; color: var(--text-2); }

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body blockquote,
.markdown-body .table-wrap,
.markdown-body .code-block,
.markdown-body details,
.markdown-body .math-block { margin: 0 0 1.05em; }

.markdown-body a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.markdown-body a:hover { text-decoration-color: currentColor; }
.markdown-body a.external::after {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.2em;
  vertical-align: 0.05em;
  background: currentColor;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 2h6v6M10 2 3 9' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.markdown-body a.wikilink { text-decoration-style: solid; }
.markdown-body a.wikilink.unresolved { opacity: 0.6; text-decoration-style: dashed; }

.markdown-body strong { font-weight: 680; color: var(--heading); }
.markdown-body mark { background: var(--mark); color: inherit; padding: 0.05em 0.15em; border-radius: 3px; }
.markdown-body del { color: var(--text-2); }
.markdown-body sup,
.markdown-body sub { line-height: 0; }

.markdown-body hr { height: 1px; margin: 2.2em 0; border: 0; background: var(--border); }

.markdown-body ul,
.markdown-body ol { padding-left: 1.6em; }
.markdown-body li + li { margin-top: 0.28em; }
.markdown-body li > p { margin: 0.35em 0; }
.markdown-body li > ul,
.markdown-body li > ol { margin: 0.28em 0 0; }
.markdown-body ul li::marker { color: var(--text-3); }
.markdown-body ol li::marker { color: var(--text-2); font-variant-numeric: tabular-nums; }

.markdown-body .task-list-item { list-style: none; position: relative; }
.markdown-body .contains-task-list { padding-left: 1.3em; }
.markdown-body .task-list-item-checkbox {
  appearance: none;
  position: relative;
  top: 0.16em;
  width: 1.02em;
  height: 1.02em;
  margin: 0 0.5em 0 -1.35em;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg);
  vertical-align: baseline;
}
.markdown-body .task-list-item-checkbox:checked {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 82% no-repeat;
}
.markdown-body .task-list-item:has(> .task-list-item-checkbox:checked) { color: var(--text-3); }

/* Obsidian task states ([/], [-], [>], …): the box carries a state glyph. */
.markdown-body .task-list-item-checkbox[data-task] {
  --task-color: var(--accent);
  --task-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  border-color: var(--task-color);
  background: var(--task-color) var(--task-glyph) center / 82% no-repeat;
}
.markdown-body .task-list-item-checkbox[data-task="/"] {
  background: linear-gradient(90deg, var(--task-color) 50%, var(--bg) 50%);
}
.markdown-body .task-list-item-checkbox[data-task="-"] {
  --task-color: var(--text-3);
  --task-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8h8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.markdown-body .task-list-item[data-task="-"] { text-decoration: line-through; }
.markdown-body .task-list-item-checkbox[data-task=">"] {
  --task-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9M8.5 4l4 4-4 4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.markdown-body .task-list-item-checkbox[data-task="<"] {
  --task-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 8h-9M7.5 4l-4 4 4 4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.markdown-body .task-list-item-checkbox[data-task="!"] {
  --task-color: var(--danger);
  --task-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12.3' r='1.2' fill='white'/%3E%3C/svg%3E");
}
.markdown-body .task-list-item-checkbox[data-task="?"] {
  --task-color: #e8890c;
  --task-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.8 6.1a2.3 2.3 0 1 1 3.4 2c-.8.4-1.2.9-1.2 1.6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12.5' r='1.1' fill='white'/%3E%3C/svg%3E");
}
.markdown-body .task-list-item-checkbox[data-task="*"] {
  --task-color: #e5a50a;
  --task-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2.6l1.65 3.4 3.75.5-2.73 2.6.67 3.7L8 11l-3.34 1.8.67-3.7L2.6 6.5l3.75-.5z' fill='white'/%3E%3C/svg%3E");
}

.markdown-body blockquote {
  padding: 0.1em 0 0.1em 1.1em;
  border-left: 3px solid var(--quote-border);
  color: var(--text-2);
}
.markdown-body blockquote > :last-child { margin-bottom: 0; }

.markdown-body code,
.markdown-body kbd,
.markdown-body samp { font-family: var(--font-mono); }
.markdown-body :not(pre) > code {
  padding: 0.14em 0.4em;
  border-radius: 5px;
  background: var(--inline-code-bg);
  color: var(--inline-code-text);
  font-size: 0.87em;
}
.markdown-body kbd {
  padding: 0.1em 0.42em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--chrome);
  color: var(--text);
  font-size: 0.84em;
}

/* z-index: document markup cannot set one (confineStyle), so nothing it
   positions can be laid over a genuine block's code. */
.code-block {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--code-bg);
  overflow: hidden;
}
[data-theme="dark"] .code-block { border-color: #26262c; }
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 6px 0 14px;
  font: 500 11.5px var(--font-ui);
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.code-head:has(.code-lang:empty) { position: absolute; top: 4px; right: 0; height: 30px; z-index: 1; }
.code-head:has(.code-lang:empty) + pre { padding-top: 14px; }
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-3);
  font: 500 11.5px var(--font-ui);
  opacity: 0;
  transition: opacity 0.12s, background-color 0.12s;
}
.code-block:hover .code-copy,
.code-copy:focus-visible,
.code-copy.copied { opacity: 1; }
.code-copy:hover { background: var(--chrome-2); color: var(--text); }
.code-copy.copied { color: var(--success); }

.markdown-body pre {
  margin: 0;
  padding: 2px 16px 15px;
  overflow: auto;
  font-size: 0.85em;
  line-height: 1.6;
  tab-size: 4;
  color: var(--code-text);
}
.markdown-body pre code { padding: 0; background: none; color: inherit; font-size: inherit; white-space: pre; font-variant-ligatures: none; }

.hljs-comment,
.hljs-quote { color: var(--hl-comment); font-style: italic; }
.hljs-keyword,
.hljs-selector-tag,
.hljs-doctag,
.hljs-template-tag,
.hljs-meta .hljs-keyword,
.hljs-type { color: var(--hl-keyword); }
.hljs-string,
.hljs-regexp,
.hljs-meta .hljs-string,
.hljs-char.escape_ { color: var(--hl-string); }
.hljs-number,
.hljs-literal,
.hljs-symbol,
.hljs-bullet,
.hljs-variable.constant_,
.hljs-attr,
.hljs-attribute,
.hljs-property,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-operator { color: var(--hl-number); }
.hljs-title,
.hljs-title.function_,
.hljs-title.class_,
.hljs-section { color: var(--hl-title); }
.hljs-built_in,
.hljs-variable.language_,
.hljs-params { color: var(--hl-builtin); }
.hljs-name,
.hljs-tag,
.hljs-selector-id,
.hljs-selector-class { color: var(--hl-name); }
.hljs-meta,
.hljs-punctuation { color: var(--hl-meta); }
.hljs-deletion { color: var(--hl-del); background: var(--hl-del-bg); }
.hljs-addition { color: var(--hl-add); background: var(--hl-add-bg); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }
.hljs-link { text-decoration: underline; }

.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  vertical-align: middle;
  cursor: zoom-in;
}
/* img-block: set by enhance.js on an image that is alone in its paragraph. */
.markdown-body img.img-block {
  display: block;
  margin: 1.4em auto;
  border: 1px solid var(--img-border);
  border-radius: 10px;
}
.markdown-body img[width] { height: auto; }

.missing-embed {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.35em 0.75em;
  border: 1px dashed var(--border-strong);
  border-radius: 7px;
  background: var(--chrome);
  color: var(--text-3);
  font: 12.5px var(--font-ui);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.markdown-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.93em;
  line-height: 1.55;
}
.markdown-body th,
.markdown-body td {
  padding: 0.55em 0.9em;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}
.markdown-body th:last-child,
.markdown-body td:last-child { border-right: 0; }
.markdown-body tbody tr:last-child td { border-bottom: 0; }
.markdown-body th { background: var(--chrome); font-weight: 620; color: var(--heading); }
.markdown-body tbody tr:nth-child(even) td { background: var(--zebra); }
.markdown-body thead.is-empty { display: none; }
.markdown-body th[style*="center"],
.markdown-body td[style*="center"] { text-align: center; }
.markdown-body th[style*="right"],
.markdown-body td[style*="right"] { text-align: right; }

.markdown-body dt { font-weight: 650; }
.markdown-body dd { margin: 0 0 0.6em 1.4em; color: var(--text-2); }

.markdown-body details:not(.callout):not(.properties) {
  padding: 0.55em 1em;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.markdown-body details:not(.callout):not(.properties) > summary { cursor: pointer; font-weight: 600; }
.markdown-body details:not(.callout):not(.properties)[open] > summary { margin-bottom: 0.5em; }

.markdown-body .tag,
.markdown-body .chip {
  display: inline-block;
  margin: 0 0.15em 0.15em 0;
  padding: 0.04em 0.6em;
  border-radius: 999px;
  font-size: 0.84em;
  font-weight: 500;
  line-height: 1.6;
}
.markdown-body .tag { background: var(--accent-soft); color: var(--accent-strong); }
.markdown-body .chip { background: var(--chrome-2); color: var(--text-2); }

.markdown-body .footnotes-sep { display: none; }
.markdown-body .footnotes {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid var(--border);
  font-size: 0.9em;
  color: var(--text-2);
}
.markdown-body .footnote-ref a,
.markdown-body .footnote-backref { text-decoration: none; }

/* Properties (front matter) */
.properties {
  margin: 0 0 2em;
  padding: 0.7em 1em 0.8em;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: 0.86em/1.5 var(--font-ui);
}
.properties-title {
  cursor: pointer;
  font-size: 0.86em;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  list-style-position: inside;
}
.properties-grid { display: grid; grid-template-columns: minmax(80px, max-content) 1fr; gap: 0.4em 1.6em; margin-top: 0.6em; }
.prop-key { color: var(--text-3); }
.prop-value { color: var(--text); min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }

/* Callouts */
.callout {
  --callout: 68, 138, 255;
  margin: 0 0 1.1em;
  padding: 0.75em 1em 0.8em;
  border-radius: 9px;
  background: rgba(var(--callout), 0.09);
  border: 1px solid rgba(var(--callout), 0.18);
}
.callout-title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 650;
  list-style: none;
}
/* The callout RGB values are tuned for tints and icons; titles are pulled
   toward the text colour so they keep ≥ 4.5:1 contrast on the tint. */
:root:not([data-theme="dark"]) .callout-title { color: color-mix(in srgb, rgb(var(--callout)) 60%, black); }
[data-theme="dark"] .callout-title { color: color-mix(in srgb, rgb(var(--callout)) 75%, white); }
summary.callout-title { cursor: pointer; }
summary.callout-title::-webkit-details-marker { display: none; }
.callout-icon { display: inline-grid; flex: none; color: rgb(var(--callout)); }
.callout-title-text { min-width: 0; }
.callout-fold { display: inline-grid; margin-left: auto; transition: transform 0.15s; transform: rotate(-90deg); }
.callout[open] .callout-fold { transform: none; }
.callout-content { margin-top: 0.45em; color: var(--text); }
.callout-content > :last-child { margin-bottom: 0; }

/* Math */
.markdown-body .katex { font-size: 1.08em; }
.markdown-body .katex-display,
.markdown-body .math-block { overflow-x: auto; overflow-y: hidden; padding: 0.2em 0; }
.markdown-body eq { display: inline; }
.markdown-body section.eqno,
.markdown-body eqn { display: block; overflow-x: auto; }

/* Mermaid */
.mermaid-block { margin: 0 0 1.2em; text-align: center; }
.mermaid-src { display: none; }
.mermaid-block:not([data-done]) { min-height: 3em; border-radius: 10px; background: var(--chrome); }
.mermaid-svg svg { max-width: 100%; height: auto; }
.mermaid-block.has-error { text-align: left; background: none; }
.mermaid-block.has-error .mermaid-src {
  display: block;
  margin: 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--code-bg);
  white-space: pre-wrap;
}
.mermaid-msg { margin-bottom: 0.4em; color: var(--danger); font: 12.5px var(--font-ui); }

/* Transclusion */
.markdown-body .wiki-transclude.loaded { display: block; }
.transclusion {
  margin: 0.4em 0 1em;
  padding: 0.3em 0 0.3em 1.1em;
  border-left: 3px solid var(--accent-soft);
}
.transclusion-head { display: flex; align-items: center; gap: 0.45em; margin-bottom: 0.4em; font: 12px var(--font-ui); color: var(--text-3); }
.transclusion-head a { color: var(--text-2) !important; }
.transclusion-body > :first-child { margin-top: 0; }
.transclusion-body > :last-child { margin-bottom: 0; }

.flash { animation: flash 1.6s ease-out; border-radius: 4px; }
@keyframes flash {
  0%, 30% { background-color: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); }
  100% { background-color: transparent; box-shadow: 0 0 0 6px transparent; }
}
