@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #f2f3f5;
  --surface: #ffffff;
  --surface-2: #f2f3f5;
  --line: #e3e5e8;
  --line-strong: #80848e;
  --ink: #060607;
  --ink-2: #4e5058;
  --ink-3: #5c5e66;
  --brand: #5865f2;
  --brand-hover: #4752c4;
  --brand-ink: #4752c4;
  --brand-wash: #eef0fe;
  --brand-track: #dcdffc;
  --read-mark: #1a8a49;
  --read-ink: #177a3f;
  --read-wash: #e5f4eb;
  --write-mark: #b97400;
  --write-ink: #8a5d00;
  --write-wash: #fdf6e6;
  --destructive-mark: #d93036;
  --destructive-ink: #b8232a;
  --destructive-wash: #fde8e8;
  --bar: #5865f2;
  --bar-off: #c4c9ce;
  --focus: #4752c4;
  --shadow: -16px 0 48px rgba(6, 6, 7, 0.14);

  /* The terminal keeps its own colors in both themes. */
  --t-bg: #161616;
  --t-bar: #1c1c1c;
  --t-line: #2e2e2e;
  --t-line-strong: #4a4a4a;
  --t-fg: #ededed;
  --t-muted: #a0a0a0;
  --t-faint: #6b6b6b;
  --t-accent: #949cf7;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --r1: 6px;
  --r2: 8px;
  --r3: 12px;
  --header: 56px;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #1e1f22;
    --surface: #2b2d31;
    --surface-2: #313338;
    --line: #3f4147;
    --line-strong: #80848e;
    --ink: #f2f3f5;
    --ink-2: #b5bac1;
    --ink-3: #a3a8b0;
    --brand-ink: #949cf7;
    --brand-wash: #33365a;
    --brand-track: #3b3f6b;
    --read-mark: #23a55a;
    --read-ink: #3fcb7e;
    --read-wash: #2a4038;
    --write-mark: #f0b232;
    --write-ink: #f5c150;
    --write-wash: #4b4231;
    --destructive-mark: #f23f43;
    --destructive-ink: #ff8a8c;
    --destructive-wash: #4b3034;
    --bar: #7983f5;
    --bar-off: #4e5058;
    --focus: #949cf7;
    --shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1e1f22;
  --surface: #2b2d31;
  --surface-2: #313338;
  --line: #3f4147;
  --line-strong: #80848e;
  --ink: #f2f3f5;
  --ink-2: #b5bac1;
  --ink-3: #a3a8b0;
  --brand-ink: #949cf7;
  --brand-wash: #33365a;
  --brand-track: #3b3f6b;
  --read-mark: #23a55a;
  --read-ink: #3fcb7e;
  --read-wash: #2a4038;
  --write-mark: #f0b232;
  --write-ink: #f5c150;
  --write-wash: #4b4231;
  --destructive-mark: #f23f43;
  --destructive-ink: #ff8a8c;
  --destructive-wash: #4b3034;
  --bar: #7983f5;
  --bar-off: #4e5058;
  --focus: #949cf7;
  --shadow: -16px 0 48px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + var(--s4));
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
html:has(dialog[open]) {
  overflow: hidden;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
a {
  color: var(--brand-ink);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
code,
kbd,
pre {
  font-family: var(--mono);
  font-variant-ligatures: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
svg.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
mark {
  background: color-mix(in srgb, var(--brand) 22%, transparent);
  color: inherit;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 1344px;
  margin-inline: auto;
  padding-inline: var(--s6);
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: var(--s4);
  top: -80px;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  padding: var(--s2) var(--s3);
  border-radius: var(--r2);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: var(--s2);
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: var(--s5);
  height: var(--header);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand .logo {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand span {
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: var(--s1);
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--s1) var(--s2);
  border-radius: var(--r1);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface);
}
.top-in .menu-btn,
.nav .nav-gh {
  display: none;
}
.top-actions {
  margin-left: auto;
  display: flex;
  gap: var(--s2);
  align-items: center;
}
.search-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  height: 36px;
  padding: 0 var(--s2) 0 var(--s3);
  min-width: 224px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  color: var(--ink-3);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
}
.search-btn:hover {
  border-color: var(--line-strong);
}
.search-btn .lbl {
  flex: 1;
  text-align: left;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
}
.icon-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}
kbd {
  font: 500 0.75rem/1.4 var(--mono);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  padding: 0 var(--s1);
  color: var(--ink-2);
  background: var(--surface-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 36px;
  padding: 0 var(--s3);
  border-radius: var(--r2);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
}
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}
.btn-sm {
  height: 30px;
  padding: 0 var(--s2);
  font-size: 0.8125rem;
  border-radius: var(--r1);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  min-width: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  height: 32px;
  padding: 0 var(--s3);
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--line-strong);
}
.chip .n {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.chip[aria-pressed="true"] .n {
  color: #fff;
}
.chip.zero:not([aria-pressed="true"]) {
  color: var(--ink-3);
  background: transparent;
}
.chip .glyph {
  margin-right: -2px;
}
.chip[aria-pressed="true"] .glyph i {
  background: rgba(255, 255, 255, 0.6);
}
.chip[aria-pressed="true"][data-risk="read"] .glyph i:nth-child(1),
.chip[aria-pressed="true"][data-risk="write"] .glyph i:nth-child(-n + 2),
.chip[aria-pressed="true"][data-risk="destructive"] .glyph i {
  background: #fff;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch-ui {
  position: relative;
  width: 36px;
  height: 20px;
  flex: none;
  border-radius: 10px;
  background: var(--bar-off);
  transition: background-color 0.15s;
}
.switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}
.switch input:checked + .switch-ui {
  background: var(--brand);
}
.switch input:checked + .switch-ui::after {
  transform: translateX(16px);
}
.switch input:focus-visible + .switch-ui {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Risk: a label, one to three bars and a color. The unlit bars shrink to dots, so the level reads without color. */
.risk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 var(--s2);
  border-radius: var(--r1);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}
.risk[data-risk="read"] {
  color: var(--read-ink);
  background: var(--read-wash);
}
.risk[data-risk="write"] {
  color: var(--write-ink);
  background: var(--write-wash);
}
.risk[data-risk="destructive"] {
  color: var(--destructive-ink);
  background: var(--destructive-wash);
  box-shadow: inset 0 0 0 1px var(--destructive-mark);
}
.glyph {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  flex: none;
}
.glyph i,
.strip i {
  width: 3px;
  border-radius: 1px;
}
.glyph i {
  height: 2px;
  background: color-mix(in srgb, currentColor 45%, transparent);
}
[data-risk] .glyph i:nth-child(1),
.strip i[data-risk="read"] {
  height: 5px;
}
:is([data-risk="write"], [data-risk="destructive"]) .glyph i:nth-child(2),
.strip i[data-risk="write"] {
  height: 8px;
}
[data-risk="destructive"] .glyph i:nth-child(3),
.strip i[data-risk="destructive"] {
  height: 11px;
}
[data-risk="read"] .glyph i:nth-child(1),
.strip i[data-risk="read"] {
  background: var(--read-mark);
}
[data-risk="write"] .glyph i:nth-child(-n + 2),
.strip i[data-risk="write"] {
  background: var(--write-mark);
}
[data-risk="destructive"] .glyph i,
.strip i[data-risk="destructive"] {
  background: var(--destructive-mark);
}
/* A toolset's mix: one bar per tool, each as tall as the glyph bar of its level. */
.strip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 3px 2px;
  min-height: 11px;
  flex: none;
}
.strip-key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s3);
  font-size: 0.75rem;
  color: var(--ink-3);
}
.strip-key > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.tsx-head h2 a,
.group-head h2 a {
  color: var(--brand-ink);
  text-decoration: none;
}
.tsx-head h2 a:hover,
.group-head h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dry {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  padding: 0 6px;
  line-height: 20px;
  white-space: nowrap;
}
.legend,
.mix {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.legend > span,
.mix > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mix b {
  color: var(--ink);
  font-weight: 600;
}
.tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 2px var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r1);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  max-width: 100%;
  vertical-align: middle;
  line-height: 1.3;
}
.tool code {
  font-size: 0.8125rem;
  color: var(--brand-ink);
  overflow-wrap: anywhere;
}
.tool:hover {
  border-color: var(--brand);
}
/* A chip and the period after it: the chip gives way so the period never wraps alone. */
.tool-end {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  vertical-align: middle;
}
.tool-end .tool {
  min-width: 0;
}
.tool:hover code {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Terminal blocks: commands and configs, readable at 320 px without sideways scrolling. */
.term {
  background: var(--t-bg);
  color: var(--t-fg);
  border: 1px solid var(--t-line);
  border-radius: var(--r2);
  font: 400 0.8125rem/1.5385 var(--mono);
  font-variant-ligatures: none;
  min-width: 0;
}
.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2ch;
  min-height: 36px;
  padding: 0 6px 0 1.5ch;
  background: var(--t-bar);
  border-bottom: 1px solid var(--t-line);
  border-radius: var(--r2) var(--r2) 0 0;
  font-size: 0.75rem;
  color: var(--t-muted);
}
.term-title {
  color: var(--t-fg);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.term-note {
  color: var(--t-muted);
  text-align: right;
}
.term-btn {
  flex: none;
  font: 500 0.75rem/1 var(--mono);
  color: var(--t-fg);
  background: transparent;
  border: 1px solid var(--t-line-strong);
  border-radius: var(--r1);
  padding: 6px 1ch;
  cursor: pointer;
}
.term-btn:hover {
  border-color: var(--t-muted);
}
.term-btn:focus-visible {
  outline: 2px solid var(--t-accent);
  outline-offset: 2px;
}
.term-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.term-code {
  margin: 0;
  padding: var(--s3) 1.5ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.term-code .l {
  display: block;
  padding-left: calc(var(--i, 0) * 1ch + 2ch);
  text-indent: calc(-1 * (var(--i, 0) * 1ch + 2ch));
}
.term-code .pm,
.term .pm {
  color: var(--t-accent);
  user-select: none;
}
.term-code .ph {
  color: var(--t-accent);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.term-code .cm {
  color: var(--t-muted);
}
.term-code .nw {
  white-space: nowrap;
}
.term a {
  color: var(--t-fg);
}
.term code {
  font-size: inherit;
  color: inherit;
}
.term :focus-visible {
  outline-color: var(--t-accent);
}

.foot {
  color: var(--ink-2);
  font-size: 0.8125rem;
}
.foot-in {
  padding-block: var(--s6) var(--s7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s6);
  justify-content: space-between;
}
.foot-in::before {
  content: "";
  flex-basis: 100%;
  border-top: 1px solid var(--line);
  margin-bottom: var(--s4);
}
.foot p {
  max-width: 80ch;
}
.foot code {
  font-size: 0.9em;
}

@media (max-width: 980px) {
  .top-in .menu-btn {
    display: inline-grid;
  }
  .menu-btn[aria-expanded="true"] {
    color: var(--ink);
    border-color: var(--line-strong);
  }
  .nav:not(.open),
  .top-actions .gh-btn {
    display: none;
  }
  .nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: var(--s2) var(--s6) var(--s3);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.open a {
    padding: var(--s2);
    font-size: 1rem;
  }
  .nav.open .nav-gh {
    display: block;
  }
}
@media (max-width: 640px) {
  .wrap {
    padding-inline: var(--s4);
  }
  .top-in {
    gap: var(--s3);
  }
  .search-btn {
    min-width: 0;
    width: 36px;
    padding: 0;
    justify-content: center;
  }
  .search-btn .lbl,
  .search-btn kbd {
    display: none;
  }
  .foot-in {
    flex-direction: column;
  }
  .nav.open {
    padding-inline: var(--s3);
  }
}
@media (max-width: 420px) {
  .term {
    font-size: 0.75rem;
  }
  .term-code {
    padding-inline: 1ch;
  }
}
@media (max-width: 360px) {
  .brand {
    font-size: 1rem;
  }
  .top-actions {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
@media (forced-colors: active) {
  .glyph i,
  .strip i {
    background: CanvasText !important;
    forced-color-adjust: none;
  }
  .chip[aria-pressed="true"] {
    forced-color-adjust: none;
    background: Highlight;
    border-color: Highlight;
    color: HighlightText;
  }
  .chip[aria-pressed="true"] .n {
    color: HighlightText;
  }
  .chip[aria-pressed="true"] .glyph i {
    background: HighlightText !important;
  }
  .meter,
  .pf-bar,
  .ts-bar {
    forced-color-adjust: none;
    background: Canvas !important;
    outline: 1px solid CanvasText;
  }
  .meter i,
  .pf-bar i,
  .ts-bar i {
    background: CanvasText !important;
  }
  .ts-row:not(.on) .ts-bar i,
  .ts-row:not(.on) .strip i {
    background: GrayText !important;
  }
  .switch-ui {
    forced-color-adjust: none;
    background: Canvas;
    box-shadow: inset 0 0 0 1px CanvasText;
  }
  .switch-ui::after {
    background: CanvasText;
  }
  .switch input:checked + .switch-ui {
    background: Highlight;
    box-shadow: inset 0 0 0 1px Highlight;
  }
  .switch input:checked + .switch-ui::after {
    background: HighlightText;
  }
}

main {
  padding-bottom: var(--s8);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: var(--s7);
  align-items: start;
  padding-block: var(--s7) var(--s7);
}
.hero-copy {
  padding-top: var(--s7);
}
.hero h1 {
  font-weight: 760;
  font-size: clamp(2.375rem, 1.05rem + 3.7vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.032em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
  max-width: 13ch;
}
.lead {
  margin-top: var(--s5);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
  text-wrap: pretty;
}
.lead strong {
  color: var(--ink);
  font-weight: 650;
}
.ocl {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}
.hero-ocl {
  margin-top: var(--s6);
}
.ocb {
  display: inline-flex;
  border-radius: 10px;
}
.ocb img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 40px;
}
.ocb:hover img {
  filter: brightness(0.92);
}

.setup {
  min-width: 0;
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r3);
}
.setup-title {
  font-size: 1.125rem;
  font-weight: 650;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: var(--s3);
  padding: 2px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: var(--s1) 6px;
  border-radius: var(--r1);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.tab:hover {
  color: var(--ink);
  background: var(--surface);
}
.tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 650;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--line),
    inset 0 -2px 0 var(--brand);
}
.panels {
  margin-top: var(--s4);
}
.setup:not(.is-tabs) .panel + .panel {
  margin-top: var(--s6);
}
.panel > * + * {
  margin-top: var(--s3);
}
.panel p,
.panel li {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.panel ul {
  margin-bottom: 0;
  padding-left: var(--s5);
}
.panel strong {
  color: var(--ink);
  font-weight: 600;
}
.setup-note {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
}
:where(.lead, .panel, .setup-note, .sec p, .sec li) code {
  font-size: 0.9em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sec {
  padding-top: var(--s9);
}
.sec-in {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s6);
  align-items: start;
  padding-top: var(--s7);
  border-top: 1px solid var(--line);
}
.sec-head {
  grid-column: 1 / span 4;
  position: sticky;
  top: calc(var(--header) + var(--s6));
}
.sec-head h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.sec-head > p {
  margin-top: var(--s3);
  max-width: 38ch;
  color: var(--ink-2);
}
.sec-head .btn,
.sec-head .legend {
  margin-top: var(--s5);
}
.sec-body {
  grid-column: 5 / -1;
  min-width: 0;
}
.note {
  margin-top: var(--s3);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.sec p .tool {
  min-height: 24px;
  margin-block: 2px;
  padding: 0 6px;
}

.session .term {
  font-size: 0.875rem;
  line-height: 1.43;
}
.term-body {
  padding: var(--s4) 1.5ch var(--s5);
}
.term-input {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  margin-bottom: var(--s5);
  padding: var(--s2) 1ch;
  border: 1px solid var(--t-line-strong);
  border-radius: var(--r1);
}
.term-input .pm {
  font-weight: 700;
}
.term-calls {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.43em;
}
.term-call-line {
  padding-left: 2ch;
  text-indent: -2ch;
}
.term-call-line .srv,
.term-call-args,
.term-call-res {
  color: var(--t-muted);
}
.term-tool {
  font-weight: 600;
  text-decoration: none;
}
.term-tool:hover {
  text-decoration: underline;
}
.term-call-args {
  padding-left: 3ch;
  text-indent: -1ch;
}
.term-call-res {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr);
  padding-left: 2ch;
}
.term-call-res b {
  color: var(--t-fg);
  font-weight: 600;
}
.term-tree {
  width: 1ch;
  height: 0.62em;
  margin-top: 0.14em;
  border-left: 1px solid var(--t-faint);
  border-bottom: 1px solid var(--t-faint);
}
.session figcaption {
  margin-top: var(--s3);
  max-width: 82ch;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.demo {
  margin-top: var(--s5);
}
.demo-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
}
.demo-act svg.i {
  width: 14px;
  height: 14px;
}
.demo-size {
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.demo-full {
  font-size: 0.875rem;
  font-weight: 600;
}
.demo-frame {
  display: grid;
  margin-top: var(--s4);
  overflow: hidden;
  background: #1e1f22;
  border: 1px solid var(--line);
  border-radius: var(--r3);
}
.demo-frame > video {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
}

.asks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s6);
}
.ask h3 {
  padding-left: 28px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
}
.prompt {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  margin-top: var(--s1);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.006em;
  text-wrap: pretty;
}
.prompt .pm {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--brand-ink);
}
.ch {
  padding: 0 3px;
  border-radius: 4px;
  background: var(--brand-wash);
  white-space: nowrap;
}
.uses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3);
  padding-left: 28px;
}
.uses-label {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: var(--ink-3);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s7);
}
.step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  column-gap: var(--s4);
}
.step-n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 0.9375rem;
  font-weight: 700;
}
.step h3 {
  padding-top: 3px;
  font-size: 1.3125rem;
  font-weight: 650;
  line-height: 1.3;
}
.step-body > p {
  margin-top: var(--s2);
  max-width: 64ch;
  color: var(--ink-2);
}
.step-body > .term {
  margin-top: var(--s4);
}
.step-body strong {
  color: var(--ink);
  font-weight: 600;
}

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s6);
}
.rule h3 {
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.35;
}
.rule p {
  margin-top: var(--s2);
  color: var(--ink-2);
  line-height: 1.7;
}
.rule .mix {
  margin-top: var(--s3);
  line-height: 1.55;
}

.pfs {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.pf-head,
.pf {
  display: grid;
  grid-template-columns: 18px minmax(0, 1.25fr) 4.5em minmax(0, 1.5fr) 4.5em;
  grid-template-areas:
    "radio name n bar tok"
    "radio sets n bar tok";
  column-gap: var(--s4);
  align-items: center;
}
.pf-head {
  grid-template-areas: "radio name n bar tok";
  padding: 0 var(--s3) var(--s2);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-3);
}
.pf-head span:nth-child(1) {
  grid-area: name;
}
.pf-head span:nth-child(2) {
  grid-area: n;
  text-align: right;
}
.pf-head span:nth-child(3) {
  grid-column: 4 / 6;
  grid-row: 1;
}
.pf {
  margin-top: var(--s1);
  padding: var(--s3);
  border-radius: var(--r2);
  cursor: pointer;
}
.pf:hover {
  background: var(--surface);
}
.pf.on {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pf input {
  grid-area: radio;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.pf-name {
  grid-area: name;
  font-weight: 600;
}
.pf-sets {
  grid-area: sets;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.pf-sets code {
  font-size: 0.75rem;
  color: var(--ink-2);
}
.pf-n,
.pf-tok {
  text-align: right;
  font-size: 0.875rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pf-n {
  grid-area: n;
}
.pf-tok {
  grid-area: tok;
}
.pf.on .pf-n,
.pf.on .pf-tok {
  color: var(--ink);
  font-weight: 600;
}
.pf-bar {
  grid-area: bar;
  display: block;
  height: 8px;
}
.pf-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: 0 4px 4px 0;
  background: var(--bar-off);
  transition:
    width 0.25s ease,
    background-color 0.15s;
}
.pf.on .pf-bar i {
  background: var(--bar);
}
.ro-box {
  margin-top: var(--s5);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.ro-box .note {
  margin-top: var(--s2);
}
.pf-out {
  margin-top: var(--s4);
}
.hint {
  margin-top: var(--s2);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.hint:empty {
  display: none;
}
.hint.warn {
  color: var(--ink);
  font-weight: 600;
}
.method {
  margin-top: var(--s4);
  font-size: 0.75rem;
  color: var(--ink-3);
}

.find {
  display: flex;
  gap: var(--s2);
}
.find input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 var(--s4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r2);
  color: var(--ink);
}
.find input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
.find .btn {
  height: 44px;
  padding-inline: var(--s4);
}
.sets {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--s6);
}
.sets li {
  border-top: 1px solid var(--line);
}
.set-link {
  display: block;
  padding: var(--s3) 0 var(--s4);
  color: inherit;
  text-decoration: none;
}
.set-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s3);
}
.set-name {
  font-weight: 650;
  color: var(--brand-ink);
}
.set-link:hover .set-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.set-n {
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.set-mix {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s2);
  margin-left: auto;
}
.set-key {
  margin-top: var(--s3);
}
.set-de {
  min-width: 6.5em;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.set-de[data-risk] {
  color: var(--destructive-ink);
}
.set-blurb {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--ink-2);
}

@media (max-width: 1099px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--s6);
  }
  .hero-copy {
    padding-top: 0;
  }
  .hero h1 {
    max-width: 16ch;
  }
  .sec-in {
    display: block;
  }
  .sec-head {
    position: static;
    margin-bottom: var(--s6);
  }
  .sec-head > p {
    max-width: 60ch;
  }
}
@media (max-width: 860px) {
  .rules {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .hero {
    padding-block: var(--s6) var(--s6);
    row-gap: var(--s5);
  }
  .lead {
    margin-top: var(--s4);
    font-size: 1.0625rem;
  }
  .hero-ocl {
    display: none;
  }
  .setup {
    margin-inline: calc(-1 * var(--s2));
    padding: var(--s3);
  }
  .tab {
    font-size: 0.8125rem;
    padding-inline: 2px;
  }
  .sec {
    padding-top: var(--s8);
  }
  .sec-in {
    padding-top: var(--s6);
  }
  .sec-head h2 {
    font-size: 1.75rem;
  }
  .prompt {
    font-size: 1.125rem;
  }
  .pf,
  .pf-head {
    grid-template-columns: 18px minmax(0, 1fr) auto;
    grid-template-areas:
      "radio name tok"
      "radio sets n"
      "radio bar bar";
    row-gap: 2px;
  }
  .pf-head {
    display: none;
  }
  .pf-bar {
    margin-top: var(--s2);
  }
  .find .btn {
    padding-inline: var(--s3);
  }
  .sets {
    grid-template-columns: minmax(0, 1fr);
  }
  .step {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: var(--s3);
  }
  .step-n {
    width: 28px;
    height: 28px;
  }
  .step-body > .term {
    margin-left: calc(-28px - var(--s3));
  }
}

.cat-top {
  padding-block: var(--s7) var(--s5);
}
.cat-top h1 {
  font-weight: 760;
  font-size: clamp(2.25rem, 1.55rem + 1.9vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
}
.cat-top .lead {
  margin-top: var(--s3);
  font-size: 1.125rem;
  max-width: 68ch;
}
.cat-top .lead code {
  font-size: 0.9em;
  color: var(--ink);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  column-gap: var(--s7);
  align-items: start;
}

@media (min-width: 1100px) {
  .cat-layout {
    grid-template-columns: 208px minmax(0, 1fr);
    grid-template-areas: "rail search" "rail catalog";
  }
  .cat-layout .search {
    grid-area: search;
  }
  .cat-layout .catalog {
    grid-area: catalog;
  }
  .rail {
    grid-area: rail;
    position: sticky;
    top: calc(var(--header) + var(--s4));
    max-height: calc(100vh - var(--header) - var(--s5));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-left: calc(-1 * var(--s3));
    padding: 2px var(--s2) var(--s4) 2px;
    scrollbar-width: thin;
  }
  .rail .facets {
    gap: var(--s5);
    margin-top: 0;
  }
  .rail .facet {
    display: block;
  }
  .rail .facet-label {
    display: block;
    padding: 0 var(--s3) var(--s2);
  }
  .rail .chips {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .rail .chip {
    width: 100%;
    height: 28px;
    border-color: transparent;
    background: transparent;
  }
  .rail .chip:hover {
    background: var(--surface);
    border-color: var(--line);
  }
  .rail .chip[aria-pressed="true"] {
    background: var(--brand);
    border-color: var(--brand);
  }
  .rail .chip .n {
    margin-left: auto;
  }
  .rail-key {
    margin-top: var(--s4);
    padding-inline: var(--s3);
  }
}
/* A short window: the rail drops its key and tightens so every filter stays in view. */
@media (min-width: 1100px) and (max-height: 800px) {
  .rail {
    padding-bottom: var(--s2);
  }
  .rail .facets {
    gap: var(--s4);
  }
  .rail-key {
    display: none;
  }
}
@media (max-width: 1099px) {
  .rail-key {
    display: none;
  }
}

.search {
  position: relative;
}
.search input {
  width: 100%;
  height: 48px;
  padding: 0 80px 0 44px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r2);
  color: var(--ink);
  font-size: 1rem;
}
.search input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}
.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.search > svg {
  position: absolute;
  left: var(--s4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.search kbd {
  position: absolute;
  right: var(--s4);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.facets {
  display: grid;
  gap: var(--s2);
  margin-top: var(--s3);
}
.facet {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: var(--s3);
}
.facet-label {
  padding-top: 5px;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
}
.set-select {
  display: none;
}
.count-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  margin-top: var(--s5);
}
.count {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.clear {
  padding: 0;
  background: none;
  border: 0;
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mode-note {
  margin-top: var(--s2);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.group {
  margin-top: var(--s5);
}
.group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--line-strong);
}
.group-head h2 {
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
}
.group-head code {
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.group-head .strip {
  align-self: center;
}
.group-head .meta {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.group-blurb {
  margin-top: var(--s2);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.rows {
  list-style: none;
  margin: var(--s2) 0 0;
  padding: 0;
}
.ranked {
  margin-top: var(--s3);
  border-top: 1px solid var(--line-strong);
}
.row-li {
  border-bottom: 1px solid var(--line);
}
.row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  column-gap: var(--s4);
  align-items: start;
  padding: var(--s3) var(--s2);
  color: inherit;
  text-decoration: none;
}
.row:hover {
  background: var(--surface);
}
.row:focus-visible {
  outline-offset: -2px;
  border-radius: var(--r1);
}
.row .risk {
  justify-self: start;
  margin-top: 1px;
}
.row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--s3);
  min-width: 0;
}
.row-head {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}
.row-title {
  font-weight: 600;
  color: var(--ink);
}
.row-name {
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.row-purpose {
  flex-basis: 100%;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.why {
  flex-basis: 100%;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--brand-ink);
}
.why:empty {
  display: none;
}
.row-tok {
  padding-top: 2px;
  text-align: right;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.empty {
  margin-top: var(--s6);
  padding: var(--s6);
  text-align: center;
  color: var(--ink-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r3);
}
.empty p {
  margin-bottom: var(--s3);
}

dialog#tool {
  width: min(760px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: clip;
  background: var(--surface);
  color: var(--ink);
  border: 0;
  box-shadow: var(--shadow);
}
dialog#tool::backdrop {
  background: rgba(6, 6, 7, 0.5);
}
dialog#tool[open] {
  animation: slide-in 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes slide-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.dlg {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.dlg-head {
  position: relative;
  padding: var(--s5) var(--s8) var(--s4) var(--s6);
  border-bottom: 1px solid var(--line);
}
.dlg-close {
  position: absolute;
  top: var(--s4);
  right: var(--s4);
}
.crumb {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.dlg-head h2 {
  margin-top: var(--s1);
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.016em;
}
.dlg-head h2:focus {
  outline: none;
}
.dlg-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s2);
}
.dlg-name code {
  font-size: 0.875rem;
  font-weight: 500;
}
.dlg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-top: var(--s3);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.dlg-perm {
  margin-top: var(--s2);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.dlg-body {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: var(--s5) var(--s6) var(--s7);
}
.desc {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.6;
}
.desc a code {
  font-size: 0.875em;
}
.d-sec {
  margin-top: var(--s6);
}
.d-sec > h3 {
  margin-bottom: var(--s3);
  font-size: 1.125rem;
  font-weight: 650;
}
.d-sec > h4 {
  margin: var(--s4) 0 var(--s2);
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-2);
}
.dlg .note {
  margin-top: var(--s2);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.dlg .note + table {
  margin-top: var(--s3);
}
.anno {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.anno th,
.anno td {
  padding: var(--s2) var(--s4) var(--s2) 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.anno th {
  width: 1%;
  font-weight: 600;
  white-space: nowrap;
}
.anno th code {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ink-3);
}
.anno td.v {
  width: 1%;
  font-weight: 600;
  white-space: nowrap;
}
.anno td.v.no,
.anno td.v.na {
  font-weight: 500;
  color: var(--ink-2);
}
table.schema {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.schema th {
  padding: var(--s2) var(--s3) var(--s2) 0;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  border-bottom: 1px solid var(--line-strong);
}
.schema td {
  padding: var(--s3) var(--s3) var(--s3) 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.schema td.c-name {
  padding-left: calc(var(--depth, 0) * 16px);
}
.schema td.c-name[data-depth] .pn::before,
.schema td.c-name[data-depth] .anykey::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  vertical-align: 2px;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.pn {
  font: 500 0.8125rem var(--mono);
}
.req {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-ink);
}
.opt {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--ink-3);
}
.pt {
  font: 0.8125rem var(--mono);
  color: var(--ink-2);
}
.prules {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  min-width: 128px;
}
.pvar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px var(--s2);
}
.pvt {
  font: 0.75rem var(--mono);
  color: var(--ink-2);
}
.prules code,
.vals code {
  padding: 0 var(--s1);
  font-size: 0.75rem;
  background: var(--surface-2);
  border-radius: var(--r1);
  overflow-wrap: anywhere;
}
.vals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.prules details summary {
  font-size: 0.8125rem;
  color: var(--brand-ink);
  cursor: pointer;
}
.prules details[open] code {
  display: block;
  margin-top: var(--s1);
  white-space: pre-wrap;
  word-break: break-all;
}
.pdesc {
  color: var(--ink-2);
  line-height: 1.5;
}
.anykey {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.rel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: var(--s2);
}
.rel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s2) var(--s3);
  color: var(--ink);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.rel a:hover {
  border-color: var(--brand);
}
.rel .rt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}
.rel code {
  font-size: 0.75rem;
  color: var(--ink-2);
}
.raw summary {
  font-size: 1.125rem;
  font-weight: 650;
  cursor: pointer;
}
.raw pre {
  max-height: 420px;
  margin: var(--s3) 0 0;
  padding: var(--s3) var(--s4);
  overflow: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}

@media (max-width: 1099px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--s7);
  }
  .cat-layout {
    row-gap: 0;
  }
}
@media (max-width: 640px) {
  .cat-top {
    padding-block: var(--s6) var(--s4);
  }
  .cat-top .lead {
    font-size: 1rem;
  }
  .search kbd {
    display: none;
  }
  .search input {
    padding-right: var(--s4);
  }
  .facet {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s2);
  }
  .facet-label {
    padding-top: 0;
  }
  .set-chips {
    display: none;
  }
  .set-select {
    display: block;
    width: 100%;
    height: 40px;
    padding: 0 var(--s3);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r2);
  }
  .group-head .meta {
    width: 100%;
    margin-left: 0;
  }
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px var(--s3);
    padding-inline: 0;
  }
  .row-main {
    display: contents;
  }
  .row-head {
    grid-area: 1 / 1;
  }
  .row .risk {
    grid-area: 1 / 2;
  }
  .row-name {
    grid-area: 2 / 1;
  }
  .row-tok {
    grid-area: 2 / 2;
    padding-top: 0;
  }
  .row-purpose {
    grid-column: 1 / -1;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .why {
    grid-column: 1 / -1;
  }
  .dlg {
    height: auto;
    min-height: 100%;
  }
  dialog#tool {
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .dlg-head {
    padding: var(--s4) var(--s8) var(--s4) var(--s4);
  }
  .dlg-close {
    position: fixed;
    top: var(--s3);
    right: var(--s3);
    z-index: 2;
  }
  .dlg-head h2 {
    font-size: 1.5rem;
  }
  .dlg-body {
    overflow: visible;
    padding: var(--s4) var(--s4) var(--s7);
  }
  table.schema thead {
    display: none;
  }
  table.schema,
  .schema tbody {
    display: block;
    width: 100%;
  }
  .schema tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: var(--s1) var(--s3);
    padding: var(--s3) 0;
    border-bottom: 1px solid var(--line);
  }
  .schema td {
    display: block;
    padding: 0;
    border: 0;
  }
  .schema td.c-name {
    padding-left: calc(var(--depth, 0) * 12px);
  }
  .schema td.c-name,
  .schema td.c-desc,
  .schema td:nth-child(2):nth-last-child(-n + 2) {
    grid-column: 1 / -1;
  }
  .schema td.c-name .req,
  .schema td.c-name .opt {
    display: inline;
    margin-left: var(--s2);
  }
  .schema td[data-l]:not(.c-name, .c-desc)::before {
    content: attr(data-l);
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-3);
  }
  .prules {
    min-width: 0;
  }
  .anno td.v {
    white-space: normal;
  }
}

.tp {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s6);
  align-items: start;
  padding-block: var(--s7) 0;
}
.tp-id {
  grid-column: 1 / span 4;
  position: sticky;
  top: calc(var(--header) + var(--s5));
}
.tp-main {
  grid-column: 5 / -1;
  min-width: 0;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--ink-3);
}
.crumbs li + li::before {
  content: "/";
  content: "/" / "";
  margin-right: var(--s2);
}
.crumbs li[aria-current] {
  color: var(--ink-2);
}
.facts .perm {
  display: block;
}
.tp-id h1 {
  margin-top: var(--s3);
  font-weight: 760;
  font-size: clamp(2rem, 1.35rem + 1.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.tp-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-top: var(--s3);
}
.tp-name code {
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.tp-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s4);
}
.facts {
  margin: var(--s5) 0 0;
}
.facts > div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  column-gap: var(--s3);
  padding-block: var(--s2);
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--ink-2);
}
.facts dd {
  margin: 0;
  font-size: 0.9375rem;
}
.facts dd code {
  margin-left: var(--s1);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.fine {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.tp-main .desc {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.65;
}
.tp-main .d-sec > h2 {
  margin-bottom: var(--s3);
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.tp-main .d-sec > h3 {
  margin: var(--s4) 0 var(--s2);
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink-2);
}
.tp-main .note {
  margin-top: var(--s2);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.tp-main .note + table {
  margin-top: var(--s3);
}
.raw pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tp-main .raw pre {
  max-height: none;
}

.nf {
  padding-block: var(--s8) 0;
}
.nf h1 {
  font-weight: 760;
  font-size: clamp(2.25rem, 1.55rem + 1.9vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
}
.nf .lead {
  margin-top: var(--s4);
  max-width: 60ch;
}
.nf-sug {
  margin-top: var(--s6);
}
.nf-sug h2 {
  margin-bottom: var(--s3);
  font-size: 1.125rem;
  font-weight: 650;
}
.nf-find {
  margin-top: var(--s6);
  max-width: 560px;
}
.nf-links {
  margin-top: var(--s4);
  color: var(--ink-2);
}

@media (max-width: 1099px) {
  .tp {
    display: block;
  }
  .tp-id {
    position: static;
  }
  .tp-main {
    margin-top: var(--s6);
  }
}
@media (max-width: 640px) {
  .tp,
  .nf {
    padding-top: var(--s6);
  }
  .facts > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .tp-main .desc {
    font-size: 1rem;
  }
}

.tsx-main {
  min-width: 0;
}
@media (min-width: 1100px) {
  .ts-layout > .builder {
    margin-top: var(--s7);
  }
}
.tsx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.tsx {
  padding: var(--s4) 0;
  border-top: 1px solid var(--line);
}
.tsx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s3);
}
.tsx-head h2 {
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.tsx-head code {
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.tsx-tok {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tsx-blurb {
  margin-top: var(--s1);
  max-width: 68ch;
  color: var(--ink-2);
}
.tsx-mix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-top: var(--s3);
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tsx-none,
.tsp-note strong {
  font-weight: 600;
}
.tsx-key {
  margin-top: var(--s3);
}
.tsx-ro {
  margin-top: var(--s7);
}
.tsx-ro h2,
.tsp .d-sec > h2 {
  margin-bottom: var(--s3);
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.tsx-ro p {
  max-width: 68ch;
}
.tsx-ro p + p {
  margin-top: var(--s3);
}

.tsx-ro code,
.tsp-note code,
.tsp .note code {
  overflow-wrap: anywhere;
}
.tsp-mix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin-top: var(--s4);
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tsp .row-purpose {
  white-space: normal;
}
.tsp-note {
  margin-top: var(--s5);
  padding: var(--s3) var(--s4);
  max-width: 68ch;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r2);
}
.tsp-profiles {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tsp-profiles li {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--s1) var(--s4);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
}
.tsp-profiles li:last-child {
  border-bottom: 1px solid var(--line);
}
.tsp-pf {
  font-weight: 600;
}
.tsp-profiles code {
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.tsp-pf-n {
  font-size: 0.875rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.presets {
  margin-bottom: var(--s4);
}
.presets-title {
  font-size: 0.9375rem;
  font-weight: 650;
}
.presets .chips {
  margin-top: var(--s2);
}
.ts-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
}
.ts-row > * {
  grid-column: 2;
}
.ts-row > .tsx-pick {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: stretch;
  padding-top: 5px;
  cursor: pointer;
}
.tsx-pick input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
}
.ts-row:not(.on) .tsx-head h2 a {
  color: var(--ink-2);
}
.ts-row:not(.on) .strip i {
  background: var(--bar-off);
}
.ts-list.ro .strip i:not([data-risk="read"]) {
  display: none;
}
.ts-row.none .tsx-head h2 a,
.ts-row.none .tsx-tok {
  text-decoration: line-through;
}
.ts-mix {
  display: inline-flex;
  min-height: 11px;
}
.ts-bar {
  display: block;
  width: 112px;
  height: 4px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}
.ts-row.on:not(.none) .ts-bar {
  background: var(--brand-track);
}
.ts-bar i {
  display: block;
  min-width: 2px;
  height: 100%;
  border-radius: 2px;
  background: var(--bar-off);
  transition: background-color 0.15s;
}
.ts-row.on .ts-bar i {
  background: var(--bar);
}
.ts-legend {
  margin-top: var(--s2);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* The panel never cuts its own content: the summary stays whole, and the options scroll
   below it behind a rule, with a scrollbar that shows and a fading edge. */
.builder {
  position: sticky;
  top: calc(var(--header) + var(--s4));
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--header) - var(--s5));
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r3);
}
.b-head {
  flex: none;
  padding: var(--s5) var(--s5) var(--s4);
  border-bottom: 1px solid var(--line);
}
.b-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: var(--s4) var(--s6);
  padding: 0 var(--s5);
}
.b-body::after {
  content: "";
  position: sticky;
  bottom: 0;
  display: block;
  height: var(--s5);
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
}
.b-body::-webkit-scrollbar {
  width: 12px;
}
.b-body::-webkit-scrollbar-thumb {
  border: 3px solid var(--surface);
  border-radius: 6px;
  background: var(--line-strong);
}
@supports not selector(::-webkit-scrollbar) {
  .b-body {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
}
.builder h2 {
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.builder h3 {
  font-size: 0.9375rem;
  font-weight: 650;
}
.figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s1) var(--s2);
  margin-top: var(--s5);
}
.figure .big {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 72;
  font-variant-numeric: tabular-nums;
}
.figure .unit {
  font-size: 0.875rem;
  color: var(--ink-2);
}
.meter {
  height: 6px;
  margin-top: var(--s3);
  overflow: hidden;
  border-radius: 3px;
  background: var(--brand-track);
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--bar);
  transition: width 0.25s ease;
}
.builder .mix {
  margin-top: var(--s3);
  gap: var(--s1) var(--s3);
}
/* A short window: the summary tightens so the options keep room under it. */
@media (max-height: 860px) and (min-width: 1100px) {
  .b-head {
    padding: var(--s4) var(--s5) var(--s3);
  }
  .builder h2 {
    font-size: 1.25rem;
  }
  .figure {
    margin-top: var(--s2);
  }
  .figure .big {
    font-size: 2rem;
  }
  .figure .unit {
    font-size: 0.8125rem;
  }
  .meter,
  .builder .mix {
    margin-top: var(--s2);
  }
  .builder .ro-box .note {
    display: none;
  }
}
.builder .ro-box {
  margin-top: var(--s4);
  padding: var(--s3);
  background: var(--surface-2);
}
.builder .ro-box .note {
  font-size: 0.8125rem;
}
.env {
  margin-top: var(--s4);
}
.env-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  margin-bottom: var(--s2);
}
.seg {
  display: inline-flex;
  padding: 2px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.seg label {
  position: relative;
}
.seg input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.seg span {
  display: block;
  padding: 2px var(--s2);
  border-radius: var(--r1);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-2);
}
.seg input:checked + span {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.seg input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.cat-link {
  width: 100%;
  margin-top: var(--s4);
}
.cat-link[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.linebar {
  display: none;
}
.linebar-in {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 60px;
  padding-block: var(--s2);
}
.lb-what {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-right: auto;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--t-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lb-what > * {
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-what b {
  color: var(--t-fg);
  font-size: 0.9375rem;
  font-weight: 650;
}
.linebar .btn {
  height: 36px;
  padding: 0 var(--s3);
}
.linebar .lb-see {
  background: transparent;
  border-color: var(--t-line-strong);
  color: var(--t-fg);
}
#lb-copy {
  min-width: 6.5em;
}

@media (max-width: 1099px) {
  .builder {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
  }
  .b-head {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .b-body {
    overflow: visible;
  }
  .b-body::after {
    content: none;
  }
  /* Below the sticky header (z-index 20), and focus never lands under the bar. */
  .linebar {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: var(--s6) calc(-1 * var(--s6)) 0;
    padding-inline: var(--s6);
    background: var(--t-bg);
    color: var(--t-fg);
    border-top: 1px solid var(--t-line-strong);
  }
  :root:has(#linebar) {
    scroll-padding-bottom: 88px;
  }
}

@media (max-width: 640px) {
  .tsp .row-purpose {
    display: block;
    overflow: visible;
  }
  .tsx-tok {
    margin-left: 0;
    width: 100%;
  }
  .ts-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .linebar {
    margin-inline: calc(-1 * var(--s4));
    padding-inline: var(--s4);
  }
  .linebar .btn {
    padding: 0 var(--s2);
  }
  .b-head {
    padding: var(--s4) var(--s4) 0;
  }
  .b-body {
    padding: 0 var(--s4);
  }
  .tsp-profiles li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .tsp-profiles code {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (max-width: 380px) {
  .lb-the {
    display: none;
  }
}

.doc-id {
  max-height: calc(100vh - var(--header) - var(--s5) * 2);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.doc-lead {
  margin-top: var(--s3);
  max-width: 36ch;
  color: var(--ink-2);
  line-height: 1.55;
  text-wrap: pretty;
}
.doc-nav {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
}
.doc-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.doc-nav > ol > li > a {
  display: block;
  padding: 6px var(--s3);
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}
.doc-nav > ol > li > a:hover {
  color: var(--ink);
}
.doc-nav > ol > li > a[aria-current="page"] {
  color: var(--ink);
  border-left-color: var(--brand);
}
.doc-nav .toc {
  margin: 2px 0 var(--s2) var(--s3);
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 4px var(--s3);
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}
.toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.doc-main > * + * {
  margin-top: var(--s8);
}
.doc-main > .doc-intro + * {
  margin-top: var(--s6);
}
.doc-intro,
.doc-sec > p,
.doc-sec > ul:not([class]),
.doc-sec .panel > p,
.doc-sec .panel > ul,
.issue > p,
.env > p,
.doc-next {
  max-width: 68ch;
  color: var(--ink-2);
  line-height: 1.65;
}
.doc-intro {
  font-size: 1.0625rem;
}
.doc-sec > h2 {
  font-size: clamp(1.5rem, 1.25rem + 0.6vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.doc-sec > h2 + * {
  margin-top: var(--s3);
}
.doc-sec > * + * {
  margin-top: var(--s4);
}
.doc-sec strong {
  color: var(--ink);
  font-weight: 600;
}
.doc-sec :where(p, li) code {
  font-size: 0.9em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.doc-sec h3 code {
  font-size: 0.95em;
}
.doc-sec .note {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.doc-steps {
  gap: var(--s6);
  margin-top: var(--s5);
}
.doc-steps .step h3 {
  font-size: 1.1875rem;
}

.perm-list {
  margin: var(--s4) 0 0;
  padding: var(--s4) var(--s5);
  list-style: none;
  columns: 3 9em;
  column-gap: var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.perm-list li {
  padding-block: 3px;
  break-inside: avoid;
}

.clients {
  border-top: 1px solid var(--line);
}
.client {
  border-bottom: 1px solid var(--line);
}
.client > summary {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 48px;
  padding: var(--s2) var(--s1);
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 650;
  list-style: none;
}
.client > summary::-webkit-details-marker {
  display: none;
}
.client > summary::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(-45deg);
}
.client[open] > summary::before {
  transform: rotate(45deg);
}
.client > summary:hover {
  color: var(--brand-ink);
}
.client > .panel {
  padding: 0 0 var(--s5) calc(var(--s1) + 8px + var(--s3));
}
.doc-next-step {
  font-weight: 600;
}
.doc-sec > .panel,
.issue,
.env {
  margin-top: var(--s6);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.doc-sec > .panel > h3,
.issue > h3,
.env > h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.35;
}
.doc-sec > .panel > h3 + * {
  margin-top: var(--s3);
}
.issue > * + *,
.env > * + * {
  margin-top: var(--s3);
}
.issue q {
  color: var(--ink);
}

.said {
  margin: 0;
  max-width: 68ch;
  padding: var(--s3) var(--s4);
  border-left: 3px solid var(--destructive-mark);
  border-radius: 0 var(--r1) var(--r1) 0;
  background: var(--surface);
  font-size: 0.8125rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
* + .said {
  margin-top: var(--s3);
}
.said + .said {
  margin-top: var(--s2);
}

.env-facts {
  margin-top: var(--s3);
}
.env-facts > div {
  grid-template-columns: 12em minmax(0, 1fr);
}
.env-facts dd code {
  margin-left: 0;
}
.doc-callout {
  max-width: 68ch;
  margin-top: var(--s6);
  padding: var(--s4) var(--s5);
  border-radius: var(--r2);
  background: var(--brand-wash);
}
.doc-callout p {
  font-size: 0.9375rem;
  line-height: 1.6;
}
.doc-callout p + p {
  margin-top: var(--s2);
}
.doc-callout code {
  font-size: 0.9em;
}

.doc-asks {
  gap: var(--s5);
}
.doc-asks .prompt {
  font-size: 1.125rem;
}
.doc-next {
  margin: 0;
  padding-left: var(--s5);
}
.doc-next li + li {
  margin-top: var(--s2);
}

.recipe-goal {
  font-size: 1.0625rem;
}
.recipe-steps {
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--brand-track);
}
.recipe-step {
  padding: 0 0 var(--s5) var(--s4);
}
.recipe-step:last-child {
  padding-bottom: 0;
}
.recipe-step .prompt {
  margin-top: 0;
  font-size: 1.125rem;
}
.recipe-does {
  margin-top: var(--s2);
  padding-left: 28px;
  max-width: 64ch;
  color: var(--ink-2);
  line-height: 1.6;
}
.recipe-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: var(--s4);
  align-items: start;
  margin-top: var(--s5);
}
.recipe-box {
  padding: var(--s4) var(--s5) var(--s5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r3);
}
.recipe-box h3 {
  font-size: 0.9375rem;
  font-weight: 650;
}
.recipe-box > * + * {
  margin-top: var(--s3);
}
.recipe-box ul {
  margin-bottom: 0;
  padding-left: var(--s4);
}
.recipe-box li {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.recipe-box li + li {
  margin-top: var(--s2);
}
.recipe-box .note {
  margin-top: var(--s3);
}

.foot-nav {
  flex-basis: 100%;
}
.foot-nav a {
  display: inline-block;
  padding-block: 4px;
}
.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (max-width: 1099px) {
  .doc-id {
    max-height: none;
    overflow: visible;
  }
  .doc-lead {
    max-width: 60ch;
  }
}
@media (max-width: 760px) {
  .recipe-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .doc-main > * + * {
    margin-top: var(--s7);
  }
  .env-facts > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .recipe-step {
    padding-left: var(--s3);
  }
  .recipe-does,
  .recipe-step .uses {
    padding-left: 0;
  }
  .perm-list {
    padding-inline: var(--s4);
  }
}
