/* Challenge page: items.css gives the layout; these are the parts only the challenge page has. */
/* "35 / 42" with a bar */
.prog { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: auto; padding-top: 2px; }
.prog .num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* cards: icon on the left, text and progress beside it */
.cgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ccard { flex-direction: row; align-items: stretch; gap: 12px; }
.cicon { flex: none; width: 72px; height: 72px; border-radius: 6px; overflow: hidden; background: var(--panel-2); }
.cicon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.is-done .prog .bar i { background: var(--done); }
.ccard.is-todo .cicon img, .chero.is-todo img { filter: grayscale(.85) brightness(.7); }
.ccard:hover .cicon img { filter: none; }
.ghead .hnote { font-size: 11.5px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.nmcell img { border-radius: 4px; }
td .prog { margin: 0; min-width: 150px; }

/* detail panel */
.chero { width: 160px; height: 160px; margin: 6px auto 12px; border-radius: 10px; overflow: hidden; }
.chero img { width: 100%; height: 100%; display: block; }
.ctext { font-size: 14px; line-height: 1.5; margin: 0 0 6px; color: #cfd5df; }
.kv.cond td:first-child { word-break: break-word; }
.kv code, .ctext code { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.ilist { list-style: none; margin: 6px 0 0; padding: 0; columns: 2 170px; column-gap: 16px; font-size: 13.5px; }
.ilist li { padding: 2px 0; break-inside: avoid; }
.ilist li.no { color: var(--muted); }
.ilist li .ck { width: 1em; }

@media (max-width: 600px) {
  .cgrid { grid-template-columns: 1fr; }
  .cicon { width: 60px; height: 60px; }
  td .prog { min-width: 120px; }
}

/* where to find a challenge's targets */
.fgroup { margin: 10px 0 12px; }
.fname { font-size: 13.5px; margin-bottom: 6px; color: #cfd5df; }
.fname a, a.imap { color: var(--accent); }
a.imap { font-size: 11.5px; }
a.mapall { display: inline-block; margin: 2px 0 10px; font-size: 13px; border: 1px solid var(--accent); border-radius: 7px; padding: 5px 10px; text-decoration: none; color: var(--text); }
a.mapall:hover { background: var(--panel-2); }
