.example-showcase {
  padding-top: 3rem;
}

.case-heading {
  max-width: 52rem;
  margin-bottom: 3rem;
}

.case-back {
  display: block;
  width: fit-content;
  margin-bottom: 2rem;
}

.case-heading h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.case-heading .lede {
  max-width: 46rem;
  margin: 1.25rem 0;
}

/* Make the DGX source link stand out within the introductory text. */
.case-heading .lede a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.case-heading .lede a:hover,
.case-heading .lede a:focus-visible {
  text-decoration-thickness: 2px;
}

.case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--page-muted);
  font-size: 0.82rem;
}

.case-facts strong,
.case-result figcaption strong {
  color: var(--page-ink);
}

.case-result {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.case-result-heading {
  padding: 1.4rem 1.5rem;
}

.case-result-heading span {
  color: var(--brand);
  font-size: 0.75rem;
}

.case-result h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
  letter-spacing: -0.035em;
}

/* Keep the result and mesh action readable without adding another text section. */
.case-result-heading p { margin: 0.6rem 0 0; color: var(--page-muted); font-size: 0.87rem; }
.case-result figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.case-mesh-toggle { inline-size: 10rem; flex-shrink: 0; white-space: nowrap; font: inherit; cursor: pointer; }
.case-mesh-toggle:disabled { opacity: 0.6; cursor: wait; }
.case-mesh-toggle[aria-pressed="true"] { background: var(--surface); color: var(--page-ink); }

.case-scale {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  background: #22242b;
  font-size: 0.72rem;
}

.case-scale-bar {
  flex: 1;
  height: 0.3rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(36, 161, 224), rgb(46, 219, 184) 25%, rgb(242, 224, 77) 50%, rgb(255, 107, 31) 75%, rgb(189, 15, 23));
}

.case-result figcaption {
  padding: 1.2rem 1.5rem 1.4rem;
  color: var(--page-muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

.case-downloads {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem 4rem;
  margin-top: 3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(0, 212, 160, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(0, 212, 160, 0.04);
}

.case-downloads h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
}

.case-downloads p:not(.eyebrow) {
  color: var(--page-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.case-download-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

@media (max-width: 760px) {
  .case-downloads {
    grid-template-columns: 1fr;
  }

  .case-heading .cta-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .example-showcase .case-downloads {
    scroll-margin-top: 12rem;
  }
}

/* Give the room one full-width interactive view. */
.case-result .result-viewer { width: 100%; height: clamp(360px, 48vw, 640px); aspect-ratio: auto; }
.case-command { padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: .6rem; background: #17191f; overflow-x: auto; font-size: .78rem; line-height: 1.8; }
.case-downloads .case-run-note { font-size: .75rem; }
@media (max-width: 600px) { .case-result .result-viewer { height: 260px; } }
