/* SPDX-FileCopyrightText: 2026 ff-fab
 * SPDX-License-Identifier: MIT
 */

/* Hide the theme's auto-fetched repo-wide version until version-fetch.js
 * replaces it with the correct per-app release.  CSS hides instantly
 * (before JS runs) to prevent a flash of the wrong version.
 */
.md-source__fact--version {
  display: none;
}

/* Hide fork count to free space for the per-app version tag. */
.md-source__fact--forks {
  display: none;
}

/* Header breadcrumb — "cosalette-apps › appname" link styling.
 * The link inherits the header title font and color; only on hover
 * does it reveal itself as a clickable link (underline + pointer).
 */
.header-breadcrumb {
  color: inherit;
  text-decoration: none;
  font: inherit;
  cursor: default;
}

.header-breadcrumb:hover {
  text-decoration: underline;
  cursor: pointer;
}

/* Move star count onto the repository-name line (above the facts row). */
.md-source__repository.md-source__repository--active {
  overflow: visible;
}

.md-source__repository {
  position: relative;
}

.md-source__fact--stars {
  position: absolute;
  top: 0;
  left: 8rem;
  margin: 0;
}

/* Geometry guide comparison figures. Keep the side-by-side layout on larger
 * screens while making the captions read like figure captions instead of
 * generic table text.
 */
.geometry-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  align-items: start;
  margin: 1.5rem 0;
}

.geometry-comparison figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.geometry-comparison img {
  display: block;
  width: min(100%, 15.625rem);
  height: auto;
}

.geometry-comparison figcaption {
  margin-top: 0.75rem;
  max-width: 15.625rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: left;
}

.geometry-comparison figcaption strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--md-default-fg-color);
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}
