/* ============================================================
   feats.css — the feat picker, and the Remove button on a hand-added feat
   ============================================================ */
/* The feat cards themselves are feature cards, styled by class-features.css. */

/* ─── THE FEAT CARD ─── */
.feat-remove-btn {
  flex-shrink: 0;
  margin-left: 8px;
  font-size: 10px;
  padding: 2px 7px;
}

/* ─── THE PICKER ─── */
.feat-picker-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
#feat-picker-search { width: 100%; }

.feat-picker-ignore {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
}

.feat-picker-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 2px;
}

.feat-option {
  padding: 6px 9px 7px;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.feat-option:hover { border-color: var(--border2); }
.feat-option.unavailable .feat-option-name,
.feat-option.unavailable .feat-option-meta { opacity: 0.55; }

.feat-option-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* The name unfolds the description; it reads as a heading, not a button. */
.feat-option-name {
  flex: 1;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.feat-option-name:hover { color: var(--accent); }
.feat-option-name:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feat-option-take { flex-shrink: 0; font-size: 11px; padding: 3px 11px; }

.feat-option-meta,
.feat-option-problem {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}
.feat-option-problem { font-style: italic; }

.feat-option-desc {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--border);
}
