/* ============================================================
   VDX Industry Analysis Page Styles (Issue #228)
   ============================================================ */

.ia-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.ia-back-link {
  font-size: 0.85rem;
  color: var(--info);
  white-space: nowrap;
}
.ia-back-link:hover { color: var(--highlight); }

.ia-chart-section {
  margin-bottom: 1.5rem;
  background: var(--card-bg, #1a2240);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border, #2a3a5c);
}

.ia-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--text-primary, #cdd4e0);
}

.ia-chart-wrap {
  position: relative;
  height: 320px;
}

/* Financial data table */
.ia-table-wrap {
  overflow-x: auto;
}
.ia-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.ia-table th {
  background: var(--surface-alt, #16213e);
  padding: 0.5rem 0.6rem;
  text-align: right;
  font-weight: 600;
  border-bottom: 1px solid var(--border, #2a3a5c);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.ia-table th:first-child,
.ia-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--card-bg, #1a2240);
  z-index: 1;
}
.ia-table th:first-child {
  background: var(--surface-alt, #16213e);
  z-index: 2;
}
.ia-table td {
  padding: 0.45rem 0.6rem;
  text-align: right;
  border-bottom: 1px solid rgba(42,58,92,.3);
  white-space: nowrap;
}
.ia-table tr:hover td {
  background: rgba(42,58,92,.3);
}
.ia-yoy-pos { color: var(--danger, #e94560); }
.ia-yoy-neg { color: var(--success, #00d68f); }

/* Core indicator cards */
.ia-indicator-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.ia-indicator-card {
  background: var(--surface-alt, #16213e);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border, #2a3a5c);
}
.ia-indicator-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.ia-indicator-desc {
  font-size: 0.8rem;
  color: var(--text-muted, #6c7a96);
  margin-bottom: 0.5rem;
}
.ia-indicator-meta {
  font-size: 0.75rem;
  color: var(--text-muted, #6c7a96);
}

/* Coverage legend */
.ia-coverage-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted, #6c7a96);
  margin: 0.5rem 0 1rem 0;
  padding: 0.4rem 0.75rem;
  background: rgba(255,170,0,0.08);
  border: 1px solid rgba(255,170,0,0.25);
  border-radius: 6px;
}
.ia-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.ia-legend-partial {
  background: rgba(255,170,0,0.45);
  border: 2px solid #ffaa00;
}
.ia-legend-hidden {
  background: rgba(100,100,100,0.3);
  border: 2px dashed #666;
}

@media (max-width: 640px) {
  .ia-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .ia-chart-wrap { height: 240px; }
  .ia-coverage-legend { flex-wrap: wrap; }
}
