/* Silvercrest Chart — shared styles (Bloomberg-style print chart, web-rendered) */
@import url('colors_and_type.css');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--sc-fg-1);
  font-family: var(--sc-serif-display);
}

.sc-figure {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 20px;
  background: #fff;
  font-family: var(--sc-serif-display);
}

/* Eyebrow / fig label */
.sc-fig-eyebrow {
  font-family: var(--sc-serif-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sc-crest-navy-deep);
  margin: 0 0 6px;
}

.sc-fig-title {
  font-family: var(--sc-serif-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.005em;
  color: var(--sc-crest-navy-deep);
  line-height: 1.2;
  margin: 0 0 4px;
}

.sc-fig-subtitle {
  font-family: var(--sc-serif-display);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0;
  color: var(--sc-fg-2);
  margin: 0 0 14px;
}

.sc-fig-divider {
  border: 0;
  border-top: 1px solid var(--sc-crest-gold);
  margin: 0 0 14px;
}

/* Chart container */
.sc-chart-wrap {
  position: relative;
  width: 100%;
}
.sc-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--sc-sans);
}

/* SVG text classes */
.sc-axis-label { font: 11px var(--sc-serif-display); fill: #595959; }
.sc-axis-line { stroke: #BFBFBF; stroke-width: 0.75; fill: none; }
.sc-grid-line { stroke: #E6E6E6; stroke-width: 0.5; fill: none; }
.sc-zero-line { stroke: #7F7F7F; stroke-width: 0.75; fill: none; }
.sc-tick-line { stroke: #BFBFBF; stroke-width: 0.75; }

/* Legend */
.sc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--sc-serif-display);
  font-size: 13px;
  font-weight: 400;
  color: var(--sc-fg-1);
  justify-content: center;
}
.sc-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sc-legend .sw {
  display: inline-block;
  width: 14px;
  height: 10px;
  border-radius: 0;
}
.sc-legend .sw.line {
  height: 2px;
}

/* Source line */
.sc-source {
  font-family: var(--sc-serif-display);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--sc-fg-3);
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--sc-rule-hairline);
}

/* Tooltip */
.sc-tooltip {
  position: absolute;
  pointer-events: none;
  background: #fff;
  color: var(--sc-fg-1);
  padding: 9px 12px;
  font-family: var(--sc-serif-display);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  border: 1px solid var(--sc-crest-navy-deep);
  border-radius: 2px;
  box-shadow: 0 4px 14px rgba(22, 53, 116, 0.18);
  opacity: 0;
  transform: translate(-50%, -100%);
  transition: opacity 120ms var(--sc-easing);
  white-space: nowrap;
  z-index: 10;
}
.sc-tooltip.visible { opacity: 1; }
.sc-tooltip .t-date {
  font-family: var(--sc-serif-display);
  font-weight: 500;
  color: var(--sc-crest-navy-deep);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--sc-crest-gold);
}
.sc-tooltip .t-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-tooltip .t-row .t-sw {
  width: 8px; height: 8px; display: inline-block;
}
.sc-tooltip .t-row .t-val {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.sc-hover-dot {
  fill: #fff;
  stroke-width: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms var(--sc-easing);
}
.sc-hover-dot.visible { opacity: 1; }

.sc-hover-line {
  stroke: var(--sc-crest-navy);
  stroke-width: 0.75;
  stroke-dasharray: 2 3;
  pointer-events: none;
  opacity: 0;
}
.sc-hover-line.visible { opacity: 1; }

.sc-hit-overlay {
  fill: transparent;
  cursor: crosshair;
}
