/* Check an agent. Layered on demo-page.css, which owns the palette and the cards. */

.check-form {
  display: flex;
  gap: 10px;
  margin: 26px 0 10px;
  flex-wrap: wrap;
}

.check-input {
  flex: 1 1 380px;
  min-width: 0;
  font-size: 15px;
  padding: 13px 15px;
}

.check-form .button {
  padding: 13px 26px;
  font-size: 15px;
}

.note-fine.bad { color: #ff9f9f; }

/* The badge is the answer, so it is shown at the size it will actually appear rather
   than blown up into a hero. Someone deciding whether to embed it needs to see what
   their readers will see. */
.badge-stage {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  margin: 18px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 20, .5);
  min-height: 64px;
}

.badge-img { display: block; }

.badge-fallback {
  margin: 0;
  font-size: 13px;
  color: var(--faint);
}

.reading {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--faint);
}

/* Snippets */

.snippet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 14px 0;
  background: rgba(8, 10, 20, .5);
}

.snippet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

.snippet-head .button {
  padding: 5px 13px;
  font-size: 12px;
}

.snippet-body {
  margin: 0;
  padding: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  /* Snippets are long single lines. Wrapping beats a horizontal scrollbar inside a
     card, and a wrapped line still copies as one line. */
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--ink, #d8d5ee);
}

/* Legend */

.legend {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.legend li {
  display: grid;
  grid-template-columns: 14px 78px 1fr;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
}

.legend strong {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  font-weight: 700;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--dot, #57534e);
  position: relative;
  top: 1px;
}

@media (max-width: 560px) {
  .legend li { grid-template-columns: 14px 1fr; }
  .legend strong { grid-column: 2; }
  .legend li span:last-child { grid-column: 2; }
  .check-form .button { flex: 1 1 100%; }
}
