/* ==========================================================================
   Schema Validator Docs - Modern Documentation Design
   Inspired by Stripe, Vercel, Next.js, React, and Tailwind CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   BB-8 Theme Toggle (from Uiverse.io)
   -------------------------------------------------------------------------- */
.bb8-toggle {
  --toggle-size: 6px;
  --toggle-width: 10.625em;
  --toggle-height: 5.625em;
  --toggle-offset: calc((var(--toggle-height) - var(--bb8-diameter)) / 2);
  --toggle-bg: linear-gradient(#2c4770, #070e2b 35%, #628cac 50% 70%, #a6c5d4) no-repeat;
  --bb8-diameter: 4.375em;
  --radius: 99em;
  --transition: 0.4s;
  --accent: #de7d2f;
  --bb8-bg: #fff;
}

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

.bb8-toggle {
  cursor: pointer;
  font-size: var(--toggle-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb8-toggle__checkbox {
  appearance: none;
  display: none;
}

.bb8-toggle__container {
  width: var(--toggle-width);
  height: var(--toggle-height);
  background: var(--toggle-bg);
  background-size: 100% 11.25em;
  background-position-y: -5.625em;
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
}

.bb8 {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: calc(var(--toggle-offset) - 1.688em + 0.188em);
  left: var(--toggle-offset);
  transition: var(--transition);
  z-index: 2;
}

.bb8__head-container {
  position: relative;
  transition: var(--transition);
  z-index: 2;
  transform-origin: 1.25em 3.75em;
}

.bb8__head {
  overflow: hidden;
  margin-bottom: -0.188em;
  width: 2.5em;
  height: 1.688em;
  background: linear-gradient(transparent 0.063em, dimgray 0.063em 0.313em, transparent 0.313em 0.375em, var(--accent) 0.375em 0.5em, transparent 0.5em 1.313em, silver 1.313em 1.438em, transparent 1.438em),
    linear-gradient(45deg, transparent 0.188em, var(--bb8-bg) 0.188em 1.25em, transparent 1.25em),
    linear-gradient(-45deg, transparent 0.188em, var(--bb8-bg) 0.188em 1.25em, transparent 1.25em),
    linear-gradient(var(--bb8-bg) 1.25em, transparent 1.25em);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0.063em 0.125em gray);
}

.bb8__head::before {
  content: "";
  position: absolute;
  width: 0.563em;
  height: 0.563em;
  background: radial-gradient(0.125em circle at 0.25em 0.375em, red, transparent),
    radial-gradient(0.063em circle at 0.375em 0.188em, var(--bb8-bg) 50%, transparent 100%),
    linear-gradient(45deg, #000 0.188em, dimgray 0.313em 0.375em, #000 0.5em);
  border-radius: var(--radius);
  top: 0.413em;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 0 0 0.089em lightgray, 0.563em 0.281em 0 -0.148em, 0.563em 0.281em 0 -0.1em var(--bb8-bg), 0.563em 0.281em 0 -0.063em;
  z-index: 1;
  transition: var(--transition);
}

.bb8__head::after {
  content: "";
  position: absolute;
  bottom: 0.375em;
  left: 0;
  width: 100%;
  height: 0.188em;
  background: linear-gradient(to right, var(--accent) 0.125em, transparent 0.125em 0.188em, var(--accent) 0.188em 0.313em, transparent 0.313em 0.375em, var(--accent) 0.375em 0.938em, transparent 0.938em 1em, var(--accent) 1em 1.125em, transparent 1.125em 1.875em, var(--accent) 1.875em 2em, transparent 2em 2.063em, var(--accent) 2.063em 2.25em, transparent 2.25em 2.313em, var(--accent) 2.313em 2.375em, transparent 2.375em 2.438em, var(--accent) 2.438em);
  transition: var(--transition);
}

.bb8__antenna {
  position: absolute;
  transform: translateY(-90%);
  width: 0.059em;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: var(--transition);
}

.bb8__antenna:nth-child(1) {
  height: 0.938em;
  right: 0.938em;
  background: linear-gradient(#000 0.188em, silver 0.188em);
}

.bb8__antenna:nth-child(2) {
  height: 0.375em;
  left: 50%;
  transform: translate(-50%, -90%);
  background: silver;
}

.bb8__body {
  width: 4.375em;
  height: 4.375em;
  background: var(--bb8-bg);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  z-index: 1;
  transform: rotate(45deg);
  background: linear-gradient(-90deg, var(--bb8-bg) 4%, var(--accent) 4% 10%, transparent 10% 90%, var(--accent) 90% 96%, var(--bb8-bg) 96%),
    linear-gradient(var(--bb8-bg) 4%, var(--accent) 4% 10%, transparent 10% 90%, var(--accent) 90% 96%, var(--bb8-bg) 96%),
    linear-gradient(to right, transparent 2.156em, silver 2.156em 2.219em, transparent 2.188em),
    linear-gradient(transparent 2.156em, silver 2.156em 2.219em, transparent 2.188em);
  background-color: var(--bb8-bg);
}

.bb8__body::after {
  content: "";
  bottom: 1.5em;
  left: 0.563em;
  position: absolute;
  width: 0.188em;
  height: 0.188em;
  background: rgb(236, 236, 236);
  color: rgb(236, 236, 236);
  border-radius: 50%;
  box-shadow: 0.875em 0.938em, 0 -1.25em, 0.875em -2.125em, 2.125em -2.125em, 3.063em -1.25em, 3.063em 0, 2.125em 0.938em;
}

.bb8__body::before {
  content: "";
  width: 2.625em;
  height: 2.625em;
  position: absolute;
  border-radius: 50%;
  z-index: 0.1;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0.313em solid var(--accent);
  background: radial-gradient(1em circle at center, rgb(236, 236, 236) 50%, transparent 51%),
    radial-gradient(1.25em circle at center, var(--bb8-bg) 50%, transparent 51%),
    linear-gradient(-90deg, transparent 42%, var(--accent) 42% 58%, transparent 58%),
    linear-gradient(var(--bb8-bg) 42%, var(--accent) 42% 58%, var(--bb8-bg) 58%);
}

.artificial__hidden {
  position: absolute;
  border-radius: inherit;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bb8__shadow {
  content: "";
  width: var(--bb8-diameter);
  height: 20%;
  border-radius: 50%;
  background: #3a271c;
  box-shadow: 0.313em 0 3.125em #3a271c;
  opacity: 0.25;
  position: absolute;
  bottom: 0;
  left: calc(var(--toggle-offset) - 0.938em);
  transition: var(--transition);
  transform: skew(-70deg);
  z-index: 1;
}

.bb8-toggle__scenery {
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  position: relative;
  border-radius: inherit;
}

.bb8-toggle__scenery::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: #b18d71;
  z-index: 1;
}

.bb8-toggle__cloud {
  z-index: 1;
  position: absolute;
  border-radius: 50%;
}

.bb8-toggle__cloud:nth-last-child(1) {
  width: 0.875em;
  height: 0.625em;
  filter: blur(0.125em) drop-shadow(0.313em 0.313em #ffffffae) drop-shadow(-0.625em 0 #fff) drop-shadow(-0.938em -0.125em #fff);
  right: 1.875em;
  top: 2.813em;
  background: linear-gradient(to top right, #ffffffae, #ffffffae);
  transition: var(--transition);
}

.bb8-toggle__cloud:nth-last-child(2) {
  top: 0.625em;
  right: 4.375em;
  width: 0.875em;
  height: 0.375em;
  background: #dfdedeae;
  filter: blur(0.125em) drop-shadow(-0.313em -0.188em #e0dfdfae) drop-shadow(-0.625em -0.188em #bbbbbbae) drop-shadow(-1em 0.063em #cfcfcfae);
  transition: 0.6s;
}

.bb8-toggle__cloud:nth-last-child(3) {
  top: 1.25em;
  right: 0.938em;
  width: 0.875em;
  height: 0.375em;
  background: #ffffffae;
  filter: blur(0.125em) drop-shadow(0.438em 0.188em #ffffffae) drop-shadow(-0.625em 0.313em #ffffffae);
  transition: 0.8s;
}

.gomrassen, .hermes, .chenini {
  position: absolute;
  border-radius: var(--radius);
  background: linear-gradient(#fff, #6e8ea2);
  top: 100%;
}

.gomrassen {
  left: 0.938em;
  width: 1.875em;
  height: 1.875em;
  box-shadow: 0 0 0.188em #ffffff52, 0 0 0.188em #6e8ea24b;
  transition: var(--transition);
}

.gomrassen::before, .gomrassen::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  box-shadow: inset 0 0 0.063em rgb(140, 162, 169);
  background: rgb(184, 196, 200);
}

.gomrassen::before {
  left: 0.313em;
  top: 0.313em;
  width: 0.438em;
  height: 0.438em;
}

.gomrassen::after {
  width: 0.25em;
  height: 0.25em;
  left: 1.25em;
  top: 0.75em;
}

.hermes {
  left: 3.438em;
  width: 0.625em;
  height: 0.625em;
  box-shadow: 0 0 0.125em #ffffff52, 0 0 0.125em #6e8ea24b;
  transition: 0.6s;
}

.chenini {
  left: 4.375em;
  width: 0.5em;
  height: 0.5em;
  box-shadow: 0 0 0.125em #ffffff52, 0 0 0.125em #6e8ea24b;
  transition: 0.8s;
}

.tatto-1, .tatto-2 {
  position: absolute;
  width: 1.25em;
  height: 1.25em;
  border-radius: var(--radius);
}

.tatto-1 {
  background: #fefefe;
  right: 3.125em;
  top: 0.625em;
  box-shadow: 0 0 0.438em #fdf4e1;
  transition: var(--transition);
}

.tatto-2 {
  background: linear-gradient(#e6ac5c, #d75449);
  right: 1.25em;
  top: 2.188em;
  box-shadow: 0 0 0.438em #e6ad5c3d, 0 0 0.438em #d755494f;
  transition: 0.7s;
}

.bb8-toggle__star {
  position: absolute;
  width: 0.063em;
  height: 0.063em;
  background: #fff;
  border-radius: var(--radius);
  filter: drop-shadow(0 0 0.063em #fff);
  color: #fff;
  top: 100%;
}

.bb8-toggle__star:nth-child(1) {
  left: 3.75em;
  box-shadow: 1.25em 0.938em, -1.25em 2.5em, 0 1.25em, 1.875em 0.625em, -3.125em 1.875em, 1.25em 2.813em;
  transition: 0.2s;
}

.bb8-toggle__star:nth-child(2) {
  left: 4.688em;
  box-shadow: 0.625em 0, 0 0.625em, -0.625em -0.625em, 0.625em 0.938em, -3.125em 1.25em, 1.25em -1.563em;
  transition: 0.3s;
}

.bb8-toggle__star:nth-child(3) {
  left: 5.313em;
  box-shadow: -0.625em -0.625em, -2.188em 1.25em, -2.188em 0, -3.75em -0.625em, -3.125em -0.625em, -2.5em -0.313em, 0.75em -0.625em;
  transition: var(--transition);
}

.bb8-toggle__star:nth-child(4) {
  left: 1.875em;
  width: 0.125em;
  height: 0.125em;
  transition: 0.5s;
}

.bb8-toggle__star:nth-child(5) {
  left: 5em;
  width: 0.125em;
  height: 0.125em;
  transition: 0.6s;
}

.bb8-toggle__star:nth-child(6) {
  left: 2.5em;
  width: 0.125em;
  height: 0.125em;
  transition: 0.7s;
}

.bb8-toggle__star:nth-child(7) {
  left: 3.438em;
  width: 0.125em;
  height: 0.125em;
  transition: 0.8s;
}

/* BB-8 Toggle Actions */
.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(1) { top: 0.625em; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(2) { top: 1.875em; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(3) { top: 1.25em; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(4) { top: 3.438em; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(5) { top: 3.438em; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(6) { top: 0.313em; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(7) { top: 1.875em; }

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__cloud { right: -100%; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .gomrassen { top: 0.938em; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .hermes { top: 2.5em; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .chenini { top: 2.75em; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container { background-position-y: 0; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .tatto-1 { top: 100%; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .tatto-2 { top: 100%; }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8 { left: calc(100% - var(--bb8-diameter) - var(--toggle-offset)); }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8__shadow { left: calc(100% - var(--bb8-diameter) - var(--toggle-offset) + 0.938em); transform: skew(70deg); }
.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8__body { transform: rotate(180deg); }

.bb8-toggle__checkbox:hover + .bb8-toggle__container .bb8__head::before { left: 100%; }
.bb8-toggle__checkbox:not(:checked):hover + .bb8-toggle__container .bb8__antenna:nth-child(1) { right: 1.5em; }
.bb8-toggle__checkbox:hover + .bb8-toggle__container .bb8__antenna:nth-child(2) { left: 0.938em; }
.bb8-toggle__checkbox:hover + .bb8-toggle__container .bb8__head::after { background-position: 1.375em 0; }
.bb8-toggle__checkbox:checked:hover + .bb8-toggle__container .bb8__head::before { left: 0; }
.bb8-toggle__checkbox:checked:hover + .bb8-toggle__container .bb8__antenna:nth-child(2) { left: calc(100% - 0.938em); }
.bb8-toggle__checkbox:checked:hover + .bb8-toggle__container .bb8__head::after { background-position: -1.375em 0; }
.bb8-toggle__checkbox:active + .bb8-toggle__container .bb8__head-container { transform: rotate(25deg); }
.bb8-toggle__checkbox:checked:active + .bb8-toggle__container .bb8__head-container { transform: rotate(-25deg); }

.bb8:hover .bb8__head::before, .bb8:hover .bb8__antenna:nth-child(2) { left: 50% !important; }
.bb8:hover .bb8__antenna:nth-child(1) { right: 0.938em !important; }
.bb8:hover .bb8__head::after { background-position: 0 0 !important; }

/* --------------------------------------------------------------------------
   CSS Custom Properties - Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Light Mode */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #fafbfc;
  --color-bg-tertiary: #f3f4f6;
  --color-bg-elevated: #ffffff;
  --color-bg-subtle: #f8fafc;
  
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #64748b;
  --color-text-muted: #94a3b8;
  
  --color-border-default: #e2e8f0;
  --color-border-muted: #f1f5f9;
  --color-border-strong: #cbd5e1;
  
  --color-accent-primary: #6366f1;
  --color-accent-hover: #4f46e5;
  --color-accent-subtle: #e0e7ff;
  --color-accent-muted: #f5f3ff;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-success-border: #a7f3d0;
  --color-success-text: #047857;
  
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-warning-border: #fde68a;
  --color-warning-text: #b45309;
  
  --color-danger: #ef4444;
  --color-danger-bg: #fef2f2;
  --color-danger-border: #fecaca;
  --color-danger-text: #b91c1c;
  
  --color-info: #3b82f6;
  --color-info-bg: #eff6ff;
  --color-info-border: #bfdbfe;
  --color-info-text: #1d4ed8;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
  --shadow-depth: 0 20px 40px -30px rgb(15 23 42 / 0.45);
  --shadow-soft-depth: 0 14px 30px -26px rgb(15 23 42 / 0.5);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Layout */
  --header-height: 64px;
  --sidebar-width: 280px;
  --toc-width: clamp(240px, 18vw, 320px);
  --content-max-width: 1460px;
  --article-max-width: 980px;
  --content-gap: clamp(var(--space-8), 2.6vw, var(--space-12));

  /* Sidebar */
  --sidebar-bg: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  --sidebar-surface: #ffffff;
  --sidebar-border: var(--color-border-muted);
  --sidebar-title: var(--color-text-muted);
  --sidebar-link: var(--color-text-secondary);
  --sidebar-link-hover: var(--color-text-primary);
  --sidebar-link-active: var(--color-text-primary);
  --sidebar-link-hover-bg: var(--color-bg-tertiary);
  --sidebar-link-active-bg: var(--color-accent-muted);
  --sidebar-link-active-border: var(--color-accent-primary);
  --sidebar-link-icon: var(--color-text-tertiary);

  /* Depth / Frosted Surfaces */
  --surface-glass: rgb(255 255 255 / 0.72);
  --surface-glass-strong: rgb(255 255 255 / 0.86);
  --glass-border: rgb(148 163 184 / 0.3);
  --glass-highlight: rgb(255 255 255 / 0.65);
  --sidebar-gloss: rgb(255 255 255 / 0.35);
  --glass-divider-bg: rgb(15 23 42 / 0.04);
  --depth-bg:
    radial-gradient(900px 520px at -12% 8%, rgb(14 165 233 / 0.16), transparent 62%),
    radial-gradient(760px 460px at 105% 0%, rgb(99 102 241 / 0.15), transparent 58%),
    radial-gradient(760px 480px at 50% 116%, rgb(16 185 129 / 0.1), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --depth-overlay:
    linear-gradient(135deg, rgb(255 255 255 / 0.28), transparent 45%),
    linear-gradient(325deg, rgb(148 163 184 / 0.1), transparent 55%);

  /* Syntax Highlighting */
  --syntax-fg: #0f172a;
  --syntax-muted: #64748b;
  --syntax-comment: #64748b;
  --syntax-keyword: #7c3aed;
  --syntax-string: #0f766e;
  --syntax-number: #c2410c;
  --syntax-function: #2563eb;
  --syntax-type: #0f766e;
  --syntax-variable: #334155;
  --syntax-constant: #be185d;
  --syntax-operator: #475569;
  --syntax-punctuation: #475569;
  --syntax-tag: #be123c;
  --syntax-attr: #9a3412;
  --syntax-property: #0369a1;
  --syntax-added: #047857;
  --syntax-deleted: #b91c1c;
  --callout-icon-bg: rgb(15 23 42 / 0.08);
  --code-surface: #f8fafc;
  --code-surface-strong: #f1f5f9;
  --code-border: #dbe4ef;
  --code-header-border: #d2dce8;
  --table-surface: rgb(255 255 255 / 0.76);
  --table-head-surface: rgb(241 245 249 / 0.82);
  --table-border: #d8e2ee;
  --table-row-border: #e2e8f0;
  --table-row-alt: rgb(248 250 252 / 0.7);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-modal: 30;
  --z-tooltip: 40;
}

/* Dark Mode Colors */
[data-theme="dark"],
[data-color-mode="dark"] {
  --color-bg-primary: #0c0e14;
  --color-bg-secondary: #13151c;
  --color-bg-tertiary: #1a1d26;
  --color-bg-elevated: #1e212b;
  --color-bg-subtle: #14161f;
  
  --color-text-primary: #f1f5f9;
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: #94a3b8;
  --color-text-muted: #64748b;
  
  --color-border-default: #2d3342;
  --color-border-muted: #1e2330;
  --color-border-strong: #3d4556;
  
  --color-accent-primary: #818cf8;
  --color-accent-hover: #a5b4fc;
  --color-accent-subtle: #312e81;
  --color-accent-muted: #1e1b4b;
  
  --color-success-bg: #022c22;
  --color-success-border: #065f46;
  --color-success-text: #6ee7b7;
  
  --color-warning-bg: #451a03;
  --color-warning-border: #78350f;
  --color-warning-text: #fcd34d;
  
  --color-danger-bg: #450a0a;
  --color-danger-border: #7f1d1d;
  --color-danger-text: #fca5a5;
  
  --color-info-bg: #172554;
  --color-info-border: #1e40af;
  --color-info-text: #93c5fd;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5);
  --shadow-glow: 0 0 30px rgba(129, 140, 248, 0.2);
  --shadow-depth: 0 24px 46px -32px rgb(0 0 0 / 0.8);
  --shadow-soft-depth: 0 16px 32px -24px rgb(0 0 0 / 0.72);

  --sidebar-bg: linear-gradient(180deg, #0d1118 0%, #101522 100%);
  --sidebar-surface: #13151c;
  --sidebar-border: #1f2633;
  --sidebar-title: #9aa4b2;
  --sidebar-link: #cbd5e1;
  --sidebar-link-hover: #f8fafc;
  --sidebar-link-active: #f8fafc;
  --sidebar-link-hover-bg: #1b2130;
  --sidebar-link-active-bg: #23283a;
  --sidebar-link-active-border: #818cf8;
  --sidebar-link-icon: #9aa4b2;

  --surface-glass: rgb(17 21 34 / 0.7);
  --surface-glass-strong: rgb(17 21 34 / 0.84);
  --glass-border: rgb(148 163 184 / 0.2);
  --glass-highlight: rgb(226 232 240 / 0.12);
  --sidebar-gloss: rgb(148 163 184 / 0.12);
  --glass-divider-bg: rgb(226 232 240 / 0.06);
  --depth-bg:
    radial-gradient(800px 500px at -12% 10%, rgb(14 165 233 / 0.18), transparent 62%),
    radial-gradient(780px 460px at 108% 0%, rgb(99 102 241 / 0.2), transparent 58%),
    radial-gradient(760px 500px at 50% 118%, rgb(20 184 166 / 0.14), transparent 60%),
    linear-gradient(180deg, #090c14 0%, #0d1118 100%);
  --depth-overlay:
    linear-gradient(145deg, rgb(15 23 42 / 0.3), transparent 50%),
    linear-gradient(325deg, rgb(30 41 59 / 0.28), transparent 58%);

  --syntax-fg: #e2e8f0;
  --syntax-muted: #94a3b8;
  --syntax-comment: #64748b;
  --syntax-keyword: #c4b5fd;
  --syntax-string: #5eead4;
  --syntax-number: #fbbf24;
  --syntax-function: #93c5fd;
  --syntax-type: #67e8f9;
  --syntax-variable: #cbd5e1;
  --syntax-constant: #f9a8d4;
  --syntax-operator: #cbd5e1;
  --syntax-punctuation: #94a3b8;
  --syntax-tag: #fb7185;
  --syntax-attr: #fdba74;
  --syntax-property: #7dd3fc;
  --syntax-added: #86efac;
  --syntax-deleted: #fca5a5;
  --callout-icon-bg: rgb(226 232 240 / 0.12);
  --code-surface: #0b1220;
  --code-surface-strong: #111a2e;
  --code-border: #2b3b55;
  --code-header-border: #223149;
  --table-surface: rgb(12 18 32 / 0.76);
  --table-head-surface: rgb(17 26 46 / 0.86);
  --table-border: #2b3b55;
  --table-row-border: #223149;
  --table-row-alt: rgb(17 24 39 / 0.52);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background: var(--depth-bg);
}

body::after {
  z-index: -1;
  background: var(--depth-overlay);
}

/* --------------------------------------------------------------------------
   Skip Link - Accessibility
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-tooltip);
  background: var(--color-accent-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* --------------------------------------------------------------------------
   Header - Modern Navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  background: var(--surface-glass-strong);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft-depth);
}

/* Floating expand button for mobile */
.header-expand-btn {
  display: none;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .header {
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
  }
}

/* Container interno com flex para posicionar logo e controles */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 0 var(--space-6);
  position: relative;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-lg);
  transition: opacity var(--transition-fast);
}

.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 500px;
  min-width: 260px;
  z-index: 1;
}

/* ==========================================================================
   HEADER RESPONSIVO — abordagem single-row sempre
   O header NUNCA quebra em múltiplas linhas. Em vez disso, elementos são
   progressivamente compactados/ocultados conforme a viewport encolhe:
     > 900px  : logo completo + search centralizada + actions
     601–900px : badge some, search encolhe para ocupar espaço disponível
     ≤ 600px  : logo-text some, search vira dropdown via lupa (toggle)
   O header mantém sempre height: var(--header-height).
   ========================================================================== */

/* ── Faixa 601px–900px: sem badge, search encolhe mas permanece visível ── */
@media (max-width: 900px) {
  .header {
    height: var(--header-height);
    overflow: visible;
  }

  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    padding: 0 var(--space-4);
    gap: var(--space-3);
  }

  .docs-version-badge {
    display: none;
  }

  /* Tira o posicionamento absoluto centralizado e deixa a search
     participar do fluxo flex, crescendo no espaço disponível */
  .header-search {
    position: relative;
    left: auto;
    transform: none;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .header-search-input {
    width: 100%;
    max-width: none;
  }

  .header-search-input:focus {
    width: 100%;
  }

  /* Sidebar usa altura real medida pelo JS */
  .sidebar {
    top: var(--header-actual-height, var(--header-height)) !important;
    height: calc(100vh - var(--header-actual-height, var(--header-height))) !important;
  }
}

/* ── ≤ 600px: logo-text compacta, search vira dropdown via lupa ─────────── */
@media (max-width: 600px) {
  .header {
    height: var(--header-height);
    overflow: visible;
  }

  .header-inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-3);
    height: 100%;
  }

  /* Trunca o texto do logo mas não some — fica com max-width limitado */
  .header-logo {
    flex-shrink: 1;
    min-width: 0;
  }

  .header-logo-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 110px;
    font-size: var(--text-base);
  }

  /* Abaixo de 400px some o texto, mantém só o ícone */
  @media (max-width: 400px) {
    .header-logo-text {
      display: none;
    }
  }

  /* Search vira dropdown — oculta por padrão */
  .header-search {
    display: none;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 0 !important;
    padding: var(--space-2) var(--space-3) !important;
    background: var(--surface-glass-strong) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow-md) !important;
    z-index: var(--z-sticky) !important;
    flex: none !important;
    transform: none !important;
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
  }

  /* Aberto quando JS adiciona .search-open ao header */
  .header.search-open .header-search {
    display: block !important;
  }

  .header-search-input {
    width: 100% !important;
    max-width: none !important;
  }

  /* Botão lupa visível */
  .header-search-toggle {
    display: flex !important;
  }

  /* BB-8 um pouco menor */
  .bb8-toggle {
    --toggle-size: 4.8px !important;
  }

  .sidebar {
    top: var(--header-actual-height, var(--header-height)) !important;
    height: calc(100vh - var(--header-actual-height, var(--header-height))) !important;
  }
}

/* Search toggle button — visible only on very small screens (< 540px).
   The button is injected by JS into .header-actions.             */
.header-search-toggle {
  display: none; /* shown via @media (max-width: 540px) */
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.header-search-toggle:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.header-search-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.header-logo:hover {
  opacity: 0.8;
}

.header-logo-text {
  white-space: nowrap;
}

.docs-version-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.header-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-hover));
  border-radius: 6px;
  color: white;
  box-shadow: var(--shadow-glow);
}

.header-logo-icon svg {
  width: 1em;
  height: 1em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 500px;
  min-width: 260px;
  z-index: 1;
}

.header-search-input {
  width: 260px;
  height: 40px;
  padding: 0 var(--space-4) 0 40px;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.header-search-input::placeholder {
  color: var(--color-text-muted);
}

.header-search-input:focus {
  outline: none;
  border-color: var(--color-accent-primary);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
  width: 320px;
}

/* Input em telas pequenas */
@media (max-width: 1024px) {
  .header .header-search-input {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.header-search-icon {
  position: absolute;
  left: var(--space-3);
  color: var(--color-text-muted);
  pointer-events: none;
}

.search-results {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  width: 100%;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface-glass-strong), var(--surface-glass));
  box-shadow: var(--shadow-lg);
  z-index: calc(var(--z-dropdown) + 5);
  padding: var(--space-2);
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  width: 100%;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  border: 1px solid transparent;
}

.search-result-item:hover,
.search-result-item.active {
  background: var(--color-bg-tertiary);
  border-color: var(--color-border-default);
}

.search-result-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.search-result-meta {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.search-result-snippet {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.search-result-item mark {
  background: var(--color-accent-subtle);
  background: color-mix(in srgb, var(--color-accent-primary) 18%, transparent);
  color: var(--color-text-primary);
  border-radius: 3px;
  padding: 0 0.14em;
}

.search-empty {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.header-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  background: transparent;
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-btn:hover {
  background: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}

.header-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.header-btn svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Layout Shell
   -------------------------------------------------------------------------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: calc(100vh - var(--header-height));
}

/* --------------------------------------------------------------------------
   Sidebar Navigation
   -------------------------------------------------------------------------- */
.sidebar {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  background:
    linear-gradient(160deg, var(--sidebar-gloss), transparent 36%),
    var(--sidebar-bg);
  border-right: 1px solid var(--glass-border);
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  box-shadow: inset -1px 0 0 var(--glass-highlight);
}

.sidebar-section {
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-2);
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sidebar-title);
}

.sidebar-title svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar-nav-item {
  margin: 0;
}

.sidebar-nav-link,
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  color: var(--sidebar-link);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  line-height: 1.35;
}

.sidebar-nav-link:hover,
.sidebar-nav a:hover {
  background: var(--sidebar-link-hover-bg);
  color: var(--sidebar-link-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.sidebar-nav-link:focus-visible,
.sidebar-nav a:focus-visible {
  outline: none;
  background: var(--sidebar-link-hover-bg);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

.sidebar-nav-link.active,
.sidebar-nav a.active,
.sidebar-nav a[aria-current="page"] {
  background: var(--sidebar-link-active-bg);
  color: var(--sidebar-link-active);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 3px 0 0 var(--sidebar-link-active-border);
}

/* SVG Icons - using 1em for consistent sizing with text */
/* Using !important to ensure these rules take precedence */
.sidebar-nav-item svg,
.sidebar-nav-link svg,
.sidebar-nav a svg,
.card-title svg,
.callout-icon svg,
.toc-title svg,
.sidebar-title svg,
.breadcrumbs svg,
.nav-arrow-label svg,
.header-btn svg,
.card-link svg,
.header-logo-icon svg {
  width: 1em !important;
  height: 1em !important;
  vertical-align: middle !important;
  flex-shrink: 0;
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
}

/* Heading anchor icons */
svg.heading-anchor-icon {
  width: 1.2em !important;
  height: 1.2em !important;
  vertical-align: middle !important;
  margin-left: 0.25em !important;
}

.sidebar-nav-link svg,
.sidebar-nav a svg {
  color: var(--sidebar-link-icon);
  opacity: 0.75;
}

.sidebar-nav-link:hover svg,
.sidebar-nav a:hover svg,
.sidebar-nav-link.active svg,
.sidebar-nav a.active svg,
.sidebar-nav a[aria-current="page"] svg {
  opacity: 1;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Main Content Area
   -------------------------------------------------------------------------- */
.main {
  padding: var(--space-8) clamp(var(--space-6), 2.8vw, var(--space-12));
  max-width: var(--content-max-width);
  margin: 0 auto;
  width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumbs-item:not(:last-child)::after {
  content: '/';
  color: var(--color-text-muted);
}

.breadcrumbs-link {
  color: var(--color-text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumbs-link:hover {
  color: var(--color-accent-primary);
  text-decoration: none;
}

.breadcrumbs-current {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Version Banner */
.version-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-warning-border);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-md);
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.version-banner-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.version-banner-text {
  font-size: var(--text-sm);
}

.version-banner-link {
  margin-left: auto;
  color: var(--color-warning-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.version-banner-link:hover {
  text-decoration-thickness: 2px;
}

/* --------------------------------------------------------------------------
   Article Header
   -------------------------------------------------------------------------- */
.article-header {
  margin-bottom: var(--space-10);
  padding: var(--space-8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(165deg, var(--surface-glass-strong), var(--surface-glass));
  box-shadow: var(--shadow-soft-depth);
}

.article-title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--color-text-primary), var(--color-accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-lead {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-3);
  max-width: 680px;
}

.article-meta {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.article-meta span {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Content Layout with TOC
   -------------------------------------------------------------------------- */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, var(--toc-width));
  gap: var(--content-gap);
  align-items: start;
}

/* --------------------------------------------------------------------------
   Article Content
   -------------------------------------------------------------------------- */
.article-content {
  min-width: 0;
  max-width: min(100%, var(--article-max-width));
}

/* Give extra horizontal room on ultra-wide displays without stretching text too much */
@media (min-width: 1700px) {
  .main {
    max-width: 1640px;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1040px) minmax(250px, 320px);
  }
}

.article-content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-top: var(--space-8);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  scroll-margin-top: calc(var(--header-height) + var(--space-8));
}

.article-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  scroll-margin-top: calc(var(--header-height) + var(--space-8));
}

.article-content h4 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
}

.article-content p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.article-content li {
  margin-bottom: var(--space-2);
}

.article-content li strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.article-content a {
  color: var(--color-accent-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.article-content a:hover {
  border-bottom-color: var(--color-accent-primary);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  margin: var(--space-6) 0;
  overflow-x: auto;
  border: 1px solid var(--table-border);
  border-radius: var(--radius-lg);
  background: var(--table-surface);
  box-shadow: var(--shadow-sm);
}

.article-content .table-wrap table {
  width: 100%;
  min-width: 640px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.article-content .table-wrap thead th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 700;
  color: var(--color-text-primary);
  background: var(--table-head-surface);
  border-bottom: 1px solid var(--table-row-border);
}

.article-content .table-wrap tbody td {
  padding: var(--space-3) var(--space-4);
  vertical-align: top;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--table-row-border);
}

.article-content .table-wrap tbody tr:nth-child(even) td {
  background: var(--table-row-alt);
}

.article-content .table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.article-content .table-wrap code {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Code Blocks
   -------------------------------------------------------------------------- */
.code-block {
  --code-accent: var(--color-accent-primary);
  --code-accent-soft: rgb(99 102 241 / 0.16);
  position: relative;
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--code-surface);
  border: 1px solid var(--code-border);
  box-shadow: var(--shadow-sm);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--code-surface-strong);
  border-bottom: 1px solid var(--code-header-border);
}

.code-block-lang {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgb(148 163 184 / 0.26);
  background: var(--code-accent-soft);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--code-accent);
}

.code-block-copy {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.code-block-copy:hover {
  background: var(--code-surface);
  border-color: rgb(148 163 184 / 0.24);
  color: var(--color-text-primary);
}

.code-block-copy.copied {
  color: var(--code-accent);
  border-color: rgb(148 163 184 / 0.24);
}

.code-block pre {
  margin: 0;
  padding: var(--space-4);
  overflow-x: auto;
  background: var(--code-surface);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.code-block code {
  font-family: var(--font-mono);
}

/* Jekyll/Rouge wrappers */
.code-block .highlight {
  margin: 0;
  background: transparent;
}

.code-block pre.highlight {
  margin: 0;
  padding: var(--space-4);
  background: transparent;
  border: 0;
}

.code-block pre::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.code-block pre::-webkit-scrollbar-thumb {
  background: rgb(148 163 184 / 0.55);
  border-radius: var(--radius-full);
}

.code-block pre::-webkit-scrollbar-track {
  background: transparent;
}

/* Language accents */
.code-block[data-lang="json"] { --code-accent: #f97316; --code-accent-soft: rgb(249 115 22 / 0.16); }
.code-block[data-lang="yaml"] { --code-accent: #a855f7; --code-accent-soft: rgb(168 85 247 / 0.16); }
.code-block[data-lang="yml"] { --code-accent: #a855f7; --code-accent-soft: rgb(168 85 247 / 0.16); }
.code-block[data-lang="xml"] { --code-accent: #f43f5e; --code-accent-soft: rgb(244 63 94 / 0.16); }
.code-block[data-lang="html"] { --code-accent: #f97316; --code-accent-soft: rgb(249 115 22 / 0.16); }
.code-block[data-lang="javascript"] { --code-accent: #eab308; --code-accent-soft: rgb(234 179 8 / 0.16); }
.code-block[data-lang="typescript"] { --code-accent: #3b82f6; --code-accent-soft: rgb(59 130 246 / 0.16); }
.code-block[data-lang="java"] { --code-accent: #ef4444; --code-accent-soft: rgb(239 68 68 / 0.16); }
.code-block[data-lang="kotlin"] { --code-accent: #8b5cf6; --code-accent-soft: rgb(139 92 246 / 0.16); }
.code-block[data-lang="bash"] { --code-accent: #22c55e; --code-accent-soft: rgb(34 197 94 / 0.16); }
.code-block[data-lang="powershell"] { --code-accent: #60a5fa; --code-accent-soft: rgb(96 165 250 / 0.16); }
.code-block[data-lang="sql"] { --code-accent: #14b8a6; --code-accent-soft: rgb(20 184 166 / 0.16); }
.code-block[data-lang="toml"] { --code-accent: #0ea5e9; --code-accent-soft: rgb(14 165 233 / 0.16); }

/* Rouge token colors */
.code-block .highlight pre,
.code-block .highlight code,
.code-block pre,
.code-block code {
  color: var(--syntax-fg);
}

.code-block .highlight .w {
  color: inherit;
}

.code-block .highlight .c,
.code-block .highlight .c1,
.code-block .highlight .cm,
.code-block .highlight .cp,
.code-block .highlight .cs {
  color: var(--syntax-comment);
  font-style: italic;
}

.code-block .highlight .k,
.code-block .highlight .kc,
.code-block .highlight .kd,
.code-block .highlight .kn,
.code-block .highlight .kp,
.code-block .highlight .kr,
.code-block .highlight .kt,
.code-block .highlight .ow {
  color: var(--syntax-keyword);
  font-weight: 600;
}

.code-block .highlight .s,
.code-block .highlight .s1,
.code-block .highlight .s2,
.code-block .highlight .sa,
.code-block .highlight .sb,
.code-block .highlight .sc,
.code-block .highlight .sd,
.code-block .highlight .se,
.code-block .highlight .sh,
.code-block .highlight .si,
.code-block .highlight .sr,
.code-block .highlight .ss,
.code-block .highlight .sx,
.code-block .highlight .dl {
  color: var(--syntax-string);
}

.code-block .highlight .m,
.code-block .highlight .mb,
.code-block .highlight .mf,
.code-block .highlight .mh,
.code-block .highlight .mi,
.code-block .highlight .mo,
.code-block .highlight .il {
  color: var(--syntax-number);
}

.code-block .highlight .n,
.code-block .highlight .nx,
.code-block .highlight .nv,
.code-block .highlight .vc,
.code-block .highlight .vg,
.code-block .highlight .vi,
.code-block .highlight .vm {
  color: var(--syntax-variable);
}

.code-block .highlight .na,
.code-block .highlight .py {
  color: var(--syntax-property);
}

.code-block .highlight .nb,
.code-block .highlight .nc,
.code-block .highlight .nd,
.code-block .highlight .ne,
.code-block .highlight .nf,
.code-block .highlight .nl,
.code-block .highlight .nn,
.code-block .highlight .nt {
  color: var(--syntax-function);
}

.code-block .highlight .bp,
.code-block .highlight .no,
.code-block .highlight .ni {
  color: var(--syntax-constant);
}

.code-block .highlight .o,
.code-block .highlight .p {
  color: var(--syntax-punctuation);
}

.code-block .highlight .gd {
  color: var(--syntax-deleted);
}

.code-block .highlight .gi {
  color: var(--syntax-added);
}

.code-block .highlight .err,
.code-block .highlight .gr,
.code-block .highlight .gt {
  color: var(--syntax-deleted);
}

/* Inline Code */
.article-content code:not(pre code) {
  padding: 0.2em 0.4em;
  background: var(--color-bg-tertiary);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--color-accent-primary);
}

/* --------------------------------------------------------------------------
   Callouts / Admonitions
   -------------------------------------------------------------------------- */
.callout {
  --callout-accent: var(--color-info);
  --callout-bg: var(--color-info-bg);
  --callout-border: var(--color-info-border);
  --callout-text: var(--color-info-text);
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  margin: var(--space-6) 0;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.08), transparent 52%),
    var(--callout-bg);
  border: 1px solid var(--callout-border);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--callout-accent);
  box-shadow: var(--shadow-soft-depth);
}

.callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 2px;
  border-radius: var(--radius-full);
  color: var(--callout-text);
  background: var(--callout-icon-bg);
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
}

.callout-content {
  flex: 1;
  min-width: 0;
}

.callout-title {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--callout-text);
  letter-spacing: 0.01em;
}

.callout-content p {
  margin-top: 0;
}

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

/* Info Callout */
.callout-info {
  --callout-accent: var(--color-info);
  --callout-bg: var(--color-info-bg);
  --callout-border: var(--color-info-border);
  --callout-text: var(--color-info-text);
}

/* Warning Callout */
.callout-warning {
  --callout-accent: var(--color-warning);
  --callout-bg: var(--color-warning-bg);
  --callout-border: var(--color-warning-border);
  --callout-text: var(--color-warning-text);
}

/* Success Callout */
.callout-success {
  --callout-accent: var(--color-success);
  --callout-bg: var(--color-success-bg);
  --callout-border: var(--color-success-border);
  --callout-text: var(--color-success-text);
}

/* Danger Callout */
.callout-danger {
  --callout-accent: var(--color-danger);
  --callout-bg: var(--color-danger-bg);
  --callout-border: var(--color-danger-border);
  --callout-text: var(--color-danger-text);
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-primary {
  background: var(--color-accent-subtle);
  color: var(--color-accent-primary);
}

.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.badge-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
}

.badge-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
}

.badge-info {
  background: var(--color-info-bg);
  color: var(--color-info-text);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  padding: var(--space-5);
  margin: var(--space-4) 0;
  background: linear-gradient(160deg, var(--surface-glass-strong), var(--surface-glass));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft-depth);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
}

.card-title svg {
  width: 1em;
  height: 1em;
  color: var(--color-accent-primary);
  flex-shrink: 0;
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
}

.card-description {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-3);
  color: var(--color-accent-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.card-link svg {
  width: 1em;
  height: 1em;
  transition: transform var(--transition-fast);
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Table of Contents
   -------------------------------------------------------------------------- */
.toc {
  position: sticky;
  top: calc(var(--header-height) + var(--space-8));
  padding: var(--space-4);
  background: linear-gradient(170deg, var(--surface-glass-strong), var(--surface-glass));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft-depth);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  max-height: calc(100vh - var(--header-height) - var(--space-10));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.toc-title svg {
  width: 14px;
  height: 14px;
}

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

.toc-item {
  margin-bottom: var(--space-1);
}

.toc-link {
  display: block;
  padding: var(--space-1) var(--space-2);
  color: var(--color-text-tertiary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.toc-link:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-tertiary);
}

.toc-link.active {
  color: var(--color-accent-primary);
  font-weight: 500;
  background: var(--color-accent-muted);
}

.toc-link-h3 {
  padding-left: var(--space-6);
}

/* --------------------------------------------------------------------------
   Heading Anchors
   -------------------------------------------------------------------------- */
.heading-anchor {
  opacity: 0;
  margin-left: var(--space-2);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

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

.heading-anchor:hover {
  color: var(--color-accent-primary);
}

/* --------------------------------------------------------------------------
   Navigation Arrows
   -------------------------------------------------------------------------- */
.nav-arrows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-muted);
}

.nav-arrow {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  background: linear-gradient(160deg, var(--surface-glass-strong), var(--surface-glass));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-soft-depth);
  transition: all var(--transition-fast);
}

.nav-arrow:hover {
  border-color: var(--color-accent-primary);
  box-shadow: var(--shadow-md);
}

.nav-arrow-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.nav-arrow-label svg {
  width: 1em;
  height: 1em;
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
}

.nav-arrow-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text-primary);
}

.nav-arrow.prev {
  grid-column: 1;
}

.nav-arrow.next {
  grid-column: 2;
  text-align: right;
  align-items: flex-end;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  
  .toc {
    display: none;
  }
}

@media (max-width: 1024px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    /* Use the JS-measured real height; fall back to the CSS variable */
    top: var(--header-actual-height, var(--header-height));
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-actual-height, var(--header-height)));
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: var(--z-dropdown);
    box-shadow: var(--shadow-xl);
  }

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

  /* Backdrop: tapping outside the open sidebar closes it */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    top: var(--header-actual-height, var(--header-height));
    background: rgb(0 0 0 / 0.35);
    z-index: calc(var(--z-dropdown) - 1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .sidebar-backdrop.open {
    display: block;
  }

  .main {
    padding: var(--space-6) var(--space-6);
  }
}

@media (max-width: 768px) {
  .version-banner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .version-banner-link {
    margin-left: 0;
  }

  /* docs-version-badge já some via o bloco de header < 768px acima */

  .main {
    padding: var(--space-4) var(--space-4);
  }

  .article-title {
    font-size: var(--text-3xl);
  }

  .article-lead {
    font-size: var(--text-lg);
  }

  .nav-arrows {
    grid-template-columns: 1fr;
  }

  .nav-arrow.prev,
  .nav-arrow.next {
    grid-column: 1;
  }

  .nav-arrow.next {
    text-align: left;
    align-items: flex-start;
  }
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .article-header,
  .toc,
  .table-wrap,
  .callout,
  .card,
  .nav-arrow {
    backdrop-filter: saturate(1.15) blur(8px);
    -webkit-backdrop-filter: saturate(1.15) blur(8px);
  }
}

/* --------------------------------------------------------------------------
   Mobile Menu Toggle
   -------------------------------------------------------------------------- */
.mobile-only {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-only {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Screen Reader Only
   -------------------------------------------------------------------------- */
.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;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fade-in {
  animation: fadeIn var(--transition-normal) ease-out;
}

.animate-slide-in {
  animation: slideIn var(--transition-normal) ease-out;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

/* Staggered animations for lists */
.sidebar-nav-item {
  animation: slideIn var(--transition-normal) ease-out backwards;
}

.sidebar-nav-item:nth-child(1) { animation-delay: 0ms; }
.sidebar-nav-item:nth-child(2) { animation-delay: 50ms; }
.sidebar-nav-item:nth-child(3) { animation-delay: 100ms; }
.sidebar-nav-item:nth-child(4) { animation-delay: 150ms; }
.sidebar-nav-item:nth-child(5) { animation-delay: 200ms; }
.sidebar-nav-item:nth-child(6) { animation-delay: 250ms; }
.sidebar-nav-item:nth-child(7) { animation-delay: 300ms; }
.sidebar-nav-item:nth-child(8) { animation-delay: 350ms; }
.sidebar-nav-item:nth-child(9) { animation-delay: 400ms; }

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--color-accent-subtle);
  color: var(--color-accent-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* Help & Support Block */
.help-support {
  margin: var(--space-12) 0 var(--space-8);
  padding: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  background: var(--color-bg-elevated);
  border: 0.5px solid var(--color-border-default);
  border-radius: var(--radius-lg);
}

.help-support-feedback,
.help-support-more {
  flex: 1;
  min-width: 180px;
}

.help-support-divider {
  width: 0.5px;
  background: var(--color-border-default);
  align-self: stretch;
  flex-shrink: 0;
}

.help-support-section-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.help-support-question,
.help-support-title {
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
  line-height: var(--leading-normal);
}

.help-support-privacy {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
}

.help-support-privacy svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-text-tertiary);
  fill: none;
  flex-shrink: 0;
}

.help-support-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.help-support-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent-primary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: gap var(--transition-fast);
}

.help-support-link:hover {
  gap: var(--space-3);
}

.help-support-link svg {
  width: 13px;
  height: 13px;
  stroke: var(--color-accent-primary);
  fill: none;
  flex-shrink: 0;
}

.help-support-link-arrow {
  margin-left: auto;
  width: 13px;
  height: 13px;
  stroke: var(--color-accent-primary);
  fill: none;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .help-support {
    flex-direction: column;
  }
  .help-support-divider {
    width: 100%;
    height: 0.5px;
    align-self: auto;
  }
}

/* Star Rating */
.help-support-stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.star-btn:hover {
  transform: scale(1.18);
}

.star-btn:disabled {
  cursor: default;
  transform: none;
}

.star-btn svg {
  width: 26px;
  height: 26px;
  display: block;
  stroke: var(--color-border-strong);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 150ms ease, fill 150ms ease;
}

.star-btn.hover svg {
  stroke: #fbbf24;
  fill: #fde68a;
}

.star-btn.active svg {
  stroke: #f59e0b;
  fill: #f59e0b;
}

/* Stats block */
.help-support-stats {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  background: var(--color-bg-secondary);
  border: 0.5px solid var(--color-border-default);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.stats-number {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1;
  flex-shrink: 0;
}

.stats-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stats-stars {
  font-size: var(--text-sm);
  color: #f59e0b;
  letter-spacing: 1px;
  line-height: 1;
}

.stats-count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Thank you message */
.help-support-thanks {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-success-bg);
  color: var(--color-success-text);
  border: 0.5px solid var(--color-success-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}

.help-support-thanks svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-success-text);
  fill: none;
  flex-shrink: 0;
}