/* Confidence indicators */
.confidence-high {
  background-color: var(--md-custom-color-green, #4caf50);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confidence-medium {
  background-color: var(--md-custom-color-amber, #ff9800);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confidence-low {
  background-color: var(--md-custom-color-orange, #ff5722);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confidence-contested {
  background-color: var(--md-custom-color-red, #f44336);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confidence-unassessed {
  background-color: #9e9e9e;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Source type badges */
.source-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid currentColor;
  opacity: 0.8;
}

/* Entry metadata table — compact, no outer borders */
.entry-meta table {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.entry-meta td:first-child {
  width: 140px;
  white-space: nowrap;
}

/* Topic index — entry list items */
.entry-list-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.entry-list-item:last-child {
  border-bottom: none;
}

/* Staleness badges in entry list items */
.staleness-badge-stale {
  background-color: #ff9800;
  color: white;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.staleness-badge-expired {
  background-color: #f44336;
  color: white;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Pagefind overrides to match Material theme */
.pagefind-ui {
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-primary: var(--md-primary-fg-color);
  --pagefind-ui-text: var(--md-default-fg-color);
  --pagefind-ui-background: var(--md-default-bg-color);
  --pagefind-ui-border: var(--md-default-fg-color--lightest);
  --pagefind-ui-tag: var(--md-accent-fg-color);
  font-family: var(--md-text-font-family);
}
