/*! Interverbum Technology / TermWeb documentation UI
 *  Antora UI bundle. All brand values live in the :root block below. */

/* =========================================================================
   1. Brand tokens — edit these to restyle the whole site
   ========================================================================= */

:root {
  /* Brand */
  --ivt-red: #a42115;
  --ivt-red-dark: #851a10;
  --ivt-red-light: #c9412f;
  --ivt-ink: #231f20;

  /* Header */
  --ivt-header-bg: #ffffff;
  --ivt-header-fg: #2b2b2b;
  --ivt-header-fg-hover: var(--ivt-red);
  --ivt-header-border: #e4e4e6;
  --ivt-header-height: 4.5rem;
  --ivt-header-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);

  /* Surfaces */
  --ivt-body-bg: #ffffff;
  --ivt-panel-bg: #f7f7f8;
  --ivt-panel-bg-alt: #f0f0f2;
  --ivt-border: #e0e1e4;
  --ivt-border-strong: #c9cbd0;

  /* Text */
  --ivt-fg: #33373d;
  --ivt-fg-strong: #1b1e22;
  --ivt-fg-muted: #6a7078;
  --ivt-link: var(--ivt-red);
  --ivt-link-hover: var(--ivt-red-dark);

  /* Admonitions (Antora default UI palette) */
  --ivt-admonition-bg: #fafafa;
  --ivt-admonition-note: #217ee7;
  --ivt-admonition-tip: #41af46;
  --ivt-admonition-important: #d32f2f;
  --ivt-admonition-caution: #a0439c;
  --ivt-admonition-warning: #e18114;

  /* Code */
  --ivt-code-bg: #f6f7f9;
  --ivt-code-fg: #2f3237;
  --ivt-code-border: #e3e5e9;

  /* Metrics */
  --ivt-frame-max: 88rem;   /* header, body and footer share this centred frame */
  --ivt-nav-width: 17rem;
  --ivt-toc-width: 14rem;
  --ivt-toolbar-height: 2.75rem;
  --ivt-content-max: 54rem;
  --ivt-radius: 3px;

  /* Typography */
  --ivt-font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ivt-font-heading: var(--ivt-font-body);
  --ivt-font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ivt-font-size: 16px;
  --ivt-line-height: 1.6;

  --scroll-offset: calc(var(--ivt-header-height) + var(--ivt-toolbar-height));
}

/* =========================================================================
   2. Base
   ========================================================================= */

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

html {
  font-size: var(--ivt-font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--ivt-body-bg);
  color: var(--ivt-fg);
  font-family: var(--ivt-font-body);
  line-height: var(--ivt-line-height);
  overflow-wrap: break-word;
}

a {
  color: var(--ivt-link);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--ivt-link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

table {
  border-collapse: collapse;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ivt-red);
  outline-offset: 2px;
}

/* =========================================================================
   3. Site header (mirrors interverbumtech.com)
   ========================================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--ivt-header-height);
  background-color: var(--ivt-header-bg);
  border-bottom: 1px solid var(--ivt-header-border);
  box-shadow: var(--ivt-header-shadow);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  max-width: var(--ivt-frame-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  display: block;
  width: auto;
  height: 2.25rem;
}

.navbar-menu {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.navbar-end {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border-bottom: 2px solid transparent;
  color: var(--ivt-header-fg);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s linear, border-color 0.15s linear;
}

.navbar-item:hover,
.navbar-item:focus {
  color: var(--ivt-header-fg-hover);
  border-bottom-color: var(--ivt-red);
  text-decoration: none;
}

.navbar-item.navbar-cta {
  margin-left: 0.6rem;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: var(--ivt-radius);
  background-color: var(--ivt-red);
  color: #fff;
  transition: background-color 0.15s linear;
}

.navbar-item.navbar-cta:hover,
.navbar-item.navbar-cta:focus {
  background-color: var(--ivt-red-dark);
  color: #fff;
  text-decoration: none;
}

.navbar-burger {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
}

.navbar-burger span {
  display: block;
  position: absolute;
  left: 0.55rem;
  width: 1.4rem;
  height: 2px;
  background-color: var(--ivt-header-fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-burger span:nth-child(1) {
  top: 0.85rem;
}

.navbar-burger span:nth-child(2) {
  top: 1.2rem;
}

.navbar-burger span:nth-child(3) {
  top: 1.55rem;
}

.navbar-burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(0.35rem) rotate(45deg);
}

.navbar-burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.navbar-burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-0.35rem) rotate(-45deg);
}

/* =========================================================================
   4. Page frame
   ========================================================================= */

/* The documentation frame is centred on the same 88rem column as the header,
   so the navigation starts under the logo and the whole page reads as one
   block on a wide monitor instead of the nav hugging the window edge. */
.body {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: var(--ivt-frame-max);
  margin: 0 auto;
  min-height: calc(100vh - var(--ivt-header-height));
}

main.article {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

main.article > .content {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  /* Left-aligned, not centred: the article starts where the breadcrumb bar
     starts, immediately beside the nav. Centring it leaves a growing empty
     gap between the nav and the text on a wide screen, and puts the body
     out of line with the toolbar above it and the pagination below. */
  justify-content: flex-start;
  gap: 2rem;
  padding: 1.75rem 2.5rem 3rem;
}

article.doc {
  flex: 1 1 auto;
  order: 1;
  min-width: 0;
  max-width: var(--ivt-content-max);
}

/* =========================================================================
   5. Documentation navigation (left sidebar)
   ========================================================================= */

.nav-container {
  flex: 0 0 var(--ivt-nav-width);
  width: var(--ivt-nav-width);
  background-color: var(--ivt-panel-bg);
  border-right: 1px solid var(--ivt-border);
}

.nav {
  position: sticky;
  top: var(--ivt-header-height);
  max-height: calc(100vh - var(--ivt-header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav .panels {
  padding: 1.25rem 0 2rem;
}

.nav-panel-explore {
  display: none;
}

.nav-title {
  padding: 0 1.25rem 0.9rem;
  border-bottom: 1px solid var(--ivt-border);
  margin-bottom: 0.9rem;
}

.nav-title-link {
  display: block;
  color: var(--ivt-fg-strong);
  font-size: 1rem;
  font-weight: 700;
}

.nav-title-link:hover {
  color: var(--ivt-red);
  text-decoration: none;
}

.nav-title-version {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: var(--ivt-radius);
  background-color: var(--ivt-panel-bg-alt);
  color: var(--ivt-fg-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.nav-group-title {
  margin: 1.25rem 0 0.35rem;
  padding: 0 1.25rem;
  color: var(--ivt-fg-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu ul.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item-row {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.nav-link,
.nav-text {
  display: block;
  flex: 1 1 auto;
  padding: 0.3rem 1.25rem 0.3rem 1.25rem;
  border-left: 3px solid transparent;
  color: var(--ivt-fg);
  font-size: 0.9rem;
  line-height: 1.4;
}

.nav-text {
  color: var(--ivt-fg-muted);
  font-weight: 600;
}

.nav-link:hover {
  background-color: var(--ivt-panel-bg-alt);
  color: var(--ivt-fg-strong);
  text-decoration: none;
}

.nav-link.is-current {
  border-left-color: var(--ivt-red);
  background-color: #fff;
  color: var(--ivt-red);
  font-weight: 700;
}

/* nested levels */
.nav-list .nav-list .nav-link,
.nav-list .nav-list .nav-text {
  padding-left: 2.25rem;
}

.nav-list .nav-list .nav-list .nav-link,
.nav-list .nav-list .nav-list .nav-text {
  padding-left: 3.25rem;
}

.nav-list .nav-list .nav-list .nav-list .nav-link,
.nav-list .nav-list .nav-list .nav-list .nav-text {
  padding-left: 4.25rem;
}

.nav-item-toggle {
  position: absolute;
  left: 0.2rem;
  top: 0.3rem;
  width: 1.1rem;
  height: 1.3rem;
  padding: 0;
  border: 0;
  background: none;
}

.nav-list .nav-list .nav-item-toggle {
  left: 1.1rem;
}

.nav-list .nav-list .nav-list .nav-item-toggle {
  left: 2.1rem;
}

.nav-item-toggle::before {
  content: '';
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  margin: 0.35rem auto 0;
  border-right: 2px solid var(--ivt-fg-muted);
  border-bottom: 2px solid var(--ivt-fg-muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.nav-item.is-collapsed > .nav-item-row .nav-item-toggle::before {
  transform: rotate(-45deg);
}

.nav-item.is-collapsed > .nav-list {
  display: none;
}

/* =========================================================================
   6. Toolbar
   ========================================================================= */

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: var(--ivt-header-height);
  z-index: 20;
  height: var(--ivt-toolbar-height);
  padding: 0 2.5rem;
  background-color: var(--ivt-body-bg);
  border-bottom: 1px solid var(--ivt-border);
  color: var(--ivt-fg-muted);
  font-size: 0.8125rem;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: none;
}

.nav-toggle::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.45rem;
  width: 1.3rem;
  height: 2px;
  background-color: var(--ivt-fg);
  box-shadow: 0 5px 0 var(--ivt-fg), 0 10px 0 var(--ivt-fg);
}

.home-link {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-color: var(--ivt-fg-muted);
  -webkit-mask: no-repeat center/1rem url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v9h6v-6h2v6h6v-9h3z'/%3E%3C/svg%3E");
  mask: no-repeat center/1rem url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v9h6v-6h2v6h6v-9h3z'/%3E%3C/svg%3E");
}

.home-link:hover,
.home-link.is-current {
  background-color: var(--ivt-red);
}

.breadcrumbs {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  margin: 0 0.55rem;
  border-right: 1.5px solid var(--ivt-border-strong);
  border-bottom: 1.5px solid var(--ivt-border-strong);
  transform: rotate(-45deg);
}

.breadcrumbs a {
  color: var(--ivt-fg-muted);
}

.breadcrumbs li:last-child a,
.breadcrumbs li:last-child {
  color: var(--ivt-fg-strong);
  font-weight: 600;
}

/* Search (@antora/lunr-extension) ------------------------------------------
   The extension loads its own css/search.css at runtime by appending a <link>
   to <head>, so those rules land after this stylesheet. Anything overridden
   below is therefore scoped through .toolbar to outrank it. */

#search-field {
  position: relative;
  flex: 0 1 14rem;
  min-width: 0;
  margin-left: auto;
  padding-right: 0.6rem;
}

.toolbar #search-input {
  width: 100%;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--ivt-border);
  border-radius: var(--ivt-radius);
  background-color: #fff;
  color: var(--ivt-fg);
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.toolbar #search-input::placeholder {
  color: var(--ivt-fg-muted);
  opacity: 1;
}

.toolbar #search-input:focus {
  outline: none;
  border-color: var(--ivt-red);
  box-shadow: 0 0 0 2px rgba(164, 33, 21, 0.12);
}

.toolbar #search-input:disabled {
  background-color: var(--ivt-panel-bg);
  cursor: progress;
}

.toolbar #search-field.has-filter {
  flex-basis: 20rem;
}

.toolbar #search-field.has-filter > #search-input {
  border-right: 0;
  border-radius: var(--ivt-radius) 0 0 var(--ivt-radius);
}

.toolbar #search-field .filter {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  padding: 0 0.5rem;
  border: 1px solid var(--ivt-border);
  border-left: 1px solid var(--ivt-border);
  border-radius: 0 var(--ivt-radius) var(--ivt-radius) 0;
  background: var(--ivt-panel-bg);
  color: var(--ivt-fg-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
}

.toolbar #search-field .filter input {
  margin: 0;
  accent-color: var(--ivt-red);
}

/* Results dropdown */
.toolbar .search-result-dropdown-menu {
  border-radius: var(--ivt-radius);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.toolbar .search-result-dataset {
  border: 1px solid var(--ivt-border);
  border-radius: var(--ivt-radius);
  background-color: #fff;
}

.toolbar .search-result-component-header {
  background-color: var(--ivt-panel-bg);
  color: var(--ivt-fg-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toolbar .search-result-document-title {
  color: var(--ivt-fg-strong);
}

.toolbar .search-result-document-title .search-result-highlight,
.toolbar .search-result-document-hit .search-result-highlight {
  background-color: #fff3b0;
  color: inherit;
  font-weight: 600;
}

.toolbar .search-result-document-hit > a:hover {
  background-color: var(--ivt-panel-bg);
}

/* Below the extension's own 768px breakpoint the dropdown is min-width:
   calc(100vw - 3.75rem) anchored right, which pushes it off the left edge.
   Making #search-field static hands the containing block to .toolbar (sticky,
   so it is positioned) and lets the dropdown span the viewport cleanly. */
@media screen and (max-width: 768px) {
  #search-field {
    position: static;
  }

  .toolbar .search-result-dropdown-menu {
    left: 0.75rem;
    right: 0.75rem;
    min-width: 0;
    max-width: none;
  }
}

.page-versions {
  position: relative;
  flex: 0 0 auto;
}

.version-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--ivt-border);
  border-radius: var(--ivt-radius);
  background-color: #fff;
  color: var(--ivt-fg);
  font-size: 0.8125rem;
  font-weight: 600;
}

.version-menu-toggle::after {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  margin-bottom: 0.15rem;
  border-right: 1.5px solid var(--ivt-fg-muted);
  border-bottom: 1.5px solid var(--ivt-fg-muted);
  transform: rotate(45deg);
}

.version-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 30;
  min-width: 9rem;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.3rem 0;
  border: 1px solid var(--ivt-border);
  border-radius: var(--ivt-radius);
  background-color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.page-versions.is-active .version-menu {
  display: block;
}

.version-menu .version {
  display: block;
  padding: 0.3rem 0.9rem;
  color: var(--ivt-fg);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.version-menu .version:hover {
  background-color: var(--ivt-panel-bg);
  text-decoration: none;
}

.version-menu .version.is-current {
  color: var(--ivt-red);
  font-weight: 700;
}

.version-menu .version.is-missing {
  color: var(--ivt-fg-muted);
  font-style: italic;
}

.version-menu .version.is-prerelease::after {
  content: ' (dev)';
  color: var(--ivt-fg-muted);
  font-size: 0.75rem;
}

/* =========================================================================
   7. On-this-page table of contents (right sidebar)
   ========================================================================= */

.toc.sidebar {
  flex: 0 0 var(--ivt-toc-width);
  order: 2;
  position: sticky;
  top: calc(var(--ivt-header-height) + var(--ivt-toolbar-height) + 1.75rem);
  max-height: calc(100vh - var(--ivt-header-height) - var(--ivt-toolbar-height) - 3rem);
  overflow-y: auto;
  padding-left: 1rem;
  border-left: 1px solid var(--ivt-border);
  font-size: 0.8125rem;
}

.toc.sidebar.is-empty {
  display: none;
}

.toc .toc-menu h3 {
  margin: 0 0 0.6rem;
  color: var(--ivt-fg-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc .toc-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc .toc-menu li {
  margin: 0;
}

.toc .toc-menu a {
  display: block;
  padding: 0.2rem 0 0.2rem 0.65rem;
  border-left: 2px solid var(--ivt-border);
  color: var(--ivt-fg-muted);
  line-height: 1.4;
}

.toc .toc-menu a:hover {
  color: var(--ivt-fg-strong);
  text-decoration: none;
}

.toc .toc-menu a.is-active {
  border-left-color: var(--ivt-red);
  color: var(--ivt-red);
  font-weight: 600;
}

.toc .toc-menu [data-level='3'] a {
  padding-left: 1.5rem;
}

.toc .toc-menu [data-level='4'] a {
  padding-left: 2.35rem;
}

/* =========================================================================
   8. Article content
   ========================================================================= */

.doc {
  color: var(--ivt-fg);
}

.doc h1,
.doc h2,
.doc h3,
.doc h4,
.doc h5,
.doc h6 {
  color: var(--ivt-fg-strong);
  font-family: var(--ivt-font-heading);
  font-weight: 700;
  line-height: 1.25;
  scroll-margin-top: var(--scroll-offset);
}

.doc h1.page {
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--ivt-red);
  font-size: 2.125rem;
  letter-spacing: -0.01em;
}

.doc h2 {
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--ivt-border);
  font-size: 1.5rem;
}

.doc h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
}

.doc h4 {
  margin: 1.65rem 0 0.6rem;
  font-size: 1.0625rem;
}

.doc h5,
.doc h6 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1rem;
}

.doc h6 {
  color: var(--ivt-fg-muted);
}

.doc .anchor {
  position: absolute;
  width: 1.75ex;
  margin-left: -1.5ex;
  font-weight: 400;
  text-decoration: none;
  visibility: hidden;
}

.doc .anchor::before {
  content: '\00a7';
  color: var(--ivt-border-strong);
  font-size: 0.85em;
}

.doc h1:hover .anchor,
.doc h2:hover .anchor,
.doc h3:hover .anchor,
.doc h4:hover .anchor,
.doc h5:hover .anchor,
.doc h6:hover .anchor,
.doc .anchor:focus {
  visibility: visible;
}

.doc p,
.doc dl,
.doc ol,
.doc ul {
  margin: 0 0 1rem;
}

.doc > .sect1 + .sect1 {
  margin-top: 0;
}

.doc .paragraph + .paragraph {
  margin-top: 0;
}

.doc #preamble .sectionbody > .paragraph:first-child p {
  color: var(--ivt-fg-muted);
  font-size: 1.0625rem;
}

.doc ul,
.doc ol {
  padding-left: 1.35rem;
}

.doc li + li {
  margin-top: 0.25rem;
}

.doc li > p:last-child,
.doc td > p:last-child {
  margin-bottom: 0;
}

.doc .ulist .ulist,
.doc .olist .olist,
.doc .ulist .olist,
.doc .olist .ulist {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.doc ul.checklist,
.doc ul.none,
.doc ul.no-bullet {
  list-style: none;
  padding-left: 0.5rem;
}

.doc ul.checklist p > i.fa-check-square-o::before {
  content: '\2611';
}

.doc ul.checklist p > i.fa-square-o::before {
  content: '\2610';
}

.doc dl dt {
  margin-top: 0.85rem;
  color: var(--ivt-fg-strong);
  font-weight: 700;
}

.doc dl dd {
  margin: 0.2rem 0 0 1.25rem;
}

.doc .hdlist table,
.doc .hdlist td {
  border: 0;
  padding: 0.2rem 1rem 0.2rem 0;
  vertical-align: top;
}

.doc .hdlist td.hdlist1 {
  font-weight: 700;
}

.doc .qlist .question > p {
  font-weight: 700;
}

.doc .colist {
  margin: -0.5rem 0 1rem;
  color: var(--ivt-fg-muted);
  font-size: 0.9rem;
}

.doc .colist table,
.doc .colist td {
  border: 0;
  padding: 0.15rem 0.6rem 0.15rem 0;
  vertical-align: top;
}

.doc .conum[data-value] {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  border-radius: 50%;
  background-color: var(--ivt-fg-muted);
  color: #fff;
  font-family: var(--ivt-font-body);
  font-size: 0.75em;
  font-style: normal;
  line-height: 1.25em;
  text-align: center;
}

.doc .conum[data-value]::after {
  content: attr(data-value);
}

.doc .conum[data-value] + b {
  display: none;
}

/* Inline formatting */

.doc code,
.doc kbd,
.doc pre {
  font-family: var(--ivt-font-mono);
  font-size: 0.875em;
}

.doc :not(pre) > code {
  padding: 0.125em 0.35em;
  border: 1px solid var(--ivt-code-border);
  border-radius: var(--ivt-radius);
  background-color: var(--ivt-code-bg);
  color: var(--ivt-code-fg);
  white-space: nowrap;
}

.doc mark {
  background-color: #fff3b0;
  color: inherit;
}

.doc .underline {
  text-decoration: underline;
}

.doc .line-through {
  text-decoration: line-through;
}

.doc kbd {
  display: inline-block;
  min-width: 1.4em;
  padding: 0.1em 0.4em;
  border: 1px solid var(--ivt-border-strong);
  border-radius: var(--ivt-radius);
  background-color: var(--ivt-panel-bg);
  box-shadow: 0 1px 0 var(--ivt-border-strong);
  color: var(--ivt-fg-strong);
  font-size: 0.8em;
  line-height: 1.4;
  text-align: center;
  vertical-align: baseline;
  white-space: nowrap;
}

.doc .keyseq {
  color: var(--ivt-fg-muted);
  font-size: 0.9em;
}

.doc .menuseq,
.doc .menuref {
  font-weight: 600;
}

.doc .menuseq i.caret:empty::before {
  content: '\203a';
  padding: 0 0.25em;
  font-style: normal;
  font-weight: 400;
}

.doc b.button,
.doc button.btn {
  display: inline-block;
  padding: 0.05em 0.5em;
  border: 1px solid var(--ivt-border-strong);
  border-radius: var(--ivt-radius);
  background-color: var(--ivt-panel-bg);
  color: var(--ivt-fg-strong);
  font-size: 0.85em;
  font-weight: 600;
  cursor: default;
}

/* Block titles & captions */

.doc .title {
  margin-bottom: 0.35rem;
  color: var(--ivt-fg-strong);
  font-size: 0.9375rem;
  font-style: italic;
  font-weight: 600;
}

.doc .imageblock .title,
.doc .tableblock + .title,
.doc table.tableblock caption {
  color: var(--ivt-fg-muted);
  font-size: 0.875rem;
  font-style: italic;
  text-align: left;
}

/* Code blocks */

.doc .listingblock,
.doc .literalblock {
  margin: 0 0 1.25rem;
}

.doc pre {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ivt-code-border);
  border-radius: var(--ivt-radius);
  background-color: var(--ivt-code-bg);
  color: var(--ivt-code-fg);
  line-height: 1.5;
  overflow-x: auto;
  -moz-tab-size: 4;
  tab-size: 4;
}

.doc pre code {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
}

.doc .listingblock > .content {
  position: relative;
}

.doc .source-toolbox {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.15s ease;
  font-family: var(--ivt-font-body);
  font-size: 0.75rem;
}

.doc .listingblock:hover .source-toolbox,
.doc .source-toolbox:focus-within {
  opacity: 1;
}

.doc .source-toolbox .source-lang {
  color: var(--ivt-fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.doc .source-toolbox .copy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--ivt-code-border);
  border-radius: var(--ivt-radius);
  background-color: #fff;
  color: var(--ivt-fg-muted);
}

.doc .source-toolbox .copy-button:hover {
  border-color: var(--ivt-border-strong);
  color: var(--ivt-red);
}

.doc .source-toolbox .copy-button.is-copied {
  border-color: #2f9e44;
  color: #2f9e44;
}

.doc .source-toolbox .copy-icon {
  width: 0.9rem;
  height: 0.9rem;
  background-color: currentColor;
  -webkit-mask: no-repeat center/0.9rem url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4a2 2 0 0 0-2 2v14h2V3h12zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m0 16H8V7h11z'/%3E%3C/svg%3E");
  mask: no-repeat center/0.9rem url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4a2 2 0 0 0-2 2v14h2V3h12zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m0 16H8V7h11z'/%3E%3C/svg%3E");
}

.doc .source-toolbox .copy-button.is-copied .copy-icon {
  -webkit-mask: no-repeat center/1rem url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
  mask: no-repeat center/1rem url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* Admonitions — the antora-ui-default rules, value for value.
   The default UI only styles the <i> that :icons: font produces (which Antora
   sets by default). The selectors below also cover the plain-label markup
   Asciidoctor emits when icons are off, so both render identically.

   One deliberate change: the default UI is a top-margin-only stylesheet, so its
   rule is `margin: 1.4rem 0 0`. This stylesheet uses bottom margins, hence the
   1rem bottom below. The rendered spacing is the same. */

.doc .admonitionblock {
  margin: 1.4rem 0 1rem;
}

.doc .admonitionblock p,
.doc .admonitionblock td.content {
  font-size: 0.88889rem;
}

.doc .admonitionblock td.content > .title + *,
.doc .admonitionblock td.content > :not(.title):first-child {
  margin-top: 0;
}

.doc .admonitionblock td.content > :last-child,
.doc .admonitionblock td.content > :last-child > :last-child {
  margin-bottom: 0;
}

.doc .admonitionblock td.content pre {
  font-size: 0.83333rem;
}

.doc .admonitionblock > table {
  table-layout: fixed;
  position: relative;
  width: 100%;
  border: 0;
  border-collapse: collapse;
}

.doc .admonitionblock td.content {
  padding: 1rem 1rem 0.75rem;
  background: var(--ivt-admonition-bg);
  border: 0;
  width: 100%;
  word-wrap: anywhere;
}

.doc .admonitionblock td.icon {
  font-size: 0.83333rem;
  left: 0;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: 0;
  transform: translate(-0.5rem, -50%);
}

.doc .admonitionblock td.icon i,
.doc .admonitionblock td.icon .title {
  align-items: center;
  border-radius: 0.45rem;
  display: inline-flex;
  filter: none;
  height: 1.25rem;
  margin: 0;
  padding: 0 0.5rem;
  vertical-align: initial;
  width: fit-content;
  color: #fff;
  font-size: inherit;
  font-style: normal;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: uppercase;
  white-space: nowrap;
}

.doc .admonitionblock td.icon i::after {
  content: attr(title);
  font-weight: 600;
  font-style: normal;
  text-transform: uppercase;
}

.doc .admonitionblock.caution td.icon i,
.doc .admonitionblock.caution td.icon .title {
  background-color: var(--ivt-admonition-caution);
}

.doc .admonitionblock.important td.icon i,
.doc .admonitionblock.important td.icon .title {
  background-color: var(--ivt-admonition-important);
}

.doc .admonitionblock.note td.icon i,
.doc .admonitionblock.note td.icon .title {
  background-color: var(--ivt-admonition-note);
}

.doc .admonitionblock.tip td.icon i,
.doc .admonitionblock.tip td.icon .title {
  background-color: var(--ivt-admonition-tip);
}

.doc .admonitionblock.warning td.icon i,
.doc .admonitionblock.warning td.icon .title {
  background-color: var(--ivt-admonition-warning);
}

@media print {
  .doc .admonitionblock td.icon {
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Tables */

.doc table.tableblock {
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.doc table.tableblock.stretch {
  width: 100%;
}

.doc table.tableblock th,
.doc table.tableblock td {
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

.doc table.tableblock thead th {
  border-bottom: 2px solid var(--ivt-border-strong);
  background-color: var(--ivt-panel-bg);
  color: var(--ivt-fg-strong);
  font-weight: 700;
  text-align: left;
}

.doc table.tableblock tbody tr {
  border-bottom: 1px solid var(--ivt-border);
}

.doc table.tableblock tbody tr:hover {
  background-color: var(--ivt-panel-bg);
}

.doc table.grid-none tbody tr,
.doc table.grid-cols tbody tr {
  border-bottom: 0;
}

.doc table.frame-all {
  border: 1px solid var(--ivt-border);
}

.doc table.frame-ends {
  border-width: 1px 0;
  border-style: solid;
  border-color: var(--ivt-border);
}

.doc table.frame-sides {
  border-width: 0 1px;
  border-style: solid;
  border-color: var(--ivt-border);
}

.doc table.grid-all td,
.doc table.grid-all th,
.doc table.grid-cols td,
.doc table.grid-cols th {
  border-right: 1px solid var(--ivt-border);
}

.doc table.grid-all td:last-child,
.doc table.grid-all th:last-child,
.doc table.grid-cols td:last-child,
.doc table.grid-cols th:last-child {
  border-right: 0;
}

.doc td.halign-center,
.doc th.halign-center {
  text-align: center;
}

.doc td.halign-right,
.doc th.halign-right {
  text-align: right;
}

.doc td.valign-middle,
.doc th.valign-middle {
  vertical-align: middle;
}

.doc td.valign-bottom,
.doc th.valign-bottom {
  vertical-align: bottom;
}

.doc p.tableblock {
  margin: 0;
}

.doc p.tableblock + p.tableblock {
  margin-top: 0.4rem;
}

/* Images & media */

.doc .imageblock {
  margin: 0 0 1.25rem;
}

.doc .imageblock.text-center,
.doc .imageblock.center {
  text-align: center;
}

.doc .imageblock img,
.doc .image img {
  border-radius: var(--ivt-radius);
}

.doc .imageblock.thumb img,
.doc .imageblock .content > img {
  border: 1px solid var(--ivt-border);
}

.doc .videoblock,
.doc .audioblock {
  margin: 0 0 1.25rem;
}

.doc .videoblock iframe,
.doc .videoblock video {
  max-width: 100%;
  border: 0;
}

/* Quotes, sidebars, examples, open blocks */

.doc .quoteblock {
  margin: 0 0 1.25rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--ivt-border-strong);
  color: var(--ivt-fg-muted);
}

.doc .quoteblock blockquote {
  margin: 0;
  padding: 0;
}

.doc .quoteblock .attribution {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.doc .quoteblock .attribution cite {
  display: block;
  font-style: normal;
}

.doc .verseblock {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--ivt-border-strong);
}

.doc .verseblock pre {
  border: 0;
  padding: 0;
  background: none;
  font-family: var(--ivt-font-body);
  font-size: 1rem;
  white-space: pre-wrap;
}

.doc .sidebarblock {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--ivt-border);
  border-radius: var(--ivt-radius);
  background-color: var(--ivt-panel-bg);
}

.doc .sidebarblock > .content > .title {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  font-style: normal;
}

.doc .sidebarblock > .content > :last-child,
.doc .exampleblock > .content > :last-child,
.doc .openblock > .content > :last-child {
  margin-bottom: 0;
}

.doc .exampleblock > .content {
  padding: 1rem 1.25rem;
  border: 1px solid var(--ivt-border);
  border-radius: var(--ivt-radius);
  background-color: #fff;
}

.doc details {
  margin: 0 0 1.25rem;
  border: 1px solid var(--ivt-border);
  border-radius: var(--ivt-radius);
}

.doc details > summary {
  padding: 0.6rem 0.9rem;
  background-color: var(--ivt-panel-bg);
  color: var(--ivt-fg-strong);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.doc details > summary::-webkit-details-marker {
  display: none;
}

.doc details > summary::before {
  content: '';
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.6rem;
  margin-bottom: 0.1rem;
  border-right: 2px solid var(--ivt-fg-muted);
  border-bottom: 2px solid var(--ivt-fg-muted);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.doc details[open] > summary::before {
  transform: rotate(45deg);
}

.doc details > .content,
.doc details > :not(summary) {
  padding: 0 0.9rem;
}

.doc details > summary + * {
  padding-top: 0.75rem;
}

.doc details > :last-child {
  padding-bottom: 0.75rem;
  margin-bottom: 0;
}

.doc .openblock {
  margin: 0 0 1.25rem;
}

.doc hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--ivt-border);
}

/* Footnotes */

.doc #footnotes {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ivt-border);
  font-size: 0.875rem;
  color: var(--ivt-fg-muted);
}

.doc .footnote {
  margin-bottom: 0.3rem;
}

.doc sup.footnote a,
.doc sup.footnoteref a {
  font-size: 0.75em;
}

/* Xref & external link markers */

.doc a.xref.page,
.doc a.xref {
  font-weight: 500;
}

.doc a.bare,
.doc a.external {
  overflow-wrap: anywhere;
}

.doc .exampleblock .admonitionblock:last-child,
.doc .sidebarblock .admonitionblock:last-child {
  margin-bottom: 0;
}

/* =========================================================================
   9. Pagination & footer
   ========================================================================= */

.pagination {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: calc(var(--ivt-content-max) + var(--ivt-toc-width) + 2rem);
  margin: 0 auto 0 0; /* left-aligned, matching the article above it */
  padding: 0 2.5rem 2.5rem;
  font-size: 0.9375rem;
}

.pagination .prev,
.pagination .next {
  flex: 1 1 50%;
  min-width: 0;
}

.pagination .next {
  text-align: right;
}

.pagination a {
  display: inline-block;
  max-width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ivt-border);
  border-radius: var(--ivt-radius);
  color: var(--ivt-fg);
  font-weight: 600;
}

.pagination a:hover {
  border-color: var(--ivt-red);
  color: var(--ivt-red);
  text-decoration: none;
}

.pagination .prev a::before {
  content: '\2190\00a0\00a0';
  color: var(--ivt-fg-muted);
}

.pagination .next a::after {
  content: '\00a0\00a0\2192';
  color: var(--ivt-fg-muted);
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--ivt-border);
  background-color: var(--ivt-panel-bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 2.5rem;
  color: var(--ivt-fg-muted);
  font-size: 0.8125rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--ivt-fg-muted);
}

.footer-links a:hover {
  color: var(--ivt-red);
}

/* =========================================================================
   10. 404 page
   ========================================================================= */

.status-404 main.article > .content {
  padding-top: 3.5rem;
}

.status-404 .doc {
  margin: 0 auto;
}

/* =========================================================================
   11. Responsive
   ========================================================================= */

@media screen and (max-width: 1280px) {
  .toc.sidebar {
    display: none;
  }

  main.article > .content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media screen and (max-width: 1024px) {
  :root {
    --ivt-header-height: 3.75rem;
  }

  .navbar {
    padding: 0 1rem;
  }

  .navbar-burger {
    display: block;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--ivt-header-height);
    max-height: calc(100vh - var(--ivt-header-height));
    overflow-y: auto;
    padding: 0.5rem 0 1rem;
    background-color: var(--ivt-header-bg);
    border-bottom: 1px solid var(--ivt-header-border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .navbar-menu.is-active {
    display: block;
  }

  .navbar-end {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navbar-item {
    padding: 0.8rem 1.25rem;
    border-bottom: 1px solid var(--ivt-header-border);
  }

  .navbar-item:hover {
    background-color: var(--ivt-panel-bg);
    border-bottom-color: var(--ivt-header-border);
  }

  .navbar-item.navbar-cta {
    margin: 0.85rem 1.25rem 0;
    justify-content: center;
  }

  .nav-toggle {
    display: block;
  }

  .nav-container {
    position: fixed;
    left: 0;
    top: var(--ivt-header-height);
    bottom: 0;
    z-index: 30;
    width: min(20rem, 85vw);
    flex: none;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.12);
  }

  .nav-container.is-active {
    transform: translateX(0);
  }

  .nav {
    top: 0;
    max-height: 100%;
    height: 100%;
  }

  .toolbar,
  main.article > .content,
  .pagination,
  .footer-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media screen and (max-width: 600px) {
  :root {
    --ivt-font-size: 15px;
  }

  .doc h1.page {
    font-size: 1.75rem;
  }

  .doc h2 {
    font-size: 1.3125rem;
  }

  .breadcrumbs {
    display: none;
  }

  #search-field {
    flex: 1 1 auto;
    padding-right: 0.35rem;
  }

  .toolbar #search-field .filter {
    display: none;
  }

  .toolbar #search-field.has-filter > #search-input {
    border-right: 1px solid var(--ivt-border);
    border-radius: var(--ivt-radius);
  }

  .pagination {
    flex-direction: column;
  }

  .pagination .next {
    text-align: left;
  }

  .doc table.tableblock {
    display: block;
    overflow-x: auto;
  }
}

/* =========================================================================
   12. Print
   ========================================================================= */

@media print {
  .header,
  .nav-container,
  .toolbar,
  .toc.sidebar,
  .pagination,
  .source-toolbox {
    display: none !important;
  }

  body {
    font-size: 11pt;
  }

  main.article > .content {
    padding: 0;
  }

  .doc a {
    color: inherit;
    text-decoration: underline;
  }
}

/* =========================================================================
   13. Syntax highlighting (highlight.js — GitHub light theme)
   ========================================================================= */

pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
  Theme: GitHub
  Description: Light theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-light
  Current colors taken from GitHub's CSS
*/.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-code,.hljs-comment,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}

/* Keep highlight.js inside the code-block surface defined above. */
.doc pre code.hljs,
.doc code.hljs {
  display: block;
  padding: 0;
  background: none;
  color: var(--ivt-code-fg);
  overflow-x: visible;
}
