/* Sage — supplemental styles layered on top of Tailwind CDN utilities */

html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "cv11", "ss01";
}

/* Subtle dot-grid hero background */
.hero-grid {
  background-image: radial-gradient(circle, rgba(139,92,246,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
}

/* Monospace badge used for API method/path labels */
.badge-mono {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgb(63 63 70);
  background-color: rgb(24 24 27);
  color: rgb(161 161 170);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.65rem;
  letter-spacing: 0.01em;
}

/* Version badge in changelog */
.version-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  background-color: rgb(39 39 42);
  border: 1px solid rgb(63 63 70);
  color: rgb(228 228 231);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
}

/* Architecture trade-off callout */
.tradeoff {
  border-left: 3px solid rgb(124 58 237);
  background-color: rgba(124, 58, 237, 0.06);
  border-radius: 0.375rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgb(212 212 216);
}

.tradeoff-label {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(167 139 250);
  margin-bottom: 0.25rem;
}

.arch-card {
  transition: border-color 150ms ease, transform 150ms ease;
}
.arch-card:hover {
  border-color: rgb(82 82 91);
}

/* Source card in "Ask" results */
.source-card {
  border: 1px solid rgb(39 39 42);
  background-color: rgb(9 9 11);
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.8125rem;
}
.source-doc {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  color: rgb(196 181 253);
  font-weight: 500;
}
.source-distance {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem;
  color: rgb(113 113 122);
}
.source-excerpt {
  color: rgb(161 161 170);
  margin-top: 0.35rem;
  line-height: 1.5;
}

/* Eval per-question row */
.eval-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid rgb(39 39 42);
  border-radius: 0.5rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.8125rem;
  background-color: rgb(9 9 11);
}
.eval-pass-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.eval-row-q {
  color: rgb(212 212 216);
  font-weight: 500;
}
.eval-row-meta {
  color: rgb(113 113 122);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scrollbar for eval results list */
#eval-results-list::-webkit-scrollbar {
  width: 6px;
}
#eval-results-list::-webkit-scrollbar-track {
  background: transparent;
}
#eval-results-list::-webkit-scrollbar-thumb {
  background-color: rgb(63 63 70);
  border-radius: 3px;
}
