/* SPDX-License-Identifier: Apache-2.0 */
/*
 * Kyvernon documentation stylesheet, for kyvernon.com/docs and the console under /docs. Imports
 * nothing. The token block below is a copy of website/assets/css/site.css; the docs build fails
 * when the two differ. Inter only: the display face of the site is not used in the documentation
 * (BRAND.md section 5). No motion.
 */

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

:root {
  color-scheme: light dark;
  --k-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --k-font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --k-font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --k-bg-canvas: #f4f5f7;
  --k-bg-surface: #ffffff;
  --k-bg-subtle: #eceef1;
  --k-bg-inverse: #1b1f26;
  --k-bg-selected: #e3ecfa;
  --k-fg: #1b1f26;
  --k-fg-muted: #4b5563;
  --k-fg-subtle: #5f6773;
  --k-fg-inverse: #f4f5f7;
  --k-fg-on-accent: #ffffff;
  --k-link: #1a4fa0;
  --k-border: #d1d5db;
  --k-border-subtle: #e5e8ec;
  --k-border-strong: #6f7988;
  --k-accent: #1f5fbf;
  --k-accent-hover: #194d9c;
  --k-accent-active: #143f80;
  --k-accent-subtle: #e3ecfa;
  --k-accent-fg: #1a4fa0;
  --k-ok: #1a7f4b;
  --k-warning: #9a5b00;
  --k-elevation-1: 0 1px 2px rgba(15, 18, 23, 0.08), 0 0 0 1px rgba(15, 18, 23, 0.04);
  --k-grid-line: rgba(15, 18, 23, 0.06);
  --k-cyan: #0891b2;
  --k-gradient: linear-gradient(110deg, #1e3a8a 0%, #2563eb 45%, #06b6d4 100%);

  --k-radius-sm: 3px;
  --k-radius-md: 6px;
  --k-radius-lg: 10px;
  --k-container: 72rem;
  --k-measure: 44rem;
  --k-gutter: 1rem;
  --k-duration: 160ms;
  --k-ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --k-bg-canvas: #0f1217;
    --k-bg-surface: #171b22;
    --k-bg-subtle: #1f242d;
    --k-bg-inverse: #f4f5f7;
    --k-bg-selected: #1c2d4a;
    --k-fg: #e6e9ee;
    --k-fg-muted: #aab2bf;
    --k-fg-subtle: #98a1af;
    --k-fg-inverse: #1b1f26;
    --k-fg-on-accent: #0f1217;
    --k-link: #8ab8f8;
    --k-border: #2e3542;
    --k-border-subtle: #262c36;
    --k-border-strong: #7d8797;
    --k-accent: #5b9cf5;
    --k-accent-hover: #78aef7;
    --k-accent-active: #3f85e8;
    --k-accent-subtle: #1c2d4a;
    --k-accent-fg: #8ab8f8;
    --k-ok: #4fc27c;
    --k-warning: #e0a33a;
    --k-elevation-1: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --k-grid-line: rgba(244, 245, 247, 0.06);
    --k-cyan: #22d3ee;
  }
}


/* Documentation only (not in site.css): the danger colour of callouts and the layout widths. */
:root { --k-danger: #b42318; --k-sidebar: 16rem; --k-toc: 14rem; }
@media (prefers-color-scheme: dark) { :root { --k-danger: #f97066; } }
@media (min-width: 48rem) { :root { --k-gutter: 2rem; } }

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--k-font-sans); font-size: 1rem; line-height: 1.6; color: var(--k-fg); background: var(--k-bg-canvas); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--k-link); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--k-accent); outline-offset: 2px; border-radius: var(--k-radius-sm); }
code, pre, kbd { font-family: var(--k-font-mono); font-size: 0.875em; }
code { background: var(--k-bg-subtle); padding: 0.1em 0.35em; border-radius: var(--k-radius-sm); overflow-wrap: anywhere; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { max-width: var(--k-container); margin: 0 auto; padding: 0 var(--k-gutter); }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--k-accent); color: var(--k-fg-on-accent); padding: 0.5rem 1rem; border-radius: var(--k-radius-md); z-index: 200; }
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------ site header and footer (target site) */
.site-header { background: var(--k-bg-canvas); border-bottom: 1px solid var(--k-border-subtle); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--k-fg); font-weight: 600; font-size: 1.125rem; }
.brand-mark { flex: none; }
.site-nav { flex: 1 1 100%; display: none; }
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0.5rem 0 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.nav-list a { display: block; padding: 0.5rem 0.625rem; text-decoration: none; color: var(--k-fg-muted); font-weight: 500; font-size: 0.9375rem; border-radius: var(--k-radius-md); }
.nav-list a:hover { color: var(--k-fg); background: var(--k-bg-subtle); }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--k-fg); background: none; border: 1px solid var(--k-border); border-radius: var(--k-radius-md); padding: 0.375rem 0.75rem; min-height: 2.25rem; cursor: pointer; }
.nav-toggle-bar { position: relative; display: inline-block; width: 1rem; height: 2px; background: currentColor; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; width: 1rem; height: 2px; background: currentColor; }
.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }
@media (min-width: 60rem) {
  .header-inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .site-nav { display: block; flex: 0 1 auto; }
  .nav-list { flex-direction: row; padding: 0; gap: 0.125rem; }
}
.site-footer { border-top: 1px solid var(--k-border-subtle); padding: 3rem 0 2.5rem; font-size: 0.9375rem; color: var(--k-fg-muted); margin-top: 3rem; }
.footer-grid { display: grid; gap: 2rem 2.5rem; }
.footer-heading { font-size: 0.8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--k-fg-subtle); margin: 0 0 0.75rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: var(--k-fg); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-meta { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--k-border-subtle); font-size: 0.875rem; }
.footer-meta p { margin: 0 0 0.5rem; max-width: 60rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.docs-footer { border-top: 1px solid var(--k-border-subtle); margin-top: 3rem; padding: 1.25rem var(--k-gutter); font-size: 0.8125rem; color: var(--k-fg-subtle); }
.docs-footer p { margin: 0 auto; max-width: var(--k-container); }

/* ------------------------------------------------------------------ docs bar */
.docs-bar { position: sticky; top: 0; z-index: 50; background: var(--k-bg-surface); border-bottom: 1px solid var(--k-border-subtle); }
.docs-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; max-width: 90rem; margin: 0 auto; padding: 0.5rem var(--k-gutter); }
.docs-bar .brand-mark { display: block; }
.docs-home { font-weight: 600; color: var(--k-fg); text-decoration: none; padding: 0.25rem 0; }
.docs-search { position: relative; flex: 1 1 14rem; display: flex; gap: 0.375rem; max-width: 32rem; }
.docs-search input { flex: 1; min-width: 0; font: inherit; font-size: 0.9375rem; color: var(--k-fg); background: var(--k-bg-canvas); border: 1px solid var(--k-border-strong); border-radius: var(--k-radius-md); padding: 0.375rem 0.625rem; min-height: 2.25rem; }
.docs-search button, .copy-button { font: inherit; font-size: 0.875rem; color: var(--k-fg); background: var(--k-bg-subtle); border: 1px solid var(--k-border); border-radius: var(--k-radius-md); padding: 0.25rem 0.75rem; min-height: 2.25rem; cursor: pointer; }
.docs-search button:hover, .copy-button:hover { border-color: var(--k-border-strong); }
.search-results { position: absolute; top: calc(100% + 0.25rem); left: 0; right: 0; z-index: 60; max-height: 70vh; overflow: auto; background: var(--k-bg-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius-md); box-shadow: var(--k-elevation-1); padding: 0.25rem; margin: 0; list-style: none; min-width: min(36rem, 90vw); }
.search-results [role="option"], .search-page-results li { display: block; padding: 0.5rem 0.625rem; border-radius: var(--k-radius-sm); }
.search-results [role="option"] a { text-decoration: none; color: var(--k-fg); display: block; }
.search-results [aria-selected="true"] { background: var(--k-bg-selected); }
.result-title { font-weight: 600; }
.result-crumb, .result-snippet { display: block; font-size: 0.8125rem; color: var(--k-fg-muted); }
.result-group { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--k-fg-subtle); padding: 0.5rem 0.625rem 0.25rem; }
.menu { position: relative; font-size: 0.875rem; }
.menu > summary { cursor: pointer; padding: 0.375rem 0.5rem; border-radius: var(--k-radius-md); min-height: 2.25rem; display: flex; align-items: center; }
.menu > summary:hover { background: var(--k-bg-subtle); }
.menu-body { position: absolute; right: 0; z-index: 60; background: var(--k-bg-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius-md); box-shadow: var(--k-elevation-1); list-style: none; margin: 0.25rem 0 0; padding: 0.25rem; min-width: 12rem; }
.menu-body a { display: block; padding: 0.375rem 0.625rem; border-radius: var(--k-radius-sm); text-decoration: none; color: var(--k-fg); }
.menu-body a:hover, .menu-body a[aria-current] { background: var(--k-bg-selected); }
.version-line { margin: 0; font-size: 0.8125rem; color: var(--k-fg-muted); }
.dev-notice, .archived-notice { margin: 0; padding: 0.375rem var(--k-gutter); font-size: 0.8125rem; text-align: center; background: var(--k-accent-subtle); color: var(--k-fg); border-top: 1px solid var(--k-border-subtle); }
.archived-notice { background: var(--k-bg-subtle); }

/* ------------------------------------------------------------------ layout */
.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; max-width: 90rem; margin: 0 auto; padding: 0 var(--k-gutter); }
.docs-main { min-width: 0; max-width: var(--k-measure); padding: 1.5rem 0 2rem; }
.docs-main:focus { outline: none; }
.docs-sidebar { margin: 1rem 0 0; border: 1px solid var(--k-border-subtle); border-radius: var(--k-radius-md); background: var(--k-bg-surface); }
.docs-sidebar > summary { cursor: pointer; padding: 0.5rem 0.75rem; font-weight: 600; font-size: 0.9375rem; min-height: 2.5rem; }
.docs-sidebar > .docs-nav-list { padding: 0 0.5rem 0.75rem; }
.docs-sidebar-nav { min-width: 0; }
.docs-nav-list, .docs-nav-list ul { list-style: none; margin: 0; padding: 0; }
.docs-nav-list ul { padding-left: 0.75rem; border-left: 1px solid var(--k-border-subtle); margin: 0.125rem 0 0.25rem 0.5rem; }
.docs-nav-list a { display: block; padding: 0.25rem 0.5rem; border-radius: var(--k-radius-sm); color: var(--k-fg-muted); text-decoration: none; font-size: 0.9rem; line-height: 1.4; min-height: 1.5rem; }
.docs-nav-list a:hover { color: var(--k-fg); background: var(--k-bg-subtle); }
.docs-nav-list a[aria-current="page"] { color: var(--k-fg); background: var(--k-accent-subtle); font-weight: 600; }
.docs-nav-list > li > a { font-weight: 500; color: var(--k-fg); }
.eo { font-size: 0.8em; color: var(--k-fg-subtle); font-weight: 400; }
.toc { display: none; }
@media (min-width: 62rem) {
  .docs-layout { grid-template-columns: var(--k-sidebar) minmax(0, 1fr); }
  .docs-sidebar-nav { position: sticky; top: 3.5rem; align-self: start; max-height: calc(100vh - 3.5rem); overflow: auto; }
  .docs-sidebar { border: 0; background: none; margin: 0; padding: 1.5rem 0 2rem; }
  .docs-sidebar > summary { display: none; }
  .docs-sidebar > .docs-nav-list { padding: 0; }
  .docs-sidebar::details-content { content-visibility: visible; height: auto; }
}
@media (min-width: 68.75rem) {
  .docs-layout { grid-template-columns: var(--k-sidebar) minmax(0, 1fr) var(--k-toc); }
  .toc { display: block; position: sticky; top: 3.5rem; align-self: start; padding: 1.5rem 0; font-size: 0.875rem; }
  .toc ul { list-style: none; margin: 0; padding: 0; }
  .toc a { display: block; padding: 0.2rem 0; color: var(--k-fg-muted); text-decoration: none; }
  .toc a:hover { color: var(--k-fg); text-decoration: underline; }
  .toc .toc-3 a { padding-left: 0.75rem; }
}

/* ------------------------------------------------------------------ page */
.breadcrumb ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.8125rem; color: var(--k-fg-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.25rem; color: var(--k-fg-subtle); }
.breadcrumb a { color: var(--k-fg-muted); }
.page-meta { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--k-fg-muted); display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.badge { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--k-border); border-radius: 999px; padding: 0.05rem 0.5rem; color: var(--k-fg-muted); background: var(--k-bg-surface); }
.badge-tutorial, .badge-howto { color: var(--k-accent-fg); border-color: var(--k-accent); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); }
.lede { font-size: 1.125rem; color: var(--k-fg-muted); margin: 0.75rem 0 1.5rem; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; padding-top: 0.25rem; }
.prose h3 { font-size: 1.1875rem; margin: 2rem 0 0.5rem; }
.prose h4 { font-size: 1rem; margin: 1.5rem 0 0.25rem; }
.prose h2, .prose h3, .prose h4 { scroll-margin-top: 4.5rem; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.35rem; }
.prose li > ul, .prose li > ol { margin: 0.35rem 0 0; }
.prose li > p { margin: 0 0 0.5rem; }
.prose li > .code, .prose li > .callout, .prose li > .table-wrap { margin: 0.5rem 0 0.75rem; }
strong { font-weight: 600; }
blockquote { border-left: 3px solid var(--k-border-strong); padding: 0.25rem 0 0.25rem 1rem; color: var(--k-fg-muted); }
hr { border: 0; border-top: 1px solid var(--k-border-subtle); margin: 2rem 0; }
.planned { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--k-fg-subtle); border: 1px solid var(--k-border); border-radius: 999px; padding: 0.05rem 0.5rem; vertical-align: middle; margin-left: 0.375rem; white-space: nowrap; }
.ui-label { font-weight: 600; }
.ui-label::before, .ui-label::after { content: ""; }
.term { font-style: normal; }
.ext-host { font-size: 0.8125em; color: var(--k-fg-subtle); }
a.external::after { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.15em; border: 1.5px solid currentColor; border-left: 0; border-bottom: 0; transform: translateY(-0.1em) rotate(0deg); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; border: 1px solid var(--k-border-subtle); border-radius: var(--k-radius-md); background: var(--k-bg-surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--k-border-subtle); vertical-align: top; }
thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--k-fg-subtle); font-weight: 600; background: var(--k-bg-subtle); }
tbody th { font-weight: 500; }
tbody tr:last-child > * { border-bottom: 0; }

/* Code */
.code { margin: 1rem 0 1.25rem; border: 1px solid var(--k-border-subtle); border-radius: var(--k-radius-md); background: var(--k-bg-subtle); overflow: hidden; }
.code figcaption { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--k-fg-subtle); padding: 0.25rem 0.5rem 0.25rem 0.75rem; border-bottom: 1px solid var(--k-border-subtle); }
.code pre { margin: 0; padding: 0.75rem; overflow: auto; line-height: 1.5; }
.code-output { background: var(--k-bg-surface); }
.copy-button { min-height: 1.75rem; font-size: 0.75rem; padding: 0.125rem 0.5rem; text-transform: none; letter-spacing: 0; }
.hl-c { color: var(--k-fg-subtle); font-style: italic; }
.hl-s { color: var(--k-ok); }
.hl-k { color: var(--k-accent-fg); }
.hl-v, .hl-n { color: var(--k-warning); }

/* Callouts: label in text, icon decorative, border colour never alone. */
.callout { border: 1px solid var(--k-border-subtle); border-left: 4px solid var(--k-accent); border-radius: var(--k-radius-md); background: var(--k-bg-surface); padding: 0.75rem 1rem; margin: 1rem 0 1.25rem; }
.callout-label { font-weight: 600; margin: 0 0 0.25rem; display: flex; align-items: center; gap: 0.375rem; }
.callout > :last-child { margin-bottom: 0; }
.callout-icon { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid currentColor; display: inline-block; }
.callout-important { border-left-color: var(--k-warning); }
.callout-warning { border-left-color: var(--k-danger); }
.callout-warning .callout-icon { border-radius: 2px; transform: rotate(45deg) scale(0.8); }

/* Boxes */
.privileges-box, .related-box { border: 1px solid var(--k-border-subtle); border-radius: var(--k-radius-md); background: var(--k-bg-surface); padding: 0.75rem 1rem; margin: 0 0 1.5rem; font-size: 0.9375rem; }
.related-box { margin-top: 2rem; }
.box-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--k-fg-subtle); margin: 0 0 0.375rem; }
.privileges-box ul, .related-box ul { margin: 0; padding-left: 1.2rem; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 1rem; }
.prev-next a { display: block; border: 1px solid var(--k-border-subtle); border-radius: var(--k-radius-md); padding: 0.625rem 0.875rem; text-decoration: none; background: var(--k-bg-surface); }
.prev-next a:hover { border-color: var(--k-border-strong); }
.pn-next { grid-column: 2; text-align: right; }
.pn-label { display: block; font-size: 0.75rem; color: var(--k-fg-subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.pn-title { color: var(--k-link); font-weight: 500; }
.page-version { font-size: 0.8125rem; color: var(--k-fg-subtle); margin: 1.5rem 0 0; }

/* Landing cards */
.cards { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card a { display: block; height: 100%; padding: 0.875rem 1rem; border: 1px solid var(--k-border-subtle); border-radius: var(--k-radius-md); background: var(--k-bg-surface); text-decoration: none; color: var(--k-fg); }
.card a:hover { border-color: var(--k-accent); }
.card-title { display: block; font-weight: 600; color: var(--k-link); }
.card-text { display: block; font-size: 0.875rem; color: var(--k-fg-muted); margin-top: 0.25rem; }
.all-pages ul { margin: 0.25rem 0 0.5rem; }

/* Diagrams and screenshots */
.diagram { margin: 1.5rem 0 2rem; }
.diagram svg { display: block; width: 100%; height: auto; font-family: var(--k-font-sans); }
.d-box { fill: var(--k-bg-surface); stroke: var(--k-border-strong); stroke-width: 1.2; }
.d-box-subtle { fill: var(--k-bg-subtle); stroke: var(--k-border); stroke-width: 1; }
.d-box-accent { fill: var(--k-accent-subtle); stroke: var(--k-accent); stroke-width: 1.2; }
.d-text { fill: var(--k-fg); font-size: 13px; font-weight: 500; }
.d-text-sm { fill: var(--k-fg-muted); font-size: 11px; }
.d-text-accent { fill: var(--k-accent-fg); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.d-line { stroke: var(--k-border-strong); stroke-width: 1.2; fill: none; }
.d-line-accent { stroke: var(--k-accent); stroke-width: 1.6; fill: none; }
.d-dash { stroke-dasharray: 4 3; }
.d-arrow { fill: var(--k-border-strong); }
.d-arrow-accent { fill: var(--k-accent); }
.screen { margin: 1.25rem 0 1.5rem; }
.screen img, .screen-zoom img { display: block; border: 1px solid var(--k-border-subtle); border-radius: var(--k-radius-md); }
.screen img { max-width: 100%; height: auto; }
.screen-open { display: block; cursor: zoom-in; border-radius: var(--k-radius-md); }
/* Larger view without script: the overlay is the :target of the link on the screenshot. */
.screen-zoom { display: none; }
.screen-zoom:target { display: block; position: fixed; inset: 0; z-index: 100; overflow: auto; padding: 1.5rem; background: color-mix(in srgb, var(--k-bg-canvas) 94%, transparent); }
.screen-close { display: block; width: max-content; max-width: 100%; margin: 0 auto; cursor: zoom-out; color: var(--k-fg); text-decoration: none; }
.screen-zoom img { max-width: 100%; height: auto; }
.screen-close-label { display: block; margin-top: 0.5rem; text-align: center; font-size: 0.875rem; text-decoration: underline; }

/* Error reference and generated tables */
.notice { border: 1px solid var(--k-warning); border-radius: var(--k-radius-md); padding: 0.75rem 1rem; margin: 0 0 1rem; }
.entry { border-top: 1px solid var(--k-border-subtle); padding-top: 0.25rem; }
.def { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0.5rem 0 1rem; font-size: 0.9375rem; }
.def dt { color: var(--k-fg-muted); }
.def dd { margin: 0; }
.method { font-family: var(--k-font-mono); font-size: 0.75rem; font-weight: 700; border-radius: var(--k-radius-sm); padding: 0.1rem 0.375rem; background: var(--k-accent-subtle); color: var(--k-accent-fg); }

@media print {
  .site-header, .docs-bar, .docs-sidebar-nav, .toc, .prev-next, .copy-button, .site-footer .footer-grid { display: none; }
  .docs-layout { display: block; }
  body { background: #fff; color: #000; }
}
