/* "Past use cases" section on the landing page. Remove this file, /js/use-cases.js, /data/use-cases.json
   and the #use-cases section in index.html to revert. */
.use-cases .uc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 20px; margin-top: 28px; }
.uc-card { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.uc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 22px; }
.uc-cat { color: var(--accent-2); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; line-height: 1.35; min-width: 0; }
.uc-next { flex: none; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.uc-next:hover { color: var(--text); text-decoration-color: currentColor; }
.uc-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.uc-who { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.uc-who h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; overflow-wrap: anywhere; }
.uc-meta { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* Summary absorbs extra row height; sources hug their own lines at the foot of the card. */
.uc-summary { margin: 0; flex: 1 1 auto; color: #52525b; font-size: 13.5px; line-height: 1.55; }
.uc-src { margin: 0; margin-top: auto; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.uc-src a { color: var(--accent-2); text-underline-offset: 2px; white-space: nowrap; }
.uc-src a .icon-ext { width: 0.85em; height: 0.85em; margin-left: 0.15em; background-color: var(--accent); vertical-align: -0.08em; }
.uc-note { margin: 18px 0 0; }
.uc-card.swap .uc-who, .uc-card.swap .uc-summary, .uc-card.swap .uc-src { animation: uc-in 0.35s ease-out 1; }
@keyframes uc-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .uc-card.swap * { animation: none !important; } }

/* Multi-column: force every category title onto two lines (e.g. "VIBE CODED" / "VULNS")
   so Show another stays aligned across the row. */
@media (min-width: 641px) {
  .uc-cat-2 { display: block; }
  .uc-cat { min-height: calc(11.5px * 1.35 * 2); }
  .uc-top { min-height: calc(11.5px * 1.35 * 2); }
}

/* Half-FHD / mid widths: 2×2 grid, titles still two-line aligned. */
@media (min-width: 641px) and (max-width: 1100px) {
  .use-cases .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .use-cases .uc-grid { grid-template-columns: 1fr; gap: 14px; }
}
