/* Chapter Overview Charts Styles - Clean & Minimal Version */

/* Theory rigor tag */
.theory-tag {
  font-size: 0.65rem;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Chart Container - Clean styling */
.chapter-overview-chart {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* SVG and Object styling */
.chapter-overview-chart img,
.chapter-overview-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.chapter-overview-chart object {
  width: 100%;
  height: auto;
  min-height: 200px;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .chapter-overview-chart {
    padding: 1rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
  }
  
  .chapter-overview-chart object {
    min-height: 160px;
  }
}

@media (max-width: 480px) {
  .chapter-overview-chart {
    padding: 0.75rem;
    border-radius: 8px;
  }
  
  .chapter-overview-chart object {
    min-height: 140px;
  }
}

/* Smooth fade-in animation */
.chapter-overview-chart {
  opacity: 0;
  transform: translateY(16px);
  animation: chartFadeIn 0.5s ease-out forwards;
}

@keyframes chartFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered delays */
#past .chapter-overview-chart { animation-delay: 0.1s; }
#present .chapter-overview-chart { animation-delay: 0.1s; }
#summary .chapter-overview-chart { animation-delay: 0.1s; }
#future .chapter-overview-chart { animation-delay: 0.1s; }
#deep-insight .chapter-overview-chart { animation-delay: 0.1s; }

/* Print styles */
@media print {
  .chapter-overview-chart {
    box-shadow: none;
    border: 1px solid #d1d5db;
    page-break-inside: avoid;
  }
}
