/* ProbeAgent documentation.

   Warm paper, serif display, sans prose. The serif is doing real work: these
   pages carry research findings as well as CLI reference, and a document that
   looks like a paper is read differently from one that looks like an API dump.

   Palette is a warm neutral with one indigo accent. Colour never carries
   meaning alone — every state that matters also has a word or a border.

   No webfont request. Documentation for a tool that runs on isolated boxes has
   to render identically offline, so the stacks below use what the reader has. */

*,*::before,*::after{box-sizing:border-box}

:root{
  --paper:#FBFAF7; --ink:#1C1A17; --dim:#6A635A; --rule:#E7E3DA;
  --sunk:#F3F1EA; --raise:#FFFFFF;
  --accent:#3F4E9E; --accent-bg:#EEF0F9; --accent-soft:#DADEF1;
  --ok:#2E6B47; --ok-bg:#ECF3EE;
  --warn:#8A5A1B; --warn-bg:#F8F1E4;
  --bad:#9B3327; --bad-bg:#F9EBE8;
  /* Three stacks, no webfont: a CDN request is a dependency and a flash of
     unstyled text, and these pages are read on isolated boxes. Each platform's
     own face is named first so the page gets that platform's best-hinted type
     rather than falling silently to Helvetica.

     Running prose is a soft humanist sans, not the UI grotesque and not a
     serif. The serif here was chosen so the pages would "read like a paper",
     which was the wrong goal: at 16.5px on a screen Charter reads angular
     beside the rounded chrome, and the paper is a separate artifact that can
     look like a paper on its own. */
  --sans:
    ui-sans-serif, -apple-system, BlinkMacSystemFont,   /* SF Pro Text  */
    'Segoe UI Variable Text', 'Segoe UI',               /* Windows      */
    Inter, 'Noto Sans', Roboto,                         /* Linux, Android */
    'Helvetica Neue', Arial, sans-serif;
  --prose:
    'Avenir Next', Avenir,                              /* macOS, iOS   */
    'Segoe UI Variable Text', 'Segoe UI',               /* Windows      */
    Inter, 'Noto Sans', Roboto,
    ui-sans-serif, system-ui, sans-serif;
  --mono:
    ui-monospace, 'SF Mono', SFMono-Regular,
    'Cascadia Mono', 'Segoe UI Mono',
    'JetBrains Mono', 'Liberation Mono', Menlo, Consolas, monospace;
}

/* Dark twice: the media query is the default signal, the data-theme attribute
   is what the toggle stamps on <html>. It has to win in both directions or the
   toggle silently does nothing for a reader whose OS is already dark. */
@media (prefers-color-scheme:dark){:root{
  --paper:#14130F; --ink:#E8E3D8; --dim:#98907F; --rule:#2A2721;
  --sunk:#1C1A15; --raise:#201D18;
  --accent:#9AA6E8; --accent-bg:#1A1C2A; --accent-soft:#282C42;
  --ok:#7FC49A; --ok-bg:#14211A;
  --warn:#D8A662; --warn-bg:#231B11;
  --bad:#E08D7E; --bad-bg:#261614;
}}
:root[data-theme=dark]{
  --paper:#14130F; --ink:#E8E3D8; --dim:#98907F; --rule:#2A2721;
  --sunk:#1C1A15; --raise:#201D18;
  --accent:#9AA6E8; --accent-bg:#1A1C2A; --accent-soft:#282C42;
  --ok:#7FC49A; --ok-bg:#14211A;
  --warn:#D8A662; --warn-bg:#231B11;
  --bad:#E08D7E; --bad-bg:#261614;
}
:root[data-theme=light]{
  --paper:#FBFAF7; --ink:#1C1A17; --dim:#6A635A; --rule:#E7E3DA;
  --sunk:#F3F1EA; --raise:#FFFFFF;
  --accent:#3F4E9E; --accent-bg:#EEF0F9; --accent-soft:#DADEF1;
  --ok:#2E6B47; --ok-bg:#ECF3EE;
  --warn:#8A5A1B; --warn-bg:#F8F1E4;
  --bad:#9B3327; --bad-bg:#F9EBE8;
}

html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
body{margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--prose); font-size:16.5px; line-height:1.72;
  -webkit-font-smoothing:antialiased}

.wrap{display:grid; grid-template-columns:230px minmax(0,760px) 168px;
  gap:0 48px; justify-content:center; margin:0 auto; padding:0 30px}
@media(max-width:1180px){.wrap{grid-template-columns:230px minmax(0,1fr)}
  .toc{display:none}}
@media(max-width:840px){.wrap{grid-template-columns:1fr; padding:0 20px}
  nav.side{position:static; height:auto; border-right:0;
    border-bottom:1px solid var(--rule); padding:20px 0 16px}}

.skip{position:absolute; left:-9999px; top:0; z-index:60; padding:10px 14px;
  background:var(--accent); color:var(--paper); border-radius:0 0 6px 0}
.skip:focus{left:0}

/* ---- sidebar ---- */
/* 11px of left padding is load-bearing: the link pills reach 11px left of the
   text column (negative margin), and overflow-y:auto also clips horizontally —
   without the padding every pill loses its left corners and hover looks cut. */
nav.side{position:sticky; top:0; height:100vh; overflow-y:auto;
  padding:40px 18px 60px 11px; border-right:1px solid var(--rule)}
.brand{margin:0 0 6px; font-family:var(--prose); font-size:21px;
  font-weight:600; letter-spacing:-.01em}
.brand a{color:var(--ink); text-decoration:none; border:0}
.tag{margin:0 0 16px; font-size:13px; color:var(--dim); line-height:1.5}
.ver{display:inline-block; margin:0 0 24px; font-family:var(--mono);
  font-size:11.5px; color:var(--dim)}
nav.side h2{margin:24px 0 6px; font-size:11px; font-weight:600;
  letter-spacing:.09em; text-transform:uppercase; color:var(--dim)}
nav.side ul{list-style:none; margin:0; padding:0}
nav.side a{display:block; padding:6px 11px; margin-left:-11px; font-size:14.5px;
  color:var(--dim); text-decoration:none; border:0; border-radius:7px}
nav.side a:hover{color:var(--ink); background:var(--sunk)}
nav.side a[aria-current=page]{color:var(--accent); background:var(--accent-bg);
  font-weight:500}

/* ---- article ---- */
main{min-width:0; padding:52px 0 100px}
article > *:first-child{margin-top:0}

h1{margin:0 0 6px; font-family:var(--prose); font-size:42px; line-height:1.12;
  font-weight:600; letter-spacing:-.02em}
/* The lede is the first paragraph, set in the display face. It carries the
   one-sentence claim, so it should read as part of the title block. */
.lede{margin:0 0 30px; font-family:var(--prose); font-size:21px;
  line-height:1.5; color:var(--ink)}
/* A hairline above each section: long reference pages read as chapters rather
   than as one scroll of prose. The first h2 after the title block skips it. */
article > h2{margin:56px 0 14px; padding-top:34px; border-top:1px solid var(--rule);
  font-family:var(--prose); font-size:27px;
  font-weight:600; letter-spacing:-.01em; line-height:1.25}
article > h2:first-of-type{border-top:0; padding-top:0; margin-top:44px}
h2{font-family:var(--prose); font-size:27px; font-weight:600;
  letter-spacing:-.01em; line-height:1.25}
h3{margin:34px 0 9px; font-family:var(--prose); font-size:20px; font-weight:600}
h4{margin:26px 0 6px; font-size:15px; font-weight:650; color:var(--dim);
  letter-spacing:.01em}

p{margin:0 0 17px}
ul,ol{margin:0 0 17px; padding-left:25px}
li{margin:0 0 7px}
li > ul,li > ol{margin-top:7px}
a{color:var(--accent); text-decoration:none;
  border-bottom:1px solid var(--accent-soft)}
a:hover{border-bottom-color:var(--accent)}
strong{font-weight:650}
hr{border:0; border-top:1px solid var(--rule); margin:40px 0}

.anchor{margin-left:.4em; color:var(--dim); border:0; opacity:0;
  font-weight:400; font-family:var(--sans); font-size:.7em}
h2:hover .anchor,h3:hover .anchor,.anchor:focus{opacity:1}

/* ---- code ---- */
code{font-family:var(--mono); font-size:.855em; background:var(--sunk);
  padding:.15em .4em; border-radius:4px; border:1px solid var(--rule)}
pre{position:relative; margin:0 0 20px; padding:16px 18px; background:var(--sunk);
  border:1px solid var(--rule); border-radius:10px; overflow-x:auto;
  line-height:1.62}
pre code{background:none; border:0; padding:0; font-size:13.5px}
/* Language chip, read from the fence's language-* class. :has() support is
   universal enough; where it is missing the chip simply does not appear. */
pre:has(> code[class*=language-])::after{position:absolute; top:7px; right:11px;
  font-family:var(--mono); font-size:10.5px; letter-spacing:.05em;
  color:var(--dim); text-transform:uppercase; pointer-events:none}
pre:has(> code.language-bash)::after{content:"bash"}
pre:has(> code.language-yaml)::after{content:"yaml"}
pre:has(> code.language-python)::after{content:"python"}
pre:has(> code.language-json)::after{content:"json"}
pre:has(> code.language-toml)::after{content:"toml"}
a code{color:inherit}

/* Terminal chrome. Used for blocks that show a real session, so a reader can
   tell at a glance which snippets are things to run and which are file
   contents — the distinction that costs the most when it is missed. */
.term{margin:0 0 22px; border:1px solid var(--rule); border-radius:10px;
  overflow:hidden; background:var(--sunk)}
.term-bar{display:flex; align-items:center; gap:7px; padding:9px 13px;
  background:var(--raise); border-bottom:1px solid var(--rule)}
.term-bar i{width:10px; height:10px; border-radius:50%; background:var(--rule);
  display:block}
.term-bar span{margin-left:6px; font-family:var(--mono); font-size:12px;
  color:var(--dim)}
.term pre{margin:0; border:0; border-radius:0; background:none}

/* ---- cards ---- */
.cards{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0 0 26px}
@media(max-width:640px){.cards{grid-template-columns:1fr}}
.card{display:block; padding:18px 20px; background:var(--raise);
  border:1px solid var(--rule); border-radius:11px; color:inherit;
  text-decoration:none; transition:border-color .12s, box-shadow .12s}
.card:hover{border-color:var(--accent);
  box-shadow:0 2px 10px color-mix(in srgb, var(--accent) 14%, transparent)}
.card b{display:block; font-family:var(--prose); font-size:18px;
  font-weight:600; color:var(--accent); margin:0 0 5px}
.card span{display:block; font-size:14.5px; color:var(--dim); line-height:1.55}

/* ---- callouts ---- */
.note{margin:0 0 22px; padding:14px 18px; border-left:3px solid var(--accent);
  background:var(--accent-bg); border-radius:0 9px 9px 0; font-size:15.5px}
.note > *:last-child{margin-bottom:0}
.note.warn{border-left-color:var(--warn); background:var(--warn-bg)}
.note.bad{border-left-color:var(--bad); background:var(--bad-bg)}
.note.ok{border-left-color:var(--ok); background:var(--ok-bg)}
blockquote{margin:0 0 22px; padding:14px 18px; border-left:3px solid var(--accent);
  background:var(--accent-bg); border-radius:0 9px 9px 0}
blockquote > *:last-child{margin-bottom:0}

/* ---- tables ---- */
/* Wide tables scroll, and now they say so. The container has always been
   scrollable, but nothing on screen indicated it, so on a phone the last column
   of a five-column table simply looked missing. Two gradient pairs do the work
   with no script: the solid ones scroll with the content (background-attachment
   local) and the shadows stay with the container (scroll), so a shadow is
   visible exactly when there is content past that edge and gone when there is
   not. On a narrow screen the first column also sticks, so a row keeps the
   label that says what it is while you scroll its values. */
.tablewrap{overflow-x:auto; margin:0 0 22px;
  background:
    linear-gradient(to right, var(--paper) 30%, rgba(0,0,0,0)),
    linear-gradient(to right, rgba(0,0,0,0), var(--paper) 70%) 100% 0,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.13), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.13), rgba(0,0,0,0)) 100% 0;
  background-repeat:no-repeat;
  background-size:36px 100%, 36px 100%, 13px 100%, 13px 100%;
  background-attachment:local, local, scroll, scroll}
@media(max-width:720px){
  .tablewrap td:first-child,.tablewrap th:first-child{
    position:sticky; left:0; z-index:1; background:var(--paper)}
  .tablewrap th:first-child{background:var(--sunk)}
  .tablewrap tr:nth-child(even) td:first-child{background:var(--paper)}
}
table{border-collapse:collapse; width:100%; font-size:14.5px}
th,td{text-align:left; padding:10px 14px; border-bottom:1px solid var(--rule);
  vertical-align:top}
th{font-weight:600; font-size:12px; letter-spacing:.04em;
  text-transform:uppercase; color:var(--dim); background:var(--sunk);
  white-space:nowrap}
tbody tr:nth-child(even){background:color-mix(in srgb, var(--sunk) 55%, transparent)}
tbody tr:last-child td{border-bottom:0}
td code{font-size:.86em}

/* ---- on-this-page ---- */
.toc{position:sticky; top:52px; align-self:start; padding:58px 0 40px;
  font-size:13.5px; max-height:100vh; overflow-y:auto}
.toc h2{margin:0 0 9px; padding:0; border:0; font-family:var(--sans);
  font-size:11px; font-weight:600; letter-spacing:.09em;
  text-transform:uppercase; color:var(--dim)}
.toc ul{list-style:none; margin:0; padding:0}
.toc li{margin:0 0 3px}
.toc a{display:block; padding:3px 0 3px 12px; color:var(--dim);
  border:0; border-left:2px solid var(--rule); line-height:1.45}
.toc a:hover{color:var(--ink)}
.toc a.active{color:var(--accent); border-left-color:var(--accent)}
.toc .lvl3{padding-left:25px}

/* ---- report listing ---- */
.report-list{margin:0 0 26px}
.report-item{display:block; padding:16px 18px; margin:0 0 12px;
  background:var(--raise); border:1px solid var(--rule); border-radius:11px;
  color:inherit; text-decoration:none;
  transition:border-color .12s, box-shadow .12s}
.report-item:hover{border-color:var(--accent);
  box-shadow:0 2px 10px color-mix(in srgb, var(--accent) 14%, transparent)}
.report-item .report-date{display:block; font-family:var(--mono);
  font-size:12px; color:var(--dim); margin:0 0 3px}
.report-item b{display:block; font-family:var(--prose); font-size:18px;
  font-weight:600; color:var(--accent); margin:0 0 5px}
.report-item span.report-desc{display:block; font-size:14.5px;
  color:var(--dim); line-height:1.55}

/* ---- theme toggle ---- */
/* The theme control sits in the sidebar under the search box, not in a floating
   corner button. As a 40px circle bottom-right it was indistinguishable from a
   decorative dot and readers did not find it; a labelled segmented control in the
   place preferences are looked for costs one row of sidebar and is self-evident. */
.themeseg{display:flex; gap:2px; margin:10px 0 4px; padding:2px;
  border:1px solid var(--rule); border-radius:9px; background:var(--sunk)}
.themeseg button{flex:1 1 0; appearance:none; -webkit-appearance:none; border:0;
  border-radius:7px; background:transparent; color:var(--dim); cursor:pointer;
  font:500 11.5px/1 var(--sans); letter-spacing:.02em; padding:6px 0}
.themeseg button:hover{color:var(--ink)}
.themeseg button[aria-pressed=true]{background:var(--raise); color:var(--ink);
  box-shadow:0 1px 2px rgba(0,0,0,.07)}
.themeseg button:focus-visible{outline:2px solid var(--accent); outline-offset:1px}

footer{margin-top:70px; padding-top:22px; border-top:1px solid var(--rule);
  font-size:13px; color:var(--dim); display:flex; gap:16px; flex-wrap:wrap;
  justify-content:space-between}
footer a{color:var(--dim); border-bottom-color:var(--rule)}

@media print{
  nav.side,.toc,.themeseg,.skip{display:none}
  .wrap{display:block; padding:0}
  a{color:inherit; border:0}
  pre,table,.card{page-break-inside:avoid}
}

/* ---- pipeline diagram ----
   Colours come from the theme tokens so the figure follows light/dark with the
   rest of the page; nothing here is a fixed hex. Text stays real <text>, so it
   is selectable and readable to a screen reader through the title/desc. */
.flow{display:block; width:100%; height:auto; margin:0 0 26px;
  border:1px solid var(--rule); border-radius:11px; background:var(--raise);
  padding:8px}
.f-band{fill:var(--sunk); stroke:var(--rule); stroke-dasharray:5 4}
.f-band-label{fill:var(--dim); font-size:11px; letter-spacing:.06em;
  /* Knocked out of whatever passes behind it. A vertical edge entering the first
     box of a row crosses exactly where this label sits, and struck through it. */
  paint-order:stroke fill; stroke:var(--sunk); stroke-width:3.5px;
  stroke-linejoin:round;
  text-transform:uppercase; font-family:var(--sans)}
.f-node{fill:var(--raise); stroke:var(--rule); stroke-width:1.2}
.f-input{fill:var(--sunk); stroke:var(--rule); stroke-width:1.2}
.f-gate{stroke:var(--accent); stroke-width:1.6}
.f-expand{stroke:var(--accent); stroke-width:1.4; fill:var(--accent-bg)}
.f-node-t{fill:var(--ink); font-size:13.5px; font-weight:600;
  font-family:var(--sans); letter-spacing:.02em}
.f-sub{fill:var(--dim); font-size:11px; font-family:var(--mono)}
.f-edge{fill:var(--dim); font-size:10.5px; font-family:var(--sans);
  letter-spacing:.04em}
.f-out{fill:var(--accent); font-size:12px; font-weight:600;
  font-family:var(--sans)}
.f-line{stroke:var(--dim); stroke-width:1.4; fill:none}
.f-dash{stroke-dasharray:5 4}
.f-arrow{fill:var(--dim)}
.f-reject{fill:var(--warn-bg); stroke:var(--warn); stroke-width:1.4}
.f-reject-t{fill:var(--warn); font-size:13.5px; font-weight:600;
  font-family:var(--sans); letter-spacing:.02em}
.f-decide{fill:var(--accent-bg); stroke:var(--accent); stroke-width:1.5}
/* The terminal node of a flow. It used to reuse .f-out, which is a TEXT class:
   applied to a <rect> it painted the box solid accent and the caption inside it
   went dark-on-dark. A box class and a text class are not interchangeable. */
.f-final{fill:var(--accent-bg); stroke:var(--accent); stroke-width:2.2}
.f-note{fill:var(--dim); font-size:11px; font-family:var(--sans)}

/* ── page furniture ────────────────────────────────────────────────────────
   Four elements that every page now carries, so a reader landing on any one of
   them knows where they are before reading a sentence: an eyebrow naming the
   section, a lede (already styled above), labelled notes, and captioned
   figures. The rule these enforce is that nothing on this site is unlabelled. */

.eyebrow{margin:0 0 6px; font-family:var(--sans); font-size:12px;
  letter-spacing:.11em; text-transform:uppercase; color:var(--dim); font-weight:600}
.eyebrow:empty{display:none}

/* Provenance. A docs site with no version stamp is indistinguishable from a
   stale one, and the commit is a link so a reader can diff these pages against
   the code they are actually running. */
.docmeta{margin:26px 0 0; padding-top:14px; border-top:1px solid var(--rule);
  font-size:12px; line-height:1.75; color:var(--dim)}
.docmeta strong{color:var(--ink); font-weight:600}
/* The separators must not be able to start a line on their own: a stranded
   middot reads as a bullet for the next fragment. */
.docmeta .sep{white-space:nowrap}
.docmeta a{font-family:var(--mono); font-size:11.5px; white-space:nowrap}

/* Notes carry a word as well as a colour: "Info" and "Warning" read the same
   in greyscale, to a screen reader, and to a reader who cannot tell the two
   tints apart. Produced by the admonition extension, so the markdown stays
   readable in the repository. */
/* The tint fills the box and the border carries the same hue the whole way
   round. An accent stripe down one edge was tried and dropped: it reads as a
   fragment of a box rather than a box, and the colour lands where the eye is
   not looking anyway. Either the surface is the signal or nothing is. */
.admonition{margin:0 0 24px; padding:15px 17px 3px; background:var(--raise);
  border:1px solid var(--rule); border-radius:10px}
.admonition>.admonition-title{margin:0 0 7px; font-family:var(--mono); font-size:11px;
  font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--dim)}
.admonition>p{margin:0 0 12px; font-size:15px; line-height:1.62}
.admonition>ul,.admonition>ol{margin:0 0 12px}
.admonition>:last-child{margin-bottom:12px}
.admonition.note{background:var(--accent-bg); border-color:var(--accent-soft)}
.admonition.note>.admonition-title{color:var(--accent)}
.admonition.warning{background:var(--warn-bg); border-color:var(--warn)}
.admonition.warning>.admonition-title{color:var(--warn)}
.admonition.danger{background:var(--bad-bg); border-color:var(--bad)}
.admonition.danger>.admonition-title{color:var(--bad)}
.admonition.tip{background:var(--ok-bg); border-color:var(--ok)}
.admonition.tip>.admonition-title{color:var(--ok)}

/* Figures. The <title> inside each SVG existed for screen readers already;
   promoting it to a visible caption costs nothing and means a reader who lands
   mid-page never has to infer what a diagram is of. */
.fig{margin:0 0 28px; padding:20px 20px 14px; background:var(--raise);
  border:1px solid var(--rule); border-radius:12px}
.fig svg{display:block; width:100%; height:auto}
.fig figcaption{margin:14px 0 0; padding-top:12px; border-top:1px solid var(--rule);
  font-size:13.5px; line-height:1.6; color:var(--dim)}
.fig .fig-n{font-family:var(--sans); font-size:11.5px; font-weight:700;
  letter-spacing:.08em; text-transform:uppercase; color:var(--accent); margin-right:8px}

/* Definition lists. The glossary is the one page where a table would be worse:
   a definition runs to three sentences and a two-column table forces every one
   of them into a narrow cell, so the terms stop being scannable — which is the
   only thing a glossary is for. */
dl{margin:0 0 26px}
dt{margin:22px 0 0; font-family:var(--prose); font-size:17.5px; font-weight:600;
  color:var(--ink); scroll-margin-top:24px}
dt:first-of-type{margin-top:0}
dd{margin:6px 0 0 0; padding-left:16px; border-left:2px solid var(--rule);
  font-size:15px; line-height:1.68; color:var(--dim)}
dd code{font-size:13.5px}

/* ── search ────────────────────────────────────────────────────────────────
   Sits in the sidebar rather than in a top bar, because this layout has no top
   bar and adding one for a single control would push every page down. */
.search{position:relative; margin:0 0 22px}
.search-i{position:absolute; left:10px; top:50%; transform:translateY(-50%);
  width:14px; height:14px; color:var(--dim); pointer-events:none}
.search-input{width:100%; padding:8px 30px 8px 30px; font:inherit; font-size:13.5px;
  color:var(--ink); background:var(--raise); border:1px solid var(--rule);
  border-radius:8px; appearance:none}
.search-input::placeholder{color:var(--dim)}
.search-input:focus{outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-bg)}
.search-input::-webkit-search-cancel-button{display:none}
.search-key{position:absolute; right:8px; top:50%; transform:translateY(-50%);
  padding:1px 6px; font-family:var(--mono); font-size:11px; color:var(--dim);
  background:var(--sunk); border:1px solid var(--rule); border-radius:4px}
.search-input:focus~.search-key{opacity:0}

/* Fixed, not absolute: the sidebar scrolls (overflow:auto), which clips any
   descendant wider than it is. The panel is deliberately wider than the
   sidebar -- a result needs room for a breadcrumb, a heading and a snippet --
   so it has to escape that clipping context. JS puts it under the input. */
.search-panel{position:fixed; z-index:40; left:0; top:0;
  width:min(420px,78vw); max-height:min(62vh,520px); overflow-y:auto;
  background:var(--raise); border:1px solid var(--rule); border-radius:10px;
  box-shadow:0 14px 40px rgba(0,0,0,.16)}
.search-panel[hidden]{display:none}
.search-panel ul{margin:0; padding:6px; list-style:none}
.search-panel li{margin:0}
.hit{display:block; padding:9px 11px; border-radius:7px; text-decoration:none;
  border:1px solid transparent}
.hit:hover,.hit.on{background:var(--accent-bg); border-color:var(--accent-soft)}
.hit-crumb{display:block; font-size:11px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--dim); margin-bottom:2px}
.hit-h{display:block; font-family:var(--prose); font-size:15px; color:var(--ink);
  line-height:1.35}
.hit-t{display:block; margin-top:3px; font-size:12.5px; line-height:1.55; color:var(--dim)}
.hit mark{background:var(--accent-soft); color:var(--ink); border-radius:2px; padding:0 1px}
.search-empty{margin:0; padding:14px 13px; font-size:13px; color:var(--dim)}
.search-empty code{font-size:12px}

/* ── narrow viewports ──────────────────────────────────────────────────────
   The sidebar used to become position:static below 840px, which stacked the
   whole table of contents above the article: on a 390x844 phone the nav was
   844px tall and the prose began exactly one screen down, so every page opened
   on a menu. It is a drawer now, behind a fixed bar that costs 52px. */
.topbar,.navscrim,.navbtn{display:none}

@media(max-width:840px){
  .topbar{display:flex; align-items:center; gap:10px; position:fixed; z-index:60;
    inset:0 0 auto 0; height:52px; padding:0 14px; background:var(--paper);
    border-bottom:1px solid var(--rule)}
  .navbtn{display:inline-flex; align-items:center; justify-content:center;
    width:34px; height:34px; padding:0; color:var(--ink); background:var(--raise);
    border:1px solid var(--rule); border-radius:8px; cursor:pointer}
  .navbtn svg{width:16px; height:16px}
  .topbrand{font-family:var(--prose); font-weight:600; font-size:16px;
    color:var(--ink); text-decoration:none; letter-spacing:.02em}

  .wrap{grid-template-columns:1fr; padding:0 20px; margin-top:52px}

  /* The drawer. Off-canvas rather than collapsed-to-zero so it can be animated
     and so its scroll position survives being closed. */
  nav.side{position:fixed; z-index:70; inset:52px auto 0 0; width:min(290px,84vw);
    height:calc(100dvh - 52px); overflow-y:auto; padding:20px 18px 24px;
    background:var(--paper); border-right:1px solid var(--rule); border-bottom:0;
    transform:translateX(-101%); transition:transform .18s ease}
  nav.side[data-open="true"]{transform:none}
  .navscrim{display:block; position:fixed; z-index:65; inset:52px 0 0 0;
    background:rgba(0,0,0,.42)}
  .navscrim[hidden]{display:none}

  /* The panel is positioned from the input, which now lives inside the drawer. */
  .search-panel{width:min(420px,90vw)}
}

@media(prefers-reduced-motion:reduce){nav.side{transition:none}}


/* Two lines, then an ellipsis. The summary is already cut at a word boundary
   when it is generated; this catches the case where two short lines still
   overflow the card at a narrow width. */
.report-item span.report-desc{display:-webkit-box; -webkit-line-clamp:2;
  -webkit-box-orient:vertical; overflow:hidden}

/* ── copy buttons ──────────────────────────────────────────────────────────
   Added by script, so a page with JS off still shows plain code blocks. */
.codewrap{position:relative}
.copybtn{position:absolute; top:8px; right:8px; z-index:2; padding:3px 9px;
  font-family:var(--mono); font-size:11px; color:var(--dim); background:var(--raise);
  border:1px solid var(--rule); border-radius:6px; cursor:pointer; opacity:0;
  transition:opacity .12s ease}
.codewrap:hover .copybtn,.copybtn:focus{opacity:1}
.copybtn[data-done="true"]{color:var(--ok); border-color:var(--ok)}
@media(hover:none){.copybtn{opacity:1}}


/* ── logo ──────────────────────────────────────────────────────────────────
   Raster, not inline SVG: the mark is illustrated art with soft gradients, and
   the alt text is empty because the brand name sits directly beneath it — a
   screen reader announcing "ProbeAgent logo, ProbeAgent" is noise, not information. */
.mark{display:block; width:60px; height:auto; margin:0 0 14px}
.topbrand{display:inline-flex; align-items:center; gap:8px}
.topbrand img{width:26px; height:26px}

/* ── maths ─────────────────────────────────────────────────────────────────
   MathML, emitted at build time from the LaTeX in the markdown. No script and
   no webfont: browsers render this themselves, which is the only option that
   holds on a box with no network. Colour is inherited, so both themes work
   without a rule. */
math{font-size:1.02em}
math[display="block"]{display:block; margin:0 auto}
.mathblock{display:block; margin:20px 0 22px; padding:14px 16px;
  background:var(--sunk); border:1px solid var(--rule); border-radius:8px;
  overflow-x:auto; text-align:center}
/* A wide equation scrolls inside its own box; the page never does. */
.mathblock math{min-width:min-content}
p > math, li > math, td > math, dd > math{vertical-align:baseline}
