/* Student exam pages and the teacher's preview. Loaded after panel.css and reuses its tokens.
   One calm reading column; gold only on Start and Submit. */

/* student pages use a narrower column than the volunteer pages; the teacher preview centres the same column */
.vol .band__bar, .vol .band__body, .vol .wrap, .vol .foot { width: 820px; }
.admin .taking, .preview-note { max-width: 780px; margin-inline: auto; }
.state__title { font-size: 28px; margin-bottom: 12px; }
.state .btn { margin-top: 8px; }

/* exam list */
.examlist { margin-bottom: 34px; }
.examlist__title { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); margin: 0 0 12px 4px; }
.examcard { display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; padding: 22px 24px; }
.examcard + .examcard { margin-top: 12px; }
.examcard--open, .examcard--in_progress { box-shadow: var(--shadow), inset 0 0 0 2px var(--gold); }
.examcard__text { min-width: 0; }
.examcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.examcard__class { font-size: 14px; color: var(--ink-3); }
.examcard h3 { font-size: 21px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.examcard__facts { margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.examcard__when { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.examcard__when b { font-weight: 600; color: var(--ink); }
.examcard__when .ico { width: 16px; height: 16px; }
.examcard > .btn { flex: none; }

/* start screen */
.startcard { padding: 34px; }
.startcard__class { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.startcard h1 { overflow-wrap: anywhere; }
.startcard__facts { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.startcard__intro { margin-top: 24px; padding: 18px 20px; border-radius: var(--r-md); background: var(--ground); }
.startcard__intro h2 { font-size: 16px; margin-bottom: 6px; }
.startcard .ticks { margin-top: 24px; }
.startcard__go { margin-top: 28px; }
.pledge { margin: 0 0 18px; padding: 14px 16px; background: var(--gold-pale); font-size: 15px; }

/* answering */
.takebar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px 12px 20px;
  border-radius: var(--r-md); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow); }
.takebar__title { flex: 1 1 200px; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.takebar__save { font-size: 14px; color: var(--ink-3); }
.takebar__save[data-tone="good"] { color: var(--green); }
.takebar__save[data-tone="warn"] { color: var(--red); }
.takebar__time { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; background: var(--sand); font-size: 16px; }
.takebar__time b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 4ch; }
.take-intro { margin-bottom: 16px; }
.take-intro h2 { font-size: 16px; margin-bottom: 6px; }
.take-q { border: 0; margin: 0 0 16px; min-width: 0; }
.take-q__head { float: left; width: 100%; padding: 0; margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.take-q__head span { font-weight: 600; font-size: 15px; }
.take-q__head small { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.take-q__prompt { clear: both; font-size: 18px; line-height: 1.55; overflow-wrap: anywhere; }
.take-q__hint { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.take-q__choices { display: grid; gap: 8px; margin-top: 16px; }
.take-q__choices--row { display: flex; flex-wrap: wrap; }
.take-q__choices--row .choice { min-width: 120px; }
.choice { margin: 0; font-size: 16px; padding: 13px 16px; overflow-wrap: anywhere; }
.choice input[type="radio"] { border-radius: 50%; }
.take-q__field { margin: 16px 0 0; }
.take-q__field textarea { min-height: 180px; }
.take-q :disabled { cursor: default; }
.take-q .check:has(input:disabled) { cursor: default; }
.take-q .check:has(input:disabled):hover { background: var(--sand); }
.take-q .check:has(input:disabled:checked):hover { background: rgba(29,54,85,.07); }
.take-q__mark { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.take-q__mark b { font-weight: 600; }
.take-q__mark p { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: var(--gold-pale); color: var(--ink-2); line-height: 1.5; }
.takefoot { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.takefoot h2 { margin-bottom: 4px; }

/* several clocks (question + exam), the progress line in one-at-a-time mode */
.takebar__title small { margin-left: 6px; font-size: 14px; font-weight: 400; color: var(--ink-3); }
.takebar__time small { font-size: 12px; color: var(--ink-3); margin-right: 2px; }
.takebar__time.is-low { background: var(--amber-bg); color: var(--amber); }
.takebar__time.is-low small { color: inherit; }
.takebar__progress { flex-basis: 100%; height: 4px; border-radius: 99px; background: var(--sand); overflow: hidden; }
.takebar__progress i { display: block; height: 100%; background: var(--navy); border-radius: inherit; }
.takefoot > .btn { margin-left: auto; }

/* deterrents: the student's code across the page, no selecting question text, questions hidden while away, no printing */
.watermark { position: fixed; inset: 0; z-index: 4; pointer-events: none; background-repeat: repeat; }
.taking .take-q__prompt, .taking .choice span, .taking .take-q__head { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.is-away .taking { filter: blur(14px); }
.awaynote { position: fixed; z-index: 10; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--navy); color: #fff;
  box-shadow: 0 18px 40px -16px rgba(19,37,60,.6); font-size: 15px; line-height: 1.45; }
.awaynote b { color: var(--gold); font-weight: 600; }
.awaynote .btn { flex: none; background: var(--gold); color: var(--navy-deep); }
@media print { .taking, .takebar { display: none !important; } .vol .wrap::after { content: "Exams cannot be printed."; } }

/* results */
.scorecard { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 16px; padding: 30px 34px; }
.scorecard h1 { overflow-wrap: anywhere; }
.scorecard__score { display: grid; justify-items: end; gap: 4px; }
.scorecard__score b { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.scorecard__score small { font-size: 22px; font-weight: 500; color: var(--ink-3); }
.scorecard__score span { font-size: 15px; color: var(--ink-2); }

/* teacher preview, inside the teacher panel */
.preview-note { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 14px 18px; border-radius: 12px; background: var(--blue-bg); color: var(--blue); font-size: 15px; }

@media (max-width: 640px) {
  .examcard { flex-direction: column; align-items: stretch; padding: 20px; }
  .examcard > .btn { width: 100%; }
  .startcard, .scorecard { padding: 22px; }
  .startcard__go .btn { width: 100%; }
  .takebar { margin-inline: -8px; padding: 10px 12px 10px 14px; border-radius: 0 0 var(--r-md) var(--r-md); }
  .takebar__title { flex-basis: 100%; }
  .takebar__save { flex: 1; font-size: 13px; }
  .take-q__prompt { font-size: 17px; }
  .takefoot .btnrow, .takefoot .btn { width: 100%; }
  .scorecard__score { justify-items: start; }
}
