/* Scoped styles for the modular V-fold structural stiffness study in Chapter 5. */
.memorial-page .memorial-fold-widget {
  background: #101214;
  color: #f1f0ed;
  border: 1px solid #2c3033;
  font-family: Poppins, sans-serif;
}

.memorial-page .memorial-fold-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #2c3033;
}

.memorial-page .memorial-fold-widget .memorial-fold-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e6c6a4;
  margin: 0;
}

.memorial-page .memorial-fold-widget .memorial-fold-scale {
  font-size: 12px;
  color: #aeb5ba;
}

.memorial-fold-stage {
  position: relative;
  width: 100%;
  height: 390px;
  background: #101214;
  cursor: grab;
  overflow: hidden;
  touch-action: pan-y;
}

.memorial-fold-stage:active {
  cursor: grabbing;
}

.memorial-fold-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.memorial-fold-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #2c3033;
  border-bottom: 1px solid #2c3033;
  background: #15181b;
}

.memorial-fold-metrics > div {
  padding: 10px 14px;
  border-right: 1px solid #2c3033;
}

.memorial-fold-metrics > div:last-child {
  border-right: 0;
}

.memorial-page .memorial-fold-widget .memorial-fold-metrics span {
  display: block;
  font-size: 11px;
  color: #aeb5ba;
  line-height: 1.4;
}

.memorial-page .memorial-fold-widget .memorial-fold-metrics strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #f1f0ed;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.memorial-fold-controls {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.memorial-fold-caption {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #d6d9dc;
  min-height: 42px;
}

.memorial-fold-slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.memorial-fold-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #aeb5ba;
}

.memorial-fold-slider-row input[type="range"] {
  width: 100%;
  accent-color: #e6c6a4;
  cursor: pointer;
  margin: 0;
}

.memorial-fold-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.memorial-fold-widget button {
  font: 400 12px/1.3 Poppins, sans-serif;
  color: #eeefef;
  background: #22272b;
  border: 1px solid #495056;
  border-radius: 3px;
  padding: 8px 11px;
  min-height: 36px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
}

.memorial-fold-widget button:hover {
  background: #333a40;
  color: #fff;
}

.memorial-fold-widget button[aria-pressed="true"] {
  background: #e6c6a4;
  border-color: #e6c6a4;
  color: #17191b;
}

.memorial-fold-hint {
  margin: 0;
  font-size: 11px;
  color: #939aa0;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .memorial-fold-stage {
    height: 320px;
  }

  .memorial-fold-metrics strong {
    font-size: 16px;
  }
}
