/* The post "A network without a manager" (/blog/agent-network/, /en/blog/agent-network/).
   The article keeps its own type, palette and figures; every rule is scoped under .anb, the post's <main>.
   Sizes hang off --anb-rem (18px, 16.5px on phones), which stands in for the root size the article was drawn at. */

/* Keep what the site sets on <body> for its own pages out of the article. */
.anb { color-scheme: light; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; text-rendering: auto; }
/* The site sizes generated boxes by their border too; the article does that for elements only. */
.anb *::before, .anb *::after { box-sizing: content-box; }
/* The site paints selected text in its theme colours, which are wrong for the article (always light, an --ink of
   its own). Here the highlight is the usual light blue and the text keeps its colour, as the article had it. */
.anb ::selection { background-color: rgba(128, 188, 254, 0.6); color: currentColor; }
/* The site's focus ring is a theme colour as well; the article keeps the browser's own ring. */
:where(.anb) :focus-visible { outline: revert; outline-offset: revert; border-radius: revert; }
/* The site's video tile, under the byline: the article's own rule colour and UI face, since the page is always light. */
.anb .video-tile { margin: 1.6em 0 1.9em; border-color: var(--rule); background: var(--box); font-family: var(--sans); }
.anb .video-play:hover { text-decoration: none; }

.anb {
  --bg: #fbfaf7; --ink: #1d1d1b; --muted: #6b6a65; --rule: #e2dfd6;
  --blue: #2a78d6; --orange: #eb6834; --aqua: #1baf7a; --grey: #a9a69c; --box: #f1eee6;
  --col: 700px; --side: 250px; --gap: 44px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.anb * { box-sizing: border-box; }
.anb { --anb-rem: 18px; font-size: var(--anb-rem); -webkit-text-size-adjust: 100%; }
.anb { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); line-height: 1.62; }
.anb:lang(zh) { font-family: var(--sans); line-height: 1.85; }
.anb a { color: var(--blue); text-decoration: none; }
.anb a:hover { text-decoration: underline; }
.anb code, .anb pre { font-family: var(--mono); font-size: .86em; }
.anb code { background: var(--box); padding: .05em .3em; border-radius: 3px; }
.anb .seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.anb .ctl button { font: inherit; color: var(--muted); background: transparent; border: 0; padding: 4px 10px; cursor: pointer; }
.anb .ctl button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.anb .anb-page { max-width: calc(var(--col) + var(--gap) + var(--side)); margin: 0 auto; padding: 0 24px 96px; }
.anb article { max-width: var(--col); counter-reset: sn; }
.anb header { padding: 56px 0 8px; }
.anb .kicker { font-family: var(--sans); font-size: calc(.74 * var(--anb-rem)); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.anb h1 { font-family: var(--sans); font-size: calc(2.3 * var(--anb-rem)); line-height: 1.15; margin: .35em 0 .4em; letter-spacing: -.01em; }
.anb .standfirst { font-size: calc(1.16 * var(--anb-rem)); line-height: 1.5; margin: 0 0 1em; }
.anb .byline { font-family: var(--sans); font-size: calc(.78 * var(--anb-rem)); color: var(--muted); }
.anb h2 { font-family: var(--sans); font-size: calc(1.42 * var(--anb-rem)); line-height: 1.28; margin: calc(3.2 * var(--anb-rem)) 0 calc(.8 * var(--anb-rem)); letter-spacing: -.005em; }
.anb h3 { font-family: var(--sans); font-size: calc(1.06 * var(--anb-rem)); line-height: 1.35; margin: calc(2.1 * var(--anb-rem)) 0 calc(.5 * var(--anb-rem)); }
.anb p { margin: 0 0 1.05em; }
.anb .lead { font-size: calc(1.04 * var(--anb-rem)); }
.anb ul, .anb ol { margin: 0 0 1.05em; padding-left: 1.3em; }
.anb li { margin-bottom: .5em; }
.anb .claims { padding-left: 1.5em; }
.anb .claims li { margin-bottom: .85em; }
.anb .claims li::marker { font-family: var(--sans); font-weight: 700; color: var(--blue); }
.anb .jump { font-family: var(--sans); font-size: calc(.74 * var(--anb-rem)); white-space: nowrap; }

.anb .howto, .anb .take { font-family: var(--sans); font-size: calc(.8 * var(--anb-rem)); line-height: 1.55; border-radius: 6px; padding: .7em .95em; margin: 1.3em 0; }
.anb .howto p, .anb .take p { margin: 0; }
.anb .howto { background: var(--box); }
.anb .take { border-left: 4px solid var(--blue); background: #eef4fc; font-size: calc(.86 * var(--anb-rem)); }

/* sidenotes */
.anb .sn { counter-increment: sn; }
.anb .sn::before { content: counter(sn); font-family: var(--sans); font-size: .66em; vertical-align: super; line-height: 0; color: var(--blue); padding: 0 1px 0 2px; cursor: pointer; }
.anb .sn > span { float: right; clear: right; width: var(--side); margin: .2em calc(-1 * (var(--side) + var(--gap))) .9em 0; font-family: var(--sans); font-size: calc(.74 * var(--anb-rem)); line-height: 1.5; color: var(--muted); }
.anb .sn > span::before { content: counter(sn) ". "; color: var(--blue); }

.anb a.cite { color: inherit; }
.anb .refs li:target { background: rgba(42, 120, 214, .12); }

/* figures */
.anb .fig { margin: 1.9em 0 2.1em; font-family: var(--sans); }
.anb .fig-title { font-size: calc(.92 * var(--anb-rem)); font-weight: 700; line-height: 1.35; margin: 0 0 .7em; }
.anb .fig figcaption, .anb .fig .cap { font-size: calc(.74 * var(--anb-rem)); line-height: 1.5; color: var(--muted); margin-top: .8em; }
.anb .chart { min-height: 40px; }
.anb .ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: calc(.72 * var(--anb-rem)); color: var(--muted); margin: 0 0 .7em; }
.anb .ctl button + button { border-left: 1px solid var(--rule); }
.anb .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: calc(.72 * var(--anb-rem)); color: var(--muted); margin: 0 0 .7em; }
.anb .legend i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; border-radius: 2px; }
.anb .sw-blue, .anb .bar.blue { background: var(--blue); }
.anb .sw-grey, .anb .bar.grey { background: var(--grey); }
.anb .sw-aqua, .anb .bar.aqua { background: var(--aqua); }
.anb .sw-yellow, .anb .bar.yellow { background: #eda100; }
.anb .sw-magenta, .anb .bar.magenta { background: #e87ba4; }
.anb .sw-hollow, .anb .bar.hollow { background: transparent; border: 2px solid var(--grey); }
.anb .sw-tick { width: 2px !important; background: var(--ink); border-radius: 0 !important; }
.anb .bar.faint { opacity: .4; }
/* line swatches: the colours of the lines in the charts */
.anb .legend i.sw-l { width: 16px; height: 0; border-top: 2.5px solid var(--blue); border-radius: 0; vertical-align: 4px; }
.anb .legend i.sw-l4 { border-top-color: #6da7ec; }
.anb .legend i.sw-l8 { border-top-color: #2a78d6; }
.anb .legend i.sw-l16 { border-top-color: #184f95; }
.anb .legend i.sw-l32 { border-top-color: #0d366b; }
.anb .legend i.sw-lnat { border-top-color: var(--orange); }
.anb .legend i.sw-lagensh { border-top-color: var(--aqua); }
.anb .legend i.sw-lsingle { border-top: 1.5px solid var(--grey); }
.anb .legend i.sw-lsingle2 { border-top-color: var(--grey); }
.anb .legend i.sw-band { width: 16px; background: rgba(169, 166, 156, .3); }
.anb .legend i.sw-gdot { width: 8px; height: 8px; background: #898781; border-radius: 50%; vertical-align: 0; }

.anb .bars .grp { margin-bottom: 1.1em; }
.anb .bars .grp:last-child { margin-bottom: 0; }
.anb .bars .row { margin-bottom: .5em; }
.anb .bars .lab { font-size: calc(.76 * var(--anb-rem)); line-height: 1.35; margin-bottom: 2px; }
.anb .bars .lab .sub { color: var(--muted); }
.anb .bars .track { position: relative; height: 18px; margin-right: 104px; background: linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat; }
.anb .bars .bar { position: absolute; top: 0; height: 18px; border-radius: 2px; }
.anb .bars .tick { position: absolute; top: -3px; width: 2px; height: 24px; background: var(--ink); }
.anb .bars .tick::after { content: ""; position: absolute; inset: 0 -7px; }
.anb .bars .val { position: absolute; top: 0; line-height: 18px; padding-left: 6px; font-size: calc(.76 * var(--anb-rem)); font-weight: 600; white-space: nowrap; }

/* small multiples */
.anb .pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 30px; }
.anb .panel { min-width: 0; }
.anb .panel-title { font-size: calc(.8 * var(--anb-rem)); font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.anb .panel-title .sub { font-weight: 400; font-size: calc(.7 * var(--anb-rem)); color: var(--muted); }
.anb .panel svg { display: block; width: 100%; overflow: visible; touch-action: pan-y; }
.anb svg text { font-family: var(--sans); fill: var(--ink); }
.anb svg .mut { fill: var(--muted); }
.anb svg .pv { font-size: 10.5px; font-weight: 600; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; stroke-linejoin: round; }
.anb svg .hit { fill: transparent; cursor: crosshair; }
.anb svg .dot-hit { fill: transparent; }

.anb pre.netview { background: #20201e; color: #e9e6dc; padding: 14px 16px; border-radius: 6px; overflow-x: auto; font-size: calc(.68 * var(--anb-rem)); line-height: 1.5; margin: 0; }
.anb pre.netview .vh { color: #9ec3f3; }
.anb pre.netview .vt { color: #f0a47c; }

.anb .eq { font-family: var(--serif); font-size: calc(1.12 * var(--anb-rem)); text-align: center; margin: 1.2em 0; }
.anb .tbl-wrap { overflow-x: auto; }
.anb table.tbl { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: calc(.74 * var(--anb-rem)); line-height: 1.45; }
.anb .tbl th, .anb .tbl td { text-align: left; vertical-align: top; padding: .45em .6em; border-bottom: 1px solid var(--rule); }
.anb .tbl th { font-weight: 700; border-bottom: 2px solid var(--ink); }
.anb .tbl td.num, .anb .tbl th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.anb .tbl tr.sep td { border-top: 1px solid var(--grey); }
.anb details.more { margin: 1.4em 0; font-family: var(--sans); }
.anb details.more > summary { cursor: pointer; font-size: calc(.82 * var(--anb-rem)); font-weight: 700; color: var(--blue); padding: .3em 0; }
.anb details.more[open] > summary { margin-bottom: .6em; }
.anb .fig details.more { margin: .8em 0 0; }
.anb .fig details.more > summary { font-size: calc(.74 * var(--anb-rem)); font-weight: 600; }
.anb .badge { display: inline-block; font-size: calc(.66 * var(--anb-rem)); font-weight: 700; padding: 0 .5em; border-radius: 9px; margin-right: .3em; color: #fff; }
.anb .badge.s { background: #2e8b57; } .anb .badge.m { background: #c79a1b; } .anb .badge.w { background: var(--grey); }
.anb .tbl-note { font-size: calc(.72 * var(--anb-rem)); line-height: 1.5; color: var(--muted); margin: .7em 0 0; }
.anb ul.qs { padding-left: 1.15em; }
.anb ul.qs li { margin-bottom: .7em; }
.anb .refs { font-family: var(--sans); font-size: calc(.74 * var(--anb-rem)); line-height: 1.5; padding-left: 2em; }
.anb .refs li { margin-bottom: .3em; word-break: break-word; }
.anb footer { font-family: var(--sans); font-size: calc(.72 * var(--anb-rem)); color: var(--muted); margin-top: calc(3 * var(--anb-rem)); border-top: 1px solid var(--rule); padding-top: calc(1 * var(--anb-rem)); }

.anb #tip { position: fixed; z-index: 50; display: none; max-width: min(380px, calc(100vw - 16px)); padding: 7px 10px; border-radius: 6px; background: #fff; color: var(--ink); border: 1px solid var(--rule); box-shadow: 0 3px 14px rgba(29, 29, 27, .13); font-family: var(--sans); font-size: calc(.7 * var(--anb-rem)); line-height: 1.5; pointer-events: none; }
.anb #tip .ct-h { font-weight: 700; margin-bottom: 2px; }
.anb #tip .ct-r { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.anb #tip .ct-r i { flex: none; width: 12px; height: 0; border-top: 2.5px solid; }
.anb #tip .ct-r b { margin-left: auto; padding-left: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.anb #tip .ct-n { color: var(--muted); }

@media (min-width: 1100px) {
  .anb .fig.wide, .anb details.more.wide { width: calc(var(--col) + var(--gap) + var(--side)); clear: both; }
}
@media (max-width: 1099px) {
  .anb .anb-page { max-width: calc(var(--col) + 48px); }
  .anb .sn > span { display: none; float: none; width: auto; margin: .5em 0; padding: .5em .7em; border-left: 3px solid var(--blue); background: var(--box); }
  .anb .sn.open > span { display: block; }
}
@media (max-width: 680px) {
  .anb .pgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .anb { --anb-rem: 16.5px; font-size: var(--anb-rem); }
  .anb h1 { font-size: calc(1.8 * var(--anb-rem)); }
  .anb .bars .track { margin-right: 92px; }
}
.anb .dfig .dsvg, .anb .stepfig .dsvg{display:block;width:100%;height:auto}.anb .dsvg text{font-family:var(--sans)}.anb .stepnav{display:none;align-items:center;gap:8px;margin:0 0 .6em;font-size:calc(.78 * var(--anb-rem))}.anb .stepfig.js .stepnav{display:flex}.anb .stepnav button{font:inherit;color:var(--muted);background:#fff;border:1px solid var(--rule);border-radius:6px;padding:3px 11px;cursor:pointer}.anb .stepnav .dots{display:flex;gap:5px}.anb .stepnav .dots button{width:28px;padding:3px 0;border-radius:50%}.anb .stepnav button[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:#fff}.anb .stepfig .frame{margin-bottom:1.2em}.anb .stepfig.js .frame{display:none;margin-bottom:0}.anb .stepfig.js .frame.on{display:block}.anb .stepfig .fh{font-weight:700;font-size:calc(.86 * var(--anb-rem));margin:.2em 0 .3em}.anb .stepfig .frame p{font-size:calc(.84 * var(--anb-rem));line-height:1.6;margin:.35em 0}
