/* Meziantou.DocumentationGenerator default theme. Self-hosted, no external font or CDN. */

:root {
    color-scheme: light;
    --color-bg: #ffffff;
    --color-bg-subtle: #f6f8fa;
    --color-bg-muted: #eef1f4;
    --color-text: #1f2328;
    --color-text-muted: #57606a;
    --color-border: #d0d7de;
    --color-link: #0550ae;
    --color-link-visited: #6639ba;
    --color-accent: #0969da;
    --color-focus: #0969da;
    --color-code-bg: #f6f8fa;
    --color-badge-bg: #ddf4ff;
    --color-badge-text: #0a3069;
    --color-warning-bg: #fff8c5;
    --color-warning-border: #bf8700;
    --color-danger-bg: #ffebe9;
    --color-danger-border: #cf222e;
    --color-note-border: #0969da;
    --color-tip-border: #1a7f37;
    --hl-keyword: #cf222e;
    --hl-string: #0a3069;
    --hl-number: #0550ae;
    --hl-comment: #57606a;
    --hl-title: #8250df;
    --hl-type: #953800;
    --hl-attr: #0550ae;
    --hl-meta: #57606a;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --header-height: 3.5rem;
    /* The sidebar grows into the free space of large screens so long type and namespace names do not wrap */
    --sidebar-min-width: 18rem;
    --sidebar-max-width: 32rem;
    --page-toc-width: clamp(14rem, 16vw, 20rem);
    /* Long lines are hard to read, so the main content stops growing past this width */
    --content-max-width: 60rem;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --color-bg: #0d1117;
    --color-bg-subtle: #161b22;
    --color-bg-muted: #21262d;
    --color-text: #e6edf3;
    --color-text-muted: #9198a1;
    --color-border: #3d444d;
    --color-link: #4493f8;
    --color-link-visited: #ab7df8;
    --color-accent: #4493f8;
    --color-focus: #58a6ff;
    --color-code-bg: #161b22;
    --color-badge-bg: #0c2d6b;
    --color-badge-text: #cae8ff;
    --color-warning-bg: #3b2e00;
    --color-warning-border: #d29922;
    --color-danger-bg: #42121a;
    --color-danger-border: #f85149;
    --color-note-border: #4493f8;
    --color-tip-border: #3fb950;
    --hl-keyword: #ff7b72;
    --hl-string: #a5d6ff;
    --hl-number: #79c0ff;
    --hl-comment: #9198a1;
    --hl-title: #d2a8ff;
    --hl-type: #ffa657;
    --hl-attr: #79c0ff;
    --hl-meta: #9198a1;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --color-bg: #0d1117;
        --color-bg-subtle: #161b22;
        --color-bg-muted: #21262d;
        --color-text: #e6edf3;
        --color-text-muted: #9198a1;
        --color-border: #3d444d;
        --color-link: #4493f8;
        --color-link-visited: #ab7df8;
        --color-accent: #4493f8;
        --color-focus: #58a6ff;
        --color-code-bg: #161b22;
        --color-badge-bg: #0c2d6b;
        --color-badge-text: #cae8ff;
        --color-warning-bg: #3b2e00;
        --color-warning-border: #d29922;
        --color-danger-bg: #42121a;
        --color-danger-border: #f85149;
        --color-note-border: #4493f8;
        --color-tip-border: #3fb950;
        --hl-keyword: #ff7b72;
        --hl-string: #a5d6ff;
        --hl-number: #79c0ff;
        --hl-comment: #9198a1;
        --hl-title: #d2a8ff;
        --hl-type: #ffa657;
        --hl-attr: #79c0ff;
        --hl-meta: #9198a1;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
}

a { color: var(--color-link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
    border-radius: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -10rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: var(--color-bg);
    border: 2px solid var(--color-focus);
}

.skip-link:focus { top: 0.5rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    min-height: var(--header-height);
    padding: 0.5rem 1rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.site-title { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.1rem; color: var(--color-text); text-decoration: none; }
.site-logo { width: 1.75rem; height: 1.75rem; object-fit: contain; }
.header-tools { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.header-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
/* Header links read as navigation items rather than inline text links */
.header-link { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.6rem; border-radius: 6px; color: var(--color-text); font-weight: 500; text-decoration: none; }
.header-link:hover { background: var(--color-bg-muted); }
/* Header links always point to other sites */
.header-link::after { content: "↗"; font-size: 0.85em; color: var(--color-text-muted); }
.header-links + .theme-picker { padding-left: 0.75rem; border-left: 1px solid var(--color-border); }
.header-link-icon { line-height: 1; }
.menu-button { display: none; }

button, select, input {
    font: inherit;
    color: var(--color-text);
    background: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
}

button { cursor: pointer; }

/* Search */
.search { position: relative; flex: 1 1 16rem; max-width: 28rem; }
.search-form input { width: 100%; }
.search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 30;
    max-height: 70vh;
    overflow-y: auto;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 20%);
}

.search-results a { display: block; padding: 0.4rem 0.6rem; border-radius: 4px; color: var(--color-text); text-decoration: none; }
.search-results [aria-selected="true"] a, .search-results a:hover { background: var(--color-bg-muted); outline: 2px solid var(--color-focus); outline-offset: -2px; }
.search-title { display: block; font-weight: 600; overflow-wrap: anywhere; }
.search-context { display: block; font-size: 0.85rem; color: var(--color-text-muted); }
.search-status { position: absolute; margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }
.search-status:empty { display: none; }

/* Layout */
.site-body {
    display: grid;
    /* The sidebar stays on the left; the content and "On this page" columns are centered in the remaining space.
       The content column takes its width first (sized against the sidebar minimum), then the sidebar grows up to its
       maximum, and only the space left after that goes to the centering columns. */
    --content-width: min(var(--content-max-width), 100% - var(--sidebar-min-width) - var(--page-toc-width));
    grid-template-columns: minmax(var(--sidebar-min-width), var(--sidebar-max-width)) minmax(0, 1fr) var(--content-width) var(--page-toc-width) minmax(0, 1fr);
    grid-template-areas: "sidebar . content toc .";
    align-items: start;
}

.sidebar-panel {
    grid-area: sidebar;
    position: sticky;
    top: var(--header-height);
    max-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid var(--color-border);
}

.sidebar-tools { display: none; justify-content: flex-end; padding: 0.5rem; }
.js .sidebar-tools { display: flex; }
.sidebar-collapse-button { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; background: transparent; border-color: transparent; }
.sidebar-collapse-button:hover { background: var(--color-bg-muted); }
.sidebar-collapsed { --sidebar-min-width: 3rem; --sidebar-max-width: 3rem; }
.sidebar-collapsed .sidebar { display: none; }
.sidebar-collapsed .sidebar-collapse-arrow { transform: translateX(29px) scaleX(-1); }

.sidebar {
    min-height: 0;
    overflow-y: auto;
    padding: 0.5rem 0.75rem 2rem;
    font-size: 0.925rem;
}

.sidebar ul { list-style: none; margin: 0; padding-left: 1.25rem; }
.sidebar > ul { padding-left: 1.9rem; }
.sidebar li { margin: 0.1rem 0; }
.sidebar a, .sidebar .nav-group { display: block; padding: 0.2rem 0.25rem; color: var(--color-text); text-decoration: none; overflow-wrap: anywhere; border-radius: 4px; }
.sidebar a:hover { background: var(--color-bg-muted); text-decoration: underline; }
.sidebar a[aria-current="page"] { color: var(--color-link); font-weight: 600; border-left: 3px solid var(--color-accent); padding-left: 0.4rem; }
.nav-node { position: relative; }
/* Separates the generated API reference from the authored pages; the line spans the toggle column */
.sidebar > ul > .nav-api-reference:not(:first-child) { margin-top: 0.9rem; }
.sidebar > ul > .nav-api-reference:not(:first-child)::before { content: ""; position: absolute; top: -0.5rem; left: -1.9rem; right: 0; border-top: 1px solid var(--color-border); }
.nav-toggle { position: absolute; left: -1.9rem; top: 0.05rem; display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; cursor: pointer; list-style: none; color: var(--color-text); border-radius: 4px; }
.nav-toggle:hover { background: var(--color-bg-muted); }
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::before { content: ""; width: 0.55rem; height: 0.55rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
details[open] > .nav-toggle::before { transform: translateY(-0.15rem) rotate(135deg); }
.sidebar .nav-external::after { content: " ↗"; }

.content { grid-area: content; min-width: 0; padding: 1.5rem 2rem 3rem; }
.page-toc { grid-area: toc; position: sticky; top: var(--header-height); max-height: calc(100vh - var(--header-height)); overflow-y: auto; min-width: 0; padding: 1.5rem 1rem; font-size: 0.875rem; overflow-wrap: anywhere; }
.page-toc h2 { font-size: 0.875rem; margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.page-toc ul { list-style: none; margin: 0; padding: 0; }
.page-toc li.level-3 { padding-left: 0.75rem; }
.page-toc a { display: block; padding: 0.15rem 0 0.15rem 0.5rem; border-left: 2px solid transparent; color: var(--color-text-muted); text-decoration: none; }
.page-toc a[aria-current="true"] { color: var(--color-link); border-left-color: var(--color-accent); }

@media (max-width: 75rem) {
    .site-body { --page-toc-width: 0px; grid-template-columns: minmax(var(--sidebar-min-width), var(--sidebar-max-width)) minmax(0, 1fr) var(--content-width) minmax(0, 1fr); grid-template-areas: "sidebar . content ."; }
    .page-toc { display: none; }
}

@media (max-width: 56rem) {
    .site-body { display: block; }
    .sidebar-panel { position: static; max-height: none; border-right: 0; }
    .js .sidebar-tools { display: none; }
    .sidebar { border-bottom: 1px solid var(--color-border); }
    .js .menu-button { display: inline-block; }
    .js .sidebar.is-open { display: block; }
    .js .sidebar:not(.is-open) { display: none; }
    .content { padding: 1rem; }
    .search { order: 10; flex-basis: 100%; max-width: none; }
}

/* Content */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; margin: 1.75rem 0 0.75rem; scroll-margin-top: calc(var(--header-height) + 1rem); }
h1 { font-size: 2rem; margin-top: 0.5rem; overflow-wrap: anywhere; }
h2 { font-size: 1.5rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--color-border); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
h5, h6 { font-size: 1rem; }
[id] { scroll-margin-top: calc(var(--header-height) + 1rem); }
.heading-anchor { margin-left: 0.4rem; font-weight: 400; color: var(--color-text-muted); text-decoration: none; opacity: 0; }
:is(h2, h3, h4):hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }

p, ul, ol, dl, table, pre, blockquote { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }
.lead { font-size: 1.15rem; color: var(--color-text-muted); }

code { font-family: var(--font-mono); font-size: 0.9em; background: var(--color-code-bg); border-radius: 4px; padding: 0.1em 0.3em; overflow-wrap: anywhere; }
pre { position: relative; overflow-x: auto; padding: 0.85rem 1rem; background: var(--color-code-bg); border: 1px solid var(--color-border); border-radius: 6px; line-height: 1.45; }
pre code { padding: 0; background: none; font-size: 0.875rem; overflow-wrap: normal; white-space: pre; }
.code-block { position: relative; margin: 0 0 1rem; }
.code-block > pre { margin: 0; }
.copy-button { position: absolute; top: 0.4rem; right: 0.4rem; font-size: 0.8rem; padding: 0.15rem 0.5rem; opacity: 0.85; }

table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
th, td { padding: 0.45rem 0.75rem; border: 1px solid var(--color-border); text-align: left; vertical-align: top; }
th { background: var(--color-bg-subtle); }
.api-table { display: table; width: 100%; table-layout: auto; }
.api-table td:first-child { white-space: nowrap; }
@media (max-width: 56rem) { .api-table { display: block; } .api-table td:first-child { white-space: normal; overflow-wrap: anywhere; } }

blockquote { margin-left: 0; padding: 0.25rem 1rem; color: var(--color-text-muted); border-left: 4px solid var(--color-border); }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0 0 0.5rem; padding: 0; font-size: 0.875rem; }
.breadcrumbs, .breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.25rem; color: var(--color-text-muted); }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.pager a { display: flex; flex-direction: column; text-decoration: none; }
.pager-next { margin-left: auto; text-align: right; }
.pager-label { font-size: 0.8rem; color: var(--color-text-muted); }

.site-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 0.875rem; }

/* Alerts */
.markdown-alert, .notice { margin: 0 0 1rem; padding: 0.5rem 1rem; border-left: 4px solid var(--color-note-border); background: var(--color-bg-subtle); border-radius: 0 6px 6px 0; }
.markdown-alert-title { font-weight: 600; margin: 0.25rem 0; }
.markdown-alert-tip { border-left-color: var(--color-tip-border); }
.markdown-alert-warning, .markdown-alert-caution, .notice { border-left-color: var(--color-warning-border); background: var(--color-warning-bg); }
.markdown-alert-important { border-left-color: var(--color-danger-border); }

/* API pages */
.api-metadata { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.25rem 1rem; font-size: 0.925rem; }
.api-metadata dt, .api-relations dt { font-weight: 600; }
.api-metadata dd, .api-relations dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.availability { display: inline-flex; flex-wrap: wrap; }
@media (max-width: 56rem) {
    .api-metadata { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .api-metadata dd { margin-bottom: 0.5rem; }
}
.api-relations dd { margin-bottom: 0.5rem; }
.inline-list { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; list-style: none; margin: 0; padding: 0; }
.tfm-badge, .badge { display: inline-block; margin: 0 0.25rem 0.25rem 0; padding: 0 0.5rem; border-radius: 1rem; font-size: 0.8rem; background: var(--color-badge-bg); color: var(--color-badge-text); }
.badges { list-style: none; margin: 0 0 1rem; padding: 0; }
.badge-obsolete { background: var(--color-danger-bg); color: var(--color-text); border: 1px solid var(--color-danger-border); }
.badge-experimental { background: var(--color-warning-bg); color: var(--color-text); border: 1px solid var(--color-warning-border); }
.api-member { margin: 0 0 2rem; padding-top: 0.25rem; }
.heading-row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.75rem; margin: 1.75rem 0 0.75rem; }
.heading-row > :is(h1, h3, h4) { margin: 0; }
:is(.api-page, .article) > .heading-row:first-child { margin-top: 0.5rem; }
.api-member > .heading-row > :is(h3, h4) { font-family: var(--font-mono); font-size: 1.05rem; overflow-wrap: anywhere; }
.overload-group > h3 { font-family: var(--font-mono); }
.declaration { white-space: pre; }
.variant-label { margin: 0 0 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }
.parameters dt, .exceptions dt { margin-top: 0.5rem; }
.parameters dd, .exceptions dd { margin-left: 1.5rem; }
.no-documentation { color: var(--color-text-muted); font-style: italic; }
.source-links { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; font-size: 0.875rem; font-weight: 400; white-space: nowrap; }
.edit-link { font-size: 0.875rem; white-space: nowrap; }
:is(.source-link, .edit-link)::after { content: " ↗"; }
/* GitHub mark (Octicons, MIT), drawn with the link color so it follows the theme and forced colors */
.source-link[href^="https://github.com/"]::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 0.3em; vertical-align: -0.125em; background-color: currentColor; forced-color-adjust: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.edit-link[href]::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 0.3em; vertical-align: -0.125em; background-color: currentColor; forced-color-adjust: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m10 3 3 3M2 14l1-4L11 2a2.12 2.12 0 0 1 3 3l-8 8-4 1Z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m10 3 3 3M2 14l1-4L11 2a2.12 2.12 0 0 1 3 3l-8 8-4 1Z' fill='none' stroke='black' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.nuget-reference { white-space: nowrap; }
.nuget-reference::before { content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 0.3em; vertical-align: -0.125em; background-color: currentColor; forced-color-adjust: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M3 .8a2.2 2.2 0 1 1 0 4.4 2.2 2.2 0 0 1 0-4.4ZM9 5.5h3.5A3.5 3.5 0 0 1 16 9v3.5a3.5 3.5 0 0 1-3.5 3.5H9a3.5 3.5 0 0 1-3.5-3.5V9A3.5 3.5 0 0 1 9 5.5Zm-.7 1.7a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2Zm3.9 2.8a2.2 2.2 0 1 0 0 4.4 2.2 2.2 0 0 0 0-4.4Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M3 .8a2.2 2.2 0 1 1 0 4.4 2.2 2.2 0 0 1 0-4.4ZM9 5.5h3.5A3.5 3.5 0 0 1 16 9v3.5a3.5 3.5 0 0 1-3.5 3.5H9a3.5 3.5 0 0 1-3.5-3.5V9A3.5 3.5 0 0 1 9 5.5Zm-.7 1.7a1.1 1.1 0 1 0 0 2.2 1.1 1.1 0 0 0 0-2.2Zm3.9 2.8a2.2 2.2 0 1 0 0 4.4 2.2 2.2 0 0 0 0-4.4Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.tfm-filter { margin-bottom: 1rem; font-size: 0.925rem; }
.section-catalog { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.section-card { padding: 1rem; border: 1px solid var(--color-border); border-radius: 8px; }
.section-card h2 { margin: 0 0 0.5rem; border: 0; font-size: 1.2rem; }

/* Build-time syntax highlighting (highlight.js class names) */
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-literal, .hljs-doctag { color: var(--hl-keyword); }
.hljs-string, .hljs-regexp, .hljs-template-string, .hljs-char { color: var(--hl-string); }
.hljs-number, .hljs-symbol, .hljs-bullet { color: var(--hl-number); }
.hljs-comment, .hljs-quote { color: var(--hl-comment); font-style: italic; }
.hljs-title, .hljs-section, .hljs-function .hljs-title { color: var(--hl-title); }
.hljs-type, .hljs-class .hljs-title, .hljs-params { color: var(--hl-type); }
.hljs-params { color: inherit; }
.hljs-attr, .hljs-attribute, .hljs-variable, .hljs-property, .hljs-name, .hljs-tag { color: var(--hl-attr); }
.hljs-meta, .hljs-meta .hljs-keyword { color: var(--hl-meta); }
a.hljs-type { text-decoration: underline; text-decoration-color: var(--color-border); }

/* Dependency graph: <DependencyGraph /> in Markdown pages */
.dependency-graph { margin: 0 0 1rem; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-bg-subtle); }
.dependency-graph-empty { padding: 0.5rem 1rem; color: var(--color-text-muted); }
.dependency-graph-empty p { margin: 0; }
.dependency-graph-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; border-bottom: 1px solid var(--color-border); }
.dependency-graph-toolbar[hidden] { display: none; }
.dependency-graph-filter { flex: 1 1 12rem; min-width: 0; padding: 0.25rem 0.5rem; font: inherit; font-size: 0.875rem; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 6px; }
.dependency-graph-toolbar button { min-width: 2rem; padding: 0.25rem 0.625rem; font: inherit; font-size: 0.875rem; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 6px; cursor: pointer; }
.dependency-graph-toolbar button:hover { background: var(--color-bg-muted); }
.dependency-graph-viewport { overflow: auto; max-height: 80vh; padding: 0.75rem; }
.is-interactive .dependency-graph-viewport { cursor: grab; }
.is-panning .dependency-graph-viewport { cursor: grabbing; user-select: none; }
.dependency-graph-svg { display: block; max-width: none; height: auto; font-family: var(--font-sans); font-size: 13px; }
.dependency-graph-node { cursor: pointer; }
.dependency-graph-node rect { fill: var(--color-bg); stroke: var(--color-accent); stroke-width: 1.5; transition: opacity 0.15s, fill 0.15s; }
.dependency-graph-node text { fill: var(--color-text); pointer-events: none; transition: opacity 0.15s; }
.dependency-graph-node-external rect { fill: var(--color-bg-muted); stroke: var(--color-border); stroke-dasharray: 4 3; }
.dependency-graph-node-external text { fill: var(--color-text-muted); }
.dependency-graph-node:hover rect { fill: var(--color-badge-bg); }
.dependency-graph-node:focus { outline: none; }
.dependency-graph-node:focus-visible rect { stroke: var(--color-focus); stroke-width: 3; }
.dependency-graph-line { fill: none; stroke: var(--color-text-muted); stroke-width: 1.25; opacity: 0.6; transition: opacity 0.15s; }
.dependency-graph-arrow { fill: var(--color-text-muted); opacity: 0.6; transition: opacity 0.15s; }
.dependency-graph-edge-cycle .dependency-graph-line { stroke-dasharray: 5 4; stroke: var(--color-danger-border); }
.dependency-graph-edge-cycle .dependency-graph-arrow { fill: var(--color-danger-border); }
.has-selection .dependency-graph-node:not(.is-selected, .is-dependency, .is-dependent) rect,
.has-selection .dependency-graph-node:not(.is-selected, .is-dependency, .is-dependent) text,
.has-filter .dependency-graph-node:not(.is-match) rect,
.has-filter .dependency-graph-node:not(.is-match) text { opacity: 0.3; }
.has-selection .dependency-graph-edge:not(.is-dependency, .is-dependent) > *,
.has-filter:not(.has-selection) .dependency-graph-edge > * { opacity: 0.12; }
.dependency-graph-node.is-selected rect { fill: var(--color-badge-bg); stroke: var(--color-focus); stroke-width: 3; }
.dependency-graph-node.is-dependency rect { stroke: var(--color-tip-border); stroke-width: 2.5; }
.dependency-graph-node.is-dependent rect { stroke: var(--color-warning-border); stroke-width: 2.5; }
.dependency-graph-edge.is-dependency .dependency-graph-line { stroke: var(--color-tip-border); stroke-width: 2; opacity: 1; }
.dependency-graph-edge.is-dependency .dependency-graph-arrow { fill: var(--color-tip-border); opacity: 1; }
.dependency-graph-edge.is-dependent .dependency-graph-line { stroke: var(--color-warning-border); stroke-width: 2; opacity: 1; }
.dependency-graph-edge.is-dependent .dependency-graph-arrow { fill: var(--color-warning-border); opacity: 1; }
.dependency-graph-legend { padding: 0.5rem 0.75rem; border-top: 1px solid var(--color-border); font-size: 0.875rem; color: var(--color-text-muted); }
.dependency-graph-legend [hidden] { display: none; }
.dependency-graph-swatch { display: inline-block; width: 0.75rem; height: 0.75rem; margin: 0 0.25rem 0 0.125rem; vertical-align: -0.0625rem; border: 2px solid var(--color-accent); border-radius: 3px; }
.dependency-graph-swatch-external { border-color: var(--color-border); border-style: dashed; background: var(--color-bg-muted); }
.dependency-graph-swatch-dependency { border-color: var(--color-tip-border); }
.dependency-graph-swatch-dependent { border-color: var(--color-warning-border); }

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

@media print {
    .site-header, .sidebar-panel, .page-toc, .pager, .copy-button, .heading-anchor, .edit-link, .dependency-graph-toolbar { display: none !important; }
    .dependency-graph-viewport { max-height: none; overflow: visible; }
    .site-body { display: block; }
}
