/* Yucca Lab Apps: the gallery. Tokens (var(--navy), var(--teal)…) come from yucca.css. */

body { background: var(--lav); }
.intro { margin: 8px 0 28px; max-width: 720px; }
.intro h1 { margin: 6px 0 8px; font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.intro p { margin: 0; color: var(--muted); font-size: 15px; }

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.app {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: var(--white);
  color: inherit; text-decoration: none; box-shadow: var(--shadow); border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.app:hover, .app:focus-visible { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 10px 30px rgba(18, 27, 58, .14); }
.app-banner {
  height: 120px; display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-bottom: 3px solid var(--teal);
}
.app:hover .app-banner { border-bottom-color: var(--coral); }
.app-icon { width: 56px; height: 56px; display: block; color: var(--teal); }
.app-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.app-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 16px; flex: 1; }
.app-body h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--navy); }
.app-body p { margin: 0; color: var(--ink); flex: 1; }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; }
.app-host { color: var(--muted); }
.app-tag { padding: 2px 8px; border-radius: 999px; background: var(--teal-tint); color: #0B6E68; font-weight: 500; }

.note { margin-top: 32px; color: var(--muted); font-size: 13px; }
.empty, .error { color: var(--muted); }
.error { color: var(--coral-deep); }
