:root {
  color-scheme: dark;
  --bg: #0c1313;
  --panel: #131d1b;
  --panel-soft: #1a2824;
  --line: #2a3b33;
  --line-light: #40574b;
  --text: #edf1e5;
  --muted: #b6c1ae;
  --dim: #859582;
  --accent: #b8e06f;
  --accent-bright: #d8f0a2;
  --mint: #83c9b3;
  --positive: #b8e06f;
  --code: #080f0f;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Avenir Next', Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background-color: var(--bg); background-image: linear-gradient(rgba(131, 201, 179, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(131, 201, 179, .025) 1px, transparent 1px); background-size: 36px 36px; color: var(--text); font: 16px/1.7 var(--sans); }
a { color: var(--mint); text-decoration: none; }
a:hover { color: #c2e9da; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--panel); }
.skip-link:focus { left: 8px; }
.topbar { position: sticky; top: 0; z-index: 5; height: 72px; padding: 0 clamp(18px, 4vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(151, 178, 154, .14); background: rgba(12, 19, 19, .96); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font: 800 18px/1 var(--display); letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; color: #10180e; border: 1px solid var(--accent); border-radius: 10px 3px; background: var(--accent); font: 800 21px/.9 var(--display); }
.brand-dot { color: var(--mint); }
.brand small { display: block; margin-top: 5px; color: var(--dim); font: 500 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.topbar-nav { display: flex; align-items: center; gap: clamp(12px, 2.3vw, 30px); }
.topbar-nav > a { color: var(--muted); font-size: 12px; }
.topbar-nav > a:hover { color: var(--accent-bright); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 12px rgba(184, 224, 111, .45); }
.topbar-nav > .top-link { padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); }
.topbar-nav > .top-link:hover { border-color: var(--accent); color: var(--accent-bright); }
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); max-width: 1440px; min-height: calc(100vh - 124px); margin: 0 auto; }
.sidebar { position: sticky; top: 0; align-self: start; height: calc(100vh - 1px); overflow-y: auto; padding: 33px 17px 24px 27px; border-right: 1px solid rgba(151, 178, 154, .14); }
.sidebar-heading { padding: 0 12px 13px; color: var(--dim); font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.sidebar-section { margin: 5px 0; }
.sidebar-section summary { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px 10px 5px 10px; background: rgba(19, 29, 27, .8); color: var(--text); cursor: pointer; font-size: 12px; font-weight: 650; list-style: none; }
.sidebar-section summary::-webkit-details-marker { display: none; }
.sidebar-section summary::after { margin-left: auto; color: var(--accent); content: '+'; font: 14px var(--mono); }
.sidebar-section[open] summary::after { content: '−'; }
.sidebar-section summary span { margin-left: auto; color: var(--dim); font: 9px var(--mono); font-weight: 400; }
.sidebar-section[open] summary span { margin-left: 0; }
.sidebar-section summary:hover { border-color: var(--line-light); color: var(--accent-bright); }
.sidebar-section .sidebar-link { margin-left: 7px; }
.sidebar-home, .sidebar-link { display: flex; align-items: flex-start; gap: 11px; margin: 2px 0; padding: 8px 10px; border-radius: 7px; color: var(--muted); font-size: 12px; line-height: 1.45; transition: background .16s, color .16s; }
.sidebar-home:hover, .sidebar-link:hover { background: rgba(184, 224, 111, .08); color: var(--text); }
.sidebar-home.is-active, .sidebar-link.is-active { background: rgba(184, 224, 111, .13); color: var(--accent-bright); }
.nav-index { flex: 0 0 25px; color: #829285; font: 10px/1.8 var(--mono); }
.is-active .nav-index { color: var(--accent); }
.nav-group { margin: 21px 11px 7px; color: #809184; font: 500 9px var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.sidebar-note { margin: 30px 5px 0; padding: 14px; border: 1px solid rgba(131, 201, 179, .16); border-radius: 10px; background: rgba(131, 201, 179, .035); }
.note-icon { color: var(--mint); font-size: 14px; }
.sidebar-note p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.main-content { min-width: 0; padding: 54px clamp(28px, 6vw, 90px) 80px; }
.home { max-width: 1080px; margin: 0 auto; }
.hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 52px); border: 1px solid rgba(184, 224, 111, .22); border-radius: 5px 22px 5px 22px; background: linear-gradient(125deg, rgba(19, 29, 27, .98), rgba(13, 23, 21, .98)); box-shadow: 18px 18px 0 rgba(131, 201, 179, .035); }
.hero:after { content: 'V / 01'; position: absolute; right: 25px; bottom: 13px; color: rgba(216, 240, 162, .35); font: 10px var(--mono); letter-spacing: .15em; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: center; gap: clamp(28px, 5vw, 62px); }
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--mint); font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 22px; height: 1px; background: var(--mint); }
.eyebrow-sep { color: #718175; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.035em; }
.hero h1 { max-width: 640px; margin: 25px 0 17px; font-size: clamp(39px, 3.6vw, 50px); line-height: 1.08; }
.hero h1 span { color: var(--accent-bright); }
.hero-copy { max-width: 590px; margin: 0; color: #c0cbbb; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; gap: 11px; padding: 12px 17px; border-radius: 9px; background: var(--accent); color: #10180e; font-size: 13px; font-weight: 700; }
.button:hover { background: var(--accent-bright); color: #10180e; }
.button-secondary { border: 1px solid var(--line-light); background: transparent; color: var(--text); }
.button-secondary:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 12px 19px; margin-top: 27px; color: #9aa996; font: 10px var(--mono); }
.hero-foot span:before { content: '↳'; margin-right: 7px; color: var(--accent); }
.code-specimen { min-width: 0; overflow: hidden; border: 1px solid #40574b; border-radius: 8px; background: #080f0f; box-shadow: 0 18px 42px rgba(0, 0, 0, .24); transform: rotate(1deg); }
.specimen-bar { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 13px; border-bottom: 1px solid #293a33; color: #9aa996; font: 10px var(--mono); }
.specimen-mark { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #40574b; border-radius: 5px 2px; color: var(--accent); font-weight: 700; }
.specimen-language { margin-left: auto; color: #718175; letter-spacing: .12em; }
.code-specimen pre { overflow-x: auto; margin: 0; padding: 23px 19px; color: #c5d0c4; font: 12px/2 var(--mono); }
.syntax-keyword { color: var(--accent-bright); }
.syntax-type { color: var(--mint); }
.syntax-string { color: #d4c68a; }
.syntax-number { color: #b5ce91; }
.specimen-foot { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-top: 1px solid #293a33; color: #859582; font: 9px var(--mono); letter-spacing: .04em; }
.specimen-foot .status-dot { width: 6px; height: 6px; }
.entrypoints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 25px; }
.entrypoint-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 178px; padding: 17px; border: 1px solid var(--line); border-radius: 4px 13px 4px 13px; background: rgba(19, 29, 27, .84); color: var(--text); transition: border-color .16s, transform .16s, background .16s; }
.entrypoint-card:hover { transform: translateY(-3px); border-color: var(--accent); background: #16221e; color: var(--text); }
.entrypoint-index { margin-bottom: 15px; color: var(--mint); font: 9px var(--mono); letter-spacing: .1em; }
.entrypoint-card strong { margin-bottom: 6px; font: 700 14px/1.35 var(--display); }
.entrypoint-card > span:nth-of-type(2) { color: var(--muted); font-size: 11px; line-height: 1.55; }
.entrypoint-card b { margin-top: auto; padding-top: 17px; color: var(--accent-bright); font: 10px var(--mono); font-weight: 500; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 55px 0 18px; }
.section-heading h2 { margin: 0; font-size: 25px; }
.section-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.section-label { color: var(--dim); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.section-link { flex: 0 0 auto; color: var(--mint); font: 10px var(--mono); }
.section-link:hover { color: var(--accent-bright); }
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.path-card { display: flex; gap: 15px; min-height: 125px; padding: 18px; border: 1px solid var(--line); border-radius: 4px 12px 4px 12px; background: rgba(19, 29, 27, .78); color: var(--text); transition: transform .16s, border-color .16s; }
.path-card:hover { transform: translateY(-2px); border-color: #627568; color: var(--text); }
.card-number { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(184, 224, 111, .13); color: var(--accent-bright); font: 11px var(--mono); }
.card-copy { min-width: 0; }
.card-copy strong { display: block; margin: 3px 0 6px; font: 700 14px var(--display); }
.card-copy p { margin: 0 0 9px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.card-time { color: var(--dim); font: 9px var(--mono); }
.callout { margin: 20px 0; padding: 17px 19px; border: 1px solid rgba(131, 201, 179, .19); border-left: 3px solid var(--mint); border-radius: 9px; background: rgba(131, 201, 179, .045); }
.callout strong { display: block; margin-bottom: 5px; color: var(--mint); font-size: 13px; }
.callout p { margin: 0; color: #c7d1c4; font-size: 13px; }
.callout.warning { border-color: rgba(251, 191, 36, .2); border-left-color: #fbbf24; background: rgba(251, 191, 36, .04); }
.callout.warning strong { color: #fcd34d; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 18px; }
.reference-promo { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 22px 24px; border: 1px solid rgba(131, 201, 179, .19); border-radius: 12px; background: linear-gradient(120deg, rgba(131, 201, 179, .045), rgba(184, 224, 111, .055)); }
.reference-promo h2 { margin: 6px 0; font-size: 20px; }
.reference-promo p { max-width: 540px; margin: 0; color: var(--muted); font-size: 12px; }
.reference-promo .button { flex: 0 0 auto; }
.info-panel { padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.info-panel h3 { margin: 0 0 9px; font-size: 15px; }
.info-panel p, .info-panel li { color: var(--muted); font-size: 12px; }
.info-panel p:last-child { margin-bottom: 0; }
.info-panel ol, .info-panel ul { margin: 9px 0 0; padding-left: 19px; }
.topic-shelf { margin-top: 10px; }
.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.topic-grid a { display: flex; flex-direction: column; min-height: 145px; padding: 15px; border: 1px solid var(--line); border-top: 2px solid var(--mint); background: rgba(19, 29, 27, .72); color: var(--text); transition: border-color .16s, background .16s; }
.topic-grid a:hover { border-top-color: var(--accent); background: #16221e; color: var(--text); }
.topic-grid a span { color: var(--dim); font: 9px var(--mono); letter-spacing: .08em; }
.topic-grid a strong { margin-top: 17px; font: 650 14px var(--display); }
.topic-grid a small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.example-section { margin: 31px 0 44px; }
.example-section > h2 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 21px; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.example-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 4px 12px 4px 12px; background: rgba(19, 29, 27, .78); }
.example-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.example-card h3 { margin: 0; font: 700 15px/1.4 var(--display); }
.example-mode { flex: 0 0 auto; padding: 4px 7px; border: 1px solid rgba(131, 201, 179, .27); border-radius: 99px; color: var(--mint); font: 9px var(--mono); }
.example-mode-failure { border-color: rgba(246, 207, 121, .3); color: #f6cf79; }
.example-card > p { margin: 9px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.example-result { display: grid; gap: 3px; margin: 12px 0; padding: 10px 12px; border-left: 2px solid var(--positive); background: rgba(184, 224, 111, .045); }
.example-result strong { color: var(--accent-bright); font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.example-card-failure .example-result { border-left-color: #f6cf79; background: rgba(246, 207, 121, .045); }
.example-card-failure .example-result strong { color: #f6cf79; }
.example-result span { color: var(--muted); font-size: 11px; }
.example-card pre { overflow: auto; margin: 12px 0; padding: 11px 12px; border: 1px solid #293a33; border-radius: 7px; background: var(--code); color: #d7e1d2; font: 10px/1.65 var(--mono); }
.example-card pre code { font: inherit; }
.example-links { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 12px; font-size: 10px; }
.example-links a { color: var(--mint); }
.example-links a:hover { color: var(--accent-bright); }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.note-panel { display: flex; gap: 12px; padding: 18px; border: 1px solid var(--line); background: rgba(19, 29, 27, .76); }
.note-symbol { flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #40574b; border-radius: 7px 2px; color: var(--accent); font: 11px var(--mono); }
.note-panel strong { color: var(--text); font: 650 13px var(--display); }
.note-panel p { margin: 8px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.note-panel a { color: var(--mint); font-size: 10px; }
.note-panel a:hover { color: var(--accent-bright); }
.lesson { max-width: 840px; margin: 0 auto; }
.lesson-header { margin: 23px 0 39px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.lesson-header h1 { margin: 0 0 14px; font-size: clamp(36px, 5vw, 53px); line-height: 1.12; }
.lesson-lead { max-width: 700px; margin: 0; color: #b7c2d7; font-size: 17px; line-height: 1.7; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; color: var(--dim); font: 10px var(--mono); }
.lesson-meta span:first-child { color: var(--mint); text-transform: uppercase; letter-spacing: .09em; }
.lesson-body { color: #c5d0c4; }
.lesson-body h2 { margin: 43px 0 13px; color: var(--text); font-size: 25px; }
.lesson-body h3 { margin: 28px 0 8px; color: #e1e8dc; font-size: 17px; }
.lesson-body p { margin: 13px 0; }
.lesson-body ul, .lesson-body ol { padding-left: 24px; }
.lesson-body li { margin: 7px 0; }
.lesson-body strong { color: #e7eddb; }
.lesson-body code:not(pre code), .lesson-body li code { padding: 2px 5px; border: 1px solid rgba(151, 178, 154, .14); border-radius: 5px; background: #18231f; color: var(--mint); font: .91em var(--mono); }
.lesson-body pre { overflow-x: auto; margin: 17px 0 20px; padding: 19px 21px; border: 1px solid #293a33; border-radius: 11px; background: var(--code); color: #d7e1d2; font: 12px/1.8 var(--mono); tab-size: 4; }
.lesson-body pre code { font: inherit; }
.lesson-body blockquote { margin: 17px 0; padding: 4px 18px; border-left: 2px solid var(--accent); color: var(--muted); }
.lesson-body table { width: 100%; margin: 18px 0; border-collapse: collapse; font-size: 12px; }
.lesson-body th, .lesson-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.lesson-body th { background: var(--panel-soft); color: var(--text); font-weight: 600; }
.lesson-body td { color: var(--muted); }
.lesson-body .callout { color: #c7d1c4; }
.lesson-completion { display: flex; gap: 13px; margin-top: 42px; padding: 17px 19px; border: 1px solid rgba(184, 224, 111, .2); border-radius: 10px; background: rgba(184, 224, 111, .045); }
.completion-star { color: var(--accent); }
.lesson-completion strong { color: var(--accent-bright); font-size: 12px; }
.lesson-completion p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.lesson-pager { display: flex; justify-content: space-between; gap: 15px; margin-top: 18px; }
.pager-card { display: flex; flex-direction: column; gap: 4px; max-width: 48%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); }
.pager-card:hover { border-color: var(--accent); color: var(--text); }
.pager-card span { color: var(--dim); font: 9px var(--mono); text-transform: uppercase; }
.pager-card strong { font: 600 12px var(--display); }
.pager-next { margin-left: auto; text-align: right; }
.practice-block { margin: 34px 0; padding: 20px 22px; border: 1px solid rgba(184, 224, 111, .22); border-radius: 12px; background: rgba(184, 224, 111, .035); }
.practice-block h2 { margin-top: 0; }
.practice-block ol { padding-left: 22px; }
.practice-block li { margin: 12px 0; }
.practice-block details { margin-top: 15px; padding-top: 13px; border-top: 1px solid rgba(184, 224, 111, .17); }
.practice-block summary { color: var(--accent-bright); font-size: 12px; font-weight: 600; cursor: pointer; }
.practice-block details p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.reference-page { max-width: 900px; margin: 0 auto; }
.reference-page .lesson-header { margin-bottom: 31px; }
.reference-source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; color: var(--dim); font: 10px var(--mono); }
.reference-source code { color: var(--mint); }
.reference-source-separator { color: #627568; }
.reference-status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 17px; padding: 10px 12px; border: 1px solid rgba(246, 207, 121, .18); border-radius: 7px; background: rgba(246, 207, 121, .035); color: var(--muted); font-size: 11px; }
.reference-status strong { color: #f6cf79; font: 10px var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.reference-toc, .lesson-toc { margin: -12px 0 30px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 5px 10px 5px 10px; background: rgba(19, 29, 27, .76); }
.reference-toc[hidden], .lesson-toc[hidden] { display: none; }
.reference-toc strong, .lesson-toc strong { color: var(--text); font: 600 11px var(--display); }
.reference-toc ul, .lesson-toc ul { display: flex; flex-wrap: wrap; gap: 7px 17px; margin: 9px 0 0; padding: 0; list-style: none; }
.reference-toc a, .lesson-toc a { color: var(--muted); font-size: 11px; }
.reference-toc a:hover, .lesson-toc a:hover { color: var(--mint); }
.reference-body { color: #c5d0c4; }
.reference-body h2 { margin: 39px 0 12px; color: var(--text); font: 700 24px/1.25 var(--display); letter-spacing: -.03em; }
.reference-body h3 { margin: 26px 0 8px; color: #e1e8dc; font: 650 17px/1.35 var(--display); }
.reference-body p { margin: 12px 0; }
.reference-body ul, .reference-body ol { padding-left: 23px; }
.reference-body li { margin: 7px 0; }
.reference-body strong { color: #e7eddb; }
.reference-body code:not(pre code), .reference-body li code { padding: 2px 5px; border: 1px solid rgba(151, 178, 154, .14); border-radius: 5px; background: #18231f; color: var(--mint); font: .91em var(--mono); }
.reference-body pre { overflow-x: auto; margin: 16px 0 19px; padding: 18px 20px; border: 1px solid #293a33; border-radius: 10px; background: var(--code); color: #d7e1d2; font: 12px/1.8 var(--mono); tab-size: 4; }
.reference-body pre code { font: inherit; }
.reference-body table { width: 100%; margin: 17px 0 22px; border-collapse: collapse; font-size: 12px; }
.reference-body th, .reference-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.reference-body th { background: var(--panel-soft); color: var(--text); font-weight: 600; }
.reference-body td { color: var(--muted); }
.reference-body .reference-callout { margin: 18px 0; padding: 15px 18px; border: 1px solid rgba(131, 201, 179, .18); border-left: 3px solid var(--mint); border-radius: 8px; background: rgba(131, 201, 179, .04); }
.reference-body .reference-callout strong { color: var(--mint); }
.reference-body .reference-callout.warning { border-color: rgba(251, 191, 36, .2); border-left-color: #fbbf24; background: rgba(251, 191, 36, .04); }
.reference-body .reference-callout.warning strong { color: #fcd34d; }
.reference-token-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.reference-token-list code { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--mint); font: 10px var(--mono); }
.status-tag { display: inline-block; padding: 3px 7px; border: 1px solid currentColor; border-radius: 99px; font: 10px var(--mono); white-space: nowrap; }
.status-known { color: var(--positive); }
.status-partial { color: #f6cf79; }
.status-limited { color: #f6a995; }
.status-review { color: var(--accent-bright); }
.reference-index { max-width: 900px; margin: 0 auto; }
.reference-index .lesson-header { margin-bottom: 27px; }
.reference-search-label { display: block; margin: 0 0 8px; color: var(--text); font: 600 12px var(--display); }
.reference-search-wrap { display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--line-light); border-radius: 9px; background: #0a1110; color: var(--dim); }
.reference-search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184, 224, 111, .1); }
.reference-search-wrap > span { color: var(--mint); font-size: 20px; }
.reference-search-wrap input { width: 100%; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--text); font: 13px var(--sans); }
.reference-search-wrap input::placeholder { color: #718175; }
.reference-search-wrap kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--dim); font: 10px var(--mono); }
.reference-search-status { min-height: 18px; margin: 9px 0 14px; color: var(--dim); font: 10px var(--mono); }
.reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reference-card { display: flex; gap: 13px; min-height: 112px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); transition: border-color .16s, transform .16s; }
.reference-card:hover { transform: translateY(-2px); border-color: var(--mint); color: var(--text); }
.reference-card[hidden] { display: none; }
.reference-card-number { flex: 0 0 32px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(131, 201, 179, .09); color: var(--mint); font: 10px var(--mono); }
.reference-card-copy { display: grid; gap: 6px; }
.reference-card-copy strong { font: 700 13px var(--display); }
.reference-card-copy > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.reference-card-copy small { margin-top: 3px; color: var(--dim); font: 9px var(--mono); }
.reference-card-copy .reference-card-hit { color: var(--mint); font: 10px/1.5 var(--sans); overflow-wrap: anywhere; }
.reference-no-results { margin: 20px 0; padding: 18px; border: 1px dashed var(--line-light); border-radius: 9px; color: var(--muted); text-align: center; font-size: 13px; }
.reference-no-results[hidden] { display: none; }
.reference-notice { margin-top: 28px; }
.reference-index-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.reference-index-footer a { color: var(--mint); }
.glossary-list { display: grid; grid-template-columns: minmax(155px, .32fr) 1fr; gap: 0 20px; margin: 0; }
.glossary-list dt, .glossary-list dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.glossary-list dt { color: var(--mint); font: 11px var(--mono); }
.glossary-list dd { color: var(--muted); font-size: 12px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 34px; border-top: 1px solid rgba(151, 178, 154, .14); color: var(--dim); font-size: 11px; }
.site-footer a { color: var(--muted); }

@media (max-width: 850px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 4px 8px; height: auto; max-height: 255px; overflow-x: hidden; overflow-y: auto; padding: 12px 18px; border-right: 0; border-bottom: 1px solid rgba(151, 178, 154, .14); white-space: normal; }
  .sidebar-home, .sidebar-section { grid-column: 1 / -1; }
  .sidebar-heading { display: block; grid-column: 1 / -1; padding: 2px 7px; }
  .nav-group { display: block; grid-column: 1 / -1; margin: 8px 4px 2px; padding-top: 7px; border-top: 1px solid rgba(151, 178, 154, .12); }
  .sidebar-note { display: none; }
  .sidebar-home, .sidebar-link { min-width: 0; margin: 0; padding: 8px 9px; border: 1px solid var(--line); font-size: 11px; }
  .nav-index { display: none; }
  .main-content { padding: 30px 22px 60px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); gap: 25px; }
  .entrypoints { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes-grid { grid-template-columns: 1fr; }
  .note-panel { min-height: 105px; }
}
@media (max-width: 600px) {
  .topbar { height: auto; min-height: 62px; flex-wrap: wrap; gap: 10px; padding: 12px 16px 9px; }
  .topbar-nav { width: 100%; justify-content: space-between; gap: 8px; overflow-x: auto; }
  .topbar-nav > a { flex: 0 0 auto; font-size: 10px; }
  .topbar-nav > .top-link { padding: 5px 8px; }
  .sidebar { display: none; }
  .main-content { padding: 24px 16px 50px; }
  .hero { padding: 26px 21px; border-radius: 4px 15px 4px 15px; }
  .hero-grid { grid-template-columns: 1fr; gap: 29px; }
  .code-specimen { max-width: 500px; transform: none; }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 15px; }
  .entrypoints, .example-grid { grid-template-columns: 1fr; }
  .entrypoint-card { min-height: 155px; }
  .path-grid, .about-grid, .reference-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-link { font-size: 9px; }
  .reference-promo { align-items: flex-start; flex-direction: column; }
  .glossary-list { grid-template-columns: 1fr; gap: 0; }
  .glossary-list dt { padding-bottom: 3px; border-bottom: 0; }
  .glossary-list dd { padding-top: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .lesson-header h1 { font-size: 37px; }
  .lesson-lead { font-size: 15px; }
  .lesson-body pre { padding: 15px; font-size: 11px; }
  .lesson-body table, .reference-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; white-space: normal; }
  .lesson-body th:first-child, .lesson-body td:first-child, .reference-body th:first-child, .reference-body td:first-child { width: 25%; }
  .lesson-body th:nth-child(2), .lesson-body td:nth-child(2), .reference-body th:nth-child(2), .reference-body td:nth-child(2) { width: 40%; }
  .lesson-body th:nth-child(3), .lesson-body td:nth-child(3), .reference-body th:nth-child(3), .reference-body td:nth-child(3) { width: 35%; }
  .lesson-body th, .lesson-body td, .reference-body th, .reference-body td { overflow-wrap: anywhere; }
  .lesson-body td code, .lesson-body th code, .reference-body td code, .reference-body th code { overflow-wrap: anywhere; white-space: normal; word-break: break-word; }
  .status-tag { text-align: center; white-space: normal; }
  .reference-body pre { padding: 15px; font-size: 11px; }
  .site-footer { padding: 18px; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
