/* DWCode site: an editor-like page. Monospace everywhere, compact sizes,
   cyan/magenta signal on near-black over a static code backdrop.
   Token names match the shared <cybercore-contact> block. */
:root {
  --bg: #05070b;
  --panel: #0b1017;
  --panel-2: #0f1620;
  --line: #1a2431;
  --line-hi: #283647;
  --fg: #d7e0e9;
  --white: #f2f6fa;
  --muted: #7d8a99;
  --dim: #556273;
  --cyan: #2ee6f6;
  --pink: #ff2e97;
  --acid: #b6ff3b;
  --orange: #ffb347;
  --purple: #9b6bff;
  --green: #6ee7a8;
  --radius: 10px;
  --max: 1148px;
  --gutter: 16px;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Styled scrollbars (page + inner panes) */
html { scrollbar-color: #2b3b4f var(--bg); scrollbar-width: thin; }
* { scrollbar-color: #2b3b4f transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(46,230,246,.55), rgba(155,107,255,.55) 50%, rgba(255,46,151,.55)); border-radius: 10px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--cyan), var(--purple) 50%, var(--pink)); }
::-webkit-scrollbar-corner { background: var(--bg); }

body {
  margin: 0;
  color: var(--fg);
  font: 400 14px/1.65 var(--mono);
  font-feature-settings: "calt" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(5,7,11,.92) 0%, rgba(5,7,11,.80) 22%, rgba(5,7,11,.80) 78%, rgba(5,7,11,.92) 100%),
    url("assets/bg-editor.svg") center top / cover fixed,
    var(--bg);
}

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .92em; color: var(--white); background: rgba(46,230,246,.08); border: 1px solid rgba(46,230,246,.16); padding: .05em .35em; border-radius: 4px; }
kbd { font-size: .85em; padding: .05em .4em; border: 1px solid var(--line-hi); border-bottom-width: 2px; border-radius: 4px; background: var(--panel-2); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #000; padding: 6px 10px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.comment { color: var(--dim); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  font: 500 13px/1 var(--mono); padding: 11px 15px; border-radius: 7px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #031015; background: var(--cyan); box-shadow: 0 0 0 1px rgba(46,230,246,.5), 0 8px 26px -10px rgba(46,230,246,.8); }
.btn-primary:hover { color: #031015; box-shadow: 0 0 0 1px var(--cyan), 0 10px 32px -8px rgba(46,230,246,1); }
.btn-ghost { color: var(--fg); background: rgba(11,16,23,.7); border-color: var(--line-hi); }
.btn-ghost:hover { color: var(--white); border-color: var(--pink); box-shadow: 0 0 20px -8px rgba(255,46,151,.8); }
.btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 6px; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 50; height: 52px;
  display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
  background: rgba(5,7,11,.82); backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; font: 700 15px/1 var(--mono); letter-spacing: .14em; text-decoration: none; }
.wm-d { color: var(--cyan); } .wm-w { color: var(--pink); } .wm-rest { color: var(--white); }
.wordmark svg { height: 24px; width: auto; display: block; overflow: visible; }
.hero-logo { height: clamp(56px, 8vw, 84px); margin: 0 0 22px; }
.hero-logo svg { height: 100%; width: auto; max-width: 100%; display: block; overflow: visible; }
.hero-logo svg .ch-0 { color: var(--cyan); } .hero-logo svg .ch-1 { color: var(--pink); }
.hero-logo svg .ch-0, .hero-logo svg .ch-1 { filter: drop-shadow(0 0 10px currentColor); }
.hero-logo svg .cursor { animation: blink 1.06s steps(1) infinite; }
.wordmark svg .ch-0, .wordmark svg .ch-1 { filter: drop-shadow(0 0 5px currentColor); }
.wordmark svg .ch-0 { color: var(--cyan); } .wordmark svg .ch-1 { color: var(--pink); }
.wordmark svg .cursor { animation: blink 1.06s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bar-path { color: var(--dim); font-size: 12px; }
.bar-path b { color: var(--green); font-weight: 500; }
.bar-path b::before { content: "⎇ "; }
.bar-gh { margin-left: auto; font-size: 12px; color: var(--fg); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line-hi); border-radius: 6px; }
.bar-gh:hover { color: var(--white); border-color: var(--cyan); }
.burger { width: 38px; height: 34px; display: grid; place-content: center; gap: 4px; background: transparent; border: 1px solid var(--line-hi); border-radius: 6px; cursor: pointer; }
.burger span { display: block; width: 16px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger:hover { border-color: var(--cyan); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 640px) { .bar-path { display: none; } }

/* Drawer (hamburger menu) */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(340px, 88vw);
  display: flex; flex-direction: column; background: rgba(8,12,18,.97); border-left: 1px solid var(--line-hi);
  box-shadow: -30px 0 60px -20px rgba(0,0,0,.9), -1px 0 30px -12px rgba(46,230,246,.35);
  transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.drawer-close { background: none; border: 1px solid var(--line-hi); color: var(--fg); border-radius: 6px; width: 32px; height: 30px; cursor: pointer; }
.drawer-body { flex: 1; overflow: auto; padding: 10px 6px; }
.drawer-group { margin: 6px 0 14px; }
.drawer-group > p { margin: 0 10px 4px; font-size: 11px; color: var(--dim); text-transform: lowercase; }
.drawer-group a { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; font-size: 13px; }
.drawer-group a:hover, .drawer-group a[aria-current="true"] { background: rgba(46,230,246,.08); color: var(--white); }
.drawer-group a .ico { width: 16px; color: var(--cyan); text-align: center; }
.drawer-group a small { margin-left: auto; color: var(--dim); font-size: 11px; }
.drawer-foot { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11px; }
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); backdrop-filter: blur(2px); }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: clamp(36px, 7vw, 76px) var(--gutter) 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px 36px; align-items: start;
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 12px; color: var(--cyan); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px var(--acid); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
h1, h2, h3 { font-family: var(--mono); color: var(--white); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 700; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--purple) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 14.5px; color: #aebbc8; max-width: 52ch; margin: 16px 0 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-term { border: 1px solid var(--line-hi); border-radius: var(--radius); background: rgba(7,10,15,.92); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), 0 0 40px -18px rgba(255,46,151,.45); }
.term-bar, .frame-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #0a0f16; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--dim); }
.term-bar i, .frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #263243; }
.term-bar i:nth-child(1), .frame-bar i:nth-child(1) { background: #ff2e97aa; }
.term-bar i:nth-child(2), .frame-bar i:nth-child(2) { background: #ffb347aa; }
.term-bar i:nth-child(3), .frame-bar i:nth-child(3) { background: #2ee6f6aa; }
.term-bar span, .frame-bar span { margin-left: 8px; }
.term { margin: 0; padding: 14px 16px; font-size: 12.5px; line-height: 1.85; color: #c8d3de; white-space: pre-wrap; }
.term b { font-weight: 600; } .term .p { color: var(--pink); } .term .ok { color: var(--green); } .term .warn { color: var(--orange); }
.term s { text-decoration: none; color: var(--muted); }
.caret { display: inline-block; width: 8px; height: 14px; vertical-align: -2px; background: var(--cyan); animation: blink 1.06s steps(1) infinite; }
.hero-shot { grid-column: 1 / -1; margin-top: 18px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* Frames */
.frame { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--panel); border: 1px solid var(--line-hi); box-shadow: 0 30px 70px -34px rgba(0,0,0,.95), 0 0 50px -24px rgba(46,230,246,.4); }
.frame::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(46,230,246,.8), rgba(255,46,151,.8), transparent); }
.frame figcaption { padding: 9px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: #0a0f16; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 92px) var(--gutter) 0; }
.section-head { max-width: 72ch; margin-bottom: 24px; }
.kicker { margin: 0 0 8px; font-size: 12px; color: var(--pink); }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; }
.section-head p:not(.kicker) { color: #a8b5c2; margin: 12px 0 0; }
.section-head b { color: var(--white); font-weight: 600; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.card {
  position: relative; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%;
  padding: 18px 18px 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,22,32,.92), rgba(11,16,23,.92)); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .25s; transform-style: preserve-3d;
}
.card:hover, .card:focus-visible { border-color: rgba(46,230,246,.5); box-shadow: 0 18px 40px -24px rgba(46,230,246,.6); }
.card:nth-child(even):hover { border-color: rgba(255,46,151,.5); box-shadow: 0 18px 40px -24px rgba(255,46,151,.6); }
.card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.glyph { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--cyan); background: rgba(46,230,246,.08); border: 1px solid rgba(46,230,246,.25); }
.card:nth-child(even) .glyph { color: var(--pink); background: rgba(255,46,151,.08); border-color: rgba(255,46,151,.25); }
.card h3 { font-size: 14.5px; font-weight: 600; }
.card p { margin: 0; color: #9eabb9; font-size: 13px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--dim); }
.card-foot .open { color: var(--cyan); }
.status { display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.status.partial::before { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.honest { margin: 18px 0 0; padding: 11px 14px; border-left: 2px solid var(--orange); background: rgba(255,179,71,.06); border-radius: 0 8px 8px 0; color: #c3ccd5; font-size: 13px; }
.honest b { color: var(--orange); font-weight: 500; }

/* Feature sheet (popup) */
.sheet { width: min(760px, calc(100vw - 24px)); max-height: min(86vh, 860px); padding: 0; border: 1px solid var(--line-hi); border-radius: 12px; background: #080c12; color: var(--fg); box-shadow: 0 40px 100px -20px rgba(0,0,0,.95), 0 0 60px -20px rgba(46,230,246,.45); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; animation: sheetIn .22s cubic-bezier(.2,.8,.2,1); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.sheet::backdrop { background: rgba(2,4,8,.7); backdrop-filter: blur(3px); }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 14px; background: #0a0f16; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sheet-close { background: none; border: 1px solid var(--line-hi); color: var(--fg); border-radius: 6px; width: 30px; height: 28px; cursor: pointer; }
.sheet-close:hover { border-color: var(--pink); }
.sheet-body { overflow: auto; padding: 20px 22px 22px; }
.sheet-body h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.sheet-body .sum { color: #b3bfcb; margin: 10px 0 16px; }
.sheet-body h4 { margin: 18px 0 8px; font-size: 12px; font-weight: 500; color: var(--pink); }
.sheet-body ul { margin: 0; padding-left: 18px; color: #c3ccd5; }
.sheet-body li { margin: 3px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.stat { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.stat b { display: block; font-size: 16px; color: var(--white); font-weight: 600; }
.stat span { font-size: 11px; color: var(--muted); }
.tests { display: grid; gap: 4px; }
.test { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
.test::before { content: "✓"; color: var(--green); }
.test code { background: none; border: 0; padding: 0; color: #c3ccd5; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { font-size: 12px; text-decoration: none; padding: 6px 10px; border: 1px solid var(--line-hi); border-radius: 6px; color: var(--fg); }
.links a:hover { border-color: var(--cyan); color: var(--white); }
.telemetry { margin-top: 18px; padding: 9px 12px; border: 1px dashed var(--line-hi); border-radius: 8px; font-size: 12px; color: var(--muted); }
.telemetry b { color: var(--green); font-weight: 500; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 12.5px; }

/* Tour */
.tabs, .demo-files { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs { margin-bottom: 12px; }
.tabs button, .demo-files button {
  font: 500 12.5px/1 var(--mono); color: var(--muted); cursor: pointer;
  padding: 9px 12px; border-radius: 7px; background: rgba(11,16,23,.85); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s;
}
.tabs button:hover, .demo-files button:hover { color: var(--white); border-color: var(--line-hi); }
.tabs [aria-selected="true"], .demo-files [aria-selected="true"] { color: #031015; background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px -6px var(--cyan); }
.tour-stage { position: relative; aspect-ratio: 16 / 10; background: #070a10; }
.tour-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.tour-stage img.leaving { opacity: 0; }

/* Theme explorer */
.theme-explorer { display: grid; grid-template-columns: 290px 1fr; border: 1px solid var(--line-hi); border-radius: var(--radius); overflow: hidden; background: rgba(8,12,18,.92); min-height: 520px; }
@media (max-width: 820px) { .theme-explorer { grid-template-columns: 1fr; } .tree { max-height: 300px; border-right: 0 !important; border-bottom: 1px solid var(--line); } }
.tree { overflow: auto; max-height: 560px; padding: 8px 0; border-right: 1px solid var(--line); font-size: 12.5px; }
.tree-title { padding: 4px 14px 8px; font-size: 11px; color: var(--dim); }
.folder > button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 5px 12px; background: none; border: 0; color: var(--fg); font: inherit; cursor: pointer; text-align: left; }
.folder > button:hover { background: rgba(255,255,255,.03); }
.folder > button .chev { width: 10px; color: var(--muted); transition: transform .15s; }
.folder > button[aria-expanded="true"] .chev { transform: rotate(90deg); }
.folder > button .fico { color: var(--orange); }
.folder > button small { margin-left: auto; color: var(--dim); }
.folder ul { list-style: none; margin: 0; padding: 0; }
.folder ul[hidden] { display: none; }
.leaf { width: 100%; display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 38px; background: none; border: 0; border-left: 2px solid transparent; color: #aab6c3; font: inherit; cursor: pointer; text-align: left; }
.leaf:hover { background: rgba(255,255,255,.03); color: var(--white); }
.leaf[aria-selected="true"] { background: rgba(46,230,246,.08); border-left-color: var(--cyan); color: var(--white); }
.leaf .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.leaf .ext { color: var(--dim); }
.preview { display: flex; flex-direction: column; min-width: 0; }
.pv-tabs { display: flex; align-items: end; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid; }
.pv-tab { padding: 6px 12px; font-size: 12px; border-radius: 6px 6px 0 0; border: 1px solid; border-bottom: 0; }
.pv-code { margin: 0; flex: 1; padding: 12px 0; font-size: 13px; line-height: 1.75; overflow: auto; }
.pv-code .row { display: flex; padding-right: 16px; }
.pv-code .row.cur { box-shadow: inset 2px 0 0 currentColor; }
.pv-code .num { width: 46px; flex: none; text-align: right; padding-right: 16px; user-select: none; }
.pv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: #090d13; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.chip i { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.pv-meta .btn { margin-left: auto; }
.pv-title { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #090d13; font-size: 12px; color: var(--muted); }
.pv-title b { color: var(--white); font-weight: 600; }

/* Demo */
.demo { border-radius: var(--radius); border: 1px solid var(--line-hi); background: var(--panel); overflow: hidden; box-shadow: 0 30px 70px -40px rgba(0,0,0,.95), 0 0 50px -26px rgba(255,46,151,.45); }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px; background: #0a0f16; border-bottom: 1px solid var(--line); }
.demo-tools { display: flex; gap: 8px; align-items: center; }
select { font: 12px var(--mono); color: var(--fg); background: var(--panel-2); border: 1px solid var(--line-hi); border-radius: 6px; padding: 6px 8px; max-width: 220px; }
.demo-stage { position: relative; height: clamp(360px, 58vh, 540px); background: #070a10; }
.demo-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-start { position: absolute; inset: 0; margin: auto; width: min(320px, 86%); height: 150px; display: grid; place-items: center; align-content: center; gap: 6px; cursor: pointer; color: var(--white); font: 600 14px/1.2 var(--mono); background: rgba(11,16,23,.9); border: 1px solid var(--line-hi); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.demo-start:hover { border-color: var(--cyan); box-shadow: 0 0 36px -10px var(--cyan); }
.demo-start small { font: 400 11.5px var(--mono); color: var(--muted); }
.play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #031015; background: var(--cyan); font-size: 16px; box-shadow: 0 0 26px -4px var(--cyan); }
.demo-note { margin: 0; padding: 10px 14px; font-size: 12.5px; color: #a8b5c2; border-top: 1px solid var(--line); background: #0a0f16; }
.demo-note b { color: var(--orange); font-weight: 500; }
.demo:not(.live) .demo-tools, .demo:not(.live) .demo-files { opacity: .45; pointer-events: none; }

/* Build */
.code { border-radius: var(--radius); border: 1px solid var(--line-hi); background: rgba(7,10,15,.94); overflow: hidden; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 14px; background: #0a0f16; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.8; color: #d3dee9; }
.code pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.code .ln { display: inline-block; width: 2ch; margin-right: 16px; color: var(--dim); text-align: right; user-select: none; }

/* Footer */
.footer { max-width: var(--max); margin: clamp(72px, 9vw, 110px) auto 0; padding: 0 var(--gutter) 32px; }
.legal { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }
.legal a { color: var(--muted); }
