/* ProcurAuth family site style. Source: ProcurAuth/procurauth docs/assets/site.css. Do not edit a copy. */
/* One file for each site of the family. No external request, no web font, no product name. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #fafafd;
  --surface: #ffffff;
  --surface-2: #f1f2f8;
  --text: #13151f;
  --muted: #4a5064;
  --border: #dadde8;
  --border-strong: #b9bed0;
  --border-ui: #777d96;
  --accent: #4338ca;
  --accent-hover: #372fa8;
  --accent-ink: #ffffff;
  --accent-soft: #ecebfd;
  --ok: #0e6b3a;
  --ok-soft: #dcf3e6;
  --no: #a1201e;
  --no-soft: #fbe3e2;
  --code-bg: #f3f4fa;
  --code-text: #1c2033;
  --tok-key: #4338ca;
  --tok-str: #0e6b3a;
  --tok-num: #9a3412;
  --shadow: 0 1px 2px rgba(20, 22, 40, .05), 0 6px 20px rgba(20, 22, 40, .06);
  --r: 14px;
  --r-sm: 8px;
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e15;
    --surface: #141824;
    --surface-2: #1b2030;
    --text: #e9ebf4;
    --muted: #a6adc2;
    --border: #2a3045;
    --border-strong: #404866;
    --border-ui: #6b7596;
    --accent: #a5b4fc;
    --accent-hover: #c0cbff;
    --accent-ink: #0c0e15;
    --accent-soft: #232957;
    --ok: #6ee7a8;
    --ok-soft: #10301f;
    --no: #ff9d9a;
    --no-soft: #3a1b1d;
    --code-bg: #0f1220;
    --code-text: #dfe3f2;
    --tok-key: #a5b4fc;
    --tok-str: #86e0ae;
    --tok-num: #f6b27a;
    --shadow: none;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0c0e15;
  --surface: #141824;
  --surface-2: #1b2030;
  --text: #e9ebf4;
  --muted: #a6adc2;
  --border: #2a3045;
  --border-strong: #404866;
  --border-ui: #6b7596;
  --accent: #a5b4fc;
  --accent-hover: #c0cbff;
  --accent-ink: #0c0e15;
  --accent-soft: #232957;
  --ok: #6ee7a8;
  --ok-soft: #10301f;
  --no: #ff9d9a;
  --no-soft: #3a1b1d;
  --code-bg: #0f1220;
  --code-text: #dfe3f2;
  --tok-key: #a5b4fc;
  --tok-str: #86e0ae;
  --tok-num: #f6b27a;
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--accent-ink); }

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.5vw + .4rem, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 2vw + 1rem, 2rem); margin-bottom: .6rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
h4 { font-size: 1rem; margin-bottom: .3rem; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 1vw + .9rem, 1.3rem); color: var(--muted); max-width: 46rem; line-height: 1.55; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.muted { color: var(--muted); }
.prose { max-width: none; }
.prose p, .prose ul, .prose ol { max-width: none; }
code, kbd, samp { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--code-bg); padding: .12em .38em; border-radius: 5px; border: 1px solid var(--border); overflow-wrap: anywhere; }
ul, ol { padding-left: 1.3rem; margin: 0 0 1rem; }
li { margin: .25rem 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* --------------------------------------------------------------- header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; gap: 8px 22px; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 750; color: var(--accent); }
#site-nav ul { display: flex; flex-wrap: wrap; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
#site-nav li { margin: 0; }
#site-nav a {
  display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem;
}
#site-nav a:hover { color: var(--text); background: var(--surface-2); }
#site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.icon-btn, .menu-btn {
  appearance: none; border: 1px solid var(--border-ui); background: var(--surface); color: var(--text);
  border-radius: 10px; cursor: pointer; font: inherit; font-weight: 550; font-size: .92rem;
}
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; }
.icon-btn:hover, .menu-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; padding: 8px 14px; height: 40px; }

@media (max-width: 1099px) {
  .js .menu-btn { display: inline-block; }
  .js #site-nav { display: none; flex-basis: 100%; order: 5; padding-bottom: 10px; }
  .js #site-nav.open { display: block; }
  .js #site-nav ul { flex-direction: column; }
  #site-nav a { padding: 10px 12px; }
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 85% -10%, var(--accent-soft), transparent 70%),
    radial-gradient(700px 360px at -5% 110%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 40px; padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(44px, 8vw, 104px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hero h1 { margin-bottom: 18px; }
.hero .promise { font-size: clamp(1.15rem, 1.4vw + .9rem, 1.55rem); line-height: 1.45; color: var(--text); max-width: 34rem; margin-bottom: 28px; font-weight: 450; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 650; text-decoration: none;
  border: 1.5px solid var(--border-ui); background: var(--surface); color: var(--text); font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn.small { padding: 8px 14px; font-size: .92rem; border-radius: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 650; padding: 3px 12px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); letter-spacing: .01em;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.hero-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.hero-card header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: .82rem; color: var(--muted); font-weight: 600; }
.hero-card header i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.hero-card .step { padding: 14px 16px 2px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.hero-card pre { border: 0; border-radius: 0; background: transparent; margin: 0; padding: 6px 16px 14px; font-size: .8rem; }
.hero-card .sep { border-top: 1px dashed var(--border); }

/* -------------------------------------------------------------- sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 28px; max-width: 48rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.grid { display: grid; gap: 16px; }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.tools-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 1100px) { .tools-row { grid-template-columns: repeat(5, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); min-width: 0;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); color: inherit; }
.tool-card { padding: 18px; }
.tool-card .name { font: 650 .98rem var(--mono); color: var(--accent); display: block; margin-bottom: 6px; overflow-wrap: anywhere; }
.tool-card p { font-size: .92rem; margin: 0; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  a.card:hover { transform: translateY(-2px); }
  html { scroll-behavior: smooth; }
}

/* ------------------------------------------------------------- page head */
.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--border);
  background: radial-gradient(800px 260px at 90% -20%, var(--accent-soft), transparent 70%), var(--bg); }
.page-head h1 { font-size: clamp(1.9rem, 4vw + .5rem, 2.9rem); margin-bottom: 12px; }
.page-head .lede { margin-bottom: 0; }
.page-body { padding: clamp(28px, 4vw, 48px) 0 72px; }
.page-body > .wrap > section, .page-body section.block { margin-bottom: clamp(40px, 5vw, 64px); scroll-margin-top: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips a { display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 99px; text-decoration: none; background: var(--surface); color: var(--text); font-size: .92rem; font-weight: 550; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------- figures */
figure { margin: 24px 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 14px; box-shadow: var(--shadow); }
.panel figcaption { color: var(--muted); font-size: .94rem; margin-top: 14px; padding: 0 6px; line-height: 1.55; }
.panel figcaption strong { color: var(--text); }
figure svg { display: block; width: 100%; height: auto; margin: 0 auto; }
.fig-v { display: none; }
@media (max-width: 859px) {
  .fig-h { display: none; }
  .fig-v { display: block; }
  .fig-v svg { max-width: 420px; }
}
.pair { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair > div { min-width: 0; }
.pair svg { max-width: 460px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0 6px; margin: 12px 0 0; font-size: .88rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
.legend .sw { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--border-strong); background: var(--surface-2); display: inline-block; }
.legend .sw.hl { background: var(--accent-soft); border-color: var(--accent); }
.legend .sw.dash { border-style: dashed; background: transparent; }
.legend .sw.g { background: var(--accent); border-color: var(--accent); }

svg text { font-family: var(--font); fill: var(--text); }
svg .mono { font-family: var(--mono); }
svg .tm { fill: var(--muted); }
svg .ta { fill: var(--accent); }
svg .tok { fill: var(--ok); }
svg .tno { fill: var(--no); }
svg .tb { font-weight: 700; }
svg .box { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; }
svg .box.hl { fill: var(--accent-soft); stroke: var(--accent); }
svg .box.ok { fill: var(--ok-soft); stroke: var(--ok); }
svg .box.no { fill: var(--no-soft); stroke: var(--no); }
svg .box.plain { fill: var(--surface); }
svg .box.dash { stroke-dasharray: 5 4; }
svg .ln { stroke: var(--muted); stroke-width: 2; fill: none; }
svg .ln.a { stroke: var(--accent); }
svg .ln.ok { stroke: var(--ok); }
svg .ln.no { stroke: var(--no); }
svg .ln.dash { stroke-dasharray: 6 5; }
svg .ln.thin { stroke-width: 1.5; stroke: var(--border-strong); }
svg .mk-m { fill: var(--muted); }
svg .mk-a { fill: var(--accent); }
svg .mk-ok { fill: var(--ok); }
svg .mk-no { fill: var(--no); }
svg .num { fill: var(--accent); }
svg .numt { fill: var(--accent-ink); font-weight: 700; }
svg .fill-ok { fill: var(--ok); }
svg .fill-a { fill: var(--accent); }
svg .fill-no { fill: var(--no); }
svg .track { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.2; }

/* ------------------------------------------------------- code and tables */
pre {
  margin: 0 0 1rem; padding: 14px 16px; background: var(--code-bg); color: var(--code-text); border: 1px solid var(--border); border-radius: var(--r-sm);
  font: .85rem/1.6 var(--mono); tab-size: 2; max-width: 100%;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal;
}
pre .ln { display: block; padding-left: calc((var(--i, 0) + 2) * 1ch); text-indent: calc((var(--i, 0) + 2) * -1ch); }
pre .ln:empty::before { content: "\200b"; }
/* Text diagrams: keep each column in place, scroll inside the block on a small screen */
pre.diagram { white-space: pre; overflow-x: auto; overflow-wrap: normal; }
.diagram .ln { padding-left: 0; text-indent: 0; }
@media (max-width: 560px) { pre { font-size: .76rem; padding: 12px 12px; } .code-wrap pre { padding-right: 12px; padding-top: 34px; } }
pre code { font: inherit; background: none; border: 0; padding: 0; }
.code-wrap { position: relative; margin: 18px 0 1rem; }
.code-wrap pre { margin: 0; padding-right: 64px; }
.code-wrap .label { position: absolute; left: 12px; top: -10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; font-size: .72rem; font-weight: 650; color: var(--muted); font-family: var(--font); letter-spacing: .04em; text-transform: uppercase; }
.copy-btn {
  position: absolute; top: 8px; right: 8px; appearance: none; border: 1px solid var(--border-ui); background: var(--surface); color: var(--text);
  border-radius: 7px; padding: 3px 10px; font: 600 .76rem var(--font); cursor: pointer;
}
.copy-btn:hover { background: var(--surface-2); }
.k { color: var(--tok-key); }
.s { color: var(--tok-str); }
.n { color: var(--tok-num); }
.c { color: var(--muted); }
.tablewrap { margin: 0 0 1.25rem; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child > th, tr:last-child > td { border-bottom: 0; }
thead th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody th { font-weight: 650; }
td.yes { background: var(--ok-soft); }
td.no { background: var(--no-soft); }

.callout { border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: var(--r-sm); padding: 14px 18px; margin: 18px 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.ok { border-left-color: var(--ok); background: var(--ok-soft); }

.gloss { display: grid; gap: 10px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 0; }
.gloss > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 16px; }
.gloss dt { font-weight: 700; margin-bottom: 2px; }
.gloss dd { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }

.steps { counter-reset: st; list-style: none; padding: 0; margin: 0 0 1.2rem; }
.steps li { counter-increment: st; position: relative; padding-left: 44px; margin: 0 0 12px; min-height: 30px; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1.2rem; }
.kv dt { font-weight: 650; color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 8px; } }

.tool-section { padding: 26px 0; border-top: 1px solid var(--border); scroll-margin-top: 1.5rem; }
.tool-section:first-of-type { border-top: 0; }
.tool-section h2 { font-family: var(--mono); font-size: clamp(1.3rem, 1.6vw + 1rem, 1.7rem); color: var(--accent); letter-spacing: -.01em; }
.tool-section .tagline { font-size: 1.1rem; color: var(--text); font-weight: 500; margin-bottom: 14px; }
.tool-grid { display: grid; gap: 22px 36px; }
@media (min-width: 960px) { .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.tool-grid > div { min-width: 0; }
.tool-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-top: 0; }
.exit { display: inline-flex; gap: 6px; align-items: baseline; margin-right: 14px; }
.exit b { font-family: var(--mono); background: var(--code-bg); border: 1px solid var(--border); border-radius: 5px; padding: 0 7px; }

/* ----------------------------------------------------- document layout */
.doc-layout { display: grid; gap: 24px 48px; padding-top: 32px; padding-bottom: 80px; align-items: start; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 250px minmax(0, 1fr); } }
.toc { font-size: .92rem; min-width: 0; }
@media (min-width: 1000px) {
  .toc { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; padding-right: 8px; }
  .toc summary { pointer-events: none; list-style: none; cursor: default; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc summary::after { display: none !important; }
}
.toc summary { font-weight: 700; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
@media (min-width: 1000px) { .toc summary { border: 0; background: none; padding: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); } }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 10px; border-left: 2px solid var(--border); color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--text); border-left-color: var(--border-strong); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 650; background: var(--accent-soft); }
.toc a:focus-visible { outline-offset: -2px; }

.doc { min-width: 0; }
.doc .doc-title { margin-bottom: 10px; }
.doc .status { margin-bottom: 24px; }
.doc h2 { margin: 56px 0 14px; padding-top: 22px; border-top: 1px solid var(--border); scroll-margin-top: 1.5rem; font-size: clamp(1.35rem, 1.6vw + 1rem, 1.75rem); }
.doc h2 .sn { color: var(--accent); margin-right: .35em; }
.doc h2 a.self { color: inherit; text-decoration: none; }
.doc h2 a.self:hover { text-decoration: underline; }
.doc .intro p { max-width: 72ch; }
.para { display: grid; grid-template-columns: 3.9rem minmax(0, 1fr); gap: 0 .4rem; padding: 6px 8px 6px 0; margin: 2px 0; scroll-margin-top: 1.5rem; border-radius: var(--r-sm); }
.para:target { background: var(--accent-soft); box-shadow: -8px 0 0 var(--accent-soft); }
.pnum { font: 650 .8rem/2.1 var(--mono); color: var(--muted); text-decoration: none; text-align: right; padding-right: 6px; white-space: nowrap; }
.pnum:hover { color: var(--accent); text-decoration: underline; }
.pbody { min-width: 0; max-width: 72ch; }
.pbody > *:first-child { margin-top: 0; }
.pbody > *:last-child { margin-bottom: 0; }
.pbody p { margin: 0 0 .7rem; }
.pbody ul, .pbody ol { margin: .2rem 0 .8rem; }
.pbody .code-wrap, .pbody pre { margin: .4rem 0 .9rem; }
.doc .terms { max-width: 72ch; }
.doc .refs { max-width: 72ch; }
.doc .refs li { margin: .5rem 0; }
.doc strong { font-weight: 650; }
.doc a.xref { text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
@media (max-width: 559px) {
  .para { grid-template-columns: 1fr; padding-right: 0; }
  .pnum { text-align: left; line-height: 1.5; padding: 0 0 2px; }
}

/* ----------------------------------------------------------- source page */
.tree { font: .88rem/1.7 var(--mono); background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 1rem; color: var(--code-text); }
.tree .d { color: var(--accent); font-weight: 600; }
.tree .cm { color: var(--muted); }
.changelog { border-left: 2px solid var(--border-strong); padding-left: 22px; margin-left: 6px; }
.changelog h3 { position: relative; margin-bottom: 6px; }
.changelog h3::before { content: ""; position: absolute; left: -30px; top: .35em; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-sizing: content-box; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: .94rem; padding: 36px 0 44px; }
.foot-grid { display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.foot-grid h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 4px 0; }
.foot-grid a { color: var(--text); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; }
.foot-legal { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-legal p { margin: 0; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.tools-row > li { display: flex; margin: 0; }
.tools-row > li > a { flex: 1; }


.hero .sub { font-size: 1.08rem; color: var(--muted); max-width: 34rem; margin: -10px 0 26px; line-height: 1.55; }
.hero .more { margin: 16px 0 0; font-weight: 600; }
.aside { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0 0; color: var(--muted); font-size: .96rem; }
.aside strong { color: var(--text); }
.ico-inline { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ico-inline svg { width: 18px; height: 18px; }
.mcp-row { margin-bottom: 26px; }
@media (min-width: 1100px) { .mcp-row { grid-template-columns: repeat(5, 1fr); } }
.mcp-row .tool-card h3 { font-size: 1rem; margin: 2px 0 6px; }
.mcp-row .tool-card .name { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.mcp-example { align-items: center; }
.mcp-example .code-wrap { margin-top: 18px; }

/* Directory tree: rows wrap by cell, no scrollbar */
.tree .tr { display: flex; flex-wrap: wrap; column-gap: 2ch; padding-left: calc(var(--d, 0) * 2.4ch); }
.tree .f { color: var(--code-text); }
.tree .cm { color: var(--muted); }
.tree .cm::before { content: "# "; }
.code-wrap .label { z-index: 1; }

/* Tables */
@media (min-width: 701px) { tbody th code { white-space: nowrap; } }
@media (max-width: 700px) {
  .tablewrap { border: 0; background: none; }
  table, tbody, tr, th, td { display: block; width: auto; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tbody tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); margin: 0 0 12px; padding: 6px 0 4px; }
  th, td { border: 0; padding: 4px 14px; }
  tbody th { font-size: 1rem; padding-top: 8px; }
  td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  tr:last-child > th, tr:last-child > td { border-bottom: 0; }
}
.e { color: var(--no); }

/* GitHub link in the header */
.gh-link { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--border-ui); border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 550; font-size: .92rem; background: var(--surface); }
.gh-link:hover { background: var(--surface-2); color: var(--text); }
.gh-link svg { width: 20px; height: 20px; }
@media (max-width: 700px) { .gh-link { width: 40px; padding: 0; justify-content: center; } .gh-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.nav-gh { display: none; }
@media (max-width: 1099px) { .nav-gh { display: list-item; } }
@media (max-width: 700px) { .bar { gap: 6px 8px; } .menu-btn { padding: 8px 12px; } .brand { font-size: 1.08rem; gap: 8px; } }

/* Collapsible blocks */
details.more { margin: 0 0 1rem; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
details.more > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: .94rem; }
details.more > summary:hover { color: var(--accent); }
details.more[open] > summary { border-bottom: 1px solid var(--border); }
details.more > :not(summary) { margin-left: 12px; margin-right: 12px; }
details.more > .code-wrap, details.more > .tablewrap { margin-top: 18px; margin-bottom: 12px; }
.callout code { background: var(--surface); }

@media (max-width: 700px) {
  table.tight td[data-label] { display: flex; gap: 10px; align-items: baseline; padding-top: 2px; padding-bottom: 2px; }
  table.tight td[data-label]::before { display: inline; flex: none; min-width: 5.5em; }
}

/* ------------------------------------------------------- justified text */
main p, main li, main dd {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
main td p, main td li, main th p, main pre, main code, .chips li { text-align: left; hyphens: manual; }
@media (max-width: 559px) {
  main p, main li, main dd { text-align: left; hyphens: manual; }
}
.page-head .lede { max-width: none; hyphens: manual; }
.hero p, .page-head p, .section-head p, .shot figcaption, .panel figcaption { text-align: left; hyphens: manual; }
.toc a, .toc li { text-align: left; hyphens: manual; }
.card p, .card h3, .tool-card p { text-align: left; hyphens: manual; }

/* Pictures that are files (SVG with its own colours). A screenshot gets a frame. */
.panel img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); }
.panel img[src$=".png"], .panel img[src$=".webp"], .panel img[src$=".jpg"] { border: 1px solid var(--border); }

/* A picture for each theme: .only-light and .only-dark */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-light { display: none; }
  :root:not([data-theme="light"]) .only-dark { display: block; }
}
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="dark"] .only-dark { display: block; }

/* A row of facts about one program */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 1rem; font-size: .94rem; }
.facts dt { font-weight: 650; color: var(--muted); }
.facts dd { margin: 0; text-align: left; hyphens: manual; }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: 8px; } }
.impl-card h3 { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.impl-card .badge { font-size: .74rem; padding: 1px 10px; }
.card .btn-row { margin-top: 12px; }
.page-404 { text-align: center; padding: clamp(48px, 10vw, 120px) 0; }
.page-404 .btn-row, .page-404 .eyebrow { justify-content: center; }
.page-404 .lede { margin: 14px auto 26px; text-align: center; hyphens: manual; }

/* Navigation: keep the bar on one row on a wide screen */
.bar { column-gap: 12px; }
#site-nav a { padding: 8px 9px; font-size: .92rem; }
#site-nav ul { gap: 2px 2px; }
@media (min-width: 1100px) {
  .gh-link { width: 40px; padding: 0; justify-content: center; }
  .gh-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.impl-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .impl-grid { grid-template-columns: 1fr 1fr; } }
.impl-card p { text-align: left; hyphens: manual; }

/* ------------------------------------------------------ product pictures */
.shot { margin: 0; min-width: 0; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); background: var(--surface); }
.shot figcaption { color: var(--muted); font-size: .94rem; margin: 10px 4px 0; line-height: 1.5; }
.shot figcaption strong { color: var(--text); }
.shots { display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); margin: 0; }
.shots .wide { grid-column: 1 / -1; }
.hero-shot { position: relative; min-width: 0; }
.hero-shot .shot img { box-shadow: 0 10px 40px rgba(20, 22, 60, .22); }
.feature-table th { width: 14rem; }
.family-fig { max-width: 720px; margin: 0 auto; }

/* -------------------------------------------------- document pages, more */
.doc table { font-size: .9rem; }
.doc table code { overflow-wrap: anywhere; }
.doc .tablewrap { max-width: 100%; overflow-x: auto; }
.doc .tablewrap td code, .doc .tablewrap th code { white-space: normal; }
.doc .src { color: var(--muted); font-size: .92rem; margin: 0 0 24px; }
.doc h3 { margin-top: 2rem; }
.doc h4 { margin-top: 1.4rem; }
.doc h3 a.self, .doc h4 a.self { color: inherit; text-decoration: none; }
.doc h3 a.self:hover, .doc h4 a.self:hover { text-decoration: underline; }
.doc ul, .doc ol { max-width: 72ch; }
.doc hr { margin: 2.5rem 0; }

/* ----------------------------------------------------------------- print */
/* Print in the light theme. This block is last: it overrides the dark rules above. */
@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --bg: #fafafd;
    --surface: #ffffff;
    --surface-2: #f1f2f8;
    --text: #13151f;
    --muted: #4a5064;
    --border: #dadde8;
    --border-strong: #b9bed0;
    --border-ui: #777d96;
    --accent: #4338ca;
    --accent-hover: #372fa8;
    --accent-ink: #ffffff;
    --accent-soft: #ecebfd;
    --ok: #0e6b3a;
    --ok-soft: #dcf3e6;
    --no: #a1201e;
    --no-soft: #fbe3e2;
    --code-bg: #f3f4fa;
    --code-text: #1c2033;
    --tok-key: #4338ca;
    --tok-str: #0e6b3a;
    --tok-num: #9a3412;
    --shadow: none;
    color-scheme: light;
  }
  .site-header, .toc, .site-footer, .hero::before, .copy-btn, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-layout { display: block; }
  .fig-v { display: none !important; }
  .fig-h { display: block !important; }
  .only-dark { display: none !important; }
  .only-light { display: block !important; }
  pre, pre.diagram { white-space: pre-wrap; overflow-wrap: anywhere; overflow: visible; }
}
