/* Interactive Heatwave Definition Explorer -- layout for the docs widget.
   Kept minimal and scoped to #hdp-hw-widget so the sphinx_rtd_theme is untouched. */

#hdp-hw-widget {
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
  background: #fbfcfd;
}

#hdp-hw-widget .hdp-hw-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px 24px;
  margin-bottom: 16px;
}

#hdp-hw-widget .hdp-hw-control label {
  display: block;
  font-weight: 600;
  font-size: 0.85em;
  margin-bottom: 4px;
}

#hdp-hw-widget .hdp-hw-control .hdp-hw-val {
  font-weight: 400;
  color: #2a6592;
  margin-left: 6px;
}

#hdp-hw-widget input[type="range"] {
  width: 100%;
  margin: 0;
}

#hdp-hw-widget .hdp-hw-actions {
  margin-bottom: 12px;
}

#hdp-hw-widget button#hdp-hw-regenerate {
  background: #2a6592;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.85em;
  cursor: pointer;
}

#hdp-hw-widget button#hdp-hw-regenerate:hover {
  background: #1f4d6f;
}

#hdp-hw-widget .hdp-hw-pane {
  margin-bottom: 8px;
}

#hdp-hw-widget .hdp-hw-pane-title {
  font-size: 0.8em;
  font-weight: 600;
  color: #555;
  margin: 4px 0;
}

#hdp-hw-widget canvas {
  width: 100%;
  height: 180px;
  display: block;
}

#hdp-hw-widget .hdp-hw-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

#hdp-hw-widget .hdp-hw-metric {
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  padding: 8px;
  text-align: center;
  background: #fff;
}

#hdp-hw-widget .hdp-hw-metric-name {
  display: block;
  font-weight: 700;
  color: #2a6592;
}

#hdp-hw-widget .hdp-hw-metric-value {
  display: block;
  font-size: 1.4em;
  font-weight: 600;
}

#hdp-hw-widget .hdp-hw-metric-desc {
  display: block;
  font-size: 0.72em;
  color: #777;
}
