/* /simulacros and the review mode on the results. The running mock has its own frame (css/exam.css). */

/* Sparklines of mock_trends.Trend (_sparkline.html); the hub's cards and history live in css/p3-practice.css */
.spark { display: block; overflow: visible; }
.spark-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; }
.spark-ref { stroke: var(--coral); stroke-width: 1; stroke-dasharray: 3 3; }
.spark-dot { fill: var(--teal); }
.spark.band-red .spark-dot { fill: var(--band-red); }
.spark.band-amber .spark-dot { fill: var(--band-amber); }
.spark.band-green .spark-dot { fill: var(--band-green); }

/* Review mode on the results */
.review-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; scroll-margin-top: 1rem; }
.review-filter a { padding: .45rem .9rem; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); text-decoration: none; font-weight: 600; }
.review-filter a[aria-current] { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.marked-badge { display: inline-block; margin: 0 0 .5rem; padding: .15rem .6rem; border-radius: var(--pill); background: var(--sand); color: var(--sand-ink); font-size: .85rem; font-weight: 700; }

/* /mi-progreso: «Tu resultado en cada simulacro» (progress_chart.py). One height at every width, text at its size */
.p-chart { display: block; width: 100%; max-width: 40rem; height: 14.625rem; margin: .5rem 0 .25rem; background: var(--papel); border: 1px solid var(--regla); border-radius: var(--rad); overflow: visible; }
.p-chart text { font: 500 .6875rem/1 var(--sans); fill: var(--gris); font-variant-numeric: tabular-nums; }
.p-chart .c-grid { stroke: var(--regla); stroke-width: 1; }
.p-chart .c-axis { stroke: var(--regla-2); stroke-width: 1; }
.p-chart .c-y { text-anchor: end; }
.p-chart .c-x, .p-chart .c-val { text-anchor: middle; }
.p-chart .c-val { fill: var(--grafito); font-weight: 600; paint-order: stroke; stroke: var(--papel); stroke-width: 3px; stroke-linejoin: round; }
.p-chart .bar-pass { fill: var(--band-green); }
.p-chart .bar-fail { fill: var(--band-red); }
.p-chart .bar-none { fill: var(--gris-2); }  /* a daily or study-mode set: never judged against the minimum */
.p-chart .c-min { stroke: var(--grafito); stroke-width: 1.5; stroke-dasharray: 5 4; }
.p-chart .c-key { fill: var(--grafito); font-weight: 600; }
.p-chart-caption { margin: 0 0 1.5rem; max-width: 40rem; color: var(--gris); }  /* on the ground: --gris-2 is 4.3:1 */
@media (max-width: 40rem) {
  .p-chart.is-dense .c-x.is-odd { display: none; }
}
