/* ==========================================================================
   Tags / Pills — MBA ACT
   Source: Figma Tag component set (5202:24839)
   Padding: 4px 8px, 2px radius, 12px bold text, optional 16px icon.
   Color variants: light, outline, navy-light, alternate (dark bg),
                   alternate-fill (white on dark bg).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  font-family: var(--font-family);
  font-size: 0.75rem; /* 12px */
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  border-radius: var(--radius-xs); /* 2px */
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.tag .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Color Variants
   -------------------------------------------------------------------------- */

/* Light — grey bg, dark text (default) */
.tag--light,
.tag {
  background-color: var(--color-navy-lightest); /* #e6e7e9 */
  color: var(--color-navy);
}

/* Outline — transparent bg, navy-light border */
.tag--outline {
  background-color: transparent;
  border-color: var(--color-navy-light);
  color: var(--color-navy);
}

/* Navy-light — filled navy-light bg, white text */
.tag--navy {
  background-color: var(--color-navy-light);
  color: var(--color-white);
}

/* Alternate — transparent + white border, white text (dark bg) */
.tag--alt {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Alternate fill — white bg, navy text (dark bg) */
.tag--alt-fill {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-navy);
}

/* Text-only — no bg/border */
.tag--text {
  background-color: transparent;
  border-color: transparent;
  padding: 0;
  color: var(--color-navy);
}

.scheme-navy .tag--text {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Interactive tags (filter toggles)
   -------------------------------------------------------------------------- */
a.tag:hover,
button.tag:hover {
  opacity: 0.85;
}

a.tag:focus-visible,
button.tag:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Active/selected state for filter tags */
.tag--active {
  background-color: var(--color-navy-light);
  border-color: var(--color-navy-light);
  color: var(--color-white);
}

.scheme-navy .tag--active {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-navy);
}
