/* Library page — page-specific styles. Tokens, base form controls, button
   variants, and the .rb-topnav primitive come from /shared/brand.css. */

html, body { min-height: 100%; }
body { background: var(--rb-black-05); }

#app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#page-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 12px 0;
}
#page-head h1 {
  margin: 0;
  font-family: var(--font-headline);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.page-sub {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
}

#status {
  min-height: 1.2em;
  color: var(--fg-muted);
  font-size: 13px;
}
#status.warn { color: var(--state-warning); }
#status.error { color: var(--state-error); }

.runs-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.run-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.run-card:hover {
  border-color: var(--fg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.run-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 160px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.run-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.run-thumb-empty {
  font-size: 12px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.run-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}

.run-title {
  font-family: var(--font-headline);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.005em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-review {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rb-white);
  text-decoration: none;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.run-review:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--rb-white);
}
