/* Expanded recommendation card — app-side extras on top of the gem's
 * .recommendation-card component (rail / inner / content / meta-row / title /
 * body / footer + .gene-chip + .action-button + .pill all come from the gem).
 * Only the bits the gem doesn't ship live here. */

/* Figma uses a 4px radius here, not the gem component's 32px. */
.rec-item .recommendation-card { border-radius: var(--corner-radius-xs); }

/* Rail icons sit at the top, not centred, so they line up with the meta row. */
.recommendation-card__rail { justify-content: flex-start; }

/* Meta row: category + significance pill sit INLINE on the left; the collapse
 * × is pushed to the far right. (The gem makes __category flex-grow, which
 * shoved the pill to the right edge — the repeatedly-reported bug.) */
.rec-item .recommendation-card__category { flex: 0 0 auto; }
.rec-item .recommendation-card__close { margin-left: auto; }

/* Collapse (×) button, top-right of the meta row. */
.recommendation-card__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--spacing-24);
  height: var(--spacing-24);
  color: var(--symbol-default);
  cursor: pointer;
}
.recommendation-card__close:hover { color: var(--symbol-hover); }
.recommendation-card__close svg { width: var(--spacing-16); height: var(--spacing-16); }

/* Gene chips are SNP links here — strip link chrome, keep the component look. */
.recommendation-card .gene-chip { text-decoration: none; cursor: pointer; }

/* Reuse the existing daily-actions track button as the rail's first action,
 * restyled to the 40×40 circular .action-button silhouette (scoped to the rail
 * so the actions page keeps its own styling). */
.recommendation-card__rail .track-button { display: inline-flex; }
.recommendation-card__rail .track-button form { margin: 0; }
.recommendation-card__rail .track-button-toggle--tracked,
.recommendation-card__rail .track-button-toggle--untracked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* Note: matches the gem .action-button 40×40 */
  height: 40px;
  border-radius: var(--corner-radius-full);
  background-color: var(--background-surface-2);
}
.recommendation-card__rail .track-button-toggle--untracked { color: var(--symbol-default); }
.recommendation-card__rail .track-button-toggle--tracked   { color: var(--text-protective); }
.recommendation-card__rail .track-button-toggle--tracked:hover,
.recommendation-card__rail .track-button-toggle--untracked:hover {
  background-color: var(--background-hover);
  color: var(--symbol-hover);
}
.recommendation-card__rail .track-button-icon { width: 20px; height: 20px; }
