/**
 * player-icons.css
 *
 * Player portal icon primitives. Paint uses currentColor so icons inherit
 * existing theme, active, disabled, and semantic colour states.
 */

@layer components {
  .hd-player-icon {
    --hd-player-icon-size: 1.1em;
    display: inline-flex;
    width: var(--hd-player-icon-size);
    height: var(--hd-player-icon-size);
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: currentColor;
    line-height: var(--hd-leading-icon);
    vertical-align: -0.12em;
  }

  .hd-player-icon--svg-mask {
    background-color: currentColor;
    -webkit-mask: var(--hd-player-icon-mask, none) no-repeat center / contain;
    mask: var(--hd-player-icon-mask, none) no-repeat center / contain;
  }

  .hd-player-icon--text {
    font-family: inherit;
    font-weight: var(--hd-weight-bold);
    font-size: var(--hd-player-icon-size);
  }

  .hd-chip__icon-glyph {
    --hd-player-icon-size: 100%;
  }

  button .hd-player-icon,
  .hd-player-tab-bar__tab .hd-player-icon,
  .hd-player-top-bar__view-name .hd-player-icon,
  .hd-richrow__pin .hd-player-icon,
  .hd-richrow__ruler-link .hd-player-icon,
  .hd-dasham-portal button .hd-player-icon {
    pointer-events: none;
  }

  .hd-entry-term,
  .hd-entry-term-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.18em;
    color: inherit;
    max-width: 100%;
    vertical-align: baseline;
  }

  .hd-entry-term-link {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 0.06em;
    text-decoration-style: dotted;
    text-underline-offset: 0.14em;
  }

  .hd-entry-term-icon {
    --hd-player-icon-size: 0.95em;
    align-self: center;
    color: currentColor;
    pointer-events: none;
  }

  .hd-ruler-detail__title-icon {
    --hd-player-icon-size: 0.95em;
    display: inline-flex;
    margin-right: 0.28em;
    color: currentColor;
    vertical-align: -0.1em;
  }
}
