:root {
  --gh-bg: #ffffff;
  --gh-canvas-subtle: #f6f8fa;
  --gh-border: #d0d7de;
  --gh-border-muted: #d8dee4;
  --gh-fg: #1f2328;
  --gh-fg-muted: #59636e;
  --gh-link: #00b4b4;
  --gh-link-hover: #009999;
  --gh-code-bg: #f6f8fa;
  --gh-code-block: #f6f8fa;

  --md-primary-fg-color: #00b4b4;
  --md-primary-fg-color--light: #33cccc;
  --md-primary-fg-color--dark: #009999;
  --md-accent-fg-color: #00b4b4;
  --md-accent-fg-color--transparent: rgba(0,180,180,0.1);
}

[data-md-color-scheme="slate"] {
  --gh-bg: #0d1117;
  --gh-canvas-subtle: #161b22;
  --gh-border: #30363d;
  --gh-border-muted: #21262d;
  --gh-fg: #e6edf3;
  --gh-fg-muted: #8b949e;
  --gh-link: #33cccc;
  --gh-link-hover: #00e5e5;
  --gh-code-bg: #161b22;
  --gh-code-block: #161b22;
}

html,
body,
[data-md-color-scheme] {
  background: var(--gh-bg);
  color: var(--gh-fg);
}

body,
input,
button,
select,
textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

code,
pre,
kbd,
samp {
  font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.md-header {
  background: var(--gh-bg);
  color: var(--gh-fg);
  border-bottom: 1px solid var(--gh-border);
  box-shadow: none;
}

.md-header__title,
.md-header__button,
.md-header__option,
.md-search__icon,
.md-search__input,
.md-search__input::placeholder {
  color: var(--gh-fg);
}

.md-main__inner {
  margin-top: 0;
}

.md-sidebar--primary {
  width: 16rem;
}

.md-sidebar__inner,
.md-content__inner,
.md-search__form,
.md-search__output,
.md-typeset table:not([class]) {
  background: var(--gh-bg);
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  box-shadow: none;
}

.md-content__inner {
  padding: 1.5rem;
}

.md-sidebar__inner {
  padding-top: 0.75rem;
}

.md-nav--primary .md-nav__title,
.md-nav--secondary .md-nav__title,
.md-nav__link,
.md-nav__item .md-nav__link {
  color: var(--gh-fg);
}

.md-nav__title {
  background: var(--gh-canvas-subtle);
  border-bottom: 1px solid var(--gh-border-muted);
}

.md-nav__link {
  border-radius: 6px;
  margin: 0.1rem 0.45rem;
  padding: 0.4rem 0.65rem;
}

.md-nav__link:hover,
.md-nav__link:focus {
  background: var(--gh-canvas-subtle);
  color: var(--gh-link);
}

.md-nav__item .md-nav__link--active,
.md-tabs__link--active {
  background: var(--gh-canvas-subtle);
  color: var(--gh-link);
  font-weight: 600;
}

.md-typeset {
  color: var(--gh-fg);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  color: var(--gh-fg);
  font-weight: 600;
}

.md-typeset h2,
.md-typeset h3 {
  border-bottom: 1px solid var(--gh-border-muted);
  padding-bottom: 0.3rem;
}

.md-typeset a {
  color: var(--gh-link);
}

.md-typeset a:hover {
  color: var(--gh-link-hover);
}

.md-typeset .md-button {
  background: var(--gh-bg);
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  color: var(--gh-fg);
  font-weight: 600;
}

.md-typeset .md-button:hover {
  background: var(--gh-canvas-subtle);
}

.md-typeset .md-button--primary {
  background: #00b4b4;
  border-color: rgba(0, 180, 180, 0.4);
  color: #ffffff;
}

.md-typeset .md-button--primary:hover {
  background: #009999;
  color: #ffffff;
}

.md-typeset code,
.md-typeset kbd {
  background: var(--gh-code-bg);
  border: 1px solid var(--gh-border-muted);
  border-radius: 6px;
  color: var(--gh-fg);
}

.highlight pre,
.md-typeset pre > code {
  background: var(--gh-code-block);
  border: 1px solid var(--gh-border);
  border-radius: 6px;
}

.md-typeset table:not([class]) {
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: var(--gh-canvas-subtle);
  color: var(--gh-fg);
}

.md-typeset table:not([class]) tr:hover {
  background: var(--gh-canvas-subtle);
}

.md-typeset .admonition,
.md-typeset details {
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  box-shadow: none;
}

.md-typeset .mermaid {
  background: var(--gh-bg);
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  margin: 1rem 0;
  overflow-x: auto;
  padding: 1rem;
  text-align: center;
}

.md-typeset .mermaid svg {
  height: auto;
  max-width: 100%;
}

.md-footer {
  background: var(--gh-canvas-subtle);
  border-top: 1px solid var(--gh-border);
  color: var(--gh-fg-muted);
}

.itbs-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 2rem;
}
