/* ==========================================================================
   Decision Window Chart — ApexCharts container + custom legend
   Loaded inline on evidence page only
   ========================================================================== */

/* --- Chart container --- */
.decision-window-section {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 0.5px solid var(--d4arf-border);
}

.decision-window-heading {
  font-family: var(--font-elegant);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--d4arf-black);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.decision-window-sub {
  font-size: 0.85rem;
  color: var(--d4arf-gray);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.decision-window-container {
  position: relative;
  max-width: 720px;
}

/* --- Custom legend --- */
.decision-window-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
}

.dw-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--d4arf-gray);
}

.dw-legend-swatch {
  display: inline-block;
  width: 14px;
  height: 8px;
  border-radius: 1px;
}

.dw-legend-swatch--solid {
  background: var(--d4arf-black);
}

.dw-legend-swatch--light {
  background: var(--d4arf-black);
  opacity: 0.25;
}

.dw-legend-swatch--annot {
  width: 14px;
  height: 0;
  border-top: 2px dashed var(--d4arf-red);
  background: none;
}

/* --- Callout below chart --- */
.decision-window-note {
  font-size: 0.8rem;
  color: var(--d4arf-gray);
  line-height: 1.55;
  margin: 0.75rem 0 0;
  font-style: italic;
}

/* --- Dark mode --- */
/* Soften the section divider in dark mode */
[data-theme="dark"] .decision-window-section {
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .decision-window-legend {
    gap: 0.6rem;
  }

  .dw-legend-item {
    font-size: 0.7rem;
  }
}
