/* Collections overview, ported from the prototype. Shared blocks (.pagehead, .state, .tile, .skel ...) live in common.css. */

/* ---------- collection rows ---------- */
/* whole row opens its main link (stretched link); controls inside stay on top */
.colrow { position: relative; cursor: pointer; }
.colrow h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.colrow .btn { position: relative; z-index: 1; }
.colrow:hover h3 a { text-decoration: underline; }

.colrow { display: grid; grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1.8fr) 170px; gap: 14px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.colrow:first-child { border-top: 0; }
.colrow:hover { background: var(--surface-2); }
.colrow .thumbs { display: flex; }
.colrow .thumbs .tile { width: 48px; height: 38px; margin-left: -16px; box-shadow: 0 0 0 2px var(--surface); }
.colrow .thumbs .tile:first-child { margin-left: 0; }
.colrow .colname { min-width: 0; }
.colrow h3 { font: 600 15px var(--font-ui); overflow-wrap: anywhere; } .colrow h3 a { color: var(--ink); text-decoration: none; } .colrow h3 a:hover { text-decoration: underline; }
.colrow .meta { font-size: 12.5px; color: var(--muted); }
.colrow .tally { display: flex; flex-wrap: wrap; gap: 6px; }
.colrow .mis { display: grid; gap: 1px; font-size: 12.5px; color: var(--muted); } .colrow .mis small { font-size: 12.5px; }
.colrow .mis .none { color: var(--faint); }
.colrow .mis .xtra { font-size: 11.5px; color: var(--faint); }
.colrow .mis .lbl { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); } .colrow .mis b { font: 600 14px var(--font-mono); color: var(--ink); }

/* ---------- loading skeleton (shared .skel blocks live in common.css) ---------- */
.colrow.is-skeleton { cursor: default; }
.colrow.is-skeleton:hover { background: none; }

/* ---------- phone: the prototype's .phone rules ---------- */
@media (max-width: 760px) {
  .colrow { grid-template-columns: minmax(0, 1fr) auto; } .colrow .thumbs { display: none; }
  .colrow .mis { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .colrow .tally { grid-column: 1 / -1; grid-row: 2; }
}
