/* ======================================
   SKILL CARDS (Skills tab)
   ====================================== */
/* THE SKILLS ARE A LEDGER (the manuscript look, stage 2, 2026-09-30): the
   grid is one leaf (.panel-card on the Skills tab's two grids, index.html) and
   each skill a ruled entry on it, not a box of its own. The profile's grid
   (#cp-skills) already sits inside a leaf and reads the same. */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0 1.6rem;
}
.skills-grid.panel-card { padding: 0.6rem 1.2rem 0.8rem; }
@media (max-width: 768px) {
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
  .skills-grid.panel-card { padding: 0.5rem 0.95rem 0.7rem; }
}

.skill-card {
  background: none;
  border: 0;
  border-bottom: 1px dotted var(--gild-faint);
  border-radius: 0;
  padding: 0.75rem 0.1rem 0.7rem;
  transition: color 0.2s;
}
@media (hover: hover) { .skill-card:not(.locked):hover .skill-name { color: var(--accent-gold); } }
.skill-card.locked {
  opacity: 0.4;
  filter: grayscale(0.6);
}
.skill-card.whisper-unlocked { border-bottom-color: color-mix(in srgb, var(--accent-violet) 40%, transparent); }

.skill-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}
.skill-name {
  font-family: var(--font-serif);
  font-size: 1.2143rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  transition: color 0.2s;
}
/* The attribute a skill leans on: small caps in the book face, gilt, no box. */
.skill-attr-tag {
  font-family: var(--font-serif);
  font-size: var(--fs-small);
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: var(--gild-ink);
  flex-shrink: 0;
}

/* The five ranks are lozenges, the manuscript's own bullet. */
.skill-pips {
  display: flex;
  gap: 7px;
  margin: 0 0 0.5rem 2px;
}
.pip {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: transparent;
  border: 1px solid var(--gild-faint);
}
.pip.filled          { background: var(--accent-ember); border-color: var(--accent-ember); }
.pip.filled.whisper  { background: var(--accent-violet); border-color: var(--accent-violet); }

/* skill cards reuse the shared .bar-track.thin / .bar-fill system */
.skill-card .bar-track { margin-bottom: 0.1rem; }

.skill-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}
.skill-rank-name {
  font-family: var(--font-serif);
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-style: italic;
}
/* .skill-unused was the "Unused for {n} days" line under an idle card. The
   card carries nothing under its bar since 2026-09-18 and the warning moved to
   Tidings, so the rule went with the markup. */
