/* exam_ap.css - SAMPLE mockup views (picker, subject home, MCQ mock, FRQ self-score, estimate card).
   Only ex- classes; only tokens that exist in public/styles.css :root; mobile-first, single column.
   The .ex-sample badge is styled only inside the scoped roots below so it never clashes with exam_views.css. */

.ex-picker, .ex-subject, .ex-mock, .ex-frq, .ex-est {
  display: block; box-sizing: border-box; max-width: 960px; margin: 0 auto; padding: 0 4px;
  color: var(--ink);
}

/* SAMPLE badge (scoped) */
.ex-picker .ex-sample, .ex-subject .ex-sample, .ex-mock .ex-sample, .ex-frq .ex-sample, .ex-est .ex-sample {
  display: inline-block; background: var(--warn); color: #fff; border-radius: 999px;
  padding: 2px 9px; font-size: 11px; font-weight: 800; letter-spacing: .06em; vertical-align: middle;
}

/* headers */
.ex-subject-head, .ex-mock-head, .ex-frq-head, .ex-est-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 12px; }
.ex-subject-title { margin: 0; font-size: 22px; }
.ex-section-title, .ex-group-title { margin: 18px 0 8px; font-size: 16px; }
.ex-group-title { color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: 13px; }

/* exam cards: single column, grid from 600px */
.ex-cards, .ex-myexams { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ex-myexams > .ex-section-title, .ex-myexams > .ex-mine-empty { grid-column: 1 / -1; margin-bottom: 0; }
.ex-exam-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 14px);
  box-shadow: var(--shadow); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
}
.ex-exam-card.ex-current { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.ex-exam-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ex-exam-name { font-weight: 700; }
.ex-exam-cat { font-size: 13px; }
.ex-soon { align-self: flex-start; background: var(--line); color: var(--muted); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.ex-picker .ex-open { align-self: flex-start; }

.ex-search {
  display: block; width: 100%; box-sizing: border-box; margin: 16px 0 6px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font-size: 15px;
}
.ex-empty { color: var(--muted); padding: 16px 4px; }

/* units + mastery bars */
.ex-units { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 8px 0 16px; }
.ex-unit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 14px); padding: 12px 14px; }
.ex-unit-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ex-unit-name { font-weight: 700; }
.ex-unit-weight { white-space: nowrap; font-size: 13px; }
.ex-bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ex-bar-fill { height: 100%; background: var(--good); border-radius: 999px; }
.ex-notstarted { display: inline-block; margin-top: 6px; font-size: 13px; }
.ex-answered { margin: 0 0 6px; font-size: 14px; }
.ex-unit-kind { margin: 0 0 8px; font-size: 14px; }

/* actions */
.ex-actions { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }

/* MCQ mock overview */
.ex-mock-summary { font-size: 16px; }
.ex-mock-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 14px); }
.ex-mock-unit { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ex-mock-unit:last-child { border-bottom: 0; }
.ex-mock-count { font-weight: 700; }

/* FRQ self-score */
.ex-frq-prompt { line-height: 1.6; }
.ex-frq-parts { padding-left: 22px; line-height: 1.6; }
.ex-frq-answer {
  display: block; width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; resize: vertical;
}
/* FRQ answer fieldset: no box of its own; the legend is for screen readers only */
.ex-frq-answer-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.ex-frq-answer-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ex-rubric { margin: 16px 0 8px; display: grid; gap: 10px; }
.ex-rubric-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius, 14px); padding: 10px 14px; }
.ex-rubric-label { font-weight: 700; margin-bottom: 6px; }
.ex-rubric-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.ex-rubric-opt { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.ex-frq-total { font-weight: 800; font-size: 18px; margin: 12px 0 4px; }
.ex-frq-note { font-size: 14px; margin: 0; }

/* estimate card */
.ex-est-band { background: var(--card); border: 2px solid var(--brand); border-radius: var(--radius, 14px); padding: 18px; font-size: 24px; font-weight: 800; color: var(--brand-dk); }
.ex-est-band.ex-est-mcqonly { border-style: dashed; border-color: var(--warn); }
.ex-est-word, .ex-est-mcq, .ex-est-note, .ex-est-caveat { margin: 10px 0 0; line-height: 1.5; }
section.ex-est .ex-est-note { color: var(--warn); font-weight: 700; }

/* disclaimer footer */
.ex-ap-footer { margin: 24px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ex-ap-disclaimer { margin: 0; font-size: 12px; line-height: 1.5; }

/* focus */
.ex-picker :focus-visible, .ex-subject :focus-visible, .ex-mock :focus-visible, .ex-frq :focus-visible, .ex-est :focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px;
}

@media (min-width: 600px) {
  .ex-cards, .ex-myexams { grid-template-columns: repeat(2, 1fr); }
  .ex-units { grid-template-columns: repeat(2, 1fr); }
  .ex-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .ex-cards, .ex-myexams { grid-template-columns: repeat(3, 1fr); }
}

/* DASH3 lane R5: component consistency with the SAT dashboard boards (no AP drawing exists).
   Same signatures as the ACT diagnostic card: card, heading, body, chip, primary and ghost button, band, bar. Exact design hex. */
.ex-picker, .ex-subject, .ex-mock, .ex-frq, .ex-est {
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #22223B;
}
.ex-subject-title { font-size: 20px; font-weight: 800; line-height: 31px; letter-spacing: -0.4px; color: #22223B; }
.ex-section-title, .ex-group-title { font-size: 14px; font-weight: 700; line-height: 21.7px; color: #5F5C6E; }
.ex-group-title { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 800; }
.ex-picker .muted, .ex-subject .muted, .ex-mock .muted, .ex-frq .muted, .ex-est .muted,
.ex-exam-cat, .ex-unit-weight, .ex-empty { color: #5F5C6E; }
.ex-exam-card, .ex-unit, .ex-mock-list, .ex-rubric-row {
  background: #FFFFFF; border: 1px solid #E3DEEA; border-radius: 16px; padding: 24px; box-shadow: none;
}
.ex-mock-list { padding: 0; }
.ex-exam-card.ex-current { border: 2px solid #4A4E69; box-shadow: 0 10px 28px rgba(34, 34, 59, 0.1); }
.ex-exam-name, .ex-unit-name, .ex-rubric-label, .ex-mock-count { font-weight: 700; color: #22223B; }
.ex-mock-unit { border-bottom: 1px solid #E3DEEA; }
.ex-soon, .ex-rubric-opt {
  background: transparent; color: #22223B; border: 1px solid #E3DEEA; border-radius: 999px;
  padding: 4px 12px; font-size: 14px; font-weight: 700; line-height: 21.7px;
}
.ex-picker .ex-sample, .ex-subject .ex-sample, .ex-mock .ex-sample, .ex-frq .ex-sample, .ex-est .ex-sample {
  background: #4A4E69; color: #FFFFFF; padding: 3px 10px; font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 20.15px;
}
.ex-bar { height: 10px; background: #ECEAF3; border-radius: 999px; }
.ex-bar-fill { background: #4A4E69; border-radius: 999px; }
.ex-est-band {
  background: #FFFFFF; border: 1px solid #E3DEEA; border-radius: 16px; padding: 24px;
  font-size: 24px; font-weight: 800; letter-spacing: -0.48px; color: #22223B;
}
.ex-est-band.ex-est-mcqonly { border-style: dashed; border-color: #E3DEEA; }
.ex-est-word, .ex-est-mcq, .ex-est-note, .ex-est-caveat, .ex-frq-prompt, .ex-frq-note { font-size: 15px; line-height: 23.25px; color: #5F5C6E; }
section.ex-est .ex-est-note { color: #22223B; font-weight: 700; }
.ex-search, .ex-frq-answer {
  padding: 12px 14px; border: 1px solid #E3DEEA; border-radius: 10px; background: #FFFFFF; color: #22223B; font: inherit; font-size: 15px;
}
.ex-search:focus-visible, .ex-frq-answer:focus-visible, .ex-rubric-opt:focus-within { outline: 3px solid #4A4E69; outline-offset: 2px; }
.ex-picker .btn, .ex-subject .btn, .ex-mock .btn, .ex-frq .btn, .ex-est .btn {
  min-height: 48px; padding: 0 18px; border: 0; border-radius: 10px; background: #4A4E69; color: #FFFFFF; font-size: 16px; font-weight: 700;
}
.ex-picker .btn.ghost, .ex-subject .btn.ghost, .ex-mock .btn.ghost, .ex-frq .btn.ghost, .ex-est .btn.ghost {
  padding: 0 20px; border: 1.5px solid #E3DEEA; background: #FFFFFF; color: #22223B;
}
.ex-picker .btn:focus-visible, .ex-subject .btn:focus-visible, .ex-mock .btn:focus-visible, .ex-frq .btn:focus-visible, .ex-est .btn:focus-visible {
  outline: 3px solid #4A4E69; outline-offset: 2px;
}

.ex-picker .btn, .ex-subject .btn, .ex-mock .btn, .ex-frq .btn, .ex-est .btn { display: flex; align-items: center; justify-content: center; gap: 8px; line-height: normal; font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* DASH3 P5 pass 2: the SAMPLE chip and the back / home buttons sit in the exam top bar (exam_app.js), outside the section wrappers above.
   Same chip and ghost-button signatures as the SAT boards; selectors are specific enough to beat exam_views.css and styles.css (.btn.ghost.small). */
span.ex-sample {
  display: inline-flex; align-items: center; border: 0; border-radius: 999px; background: #4A4E69; color: #FFFFFF;
  padding: 3px 10px; font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 20.15px;
}
button.btn.ghost.small[data-ex-go] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 1.5px solid #E3DEEA; border-radius: 10px; background: #FFFFFF; color: #22223B;
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 16px; font-weight: 700; line-height: normal;
}
button.btn.ghost.small[data-ex-go]:focus-visible { outline: 3px solid #4A4E69; outline-offset: 2px; }
