/* phloem.ai/docs — Computer's reader, on the web.
 * Face and palette are common/ui's (src/styles/tokens.css): Geist for anything
 * that wraps, Geist Mono for what a reader copies (commands, paths, code), the
 * warm-neutral grounds, and the brand green on the mark only. */

@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(geist-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(geist-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(geist-mono-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(geist-mono-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --sans: "Geist Variable", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono Variable", "Geist Mono", "SF Mono", Menlo, monospace;
  --bg: #f8f8f6;
  --fg: #1a1a18;
  --card: #fcfcfb;
  --muted: #f0f0ec;
  --dim: #6b6a62;
  --line: #e2e1da;
  --ring: #a5a399;
  --side: #f4f4f1;
  --hover: #eaeae5;
  --acc: #15945f;
  --tip: #15945f;
  --warn: #b7791f;
  /* Code colours: common/ui's One Light / One Dark (tokens.css --code-*),
     the palette the notebook and the chat use — mixed toward the text colour
     so a page of snippets reads calm rather than loud. */
  --code-comment: #a0a1a7;
  --code-keyword: #a626a4;
  --code-string: #50a14f;
  --code-number: #986801;
  --code-func: #4078f2;
  --code-type: #e45649;
  --r: 4px;
  --rc: 2px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151514; --fg: #f0efe9; --card: #1b1b1a; --muted: #232322; --dim: #a5a399;
    --line: #f0efe91c; --ring: #84827a; --side: #1b1b1a; --hover: #232322; --acc: #2ed27e;
    --tip: #2ed27e; --warn: #f0b429; color-scheme: dark; --code-comment: #5c6370; --code-keyword: #c678dd; --code-string: #98c379; --code-number: #d19a66; --code-func: #61afef; --code-type: #e5c07b;
  }
}
:root[data-theme="dark"] {
  --bg: #151514; --fg: #f0efe9; --card: #1b1b1a; --muted: #232322; --dim: #a5a399;
  --line: #f0efe91c; --ring: #84827a; --side: #1b1b1a; --hover: #232322; --acc: #2ed27e;
  --tip: #2ed27e; --warn: #f0b429; color-scheme: dark; --code-comment: #5c6370; --code-keyword: #c678dd; --code-string: #98c379; --code-number: #d19a66; --code-func: #61afef; --code-type: #e5c07b;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); }

/* top bar */
.top {
  position: sticky; top: 0; z-index: 20; height: 56px;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
/* The header sits on the page's own grid: the mark over the sidebar's text,
   the tabs over the article's text column, search and Log in at the right. */
.topin { display: grid; grid-template-columns: 276px minmax(0, 1fr) auto; align-items: center; height: 56px; max-width: 1440px; margin: 0 auto; }
.topright { display: flex; align-items: center; gap: 12px; padding-right: 20px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; padding-left: 28px; }
.brand b { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); border: 1px solid var(--line); border-radius: var(--rc); padding: 1px 6px; }
.search {
  display: flex; align-items: center; gap: 8px; width: 260px; max-width: 30vw; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--dim); border-radius: var(--rc);
  font: inherit; font-size: 13px; cursor: pointer;
}
.search span { flex: 1; text-align: left; }
.search kbd { font-size: 11px; border: 1px solid var(--line); border-radius: var(--rc); padding: 0 5px; }
.toplinks { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.toplinks a { text-decoration: none; color: var(--dim); }
.toplinks a:hover { color: var(--fg); }
.toplinks .cta { color: var(--bg); background: var(--fg); padding: 6px 12px; border-radius: var(--rc); font-weight: 500; }
.toplinks .cta:hover { color: var(--bg); opacity: .9; }
.theme, .menu { display: grid; place-items: center; background: none; border: 1px solid var(--line); color: var(--dim); width: 32px; height: 32px; border-radius: var(--rc); cursor: pointer; font-size: 14px; }
.menu { display: none !important; }

/* layout */
.layout { display: grid; grid-template-columns: 276px minmax(0, 1fr) 220px; max-width: 1440px; margin: 0 auto; }
.side {
  position: sticky; top: 56px; height: calc(100dvh - 56px); overflow-y: auto; padding: 20px 12px 40px 20px;
  border-right: 1px solid var(--line); font-size: 13.5px;
}
.navgroup { margin-bottom: 16px; }
.navhead { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding: 4px 8px; text-decoration: none; }
a.navhead:hover, .navhead.on { color: var(--fg); }
.ico { display: inline-grid; place-items: center; flex: none; color: var(--dim); }
.ico svg { display: block; }
.navhead .ico svg { width: 13px; height: 13px; }
.navhome { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 14px; border-radius: var(--rc); text-decoration: none; color: color-mix(in oklab, var(--fg) 82%, var(--bg)); }
.navhome:hover { background: var(--hover); color: var(--fg); }
.navhome.on { background: var(--hover); color: var(--fg); font-weight: 500; box-shadow: inset 2px 0 0 var(--fg); }

/* tabs: in the header on a wide screen, atop the drawer on a narrow one */
.toptabs { display: flex; height: 56px; gap: 4px; padding-left: 46px; }
.toptabs a { display: flex; align-items: center; padding: 0 10px; font-size: 14px; color: var(--dim); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; }
.toptabs a:hover { color: var(--fg); }
.toptabs a.on { color: var(--fg); font-weight: 500; box-shadow: inset 0 -2px 0 var(--acc); }
.sidetabs { display: none; }

/* home: the work in five steps */
.journey { list-style: none; margin: 36px 0 12px; padding: 0; }
.journey .step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; position: relative; padding-bottom: 28px; }
.journey .step:not(:last-child)::before { content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 4px; width: 1px; background: var(--line); }
.stepico { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; }
.stepico .ico { color: var(--fg); }
.stepbody h2 { margin: 6px 0 4px !important; border: 0 !important; padding: 0 !important; }
.stepbody > p { margin: 0 0 8px; color: var(--dim); }
.steplinks { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.steplinks a { text-decoration: none; }
.steplinks a:hover { text-decoration: underline; }
.journey .cards { margin-bottom: 4px; }
.prose h2 .ico { margin-right: 8px; vertical-align: -2px; }
.side ul { list-style: none; margin: 2px 0 0; padding: 0; }
.side li a { display: block; padding: 4px 8px; border-radius: var(--rc); text-decoration: none; color: color-mix(in oklab, var(--fg) 82%, var(--bg)); }
.side li a:hover { background: var(--hover); color: var(--fg); }
.side li a.on { background: var(--hover); color: var(--fg); font-weight: 500; box-shadow: inset 2px 0 0 var(--fg); }

.main { padding: 32px 56px 80px; min-width: 0; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.crumbs i { font-style: normal; opacity: .5; }

.toc { position: sticky; top: 56px; height: calc(100dvh - 56px); overflow-y: auto; padding: 32px 20px; font-size: 13px; }
.tochead { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 3px 0 3px 12px; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--dim); line-height: 1.4; }
.toc li.d3 a { padding-left: 24px; }
.toc li a:hover { color: var(--fg); }
.toc li a.on { color: var(--fg); border-left-color: var(--fg); }

/* prose — copy-16 for the reader, Geist headings tight */
.prose { max-width: 760px; font-size: 16px; line-height: 26px; text-wrap: pretty; }
.prose h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; margin: 0 0 12px; text-wrap: balance; }
.prose h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 600; margin: 44px 0 12px; padding-top: 4px; }
.prose h3 { font-size: 17px; line-height: 1.4; font-weight: 600; margin: 30px 0 8px; }
.prose h4 { font-size: 15px; font-weight: 600; margin: 24px 0 6px; }
.prose h1, .prose h2, .prose h3, .prose h4 { position: relative; }
.anchor { position: absolute; left: -20px; opacity: 0; text-decoration: none; color: var(--dim); font-weight: 400; }
h2:hover .anchor, h3:hover .anchor, h4:hover .anchor { opacity: 1; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--dim); }
.prose a { text-decoration: underline; text-decoration-color: var(--ring); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--fg); }
.prose strong { font-weight: 600; }
.prose :not(pre) > code { font-size: .86em; background: var(--muted); border: 1px solid var(--line); border-radius: var(--rc); padding: 1px 5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.eyebrow { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 10px; }
.lede { font-size: 18px; line-height: 28px; color: color-mix(in oklab, var(--fg) 78%, var(--bg)); margin: 0 0 24px; }
.muted { color: var(--dim); }
.small { font-size: 13px; line-height: 20px; }
.label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 16px 0 6px; }

/* code */
pre.code { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 21px; margin: 0 0 18px; }
pre.code[data-lang]::before { content: attr(data-lang); position: absolute; top: 6px; right: 58px; font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
pre.code .copy { position: absolute; top: 6px; right: 6px; font: 500 11px var(--sans); color: var(--dim); background: var(--bg); border: 1px solid var(--line); border-radius: var(--rc); padding: 2px 8px; cursor: pointer; opacity: 0; transition: opacity .15s; }
pre.code:hover .copy, pre.code .copy:focus { opacity: 1; }
pre.usage { background: var(--muted); }
.t-comment { color: color-mix(in oklab, var(--code-comment) 85%, var(--fg)); font-style: italic; }
.t-keyword { color: color-mix(in oklab, var(--code-keyword) 62%, var(--fg)); }
.t-string { color: color-mix(in oklab, var(--code-string) 62%, var(--fg)); }
.t-number { color: color-mix(in oklab, var(--code-number) 62%, var(--fg)); }
.t-func { color: color-mix(in oklab, var(--code-func) 62%, var(--fg)); }
.t-type { color: color-mix(in oklab, var(--code-type) 62%, var(--fg)); }

/* tables */
.table { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 21px; }
th { text-align: left; font-weight: 500; color: var(--dim); font-size: 12.5px; background: var(--muted); }
th, td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td code { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
td a { text-decoration: none !important; }

/* callouts — icon tag + plain words, no tinted box, no left bar (common/ui rule) */
.callout { display: flex; gap: 12px; background: var(--muted); border-radius: var(--r); padding: 12px 16px; margin: 0 0 20px; font-size: 15px; line-height: 24px; }
.callout p:last-child { margin: 0; }
.callout-tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; padding-top: 3px; min-width: 56px; }
.callout-tip .callout-tag, .callout-note .callout-tag { color: var(--tip); }
.callout-warning .callout-tag { color: var(--warn); }
blockquote { margin: 0 0 18px; padding: 0 0 0 16px; color: var(--dim); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 1fr; gap: 12px; margin: 8px 0 28px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none !important; transition: border-color .15s; }
.card:hover { border-color: var(--ring); }
.card b { font-weight: 600; font-size: 15px; line-height: 21px; letter-spacing: -0.005em; }
.card span { font-size: 13.5px; line-height: 20px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards.big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.big .card { padding: 18px 20px; }
.prose.wide, .pagebar.wide { max-width: 1040px; }
@media (max-width: 1100px) { .cards.big { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* connectors — one card shape everywhere (catalog, input pages, capability
   pages): mark, name, a two-line summary, then what it does as quiet tags. */
/* Every card in a grid is the same height: rows share one track size
   (grid-auto-rows: 1fr), the name is one line and the summary two, each
   ending in "…" when longer — so a long name never makes one card taller. */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 1fr; gap: 10px; margin: 0 0 8px; }
.ccard { display: flex; gap: 12px; align-items: flex-start; min-height: 104px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-decoration: none !important; transition: border-color .15s, transform .15s; overflow: hidden; }
.ccard b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard:hover { border-color: var(--ring); transform: translateY(-1px); }
.ccard[hidden] { display: none; }
.cbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ccard b { font-weight: 600; font-size: 14.5px; line-height: 20px; }
.csum { font-size: 13px; line-height: 19px; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fmts { display: block; font: 11.5px var(--mono); font-style: normal; color: var(--dim); }
.ctags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ctags i { font-style: normal; font: 500 10.5px var(--mono); letter-spacing: .02em; color: var(--dim); border: 1px solid var(--line); border-radius: var(--rc); padding: 0 5px; line-height: 17px; }

/* the catalog: segment (where it runs) · search · category chips */
.catbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 10px; }
.catbar .filter { margin: 0; flex: 1 1 220px; max-width: none; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--muted); border: 1px solid var(--line); border-radius: var(--r); }
.seg button { font: 500 13px var(--sans); color: var(--dim); background: none; border: 0; border-radius: var(--rc); padding: 5px 11px; cursor: pointer; white-space: nowrap; }
.seg button span { font: 11px var(--mono); opacity: .7; margin-left: 2px; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.fchip { font: 12.5px var(--sans); color: var(--dim); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.fchip:hover { color: var(--fg); border-color: var(--ring); }
.fchip[aria-pressed="true"] { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.fchip:disabled { opacity: .35; cursor: default; }
.cset { margin-top: 28px; }
.cset[hidden], .cgroup[hidden] { display: none; }
.csethead { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 4px; }
.csethead h2 { margin: 0 0 4px; font-size: 20px; }
.csethead h2 .count { font: 500 12px var(--mono); color: var(--dim); vertical-align: middle; margin-left: 4px; }
.csethead p { margin: 0; font-size: 14px; line-height: 22px; }
.cgroup h3 { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 22px 0 10px; }
.cempty { margin-top: 24px; }
/* A connector's mark: its own logo on a quiet tile, or its Lucide icon in its
   manifest colour. One tile shape either way, so a grid reads as one set. */
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r); color: var(--c); background: color-mix(in oklab, var(--c) 12%, var(--card)); border: 1px solid var(--line); font: 600 13px var(--mono); flex: none; }
.logo svg { width: 17px; height: 17px; }
.logo.img { background: #fff; }
/* A brand colour can be near-black (Notion, GitHub): on a dark ground the
   mark would vanish, so the dark themes lift every mark toward the text. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo:not(.img) { color: color-mix(in oklab, var(--c) 65%, var(--fg)); } }
:root[data-theme="dark"] .logo:not(.img) { color: color-mix(in oklab, var(--c) 65%, var(--fg)); }
.logo img { width: 22px; height: 22px; object-fit: contain; }
.logo.big { width: 52px; height: 52px; font-size: 22px; }
.logo.big svg { width: 26px; height: 26px; }
.logo.big img { width: 36px; height: 36px; }
.hero { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 8px; }
.hero h1 { margin-bottom: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 4px 0 28px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.facts dd { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; line-height: 18px; padding: 1px 8px; border-radius: var(--rc); background: var(--muted); border: 1px solid var(--line); }
.chip.ghost { background: none; color: var(--dim); }
.filter { width: 100%; max-width: 360px; height: 36px; padding: 0 12px; margin: 0 0 8px; font: inherit; font-size: 14px; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: var(--rc); }

/* page bar: breadcrumb left, page actions right */
.pagebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; max-width: 760px; }
.pagebar .crumbs { margin: 0; }
.pageactions { display: flex; gap: 6px; flex: none; }
.pageactions button, .pageactions a { font: 500 12px var(--sans); color: var(--dim); background: none; border: 1px solid var(--line); border-radius: var(--rc); padding: 3px 9px; cursor: pointer; text-decoration: none; }
.pageactions button:hover, .pageactions a:hover { color: var(--fg); border-color: var(--ring); }
.search404 { font: 500 14px var(--sans); color: var(--bg); background: var(--fg); border: 0; border-radius: var(--rc); padding: 8px 14px; cursor: pointer; }

/* accessibility: a skip link, a focus ring a keyboard can see, and no motion
   for readers who asked for none */
.skip { position: absolute; left: 12px; top: -48px; z-index: 60; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: var(--rc); text-decoration: none; }
.skip:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .top, .side, .toc, .pager, .pageactions, .copy { display: none !important; } .layout { display: block; } .main { padding: 0; } }

/* cli */
.cmd { padding-bottom: 6px; }
.cmd h1 code, .cmd h2 code, .cmd h3 code, .cmd h4 code { font-size: .9em; background: none; border: 0; padding: 0; font-weight: 500; }
.cmd + .cmd { border-top: 1px solid var(--line); margin-top: 28px; }

/* tabs */
.tabs { margin: 0 0 20px; }
.tablist { display: flex; gap: 2px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tablabel { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-right: 10px; }
.tablist button { font: 500 13.5px var(--sans); color: var(--dim); background: none; border: 0; border-bottom: 2px solid transparent; padding: 7px 10px; margin-bottom: -1px; cursor: pointer; }
.tablist button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--fg); }

/* home list */
.links { list-style: none; padding: 0; margin: 0 0 12px; }
.links li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.links li a { text-decoration: none; font-weight: 500; }
.links li span { color: var(--dim); font-size: 14px; line-height: 22px; }

/* pager */
.pager { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.pager a { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-weight: 500; }
.pager a:hover { border-color: var(--ring); }
.pager small { font-size: 12px; color: var(--dim); font-weight: 400; }
.pager .next { text-align: right; grid-column: 2; }

/* search */
.sdlg { position: fixed; inset: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 60%, transparent); backdrop-filter: blur(4px); display: grid; justify-items: center; align-items: start; padding-top: 12vh; }
.sdlg[hidden] { display: none; }
.sbox { width: min(620px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow: hidden; }
.sbox input { width: 100%; height: 48px; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font: inherit; font-size: 16px; outline: none; }
.sbox ul { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow-y: auto; }
.sbox li a { display: block; padding: 8px 10px; border-radius: var(--rc); text-decoration: none; }
.sbox li a:hover, .sbox li a.on { background: var(--hover); }
.sbox li b { font-weight: 500; }
.sbox li small { display: block; color: var(--dim); font-size: 12.5px; }

@media (max-width: 1180px) { .layout, .topin { grid-template-columns: 260px minmax(0, 1fr) auto; } .layout { grid-template-columns: 260px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: 56px; left: 0; width: 290px; background: var(--bg); z-index: 15; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .main { padding: 24px 16px 64px; }
  .topin { display: flex; gap: 10px; padding: 0 16px; }
  .brand { padding-left: 0; }
  .topright { flex: 1; min-width: 0; padding-right: 0; gap: 8px; justify-content: flex-end; }
  .brand span { display: none; }
  .search { width: 34px; max-width: none; flex: none; padding: 0; justify-content: center; }
  .search span, .search kbd { display: none; }
  .toplinks { gap: 8px; }
  .toplinks a:not(.cta) { display: none; }
  .toptabs { display: none; }
  .sidetabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .sidetabs a { padding: 4px 8px; border-radius: var(--rc); text-decoration: none; color: var(--dim); font-size: 13.5px; }
  .sidetabs a.on { background: var(--hover); color: var(--fg); font-weight: 500; }
  .toplinks .cta { white-space: nowrap; }
  .menu { display: grid !important; }
  .links li { grid-template-columns: 1fr; gap: 2px; }
  .prose h1 { font-size: 28px; }
  /* Phone reading: the page's own words first, then the controls. */
  .pageactions { display: none; }
  .pagebar { margin-bottom: 12px; }
  .prose ol, .prose ul { padding-left: 22px; }
  pre.code { font-size: 12.5px; line-height: 19px; padding: 12px 14px; }
  .prose th, .prose td { padding: 8px 10px; font-size: 14px; line-height: 21px; }
  .prose td code { white-space: normal; overflow-wrap: normal; word-break: normal; }
}
.updated { margin: 40px 0 0; font-size: 13px; color: var(--dim); }
