:root {
  --deflink-tooltip-width: 400px;
}

.definition-section {
  background: transparent;
  border-radius: 8px;
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem 0.75rem;
  transition: background-color 220ms ease;
}

.definition-section.is-clickable {
  cursor: pointer;
}

.definition-section.is-clickable:hover {
  background: #f7f7f7;
}

.definition-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  border: 1px solid #cfcfcf;
  color: #666666;
  font-size: 1rem;
  line-height: 1;
  transition: transform 220ms ease, background-color 220ms ease,
    border-color 220ms ease, color 220ms ease;
}

.definition-section.is-clickable:hover .definition-chevron {
  border-color: #bdbdbd;
  color: #4a4a4a;
  background: #ececec;
}

.definition-section.is-expanded .definition-chevron {
  transform: rotate(90deg);
  border-color: #bdbdbd;
  color: #4a4a4a;
  background: #ececec;
}

.definition-section.is-expanded {
  background: #f2f2f2;
}

.definition-detail {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 220ms ease, opacity 220ms ease;
}

.definition-detail.is-expanded {
  opacity: 1;
}

.definition-detail hr {
  margin: 0.5rem 0 0.75rem;
}

.hint--deflink:after {
  width: var(--deflink-tooltip-width);
  white-space: normal;
  line-height: 1.4em;
  word-wrap: break-word;
}
