:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --border: #dde3ee;
  --text: #142033;
  --muted: #5c6b82;
  --accent: #1f5eff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero,
.page-section,
.chart-card,
.control-card,
.hero,
.page-section,
.chart-card,
.control-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.hero,
.page-section {
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.hero h1,
.page-section h2,
.chart-card h3 {
  margin: 0 0 12px;
}

.chart-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 14px;
}

.lede,
.text-block,
.control-value,
.note-card span,
.notices li {
  color: var(--muted);
  line-height: 1.6;
}

.intro-text {
  color: var(--text);
}

.page-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.subheading {
  margin: 20px 0 10px;
  font-size: 16px;
}

.control-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fbfcff;
}

.control-label {
  display: block;
  margin-bottom: 6px;
}

.chart-card {
  padding: 18px;
  margin: 18px 0;
  overflow: hidden;
}

.chart-host {
  width: 100%;
  min-height: 640px;
}

.chart-error {
  padding: 16px;
  border-radius: 12px;
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
  font-weight: 600;
}

.markdown-block > div {
  margin-bottom: 14px;
}

.js-plotly-plot,
.plot-container {
  width: 100% !important;
}
