/* A LIST OF CARDS, THE KIT'S (List.astro variant "cards"; /design-system, Cards: Table row; Maayan, 2026-11-08: "my first
   table needs a background color a border and a cta which is red ... use the tab color and feel as the table item look
   and feel"): each row the kit's surface with a hairline, square, its
   name larger and bold; a gap between rows, no hairline; hovered, nothing moves. Tokens only. */
.g-list--cards { display: grid; gap: var(--g-4); background: none; overflow: visible; }
/* each row the kit's surface with a hairline (Maayan, 2026-11-08: "the dark one is better. we want to see the button"): light words,
   the red Enter standing out; every row the same, hovered, focused or pressed: no colour change, nothing moves */
.g-list--cards > li { background: var(--g-surface); box-shadow: inset 0 0 0 var(--g-hair) var(--g-separator); }
.g-on-picture .g-list--cards > li { background: var(--g-on-picture-fill); }   /* over a picture (ui.css .g-on-picture): a see-through black */
.g-list--cards > li > .g-row, .g-list--cards > li > .g-row:is(:hover, :active, :focus-visible, :focus-within), .g-list--cards > li:is(:hover, :focus-within) > .g-row { background: none; color: var(--g-text); }
.g-list--cards .g-quiet { color: var(--g-text); }   /* the players, light */
.g-list--cards > li + li > .g-row::before { content: none; }
.g-list--cards .g-row__title { font-size: var(--g-t-title2); font-weight: var(--g-w-bold); }
/* its row on one line (Maayan, 2026-11-08: "make it a lot better like apple would"): the name, what is under it beside
   it (a table's players), its action at the end, all on one centre line; a narrow row puts what is under it under the
   name. Calm room inside, never crowded. */
.g-list--cards > li > .g-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--g-4); row-gap: var(--g-1); padding: var(--g-3) var(--g-4); min-height: var(--g-touch-lg); }
.g-list--cards > li > .g-row > .g-row__body { display: contents; }
.g-list--cards .g-row__title { grid-column: 1; white-space: normal; overflow-wrap: anywhere; }
.g-list--cards .g-row__body > :not(.g-row__title) { grid-column: 2; display: flex; align-items: center; gap: var(--g-2); }
.g-list--cards .g-row__act { grid-column: 3; }
@media (max-width: 599px) { .g-list--cards > li > .g-row { grid-template-columns: minmax(0, 1fr) auto; } .g-list--cards .g-row__body > :not(.g-row__title) { grid-column: 1; grid-row: 2; } .g-list--cards .g-row__act { grid-column: 2; grid-row: 1 / span 2; } }
