/* =====================================================================
   bistro.ar0.eu. The same look as the Bistro dashboard (ui.css): Monokai Pro
   colours, soft round shapes, one hairline edge on every container and control,
   matcha green only for the main action, the current item and healthy state.
   No line inside a container. Nothing moves on hover. Motion is short and stops
   under prefers-reduced-motion.
   ===================================================================== */

:root {
  color-scheme: light;
  --face: #faf4f2; --side: #f2e9e6; --field: #fff; --input: #ece3e0; --input-h: #e2d7d3; --menu: #fff;
  --text: #29242a; --text-dim: #5f5a5d; --ash: #6b6669;
  --acc: #4f7d22; --acc-ink: #46711d; --acc-soft: #eaf5dc; --acc-line: #c5e3a3;
  --acc-fill: #a9dc76; --acc-fill-h: #b7e389; --acc-on: #2d2a2e;
  --ok: #4f7d22; --warn: #a3480b; --err: #c4265e;
  --code-bg: #2d2a2e; --code-fg: #fcfcfa; --code-dim: #939293;
  --mk-pink: #ff6188; --mk-orange: #fc9867; --mk-yellow: #ffd866; --mk-green: #a9dc76; --mk-cyan: #78dce8; --mk-purple: #ab9df2;
  --edge: color-mix(in srgb, var(--text) 14%, transparent);
  --edge-h: color-mix(in srgb, var(--text) 30%, transparent);
  --hover: color-mix(in srgb, var(--text) 7%, transparent);
  --overlay: 0 16px 48px rgb(41 36 42 / .16);
  --lift: 0 1px 2px rgb(41 36 42 / .07), 0 1px 1px rgb(41 36 42 / .04); /* depth step 1: cards and filled controls at rest; --overlay is step 2 */
  --ui: -apple-system, BlinkMacSystemFont, "Inter", ui-sans-serif, system-ui, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: "New York", "Iowan Old Style", "Charter", "Georgia", serif;
  --pill: 999px; --r-item: 12px; --r-card: 18px; --r: 8px;
  --ease: cubic-bezier(.2, 0, 0, 1); --dur: .18s;
  --top: 56px;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --face: #2d2a2e; --side: #221f22; --field: #363337; --input: #403e41; --input-h: #4c494d; --menu: #403e41;
  --text: #fcfcfa; --text-dim: #c1c0c0; --ash: #adabae;
  --acc: #a9dc76; --acc-ink: #a9dc76; --acc-soft: #3d4a35; --acc-line: #5d7a45;
  --ok: #a9dc76; --warn: #fc9867; --err: #ff6188;
  --code-bg: #221f22;
  --overlay: 0 16px 48px rgb(0 0 0 / .4);
  --lift: 0 1px 2px rgb(0 0 0 / .32), inset 0 1px 0 rgb(255 255 255 / .035);
}

*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, ::before, ::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--face); color: var(--text); font: 400 14px/20px var(--ui); -webkit-font-smoothing: antialiased; caret-color: var(--acc); }
::selection { background: var(--acc-line); color: var(--text); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--acc-ink); text-decoration: none; text-underline-offset: 2px; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 600; }
small { font-size: 12px; line-height: 16px; }
code, kbd, pre { font: 12px/18px var(--mono); }
code { padding: 1px 6px; border-radius: 6px; background: var(--input); }
kbd { padding: 0 6px; border-radius: 6px; background: var(--input); color: var(--ash); font: 500 11px/18px var(--ui); }
.sp { flex: 1; }
.ic { width: 16px; height: 16px; flex: none; }
.help { margin-top: 10px; font-size: 12px; line-height: 16px; color: var(--text-dim); }
.skip { position: fixed; left: 8px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: var(--pill); background: var(--acc-fill); color: var(--acc-on); }
.skip:focus { top: 8px; }

/* ---------- controls: one edge, three variants ---------- */
.btn, .icon-btn, .chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px;
  border: 1px solid var(--edge); border-radius: var(--pill); background: var(--input); color: var(--text);
  font: 500 14px/20px var(--ui); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover, .icon-btn:hover, .chip:hover { background: var(--input-h); border-color: var(--edge-h); text-decoration: none; }
.btn:active, .icon-btn:active { scale: .98; }
.btn.primary { border-color: transparent; background: var(--acc-fill); color: var(--acc-on); }
.btn.primary:hover { background: var(--acc-fill-h); border-color: transparent; }
.btn.lg { height: 44px; padding: 0 24px; font-size: 15px; }
.btn kbd { margin-right: -6px; background: var(--hover); }
.icon-btn { width: 36px; padding: 0; }
.chip { height: 32px; padding: 0 14px; font-weight: 400; font-size: 13px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; height: var(--top); box-shadow: 0 1px 0 var(--edge); background: color-mix(in srgb, var(--face) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top-in { display: flex; align-items: center; gap: 8px; height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 0; height: 36px; margin-right: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark { color: var(--acc); margin: 0 -5px 0 -4px; }
.wm { font: 500 26px/1 var(--serif); letter-spacing: -.6px; padding-top: 3px; }
.top-nav { display: flex; align-items: center; gap: 2px; }
.top-nav a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--pill); color: var(--text-dim); font-weight: 500; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.top-nav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.top-nav a[aria-current] { color: var(--text); }
.ask-open .ic { color: var(--acc); }
.theme-btn .ic:last-child { display: none; }
:root[data-theme=dark] .theme-btn .ic:first-child { display: none; }
:root[data-theme=dark] .theme-btn .ic:last-child { display: block; }
.menu-btn { display: none; }

/* ---------- home ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hero { position: relative; padding: 96px 0 24px; text-align: center; isolation: isolate; }
/* the hero logo: the green b draws itself, then "istro" rises letter by letter */
.logo { display: inline-block; margin: 0; white-space: nowrap; font: 500 clamp(84px, 17vw, 184px)/1 var(--serif); letter-spacing: -.02em; color: var(--text); }
.logo-b { display: inline-block; width: 1.1em; height: 1.1em; margin: 0 -.24em 0 -.14em; vertical-align: -.172em; overflow: visible; } /* the bowl (y 54 of 64) sits on the text baseline */
.logo-b path { fill: none; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; }
.logo-ink { stroke: var(--acc); animation: draw 1.3s var(--out) .15s both; }
.logo-glow { stroke: var(--acc-fill); stroke-width: 9; filter: blur(6px); opacity: 0; animation: draw 1.3s var(--out) .15s both, glow 4.5s ease-in-out 1.6s infinite; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes glow { 0%, 100% { opacity: 0; } 50% { opacity: .55; } }
.logo-t { display: inline; }
.logo-t span { display: inline-block; animation: letter 1s var(--out) both; }
.logo-t span:nth-child(1) { animation-delay: .55s; }
.logo-t span:nth-child(2) { animation-delay: .62s; }
.logo-t span:nth-child(3) { animation-delay: .69s; }
.logo-t span:nth-child(4) { animation-delay: .76s; }
.logo-t span:nth-child(5) { animation-delay: .83s; }
@keyframes letter { from { opacity: 0; translate: 0 .28em; rotate: 8deg; filter: blur(12px); } }
.tagline { margin-top: 14px; font: 500 clamp(24px, 3.6vw, 36px)/1.2 var(--serif); letter-spacing: -.015em; animation: up .9s var(--out) .95s both; }
.hero-p { max-width: 30rem; margin: 16px auto 0; color: var(--text-dim); font-size: 18px; line-height: 28px; text-wrap: balance; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

/* hero background: two soft matcha lights drifting slowly behind the headline */
.hero-bg { position: absolute; inset: calc(-1 * var(--top) - 40px) 0 auto; height: 960px; z-index: -1; pointer-events: none; } /* reaches up behind the header; main clips it sideways */
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.hero-bg i:first-child { width: 560px; height: 420px; left: calc(50% - 520px); top: 40px; background: color-mix(in srgb, var(--acc-fill) 40%, transparent); animation: drift-a 22s ease-in-out infinite alternate; }
.hero-bg i:last-child { width: 480px; height: 380px; left: calc(50% + 40px); top: 260px; background: color-mix(in srgb, var(--acc) 22%, transparent); animation: drift-b 26s ease-in-out infinite alternate; }
:root[data-theme=dark] .hero-bg i { opacity: .28; }
@keyframes drift-a { to { translate: 120px 60px; scale: 1.15; } }
@keyframes drift-b { to { translate: -140px -40px; scale: .9; } }

/* hero entrance: words rise out of a blur one after another, then the copy, the buttons and the screen */
:root { --out: cubic-bezier(.16, 1, .3, 1); }
.hero-p { animation: up .9s var(--out) 1.05s both; }
.hero-cta { animation: up .9s var(--out) 1.15s both; }
@keyframes up { from { opacity: 0; translate: 0 16px; } }
.stage { perspective: 1600px; }
.stage .car-tabs { animation: up .9s var(--out) 1.35s both; }
.stage .car-frame { transform-origin: 50% 0; animation: tilt 1.4s var(--out) 1.2s both; }
@keyframes tilt { from { opacity: 0; transform: translateY(64px) rotateX(18deg) scale(.94); } }
.hero-cta .btn .ic { color: var(--acc); }

/* the dashboard carousel: named tabs, a framed track, arrows on the frame */
.car { margin-top: 48px; }
.car-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 16px; }
.car-tabs button { height: 34px; padding: 0 16px; border: 1px solid var(--edge); border-radius: var(--pill); background: var(--input); color: var(--text-dim); font: 500 13px/20px var(--ui); cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.car-tabs button:hover { background: var(--input-h); color: var(--text); }
.car-tabs button[aria-current=true] { border-color: transparent; background: var(--acc-soft); color: var(--text); }
.car-frame { position: relative; }
.car-frame::before { content: ""; position: absolute; inset: 12% 8% -6%; z-index: -1; border-radius: 40px; background: color-mix(in srgb, var(--acc-fill) 30%, transparent); filter: blur(70px); opacity: .6; }
.car-tabs button { position: relative; flex: none; white-space: nowrap; overflow: hidden; isolation: isolate; }
.car-tabs button[aria-current=true]::after { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--acc) 22%, transparent); transform-origin: 0 50%; scale: 0 1; }
.car.auto .car-tabs button[aria-current=true]::after { animation: fill var(--car-ms, 6s) linear forwards; }
.car.paused .car-tabs button[aria-current=true]::after { animation-play-state: paused; }
@keyframes fill { to { scale: 1 1; } }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--edge); border-radius: 22px; background: var(--code-bg); box-shadow: var(--overlay); }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.car-slide img { transition: opacity .5s var(--out), scale .8s var(--out); }
.car-slide:not(.on) img { opacity: .35; scale: .97; }
.car-slide img { display: block; width: 100%; height: auto; aspect-ratio: 2160 / 1350; }
.car-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; background: color-mix(in srgb, var(--field) 92%, transparent); }
.car-arrow.prev { left: -22px; }
.car-arrow.next { right: -22px; }
.car-note { margin-top: 12px; text-align: center; color: var(--ash); font-size: 12px; line-height: 16px; }

/* what it is: three numbered steps in a row, no boxes */
.wide-p { max-width: 44rem; font-size: 17px; line-height: 27px; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 36px 0 0; padding: 0; list-style: none; counter-reset: how; }
.how li { counter-increment: how; display: flex; flex-direction: column; gap: 6px; }
.how li::before { content: counter(how); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 6px; border: 1px solid var(--edge); border-radius: 50%; background: var(--field); color: var(--text); font: 600 14px/1 var(--ui); }
.how b { font: 600 17px/24px var(--ui); }
.how span { color: var(--text-dim); font-size: 15px; line-height: 23px; }

/* feature rows: text beside a real screenshot, sides alternate */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feat + .feat { margin-top: 104px; }
.feat.flip .feat-text { order: 2; }
.feat-text { display: flex; flex-direction: column; gap: 14px; }
.feat-text h2 { font: 500 clamp(28px, 3.6vw, 38px)/1.12 var(--serif); letter-spacing: -.02em; }
.feat-text p { color: var(--text-dim); font-size: 16px; line-height: 25px; max-width: 34rem; }
.more-a { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 4px; font-weight: 500; }
.more-a .ic { width: 14px; height: 14px; }
.feat-pic { margin: 0; overflow: hidden; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--code-bg); }
.feat-pic img { display: block; width: 100%; height: auto; aspect-ratio: 2160 / 1180; object-fit: cover; object-position: left top; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 104px; }
.duo-i { display: flex; flex-direction: column; gap: 10px; }
.duo-i .feat-pic { margin-bottom: 10px; }
.duo-i h3 { font: 500 26px/1.2 var(--serif); letter-spacing: -.015em; }
.duo-i p { color: var(--text-dim); font-size: 15px; line-height: 24px; }

/* the command line block */
.cli { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center; }
.cli h2 { font: 500 clamp(26px, 4vw, 34px)/1.15 var(--serif); letter-spacing: -.02em; }
.also { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--text-dim); }
.sec-p code, .how code { white-space: nowrap; }
.also b { display: inline-block; min-width: 88px; color: var(--text); font-weight: 600; }
.cli .code pre { padding-block: 18px; }

/* scrolling away from the hero: its logo lifts and fades; the small header logo takes over */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-in { animation: leave linear both; animation-timeline: view(); animation-range: exit 0% exit 70%; }
    @keyframes leave { to { opacity: 0; translate: 0 -60px; scale: .96; } }
  }
}
.is-home .top { transition: background-color .4s var(--out), backdrop-filter .4s var(--out); }
.is-home.logo-on .top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; } /* no bar edge across the hero glow */
.is-home .top .brand { transition: opacity .4s var(--out), translate .4s var(--out); }
.is-home.logo-on .top .brand { opacity: 0; translate: 0 6px; pointer-events: none; }

/* scroll reveals: a block rises into place the first time it enters the screen */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { transition: opacity .9s var(--out), translate .9s var(--out), filter .9s var(--out); }
  .js .rv:not(.in) { opacity: 0; translate: 0 40px; filter: blur(6px); }
  .js .feat.rv .feat-pic { transition: transform 1.2s var(--out) .08s, opacity 1.2s var(--out) .08s; }
  .js .feat.rv:not(.in) .feat-pic { opacity: 0; transform: perspective(1400px) rotateY(-10deg) translateX(40px) scale(.96); }
  .js .feat.flip.rv:not(.in) .feat-pic { transform: perspective(1400px) rotateY(10deg) translateX(-40px) scale(.96); }
  .js .how.rv li { transition: opacity .8s var(--out), translate .8s var(--out); }
  .js .how.rv li:nth-child(2) { transition-delay: .1s; }
  .js .how.rv li:nth-child(3) { transition-delay: .2s; }
  .js .how.rv:not(.in) li { opacity: 0; translate: 0 24px; }
  .js .duo .rv:nth-child(2) { transition-delay: .12s; }
}

/* questions */

.sec { padding: 104px 0 0; }
.is-home main { overflow-x: clip; } /* reveal transforms start off to the side; never let them widen the page */
.sec h2 { font: 500 clamp(26px, 4vw, 34px)/1.15 var(--serif); letter-spacing: -.02em; }
.sec-p { margin-top: 8px; color: var(--text-dim); font-size: 15px; line-height: 22px; }

/* segmented control: a filled track with a raised active pill, every segment one width */
.tabs { margin-top: 28px; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border: 1px solid var(--edge); border-radius: var(--pill); background: var(--input); max-width: 100%; }
.seg button { height: 32px; padding: 0 18px; border: 0; border-radius: var(--pill); background: none; color: var(--text-dim); font: 500 13px/20px var(--ui); cursor: pointer; white-space: nowrap; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.seg button:hover { color: var(--text); }
.seg button[aria-selected=true] { background: var(--field); color: var(--text); box-shadow: 0 0 0 1px var(--edge); }
.panel { margin-top: 16px; padding: 20px 22px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--field); animation: rise .25s var(--ease); }
@keyframes rise { from { opacity: 0; translate: 0 6px; } }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li::marker { color: var(--ash); }
.more { margin-top: 16px; }

.cta { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--edge); border-radius: 24px; background: var(--field); }
.cta-form { display: flex; gap: 8px; }
.cta-form input { flex: 1; min-width: 0; height: 44px; padding: 0 20px; border: 1px solid var(--edge); border-radius: var(--pill); background: var(--input); color: var(--text); font: 400 15px/20px var(--ui); transition: border-color var(--dur) var(--ease); }
.cta-form input:hover { border-color: var(--edge-h); }
.cta-form input::placeholder { color: var(--ash); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.foot { margin-top: 96px; padding: 0 0 32px; color: var(--text-dim); font-size: 12px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; max-width: 1360px; margin: 0 auto; padding: 24px 20px 0; }
.foot a { color: var(--text-dim); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 248px minmax(0, 1fr) 208px; gap: 0 40px; max-width: 1360px; margin: 0 auto; padding: 0 16px; align-items: start; }
.side, .toc { position: sticky; top: var(--top); max-height: calc(100dvh - var(--top)); overflow-y: auto; padding: 24px 0 32px; }
.side { display: flex; flex-direction: column; gap: 20px; top: calc(var(--top) + 12px); max-height: calc(100dvh - var(--top) - 24px); margin-top: 12px; padding: 16px 10px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--side); }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-h { padding: 0 12px 6px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ash); }
.side a { display: flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: var(--r-item); color: var(--text-dim); font-weight: 500; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.side a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.side a[aria-current=page] { background: var(--acc-soft); color: var(--text); }
.toc { display: flex; flex-direction: column; gap: 2px; }
.toc a { display: flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 10px; color: var(--text-dim); font-size: 13px; line-height: 18px; transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.toc a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.toc a.on { background: var(--acc-soft); color: var(--text); font-weight: 500; }
.doc { min-width: 0; max-width: 760px; padding: 40px 0 0; }
.crumb { color: var(--acc-ink); font-size: 12px; line-height: 16px; font-weight: 600; }
.doc h1 { margin-top: 6px; font: 500 clamp(32px, 4vw, 42px)/1.1 var(--serif); letter-spacing: -.025em; }
.lede { margin-top: 10px; color: var(--text-dim); font-size: 16px; line-height: 24px; }
.prose { margin-top: 28px; font-size: 15px; line-height: 24px; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 40px; font: 600 20px/28px var(--ui); letter-spacing: -.01em; }
.prose h3 { margin-top: 28px; font: 600 16px/24px var(--ui); }
.prose h2 + *, .prose h3 + * { margin-top: 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--ash); }
.prose code { font-size: 13px; }
.anchor { margin-left: -22px; width: 22px; display: inline-block; color: var(--ash); opacity: 0; font-weight: 400; transition: opacity var(--dur); }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; text-decoration: none; }
.note { padding: 14px 18px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--acc-soft); }
.note p + p { margin-top: 8px; }
.code { position: relative; border: 1px solid color-mix(in srgb, var(--code-fg) 10%, var(--code-bg)); border-radius: 14px; background: var(--code-bg); box-shadow: 0 1px 2px rgb(41 36 42 / .08); }
.code[data-lang]::before { content: attr(data-lang); position: absolute; top: 0; left: 0; height: 40px; padding: 0 18px; display: flex; align-items: center; color: var(--code-dim); font: 500 11px/16px var(--ui); letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.code[data-lang] pre { padding-top: 46px; }
.code pre { margin: 0; padding: 16px 84px 16px 18px; overflow-x: auto; color: var(--code-fg); tab-size: 2; }
.code code { padding: 0; background: none; color: inherit; font-size: 12.5px; line-height: 20px; }
.copy { position: absolute; top: 8px; right: 8px; z-index: 1; height: 26px; padding: 0 12px; border: 1px solid #5b595c; border-radius: var(--pill); background: #403e41; color: #c1c0c0; font: 500 11px/16px var(--ui); cursor: pointer; transition: color var(--dur), border-color var(--dur), background-color var(--dur); }
.copy:hover { background: #4c494d; color: #fcfcfa; }
.copy.done { color: var(--mk-green); border-color: color-mix(in srgb, var(--mk-green) 55%, #403e41); }
.table { overflow-x: auto; border: 1px solid var(--edge); border-radius: 14px; background: var(--field); }
.table table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 16px; text-align: left; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ash); white-space: nowrap; }
.table td { padding: 10px 16px; vertical-align: top; }
.table td:first-child { font-weight: 500; white-space: nowrap; }
.table tbody tr:nth-child(odd) td { background: color-mix(in srgb, var(--text) 3%, transparent); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.pager-a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--edge); border-radius: var(--r-card); background: var(--field); color: var(--text); font-weight: 500; transition: border-color var(--dur) var(--ease); }
.pager-a:hover { border-color: var(--edge-h); text-decoration: none; }
.pager-a small { color: var(--ash); font-weight: 400; }
.pager-a.next { text-align: right; grid-column: 2; }
.ask-page { margin-top: 20px; }
.ask-page .ic { color: var(--acc); }
.nf { max-width: 520px; margin: 18vh auto; padding: 0 20px; text-align: center; }
.nf h1 { font: 500 34px/1.2 var(--serif); margin-bottom: 10px; }


/* ---------- the Ask panel: a second sidebar at the right ---------- */
.ask-scrim, .side-scrim { position: fixed; inset: 0; z-index: 29; background: rgb(0 0 0 / .32); animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.ask { position: fixed; inset: 0 0 0 auto; z-index: 30; width: min(26rem, 100vw); display: flex; flex-direction: column; background: var(--field); border-left: 1px solid var(--edge); box-shadow: var(--overlay); animation: slide .22s var(--ease); }
@keyframes slide { from { opacity: 0; translate: 24px 0; } }
.ask-head { flex: none; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 10px 0 20px; }
.ask-head .ic { color: var(--acc); }
.ask-head .icon-btn { border-color: transparent; background: none; }
.ask-head .icon-btn:hover { background: var(--hover); }
.ask-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 16px; }
.ask-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 28px; text-align: center; }
.ask-empty .ic { width: 32px; height: 32px; color: var(--acc); }
.ask-empty h3 { margin-top: 8px; font: 600 16px/24px var(--ui); }
.ask-empty p { max-width: 20rem; font-size: 12px; line-height: 16px; color: var(--text-dim); }
.ask-sug { align-self: stretch; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ask-sug button { justify-content: flex-start; height: auto; min-height: 40px; padding: 8px 16px; border-radius: 16px; font-weight: 400; text-align: left; white-space: normal; }
.ask-log { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ask-q { display: flex; justify-content: flex-end; }
.ask-bubble { max-width: 85%; padding: 8px 14px; border-radius: 18px 18px 6px 18px; background: var(--input); white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-a { overflow-wrap: anywhere; }
.ask-a > * + * { margin-top: 8px; }
.ask-a ul, .ask-a ol { padding-left: 20px; }
.ask-a pre { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--code-bg); color: var(--code-fg); white-space: pre-wrap; overflow-x: auto; }
.ask-a pre code { padding: 0; background: none; color: inherit; }
.ask-a h4 { font-weight: 600; margin-top: 12px; }
.ask-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ask-src a { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--edge); border-radius: var(--pill); color: var(--text-dim); font-size: 12px; }
.ask-src a:hover { border-color: var(--edge-h); color: var(--text); text-decoration: none; }
.ask-err { color: var(--err); font-size: 13px; }
.ask-think { display: flex; align-items: center; gap: 4px; height: 20px; }
.ask-think span { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: pulse 1s ease-in-out infinite; }
.ask-think span:nth-child(2) { animation-delay: .15s; }
.ask-think span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 50% { opacity: .25; } }
.ask-compose { flex: none; display: flex; align-items: flex-end; gap: 8px; margin: 0 12px 6px; padding: 8px 8px 8px 16px; border: 1px solid var(--edge); border-radius: 22px; background: var(--input); transition: border-color var(--dur); }
.ask-compose:focus-within { border-color: var(--acc); outline: 1px solid var(--acc); }
.ask-compose textarea { flex: 1; min-width: 0; max-height: 160px; padding: 6px 0; border: 0; outline: 0; background: none; color: var(--text); font: 400 14px/20px var(--ui); resize: none; }
.ask-compose textarea::placeholder { color: var(--ash); }
.send { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--acc-fill); color: var(--acc-on); cursor: pointer; transition: background-color var(--dur), opacity var(--dur); }
.send:hover { background: var(--acc-fill-h); }
.send:disabled { opacity: .4; cursor: default; }
.ask-foot { flex: none; margin: 0 20px 12px; font-size: 11px; line-height: 16px; color: var(--ash); }

/* scrollbars: the dashboard's (ui.css). A 12 px bar with a round thumb inset by a 3 px clear border, no track, no arrows.
   The thumb grows under the pointer and turns green while dragged. Blink and WebKit answer ::-webkit-scrollbar only while
   scrollbar-width and scrollbar-color are at their initial values, so they are given back there. :where() keeps this
   weaker than a rule that hides a scrollbar (the carousel). */
:root { --sb-thumb: color-mix(in srgb, var(--ash) 75%, transparent); --sb-thumb-h: var(--ash); }
:root[data-theme=dark] { --sb-thumb: color-mix(in srgb, var(--ash) 60%, transparent); }
:where(.code pre, .ask-a pre) { --sb-thumb: color-mix(in srgb, var(--code-fg) 36%, transparent); --sb-thumb-h: color-mix(in srgb, var(--code-fg) 56%, transparent); }
:where(html, html *) { scrollbar-color: var(--sb-thumb) transparent; scrollbar-width: thin; }
@supports selector(::-webkit-scrollbar) {
  :where(html, html *) { scrollbar-color: auto; scrollbar-width: auto; }
  ::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; border: 0; }
  ::-webkit-scrollbar-thumb { min-width: 40px; min-height: 40px; border: 3px solid transparent; border-radius: 12px; background: var(--sb-thumb) padding-box; }
  ::-webkit-scrollbar-thumb:hover { border-width: 2px; background: var(--sb-thumb-h) padding-box; }
  ::-webkit-scrollbar-thumb:active { border-width: 2px; background: var(--acc) padding-box; }
  ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
}
.car-tabs::-webkit-scrollbar { display: none; }

/* ---------- narrow ---------- */
@media (max-width: 1100px) {
  .docs { grid-template-columns: 232px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .top-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .docs { grid-template-columns: minmax(0, 1fr); padding: 0 20px; }
  .side { position: fixed; inset: var(--top) auto 0 0; z-index: 31; width: min(20rem, 86vw); max-height: none; margin: 0; padding: 20px 12px; border-radius: 0; border-width: 0 1px 0 0; background: var(--side); box-shadow: var(--overlay); translate: -105% 0; transition: translate .22s var(--ease); }
  .side.open { translate: 0 0; }
  .doc { padding-top: 24px; }
  .feat, .cli { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feat.flip .feat-text { order: 0; }
  .feat .feat-pic { order: -1; }
  .feat + .feat, .duo { margin-top: 72px; }
  .car-arrow { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-top: 40px; }
  .how, .duo { grid-template-columns: 1fr; gap: 28px; }
  .car-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
  .sec { padding-top: 72px; }
  .ask-open span, .ask-open kbd { display: none; }
  .ask-open { width: 36px; padding: 0; }
  .cta { padding: 20px; }
  .cta-form { flex-direction: column; }
  .seg { display: grid; width: 100%; }
  .seg button { padding: 0 8px; }
  .pager { grid-template-columns: 1fr; }
  .pager-a.next { grid-column: 1; text-align: left; }
}

@font-face { font-family: "Phosphor"; src: url("/phosphor.woff2") format("woff2"); font-display: block; } /* Phosphor icons (MIT), the same subset the dashboard ships */

/* ---------- home: link hub, two columns of icon + link + one line ---------- */
.hub { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.hub-list { display: flex; flex-direction: column; gap: 4px; margin: 24px 0 0; padding: 0; list-style: none; }
.hub-list li { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-card); transition: background-color var(--dur) var(--ease); }
.hub-list li:hover { background: var(--hover); }
.hub-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--edge); border-radius: 50%; background: var(--field); color: var(--acc); }
.hub-ic::before { font: 400 20px/1 "Phosphor"; -webkit-font-smoothing: antialiased; }
.ph-shield::before { content: "\e40c"; } .ph-refresh::before { content: "\e094"; } .ph-server::before { content: "\e2a0"; } .ph-terminal::before { content: "\eae8"; }
.ph-download::before { content: "\e20c"; } .ph-sparkle::before { content: "\e6a2"; } .ph-file::before { content: "\e23a"; } .ph-plug::before { content: "\e946"; }
.hub-list a, .hub-a { display: inline-block; padding: 0; border: 0; background: none; color: var(--text); font: 600 16px/24px var(--ui); cursor: pointer; text-align: left; }
.hub-list a::after, .hub-a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole row is the link */
.hub-list a:hover, .hub-a:hover { text-decoration: none; color: var(--acc-ink); }
.hub-list p { margin-top: 2px; color: var(--text-dim); font-size: 14px; line-height: 21px; }
@media (max-width: 860px) { .hub { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- depth: one rule, the same two steps as the dashboard ---------- */
/* Every container and filled control sits on --lift; menus, panels and drawers use --overlay. Ghost controls stay flat. */
.btn, .icon-btn, .chip, .car-tabs button, .how li::before, .feat-pic, .panel, .cta, .side, .note, .table, .pager-a, .hub-ic, .code, .ask-src a, .send { box-shadow: var(--lift); }
.seg button[aria-selected=true] { box-shadow: 0 0 0 1px var(--edge), var(--lift); }
.ask-head .icon-btn, .btn:active, .icon-btn:active { box-shadow: none; }
@media (max-width: 860px) { .side { box-shadow: var(--overlay); } }
