:root {
  --md-primary-fg-color: #4168b8;
  --md-primary-fg-color--light: #4e88c3;
  --md-primary-fg-color--dark: #344a98;
  --md-accent-fg-color: #177f86;
  --ffa-help-canvas: #f6f7fb;
  --ffa-help-ink: #1c2940;
  --ffa-help-muted: #56627a;
  --ffa-help-nav-active: #e1d8f2;
}

body {
  background:
    radial-gradient(circle at 8% 12%, rgb(116 205 181 / 20%), transparent 28rem),
    radial-gradient(circle at 92% 16%, rgb(205 165 221 / 18%), transparent 30rem),
    linear-gradient(120deg, #eef9f2 0%, var(--ffa-help-canvas) 48%, #f8eef8 100%);
  color: var(--ffa-help-ink);
}

.md-header {
  background: linear-gradient(105deg, #4855ae 0%, #3976b4 52%, #258a91 100%);
  border-bottom: 1px solid rgb(255 255 255 / 22%);
  box-shadow: 0 3px 14px rgb(52 74 152 / 20%);
}

.md-header__button.md-logo {
  align-items: center;
  background: rgb(255 255 255 / 14%);
  border-radius: 50%;
  display: flex;
  height: 2rem;
  justify-content: center;
  margin: 0.25rem 0.4rem;
  padding: 0.45rem;
  width: 2rem;
}

.md-header__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.md-search__form {
  background-color: rgb(20 68 113 / 38%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 0.45rem;
}

.md-main__inner {
  margin-top: 1.4rem;
}

.md-content__inner {
  background: rgb(255 255 255 / 82%);
  border: 1px solid rgb(223 218 238 / 85%);
  border-radius: 0.9rem;
  box-shadow: 0 12px 32px rgb(62 72 132 / 9%);
  padding: 1.6rem 2rem 2.4rem;
}

.md-typeset {
  font-size: 0.9rem;
  line-height: 1.65;
}

.md-typeset h1 {
  color: var(--ffa-help-ink);
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.md-typeset h2 {
  color: #344a98;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 2.2rem;
}

.md-typeset p,
.md-typeset li {
  color: var(--ffa-help-ink);
}

.md-typeset a:not(.md-button) {
  text-decoration-color: rgb(8 122 103 / 35%);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.md-typeset .md-button {
  border-radius: 0.45rem;
  font-weight: 700;
  min-height: 44px;
  padding-block: 0.6em;
  transition:
    background-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.md-typeset .md-button--primary {
  background: #177f86;
  border-color: #177f86;
}

.md-typeset .md-button:hover {
  box-shadow: 0 4px 10px rgb(7 84 111 / 18%);
  transform: translateY(-1px);
}

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

.md-nav__title {
  color: var(--ffa-help-muted);
  font-weight: 750;
}

.md-nav__item--section > .md-nav__link {
  color: var(--ffa-help-muted);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.md-nav__link {
  border-radius: 0.35rem;
  padding: 0.22rem 0.4rem;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.md-nav__link:hover {
  background: rgb(65 104 184 / 9%);
}

.md-nav__link--active {
  background: var(--ffa-help-nav-active);
  color: #344a98;
  font-weight: 700;
}

.md-sidebar--secondary .md-sidebar__inner {
  background: rgb(255 255 255 / 68%);
  border: 1px solid rgb(223 218 238 / 75%);
  border-radius: 0.75rem;
  box-shadow: 0 8px 24px rgb(62 72 132 / 7%);
  padding: 0.75rem;
}

.md-typeset a:focus-visible,
.md-typeset .md-button:focus-visible,
.md-header__button:focus-visible,
.md-nav__link:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

@media (max-width: 44.984375em) {
  body {
    background: #fff;
  }

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

  .md-typeset {
    font-size: 0.85rem;
  }

  .md-content__inner {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin-inline: 0.2rem;
    padding: 1.2rem 0.65rem 2rem;
  }

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

  .md-typeset h2 {
    font-size: 1.2rem;
    margin-top: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-typeset .md-button,
  .md-nav__link {
    transition: none;
  }

  .md-typeset .md-button:hover {
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
  }

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