/* =========================================================================
   RH-4 — technical databook brutalism.
   Cream paper, hard black rules, monospace everywhere, one heavy display
   face. Colour is rationed: mint means "live", amber means "attention".
   ========================================================================= */

:root {
  --paper:      #efeee6;
  --paper-2:    #e6e5da;
  --ink:        #111110;
  --ink-2:      #45453f;
  --dim:        #83837a;

  --mint:       #8fe8b0;
  --mint-deep:  #1f7a4c;
  --amber:      #f5c842;

  --panel:      #0c0d0b;
  --panel-2:    #141613;
  --panel-line: #272a25;
  --panel-dim:  #6f7669;

  /* Il marchio e' un'incisione ottocentesca: un grottesco pesante le
     litigava contro. Un serif editoriale ci sta d'accordo. */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1400px;
  --rule: 1.5px solid var(--ink);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  /* graph paper, barely there */
  background-image:
    linear-gradient(to right,  rgba(17, 17, 16, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 16, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1; }
p, dl, dd, dt, ol, ul { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(17, 17, 16, 0.07);
  padding: 1px 5px;
  border: 1px solid rgba(17, 17, 16, 0.14);
}

/* small square glyph used all over the labels */
.sq {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--ink);
  margin-right: 7px;
  vertical-align: 1px;
}
.sq-mint { background: var(--mint); }

.arr { display: inline-block; margin-left: 4px; }

/* micro label — the workhorse of the whole page */
.ck, .tag, .pill, .ticker b, .con-tag, .con-mid, .con-live {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ============================================================== ticker == */

.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-bottom: var(--rule);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
}

.ticker-set {
  display: flex;
  flex: 0 0 auto;
  padding: 8px 0;
}

.ticker b {
  font-weight: 400;
  padding: 0 2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
/* I quadratini verdi erano il tell piu' evidente: al loro posto un
   filetto verticale, come su un nastro di quotazioni. */
.ticker b::before {
  content: "";
  width: 1px; height: 11px;
  background: rgba(239, 238, 230, 0.32);
  margin-right: 24px;
}

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ================================================================= nav == */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: var(--paper);
  border-bottom: var(--rule);
}

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }

/* il chip inciso al posto del riquadro di testo: e' il marchio vero */
.logo-box {
  display: block;
  width: 30px;
  height: 30px;
  border: var(--rule);
  background: var(--paper);
}

.logo-word {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }

@media (max-width: 900px) { .nav-links { display: none; } .btn-sm { margin-left: auto; } }

/* ============================================================= buttons == */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: var(--rule);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}
.btn-light:hover { background: var(--ink); color: var(--paper); }
.btn-dark:hover  { background: var(--paper); color: var(--ink); }

.btn-dark  { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-sm    { padding: 10px 18px; font-size: 11px; }

/* ================================================================ hero == */

main { max-width: var(--maxw); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: clamp(36px, 5vw, 72px) var(--gutter) clamp(40px, 6vw, 80px);
  border-bottom: var(--rule);
}

@media (max-width: 1000px) { .hero { grid-template-columns: 1fr; } }

.tag { color: var(--ink); margin-bottom: 22px; }

.issue {
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.issue b {
  font-family: var(--display);
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 1px;
}

/* the display face — filled line then outlined line */

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.display em { font-style: italic; font-weight: 300; }

.hero .display {
  /* "A real processor," deve stare su una riga accanto al logo */
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.04;
  margin-bottom: 10px;
}



.lede {
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 14.5px;
  margin-bottom: 30px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

/* definition rows under the hero */

.specs { border-top: var(--rule); }

.spec {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(17, 17, 16, 0.22);
}

.spec dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.spec dd {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.ok { color: var(--mint-deep); font-weight: 600; }

/* ============================================================= console == */

.console {
  background: var(--panel);
  border: var(--rule);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.con-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--panel-line);
  flex-wrap: wrap;
}
.con-tag  { color: var(--paper); }
.con-mid  { color: var(--panel-dim); margin-left: auto; }
.con-live { color: var(--mint); }

.con-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.cstat {
  padding: 14px 16px 16px;
  border-right: 1px solid var(--panel-line);
  border-bottom: 1px solid var(--panel-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cstat:last-child { border-right: none; }

.con-stats .ck { color: var(--panel-dim); }

.cv {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 500;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.con-die { padding: 16px; }

#die { display: block; width: 100%; background: #07080a; }

.die-note {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--panel-dim);
}

.con-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  border-top: 1px solid var(--panel-line);
  flex-wrap: wrap;
}

.leds { display: flex; gap: 9px; }

.led {
  width: 34px; height: 34px;
  background: #14171a;
  border: 1px solid var(--panel-line);
  transition: background 0.06s linear, box-shadow 0.12s, border-color 0.06s;
}
.led.is-on {
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 0 20px rgba(143, 232, 176, 0.55);
}

.con-exec { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 4px; }
.con-exec .ck { color: var(--panel-dim); }
.con-exec .cv { font-size: 15px; }

.halted {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--panel);
  background: var(--amber);
  padding: 9px 16px;
  border-top: 1px solid var(--panel-line);
}

/* =========================================================== stat strip == */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: var(--rule);
}

@media (max-width: 900px) { .strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr; } }

.cell {
  position: relative;
  padding: 26px var(--gutter) 30px;
  border-right: 1px solid rgba(17, 17, 16, 0.22);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.cell:last-child { border-right: none; }
@media (max-width: 900px) {
  .cell { border-bottom: 1px solid rgba(17, 17, 16, 0.22); }
  .cell:nth-child(2n) { border-right: none; }
}

.cell .ck { color: var(--dim); }

/* Il numerone contornato era una citazione diretta. Un numero piccolo in
   corsivo dice la stessa cosa senza gridarla. */
.ghost {
  position: absolute;
  top: 22px; right: 20px;
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: var(--dim);
  pointer-events: none;
}

.cell-v {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.cell-v small { font-size: 15px; margin-left: 3px; color: var(--dim); }

.cell-n {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch;
}

/* ============================================================ sections == */

.sec {
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  border-bottom: var(--rule);
}
.sec-last { border-bottom: none; }

/* Dal riquadro brutalista alla dicitura da rivista: un filetto che
   attraversa la pagina e la sezione scritta sopra, non dentro una scatola. */
.pill {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(17, 17, 16, 0.28);
  color: var(--dim);
}
.pill-n {
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 56px);
}
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; align-items: start; } }

.display-2 {
  font-size: clamp(32px, 4.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.sec-copy {
  color: var(--ink-2);
  font-size: 14px;
  max-width: 56ch;
}

/* =============================================== segmented control bar == */

.bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--rule);
  background: var(--ink);
  margin-bottom: 22px;
}
@media (max-width: 900px) { .bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bar { grid-template-columns: 1fr; } }

.bar-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--panel-line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}
.bar-cell:last-child { border-right: none; }
.bar-cell .ck { color: var(--panel-dim); }

.bar-v {
  font-family: var(--mono);
  font-size: 19px;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
}

.controls, .chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* Nasce nella barra scura ma vive anche dentro le card chiare: il colore
   di base e' l'inchiostro, ed e' la barra a schiarirlo. Al contrario il
   testo spariva su fondo carta. */
.chip {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(17, 17, 16, 0.28);
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.12s;
}
.chip:hover { border-color: var(--ink); }

.bar .chip { color: var(--paper); border-color: var(--panel-line); }
.bar .chip:hover { border-color: var(--panel-dim); }
.chip.chip-on, .chip.is-on {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--panel);
  font-weight: 600;
}

/* ================================================================ cards == */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.card {
  border: var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.card-pad { padding: 20px; gap: 14px; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: var(--rule);
  background: var(--paper-2);
}
.ck-dim { color: var(--dim); }

.card-copy { font-size: 13.5px; color: var(--ink-2); }

/* registers */

.registers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: 1;
}

.reg {
  padding: 14px 6px 13px;
  border-right: 1px solid rgba(17, 17, 16, 0.18);
  border-bottom: 1px solid rgba(17, 17, 16, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.reg:nth-child(4n) { border-right: none; }
.reg:nth-last-child(-n+4) { border-bottom: none; }

.reg-name {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.reg-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.reg.just-changed { animation: regflash 0.55s ease-out; }
@keyframes regflash {
  0%   { background: var(--mint); }
  100% { background: transparent; }
}

/* program listing */

.listing {
  position: relative;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
}

.line {
  display: grid;
  grid-template-columns: 3ch 4ch 1fr;
  gap: 14px;
  padding: 0 16px;
  white-space: nowrap;
  color: var(--ink-2);
}
.line .addr { color: var(--dim); }
.line .word { color: var(--mint-deep); }

.line.is-pc {
  background: var(--mint);
  color: var(--ink);
  font-weight: 600;
}
.line.is-pc .addr, .line.is-pc .word { color: var(--ink); }

/* ================================================================ band == */

.band {
  background: var(--paper-2);
  border-bottom: var(--rule);
  overflow: hidden;
}

.band-track {
  display: flex;
  width: max-content;
  animation: slide 34s linear infinite;
}

.band-set { display: flex; align-items: center; flex: 0 0 auto; padding: 18px 0; }

.band-set em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(26px, 3.6vw, 46px);
  letter-spacing: -0.01em;
  padding: 0 26px;
  white-space: nowrap;
}

.band-set b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: var(--rule);
  background: var(--mint);
  padding: 6px 12px;
  white-space: nowrap;
}

/* =============================================================== steps == */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: var(--rule);
  background: var(--paper);
}

.steps li {
  padding: 22px 20px 26px;
  border-right: 1px solid rgba(17, 17, 16, 0.22);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.steps li:last-child { border-right: none; }

.step-n {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: var(--ink);
  padding: 4px 8px;
  align-self: flex-start;
}

.steps h3 {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.steps p { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }

.note {
  margin-top: 22px;
  border: var(--rule);
  background: var(--mint);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note h3 {
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.note p { font-size: 13.5px; max-width: 74ch; color: #1a3a28; }

/* ================================================================= isa == */

.table-wrap { border: var(--rule); overflow-x: auto; background: var(--paper); }

.isa { width: 100%; border-collapse: collapse; min-width: 540px; }

.isa th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: var(--ink);
  padding: 11px 18px;
  white-space: nowrap;
}

.isa td {
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(17, 17, 16, 0.15);
  color: var(--ink-2);
}
.isa tbody tr:last-child td { border-bottom: none; }
.isa tbody tr:hover td { background: rgba(143, 232, 176, 0.28); }

.isa td:first-child { color: var(--dim); width: 4ch; }
.isa td:nth-child(2) { color: var(--ink); font-weight: 600; }
.isa td:last-child { color: var(--mint-deep); font-weight: 600; letter-spacing: 0.1em; }
.isa code { background: none; border: none; padding: 0; }

.footnote { margin-top: 16px; font-size: 12.5px; color: var(--dim); max-width: 56ch; }

/* ================================================== definition rows ===== */

.rows { padding: 4px 0; }

.rows > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(17, 17, 16, 0.15);
}
.rows > div:last-child { border-bottom: none; }

.rows dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.rows dd {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rows .dim { color: var(--dim); }
.rows .pending { color: var(--ink); font-weight: 600; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}

/* ============================================================== footer == */

.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gutter) 40px;
  border-top: var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.f-word { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }

.f-mid, .f-link {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.f-link { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .band-track { animation: none; }
  * { transition: none !important; }
  .reg.just-changed { animation: none; }
}

/* ============================================================= factory == */

.mintgrid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 22px;
  margin-bottom: 34px;
}
@media (max-width: 860px) { .mintgrid { grid-template-columns: 1fr; } }

.mintform { gap: 20px; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field-k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.field input {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: var(--rule);
  padding: 11px 13px;
  width: 100%;
}
.field input:focus {
  outline: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.field-note { font-size: 11.5px; color: var(--dim); line-height: 1.45; }
.field-note.is-bad { color: #b4432b; }

.btn-block { width: 100%; }
.btn:disabled { cursor: not-allowed; opacity: 0.45; }
.btn:disabled:hover { background: var(--ink); color: var(--paper); }

.chipcard { gap: 16px; }

.card-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.chip-preview { line-height: 0; }
.chip-preview svg { width: 100%; height: auto; display: block; }

.costs { margin-top: 4px; }
.costs .isa td:nth-child(2) { color: var(--ink); font-weight: 600; }
.costs .isa td:nth-child(3) { color: var(--ink-2); font-weight: 400; }
.costs .isa td:last-child { color: var(--mint-deep); }
.costs .isa td:first-child { width: auto; color: var(--ink-2); }

.field-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 460px) { .field-split { grid-template-columns: 1fr; } }

/* i conti dell'emissione, in chiaro sotto al form */
.emission {
  border: var(--rule);
  background: var(--paper-2);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.em-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
}
.em-row span:first-child {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.em-row span:last-child { font-weight: 600; }

.em-break {
  border-top: 1px solid rgba(17, 17, 16, 0.22);
  padding-top: 9px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.em-break b { color: var(--ink); }

/* ============================================================== wallet == */

.power { padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.power-row { display: flex; flex-wrap: wrap; gap: 10px; }

.cli summary {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
}
.cli summary:hover { color: var(--ink); }

.cli pre {
  margin: 10px 0 0;
  padding: 12px 14px;
  background: var(--panel);
  color: var(--mint);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  overflow-x: auto;
  border: var(--rule);
}

/* tre card in fila: la sezione clock ne ha una in piu' delle altre */
.split-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .split-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .split-3 { grid-template-columns: 1fr; } }

/* deployata: il pallino passa da ambra a menta */
.dot-live { background: var(--mint-deep); box-shadow: 0 0 8px rgba(31, 122, 76, 0.5); }
.rows .addr { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--mint-deep); }
.rows .addr:hover { color: var(--mint-deep); }

/* ============================================================ upload == */

.drop {
  position: relative;
  border: 1.5px dashed rgba(17, 17, 16, 0.4);
  background: var(--paper-2);
  min-height: 128px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 14px;
  transition: border-color 0.14s, background 0.14s;
}
.drop:hover, .drop.is-over { border-color: var(--ink); background: var(--paper); }
.drop.is-set { border-style: solid; padding: 0; }

.drop-text {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--dim);
  text-align: center;
  line-height: 1.7;
}
.drop-text small { font-size: 10px; letter-spacing: 0.12em; }

.drop img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: contain;
  background: var(--paper);
}

.field-note.is-busy { color: var(--ink-2); }

/* il byte in ingresso: piccolo, mono, a fianco dei controlli */
.byte-in {
  font-family: var(--mono);
  font-size: 15px;
  width: 72px;
  color: var(--mint);
  background: var(--panel-2, #141613);
  border: 1px solid var(--panel-line);
  padding: 7px 9px;
}
.power .byte-in { color: var(--ink); background: var(--paper); border: var(--rule); }
.byte-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.rows .pending { color: var(--ink); font-weight: 600; }

/* ======================================== eroe, stile del mockup ======== */

.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

/* il logo isometrico accanto al titolo; sotto i 700px scende sotto */
.hero-logo {
  flex: 0 0 auto;
  width: clamp(110px, 12vw, 180px);
  height: auto;
  /* il JPG porta il suo panna: multiply lo fonde nel nostro senza bordi */
  mix-blend-mode: multiply;
}
@media (max-width: 700px) { .hero-head { flex-direction: column; } }

.em-mint { font-style: italic; font-weight: 300; color: var(--mint-deep); }

.kicker { margin: 6px 0 22px; color: var(--ink-2); }

/* i riquadri GATES / FLIP-FLOPS / CLOCK del mockup, su panna */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}
.hstat {
  border: var(--rule);
  background: var(--paper);
  padding: 12px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 118px;
}
.hstat .ck { color: var(--dim); }
.hstat-v {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--mint-deep);
  font-variant-numeric: tabular-nums;
}
.hero-status {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
}
