/* Discord's dark theme, the same in both site schemes. Inter stands in for gg sans. */
.md-typeset .dc {
  --risa-inline-code-color: #dbdee1;
  --risa-inline-code-bg: #1e1f22;

  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 14px;
  padding: 12px 16px 14px;
  border-radius: 8px;
  color: #dbdee1;
  background: #313338;
  font: 15px/1.375 var(--md-text-font-family);
  letter-spacing: normal;
}

.md-typeset .dc + .dc {
  margin-top: 8px;
}

.dc-avatar {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1e1f22 url("../assets/images/avatar.webp") center / cover no-repeat;
}

.dc-main {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.dc-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dc-name {
  font-weight: 600;
  color: #f2f3f5;
}

.dc-app {
  padding: 0 4px;
  border-radius: 3px;
  color: #fff;
  background: #5865f2;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
}

.dc-time {
  color: #949ba4;
  font-size: 12px;
}

.dc-box {
  display: grid;
  gap: 10px;
  max-width: 460px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: #2b2d31;
}

.dc-accent {
  border-left: 4px solid var(--dc-accent);
}

.md-typeset .dc :is(p, ul, blockquote, pre) {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.md-typeset .dc .dc-text {
  min-width: 0;
}

.md-typeset .dc .dc-text > * + * {
  margin-top: 4px;
}

.md-typeset .dc strong {
  font-weight: 700;
  color: #f2f3f5;
}

.md-typeset .dc :is(.dc-h1, .dc-h2, .dc-h3) {
  font-weight: 700;
  color: #f2f3f5;
  line-height: 1.3;
}

.md-typeset .dc .dc-h1 {
  font-size: 24px;
}

.md-typeset .dc .dc-h2 {
  font-size: 20px;
}

.md-typeset .dc .dc-h3 {
  font-size: 16px;
}

.md-typeset .dc .dc-sub {
  color: #949ba4;
  font-size: 12px;
}

.md-typeset .dc ul {
  padding-left: 20px;
  list-style: disc;
}

.md-typeset .dc li {
  margin: 0;
}

.md-typeset .dc .dc-quote {
  padding-left: 12px;
  border-left: 4px solid #4e5058;
}

.md-typeset .dc code {
  padding: 0 4px;
  border-radius: 4px;
  font-size: 0.875em;
}

.md-typeset .dc pre.dc-code {
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  background: #1e1f22;
}

.md-typeset .dc pre.dc-code code {
  padding: 0;
  background: none;
  color: #dbdee1;
}

.md-typeset .dc a {
  color: #00a8fc;
  background: none;
  text-decoration: none;
}

.dc-sep {
  height: 1px;
  margin: 2px 0;
  background: rgba(255, 255, 255, 0.08);
}

.dc-sep-blank {
  background: none;
}

.dc-sep-large {
  margin: 8px 0;
}

.dc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dc-row > .dc-select {
  flex: 1 1 100%;
}

.dc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font: 500 14px/1 var(--md-text-font-family);
  white-space: nowrap;
}

button.dc-btn {
  cursor: pointer;
  touch-action: manipulation;
}

button.dc-btn:hover:not(:disabled) {
  filter: brightness(0.92);
}

button.dc-btn:disabled {
  cursor: not-allowed;
}

.md-typeset .dc button.dc-btn:focus-visible {
  outline: 2px solid #00a8fc;
  outline-offset: 2px;
}

.dc-primary,
.dc-premium {
  background: #5865f2;
}

.dc-secondary,
.dc-link {
  background: #4e5058;
}

.dc-success {
  background: #248046;
}

.dc-danger {
  background: #da373c;
}

.dc-disabled {
  opacity: 0.5;
}

.dc-sec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.dc-thumb,
.dc-tile {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #6d6f78;
  background: #1e1f22;
}

.dc-thumb {
  width: 72px;
  height: 72px;
}

.dc-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  height: 128px;
}

.dc-gallery-2 {
  grid-template-columns: 1fr 1fr;
}

.dc-gallery-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.dc-gallery-3 .dc-tile:first-child {
  grid-row: span 2;
}

.dc-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: #949ba4;
  background: #1e1f22;
  font-size: 14px;
}

.dc-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1e1f22;
  font-size: 14px;
}

.dc-eph {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #949ba4;
  font-size: 12px;
}

.md-typeset .dc .dc-eph a {
  color: #00a8fc;
}

.md-typeset .dc .dc-thinking {
  color: #949ba4;
  font-style: italic;
}
