* {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
  background: #f5f6fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 10px;
  padding: 16px;
  box-sizing: border-box;
}

h1 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #3a3f5c;
  text-align: center;
}

#viz {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(92vw, 1080px);
}

#chart {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

#earth {
  flex-shrink: 0;
}

/* Axes */
.axis text {
  font-size: 11px;
  fill: #9099b8;
}

.axis path,
.axis line {
  stroke: #d5d9ea;
}

.axis .domain {
  display: none;
}

/* Grid */
.grid line {
  stroke: #e4e7f2;
  stroke-dasharray: 3 3;
}

.grid path {
  display: none;
}

/* Line */
.line {
  fill: none;
  stroke: #2171b5;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Axis labels */
.axis-label {
  font-size: 11px;
  fill: #9099b8;
  letter-spacing: .08em;
  text-transform: uppercase;
}

footer {
  font-size: 11px;
  color: #9099b8;
  letter-spacing: .04em;
}

/* Tooltip */
.tooltip {
  position: absolute;
  background: #fff;
  border: 1px solid #d5d9ea;
  border-radius: 6px;
  padding: 8px 14px;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: opacity 0.08s;
  line-height: 1.6;
}

.tt-year {
  font-size: 11px;
  color: #9099b8;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.tt-val {
  font-size: 16px;
  font-weight: 600;
  color: #2171b5;
}

.tt-new {
  font-size: 11px;
  color: #9099b8;
}

/* Crosshair */
.crosshair {
  stroke: #b0b8d4;
  stroke-width: 1;
  stroke-dasharray: 4 3;
  pointer-events: none;
}

/* Snap dot */
.snap-dot {
  fill: #2171b5;
  stroke: #f5f6fa;
  stroke-width: 2;
  pointer-events: none;
}
