/* Kimi K3 course — attention cost simulator styles. Pairs with cost-sim.js. */

.cost-sim {
  background: #fbfaf4;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.2rem 1.4rem 1rem;
  margin: 2rem 0;
}

.cs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.cs-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cs-out {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--seq);
}

.cs-range {
  width: 100%;
  margin: 0 0 1rem;
  accent-color: var(--seq);
  cursor: grab;
}
.cs-range:active { cursor: grabbing; }

.cost-sim .cs-table { margin: 0; font-size: 0.88rem; }

.cost-sim .cs-table th {
  font-size: 0.66rem;
  padding-bottom: 0.35rem;
}

.cost-sim .cs-table td {
  padding: 0.5rem 0.7rem 0.5rem 0;
  vertical-align: middle;
  border-bottom: 1px solid var(--rule-soft);
}

.cost-sim .cs-table tbody tr:last-child td { border-bottom: none; }

.cs-swatch {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: baseline;
}

/* Bar sits behind the number so the row reads as one unit */
.cs-bar {
  display: block;
  height: 0.3rem;
  background: var(--rule-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.28rem;
}

.cs-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.cost-sim .cs-table b {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
}

.cs-foot {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft);
  min-height: 2.4em;
}

@media print {
  .cost-sim { background: #fff; page-break-inside: avoid; }
  .cs-range { display: none; }
  .cs-head::after {
    content: "(interactive — open the lesson in a browser to drag)";
    font-size: 0.75rem;
    color: var(--ink-faint);
  }
}
