:root {
  --accountify-blue: #0b5bd3;
  --accountify-blue-dark: #0849ad;
  --accountify-green: #087f45;
  --accountify-amber: #a15c00;
  --accountify-red: #c52b3a;
  --accountify-ink: #101827;
  --accountify-muted: #536174;
  --accountify-border: #d7dee8;
  --accountify-soft: #f5f7fa;
  --accountify-code: #f7f9fc;
  --md-text-font-family: Inter, "Segoe UI", Arial, sans-serif;
  --md-code-font-family: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
}

[data-md-color-scheme="accountify-light"] {
  --md-default-bg-color: #ffffff;
  --md-default-fg-color: var(--accountify-ink);
  --md-default-fg-color--light: var(--accountify-muted);
  --md-primary-fg-color: #ffffff;
  --md-primary-bg-color: var(--accountify-ink);
  --md-accent-fg-color: var(--accountify-blue);
  --md-typeset-a-color: var(--accountify-blue);
  --md-code-bg-color: var(--accountify-code);
  --md-code-fg-color: #152238;
}

html {
  font-size: 125%;
}

body,
input,
button,
select {
  letter-spacing: 0;
}

.md-header {
  background: #ffffff;
  border-bottom: 1px solid var(--accountify-border);
  box-shadow: none;
  color: var(--accountify-ink);
}

.md-header__inner {
  height: 3.2rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.7rem;
  width: 1.7rem;
}

.md-header__title {
  font-size: 0.84rem;
  font-weight: 700;
}

.md-search__form {
  background: #ffffff;
  border: 1px solid #cbd4e1;
  border-radius: 5px;
  box-shadow: none;
}

.md-search__form:hover {
  border-color: #a9b6c7;
  background: #ffffff;
}

.md-search__input {
  font-size: 0.7rem;
}

.md-sidebar {
  font-size: 0.67rem;
}

.md-sidebar--primary {
  background: var(--accountify-soft);
  border-right: 1px solid var(--accountify-border);
}

.md-sidebar--secondary {
  border-left: 1px solid var(--accountify-border);
}

.md-nav__title {
  background: transparent !important;
  box-shadow: none !important;
  font-weight: 700;
}

.md-nav__link {
  border-radius: 4px;
  line-height: 1.45;
  margin-top: 0.18rem;
  padding: 0.28rem 0.42rem;
}

.md-nav__link--active {
  background: #e7effd;
  color: var(--accountify-blue) !important;
  font-weight: 600;
}

.md-content__inner {
  margin: 0 auto;
  max-width: 52rem;
  padding-top: 1.75rem;
}

.md-typeset {
  color: var(--accountify-ink);
  font-size: 0.76rem;
  line-height: 1.65;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: #0e1522;
  font-weight: 720;
  letter-spacing: 0;
}

.md-typeset h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.md-typeset h2 {
  border-top: 1px solid var(--accountify-border);
  font-size: 1.15rem;
  margin-top: 2.5rem;
  padding-top: 1.35rem;
}

.md-typeset h3 {
  font-size: 0.9rem;
}

.md-typeset code {
  border: 1px solid #e0e5ec;
  border-radius: 3px;
  font-size: 0.82em;
  padding: 0.06em 0.25em;
}

.md-typeset pre > code {
  border: 0;
  padding: 0;
}

.md-typeset .highlight {
  border: 1px solid var(--accountify-border);
  border-radius: 5px;
  box-shadow: none;
}

.md-typeset .admonition,
.md-typeset details {
  border-width: 0 0 0 3px;
  border-radius: 2px;
  box-shadow: none;
}

.md-button {
  border-radius: 4px !important;
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.48rem 0.8rem !important;
}

.md-button--primary {
  background: var(--accountify-blue) !important;
  border-color: var(--accountify-blue) !important;
}

.lead {
  color: var(--accountify-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 1.2rem;
  max-width: 38rem;
}

.runtime-stats {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 1.25rem 0 2rem;
}

.runtime-stats span {
  align-items: baseline;
  border-right: 1px solid var(--accountify-border);
  color: var(--accountify-muted);
  display: flex;
  font-size: 0.65rem;
  gap: 0.34rem;
  margin-right: 0.9rem;
  padding-right: 0.9rem;
}

.runtime-stats span:last-child {
  border-right: 0;
}

.runtime-stats strong {
  color: var(--accountify-ink);
  font-size: 0.85rem;
}

.integration-steps {
  border-bottom: 1px solid var(--accountify-border);
  border-top: 1px solid var(--accountify-border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0 1.4rem;
}

.integration-steps > div {
  min-height: 5rem;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  position: relative;
}

.integration-steps > div + div {
  border-left: 1px solid var(--accountify-border);
}

.integration-steps b {
  align-items: center;
  background: var(--accountify-blue);
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  font-size: 0.62rem;
  height: 1.35rem;
  justify-content: center;
  left: 0.9rem;
  position: absolute;
  top: 0.95rem;
  width: 1.35rem;
}

.integration-steps strong,
.integration-steps span {
  display: block;
}

.integration-steps span {
  color: var(--accountify-muted);
  font-size: 0.65rem;
  line-height: 1.45;
  margin-top: 0.18rem;
}

.domain-grid {
  border-bottom: 1px solid var(--accountify-border);
  border-top: 1px solid var(--accountify-border);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 1rem 0;
}

.domain-grid a {
  color: var(--accountify-ink);
  min-height: 7rem;
  padding: 0.85rem;
}

.domain-grid a + a {
  border-left: 1px solid var(--accountify-border);
}

.domain-grid strong,
.domain-grid span,
.domain-grid small {
  display: block;
}

.workflow-links {
  border-bottom: 1px solid var(--accountify-border);
  border-top: 1px solid var(--accountify-border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0;
}

.workflow-links a {
  color: var(--accountify-ink);
  min-height: 5.5rem;
  padding: 0.85rem;
}

.workflow-links a + a {
  border-left: 1px solid var(--accountify-border);
}

.workflow-links strong,
.workflow-links span {
  display: block;
}

.workflow-links strong {
  color: var(--accountify-blue);
  margin-bottom: 0.3rem;
}

.workflow-links span {
  color: var(--accountify-muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.domain-grid strong {
  color: var(--accountify-blue);
  margin-bottom: 0.3rem;
}

.domain-grid span {
  color: var(--accountify-muted);
  font-size: 0.62rem;
  line-height: 1.45;
}

.domain-grid small {
  color: var(--accountify-green);
  font-weight: 650;
  margin-top: 0.65rem;
}

.model-label {
  color: var(--accountify-muted);
  font-size: 1rem;
  margin: -0.3rem 0 0.8rem;
}

.model-meta {
  border-bottom: 1px solid var(--accountify-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
}

.model-meta span {
  color: var(--accountify-muted);
  font-size: 0.64rem;
}

.model-meta strong {
  color: var(--accountify-ink);
  margin-right: 0.25rem;
}

.model-tabs {
  border-bottom: 1px solid var(--accountify-border);
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
  overflow-x: auto;
}

.model-tabs a {
  color: var(--accountify-ink);
  font-size: 0.68rem;
  padding: 0.55rem 0.1rem;
  white-space: nowrap;
}

.model-tabs a.is-active {
  border-bottom: 2px solid var(--accountify-blue);
  color: var(--accountify-blue);
  font-weight: 650;
}

.reference-toolbar,
.catalog-toolbar {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  margin: 0.8rem 0 0.45rem;
}

.reference-search {
  flex: 1 1 18rem;
}

.reference-search input,
.catalog-toolbar select,
.field-group-filter select {
  background: #ffffff;
  border: 1px solid #cbd4e1;
  border-radius: 4px;
  color: var(--accountify-ink);
  font-family: var(--md-text-font-family);
  font-size: 0.66rem;
  height: 2.1rem;
  padding: 0 0.65rem;
  width: 100%;
}

.catalog-toolbar label:last-child {
  flex: 0 1 13rem;
}

.field-group-filter {
  flex: 0 1 11rem;
}

.segmented-control {
  display: flex;
}

.segmented-control button {
  background: #ffffff;
  border: 1px solid #cbd4e1;
  color: var(--accountify-muted);
  cursor: pointer;
  font-family: var(--md-text-font-family);
  font-size: 0.62rem;
  height: 2.1rem;
  min-width: 3.5rem;
  padding: 0 0.55rem;
}

.segmented-control button + button {
  border-left: 0;
}

.segmented-control button:first-child {
  border-radius: 4px 0 0 4px;
}

.segmented-control button:last-child {
  border-radius: 0 4px 4px 0;
}

.segmented-control button.is-active {
  border-color: var(--accountify-blue);
  box-shadow: inset 0 0 0 1px var(--accountify-blue);
  color: var(--accountify-blue);
  font-weight: 650;
}

.reference-result {
  color: var(--accountify-muted);
  font-size: 0.6rem;
  min-height: 1rem;
  margin: 0 0 0.2rem;
}

.field-table-wrap {
  border: 1px solid var(--accountify-border);
  border-radius: 4px;
  max-height: 38rem;
  overflow: auto;
}

.md-typeset table.field-table {
  border: 0;
  display: table;
  font-size: 0.6rem;
  margin: 0;
  width: 100%;
}

.field-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.field-table th {
  background: #f4f6f9;
  color: #2a3545;
  font-weight: 680;
  white-space: nowrap;
}

.field-table td,
.field-table th {
  border: 0 !important;
  border-bottom: 1px solid #e3e7ed !important;
  padding: 0.48rem 0.55rem !important;
  vertical-align: top;
}

.field-table tbody tr:hover {
  background: #f8faff;
}

.field-table td:first-child code {
  color: var(--accountify-blue);
  font-weight: 600;
}

.field-help {
  color: var(--accountify-muted);
  min-width: 13rem;
}

.field-group-token {
  color: #45556b;
  display: inline-block;
  font-size: 0.56rem;
  line-height: 1.25;
  max-width: 7rem;
}

.field-metadata {
  border: 0 !important;
  margin: 0 !important;
  min-width: 7rem;
  padding: 0 !important;
}

.field-metadata summary {
  color: var(--accountify-blue);
  cursor: pointer;
  font-size: 0.58rem;
  font-weight: 650;
}

.field-metadata dl {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) minmax(8rem, 1fr);
  margin: 0.45rem 0 0;
}

.field-metadata dt,
.field-metadata dd {
  border-top: 1px solid #e5e9ef;
  margin: 0;
  padding: 0.3rem 0;
}

.field-metadata dt {
  color: var(--accountify-muted);
  padding-right: 0.45rem;
}

.field-metadata dd code {
  overflow-wrap: anywhere;
  white-space: normal;
}

.access-grid {
  border-bottom: 1px solid var(--accountify-border);
  border-top: 1px solid var(--accountify-border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0.8rem 0;
}

.access-grid > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0.8rem;
}

.access-grid > div + div {
  border-left: 1px solid var(--accountify-border);
}

.access-state {
  font-size: 0.58rem;
  font-weight: 680;
}

.access-state--allowed {
  color: var(--accountify-green);
}

.access-state--denied {
  color: var(--accountify-red);
}

.type-token {
  background: #f1f3f6;
  border-radius: 3px;
  color: #29364a;
  font-family: var(--md-code-font-family);
  padding: 0.08rem 0.25rem;
}

.field-state {
  font-size: 0.58rem;
  font-weight: 650;
}

.field-state--yes {
  color: var(--accountify-green);
}

.field-state--no {
  color: #7b8796;
}

.snapshot-grid {
  border-bottom: 1px solid var(--accountify-border);
  border-top: 1px solid var(--accountify-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 1rem 0 1.6rem;
}

.snapshot-grid div {
  padding: 0.9rem;
}

.snapshot-grid div + div {
  border-left: 1px solid var(--accountify-border);
}

.snapshot-grid strong,
.snapshot-grid span {
  display: block;
}

.snapshot-grid strong {
  font-size: 1.15rem;
}

.snapshot-grid span {
  color: var(--accountify-muted);
  font-size: 0.6rem;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

[hidden] {
  display: none !important;
}

@media screen and (max-width: 76.1875em) {
  .md-sidebar--primary {
    background: #ffffff;
  }
}

@media screen and (max-width: 60em) {
  html {
    font-size: 112.5%;
  }

  .md-content__inner {
    padding-top: 1.25rem;
  }

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

  .domain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-links {
    grid-template-columns: 1fr;
  }

  .workflow-links a + a {
    border-left: 0;
    border-top: 1px solid var(--accountify-border);
  }

  .domain-grid a:nth-child(odd) {
    border-left: 0;
  }

  .domain-grid a:nth-child(n + 3) {
    border-top: 1px solid var(--accountify-border);
  }
}

@media screen and (max-width: 42em) {
  .integration-steps,
  .snapshot-grid {
    grid-template-columns: 1fr;
  }

  .integration-steps > div + div,
  .snapshot-grid div + div {
    border-left: 0;
    border-top: 1px solid var(--accountify-border);
  }

  .reference-toolbar,
  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-search,
  .catalog-toolbar label:last-child,
  .field-group-filter {
    flex-basis: auto;
    width: 100%;
  }

  .segmented-control {
    overflow-x: auto;
  }

  .segmented-control button {
    flex: 1 0 auto;
  }

  .domain-grid {
    grid-template-columns: 1fr;
  }

  .access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .access-grid > div:nth-child(3) {
    border-left: 0;
  }

  .access-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--accountify-border);
  }

  .domain-grid a + a {
    border-left: 0;
    border-top: 1px solid var(--accountify-border);
  }

  .runtime-stats {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .runtime-stats span {
    border-right: 0;
    margin: 0;
    padding: 0;
  }
}
