/* Show the header repo badge (top-right, above the fold on every page) as a
   GitHub star CTA, but suppress the live star/fork counts on the header badge
   so a low number is not displayed there. The footer keeps its full repo info,
   including the star count. */
.md-header__source .md-source__facts {
  display: none;
}

/* Announcement-bar star CTA */
.announce-star {
  color: inherit;
  text-decoration: none;
}

.announce-star:hover {
  text-decoration: underline;
}

.announce-star strong {
  white-space: nowrap;
}

.footer-meta {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem 1rem;
  width: 100%;
}

.footer-meta__left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
}

.footer-meta__right {
  margin-left: auto;
  flex: 0 0 auto;
}

.footer-meta__right .md-source {
  max-width: none;
  overflow: visible;
  white-space: nowrap;
  width: auto;
  display: inline-flex;
}

.footer-meta__right .md-source__repository,
.footer-meta__right .md-source__facts {
  white-space: nowrap;
  max-width: none;
}

.footer-meta__right .md-ellipsis {
  overflow: visible;
  text-overflow: clip;
}

/* Notice shown on localized URLs whose page is not translated yet. Kept
   deliberately compact so it reads as context, not as a warning. */
.admonition.translation-fallback {
  font-size: 0.72rem;
  margin: 0 0 1.2em;
  padding-bottom: 0.4rem;
}

.admonition.translation-fallback > .admonition-title {
  margin-bottom: 0.2rem;
}

.admonition.translation-fallback > p:last-child {
  margin-bottom: 0;
}
