/* Zidom Studio — visual and interaction layer. No external fonts or JS highlighter. */
:root {
  --bg:#0b101b;
  --bg2:#111a29;
  --surface:#151f30;
  --surface-alt:#19273b;
  --surface-code:#090f1c;
  --ink:#f3f7ff;
  --muted:#a6b5c9;
  --subtle:#7e90ab;
  --line:#30405a;
  --line-soft:#24334b;
  --mint:#6deac7;
  --mint-bold:#4dddb8;
  --violet:#b6a4ff;
  --violet-strong:#9d87ff;
  --glow-mint:rgba(85,242,197,.18);
  --glow-violet:rgba(159,119,255,.20);
  --radius:18px;
}
:root[data-theme="light"] {
  --bg:#f7f9fd;
  --bg2:#edf2fa;
  --surface:#fff;
  --surface-alt:#f0f5fb;
  --ink:#17243c;
  --muted:#56677c;
  --subtle:#6d7c91;
  --line:#d3ddea;
  --line-soft:#e0e7f1;
  --mint:#087961;
  --mint-bold:#007f65;
  --violet:#6847b4;
  --violet-strong:#5639a3;
  --glow-mint:rgba(54,170,142,.10);
  --glow-violet:rgba(132,94,231,.12);
}
body { background:var(--bg); }
.site-header { box-shadow:0 10px 35px rgba(0,0,0,.10); }
.top-nav a { position:relative; }
.top-nav a::after { content:""; position:absolute; height:2px; left:50%; right:50%; bottom:-14px; border-radius:20px; background:var(--mint); transition: left .2s, right .2s; }
.top-nav a:hover::after,.top-nav a:focus-visible::after {left:0;right:0;}
.brand-mark { box-shadow:0 0 25px var(--glow-mint); }
.search-trigger { transition:border-color .2s,background .2s,transform .2s; }
.search-trigger:hover { border-color:var(--mint); transform:translateY(-1px); }
.release-banner { background:linear-gradient(110deg,var(--bg2),var(--surface-alt),var(--bg2)); }
.hero {
  max-width:1480px;
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  gap:64px;
  padding-block:108px 110px;
}
.hero h1 {font-size:clamp(72px,7.5vw,116px);letter-spacing:-.075em;}
.hero h1 em { background:linear-gradient(100deg,var(--mint),#7ac6f1 70%,var(--violet));-webkit-background-clip:text;background-clip:text;color:transparent; }
.hero-content>p {max-width:610px;}
.hero-content .eyebrow {display:inline-flex;letter-spacing:2.1px;border:1px solid var(--line);border-radius:100px;padding:9px 15px;background:var(--surface);font-size:10px;}
.hero-content .eyebrow-line {width:7px;height:7px;border-radius:50%;box-shadow:0 0 0 4px var(--glow-mint);}
.hero-glow {opacity:1;right:1%;background:radial-gradient(circle,rgba(103,88,246,.16),transparent 68%);}
.button-primary {position:relative;overflow:hidden;box-shadow:0 10px 35px var(--glow-mint);transition:transform .2s,box-shadow .2s;}
.button-primary:hover {transform:translateY(-2px);box-shadow:0 15px 45px var(--glow-mint);}
.button-secondary{transition:transform .2s,border-color .2s;}
.button-secondary:hover{transform:translateY(-2px);}
.hero-interactive { height:auto;min-height:470px;}
.hero-demo-glow{position:absolute;inset:10% -1%;border-radius:50%;background:radial-gradient(ellipse,var(--glow-violet),transparent 70%);filter:blur(22px);}
#hero-play-root { width:min(100%,510px); position:relative;z-index:2; }
.hero-console {
  overflow:hidden;position:relative;
  background:linear-gradient(145deg,#152137,#0e1728 65%,#182139);
  border:1px solid #374969;border-radius:22px;color:#eaf1ff;
  box-shadow:0 48px 90px rgba(0,0,0,.30),0 0 90px rgba(99,81,211,.13),inset 0 1px rgba(255,255,255,.12);
  transform:perspective(1400px) rotateY(-5deg) rotateX(2deg); transition:transform .45s,box-shadow .45s;
}
.hero-console:hover,.hero-console:focus-within {transform:perspective(1400px) rotateY(0) rotateX(0);box-shadow:0 48px 100px rgba(0,0,0,.34),0 0 110px var(--glow-mint);}
.console-topbar {display:flex;align-items:center;gap:12px;justify-content:space-between;border-bottom:1px solid #2a3c56;background:#0c1525;padding:15px 20px;color:#97afca;font:12px ui-monospace,monospace;}
.console-dots {display:flex;gap:6px;}
.console-dots i {width:8px;height:8px;border-radius:50%;background:#ef7882;}
.console-dots i:nth-child(2){background:#f8c46e;}.console-dots i:nth-child(3){background:#73e9b8;}
.console-status {font-size:10px;color:#7fecc9;text-transform:uppercase;letter-spacing:1.1px;}
.console-body {padding:28px 32px 32px;position:relative;}
.console-body::after{content:"";position:absolute;inset:0;opacity:.06;background-image:linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px);background-size:24px 24px;pointer-events:none;}
.console-overline {color:#9fafff;text-transform:uppercase;font:11px ui-monospace,monospace;letter-spacing:2px;}
.console-body h2 {font-size:clamp(26px,3vw,37px);line-height:1.16;letter-spacing:-1.5px;margin:14px 0 22px;}
.console-code {border:1px solid #354463;border-radius:12px;padding:14px 16px;background:#090f1e;color:#aab8cf;font:13px ui-monospace,monospace;position:relative;z-index:1;}
.console-code b {font-weight:600;color:#a7dcff;}.console-code em{font-style:normal;color:#ffc58c;}.console-code span{color:#7de4c0;}
.console-output {display:flex;align-items:center;justify-content:space-between;gap:15px;margin:16px 0;border:1px solid #3e866f;border-radius:14px;background:linear-gradient(100deg,rgba(84,229,177,.12),rgba(127,111,255,.08));padding:18px 19px;position:relative;z-index:1;}
.console-output small{display:block;font:10px ui-monospace,monospace;letter-spacing:1.1px;color:#98f2d2;text-transform:uppercase;}
.console-output strong{font:700 65px/1 ui-monospace,monospace;color:#92f3ce;letter-spacing:-6px;}
.console-pulse{height:13px;width:13px;border-radius:50%;background:#75ebbd;box-shadow:0 0 0 8px rgba(90,238,188,.14);animation:alive 2.2s ease-in-out infinite;}
@keyframes alive{50%{box-shadow:0 0 0 13px rgba(90,238,188,.035);}}
.console-controls {display:flex;gap:10px;align-items:center;position:relative;z-index:1;}
.console-controls button {min-width:54px;padding:11px 14px;border-radius:9px;color:#eaf1ff;background:#21344d;border:1px solid #526780;font-weight:750;font-size:19px;transition:transform .18s,background .18s;}
.console-controls button:hover {background:#314b68;transform:translateY(-2px);}
.console-controls .console-increment {background:#79eeca;color:#123528;border-color:#79eeca;flex:1;font-size:13px;text-align:center;}
.console-controls .console-increment:hover{background:#a5f9de;}
.console-note {margin:18px 0 0;color:#a6b9d0;font-size:12px;position:relative;z-index:1;}
.console-note b {color:#92f3ce;}
.intro-strip {background:linear-gradient(110deg,var(--bg2),var(--surface-alt));}
.section-wrap{padding-block:100px;}
.feature-card {position:relative;overflow:hidden;min-height:280px;border-radius:18px;background:linear-gradient(145deg,var(--surface),var(--bg2));transition:transform .28s,border-color .28s,box-shadow .28s;}
.feature-card::after {content:"";height:130px;width:130px;position:absolute;right:-80px;top:-80px;background:var(--glow-violet);filter:blur(30px);transition:transform .3s;}
.feature-card:hover {transform:translateY(-8px);border-color:var(--mint);box-shadow:0 20px 45px rgba(0,0,0,.15);}
.feature-card:hover::after {transform:scale(2.3);}
.feature-index {font-size:13px;}
.feature-card h3 {font-size:20px;}
/* Interactive tabbed playground */
.workbench-section{padding-top:30px;}
.workbench-heading {display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:28px;}
.workbench-heading h2 {font-size:clamp(35px,4vw,54px);letter-spacing:-2px;line-height:1.09;margin:13px 0;}
.workbench-heading p{color:var(--muted);max-width:620px;margin:0;}
.workbench-more{font-size:13px;font-weight:760;color:var(--mint);white-space:nowrap;}
.workbench-frame {border-radius:22px;border:1px solid var(--line);overflow:hidden;background:var(--surface);box-shadow:0 25px 75px rgba(0,0,0,.13);}
.workbench-top {display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 22px;background:var(--bg2);border-bottom:1px solid var(--line);flex-wrap:wrap;}
.workbench-tabs {display:flex;gap:7px;flex-wrap:wrap;}
.workbench-tab{padding:9px 15px;background:transparent;color:var(--muted);border:1px solid transparent;border-radius:9px;font:700 13px system-ui,sans-serif;}
.workbench-tab[aria-pressed="true"] {color:var(--mint);background:var(--surface-alt);border-color:var(--line);}
.workbench-tab:hover{color:var(--ink);}
.workbench-run {display:flex;align-items:center;gap:9px;color:var(--muted);font:11px ui-monospace,monospace;}
.workbench-run::before {content:"";height:7px;width:7px;border-radius:50%;background:var(--mint);box-shadow:0 0 0 4px var(--glow-mint);}
.workbench-panel {display:grid;grid-template-columns:minmax(0,1.14fr) minmax(280px,.86fr);min-height:320px;}
.workbench-panel[hidden] {display:none!important;}
.workbench-code,.workbench-preview {min-width:0;}
.workbench-preview {padding:23px 26px;background:radial-gradient(circle at 15% 20%,var(--glow-violet),transparent 68%),var(--bg2);border-left:1px solid var(--line);}
.workbench-preview-label {display:flex;align-items:center;gap:8px;color:var(--muted);font:10px ui-monospace,monospace;letter-spacing:1.4px;text-transform:uppercase;margin-bottom:19px;}
.workbench-preview-label::before {content:"";width:7px;height:7px;background:var(--mint);border-radius:50%;}
.workbench-preview .example-card {border-radius:12px;border:1px solid var(--line);background:var(--surface);padding:19px;box-shadow:0 12px 40px rgba(0,0,0,.10);}
.workbench-code .code-shell {margin:0;height:100%;border:0;border-radius:0;box-shadow:none;}
.workbench-code .code-shell pre {max-height:390px;}
.workbench-foot {border-top:1px solid var(--line);padding:12px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;}
.workbench-foot a {color:var(--mint);font-weight:720;}
/* Code viewer: readable, copyable, with stable per-line numbering. */
.code-shell{overflow:hidden;border:1px solid #32435d;border-radius:14px;background:#0b1323;box-shadow:0 20px 38px rgba(0,0,0,.12);color:#dce8fa;}
.code-shell .code-head {min-height:45px;padding:0 15px;background:#141e31;border-bottom:1px solid #283953;display:flex;align-items:center;justify-content:space-between;gap:10px;}
.code-file,.code-head-actions {display:flex;align-items:center;gap:10px;min-width:0;}
.code-file-dot {width:7px;height:7px;background:#70e9b8;border-radius:50%;box-shadow:0 0 0 4px rgba(112,233,184,.10);}
.code-shell .code-lang{font:12px ui-monospace,monospace;color:#c6d4ed;text-transform:none;letter-spacing:.1px;}
.code-ready {font:10px ui-monospace,monospace;color:#7ca7a8;white-space:nowrap;}
.code-shell pre {margin:0!important;padding:21px 20px 22px 0!important;background:transparent!important;overflow:auto;line-height:1.72!important;font-size:12.5px!important;tab-size:2;}
.code-shell pre code{display:block;min-width:max-content;white-space:pre!important;font:inherit;color:#d1dcef;}
.code-line {display:block;position:relative;min-height:1.72em;padding-left:58px;padding-right:14px;}
.code-line::before {content:attr(data-line);position:absolute;left:0;top:0;width:38px;text-align:right;color:#63738f;font-size:11px;user-select:none;pointer-events:none;}
.code-line:hover {background:rgba(142,175,228,.055);}
.code-line span {font:inherit;}
.tok-keyword{color:#c3a7ff!important;}
.tok-string{color:#a6e6ad!important;}
.tok-comment{color:#7e8ca5!important;font-style:italic!important;}
.tok-number,.tok-constant{color:#ffc38e!important;}
.tok-tag{color:#7bcffc!important;}
.tok-builtin,.tok-type{color:#9dd9ff!important;}
.tok-function{color:#e9d08f!important;}
.tok-operator,.tok-property{color:#f5b7d4!important;}
.code-shell .copy-btn{border:1px solid #344963;background:#23304b;color:#dfebff;min-width:64px;padding:5px 10px;border-radius:7px;font:11px ui-monospace,monospace;transition:background .15s,border-color .15s;}
.code-shell .copy-btn:hover{background:#324666;border-color:#80dcbc;}
.showcase-code .code-shell {transition:transform .25s;}
.showcase-code .code-shell:hover {transform:translateY(-3px);}
/* Discoverability, docs and examples */
/* Contained by the sticky header, never a fixed overlay across article content. */
.site-header:has(.reading-progress) {isolation:isolate;}
.reading-progress {
  position:absolute;inset:auto 0 0;z-index:1;
  height:2px;overflow:hidden;pointer-events:none;
}
.reading-progress span {
  display:block;width:100%;height:100%;
  background:linear-gradient(90deg,var(--mint),var(--violet));
  transform:scaleX(0);transform-origin:left center;
  transition:none;will-change:transform;
}
.docs-sidebar a[aria-current="page"] {background:var(--surface-alt)!important;box-shadow:inset 3px 0 var(--mint);border-radius:8px;}
.prose a:not(.heading-anchor) {text-decoration-thickness:1px;text-underline-offset:3px;}
.prose .code-shell {margin:22px 0 30px;}
.prose .code-shell pre {font-size:12px!important;}
.toc a.is-active {color:var(--mint);font-weight:740;}
.examples-hero {padding-top:87px;}
.examples-hero h1 {font-size:clamp(52px,6.5vw,83px);}
.example-filters {max-width:1200px;margin:0 auto 26px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;}
.example-filter-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.example-filter-tabs button{background:var(--surface);border:1px solid var(--line);padding:10px 17px;color:var(--muted);border-radius:100px;font-size:13px;font-weight:700;}
.example-filter-tabs button[aria-pressed="true"]{background:var(--mint);color:var(--mint-ink);border-color:var(--mint);}
.example-filter-tabs button:hover{border-color:var(--mint);}
.filter-search{padding:10px 14px;min-width:245px;flex:0 1 300px;background:var(--surface);border:1px solid var(--line);border-radius:10px;color:var(--ink);font-size:13px;}
.filter-count{font:12px ui-monospace,monospace;color:var(--subtle);}
.example-tile{border-radius:18px;background:linear-gradient(145deg,var(--surface),var(--bg2));transition:transform .22s,border-color .22s,box-shadow .22s;position:relative;overflow:hidden;}
.example-tile::after{content:"↗";position:absolute;right:22px;top:22px;font-size:21px;color:var(--subtle);transition:transform .2s,color .2s;}
.example-tile:hover{transform:translateY(-5px);box-shadow:0 20px 45px rgba(0,0,0,.12);}
.example-tile:hover::after{transform:translate(3px,-3px);color:var(--mint);}
.example-tile[hidden]{display:none!important;}
.example-detail{padding-top:80px;}
.example-live{background:radial-gradient(ellipse at 15% 25%,var(--glow-violet),transparent 80%),var(--surface);}
.example-live .example-card {padding:24px;border-radius:13px;background:var(--bg2);}
.example-source .code-shell{box-shadow:none;border:0;border-radius:0;}
.example-section-title {background:var(--bg2);}
.source-label {background:var(--glow-mint);padding:4px 8px;border-radius:100px;color:var(--mint);font-size:10px;letter-spacing:0;text-transform:none;}
.example-card button:hover{background:var(--surface-alt);transform:translateY(-1px);}
.search-dialog{border-radius:19px;box-shadow:0 35px 125px rgba(0,0,0,.50);}
.search-results a{transition:background .16s,border-color .16s;}
/* Mobile: keep code readable and hero truly usable. */
@media(max-width:1110px){.hero{gap:20px;padding-left:38px;padding-right:38px;}.hero-console{transform:none;}.hero-console:hover,.hero-console:focus-within{transform:none;}}
@media(max-width:900px){.hero{grid-template-columns:1fr;padding:70px 24px 56px;gap:40px;}.hero-interactive{min-height:0;}.hero h1{font-size:clamp(72px,11vw,102px);}.workbench-panel{grid-template-columns:1fr;}.workbench-preview{border-left:0;border-top:1px solid var(--line);}.workbench-heading{align-items:start;flex-direction:column;}.workbench-panel .code-shell pre{max-height:320px;}.hero-console{width:100%;}.feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:580px){.hero h1{font-size:clamp(57px,13vw,79px);}.hero-content .eyebrow{font-size:9px;letter-spacing:1px;}.hero .hero-cta a{min-height:48px;}.console-body{padding:22px 20px;}.console-body h2{font-size:27px;}.console-output strong{font-size:53px;}.console-overline{font-size:10px;}.console-controls button{min-width:45px;}.feature-grid{grid-template-columns:1fr;}.feature-card{min-height:180px;}.workbench-top{padding:13px;}.workbench-tabs{width:100%;}.workbench-tab{flex:1;padding:9px 7px;font-size:11px;}.workbench-preview{padding:20px 15px;}.workbench-foot{flex-wrap:wrap;}.code-line{padding-left:49px;}.code-line::before{width:31px;}.code-shell pre{font-size:11px!important;}.example-filters{padding:0 20px;}.filter-search{flex:1;min-width:0;}.example-filter-tabs{width:100%;}.example-filter-tabs button{flex:1;padding:9px 9px;font-size:12px;}.source-label{display:none;}}
@media(prefers-reduced-motion:reduce){.console-pulse{animation:none}.hero-console,.feature-card,.example-tile{transform:none!important;}}
/* Prevent long TSX lines from expanding the mobile grid. */
.code-showcase > *, .showcase-code, .code-explain, .example-columns > *, .workbench-panel > * {min-width:0;max-width:100%;}
.code-shell, .code-shell pre {max-width:100%;}
@media(max-width:900px){.code-showcase{grid-template-columns:minmax(0,1fr)!important;}}

/* Readable example pages: preview first, full-width source second. */
.example-detail{max-width:1250px;}
.example-detail .example-columns.example-stack{
  display:flex;flex-direction:column;gap:22px;align-items:stretch;
}
.example-stack .example-live,.example-stack .example-source{width:100%;max-width:100%;}
.example-stack .example-live>div:not(.example-section-title){padding:26px;}
.example-stack .example-live .example-card{max-width:760px;}
.example-stack .example-section-title{font-size:11px;letter-spacing:1px;}
.source-tabbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--bg2);}
.source-tabbar button{border:1px solid var(--line);border-radius:8px;padding:9px 13px;background:var(--surface);color:var(--muted);font:600 12px ui-monospace,monospace;cursor:pointer;}
.source-tabbar button[aria-selected="true"]{border-color:var(--mint);color:var(--mint);background:color-mix(in srgb,var(--mint) 8%,var(--surface));}
.source-tabbar button:hover{color:var(--ink);}
.source-tabbar button:focus-visible{outline:2px solid var(--mint);outline-offset:2px;}
.source-filename{padding:13px 20px;color:var(--muted);background:var(--bg2);border-bottom:1px solid var(--line);font:12px ui-monospace,monospace;overflow-wrap:anywhere;}
.example-file-panel[hidden]{display:none!important;}
.example-stack .example-file-panel .code-shell{border:0;margin:0;border-radius:0;box-shadow:none;}
.example-stack .example-file-panel .code-head{padding:0 20px;}
/* Wrap long TSX lines instead of clipping them or requiring horizontal scrolling. */
.example-stack .example-file-panel .code-shell pre{
  width:100%;max-width:100%;max-height:none;overflow-x:hidden;overflow-y:visible;
  white-space:pre-wrap!important;padding:20px 22px 22px 0!important;
}
.example-stack .example-file-panel .code-shell pre code{
  display:block;min-width:0!important;max-width:100%;width:100%;
  white-space:pre-wrap!important;overflow-wrap:anywhere;word-break:normal;
}
.example-stack .example-file-panel .code-line{
  display:block;white-space:pre-wrap!important;overflow-wrap:anywhere;
  padding-left:60px;padding-right:20px;min-width:0;
}
.example-stack .example-file-panel .code-line span{white-space:inherit;overflow-wrap:inherit;}
@media(max-width:580px){
  .example-stack .example-live>div:not(.example-section-title){padding:16px;}
  .example-stack .example-file-panel .code-line{padding-left:44px;padding-right:12px;}
  .example-stack .example-file-panel .code-line::before{width:29px;}
  .source-tabbar{padding:10px;gap:5px;}
  .source-tabbar button{padding:8px 9px;font-size:11px;}
}


/* Aligned two-pane example studio and VS Code-inspired, read-only source editor. */
.example-detail{max-width:1480px;}
.example-detail .example-columns.example-workspace{
  display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  align-items:stretch;gap:18px;min-height:600px;
}
.example-workspace>.example-live,.example-workspace>.example-source{min-width:0;width:100%;max-width:100%;height:100%;margin:0;}
.example-workspace .example-live{display:flex;flex-direction:column;background:radial-gradient(ellipse at 25% 10%,var(--glow-violet),transparent 75%),var(--surface);}
.example-workspace .example-live .example-section-title{min-height:44px;padding:13px 20px;gap:12px;flex-wrap:wrap;}
.live-preview-indicator{color:var(--mint);font:650 11px ui-monospace,monospace;letter-spacing:0;text-transform:none;white-space:nowrap;}
.example-workspace .example-live>div.example-live-stage{
  display:flex;flex-direction:column;justify-content:flex-start;flex:1;min-height:340px;min-width:0;padding:26px;
}
.example-live-stage>#live-demo-root{width:100%;min-width:0;}
.example-live-stage .example-card{width:100%;min-width:0;padding:21px;}
.example-workspace .example-live .example-panel-foot{padding:14px 20px;border-top:1px solid var(--line);color:var(--subtle);font-size:12px;line-height:1.5;}
.example-live-stage .example-iframe{width:100%;height:370px;min-height:320px;}
.example-workspace .editor-window{display:flex;flex-direction:column;background:#1e1e1e;border-color:#394253;color:#d4d4d4;}
.editor-window .source-files{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;}
.editor-topbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  height:40px;min-height:40px;background:#181a20;border-bottom:1px solid #31343e;
  color:#afb5c3;padding:0 14px;font:500 11px ui-monospace,SFMono-Regular,Consolas,monospace;
}
.editor-window-controls{display:flex;gap:6px;align-items:center;flex:none;}
.editor-window-controls i{width:9px;height:9px;border-radius:50%;background:#ef7476;}
.editor-window-controls i:nth-child(2){background:#eec361;}
.editor-window-controls i:nth-child(3){background:#67d29b;}
.editor-window-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.editor-title-separator{color:#697286;margin:0 4px;}
.editor-read-only{font-size:10px;color:#9da9be;letter-spacing:.8px;white-space:nowrap;}
.editor-window .source-tabbar{
  display:flex;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:0;
  padding:0;background:#24252c;border-bottom:1px solid #303642;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;min-height:42px;
}
.editor-window .source-tabbar button{
  display:flex;align-items:center;justify-content:flex-start;gap:9px;flex:0 0 auto;
  min-height:42px;margin:0;border:0;border-right:1px solid #333642;
  border-top:2px solid transparent;border-radius:0;padding:0 15px;
  background:#262832;color:#9ea6b5;cursor:pointer;
  font:500 12px ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap;
}
.editor-window .source-tabbar button[aria-selected="true"]{color:#e9edf7;background:#1e1e1e;border-top-color:#6deac7;}
.editor-window .source-tabbar button:hover:not([aria-selected="true"]){background:#303440;color:#d3d9e5;}
.editor-window .source-tabbar button:focus-visible{outline:2px solid #6deac7;outline-offset:-3px;position:relative;z-index:1;}
.editor-file-icon{display:inline-grid;place-items:center;width:20px;height:18px;border:1px solid #4283b3;border-radius:3px;color:#8dccff;background:#183147;font:bold 9px ui-monospace,monospace;}
.editor-window .editor-panels{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;}
.editor-window .example-file-panel{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;}
.editor-window .example-file-panel[hidden]{display:none!important;}
.editor-breadcrumb{
  display:flex;align-items:center;gap:9px;min-width:0;flex-wrap:wrap;
  min-height:34px;padding:7px 16px;color:#8f9aad;background:#1e1e1e;
  font:11px ui-monospace,SFMono-Regular,Consolas,monospace;
}
.editor-breadcrumb strong{font-weight:500;color:#bcd7ee;overflow-wrap:anywhere;}
.editor-breadcrumb .breadcrumb-chevron{color:#566074;}
.editor-window .code-shell{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;background:#1e1e1e;border:0;border-radius:0;box-shadow:none;}
.editor-window .code-shell .code-head{
  display:flex;justify-content:flex-end;min-height:34px;padding:0 15px;background:#1e1e1e;border-bottom:1px solid #2a303c;
}
.editor-window .code-head .code-file,.editor-window .code-ready{display:none;}
.editor-window .code-shell .copy-btn{border-color:#405168;background:#283343;color:#e1eafa;}
.editor-window .code-shell pre{
  width:100%;min-width:0;max-width:100%;flex:1;margin:0!important;
  height:490px;max-height:490px;padding:13px 16px 20px 0!important;
  overflow-x:hidden;overflow-y:auto;
  font:12.5px/1.68 ui-monospace,SFMono-Regular,Consolas,monospace!important;
  white-space:pre-wrap!important;tab-size:2;scrollbar-color:#495368 #1e1e1e;
}
.editor-window .code-shell pre code{
  display:block;min-width:0!important;max-width:100%;width:100%;
  font:inherit;white-space:pre-wrap!important;overflow-wrap:anywhere;word-break:normal;
}
.editor-window .code-line{
  display:block;position:relative;min-width:0;padding:0 10px 0 56px;
  min-height:1.68em;white-space:pre-wrap!important;overflow-wrap:anywhere;word-break:normal;
}
.editor-window .code-line::before{width:38px;left:0;top:0;text-align:right;color:#858d9c;font-size:11px;}
.editor-window .code-line span{white-space:inherit;overflow-wrap:inherit;}
.editor-window .code-line:hover{background:rgba(150,179,231,.065);}
.editor-statusbar{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  padding:5px 13px;min-height:28px;background:#155b72;color:#eafcff;
  font:10px ui-monospace,SFMono-Regular,Consolas,monospace;
}
.editor-status-left{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.editor-status-left span{font-weight:800;}
.editor-status-divider{opacity:.6;margin:0 4px;}
@media(max-width:1060px){
  .example-detail .example-columns.example-workspace{grid-template-columns:minmax(0,1fr);min-height:0;gap:18px;}
  .example-workspace>.example-live,.example-workspace>.example-source{height:auto;}
  .example-workspace .example-live>div.example-live-stage{min-height:220px;}
  .editor-window .code-shell pre{height:395px;max-height:395px;}
}
@media(max-width:560px){
  .example-workspace .example-live>div.example-live-stage{padding:16px;min-height:180px;}
  .example-workspace .example-live .example-section-title{padding:12px 15px;}
  .example-workspace .example-live .example-panel-foot{padding:12px 15px;}
  .editor-window .source-tabbar button{padding:0 10px;font-size:11px;}
  .editor-window .code-line{padding-left:43px;padding-right:8px;}
  .editor-window .code-line::before{width:29px;}
  .editor-window .code-shell pre{height:350px;max-height:350px;padding-right:8px!important;font-size:11.5px!important;}
  .editor-read-only{display:none;}
}


/* LIGHT_CODE_EDITOR_THEME: all code surfaces follow the global color mode. */
html[data-theme="light"] .code-shell{background:#fff;border-color:#d4dce9;color:#243047;box-shadow:0 12px 30px rgba(32,53,83,.07)}
html[data-theme="light"] .code-shell .code-head{background:#f0f3f8;border-bottom-color:#dbe2ed}
html[data-theme="light"] .code-shell .code-lang{color:#394860}
html[data-theme="light"] .code-shell .code-ready{color:#17643b}
html[data-theme="light"] .code-shell pre{color:#243047;scrollbar-color:#b7c3d5 #f8faff}
html[data-theme="light"] .code-shell pre code{color:#243047}
html[data-theme="light"] .code-line::before{color:#65748a}
html[data-theme="light"] .code-line:hover{background:#eff4fc}
html[data-theme="light"] .code-shell .copy-btn{background:#fff;border-color:#b9c8db;color:#263b58}
html[data-theme="light"] .code-shell .copy-btn:hover{background:#e9f3ff;border-color:#5c91b9}
html[data-theme="light"] .tok-keyword{color:#6b36af!important}
html[data-theme="light"] .tok-string{color:#17643b!important}
html[data-theme="light"] .tok-comment{color:#5d6a7c!important}
html[data-theme="light"] .tok-number,html[data-theme="light"] .tok-constant{color:#965000!important}
html[data-theme="light"] .tok-tag{color:#005c91!important}
html[data-theme="light"] .tok-builtin,html[data-theme="light"] .tok-type{color:#005c91!important}
html[data-theme="light"] .tok-function{color:#895300!important}
html[data-theme="light"] .tok-operator,html[data-theme="light"] .tok-property{color:#993c72!important}
html[data-theme="light"] .example-workspace .editor-window{background:#fff;color:#243047;border-color:#cbd5e3}
html[data-theme="light"] .editor-window .source-files,html[data-theme="light"] .editor-window .editor-panels,html[data-theme="light"] .editor-window .example-file-panel{background:#fff}
html[data-theme="light"] .editor-topbar{background:#edf1f6;border-bottom-color:#d4dce8;color:#45556b}
html[data-theme="light"] .editor-title-separator{color:#7b8aa0}
html[data-theme="light"] .editor-read-only{color:#50627b}
html[data-theme="light"] .editor-window .source-tabbar{background:#edf1f6;border-bottom-color:#d6dfea}
html[data-theme="light"] .editor-window .source-tabbar button{background:#e7ecf4;color:#495972;border-right-color:#d4dce8}
html[data-theme="light"] .editor-window .source-tabbar button[aria-selected="true"]{background:#fff;color:#1e2d44;border-top-color:#087961}
html[data-theme="light"] .editor-window .source-tabbar button:hover:not([aria-selected="true"]){background:#dae5f3;color:#1e2d44}
html[data-theme="light"] .editor-window .source-tabbar button:focus-visible{outline-color:#087961}
html[data-theme="light"] .editor-file-icon{background:#e2f1ff;color:#005c91;border-color:#74afd5}
html[data-theme="light"] .editor-breadcrumb{background:#fff;color:#64748b}
html[data-theme="light"] .editor-breadcrumb strong{color:#2b4b6c}
html[data-theme="light"] .editor-breadcrumb .breadcrumb-chevron{color:#8390a4}
html[data-theme="light"] .editor-window .code-shell{background:#fff;color:#243047;border-color:transparent;box-shadow:none}
html[data-theme="light"] .editor-window .code-shell .code-head{background:#fff;border-bottom-color:#edf1f6}
html[data-theme="light"] .editor-window .code-shell .copy-btn{background:#edf4fb;border-color:#b8c9dc;color:#263b58}
html[data-theme="light"] .editor-window .code-shell .copy-btn:hover{background:#dcecff;border-color:#74a3ca}
html[data-theme="light"] .editor-window .code-shell pre{background:#fff!important;color:#243047;scrollbar-color:#bcc9da #fff}
html[data-theme="light"] .editor-window .code-line::before{color:#697993}
html[data-theme="light"] .editor-window .code-line:hover{background:#f0f5fd}
html[data-theme="light"] .editor-statusbar{background:#e3eef9;color:#285274;border-top:1px solid #c9d9eb}


/* Dense code rows: spans already establish lines; ignore whitespace-only flex items
   from highlight HTML, preserving exact source text for copying. */
.code-shell pre.code-highlight>code{display:block!important;}
.code-shell pre.code-highlight{line-height:1.58!important;}
.code-shell pre.code-highlight .code-line{display:block;min-height:1.58em;line-height:1.58;}
.editor-window .code-shell pre.code-highlight{font-size:13px!important;line-height:1.58!important;}
@media(max-width:560px){.editor-window .code-shell pre.code-highlight{font-size:12px!important;}}

/* Playground v2: live preview on left, matched VS-style source editor on right. */
.playground-page{max-width:1480px;margin:auto;padding:62px 32px 100px;}
.playground-intro{max-width:860px;margin-bottom:32px;}
.playground-intro .overline{display:block;margin:30px 0 12px;}
.playground-intro h1{font-size:clamp(48px,6.4vw,80px);letter-spacing:-3px;line-height:1.06;margin:0 0 20px;}
.playground-intro h1 em{font-style:normal;color:var(--mint);}
.playground-intro>p{color:var(--muted);font-size:16px;line-height:1.7;margin:0;}
.playground-info{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px;}
.playground-info span{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;background:var(--surface);border:1px solid var(--line);border-radius:999px;color:var(--muted);font:600 11px ui-monospace,monospace;}
.playground-info i,.preview-live-dot{display:inline-block;width:8px;height:8px;background:var(--mint);border-radius:50%;box-shadow:0 0 0 3px var(--glow-mint);}
.workbench-frame{border-radius:18px;}
.workbench-top{padding:14px 18px;}
.workbench-panel{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:0;min-height:460px;align-items:stretch;}
.workbench-panel[hidden]{display:none!important;}
.workbench-panel>.workbench-preview,.workbench-panel>.workbench-code{min-width:0;max-width:100%;height:100%;}
.workbench-panel>.workbench-preview{display:flex;flex-direction:column;min-width:0;padding:25px;border:0;border-right:1px solid var(--line);background:radial-gradient(ellipse at 15% 15%,var(--glow-violet),transparent 75%),var(--bg2);}
.workbench-preview-label{display:flex;align-items:center;gap:9px;margin:0 0 24px;}
.workbench-preview-label::before{display:none;}
.preview-caption{color:var(--subtle);}
.playground-demo-surface{flex:1;min-width:0;}
.playground-demo-surface>.example-card{width:100%;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;}
.workbench-demo-meta{border-top:1px solid var(--line);margin-top:22px;padding-top:15px;color:var(--muted);font-size:12px;line-height:1.6;}
.workbench-demo-meta p{margin:0 0 8px;}
.workbench-demo-meta a{color:var(--mint);font-weight:750;}
.workbench-panel>.workbench-code.editor-window{display:flex;flex-direction:column;min-width:0;padding:0;border:0;border-left:1px solid #394253;border-radius:0;background:#1e1e1e;color:#d4d4d4;overflow:hidden;}
.workbench-code .editor-topbar,.workbench-code .source-tabbar,.workbench-code .editor-breadcrumb,.workbench-code .editor-statusbar{flex:none;}
.workbench-code .source-tabbar{display:flex;align-items:stretch;}
.workbench-code .playground-file-tab{display:inline-flex;align-items:center;gap:9px;min-height:41px;border-top:2px solid #6deac7;border-right:1px solid #343743;padding:0 15px;background:#1e1e1e;color:#e9edf7;font:500 12px ui-monospace,monospace;}
.workbench-code .code-shell{flex:1;min-height:0;box-shadow:none;}
.workbench-code .code-shell pre{height:350px;max-height:350px;overflow-x:hidden;overflow-y:auto;white-space:pre-wrap!important;}
.workbench-code .code-shell pre code{min-width:0;max-width:100%;white-space:pre-wrap!important;overflow-wrap:anywhere;}
.workbench-code .code-line{padding-left:53px;padding-right:12px;white-space:pre-wrap!important;overflow-wrap:anywhere;}
.workbench-code .code-line span{white-space:inherit;overflow-wrap:inherit;}
html[data-theme="light"] .workbench-panel>.workbench-code.editor-window{background:#fff;color:#243047;border-left-color:#cbd5e3;}
html[data-theme="light"] .workbench-code .playground-file-tab{background:#fff;color:#1d304b;border-top-color:#087961;border-right-color:#d4dce8;}
.playground-next{padding:64px 0 0;text-align:center;}
.playground-next h2{font-size:clamp(26px,3vw,38px);letter-spacing:-1px;margin:0 0 10px;}
.playground-next p{font-size:15px;color:var(--muted);margin:0 0 23px;}
.playground-next a{display:inline-flex;}
@media(max-width:1040px){
  .workbench-panel{grid-template-columns:minmax(0,1fr);}
  .workbench-panel>.workbench-preview{border-right:0;border-bottom:1px solid var(--line);}
  .workbench-panel>.workbench-code.editor-window{border-left:0;}
}
@media(max-width:580px){
  .playground-page{padding:40px 18px 75px;}
  .playground-intro h1{letter-spacing:-2px;}
  .workbench-tabs{width:100%;gap:5px;}
  .workbench-tab{flex:1;font-size:11px;padding:10px 7px;}
  .workbench-panel>.workbench-preview{padding:17px;}
  .workbench-code .code-shell pre{height:300px;max-height:300px;}
  .workbench-code .code-line{padding-left:43px;padding-right:8px;}
  .workbench-code .code-line::before{width:29px;}
}

/* Keep long TSX readable at editor widths without splitting identifiers prematurely. */
.editor-window .code-line,.workbench-code .code-line{overflow-wrap:break-word;word-break:normal;}
.code-shell pre.code-highlight .code-line:empty::after{content:'\00a0';}


/* Performance section — measured evidence, not a fabricated framework ranking. */
.perf-section{padding-top:42px;padding-bottom:42px;}
.perf-heading{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:42px;align-items:center;}
.perf-heading h2{margin:14px 0 18px;font-size:clamp(38px,4.8vw,65px);line-height:1.08;letter-spacing:-2.8px;max-width:650px;}
.perf-heading h2 em{color:var(--mint);font-style:normal;}
.perf-heading>div:first-child>p{font-size:15px;line-height:1.8;max-width:620px;margin:0 0 20px;color:var(--muted);}
.perf-heading .text-link{display:inline-flex;align-items:center;gap:8px;font-weight:760;color:var(--mint);font-size:13px;}
.perf-evidence{padding:23px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(142deg,var(--surface),var(--bg2));box-shadow:0 18px 55px rgba(0,0,0,.06);}
.perf-evidence-label{display:block;font:750 10px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1px;color:var(--subtle);margin-bottom:18px;}
.perf-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
.perf-metric{min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:10px;padding:16px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);}
.perf-metric.featured{border-color:var(--mint);background:color-mix(in srgb,var(--mint) 9%,var(--surface));}
.perf-metric>span{font:700 12px system-ui,sans-serif;color:var(--muted);}
.perf-metric>strong{font-size:clamp(21px,2.5vw,34px);letter-spacing:-1.3px;white-space:nowrap;color:var(--ink);}
.perf-metric.featured>strong{color:var(--mint);}
.perf-metric>strong small{font-size:12px;letter-spacing:0;}
.perf-metric>small{font-size:10px;line-height:1.5;color:var(--subtle);}
.perf-caveat{margin:17px 0 0;font-size:11px;line-height:1.65;color:var(--muted);}
.perf-caveat a{color:var(--mint);font-weight:700;}
.perf-pillars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px;}
.perf-pillars>div{padding:24px 22px;border:1px solid var(--line);border-radius:15px;background:var(--surface);}
.perf-pillar-index{font:730 10px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.5px;color:var(--mint);}
.perf-pillars h3{margin:14px 0 9px;color:var(--ink);font-size:18px;letter-spacing:-.3px;}
.perf-pillars p{margin:0;color:var(--muted);font-size:13px;line-height:1.7;}
@media(max-width:1100px){.perf-heading{grid-template-columns:1fr;gap:24px;}.perf-heading h2{max-width:800px;}}
@media(max-width:720px){.perf-section{padding-top:24px;padding-bottom:20px;}.perf-pillars{grid-template-columns:1fr;gap:10px;}.perf-pillars>div{padding:20px;}.perf-evidence{padding:15px;}.perf-metrics{gap:6px;}.perf-metric{padding:13px 9px;}.perf-metric>strong{font-size:clamp(17px,5vw,28px);}.perf-metric>strong small{font-size:9px;}.perf-metric>span{font-size:11px;}}
@media(max-width:390px){.perf-metrics{grid-template-columns:1fr;}.perf-metric{flex-direction:row;align-items:center;gap:10px;}.perf-metric>small{max-width:100px;text-align:right;}}

/* First-time visitor starter / forthcoming CLI status. */
.hero-cli-note{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px;margin-top:17px;color:var(--muted);font-size:12px;line-height:1.55;}
.hero-cli-link{color:var(--mint);font-weight:750;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--mint) 45%,transparent);text-underline-offset:3px;}
.hero-cli-link:hover{text-decoration-color:var(--mint);}
.hero-cli-link:focus-visible,.hero-cta a:focus-visible,.top-nav a:focus-visible{outline:2px solid var(--mint);outline-offset:4px;border-radius:5px;}
@media(max-width:390px){.hero-cta{align-items:stretch;}.hero-cta a{width:100%;justify-content:space-between;}.hero-cli-note{font-size:11px;}.release-banner{flex-wrap:wrap;}}

/* A translated-offscreen docs menu must not remain keyboard-focusable on mobile. */
@media(max-width:870px){
  .docs-sidebar:not(.is-open){visibility:hidden;pointer-events:none;}
  .docs-sidebar.is-open{visibility:visible;pointer-events:auto;}
}

/* A true 404 page should look native to the documentation site. */
.not-found-page{max-width:860px;margin:0 auto;min-height:60vh;padding:clamp(70px,10vw,140px) 28px 100px;}
.not-found-page h1{font-size:clamp(42px,7vw,75px);line-height:1.08;letter-spacing:-2.5px;margin:20px 0;color:var(--ink);}
.not-found-page>p{font-size:17px;line-height:1.75;max-width:630px;color:var(--muted);}
@media(max-width:520px){.not-found-page{padding:60px 20px 90px;}.not-found-page .hero-cta a{width:100%;justify-content:center;}}

/* Homepage discovery of Zidom Blocks (loaded on every page, unlike blocks-gallery.css). */
.blocks-home-callout{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:45px max(28px,calc((100vw - 1250px)/2));background:var(--bg2);border-block:1px solid var(--line-soft)}
.blocks-home-callout h2{font-size:clamp(25px,3vw,37px);letter-spacing:-.04em;margin:10px 0}
.blocks-home-callout p{font-size:13px;color:var(--muted);line-height:1.65;max-width:690px}
.blocks-home-callout .button-primary{white-space:nowrap}
@media(max-width:600px){.blocks-home-callout{flex-direction:column;align-items:stretch;padding:30px 18px}.blocks-home-callout .button-primary{align-self:flex-start}}


/*
 * Zidom header v2: typographic, quiet and geometry-stable.
 * No badge, capsule nav or width-changing active dot.
 * Fixed mounting slots prevent header movement during Zidom hydration.
 */
:root { --header-h:68px; }
html { scrollbar-gutter:stable; }
.site-header {
  height:var(--header-h);min-height:var(--header-h);
  background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none;
  border-bottom:1px solid var(--line-soft);box-shadow:none;
}
.nav-wrap {
  width:100%;max-width:1320px;margin:0 auto;
  height:100%;min-height:var(--header-h);
  padding:0 clamp(18px,3vw,36px);
  display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr);
  align-items:center;gap:24px;
}
.brand {
  display:inline-flex;align-items:center;justify-self:start;
  flex-shrink:0;min-width:0;text-decoration:none;white-space:nowrap;
  color:var(--ink);
}
.brand-lockup {
  display:block;width:198px;height:39px;min-width:198px;flex:none;
  overflow:visible;shape-rendering:geometricPrecision;
}
.brand:hover {color:var(--ink)}
.top-nav {
  display:flex;align-items:center;justify-content:center;gap:29px;
  align-self:stretch;justify-self:center;
  margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;
}
.top-nav a {
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  padding:0 2px;margin:0;white-space:nowrap;border:0;border-radius:0;background:none;
  font-size:13px;font-weight:630;line-height:1.5;letter-spacing:0;
  color:var(--muted);transition:color .15s ease;
}
.top-nav a::after {
  content:"";display:block;position:absolute;height:2px;
  left:0;right:0;top:auto;bottom:0;
  background:var(--mint);border-radius:1px;
  opacity:0;transition:opacity .15s ease;
}
.top-nav a::before {content:none}
.top-nav a[data-active="true"] {
  color:var(--ink);font-weight:630;background:none;
}
.top-nav a[data-active="true"]::after {opacity:1}
.top-nav a:hover,.top-nav a:focus-visible {background:none;color:var(--ink)}
.top-nav a:hover::after,.top-nav a:focus-visible::after {left:0;right:0;opacity:1}
.top-nav .nav-mobile-start {display:none}
.nav-actions {
  display:flex;align-items:center;justify-content:flex-end;justify-self:end;
  gap:8px;min-width:0;
}
/* Reserve the *final* width before interactive controls are mounted. */
#nav-search {display:inline-flex;align-items:center;width:162px;height:38px;flex:none}
#nav-theme {display:inline-flex;align-items:center;width:36px;height:36px;flex:none}
#nav-mobile {display:none;width:38px;height:38px;flex:none}
.search-trigger {
  display:flex;align-items:center;justify-content:flex-start;gap:10px;
  width:162px;height:38px;padding:0 11px;flex:none;
  border:1px solid var(--line);border-radius:8px;background:var(--surface);
  color:var(--subtle);font-size:12px;transition:background-color .15s,border-color .15s;
  transform:none;
}
.search-trigger:hover {background:var(--surface-alt);border-color:var(--line)}
.search-trigger .search-glyph {display:block;position:relative;flex:none;width:15px;height:15px}
.search-trigger .search-glyph::before {
  content:"";position:absolute;top:1px;left:1px;width:9px;height:9px;
  border:1.75px solid currentColor;border-radius:50%;
}
.search-trigger .search-glyph::after {
  content:"";position:absolute;top:11px;left:11px;width:6px;height:1.75px;
  border-radius:2px;background:currentColor;transform:rotate(46deg);transform-origin:left center;
}
.search-trigger .search-label{display:inline;white-space:nowrap}
.search-trigger kbd {
  margin-left:auto;padding:1px 4px;border:1px solid var(--line);
  border-radius:4px;background:var(--bg);font:10px ui-monospace,monospace;
}
.nav-actions .icon-button,.nav-actions .github-link {
  width:36px;height:36px;display:grid;place-items:center;
  border:1px solid transparent;border-radius:7px;background:none;color:var(--muted);
  transition:color .15s,background-color .15s;
}
.nav-actions .icon-button:hover,.nav-actions .github-link:hover {
  background:var(--surface-alt);color:var(--ink);
}
.nav-actions .github-link svg{width:18px;height:18px}
.nav-menu-bars {
  position:relative;display:block;width:18px;height:13px;
  border-top:2px solid currentColor;border-bottom:2px solid currentColor;
}
.nav-menu-bars::after {
  content:"";position:absolute;left:0;right:0;top:4px;height:2px;background:currentColor;
}
.brand:focus-visible,.top-nav a:focus-visible,.nav-actions button:focus-visible,.nav-actions a:focus-visible {
  outline:2px solid var(--mint);outline-offset:3px;border-radius:3px;
}
@media(max-width:1050px) {
  .nav-wrap {gap:14px;grid-template-columns:1fr auto}
  .top-nav {display:none}
  #nav-search {width:38px}
  .search-trigger {width:38px;height:38px;justify-content:center;padding:0}
  .search-trigger .search-label,.search-trigger kbd {display:none}
  #nav-mobile {display:inline-flex;align-items:center;justify-content:center}
  .nav-actions .mobile-menu{display:grid}
  .top-nav.is-open {
    display:flex;position:fixed;left:16px;right:16px;
    top:calc(var(--header-h) + 8px);margin:0;padding:10px;
    background:var(--surface);border:1px solid var(--line);
    border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,.20);
    flex-direction:column;align-items:stretch;justify-content:flex-start;gap:2px;
    max-height:calc(100dvh - var(--header-h) - 24px);overflow-y:auto;z-index:120;
  }
  .top-nav.is-open a {min-height:45px;justify-content:flex-start;padding:10px 14px;border-radius:6px;font-size:15px;line-height:1.4}
  .top-nav.is-open a::after {left:auto;right:12px;top:calc(50% - 3px);bottom:auto;width:6px;height:6px;border-radius:50%}
  .top-nav.is-open a[data-active="true"]{background:color-mix(in srgb,var(--mint) 10%,var(--surface))}
  .top-nav.is-open .nav-mobile-start {
    display:flex;justify-content:space-between;align-items:center;
    margin-top:7px;border-top:1px solid var(--line-soft);
    color:var(--mint);font-weight:750;
  }
  .top-nav.is-open .nav-mobile-start::after {display:none}
}
@media(max-width:500px) {
  .nav-wrap {padding:0 16px;gap:8px}
  .brand-lockup{width:160px;min-width:160px;height:32px}
  .nav-actions{gap:3px}
  .nav-actions .github-link{display:none}
}
@media(prefers-reduced-motion:reduce) {
  .top-nav a,.search-trigger,.nav-actions .icon-button,.nav-actions .github-link {transition:none}
}

