/* HHD web/speech/style.css: grid, lesson cards and viewerpick, scoped to Live's list. */
#catalog .card { background: #fff; border: 1px solid #d3dcd1; border-radius: 12px; padding: 18px; }
#catalog .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
#catalog .lesson { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
#catalog .lesson:hover { border-color: #285c50; }
#catalog .lesson img, #catalog .lesson .noimg { width: 100%; aspect-ratio: 16/9; border-radius: 8px; background: #e4ebe2; }
#catalog .lesson img { object-fit: cover; }
#catalog .lesson .noimg { display: flex; align-items: center; justify-content: center; color: #495e55; }
#catalog .lesson .t { font-weight: 700; }
#catalog .badge.track { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #e4f1e8; color: #285c50; font-weight: 700; }
#catalog .muted { color: #495e55; font-size: 14px; }
#catalog .trackpick { display: flex; gap: 8px; justify-content: center; align-items: stretch; flex-wrap: wrap; margin: 14px 0 12px; }
#catalog .tp { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 96px; border: 1.5px solid #d3dcd1; border-radius: 10px; padding: 9px 14px; cursor: pointer; background: #fff; }
#catalog .tp input { position: absolute; opacity: 0; pointer-events: none; }
#catalog .tp b { font-size: 16px; }
#catalog .tp:has(:checked) { border-color: #285c50; background: #e4f1e8; box-shadow: 0 0 0 2px #cfdfd3; }
#catalog .tp:focus-within { outline: 2px solid #285c50; outline-offset: 2px; }
#catalog-retry { margin-top: .75rem; color: #285c50; font: inherit; cursor: pointer; }
#catalog-back { margin-inline-start: auto; font-size: .9rem; }
@media (max-width: 760px) {
  #catalog .tp { min-width: 0; flex: 1 1 20%; padding: 8px 4px; }
}
