/* "Exams" card and "Key dates" strip (/shared/exams.js). Tokens only (DESIGN.md); rows are
   separated by hairlines on top, never side bars. Load after /shared/style.css. */

/* ---- Exams ---------------------------------------------------------------------------------- */
.exam-list, .exam-sittings, .exam-rooms { margin: 0; padding: 0; list-style: none; }
.exam { padding: 12px 0; border-top: 1px solid var(--line); }
.exam:first-child { padding-top: 0; border-top: 0; }
.exam-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.exam-course { color: var(--ink); font-weight: 650; }
.exam-check { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.exam-check::before { content: "?"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px; border: 1.5px solid currentColor; border-radius: 50%; font-size: 11px; line-height: 1; }

.exam-sitting { display: grid; gap: 4px; padding: 6px 0; }
.exam-sitting + .exam-sitting { border-top: 1px dashed var(--line); }
.exam-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.exam-when b { color: var(--ink); font-weight: 600; }
.exam-countdown { color: var(--accent); font-size: 13px; font-weight: 650; }
.exam-section { color: var(--muted); font-size: 13px; }

.exam-rooms { display: flex; flex-wrap: wrap; gap: 6px; }
.exam-rooms li { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--fill); }
.exam-room { color: var(--ink-2); font-size: 13.5px; font-weight: 650; }
.exam-split { color: var(--muted); font-size: 12.5px; }

.exam-tag { justify-self: start; padding: 1px 8px; border: 1px solid currentColor; border-radius: var(--r-pill); font-size: 12px; font-weight: 650; white-space: nowrap; }
.exam-tag.changed { color: var(--amber); }
.exam-tag.cancelled, .exam-tag.removed { color: var(--loss); }
.exam-changed { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
.exam-foot { margin-top: 12px; }
.exam-foot a, .key-foot a { color: var(--accent); font-weight: 600; }

/* ---- Key dates ------------------------------------------------------------------------------- */
.key-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.key-date { display: grid; align-content: start; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-item); background: rgb(255 255 255 / 40%); }
.key-when { color: var(--label); font-size: 12.5px; font-weight: 650; letter-spacing: 0.02em; }
.key-date.deadline .key-when { color: var(--accent); }
.key-title { color: var(--ink); font-weight: 600; line-height: 1.3; text-decoration: none; }
.key-title:hover { color: var(--accent); text-decoration: underline; }
.key-note { color: var(--muted); font-size: 12.5px; }
.key-foot { margin-top: 10px; }

@media (max-width: 640px) {
  .key-strip { grid-template-columns: 1fr; }
}
