/* Froude--Krylov RAO explorer (Chapter 7). Reuses the .sdof-* family used
   throughout the book so the control chrome matches the other tools. */

.sdof-app {
  margin: 1.5rem 0;
  border: 1px solid var(--bs-border-color, #ccc);
  border-radius: 0.5rem;
  padding: 1rem;
  background: var(--bs-body-bg, #fff);
}

.sdof-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem 1.25rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.sdof-control-group {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.sdof-control-group label { margin-bottom: 0.25rem; }
.sdof-control-group input[type="range"] { width: 100%; }

.sdof-control-group select {
  width: 100%;
  padding: 0.35rem 0.4rem;
  border-radius: 0.3rem;
  border: 1px solid var(--bs-border-color, #ccc);
  background: var(--bs-body-bg, #fff);
  color: var(--bs-body-color, #222);
  font-size: 0.9rem;
}

.fk-note {
  font-size: 0.85rem;
  color: var(--bs-secondary-color, #666);
  margin: -0.2rem 0 0.85rem;
  line-height: 1.45;
}

.fk-status {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-left: 4px solid #2c5282;
  border-radius: 0.25rem;
  background: var(--bs-tertiary-bg, #f1f3f5);
  color: var(--bs-body-color, #333);
}

.fk-schematic-wrap {
  margin-bottom: 0.9rem;
}

.fk-schematic-wrap canvas {
  width: 100%;
  height: 260px;
  background: #eef3f7;
  border: 1px solid var(--bs-border-color, #ccc);
  border-radius: 0.4rem;
  display: block;
}

.fk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 720px) {
  .fk-grid { grid-template-columns: 1fr; }
}

.fk-panel canvas {
  width: 100%;
  height: 280px;
  background: #fff;
  border: 1px solid var(--bs-border-color, #ccc);
  border-radius: 0.4rem;
  display: block;
}

.fk-panel-title {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  text-align: center;
  color: var(--bs-body-color, #333);
}

.fk-readouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.45rem 0.75rem;
  font-size: 0.85rem;
}

.fk-cell {
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0.55rem;
  border-radius: 0.3rem;
  background: var(--bs-tertiary-bg, #f1f3f5);
}

.fk-cell span:first-child {
  color: var(--bs-secondary-color, #666);
  font-size: 0.78rem;
}

.fk-val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--bs-body-color, #222);
}
