/*
 * docs.trivolut.com: the portal's own look, shared by the public part and the studio.
 * Not the team panel's: the customer-site palette (docs/design/kleuren.md), slate with
 * blue-600 as the one accent and #0b0f19 as the one dark ground. Hand-written, no build.
 * Sizes in rem/em only (a ch or lh unit makes every theme switch restyle the whole page).
 */
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('/assets/fonts/instrument-sans-latin-ext-wght-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: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url('/assets/fonts/instrument-sans-latin-wght-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: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url('/assets/fonts/geist-mono-latin-wght-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; }

:root {
    --font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --bg: #ffffff;            /* page */
    --sunk: #f8fafc;          /* slate-50: In short, code, sidebars on hover */
    --sunk-2: #f1f5f9;        /* slate-100: chips, segmented controls */
    --line: #e2e8f0;          /* slate-200 */
    --line-soft: #f1f5f9;     /* slate-100 */
    --head: #0f172a;          /* slate-900 */
    --text: #334155;          /* slate-700, prose */
    --ui: #475569;            /* slate-600 */
    --muted: #64748b;         /* slate-500, 4.76:1 on white */
    --acc: #2563eb;           /* blue-600 */
    --acc-hover: #1d4ed8;
    --acc-text: #2563eb;
    --acc-soft: #eff6ff;      /* blue-50 */
    --focus: #2563eb;
    --ins-bg: #ecfdf5; --ins-fg: #065f46;
    --del-bg: #fef2f2; --del-fg: #991b1b;
    --warn-bg: #fffbeb; --warn-fg: #92400e; --warn-line: #fde68a;
    --bad-fg: #b91c1c;
    --good-fg: #047857;
    --shadow-pop: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -8px rgba(15, 23, 42, .18);
    --radius: .625rem;
    --header: 4rem;
    color-scheme: light;
}
:root.dark {
    --bg: #0b0f19;
    --sunk: #0f172a;          /* slate-900 */
    --sunk-2: #1e293b;        /* slate-800 */
    --line: #1e293b;
    --line-soft: #172033;
    --head: #ffffff;
    --text: #d1d5db;          /* gray-300 */
    --ui: #d1d5db;
    --muted: #9ca3af;         /* gray-400, 7.0:1 on slate-900 */
    --acc: #2563eb;
    --acc-hover: #3b82f6;
    --acc-text: #60a5fa;      /* blue-400 */
    --acc-soft: rgba(59, 130, 246, .12);
    --focus: #60a5fa;
    --ins-bg: rgba(16, 185, 129, .16); --ins-fg: #6ee7b7;
    --del-bg: rgba(239, 68, 68, .16); --del-fg: #fca5a5;
    --warn-bg: rgba(245, 158, 11, .1); --warn-fg: #fcd34d; --warn-line: rgba(245, 158, 11, .3);
    --bad-fg: #fca5a5;
    --good-fg: #6ee7b7;
    --shadow-pop: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -8px rgba(0, 0, 0, .6);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 1.5rem); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--acc-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: rgba(37, 99, 235, .18); }
:root.dark ::selection { background: rgba(96, 165, 250, .3); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: .25rem; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
kbd { font: 500 .6875rem/1 var(--font); color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: .3125rem; padding: .2em .4em; background: var(--bg); }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dx-i { width: 1.125rem; height: 1.125rem; flex: none; }
.dx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dx-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--acc); color: #fff; padding: .5rem .875rem; border-radius: .5rem; }
.dx-skip:focus { top: .75rem; }

/* Header */
.dx-top { position: sticky; top: 0; z-index: 40; height: var(--header); background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .dx-top { backdrop-filter: saturate(1.6) blur(10px); } }
.dx-top-in { height: 100%; max-width: 90rem; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.25rem; }
.dx-brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--head); flex: none; }
.dx-brand:hover { text-decoration: none; }
.dx-brand img { height: 1.625rem; width: auto; display: block; }
.dx-brand-tag { font-weight: 600; font-size: .9375rem; letter-spacing: -.01em; padding-left: .75rem; border-left: 1px solid var(--line); line-height: 1.25rem; }
.dx-logo-dark { display: none !important; }
:root.dark .dx-logo-light { display: none !important; }
:root.dark .dx-logo-dark { display: block !important; }
.dx-tabs { display: flex; gap: .25rem; margin-left: .5rem; }
.dx-tab { padding: .4375rem .75rem; border-radius: .5rem; color: var(--ui); font-size: .875rem; font-weight: 500; }
.dx-tab:hover { color: var(--head); background: var(--sunk-2); text-decoration: none; }
.dx-tab[aria-current="page"] { color: var(--head); background: var(--sunk-2); }
.dx-top-end { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.dx-search-btn { display: inline-flex; align-items: center; gap: .625rem; height: 2.25rem; width: 17rem; padding: 0 .5rem 0 .75rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--sunk); color: var(--muted); font-size: .875rem; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
.dx-search-btn:hover { border-color: color-mix(in srgb, var(--muted) 45%, var(--line)); }
.dx-search-btn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-icon-btn { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 1px solid transparent; border-radius: .5rem; background: none; color: var(--ui); cursor: pointer; }
.dx-icon-btn:hover { background: var(--sunk-2); color: var(--head); }
.dx-menu-btn { display: none; }
.dx-theme .dx-moon { display: none; }
:root.dark .dx-theme .dx-sun { display: none; }
:root.dark .dx-theme .dx-moon { display: block; }

/* Custom dropdown (language, version pickers). The button names the choice; the list is a listbox. */
.dx-dd { position: relative; }
.dx-dd-btn { display: inline-flex; align-items: center; gap: .375rem; height: 2.25rem; padding: 0 .625rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--bg); color: var(--ui); font-size: .8125rem; font-weight: 500; cursor: pointer; }
.dx-dd-btn:hover { border-color: color-mix(in srgb, var(--muted) 45%, var(--line)); color: var(--head); }
.dx-dd-btn .dx-chev { width: .875rem; height: .875rem; color: var(--muted); transition: transform .15s; }
.dx-dd-btn[aria-expanded="true"] .dx-chev { transform: rotate(180deg); }
.dx-dd-list { position: absolute; right: 0; top: calc(100% + .375rem); z-index: 60; min-width: 11rem; max-height: 20rem; overflow: auto; margin: 0; padding: .3125rem; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: .625rem; box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(-.25rem); pointer-events: none; transition: opacity .12s ease-out, transform .12s ease-out; }
:root.dark .dx-dd-list { background: var(--sunk); }
.dx-dd-list.is-left { left: 0; right: auto; }
.dx-dd.is-open .dx-dd-list { opacity: 1; transform: none; pointer-events: auto; }
.dx-dd-list a, .dx-dd-list button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .4375rem .625rem; border: 0; border-radius: .375rem; background: none; color: var(--ui); font-size: .875rem; text-align: left; cursor: pointer; }
.dx-dd-list a:hover, .dx-dd-list button:hover, .dx-dd-list .is-active { background: var(--sunk-2); color: var(--head); text-decoration: none; }
.dx-dd-list [aria-selected="true"] { color: var(--head); font-weight: 600; }
.dx-dd-list [aria-selected="true"]::after { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--acc); flex: none; }
.dx-dd-list small { color: var(--muted); font-size: .75rem; font-weight: 400; }

/* Layout */
.dx-shell { max-width: 90rem; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 16rem minmax(0, 47rem) 15rem; justify-content: space-between; gap: 3rem; }
.dx-shell.is-wide { grid-template-columns: 16rem minmax(0, 52rem); justify-content: start; gap: 4rem; }
.dx-shell.is-plain { grid-template-columns: minmax(0, 1fr); }
.dx-side { position: sticky; top: var(--header); align-self: start; height: calc(100vh - var(--header)); overflow: auto; padding: 2rem 0 3rem; }
.dx-nav h2 { margin: 1.75rem 0 .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--head); }
.dx-nav h2:first-child { margin-top: 0; }
.dx-nav h3 { margin: 1.25rem 0 .25rem; padding-left: .75rem; font-size: .75rem; font-weight: 500; color: var(--muted); }
.dx-nav ul { list-style: none; margin: 0; padding: 0; }
.dx-nav a { display: block; padding: .3125rem .75rem; border-radius: .375rem; color: var(--ui); font-size: .875rem; line-height: 1.45; }
.dx-nav a:hover { background: var(--sunk); color: var(--head); text-decoration: none; }
.dx-nav a[aria-current="page"] { background: var(--acc-soft); color: var(--acc-text); font-weight: 500; }
.dx-nav .dx-nav-empty { padding: .3125rem .75rem; font-size: .8125rem; color: var(--muted); }
.dx-main { min-width: 0; padding: 2.5rem 0 6rem; }
.dx-toc { position: sticky; top: var(--header); align-self: start; max-height: calc(100vh - var(--header)); overflow: auto; padding: 2.5rem 0 3rem; }
.dx-toc h2 { margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; color: var(--head); }
.dx-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.dx-toc a { display: flex; gap: .5rem; margin-left: -1px; padding: .25rem 0 .25rem .875rem; border-left: 1px solid transparent; color: var(--muted); font-size: .8125rem; line-height: 1.45; transition: color .15s, border-color .15s; }
.dx-toc a:hover { color: var(--head); text-decoration: none; }
.dx-toc a.is-active { color: var(--acc-text); border-left-color: var(--acc-text); }
.dx-toc .dx-tn { font-family: var(--mono); font-size: .75rem; font-variant-numeric: tabular-nums; min-width: 1.25rem; }
.dx-toc-foot { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.dx-toc-foot a, .dx-toc-foot button { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; padding: 0; color: var(--muted); font-size: .8125rem; cursor: pointer; }
.dx-toc-foot a:hover, .dx-toc-foot button:hover { color: var(--head); text-decoration: none; }
.dx-toc-foot .dx-i { width: 1rem; height: 1rem; }

/* Page heads */
.dx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin: 0 0 1rem; font-size: .8125rem; color: var(--muted); }
.dx-crumbs a { color: var(--muted); }
.dx-crumbs a:hover { color: var(--head); }
.dx-crumbs .dx-i { width: .875rem; height: .875rem; opacity: .7; }
.dx-h1 { margin: 0; color: var(--head); font-size: 2.25rem; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.dx-lead { margin: .875rem 0 0; font-size: 1.125rem; line-height: 1.6; color: var(--ui); max-width: 40rem; text-wrap: pretty; }
.dx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem 1.25rem; margin: 1.125rem 0 0; padding: 0; list-style: none; font-size: .8125rem; color: var(--muted); }
.dx-meta li { display: inline-flex; align-items: center; gap: .4375rem; }
.dx-meta .dx-i { width: .9375rem; height: .9375rem; }
.dx-meta strong { color: var(--ui); font-weight: 500; }
.dx-meta a { color: var(--acc-text); }

/* Notices */
.dx-note { display: flex; gap: .75rem; align-items: flex-start; margin: 1.5rem 0 0; padding: .875rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sunk); font-size: .875rem; line-height: 1.55; color: var(--ui); }
.dx-note .dx-i { margin-top: .125rem; color: var(--muted); }
.dx-note.is-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-fg); }
.dx-note.is-warn .dx-i { color: inherit; }
.dx-note p { margin: 0; }
.dx-note a { font-weight: 500; }

/* In short */
.dx-short { margin: 2rem 0 0; padding: 1.25rem 1.5rem 1.375rem; border-radius: .875rem; background: var(--sunk); border: 1px solid var(--line-soft); }
:root.dark .dx-short { border-color: var(--line); }
.dx-short h2 { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 600; color: var(--head); letter-spacing: .01em; }
.dx-short p, .dx-short li { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--text); }
.dx-short li + li { margin-top: .375rem; }
.dx-short li::marker { color: var(--muted); }
.dx-short p + p { margin-top: .5rem; }
.dx-short ul { margin: 0; padding-left: 1.125rem; }
.dx-pre-line { white-space: pre-line; }

/* Prose */
.dx-prose { max-width: 45rem; font-size: 1rem; line-height: 1.75; color: var(--text); }
.dx-prose p { margin: 0 0 1rem; }
.dx-prose h3 { margin: 2rem 0 .5rem; font-size: 1.0625rem; color: var(--head); font-weight: 600; letter-spacing: -.01em; }
.dx-prose h4 { margin: 1.5rem 0 .375rem; font-size: 1rem; color: var(--head); font-weight: 600; }
.dx-prose ul, .dx-prose ol { margin: 0 0 1rem; padding-left: 1.375rem; }
.dx-prose li { margin: .25rem 0; }
.dx-prose li::marker { color: var(--muted); }
.dx-prose strong { color: var(--head); font-weight: 600; }
.dx-prose code { font-family: var(--mono); font-size: .875em; background: var(--sunk-2); padding: .125em .375em; border-radius: .3125rem; }
.dx-prose pre { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow: auto; font-size: .875rem; }
.dx-prose pre code { background: none; padding: 0; }
.dx-prose blockquote { margin: 0 0 1rem; padding: .25rem 0 .25rem 1rem; border-left: 1px solid var(--line); color: var(--ui); }
.dx-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.dx-prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--acc-text) 35%, transparent); text-underline-offset: .2em; }
.dx-prose a:hover { text-decoration-color: currentColor; }
.dx-table { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); }
.dx-table table { border-collapse: collapse; width: 100%; font-size: .875rem; line-height: 1.5; }
.dx-table th, .dx-table td { padding: .625rem .875rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.dx-table th { color: var(--head); font-weight: 600; background: var(--sunk); }
.dx-table tr:last-child td { border-bottom: 0; }
.dx-sub { scroll-margin-top: calc(var(--header) + 1.5rem); }
.dx-subn { font-family: var(--mono); font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--muted); text-decoration: none !important; margin-right: .25rem; }
.dx-subn:hover { color: var(--acc-text); }
.dx-sub:target { background: var(--acc-soft); box-shadow: 0 0 0 .5rem var(--acc-soft); border-radius: .25rem; }
.dx-aud { position: relative; }
.dx-audl { display: inline-block; margin-right: .375rem; padding: .0625rem .5rem; border-radius: 99rem; font-size: .75rem; font-weight: 600; line-height: 1.5rem; vertical-align: .0625rem; background: var(--sunk-2); color: var(--head); }
.dx-aud[data-aud="consumer"] .dx-audl { background: var(--acc-soft); color: var(--acc-text); }
.dx-gap { display: inline; padding: .0625rem .375rem; border-radius: .25rem; background: var(--warn-bg); color: var(--warn-fg); box-shadow: inset 0 0 0 1px var(--warn-line); font-size: .9375em; white-space: nowrap; }

/* Articles */
.dx-art { padding-top: 2.75rem; scroll-margin-top: calc(var(--header) + 1rem); }
.dx-art-h { position: relative; display: flex; align-items: baseline; gap: .625rem; margin: 0 0 .25rem; color: var(--head); font-size: 1.3125rem; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.dx-num { font-family: var(--mono); font-size: .9375rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.75rem; }
.dx-anchor { position: absolute; left: -2rem; top: .25rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 0; border-radius: .375rem; background: none; color: var(--muted); opacity: 0; cursor: pointer; transition: opacity .15s; }
.dx-art-h:hover .dx-anchor, .dx-anchor:focus-visible { opacity: 1; }
.dx-anchor:hover { color: var(--acc-text); background: var(--sunk-2); }
.dx-anchor .dx-i { width: 1rem; height: 1rem; }
.dx-art-meta { margin: 0 0 1rem 2.375rem; font-size: .75rem; color: var(--muted); }
.dx-art-meta a { color: var(--muted); }
.dx-art-meta a:hover { color: var(--acc-text); }
.dx-art-body { padding-left: 2.375rem; }
.dx-art:target .dx-art-h { color: var(--acc-text); }
.dx-preamble { margin-top: 2rem; }

/* Home */
.dx-home { max-width: 56rem; margin: 0 auto; padding: 4rem 0 6rem; }
.dx-home-search { display: flex; align-items: center; gap: .75rem; width: 100%; max-width: 36rem; height: 3.25rem; margin-top: 2rem; padding: 0 .875rem 0 1.125rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--bg); color: var(--muted); font-size: 1rem; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: border-color .15s, box-shadow .15s; }
.dx-home-search:hover { border-color: color-mix(in srgb, var(--muted) 45%, var(--line)); box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 16px -8px rgba(15, 23, 42, .15); }
.dx-home-search span { flex: 1; text-align: left; }
.dx-sec { margin-top: 4rem; }
.dx-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .875rem; border-bottom: 1px solid var(--line); }
.dx-sec-h h2 { display: flex; align-items: center; gap: .625rem; margin: 0; color: var(--head); font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
.dx-sec-h h2 .dx-i { color: var(--muted); }
.dx-sec-h p { margin: 0; font-size: .875rem; color: var(--muted); }
.dx-index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; margin: 0; padding: 0; list-style: none; }
.dx-index li { border-bottom: 1px solid var(--line-soft); }
:root.dark .dx-index li { border-color: var(--line); }
.dx-index a { display: grid; grid-template-columns: 1fr auto; gap: .125rem 1rem; padding: 1rem 0; color: inherit; }
.dx-index a:hover { text-decoration: none; }
.dx-index a:hover strong { color: var(--acc-text); }
.dx-index strong { color: var(--head); font-weight: 600; font-size: .9375rem; transition: color .12s; }
.dx-index time { font-size: .75rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dx-index span { grid-column: 1 / -1; font-size: .875rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx-index-group { grid-column: 1 / -1; padding: 1.5rem 0 .25rem; font-size: .75rem; font-weight: 600; color: var(--muted); border: 0 !important; }
.dx-empty { padding: 1.75rem 0 .5rem; max-width: 34rem; }
.dx-empty p { margin: 0; color: var(--ui); font-size: .9375rem; line-height: 1.6; }
.dx-empty a { display: inline-flex; align-items: center; gap: .375rem; margin-top: .75rem; font-size: .875rem; font-weight: 500; }
.dx-empty .dx-i { width: 1rem; height: 1rem; }
.dx-empty-page { padding: 3rem 0; border-top: 1px solid var(--line); margin-top: 2rem; max-width: 34rem; }
.dx-empty-page h2 { margin: 0 0 .5rem; font-size: 1.0625rem; color: var(--head); font-weight: 600; }
.dx-empty-page p { margin: 0; color: var(--ui); }

/* History */
.dx-hist { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; }
.dx-hist::before { content: ''; position: absolute; left: .4375rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--line); }
.dx-hist li { position: relative; padding: 0 0 2rem 2.25rem; }
.dx-hist li::before { content: ''; position: absolute; left: 0; top: .375rem; width: .9375rem; height: .9375rem; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); }
.dx-hist li.is-current::before { box-shadow: inset 0 0 0 4px var(--acc); }
.dx-hist-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.dx-hist-h strong { color: var(--head); font-weight: 600; }
.dx-hist-h time { font-size: .8125rem; color: var(--muted); }
.dx-pill { display: inline-flex; align-items: center; gap: .3125rem; padding: .0625rem .5rem; border-radius: 99rem; font-size: .6875rem; font-weight: 600; line-height: 1.25rem; background: var(--sunk-2); color: var(--ui); }
.dx-pill.is-acc { background: var(--acc-soft); color: var(--acc-text); }
.dx-pill.is-good { background: var(--ins-bg); color: var(--ins-fg); }
.dx-pill.is-bad { background: var(--del-bg); color: var(--del-fg); }
.dx-pill.is-warn { background: var(--warn-bg); color: var(--warn-fg); }
.dx-hist-body { margin-top: .375rem; font-size: .9375rem; color: var(--text); white-space: pre-line; max-width: 40rem; }
.dx-hist-links { display: flex; gap: 1.25rem; margin-top: .5rem; font-size: .8125rem; }

/* Diffs */
.dx-diff-art { margin-top: 2rem; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.dx-diff-h { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .75rem 1rem; background: var(--sunk); border-bottom: 1px solid var(--line); }
.dx-diff-h h3 { margin: 0; font-size: .9375rem; color: var(--head); font-weight: 600; display: flex; gap: .5rem; align-items: baseline; }
.dx-diff-h .dx-num { min-width: 0; font-size: .8125rem; }
.dx-diff-h small { font-size: .75rem; color: var(--muted); }
.dx-diff-rows { padding: .5rem 0; }
.dx-diff-row { padding: .5rem 1rem; font-size: .9375rem; line-height: 1.7; color: var(--text); }
.dx-diff-row.is-same { color: var(--muted); }
.dx-diff-row.is-added { background: var(--ins-bg); }
.dx-diff-row.is-removed { background: var(--del-bg); }
.dx-diff-side { display: grid; grid-template-columns: 1fr 1fr; }
.dx-diff-side > div { padding: .5rem 1rem; font-size: .9375rem; line-height: 1.7; min-width: 0; }
.dx-diff-side > div + div { border-left: 1px solid var(--line); }
.dx-diff-side.is-same > div { color: var(--muted); }
.dx-diff-side .is-blank { background: var(--sunk); }
ins { text-decoration: none; background: var(--ins-bg); color: var(--ins-fg); border-radius: .1875rem; padding: 0 .125rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
del { background: var(--del-bg); color: var(--del-fg); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--del-fg) 60%, transparent); border-radius: .1875rem; padding: 0 .125rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.dx-diff-row.is-added ins, .dx-diff-row.is-removed del { background: none; padding: 0; }
.dx-diff-sum { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }

/* Search palette */
.dx-pal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 12vh 1rem 1rem; background: rgba(2, 6, 23, .45); }
:root.dark .dx-pal { background: rgba(0, 0, 0, .6); }
.dx-pal.is-open { display: flex; animation: dx-fade .14s ease-out; }
.dx-pal-box { width: 100%; max-width: 40rem; max-height: 76vh; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: .875rem; box-shadow: var(--shadow-pop); overflow: hidden; animation: dx-rise .18s cubic-bezier(.16, 1, .3, 1); }
:root.dark .dx-pal-box { background: var(--sunk); }
.dx-pal-in { display: flex; align-items: center; gap: .75rem; padding: 0 1rem; border-bottom: 1px solid var(--line); }
.dx-pal-in .dx-i { color: var(--muted); }
.dx-pal-in input { flex: 1; height: 3.375rem; border: 0; outline: 0; background: none; color: var(--head); font: 400 1rem var(--font); }
.dx-pal-in input::placeholder { color: var(--muted); }
.dx-pal-list { flex: 1; overflow: auto; margin: 0; padding: .5rem; list-style: none; }
.dx-pal-list li a { display: grid; grid-template-columns: auto 1fr; gap: .125rem .75rem; padding: .625rem .75rem; border-radius: .5rem; color: inherit; }
.dx-pal-list li a:hover { text-decoration: none; }
.dx-pal-list li.is-active a { background: var(--sunk-2); }
.dx-pal-kind { grid-row: span 2; align-self: start; margin-top: .125rem; font-size: .6875rem; font-weight: 600; color: var(--muted); background: var(--sunk-2); border-radius: .3125rem; padding: .0625rem .375rem; min-width: 4.75rem; text-align: center; }
li.is-active .dx-pal-kind { background: var(--bg); }
.dx-pal-t { color: var(--head); font-size: .9375rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-pal-s { font-size: .8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-pal-list mark { background: none; color: var(--acc-text); font-weight: 600; }
.dx-pal-msg { padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: .875rem; }
.dx-pal-foot { display: flex; gap: 1.25rem; padding: .625rem 1rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.dx-pal-foot span { display: inline-flex; align-items: center; gap: .375rem; }
@keyframes dx-fade { from { opacity: 0; } }
@keyframes dx-rise { from { opacity: 0; transform: translateY(-.5rem) scale(.985); } }

/* Mobile drawer */
.dx-drawer { position: fixed; inset: var(--header) 0 0; z-index: 35; display: none; background: var(--bg); overflow: auto; padding: 1.25rem 1.25rem 3rem; }
.dx-drawer.is-open { display: block; animation: dx-fade .12s ease-out; }
.dx-mtoc { display: none; }

/* Footer */
.dx-foot { border-top: 1px solid var(--line); }
.dx-foot-in { max-width: 90rem; margin: 0 auto; padding: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; font-size: .8125rem; color: var(--muted); }
.dx-foot-in a { color: var(--muted); }
.dx-foot-in a:hover { color: var(--head); }
.dx-foot-in .dx-foot-end { margin-left: auto; }

/* Buttons */
.dx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 2.375rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--bg); color: var(--head); font-size: .875rem; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.dx-btn:hover { background: var(--sunk); text-decoration: none; }
:root.dark .dx-btn:not(.is-primary) { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
:root.dark .dx-btn:not(.is-primary):hover { background: rgba(255, 255, 255, .08); }
.dx-btn.is-primary { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .25); }
.dx-btn.is-primary:hover { background: var(--acc-hover); border-color: var(--acc-hover); }
.dx-btn.is-small { height: 2rem; padding: 0 .75rem; font-size: .8125rem; }
.dx-btn[disabled] { opacity: .5; cursor: not-allowed; }
.dx-btn .dx-i { width: 1rem; height: 1rem; }

@media (max-width: 1180px) {
    .dx-shell { grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; }
    .dx-toc { display: none; }
    .dx-mtoc { display: block; margin: 1.5rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); }
    .dx-mtoc summary { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; font-size: .875rem; font-weight: 500; color: var(--head); cursor: pointer; list-style: none; }
    .dx-mtoc summary::-webkit-details-marker { display: none; }
    .dx-mtoc[open] summary .dx-i { transform: rotate(180deg); }
    .dx-mtoc ol { list-style: none; margin: 0; padding: 0 1rem .75rem; }
    .dx-mtoc a { display: flex; gap: .5rem; padding: .375rem 0; font-size: .875rem; color: var(--ui); }
    .dx-mtoc .dx-tn { font-family: var(--mono); font-size: .75rem; color: var(--muted); min-width: 1.5rem; }
}
@media (max-width: 900px) {
    :root { --header: 3.5rem; }
    .dx-top-in { padding: 0 1rem; gap: .75rem; }
    .dx-tabs, .dx-side { display: none; }
    .dx-menu-btn { display: inline-grid; }
    .dx-shell, .dx-shell.is-wide { grid-template-columns: minmax(0, 1fr); padding: 0 1.25rem; gap: 0; }
    .dx-search-btn { width: 2.25rem; padding: 0; justify-content: center; border-color: transparent; background: none; color: var(--ui); }
    .dx-search-btn span, .dx-search-btn kbd { display: none; }
    .dx-brand img { height: 1.375rem; }
    .dx-brand-tag { font-size: .875rem; padding-left: .625rem; }
    .dx-main { padding-top: 1.75rem; }
    .dx-h1 { font-size: 1.875rem; }
    .dx-lead { font-size: 1.0625rem; }
    .dx-art-meta, .dx-art-body { margin-left: 0; padding-left: 0; }
    .dx-art-meta { margin-top: .25rem; }
    .dx-anchor { display: none; }
    .dx-art-h { font-size: 1.1875rem; }
    .dx-short { padding: 1rem 1.125rem 1.125rem; }
    .dx-index { grid-template-columns: 1fr; }
    .dx-home { padding: 2.5rem 1.25rem 4rem; }
    .dx-diff-side { grid-template-columns: 1fr; }
    .dx-diff-side > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .dx-pal { padding-top: .75rem; }
    .dx-pal-foot { display: none; }
    .dx-dd-btn .dx-dd-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
    .dx-top, .dx-side, .dx-toc, .dx-mtoc, .dx-foot, .dx-anchor, .dx-pal, .dx-skip, .dx-toc-foot { display: none !important; }
    .dx-shell { display: block; padding: 0; }
    .dx-main { padding: 0; }
    body { background: #fff; color: #000; }
    .dx-art { break-inside: auto; padding-top: 1.5rem; }
    .dx-art-h { break-after: avoid; }
    a { color: inherit; }
}
.dx-sec-h h2 a { color: inherit; }
