/* Public documentation (docs.aociris.org): IRIS 2026 design system — the ruled page.
   Tokens from the IRIS landing design system (tokens.json). Light is the default; dark follows the
   system setting unless the reader chose a theme with the toggle (html[data-theme], set by docs-theme.js). */

/* Docs styles sit in a cascade layer so the IRIS CSS inside UI snapshots always wins over them. */
@layer docs {
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/open-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-style: italic; font-display: swap; src: url("/fonts/open-sans-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root, [data-theme="light"] {
  --bg-primary: #f8f9fa; --bg-raised: #ffffff;
  --text-primary: #233042; --text-secondary: #475161; --text-muted: #5d6573; --text-quiet: #7d8695;
  --accent: #2459d6; --accent-hover: #1d56cc; --accent-line: #2e6ff2; --accent-tint: rgba(46, 111, 242, 0.08);
  --action: #2459d6; --action-hover: #1d56cc; --on-action: #ffffff;
  --rule: rgba(35, 48, 66, 0.12); --rule-strong: rgba(35, 48, 66, 0.16); --hatch: rgba(35, 48, 66, 0.08); --hero-hatch: rgba(46, 111, 242, 0.06);
  --nav-bg: rgba(248, 249, 250, 0.85); --nav-text: #233042;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg-primary: #0f1319; --bg-raised: #1e2a3d;
  --text-primary: #ebedf0; --text-secondary: #b9b9b9; --text-muted: #8d8d8d; --text-quiet: #7d8695;
  --accent: #5399ee; --accent-hover: #7aabf2; --accent-line: #5399ee; --accent-tint: rgba(83, 153, 238, 0.12);
  --rule: rgba(231, 231, 231, 0.09); --rule-strong: rgba(231, 231, 231, 0.16); --hatch: rgba(231, 231, 231, 0.06); --hero-hatch: rgba(83, 153, 238, 0.06);
  --nav-bg: rgba(15, 19, 25, 0.85); --nav-text: #e7e7e7;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #0f1319; --bg-raised: #1e2a3d;
    --text-primary: #ebedf0; --text-secondary: #b9b9b9; --text-muted: #8d8d8d; --text-quiet: #7d8695;
    --accent: #5399ee; --accent-hover: #7aabf2; --accent-line: #5399ee; --accent-tint: rgba(83, 153, 238, 0.12);
    --rule: rgba(231, 231, 231, 0.09); --rule-strong: rgba(231, 231, 231, 0.16); --hatch: rgba(231, 231, 231, 0.06); --hero-hatch: rgba(83, 153, 238, 0.06);
    --nav-bg: rgba(15, 19, 25, 0.85); --nav-text: #e7e7e7;
    color-scheme: dark;
  }
}
:root {
  --content-width: 1760px; --strip-height: 48px; --nav-height: 64px; --nav-divider-height: 28px; --rail-fade: 320px; --cell-pad-x: 36px;
  --side-width: 264px; --toc-width: 224px;
  --font-display: "Poppins", system-ui, sans-serif; --font-body: "Open Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* theme-dependent assets: logos swap with the theme */
.on-dark { display: none; }
[data-theme="dark"] .on-light { display: none; }
[data-theme="dark"] .on-dark { display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none; }
  :root:not([data-theme="light"]) .on-dark { display: inline-block; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-height) + 16px); }
body { margin: 0; background: var(--bg-primary); color: var(--text-secondary); font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; }
a:not(.iris-snap *) { color: var(--accent); text-decoration: none; }
a:not(.iris-snap *):hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
a:not(.iris-snap *):focus-visible, button:not(.iris-snap *):focus-visible, input:not(.iris-snap *):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bi-svg { width: 1em; height: 1em; flex-shrink: 0; fill: currentColor; }

/* ===== Navbar ===== */
.dh { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; height: var(--nav-height); padding: 0 32px;
  background: var(--nav-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.dh-brand { display: flex; align-items: center; gap: 16px; color: var(--nav-text); }
.dh-brand:hover { text-decoration: none; color: var(--nav-text); }
.dh-logo { width: 132px; height: auto; }
.dh-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.dh-divider { width: 1px; height: var(--nav-divider-height); margin: 0 8px;
  background: linear-gradient(to bottom, transparent 0, var(--rule-strong) 4px, var(--rule-strong) calc(100% - 4px), transparent 100%); }
.dh-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dh-search input { width: 260px; padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: 4px; background: transparent;
  color: var(--text-primary); font-family: var(--font-body); font-size: 14px; }
.dh-search input::placeholder { color: var(--text-muted); }
.dh-item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--nav-text); }
.dh-item:hover { color: var(--accent); text-decoration: none; }
.dh-item .bi-svg { font-size: 18px; }
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-light { display: none; }
  :root:not([data-theme="light"]) .theme-icon-dark { display: inline-block; }
}
.dh-toggle { display: none; }
.js .dh-toggle { display: inline-flex; }

/* ===== The ruled page: rails at the content edges, columns divided by rules ===== */
.dwrap { position: relative; display: grid; grid-template-columns: var(--side-width) minmax(0, 1fr) var(--toc-width);
  max-width: var(--content-width); margin: 0 auto; min-height: calc(100vh - var(--nav-height) - 140px);
  border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.dwrap > * + * { border-left: 1px solid var(--rule); }
.dwrap.no-toc { grid-template-columns: var(--side-width) minmax(0, 1fr); }

/* Left navigation */
.dnav { padding: 32px 0 48px; font-size: 14px; }
.dnav ul { list-style: none; margin: 0; padding: 0; }
.dnav li a { display: block; padding: 7px 24px 7px 28px; color: var(--text-secondary); line-height: 1.45; border-left: 2px solid transparent; }
.dnav li a:hover { color: var(--accent); text-decoration: none; }
.dnav li.cur a { color: var(--accent); border-left-color: var(--accent); background: var(--accent-tint); }
.dnav li.d2 a { padding-left: 44px; } .dnav li.d3 a { padding-left: 60px; }
.dnav li.dch { margin: 22px 0 6px; padding: 0 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.dnav li.dch:first-child { margin-top: 0; }
.dnav .dpdf { margin: 24px 0 0; padding: 16px 28px 0; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.dmuted { color: var(--text-muted); padding: 0 28px; }

/* Main column */
.dmain { min-width: 0; padding: 40px var(--cell-pad-x) 64px; }
.dkicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.dkicker .bi-svg { font-size: 12px; }
.dtitle { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--text-primary); text-wrap: balance; }
.dcrumb { margin: 0 0 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.dpreview { margin: 0 0 24px; padding: 10px 14px; border-left: 2px solid var(--accent); background: var(--accent-tint); color: var(--text-primary); font-size: 14px; }

.dbody:not(.iris-snap *) { color: var(--text-secondary); }
.dbody h2:not(.iris-snap *) { margin: 48px calc(-1 * var(--cell-pad-x)) 16px; padding: 28px var(--cell-pad-x) 0; border-top: 1px solid var(--rule);
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.01em; color: var(--text-primary); }
.dbody h3:not(.iris-snap *) { margin: 32px 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.3; color: var(--text-primary); }
.dbody h4:not(.iris-snap *) { margin: 24px 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--text-primary); }
.dbody p:not(.iris-snap *) { margin: 0 0 14px; }
.dbody strong:not(.iris-snap *) { color: var(--text-primary); font-weight: 600; }
.dbody ul:not(.iris-snap *), .dbody ol:not(.iris-snap *) { margin: 0 0 16px; padding-left: 1.5em; }
.dbody li:not(.iris-snap *) { margin: 4px 0; }
.dbody li:not(.iris-snap *)::marker{ color: var(--text-muted); }
.dbody ol > li:not(.iris-snap *)::marker{ font-family: var(--font-mono); font-size: .85em; }
.dbody li > p:not(.iris-snap *) { margin: .3em 0; }
.dbody code:not(.iris-snap *) { font-family: var(--font-mono); font-size: .86em; padding: 1px 5px; border-radius: 4px; background: var(--accent-tint); color: var(--text-primary); }
.dbody pre:not(.iris-snap *) { margin: 0 0 16px; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--rule); background: var(--bg-raised); }
.dbody pre code:not(.iris-snap *) { padding: 0; background: none; }
.dbody blockquote:not(.iris-snap *) { margin: 16px 0; padding: 10px 16px; border-left: 2px solid var(--accent); background: var(--accent-tint); color: var(--text-secondary); }
.dbody blockquote strong:first-child:not(.iris-snap *) { color: var(--accent); font-family: var(--font-mono); font-size: .8em; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.dbody table:not(.iris-snap *) { width: 100%; margin: 8px 0 20px; border-collapse: collapse; font-size: 14px; line-height: 1.55; border-top: 1px solid var(--rule); }
/* Header strip, as the landing page's cell strip: 48px tall, the label in a box closed by a rule, then 45° hatch.
   The hatch is the landing page's pixel-aligned 11px SVG tile (crisp edges) used as a mask, so every line renders identically and takes the theme colour. */
.dbody th:not(.iris-snap *) { position: relative; height: var(--strip-height); padding: 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.dbody th:not(.iris-snap *)::before{ content: ""; position: absolute; inset: 0; background-color: var(--hatch);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3Crect x='7' y='7' width='1' height='1'/%3E%3Crect x='8' y='8' width='1' height='1'/%3E%3Crect x='9' y='9' width='1' height='1'/%3E%3Crect x='10' y='10' width='1' height='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' shape-rendering='crispEdges'%3E%3Crect x='0' y='0' width='1' height='1'/%3E%3Crect x='1' y='1' width='1' height='1'/%3E%3Crect x='2' y='2' width='1' height='1'/%3E%3Crect x='3' y='3' width='1' height='1'/%3E%3Crect x='4' y='4' width='1' height='1'/%3E%3Crect x='5' y='5' width='1' height='1'/%3E%3Crect x='6' y='6' width='1' height='1'/%3E%3Crect x='7' y='7' width='1' height='1'/%3E%3Crect x='8' y='8' width='1' height='1'/%3E%3Crect x='9' y='9' width='1' height='1'/%3E%3Crect x='10' y='10' width='1' height='1'/%3E%3C/svg%3E"); -webkit-mask-size: 11px 11px; mask-size: 11px 11px; -webkit-mask-repeat: repeat; mask-repeat: repeat; }
.dbody th > span:not(.iris-snap *) { position: relative; display: inline-flex; align-items: center; min-height: var(--strip-height); padding: 0 16px; background: var(--bg-primary); border-right: 1px solid var(--rule); }
.dbody th + th:not(.iris-snap *) { border-left: 1px solid var(--rule); }
.dbody td:not(.iris-snap *) { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--rule); }
/* tables at the top level of the page run edge to edge, so their rules meet the column's side rules; text keeps the body's indent */
.dbody > table:not(.iris-snap *) { width: calc(100% + 2 * var(--cell-pad-x)); margin-left: calc(-1 * var(--cell-pad-x)); margin-right: calc(-1 * var(--cell-pad-x)); }
.dbody > table:not(.iris-snap *) td:first-child { padding-left: var(--cell-pad-x); }
.dbody > table:not(.iris-snap *) td:last-child { padding-right: var(--cell-pad-x); }
.dbody > table:not(.iris-snap *) th:first-child > span { padding-left: var(--cell-pad-x); }
.dbody hr:not(.iris-snap *) { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.dbody .md-anchor:not(.iris-snap *) { margin-left: 6px; font-weight: 400; color: var(--text-quiet); opacity: 0; }
.dbody h2:hover .md-anchor:not(.iris-snap *), .dbody h3:hover .md-anchor:not(.iris-snap *) { opacity: 1; }

/* Figures: screenshots carry their own transparent margin; no frames or shadows */
.dbody figure.md-fig { margin: 20px 0 10px; }
.dbody figure.md-fig img:not(.iris-snap *) { display: block; max-width: 100%; height: auto; }
.dbody figure.md-fig a.md-zoom:not(.iris-snap *) { display: inline-block; cursor: zoom-in; }
.dbody figure.md-fig figcaption:not(.iris-snap *) { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.dbody figure.md-fig + ol:not(.iris-snap *) { font-size: 14px; }
/* Screenshots come in a light and a dark capture; show the one matching the page theme (hidden lazy images are never fetched) */
.dbody figure.md-fig a.md-zoom.md-dark:not(.iris-snap *) { display: none; }
[data-theme="dark"] .dbody figure.md-fig a.md-zoom.md-light { display: none; }
[data-theme="dark"] .dbody figure.md-fig a.md-zoom.md-dark { display: inline-block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dbody figure.md-fig a.md-zoom.md-light { display: none; }
  :root:not([data-theme="light"]) .dbody figure.md-fig a.md-zoom.md-dark { display: inline-block; }
}



}

/* UI snapshot figures: see snap-figures.css (shared with the staff wiki) */
.dbody figure.md-snap { margin: 20px 0 10px; }

@layer docs {
/* Previous / next: a two-cell ruled grid */
.dpn { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 56px calc(-1 * var(--cell-pad-x)) 0; background: var(--rule);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.dpn a { display: flex; flex-direction: column; gap: 6px; padding: 22px var(--cell-pad-x); background: var(--bg-primary);
  font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--text-primary); }
.dpn a:hover { color: var(--accent); text-decoration: none; }
.dpn a span { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.dpn .dnext { grid-column: 2; text-align: right; align-items: flex-end; }
.dupdated { margin: 28px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }

/* On this page */
.dtoc { padding: 40px 24px 48px; font-size: 13px; }
.dtoc > div { position: sticky; top: calc(var(--nav-height) + 24px); }
.dtoc h4 { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.dtoc ul { list-style: none; margin: 0; padding: 0; }
.dtoc li a { display: block; padding: 4px 0; color: var(--text-secondary); line-height: 1.4; }
.dtoc li a:hover { color: var(--accent); text-decoration: none; }
.dtoc li.t3 a { padding-left: 12px; color: var(--text-muted); }

/* Search results */
.dhit { padding: 18px 0; border-top: 1px solid var(--rule); }
.dhit a { font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.dhit p { margin: 6px 0 0; font-size: 14px; color: var(--text-secondary); }

/* Footer */
.dfoot { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: var(--content-width); margin: 0 auto;
  padding: 32px var(--cell-pad-x); border: 1px solid var(--rule); border-bottom: 0; }
.dfoot img { height: 52px; width: auto; }
.dfoot p { margin: 0; font-family: var(--font-display); font-size: 13px; color: var(--text-muted); text-align: right; }

/* Responsive */
@media (max-width: 1024px) {
  .dwrap { grid-template-columns: var(--side-width) minmax(0, 1fr); }
  .dtoc { display: none; }
  .dh-search input { width: 200px; }
}
@media (max-width: 760px) {
  :root { --cell-pad-x: 20px; }
  .dh { padding: 0 16px; }
  .dh-label, .dh-brand + .dh-divider { display: none; }
  .dh-search input { width: 150px; }
  .dwrap, .dwrap.no-toc { grid-template-columns: 1fr; border-left: 0; border-right: 0; }
  .dwrap > * + * { border-left: 0; }
  .dnav { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .dfoot { flex-direction: column; align-items: flex-start; }
  .dfoot p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .dh, .dnav, .dtoc, .dpn, .dfoot { display: none; }
  .dwrap { display: block; border: 0; }
}

}

@layer docs {
.dindex .dindex-chapter:first-child h2 { margin-top: 24px; }
.dindex .dindex-pages { margin: 0 0 8px; padding-left: 1.2em; }
.dindex .dindex-pages li { margin: 0 0 6px; }
.dindex .dindex-pdf { margin: 4px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.dindex .dindex-all { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); }
}
