/* FedGaLA note: components on top of styles/notes.css. */

/* ---------- Domain picker ---------- */

.note .domains {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.note .domain {
  display: grid;
  gap: 8px;
  padding: 8px 8px 10px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  text-align: left;
  font-weight: 400;
}

.note .domain img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 4px;
  object-fit: cover;
}

.note .domain .dname {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.note .domain .drole {
  color: var(--muted);
  font-size: 12.5px;
}

.note .domain[aria-pressed='true'] {
  border-color: var(--mix);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--mix);
}

.note .domain[aria-pressed='true'] .drole {
  color: var(--mix);
  font-weight: 600;
}

.note .domain[aria-pressed='true'] img {
  outline: 2px dashed var(--mix);
  outline-offset: -2px;
}

/* ---------- Evidence ---------- */

.note .card .plot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #ffffff;
}

@media (max-width: 640px) {
  .note .domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
