/* ==========================================================================
   VintageAuth documentation
   Protocol-style docs layout wearing the landing page's chrome/glass skin:
   black canvas, silver gradient type, hairline borders, conic glow borders
   and shine sweeps. All rules are scoped to #vadocs.
   ========================================================================== */

body:has(#vadocs) { background: #000 !important; }
html:has(#vadocs) { scroll-behavior: smooth; }
/* Anchor jumps are offset per target (never via scroll-padding on the scroller)
   so the scroll spy can measure exactly where a heading parks. */
#vadocs [id] { scroll-margin-top: 6rem; }

@property --start {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

#vadocs {
  --bg: #000;
  --fg: #ffffff;
  --body: #a3a3a3;
  --muted: #737373;
  --line: rgba(255, 255, 255, .1);
  --line-faint: rgba(255, 255, 255, .075);
  --line-soft: rgba(255, 255, 255, .05);
  --line-hair: rgba(255, 255, 255, .025);
  --surface: rgba(255, 255, 255, .04);
  --surface-hover: rgba(255, 255, 255, .07);
  --tile: #0e0e0e;
  --code-bg: rgba(255, 255, 255, .06);
  --sidebar-w: 18rem;

  --text-grad: radial-gradient(61.17% 178.53% at 38.83% -13.54%, #3B3B3B 0%, #888787 12.61%, #FFFFFF 50%, #888787 80%, #3B3B3B 100%);
  --glow-grad: radial-gradient(circle, #dd7bbb 10%, #dd7bbb00 20%),
    radial-gradient(circle at 40% 40%, #d79f1e 5%, #d79f1e00 15%),
    radial-gradient(circle at 60% 60%, #5a922c 10%, #5a922c00 20%),
    radial-gradient(circle at 40% 60%, #4c7894 10%, #4c789400 20%),
    repeating-conic-gradient(from 236.84deg at 50% 50%, #dd7bbb 0%, #d79f1e calc(25% / 5), #5a922c calc(50% / 5), #4c7894 calc(75% / 5), #dd7bbb calc(100% / 5));

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .875rem;
  line-height: 1.75rem;
  background: #000;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

@media (min-width: 1280px) { #vadocs { --sidebar-w: 20rem; } }

#vadocs *, #vadocs *::before, #vadocs *::after { box-sizing: border-box; margin: 0; padding: 0; }
#vadocs a { color: inherit; text-decoration: none; }
#vadocs button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
#vadocs svg { display: block; }
#vadocs code, #vadocs pre, #vadocs kbd {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Chrome gradient text, same mix as the landing headings */
#vadocs .grad {
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Scroll reveal */
#vadocs .fx {
  filter: blur(5px);
  opacity: 0;
  transform: translateY(-16px) scale(.98);
  transition: filter .8s cubic-bezier(.16, 1, .3, 1), opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}
#vadocs .fx.in { filter: blur(0); opacity: 1; transform: none; }

/* ── Shell ─────────────────────────────────────────────────────────────── */

#vadocs .shell { width: 100%; }
#vadocs .shell-inner { height: 100%; }
@media (min-width: 1024px) { #vadocs .shell-inner { margin-left: var(--sidebar-w); } }

/* ── Sidebar ───────────────────────────────────────────────────────────── */

#vadocs .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar-w);
  padding: 1.125rem 1.5rem 2rem;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(12, 12, 14, .92) 0%, rgba(0, 0, 0, .96) 100%);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.32, .72, 0, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
}
#vadocs .sidebar::after {
  content: "";
  position: absolute; top: 0; bottom: 0; right: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .14) 18%, rgba(255, 255, 255, .14) 82%, transparent);
}
#vadocs .sidebar.open { transform: translateX(0); }
@media (min-width: 1024px) { #vadocs .sidebar { transform: none; transition: none; } }

#vadocs .sidebar-backdrop {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
#vadocs .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { #vadocs .sidebar-backdrop { display: none; } }

#vadocs .sidebar-logo { display: none; align-items: center; }
@media (min-width: 1024px) { #vadocs .sidebar-logo { display: flex; } }

#vadocs .logo {
  display: inline-flex; align-items: center; gap: .625rem;
  font-size: 1rem; font-weight: 600; letter-spacing: -.02em;
  color: var(--fg);
}
#vadocs .logo img {
  width: 28px; height: 24px; object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(255, 255, 255, .22));
}

/* Nav */
#vadocs .sidenav { margin-top: 1.75rem; }
@media (min-width: 1024px) { #vadocs .sidenav { margin-top: 2.5rem; } }
#vadocs .sidenav ul { list-style: none; }

#vadocs .nav-group { position: relative; margin-top: 1.75rem; }
#vadocs .nav-group:first-child { margin-top: 0; }
#vadocs .nav-group > h2 {
  font-size: .6875rem; line-height: 1.25rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted);
}
#vadocs .nav-body { position: relative; margin-top: .75rem; padding-left: .5rem; }
#vadocs .nav-rail { position: absolute; inset: 0 auto 0 .5rem; width: 1px; background: var(--line-soft); }
#vadocs .nav-hover {
  position: absolute; left: 0; right: 0;
  height: 2rem; border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  opacity: 0;
  transition: opacity .18s ease, top .25s cubic-bezier(.33, 1, .68, 1);
  pointer-events: none;
}
#vadocs .nav-marker {
  position: absolute; left: .5rem;
  width: 1px; height: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 50%, rgba(255,255,255,0));
  box-shadow: 0 0 8px rgba(255, 255, 255, .65);
  opacity: 0;
  transition: top .3s cubic-bezier(.33, 1, .68, 1), opacity .25s ease;
}
#vadocs .nav-list { border-left: 1px solid transparent; }
#vadocs .nav-list > li { position: relative; }
#vadocs .nav-list a {
  position: relative;
  display: flex; justify-content: space-between; gap: .5rem;
  padding: .25rem .75rem .25rem 1rem;
  font-size: .875rem; line-height: 1.5rem;
  color: var(--body);
  transition: color .2s ease;
}
#vadocs .nav-list a:hover, #vadocs .nav-list a.active { color: var(--fg); }
#vadocs .nav-list a .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#vadocs .nav-list a .tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .625rem; line-height: 1.5rem; font-weight: 600;
  color: var(--muted);
}
#vadocs .nav-sub a { padding-left: 1.75rem; }

#vadocs .sidebar-cta { margin-top: 1.75rem; }
@media (min-width: 416px) { #vadocs .sidebar-cta { display: none; } }

/* ── Topbar ────────────────────────────────────────────────────────────── */

#vadocs .topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 3rem;
  height: 3.75rem;
  padding: 0 1rem;
  background: linear-gradient(180deg, rgba(10, 10, 12, .82) 0%, rgba(0, 0, 0, .7) 100%);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
@media (min-width: 640px) { #vadocs .topbar { padding: 0 1.5rem; } }
@media (min-width: 1024px) { #vadocs .topbar { left: var(--sidebar-w); padding: 0 2rem; } }
#vadocs .topbar::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14) 25%, rgba(255, 255, 255, .14) 75%, transparent);
}

#vadocs .topbar-search { display: none; }
@media (min-width: 1024px) { #vadocs .topbar-search { display: block; flex: 1 1 auto; max-width: 28rem; } }

#vadocs .search-btn {
  display: flex; align-items: center; gap: .5rem;
  width: 100%; height: 2.25rem;
  padding: 0 .75rem 0 .625rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: .875rem;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
#vadocs .search-btn:hover { border-color: rgba(255, 255, 255, .22); background: var(--surface-hover); color: var(--body); }
#vadocs .search-btn svg { width: 1.125rem; height: 1.125rem; stroke: currentColor; fill: none; }
#vadocs .topbar-mobile { display: flex; align-items: center; gap: 1rem; }
@media (min-width: 1024px) { #vadocs .topbar-mobile { display: none; } }

#vadocs .icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2.125rem; height: 2.125rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  color: var(--body);
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
#vadocs .icon-btn:hover { border-color: rgba(255, 255, 255, .22); background: var(--surface-hover); color: var(--fg); }
#vadocs .icon-btn svg { width: 1.125rem; height: 1.125rem; stroke: currentColor; fill: none; }

#vadocs .topbar-end { display: flex; align-items: center; gap: 1.25rem; }
#vadocs .top-links { display: none; }
@media (min-width: 768px) { #vadocs .top-links { display: block; } }
#vadocs .top-links ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
#vadocs .top-links a {
  position: relative;
  font-size: .875rem; line-height: 1.25rem;
  color: var(--body);
  transition: color .25s ease;
}
#vadocs .top-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--text-grad);
  border-radius: 10px;
  transition: width .3s ease-in-out;
}
#vadocs .top-links a:hover { color: var(--fg); }
#vadocs .top-links a:hover::after { width: 100%; }
#vadocs .top-divider { display: none; }
@media (min-width: 768px) { #vadocs .top-divider { display: block; width: 1px; height: 1.25rem; background: var(--line); } }
#vadocs .topbar-actions { display: flex; gap: .75rem; align-items: center; }

/* ── Buttons ───────────────────────────────────────────────────────────── */

#vadocs .btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .375rem;
  height: 2.5rem; padding: 0 1.125rem;
  overflow: hidden;
  border-radius: 999px;
  font-size: .8125rem; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
#vadocs .btn svg { width: .9375rem; height: .9375rem; fill: currentColor; }

/* Chrome pill, straight from the landing hero */
#vadocs .btn-primary {
  color: #fff;
  border: 0.6px solid #fff;
  background:
    linear-gradient(0deg, #151515, #151515),
    linear-gradient(180deg, rgba(21,21,21,0) 66.3%, rgba(255,255,255,.5) 100%),
    linear-gradient(183.22deg, rgba(255,255,255,.5) 2.62%, rgba(21,21,21,0) 52.03%);
  box-shadow: inset 0 6px 8px rgba(250,250,250,.25), inset 0 -6px 8px rgba(250,250,250,.25);
}
#vadocs .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 6px 8px rgba(250,250,250,.32), inset 0 -6px 8px rgba(250,250,250,.32), 0 10px 26px -12px rgba(255,255,255,.45);
}
/* Shine sweep */
#vadocs .btn-primary::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%; width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
#vadocs .btn-primary:hover::after {
  opacity: .8;
  left: 130%;
  transition: left .7s cubic-bezier(.22, 1, .36, 1), opacity .2s ease;
}
#vadocs .btn-secondary {
  color: var(--body);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
#vadocs .btn-secondary:hover { border-color: rgba(255, 255, 255, .24); background: var(--surface-hover); color: var(--fg); }
#vadocs .btn-block { width: 100%; }
#vadocs .btn-sm { height: 2.125rem; padding: 0 .875rem; font-size: .78125rem; }

#vadocs .link-arrow {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .875rem; font-weight: 600;
  color: var(--fg);
  transition: gap .2s ease, opacity .2s ease;
}
#vadocs .link-arrow:hover { gap: .5rem; opacity: .85; }
#vadocs .link-arrow svg { width: .9375rem; height: .9375rem; fill: currentColor; }

/* ── Page frame + ambient background ──────────────────────────────────── */

#vadocs .page {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100vh;
  padding: 3.75rem 1rem 0;
}
@media (min-width: 640px) { #vadocs .page { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { #vadocs .page { padding-left: 2rem; padding-right: 2rem; } }

#vadocs main { flex: 1 1 auto; }
#vadocs article { display: flex; flex-direction: column; padding: 4rem 0 6rem; }

/* ── Prose ─────────────────────────────────────────────────────────────── */

#vadocs .prose { position: relative; flex: 1 1 auto; }
#vadocs .prose > * { max-width: 42rem; margin-left: auto; margin-right: auto; }
@media (min-width: 1024px) { #vadocs .prose > * { max-width: 48rem; margin-left: 0; } }
#vadocs .prose > .breakout { max-width: none; }

#vadocs .prose h1 {
  display: inline-block;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  line-height: 1.1; font-weight: 600; letter-spacing: -.035em;
  margin-bottom: .75rem;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
#vadocs .prose h2 {
  font-size: 1.375rem; line-height: 1.9rem; font-weight: 600; letter-spacing: -.025em;
  margin: 4rem 0 .5rem;
  scroll-margin-top: 6rem;
}
#vadocs .prose h2 > a, #vadocs .prose h2.plain {
  display: inline-block;
  background: var(--text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
#vadocs .prose h3 {
  font-size: 1rem; line-height: 1.75rem; font-weight: 600;
  color: var(--fg);
  margin: 2.5rem 0 .5rem;
}
#vadocs .prose p { margin: 1.5rem 0; }
#vadocs .prose .lead { font-size: 1.0625rem; line-height: 1.8rem; color: #d4d4d4; }
#vadocs .prose strong { color: var(--fg); font-weight: 600; }
#vadocs .prose a:not(.btn):not(.link-arrow):not(.heading-anchor):not(.card-title-link) {
  color: var(--fg);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .3);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s ease;
}
#vadocs .prose a:not(.btn):not(.link-arrow):not(.heading-anchor):not(.card-title-link):hover {
  text-decoration-color: #fff;
}
#vadocs .prose ul, #vadocs .prose ol { margin: 1.25rem 0; padding-left: 1.625rem; }
#vadocs .prose ul { list-style: disc; }
#vadocs .prose ol { list-style: decimal; }
#vadocs .prose li { margin: .5rem 0; padding-left: .375rem; }
#vadocs .prose li::marker { color: var(--muted); }
#vadocs .prose hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  margin: 4rem -1rem;
}

#vadocs .prose code {
  padding: .1875rem .375rem;
  border-radius: .5rem;
  background: var(--code-bg);
  box-shadow: inset 0 0 0 1px var(--line);
  color: #e5e5e5;
  font-size: .75rem;
}
#vadocs .prose pre code { padding: 0; background: none; box-shadow: none; }

#vadocs .prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: .875rem; line-height: 1.5rem;
  text-align: left;
}
#vadocs .prose thead th {
  padding: 0 .75rem .75rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg); font-weight: 600;
  vertical-align: bottom;
}
#vadocs .prose tbody td { padding: .75rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
#vadocs .prose thead th:first-child, #vadocs .prose tbody td:first-child { padding-left: 0; }
#vadocs .prose thead th:last-child, #vadocs .prose tbody td:last-child { padding-right: 0; }

/* Heading anchor */
#vadocs .heading-anchor::before {
  content: "#";
  position: absolute;
  margin-left: -1.1em;
  -webkit-text-fill-color: rgba(255, 255, 255, .45);
  opacity: 0;
  transition: opacity .15s ease;
}
#vadocs h2:hover .heading-anchor::before { opacity: 1; }

/* ── Hero glow + grid ─────────────────────────────────────────────────── */

#vadocs .hero-pattern {
  position: absolute; inset: 0;
  z-index: -1;
  max-width: none; margin: 0;
  overflow: hidden;
}
#vadocs .hero-pattern-inner {
  position: absolute;
  top: 0; left: 50%;
  margin-left: -38rem;
  width: 81.25rem; height: 25rem;
  -webkit-mask-image: linear-gradient(#fff, transparent);
  mask-image: linear-gradient(#fff, transparent);
}
#vadocs .hero-grad {
  position: absolute; inset: 0;
  background:
    radial-gradient(40rem 16rem at 28% -10%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(30rem 14rem at 72% 0%, rgba(255, 255, 255, .1), transparent 70%);
  -webkit-mask-image: radial-gradient(farthest-side at top, #fff, transparent);
  mask-image: radial-gradient(farthest-side at top, #fff, transparent);
}
#vadocs .grid-pattern { position: absolute; inset: 0; width: 100%; height: 100%; }
#vadocs .grid-pattern .grid-line { stroke: rgba(255, 255, 255, .08); }
#vadocs .grid-pattern .grid-block { fill: rgba(255, 255, 255, .022); }

/* ── Glow border (Aceternity conic effect from the landing) ───────────── */

#vadocs .glow-card { position: relative; overflow: visible; --start: 0; --active: 0; }
#vadocs .glow-fx {
  pointer-events: none; position: absolute; inset: 0; border-radius: inherit; z-index: 4;
  --blur: 10px; --spread: 60;
  --glow-width: 5px;
  filter: blur(var(--blur));
}
#vadocs .glow-fx.sharp { --blur: 0px; --glow-width: 2px; filter: none; z-index: 5; }
#vadocs .glow-fx .glow { border-radius: inherit; width: 100%; height: 100%; position: relative; }
#vadocs .glow-fx .glow::after {
  content: "";
  border-radius: inherit;
  position: absolute;
  inset: calc(-1 * var(--glow-width));
  border: var(--glow-width) solid transparent;
  background: var(--glow-grad);
  background-attachment: fixed;
  opacity: var(--active);
  transition: opacity .3s;
  -webkit-mask-clip: padding-box, border-box;
  mask-clip: padding-box, border-box;
  -webkit-mask-composite: xor;
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(#0000, #0000), conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), #00000000 0deg, #fff, #00000000 calc(var(--spread) * 2deg));
  mask-image: linear-gradient(#0000, #0000), conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), #00000000 0deg, #fff, #00000000 calc(var(--spread) * 2deg));
}

/* ── Endpoint header ───────────────────────────────────────────────────── */

#vadocs .endpoint { display: flex; align-items: center; gap: .75rem; }
#vadocs .method {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .625rem; line-height: 1.5rem; font-weight: 600;
  padding: 0 .5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .12);
  color: #fafafa;
}
#vadocs .endpoint .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--muted); }
#vadocs .endpoint .path {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .75rem;
  color: var(--muted);
}
#vadocs .prose .endpoint + h2 { margin-top: .5rem; scroll-margin-top: 8rem; }

/* ── Two-column request layout ─────────────────────────────────────────── */

#vadocs .cols { display: grid; grid-template-columns: 1fr; align-items: start; gap: 2.5rem 4rem; overflow: visible; }
@media (min-width: 1280px) {
  #vadocs .cols { grid-template-columns: 1fr 1fr; max-width: none; }
  /* Padding on the sticky column is the gutter the glow blur paints into.
     Sticky boxes otherwise clip descendant filters at the bottom edge. */
  #vadocs .cols .col-code {
    position: sticky;
    top: 4.75rem;
    overflow: visible;
  }
}
#vadocs .cols > div > :first-child { margin-top: 0; }
#vadocs .cols > div > :last-child { margin-bottom: 0; }

/* ── Properties list ───────────────────────────────────────────────────── */

#vadocs .props { margin: 1.5rem 0; }
#vadocs .props ul { list-style: none; margin: 0; padding: 0; }
#vadocs .props > ul > li { margin: 0; padding: 1rem 0; border-top: 1px solid var(--line-soft); }
#vadocs .props > ul > li:first-child { border-top: 0; padding-top: 0; }
#vadocs .props > ul > li:last-child { padding-bottom: 0; }
#vadocs .props dl { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0; }
#vadocs .props dd { margin: 0; }
#vadocs .props dd.type {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .75rem;
  color: var(--muted);
}
#vadocs .props dd.desc { width: 100%; flex: none; }
#vadocs .props dd.desc p { margin: 0; }

/* ── Code panel ────────────────────────────────────────────────────────── */

/* Padding lives on the transformed panel so the 10px glow blur stays inside
   this box (transforms clip filters). Glow-fx is inset to the visual card. */
#vadocs .code-panel {
  position: relative;
  margin: 0;
  padding: 1.25rem;
  overflow: visible;
  background: none;
  box-shadow: none;
  transition: transform .3s cubic-bezier(.33, 1, .68, 1);
  --start: 0; --active: 0;
}
#vadocs .code-panel:hover { transform: translateY(-2px); }
#vadocs .code-panel > .glow-fx {
  inset: 1.25rem;
  border-radius: 1rem;
}
#vadocs .code-panel > .code-inner {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(180deg, #121214 0%, #09090a 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: box-shadow .3s ease;
}
#vadocs .code-panel:hover > .code-inner {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
}
#vadocs .code-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 1rem;
  min-height: calc(3rem + 1px);
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .02);
}
#vadocs .code-head h3 {
  margin: 0 auto 0 0;
  padding-top: .8125rem;
  font-size: .75rem; line-height: 1.25rem; font-weight: 600;
  color: #fff;
}
#vadocs .code-tabs { display: flex; gap: 1rem; margin-bottom: -1px; font-size: .75rem; font-weight: 500; }
#vadocs .code-tabs button {
  padding: .8125rem 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease;
}
#vadocs .code-tabs button:hover { color: #d4d4d4; }
#vadocs .code-tabs button.selected { border-color: #fff; color: #fff; }

#vadocs .code-body { position: relative; }
#vadocs .code-meta {
  display: flex; align-items: center; gap: .5rem;
  height: 2.25rem;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  background: rgba(255, 255, 255, .012);
}
#vadocs .code-meta .method { background: none; box-shadow: none; padding: 0; color: #e5e5e5; }
#vadocs .code-meta .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--muted); }
#vadocs .code-meta .path { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .75rem; color: var(--body); }
#vadocs .code-panel pre { overflow-x: auto; padding: 1rem; font-size: .75rem; line-height: 1.5rem; color: #fff; }
#vadocs .code-panel pre code { color: #fff; }
#vadocs .code-panel .tok-str { color: #d4d4d4; }

#vadocs .copy-btn {
  position: absolute; top: .875rem; right: 1rem;
  display: flex; align-items: center; gap: .25rem;
  padding: .25rem .625rem .25rem .5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--body);
  font-size: .6875rem; font-weight: 600;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
}
#vadocs .copy-btn svg { width: .875rem; height: .875rem; stroke: currentColor; fill: none; }
#vadocs .code-body:hover .copy-btn, #vadocs .copy-btn:focus { opacity: 1; }
#vadocs .copy-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
#vadocs .copy-btn.copied { color: #fff; }

/* ── Card grids ────────────────────────────────────────────────────────── */

#vadocs .guides {
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 640px) { #vadocs .guides { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { #vadocs .guides { grid-template-columns: repeat(4, 1fr); } }

#vadocs .tile {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045) 0%, rgba(255, 255, 255, .015) 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .3s cubic-bezier(.33, 1, .68, 1), box-shadow .3s ease;
  --start: 0; --active: 0;
}
#vadocs .tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .12); }
#vadocs .tile h3 { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--fg); }
#vadocs .tile p { margin: .375rem 0 0; font-size: .8125rem; line-height: 1.55rem; color: var(--body); }
#vadocs .tile .link-arrow { margin-top: auto; padding-top: 1rem; font-size: .8125rem; }
#vadocs .tile-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  margin-bottom: .875rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .14);
}
#vadocs .tile-icon svg { width: 1rem; height: 1rem; stroke: #d4d4d4; fill: none; stroke-width: 1.5; transition: stroke .3s ease; }
#vadocs .tile:hover .tile-icon svg { stroke: #fff; }

#vadocs .section-block { margin: 4rem 0; }
#vadocs .section-block > h2 { margin-top: 0; }

/* Panel topic sections */
#vadocs .topic-head { display: flex; align-items: center; gap: .75rem; margin-top: 3.5rem; }
#vadocs .topic-head .tile-icon { width: 1.75rem; height: 1.75rem; margin: 0; }
#vadocs .topic-head .tile-icon svg { width: .875rem; height: .875rem; }
#vadocs .topic-head h2 { margin: 0; scroll-margin-top: 6rem; }

/* ── Callouts ──────────────────────────────────────────────────────────── */

#vadocs .callout {
  display: flex; gap: .875rem;
  margin: 1.5rem 0;
  padding: 1rem 1.125rem;
  border-radius: .875rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .02) 100%);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .09);
  font-size: .875rem;
  color: var(--body);
}
#vadocs .callout .callout-icon {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 1.375rem; height: 1.375rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fafafa, #d4d4d4);
  color: #09090b;
  font-size: .6875rem; font-weight: 700;
}
#vadocs .callout p { margin: 0; }
#vadocs .callout strong { color: var(--fg); }
#vadocs .callout.warn { box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .28), inset 0 1px 0 rgba(255, 255, 255, .07); background: linear-gradient(180deg, rgba(251, 191, 36, .1) 0%, rgba(251, 191, 36, .03) 100%); }
#vadocs .callout.warn .callout-icon { background: linear-gradient(180deg, #fde68a, #f59e0b); }

/* ── Footers ───────────────────────────────────────────────────────────── */

#vadocs .site-footer { width: 100%; max-width: 42rem; margin: 0 auto; padding-bottom: 4rem; }
@media (min-width: 1024px) { #vadocs .site-footer { max-width: 48rem; margin-left: 0; } }
#vadocs .footer-links { display: flex; }
#vadocs .footer-links .prev, #vadocs .footer-links .next { display: flex; flex-direction: column; gap: .75rem; }
#vadocs .footer-links .next { margin-left: auto; align-items: flex-end; }
#vadocs .footer-links .btn-quiet {
  display: inline-flex; align-items: center; gap: .25rem;
  height: 2.125rem; padding: 0 .875rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  color: var(--body);
  font-size: .8125rem; font-weight: 600;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}
#vadocs .footer-links .btn-quiet:hover { border-color: rgba(255, 255, 255, .22); background: var(--surface-hover); color: var(--fg); }
#vadocs .footer-links .btn-quiet svg { width: .9375rem; height: .9375rem; fill: currentColor; }
#vadocs .footer-links .label { font-size: 1rem; font-weight: 600; color: var(--fg); transition: opacity .2s ease; }
#vadocs .footer-links .label:hover { opacity: .8; }
#vadocs .footer-bottom {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}
@media (min-width: 640px) { #vadocs .footer-bottom { flex-direction: row; } }
#vadocs .footer-bottom p { margin: 0; font-size: .75rem; color: var(--muted); }
/* ── Search dialog ─────────────────────────────────────────────────────── */

#vadocs .search-dialog { position: fixed; inset: 0; z-index: 60; display: none; padding: 1rem; }
#vadocs .search-dialog.open { display: block; }
#vadocs .search-dialog .overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
}
#vadocs .search-dialog .panel {
  position: relative;
  width: 100%; max-width: 32rem;
  margin: 4.5rem auto 0;
  overflow: hidden;
  border-radius: .75rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #0a0a0a;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .95);
}
#vadocs .search-dialog .field {
  display: flex; align-items: center; gap: .625rem;
  padding: 0 .875rem;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
#vadocs .search-dialog .field svg { width: 1rem; height: 1rem; stroke: var(--muted); fill: none; flex: none; }
#vadocs .search-dialog input {
  flex: 1 1 auto;
  height: 2.75rem;
  border: 0; outline: 0; background: none;
  color: var(--fg);
  font: inherit; font-size: .875rem;
}
#vadocs .search-dialog input::placeholder { color: #8a8a92; }
#vadocs .search-dialog input::-webkit-search-cancel-button { display: none; }
/* output.css ships the Tailwind forms plugin, which rings focused inputs in
   Flowbite blue through box-shadow — neutralise the whole ring, not just the
   outline. */
#vadocs .search-dialog input:focus,
#vadocs .search-dialog input:focus-visible {
  outline: 0;
  border: 0;
  box-shadow: none;
  --tw-ring-color: transparent;
  --tw-ring-shadow: 0 0 #0000;
  --tw-ring-offset-shadow: 0 0 #0000;
}

/* Command list */
#vadocs .cmd-list { max-height: 20.5rem; overflow-y: auto; padding-bottom: .25rem; }
#vadocs .cmd-group + .cmd-group { border-top: 1px solid rgba(255, 255, 255, .09); }
#vadocs .cmd-group ul { list-style: none; margin: 0; padding: 0 .5rem .375rem; }
#vadocs .cmd-group li { margin: 0; }
#vadocs .cmd-label {
  padding: .625rem .875rem .3125rem;
  font-size: .75rem; font-weight: 500; line-height: 1rem;
  color: #8a8a92;
}
#vadocs .cmd-list a {
  display: flex; align-items: center; gap: .625rem;
  height: 2rem;
  padding: 0 .625rem;
  border-radius: .375rem;
  color: #d4d4d8;
  font-size: .875rem; line-height: 1.25rem;
  transition: background .12s ease, color .12s ease;
}
#vadocs .cmd-icon { width: 1rem; height: 1rem; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; opacity: .9; }
#vadocs .cmd-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#vadocs .cmd-shortcut {
  margin-left: auto;
  font-size: .75rem; letter-spacing: .04em;
  color: #8a8a92;
}
#vadocs .cmd-list li.selected a, #vadocs .cmd-list a:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}
#vadocs .search-empty { padding: 1.75rem 1rem; text-align: center; font-size: .875rem; color: #8a8a92; }
