/* Case-study graphics adapted to the fixed slide canvas. */
.reveal .corrections-chart {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 22px 30px;
  border-radius: 12px;
  background: #212121;
  display: flex;
  flex-direction: column;
}
.corrections-chart-legend {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
  font-size: 19px;
  line-height: 1.3;
  color: #00d8aa;
}
.corrections-chart-legend span:last-child { color: #fff; text-align: right; }
.corrections-chart-plot { position: relative; flex: 1; min-height: 0; padding: 0 38px 28px 50px; }
.corrections-chart-y-axis { position: absolute; left: 0; top: 0; width: 40px; height: calc(100% - 28px); font: 16px/1.2 monospace; color: #00d8aa; }
.corrections-chart-y-axis span { position: absolute; right: 0; transform: translateY(-50%); }
.corrections-chart-y-axis--right { left: auto; right: 0; width: 28px; color: #fff; }
.corrections-chart-y-axis--right span { left: 0; right: auto; }
.reveal .corrections-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.corrections-chart-line { fill: none; stroke: #00d8aa; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.corrections-chart-line.corrections-chart-line--rules { stroke: #fff; }
.corrections-chart-point { cursor: pointer; stroke: transparent; stroke-width: 12; pointer-events: all; transition: r 160ms ease; }
.corrections-chart-point:hover, .corrections-chart-point:focus-visible { r: 6px; }
.corrections-chart-point:focus { outline: none; stroke: rgba(255,255,255,.3); stroke-width: 4; }
.corrections-chart-series { opacity: .7; transition: opacity 160ms ease; }
.corrections-chart-series:hover, .corrections-chart-series:focus-within { opacity: 1; }
.corrections-chart-tooltip { position: absolute; z-index: 2; padding: 10px 14px; border-radius: 6px; background: rgba(0,0,0,.82); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 18px; line-height: 1.4; pointer-events: none; width: max-content; max-width: calc(100% - 16px); transform: translate(-50%,-100%); }
.corrections-chart-months { position: absolute; bottom: 0; left: 50px; right: 38px; height: 24px; font: 16px/1.3 monospace; color: rgba(255,255,255,.45); }
.corrections-chart-months span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.corrections-chart-months span:first-child { transform: none; }
.corrections-chart-months span:last-child { transform: translateX(-100%); }
.corrections-snapshot { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.reveal .corrections-snapshot dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; }
.corrections-snapshot dl div { display: flex; flex-direction: column; gap: 3px; }
.corrections-snapshot dt { font-size: 18px; font-weight: 400; line-height: 1.3; color: rgba(255,255,255,.68); }
.corrections-snapshot dd { order: -1; margin: 0; color: #fff; font: 34px/1.15 Fakt,sans-serif; }
@keyframes corrections-area-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes corrections-line-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
  .corrections-chart.is-waiting .corrections-chart-area { opacity: 0; }
  .corrections-chart.is-waiting .corrections-chart-line { clip-path: inset(0 100% 0 0); }
  .corrections-chart.is-revealed .corrections-chart-area { animation: corrections-area-reveal 1s ease .6s both; }
  .corrections-chart.is-revealed .corrections-chart-line { animation: corrections-line-draw 1.4s cubic-bezier(.22,1,.36,1) both; }
  .corrections-chart:not(.is-active) .corrections-chart-area,
  .corrections-chart:not(.is-active) .corrections-chart-line { animation-play-state: paused; }
}
.reveal.grid-preview .corrections-chart * { animation: none !important; }
.reveal.grid-preview .corrections-chart .corrections-chart-area { opacity: 1; }
.reveal.grid-preview .corrections-chart .corrections-chart-line { clip-path: none; }
.reveal .submit-mockup-frame { display: block; width: 100%; height: 100%; }
.reveal #corrections-submit-mockup { margin: 0; width: 100%; height: 100%; }
.reveal #corrections-submit-mockup .figure-portrait-frame { width: 100%; height: 100%; }
