/* Fusion Pricing Tables documentation theme */
:root {
  --pg-ink: #0f172a;
  --pg-ink-soft: #334155;
  --pg-muted: #64748b;
  --pg-primary: #3742fa;
  --pg-primary-dark: #1e2a78;
  --pg-accent: #0f766e;
  --pg-surface: #f8fafc;
  --pg-surface-soft: #eef2ff;
  --pg-border: rgba(148, 163, 184, 0.34);
  --pg-header: #172554;
  --pg-tabs: #111827;
}

.md-header {
  background: var(--pg-header) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

.md-tabs {
  background: var(--pg-tabs) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.18);
}

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

.md-tabs__item--active > .md-tabs__link,
.md-tabs__link:hover {
  color: #ffffff !important;
  font-weight: 700 !important;
  opacity: 1;
}

.md-logo {
  margin-right: -8px !important;
}

.md-logo img {
  width: 40px !important;
  height: 40px !important;
}

.md-main {
  background: #ffffff;
}

.md-content {
  background: transparent;
}

.md-typeset {
  color: var(--pg-ink-soft);
  font-size: 0.82rem;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--pg-ink) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
}

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

.md-typeset h2 {
  border-bottom: 1px solid var(--pg-border);
  padding-bottom: 0.35rem;
}

.md-typeset a {
  color: var(--pg-primary) !important;
  font-weight: 650;
}

.md-typeset a:hover {
  color: var(--pg-accent) !important;
}

.md-button,
.md-typeset .md-button {
  background: var(--pg-primary) !important;
  border: 0 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 22px rgba(55, 66, 250, 0.18);
}

.md-button:hover,
.md-typeset .md-button:hover {
  background: var(--pg-primary-dark) !important;
}

.md-button--secondary {
  background: #ffffff !important;
  border: 1px solid var(--pg-border) !important;
  color: var(--pg-primary) !important;
  box-shadow: none;
}

.md-sidebar {
  background: transparent;
}

.md-sidebar__scrollwrap {
  background: transparent !important;
  box-shadow: none !important;
}

.md-nav__title {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pg-muted) !important;
}

.md-nav__item .md-nav__link--active {
  background: transparent !important;
  box-shadow: none !important;
  color: var(--pg-primary) !important;
  font-weight: 700;
}

.md-nav__link:hover {
  color: var(--pg-primary) !important;
}

.md-search__form {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.md-search__input {
  border-radius: 12px;
}

.md-search__input:focus {
  border-color: var(--pg-accent) !important;
}

.md-typeset code {
  background: rgba(55, 66, 250, 0.08) !important;
  color: var(--pg-primary-dark) !important;
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

.md-typeset pre > code {
  background: #111827 !important;
  color: #f8fafc !important;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: #1e293b !important;
  color: #ffffff !important;
  font-weight: 750;
}

.md-typeset table:not([class]) td {
  background: #ffffff;
}

.md-typeset table:not([class]) tr:nth-child(even) td {
  background: #f8fafc;
}

.md-typeset img {
  border: 1px solid var(--pg-border);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

.md-typeset h3 + p img,
.md-typeset h1 + p img {
  margin-top: 0.5rem;
}

.pg-skin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pg-border);
}

.pg-skin-nav a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--pg-primary) !important;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.pg-skin-nav a:hover {
  background: var(--pg-surface-soft);
  border-color: rgba(55, 66, 250, 0.28);
}

.md-footer {
  background: #0f172a;
}
