:root {
  color-scheme: dark;
  --bg: #07100e;
  --panel: #0c1714;
  --panel-2: #101f1b;
  --line: rgba(158, 237, 205, 0.14);
  --line-strong: rgba(95, 237, 181, 0.3);
  --text: #edf8f3;
  --muted: #91a9a0;
  --green: #5fedb5;
  --green-deep: #1bb67d;
  --amber: #f4bf65;
  --header-height: 68px;
  --sidebar-width: 292px;
  --toc-width: 240px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: var(--green); text-decoration: none; }
a:hover { color: #a4f8d5; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 10px 14px; background: var(--green); color: #052117; border-radius: 8px; }
.skip-link:focus { top: 10px; }

.docs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 14, 0.9);
  backdrop-filter: blur(20px);
}
.docs-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 750; white-space: nowrap; }
.docs-brand img { width: 32px; height: 32px; border-radius: 9px; }
.docs-brand small { color: var(--muted); font-size: 11px; font-weight: 600; }
.docs-center-link { color: var(--muted); white-space: nowrap; }
.docs-search-wrap { position: relative; width: min(520px, 42vw); margin: 0 auto; }
.docs-search-wrap input { width: 100%; padding: 9px 13px 9px 38px; color: var(--text); border: 1px solid var(--line); border-radius: 10px; outline: 0; background: rgba(255,255,255,.035) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2391a9a0' stroke-width='1.7'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='m10.5 10.5 4 4'/%3E%3C/svg%3E") no-repeat 13px center; }
.docs-search-wrap input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgba(95,237,181,.07); }
.docs-search-results { position: absolute; top: calc(100% + 8px); width: 100%; max-height: 430px; overflow: auto; padding: 7px; border: 1px solid var(--line-strong); border-radius: 12px; background: #0b1713; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.docs-search-results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); }
.docs-search-results a:hover, .docs-search-results a.is-selected { background: rgba(95,237,181,.09); }
.docs-search-results strong { display: block; font-size: 14px; }
.docs-search-results span { color: var(--muted); font-size: 12px; }
.docs-language, .docs-github { padding: 7px 9px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.docs-language:hover, .docs-github:hover { background: rgba(255,255,255,.04); }
.docs-menu { display: none; color: var(--text); border: 0; background: none; font-size: 22px; cursor: pointer; }

.docs-layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--toc-width); min-height: calc(100vh - var(--header-height)); }
.docs-sidebar { position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height)); overflow: auto; padding: 24px 18px 40px; border-right: 1px solid var(--line); background: #091310; scrollbar-width: thin; }
.docs-sidebar__home { display: block; margin-bottom: 22px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 700; }
.docs-nav__group { margin: 0 0 22px; }
.docs-nav__group h2 { margin: 0 10px 7px; color: #c5d8d0; font-size: 12px; letter-spacing: .02em; }
.docs-nav__group h2 span { display: block; color: #637a71; font-size: 10px; font-weight: 550; text-transform: uppercase; letter-spacing: .08em; }
.docs-nav__group ul { margin: 0; padding: 0; list-style: none; }
.docs-nav__link { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; align-items: start; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.docs-nav__link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.docs-nav__link small { padding-top: 1px; color: #61776f; font-size: 9px; text-transform: uppercase; }
.docs-nav__link:hover { color: var(--text); background: rgba(255,255,255,.035); }
.docs-nav__link.is-active { color: var(--green); background: rgba(95,237,181,.08); }

.docs-main { min-width: 0; padding: 42px clamp(30px, 5vw, 76px) 80px; }
.docs-main__tools { min-height: 26px; max-width: 900px; margin: 0 auto 10px; text-align: right; }
.docs-source { color: var(--muted); font-size: 12px; }
.docs-article { max-width: 900px; margin: 0 auto; overflow-wrap: anywhere; }
.docs-article h1 { margin: 0 0 28px; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.04em; }
.docs-article h2 { margin: 58px 0 18px; padding-top: 4px; font-size: 29px; line-height: 1.25; letter-spacing: -.025em; }
.docs-article h3 { margin: 38px 0 14px; font-size: 21px; line-height: 1.35; }
.docs-article h4 { margin: 30px 0 12px; font-size: 16px; }
.docs-article h2, .docs-article h3, .docs-article h4 { scroll-margin-top: 90px; }
.header-anchor { margin-left: 8px; color: transparent; font-size: .7em; }
.docs-article :is(h2,h3,h4):hover .header-anchor { color: #476a5e; }
.docs-article p, .docs-article li { color: #b5c9c1; }
.docs-article strong { color: var(--text); }
.docs-article ul, .docs-article ol { padding-left: 25px; }
.docs-article li + li { margin-top: 5px; }
.docs-article blockquote { margin: 24px 0; padding: 11px 18px; border-left: 3px solid var(--green-deep); background: rgba(95,237,181,.045); }
.docs-article blockquote > :first-child { margin-top: 0; }
.docs-article blockquote > :last-child { margin-bottom: 0; }
.docs-article code { padding: 2px 5px; border: 1px solid rgba(255,255,255,.06); border-radius: 5px; color: #b7f7db; background: #0b1a16; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .88em; }
.docs-article pre { position: relative; margin: 22px 0; overflow: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #050c0a; box-shadow: inset 0 1px rgba(255,255,255,.02); }
.docs-article pre code { padding: 0; border: 0; color: #c6ddd4; background: transparent; font-size: 13px; line-height: 1.65; }
.copy-code { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #0c1714; cursor: pointer; }
.copy-code:hover { color: var(--green); border-color: var(--line-strong); }
.docs-article table { display: block; width: 100%; margin: 24px 0; overflow-x: auto; border-collapse: collapse; font-size: 13.5px; }
.docs-article th, .docs-article td { padding: 10px 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs-article th { color: var(--text); background: rgba(255,255,255,.035); }
.docs-article hr { height: 1px; margin: 44px 0; border: 0; background: var(--line); }

.docs-toc { position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height)); overflow: auto; padding: 36px 24px; border-left: 1px solid var(--line); }
.docs-toc__title { margin-bottom: 13px; color: #d5e5df; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.docs-toc ul { margin: 0; padding: 0; list-style: none; }
.docs-toc ul ul { padding-left: 12px; }
.docs-toc a { display: block; padding: 4px 0; color: #758d84; font-size: 11.5px; line-height: 1.35; }
.docs-toc a:hover, .docs-toc a.is-active { color: var(--green); }
.docs-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 900px; margin: 70px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: #6d837b; font-size: 12px; }

.docs-page--portal .docs-main { padding-top: 0; }
.docs-page--portal .docs-main__tools { display: none; }
.portal-hero { position: relative; margin: 0 calc(clamp(30px, 5vw, 76px) * -1) 70px; padding: 76px clamp(30px, 7vw, 100px); overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 20%, rgba(95,237,181,.13), transparent 32%), linear-gradient(145deg, #0a1914, #07100e 65%); }
.portal-hero::after { content: ""; position: absolute; right: -10%; bottom: -55%; width: 430px; height: 430px; border: 1px solid rgba(95,237,181,.16); border-radius: 50%; box-shadow: 0 0 0 65px rgba(95,237,181,.025), 0 0 0 130px rgba(95,237,181,.018); }
.portal-kicker, .section-heading > span, .resource-panel > div > span { color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; }
.docs-article .portal-hero h1 { max-width: 760px; margin: 18px 0; font-size: clamp(42px, 6vw, 72px); }
.portal-hero > p { max-width: 720px; color: #a9beb5; font-size: 17px; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.portal-actions a { position: relative; z-index: 2; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); font-size: 13px; font-weight: 700; }
.portal-actions a.primary { color: #052117; background: var(--green); }
.portal-stats { display: flex; gap: 45px; margin: 45px 0 0; }
.portal-stats div { display: flex; align-items: baseline; gap: 8px; }
.portal-stats dt { color: var(--text); font-size: 28px; font-weight: 800; }
.portal-stats dd { margin: 0; color: var(--muted); font-size: 12px; }
.portal-section { margin: 70px 0; }
.section-heading { margin-bottom: 28px; }
.docs-article .section-heading h2 { margin: 9px 0 5px; padding: 0; font-size: 34px; }
.section-heading p { max-width: 680px; margin: 0; }
.learning-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.learning-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); }
.docs-article .learning-card h2 { margin: 0; padding: 0; font-size: 21px; }
.learning-card > p { margin: 3px 0 18px; color: var(--muted); font-size: 12px; }
.learning-card ol { margin: 0; padding: 0; list-style: none; }
.learning-card li { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 9px; align-items: start; margin: 8px 0; }
.learning-card li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--green); background: rgba(95,237,181,.08); font-size: 10px; }
.learning-card li a { color: #cbe4da; font-size: 12px; }
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.catalog-group { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.docs-article .catalog-group h2 { margin: 0; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); font-size: 18px; }
.catalog-group h2 span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.catalog-group ul { margin: 0; padding: 6px; list-style: none; }
.catalog-group li { margin: 0; }
.catalog-group a { display: block; padding: 10px 12px; border-radius: 8px; }
.catalog-group a:hover { background: rgba(95,237,181,.06); }
.catalog-group strong { display: block; color: #c9ddd5; font-size: 12.5px; font-weight: 650; }
.catalog-group a span { color: #6f857d; font-size: 10px; }
.resource-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 34px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(95,237,181,.035); }
.docs-article .resource-panel h2 { margin: 8px 0; padding: 0; font-size: 26px; }
.resource-panel p { margin: 0; font-size: 13px; }
.resource-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: center; }
.resource-links a { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: #bfe1d3; font-size: 11px; background: rgba(0,0,0,.14); }
.resource-file-list { margin: 28px 0; padding: 0 !important; list-style: none; }
.resource-file-list li { margin: 8px 0; }
.resource-file-list a { display: flex; justify-content: space-between; gap: 20px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.02); }
.resource-file-list strong { color: #c9ddd5; }
.resource-file-list span { color: var(--muted); font-size: 11px; white-space: nowrap; }

@media (max-width: 1180px) {
  .docs-layout { grid-template-columns: var(--sidebar-width) minmax(0,1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 780px) {
  :root { --header-height: 62px; }
  .docs-header { gap: 10px; padding: 9px 12px; }
  .docs-menu { display: block; }
  .docs-brand span, .docs-brand small, .docs-center-link, .docs-language, .docs-github { display: none; }
  .docs-search-wrap { width: auto; flex: 1; }
  .docs-layout { display: block; }
  .docs-sidebar { position: fixed; z-index: 60; top: var(--header-height); left: 0; width: min(88vw, 330px); transform: translateX(-102%); transition: transform .2s ease; box-shadow: 22px 0 60px rgba(0,0,0,.5); }
  body.is-nav-open .docs-sidebar { transform: translateX(0); }
  .docs-overlay { position: fixed; z-index: 55; inset: var(--header-height) 0 0; background: rgba(0,0,0,.58); }
  body.is-nav-open .docs-overlay { display: block; }
  .docs-main { padding: 30px 20px 60px; }
  .docs-article h1 { font-size: 35px; }
  .docs-article h2 { margin-top: 44px; font-size: 25px; }
  .portal-hero { margin: -30px -20px 55px; padding: 56px 22px 45px; }
  .docs-article .portal-hero h1 { font-size: 42px; }
  .portal-stats { gap: 22px; flex-wrap: wrap; }
  .learning-grid, .catalog, .resource-panel { grid-template-columns: 1fr; }
  .resource-links { grid-template-columns: 1fr; }
  .docs-footer { flex-direction: column; }
}
@media print {
  .docs-header, .docs-sidebar, .docs-toc, .docs-main__tools, .docs-footer { display: none; }
  .docs-layout { display: block; }
  .docs-main { padding: 0; }
  body { color: #111; background: #fff; }
  .docs-article p, .docs-article li { color: #222; }
}
