/* ==========================================================================
   VegasX Documentation — premium offline guide
   Brand-matched to the VegasX WordPress theme UI. No external fonts.
   ========================================================================== */

:root {
  /* Brand palette (mirrors the theme) */
  --vx-c-bg: #050614;
  --vx-c-bg-2: #0a0c20;
  --vx-c-surface: #0f1027;
  --vx-c-surface-2: #161a36;
  --vx-c-border: rgba(255, 255, 255, 0.08);
  --vx-c-border-2: rgba(255, 255, 255, 0.14);
  --vx-c-text: #e9ecff;
  --vx-c-muted: #8a90b8;
  --vx-c-muted-2: #5d6394;
  --vx-c-primary: #ff0080;
  --vx-c-primary-soft: #ff6eb4;
  --vx-c-secondary: #00e5ff;
  --vx-c-tertiary: #b6ff00;
  --vx-c-violet: #8a2be2;

  /* Type */
  --vx-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --vx-font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --vx-font-logo: Georgia, "Times New Roman", "Palatino Linotype", Palatino, serif;
  --vx-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Shape */
  --vx-radius: 12px;
  --vx-radius-lg: 18px;
  --vx-radius-sm: 8px;
  --vx-btn-radius: 10px;

  --vx-grad-primary: linear-gradient(135deg, #ff0080 0%, #ff4d97 52%, #ff0080 100%);
  --vx-grad-accent: linear-gradient(90deg, #ff0080, #00e5ff);
  --vx-glow-primary: 0 10px 28px -14px rgba(255, 0, 128, 0.5);

  --vx-transition: 240ms cubic-bezier(0.2, 0.65, 0.25, 1);
  --vx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Metrics */
  --vx-sidebar: 296px;
  --vx-content: 860px;
  --vx-section-gap: clamp(2.75rem, 5vw, 4.25rem);
  --vx-progress-h: 3px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--vx-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--vx-c-text);
  background: var(--vx-c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-drawer-open {
  overflow: hidden;
}

/* Atmospheric wash — one soft pink bloom, one cool bloom. No rainbow stacks. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 42% at 2% -10%, rgba(255, 0, 128, 0.11), transparent 60%),
    radial-gradient(ellipse 46% 34% at 100% 2%, rgba(0, 229, 255, 0.05), transparent 55%),
    linear-gradient(180deg, var(--vx-c-bg) 0%, var(--vx-c-bg-2) 100%);
}

::selection {
  background: var(--vx-c-primary);
  color: #fff;
}

a {
  color: var(--vx-c-secondary);
  text-decoration: none;
  transition: color var(--vx-transition);
}

a:hover,
a:focus-visible {
  color: var(--vx-c-primary-soft);
}

:focus-visible {
  outline: 2px solid var(--vx-c-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

hr {
  margin: 2.25rem 0;
  border: 0;
  border-top: 1px solid var(--vx-c-border);
}

/* --------------------------------------------------------------------------
   Inline code / keys
   -------------------------------------------------------------------------- */

code,
kbd,
pre,
samp {
  font-family: var(--vx-mono);
  font-size: 0.875em;
}

code,
kbd {
  padding: 0.14em 0.42em;
  border: 1px solid var(--vx-c-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--vx-c-tertiary);
  word-break: break-word;
}

kbd {
  color: var(--vx-c-secondary);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

pre {
  margin: 0;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--vx-c-border);
  border-radius: var(--vx-radius);
  background: var(--vx-c-surface);
  line-height: 1.6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

pre + p,
pre + ul,
pre + ol {
  margin-top: 1.1rem;
}

pre code {
  padding: 0;
  border: 0;
  background: none;
  color: #d9def7;
  font-size: 0.9em;
}

/* --------------------------------------------------------------------------
   Reading progress
   -------------------------------------------------------------------------- */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: var(--vx-progress-h);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.04);
}

.reading-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--vx-grad-accent);
  transition: width 90ms linear;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.layout {
  display: grid;
  grid-template-columns: var(--vx-sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 80;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.6rem 1rem;
  border-radius: var(--vx-btn-radius);
  background: var(--vx-c-surface-2);
  color: #fff;
  border: 1px solid var(--vx-c-border-2);
}

/* --------------------------------------------------------------------------
   Sidebar (sticky glass)
   -------------------------------------------------------------------------- */

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.35rem 0.85rem 0;
  border-right: 1px solid var(--vx-c-border);
  background: linear-gradient(180deg, rgba(15, 16, 39, 0.94) 0%, rgba(5, 6, 20, 0.965) 100%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.sidebar__top {
  flex-shrink: 0;
  padding: 0 0.45rem 1rem;
}

.brand {
  display: block;
  margin: 0 0 1.05rem;
  padding: 0.15rem 0.2rem 1rem;
  border-bottom: 1px solid var(--vx-c-border);
  color: inherit;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: inherit;
}

.brand__lockup {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--vx-font-logo);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.brand__x {
  margin-left: 0.05em;
  font-size: 1.2em;
  font-weight: 500;
  color: var(--vx-c-primary-soft);
}

.brand__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  color: var(--vx-c-muted-2);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.brand__version {
  padding: 0.14rem 0.4rem;
  border: 1px solid rgba(255, 0, 128, 0.32);
  border-radius: 5px;
  background: rgba(255, 0, 128, 0.09);
  color: var(--vx-c-primary-soft);
  font-family: var(--vx-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.search-wrap {
  position: relative;
}

.search {
  width: 100%;
  padding: 0.7rem 2.1rem 0.7rem 0.85rem;
  border: 1px solid var(--vx-c-border);
  border-radius: var(--vx-btn-radius);
  background: var(--vx-c-surface);
  color: var(--vx-c-text);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--vx-transition), box-shadow var(--vx-transition), background var(--vx-transition);
}

.search::placeholder {
  color: var(--vx-c-muted-2);
}

.search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search:hover {
  border-color: var(--vx-c-border-2);
}

.search:focus {
  border-color: rgba(0, 229, 255, 0.4);
  background: var(--vx-c-surface-2);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  display: none;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--vx-c-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: color var(--vx-transition), background var(--vx-transition);
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.search-wrap.has-value .search-clear {
  display: block;
}

.search-count {
  display: none;
  margin: 0.55rem 0 0;
  color: var(--vx-c-muted-2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.search-count.is-visible {
  display: block;
}

/* Nav — one accent rail on active item */
.nav {
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.15rem 0.35rem 2rem;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 26px), transparent 100%);
}

.nav::-webkit-scrollbar {
  width: 5px;
}

.nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.nav .group {
  margin: 1.3rem 0.55rem 0.4rem;
  color: var(--vx-c-muted-2);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav .group:first-child {
  margin-top: 0.35rem;
}

.nav a {
  position: relative;
  padding: 0.45rem 0.7rem 0.45rem 0.85rem;
  border-radius: 8px;
  color: var(--vx-c-muted);
  font-size: 0.865rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--vx-transition), background var(--vx-transition);
}

.nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  border-radius: 2px;
  background: var(--vx-c-primary);
  transform: translateY(-50%);
  opacity: 0;
  transition: height var(--vx-transition), opacity var(--vx-transition);
}

.nav a:hover {
  color: var(--vx-c-text);
  background: rgba(255, 255, 255, 0.035);
}

.nav a.active {
  color: #fff;
  background: rgba(255, 0, 128, 0.09);
}

.nav a.active::before {
  height: 56%;
  opacity: 1;
}

.nav a.is-hidden,
.nav .group.is-hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   Content shell
   -------------------------------------------------------------------------- */

.content {
  position: relative;
  min-width: 0;
  padding: calc(clamp(1.85rem, 3.8vw, 3rem) + var(--vx-progress-h)) clamp(1.35rem, 5vw, 4rem) 5.5rem;
}

.content > .hero,
.content > .doc-chapter,
.content > section,
.content > .no-results {
  max-width: var(--vx-content);
}

/* --------------------------------------------------------------------------
   Hero (open, section-style)
   -------------------------------------------------------------------------- */

.hero {
  margin: 0 0 clamp(2.25rem, 3.8vw, 3.25rem);
  padding: 0.2rem 0 2.25rem;
  border-bottom: 1px solid var(--vx-c-border);
}

.eyebrow,
.hero-kicker {
  display: block;
  margin: 0 0 0.85rem;
  color: var(--vx-c-tertiary);
  font-family: var(--vx-font-head);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-family: var(--vx-font-head);
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero h1 .accent,
.hero h1 span {
  background: var(--vx-grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0;
  max-width: 56ch;
  color: var(--vx-c-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero__lead strong {
  color: var(--vx-c-text);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin-top: 1.4rem;
  color: var(--vx-c-muted-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  font: inherit;
}

.pill:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin: 0 0.85rem;
  background: var(--vx-c-border-2);
  vertical-align: -0.1em;
}

.pill--live {
  color: var(--vx-c-tertiary);
}

.pill--live::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--vx-c-tertiary);
  box-shadow: 0 0 0 3px rgba(182, 255, 0, 0.12);
}

/* Buttons */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.74rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--vx-btn-radius);
  font-family: var(--vx-font-head);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--vx-ease-out), box-shadow var(--vx-transition),
    background var(--vx-transition), border-color var(--vx-transition), color var(--vx-transition);
}

.btn--primary {
  background: var(--vx-grad-primary);
  color: #fff;
  box-shadow: var(--vx-glow-primary);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(255, 0, 128, 0.65);
}

.btn--ghost {
  border-color: var(--vx-c-border-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--vx-c-text);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(0, 229, 255, 0.42);
  background: rgba(0, 229, 255, 0.06);
  color: #fff;
}

.btn__arrow {
  font-size: 1.05em;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Jump grid (hero quick links) — compact, border-only, no shadow stacks
   -------------------------------------------------------------------------- */

.jump-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.65rem 0 0;
}

.jump-card {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--vx-c-border);
  border-radius: var(--vx-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--vx-transition), background var(--vx-transition), color var(--vx-transition);
}

.jump-card:hover,
.jump-card:focus-visible {
  border-color: rgba(255, 0, 128, 0.45);
  background: rgba(255, 0, 128, 0.04);
  color: inherit;
}

.jump-card:nth-child(even):hover,
.jump-card:nth-child(even):focus-visible {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.04);
}

.jump-card__title {
  display: block;
  margin: 0 0 0.28rem;
  color: #fff;
  font-family: var(--vx-font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.jump-card__desc,
.jump-card p {
  margin: 0;
  color: var(--vx-c-muted-2);
  font-size: 0.8rem;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   TOC strip — horizontal wrap of text links under hero actions
   -------------------------------------------------------------------------- */

.toc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.toc-strip a {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  color: var(--vx-c-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border-radius: 5px;
  transition: color var(--vx-transition), background var(--vx-transition);
}

.toc-strip a:hover,
.toc-strip a:focus-visible {
  color: var(--vx-c-secondary);
  background: rgba(0, 229, 255, 0.06);
}

.toc-strip li:not(:last-child)::after {
  content: "·";
  margin-left: 0.15rem;
  color: var(--vx-c-muted-2);
  font-weight: 400;
  pointer-events: none;
}

/* When toc-strip is a bare container of links (no list) */
.toc-strip > a + a::before {
  content: "·";
  margin-right: 0.55rem;
  margin-left: 0.15rem;
  color: var(--vx-c-muted-2);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   Kbd hint — muted search shortcut line
   -------------------------------------------------------------------------- */

.kbd-hint {
  margin: 1rem 0 0;
  color: var(--vx-c-muted-2);
  font-size: 0.78rem;
  line-height: 1.5;
}

.kbd-hint kbd {
  margin: 0 0.15em;
  padding: 0.12em 0.4em;
  font-size: 0.92em;
}

/* --------------------------------------------------------------------------
   Chapters & sections
   -------------------------------------------------------------------------- */

.chapter-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: clamp(3.15rem, 5.5vw, 4.5rem) 0 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--vx-c-border);
}

.doc-chapter:first-of-type .chapter-head {
  margin-top: 0;
}

.chapter-head__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.05rem;
  height: 2.05rem;
  border: 1px solid rgba(255, 0, 128, 0.38);
  border-radius: var(--vx-radius-sm);
  background: rgba(255, 0, 128, 0.09);
  color: var(--vx-c-primary-soft);
  font-family: var(--vx-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.chapter-head__title {
  margin: 0;
  font-family: var(--vx-font-head);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.chapter-head__sub {
  display: block;
  margin-top: 0.22rem;
  color: var(--vx-c-muted-2);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}

section {
  margin: var(--vx-section-gap) 0;
  scroll-margin-top: 1.75rem;
}

.doc-chapter > section:first-of-type {
  margin-top: 2rem;
}

h2 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--vx-font-head);
  font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

.sec-num {
  flex-shrink: 0;
  color: var(--vx-c-primary);
  font-family: var(--vx-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

/* Lead under h2 */
.lede,
.lead {
  margin: 0 0 1.25rem;
  color: var(--vx-c-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.lede {
  max-width: 62ch;
}

/* Section meta chips (time estimate, etc.) */
.section-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: -0.35rem 0 1.25rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--vx-c-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--vx-c-muted-2);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.meta-chip--accent {
  border-color: rgba(255, 0, 128, 0.28);
  color: var(--vx-c-primary-soft);
  background: rgba(255, 0, 128, 0.06);
}

h3 {
  margin: 1.9rem 0 0.55rem;
  font-family: var(--vx-font-head);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

h3::after {
  content: "";
  display: block;
  width: 1.75rem;
  height: 2px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--vx-c-primary), rgba(255, 0, 128, 0));
}

h4 {
  margin: 1.5rem 0 0.45rem;
  font-family: var(--vx-font-head);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--vx-c-text);
}

p {
  margin: 0 0 1.05em;
  color: var(--vx-c-muted);
}

li {
  color: var(--vx-c-muted);
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.38rem;
}

ul > li::marker {
  color: var(--vx-c-muted-2);
}

ol > li::marker {
  color: var(--vx-c-muted-2);
  font-weight: 700;
}

strong {
  color: var(--vx-c-text);
  font-weight: 700;
}

em {
  color: var(--vx-c-muted);
}

/* Anchor links on headings */
.heading-anchor {
  margin-left: 0.45rem;
  color: var(--vx-c-muted-2);
  font-size: 0.72em;
  font-weight: 700;
  opacity: 0;
  text-decoration: none;
  transition: opacity var(--vx-transition), color var(--vx-transition);
}

h2:hover .heading-anchor,
h3:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.heading-anchor:hover {
  color: var(--vx-c-primary-soft);
}

/* --------------------------------------------------------------------------
   .path — admin click-path chips  (e.g. VegasX → Dashboard)
   -------------------------------------------------------------------------- */

.path {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  color: var(--vx-c-text);
  font-family: var(--vx-font-head);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: baseline;
}

.path > span + span::before {
  content: "→";
  display: inline-block;
  margin: 0 0.42rem;
  color: var(--vx-c-primary);
  font-weight: 400;
  opacity: 0.8;
}

.path--wrap {
  white-space: normal;
}

.path--block {
  display: inline-flex;
  margin: 0.15rem 0 1.1rem;
}

.path-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0 0 1.2rem;
}

.path-row__label {
  color: var(--vx-c-muted-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Grids & feature cards
   -------------------------------------------------------------------------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.25rem 0 1.5rem;
}

.grid-2 > * {
  margin: 0;
}

.panel {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--vx-c-border);
  border-radius: var(--vx-radius);
  background: rgba(15, 16, 39, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.panel__title {
  margin: 0 0 0.5rem;
  color: #fff;
  font-family: var(--vx-font-head);
  font-size: 0.93rem;
  font-weight: 700;
}

.panel > :last-child {
  margin-bottom: 0;
}

.panel ul,
.panel ol {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin: 1.35rem 0 1.6rem;
}

.feature {
  position: relative;
  padding: 1.05rem 1.1rem 1.1rem;
  border: 1px solid var(--vx-c-border);
  border-radius: var(--vx-radius);
  background: rgba(15, 16, 39, 0.5);
  transition: border-color var(--vx-transition), background var(--vx-transition);
}

.feature:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(22, 26, 54, 0.55);
}

.feature__dot {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--vx-c-primary);
}

.feature:nth-child(3n + 2) .feature__dot {
  background: var(--vx-c-secondary);
}

.feature:nth-child(3n + 3) .feature__dot {
  background: var(--vx-c-tertiary);
}

.feature__title {
  margin: 0 0 0.35rem;
  color: #fff;
  font-family: var(--vx-font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.feature p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Callouts
   -------------------------------------------------------------------------- */

.callout,
.note,
.warn,
.tip {
  position: relative;
  margin: 1.4rem 0;
  padding: 1rem 1.2rem 1rem 1.25rem;
  border: 1px solid var(--vx-c-border);
  border-left-width: 3px;
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.02);
  color: var(--vx-c-muted);
  line-height: 1.62;
}

.callout > :last-child,
.note > :last-child,
.warn > :last-child,
.tip > :last-child {
  margin-bottom: 0;
}

.callout__title {
  display: block;
  margin: 0 0 0.3rem;
  font-family: var(--vx-font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.callout strong,
.note strong,
.warn strong,
.tip strong {
  color: #fff;
}

.callout--note,
.note {
  border-left-color: var(--vx-c-secondary);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.05), rgba(255, 255, 255, 0.015) 44%);
}

.callout--note .callout__title {
  color: var(--vx-c-secondary);
}

.callout--tip,
.tip {
  border-left-color: var(--vx-c-tertiary);
  background: linear-gradient(90deg, rgba(182, 255, 0, 0.05), rgba(255, 255, 255, 0.015) 44%);
}

.callout--tip .callout__title {
  color: var(--vx-c-tertiary);
}

.callout--warn,
.warn {
  border-left-color: var(--vx-c-primary);
  background: linear-gradient(90deg, rgba(255, 0, 128, 0.06), rgba(255, 255, 255, 0.015) 44%);
}

.callout--warn .callout__title {
  color: var(--vx-c-primary-soft);
}

.callout--legal {
  border-left-color: var(--vx-c-violet);
  background: linear-gradient(90deg, rgba(138, 43, 226, 0.1), rgba(255, 255, 255, 0.015) 44%);
}

.callout--legal .callout__title {
  color: #c79bff;
}

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */

.faq {
  margin: 1.35rem 0 1.6rem;
  border: 1px solid var(--vx-c-border);
  border-radius: var(--vx-radius);
  overflow: hidden;
  background: rgba(15, 16, 39, 0.4);
}

.faq-item,
details.faq-item {
  border-bottom: 1px solid var(--vx-c-border);
}

.faq-item:last-child,
details.faq-item:last-child {
  border-bottom: 0;
}

.faq-item > summary,
details.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  cursor: pointer;
  list-style: none;
  color: #fff;
  font-family: var(--vx-font-head);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.4;
  transition: background var(--vx-transition), color var(--vx-transition);
}

.faq-item > summary::-webkit-details-marker,
details.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after,
details.faq-item > summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--vx-c-muted);
  border-bottom: 1.5px solid var(--vx-c-muted);
  transform: rotate(45deg);
  transition: transform var(--vx-transition), border-color var(--vx-transition);
}

.faq-item[open] > summary::after,
details.faq-item[open] > summary::after {
  transform: rotate(-135deg);
  border-color: var(--vx-c-secondary);
}

.faq-item > summary:hover,
details.faq-item > summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-item[open] > summary,
details.faq-item[open] > summary {
  border-bottom: 1px solid var(--vx-c-border);
  background: rgba(255, 255, 255, 0.02);
}

.faq-item > :not(summary),
details.faq-item > :not(summary) {
  padding: 0 1.15rem 1.05rem;
  color: var(--vx-c-muted);
  font-size: 0.935rem;
  line-height: 1.62;
}

.faq-item > :not(summary):last-child,
details.faq-item > :not(summary):last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Glossary
   -------------------------------------------------------------------------- */

.glossary,
dl.glossary {
  margin: 1.35rem 0 1.6rem;
  padding: 0;
}

.glossary dt,
dl.glossary dt {
  margin: 1.15rem 0 0.35rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--vx-c-border);
  color: #fff;
  font-family: var(--vx-font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.glossary dt:first-child,
dl.glossary dt:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.glossary dd,
dl.glossary dd {
  margin: 0 0 0.15rem;
  padding: 0;
  color: var(--vx-c-muted);
  font-size: 0.935rem;
  line-height: 1.62;
}

.glossary dd + dd,
dl.glossary dd + dd {
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   Screenshot placeholder
   -------------------------------------------------------------------------- */

.shot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.35rem 0 1.5rem;
  padding: 2.25rem 1.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--vx-radius);
  background:
    linear-gradient(135deg, rgba(255, 0, 128, 0.03) 0%, transparent 42%),
    rgba(15, 16, 39, 0.35);
  color: var(--vx-c-muted-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.5;
}

.shot::before {
  content: "";
  flex-shrink: 0;
  width: 1.1rem;
  height: 0.85rem;
  margin-right: 0.65rem;
  border: 1.5px solid var(--vx-c-muted-2);
  border-radius: 2px;
  opacity: 0.7;
  background: linear-gradient(135deg, transparent 55%, var(--vx-c-muted-2) 55%, var(--vx-c-muted-2) 70%, transparent 70%),
    radial-gradient(circle at 30% 35%, var(--vx-c-muted-2) 0 12%, transparent 13%);
  background-size: 100% 100%;
}

/* --------------------------------------------------------------------------
   Labeled code blocks
   -------------------------------------------------------------------------- */

.code-block {
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--vx-c-border);
  border-radius: var(--vx-radius);
  background: var(--vx-c-surface);
  overflow: hidden;
}

.code-block__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 1rem;
  border-bottom: 1px solid var(--vx-c-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--vx-c-muted);
  font-family: var(--vx-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.code-block__label > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-block__label > span:first-child::before {
  content: "";
  flex-shrink: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--vx-c-secondary);
  opacity: 0.7;
}

.code-block pre {
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.code-copy {
  flex-shrink: 0;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--vx-c-border-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--vx-c-muted);
  font-family: var(--vx-font-head);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--vx-transition), border-color var(--vx-transition), background var(--vx-transition);
}

.code-copy:hover {
  border-color: rgba(255, 0, 128, 0.45);
  background: rgba(255, 0, 128, 0.08);
  color: #fff;
}

.code-copy.is-done {
  border-color: rgba(182, 255, 0, 0.45);
  background: rgba(182, 255, 0, 0.08);
  color: var(--vx-c-tertiary);
}

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */

.checklist {
  list-style: none;
  margin: 1.2rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.checklist li {
  position: relative;
  margin: 0;
  padding: 0 0 0 2rem;
  color: var(--vx-c-muted);
  line-height: 1.55;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.14em;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1px solid rgba(182, 255, 0, 0.35);
  border-radius: 6px;
  background: rgba(182, 255, 0, 0.08);
  color: var(--vx-c-tertiary);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.checklist--boxed li {
  padding: 0.8rem 1rem 0.8rem 2.85rem;
  border: 1px solid var(--vx-c-border);
  border-radius: var(--vx-radius);
  background: rgba(15, 16, 39, 0.55);
}

.checklist--boxed li::before {
  left: 0.95rem;
  top: 0.9rem;
}

/* --------------------------------------------------------------------------
   .flow — numbered workflow with rail
   -------------------------------------------------------------------------- */

.flow {
  counter-reset: flow;
  list-style: none;
  position: relative;
  margin: 1.5rem 0 1.85rem;
  padding: 0 0 0 3rem;
}

.flow::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.55rem;
  bottom: 0.85rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 0, 128, 0.45), rgba(0, 229, 255, 0.22), rgba(255, 255, 255, 0.04));
}

.flow > li {
  counter-increment: flow;
  position: relative;
  margin: 0 0 1.35rem;
  padding: 0;
}

.flow > li:last-child {
  margin-bottom: 0;
}

.flow > li::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute;
  left: -3rem;
  top: -0.08rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 0, 128, 0.4);
  border-radius: 50%;
  background: var(--vx-c-surface);
  color: #fff;
  font-family: var(--vx-mono);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 4px rgba(5, 6, 20, 0.92);
}

.flow__title {
  margin: 0 0 0.3rem;
  color: #fff;
  font-family: var(--vx-font-head);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.flow p {
  margin: 0 0 0.55rem;
  font-size: 0.93rem;
  line-height: 1.62;
}

.flow > li > :last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Steps (ordered, boxed)
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  list-style: none;
  margin: 1.2rem 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 0.95rem 1.15rem 0.95rem 3.15rem;
  border: 1px solid var(--vx-c-border);
  border-radius: var(--vx-radius);
  background: var(--vx-c-surface);
  color: var(--vx-c-muted);
  line-height: 1.6;
  transition: border-color var(--vx-transition), background var(--vx-transition);
}

.steps li:hover {
  border-color: rgba(255, 0, 128, 0.22);
  background: linear-gradient(90deg, rgba(255, 0, 128, 0.04), var(--vx-c-surface) 58%);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.95rem;
  top: 0.95rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(255, 0, 128, 0.45);
  border-radius: 50%;
  background: rgba(255, 0, 128, 0.1);
  color: #fff;
  font-family: var(--vx-mono);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.steps li > :last-child {
  margin-bottom: 0;
}

.steps--plain li {
  padding-left: 2.3rem;
  border: 0;
  border-radius: 0;
  background: none;
}

.steps--plain li:hover {
  background: none;
}

.steps--plain li::before {
  left: 0;
  top: 0.8rem;
  width: 1.3rem;
  height: 1.3rem;
  font-size: 0.64rem;
}

/* --------------------------------------------------------------------------
   Tables — sticky header feel
   -------------------------------------------------------------------------- */

.table-wrap {
  margin: 1.25rem 0 1.6rem;
  overflow-x: auto;
  border: 1px solid var(--vx-c-border);
  border-radius: var(--vx-radius);
  background: rgba(15, 16, 39, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  -webkit-overflow-scrolling: touch;
}

.table-wrap__label {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--vx-c-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--vx-c-muted-2);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--vx-c-border);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(15, 16, 39, 0.97);
  color: var(--vx-c-text);
  font-family: var(--vx-font-head);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 0, 128, 0.35);
}

thead th::after {
  content: none;
}

td {
  color: var(--vx-c-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

td:first-child {
  color: var(--vx-c-text);
  font-weight: 600;
}

td code {
  white-space: nowrap;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

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

/* Field reference tables: wide "what to enter" column */
.table--fields td:first-child {
  width: 34%;
  min-width: 170px;
}

.table--3 td:first-child {
  width: 26%;
}

.req {
  display: inline-block;
  margin-left: 0.3rem;
  color: var(--vx-c-primary-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

/* --------------------------------------------------------------------------
   Search empty state / footer / back to top
   -------------------------------------------------------------------------- */

.no-results {
  display: none;
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  border: 1px dashed var(--vx-c-border-2);
  border-radius: var(--vx-radius);
  background: rgba(15, 16, 39, 0.45);
  color: var(--vx-c-muted);
}

.no-results.is-visible {
  display: block;
}

.no-results strong {
  color: #fff;
}

.doc-footer {
  max-width: var(--vx-content);
  margin-top: 3.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--vx-c-border);
  color: var(--vx-c-muted-2);
  font-size: 0.875rem;
  line-height: 1.65;
}

.footer {
  margin-top: 2.75rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--vx-c-border);
  color: var(--vx-c-muted-2);
  font-size: 0.875rem;
  line-height: 1.65;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 44;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--vx-c-border-2);
  border-radius: 50%;
  background: rgba(15, 16, 39, 0.88);
  color: var(--vx-c-muted);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity var(--vx-transition), visibility var(--vx-transition),
    transform var(--vx-transition), color var(--vx-transition), border-color var(--vx-transition),
    background var(--vx-transition);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover,
.to-top:focus-visible {
  border-color: rgba(255, 0, 128, 0.5);
  background: rgba(255, 0, 128, 0.1);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */

.menu-toggle {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(255, 0, 128, 0.5);
  border-radius: var(--vx-btn-radius);
  background: rgba(15, 16, 39, 0.94);
  color: #fff;
  font-family: var(--vx-font-head);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--vx-transition), background var(--vx-transition),
    transform 180ms var(--vx-ease-out);
}

.menu-toggle:hover {
  border-color: rgba(255, 0, 128, 0.85);
  background: rgba(255, 0, 128, 0.12);
}

.menu-toggle:active {
  transform: translateY(1px);
}

.menu-toggle__icon {
  position: relative;
  display: inline-block;
  width: 1rem;
  height: 0.7rem;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after,
.menu-toggle__icon span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 200ms var(--vx-ease-out), opacity 160ms ease;
}

.menu-toggle__icon span {
  top: 50%;
  margin-top: -1px;
}

.menu-toggle__icon::before {
  top: 0;
}

.menu-toggle__icon::after {
  bottom: 0;
}

body.is-drawer-open .menu-toggle__icon span {
  opacity: 0;
}

body.is-drawer-open .menu-toggle__icon::before {
  top: 50%;
  margin-top: -1px;
  transform: rotate(45deg);
}

body.is-drawer-open .menu-toggle__icon::after {
  bottom: 50%;
  margin-bottom: -1px;
  transform: rotate(-45deg);
}

.drawer-backdrop {
  display: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  :root {
    --vx-sidebar: 268px;
  }
}

@media (min-width: 720px) {
  .jump-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(2, 3, 12, 0.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms var(--vx-ease-out), visibility 220ms;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .drawer-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(88vw, 312px);
    transform: translateX(-104%);
    border-right: 1px solid var(--vx-c-border-2);
    background: rgba(5, 6, 20, 0.985);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.45);
    transition: transform 280ms var(--vx-ease-out);
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .to-top {
    right: 1rem;
    bottom: 4.5rem;
  }

  .content {
    padding-top: calc(1.55rem + var(--vx-progress-h));
    padding-bottom: 6.25rem;
  }

  .hero {
    padding-bottom: 1.85rem;
  }

  .jump-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chapter-head {
    margin-top: 2.75rem;
  }

  h2 {
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
  }

  .flow {
    padding-left: 2.6rem;
  }

  .flow::before {
    left: 0.88rem;
  }

  .flow > li::before {
    left: -2.6rem;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.64rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15.5px;
  }

  .path {
    white-space: normal;
  }

  .feature-grid,
  .jump-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc-strip {
    margin-top: 1.15rem;
  }

  .shot {
    padding: 1.75rem 1.15rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reading-progress__bar {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  body {
    background: #fff;
    color: #111;
  }

  body::before,
  .sidebar,
  .menu-toggle,
  .reading-progress,
  .to-top,
  .drawer-backdrop,
  .code-copy,
  .heading-anchor,
  .kbd-hint {
    display: none !important;
  }

  .layout {
    display: block;
  }

  .content {
    padding: 0;
  }

  .content > .hero,
  .content > .doc-chapter,
  .content > section,
  .doc-footer {
    max-width: none;
  }

  h1,
  h2,
  h3,
  h4,
  strong,
  td:first-child,
  .jump-card__title,
  .glossary dt,
  dl.glossary dt,
  .faq-item > summary,
  details.faq-item > summary {
    color: #000;
  }

  p,
  li,
  td,
  .lede,
  .lead,
  .jump-card__desc,
  .glossary dd,
  dl.glossary dd {
    color: #222;
  }

  .hero h1 .accent,
  .hero h1 span {
    -webkit-text-fill-color: #c1006a;
    color: #c1006a;
  }

  section,
  .faq-item,
  details.faq-item {
    page-break-inside: avoid;
  }

  .panel,
  .feature,
  .jump-card,
  .steps li,
  .table-wrap,
  pre,
  .code-block,
  .faq,
  .shot {
    border-color: #ccc;
    background: #fff;
  }

  .shot {
    border-style: dashed;
    color: #555;
  }

  .shot::before {
    display: none;
  }

  .meta-chip {
    border-color: #ccc;
    background: #f5f5f5;
    color: #444;
  }

  .faq-item > summary::after,
  details.faq-item > summary::after {
    display: none;
  }

  .faq-item,
  details.faq-item {
    border-color: #ddd;
  }

  .faq-item[open] > summary,
  details.faq-item[open] > summary {
    border-bottom-color: #ddd;
  }

  th {
    position: static;
    background: #f0f0f0;
    box-shadow: none;
    color: #000;
  }

  a {
    color: #0a6;
  }

  .toc-strip a {
    color: #333;
  }
}
