:root {
  color-scheme: light;
  --ink-950: #102f31;
  --ink-900: #16393a;
  --ink-800: #214849;
  --ink-700: #315b5c;
  --ink-600: #486869;
  --ink-400: #8da3a3;
  --ink-200: #c8d4d3;
  --ink-100: #e2e9e7;
  --canvas: #f4f3ee;
  --surface: #fffdf8;
  --surface-raised: #ffffff;
  --surface-subtle: #eef1ec;
  --line: #d7ded9;
  --line-strong: #b8c6c2;
  --text: #102f31;
  --text-secondary: #486869;
  --text-inverse: #ffffff;
  --accent-lime: #d8f13b;
  --accent-mint: #9ef0be;
  --accent-violet: #6c4dff;
  --accent-lavender: #e6c7ec;
  --accent-peach: #ffbe78;
  --accent-coral: #ff715b;
  --accent-sky: #6ed4f7;
  --accent-blue: #2f6fe4;
  --success: #1c7a4f;
  --warning: #a95700;
  --critical: #b63844;
  --info: #245db7;
  --header-height: 68px;
  --sidebar-width: 292px;
  --content-width: 790px;
  --toc-width: 220px;
  --shadow-soft: 0 12px 40px rgb(16 47 49 / 8%);
  --shadow-float: 0 24px 80px rgb(16 47 49 / 18%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0d1d1e;
  --surface: #122526;
  --surface-raised: #173031;
  --surface-subtle: #182d2e;
  --line: #294344;
  --line-strong: #3d5b5c;
  --text: #eef5f2;
  --text-secondary: #acc1bd;
  --ink-950: #eef5f2;
  --ink-900: #d7e5e1;
  --ink-800: #bfd2ce;
  --ink-700: #acc1bd;
  --ink-600: #91aaa6;
  --ink-400: #6b8582;
  --ink-200: #3e5857;
  --ink-100: #263f40;
  --shadow-soft: 0 12px 40px rgb(0 0 0 / 18%);
  --shadow-float: 0 24px 80px rgb(0 0 0 / 38%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 300px;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

::selection {
  background: var(--accent-lime);
  color: #111312;
}

:focus-visible {
  outline: 3px solid var(--accent-violet);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-lime);
  color: #111312;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent-lime);
}

.topbar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  position: relative;
  display: block;
  width: 112px;
  height: 41px;
  margin-right: 12px;
}

.brand-logo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-logo-white {
  opacity: 0;
}

:root[data-theme="dark"] .brand-logo-color {
  opacity: 0;
}

:root[data-theme="dark"] .brand-logo-white {
  opacity: 1;
}

.brand-section {
  margin-left: 11px;
  padding-left: 11px;
  border-left: 1px solid var(--line-strong);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.topbar-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.topbar-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-subtle);
}

.topbar-button:active {
  transform: translateY(1px);
}

.topbar-button svg,
.search-input-wrap svg,
.source-pdf svg,
.route-link svg,
.workflow-copy a svg,
.pdf-link svg,
.primary-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 250px;
  padding: 0 10px 0 13px;
  color: var(--text-secondary);
  text-align: left;
}

.search-button span {
  flex: 1;
}

kbd {
  min-width: 25px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.icon-button {
  display: grid;
  width: 42px;
  place-items: center;
  padding: 0;
}

.theme-sun,
.theme-moon {
  display: grid;
  place-items: center;
}

.theme-moon,
:root[data-theme="dark"] .theme-sun {
  display: none;
}

:root[data-theme="dark"] .theme-moon {
  display: grid;
}

.menu-button {
  display: none;
}

.docs-shell {
  min-height: 100vh;
  padding-top: var(--header-height);
}

.sidebar {
  position: fixed;
  z-index: 80;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.sidebar-scroll {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px 12px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-close {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sidebar-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.sidebar nav {
  padding: 0 11px 24px;
}

.nav-home,
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.nav-home {
  gap: 9px;
  margin-bottom: 7px;
  padding: 8px 11px;
  color: var(--text);
  font-weight: 720;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-lime) 24%, transparent);
}

.nav-home:hover,
.nav-links a:hover {
  background: var(--surface-subtle);
  color: var(--text);
}

.nav-home.is-active,
.nav-links a.is-active {
  background: var(--ink-950);
  color: var(--surface);
  font-weight: 740;
}

:root[data-theme="dark"] .nav-home.is-active,
:root[data-theme="dark"] .nav-links a.is-active {
  background: var(--accent-lime);
  color: #102f31;
}

.nav-group {
  margin: 3px 0 8px;
}

.nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary:hover {
  background: var(--surface-subtle);
}

.nav-chevron {
  color: var(--text-secondary);
  font-size: 16px;
  transform: rotate(-90deg);
  transition: transform 160ms ease;
}

.nav-group[open] .nav-chevron {
  transform: rotate(0);
}

.nav-links {
  position: relative;
  margin: 2px 0 8px 15px;
  padding-left: 12px;
}

.nav-links::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.nav-links a {
  position: relative;
  padding: 7px 10px;
}

.nav-links a.is-active::before {
  position: absolute;
  top: 50%;
  left: -13px;
  width: 3px;
  height: 20px;
  border-radius: 3px;
  background: var(--accent-lime);
  content: "";
  transform: translateY(-50%);
}

.sidebar-footer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
}

.sidebar-footer div {
  display: grid;
}

.sidebar-footer strong {
  color: var(--text);
  font-size: 11px;
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 15%, transparent);
}

.main-content {
  min-width: 0;
  margin-left: var(--sidebar-width);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--content-width)) var(--toc-width);
  gap: 72px;
  width: min(100%, calc(var(--content-width) + var(--toc-width) + 144px));
  margin: 0 auto;
  padding: 66px 36px 90px;
}

.doc-article {
  min-width: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

.article-header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--page-accent, var(--accent-violet));
}

[data-accent="lime"] { --page-accent: var(--accent-lime); }
[data-accent="violet"] { --page-accent: var(--accent-violet); }
[data-accent="mint"] { --page-accent: var(--accent-mint); }
[data-accent="sky"] { --page-accent: var(--accent-sky); }
[data-accent="peach"] { --page-accent: var(--accent-peach); }
[data-accent="coral"] { --page-accent: var(--accent-coral); }

.article-header h1 {
  max-width: 760px;
  margin: 15px 0 17px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 830;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.article-header > p {
  max-width: 660px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.article-meta span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 720;
}

.source-pdf {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 24px 0 46px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--page-accent, var(--accent-violet));
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.source-pdf:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.source-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--page-accent, var(--accent-violet)) 22%, var(--surface));
  place-items: center;
}

.source-pdf > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.source-pdf strong {
  font-size: 13px;
}

.source-pdf small {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-arrow {
  color: var(--text-secondary);
}

.prose {
  color: var(--text);
  font-size: 16px;
  line-height: 1.78;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.prose h2 {
  margin: 58px 0 17px;
  padding-top: 4px;
  font-size: 29px;
}

.prose h3 {
  margin: 38px 0 13px;
  font-size: 21px;
}

.prose h4 {
  margin: 30px 0 10px;
  font-size: 17px;
}

.heading-anchor {
  color: inherit;
  text-decoration: none;
}

.heading-anchor span {
  margin-left: 8px;
  color: var(--ink-400);
  font-weight: 500;
  opacity: 0;
  transition: opacity 120ms ease;
}

.heading-anchor:hover span,
.heading-anchor:focus span {
  opacity: 1;
}

.prose p {
  margin: 0 0 20px;
}

.prose strong {
  color: var(--text);
  font-weight: 760;
}

.prose a {
  color: var(--info);
  font-weight: 620;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose .heading-anchor {
  color: inherit;
  font-weight: inherit;
}

:root[data-theme="dark"] .prose a {
  color: var(--accent-sky);
}

.prose ul,
.prose ol {
  margin: 0 0 24px;
  padding-left: 25px;
}

.prose li {
  margin: 7px 0;
  padding-left: 4px;
}

.prose li::marker {
  color: var(--page-accent, var(--accent-violet));
  font-weight: 800;
}

.prose code {
  padding: 0.18em 0.38em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-subtle);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.prose pre {
  overflow-x: auto;
  margin: 26px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-900);
  color: #edf5f2;
  box-shadow: inset 0 1px rgb(255 255 255 / 7%);
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.callout {
  position: relative;
  margin: 30px 0;
  padding: 20px 22px 20px 25px;
  border: 0;
  border-left: 4px solid var(--page-accent, var(--accent-violet));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: color-mix(in srgb, var(--page-accent, var(--accent-violet)) 10%, var(--surface));
}

.callout p:last-child {
  margin-bottom: 0;
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 4px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--info) 25%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--info) 9%, var(--surface));
  color: var(--info);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  vertical-align: 0.08em;
}

.activity-badge[data-kind*="caution"],
.activity-badge[data-kind*="blocked"] {
  border-color: color-mix(in srgb, var(--critical) 28%, var(--line));
  background: color-mix(in srgb, var(--critical) 9%, var(--surface));
  color: var(--critical);
}

.activity-badge[data-kind="review"],
.activity-badge[data-kind*="manual"] {
  border-color: color-mix(in srgb, var(--warning) 28%, var(--line));
  background: color-mix(in srgb, var(--warning) 9%, var(--surface));
  color: var(--warning);
}

.activity-badge[data-kind="fix"] {
  border-color: color-mix(in srgb, var(--accent-violet) 28%, var(--line));
  background: color-mix(in srgb, var(--accent-violet) 9%, var(--surface));
  color: var(--accent-violet);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 26px 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  scrollbar-width: thin;
}

.table-wrap:focus-visible {
  outline-offset: 2px;
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th:last-child,
.prose td:last-child {
  border-right: 0;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose th {
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.03em;
}

.prose tr:hover td {
  background: color-mix(in srgb, var(--accent-mint) 6%, var(--surface));
}

.prose img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.prose img.locale-flag {
  display: inline-block;
  width: 22px;
  height: 16.5px;
  margin: 0 7px 0 0;
  border: 1px solid color-mix(in srgb, var(--text) 28%, transparent);
  border-radius: 3px;
  object-fit: cover;
  vertical-align: -3px;
  box-shadow: none;
}

.issue-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px 0 0;
  border: 1px solid color-mix(in srgb, var(--text) 42%, transparent);
  border-radius: 4px;
  background: var(--issue-color);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 24%);
  vertical-align: -2px;
}

.issue-swatch + .issue-swatch {
  margin-left: -3px;
}

.manual-figure {
  margin: 34px 0 42px;
}

.manual-figure figcaption {
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.prose hr {
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.source-note {
  display: flex;
  gap: 13px;
  margin-top: 58px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.source-note p {
  display: grid;
  margin: 0;
}

.source-note strong {
  color: var(--text);
}

.page-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.pager-link {
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.pager-link:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.pager-link span {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pager-link strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

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

.page-toc {
  min-width: 0;
}

.page-toc-inner {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  max-height: calc(100vh - var(--header-height) - 64px);
  overflow-y: auto;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  scrollbar-width: thin;
}

.page-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-toc nav {
  display: grid;
  gap: 2px;
}

.page-toc a {
  position: relative;
  padding: 5px 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
}

.page-toc a:hover,
.page-toc a.is-active {
  color: var(--text);
}

.page-toc a.is-active {
  font-weight: 760;
}

.page-toc a.is-active::before {
  position: absolute;
  left: -22px;
  width: 3px;
  height: 18px;
  border-radius: 3px;
  background: var(--accent-lime);
  content: "";
}

.toc-depth-3 {
  padding-left: 11px !important;
}

.toc-top {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 720;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 38px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 11px;
}

.mobile-scrim {
  display: none;
}

/* Search */
.search-dialog {
  width: min(700px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 64px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text);
  box-shadow: var(--shadow-float);
}

.search-dialog::backdrop {
  background: rgb(6 24 25 / 66%);
  backdrop-filter: blur(5px);
}

.search-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.search-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.search-input-wrap {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--canvas);
}

.search-input-wrap svg {
  flex: 0 0 auto;
  color: var(--text-secondary);
}

.search-input-wrap input {
  width: 100%;
  height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.search-input-wrap input::placeholder {
  color: var(--ink-400);
}

.search-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.search-close:hover {
  background: var(--surface-subtle);
}

.search-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.search-hint {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 650;
}

.search-hint span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}

.search-hint kbd {
  min-width: 19px;
  padding: 1px 4px;
  font-size: 9px;
}

.search-results {
  max-height: min(560px, calc(100vh - 230px));
  overflow-y: auto;
  padding: 8px;
  overscroll-behavior: contain;
}

.search-result {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 13px 12px;
  border-radius: 11px;
  color: var(--text);
  text-decoration: none;
}

.search-result:hover,
.search-result.is-selected {
  background: var(--surface-subtle);
}

.search-result-mark {
  width: 8px;
  height: 36px;
  border-radius: 99px;
  background: var(--page-accent, var(--accent-violet));
}

.search-result-copy {
  display: grid;
  min-width: 0;
}

.search-result-copy small {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-result-copy strong {
  font-size: 14px;
}

.search-result-copy span {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-arrow {
  color: var(--text-secondary);
  font-size: 18px;
}

.search-empty {
  display: grid;
  min-height: 210px;
  padding: 30px;
  place-items: center;
  color: var(--text-secondary);
  text-align: center;
}

.search-empty strong {
  color: var(--text);
}

/* Home */
.home-page .content-grid {
  display: block;
  width: min(100%, 1260px);
  padding: 32px 32px 96px;
}

.home-content {
  min-width: 0;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: 68px clamp(34px, 6vw, 84px);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  color: var(--text);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgb(216 241 59 / 23%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit-one {
  top: -330px;
  right: -160px;
  width: 680px;
  height: 680px;
}

.hero-orbit-two {
  right: 60px;
  bottom: -380px;
  width: 520px;
  height: 520px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 830px;
}

.hero-wordmark {
  display: block;
  width: min(220px, 62vw);
  height: auto;
  margin: 0 0 36px;
}

:root[data-theme="dark"] .hero-wordmark {
  content: url("manual/brand/avellio-wordmark-white.svg");
}

.hero-kicker {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-positioning {
  max-width: 630px;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.45;
}

.home-hero h1 {
  margin: 24px 0 22px;
  color: var(--text);
  font-size: clamp(50px, 6vw, 82px);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 0.93;
}

.home-hero h1 em {
  color: var(--accent-violet);
  font-style: normal;
}

.home-hero p {
  max-width: 630px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.58;
}

.hero-search {
  display: flex;
  width: min(100%, 480px);
  min-height: 56px;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding: 0 13px 0 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: #17393a;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.hero-search:hover {
  background: #f5f8f5;
}

.hero-search svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.hero-search span {
  flex: 1;
  font-weight: 650;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
  color: var(--text-secondary);
  font-size: 11px;
}

.hero-stats strong {
  margin-right: 4px;
  color: var(--text);
  font-size: 15px;
}

.hero-visual {
  min-height: 360px;
}

.audit-card {
  position: absolute;
  display: grid;
  border-radius: 18px;
  box-shadow: 0 28px 60px rgb(0 0 0 / 25%);
}

.audit-card-back {
  top: 0;
  right: -20px;
  width: 78%;
  min-height: 245px;
  align-content: end;
  padding: 26px;
  background: var(--accent-peach);
  color: #102f31;
  transform: rotate(6deg);
}

.audit-card-back span,
.audit-top span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.audit-card-back b {
  max-width: 180px;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.1;
}

.audit-card-front {
  bottom: 0;
  left: 0;
  width: 86%;
  min-height: 290px;
  align-content: center;
  padding: 30px;
  border: 1px solid rgb(255 255 255 / 50%);
  background: #fffdf8;
  color: #102f31;
  transform: rotate(-3deg);
}

.audit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  color: #486869;
}

.audit-top i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 0 4px rgb(216 241 59 / 30%);
}

.audit-card-front strong {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.audit-bars {
  display: flex;
  gap: 6px;
  margin-top: 28px;
}

.audit-bars span {
  width: 31%;
  height: 7px;
  border-radius: 99px;
  background: var(--accent-violet);
}

.audit-bars span:nth-child(2) { background: var(--accent-lime); }
.audit-bars span:nth-child(3) { background: var(--accent-mint); }

.home-section,
.library-section {
  padding: 94px 4px 10px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 32px;
}

.section-heading h2,
.workflow-copy h2 {
  margin: 9px 0 0;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 830;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.route-card {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.route-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.route-number {
  position: absolute;
  top: 23px;
  right: 25px;
  color: var(--ink-200);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.route-accent {
  display: block;
  width: 36px;
  height: 7px;
  margin-bottom: 45px;
  border-radius: 99px;
  background: var(--page-accent);
}

.route-card small {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.route-card h3 {
  margin: 8px 0 10px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.route-card p {
  max-width: 490px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.route-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(460px, 1.22fr);
  gap: 80px;
  margin-top: 94px;
  padding: 62px;
  border-radius: var(--radius-lg);
  background: var(--ink-950);
  color: var(--surface);
}

:root[data-theme="dark"] .workflow-section {
  background: #e7f0ed;
  color: #102f31;
}

.workflow-copy .section-kicker {
  color: var(--accent-lime);
}

.workflow-copy h2 {
  color: inherit;
}

.workflow-copy p {
  color: color-mix(in srgb, currentColor 72%, transparent);
  font-size: 14px;
}

.workflow-copy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: inherit;
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
}

.workflow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.workflow-steps li:last-child {
  border-bottom: 0;
}

.workflow-steps li > span {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-lime);
  color: #102f31;
  font-size: 13px;
  font-weight: 900;
  place-items: center;
}

.workflow-steps div {
  display: grid;
}

.workflow-steps strong {
  font-size: 16px;
}

.workflow-steps small {
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: 11px;
}

.library-list {
  border-top: 1px solid var(--line-strong);
}

.library-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 90px 80px;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.library-mark {
  width: 7px;
  height: 42px;
  border-radius: 99px;
  background: var(--page-accent);
}

.library-row > a:nth-child(2) {
  display: grid;
  color: var(--text);
  text-decoration: none;
}

.library-row > a:nth-child(2):hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.library-row small {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.library-row strong {
  font-size: 16px;
}

.library-row > span:nth-child(3) {
  color: var(--text-secondary);
  font-size: 11px;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.pdf-link:hover {
  color: var(--text);
}

.not-found {
  display: grid;
  max-width: 720px;
  min-height: calc(100vh - 300px);
  align-content: center;
  justify-items: start;
}

.not-found > span {
  color: var(--accent-violet);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.not-found h1 {
  margin: 10px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.not-found p {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 18px;
}

.not-found > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--ink-950);
  background: var(--ink-950);
  color: var(--surface);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 1280px) {
  .content-grid {
    display: block;
    width: min(100%, calc(var(--content-width) + 96px));
    padding-right: 48px;
    padding-left: 48px;
  }

  .page-toc {
    display: none;
  }
}

@media (max-width: 1020px) {
  :root {
    --sidebar-width: 274px;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .workflow-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 15px;
  }

  .version-pill {
    display: none;
  }

  .search-button {
    width: 42px;
    min-width: 42px;
    justify-content: center;
    padding: 0;
  }

  .search-button span,
  .search-button kbd {
    display: none;
  }

  .menu-button {
    display: grid;
  }

  .sidebar {
    z-index: 120;
    top: 0;
    width: min(340px, calc(100vw - 44px));
    box-shadow: var(--shadow-float);
    transform: translateX(-104%);
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .nav-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-heading {
    min-height: var(--header-height);
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-close {
    display: grid;
    place-items: center;
  }

  .mobile-scrim {
    position: fixed;
    z-index: 115;
    inset: 0;
    display: block;
    background: rgb(6 24 25 / 58%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .nav-open .mobile-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-open {
    overflow: hidden;
  }

  .main-content {
    margin-left: 0;
  }

  .content-grid,
  .home-page .content-grid {
    width: min(100%, 860px);
    padding: 48px 28px 74px;
  }

  .home-page .content-grid {
    padding-top: 24px;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 62px;
  }

  .topbar {
    gap: 10px;
  }

  .brand-logo {
    width: 96px;
    height: 35px;
    margin-right: 8px;
  }

  .brand-section {
    margin-left: 8px;
    padding-left: 8px;
    font-size: 12px;
  }

  .topbar-actions {
    gap: 5px;
  }

  .topbar-button,
  .icon-button,
  .search-button {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .content-grid,
  .home-page .content-grid {
    padding: 34px 18px 60px;
  }

  .home-page .content-grid {
    padding: 14px 12px 60px;
  }

  .breadcrumbs {
    margin-bottom: 24px;
  }

  .article-header h1 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .article-header > p {
    font-size: 16px;
  }

  .source-pdf {
    margin-bottom: 38px;
  }

  .source-arrow {
    display: none;
  }

  .prose {
    font-size: 15px;
    line-height: 1.74;
  }

  .prose h2 {
    margin-top: 46px;
    font-size: 25px;
  }

  .prose h3 {
    font-size: 19px;
  }

  .prose ul,
  .prose ol {
    padding-left: 21px;
  }

  .callout {
    padding: 17px 16px 17px 18px;
  }

  .page-pager {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    display: grid;
    padding: 22px 18px;
  }

  .home-hero {
    min-height: 560px;
    padding: 48px 24px;
    border-radius: 16px;
  }

  .home-hero h1 {
    font-size: clamp(47px, 15vw, 66px);
  }

  .home-hero p {
    font-size: 16px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .hero-stats span {
    display: grid;
  }

  .home-section,
  .library-section {
    padding-top: 68px;
  }

  .section-heading {
    display: grid;
    gap: 18px;
  }

  .route-grid {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 270px;
    padding: 25px;
  }

  .workflow-section {
    margin-top: 68px;
    padding: 34px 24px;
    border-radius: 16px;
  }

  .library-row {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 0;
  }

  .library-row > span:nth-child(3) {
    display: none;
  }

  .pdf-link {
    font-size: 0;
  }

  .pdf-link svg {
    width: 21px;
    height: 21px;
  }

  .search-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 16px;
  }

  .search-panel {
    border-radius: 16px;
  }

  .search-hint span:last-child {
    display: none;
  }

  .search-results {
    max-height: calc(100vh - 170px);
  }
}

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

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

@media print {
  .topbar,
  .sidebar,
  .page-toc,
  .source-pdf,
  .page-pager,
  .site-footer,
  .reading-progress {
    display: none !important;
  }

  .docs-shell {
    padding-top: 0;
  }

  .main-content {
    margin-left: 0;
  }

  .content-grid {
    display: block;
    width: auto;
    padding: 0;
  }

  .doc-article {
    max-width: none;
  }

  body {
    background: #ffffff;
    color: #111312;
    font-size: 11pt;
  }
}

/* AVELLIO TOKEN STUDIO:START */
/* Generated by Avellio Token Studio · Online manual adapter */
:root {
  --ink-950: #1F3528;
  --ink-900: #0F3032;
  --ink-800: #193D3F;
  --ink-700: #284E50;
  --ink-600: #3C5A5C;
  --ink-400: #798E8F;
  --ink-200: #ACBABA;
  --ink-100: #C3CDCB;
  --canvas: #F4F3EE;
  --surface: #FFFDF8;
  --surface-raised: #FFFFFF;
  --text: #1F3528;
  --text-secondary: #3C5A5C;
  --text-inverse: #FFFFFF;
  --accent-lime: #F3FF99;
  --accent-mint: #93EDB7;
  --accent-violet: #567AE6;
  --accent-lavender: #E2C1E9;
  --accent-peach: #FDB76A;
  --accent-coral: #FC624C;
  --accent-sky: #5CCFF5;
  --accent-blue: #1B62E1;
  --success: #1C7A4F;
  --warning: #FF8400;
  --critical: #B63844;
  --info: #245DB7;
  --content-width: 720px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --font-sans: "DM Sans", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --shadow-float: 0px 28px 70px -8px #102F3138;
}
/* AVELLIO TOKEN STUDIO:END */
