/* Skill card collection (/cards). Mobile first: one column, two from 600px, three from 1024px. */
.cards-page { padding-block: 28px 48px; display: grid; gap: 20px; }
.cards-head h1 { margin: 4px 0 8px; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-size: clamp(1.8rem, 5vw, 2.6rem); }
.cards-intro { margin: 0 0 8px; max-width: 40em; }
.cards-count { margin: 0; color: var(--text-muted); }
.cards-count b { color: var(--text); font-family: var(--font-num); font-size: 1.2rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
.card { position: relative; overflow: hidden; background: var(--bg-panel); border: 1px solid var(--line); border-radius: 12px; }
/* collected cards carry the ET Home trans flag colours on their top edge (spec 8.2), as on the explanation card */
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, #5BCEFA 0 20%, #F5A9B8 20% 40%, #FFFFFF 40% 60%, #F5A9B8 60% 80%, #5BCEFA 80%); }
.card details { padding: 18px 16px 14px; }
.card summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; }
.card summary::-webkit-details-marker { display: none; }
.card summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.card-no { font-family: var(--font-num); color: var(--text-muted); font-size: .85rem; }
.card-name { font-weight: 900; font-size: 1.1rem; }
.card-state { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--selected-bg); color: var(--on-selected); }
.card-summary { grid-column: 2 / -1; color: var(--text-muted); font-size: .92rem; }
.card-body { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-body p, .card-body ul { margin: 0; }
.card-body ul { padding-left: 1.2em; display: grid; gap: 4px; }
.card-how { font-weight: 700; font-size: .85rem; color: var(--text-muted); }
.card-locked-note { display: none; margin: 10px 0 0; font-size: .85rem; color: var(--text-muted); }
/* locked: grey, no trans-flag edge, the explanation stays hidden */
.card.is-locked { background: transparent; border-style: dashed; }
.card.is-locked::before { display: none; }
.card.is-locked .card-name, .card.is-locked .card-summary { color: var(--text-muted); }
.card.is-locked .card-state { background: transparent; color: var(--text-muted); border: 1px solid var(--line); }
.card.is-locked .card-body { display: none; }
.card.is-locked details[open] .card-locked-note { display: block; }
.cards-actions, .cards-confirm { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cards-confirm { padding: 12px 14px; border: 1px solid var(--wrong); border-radius: 10px; }
.cards-confirm p { margin: 0; flex-basis: 100%; }
.cards-privacy { margin: 0; font-size: .85rem; color: var(--text-muted); }
.cards-page .btn { font: inherit; font-weight: 700; cursor: pointer; min-height: 48px; padding: 8px 20px; border-radius: var(--radius); border: 1px solid transparent; display: inline-flex; align-items: center; text-decoration: none; }
.cards-page .btn-gold { background: var(--selected-bg); color: var(--on-selected); }
.cards-page .btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
