/* skills.css — スキル図鑑
   ★:root を書かないこと。配色も書体も common.css の1か所だけです。
   ★カードの骨組みは common.css の .cards / .card / .pill。ここは図鑑固有の差分だけ。 */

/* 探す欄 */
.skillbar { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.skillbar input[type=search] { flex: 1 1 220px; width: auto; }
.skillbar .btn { margin-top: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* タブ。件数つきのボタンを並べる */
.tabs { margin-bottom: 18px; }
.tabs .btn { margin-top: 0; text-decoration: none; }

/* 区分の説明 */
.desc { margin: 0 0 10px; }

/* 武器・トラウマ・変異は小見出しでまとめる */
.sub { margin: 16px 0; }
.sub h3 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.sub .fam { font-size:13px; font-weight: 400; color: var(--muted); }

/* 札の並び。効果文が主役なので、少し広めに取る */
.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card.skill { display: flex; flex-direction: column; gap: 4px; }
.card.skill .ef { flex: 1; }
.card.skill .tags { margin-top: 2px; }
.card.skill .disp { white-space: nowrap; color: var(--muted); }

/* 探した言葉の印 */
mark { background: #f1d98f; color: inherit; padding: 0 1px; }

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .skillbar input[type=search] { flex: 1 1 100%; }
}
