@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #182d32;
  --muted: #516568;
  --deep: #102e36;
  --teal: #096259;
  --rust: #a64b2a;
  --paper: #faf8f2;
  --rule: #c8cec5;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: clamp(1.15rem, 5vw, 4.5rem);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.12rem/1.65 var(--sans); }
[hidden] { display: none !important; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #b45820; outline-offset: 4px; }
.skip { position: absolute; left: .5rem; top: -9rem; z-index: 2; background: white; padding: .5rem; }
.skip:focus { top: .4rem; }
figure, h1, h2, h3, p { margin: 0; }
.mast { border-bottom: 1px solid var(--rule); }
.mast-in, .lead-inner, .jump>div { width: min(100%, 82rem); margin: auto; padding-inline: var(--gutter); }
.mast-in { min-height: 4.1rem; display: flex; align-items: center; gap: 1.1rem; }
.mast a { text-decoration: none; color: var(--ink); }
.brand { font-size: 1.7rem; font-weight: 800; letter-spacing: -.075em; }
.brand span { color: var(--rust); }
.mast-rule { height: 1.65rem; border-left: 1px solid var(--rule); }
.pub { font: italic 1.1rem var(--serif); }
.edition { margin-left: auto; color: var(--muted); font-size: .82rem; }
.lead { background: var(--deep); color: #fcf8ed; }
.lead-inner { display: grid; align-items: center; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 4vw, 4.5rem); padding-block: clamp(2.5rem, 6.5vw, 6.25rem); }
.dateline { color: #c6d9d6; font-size: .9rem; }
.byline span { margin-inline: .25rem; color: #a9c0be; }
h1 { margin-block: 1.15rem 1.55rem; font: normal clamp(3.2rem, 5.6vw, 5.35rem)/1.02 var(--serif); letter-spacing: -.056em; text-wrap: balance; }
.standfirst { font-size: clamp(1.06rem, 1.36vw, 1.28rem); line-height: 1.52; max-width: 36rem; }
.standfirst strong { color: #f2cba1; font-weight: 650; }
.dateline { display: flex; flex-wrap: wrap; gap: .22rem 1rem; font-size: .85rem; }
.dateline span { display: inline-block; }
.update-date { color: #f1cda7; }
.revision { border-left: 3px solid #a65532; margin: 0 0 1.5rem; padding: .1rem 0 .1rem 1rem; font-size: .91rem; line-height: 1.55; color: var(--muted); }
.revision h3 { margin: 0 0 .65rem; font: 650 1.02rem/1.4 var(--sans); letter-spacing: 0; }
.revision dl { margin: 0; }
.revision dl>div { display: grid; grid-template-columns: 6.2rem 1fr; gap: .3rem .7rem; margin-top: .5rem; }
.revision dt { color: var(--ink); font-weight: 600; }
.revision dd { margin: 0; }
.revision strong { color: var(--ink); }
@media (max-width: 510px) {
  .revision dl>div { display: block; margin-top: .65rem; }
}
.byline { margin-top: 1.6rem; font-size: .84rem; color: #d8e7e2; }
.cover img { display: block; width: 100%; height: clamp(15rem, 23.5vw, 21rem); object-fit: cover; }
.cover figcaption { padding-top: .55rem; color: #ccddd9; font-size: .78rem; }
.cover a { color: inherit; }
.jump { border-bottom: 1px solid var(--rule); }
.jump>div { display: flex; flex-wrap: wrap; align-items: stretch; column-gap: clamp(1rem, 3.5vw, 3.4rem); padding-block: .26rem; }
.jump a { display: inline-flex; align-items: center; min-height: 2.85rem; color: var(--ink); font-size: .91rem; font-weight: 620; }
.body { width: min(100% - 2 * var(--gutter), 49.5rem); margin: 0 auto; }
section { scroll-margin-top: 1.5rem; padding-block: clamp(2.9rem, 5vw, 4.85rem); border-bottom: 1px solid var(--rule); }
h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 500; text-wrap: balance; }
h2 { margin-bottom: 1.4rem; font-size: clamp(2.15rem, 4.3vw, 3.55rem); letter-spacing: -.052em; line-height: 1.08; }
h3 { margin: 2.2rem 0 .75rem; font-size: clamp(1.55rem, 3vw, 2.1rem); letter-spacing: -.035em; line-height: 1.18; }
section>p+p, section>figure+p, section>div+p, section>ol+p, section>details+p { margin-top: 1.15rem; }
.body p>a, .chronology a, .method a { font-size: .92em; font-weight: 570; }
.body code { font: .85em/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.anywhere { overflow-wrap: anywhere; }
.document { margin: 2rem 0; }
.document img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.document figcaption, .article-end { color: var(--muted); font-size: .91rem; }
.document figcaption { margin-top: .65rem; }
.chronology { padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.chronology li { display: grid; grid-template-columns: 4.35rem 1fr; gap: .65rem; border-bottom: 1px solid var(--rule); padding: .95rem 0; }
.chronology time { color: var(--rust); font-size: .9rem; font-weight: 700; }
.ledger, .daily { margin-top: 1.75rem; border: 1px solid var(--rule); background: #fffefa; }
.ledger-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding: clamp(1rem, 4vw, 1.9rem); color: #f9f8ec; background: var(--deep); }
.ledger-head p, .asof { color: #caddd5; font-size: .87rem; }
.ledger-head strong { display: block; margin-top: .3rem; font: 500 clamp(1.9rem, 5vw, 3.25rem)/1.12 var(--serif); letter-spacing: -.045em; font-variant-numeric: lining-nums tabular-nums; }
.ledger-head small { font: 550 .34em var(--sans); letter-spacing: .02em; }
.asof { line-height: 1.4; }
.ledger-content, .daily { padding: clamp(.8rem, 3.5vw, 1.8rem); }
.wallet-filter { display: flex; gap: .6rem 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; font-size: .88rem; }
.wallet-filter label { font-weight: 660; }
.wallet-filter input { min-width: 0; max-width: 100%; background: white; border: 1px solid #859691; border-radius: .2rem; padding: .55rem .7rem; font: inherit; color: var(--ink); }
#wallet-count { margin-left: auto; color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .96rem; }
td, th { padding: .63rem .15rem; text-align: right; border-bottom: 1px solid #d9ddd4; }
thead th { font-size: .8rem; color: var(--muted); font-weight: 650; }
th:first-child, td:first-child { text-align: left; }
.wallet-table td:first-child { padding-right: .7rem; overflow-wrap: anywhere; }
.wallet-table td+td { white-space: nowrap; }
.wallet-table a { text-decoration-color: #94b1a7; }
.small { color: var(--muted); font-size: .82rem; line-height: 1.55; margin-top: 1rem; }
#wallet-empty { font-size: .95rem; padding: 1rem 0 0; }
.route { margin-block: 1.7rem; border-block: 1px solid var(--rule); background: #f1f3eb; padding: clamp(1rem, 3.5vw, 2rem); }
.route figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .8rem; align-items: baseline; }
.route figcaption>span { color: var(--muted); font-size: .84rem; }
.route ol { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.route li { display: grid; grid-template-columns: 5.3rem 1fr auto; gap: .45rem 1rem; align-items: start; position: relative; padding: .65rem 0 .7rem 1.3rem; border-left: 2px solid #779f94; }
.route li::before { content: ""; position: absolute; left: -5px; top: 1.15rem; border-radius: 50%; width: 8px; height: 8px; background: var(--teal); }
.route time, .route li>a { font-size: .84rem; }
.route time { font-variant-numeric: tabular-nums; color: var(--muted); }
.route li strong { display: block; line-height: 1.35; }
.route li span { display: block; color: var(--muted); font-size: .9rem; }
.plot-head h3 { margin: 0; }
.plot-head p { font-size: .84rem; color: var(--muted); margin: .3rem 0 1.2rem; }
.modes { padding: 0; border: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.1rem; }
.modes legend { font-size: .85rem; margin-bottom: .35rem; color: var(--muted); }
.modes label { border: 1px solid #a8b6aa; padding: .28rem .62rem; border-radius: .2rem; font-size: .85rem; cursor: pointer; }
.modes input { margin: 0 .15rem 0 0; accent-color: var(--teal); }
.modes label:has(:checked) { background: #e0ebe2; border-color: var(--teal); }
#bars { display: grid; gap: .55rem; margin-block: 1rem 1.8rem; }
.plot-row { display: grid; grid-template-columns: 3.2rem 1fr 6.6rem; align-items: center; gap: .7rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.plot-row .track { height: .68rem; background: #ecebe3; }
.plot-row .bar { display: block; height: 100%; background: var(--rust); }
#bars[data-mode=in] .bar { background: var(--teal); }
#bars[data-mode=net] .bar { background: #475d77; }
.plot-row .amount { text-align: right; }
.daytx { border-bottom: 1px solid var(--rule); font-size: .99rem; }
.daytx summary { cursor: pointer; padding: .6rem 0; font-weight: 620; }
.daytx summary small { font-weight: 400; color: var(--muted); }
.daytx ul { padding-inline-start: 1.45rem; margin: 0 0 .8rem; font-size: .9rem; }
.method { padding-left: 1.65rem; }
.method li { padding-left: .25rem; margin-bottom: .85rem; }
.article-end { padding-block: 2.2rem 3.2rem; }
.article-end>a { display: inline-block; margin-top: 1rem; }
@media (max-width: 760px) {
  .lead-inner { grid-template-columns: 1fr; gap: 1.7rem; padding-block: 2.3rem 1.5rem; }
  .cover img { height: auto; aspect-ratio: 2.25; }
  h1 { max-width: 14ch; margin-block: .8rem 1.1rem; }
  .jump a { min-height: 2.25rem; font-size: .83rem; }
}
@media (max-width: 510px) {
  body { font-size: 1.025rem; }
  .mast-in { gap: .65rem; min-height: 3.4rem; }
  .brand { font-size: 1.45rem; }
  .pub { font-size: .96rem; }
  .edition { font-size: .7rem; }
  .ledger-head { gap: .65rem; }
  .asof br { display: none; }
  .asof br::after { content: " "; }
  .wallet-table { font-size: .78rem; }
  .wallet-table code { font-size: .92em; }
  .wallet-filter { display: grid; grid-template-columns: 1fr auto; gap: .35rem; }
  .wallet-filter input { grid-column: 1 / -1; grid-row: 2; }
  #wallet-count { grid-column: 2; grid-row: 1; }
  .chronology li { grid-template-columns: 3.55rem 1fr; }
  .route li { grid-template-columns: 1fr auto; padding-left: .85rem; }
  .route time { grid-column: 1 / -1; }
  .route li span { font-size: .77rem; }
  .day-table { font-size: clamp(.66rem, 2.8vw, .86rem); }
  .day-table th { font-size: inherit; }
  .day-table td, .day-table th { padding-inline: .1rem; }
  .plot-row { grid-template-columns: 2.6rem 1fr 5.1rem; gap: .4rem; font-size: .75rem; }
}
@media print {
  body { background: white; font-size: 10pt; }
  .mast, .jump, .wallet-filter, .modes, .article-end>a, .skip { display: none !important; }
  .lead { background: white; color: black; }
  .lead-inner, .body { width: 100%; padding-inline: 0; }
  .lead-inner { display: block; padding-block: 0; }
  .lead * { color: black; }
  .cover { max-width: 60%; }
  section { padding-block: 1.2rem; }
  h2, h3, figcaption { break-after: avoid; }
  tr, .route li { break-inside: avoid; }
}

.trace-result, .route-browser { padding: clamp(1rem,3vw,1.65rem); margin: 1.5rem 0; border: 1px solid var(--rule); background: #f0f3ea; }
.trace-result h3 { margin: 0 0 .8rem; }
.trace-result p+p { margin-top: .75rem; }
.wide-table { overflow-x: auto; background: #fffefa; margin: 1rem 0; padding: .5rem .8rem; border-block: 1px solid var(--rule); }
.wide-table table { min-width: 38rem; }
.wide-table td { font-variant-numeric: tabular-nums; }
.full-first { margin-top: 1.25rem; padding: 1rem 0; border-block: 1px solid var(--rule); }
.full-first>summary { cursor: pointer; font-weight: 660; }
.full-first p { margin: .6rem 0; }
.route-browser form,.route-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .7rem; margin: .4rem 0; }
.route-browser form label { width: 100%; font-size: .95rem; font-weight: 620; }
.route-browser form input { flex: 1 1 15rem; min-width: 0; }
.route-browser input,.route-browser select,.route-browser button { font: inherit; font-size: .9rem; border: 1px solid #90a29c; border-radius: 3px; padding: .4rem .55rem; background: #fffefa; color: var(--ink); max-width: 100%; }
.route-browser button { cursor: pointer; }
.route-browser button:disabled { opacity:.6; cursor: default; }
.route-browser form button { background: var(--deep); color: white; }
.route-tools { margin: .8rem 0; font-size: .85rem; }
#route-message:not(:empty) { border-left: 3px solid var(--rust); padding-left: .65rem; }
#route-detail { margin-top: 1rem; border-top: 1px solid var(--rule); font-size: .92rem; }
#route-detail h4 { font-family: ui-monospace, monospace; font-size: 1rem; margin: .8rem 0 .3rem; overflow-wrap: anywhere; }
.trace-transactions { margin-top: 1rem; }
.trace-transactions>p { color: var(--muted); font-size: .8rem; margin-top: .45rem; }
.trace-transactions ol { list-style: none; padding: 0; margin: .5rem 0; }
.trace-transactions li { display: grid; grid-template-columns: 7.75rem minmax(8rem,1fr) 9rem 4rem; align-items: baseline; gap: .3rem .55rem; padding: .45rem 0; border-top: 1px solid var(--rule); font-size: .85rem; }
.trace-transactions li strong { font-weight: 620; font-variant-numeric: tabular-nums; }
.trace-transactions li button { text-align: left; background: transparent; padding: .1rem 0; border: 0; color: var(--teal); text-decoration: underline; font: .82rem ui-monospace, monospace; }
@media(max-width:650px) {
  .trace-transactions li { grid-template-columns: minmax(6.6rem,1fr) minmax(7.6rem,1.1fr); font-size: .8rem; }
  .wide-table { padding-inline: .3rem; }
}

.where-plot { padding: 1rem 0; margin: .8rem 0; border-block: 1px solid var(--rule); font-size: .92rem; }
.where-bar { display: grid; grid-template-columns: 14.353303fr 13.427293fr 72.219405fr; height: 1.25rem; margin: .75rem 0; }
.where-plot i { display: block; }
.where-plot i:first-child, .where-plot li:first-child i { background: #126758; }
.where-bar i:nth-child(2), .where-plot li:nth-child(2) i { background: repeating-linear-gradient(125deg,#d2c7a9 0 4px,#827963 4px 6px); }
.where-bar i:nth-child(3), .where-plot li:nth-child(3) i { background: #a14a2d; }
.where-plot ul { margin: 0; padding: 0; list-style: none; }
.where-plot li { display: flex; gap: .55rem; align-items: baseline; line-height: 1.45; margin: .4rem 0; }
.where-plot li i { flex: 0 0 .7rem; height: .7rem; }
