.level {
  display: inline-block;
  padding: 0 0.5em;
  border-radius: 0.2rem;
  font-weight: 700;
  font-size: 0.7rem;
  color: #fff;
}

.level-settled { background: #2e7d32; }
.level-working { background: #1565c0; }
.level-sketch { background: #ef6c00; }
.level-question { background: #6a1b9a; }
.level-unrated { background: #757575; }

.level-proposed {
  font-style: italic;
  opacity: 0.8;
}

.human-reviewed {
  display: inline-block;
  margin: 0 0 0.8em;
  padding: 0.2em 0.7em;
  border: 1px solid #2e7d32;
  border-radius: 0.2rem;
  color: #2e7d32;
  font-size: 0.75rem;
}

.human-reviewed-box {
  font-size: 0.95rem;
}

[data-md-color-scheme="slate"] .human-reviewed {
  border-color: #66bb6a;
  color: #66bb6a;
}

/* A notice under a page's title: not reviewed, or exploratory. */
.notice {
  margin: 0 0 1.5em;
  padding: 0.8em 1.1em;
  border: 2px solid var(--notice-border);
  border-left-width: 0.5rem;
  border-radius: 0.2rem;
  background: var(--notice-background);
}

.notice strong {
  display: block;
  margin-bottom: 0.2em;
  color: var(--notice-title);
  font-size: 1.15rem;
  line-height: 1.3;
}

.not-reviewed {
  --notice-border: #c62828;
  --notice-title: #c62828;
  --notice-background: rgba(198, 40, 40, 0.1);
}

.exploratory {
  --notice-border: #ef6c00;
  --notice-title: #b34700;
  --notice-background: rgba(239, 108, 0, 0.1);
}

[data-md-color-scheme="slate"] .not-reviewed {
  --notice-border: #ef5350;
  --notice-title: #ef9a9a;
}

[data-md-color-scheme="slate"] .exploratory {
  --notice-border: #ffa726;
  --notice-title: #ffcc80;
}

/* The diagrams on the concept pages: inline SVG, in the page's colors. */
.md-typeset figure.diagram {
  width: 100%;
  margin: 1.5em 0;
}
.diagram svg {
  display: block;
  width: 100%;
  max-width: 30rem;
  height: auto;
  margin: 0 auto;
}
.diagram rect {
  fill: none;
  stroke: var(--md-default-fg-color--light);
}
.diagram rect.accent {
  stroke: var(--md-typeset-a-color);
  stroke-width: 1.5;
}
.diagram rect.fill {
  fill: var(--md-code-bg-color);
}
.diagram text {
  fill: var(--md-default-fg-color);
  font-size: 13px;
}
.diagram text.b {
  font-size: 14px;
  font-weight: 700;
}
.diagram text.s {
  fill: var(--md-default-fg-color--light);
}
.diagram .line {
  fill: none;
  stroke: var(--md-default-fg-color--light);
}
.diagram .read {
  stroke-dasharray: 4 3;
}
.diagram .head {
  fill: var(--md-default-fg-color--light);
}
