/* ============================================================
   Homepage-only refinements.
   Shared Swiss design system lives in styles.css.
   ============================================================ */

/* ---------- Download version readout — tabular data ---------- */
.home-page .download-version {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid var(--rule-soft);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-page .download-version strong {
  color: var(--fg);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.home-page #releaseStatus {
  color: var(--fg-dim);
  font-size: var(--fs-micro);
}

/* The readout sits in the section head's second row, under the lead */
.home-page .section-desc + .download-version {
  grid-column: 3 / span 8;
  grid-row: 3;
  margin-top: var(--space-5);
}

/* ---------- Long titles must not overflow the grid ---------- */
.home-page .section-title {
  overflow-wrap: anywhere;
}

/* ---------- Steps ---------- */
.home-page .step-action {
  margin-top: var(--space-5);
}

.home-page .join-warning {
  margin-top: var(--space-8);
}

/* ---------- Download cards ---------- */
.home-page .card-description {
  margin-bottom: var(--space-5);
}

/* ---------- Archived notice: flagged in ink, not a third colour ---------- */
.home-page .notice--archive::before {
  background: var(--fg);
}

/* ---------- Notices stretch to the tallest cell on the row ---------- */
.home-page .info-grid .notice,
.home-page .info-grid .card {
  height: 100%;
}

.home-page .notice {
  display: flex;
  flex-direction: column;
}

.home-page .notice-desc {
  flex: 0 0 auto;
}

.home-page .notice-actions {
  margin-top: auto;
  padding-top: var(--space-4);
}

@media (max-width: 860px) {
  /* The readout folds back into the single track with the rest of the head */
  .home-page .section-desc + .download-version {
    grid-column: 1;
    grid-row: auto;
    margin-top: var(--space-4);
  }
}
