/* RuntimeAI FAQ page */

.rai-faq-page {
  width: 100%;
  padding: 0 0 2.5rem;
  box-sizing: border-box;
}

.rai-faq-callout {
  margin: 0 0 1.75rem;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  border: 1px solid rgba(19, 117, 217, 0.25);
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 7%, var(--surface, #fff));
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text, #171717);
}

.rai-faq-callout a {
  color: var(--v-brand-teal-deep, #0f5ea8);
  font-weight: 650;
  text-decoration: none;
  margin-left: 0.35rem;
}

.rai-faq-callout a:hover {
  text-decoration: underline;
}

.rai-faq-section {
  margin-bottom: 2rem;
}

.rai-faq-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--v-font-display, "Spectral", Georgia, serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.rai-faq-section-lede {
  margin: -0.35rem 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted, #525252);
}

.rai-faq-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 0.25rem;
  border: 1px solid color-mix(in srgb, var(--border, #e2e8f0) 88%, transparent);
  border-radius: 0.55rem;
}

.rai-faq-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.45;
}

.rai-faq-table th,
.rai-faq-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border, #e2e8f0) 75%, transparent);
  text-align: left;
  vertical-align: top;
}

.rai-faq-table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 6%, var(--surface, #fff));
}

.rai-faq-table tbody th[scope="row"] {
  font-weight: 650;
  white-space: nowrap;
  color: var(--text, #171717);
}

.rai-faq-table tbody tr:last-child th,
.rai-faq-table tbody tr:last-child td {
  border-bottom: none;
}

.rai-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rai-faq-item {
  border: 1px solid color-mix(in srgb, var(--border, #e2e8f0) 88%, transparent);
  border-radius: 0.55rem;
  background: var(--surface, #fff);
  overflow: hidden;
}

.rai-faq-item__q {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
}

.rai-faq-item__q::-webkit-details-marker {
  display: none;
}

.rai-faq-item__q::before {
  content: "+";
  display: inline-block;
  width: 1.1rem;
  font-weight: 700;
  color: var(--v-brand-teal, #1375d9);
}

.rai-faq-item[open] .rai-faq-item__q::before {
  content: "−";
}

.rai-faq-item__a {
  padding: 0 1rem 0.95rem 2.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted, #525252);
}

.rai-faq-item__a p {
  margin: 0 0 0.65rem;
}

.rai-faq-item__a ul,
.rai-faq-item__a ol {
  margin: 0 0 0.65rem;
  padding-left: 1.2rem;
}

.rai-faq-item__a li {
  margin-bottom: 0.35rem;
}

.rai-faq-item__a a {
  color: var(--v-brand-teal-deep, #0f5ea8);
  font-weight: 600;
  text-decoration: none;
}

.rai-faq-item__a a:hover {
  text-decoration: underline;
}

.rai-faq-item__a code {
  font-size: 0.88em;
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 8%, transparent);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.rai-faq-footer-note {
  font-size: 0.9rem;
  color: var(--muted, #525252);
  margin: 1.5rem 0 0;
}

.rai-faq-footer-note a {
  color: var(--v-brand-teal-deep, #0f5ea8);
  font-weight: 600;
  text-decoration: none;
}

.rai-faq-footer-note a:hover {
  text-decoration: underline;
}

body[data-theme="dark"] .rai-faq-item {
  background: color-mix(in srgb, var(--surface, #111) 92%, #000);
  border-color: color-mix(in srgb, var(--border, #334155) 80%, transparent);
}
