/* Exam Photo Resizer (js/exam.js) and its exam pages. Loaded only on those pages. */
.exam-pick { display: grid; gap: 8px; }
.exam-label { font-weight: 650; font-size: .95rem; }
.options .exam-row { gap: 8px; }
.options .exam-row label { padding: 9px 14px 9px 11px; font-size: .92rem; }
.exam-spec { background: var(--red-soft); border: 1px solid #ffd6d3; border-radius: 12px; padding: 12px 14px; font-size: .95rem; line-height: 1.5; }
.exam-spec strong { color: var(--ink); }
.exam-spec span { display: block; color: var(--muted); font-size: .86rem; margin-top: 3px; }
.exam-custom summary { cursor: pointer; font-weight: 600; color: var(--red-dark); font-size: .93rem; width: max-content; }
.exam-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 140px)); gap: 12px; margin-top: 12px; }
.options .exam-fields label { font-size: .85rem; font-weight: 600; }
.options .exam-fields input { padding: 9px 12px; }

/* Spec table on the exam pages */
.exam-table-wrap { overflow-x: auto; margin: 1em 0 1.4em; border: 1px solid var(--line); border-radius: 14px; }
.exam-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 420px; }
.exam-table th, .exam-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.exam-table thead th { background: #f6f7fa; font-size: .85rem; color: var(--muted); font-weight: 650; }
.exam-table tr:last-child td { border-bottom: 0; }
.exam-table td:first-child { font-weight: 650; color: var(--ink); white-space: nowrap; }
.exam-table td:nth-child(2) { white-space: nowrap; }
.exam-table a { white-space: nowrap; }
.exam-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.exam-links a { display: inline-block; padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font-size: .9rem; color: var(--ink); background: #fff; }
.exam-links a:hover { border-color: var(--red); color: var(--red-dark); }

@media (max-width: 640px) {
  /* Keep the exam buttons side by side on phones, so they all fit on one screen. */
  .options .exam-row { flex-direction: row; }
  .options .exam-row label { width: auto; flex: 1 1 auto; justify-content: flex-start; }
  .exam-fields { grid-template-columns: 1fr 1fr; }
}
