/* "What I Bring to The Table": a small column of colourful skill tags on the home board (js/skill-tags.js).
   The tags are information, not buttons: they lift a little on hover and do nothing else. */
.skill-tags {
  position: absolute;
  left: 2850px; /* the lower right of the board, a good way to the right of the flow map: found by dragging the board down and to the right */
  top: 1880px;
  z-index: 2;
  box-sizing: border-box;
  width: max-content;
  padding: 12px;
  /* framed like a component in a design tool: a dashed purple line, with the component's name above it. No card behind the tags. */
  border: 1.5px dashed #9747ff;
  border-radius: 8px;
  user-select: none;
  -webkit-user-select: none;
}

.skill-tags__name {
  position: absolute;
  left: -2px;
  bottom: calc(100% + 6px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: #9747ff;
  pointer-events: none;
}

.skill-tags__name svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* the tags, one under the other */
.skill-tags__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--bd);
  border-radius: 5px;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: default;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.skill-tag svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-tag:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 12px rgba(28, 27, 25, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .skill-tag {
    transition: none;
  }

  .skill-tag:hover {
    transform: none;
  }
}

/* phones and tablets get the simpler home page without it */
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  body.home .skill-tags {
    display: none;
  }
}
