/* Hallmark · macrostructure: news wire, main column + ruled right rail · theme: studied-DNA (source: runtimewire.com, dark theme) · paper #0b0c0a · accent #76B900 · display Saira 800-900 wide upright · body Saira 400 · data JetBrains Mono · nav: N-tabs with sub-labels under a tool row · footer: single ruled strip · contrast: pass (40-41) · slop: pass (42-45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50-57) */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V4 */
/* CHEAT: the driver menu of the meme market. A wire layout on black, one green. */
@font-face { font-family: "Saira"; src: url("/assets/fonts/saira-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/assets/fonts/jbmono-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --bg: #0b0c0a; --panel: #141513; --rule: #262824; --glass: rgba(11, 12, 10, .86); --ink: #ede6d6; --mute: #9b968a;
  --green: #76B900; --red: #e5484d; --amber: #e3a008;
  --sans: "Saira", system-ui, sans-serif; --mono: "JB Mono", ui-monospace, monospace;
  --wrap: 1400px; --pad: clamp(16px, 3vw, 40px); --rail: clamp(300px, 28vw, 430px);
  color-scheme: dark;
}
html[data-theme="terminal"] { --sans: "JB Mono", ui-monospace, monospace; --panel: #0f120b; --rule: #24301a; --mute: #8f9a7e; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; scrollbar-color: var(--rule) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rule); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--green); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--bg); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- masthead ---------- */
.mast { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.mast-row, .tabs, .strip, .wire, .foot-row { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.mast-row { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: 40px; }
.wordmark { font-family: "Saira", sans-serif; font-weight: 900; font-stretch: 125%; font-size: 26px; letter-spacing: .01em; line-height: 1; color: var(--ink); }
.brand:hover .wordmark { color: var(--green); }
.brand.small img { width: 28px; height: 28px; }
.brand.small .wordmark { font-size: 19px; }
.mast-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ca { height: 34px; padding: 0 12px; border: 1px solid var(--rule); background: var(--panel); font-family: var(--mono); font-size: 12.5px; color: var(--mute); cursor: pointer; white-space: nowrap; }
.ca.live { color: var(--ink); }
.ca.live:hover { border-color: var(--green); }
.ico { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--ink); transition: color .2s, border-color .2s; }
.ico:hover { color: var(--green); border-color: var(--green); }
.mode { display: flex; border: 1px solid var(--rule); height: 34px; }
.mode button { border: 0; background: none; padding: 0 12px; font-size: 13px; font-weight: 600; color: var(--mute); cursor: pointer; }
.mode button[aria-pressed="true"] { background: var(--panel); color: var(--green); }
.buy, .phantom, .primary, .probe button { height: 34px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--green); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.buy { background: var(--green); color: var(--bg); }
.buy:hover { background: var(--ink); border-color: var(--ink); }
.buy.off { background: none; color: var(--mute); border-color: var(--rule); }
.phantom { background: none; color: var(--ink); border-color: var(--rule); }
.phantom:hover, .phantom.on { border-color: var(--green); color: var(--green); }

.tabs { display: flex; align-items: stretch; gap: 0; height: 58px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 0 24px 0 0; margin-right: 24px; text-decoration: none; flex: none; }
.tabs a b { font-weight: 700; font-size: 16px; font-stretch: 112%; line-height: 1.2; }
.tabs a span { font-size: 13px; color: var(--mute); line-height: 1.3; }
.tabs a::after { content: ""; position: absolute; left: 0; right: 24px; bottom: -1px; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.tabs a:hover::after { transform: scaleX(.4); }
.tabs a.on::after { transform: scaleX(1); }
.tabs a.on b { color: var(--green); }
.runs { margin: 0 0 0 auto; align-self: center; font-size: 13px; color: var(--mute); white-space: nowrap; padding-left: 16px; }
.runs strong { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.progress { height: 2px; background: var(--green); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ---------- promo strip ---------- */
.strip { max-width: none; margin-left: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))); margin-right: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))); padding: 0 0 0 12px !important; display: flex; align-items: center; gap: 16px; height: 46px; margin-top: 16px; background: var(--panel); border: 1px solid var(--rule); }
.strip.gone { display: none; }
.on-badge { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 12px; background: var(--green); color: var(--bg); font-weight: 800; font-stretch: 118%; font-size: 14px; }
.on-badge i { width: 7px; height: 7px; background: var(--bg); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; gap: 36px; white-space: nowrap; animation: tape 70s linear infinite; font-size: 14px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.ticker-track a { text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; }
.ticker-track a b { font-weight: 700; }
.ticker-track a:hover b { color: var(--green); }
.strip-x { flex: none; width: 34px; height: 34px; border: 0; background: none; color: var(--mute); cursor: pointer; display: grid; place-items: center; }
.strip-x:hover { color: var(--ink); }
.up { color: var(--green); } .down { color: var(--red); } .num { font-family: var(--mono); font-size: .92em; }

/* ---------- wire: main column + rail ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); border-bottom: 1px solid var(--rule); }
.split > .col { padding: 44px 44px 60px 0; border-right: 1px solid var(--rule); min-width: 0; }
.split > .rail { padding: 44px 0 56px 32px; min-width: 0; }
.lead-h { font-weight: 850; font-stretch: 112%; font-size: clamp(38px, 5.2vw, 76px); line-height: .98; letter-spacing: -.01em; margin: 0 0 20px; max-width: 15ch; text-wrap: balance; }
.dek { font-size: clamp(17px, 1.35vw, 20px); color: var(--mute); max-width: 60ch; margin: 0 0 16px; }
.meta { font-size: 14px; color: var(--mute); margin: 0 0 28px; }
.meta strong { color: var(--ink); font-weight: 600; }
.sec-h { font-weight: 800; font-stretch: 112%; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; margin: 0 0 12px; text-wrap: balance; }
.sec-dek { color: var(--mute); max-width: 62ch; margin: 0 0 28px; }

.heat { margin: 0; position: relative; }
.heat canvas { display: block; width: 100%; height: clamp(320px, 38vw, 560px); background: var(--panel); cursor: pointer; }
.heat figcaption { font-size: 13px; color: var(--mute); margin-top: 12px; }
.heat-tip { position: absolute; pointer-events: none; z-index: 3; background: var(--bg); border: 1px solid var(--green); padding: 8px 12px; font-size: 13px; line-height: 1.4; min-width: 170px; }
.heat-tip b { font-size: 15px; }

.rail-head { border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.rail-head h2 { margin: 0; font-size: 22px; font-weight: 800; font-stretch: 112%; }
.rail-head p { margin: 4px 0 0; font-size: 13px; color: var(--mute); }
.movers { list-style: none; margin: 0; padding: 0; }
.movers li { border-bottom: 1px solid var(--rule); }
.movers li.empty { padding: 20px 0; color: var(--mute); }
.movers button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 16px; align-items: center; padding: 16px 0; background: none; border: 0; text-align: left; cursor: pointer; }
.movers .t { min-width: 0; }
.movers .t b { display: block; font-size: 17px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movers button:hover .t b { color: var(--green); }
.movers .t > span { display: block; font-size: 13px; color: var(--mute); margin-top: 4px; }
.movers .t em { font-style: normal; display: inline-block; background: var(--green); color: var(--bg); font-weight: 800; font-size: 11px; padding: 4px 8px; margin-right: 8px; vertical-align: 1px; }
.thumb { width: 56px; height: 56px; overflow: hidden; background: var(--panel); border: 1px solid var(--rule); display: grid; place-items: center; font-weight: 800; color: var(--mute); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.movers button:hover .thumb img { transform: scale(1.08); }

/* theme board: ruled 2x2 cards */
.board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.card { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 24px 24px 24px; min-width: 0; }
.card h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; font-stretch: 112%; line-height: 1.1; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card h3 .num { font-size: 20px; color: var(--green); }
.card p { margin: 0 0 16px; font-size: 14px; color: var(--mute); }
.bar { height: 6px; background: var(--rule); margin-bottom: 16px; }
.bar i { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.card.in .bar i { transform: scaleX(var(--s)); }
.card .led { margin: 0; font-size: 15px; color: var(--ink); }
.trend { font-size: 13px; font-weight: 600; }
.trend.rising { color: var(--green); } .trend.fading { color: var(--red); }
.box { border-top: 2px solid var(--ink); padding-top: 12px; }
.box h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; font-stretch: 112%; }
.box p { color: var(--mute); font-size: 14.5px; margin: 0 0 12px; }
.sources { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.sources li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.sources li span:last-child { color: var(--mute); }
.legend { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14.5px; }
.legend li { display: flex; gap: 12px; align-items: center; padding: 8px 0; }

/* ---------- tools ---------- */
.probe { display: grid; gap: 8px; margin-bottom: 28px; max-width: 760px; }
.probe label { font-size: 14px; font-weight: 600; }
.probe-row { display: flex; gap: 0; }
.probe input, .probe select { height: 48px; padding: 0 16px; background: var(--panel); border: 1px solid var(--rule); min-width: 0; }
.probe-row input { flex: 1; font-family: var(--mono); font-size: 14px; border-right: 0; }
.probe input:focus, .probe select:focus { outline: none; border-color: var(--green); }
.probe button { height: 48px; background: var(--green); color: var(--bg); padding: 0 24px; font-size: 15px; }
.probe button:hover { background: var(--ink); border-color: var(--ink); }
.probe button[disabled] { opacity: .55; cursor: wait; }
.compose button { justify-self: start; margin-top: 8px; }
.compose button.off { background: none; color: var(--mute); border-color: var(--rule); cursor: not-allowed; }
.pick { display: flex; gap: 16px; flex-wrap: wrap; }
.pick label { display: grid; gap: 8px; flex: 1; min-width: 180px; }

.report:empty { display: none; }
.report { border-top: 1px solid var(--rule); padding-top: 24px; }
.r-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.r-head .thumb { width: 64px; height: 64px; flex: none; }
.r-head h3 { margin: 0; font-size: 28px; font-weight: 800; font-stretch: 112%; line-height: 1.05; overflow-wrap: anywhere; }
.r-head p { margin: 4px 0 0; color: var(--mute); font-size: 14px; }
.grade { margin-left: auto; text-align: right; flex: none; }
.grade b { display: block; font-family: var(--mono); font-size: 40px; line-height: 1; font-weight: 700; }
.grade span { font-size: 13px; color: var(--mute); }
.checks { list-style: none; margin: 0 0 24px; padding: 0; }
.checks li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.v { width: 12px; height: 12px; display: inline-block; flex: none; margin-top: 8px; background: var(--mute); }
.v.good { background: var(--green); } .v.warn { background: var(--amber); } .v.bad { background: var(--red); }
.checks .lbl { font-weight: 700; }
.checks .note { display: block; color: var(--mute); font-size: 14px; overflow-wrap: anywhere; }
.checks .val { font-family: var(--mono); font-size: 14.5px; text-align: right; white-space: nowrap; }
.checks .val a { color: var(--mute); font-family: var(--sans); font-size: 13px; display: block; text-decoration-color: var(--rule); }
.checks .val a:hover { color: var(--green); }
.holders { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 16px; }
.holders th { text-align: left; font-weight: 600; color: var(--mute); padding: 8px 0; border-bottom: 1px solid var(--ink); }
.holders td { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.holders td:last-child, .holders th:last-child { text-align: right; }
.tag { font-size: 12px; border: 1px solid var(--rule); padding: 4px 8px; margin-left: 8px; color: var(--mute); }
.tag.fresh { border-color: var(--amber); color: var(--amber); }
.r-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: var(--mute); }
.ghost { height: 34px; padding: 0 16px; background: none; border: 1px solid var(--rule); color: var(--ink); cursor: pointer; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; }
.ghost:hover { border-color: var(--green); color: var(--green); }
.msg { padding: 16px 20px; border-left: 3px solid var(--amber); background: var(--panel); color: var(--ink); }
.msg.err { border-color: var(--red); }
.loading { color: var(--mute); display: flex; gap: 12px; align-items: center; }
.loading i { width: 10px; height: 10px; background: var(--green); animation: pulse .9s ease-in-out infinite alternate; }
@keyframes pulse { from { transform: scale(.4); opacity: .4; } to { transform: scale(1); opacity: 1; } }

.chart { width: 100%; height: 300px; display: block; background: var(--panel); margin-bottom: 8px; }
.chart-cap { font-size: 13px; color: var(--mute); margin: 0 0 24px; }
.windows { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); margin-bottom: 24px; }
.windows div { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 16px; }
.windows b { display: block; font-size: 14px; font-weight: 600; color: var(--mute); }
.windows strong { display: block; font-family: var(--mono); font-size: 22px; font-weight: 700; margin: 4px 0; }
.windows span { font-size: 13px; color: var(--mute); }
.reads { list-style: none; margin: 0 0 24px; padding: 0; }
.reads li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.reads li span:last-child { font-family: var(--mono); }
.reads .hot { color: var(--amber); } .reads .cold { color: var(--mute); }
.levels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 20px; }
.levels h4 { margin: 0 0 8px; font-size: 16px; }
.levels ul { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 14px; }
.levels li { padding: 8px 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; }
.posts { display: grid; gap: 12px; }
.post { background: var(--panel); border: 1px solid var(--rule); padding: 16px 20px; white-space: pre-wrap; }
.post .ghost { margin-top: 12px; }

.tiers { width: 100%; max-width: 760px; border-collapse: collapse; }
.tiers th { text-align: left; color: var(--mute); font-weight: 600; font-size: 14px; padding: 12px 0; border-bottom: 1px solid var(--ink); }
.tiers td { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
.tiers td:first-child { font-weight: 800; font-stretch: 112%; font-size: 20px; }
.tiers td:not(:first-child) { font-family: var(--mono); font-size: 15px; }
.tiers tr.me td:first-child { color: var(--green); }
.sign .primary { background: var(--green); color: var(--bg); margin-bottom: 12px; }
.sign .primary:hover { background: var(--ink); border-color: var(--ink); }
.fine { font-size: 13px !important; }

/* ---------- footer, toast ---------- */
.foot { border-top: 1px solid var(--rule); margin-top: 0; }
.foot-row { display: flex; align-items: center; gap: 28px; padding-top: 28px; padding-bottom: 36px; }
.foot-row p { margin: 0; flex: 1; font-size: 13.5px; color: var(--mute); max-width: 70ch; }
.foot-links { display: flex; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 16px; font-weight: 600; z-index: 40; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- terminal theme ---------- */
html[data-theme="terminal"] .lead-h, html[data-theme="terminal"] .sec-h { font-weight: 800; letter-spacing: -.03em; }
html[data-theme="terminal"] .lead-h { font-size: clamp(32px, 4.4vw, 62px); }
html[data-theme="terminal"] body { background-image: repeating-linear-gradient(0deg, rgba(118, 185, 0, .035) 0 1px, transparent 1px 3px); }

/* ---------- wide screens ---------- */
@media (min-width: 1800px) { :root { --wrap: 1720px; } .lead-h { font-size: 86px; } }
@media (min-width: 2400px) { :root { --wrap: 2200px; --rail: 520px; } body { font-size: 18px; } .lead-h { font-size: 104px; } .heat canvas { height: 680px; } }

/* ---------- narrow ---------- */
@media (max-width: 430px) { .brand .wordmark { display: none; } .mast-tools { gap: 8px; } }
@media (max-width: 1100px) {
  .mode { display: none; }
  .runs { display: none; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split > .col { border-right: 0; padding: 32px 0 28px; }
  .split > .rail { padding: 0 0 36px; }
  .ico#link-x, .ico#link-pump { display: grid; }
}
@media (max-width: 640px) {
  .mast-row { height: 56px; gap: 8px; }
  .wordmark { font-size: 21px; }
  .brand img { width: 32px; height: 32px; }
  .ca, .ca.live { max-width: 84px; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; font-size: 11px; }
  .buy, .phantom { padding: 0 12px; font-size: 13px; }
  .ico { width: 32px; height: 32px; }
  .tabs { height: 52px; }
  .tabs a { margin-right: 16px; padding-right: 16px; }
  .tabs a span { display: none; }
  .tabs a::after { right: 16px; }
  .strip { margin-top: 12px; }
  .lead-h { font-size: 38px; }
  .board { grid-template-columns: 1fr; }
  .windows { grid-template-columns: 1fr 1fr; }
  .levels { grid-template-columns: 1fr; }
  .grade b { font-size: 30px; }
  .r-head h3 { font-size: 22px; }
  .checks li { grid-template-columns: 12px minmax(0, 1fr); }
  .checks .val { grid-column: 2; text-align: left; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* states */
button:active, .buy:active, .ghost:active, .ico:active { transform: translateY(1px); }
button:disabled, button[aria-disabled="true"], .buy[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.probe input::placeholder { color: var(--mute); opacity: 1; }
.probe input:user-invalid { border-color: var(--red); }
.probe input:disabled, .probe select:disabled { opacity: .55; cursor: not-allowed; }
h1, h2, h3, h4 { overflow-wrap: break-word; }
.ticker:focus-within .ticker-track { animation-play-state: paused; }
