/* ============================================================
   JetXInfo — interactive tools (provably-fair page)
   Imports the article styles (hero, prose, related, FAQ) and
   adds the tool layout: panels, field rows, verifier result,
   round histogram, sequence chips, calculator metrics.
   ============================================================ */
@import url("article.css");

/* tool grid */
.tool { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 920px) { .tool--split { grid-template-columns: 1fr 1fr; align-items: start; } }

/* card panel */
.panel {
  background: var(--surface-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md);
}

/* field rows */
.fieldrow { display: grid; gap: var(--space-4); }
.fieldrow--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .fieldrow--2 { grid-template-columns: 1fr; } }
.fieldrow--end { align-items: end; }

/* verifier result */
.result {
  display: flex; align-items: baseline; gap: var(--space-3);
  margin-top: var(--space-5); padding-top: var(--space-5);
  border-top: 1px dashed var(--border-strong);
}
.result__cap { font-family: var(--font-mono); color: var(--text-muted); font-size: var(--fs-small); }
.result__big {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums slashed-zero;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); font-weight: 700;
  color: var(--signal-bright); line-height: 1;
}
.result__hash {
  font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-faint);
  word-break: break-all; margin-top: var(--space-3);
}

/* round histogram */
.hist {
  display: flex; align-items: flex-end; gap: 5px; height: 150px; padding: var(--space-3);
  background: var(--surface-well); border-radius: var(--radius-md); border: 1px solid var(--border-soft);
}
.hist__bar {
  flex: 1; background: linear-gradient(180deg, var(--tech), var(--tech-deep));
  border-radius: 3px 3px 0 0; min-height: 2px;
  transition: height var(--dur-base) var(--ease-cine);
}
.hist__bar.hot { background: linear-gradient(180deg, var(--signal-bright), var(--signal-deep)); }
.hist__labels { display: flex; gap: 5px; margin-top: 6px; }
.hist__labels span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--text-caption); }

/* recent sequence chips */
.seq { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-4); }
.seq__chip {
  font-family: var(--font-mono); font-size: var(--fs-caption); padding: 4px 8px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-soft);
  background: var(--surface-raised); color: var(--text-body); font-variant-numeric: tabular-nums;
}
.seq__chip.low { color: var(--danger-bright); border-color: var(--danger-line); }
.seq__chip.high { color: var(--signal-bright); border-color: var(--signal-line); }

/* calculator metrics */
.calc-metric__label { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--text-muted); }
.calc-metric__value { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; margin-top: 6px; line-height: 1; }
.calc-metric__value--tech { color: var(--tech-bright); }
.calc-metric__value--signal { color: var(--signal-bright); }
.calc-expected {
  font-family: var(--font-mono); font-weight: 700; line-height: 1;
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); margin-top: 6px;
}
.calc-expected--neg { color: var(--danger-bright); }
.calc-expected--pos { color: var(--fact-bright); }
