/* Froomle documentation theme. Brand tokens follow the Froomle Brandbook. */
:root {
  --froomle-blue: #0ea5e9;
  --froomle-blue-medium: #4abcef;
  --froomle-blue-light: #87d2f4;
  --froomle-green: #26d38e;
  --froomle-green-medium: #70deab;
  --froomle-pink: #ff4299;
  --froomle-yellow: #fff952;
  --froomle-navy: #0a1f44;
  --froomle-ink: #232323;
  --froomle-muted: #5a5a5a;
  --froomle-dark: #030712;
  --froomle-dark-panel: #0d1117;
  --froomle-card: #111827;
  --froomle-paper: #ffffff;
  --froomle-paper-soft: #f6f9fb;
  --froomle-line: rgba(10, 31, 68, 0.13);
  --froomle-header-height: 4rem;
  --froomle-toolbar-height: 2.75rem;
  --docs-surface: #ffffff;
  --docs-surface-soft: #f6f9fb;
  --docs-surface-muted: #eef4f7;
  --docs-surface-elevated: rgba(255, 255, 255, 0.9);
  --docs-surface-overlay: rgba(255, 255, 255, 0.88);
  --docs-text: #232323;
  --docs-heading: #0a1f44;
  --docs-text-soft: #334155;
  --docs-muted: #58697a;
  --docs-nav-text: #475569;
  --docs-link: #0369a1;
  --docs-link-hover: #075985;
  --docs-border: rgba(10, 31, 68, 0.13);
  --docs-border-soft: rgba(10, 31, 68, 0.08);
  --docs-shadow: rgba(10, 31, 68, 0.07);
  --docs-grid: rgba(10, 31, 68, 0.018);
  --docs-row-alt: rgba(14, 165, 233, 0.035);
  --docs-hover: rgba(14, 165, 233, 0.07);
  --docs-active: linear-gradient(90deg, rgba(14, 165, 233, 0.15), rgba(38, 211, 142, 0.08));
  --docs-inline-code-bg: rgba(14, 165, 233, 0.08);
  --docs-inline-code-border: rgba(14, 165, 233, 0.14);
  --docs-inline-code-text: #075985;
  --docs-code-bg: #eef5f8;
  --docs-code-border: #cddfe8;
  --docs-code-text: #26384a;
  --docs-code-label: #0369a1;
  --docs-code-comment: #58697a;
  --docs-code-keyword: #be185d;
  --docs-code-number: #0369a1;
  --docs-code-string: #0f766e;
  --docs-code-title: #6d28d9;
  --docs-code-attribute: #047857;
  --docs-code-meta: #a14300;
  --docs-note-bg: #eef9fd;
  --docs-note-border: rgba(14, 165, 233, 0.26);
  --docs-note-label: #0369a1;
  --docs-tip-bg: #effaf5;
  --docs-tip-border: rgba(38, 211, 142, 0.3);
  --docs-tip-label: #087653;
  --docs-important-bg: #fff3f8;
  --docs-important-border: rgba(255, 66, 153, 0.27);
  --docs-important-label: #b51463;
  --docs-warning-bg: #fffde7;
  --docs-warning-border: rgba(180, 146, 0, 0.3);
  --docs-warning-label: #725c00;
}

html[data-theme="dark"] {
  --docs-surface: #080d18;
  --docs-surface-soft: #0d1421;
  --docs-surface-muted: #111b2a;
  --docs-surface-elevated: rgba(16, 26, 41, 0.96);
  --docs-surface-overlay: rgba(8, 13, 24, 0.9);
  --docs-text: #dce6ee;
  --docs-heading: #f2f7fb;
  --docs-text-soft: #c4d0db;
  --docs-muted: #9babb9;
  --docs-nav-text: #b7c4cf;
  --docs-link: #7dd3fc;
  --docs-link-hover: #bae6fd;
  --docs-border: rgba(148, 163, 184, 0.22);
  --docs-border-soft: rgba(148, 163, 184, 0.14);
  --docs-shadow: rgba(0, 0, 0, 0.3);
  --docs-grid: rgba(125, 211, 252, 0.035);
  --docs-row-alt: rgba(14, 165, 233, 0.075);
  --docs-hover: rgba(14, 165, 233, 0.13);
  --docs-active: linear-gradient(90deg, rgba(14, 165, 233, 0.22), rgba(38, 211, 142, 0.1));
  --docs-inline-code-bg: rgba(14, 165, 233, 0.14);
  --docs-inline-code-border: rgba(125, 211, 252, 0.2);
  --docs-inline-code-text: #a8e2fa;
  --docs-code-bg: #111b27;
  --docs-code-border: #26394a;
  --docs-code-text: #d2dee8;
  --docs-code-label: #7dd3fc;
  --docs-code-comment: #91a1af;
  --docs-code-keyword: #ff8fbd;
  --docs-code-number: #82d5ff;
  --docs-code-string: #76dfbf;
  --docs-code-title: #c4a7ff;
  --docs-code-attribute: #7ee2a8;
  --docs-code-meta: #ffc477;
  --docs-note-bg: rgba(14, 165, 233, 0.12);
  --docs-note-border: rgba(125, 211, 252, 0.32);
  --docs-note-label: #7dd3fc;
  --docs-tip-bg: rgba(38, 211, 142, 0.1);
  --docs-tip-border: rgba(112, 222, 171, 0.28);
  --docs-tip-label: #70deab;
  --docs-important-bg: rgba(255, 66, 153, 0.1);
  --docs-important-border: rgba(255, 139, 190, 0.3);
  --docs-important-label: #ff8bbe;
  --docs-warning-bg: rgba(255, 249, 82, 0.1);
  --docs-warning-border: rgba(255, 249, 82, 0.28);
  --docs-warning-label: #fff27a;
}

html {
  background: var(--docs-surface);
  scroll-behavior: smooth;
}

body {
  background: var(--docs-surface);
  color: var(--docs-text);
  padding-top: var(--froomle-header-height);
  transition: background-color 180ms ease, color 180ms ease;
}

::selection {
  background: rgba(38, 211, 142, 0.28);
  color: var(--froomle-navy);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.38);
  outline-offset: 3px;
}

/* Header */
.navbar {
  background:
    radial-gradient(circle at 22% -120%, rgba(14, 165, 233, 0.34), transparent 42%),
    rgba(3, 7, 18, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(3, 7, 18, 0.16);
  color: #f9fafb;
  height: var(--froomle-header-height);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar-brand {
  height: var(--froomle-header-height);
}

.navbar-brand .navbar-item:first-child,
.navbar-brand .navbar-item:first-child a {
  color: #f9fafb;
  font-size: inherit;
}

.navbar-brand .navbar-item:first-child::before {
  display: none;
}

.navbar-logo {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  padding: 0 1.25rem;
}

.navbar-logo:hover {
  text-decoration: none;
}

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

.navbar-product {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 0.2rem 0 0.2rem 0.85rem;
  text-transform: uppercase;
}

.navbar-burger {
  color: #f9fafb;
  height: var(--froomle-header-height);
}

.navbar-burger span {
  background: #f9fafb;
  height: 2px;
}

.navbar-end > .navbar-item,
.navbar-end .navbar-link {
  color: #cbd5e1;
  font-weight: 400;
}

.navbar-end > a.navbar-item {
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.navbar-end > a.navbar-item:hover {
  background: transparent;
  color: #ffffff;
  text-decoration: none;
}

.navbar-end > .navbar-contact {
  align-self: center;
  background: #0369a1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.55rem;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.22);
  color: #ffffff;
  font-weight: 500;
  height: 2.35rem;
  margin: 0 1rem 0 0.25rem;
  padding: 0 1rem;
}

.navbar-end > .navbar-contact:hover {
  background: #075985;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.3);
  transform: translateY(-1px);
}

.navbar .search {
  padding-right: 0.5rem;
}

#search-field #search-input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.55rem;
  color: #f9fafb;
  font-family: Roboto, sans-serif;
  font-size: 0.78rem;
  height: 2.25rem;
  min-width: 12rem;
  padding: 0 0.8rem;
  transition: background-color 160ms ease, border-color 160ms ease, width 160ms ease;
}

#search-field #search-input::placeholder {
  color: #94a3b8;
}

#search-field #search-input:focus {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(74, 188, 239, 0.7);
  min-width: 15rem;
}

.navbar-theme {
  padding: 0 0.35rem;
}

.theme-picker {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.55rem;
  display: flex;
  height: 2.25rem;
  padding-left: 0.65rem;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.theme-picker:hover,
.theme-picker:focus-within {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(74, 188, 239, 0.7);
}

.theme-picker-icon {
  background: linear-gradient(90deg, #cbd5e1 50%, transparent 50%);
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  display: block;
  flex: none;
  height: 0.78rem;
  width: 0.78rem;
}

html[data-theme-preference="light"] .theme-picker-icon {
  background: #cbd5e1;
}

html[data-theme-preference="dark"] .theme-picker-icon {
  background: #334155;
  box-shadow: inset 0 0 0 2px #cbd5e1;
}

#theme-select {
  appearance: none;
  background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 0.72rem) 50%, calc(100% - 0.48rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.25rem 0.25rem, 0.25rem 0.25rem;
  border: 0;
  color: #dbe5ed;
  cursor: pointer;
  font-family: Roboto, sans-serif;
  font-size: 0.72rem;
  height: 100%;
  outline: 0;
  padding: 0 1.35rem 0 0.42rem;
}

#theme-select option {
  background: #ffffff;
  color: #232323;
}

/* Documentation shell */
.body {
  background: var(--docs-surface);
  min-height: calc(100vh - var(--froomle-header-height));
}

main[role="main"] {
  background-color: var(--docs-surface);
  background-image:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, 0.09), transparent 24rem),
    radial-gradient(circle at 6% 32rem, rgba(38, 211, 142, 0.055), transparent 22rem),
    linear-gradient(var(--docs-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--docs-grid) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  min-width: 0;
}

.nav-container {
  top: var(--froomle-header-height);
}

.nav {
  background: var(--docs-surface-soft);
  border-right: 1px solid var(--docs-border);
  box-shadow: none;
  height: calc(100vh - var(--froomle-header-height) - var(--froomle-toolbar-height));
  top: var(--froomle-toolbar-height);
}

.nav-menu {
  line-height: 1.42;
  padding: 1.1rem 0.9rem 1.5rem;
}

.nav-menu h3.title {
  color: var(--docs-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  padding: 0.15rem 0.6rem 0.7rem;
  text-transform: uppercase;
}

.nav-menu h3.title a:hover {
  color: var(--froomle-blue);
  text-decoration: none;
}

.nav-item {
  margin-top: 0.15rem;
}

.nav-item[data-depth="0"] + .nav-item[data-depth="0"] {
  border-top: 1px solid var(--docs-border-soft);
  margin-top: 0.55rem;
  padding-top: 0.55rem;
}

.nav-menu .nav-link,
.nav-menu .nav-text {
  border-radius: 0.45rem;
  color: var(--docs-nav-text);
  display: block;
  padding: 0.34rem 0.55rem;
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-text:hover {
  background: var(--docs-hover);
  color: var(--docs-link);
  text-decoration: none;
}

.nav-item[data-depth="1"] > .nav-link,
.nav-item[data-depth="1"] > .nav-text {
  color: var(--docs-heading);
  font-weight: 500;
}

.nav-menu .is-current-page > .nav-link,
.nav-menu .is-current-page > .nav-text {
  background: var(--docs-active);
  box-shadow: inset 3px 0 var(--froomle-blue);
  color: var(--docs-link);
  font-weight: 500;
  padding-left: 0.72rem;
}

.nav-item-toggle {
  opacity: 0.62;
  transition: opacity 140ms ease, transform 140ms ease;
}

.nav-item-toggle:hover {
  opacity: 1;
}

.nav-panel-menu::-webkit-scrollbar {
  width: 0.4rem;
}

.nav-panel-menu::-webkit-scrollbar-thumb {
  background: var(--docs-border);
  border-radius: 1rem;
}

.nav-panel-explore {
  background: var(--docs-surface-muted);
  border-top: 1px solid var(--docs-border);
}

.nav-panel-explore .context {
  box-shadow: none;
  color: var(--docs-muted);
}

.nav-panel-explore .components {
  background: var(--docs-surface-soft);
  box-shadow: inset 0 1px 5px var(--docs-shadow);
}

.nav-panel-explore .component .version a {
  background: var(--docs-surface-elevated);
  border-color: var(--docs-border);
}

.nav-panel-explore .component .is-current a {
  border-color: var(--froomle-blue);
  color: var(--docs-link);
}

.toolbar {
  background: var(--docs-surface-overlay);
  border-bottom: 1px solid var(--docs-border);
  box-shadow: 0 8px 22px var(--docs-shadow);
  color: var(--docs-muted);
  height: var(--froomle-toolbar-height);
  top: var(--froomle-header-height);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-toggle,
.home-link {
  height: var(--froomle-toolbar-height);
  width: var(--froomle-toolbar-height);
}

.breadcrumbs a:hover {
  color: var(--froomle-blue);
  text-decoration: none;
}

.breadcrumbs li::after {
  color: var(--docs-border);
}

.page-versions .version-menu-toggle {
  border-radius: 0.4rem;
}

.page-versions .version-menu-toggle:hover {
  background-color: var(--docs-hover);
  color: var(--docs-link);
}

.page-versions .version-menu {
  background: var(--docs-surface-muted);
  border-color: var(--docs-border);
  border-radius: 0.5rem;
  box-shadow: 0 10px 24px var(--docs-shadow);
}

/* Article typography */
.doc {
  color: var(--docs-text);
  float: none;
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.78;
  margin: 0 auto;
  max-width: 52rem;
  padding: 0 2rem 5rem;
  width: auto;
}

.doc h1,
.doc h2,
.doc h3,
.doc h4,
.doc h5,
.doc h6 {
  color: var(--docs-heading);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.doc > h1.page:first-of-type {
  font-size: clamp(2.15rem, 4vw, 2.75rem);
  line-height: 1.12;
  margin: 2.8rem 0 2.2rem;
  max-width: 47rem;
}

.doc > h1.page:first-of-type::after {
  background: linear-gradient(90deg, var(--froomle-blue), var(--froomle-green));
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.25rem;
  margin-top: 1rem;
  width: 4.5rem;
}

.doc h2:not(.discrete) {
  border-bottom: 1px solid var(--froomle-line);
  font-size: 1.62rem;
  margin-left: 0;
  margin-right: 0;
  padding: 0.25rem 0 0.45rem;
}

.doc h3:not(.discrete) {
  font-size: 1.25rem;
}

.doc h4:not(.discrete) {
  font-size: 1.05rem;
}

#preamble + .sect1,
.doc .sect1 + .sect1 {
  margin-top: 2.8rem;
}

.doc #preamble > .sectionbody > .paragraph:first-child p,
.doc > .paragraph:first-of-type p {
  color: var(--docs-text-soft);
  font-size: 1.06rem;
  line-height: 1.75;
}

.doc a,
.doc a:hover {
  color: var(--docs-link);
  text-decoration-line: underline;
  text-decoration-thickness: 0.06em;
  text-decoration-color: rgba(14, 165, 233, 0.35);
  text-underline-offset: 0.16em;
}

.doc a:hover {
  text-decoration-color: currentColor;
}

.doc ol li::marker,
.doc ul li::marker {
  color: var(--froomle-blue);
  font-weight: 500;
}

.doc p code,
.doc thead code,
.doc td code,
.doc li code {
  background: var(--docs-inline-code-bg);
  border: 1px solid var(--docs-inline-code-border);
  border-radius: 0.3rem;
  color: var(--docs-inline-code-text);
  font-size: 0.9em;
  padding: 0.1em 0.32em;
}

.doc .admonitionblock .title,
.doc .exampleblock .title,
.doc .imageblock .title,
.doc .listingblock .title,
.doc .literalblock .title,
.doc .openblock .title,
.doc .tableblock caption {
  color: var(--docs-muted);
  font-style: normal;
  font-weight: 500;
}

/* Code */
.doc pre.highlight code,
.doc pre:not(.highlight) {
  background: var(--docs-code-bg);
  border: 1px solid var(--docs-code-border);
  border-radius: 0.7rem;
  box-shadow: 0 12px 28px var(--docs-shadow);
  color: var(--docs-code-text);
  padding: 1rem 1.1rem;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.doc .listingblock code[data-lang]::before {
  color: var(--docs-code-label);
  display: block;
  right: 0.7rem;
  top: 0.6rem;
}

.hljs-comment,
.hljs-quote {
  color: var(--docs-code-comment);
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
  color: var(--docs-code-keyword);
}

.hljs-literal,
.hljs-number,
.hljs-template-variable,
.hljs-variable {
  color: var(--docs-code-number);
}

.hljs-doctag,
.hljs-string {
  color: var(--docs-code-string);
}

.hljs-section,
.hljs-selector-id,
.hljs-title,
.hljs-type {
  color: var(--docs-code-title);
}

.hljs-tag .hljs-attr,
.hljs-attr,
.hljs-attribute,
.hljs-name,
.hljs-tag {
  color: var(--docs-code-attribute);
}

.hljs-built_in,
.hljs-builtin-name,
.hljs-meta {
  color: var(--docs-code-meta);
}

/* Tables */
.doc table.tableblock {
  background: var(--docs-surface-elevated);
  border: 1px solid var(--docs-border);
  border-collapse: separate;
  border-radius: 0.7rem;
  border-spacing: 0;
  box-shadow: 0 12px 30px var(--docs-shadow);
  display: block;
  font-size: 0.82rem;
  margin: 1.75rem 0;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.doc table.tableblock thead th {
  background: var(--froomle-navy);
  border-bottom: 0;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.01em;
  min-width: 7.5rem;
  padding: 0.75rem 0.85rem;
}

.doc table.tableblock thead code {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e0f2fe;
}

.doc table.tableblock > :not(thead) th,
.doc table.tableblock td {
  border-bottom: 1px solid var(--docs-border-soft);
  border-top: 0;
  min-width: 7.5rem;
  overflow-wrap: anywhere;
  padding: 0.75rem 0.85rem;
}

.doc table.tableblock tbody tr:nth-child(even) {
  background: var(--docs-row-alt);
}

.doc table.tableblock tbody tr:last-child > * {
  border-bottom: 0;
}

.doc table.tableblock.frame-none.grid-none {
  border-color: var(--docs-border-soft);
}

/* Admonitions */
.doc .admonitionblock {
  margin: 1.8rem 0 0;
}

.doc .admonitionblock > table {
  background: var(--docs-note-bg);
  border: 1px solid var(--docs-note-border);
  border-left: 4px solid var(--froomle-blue);
  border-radius: 0.7rem;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 10px 26px var(--docs-shadow);
  overflow: hidden;
}

.doc .admonitionblock .icon {
  background: transparent;
  border-radius: 0;
  color: var(--docs-note-label);
  font-size: 0.68rem;
  height: auto;
  letter-spacing: 0.08em;
  padding: 1.15rem 0.9rem;
  position: static;
  text-align: left;
  transform: none;
  vertical-align: top;
  width: 7rem;
}

.doc .admonitionblock.note .icon,
.doc .admonitionblock.tip .icon,
.doc .admonitionblock.important .icon,
.doc .admonitionblock.caution .icon,
.doc .admonitionblock.warning .icon {
  background-color: transparent;
}

.doc .admonitionblock.note .icon {
  color: var(--docs-note-label);
}

.doc .admonitionblock .icon i {
  gap: 0.45rem;
  height: auto;
}

.doc .admonitionblock .icon i::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 0.45rem;
  width: 0.45rem;
}

.doc .admonitionblock td.content {
  background: transparent;
  padding: 1rem 1.15rem 1rem 0.35rem;
}

.doc .admonitionblock.note > table {
  background: var(--docs-note-bg);
  border-color: var(--docs-note-border);
}

.doc .admonitionblock.tip > table {
  background: var(--docs-tip-bg);
  border-color: var(--docs-tip-border);
  border-left-color: var(--froomle-green);
}

.doc .admonitionblock.tip .icon {
  color: var(--docs-tip-label);
}

.doc .admonitionblock.important > table,
.doc .admonitionblock.caution > table {
  background: var(--docs-important-bg);
  border-color: var(--docs-important-border);
  border-left-color: var(--froomle-pink);
}

.doc .admonitionblock.important .icon,
.doc .admonitionblock.caution .icon {
  color: var(--docs-important-label);
}

.doc .admonitionblock.warning > table {
  background: var(--docs-warning-bg);
  border-color: var(--docs-warning-border);
  border-left-color: #d9ad00;
}

.doc .admonitionblock.warning .icon {
  color: var(--docs-warning-label);
}

/* Supporting blocks */
.doc .quoteblock {
  background: var(--docs-hover);
  border-left-color: var(--froomle-blue);
  border-radius: 0 0.65rem 0.65rem 0;
  color: var(--docs-nav-text);
}

.doc .exampleblock > .content {
  background: var(--docs-surface-elevated);
  border: 1px solid var(--docs-border);
  border-radius: 0.7rem;
  box-shadow: 0 10px 24px var(--docs-shadow);
  padding: 1rem;
}

.doc .sidebarblock {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(38, 211, 142, 0.08));
  border: 1px solid var(--docs-inline-code-border);
  border-radius: 0.7rem;
}

.doc .imageblock img {
  border-radius: 0.45rem;
}

/* High-level architecture */
.doc .architecture-diagram {
  align-items: stretch;
  margin-top: 1.35rem;
}

.doc .architecture-diagram > .content {
  border-radius: 0.9rem;
  overflow: hidden;
  width: 100%;
}

.doc .architecture-diagram img {
  border: 1px solid var(--docs-border);
  border-radius: 0.9rem;
  display: block;
  max-width: 100%;
  width: 100%;
}

.doc .architecture-diagram-dark {
  display: none;
}

html[data-theme="dark"] .doc .architecture-diagram-light {
  display: none;
}

html[data-theme="dark"] .doc .architecture-diagram-dark {
  display: flex;
}

/* Tabs */
.tabset {
  border: 1px solid var(--docs-border);
  border-radius: 0.7rem;
  box-shadow: 0 10px 26px var(--docs-shadow);
  margin-top: 1.5rem;
  overflow: hidden;
}

.tabs {
  background: var(--docs-surface-muted);
  border-bottom: 1px solid var(--docs-border);
}

.tabs li {
  color: var(--docs-nav-text);
  font-size: 0.82rem;
  height: 2.75rem;
  padding: 0 1.2rem;
}

.tabs li.is-active {
  background: var(--docs-surface);
  box-shadow: inset 0 -3px var(--froomle-blue);
  color: var(--docs-link);
  font-weight: 500;
}

.tabset > .content {
  background: var(--docs-surface-elevated);
  padding: 1.35rem;
}

/* Onboarding flow */
.onboarding-timeline > ol::before {
  background: linear-gradient(var(--froomle-blue), var(--froomle-green));
}

.onboarding-timeline > ol > li {
  background: var(--docs-surface-elevated);
  border-color: var(--docs-border);
  border-radius: 0.7rem;
  box-shadow: 0 10px 24px var(--docs-shadow);
}

.onboarding-timeline > ol > li::before {
  background: var(--froomle-blue);
  box-shadow: 0 0 0 4px var(--docs-surface), 0 0 0 5px rgba(14, 165, 233, 0.3);
}

.onboarding-timeline > ol > li:nth-child(even)::before {
  background: var(--froomle-green);
}

/* On-page navigation */
.article-aside {
  border-left: 1px solid rgba(14, 165, 233, 0.28);
  box-shadow: none;
  max-height: calc(100vh - 9rem);
  padding: 0 1.25rem;
  right: 1.25rem;
  top: 8.25rem;
  width: 15.5rem;
}

.article-aside h3.toc-title {
  color: var(--docs-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.toc-link {
  border-radius: 0.35rem;
  color: var(--docs-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  padding: 0.32rem 0.45rem;
  transition: background-color 140ms ease, color 140ms ease;
}

.toc-link:hover {
  background: var(--docs-hover);
  color: var(--docs-link);
  text-decoration: none;
}

#article-toc:not(.is-position-fixed) > .toc-list > .toc-list-item > .toc-link.is-active-link:first-child,
.toc-link.is-active-link {
  background: var(--docs-hover);
  color: var(--docs-link);
  font-weight: 500;
}

/* Footer */
footer.footer {
  background:
    radial-gradient(circle at 15% 0, rgba(14, 165, 233, 0.15), transparent 24rem),
    var(--froomle-card);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 0.76rem;
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem);
}

.footer-inner {
  align-items: center;
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 84rem;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 0.9rem;
}

.footer-brand img {
  height: auto;
  width: 7.25rem;
}

.footer-brand span {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding-left: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer a,
.footer a:visited {
  color: #cbd5e1;
}

.footer a:hover {
  color: var(--froomle-blue-light);
  text-decoration: none;
}

.footer .footer-copyright {
  grid-column: 1 / -1;
  margin: 0;
}

/* Dark-theme compatibility for stock Antora controls and content blocks. */
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .home-link {
  filter: invert(1) opacity(0.78);
}

html[data-theme="dark"] .page-versions .version-menu-toggle,
html[data-theme="dark"] .nav-panel-explore .context .version {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M3.67 6.59 1.455 8.615 15 23.375l13.545-14.76L26.33 6.59 15 18.76z' fill='%239babb9'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .doc a.unresolved {
  color: #ff9292;
}

html[data-theme="dark"] #preamble .abstract blockquote {
  background: var(--docs-surface-muted);
  border-left-color: var(--froomle-blue);
  color: var(--docs-text-soft);
}

html[data-theme="dark"] .doc .quoteblock .attribution {
  color: var(--docs-muted);
}

html[data-theme="dark"] kbd {
  background: var(--docs-surface-muted);
  border-color: var(--docs-border);
  box-shadow: 0 1px 0 var(--docs-border), inset 0 0 0 0.1em var(--docs-surface);
  color: var(--docs-text);
}

html[data-theme="dark"] .doc table.tableblock thead th {
  background: #132c50;
}

/* Responsive layout */
@media screen and (min-width: 769px) {
  .nav-container {
    width: 17.5rem;
  }
}

@media screen and (min-width: 1024px) {
  .nav {
    height: calc(100vh - var(--froomle-header-height));
    top: var(--froomle-header-height);
  }

  .nav-panel-menu {
    height: calc(100vh - var(--froomle-header-height) - 2.5rem);
  }
}

@media screen and (min-width: 1025px) and (max-width: 1279px) {
  .article-aside {
    display: none;
  }

  .doc {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 1280px) {
  .doc {
    margin-left: clamp(2rem, 4vw, 5rem);
    margin-right: 18rem;
  }
}

@media screen and (max-width: 1023px) {
  .navbar,
  .toolbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    background: var(--docs-surface-soft);
  }

  .navbar-menu {
    background:
      radial-gradient(circle at 80% 0, rgba(14, 165, 233, 0.2), transparent 18rem),
      rgba(3, 7, 18, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem;
  }

  .navbar-menu.is-active {
    box-shadow: 0 18px 36px rgba(3, 7, 18, 0.26);
    max-height: calc(100vh - var(--froomle-header-height));
  }

  .navbar-menu .navbar-item {
    border-radius: 0.5rem;
  }

  .navbar-theme {
    padding: 0.35rem 0;
  }

  .theme-picker {
    width: max-content;
  }

  .navbar-menu .navbar-link:hover,
  .navbar-menu a.navbar-item:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .navbar-end > .navbar-contact {
    align-items: center;
    display: flex;
    margin: 0.5rem 0 0;
    width: max-content;
  }

  .navbar .search {
    padding: 0.35rem 0;
  }

  #search-field #search-input,
  #search-field #search-input:focus {
    min-width: 100%;
    width: 100%;
  }

  .nav-panel-menu {
    height: calc(100vh - var(--froomle-header-height) - var(--froomle-toolbar-height) - 2.5rem);
  }
}

@media screen and (max-width: 768px) {
  .doc {
    font-size: 0.92rem;
    padding: 0 1.2rem 4rem;
  }

  .doc > h1.page:first-of-type {
    margin-top: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer .footer-copyright {
    grid-column: auto;
  }
}

@media screen and (max-width: 560px) {
  .navbar-logo {
    gap: 0.65rem;
    padding-left: 0.9rem;
  }

  .navbar-logo img {
    width: 7.2rem;
  }

  .navbar-product {
    font-size: 0.61rem;
    padding-left: 0.65rem;
  }

  .doc h2:not(.discrete) {
    font-size: 1.38rem;
  }

  .doc .admonitionblock > table,
  .doc .admonitionblock > table > tbody,
  .doc .admonitionblock > table > tbody > tr,
  .doc .admonitionblock .icon,
  .doc .admonitionblock td.content {
    display: block;
    width: 100%;
  }

  .doc .admonitionblock .icon {
    padding: 0.85rem 1rem 0.2rem;
  }

  .doc .admonitionblock td.content {
    padding: 0.45rem 1rem 1rem;
  }

  .tabs li {
    padding: 0 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #ffffff;
    padding-top: 0;
  }

  .doc .architecture-diagram-light {
    display: flex !important;
  }

  .doc .architecture-diagram-dark {
    display: none !important;
  }

  .header,
  .nav-container,
  .toolbar,
  .article-aside {
    display: none !important;
  }

  .body {
    display: block;
  }

  main[role="main"] {
    background: #ffffff;
  }

  .doc {
    color: #000000;
    margin: 0 auto;
    max-width: none;
    padding: 0 0 2rem;
  }

  .doc pre.highlight code,
  .doc pre:not(.highlight) {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: none;
    color: #000000;
  }

  footer.footer {
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    color: #475569;
  }

  .footer-brand img,
  .footer-links {
    display: none;
  }
}
