/* The comments on the page What reporters see, as GitHub shows them: a box with the
   app that posts them above their text. scripts/mkdocs_hooks.py makes them. */
.md-typeset .ia-comment {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.3rem;
  overflow: hidden;
}

.md-typeset .ia-comment__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  background-color: var(--md-code-bg-color);
  font-size: 0.7rem;
}

.md-typeset .ia-comment__avatar {
  flex: none;
}

.md-typeset .ia-comment__badge {
  padding: 0 0.4em;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 2em;
  font-size: 0.6rem;
}

.md-typeset .ia-comment__body {
  padding: 0 0.8rem;
}

.md-typeset .ia-comment__body h3 {
  margin-top: 1.2em;
}

/* The links of the demo project, which lead nowhere: they only look like links. */
.md-typeset .ia-link {
  color: var(--md-typeset-a-color);
  text-decoration: underline;
  text-decoration-thickness: max(1px, 0.06em);
  text-underline-offset: 0.18em;
}

.md-typeset .ia-mention {
  font-weight: 700;
}

/* The fold of many links, as GitHub shows a details element: a line with a
   triangle that opens it, not the box of a collapsible admonition of the theme. */
.md-typeset .ia-comment__body details {
  margin: 1em 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: none;
  font-size: inherit;
}

.md-typeset .ia-comment__body details > summary {
  display: list-item;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  font-weight: inherit;
  list-style: disclosure-closed inside;
  cursor: pointer;
}

.md-typeset .ia-comment__body details[open] > summary {
  list-style-type: disclosure-open;
}

.md-typeset .ia-comment__body details > summary::before,
.md-typeset .ia-comment__body details > summary::after {
  content: none;
}
