/* /chain.html: loss timeline + block strip. Generated once from the approved preview (17 Nov 2026) and kept by hand.
   Uses the site's tokens (style.css); everything is scoped to .chain-page. */
.chain-page { --spike: #B42318; --blk: #102318; --blk-ink: #F4F7F3; --blk-fill: #B42318; --brush: rgba(16,35,24,.08); --scrim: rgba(16,35,24,.45); --bs: 138px; --logo-bg: #FFFFFF; --logo-ink: #102318; --s1: #2A78D6; --s2: #D99400; --s3: #D93A3A; --s4: #5E0F1F; --f1: #1F5FB0; --f2: #8A5A00; --f3: #B42318; --f4: #6E1420; --f4-ink: #F4F7F3; width: min(1180px, 100% - 2rem); margin: 2rem auto 3.5rem; display: flex; flex-direction: column; gap: 26px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chain-page { --spike: #F07A69; --blk: #1E2E25; --blk-ink: #E4ECE5; --blk-fill: #A2331F; --brush: rgba(228,236,229,.10); --scrim: rgba(0,0,0,.6); --s1: #4C94EC; --s2: #E8BC2A; --s3: #F0605D; --s4: #FFDAD4; --f1: #255FA8; --f2: #7A5200; --f3: #A2331F; --f4: #FFDAD4; --f4-ink: #102318; } }
:root[data-theme="dark"] .chain-page { --spike: #F07A69; --blk: #1E2E25; --blk-ink: #E4ECE5; --blk-fill: #A2331F; --brush: rgba(228,236,229,.10); --scrim: rgba(0,0,0,.6); --s1: #4C94EC; --s2: #E8BC2A; --s3: #F0605D; --s4: #FFDAD4; --f1: #255FA8; --f2: #7A5200; --f3: #A2331F; --f4: #FFDAD4; --f4-ink: #102318; }
.chain-page [hidden] { display: none !important; }
.chain-page a { color: var(--ink); }
.chain-page .cm-reports { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.chain-page .cm-reports article { border-top: 1.5px solid var(--rule-soft); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; max-width: 72ch; }
.chain-page .cm-reports .meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chain-page .cm-reports h4 { font-family: var(--font-display); font-size: 14px; font-weight: 800; margin: 0 0 3px; }
.chain-page .cm-reports ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.chain-page .cm-reports a, .chain-page td a { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.chain-page td a { font-weight: 600; overflow-wrap: normal; }
.chain-page * { box-sizing: border-box; }
.chain-page h1, .chain-page h2, .chain-page h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
.chain-page h1 { font-size: clamp(1.7rem, 4.2vw, 2.5rem); font-weight: 900; }
.chain-page h2 { font-size: 1.25rem; font-weight: 800; }
.chain-page h3 { font-size: 1rem; font-weight: 800; }
.chain-page p { margin: 0; }
.chain-page button, .chain-page select { font-family: var(--font-body); }
.chain-page :focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.chain-page .head { display: flex; flex-direction: column; gap: 8px; }
.chain-page .head p { color: var(--muted); max-width: 65ch; }
.chain-page .map { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.chain-page .controls { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.chain-page .group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chain-page .group-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.chain-page .chip { font-size: 14px; font-weight: 600; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--rule-soft); border-radius: var(--r-ctl); background: var(--bg-raised); color: var(--ink); cursor: pointer; }
.chain-page .chip:hover { border-color: var(--ink); }
.chain-page .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chain-page .jump { font-size: 14px; font-weight: 600; min-height: 36px; padding: 0 8px; border: 1.5px solid var(--rule-soft); border-radius: var(--r-ctl); background: var(--bg-raised); color: var(--ink); }
.chain-page .sub { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-content: space-between; align-items: baseline; }
.chain-page .sub p { font-size: 13px; color: var(--muted); }
.chain-page .timeline { position: relative; min-width: 0; }
.chain-page .timeline svg { display: block; width: 100%; touch-action: pan-y; cursor: crosshair; }
.chain-page .tl-grid { stroke: var(--rule-soft); stroke-width: 1; }
.chain-page .tl-base { stroke: var(--faint); stroke-width: 1.5; }
.chain-page .tl-tick { stroke: var(--faint); stroke-width: 1; }
.chain-page .tl-ylab, .chain-page .tl-xlab { font: 500 11px var(--font-body); fill: var(--muted); font-variant-numeric: tabular-nums; }
.chain-page .tl-ylab { text-anchor: end; dominant-baseline: middle; }
.chain-page .tl-xlab { text-anchor: middle; }
.chain-page .tl-stem { stroke: var(--spike); stroke-width: 2; }
.chain-page .tl-cap { fill: var(--spike); stroke: var(--bg); stroke-width: 1.5; }
.chain-page .tl-ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.chain-page .tl-ev { fill: var(--bg-raised); stroke: var(--accent-ink); stroke-width: 2; }
.chain-page .tl-lab { font: 700 12px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.chain-page .tl-brush { fill: var(--brush); stroke: var(--ink); stroke-width: 1.5; }
.chain-page .tl-now { fill: var(--green); stroke: var(--ink); stroke-width: 1.5; }
.chain-page .sp.is-dim { opacity: .14; }
.chain-page .sp.is-hot .tl-stem { stroke-width: 4; }
.chain-page .sp.is-hot .tl-cap { stroke: var(--ink); stroke-width: 2; }
.chain-page .tip { position: absolute; z-index: 5; max-width: 250px; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 6px; padding: 8px 10px; font-size: 13px; line-height: 1.35; }
.chain-page .tip b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.chain-page .tip i { display: block; font-style: normal; opacity: .8; }
.chain-page .keys { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); align-items: center; }
.chain-page .keys span { display: inline-flex; align-items: center; gap: 7px; }
.chain-page .k { display: inline-block; flex: none; width: 10px; height: 10px; }
.chain-page .k.loss { background: var(--spike); }
.chain-page .k.rep { background: var(--spike); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); margin: 0 3px; }
.chain-page .k.ev { background: var(--bg-raised); box-shadow: inset 0 0 0 2px var(--accent-ink); }
.chain-page .k.win { width: 18px; background: var(--brush); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chain-page .strip { position: relative; display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; padding: 8px 6px 16px; border-block: 1.5px solid var(--rule-soft); cursor: grab; scrollbar-width: thin; }
.chain-page .strip.is-drag { cursor: grabbing; user-select: none; }
.chain-page .blk { flex: none; width: var(--bs); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chain-page .blk-h { height: 20px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.chain-page .blk-box { position: relative; width: var(--bs); height: var(--bs); border: 0; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--blk); color: var(--blk-ink); padding: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.chain-page .blk-fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--blk-fill); }
.chain-page .blk-amt, .chain-page .blk-name, .chain-page .blk-cat { position: relative; }
.chain-page .blk-amt { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chain-page .blk-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.chain-page .blk-cat { margin-top: auto; font-size: 11px; font-weight: 500; opacity: .85; }
.chain-page .blk.report .blk-box { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.chain-page .blk .blk-box:focus-visible, .chain-page .blk.is-hot .blk-box { outline: 2.5px solid var(--ink); outline-offset: 3px; }
.chain-page .blk.now .blk-box { background: var(--green); color: var(--green-ink); cursor: default; }
.chain-page .blk-date { font-size: 13px; font-weight: 600; margin-top: 4px; white-space: nowrap; }
.chain-page .blk-ago { font-size: 12px; color: var(--muted); margin-top: -5px; white-space: nowrap; }
.chain-page .gap { flex: none; position: relative; width: 48px; height: calc(26px + var(--bs)); }
.chain-page .gap::before { content: ""; position: absolute; left: 0; right: 0; top: calc(26px + var(--bs) / 2 - 1px); height: 2px; background: var(--day); }
.chain-page .gap span { position: absolute; left: 0; right: 0; top: calc(26px + var(--bs) / 2 - 21px); text-align: center; font-size: 11px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chain-page .gap.has-year { width: 78px; }
.chain-page .gap.has-year span { right: 30px; }
.chain-page .gap.first::before { display: none; }
.chain-page .gap .yr { position: absolute; right: 12px; top: 0; bottom: 0; border-left: 2px dashed var(--faint); }
.chain-page .gap .yr b { position: absolute; top: 0; right: 8px; font-size: 12px; font-weight: 700; color: var(--ink); }
.chain-page .badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--rule-soft); color: var(--muted); white-space: nowrap; }
.chain-page .badge.ok { border-color: var(--accent-ink); color: var(--accent-ink); }
.chain-page .ledger { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chain-page .ledger > p { color: var(--muted); font-size: 15px; max-width: 65ch; }
.chain-page .table-wrap { overflow-x: auto; }
.chain-page table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.chain-page th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.chain-page td { padding: 9px 10px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.chain-page th.num, .chain-page td.num { text-align: right; }
.chain-page td.date, .chain-page td.num { white-space: nowrap; }
.chain-page .linklike { font: inherit; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.chain-page dialog.sheet { border: 0; padding: 0; margin: 0 0 0 auto; width: min(430px, 100%); max-width: 100%; height: 100%; max-height: 100%; background: var(--bg-raised); color: var(--ink); border-left: 1.5px solid var(--ink); }
.chain-page dialog.sheet::backdrop { background: var(--scrim); }
.chain-page .sheet-in { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px calc(22px + env(safe-area-inset-bottom, 0px)); min-height: 100%; }
.chain-page .sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chain-page .cm-eyebrow { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.chain-page .close { flex: none; width: 40px; height: 40px; border: 1.5px solid var(--rule-soft); border-radius: var(--r-ctl); background: var(--bg-raised); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.chain-page .amount { font-family: var(--font-display); font-weight: 900; font-size: 2.3rem; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.chain-page .amount small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.chain-page .facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.chain-page .facts dt { color: var(--muted); font-size: 13px; font-weight: 600; padding-top: 2px; }
.chain-page .facts dd { margin: 0; min-width: 0; }
.chain-page .facts dd small { display: block; color: var(--muted); font-size: 13px; }
.chain-page .sheet-nav { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.chain-page .sheet-nav .chip { flex: 1; min-height: 44px; }
.chain-page .cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl); background: var(--green); color: var(--green-ink); font-weight: 700; text-decoration: none; }
.chain-page .sp[data-tier="1"] .tl-stem { stroke: var(--s1); }
.chain-page .sp[data-tier="1"] .tl-cap { fill: var(--s1); }
.chain-page .sp[data-tier="2"] .tl-stem { stroke: var(--s2); }
.chain-page .sp[data-tier="2"] .tl-cap { fill: var(--s2); }
.chain-page .sp[data-tier="3"] .tl-stem { stroke: var(--s3); }
.chain-page .sp[data-tier="3"] .tl-cap { fill: var(--s3); }
.chain-page .sp[data-tier="4"] .tl-stem { stroke: var(--s4); }
.chain-page .sp[data-tier="4"] .tl-cap { fill: var(--s4); }
.chain-page .blk-fill { box-shadow: inset 0 2px 0 color-mix(in srgb, var(--blk-ink) 40%, transparent); }
.chain-page .blk[data-tier="1"] .blk-fill { background: var(--f1); }
.chain-page .blk[data-tier="2"] .blk-fill { background: var(--f2); }
.chain-page .blk[data-tier="3"] .blk-fill { background: var(--f3); }
.chain-page .blk[data-tier="4"] .blk-fill { background: var(--f4); }
.chain-page .blk[data-tier="4"] .blk-box { color: var(--f4-ink); }
.chain-page .k.t1 { background: var(--s1); }
.chain-page .k.t2 { background: var(--s2); }
.chain-page .k.t3 { background: var(--s3); }
.chain-page .k.t4 { background: var(--s4); }
.chain-page .k.rep { background: var(--s3); }
.chain-page .cm-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 28px; min-width: 28px; max-width: 74px; padding: 4px 6px; border-radius: 6px; background: var(--logo-bg); color: var(--logo-ink); font-family: var(--font-display); font-weight: 800; font-size: 12px; line-height: 1; }
.chain-page .cm-logo img { display: block; height: 100%; width: auto; max-width: 62px; object-fit: contain; }
.chain-page .cm-logo.sm { height: 22px; min-width: 22px; max-width: 58px; padding: 3px 4px; border-radius: 5px; font-size: 10px; border: 1px solid var(--rule-soft); }
.chain-page .cm-logo.sm img { max-width: 50px; }
.chain-page .cm-logo.lg { height: 40px; min-width: 40px; max-width: 110px; padding: 6px 8px; border: 1px solid var(--rule-soft); font-size: 15px; }
.chain-page .cm-logo.lg img { max-width: 94px; }
.chain-page .blk-logo { position: relative; margin-bottom: 3px; }
.chain-page .tl-logos { position: absolute; inset: 0; pointer-events: none; }
.chain-page .tl-logos .cm-logo { position: absolute; }
.chain-page .name-cell { display: flex; align-items: center; gap: 8px; }
.chain-page .blk.short .blk-box { outline: 2px solid var(--ink); outline-offset: 3px; }
.chain-page .sheet-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.chain-page .report { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.chain-page .report h3 { font-size: 14px; margin-bottom: 3px; }
.chain-page .report ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.chain-page .report a { color: var(--ink); text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.chain-page .kind { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--rule-soft); border-radius: 999px; padding: 0 6px; margin-left: 6px; white-space: nowrap; }
.chain-page .marks-note { font-size: 13px; color: var(--muted); max-width: 75ch; }
@media (max-width: 600px) {
  .chain-page { --bs: 126px; }
  .chain-page .col-type, .chain-page .col-block { display: none; }
  .chain-page dialog.sheet { margin: auto 0 0 0; width: 100%; height: auto; max-height: 88%; border-left: 0; border-top: 1.5px solid var(--ink); }
  .chain-page .sheet-in { min-height: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .chain-page .strip.smooth { scroll-behavior: smooth; }
}
.chain-page .cm-h3 { font-size: 1rem; font-weight: 800; }
/* the same map on the home page */
.chain-page.chain-embed { width: auto; margin: clamp(2.5rem, 5vw, 3.75rem) 0 0; padding: 1.6rem 0 clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--rule-soft); gap: 16px; }
.chain-embed #cats, .chain-embed label[for="jump"], .chain-embed #jump { display: none; }
.chain-page .cm-static { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.chain-page .cm-static span { color: var(--muted); }
.chain-page .head { display: flex; flex-direction: column; gap: 8px; }
