/* Kimi K3 course — LatentMoE explorer styles. Pairs with moe-sim.js.
   Uses the width axis colour, per the course palette. */

.moe {
  background: #fbfaf4;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.2rem 1.4rem 1rem;
  margin: 2rem 0;
  transition: border-color 0.2s;
}
.moe.is-k3 { border-color: var(--width); }

.moe-ctls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem 1.3rem;
  margin-bottom: 1.1rem;
}

.moe-c label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
  line-height: 1.3;
  min-height: 2.1em;
}

.moe-c input[type="range"] {
  width: 100%;
  accent-color: var(--width);
  cursor: grab;
  margin: 0;
}
.moe-c input[type="range"]:active { cursor: grabbing; }

.moe-c output {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--width);
}

/* Stat row */
.moe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  border-top: 1px solid var(--rule-soft);
  padding-top: 0.85rem;
  margin-bottom: 0.95rem;
}

.moe-k {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}

.moe-stat b {
  display: block;
  font-family: var(--mono);
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--width);
  line-height: 1.15;
}

.moe-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* Expert grid */
.moe-viz {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.6rem;
  min-height: 3rem;
}

.moe-viz i {
  display: block;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--rule);
}

.moe-viz i.moe-on {
  background: var(--width);
  box-shadow: 0 0 0 1.5px var(--width-bg);
}

.moe-more {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-faint);
  margin-left: 0.5rem;
}

.moe-note {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0.85rem 0 0.9rem;
  min-height: 3.4em;
}
.moe-note b { color: var(--ink); }

.moe-reset {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.moe-reset:hover { border-color: var(--width); color: var(--width); }

@media (max-width: 34rem) {
  .moe-ctls, .moe-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .moe-c label { min-height: 0; }
}

@media print {
  .moe { background: #fff; page-break-inside: avoid; }
  .moe-ctls input, .moe-reset { display: none; }
  .moe-note { min-height: 0; }
}
