@import './activity-icon/index.css';
@import './alert/index.css';
@import './avatar/index.css';
@import './badge/index.css';
@import './breadcrumb/index.css';
@import './button/index.css';
@import './checkbox/index.css';
@import './choicebox/index.css';
@import './close-button/index.css';
@import './dropdown/index.css';
@import './favourite-button/index.css';
@import './input/index.css';
@import './input/index.css';
@import './input/index.css';
@import './link/index.css';
@import './nav-pill/index.css';
@import './pagination/index.css';
@import './progress-bar/index.css';
@import './radio/index.css';
@import './switch/index.css';
@import './tag/index.css';
@import './textarea/index.css';
@import './tooltip/index.css';
.mds-btn.btn.mds-btn--icon-only.mds-btn--size-sm.mds-field-info-button {
  padding: 0;
}

.mds-btn.btn.mds-btn--icon-only.mds-btn--size-sm.mds-field-info-button i,
.mds-btn.btn.mds-btn--icon-only.mds-btn--size-sm.mds-field-info-button svg {
  inline-size: var(--mds-icons-xs);
  block-size: var(--mds-icons-xs);
  font-size: var(--mds-icons-xs);
}
/* Layout for Tag's identity content (avatar + up to three text lines),
   shared with the future Combobox's menu rows via TagContent.tsx — see the
   comment there for why this is a shared helper rather than a Tag prop.

   Deliberately host-agnostic: no cursor, no container chrome and no
   disabled colours live here. Typography (font, size, line height) and the
   name's colour are inherited from the host element, and each host applies
   its own disabled treatment through these hooks (Tag's is in tag.css). */

/* Figma's `content` frame: avatar beside the text lines. It keeps its own
   8px gap, separate from the host's gap to whatever follows it (Tag's close
   button), which grows to 12px at the md and lg density tiers. */
.mds-tag__body {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  gap: var(--mds-spacing-xs);
  min-inline-size: 0;
}

.mds-tag__avatar[class] {
  flex-shrink: 0;
}

/* Three stacked lines: name, then the Position 2 bucket, then institution.
   Each line is its own row so it can truncate independently. */
.mds-tag__content {
  display: inline-flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  min-inline-size: 0;
  overflow: hidden;
}

.mds-tag__name,
.mds-tag__institution {
  max-inline-size: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Line 2 — a single row holding the Position 2 items, divider-separated
   from each other when there is more than one. */
.mds-tag__supporting-row {
  display: inline-flex;
  align-items: center;
  gap: var(--mds-spacing-xxs);
  max-inline-size: 100%;
  overflow: hidden;
}

.mds-tag__supporting-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-inline-size: 0;
}

.mds-tag__supporting-text,
.mds-tag__institution {
  color: var(--mds-text-subtle);
  font-weight: var(--mds-font-weight-regular);
}

.mds-tag__divider {
  flex-shrink: 0;
  inline-size: var(--mds-stroke-weight-sm);
  block-size: var(--mds-font-size-paragraph-small);
  background-color: var(--mds-border-subtle);
}
