@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --aptori-primary: #53fdca;
  --aptori-secondary: #44dbae;
  --aptori-yellow: #eeb524;
  --aptori-dark: #1f1f1f;
  --aptori-black: #121212;

  --rg-bg: #f7fffc;
  --rg-bg-soft: #effbf7;
  --rg-text: #14211d;
  --rg-muted: #5d7068;
  --rg-border: rgba(12, 169, 127, 0.18);
  --rg-border-strong: rgba(12, 169, 127, 0.34);
  --rg-card: rgba(255, 255, 255, 0.86);
  --rg-shadow: 0 18px 50px rgba(13, 83, 64, 0.08);

  --md-primary-fg-color: #121212;
  --md-primary-fg-color--light: #1f1f1f;
  --md-primary-fg-color--dark: #080c0b;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #12c99b;

  --md-default-bg-color: #f7fffc;
  --md-default-fg-color: #14211d;
  --md-default-fg-color--light: #5d7068;
  --md-default-fg-color--lighter: #7d948b;
  --md-default-fg-color--lightest: rgba(20, 33, 29, 0.12);

  --md-code-bg-color: #0f1715;
  --md-code-fg-color: #d8fff4;

  --md-typeset-a-color: #0aa97f;
}

[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #121212;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #12c99b;
}

/* Typography */

body,
.md-typeset,
.md-nav,
.md-search,
.md-header {
  font-family: "Inter", sans-serif;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-header__title {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.035em;
}

code,
pre,
.md-typeset code,
.md-typeset pre {
  font-family: "JetBrains Mono", monospace;
}

/* Page background */

html,
body {
  background:
    radial-gradient(circle at 14% 0%, rgba(83, 253, 202, 0.34), transparent 34rem),
    radial-gradient(circle at 100% 8%, rgba(68, 219, 174, 0.20), transparent 32rem),
    linear-gradient(180deg, #fbfffd 0%, #f2fbf8 48%, #eef8f4 100%) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(90deg, rgba(12, 169, 127, 0.35) 1px, transparent 1px),
    linear-gradient(rgba(12, 169, 127, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: -1;
}

.md-main,
.md-container {
  background: transparent !important;
}

/* DARK TOP BAR */

.md-header {
  background: rgba(18, 18, 18, 0.96) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(83, 253, 202, 0.18);
  box-shadow: 0 0 34px rgba(83, 253, 202, 0.12);
  backdrop-filter: blur(18px);
}

.md-header__inner {
  min-height: 3.4rem;
}

.md-header__title,
.md-header__topic,
.md-header__topic:first-child {
  color: #ffffff !important;
  font-weight: 700;
}

.md-header__button,
.md-header__button.md-icon,
.md-header .md-icon,
.md-source,
.md-source__repository,
.md-source__fact {
  color: rgba(255, 255, 255, 0.88) !important;
}

.md-header__button:hover,
.md-source:hover {
  color: var(--aptori-primary) !important;
}

/* Search in dark header */

.md-search__form {
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(83, 253, 202, 0.18);
  border-radius: 999px;
}

.md-search__input {
  color: #ffffff !important;
}

.md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.58) !important;
}

.md-search__icon,
.md-search__options .md-icon {
  color: rgba(255, 255, 255, 0.72) !important;
}

.md-search__form:hover {
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(83, 253, 202, 0.34);
}

/* Dark top tabs */

.md-tabs {
  background: #121212 !important;
  border-bottom: 1px solid rgba(83, 253, 202, 0.12);
}

.md-tabs__link {
  color: rgba(255, 255, 255, 0.66) !important;
  font-weight: 600;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  color: var(--aptori-primary) !important;
}

/* Left navigation */

.md-sidebar {
  background: transparent !important;
}

.md-sidebar__scrollwrap {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 169, 127, 0.14);
  border-radius: 18px;
  box-shadow: var(--rg-shadow);
}

.md-nav__title {
  background: transparent !important;
  color: var(--aptori-dark) !important;
  font-weight: 800;
}

.md-nav__link {
  color: #4d625a;
  border-radius: 10px;
}

.md-nav__link:hover,
.md-nav__link--active {
  color: #0aa97f !important;
  background: rgba(83, 253, 202, 0.16);
}

.md-nav__item--active > .md-nav__link {
  color: #0aa97f !important;
  font-weight: 700;
}

/* Content */

.md-content__inner {
  max-width: 920px;
}

.md-typeset {
  color: var(--rg-text);
}

.md-typeset h1 {
  color: var(--aptori-dark);
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #121212 0%, #0aa97f 78%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.md-typeset h2 {
  color: #17332b;
  font-weight: 800;
  margin-top: 2.4rem;
}

.md-typeset h3 {
  color: #21483d;
  font-weight: 700;
}

.md-typeset p,
.md-typeset li {
  color: #354842;
  line-height: 1.75;
}

.md-typeset a {
  color: #0aa97f;
  font-weight: 600;
}

.md-typeset a:hover {
  color: #121212;
}

/* Code */

.md-typeset code {
  color: #066a50;
  background: rgba(83, 253, 202, 0.22);
  border: 1px solid rgba(12, 169, 127, 0.20);
  border-radius: 7px;
  padding: 0.15em 0.42em;
  font-weight: 600;
}

.md-typeset pre {
  background: #0f1715 !important;
  border: 1px solid rgba(12, 169, 127, 0.22);
  border-radius: 18px;
  box-shadow:
    0 24px 54px rgba(13, 83, 64, 0.16),
    0 0 30px rgba(83, 253, 202, 0.12);
}

.md-typeset pre > code {
  background: transparent !important;
  color: #d8fff4 !important;
  border: 0;
  padding: 1.1rem;
  font-size: 0.86rem;
  line-height: 1.65;
}

.highlight span.filename {
  background: rgba(83, 253, 202, 0.08) !important;
  color: rgba(255, 255, 255, 0.76) !important;
  border-bottom: 1px solid rgba(83, 253, 202, 0.12);
}

/* Cards, admonitions, tables */

.md-typeset .admonition,
.md-typeset details {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(12, 169, 127, 0.16);
  border-radius: 18px;
  box-shadow: var(--rg-shadow);
}

.md-typeset .admonition-title,
.md-typeset summary {
  background: rgba(83, 253, 202, 0.18) !important;
  color: #10241e !important;
  font-weight: 800;
}

.md-typeset table:not([class]) {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 169, 127, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--rg-shadow);
}

.md-typeset table:not([class]) th {
  background: rgba(83, 253, 202, 0.20);
  color: #10241e;
  font-weight: 800;
}

.md-typeset table:not([class]) td {
  color: #3e554d;
  border-top: 1px solid rgba(12, 169, 127, 0.10);
}

/* Buttons */

.md-button {
  border-radius: 999px;
  border-color: #0aa97f !important;
  color: #0aa97f !important;
  font-weight: 700;
}

.md-button:hover {
  background: rgba(83, 253, 202, 0.16) !important;
  color: #121212 !important;
}

.md-button--primary {
  background: linear-gradient(135deg, #53fdca, #44dbae) !important;
  color: #06100d !important;
  border: 0 !important;
  box-shadow: 0 12px 26px rgba(12, 169, 127, 0.20);
}

/* Footer */

.md-footer {
  background: #121212 !important;
  color: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(83, 253, 202, 0.14);
}

.md-footer-meta {
  background: #080c0b !important;
}

/* Mobile */

@media screen and (max-width: 76.2344em) {
  .md-nav--primary .md-nav__title {
    background: #121212 !important;
    color: #ffffff !important;
  }

  .md-nav--primary .md-nav__title .md-nav__button {
    color: #ffffff !important;
  }

  .md-sidebar__scrollwrap {
    border-radius: 0;
    box-shadow: none;
  }
}

@media screen and (max-width: 59.9844em) {
  .md-search__form {
    background: #121212 !important;
  }

  .md-search__input {
    background: #121212 !important;
  }

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