/**
 * byteomi-systems/mechanical-systems/spring-damper-behavior.html
 * Mass–Spring Settling Bench — çelik + teal damper; dişli pirinç / elektrik chamber değil.
 */

.doc-byteomi-preset.doc-byteomi-preset--hero.doc-byteomi-preset--spring-damper {
  /* içerik sütunu — bkz. --content-width */
  max-width: 100%;
  width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}

.doc-byteomi-preset--spring-damper .doc-byteomi-preset__tag {
  color: rgba(94, 196, 180, 0.95);
}

.doc-sd-disclaimer {
  margin: 0 0 1.35rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 196, 180, 0.22);
  background: linear-gradient(120deg, rgba(94, 196, 180, 0.07), transparent 70%);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(180, 195, 200, 0.9);
}

.doc-sd-disclaimer p {
  margin: 0;
}

.doc-math-line {
  margin: 0.85rem 0;
  padding: 0.65rem 0.9rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(210, 230, 225, 0.92);
  border-left: 2px solid rgba(94, 196, 180, 0.55);
  background: linear-gradient(90deg, rgba(94, 196, 180, 0.08), transparent 70%);
}

.doc-sd-lab__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
  gap: 0.65rem;
  align-items: stretch;
}

.doc-sd-lab__stage-wrap {
  position: relative;
  min-height: min(48vh, 400px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(120, 160, 155, 0.18);
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(94, 196, 180, 0.08), transparent 55%),
    radial-gradient(60% 40% at 80% 80%, rgba(100, 120, 140, 0.06), transparent 50%),
    #07090b;
}

.doc-sd-lab__stage {
  position: absolute;
  inset: 0;
}

.doc-sd-lab__stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.doc-sd-lab__stage-hud {
  position: absolute;
  left: 0.6rem;
  bottom: 0.5rem;
  z-index: 2;
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.56rem;
  color: rgba(180, 210, 200, 0.78);
  pointer-events: none;
}

.doc-sd-lab__plot-wrap {
  position: relative;
  min-height: min(48vh, 400px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(120, 160, 155, 0.16);
  background: #080a0c;
  display: flex;
  flex-direction: column;
}

.doc-sd-lab__plot {
  flex: 1;
  width: 100%;
  height: 100%;
  display: block;
  min-height: 220px;
}

.doc-sd-lab__plot-label {
  margin: 0;
  padding: 0.35rem 0.55rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: rgba(140, 170, 165, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.doc-sd-lab__hud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
  margin: 0.75rem 0 0.35rem;
  padding: 0 0.15rem;
}

.doc-sd-lab__formula {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: rgba(120, 210, 195, 0.9);
}

.doc-sd-lab__readout {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  color: rgba(170, 185, 190, 0.85);
}

.doc-sd-lab__console {
  margin-top: 0.55rem;
  padding: 0.7rem 0.85rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 155, 0.16);
  background: linear-gradient(165deg, rgba(22, 28, 28, 0.92), rgba(10, 12, 14, 0.95));
}

.doc-sd-lab__console-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.65rem;
}

.doc-sd-lab__console-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(94, 196, 180, 0.75);
  margin-right: auto;
}

.doc-sd-lab__presets,
.doc-sd-lab__actions {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.15rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-sd-lab__preset-btn,
.doc-sd-lab__action-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(190, 205, 200, 0.65);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.doc-sd-lab__preset-btn.is-active {
  color: #0c1412;
  background: linear-gradient(145deg, #7ed9c8, #3a9e8e);
}

.doc-sd-lab__action-btn {
  color: #0c1412;
  background: linear-gradient(145deg, #a8c4c0, #6a8884);
}

.doc-sd-lab__sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.55rem 0.85rem;
}

.doc-sd-lab__field {
  display: grid;
  grid-template-columns: 2.1rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(210, 220, 218, 0.88);
}

.doc-sd-lab__field-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(94, 196, 180, 0.9);
}

.doc-sd-lab__field input[type="range"] {
  width: 100%;
  accent-color: #5ec4b4;
}

.doc-sd-lab__field strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(210, 225, 220, 0.9);
  white-space: nowrap;
  min-width: 5rem;
  text-align: right;
}

.doc-sd-lab__hint {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(150, 160, 165, 0.88);
}

@media (max-width: 820px) {
  .doc-sd-lab__layout {
    grid-template-columns: 1fr;
  }

  .doc-sd-lab__stage-wrap,
  .doc-sd-lab__plot-wrap {
    min-height: 280px;
  }
}
