/* Real2SimLab brand: blue to violet, the colours of the logo. */
:root {
  --r2s-blue: #2563eb;
  --r2s-violet: #7c3aed;
  --md-primary-fg-color: #4338ca;
  --md-primary-fg-color--light: #6366f1;
  --md-primary-fg-color--dark: #3730a3;
  --md-accent-fg-color: #7c3aed;
  --md-accent-fg-color--transparent: rgba(124, 58, 237, 0.1);
}

[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #a78bfa;
  --md-accent-fg-color--transparent: rgba(167, 139, 250, 0.1);
  --md-typeset-a-color: #8ab4ff;
}

.md-header,
.md-tabs {
  background: linear-gradient(90deg, var(--r2s-blue), var(--r2s-violet));
}

/* Home page. */
.r2s-hero {
  text-align: center;
  margin: 1.2rem 0 1.6rem;
}

.r2s-hero img {
  margin-bottom: 0.4rem;
}

.md-typeset h1.r2s-tagline {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.4rem 0 1.2rem;
  color: var(--md-default-fg-color);
}

.md-typeset h1.r2s-tagline .headerlink {
  display: none;
}

.md-typeset .r2s-caption {
  text-align: center;
  font-style: italic;
  font-size: 0.72rem;
  color: var(--md-default-fg-color--light);
  margin: 0.2rem auto 1.6rem;
  max-width: 46rem;
}

.md-typeset .grid.cards > ul > li {
  border-radius: 0.6rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-accent-fg-color);
}

.md-typeset .md-button {
  border-radius: 0.4rem;
}

[data-md-color-scheme="slate"] .md-typeset .md-button:not(.md-button--primary) {
  color: #c7d2fe;
  border-color: #818cf8;
}

/* Icon tiles (docs/assets/icons, from scripts/make_icons.py) in tables and page titles. */
.md-typeset img.r2s-icon {
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: middle;
  max-width: none;
}

.md-typeset h1 img.r2s-title-icon {
  width: 2.2rem;
  height: 2.2rem;
  vertical-align: -0.45rem;
  margin-right: 0.35rem;
}

/* A table column of icons only (an empty header): as narrow as the icon. */
.md-typeset table:not([class]) th:empty {
  min-width: 0;
  padding-right: 0.2em;
}

.md-typeset table:not([class]) td:has(> img.r2s-icon:only-child) {
  padding-right: 0.2em;
}
