/* --------------------------------
   Heating Ice — sim-specific styles
   Inherits slg-styles.css tokens
----------------------------------- */

/* Instructions callout */
.hi-instructions {
  background: rgba(26, 188, 156, 0.1);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--navy);
}

/* Canvas wrapper */
.hi-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 8px;
  min-height: 320px;
}

.hi-canvas-wrap canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* LCD Stopwatch */
.hi-stopwatch {
  background: #1a1a2e;
  border-radius: 8px;
  padding: 14px 20px;
  text-align: center;
  border: 2px solid #2d2d44;
  margin-bottom: 16px;
}

.hi-stopwatch-time {
  font-family: 'Courier New', 'Lucida Console', monospace;
  font-size: 2.4rem;
  color: #39ff7f;
  letter-spacing: 4px;
  text-shadow: 0 0 8px rgba(57, 255, 127, 0.4);
  line-height: 1;
}

.hi-stopwatch-label {
  font-size: 11px;
  color: rgba(57, 255, 127, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 5px;
}

/* Start button — full width */
.hi-start-btn {
  width: 100%;
  margin-bottom: 14px;
}

/* Speed group */
.hi-speed-group {
  margin-bottom: 2px;
}

.hi-speed-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
}

.hi-speed-btns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.hi-speed-btn {
  padding: 8px 4px;
  border-radius: 6px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
}

.hi-speed-btn:hover {
  border-color: var(--teal);
  background: rgba(26, 188, 156, 0.08);
}

.hi-speed-btn.hi-speed-active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* Results panel */
.hi-results-panel {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.hi-table-hint {
  font-size: 0.8rem;
  color: var(--slate);
  margin: 0 0 12px 0;
  font-style: italic;
}

/* Investigation section */
.investigation-section {
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.investigation-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.15s;
}

.investigation-toggle:hover {
  background: var(--gray-100);
}

.investigation-toggle .chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.investigation-toggle[aria-expanded='true'] .chevron {
  transform: rotate(180deg);
}

.investigation-body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.investigation-body ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}

.investigation-body li {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 0.25rem;
  color: var(--navy);
}

/* State badge colour helpers used by JS */
.state-ice { color: #2980b9; }
.state-melting { color: #8e44ad; }
.state-water { color: var(--teal); }
.state-boiling { color: #e67e22; }

/* Mobile */
@media (max-width: 767px) {
  .hi-stopwatch-time {
    font-size: 1.9rem;
  }

  .hi-instructions {
    font-size: 0.83rem;
  }

  .hi-results-panel {
    padding: 1rem;
  }
}
