/* Observability site: flat and clean, tokens from the diene model site (deps-study restyle v3).
   Font: Figtree variable, self-hosted as figtree.woff2 beside the page.
   Figtree: Copyright 2022 The Figtree Project Authors (https://github.com/erikdkennedy/figtree), SIL Open Font License 1.1.
   Spacing scale: 4 8 12 16 24 32 48. No shadows, no gradients. */
@font-face { font-family: "Figtree"; src: url("figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --g: 16px; --r: 20px; --r-sm: 12px; --r-md: 16px;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --wb: 400; --wm: 500; --wh: 600;
  --bg: #f2f4f8; --surface: #ffffff; --surface2: #eaeef4; --surface3: #dbe1ea;
  --ink: #0f172a; --ink2: #3b475a; --line: #dde3ec; --line2: #a9b4c4; --link: #1d4ed8;
  --good: #116336; --good-bg: #dcf2e4; --warn: #7a4600; --warn-bg: #fcedcf; --bad: #a3201a; --bad-bg: #fde3e0;
  --none: #46505f; --none-bg: #e7ebf1; --plan: #1d4ed8; --plan-bg: #e1e9fd; --open: #86198f; --open-bg: #f6e0f8;
  /* actors: strong (stroke, label) + soft (fill) */
  --person: #6d28d9; --person-s: #efe7fd;
  --ci: #475569;     --ci-s: #e6ebf2;
  --kargo: #9a4a00;  --kargo-s: #fdecd2;
  --argo: #b4123a;   --argo-s: #fde4e9;
  --t3: #1d4ed8;     --t3-s: #e1e9fd;
  --dns: #13693a;    --dns-s: #daf3e3;
  --client: #0b6577; --client-s: #d6f3f8;
  --vendor: #86198f; --vendor-s: #f6e0f8;
  /* one accent per screen */
  --a-start: #1e40af; --a-start-s: #e1e9fd;
  --a-deploy: #9a4a00; --a-deploy-s: #fdecd2;
  --a-cluster: #5b21b6; --a-cluster-s: #ece4fc;
  --a-dns: #13693a; --a-dns-s: #daf3e3;
  --a-router: #0b6577; --a-router-s: #d6f3f8;
  --a-frontend: #9a3412; --a-frontend-s: #fde6d6;
  --a-logto: #86198f; --a-logto-s: #f6e0f8;
  --a-global: #115e59; --a-global-s: #d8f2ed;
  --a-mercury: #9f1239; --a-mercury-s: #fce1e7;
  --a-decide: #3730a3; --a-decide-s: #e5e6fc;
  --a-test: #0f5f8a; --a-test-s: #dcecf7;
  --a-words: #075985; --a-words-s: #dceffa;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --wb: 380;
  --bg: #0b1020; --surface: #141b2d; --surface2: #1d263b; --surface3: #2a3550;
  --ink: #eef2f8; --ink2: #b6c0d0; --line: #253049; --line2: #56627c; --link: #9dbaff;
  --good: #82dea3; --good-bg: #11301e; --warn: #f4c870; --warn-bg: #33270e; --bad: #ffa096; --bad-bg: #3b1916;
  --none: #b6c0d0; --none-bg: #222b40; --plan: #9dbaff; --plan-bg: #182650; --open: #f2b0fc; --open-bg: #361541;
  --person: #c9b0ff; --person-s: #261a45; --ci: #c3cddb; --ci-s: #222b3d; --kargo: #fbc677; --kargo-s: #35240b;
  --argo: #ff9fb4; --argo-s: #3d1522; --t3: #9dbaff; --t3-s: #172552; --dns: #86e0a8; --dns-s: #10301d;
  --client: #72dcef; --client-s: #0b2e36; --vendor: #f2b0fc; --vendor-s: #361541;
  --a-start: #9dbaff; --a-start-s: #172552; --a-deploy: #fbc677; --a-deploy-s: #35240b; --a-cluster: #c9b8ff; --a-cluster-s: #281b4c;
  --a-dns: #86e0a8; --a-dns-s: #10301d; --a-router: #72dcef; --a-router-s: #0b2e36; --a-frontend: #fdba74; --a-frontend-s: #36200e;
  --a-logto: #f2b0fc; --a-logto-s: #361541; --a-global: #5eead4; --a-global-s: #0a2e2b; --a-mercury: #fda4b4; --a-mercury-s: #3b1422;
  --a-decide: #b0bcff; --a-decide-s: #1d2050; --a-test: #8fd0ff; --a-test-s: #0c2a40; --a-words: #7dd3fc; --a-words-s: #0b2b40;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --wb: 380;
  --bg: #0b1020; --surface: #141b2d; --surface2: #1d263b; --surface3: #2a3550;
  --ink: #eef2f8; --ink2: #b6c0d0; --line: #253049; --line2: #56627c; --link: #9dbaff;
  --good: #82dea3; --good-bg: #11301e; --warn: #f4c870; --warn-bg: #33270e; --bad: #ffa096; --bad-bg: #3b1916;
  --none: #b6c0d0; --none-bg: #222b40; --plan: #9dbaff; --plan-bg: #182650; --open: #f2b0fc; --open-bg: #361541;
  --person: #c9b0ff; --person-s: #261a45; --ci: #c3cddb; --ci-s: #222b3d; --kargo: #fbc677; --kargo-s: #35240b;
  --argo: #ff9fb4; --argo-s: #3d1522; --t3: #9dbaff; --t3-s: #172552; --dns: #86e0a8; --dns-s: #10301d;
  --client: #72dcef; --client-s: #0b2e36; --vendor: #f2b0fc; --vendor-s: #361541;
  --a-start: #9dbaff; --a-start-s: #172552; --a-deploy: #fbc677; --a-deploy-s: #35240b; --a-cluster: #c9b8ff; --a-cluster-s: #281b4c;
  --a-dns: #86e0a8; --a-dns-s: #10301d; --a-router: #72dcef; --a-router-s: #0b2e36; --a-frontend: #fdba74; --a-frontend-s: #36200e;
  --a-logto: #f2b0fc; --a-logto-s: #361541; --a-global: #5eead4; --a-global-s: #0a2e2b; --a-mercury: #fda4b4; --a-mercury-s: #3b1422;
  --a-decide: #b0bcff; --a-decide-s: #1d2050; --a-test: #8fd0ff; --a-test-s: #0c2a40; --a-words: #7dd3fc; --a-words-s: #0b2b40;
  color-scheme: dark;
}

/* accent per screen: set on each <section> and on <body data-on> for the bars */
.screen, body { --accent: var(--a-start); --accent-s: var(--a-start-s); }
#deploy, body[data-on="deploy"] { --accent: var(--a-deploy); --accent-s: var(--a-deploy-s); }
#cluster, body[data-on="cluster"] { --accent: var(--a-cluster); --accent-s: var(--a-cluster-s); }
#dns, body[data-on="dns"] { --accent: var(--a-dns); --accent-s: var(--a-dns-s); }
#router, body[data-on="router"] { --accent: var(--a-router); --accent-s: var(--a-router-s); }
#frontend, body[data-on="frontend"] { --accent: var(--a-frontend); --accent-s: var(--a-frontend-s); }
#logto, body[data-on="logto"] { --accent: var(--a-logto); --accent-s: var(--a-logto-s); }
#global, body[data-on="global"] { --accent: var(--a-global); --accent-s: var(--a-global-s); }
#mercury, body[data-on="mercury"] { --accent: var(--a-mercury); --accent-s: var(--a-mercury-s); }
#decide, body[data-on="decide"] { --accent: var(--a-decide); --accent-s: var(--a-decide-s); }
#test, body[data-on="test"] { --accent: var(--a-test); --accent-s: var(--a-test-s); }
#words, body[data-on="words"] { --accent: var(--a-words); --accent-s: var(--a-words-s); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 18px; font-weight: var(--wb); line-height: 1.65; letter-spacing: .008em;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
h1, h2, h3, h4 { font-weight: var(--wh); letter-spacing: -.005em; }
p, li { max-width: 65ch; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 8px; }
code { font-family: var(--mono); font-size: .84em; background: var(--surface2); padding: .08em .35em; border-radius: 6px; overflow-wrap: anywhere; }
.card code, .rt code, details code, .callout code, .stepper code { background: var(--surface3); }
strong, b { font-weight: var(--wh); }
button { font: inherit; color: inherit; }
.small { font-size: .92rem; color: var(--ink2); }
.muted { color: var(--ink2); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; z-index: 50; }
.skip:focus { left: 8px; }
/* layout */
.app { max-width: 1320px; margin: 0 auto; }
.col { min-width: 0; padding: 0 var(--g); }
.side { display: none; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 4px; }
.brand { margin: 0; font-weight: var(--wh); font-size: 1rem; }
.themebtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface); cursor: pointer; font-size: .95rem; font-weight: var(--wm); }
.themebtn:hover { background: var(--surface3); }
.nojs-toc { margin: 16px 0; padding: 16px 20px; background: var(--surface); border-radius: var(--r-md); }
.nojs-toc ol { margin: 8px 0 0; padding-left: 1.4em; }
.js .nojs-toc { display: none; }
@media (min-width: 1100px) {
  body { padding-bottom: 96px; }
  .app { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 0 48px; padding: 0 32px; }
  .side { display: block; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 24px 0 32px; }
  .col { padding: 0; max-width: 860px; }
}

/* navigation */
.navlist { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.navlist a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.navlist a:hover { background: var(--surface); }
.navlist .num { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface2); font-size: .82rem; font-weight: var(--wh); color: var(--ink2); }
.navlist a[aria-current="page"] { background: var(--accent-s); }
.navlist a[aria-current="page"] b { color: var(--accent); }
.navlist b { font-weight: var(--wm); font-size: 1rem; line-height: 1.3; }
.navlist small { display: block; font-size: .84rem; color: var(--ink2); line-height: 1.35; }
.side .brand { padding: 4px 12px 16px; font-size: 1.05rem; }
.bbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.bbar[hidden] { display: none; }
@media (min-width: 1100px) { .bbar { left: 312px; right: auto; width: min(860px, calc(100vw - 344px)); margin-left: max(0px, calc((100vw - 1320px) / 2)); border: 0; background: var(--bg); padding: 12px 0 16px; } }
.bbn, .bbm { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--r-sm); border: 0; background: var(--surface2); color: var(--ink); text-decoration: none; cursor: pointer; }
.bbn:hover { background: var(--surface3); }
.bbn[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.bbm { min-width: 0; overflow: hidden; gap: 8px; padding: 4px 16px; background: var(--accent-s); color: var(--accent); }
.bbm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-weight: var(--wh); }
.bbm span { flex: none; font-size: .85rem; color: var(--ink2); }
.sheet { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: var(--bg); color: var(--ink); }
.sheet::backdrop { background: rgba(5, 10, 25, .5); }
.sheet[open] { display: flex; flex-direction: column; }
.sheethead { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.sheethead p { margin: 0; font-weight: var(--wh); font-size: 1.15rem; }
.sheetbody { padding: 12px 12px 48px; overflow-y: auto; }
.closebtn { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--surface); cursor: pointer; font-weight: var(--wm); }
@media (min-width: 640px) { .sheet { max-width: 440px; margin: 0 0 0 auto; } }

/* screens */
.js .screen { display: none; }
.js .screen.cur { display: block; }
.screen { padding: 4px 0 32px; }
.nojs .screen + .screen, html:not(.js) .screen + .screen { border-top: 8px solid var(--line); margin-top: 32px; }
.shead { margin: 8px calc(-1 * var(--g)) 8px; padding: 24px var(--g); background: var(--accent-s); }
.kicker { margin: 0 0 8px; font-size: .92rem; font-weight: var(--wh); color: var(--accent); }
.shead h1 { margin: 0; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; outline: none; }
.answer { margin: 12px 0 0; font-size: 1.25rem; line-height: 1.45; font-weight: var(--wm); max-width: 34ch; }
.facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { position: relative; padding: 0 0 0 22px; line-height: 1.55; }
.facts li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (min-width: 720px) {
  .shead { margin: 16px 0 8px; padding: 32px; border-radius: 24px; }
  .shead h1 { font-size: 2.5rem; }
  .answer { font-size: 1.45rem; }
}
.screen h2 { font-size: 1.4rem; line-height: 1.3; margin: 48px 0 12px; color: var(--accent); scroll-margin-top: 16px; }
.screen h3 { font-size: 1.12rem; line-height: 1.4; margin: 32px 0 8px; }
.screen h4 { font-size: 1.02rem; margin: 24px 0 8px; }
.lead { font-weight: var(--wm); margin: 0 0 12px; }
.ml { margin: 8px 0; padding-left: 1.3em; }
.ml li { margin: 8px 0; padding-left: 2px; }
.ml li::marker { color: var(--accent); }
.ml .ml { margin: 4px 0; }
.callout { margin: 16px 0; padding: 16px 20px; border-radius: var(--r-md); background: var(--surface); }
.callout > :first-child { margin-top: 0; } .callout > :last-child { margin-bottom: 0; }
.callout.warn { background: var(--warn-bg); }
.callout.pos { background: var(--accent-s); }
.callout.quote { background: var(--surface); }
.callout h3 { margin: 0 0 8px; font-size: 1.06rem; }
.example { color: var(--ink2); }
.example::before { content: "Example: "; font-weight: var(--wh); color: var(--ink); }
pre.code { margin: 12px 0; padding: 12px 16px; background: var(--surface); border-radius: var(--r-sm); overflow-x: auto; font-size: .9rem; line-height: 1.5; }
pre.code code { background: none; padding: 0; }

/* chips: tag + source on tap. The button is 40 px tall for touch; the pill inside is small. */
.chip { display: inline-flex; align-items: center; min-height: 40px; min-width: 40px; margin: -9px 0; padding: 0 1px; vertical-align: middle; border: 0; background: transparent; cursor: pointer; text-align: left; }
.chip { --cf: var(--good); --cb: var(--good-bg); }
.chip.k-tested { --cf: var(--plan); --cb: var(--plan-bg); }
.chip.k-proposed { --cf: var(--warn); --cb: var(--warn-bg); }
.chip.k-open { --cf: var(--open); --cb: var(--open-bg); }
.chip.k-missing { --cf: var(--bad); --cb: var(--bad-bg); }
.chip.k-nottested, .chip.k-design { --cf: var(--none); --cb: var(--none-bg); }
.chip .pill { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--cb); color: var(--cf); font-size: .7rem; font-weight: var(--wh); letter-spacing: .04em; line-height: 1.5; }
.chip .cs { font-weight: var(--wm); letter-spacing: 0; font-size: 1.15em; color: var(--ink); }
.js .chip .cs { display: none; }
.js .chip[aria-expanded="true"] { display: inline; margin: 0; }
.js .chip[aria-expanded="true"] .pill { display: inline; padding: 3px 8px; line-height: 1.9; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.js .chip[aria-expanded="true"] .cs { display: inline; }

/* glossary terms */
a.term { color: inherit; text-decoration: underline dotted var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a.term:hover { color: var(--accent); }
.pop { position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 40; max-width: 520px; margin: 0 auto; padding: 16px 20px; background: var(--ink); color: var(--bg); border-radius: var(--r-md); }
.pop[hidden] { display: none; }
.pop p { margin: 0; }
.pop b { font-weight: var(--wh); }
.pop .row { display: flex; gap: 8px; margin-top: 12px; }
.pop a, .pop button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface3); color: var(--ink); text-decoration: none; cursor: pointer; font-size: .92rem; font-weight: var(--wm); }

/* tables: cards on a phone */
.tw { margin: 12px 0; }
.rt { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.rt th { text-align: left; font-weight: var(--wh); font-size: .86rem; color: var(--ink2); padding: 8px 12px; border-bottom: 2px solid var(--line); vertical-align: bottom; }
.rt td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rt tbody tr { background: var(--surface); }
@media (max-width: 719px) {
  .rt thead { display: none; }
  .rt, .rt tbody, .rt tr, .rt td { display: block; width: 100%; }
  .rt tr { margin: 0 0 12px; border-radius: var(--r-sm); padding: 4px 0; }
  .rt td { border: 0; padding: 6px 16px; }
  .rt td[data-l]:not(.c1)::before { content: attr(data-l); display: block; font-size: .8rem; font-weight: var(--wh); color: var(--ink2); }
  .rt td.c1 { font-weight: var(--wh); padding-top: 10px; }
  .rt td:empty { display: none; }
}

/* folds */
details.fold { margin: 12px 0; background: var(--surface); border-radius: var(--r-md); }
details.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; cursor: pointer; font-weight: var(--wh); list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin: -4px 4px 0; transition: transform .2s; }
details.fold[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
details.fold > .fb { padding: 0 16px 16px; }
details.fold .rt tbody tr { background: var(--surface2); }
details.fold .callout { background: var(--surface2); }
details.fold h3, details.fold h4 { margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { details.fold > summary::after { transition: none; } }

/* diagrams */
.dg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; font-family: var(--sans); }
.dg .nd rect.fg { stroke-width: 1.6; transition: opacity .3s, stroke-width .3s; }
.dg .nd text { transition: opacity .3s; }
.dg .lb { font-size: 13.5px; fill: var(--ink); font-weight: 500; }
.dg .at { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dg .grp rect { fill: none; stroke: var(--line2); stroke-dasharray: 4 4; }
.dg .grp text { font-size: 12px; font-weight: 600; fill: var(--ink2); }
.dg .eg { fill: none; stroke: var(--line2); stroke-width: 1.6; transition: stroke .3s, opacity .3s; }
.dg .eg.dash { stroke-dasharray: 5 4; }
.ahp { fill: var(--line2); }
.dg .el rect { fill: var(--bg); }
.dg .el text { font-size: 11px; fill: var(--ink2); font-weight: 500; }
.dg .dot { fill: var(--accent); }
.dg .nd.a-person rect.fg { fill: var(--person-s); stroke: var(--person); } .dg .nd.a-person .at { fill: var(--person); }
.dg .nd.a-ci rect.fg { fill: var(--ci-s); stroke: var(--ci); } .dg .nd.a-ci .at { fill: var(--ci); }
.dg .nd.a-kargo rect.fg { fill: var(--kargo-s); stroke: var(--kargo); } .dg .nd.a-kargo .at { fill: var(--kargo); }
.dg .nd.a-argo rect.fg { fill: var(--argo-s); stroke: var(--argo); } .dg .nd.a-argo .at { fill: var(--argo); }
.dg .nd.a-t3 rect.fg { fill: var(--t3-s); stroke: var(--t3); } .dg .nd.a-t3 .at { fill: var(--t3); }
.dg .nd.a-dns rect.fg { fill: var(--dns-s); stroke: var(--dns); } .dg .nd.a-dns .at { fill: var(--dns); }
.dg .nd.a-client rect.fg { fill: var(--client-s); stroke: var(--client); } .dg .nd.a-client .at { fill: var(--client); }
.dg .nd.a-vendor rect.fg { fill: var(--vendor-s); stroke: var(--vendor); } .dg .nd.a-vendor .at { fill: var(--vendor); }
.dg .nd.a-plain rect.fg { fill: var(--surface); stroke: var(--line2); }
.dg .nd.a-bad rect.fg { fill: var(--bad-bg); stroke: var(--bad); }
/* stepper focus: dim what is not part of this step */
.live .dg.focus .nd:not(.on) rect.fg { fill: var(--surface); stroke: var(--line2); }
.live .dg.focus .nd:not(.on) text { fill: var(--ink2); }
.live .dg.focus .nd.on.a-plain rect.fg { fill: var(--accent-s); stroke: var(--accent); }
.live .dg.focus .nd.on rect.fg { stroke-width: 3.2; }
.live .dg.focus .eg:not(.on) { opacity: .6; }
.live .dg.focus .eg.on { stroke: var(--accent); stroke-width: 2.6; }
.live .dg.focus .el:not(.on) { opacity: .75; }
.dg .nd.dead rect.fg { fill: var(--bad-bg); stroke: var(--bad); stroke-dasharray: 5 3; }
.dg .nd.dead .lb { text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) { .dg * { transition: none !important; } }

/* actor badge in text */
.who { display: inline-block; padding: 0 8px; margin-right: 4px; border-radius: 6px; font-size: .78rem; font-weight: var(--wh); letter-spacing: .04em; text-transform: uppercase; line-height: 1.7; vertical-align: 1px; }
.who.a-person { color: var(--person); background: var(--person-s); }
.who.a-ci { color: var(--ci); background: var(--ci-s); }
.who.a-kargo { color: var(--kargo); background: var(--kargo-s); }
.who.a-argo { color: var(--argo); background: var(--argo-s); }
.who.a-t3 { color: var(--t3); background: var(--t3-s); }
.who.a-dns { color: var(--dns); background: var(--dns-s); }
.who.a-client { color: var(--client); background: var(--client-s); }
.who.a-vendor { color: var(--vendor); background: var(--vendor-s); }

/* steppers */
.stepper { margin: 16px calc(-1 * var(--g)) 24px; padding: 16px var(--g) 16px; background: var(--surface); }
@media (min-width: 720px) { .stepper { margin: 16px 0 24px; padding: 24px; border-radius: var(--r); } }
.stepper .sttl { margin: 0 0 12px; font-weight: var(--wh); font-size: 1.02rem; }
.stepper .dgw { padding: 4px 0 8px; }
.steps { margin: 8px 0 0; padding-left: 1.5em; }
.steps > li { margin: 10px 0; padding-left: 4px; }
.steps > li::marker { color: var(--accent); font-weight: var(--wh); }
.steps > li.alt::before { content: "If it goes wrong: "; font-weight: var(--wh); color: var(--bad); }
.live .steps { list-style: none; padding: 0; min-height: 5em; }
.live .steps > li { display: none; margin: 0; padding: 0; }
.live .steps > li.cur { display: block; animation: rise .3s ease-out; }
.live .steps > li.alt::before { content: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .live .steps > li.cur { animation: none; } }
.stepn { display: none; font-size: .86rem; font-weight: var(--wh); color: var(--ink2); margin: 4px 0 6px; }
.live .stepn { display: block; }
.ctl { display: none; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.live .ctl { display: flex; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface2); cursor: pointer; font-weight: var(--wm); font-size: .95rem; text-decoration: none; color: var(--ink); }
.btn:hover { background: var(--surface3); }
.btn.pri { background: var(--accent); color: var(--bg); }
.btn.pri:hover { opacity: .9; }
.btn[disabled] { opacity: .4; cursor: default; }
.btn[aria-pressed="true"] { background: var(--accent-s); color: var(--accent); outline: 2px solid var(--accent); outline-offset: -2px; }
.ctl .grow { flex: 1; }
.alttoggle { display: none; margin-top: 8px; }
.live .alttoggle { display: inline-flex; }

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; list-style: none; }
.legend li { margin: 0; }

/* counts */
.counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
@media (min-width: 720px) { .counts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.count { padding: 16px; border-radius: var(--r-md); background: var(--surface); }
.count .n { display: block; font-size: 2rem; font-weight: var(--wh); line-height: 1.1; font-variant-numeric: tabular-nums; }
.count .w { font-weight: var(--wh); font-size: .86rem; letter-spacing: .04em; }
.count p { margin: 4px 0 0; font-size: .92rem; color: var(--ink2); }
.count.k-decided .w, .count.k-decided .n { color: var(--good); }
.count.k-tested .w, .count.k-tested .n { color: var(--plan); }
.count.k-proposed .w, .count.k-proposed .n { color: var(--warn); }
.count.k-open .w, .count.k-open .n { color: var(--open); }

/* read order */
.path { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.path a { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 8px 16px; background: var(--surface); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.path a:hover { background: var(--surface3); }
.path .num { flex: none; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-s); color: var(--accent); font-weight: var(--wh); font-size: .9rem; }
.path small { display: block; color: var(--ink2); font-size: .88rem; line-height: 1.35; }

/* sims */
.sim { margin: 16px calc(-1 * var(--g)) 24px; padding: 16px var(--g); background: var(--surface); }
@media (min-width: 720px) { .sim { margin: 16px 0 24px; padding: 24px; border-radius: var(--r); } }
.sim .simq { margin: 0 0 8px; font-weight: var(--wh); }
.sim .live-only { display: none; }
.js .sim .live-only { display: block; }
.js .sim .static-only { display: none; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.clock { display: flex; align-items: baseline; gap: 12px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.clock b { font-size: 1.6rem; }
.log { list-style: none; margin: 8px 0; padding: 0; font-size: .95rem; }
.log li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.log li .t { font-weight: var(--wh); color: var(--ink2); font-variant-numeric: tabular-nums; }
.log li.new { animation: rise .3s ease-out; }
@media (prefers-reduced-motion: reduce) { .log li.new { animation: none; } }
.who-grid { display: grid; gap: 8px; margin: 12px 0; }
@media (min-width: 720px) { .who-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wcard { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface2); }
.wcard h4 { margin: 0 0 4px; font-size: .98rem; }
.wcard p { margin: 0; font-size: .95rem; line-height: 1.5; }
.state { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--wh); font-size: .86rem; padding: 0 8px; border-radius: 6px; line-height: 1.7; margin-bottom: 4px; }
.state.ok { color: var(--good); background: var(--good-bg); }
.state.part { color: var(--warn); background: var(--warn-bg); }
.state.lost { color: var(--bad); background: var(--bad-bg); }
.state.ok::before { content: "✓"; } .state.part::before { content: "◐"; } .state.lost::before { content: "✕"; }
.matrix { display: grid; gap: 8px; }

/* decisions */
.dgroup h3 { margin-top: 32px; }
.dec { padding: 12px 16px; margin: 8px 0; border-radius: var(--r-sm); background: var(--surface); }
.dec .q { margin: 0; font-weight: var(--wm); }
.dec .q .dn { font-weight: var(--wh); color: var(--accent); margin-right: 6px; }
.dec .def { margin: 4px 0 0; font-size: .95rem; color: var(--ink2); }
.dec .def b { color: var(--ink); }
.seg { display: none; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.js .seg { display: flex; }
.seg button { min-height: 40px; min-width: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface2); cursor: pointer; font-size: .9rem; font-weight: var(--wm); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.seg button[aria-pressed="true"]::before { content: "✓ "; }
.reply { margin: 16px calc(-1 * var(--g)); padding: 12px var(--g); background: var(--accent-s); display: none; }
.js .reply { display: block; }
@media (min-width: 720px) { .reply { margin: 16px 0; border-radius: var(--r-md); padding: 16px 20px; } }
.reply p { margin: 0 0 8px; font-size: .92rem; font-weight: var(--wh); color: var(--accent); }
.reply output { display: block; font-family: var(--mono); font-size: .92rem; padding: 10px 12px; background: var(--surface); border-radius: var(--r-sm); overflow-wrap: anywhere; }
.reply .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gapcard { margin: 16px 0; border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.gapcard .gh { padding: 16px 16px 4px; }
.gapcard .gh h3 { margin: 0; }
.gapcard .cols { display: grid; gap: 0; }
@media (min-width: 900px) { .gapcard .cols { grid-template-columns: 1fr 1fr; } }
.gapcard .gap, .gapcard .pos { padding: 8px 16px 16px; }
.gapcard .pos { background: var(--accent-s); }
.gapcard h4 { margin: 8px 0; font-size: .9rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink2); }
.gapcard .pos h4 { color: var(--accent); }
.gapcard .seg { padding: 0 16px 16px; }

/* pending slot */
.slot { margin: 16px 0; padding: 16px 20px; border-radius: var(--r-md); background: var(--surface); border: 2px dashed var(--line2); }
.slot h3 { margin: 0 0 4px; }
.slot p { margin: 4px 0; }

/* words */
.gl { margin: 0; }
.gl div { padding: 10px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.gl dt { font-weight: var(--wh); }
.gl dd { margin: 2px 0 0; color: var(--ink2); }
.gl div:target { background: var(--accent-s); border-radius: 8px; padding-left: 8px; }

.foot { padding: 32px 0 16px; font-size: .88rem; color: var(--ink2); }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 45; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: .95rem; }
.toast[hidden] { display: none; }
.dg .nd rect.bgr { fill: var(--surface); stroke: none; }
.live .dg.focus .nd:not(.on) rect.bgr { opacity: 1; }
/* bar chart */
.chart { margin: 16px 0 24px; padding: 16px; background: var(--surface); border-radius: var(--r-md); }
.chart figcaption { font-weight: var(--wh); margin: 0 0 12px; }
.bars { display: grid; gap: 10px; }
.br { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.br .bl { font-size: .92rem; }
.br .bt { grid-column: 1 / -1; grid-row: 2; height: 14px; background: var(--surface2); border-radius: 7px; overflow: hidden; }
.br .bf { display: block; height: 100%; background: var(--accent); border-radius: 7px; }
.br .bv { font-weight: var(--wh); font-variant-numeric: tabular-nums; font-size: .95rem; }
.chart details.fold { background: var(--surface2); }
.chart details.fold .rt tbody tr { background: var(--surface); }
/* chips as written in the HTML (no JavaScript): a plain pill with the source inline */
b.chip { display: inline; min-height: 0; min-width: 0; margin: 0; padding: 1px 6px; border-radius: 6px; background: var(--cb); color: var(--cf); font-size: .7rem; font-weight: var(--wh); letter-spacing: .04em; line-height: 1.9; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.chip i.cs { font-style: normal; }
b.chip i.cs { font-size: 1.15em; font-weight: var(--wm); letter-spacing: 0; color: var(--ink); }
.chip.static { cursor: default; min-height: 0; margin: 0; }

/* ===== Observability site additions ===== */
:root {
  --s-log: #0b6577; --s-log-s: #d6f3f8; --s-metric: #9a4a00; --s-metric-s: #fdecd2;
  --s-span: #1d4ed8; --s-span-s: #e1e9fd; --s-profile: #b4123a; --s-profile-s: #fde4e9;
  --p-start: #1e40af; --p-start-s: #e1e9fd; --p-how: #9a4a00; --p-how-s: #fdecd2; --p-corr: #115e59; --p-corr-s: #d8f2ed;
  --p-checks: #5b21b6; --p-checks-s: #ece4fc; --p-controls: #9a3412; --p-controls-s: #fde6d6; --p-tested: #0f5f8a; --p-tested-s: #dcecf7;
  --p-open: #86198f; --p-open-s: #f6e0f8;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --s-log: #72dcef; --s-log-s: #0b2e36; --s-metric: #fbc677; --s-metric-s: #35240b; --s-span: #9dbaff; --s-span-s: #172552; --s-profile: #ff9fb4; --s-profile-s: #3d1522;
  --p-start: #9dbaff; --p-start-s: #172552; --p-how: #fbc677; --p-how-s: #35240b; --p-corr: #5eead4; --p-corr-s: #0a2e2b;
  --p-checks: #c9b8ff; --p-checks-s: #281b4c; --p-controls: #fdba74; --p-controls-s: #36200e; --p-tested: #8fd0ff; --p-tested-s: #0c2a40;
  --p-open: #f2b0fc; --p-open-s: #361541;
} }
:root[data-theme="dark"] {
  --s-log: #72dcef; --s-log-s: #0b2e36; --s-metric: #fbc677; --s-metric-s: #35240b; --s-span: #9dbaff; --s-span-s: #172552; --s-profile: #ff9fb4; --s-profile-s: #3d1522;
  --p-start: #9dbaff; --p-start-s: #172552; --p-how: #fbc677; --p-how-s: #35240b; --p-corr: #5eead4; --p-corr-s: #0a2e2b;
  --p-checks: #c9b8ff; --p-checks-s: #281b4c; --p-controls: #fdba74; --p-controls-s: #36200e; --p-tested: #8fd0ff; --p-tested-s: #0c2a40;
  --p-open: #f2b0fc; --p-open-s: #361541;
}
body[data-on="start"] { --accent: var(--p-start); --accent-s: var(--p-start-s); }
body[data-on="how"] { --accent: var(--p-how); --accent-s: var(--p-how-s); }
body[data-on="correlation"] { --accent: var(--p-corr); --accent-s: var(--p-corr-s); }
body[data-on="checks"] { --accent: var(--p-checks); --accent-s: var(--p-checks-s); }
body[data-on="controls"] { --accent: var(--p-controls); --accent-s: var(--p-controls-s); }
body[data-on="tested"] { --accent: var(--p-tested); --accent-s: var(--p-tested-s); }
body[data-on="open"] { --accent: var(--p-open); --accent-s: var(--p-open-s); }
body .screen { --accent: inherit; --accent-s: inherit; }
html:not(.js) .screen { display: block; }
.top .brand a { color: inherit; text-decoration: none; }
.top .brand .muted { font-weight: var(--wb); }
@media (max-width: 520px) { .top .brand .muted { display: none; } }
.screen h2 { scroll-margin-top: 16px; }
.pn { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 48px 0 8px; }
.pn .btn { min-height: 48px; }
.count { text-decoration: none; color: var(--ink); display: block; }
.count:hover { background: var(--surface3); }
.count.k-proposed .w, .count.k-proposed .n { color: var(--warn); }
.callout.note { background: var(--surface); }
.callout.warn p, .callout.note p { margin: 8px 0; }
.lose li::marker { color: var(--bad); }

/* signal colours: one per signal, everywhere */
.s-log { --sc: var(--s-log); --ss: var(--s-log-s); }
.s-metric { --sc: var(--s-metric); --ss: var(--s-metric-s); }
.s-span { --sc: var(--s-span); --ss: var(--s-span-s); }
.s-profile { --sc: var(--s-profile); --ss: var(--s-profile-s); }
.btn.sigbtn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sc); }
.btn.sigbtn[aria-pressed="true"] { background: var(--ss); color: var(--ink); outline-color: var(--sc); }

/* diagrams */
.dg .sb { font-size: 11.5px; fill: var(--ink2); }
.dg .nd.sigbox rect.fg { fill: var(--ss); stroke: var(--sc); }
.dg .eg.s-log, .dg .eg.s-metric, .dg .eg.s-span, .dg .eg.s-profile { stroke: var(--sc); }
.dg .el rect { fill: var(--surface); }
.flowsvg { max-width: 460px; }
.flowsvg .nd, .flowsvg .eg, .flowsvg .el { transition: opacity .3s; }
.flowsvg.focus [data-s]:not(.on) { opacity: .18; }
.flowsvg.focus .eg.on { stroke-width: 2.6; }
.flowsvg .dot { fill: var(--sc, var(--accent)); }
.caps .cap { margin: 8px 0 0; min-height: 3.3em; }
.dgw { padding: 8px 0; }

/* path explorer */
.pathsvg { max-width: 460px; }
.pathsvg .spine { stroke: var(--sc); stroke-width: 2; opacity: .5; }
.pathsvg .pc { fill: var(--ss); stroke: var(--sc); stroke-width: 1.6; }
.pathsvg .pn { font-size: 12px; font-weight: 600; fill: var(--sc); }
.pathsvg .pk { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; fill: var(--ink2); }
.pathsvg .pv { font-family: var(--mono); font-size: 12.5px; fill: var(--ink); transition: opacity .25s; }
.pathsvg.fading .pv { opacity: 0; }
.vt { margin: 16px 0 8px; }
.stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stops > li { margin: 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--surface2); border-left: 4px solid var(--sc); max-width: none; }
.stops .sk { margin: 0; font-size: .82rem; font-weight: var(--wh); letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.stops p { margin: 4px 0; }
.stops pre.code { background: var(--surface); }
.variant.enter { animation: rise .3s ease-out; }
@media (prefers-reduced-motion: reduce) { .variant.enter { animation: none; } .pathsvg .pv, .flowsvg * { transition: none !important; } }
html:not(.js) .variant[hidden] { display: block; }
html:not(.js) .pick, html:not(.js) .mklist { display: none; }

/* correlation */
.corrsvg { max-width: 440px; }
.corrsvg .cn rect.fg { fill: var(--surface2); stroke: var(--line2); }
.corrsvg .cn.on rect.fg { fill: var(--accent-s); stroke: var(--accent); stroke-width: 3; }
.corrsvg .ce { stroke-width: 2; transition: opacity .3s, stroke-width .3s; }
.corrsvg .ce.st-exact { stroke: var(--good); }
.corrsvg .ce.st-good { stroke: var(--plan); }
.corrsvg .ce.st-rough { stroke: var(--warn); }
.corrsvg.focus .ce:not(.on) { opacity: .15; }
.corrsvg.focus .ce.on { stroke-width: 3.2; }
.wcard p { margin: 4px 0; }
.legend li { display: flex; gap: 6px; align-items: center; font-size: .9rem; color: var(--ink2); }

/* mistakes */
.mklist { display: grid; gap: 8px; margin: 8px 0 16px; }
@media (min-width: 720px) { .mklist { grid-template-columns: 1fr 1fr; } }
.mk { text-align: left; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 0; background: var(--surface2); cursor: pointer; font-size: .95rem; line-height: 1.4; color: var(--ink); }
.mk:hover { background: var(--surface3); }
.mk[aria-pressed="true"] { background: var(--accent-s); outline: 2px solid var(--accent); outline-offset: -2px; font-weight: var(--wm); }
.mout { padding: 12px 16px; border-radius: var(--r-sm); background: var(--surface2); }
.mout pre.code { background: var(--surface); white-space: pre-wrap; overflow-wrap: anywhere; }
.mstep { margin: 0; }

/* sliders */
.sl { margin: 16px 0; }
.sl label { display: flex; justify-content: space-between; gap: 12px; font-weight: var(--wm); }
.sl output { font-variant-numeric: tabular-nums; font-weight: var(--wh); color: var(--accent); }
.sl input[type=range] { width: 100%; min-height: 40px; accent-color: var(--accent); }
.sl small { display: block; color: var(--ink2); font-size: .86rem; }
.cs-out, .bs-out { display: grid; gap: 8px; margin: 16px 0 8px; }
@media (min-width: 720px) { .cs-out, .bs-out { grid-template-columns: 1fr 1fr; } }
.res { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface2); }
.res .rl { margin: 0; font-size: .86rem; font-weight: var(--wh); color: var(--ink2); }
.res .rv { margin: 2px 0; font-size: 1.3rem; font-weight: var(--wh); font-variant-numeric: tabular-nums; }
.res .rn { margin: 0; font-size: .92rem; color: var(--ink2); line-height: 1.45; }
.res.bad { background: var(--bad-bg); } .res.bad .rv { color: var(--bad); }
.res.warn { background: var(--warn-bg); } .res.warn .rv { color: var(--warn); }
.res.good .rv { color: var(--good); }
.res.na .rv { color: var(--ink2); }
.pods { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.pods i { width: 16px; height: 16px; border-radius: 4px; background: var(--surface3); }
.pods i.on { background: var(--accent); }

/* spikes */
.spklist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.spk { padding: 12px 16px; border-radius: var(--r-sm); background: var(--surface2); max-width: none; }
.spk p { margin: 4px 0; }
.spk .sq { font-weight: var(--wm); }
.spk .sn { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-s); color: var(--accent); font-size: .8rem; font-weight: var(--wh); margin-right: 4px; }
.spk[hidden] { display: none; }

/* picks */
.opts { display: grid; gap: 12px; }
.opt { padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 2px solid transparent; }
.opt.rec { border-color: var(--accent); }
.opt h3 { margin: 0 0 8px; font-size: 1.06rem; }
.recb { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 6px; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; background: var(--accent-s); color: var(--accent); vertical-align: 2px; }
.oh { margin: 12px 0 0; font-size: .82rem; font-weight: var(--wh); letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }

/* weak spots */
.weak { list-style: none; padding: 0; margin: 0; }
.weak > li { max-width: none; }
.wn { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-s); color: var(--accent); font-size: .85rem; margin-right: 6px; }
.weak details.fold > summary > span { display: block; }
pre.code { max-width: 100%; }
.sim { overflow: hidden; }
.sim .simq { margin-top: 8px; }
.js .screen { display: block; }
/* grids never grow past the column: long code scrolls inside its own box */
.stops, .opts, .spklist, .mklist, .cs-out, .bs-out, .who-grid { grid-template-columns: minmax(0, 1fr); }
.stops > li, .opt, .spk, .res, .wcard, .mout, .variant { min-width: 0; }
@media (min-width: 720px) { .mklist, .cs-out, .bs-out { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .pathx { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 0 32px; align-items: start; }
  .pathx > figcaption, .pathx > .pick, .pathx > p.simq { grid-column: 1 / -1; }
  .pathx > .dgw { position: sticky; top: 16px; }
  .pathx .vt { margin-top: 8px; }
  .corr-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
}
