/* SpecPoint: extras for the newer course pages, their specification checklists and the /courses/ hub.
   Mobile-first; builds on site.css, course.css, lesson-page.css and spec-checklist.css without changing them. */

.course-facts { font-size: 0.92rem; color: var(--ink-3); max-width: 66ch; }

/* Lesson rows: spec numbers here can be ranges ("1.1.1–1.1.3"), so on phones the number sits above the title
   instead of beside it; from 720px the rows go back to the IAL Biology layout. */
.course .lr { grid-template-columns: auto minmax(0, 1fr); }
.course .lr-num { grid-column: 2; }
.course .lr-title { grid-column: 2; }
.course-count--soon { color: var(--ink-2); }
.course-legal { margin-top: 28px; font-size: 0.84rem; color: var(--ink-3); max-width: 80ch; }

/* Checklist: sub-headings inside a topic, named studies, badges */
.sp-group { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); line-height: 1.35; margin: 18px 0 0; padding: 0 4px; }
.sp-group + .sp-list { margin-top: 8px; }
.sp-topic-note { font-size: 0.9rem; color: var(--ink-3); max-width: 66ch; }
.sp-studies { font-size: 0.9rem; line-height: 1.45; color: var(--ink-2); }
.sp-studies b { font-weight: 600; color: var(--leaf-strong); }
.sp-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.sp-badge--choice { color: #7a5300; background: var(--amber-tint); border-color: #e9cf95; }

/* Hub */
.hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hub-card { display: grid; gap: 12px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.hub-card h2 { font-size: 1.45rem; }
.hub-card h2 a { color: var(--ink); text-decoration: none; }
.hub-card h2 a:hover { text-decoration: underline; }
.hub-card .spec-chip { justify-self: start; }
.hub-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hub-meta { font-size: 0.95rem; color: var(--ink-2); }
.hub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
/* The team member on each card, to the right of the buttons (Laura, 5 Nov 2026), and the "Coming soon" row */
.hub-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 4px; }
.hub-foot .hub-actions { margin-top: 0; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; }
.hub-card--soon .hub-foot > div { flex: 1 1 180px; min-width: 0; }
.hub-foot .btn { white-space: nowrap; }
.hub-crew { display: flex; gap: 4px; flex-shrink: 0; margin-left: auto; }
.hub-crew-one { margin: 0; text-align: center; }
.hub-crew-one img { display: block; width: 72px; height: auto; margin: 0 auto; }
.hub-crew-one figcaption { font-size: 0.72rem; font-weight: 700; color: var(--ink-2); margin-top: 3px; }
.hub-quip { margin: -2px 0 0; text-align: right; font-style: italic; font-size: 0.8rem; color: var(--ink-2); }
.hub-crew:has(.hub-crew-one + .hub-crew-one) .hub-crew-one img { width: 44px; }
.hub-soon-title { margin: 28px 0 12px; font-size: 1.3rem; }
.hub-card--soon { background: var(--paper-2, #f1ede2); border-style: dashed; }
.hub-card--soon h2 { font-size: 1.3rem; margin: 0 0 4px; }

@media (min-width: 720px) {
  .course .lr { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .course .lr-num, .course .lr-title { grid-column: auto; }
  .sp-group { padding: 0; }
  .hub-card { padding: 24px 28px; }
}
@media (min-width: 1000px) {
  .hub-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media print {
  .course-legal { font-size: 8pt; }
  .sp-group { font-size: 8pt; margin: 6pt 0 0; }
  .sp-studies { display: block; font-size: 8.5pt; color: #000; }
  .sp-badge, .sp-badge--choice { color: #000; background: none; border-color: #000; }
}
