@import url("../../styles.css");

/* ========================================
   CHART COLOR VARIABLES
   Derived from the Dieter Rams palette
   in the root styles.css
   ======================================== */
:root {
  --chart-figma: #ED8008;        /* orange — caution/limitation */
  --chart-html: #5A6D7A;         /* steel blue — neutral/steady */
  --chart-ai: #8B9E45;           /* olive green — positive/growth */
  --chart-axis: #D9D2C6;         /* same as --border */
  --chart-axis-text: #9C9488;    /* same as --text-tertiary */
}

[data-theme="dark"] {
  --chart-figma: #ED8008;
  --chart-html: #7A9AAE;         /* lighter steel blue for contrast */
  --chart-ai: #8B9E45;
  --chart-axis: #4A433B;         /* same as --border dark */
  --chart-axis-text: #9C9488;
}

/* ========================================
   CODE BLOCK
   ======================================== */
.cs-code {
  margin: 24px 0;
  padding: 24px;
  background: var(--principles-bg);
  border: 1px solid var(--border);
  overflow-x: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

[data-theme="dark"] .cs-code {
  background: #1E1B18;
  border-color: #4A433B;
}

/* ========================================
   SVG CHARTS
   ======================================== */
.cs-charts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0 16px;
}

.cs-chart {
  text-align: center;
}

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

.cs-chart-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}


/* ========================================
   CAPTION
   ======================================== */
.cs-caption {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ========================================
   DESKTOP (768px+)
   ======================================== */
@media (min-width: 768px) {
  .cs-charts {
    grid-template-columns: repeat(3, 1fr);
  }
}
