/* ===== Shared styles for original simulations ===== */

.sim-hero { padding: 34px 0 30px; }
.sim-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.sim-hero p.lead { margin-bottom: 14px; }
.sim-hero .crumbs { font-size: .85rem; margin-bottom: 10px; }
.sim-hero .crumbs a { color: #cfd8e3; text-decoration: underline; }

.sim-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 920px) { .sim-layout { grid-template-columns: 1fr; } }

.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.panel h2 { font-size: 1.05rem; margin-bottom: 14px; }

.control { margin-bottom: 18px; }
.control label, .control .lbl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
}
.control output {
  font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  font-size: .88rem;
  color: var(--link);
  white-space: nowrap;
}
.control input[type="range"] { width: 100%; accent-color: var(--sub-accent, var(--teal)); }
.control select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
}
.control .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.control.check label { justify-content: flex-start; align-items: center; font-weight: 600; gap: 8px; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.stage {
  width: 100%;
  height: auto;
  display: block;
  background: var(--soft-fill);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.stage text { font-family: "IBM Plex Sans", system-ui, sans-serif; fill: var(--text); }
.stage .muted { fill: var(--muted); }
.stage .axis { stroke: var(--muted); stroke-width: 1; }
.stage .grid { stroke: var(--border); stroke-width: 1; }

.readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.readout { background: var(--soft-fill); border-radius: 8px; padding: 10px 12px; }
.readout .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; }
.readout .v { font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; font-weight: 700; line-height: 1.2; }
.readout .u { font-size: .8rem; color: var(--muted); }
.readout.good .v { color: #17783a; }
.readout.warn .v { color: #9a5b00; }
.readout.bad .v { color: #c0392b; }
:root[data-theme="dark"] .readout.good .v { color: #5fd07f; }
:root[data-theme="dark"] .readout.warn .v { color: #f2b21d; }
:root[data-theme="dark"] .readout.bad .v { color: #ff7a6b; }

.note-box {
  border-left: 4px solid var(--gold);
  background: var(--soft-fill);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: .9rem;
  color: var(--text-soft);
  margin-top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.learn-grid h3 { font-size: 1rem; }
.learn-grid ul { margin: 0; padding-left: 18px; color: var(--text-soft); font-size: .92rem; }
.learn-grid li { margin-bottom: 6px; }
