/* Code: the landing's night, as a card. */
.code {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 16px;
  background: var(--coal);
  color: #fff;
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 8px 0 6px;
  border-bottom: 1px solid var(--night-hair);
}
.code-title {
  padding: 0 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-night-2);
}
.code-tabs {
  display: flex;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.code-tabs::-webkit-scrollbar {
  display: none;
}
.code-tab {
  position: relative;
  height: 44px;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-night-3);
  white-space: nowrap;
}
.code-tab:hover {
  color: var(--on-night-2);
}
.code-tab[aria-selected="true"] {
  color: #fff;
}
.code-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--mint);
}
.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin-inline-start: auto;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--on-night-2);
  white-space: nowrap;
}
.code-copy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.code-copy .i {
  width: 14px;
  height: 14px;
}
.code pre {
  margin: 0;
  padding: 16px 18px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  tab-size: 2;
}
.code[data-answers] pre {
  max-height: 292px;
  overflow-y: auto;
}
.code-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 10px 12px 10px 18px;
  border-top: 1px solid var(--night-hair);
  font-size: 13px;
  color: var(--on-night-3);
}
.try {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 160ms ease-out;
}
.try:active {
  transform: scale(0.97);
}
.try .i {
  width: 14px;
  height: 14px;
  color: var(--brand-700);
}

/* What the painter marks: a string, a key, a literal value, a keyword. */
.t-s {
  color: var(--parcel-lid);
}
.t-k {
  color: #eef5f5;
}
.t-n {
  color: var(--mint);
}
.t-w {
  color: var(--brand-300);
}
