/* BITS - Coinomics page
   Loaded after style.css and technology.css; reuses their hero, subnav, card, chart and table styles.
*/

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ——— 1. Creation steps ——— */
.creation-steps .step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.creation-steps .step-when { margin-bottom: 0.4rem; }

.step--hot {
  background:
    linear-gradient(160deg, rgba(219, 230, 76, 0.14) 0%, #0b1220 55%, #070b14 100%) padding-box,
    linear-gradient(140deg, rgba(219, 230, 76, 0.85), rgba(116, 196, 101, 0.4) 50%, rgba(59, 239, 255, 0.5)) border-box;
}

@media (min-width: 760px) {
  .creation-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .creation-steps { grid-template-columns: repeat(5, 1fr); }
}

.ladder {
  margin-top: 1.25rem;
  padding: 1.5rem 1.75rem;
}

.ladder:hover { transform: none; }

.ladder-title {
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bits-cyan) !important;
  margin-bottom: 1rem;
}

.ladder-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
  gap: 0.6rem;
}

.ladder-steps li {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(59, 239, 255, 0.18);
}

.ladder-steps li:first-child {
  border-color: rgba(219, 230, 76, 0.55);
  background: rgba(219, 230, 76, 0.08);
}

.ladder-steps strong {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--bits-lime) !important;
}

.ladder-steps span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ——— 2. Supply line chart ——— */
.supply-layout,
.inflation-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1040px) {
  .supply-layout { grid-template-columns: 1.25fr 0.75fr; align-items: start; }
  .inflation-layout { grid-template-columns: 1.3fr 0.7fr; align-items: start; }
}

.line-chart-plot {
  position: relative;
  min-height: 240px;
  outline: none;
  border-radius: 0.6rem;
}

.line-chart-plot:focus-visible {
  box-shadow: 0 0 0 2px rgba(59, 239, 255, 0.6);
}

.line-chart-plot svg {
  display: block;
  overflow: visible;
}

.line-chart-plot .grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.line-chart-plot .axis { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }

.line-chart-plot .tick {
  fill: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 11px;
}

.line-chart-plot .cap {
  stroke: var(--bits-cyan);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  opacity: 0.7;
}

.line-chart-plot .cap-label {
  fill: var(--bits-cyan);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
}

.line-chart-plot .area { fill: rgba(219, 230, 76, 0.1); }

.line-chart-plot .line {
  fill: none;
  stroke: var(--bits-lime);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.line-chart-plot .milestone {
  fill: var(--bits-lime);
  stroke: #0b1220;
  stroke-width: 2;
}

.line-chart-plot .milestone-label {
  fill: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
}

.line-chart-plot .crosshair {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
  opacity: 0;
}

.line-chart-plot .hover-dot {
  fill: var(--bits-lime);
  stroke: #0b1220;
  stroke-width: 2;
  opacity: 0;
}

.line-chart-plot.is-hovering .crosshair,
.line-chart-plot.is-hovering .hover-dot { opacity: 1; }

.line-tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  display: grid;
  gap: 0.1rem;
  min-width: 10rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  background: #0b1220;
  border: 1px solid rgba(59, 239, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.line-tip strong { color: var(--bits-lime) !important; }

.line-chart-plot.is-hovering .line-tip { opacity: 1; }

.supply-table td,
.supply-table th { padding-right: 0.75rem; }

.supply-table td:not(:first-child) { white-space: nowrap; }

/* ——— 3. Inflation ——— */
.bars--inflation .bar-col { padding: 0 0.15rem; }

.inflation-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.inflation-points .mini strong {
  font-size: 1.6rem;
  line-height: 1.1;
}

@media (min-width: 1040px) {
  .inflation-points { grid-template-columns: 1fr 1fr; }
}

/* ——— 4. Launch allocation ——— */
.share {
  padding: 1.75rem;
}

.share:hover { transform: none; }

.share .chart-title { margin-bottom: 1.25rem; }

.share-row {
  display: grid;
  grid-template-columns: 7rem 1fr 4rem;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
}

.share-when {
  font-weight: 600;
  font-size: 0.93rem;
}

.share-track {
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.share-bar {
  display: block;
  height: 100%;
  width: var(--w);
  min-width: 4px;
  border-radius: 999px;
  background: var(--bits-lime);
}

.share-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-align: right;
  white-space: nowrap;
}

.plan {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-style: dashed;
}

.plan:hover { transform: none; }

.plan .rule-icon { margin: 0; }
.plan h3 { margin-bottom: 0.3rem; }
.plan .pill { grid-column: 1 / -1; justify-self: start; }

@media (min-width: 760px) {
  .plan { grid-template-columns: auto 1fr auto; }
  .plan .pill { grid-column: auto; }
}

/* ——— 5. Holder protections ——— */
.rules-grid {
  display: grid;
  gap: 1rem;
}

.rule-card {
  padding: 1.6rem 1.5rem;
}

@media (min-width: 700px) {
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .rules-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ——— 6. FAQ ——— */
.faq {
  display: grid;
  gap: 0.85rem;
  max-width: 52rem;
  margin: 0 auto;
}

.faq-item {
  padding: 0;
}

.faq-item:hover { transform: none; }

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .ico {
  color: var(--bits-lime);
  transition: transform 0.25s ease;
}

.faq-item[open] summary .ico { transform: rotate(45deg); }

.faq-item p {
  padding: 0 1.4rem 1.25rem;
}

/* ——— Phones ——— */
@media (max-width: 699px) {
  .share-row {
    grid-template-columns: 1fr auto;
    gap: 0.4rem 1rem;
  }

  .share-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .bars--inflation .bar-value { font-size: 0.66rem; }
  .bars--inflation .bar-label { font-size: 0.7rem; }
}

/* Michroma renders "%" like "o/o" and a small "~" like a minus, so % / ~ values use the body font */
.inflation-points .mini strong,
.share-value {
  font-family: var(--font-body);
  font-weight: 700;
}
