/* List of the tasks of a collection (templates/kurzy/zbierka.html, R77): heading, filter, groups and one
   line per task. Colours and sizes come from the tokens, the dark theme follows them. A line is at least 44 px
   tall; under about 700 px the difficulty, the labels and the state wrap below the name, so nothing scrolls sideways. */

.zbierka-nadpis { font-size: 30px; line-height: 1.2; margin: 0 0 var(--s-2); }
/* summary of the progress for the narrow layout, where the right panel with the ring is hidden */
.zbierka-suhrn { margin: 0 0 var(--s-4); font-size: 14px; color: var(--muted); }
@media (min-width: 1121px) { .zbierka-suhrn { display: none; } }
.zbierka-popis { font-family: var(--serif); font-size: 17px; line-height: 1.6; margin: 0 0 var(--s-4); }

.filter-zbierky { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-5); }
.filter-zbierky .btn { min-height: 44px; border-radius: var(--r-pill); }
.filter-zbierky .btn[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.skupina-uloh { margin: 0 0 var(--s-6); }
.skupina-uloh h2 { margin: 0 0 var(--s-2); font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.zoznam-uloh { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }

/* the line adapts to the width of the LIST (the columns beside it differ by screen), not of the screen: wide, it is one row of columns;
   narrow, the difficulty, the labels and the state go under the name, so nothing wraps by chance or scrolls sideways */
.zoznam-uloh { container-type: inline-size; }
.riadok-ulohy {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3);
  min-height: 56px; padding: var(--s-2) var(--s-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-l); color: var(--text);
}
a.riadok-ulohy:hover { background: var(--accent-soft); text-decoration: none; }
.riadok-cislo {
  flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r); background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-weight: 700; font-size: 13px;
}
.riadok-text { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.riadok-nazov { font-size: 15px; }
.riadok-veta { color: var(--muted); font-size: 13.5px; }
.riadok-ulohy .narocnost { flex: 0 0 68px; flex-direction: column; align-items: flex-start; gap: var(--s-1); }
.riadok-stitky { flex: 0 0 232px; display: flex; flex-wrap: wrap; gap: var(--s-1); }
.riadok-stitky code { padding: 1px var(--s-1-5); border-radius: var(--r-s); background: var(--surface-2); font-family: var(--mono); font-size: 12.5px; }
.riadok-stav { flex: 0 0 108px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.riadok-stav-hotova { color: var(--ok); }
.riadok-stav-rozpracovana { color: var(--accent); }
.riadok-stav-nezacata { color: var(--muted); }
a.riadok-ulohy::after { content: "›" / ""; flex: none; color: var(--muted); font-size: 20px; line-height: 1; }

@container (max-width: 760px) {
  .riadok-text { flex-basis: calc(100% - 44px); }
  .riadok-ulohy .narocnost, .riadok-stitky, .riadok-stav { flex: 0 1 auto; }
  .riadok-ulohy .narocnost { flex-direction: row; }
  a.riadok-ulohy::after { display: none; }
}
