/*
 * The Anki decks page (LibraryPageController::ankidecks, AnkiDeckPages).
 *
 * Built from the library's tokens only (library.css section 1, family/tokens.css), so it
 * turns dark with the rest. One row per language: its name, what is in the file, and the
 * download. A grid of cards on a wide screen, one column on a phone.
 */

.anki-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .anki-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .anki-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.anki-deck {
  display: flex; flex-direction: column; gap: 0.35rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 1rem 1.1rem;
}
.anki-deck__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.6rem; }
.anki-deck__lang { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.anki-deck__lang:hover { color: var(--accent-ink); text-decoration: underline; }
.anki-deck__native { color: var(--ink-2); font-size: 1rem; }
.anki-deck__meta { margin: 0; color: var(--ink-2); font-size: 0.9rem; }
.anki-deck__sets { margin: 0; color: var(--ink-3); font-size: 0.85rem; line-height: 1.4; overflow-wrap: anywhere; }
.anki-deck__get { align-self: flex-start; margin-top: auto; }

.anki-steps { margin: 0.5rem 0 0; padding-left: 1.3rem; color: var(--ink-2); }
.anki-steps li { margin: 0.35rem 0; }
