:root {
  --fp-teal: #1f9d55;
  --fp-blue: #103a5c;
  --fp-teal-dark: #157a42;
  --fp-teal-soft: #e8f6ee;
  --fp-ink: #102a2a;
  --fp-muted: #5b6f72;
  --fp-line: #d8e4e5;
  --fp-amber: #1967b3;
  --fp-panel: #ffffff;
}

[data-md-color-scheme="slate"] {
  --fp-teal: #7ddf9f;
  --fp-blue: #9ec5ee;
  --fp-teal-dark: #9cf0b8;
  --fp-teal-soft: rgba(31, 157, 85, 0.18);
  --fp-ink: #e5f4f3;
  --fp-muted: #b5c9ca;
  --fp-line: rgba(148, 163, 184, 0.24);
  --fp-panel: #111827;
}

.md-header,
.md-tabs {
  background: var(--fp-blue);
  box-shadow: none;
}

.md-footer-meta {
  display: none;
}

.md-header__button.md-logo {
  display: none;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  letter-spacing: 0;
}

.fp-button {
  border: 1px solid var(--fp-line);
  border-radius: 7px;
  color: var(--fp-blue);
  display: inline-block;
  font-weight: 700;
  padding: 0.58rem 0.84rem;
}

.fp-button.primary {
  background: var(--fp-blue);
  border-color: var(--fp-blue);
  color: #ffffff;
}

.fp-screenshot img,
.fp-wide-image img {
  display: block;
  width: 100%;
}

.fp-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 1.5rem;
}

.fp-card {
  background: var(--fp-panel);
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  padding: 1rem;
}

.fp-card h3 {
  color: var(--fp-ink);
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.fp-card p {
  color: var(--fp-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 0;
}

.fp-card a {
  font-weight: 700;
}

.fp-command-chain {
  background: var(--fp-teal-soft);
  border-left: 4px solid var(--fp-teal);
  border-radius: 8px;
  color: var(--fp-ink);
  font-weight: 700;
  margin: 1.2rem 0;
  padding: 0.9rem 1rem;
}

.fp-command-chain a {
  color: var(--fp-blue);
  text-decoration: none;
}

.fp-command-chain a:hover {
  text-decoration: underline;
}

.fp-api-card {
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  margin: 0.75rem 0 2rem;
  padding: 1rem 1.1rem;
  background: var(--fp-panel);
}

.fp-api-card h4 {
  color: var(--fp-blue);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.fp-api-card ul {
  margin-bottom: 0.75rem;
}

.fp-api-card li {
  margin-bottom: 0.18rem;
}

.fp-api-card pre {
  border: 1px solid var(--fp-line);
}

.fp-screenshot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.1rem 0;
}

.fp-demo-callout {
  background: var(--fp-panel);
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  margin: 1rem 0 1.2rem;
  padding: 1rem;
}

.fp-demo-callout h3 {
  color: var(--fp-ink);
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.fp-demo-callout p {
  color: var(--fp-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

.fp-screenshot {
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  overflow: hidden;
}

.fp-screenshot figcaption {
  color: var(--fp-muted);
  font-size: 0.72rem;
  padding: 0.55rem 0.7rem;
}

.fp-wide-image {
  border: 1px solid var(--fp-line);
  border-radius: 8px;
  margin: 1rem 0 1.4rem;
  overflow: hidden;
}

@media screen and (max-width: 900px) {
  .fp-grid,
  .fp-screenshot-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 76.25em) {
  .md-main__inner,
  .md-grid {
    max-width: calc(100vw - 3rem);
  }

  .md-sidebar--primary {
    display: none;
  }

  .md-sidebar--secondary {
    order: -1;
    width: 11rem;
    margin-left: 0;
    margin-right: 1rem;
  }

  .md-sidebar--secondary .md-nav__title {
    font-size: 0.68rem;
  }

  .md-sidebar--secondary .md-nav__link {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .md-content {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .md-content__inner {
    margin-left: 0.8rem;
    margin-right: 0.8rem;
    max-width: none;
  }

  .md-content article,
  .md-typeset {
    max-width: none;
  }
}

.md-typeset pre {
  max-width: 100%;
  overflow-x: auto;
}

.md-typeset pre > code {
  white-space: pre;
}

.md-typeset table:not([class]) {
  width: 100%;
}

.md-typeset__table {
  display: block;
  width: 100%;
}

.md-typeset__table table:not([class]) {
  display: table;
}
