/* Speedometer Gauge Layout */
.gauge-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.gauge-wrapper {
  position: relative;
  width: 220px;
  height: 130px;
}

#gauge-svg {
  width: 100%;
  height: 100%;
}

.gauge-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
}

.gauge-val {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.gauge-unit {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

#gauge-fill {
  transition: stroke-dasharray 0.8s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

.risk-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.risk-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.risk-badge {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  color: white;
  letter-spacing: 0.05em;
  transition: all 0.4s ease;
}

/* Cumulative Metrics Cards */
.screen-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 480px) {
  .screen-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.s-metric-box {
  background: rgba(0, 0, 0, 0.015);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.limit-box {
  background: rgba(var(--primary-rgb), 0.04);
  border-color: rgba(var(--primary-rgb), 0.15);
}

.sm-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.sm-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.limit-box .sm-val {
  color: var(--primary);
}

/* Health tips block */
.health-tips-card {
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--surface-border);
  transition: all 0.4s ease;
}

/* Dynamic styles based on risk state toggled in JS */
.tips-low {
  background: rgba(16, 185, 129, 0.03);
  border-color: rgba(16, 185, 129, 0.2);
}

.tips-med {
  background: rgba(245, 158, 11, 0.03);
  border-color: rgba(245, 158, 11, 0.2);
}

.tips-high {
  background: rgba(239, 68, 68, 0.03);
  border-color: rgba(239, 68, 68, 0.2);
}
