/* ---- Dashboard-specific styles (loaded on top of pitch.css) ---- */

#dash-nav {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
#dash-nav a {
  color: #3a7bd5;
  text-decoration: none;
}
#dash-nav a:hover { text-decoration: underline; }

.dash-intro {
  color: #444;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.legend-min { color: #cc0000; font-weight: 600; }
.legend-exp { color: #1a7f1a; font-weight: 600; }
.legend-max { color: #0055cc; font-weight: 600; }

/* Stat cards */
#stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  flex: 1;
  min-width: 130px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  text-align: center;
}
.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2a9d2a;
}
.stat-card .stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #777;
}

/* Generic card */
.dash-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.1rem 1.2rem 1.3rem;
  margin-bottom: 1.5rem;
}
.dash-card h2 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.card-sub {
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.dash-two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.dash-two-col .dash-card {
  flex: 1;
  min-width: 280px;
}

.chart-host svg { width: 100%; height: auto; display: block; }

/* Chart legend */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #555;
  align-items: center;
}
.chart-legend i { display: inline-block; vertical-align: middle; margin-right: 0.3rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-data { background: #3a7bd5; opacity: 0.65; }
.swatch { width: 16px; height: 10px; border-radius: 2px; }
.swatch-band { background: rgba(58,123,213,0.18); border: 1px solid rgba(58,123,213,0.4); }
.line { width: 18px; height: 0; border-top: 3px solid; }
.line-exp { border-color: #1a7f1a; }

/* SVG element styling */
.axis-line { stroke: #ccc; stroke-width: 1; }
.grid-line { stroke: #eee; stroke-width: 1; }
.axis-text { fill: #888; font-size: 11px; font-family: sans-serif; }
.axis-title { fill: #666; font-size: 12px; font-family: sans-serif; font-weight: 600; }

/* Explorer */
#explorer-control {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
#explorer-control label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #777;
  font-weight: 600;
}
#explore-slider { flex: 1; min-width: 160px; accent-color: #2a9d2a; }
#explore-input {
  width: 64px;
  padding: 0.35rem 0.4rem;
  font-size: 1rem;
  text-align: center;
  border: 1px solid #bbb;
  border-radius: 4px;
}

#explorer-readout {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ex-stat {
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 0.5rem;
  border-radius: 6px;
  background: #f7f7f7;
}
.ex-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #888;
  margin-bottom: 0.2rem;
}
.ex-val { font-size: 1.6rem; font-weight: 700; }
.ex-stat:nth-child(1) .ex-val { color: #cc0000; }
.ex-stat:nth-child(2) .ex-val { color: #1a7f1a; }
.ex-stat:nth-child(3) .ex-val { color: #0055cc; }

#explorer-bar svg { width: 100%; height: auto; display: block; }

.dash-status {
  font-size: 0.8rem;
  color: #b06a00;
  margin-bottom: 1rem;
  min-height: 1em;
}

@media (max-width: 600px) {
  .stat-card .stat-value { font-size: 1.25rem; }
  .ex-val { font-size: 1.3rem; }
}
