/* Tailwind (browser CDN) does the heavy lifting; this is only what's awkward to inline. */

:root {
  color-scheme: light dark;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.btn {
  border-radius: 0.75rem;
  border: 1px solid color-mix(in oklab, currentColor 25%, transparent);
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  background: color-mix(in oklab, currentColor 8%, transparent);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:focus-visible,
summary:focus-visible,
textarea:focus-visible,
input:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.btn-primary {
  border-color: transparent;
  background: #4f46e5;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #4338ca;
}

/* Availability pill and per-comment badge */
.pill,
.badge {
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  background: color-mix(in oklab, currentColor 10%, transparent);
}

.pill[data-kind='available'],
.badge[data-kind='set'] {
  background: #d1fae5;
  color: #065f46;
}

.pill[data-kind='downloadable'],
.pill[data-kind='downloading'],
.badge[data-kind='kept'] {
  background: #fef3c7;
  color: #78350f;
}

.pill[data-kind='unsupported'],
.pill[data-kind='unavailable'] {
  background: #fee2e2;
  color: #7f1d1d;
}

.results {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre;
}

summary {
  cursor: pointer;
}
