/* Home intro skill tags: 3-line collapse + Load more. Live only on the front page. */

#home-about .skill-tags-wrap {
  margin: 10px 0 0;
}

#home-about .skill-tags-wrap .skill-tags {
  margin-top: 0;
}

#home-about .skill-tags-viewport {
  position: relative;
  overflow: hidden;
}

/* Approximate 3-line clip until intro-tags.js measures the real pill height.
   Cleared once JS runs, or by the <noscript> rule in about.php. */
#home-about .skill-tags-wrap.is-pending .skill-tags-viewport {
  max-height: calc((11px * 1.3 + 8px) * 3 + 6px * 2);
  overflow: hidden;
}

#home-about .skill-tags-viewport.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
}

#home-about .skill-tags-viewport.is-animated {
  transition: max-height 1.1s ease;
}

#home-about .skill-tags-toggle {
  display: inline-block;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #3b1764;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#home-about .skill-tags-toggle[hidden] {
  display: none;
}

#home-about .skill-tags-toggle:focus-visible {
  outline: 2px solid #3b1764;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #home-about .skill-tags-viewport.is-animated {
    transition: none;
  }
}
