/* sizes per page + breakpoints */
.p-board .hero { height: clamp(430px, calc(100vh - var(--head) - 260px), 620px); }
.p-board .hero-main, .p-board .feed { min-height: 0; }
.ftag { font-weight: 700; font-size: 14px; }
.hide-s { }

/* ---------- cashtag page ---------- */
.tp-band { display: flex; align-items: center; gap: 24px; padding: 18px 0 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.tp-band .id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tp-band .cm { width: 52px; height: 52px; font-size: 16px; }
.tp-band h1 { margin: 0; font-size: 40px; line-height: 1; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.tp-band .sub { display: flex; gap: 12px; align-items: baseline; margin-top: 6px; color: var(--ink3); font-size: 14px; white-space: nowrap; min-width: 0; flex-wrap: wrap; }
.tp-band .sub .nm { color: var(--ink2); font-weight: 600; }
.copy { border: 0; background: transparent; color: var(--ink3); cursor: pointer; padding: 0 2px; font-size: 12px; }
.copy:hover { color: var(--ink); }
.tp-band .facts { margin-left: auto; }
.tp-match { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink2); font-size: 14px; white-space: nowrap; overflow: hidden; }
.tp-match .legend { margin-left: auto; }
.tp-strip { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tp-strip .c { padding: 12px 14px; border-right: 1px solid var(--line); min-width: 0; }
.tp-strip .c:first-child { padding-left: 0; } .tp-strip .c:last-child { border-right: 0; }
.tp-strip .v { font-size: 22px; font-weight: 700; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-strip .k { margin-top: 4px; font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-main { display: grid; grid-template-columns: minmax(0, 1fr) 500px; border-bottom: 1px solid var(--line); height: clamp(420px, calc(100vh - var(--head) - 232px), 720px); }
.tp-main .chartcol { position: relative; display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; }
.tp-main .chartcol .chartbox { flex: 1; }
.tp-main .feed .posts { overflow-y: auto; }
.tp-main .feed-head .seg { height: 24px; } .tp-main .feed-head .seg button { font-size: 12px; padding: 0 8px; }
.tp-lists { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; padding-top: 22px; }
.share { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.share .bar { width: 70px; }
.tbl .cm { width: 24px; height: 24px; font-size: 10px; display: inline-grid; vertical-align: middle; margin-right: 8px; }
.tbl .best td { background: rgba(255, 255, 255, .025); }
.clsdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.first { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line3); border-radius: var(--r); padding: 1px 5px; margin-left: 8px; }
.notfound { padding: 80px 0; text-align: center; color: var(--ink2); }
.notfound h1 { font-size: 34px; margin: 0 0 8px; }

/* ---------- intake ---------- */
.src-grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg1); margin-top: 20px; }
.src { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.src:last-child { border-right: 0; }
.src .nm { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src .st { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.src .v { font-size: 28px; font-weight: 700; margin-top: 10px; line-height: 1; }
.src .v small { font-size: 13px; color: var(--ink3); font-weight: 600; margin-left: 4px; }
.src canvas { width: 100%; height: 34px; display: block; margin-top: 12px; }
.src .nt { margin-top: 8px; font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.in-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; margin-top: 20px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.kv > div { padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > div:nth-child(odd) { color: var(--ink3); } .kv > div:nth-child(even) { text-align: right; font-weight: 700; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.mx { padding: 16px; }
.mx .stack { display: flex; height: 12px; border-radius: 2px; overflow: hidden; gap: 2px; background: var(--bg); }
.mx .stack i { display: block; height: 100%; }
.mx .keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 14px; }
.mx .keys div { padding-right: 10px; min-width: 0; }
.mx .keys b { display: block; font-size: 22px; } .mx .keys span { font-size: 12px; color: var(--ink3); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mx .keys span i { width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* ---------- proof ---------- */
.pf-method { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg1); margin-top: 20px; }
.pf-method > div { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.pf-method > div:last-child { border-right: 0; }
.pf-method b { display: block; font-size: 15px; margin-bottom: 6px; }
.pf-method p { margin: 0; color: var(--ink2); font-size: 14px; line-height: 1.5; }
.pf-state { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--ink2); font-size: 14px; }
.pf-notes { margin: 0; padding: 14px 16px 14px 34px; color: var(--ink2); font-size: 14px; line-height: 1.6; }

.pf-data { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg1); margin-top: 20px; }
.pf-data > div { padding: 14px 18px; border-right: 1px solid var(--line); min-width: 0; }
.pf-data > div:last-child { border-right: 0; }
.pf-data .v { font-size: 24px; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-data .k { margin-top: 5px; font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-read { margin-top: 20px; }
ol.pf-notes { margin: 0; padding: 14px 18px 16px 40px; color: var(--ink); font-size: 15.5px; line-height: 1.6; }
ol.pf-notes li { padding: 2px 0; max-width: 110ch; }
ol.pf-notes li::marker { color: var(--ink3); font-weight: 700; }
.tscroll { overflow-x: auto; }
.pf-tbl td { height: 52px; }
.pf-tbl th:nth-child(1), .pf-tbl td:nth-child(1) { width: 250px; max-width: 250px; }
.pf-tbl th:nth-child(2), .pf-tbl td:nth-child(2) { width: 190px; max-width: 190px; }
.pf-tbl th:nth-child(3), .pf-tbl td:nth-child(3) { width: 84px; max-width: 84px; overflow: visible; }
.pf-tbl td.pth, .pf-tbl th.pth { width: 170px; max-width: none; }
svg.pth { display: block; }
.pf-tbl .sub2 { font-size: 11px; color: var(--ink3); margin-top: 1px; }
.pf-tbl tr.ctl td { background: rgba(255, 255, 255, .02); color: var(--ink2); }
.pf-foot { padding: 10px 16px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink3); line-height: 1.5; }
.pf-method-t { margin: 0; padding: 14px 18px 16px; color: var(--ink2); font-size: 14px; line-height: 1.6; max-width: 120ch; }

/* ---------- api ---------- */
.api-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding-top: 22px; }
.api-nav { position: sticky; top: calc(var(--head) + 20px); align-self: start; display: flex; flex-direction: column; gap: 2px; }
.api-nav a { padding: 7px 10px; border-left: 2px solid var(--line); color: var(--ink3); font-family: var(--f-mono); font-size: 12.5px; }
.api-nav a:hover { color: var(--ink); border-color: var(--ink2); }
.ep { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg1); margin-bottom: 18px; min-width: 0; }
.ep-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ep-h .m { font: 700 11px var(--f-mono); padding: 3px 6px; border-radius: 2px; background: var(--ink); color: #101215; }
.ep-h .m.post { background: var(--bg4); color: var(--ink); }
.ep-h code { font-family: var(--f-mono); font-size: 14px; color: var(--ink); }
.ep-b { padding: 12px 16px 16px; color: var(--ink2); font-size: 14px; line-height: 1.55; }
.ep-b p { margin: 0 0 10px; max-width: 80ch; }
.ep-b table { border-collapse: collapse; margin: 6px 0 12px; font-size: 13px; }
.ep-b td { padding: 5px 16px 5px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.ep-b td:first-child { font-family: var(--f-mono); color: var(--ink); white-space: nowrap; }
pre.code { margin: 0; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); font: 12px/1.5 var(--f-mono); color: var(--ink2); overflow: auto; max-height: 340px; white-space: pre; }
.try { display: flex; gap: 8px; align-items: center; margin: 8px 0 10px; flex-wrap: wrap; }
.try input { height: 30px; width: 200px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg); color: var(--ink); padding: 0 10px; font: 13px var(--f-mono); }
.try button { height: 30px; padding: 0 12px; border: 0; border-radius: var(--r); background: var(--ink); color: #101215; font-weight: 700; cursor: pointer; }
.try .ms { color: var(--ink3); font-size: 12px; font-family: var(--f-mono); }

.ask-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 20px; align-items: start; }
.ask-b p { margin: 0; font-size: 15px; color: var(--ink); }
.ask-b img { width: 100%; display: block; border: 1px solid var(--line2); border-radius: 12px; }
.api-nav .ask-l { color: var(--ink2); }

/* ---------- laptop ---------- */
@media (max-width: 1500px) {
  .hero { grid-template-columns: minmax(0, 1fr) 400px; }
  .board { --cols: 30px minmax(190px, 2fr) minmax(130px, 1.2fr) repeat(4, 44px) 100px 58px 58px 46px 64px 96px 74px 62px 62px 66px; }
  .br .sp canvas { width: 96px; }
  .fact { padding: 0 12px; min-width: 76px; } .fact .v { font-size: 18px; }
  .legend { display: none; }
  .tp-main { grid-template-columns: minmax(0, 1fr) 420px; }
  .tp-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tp-strip .c:nth-child(5) { border-right: 0; } .tp-strip .c:nth-child(n+6) { border-top: 1px solid var(--line); } .tp-strip .c:nth-child(6) { padding-left: 0; }
  .tp-match .legend { display: none; }
}
@media (max-width: 1500px) {
  body.has-ca .status .clock { display: none; }
}
@media (max-width: 1280px) {
  .status .hide-s { display: none; }
  .board { --cols: 28px minmax(170px, 2fr) minmax(120px, 1.2fr) 0 44px 44px 48px 92px 56px 0 50px 60px 92px 70px 0 60px 0; }
  .bh > div:nth-child(4), .br > div:nth-child(4), .bh > div:nth-child(10), .br > div:nth-child(10), .bh > div:nth-child(15), .br > div:nth-child(15), .bh > div:nth-child(17), .br > div:nth-child(17) { padding: 0; visibility: hidden; }
  .facts .fact:nth-child(n+5) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) 360px; }
  .strip .v { font-size: 22px; }
}
/* ---------- tablet + phone ---------- */
@media (max-width: 900px) {
  :root { --head: 50px; }
  .top { gap: 14px; }
  .nav a { padding: 0 8px; font-size: 13px; }
  .brand span { display: none; }
  .status .chip.sample:not(.show) { display: none; }
  .p-board .hero { height: auto; }
  .top .nav { height: 50px; }
  body.has-ca { --head: 92px; }
  body.has-ca .top { flex-wrap: wrap; align-content: flex-start; row-gap: 0; }
  body.has-ca .ca-pill { order: 10; flex: 1 0 100%; height: 34px; margin: 0 0 8px; }
  .ca-addr { flex: 1; font-size: 11.5px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-main { border-right: 0; }
  .tabs { overflow-x: auto; scrollbar-width: none; grid-template-columns: repeat(5, minmax(146px, 1fr)); height: 54px; }
  .tab { padding: 0 12px; grid-template-columns: minmax(0, 1fr) auto; }
  .tab canvas { display: none; }
  .tab .s { grid-column: 1 / 3; }
  .tabs::-webkit-scrollbar { display: none; }
  .coinline { flex-wrap: wrap; height: auto; gap: 12px; padding: 14px var(--pad) 8px; }
  .coinline .tagname { font-size: 26px; }
  .facts { margin-left: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .facts .fact, .facts .fact:nth-child(n+5) { display: block; padding: 0 10px; min-width: 0; } .facts .fact:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .fact .v { font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
  .matchline { padding: 4px var(--pad) 8px; font-size: 12.5px; }
  .chartbox { min-height: 0; height: 300px; flex: none; }
  .ranges { left: var(--pad); }
  .feed { border-top: 1px solid var(--line); }
  .feed-head { height: 46px; padding: 0 var(--pad); }
  .posts { max-height: 410px; }
  .post { padding-left: var(--pad); padding-right: var(--pad); }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip .c { padding: 12px var(--pad); } .strip .c:nth-child(3) { border-right: 0; } .strip .c:nth-child(n+4) { border-top: 1px solid var(--line); }
  .strip .v { font-size: 20px; } .strip .k { font-size: 11px; } .strip .x { display: none; }
  .sec-head { padding-top: 18px; }
  .controls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 2px; }
  .controls::-webkit-scrollbar { display: none; }
  .controls .sp { display: none; }
  .search { width: 180px; flex: none; }
  .held { display: none; }
  .board { --cols: minmax(0, 1fr) 54px 74px 70px; padding: 0; margin-top: 10px; }
  .board .bh > div:not(:nth-child(2)):not(:nth-child(5)):not(:nth-child(9)):not(:nth-child(16)),
  .board .br > div:not(:nth-child(2)):not(:nth-child(5)):not(:nth-child(9)):not(:nth-child(16)) { display: none !important; }
  .bh > div:nth-child(2), .br > div:nth-child(2), .bh > div:nth-child(5), .br > div:nth-child(5), .bh > div:nth-child(9), .br > div:nth-child(9), .bh > div:nth-child(16), .br > div:nth-child(16) { display: flex; align-items: center; visibility: visible; padding: 0 8px; }
  .bh > div:nth-child(2), .br > div:nth-child(2) { padding-left: var(--pad); }
  .bh > div:nth-child(16), .br > div:nth-child(16) { padding-right: var(--pad); }
  .bh .r, .br .r { justify-content: flex-end; }
  .br { height: 56px; }
  .br .tg .a { font-size: 15px; }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot > div:first-child { grid-column: 1 / -1; }
  /* cashtag page */
  .tp-band { flex-wrap: wrap; gap: 14px; }
  .tp-band h1 { font-size: 32px; }
  .tp-band .facts { width: 100%; }
  .tp-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-strip .c { padding: 10px 10px; } .tp-strip .c:nth-child(3n+1) { padding-left: 0; } .tp-strip .c:nth-child(3n) { border-right: 0; } .tp-strip .c:nth-child(n+4) { border-top: 1px solid var(--line); } .tp-strip .c:nth-child(5) { border-right: 1px solid var(--line); }
  .tp-strip .v { font-size: 18px; }
  .tp-strip .c:nth-child(6) { padding-left: 10px; }
  .tp-main { grid-template-columns: minmax(0, 1fr); height: auto; margin: 0 calc(-1 * var(--pad)); }
  .tp-main .chartcol { border-right: 0; } .tp-main .chartcol .chartbox { height: 320px; flex: none; }
  .tp-main .feed .posts { max-height: 560px; }
  .tp-lists { grid-template-columns: minmax(0, 1fr); }
  .tbl .hide-m { display: none; }
  .src-grid { grid-template-columns: minmax(0, 1fr); } .src { border-right: 0; } .src + .src { border-top: 1px solid var(--line); }
  .in-row { grid-template-columns: minmax(0, 1fr); }
  .mx .keys { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .pf-data { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pf-data > div:nth-child(2) { border-right: 0; } .pf-data > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .pf-tbl { min-width: 760px; } .pf-data .v { font-size: 18px; } ol.pf-notes { font-size: 14.5px; padding-left: 32px; }
  .api-grid { grid-template-columns: minmax(0, 1fr); } .api-nav { display: none; }
  .ask-b { grid-template-columns: minmax(0, 1fr); }
  .page-head { flex-wrap: wrap; } .page-head h1 { font-size: 28px; }
}
@media (max-width: 420px) {
  .status .it#st-src { display: none; }
  .nav a { padding: 0 7px; }
  .status .it#st-src { font-size: 12px; }
  .ranges .seg button { padding: 0 7px; }
}
