/* The sign palette of palette.js. */
.palette {
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0.5rem;
  line-height: 1.4;
}
.palette .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.palette select[data-palette="family"] {
  max-width: 22rem;
}
.palette .spacer {
  flex: 1;
}
.palette .body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 0.5rem;
}
@media (max-width: 40rem) {
  .palette .body {
    grid-template-columns: 1fr;
  }
}
.palette [data-palette="signs"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr));
  gap: 2px;
  height: 24rem;
  overflow-y: auto;
  align-content: start;
  background: #f4f4f4;
  padding: 2px;
}
.palette .sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 4.2rem;
  padding: 2px;
  background: white;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.7rem;
}
.palette .sign .picture {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
}
.palette .sign svg {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}
.palette .sign:hover {
  border-color: #9bb5e0;
}
.palette .sign.selected {
  background: #dbe6f8;
  border-color: #4a7fd4;
}
.palette [data-palette="info"] {
  border-left: 1px solid #ddd;
  padding-left: 0.5rem;
  font-size: 0.9rem;
  overflow: auto;
  max-height: 24rem;
}
.palette .big {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.palette .big [data-palette="code"] {
  font-size: 1.4rem;
  font-weight: 600;
}
.palette dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.5rem;
  margin: 0.5rem 0;
}
.palette dt {
  color: #666;
}
.palette dd {
  margin: 0;
}
.palette .code-link {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0.2rem 0.2rem 0;
  padding: 0.1rem 0.3rem;
  font-size: 0.75rem;
  background: white;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
}
.palette [data-palette="description"] {
  overflow-x: auto;
  border-top: 1px solid #ddd;
  padding-top: 0.4rem;
}
