:root {
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --warning-border: #f97316;
  --warning-bg: #fff7ed;
}

.hero {
  margin: 2rem 0 1rem;
}

.hero.hero--single {
  display: block;
  margin-bottom: 2.5rem;
}

.hero.hero--single .hero-copy {
  max-width: 720px;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

.hero .lede {
  font-size: 1.1rem;
  color: #4b5563;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.filters label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
}

.filters input {
  display: block;
  margin-top: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-size: 0.95rem;
  min-width: 220px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.experiment-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.experiment-card header h2 {
  margin: 0.2rem 0;
  font-size: 1.25rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.experiment-card header h2 a {
  color: inherit;
  text-decoration: none;
}

.collection-pill {
  display: inline-flex;
  background: #f3f4f6;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.experiment-card .slug {
  font-family: "Space Mono", monospace;
  color: #9ca3af;
  font-size: 0.85rem;
}

.experiment-card .summary {
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.45;
  flex: 1 1 auto;
}

.experiment-card dl {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.experiment-card dl code {
  font-size: 0.8rem;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.experiment-card dt {
  font-weight: 600;
}

.experiment-detail header {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.experiment-detail header h1 {
  margin: 0.5rem 0 0.2rem;
}

.collection-chip {
  display: inline-block;
  background: #f3f4f6;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.validation-banner {
  background: #fff5f0;
  border: 1px solid #f97316;
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: #9a3412;
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.15);
}

.experiment-detail .meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.content-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.04);
}

.content-section.warning {
  border-color: var(--warning-border);
  background: var(--warning-bg);
}

.markdown-body h2,
.markdown-body h3 {
  margin-top: 1.5rem;
}

.breadcrumbs {
  margin-bottom: 1rem;
}

.breadcrumbs a {
  text-decoration: none;
  color: #1d4ed8;
  font-weight: 600;
}
