/* Result page: the quick overview card at the top and the grouped criterion cards below.
   Uses the tokens from styles.css; loaded after it. */

/* --- Quick overview --- */
.overview { padding: 26px; margin: 0 0 30px; border-top: 4px solid var(--gold); }
.overview:hover { transform: none; }
.ov-title { margin: 0 0 18px; font: 600 1.25rem/1.25 var(--font-display); color: var(--navy); }
.ov-top { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 820px) { .ov-top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
/* Inside the overview the gauge is not its own card: no border, shadow or inner padding. */
.ov-top .gauge { padding: 0; border: 0; box-shadow: none; background: none; }
.ov-top .gauge:hover { transform: none; box-shadow: none; }
.ov-sentence { margin: 0 0 16px; font: 500 1.12rem/1.55 var(--font-display); color: var(--navy); }
.ov-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ov-area { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--well); border-left: 4px solid var(--line-strong); min-width: 0; }
.ov-area.is-strong { border-left-color: var(--teal-ink); }
.ov-area.is-focus { border-left-color: var(--gold); }
.ov-area-label { display: block; font: 600 .78rem/1.3 var(--font-ui); color: var(--muted); }
.ov-area-name { display: block; margin-top: 4px; font: 600 .98rem/1.35 var(--font-ui); color: var(--navy); }
.ov-area-score { display: block; margin-top: 2px; font: 600 1.35rem/1.2 var(--font-display); color: var(--navy); }
.ov-steps-h { margin: 24px 0 10px; font: 600 1rem/1.3 var(--font-ui); color: var(--navy); }
.ov-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: ovstep; }
.ov-steps li { counter-increment: ovstep; position: relative; padding: 2px 0 0 38px; line-height: 1.55; color: var(--text); }
.ov-steps li::before {
  content: counter(ovstep); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-tint); color: var(--gold-ink); font: 700 .82rem/26px var(--font-ui); text-align: center;
}
.ov-step-crit { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); }
.ov-actions { margin-top: 22px; }
.detail-h { margin: 0 0 16px; font: 600 1.15rem/1.3 var(--font-display); color: var(--navy); }

/* --- Criterion cards: points grouped instead of one mixed list --- */
.crit-group + .crit-group { margin-top: 14px; }
.crit-group-h { margin: 0 0 6px; font: 600 .78rem/1.3 var(--font-ui); color: var(--muted); }
.crit-group.is-fix .crit-group-h { color: var(--gold-ink); }
.crit-items li[hidden] { display: none; }
/* The landing-page demo card has no score bar, so its first group needs its own gap. */
.crit-top + .crit-group { margin-top: 14px; }
.crit-more { margin-top: 6px; padding: 4px 0; border: 0; background: none; cursor: pointer; font: 600 .84rem var(--font-ui); color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.crit-more:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 640px) {
  .overview { padding: 18px 16px; }
  .ov-areas { gap: 8px; }
  .ov-area { padding: 10px 11px; }
  .ov-area-name { font-size: .88rem; }
  .ov-area-score { font-size: 1.2rem; }
  .ov-sentence { font-size: 1.04rem; }
}

/* --- Speaking: what is (and is not) assessed, shown before recording --- */
.assess-row { margin: 0 0 16px; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.assess-row strong { color: var(--navy); font-weight: 600; }

/* --- Your recent attempts (stored only in this browser) --- */
.history { padding: 22px 24px; margin: 30px 0; }
.history:hover { transform: none; }
.history-h { margin: 0 0 4px; font: 600 1.2rem/1.3 var(--font-display); color: var(--navy); }
.history-note { margin: 0 0 12px; font-size: .86rem; color: var(--muted); }
.history-list { list-style: none; margin: 0 0 10px; padding: 0; }
.history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.history-kind { font: 600 .95rem/1.35 var(--font-ui); color: var(--navy); }
.history-when { grid-column: 1; font-size: .84rem; color: var(--muted); }
.history-band { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 600 1.15rem/1.2 var(--font-display); color: var(--navy); }
.history-band.is-none { font: 500 .86rem/1.3 var(--font-ui); color: var(--muted); }
.history-clear, .history-yes, .history-keep { min-height: 44px; }
.history-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.history-ask[hidden], .history-clear[hidden] { display: none; }
.history-q { flex-basis: 100%; margin: 0; font-size: .92rem; color: var(--navy); }
@media (max-width: 640px) { .history { padding: 18px 16px; } }
