:root {
  --void: #060607;
  --panel: rgba(20, 21, 24, 0.6);
  --panel-solid: #101114;
  --line: rgba(192, 197, 205, 0.14);
  --line-strong: rgba(192, 197, 205, 0.30);
  --accent: #6bf29a;
  --accent-soft: rgba(107, 242, 154, 0.14);
  --accent-deep: #3fb875;
  --paper: #f2f3f5;
  --dim: #9aa0a8;
  --dim-2: #646a73;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sidebar-w: 272px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

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

.site-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.site-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.35; }
.site-orb-top { width: 520px; height: 520px; top: -220px; left: -120px; background: var(--accent); opacity: 0.16; }
.site-orb-mid { width: 460px; height: 460px; top: 30%; right: -180px; background: var(--accent-deep); opacity: 0.12; }
.site-orb-bot { width: 500px; height: 500px; bottom: -260px; left: 30%; background: var(--accent); opacity: 0.1; }
.site-grain { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 3px 3px; opacity: 0.4; }

.hc-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  height: 64px; padding: 0 24px 0 20px;
  background: rgba(8, 9, 10, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .hc-topbar { padding-left: calc(var(--sidebar-w) + 24px); } }
.hc-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; white-space: nowrap; }
.hc-logo img { width: 26px; height: 26px; }
.hc-logo span { display: none; }
@media (min-width: 560px) { .hc-logo span { display: inline; } }

.hc-nav-icons { display: flex; align-items: center; gap: 6px; color: var(--dim); }
.hc-nav-icons a {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  color: var(--dim); transition: color .15s var(--ease), background .15s var(--ease);
}
.hc-nav-icons a:hover { color: var(--paper); background: var(--panel); }
.hc-nav-icons svg { width: 17px; height: 17px; }

.hc-search-top {
  flex: 1; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 12px 0 14px;
  background: var(--panel-solid); border: 1px solid var(--line);
  border-radius: 10px; color: var(--dim);
}
.hc-search-top svg { width: 15px; height: 15px; flex: none; }
.hc-search-top input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--paper); font-size: 13.5px; font-family: inherit;
}
.hc-search-top input::placeholder { color: var(--dim-2); }
.hc-kbd {
  font-size: 11px; padding: 2px 6px; border-radius: 5px;
  background: rgba(255,255,255,0.06); color: var(--dim); border: 1px solid var(--line);
  flex: none;
}
.hc-menu-btn {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: none; border: 1px solid var(--line); color: var(--paper);
  cursor: pointer;
}
@media (min-width: 900px) { .hc-menu-btn { display: none; } }

.hc-shell { position: relative; z-index: 1; display: flex; max-width: 1600px; margin: 0 auto; padding-top: 64px; }
@media (min-width: 900px) { .hc-shell { padding-left: var(--sidebar-w); } }

.hc-sidebar {
  width: var(--sidebar-w); flex: none;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 45;
  overflow-y: auto; padding: 22px 14px 60px;
  border-right: 1px solid var(--line);
  background: var(--void);
}
.hc-sidebar-brand {
  display: flex; align-items: center; gap: 10px; height: 64px;
  margin: -22px -14px 12px; padding: 0 18px;
  border-bottom: 1px solid var(--line); font-weight: 800; font-size: 16px;
}
.hc-sidebar-brand img { width: 24px; height: 24px; }
@media (max-width: 899px) { .hc-sidebar-brand { display: none; } }
.hc-sidebar::-webkit-scrollbar { width: 6px; }
.hc-sidebar::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }

.hc-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px;
  color: var(--dim); font-size: 14px; font-weight: 600;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.hc-link:hover { color: var(--paper); background: var(--panel); }
.hc-link.is-active { color: var(--accent); background: var(--accent-soft); }
.hc-link svg { width: 16px; height: 16px; flex: none; }

.hc-group { margin-top: 6px; }
.hc-group-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 9px 12px; background: none; border: none; cursor: pointer;
  color: var(--dim); font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hc-group-btn svg.chev { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.hc-group.is-open .chev { transform: rotate(180deg); }
.hc-group-items { display: none; flex-direction: column; gap: 1px; padding-left: 4px; }
.hc-group.is-open .hc-group-items { display: flex; }
.hc-group-items .hc-link { font-size: 13.5px; font-weight: 500; padding-left: 30px; }

@media (max-width: 899px) {
  .hc-sidebar {
    top: 64px; z-index: 49;
    transform: translateX(-100%);
    transition: transform .22s var(--ease);
    width: 84vw; max-width: 320px;
  }
  .hc-sidebar.is-open { transform: translateX(0); }
}

.hc-toc { width: 220px; flex: none; padding: 22px 20px; display: none; }
@media (min-width: 1220px) { .hc-toc { display: block; } }
.hc-toc-inner { position: sticky; top: 86px; }
.hc-toc h5 { font-size: 12px; color: var(--paper); font-weight: 700; margin-bottom: 12px; }
.hc-toc a { display: block; font-size: 13px; color: var(--dim); padding: 5px 0; }
.hc-toc a:hover { color: var(--accent); }

.hc-main { flex: 1; min-width: 0; padding: 56px 32px 90px; max-width: 980px; }

.hc-crumb { font-size: 13px; color: var(--dim-2); margin-bottom: 14px; }
.hc-crumb a { color: var(--dim); }
.hc-crumb a:hover { color: var(--accent); }
.hc-crumb span { margin: 0 4px; }
.hc-h1-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); flex: none;
}
.hc-h1-icon svg { width: 19px; height: 19px; }

.hc-h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.hc-lede { margin-top: 12px; color: var(--dim); font-size: 15.5px; max-width: 640px; }

.hc-search-hero {
  margin-top: 26px; display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 16px; background: var(--panel-solid);
  border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--dim);
}
.hc-search-hero svg { width: 17px; height: 17px; flex: none; }
.hc-search-hero input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--paper); font-size: 14.5px; font-family: inherit;
}
.hc-search-hero input::placeholder { color: var(--dim-2); }

.hc-intro { margin-top: 22px; color: var(--dim); font-size: 15px; max-width: 720px; }
.hc-intro a { color: var(--accent); }

.hc-h2 { margin-top: 46px; font-size: 21px; font-weight: 800; scroll-margin-top: 84px; }

.hc-grid {
  margin-top: 18px; display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 760px) { .hc-grid { grid-template-columns: 1fr; } }

.hc-card {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; border-radius: var(--radius-sm);
  background: var(--accent-soft); border: 1px solid rgba(107, 242, 154, 0.18);
  color: var(--paper); font-weight: 700; font-size: 14px;
  transition: transform .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.hc-card:hover { transform: translateY(-2px); border-color: rgba(107,242,154,0.4); background: rgba(107,242,154,0.2); }
.hc-card-icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: rgba(107,242,154,0.16); color: var(--accent); flex: none;
}
.hc-card-icon svg { width: 16px; height: 16px; }

.hc-article { margin-top: 20px; }
.hc-article h2 { font-size: 20px; font-weight: 800; margin-top: 34px; scroll-margin-top: 84px; }
.hc-article h2:first-child { margin-top: 0; }
.hc-article p { margin-top: 10px; color: var(--dim); font-size: 15px; }
.hc-article ul { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.hc-article li { color: var(--dim); font-size: 15px; padding-left: 18px; position: relative; }
.hc-article li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.hc-article a { color: var(--accent); }
.hc-callout {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--panel); border: 1px solid var(--line); color: var(--dim); font-size: 14px;
  display: flex; gap: 10px; align-items: flex-start;
}
.hc-callout svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }
.hc-code {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--panel-solid); border: 1px solid var(--line);
  font-family: "Menlo", "Consolas", monospace; font-size: 13px; color: var(--paper);
  overflow-x: auto;
}

.hc-footer-nav {
  margin-top: 60px; display: flex; align-items: center; justify-content: flex-end;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.hc-footer-nav a {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--dim);
}
.hc-footer-nav a:hover { color: var(--accent); }
.hc-footer-nav svg { width: 15px; height: 15px; }

.hc-faq { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.hc-faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; }
.hc-faq-item summary {
  cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 700; font-size: 14.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hc-faq-item summary::-webkit-details-marker { display: none; }
.hc-faq-item summary::after { content: "+"; color: var(--accent); font-size: 18px; flex: none; }
.hc-faq-item[open] summary::after { content: "\2212"; }
.hc-faq-item p { padding: 0 16px 15px; color: var(--dim); font-size: 14px; }

[data-hide="1"] { display: none !important; }
