/* Unit topic cards (Jared, 2026-11-02): the topic list on a unit page as cards with a number badge, title, description, chips and a Start button.
   Uses the site's --accent. Retro touches: square badge and hard 4px shadows, no gradients. Sizes come from the type scale. */
.unit-topics-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2rem 0 0;
  padding: 14px 18px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: var(--fs-h2, 1.5rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}
.unit-topics-heading::before { content: ""; flex: none; width: 16px; height: 16px; background: currentColor; box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3); }
.unit-topics-count {
  margin-left: auto;
  padding: 2px 12px;
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  font-size: var(--fs-small, 0.875rem);
  font-weight: 700;
}

ol.topic-cards {
  list-style: none;
  margin: 0 0 2rem;
  padding: 18px 16px 8px;
  display: grid;
  gap: 16px;
  background: color-mix(in srgb, var(--accent) 7%, #fff);
  border: 3px solid var(--accent);
  border-top: 0;
  border-radius: 0 0 6px 6px;
}
.topic-card { margin: 0; padding: 0; }
.topic-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--fg, #1a1a1a);
  border: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.topic-link:hover, .topic-link:focus-visible { text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22); }
.topic-link:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18); }
.topic-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.topic-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 6px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  font-size: var(--fs-h3, 1.25rem);
  font-weight: 700;
}
.topic-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.topic-title { font-size: var(--fs-h3, 1.25rem); font-weight: 700; line-height: 1.25; color: var(--fg, #1a1a1a); }
.topic-desc { font-size: var(--fs-small, 0.875rem); line-height: 1.45; color: var(--muted, #666); }
.topic-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.topic-chip {
  padding: 1px 10px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: var(--accent);
  border-radius: 999px;
  font-size: var(--fs-small, 0.875rem);
  font-weight: 600;
}
.topic-go {
  flex: none;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3);
  font-weight: 700;
  white-space: nowrap;
}
.topic-link:hover .topic-go { filter: brightness(1.12); }
.topic-soon .topic-link { border-color: #bbb; background: #f6f6f4; box-shadow: none; }
.topic-soon .topic-num { background: #9a9a9a; box-shadow: none; }
.topic-soon .topic-title { color: #666; }
.topic-soon .topic-chip { background: #e8e8e4; color: #666; }

@media (max-width: 560px) {
  .topic-link { flex-wrap: wrap; gap: 12px; }
  .topic-go { width: 100%; text-align: center; }
  .topic-num { min-width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .topic-link { transition: none; } }
@media print { .topic-go { display: none; } }
