/* Clickable version tag + build-details popover (see docs/version-tag.md). */
.version-tag {
  position: relative;
  display: inline-block;
}

.version-tag-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  cursor: pointer;
}

.version-tag-button:hover,
.version-tag-button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.version-tag-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100vw - 24px);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(246, 239, 224, 0.12);
  background: rgba(15, 42, 31, 0.96);
  color: rgba(246, 239, 224, 0.72);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-align: left;
  line-height: 1.2;
  font-family: var(--body, "Jost", Futura, "Century Gothic", sans-serif);
  font-style: normal;
  font-weight: 400;
  font-variation-settings: normal;
}

.version-tag-meta {
  margin: 0;
  min-height: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: baseline;
  line-height: 1.2;
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(246, 239, 224, 0.45);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  font-variation-settings: normal;
}

.version-tag-updated-line {
  flex: 0 0 auto;
  white-space: nowrap;
}

.version-tag-tail {
  flex: 0 0 auto;
  white-space: nowrap;
}

.version-tag-updated-label {
  font-weight: 600;
}

.version-tag-sep {
  color: rgba(246, 239, 224, 0.35);
}

.version-tag-changelog {
  font-size: inherit;
  letter-spacing: inherit;
  font-family: inherit;
  font-style: normal;
  font-variation-settings: normal;
  color: inherit;
  text-decoration: none;
}

.version-tag-changelog:hover,
.version-tag-changelog:focus-visible {
  color: rgba(246, 239, 224, 0.72);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 402px) {
  .version-tag-popover {
    right: 0;
    left: auto;
    max-width: calc(100vw - 32px);
  }

  .version-tag-meta {
    flex-wrap: wrap;
  }
}
