/**
 * @file
 * Formatted text: styles editors can choose in CKEditor.
 */

.text-formatted > :last-child {
  margin-bottom: 0;
}

.text-formatted h2 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.text-formatted h3 {
  margin: 1.25rem 0 0.5rem;
}

.text-formatted > :first-child {
  margin-top: 0;
}

.text-formatted ul,
.text-formatted ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

p.text-large {
  margin-bottom: 0.5rem;
  color: var(--jh-ink);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

ul.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.chips li {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--jh-input-border);
  border-radius: var(--jh-radius-pill);
  background: var(--jh-white);
  color: var(--jh-ink);
  font-size: 0.9375rem;
  line-height: 1.2;
}

.text-formatted blockquote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--jh-orange);
}
