/* App case: shared portfolio typography and spacing. */
.cs-app {
  --text-secondary: var(--text-secondary-strong);
  --text-muted: var(--text-secondary-strong);
  --text-ghost: var(--text-muted-strong);
}

.cs-app__features {
  margin-top: var(--space-48);
}

.cs-app__feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-64);
  align-items: start;
  padding-block: var(--space-48);
}

.cs-app__feature-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

/* Copy left, media right. Mockups are trimmed to their visible area and sit
   centred in their half at no more than native size. */
.cs-app__figure {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.cs-app__figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.cs-app__stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-24);
  margin-top: var(--space-32);
}

/* The button documentation page fills its column, clipped to the surface radius. */
.cs-app__feature--library .cs-app__figure {
  border-radius: var(--radius-surface);
  overflow: hidden;
}

.cs-app__feature--library img {
  width: 100%;
}

.cs-app__stores a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.cs-app .contact__field:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .cs-app__feature {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-32);
    padding-block: var(--space-32);
  }
}
