/* Rhash-CPU site
   Palette is taken from a CPU package: organic substrate, solder mask, silkscreen, gold lands.
   Cyan "signal" is reserved for live data (it matches the Windows app). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --substrate: #0d2b28;
  --substrate-deep: #0a2320;
  --mask: #123833;
  --mask-2: #17443e;
  --trace: #24564e;
  --silk: #e9f0e7;
  --silk-2: #a9c0b7;
  --silk-3: #7f9a91;
  --gold: #e4b54a;
  --gold-deep: #b98a26;
  --signal: #5ed6c4;
  --warn: #f08a5d;
  --term: #050a09;
  --term-text: #cfd8d3;

  --sans: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --term-font: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", "Liberation Mono", monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.6rem, 5.6vw, 4.6rem);

  --measure: 66ch;
  --page: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--substrate);
  color: var(--silk);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
/* faint substrate weave, like the fibre texture of an organic package */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f3cc72; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.1; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: var(--step-4); font-stretch: 125%; letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); font-stretch: 118%; }
h2 { font-size: var(--step-3); font-stretch: 118%; letter-spacing: -0.005em; }
h3 { font-size: var(--step-1); font-stretch: 105%; font-weight: 700; }
h4 { font-size: var(--step-0); font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); }
p.lede { font-size: var(--step-1); color: var(--silk-2); line-height: 1.45; max-width: 52ch; }
small, .fine { font-size: var(--step--1); color: var(--silk-3); }
strong { font-weight: 700; color: var(--silk); }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: rgba(0,0,0,.28); padding: .08em .35em; border-radius: 3px; color: #f1e2bd; }
kbd {
  display: inline-block; min-width: 1.7em; text-align: center;
  padding: .05em .45em; border-radius: 4px;
  background: var(--mask-2); border: 1px solid var(--trace); border-bottom-width: 3px;
  color: var(--silk); font-weight: 600;
}

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 35, 32, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trace);
}
.site-head .wrap { display: flex; align-items: center; gap: 2rem; min-height: 64px; }
.mark {
  display: flex; align-items: center; gap: .7rem;
  color: var(--silk); text-decoration: none;
  font-weight: 800; font-stretch: 125%; letter-spacing: .02em; font-size: 1.05rem;
}
.mark svg { flex: none; }
.mark span.v { font-family: var(--mono); font-weight: 500; font-stretch: 100%; font-size: .72rem; color: var(--silk-3); letter-spacing: 0; }
.nav { display: flex; gap: .25rem; margin-left: auto; align-items: center; }
.nav a {
  color: var(--silk-2); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .45rem .75rem; border-radius: 6px;
}
.nav a:hover { color: var(--silk); background: rgba(255,255,255,.04); }
.nav a[aria-current="page"] { color: var(--silk); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav a.btn { margin-left: .5rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--trace); color: var(--silk); border-radius: 6px; padding: .4rem .7rem; font: inherit; font-weight: 600; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--substrate-deep); border-bottom: 1px solid var(--trace); padding: .5rem var(--gutter) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .2rem; border-bottom: 1px solid rgba(255,255,255,.05); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: .8rem; }
  .nav a.btn { margin: .8rem 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; font-stretch: 105%;
  padding: .8rem 1.25rem; border-radius: 8px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: #1d1606; }
.btn-gold:hover { background: #f0c560; color: #1d1606; }
.btn-line { border-color: var(--trace); color: var(--silk); background: transparent; }
.btn-line:hover { border-color: var(--silk-3); color: var(--silk); }
.nav a.btn-gold { color: #1d1606; padding: .5rem .95rem; border-radius: 7px; }
.nav a.btn-gold:hover { background: #f0c560; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--trace); }
.section-tight { padding: 3rem 0; }
.section-dark { background: var(--substrate-deep); }
.section-head { max-width: 60ch; margin-bottom: 2.75rem; }
.section-head p { color: var(--silk-2); font-size: 1.12rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .keep { display: block; color: var(--gold); }
.hero .facts { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--silk-2); font-size: .95rem; }
.hero .facts li { display: flex; align-items: center; gap: .5rem; }
.hero .facts li::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--gold); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

.die-figure { margin: 0; }
.die-frame {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin-left: auto;
}
.die-frame canvas { width: 100%; height: 100%; display: block; }
.die-caption { margin-top: .9rem; font-size: var(--step--1); color: var(--silk-3); max-width: 560px; margin-left: auto; }
.die-readout {
  position: absolute; left: 7%; right: 7%; bottom: 7%;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: .8rem; color: var(--silk-2);
  pointer-events: none;
}
.die-readout b { color: var(--signal); font-weight: 600; font-size: 1.05rem; }
@media (max-width: 960px) { .die-frame, .die-caption { margin: 0 auto; } }

/* ---------- fee ---------- */
.fee-board { display: grid; gap: 1.6rem; margin-top: 1rem; }
.fee-row { display: grid; grid-template-columns: 11rem 1fr 9rem; gap: 1.25rem; align-items: center; }
.fee-row .who { font-weight: 700; font-stretch: 110%; }
.fee-row .who small { display: block; font-weight: 500; font-stretch: 100%; }
.fee-row .num { font-family: var(--mono); text-align: right; color: var(--silk-2); font-size: .95rem; }
.fee-row .num b { display: block; color: var(--silk); font-size: 1.2rem; }
.fee-row.ours .num b { color: var(--gold); }
.daybar { position: relative; height: 34px; border-radius: 4px; background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px calc(100% / 15)), var(--mask); overflow: hidden; border: 1px solid var(--trace); }
.daybar .slice { position: absolute; top: 0; bottom: 0; left: 0; background: var(--silk-3); opacity: .55; }
.fee-row.ours .daybar .slice { opacity: 1; }
.fee-row.ours .daybar .slice { background: var(--gold); }
.daybar-scale { display: grid; grid-template-columns: 11rem 1fr 9rem; gap: 1.25rem; font-family: var(--mono); font-size: .75rem; color: var(--silk-3); }
.daybar-scale div { display: flex; justify-content: space-between; }
@media (max-width: 700px) {
  .fee-row, .daybar-scale { grid-template-columns: 1fr; gap: .45rem; }
  .fee-row .num { text-align: left; }
  .fee-row .num b { display: inline; margin-right: .5rem; }
  .daybar-scale > span { display: none; }
}

.calc {
  margin-top: 3rem; padding: 1.6rem 1.8rem; border-radius: 10px;
  background: var(--mask); border: 1px solid var(--trace);
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 2.5rem; align-items: center;
}
.calc label { font-weight: 600; display: block; margin-bottom: .6rem; }
.calc input[type=range] { width: 100%; accent-color: var(--gold); }
.calc .out { font-family: var(--mono); text-align: right; }
.calc .out b { display: block; font-size: 2rem; color: var(--gold); font-weight: 600; line-height: 1.1; }
.calc .out span { color: var(--silk-2); font-size: .85rem; }
@media (max-width: 700px) { .calc { grid-template-columns: 1fr; } .calc .out { text-align: left; } }

/* ---------- lists of points ---------- */
.points { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2.25rem 3.5rem; margin: 0; padding: 0; list-style: none; }
.points li { padding-top: 1.1rem; border-top: 2px solid var(--trace); }
.points li h3 { margin-bottom: .45em; }
.points li p { color: var(--silk-2); margin: 0; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }

/* ---------- algorithm chips (home) ---------- */
.algo-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.algo-strip li > a, .algo-strip li > span {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .92rem; text-decoration: none;
  padding: .45rem .8rem .45rem .6rem; border-radius: 4px;
  background: var(--mask); border: 1px solid var(--trace); color: var(--silk);
}
.algo-strip li a:hover { border-color: var(--gold); color: var(--silk); }
.algo-strip .pin { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.algo-strip .pin.free { background: transparent; border: 2px solid var(--signal); width: 9px; height: 9px; }
.legend { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.25rem; font-size: var(--step--1); color: var(--silk-3); }
.legend span { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- terminal ---------- */
.term {
  background: var(--term); color: var(--term-text);
  border-radius: 10px; border: 1px solid #1c2b28;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: .45rem; padding: .6rem .9rem; background: #0c1513; border-bottom: 1px solid #16221f; font-family: var(--mono); font-size: .76rem; color: #6f8580; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #23302d; display: inline-block; }
.term-bar .title { margin-left: .6rem; }
.term pre {
  margin: 0; padding: 1rem 1.1rem 1.2rem;
  font-family: var(--term-font); font-size: clamp(.62rem, 1.18vw, .86rem); line-height: 1.38;
  white-space: pre; overflow-x: auto; tab-size: 8;
}
.term .c-b { color: #ffffff; font-weight: 700; }
.term .c-y { color: #e6c76a; }
.term .c-g { color: #6ad38a; }
.term .c-c { color: #63c8d8; }
.term .c-m { color: #b48ad6; }
.term .c-d { color: #6c7f7a; }
.term .c-r { color: #ec7a6a; }
.term .c-inv { background: #e6c76a; color: #050a09; }
.term .cursor { display: inline-block; width: .6em; background: #cfd8d3; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.term-tabs { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: .9rem; }
.term-tabs button {
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  background: transparent; color: var(--silk-2); border: 1px solid var(--trace);
  padding: .45rem .85rem; border-radius: 6px;
}
.term-tabs button[aria-selected="true"] { background: var(--silk); color: var(--substrate); border-color: var(--silk); }
.term-note { margin-top: .9rem; color: var(--silk-3); font-size: var(--step--1); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--trace); border-radius: 10px; background: var(--substrate-deep); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; }
th { font-weight: 700; font-stretch: 108%; color: var(--silk-2); font-size: .86rem; background: var(--mask); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.mono, td code { white-space: nowrap; }
td.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
th.num { text-align: right; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: .12rem .5rem; border-radius: 3px; white-space: nowrap; }
.tag-fee { background: rgba(228,181,74,.14); color: var(--gold); }
.tag-free { background: rgba(94,214,196,.13); color: var(--signal); }
.tag-plan { background: rgba(240,138,93,.14); color: var(--warn); }
.tag-ok { background: rgba(106,211,138,.13); color: #7ed69a; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; align-items: center; }
.filter-bar button {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--trace); background: transparent; color: var(--silk-2);
  padding: .4rem .85rem; border-radius: 999px;
}
.filter-bar button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1d1606; }
.filter-bar input {
  margin-left: auto; font: inherit; font-size: .95rem; padding: .45rem .8rem; border-radius: 6px;
  background: var(--substrate-deep); border: 1px solid var(--trace); color: var(--silk); min-width: 14rem;
}
@media (max-width: 700px) { .filter-bar input { margin-left: 0; width: 100%; } }

/* ---------- algorithm detail cards ---------- */
.algo-detail { display: grid; grid-template-columns: 15rem 1fr; gap: 2.5rem; padding: 2.5rem 0; border-top: 1px solid var(--trace); }
.algo-detail:first-of-type { border-top: 0; }
.algo-detail .id h3 { font-family: var(--mono); font-stretch: 100%; font-size: 1.35rem; margin-bottom: .3rem; }
.algo-detail .id p { color: var(--silk-3); font-size: .95rem; margin: 0 0 .9rem; }
.algo-detail dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 1rem 0 0; font-size: .92rem; }
.algo-detail dt { color: var(--silk-3); }
.algo-detail dd { margin: 0; font-family: var(--mono); font-size: .86rem; }
.algo-detail .body p { color: var(--silk-2); }
@media (max-width: 760px) { .algo-detail { grid-template-columns: 1fr; gap: 1rem; } }

/* ---------- app screenshot ---------- */
.shot { margin: 0; }
.shot img { border-radius: 10px; border: 1px solid #1f2b33; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.shot figcaption { margin-top: .8rem; font-size: var(--step--1); color: var(--silk-3); }

/* ---------- keys ---------- */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem 2rem; margin: 0; padding: 0; list-style: none; }
.keys li { display: flex; gap: .9rem; align-items: baseline; color: var(--silk-2); }
.keys li kbd { flex: none; }

/* ---------- prose page (technical) ---------- */
.doc { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.toc { position: sticky; top: 5.5rem; align-self: start; font-size: .92rem; }
.toc p { font-weight: 700; color: var(--silk-3); margin-bottom: .6rem; font-size: .85rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--trace); }
.toc a { display: block; padding: .32rem 0 .32rem 1rem; color: var(--silk-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover, .toc a.on { color: var(--silk); border-left-color: var(--gold); }
.prose h2 { font-size: var(--step-2); margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--trace); }
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { color: var(--silk-2); }
.prose ul { padding-left: 1.2rem; max-width: var(--measure); }
.prose li { margin-bottom: .45rem; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--silk); }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; } }

.callout { border-left: 3px solid var(--gold); background: var(--mask); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; max-width: var(--measure); }
.callout p:last-child { margin-bottom: 0; }
.callout.plan { border-left-color: var(--warn); }

pre.code {
  background: var(--term); border: 1px solid #1c2b28; border-radius: 8px;
  padding: 1rem 1.1rem; overflow-x: auto; margin: 1.2rem 0;
  font-family: var(--mono); font-size: .86rem; line-height: 1.55; color: #dbe4df;
  max-width: 100%;
}
pre.code .cm { color: #6f8580; }
.copyable { position: relative; }
.copyable pre.code { padding-right: 4.5rem; }
.copy-btn {
  position: absolute; top: .55rem; right: .55rem;
  font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
  background: #13201d; color: var(--silk-2); border: 1px solid #24342f; border-radius: 5px; padding: .25rem .6rem;
}
.copy-btn:hover { color: var(--silk); }

/* memory ladder diagram */
.ladder { display: grid; gap: .55rem; margin: 1.6rem 0; max-width: 46rem; }
.ladder .rung { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: center; font-size: .9rem; }
.ladder .rung .lbl { color: var(--silk-2); }
.ladder .rung .lbl b { display: block; color: var(--silk); font-family: var(--mono); font-weight: 600; }
.ladder .bar { height: 26px; border-radius: 3px; background: var(--mask); border: 1px solid var(--trace); position: relative; overflow: hidden; }
.ladder .bar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--signal), #3aa898); }
.ladder .bar.gold span { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); }
.ladder .bar em { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--mono); font-size: .75rem; color: var(--silk-2); }

/* ---------- hybrid explorer ---------- */
.explorer { background: var(--substrate-deep); border: 1px solid var(--trace); border-radius: 12px; padding: clamp(1.2rem, 3vw, 2rem); }
.explorer-controls { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: end; margin-bottom: 1.6rem; }
.explorer-controls .grp p { margin: 0 0 .5rem; font-weight: 700; font-size: .9rem; color: var(--silk-2); }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg button {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--trace); background: var(--mask); color: var(--silk-2);
  padding: .45rem .8rem; border-radius: 6px;
}
.seg button[aria-pressed="true"] { background: var(--silk); color: var(--substrate); border-color: var(--silk); }
.mode-switch button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1d1606; }
@media (max-width: 800px) { .explorer-controls { grid-template-columns: 1fr; } }

.chip-map { display: grid; gap: 1rem; }
.ccx { border: 1px dashed rgba(169,192,183,.25); border-radius: 8px; padding: .9rem; }
.ccx-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--silk-2); margin-bottom: .7rem; }
.ccx-head b { color: var(--silk); }
.cores { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.core-unit { background: var(--mask); border: 1px solid var(--trace); border-radius: 6px; padding: .5rem; }
.core-unit.ecl { grid-column: span 2; }
.core-unit .ttl { font-size: .74rem; color: var(--silk-3); display: flex; justify-content: space-between; margin-bottom: .35rem; }
.core-unit .ttl b { color: var(--silk-2); font-weight: 700; }
.core-unit.p .ttl b { color: var(--gold); }
.core-unit.e .ttl b { color: var(--signal); }
.thr { display: flex; gap: 4px; margin-bottom: .45rem; flex-wrap: wrap; }
.thr i { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--silk-3); display: block; }
.thr i.on-l2 { background: var(--signal); border-color: var(--signal); }
.thr i.on-l3 { background: var(--gold); border-color: var(--gold); }
.thr i.dram { background: var(--warn); border-color: var(--warn); }
.l2box { height: 22px; border-radius: 3px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); position: relative; overflow: hidden; display: flex; }
.l2box .pad { height: 100%; background: rgba(94,214,196,.55); border-right: 1px solid var(--substrate-deep); }
.l2box em { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--mono); font-size: .66rem; color: var(--silk-2); }
.l3band { margin-top: .8rem; height: 30px; border-radius: 4px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); position: relative; overflow: hidden; display: flex; }
.l3band .pad { height: 100%; background: rgba(228,181,74,.6); border-right: 1px solid var(--substrate-deep); }
.l3band .pad.over { background: rgba(240,138,93,.7); }
.l3band em { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--silk); }
.explorer-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.2rem; font-size: .84rem; color: var(--silk-2); }
.explorer-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.explorer-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1.5px solid var(--silk-3); }
.explorer-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin: 1.6rem 0 0; }
.explorer-stats div { background: var(--mask); border-radius: 8px; padding: .9rem 1rem; border: 1px solid var(--trace); }
.explorer-stats dt { font-size: .8rem; color: var(--silk-3); margin-bottom: .2rem; }
.explorer-stats dd { margin: 0; font-family: var(--mono); font-size: 1.35rem; font-weight: 600; }
.explorer-stats dd.gold { color: var(--gold); }
.explorer-stats dd.sig { color: var(--signal); }
@media (max-width: 800px) { .explorer-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.explorer-note { margin-top: 1.2rem; color: var(--silk-2); font-size: .95rem; max-width: 75ch; }

/* ---------- download ---------- */
.dl-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
.dl-card { background: var(--mask); border: 1px solid var(--trace); border-radius: 12px; padding: 1.8rem; display: flex; flex-direction: column; }
.dl-card h3 { font-size: var(--step-2); font-stretch: 120%; margin-bottom: .2rem; }
.dl-card .ver { color: var(--silk-3); font-family: var(--mono); font-size: .85rem; margin-bottom: 1.2rem; }
.dl-card ul { padding-left: 1.1rem; color: var(--silk-2); margin: 0 0 1.4rem; }
.dl-card ul li { margin-bottom: .35rem; }
.dl-card .btn { align-self: flex-start; margin-top: auto; }
.dl-card .sha { margin-top: 1rem; font-family: var(--mono); font-size: .72rem; color: var(--silk-3); word-break: break-all; }
@media (max-width: 800px) { .dl-cards { grid-template-columns: 1fr; } }

.builder { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem 1.5rem; }
.builder label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--silk-2); }
.builder input, .builder select {
  width: 100%; font: inherit; font-size: .95rem; padding: .6rem .75rem; border-radius: 6px;
  background: var(--substrate-deep); border: 1px solid var(--trace); color: var(--silk);
}
.builder .row-check { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; padding-top: 1.6rem; }
.builder .row-check label { display: inline-flex; gap: .45rem; align-items: center; margin: 0; color: var(--silk); }
.builder .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .builder { grid-template-columns: 1fr; } }

details.faq { border-top: 1px solid var(--trace); padding: 1.1rem 0; max-width: 80ch; }
details.faq:last-of-type { border-bottom: 1px solid var(--trace); }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-weight: 800; font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--silk-2); margin: .8rem 0 0; }

/* ---------- page head (inner pages) ---------- */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--trace); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 18ch; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--trace); padding: 3rem 0 3.5rem; background: var(--substrate-deep); font-size: .92rem; color: var(--silk-3); }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-foot h4 { color: var(--silk-2); font-size: .9rem; margin-bottom: .7rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .35rem; }
.site-foot a { color: var(--silk-2); text-decoration: none; }
.site-foot a:hover { color: var(--silk); }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

.sources { font-size: .82rem; color: var(--silk-3); margin-top: 2rem; max-width: 80ch; }
.sources a { color: var(--silk-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.legend .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: inline-block; }
.legend .dot.free { background: transparent; border: 2px solid var(--signal); width: 10px; height: 10px; }
.builder input[type=checkbox] { width: auto; accent-color: var(--gold); }
.ladder .bar.full em { color: #1d1606; font-weight: 600; }
.l3band em { background: rgba(10,35,32,.85); padding: .1rem .4rem; border-radius: 3px; }
th { white-space: nowrap; }
/* simplified home */
.hero-plain .wrap { display: block; }
.hero-plain h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .3em; }
.claims { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: 1.15rem; color: var(--silk-2); }
.claims b { color: var(--gold); font-weight: 700; margin-right: .3rem; }
.shot-section { padding-top: 3rem; padding-bottom: 3.5rem; }
.shot-title { font-size: var(--step-2); font-stretch: 112%; margin-bottom: 1.2rem; }
.shot-section .shot img { width: 100%; max-width: 1072px; }
/* Windows app, redrawn in HTML so it stays sharp */
.winapp-fit { width: 100%; max-width: 1072px; position: relative; overflow: hidden; border-radius: 10px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.winapp { width: 1072px; transform-origin: 0 0; background: #0e1319; color: #e6edf3; font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; font-size: 13px; line-height: 1.35; padding: 16px 18px 10px; border: 1px solid #1f2b33; border-radius: 10px; }
.winapp small { display: block; font-size: 10.5px; letter-spacing: .04em; color: #8b98a5; margin-bottom: 6px; }
.wa-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wa-logo { width: 34px; height: 34px; border-radius: 8px; background: #2ec4b6; color: #0e1319; display: grid; place-items: center; font-size: 18px; }
.wa-title b { display: block; font-size: 16px; font-weight: 500; }
.wa-title span { color: #8b98a5; font-size: 12px; }
.wa-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.wa-pill { display: inline-flex; align-items: center; gap: 7px; background: #13261d; color: #4ade80; padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.wa-pill i, .wa-ok i { width: 7px; height: 7px; border-radius: 2px; background: #4ade80; display: inline-block; }
.wa-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 70px; height: 34px; padding: 0 16px; background: #1a222b; border: 1px solid #26303a; border-radius: 7px; font-size: 14px; color: #e6edf3; }
.wa-stop { background: #3a1719; border-color: #5c2226; color: #f87171; min-width: 110px; }
.wa-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.wa-pool { flex: 1; display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; background: #131a21; border: 1px solid #26303a; border-radius: 7px; font-size: 14px; margin-right: 40px; }
.wa-pool small { margin: 0; font-size: 10px; }
.wa-chev { margin-left: auto; color: #8b98a5; }
.wa-grid { display: grid; grid-template-columns: 1fr 352px; gap: 12px; }
.wa-card { background: #131a21; border: 1px solid #222c35; border-radius: 8px; padding: 14px 16px; position: relative; }
.wa-side { display: grid; gap: 12px; }
.wa-hash { padding-bottom: 8px; }
.wa-big { font-size: 40px; font-weight: 300; line-height: 1.1; margin: 4px 0 6px; }
.wa-sub { color: #8b98a5; font-size: 11.5px; }
.wa-chart { width: 100%; height: 210px; margin-top: 10px; display: block; }
.wa-hash .wa-ylab { position: absolute; left: 16px; margin-top: 98px; font-size: 11px; color: #5d6b78; }
.wa-shares { display: grid; grid-template-columns: 1.6fr 1fr 1fr; margin-bottom: 10px; }
.wa-shares b { display: block; font-size: 22px; font-weight: 400; color: #9aa7b3; }
.wa-shares b.g { color: #4ade80; }
.wa-shares span { font-size: 11.5px; color: #8b98a5; }
.wa-dots { display: flex; gap: 3px; margin-bottom: 8px; }
.wa-dots i { width: 7px; height: 7px; border-radius: 2px; background: #4ade80; }
.wa-line { font-size: 14px; margin-bottom: 4px; }
.wa-line em { font-style: normal; font-size: 10px; color: #2ec4b6; border: 1px solid #2ec4b6; border-radius: 3px; padding: 0 4px; margin-left: 6px; vertical-align: 2px; }
.wa-ok { color: #4ade80; font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 7px; }
.wa-bars { display: flex; gap: 3px; margin: 12px 0 10px; }
.wa-bars i { width: 14px; height: 22px; border-radius: 3px; background: #2ec4b6; }
.wa-tog { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13.5px; }
.wa-tog span { display: block; color: #8b98a5; font-size: 11px; }
.wa-tog i { width: 32px; height: 18px; border-radius: 9px; background: #2a333d; position: relative; }
.wa-tog i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #8b98a5; }
.wa-log { display: flex; align-items: center; gap: 18px; margin-top: 12px; padding: 9px 16px; background: #131a21; border: 1px solid #222c35; border-radius: 8px; font-size: 12px; }
.wa-log small { margin: 0; }
.wa-log .g { color: #4ade80; }
.wa-open { margin-left: auto; color: #5d6b78; }
.wa-foot { display: flex; justify-content: space-between; color: #5d6b78; font-size: 11.5px; padding: 8px 2px 0; }

/* ---------- admin.html ---------- */
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.adm-tile { background: var(--panel, #12352f); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 1rem 1.1rem; }
.adm-tile p { margin: 0; font-size: .85rem; color: var(--mute, #8fb0a8); }
.adm-tile b { display: block; font-size: 2rem; line-height: 1.2; margin: .15rem 0; color: var(--silk, #eaf3ef); }
.adm-tile span { font-size: .82rem; color: var(--mute, #8fb0a8); }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; }
.adm-card { background: var(--panel, #12352f); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 1.2rem; min-width: 0; }
.adm-card h2 { font-size: 1.05rem; margin: 0 0 .9rem; }
.adm-wide { grid-column: 1 / -1; }
.adm-legend { display: flex; gap: 1.2rem; font-size: .85rem; color: var(--mute, #8fb0a8); margin: -.4rem 0 .6rem; }
.adm-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .4rem; }
#adm-chart svg { width: 100%; height: auto; display: block; }
.adm-row { margin-bottom: .7rem; }
.adm-lbl { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.adm-lbl b { font-weight: 600; white-space: nowrap; }
.adm-lbl em { font-style: normal; font-weight: 400; color: var(--mute, #8fb0a8); margin-left: .3rem; }
.adm-lbl code { font-size: .85rem; overflow-wrap: anywhere; }
.adm-bar { height: 6px; background: rgba(255,255,255,.07); border-radius: 3px; margin-top: .3rem; }
.adm-bar span { display: block; height: 100%; background: var(--signal); border-radius: 3px; }
.adm-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; align-items: end; height: 120px; }
.adm-hours div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.adm-hours span { width: 100%; background: var(--gold); border-radius: 2px 2px 0 0; display: block; }
.adm-hours em { font-style: normal; font-size: .7rem; color: var(--mute, #8fb0a8); height: 1rem; }

.hero-claim { color: #ff6b5e; font-weight: 600; font-size: 1.15rem; line-height: 1.45; max-width: 46ch; margin: -.2rem 0 1.4rem; }
