/* 1SHOT · oneshot — receipts for one-prompt claims */
@font-face { font-family: "Familjen"; src: url("../assets/fonts/Familjen.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Spline Mono"; src: url("../assets/fonts/SplineMono.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../assets/fonts/Literata.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../assets/fonts/Literata-Italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --plum: #221A2E; --plum2: #2E2440; --plum3: #3B3050;
  --cream: #F6F3EA; --page: #EEEBF2; --paper: #FFFEFB;
  --ink: #221A2E; --muted: #6B6478; --line: #DAD4E3; --soft: #F6F3FA;
  --yellow: #FFD23F; --yellow2: #F2C200;
  --good: #1E7F5C; --bad: #B42318; --blue: #3F6FD8; --amber: #B7791F;
  --sans: "Familjen", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --w: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.55 var(--sans); overflow-x: hidden; }
body.locked { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .88em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 2px solid transparent;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14.5px; border-radius: 8px; }
.btn.yellow { background: var(--yellow); color: var(--plum); box-shadow: 0 3px 0 var(--yellow2); }
.btn.yellow:hover { background: #FFDB66; }
.btn.line { border-color: rgba(246, 243, 234, .45); color: var(--cream); }
.btn.line:hover { border-color: var(--cream); background: rgba(246, 243, 234, .06); }
.btn.ink { background: var(--plum); color: var(--cream); }
.btn.ink:hover { background: var(--plum3); }
.btn.ink:disabled, .btn.line-dark:disabled { opacity: .4; cursor: not-allowed; }
.btn.line-dark { border-color: var(--line); background: #fff; color: var(--ink); }
.btn.line-dark:hover { border-color: var(--ink); }
.linkish { background: none; border: 0; padding: 4px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--yellow2); text-decoration-thickness: 2px; cursor: pointer; }

/* ---------------------------------------------------------------- receipts */
.receipt { position: relative; background: var(--paper); color: var(--ink); font: 400 13px/1.5 var(--mono); padding: 22px 22px 30px; letter-spacing: -.01em; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px;
  background: linear-gradient(-45deg, transparent 6px, var(--paper) 6px) 0 0 / 12px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--paper) 6px) 0 0 / 12px 10px repeat-x; }
.receipt p { margin: 0; }
.r-c { text-align: center; }
.r-big { font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.r-dim { color: var(--muted); }
.r-rule { border-top: 1.5px dashed #C9C2D4; margin: 9px 0 !important; height: 0; }
.r-task { font-weight: 600; margin-bottom: 4px !important; }
.r-l { display: flex; align-items: baseline; gap: 0; }
.r-l > span { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.r-l::after { content: ""; order: 1; flex: 1 1 12px; min-width: 12px; border-bottom: 1.5px dotted #BDB5C9; margin: 0 6px; transform: translateY(-4px); }
.r-l > b { order: 2; font-weight: 600; white-space: nowrap; }
.r-try.ok > b { color: var(--good); }
.r-try.no > b { color: var(--bad); }
.r-stamp { margin: 6px auto !important; padding: 8px 10px; border: 2.5px solid var(--g); color: var(--g); border-radius: 6px; text-align: center; transform: rotate(-1.6deg); max-width: 92%; }
.r-stamp b { display: block; font-size: 14.5px; font-weight: 700; }
.r-stamp span { display: block; font-size: 12px; }
.r-id { font-size: 11.5px; letter-spacing: .06em; }
.r-bar { margin-top: 8px !important; }
.r-bar svg { width: 82%; height: 40px; margin: 0 auto; }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--plum); color: var(--cream); padding: 22px 24px 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 520px at 78% 8%, rgba(255, 210, 63, .09), transparent 60%); pointer-events: none; }
.hero-top { max-width: var(--w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.br-paper { fill: var(--cream); }
.br-one { fill: none; stroke: var(--plum); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-coin { margin: 0; font-size: 15px; color: #CFC6DC; }
.hero-coin span { color: var(--yellow); font-weight: 700; }
.hero-grid { max-width: var(--w); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: start; position: relative; padding-top: 64px; }
.hero h1 { font-size: clamp(54px, 7.4vw, 104px); font-weight: 700; letter-spacing: -.045em; line-height: .94; max-width: 9ch; }
.lede { font-size: 19px; line-height: 1.55; color: #DCD5E6; max-width: 34em; margin: 26px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.token { margin: 46px 0 64px; max-width: 520px; padding-top: 22px; border-top: 1px solid rgba(246, 243, 234, .14); }
.token .barcode { width: 100%; height: 56px; }
.token-ca { font: 500 14.5px/1.4 var(--mono); letter-spacing: .02em; margin: 10px 0 14px; word-break: break-all; color: var(--cream); }
.token-row { display: flex; align-items: center; gap: 14px; }
.copy-note { font-size: 14.5px; color: var(--yellow); }
/* the printer */
.printer { margin: 0; position: relative; padding: 0 22px; }
.slot { height: 26px; border-radius: 13px; background: #120D19; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .08); position: relative; z-index: 2; margin: 0 -22px; }
.slot::after { content: ""; position: absolute; left: 22px; right: 22px; top: 12px; height: 3px; border-radius: 2px; background: #000; }
.paper-wrap { position: relative; margin: -12px 12px 0; overflow: hidden; padding-bottom: 14px; }
.paper-wrap .receipt { box-shadow: 0 18px 30px rgba(0, 0, 0, .28); will-change: clip-path; }
.paper-wrap.tear .receipt { animation: tear .6s ease-in forwards; }
@keyframes tear { to { transform: translateY(70px) rotate(4deg); opacity: 0; } }
.printer figcaption { font-size: 14.5px; color: #B8AEC8; margin: 6px 12px 40px; min-height: 3em; }

/* ---------------------------------------------------------------- dock */
.dock { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 140%); z-index: 40; display: flex; gap: 2px; padding: 6px; border-radius: 999px;
  background: rgba(34, 26, 46, .94); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(34, 26, 46, .35); transition: transform .3s ease; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; }
.dock::-webkit-scrollbar { display: none; }
body.past-hero .dock { transform: translate(-50%, 0); }
.dock a { color: #D8D0E4; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 9px 14px; border-radius: 999px; white-space: nowrap; }
.dock a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.dock a.now { background: var(--yellow); color: var(--plum); }

/* ---------------------------------------------------------------- sections */
main { padding-bottom: 40px; }
.sec { max-width: var(--w); margin: 0 auto; padding: 104px 24px 0; }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: end; margin-bottom: 34px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.head h2 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 700; letter-spacing: -.035em; }
.head p { margin: 0; color: #4A4358; font-size: 17.5px; }

/* ---------------------------------------------------------------- make */
.make { display: grid; grid-template-columns: 270px minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.settings { background: #fff; border-radius: 14px; padding: 20px; display: grid; gap: 18px; border: 1px solid var(--line); }
.f { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; margin: 0; padding: 0; border: 0; min-width: 0; }
.f output { justify-self: end; margin-top: -27px; font-weight: 700; font-size: 16px; }
.f legend { padding: 0; margin-bottom: 6px; }
input[type=range] { width: 100%; accent-color: var(--plum); height: 28px; }
input[type=number], .f input:not([type]), .f input[type=text] { width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; font-weight: 500; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; line-height: 1.35; }
.chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--plum); flex: none; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: #fff; height: 38px; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.seg button + button { border-left: 1.5px solid var(--line); }
.seg button[aria-pressed=true] { background: var(--plum); color: var(--cream); }
.results { min-width: 0; }
.compare { display: grid; gap: 10px; margin-bottom: 16px; }
.cmp { margin: 0; padding: 16px 18px; border-radius: 12px; }
.cmp span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cmp b { display: block; font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.cmp em { display: block; font-style: normal; font-size: 15px; margin-top: 8px; color: #4A4358; }
.head-line { background: #E3DEEA; color: #5A5367; }
.rec-line { background: #fff; border: 2px solid var(--ink); }
.claims { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.claims li { background: #fff; border-radius: 10px; padding: 10px 12px 10px 40px; position: relative; font-size: 14.5px; border: 1px solid var(--line); }
.claims li::before { content: ""; position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--good); }
.claims li.fails::before { background: var(--bad); }
.claims li.holds::after { content: ""; position: absolute; left: 18px; top: 16px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.claims li.fails::after { content: ""; position: absolute; left: 16px; top: 21px; width: 10px; height: 2px; background: #fff; }
.claims b { display: block; font-size: 13.5px; }
.claims li.holds b { color: var(--good); }
.claims li.fails b { color: var(--bad); }
.claims span { display: block; font-weight: 600; }
.claims em { display: block; font-style: normal; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 2px; }
.tiles-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; align-items: baseline; margin-bottom: 10px; }
.tiles-head p { margin: 0; font-size: 14.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #4A4358; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 18px; border-radius: 4px; color: #fff; font: 700 11px/18px var(--sans); text-align: center; font-style: normal; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; margin-bottom: 12px; }
.tile { aspect-ratio: 1; border: 0; border-radius: 7px; background: var(--g); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .1s; }
.tile:hover { transform: translateY(-2px); }
.tile[aria-selected=true] { box-shadow: 0 0 0 3px var(--page), 0 0 0 6px var(--ink); }
.pick { position: sticky; top: 20px; }
.pick-h { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.pick .receipt { box-shadow: 0 2px 0 var(--line), 0 14px 28px rgba(34, 26, 46, .1); max-height: 70vh; overflow: auto; }
.pick .receipt::after { display: none; }
.pick-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ---------------------------------------------------------------- check */
.check { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; align-items: start; }
textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; font: 13px/1.5 var(--mono); resize: vertical; }
textarea:focus, input:focus { border-color: var(--ink); outline: none; }
.check-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.tamper-h { font-size: 14.5px; font-weight: 600; margin-left: 10px; }
.check-out { margin: 0; padding: 14px 16px; border-radius: 10px; background: #E3DEEA; font-size: 15.5px; }
.check-out.ok { background: #E1F1EA; color: #12533B; }
.check-out.bad { background: #FBE6E3; color: #8A1A12; }
.chain { list-style: none; margin: 0; padding: 0 0 0 4px; counter-reset: ev; }
.chain:empty::before { content: "The events of a checked receipt appear here, one link at a time."; display: block; color: var(--muted); font-size: 15px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 12px; }
.chain li { position: relative; padding: 0 0 14px 30px; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; font-size: 14.5px; }
.chain li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--page); z-index: 1; }
.chain li::after { content: ""; position: absolute; left: 6px; top: 10px; bottom: -4px; width: 2px; background: #B8D9CB; }
.chain li:last-child::after { display: none; }
.chain li.bad::before { background: var(--bad); }
.chain li.bad::after { background: #EBB9B3; }
.chain li b { font-weight: 700; }
.chain li span { color: #4A4358; }
.chain li code { grid-column: 2; font-size: 12px; color: var(--muted); }
.chain li.bad b, .chain li.bad span { color: var(--bad); }

/* ---------------------------------------------------------------- reveal */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: st; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.step { counter-increment: st; padding: 26px 24px 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.step + .step { border-left: 1px dashed #CFC8DA; }
.step h3 { font-size: 20px; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 12px; }
.step h3::before { content: counter(st); font: italic 600 40px/1 var(--serif); color: var(--plum); }
.step p { margin: 0; font-size: 15.5px; color: #4A4358; }
.step .btn { justify-self: start; }
.kv { margin: 0; display: grid; gap: 2px; font-size: 13px; }
.kv dt { font-weight: 600; margin-top: 6px; }
.kv dd { margin: 0; font-family: var(--mono); font-size: 12px; word-break: break-all; background: var(--soft); padding: 6px 8px; border-radius: 6px; }
.rv-pub code { word-break: break-all; }
.rv-out.ok { color: var(--good); }
.rv-out.bad { color: var(--bad); }
.rv-out b { display: block; }

/* ---------------------------------------------------------------- labels */
.scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lvl { background: #fff; border-radius: 14px; padding: 22px 20px; border: 1px solid var(--line); border-top: 6px solid var(--g); display: flex; flex-direction: column; gap: 10px; }
.lvl .lvl-mark { margin: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--g); color: #fff; font-weight: 700; font-size: 22px; display: grid; place-items: center; }
.lvl h3 { font-size: 20px; letter-spacing: -.02em; }
.lvl p { margin: 0; font-size: 15px; color: #4A4358; }
.badge { margin-top: auto; padding-top: 8px; }
.badge svg { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- paper */
.preprint { background: #fff; border-radius: 4px; box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(34, 26, 46, .25); padding: 64px 72px 60px; font-family: var(--serif); color: #1F1A26; }
.pp-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.pp-venue { margin: 0 0 18px; font-style: italic; color: var(--muted); font-size: 15px; }
.pp-head h3 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 600; letter-spacing: -.015em; line-height: 1.12; }
.pp-auth { margin: 14px 0 26px; font-size: 16.5px; }
.pp-abs { text-align: left; font-size: 15.5px; line-height: 1.6; padding: 18px 22px; background: #F7F5FA; border-radius: 4px; }
.pp-abs p { margin: 0; }
.pp-cols { column-count: 2; column-gap: 48px; font-size: 16px; line-height: 1.68; }
.pp-cols h4 { font-size: 17px; font-weight: 700; margin: 20px 0 6px; break-after: avoid; }
.pp-cols h4:first-child { margin-top: 0; }
.pp-cols p { margin: 0 0 12px; text-align: justify; hyphens: auto; }
.cite { text-decoration: none; color: var(--blue); font-size: .9em; }
.pp-fig, .tbl { column-span: all; margin: 26px 0; }
.pp-fig { padding: 18px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fig-plot { font-family: var(--sans); min-height: 200px; }
.fig-plot svg { width: 100%; height: auto; }
.pp-fig figcaption, .tbl caption { font-size: 14.5px; line-height: 1.5; color: #3A3346; text-align: left; padding: 10px 0 14px; }
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl caption { caption-side: top; padding-top: 0; }
.tbl th, .tbl td { padding: 9px 12px; text-align: right; border-bottom: 1px solid #E6E1EC; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { border-top: 2px solid #1F1A26; border-bottom: 1px solid #1F1A26; font-weight: 600; }
.tbl tbody tr:last-child td { border-bottom: 2px solid #1F1A26; }
.refs { padding-left: 22px; font-size: 14.5px; line-height: 1.55; margin: 0; }
.refs li { margin-bottom: 8px; }
.refs a { color: var(--blue); }

/* ---------------------------------------------------------------- docs */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid #CFC8DA; }
.doc { min-width: 0; }
.doc { border-bottom: 1px solid #CFC8DA; }
.doc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; gap: 16px; align-items: center; padding: 16px 4px; font-weight: 600; }
.doc summary::-webkit-details-marker { display: none; }
.sig { font-weight: 500; min-width: 0; }
.doc summary code { font-size: 16px; font-weight: 600; }
.doc summary span { color: var(--muted); font-weight: 500; font-size: 15px; text-align: right; }
.doc summary::after { content: ""; width: 12px; height: 12px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-3px, -3px); justify-self: center; transition: transform .2s; }
.doc[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.doc summary:hover .sig code { text-decoration: underline; text-decoration-color: var(--yellow2); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.doc pre { margin: 0 0 18px; background: var(--plum); color: #EDE7F5; border-radius: 12px; padding: 18px 20px; overflow-x: auto; font: 13.5px/1.6 var(--mono); }
.doc pre code { font-size: inherit; }

/* ---------------------------------------------------------------- source */
.source { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 48px; align-items: start; }
.manifest-wrap { padding-bottom: 12px; }
.manifest { box-shadow: 0 2px 0 var(--line), 0 18px 34px rgba(34, 26, 46, .12); min-height: 400px; }
.r-file { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 5px 6px; margin: 0 -6px; width: calc(100% + 12px); border-radius: 5px; cursor: pointer; font: inherit; }
.r-file:hover, .r-file:focus-visible { background: #FFF4C7; }
.r-file .r-l > span { text-decoration: underline; text-decoration-color: #CFC8DA; text-underline-offset: 3px; }
.r-sha { display: block; color: var(--muted); font-size: 11.5px; }
.get h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 12px; }
.get h3 + * { margin-top: 0; }
.get pre { background: var(--plum); color: #EDE7F5; border-radius: 12px; padding: 16px 18px; font: 14px/1.7 var(--mono); margin: 0 0 18px; overflow-x: auto; }
.dl { margin: 0 0 8px; color: #4A4358; font-size: 15.5px; }
.dl a { font-weight: 700; color: var(--ink); margin-right: 6px; text-decoration-color: var(--yellow2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.repo-link { display: inline-block; margin: 6px 0 0; font-weight: 700; }
.get h3:nth-of-type(2) { margin-top: 36px; }
.changes h4 { font-size: 17px; margin: 0 0 8px; }
.changes h4 span { font-weight: 500; color: var(--muted); }
.changes ul { margin: 0; padding-left: 20px; font-size: 15px; color: #3A3346; }
.changes li { margin-bottom: 6px; }
.changes code { background: var(--soft); padding: 1px 5px; border-radius: 4px; }
/* the drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(18, 13, 25, 0); transition: background .25s; }
.drawer.open { background: rgba(18, 13, 25, .5); }
.drawer-in { position: absolute; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .26s ease; box-shadow: -20px 0 50px rgba(0, 0, 0, .25); }
.drawer.open .drawer-in { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px 16px 24px; border-bottom: 1px solid var(--line); }
.drawer-head b { font: 600 16px var(--mono); word-break: break-all; }
.drawer-head span { color: var(--muted); font-size: 14px; margin-right: auto; white-space: nowrap; }
.x { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 24px; line-height: 1; cursor: pointer; flex: none; }
.x:hover { border-color: var(--ink); }
.drawer-body { flex: 1; overflow: auto; }
.drawer-body.code pre { margin: 0; padding: 14px 0; font: 12.5px/1.6 var(--mono); counter-reset: ln; min-width: max-content; }
.ln { display: block; padding: 0 20px 0 0; white-space: pre; }
.ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 52px; padding-right: 14px; text-align: right; color: #A79FB4; user-select: none; }
.prose { padding: 26px 30px 40px; font-size: 16px; line-height: 1.65; }
.prose h2 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 12px; }
.prose h3 { font-size: 20px; margin: 26px 0 8px; }
.prose h4 { font-size: 17px; margin: 20px 0 6px; }
.prose p { margin: 0 0 12px; }
.prose pre { background: var(--plum); color: #EDE7F5; padding: 14px 16px; border-radius: 10px; overflow-x: auto; font: 13px/1.6 var(--mono); }
.prose :not(pre) > code { background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.prose ul, .prose ol { padding-left: 22px; }
.tw { overflow-x: auto; }
.prose table { border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 6px 10px; text-align: left; }

/* ---------------------------------------------------------------- market */
.market { display: grid; grid-template-columns: 300px minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.mreceipt { box-shadow: 0 2px 0 var(--line), 0 18px 34px rgba(34, 26, 46, .12); font-size: 13.5px; }
.mreceipt .r-l { padding: 3px 0; }
#stChg.up { color: var(--good); }
#stChg.down { color: var(--bad); }
.chart-in { position: relative; height: 520px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.chart-in iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.standby { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: #fff; transition: opacity .3s; }
.standby.off { opacity: 0; pointer-events: none; }
.chart-out { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 15px; text-decoration-color: var(--yellow2); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.links { display: grid; gap: 8px; }
.links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15.5px; transition: border-color .15s, transform .12s; }
.links a:hover { border-color: var(--ink); transform: translateX(3px); }
.links img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; }
.links .at { width: 30px; height: 30px; border-radius: 8px; background: var(--plum); color: var(--yellow); display: grid; place-items: center; font-weight: 700; flex: none; }
#lnkPump { background: var(--yellow); border-color: var(--yellow2); }

/* ---------------------------------------------------------------- footer */
.foot { background: var(--plum); color: #CFC6DC; margin-top: 110px; padding: 54px 24px 96px; }
.foot-in { max-width: var(--w); margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 22px 56px; align-items: start; }
.foot-brand .barcode { width: 220px; height: 54px; }
.foot-ver { margin: 10px 0 0; font-size: 14.5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 4px; }
.foot-links a { color: var(--cream); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; }
.foot-links a:hover { border-bottom-color: var(--yellow); }
.foot-note { grid-column: 2; margin: 0; font-size: 14.5px; max-width: 46em; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .make { grid-template-columns: 260px minmax(0, 1fr); }
  .pick { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 8px 26px; align-items: start; }
  .pick-h { grid-column: 1 / -1; }
  .pick .receipt { max-height: none; }
  .pick-actions { flex-direction: column; align-items: flex-start; margin-top: 0; }
  .market { grid-template-columns: 280px minmax(0, 1fr); }
  .links { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; padding-top: 44px; }
  .token { margin-bottom: 30px; }
  .printer { max-width: 440px; width: 100%; margin: 0 auto; }
  .head { grid-template-columns: 1fr; gap: 12px; }
  .make { grid-template-columns: 1fr; }
  .check { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px dashed #CFC8DA; }
  .preprint { padding: 40px 28px; }
  .pp-cols { column-count: 1; }
  .source { grid-template-columns: 1fr; }
  .market { grid-template-columns: 1fr; }
  .mreceipt { max-width: 440px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-note { grid-column: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 18px 16px 0; }
  .hero h1 { font-size: 56px; }
  .lede { font-size: 17px; }
  .cta .btn { flex: 1 1 100%; }
  .token-ca { font-size: 12.5px; }
  .sec { padding: 76px 16px 0; }
  .head h2 { font-size: 34px; }
  .head p { font-size: 16px; }
  .claims { grid-template-columns: 1fr; }
  .cmp b { font-size: 19px; }
  .pick { grid-template-columns: 1fr; }
  .pick-actions { flex-direction: row; }
  .scale { grid-template-columns: 1fr; }
  .tamper-h { margin-left: 0; flex-basis: 100%; }
  .preprint { padding: 30px 18px; margin: 0 -4px; }
  .pp-cols { font-size: 15.5px; }
  .pp-cols p { text-align: left; }
  .doc summary { grid-template-columns: minmax(0, 1fr) 20px; }
  .doc summary span { display: none; }
  .doc summary code { font-size: 14.5px; }
  .chart-in { height: 440px; }
  .receipt { font-size: 12.5px; padding: 20px 16px 28px; }
  .dock { bottom: 12px; }
  .dock a { padding: 8px 11px; font-size: 14px; }
  .prose { padding: 20px 18px 36px; }
  .foot { padding-bottom: 110px; }
}
