/* Exam ALTAM product page (altam.html; ASTAM borrows its seven-question
   grid), the template for a prelim with written answers. Loaded after
   fm.css (every shared product-page rule) and ila101.css (the
   written-answer pieces: graded parts, the tip, the grading chat). This
   adds only what ALTAM draws differently: the sample exam's seven
   questions and how each is answered, and the photos of a handwritten
   answer on the graded card. Every colour is a Clear token or a page token. */

/* Practice: these choices are maths. fm.css sizes every svg in a choice
   as the 15 px tick, so give MathJax's own svg its natural size back. */
.prod-choices .prod-choices__v svg { width: auto; height: auto; margin-left: 0; fill: currentColor; stroke: none; }
.prod-choices__v { flex-shrink: 0; }

/* Test yourself: the exam's seven questions in one row (FM's grid at
   seven), the Excel question in the Excel green; under it, how they are
   answered, kept to the card's left so the graded tile sits beside it. */
.prod-exam__grid.alt-qs { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.prod-exam__grid.alt-qs i { font-size: 12px; }
.prod-exam__grid.alt-qs i.is-xl { border-color: var(--success); }
.alt-modes { display: grid; row-gap: 6px; width: 132px; margin-top: 12px; }
.alt-modes li { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 9px; border-radius: var(--radius-lg); border: 1px solid var(--hair); background: var(--paper); font-size: 13px; color: var(--ink); white-space: nowrap; }
.alt-modes .ila-file svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* The graded card: which problem, then the student's handwritten pages as
   two photo thumbnails (pen lines in the Learn blue, decorative). */
.alt-graded__q { margin-top: 10px; font-size: 14.5px; line-height: 20px; color: var(--muted-foreground); }
.alt-pages { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.alt-pages__label { margin-right: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.alt-pages__img { display: block; flex-shrink: 0; width: 30px; height: 38px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--paper); box-shadow: var(--lift-1); }
.alt-pages__img svg { display: block; width: 100%; height: 100%; fill: none; stroke: var(--learn-hi); stroke-width: 1.4; stroke-linecap: round; }
.alt-pages__n { margin-left: 4px; font-size: 14px; color: var(--muted-foreground); }
.alt-pages + .ila-grades { margin-top: 14px; }

@media (forced-colors: active) {
  .alt-pages__img svg { stroke: CanvasText; }
}
