.cd-repo {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  min-width: 150px;
  height: 40px;
  backdrop-filter: blur(4px);
  background-color: var(--cd-color-nav-bg);
  border-radius: 1rem;
  transition: background 300ms ease-in-out;

  &:hover {
    background-color: var(--cd-color-nav-bg-hover);
  }
  & > div {
    opacity: 0.8;
    transition: opacity 300ms ease-in-out;
  }
  &:hover > div {
    opacity: 1;
  }
  & .cd-repo__icon {
    padding-right: 0.5rem;
  }
  & .cd-repo__icon svg {
    height: 1.5rem;
    width: 1.5rem;
    fill: currentcolor;
    display: block;
  }
  & .cd-repo__label {
    font-size: 0.9rem;
    font-weight: bold;
  }
  & .cd-repo__repo {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }
  @media (max-width: 480px) {
    & {
      min-width: 0;
    }
    & .cd-repo__icon {
      padding-right: 0;
    }
    & .cd-repo__repo {
      display: none;
    }
  }
  & .cd-repo__facts {
    display: none;
    gap: 0.4rem;
    list-style-type: none;
    margin: 0.1rem 0 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease-out;
  }
  & .cd-repo__facts.cd-repo__facts--visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  & .cd-repo__facts [data-fact] {
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    line-height: 1;
  }
  & .cd-repo__facts [data-fact]:nth-child(1n+2) {
    flex-shrink: 0;
  }
  & .cd-repo__facts [data-fact]:not([hidden]):before {
    width: 0.6rem;
    padding-right: 0.8rem;
    font-family: "Material Symbols Rounded";
    font-weight: normal;
    font-style: normal;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga";
    cursor: default;
    pointer-events: none;
  }
  & .cd-repo__facts [data-fact="version"]:not([hidden]):before {
    content: "tag";
  }
  & .cd-repo__facts [data-fact="stars"]:not([hidden]):before {
    content: "star";
  }
  & .cd-repo__facts [data-fact="forks"]:not([hidden]):before {
    content: "fork_right";
  }
  & .cd-repo__facts [data-fact="numrepos"]:not([hidden]):before {
    content: "numbers";
  }
}
