:root {
  --dynaresp-ink: #16302d;
  --dynaresp-muted: #526762;
  --dynaresp-line: #d4e1de;
  --dynaresp-soft: #edf7f5;
  --dynaresp-accent: #d9573b;
}

[data-md-color-scheme="slate"] {
  --dynaresp-ink: #e5f2ef;
  --dynaresp-muted: #a9bfba;
  --dynaresp-line: #38504c;
  --dynaresp-soft: #173b36;
  --dynaresp-accent: #ff8a65;
}

.md-header {
  box-shadow: 0 1px 0 color-mix(in srgb, var(--md-default-fg-color) 18%, transparent);
}

.md-typeset {
  color: var(--dynaresp-ink);
  font-size: 0.76rem;
  line-height: 1.68;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--dynaresp-ink);
  font-weight: 700;
  letter-spacing: 0;
}

.md-typeset h1 {
  margin-bottom: 0.6rem;
  font-size: 2rem;
}

.md-typeset h2 {
  margin-top: 2.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--dynaresp-line);
}

.md-typeset .lead {
  max-width: 48rem;
  margin: 0 0 1.4rem;
  color: var(--dynaresp-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.md-typeset .doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin: 1rem 0 1.5rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--dynaresp-line);
  border-bottom: 1px solid var(--dynaresp-line);
  color: var(--dynaresp-muted);
  font-size: 0.7rem;
}

.md-typeset .grid.cards > ul > li {
  border: 1px solid var(--dynaresp-line);
  border-top: 3px solid var(--md-accent-fg-color);
  border-radius: 6px;
  box-shadow: none;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--dynaresp-ink) 10%, transparent);
}

.md-typeset table:not([class]) {
  border: 1px solid var(--dynaresp-line);
  border-radius: 6px;
}

.md-typeset table:not([class]) th {
  background: var(--dynaresp-soft);
  color: var(--dynaresp-ink);
  font-weight: 700;
}

.md-typeset code {
  border-radius: 3px;
}

.md-typeset pre > code {
  line-height: 1.55;
}

.md-typeset .admonition,
.md-typeset details {
  border-width: 1px;
  border-radius: 6px;
  box-shadow: none;
}

.md-typeset .mermaid {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid var(--dynaresp-line);
  border-radius: 6px;
  background: var(--dynaresp-soft);
  text-align: center;
}

.md-typeset .result-shape {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.md-typeset .result-shape code {
  display: block;
  height: 100%;
  padding: 0.75rem;
  border: 1px solid var(--dynaresp-line);
  background: var(--dynaresp-soft);
  white-space: normal;
}

@media screen and (max-width: 44.984375em) {
  .md-typeset {
    font-size: 0.72rem;
  }

  .md-typeset h1 {
    font-size: 1.65rem;
  }

  .md-typeset .lead {
    font-size: 0.9rem;
  }
}
