.answer-content {
  white-space: normal;
}

.answer-content > :first-child { margin-top: 0; }
.answer-content > :last-child { margin-bottom: 0; }

.answer-content h1,
.answer-content h2,
.answer-content h3,
.answer-content h4 {
  font-family: var(--font);
  letter-spacing: -.01em;
  line-height: 1.25;
  margin: 1.15em 0 .45em;
}

.answer-content h1 { font-size: 25px; }
.answer-content h2 { font-size: 21px; }
.answer-content h3 { font-size: 18px; }

.answer-content p,
.answer-content ul,
.answer-content ol,
.answer-content blockquote,
.answer-content pre,
.answer-content table {
  margin: .7em 0;
}

.answer-content ul,
.answer-content ol { padding-left: 24px; }

.answer-content blockquote {
  border-left: 3px solid #b7c3e0;
  margin-left: 0;
  padding: 3px 0 3px 15px;
  color: var(--muted);
}

.answer-content pre,
.answer-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #eef1f6;
  border-radius: 5px;
}

.answer-content code { padding: 2px 4px; font-size: .88em; }
.answer-content pre { padding: 12px; overflow: auto; }
.answer-content pre code { padding: 0; }

.answer-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow: auto;
}

.answer-content th,
.answer-content td {
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.answer-content th { background: #f7f9fc; }

.answer-content a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.answer-content.json {
  white-space: pre;
}

.citation-chip { text-decoration: none; }
.citation-chip:hover,
.answer-citation:hover { background: var(--green2); }

.answer-citation {
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 3px;
}

.result {
  scroll-margin-top: 100px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.result:target {
  border-color: #7d97e0;
  box-shadow: 0 0 0 4px rgba(44,92,220,.15), var(--shadow);
}
