/* UK classic car auction results 2026 article: inline SVG charts and figure chrome.
   Every selector is prefixed so .chronicle-content's p/img/li rules do not
   reach into the figures. Colours: teal #009294 (series 1), rust #b5451b
   (series 2), violet #5a5fcf (series 3) validated together for colour-blind
   separation and contrast on white; grey #a8a8a3 is the de-emphasis context
   tone, never a series of its own. Text stays in ink tokens, never series colour. */

.chronicle-content .ccc-fig {
  margin: 2.25rem 0 2.75rem;
  padding: 1.1rem 1rem 0.9rem;
  background: #fcfcfb;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  font-family: var(--font-display);
}

.chronicle-content .ccc-fig__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.chronicle-content .ccc-fig__scroll::-webkit-scrollbar { height: 6px; }
.chronicle-content .ccc-fig__scroll::-webkit-scrollbar-thumb { background: #d9d9d4; border-radius: 3px; }

.chronicle-content .ccc-chart {
  display: block;
  width: 100%;
  min-width: 520px;
  height: auto;
  overflow: visible;
  font-family: var(--font-display);
}

.chronicle-content .ccc-fig figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #52514e;
}

.chronicle-content .ccc-fig__src {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #898781;
}

/* Chrome */
.ccc-chart .grid line { stroke: #e1e0d9; stroke-width: 1; shape-rendering: crispEdges; }
.ccc-chart .axis { stroke: #c3c2b7; stroke-width: 1; shape-rendering: crispEdges; }
.ccc-chart .ref { stroke: #898781; stroke-width: 1; }
.ccc-chart text { fill: #52514e; font-size: 13px; }
.ccc-chart .tick { fill: #898781; font-size: 12px; font-variant-numeric: tabular-nums; }
.ccc-chart .cat { fill: #0b0b0b; font-size: 13px; }
.ccc-chart .value { fill: #0b0b0b; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ccc-chart .legend text { fill: #52514e; font-size: 12.5px; }
.ccc-chart .endlabel { fill: #0b0b0b; font-size: 12.5px; font-weight: 600; }

/* Series colours live on marks only */
.ccc-chart .s1 .mark, .ccc-chart .mark.s1, .ccc-chart .legend .s1, .ccc-chart .s1 .dot { fill: #009294; }
.ccc-chart .s2 .mark, .ccc-chart .mark.s2, .ccc-chart .legend .s2, .ccc-chart .s2 .dot { fill: #b5451b; }
.ccc-chart .s3 .mark, .ccc-chart .mark.s3, .ccc-chart .legend .s3, .ccc-chart .s3 .dot { fill: #5a5fcf; }
.ccc-chart .ctx .mark, .ccc-chart .mark.ctx, .ccc-chart .legend .ctx, .ccc-chart .ctx .dot { fill: #c7c7c1; }
.ccc-chart .s1 .line { stroke: #009294; }
.ccc-chart .s2 .line { stroke: #b5451b; }
.ccc-chart .s3 .line { stroke: #5a5fcf; }
.ccc-chart .ctx .line { stroke: #c7c7c1; }
.ccc-chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ccc-chart .dot { stroke: #fcfcfb; stroke-width: 2; }
.ccc-chart .mark.up { fill: #009294; }
.ccc-chart .mark.down { fill: #b5451b; }

/* Dumbbell: earlier period light, later period dark, same hue */
.ccc-chart .connector { stroke: #c7c7c1; stroke-width: 2; }
.ccc-chart .dot.a { fill: #8fcfcc; }
.ccc-chart .dot.b { fill: #09484A; }

/* Hover and focus */
.ccc-chart .mark, .ccc-chart .dot, .ccc-chart .dumbbell { cursor: default; outline: none; transition: opacity 0.15s; }
.ccc-chart .mark:hover, .ccc-chart .mark:focus-visible,
.ccc-chart .dot:hover, .ccc-chart .dot:focus-visible { opacity: 0.78; }
.ccc-chart .mark:focus-visible, .ccc-chart .dot:focus-visible, .ccc-chart .dumbbell:focus-visible { outline: 2px solid #009294; outline-offset: 2px; }

.ccc-tip {
  position: fixed;
  z-index: 20;
  max-width: 260px;
  padding: 0.45rem 0.65rem;
  background: #0b0b0b;
  color: #fcfcfb;
  font-family: var(--font-display);
  font-size: 0.82rem;
  line-height: 1.35;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 10px));
  transition: opacity 0.12s;
  white-space: normal;
}
.ccc-tip.is-on { opacity: 1; }

/* Headline figures strip */
.chronicle-content .ccc-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 2rem 0 2.5rem;
  font-family: var(--font-display);
}
.chronicle-content .ccc-kpi {
  padding: 0.9rem 1rem 1rem;
  background: #f6f6f1;
  border-top: 3px solid var(--teal-700);
}
.chronicle-content .ccc-kpi__label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-700); font-weight: 700; margin-bottom: 0.35rem; }
.chronicle-content .ccc-kpi__value { display: block; font-size: 1.9rem; font-weight: 600; line-height: 1.05; color: #0b0b0b; }
.chronicle-content .ccc-kpi__note { display: block; margin-top: 0.3rem; font-size: 0.86rem; color: #52514e; line-height: 1.35; }
@media (min-width: 640px) {
  .chronicle-content .ccc-kpis { grid-template-columns: repeat(4, 1fr); }
}

/* Print and forced colours: keep marks visible */
@media print {
  .chronicle-content .ccc-fig { break-inside: avoid; }
}
@media (forced-colors: active) {
  .ccc-chart .mark, .ccc-chart .dot { fill: CanvasText; }
  .ccc-chart .line { stroke: CanvasText; }
}
