/* Identity Platform theme for Material for MkDocs */
:root {
  --identity-navy: #102a43;
  --identity-blue: #1367d1;
  --identity-cyan: #00a7b5;
  --identity-bg: #f6f8fb;
  --identity-surface: #ffffff;
  --identity-border: #d9e2ec;
  --identity-text: #18212f;
  --identity-muted: #66788a;
  --identity-footer-height: 1.6rem;
  --identity-radius: .7rem;
  --md-text-font: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --md-code-font: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

[data-md-color-scheme="identity-light"] {
  color-scheme: light;
  --md-primary-fg-color: var(--identity-navy);
  --md-primary-fg-color--light: #1f4d73;
  --md-primary-fg-color--dark: #071d2e;
  --md-accent-fg-color: var(--identity-cyan);
  --md-default-bg-color: var(--identity-bg);
  --md-default-fg-color: var(--identity-text);
  --md-code-bg-color: #edf2f7;
  --md-typeset-a-color: var(--identity-blue);
}

[data-md-color-scheme="identity-dark"] {
  color-scheme: dark;
  --md-primary-fg-color: #081b2c;
  --md-primary-fg-color--light: #123552;
  --md-primary-fg-color--dark: #030d15;
  --md-accent-fg-color: #39d3df;
  --md-default-bg-color: #0d1621;
  --md-default-fg-color: #e6edf5;
  --md-code-bg-color: #142231;
  --md-typeset-a-color: #65b5ff;
  --identity-surface: #111f2d;
  --identity-border: #283b4e;
  --identity-muted: #a4b4c4;
}

/* Keep content clear of the fixed action footer */
.md-main {
  padding-bottom: calc(var(--identity-footer-height) + 1rem);
}

.md-header {
  box-shadow: 0 .15rem .8rem rgb(0 0 0 / 18%);
}

.md-grid {
  max-width: 92rem;
}

/* Sidebar */
.md-sidebar--primary {
  border-right: 1px solid var(--identity-border);
}

.md-sidebar__scrollwrap {
  padding-right: .45rem;
}

.md-nav__title {
  font-weight: 750;
  letter-spacing: -.01em;
}

.md-nav__link {
  border-radius: .45rem;
  margin: .08rem 0;
  padding: .32rem .5rem;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.md-nav__link:hover {
  background: color-mix(in srgb, var(--md-accent-fg-color) 11%, transparent);
  transform: translateX(.1rem);
}

.md-nav__link--active {
  background: color-mix(in srgb, var(--md-accent-fg-color) 14%, transparent);
  font-weight: 700;
}

/* Main content cards and typography */
.md-content__inner {
  background: var(--identity-surface);
  border: 1px solid var(--identity-border);
  border-radius: var(--identity-radius);
  box-shadow: 0 .35rem 1.5rem rgb(15 23 42 / 6%);
  margin-top: 1rem;
  padding: 1.5rem 2rem 2.5rem;
}

.md-typeset h1 {
  font-weight: 780;
  letter-spacing: -.035em;
}

.md-typeset h2 {
  border-bottom: 1px solid var(--identity-border);
  font-weight: 720;
  letter-spacing: -.02em;
  padding-bottom: .35rem;
}

.md-typeset code,
.md-typeset pre {
  border-radius: .5rem;
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: var(--identity-radius);
  box-shadow: none;
}

/* Desktop sidebar collapse button */
.identity-sidebar-toggle {
  align-items: center;
  background: var(--identity-surface);
  border: 1px solid var(--identity-border);
  border-radius: 0 .45rem .45rem 0;
  color: var(--md-default-fg-color);
  cursor: pointer;
  display: none;
  height: 2.25rem;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 4.2rem;
  width: 2.25rem;
  z-index: 8;
}

@media screen and (min-width: 76.25em) {
  .identity-sidebar-toggle { display: flex; }

  body.identity-sidebar-collapsed .md-sidebar--primary {
    display: none;
  }

  body.identity-sidebar-collapsed .md-main__inner {
    grid-template-columns: 1fr auto;
  }
}

/* Fixed bottom action bar */
.identity-footer {
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--md-primary-fg-color) 95%, transparent);
  bottom: 0;
  box-shadow: 0 -.2rem 1rem rgb(0 0 0 / 18%);
  color: white;
  height: var(--identity-footer-height);
  left: 0;
  position: fixed;
  right: 0;
  z-index: 20;
}

.identity-footer__inner {
  align-items: center;
  display: grid;
  gap: .8rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  height: 100%;
  margin: 0 auto;
  max-width: 92rem;
  padding: 0 1rem;
}

.identity-footer__link {
  align-items: center;
  color: white;
  display: flex;
  gap: .45rem;
  min-width: 0;
  opacity: .88;
  text-decoration: none;
}

.identity-footer__link:hover {
  color: white;
  opacity: 1;
}

.identity-footer__link--next {
  justify-content: flex-end;
  text-align: right;
}

.identity-footer__label {
  display: block;
  font-size: .62rem;
  letter-spacing: .06em;
  opacity: .65;
  text-transform: uppercase;
}

.identity-footer__title {
  display: block;
  max-width: 24rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-footer__brand {
  font-size: .72rem;
  opacity: .72;
  text-align: center;
}

/* Toast */
.identity-toast {
  background: var(--identity-surface);
  border: 1px solid var(--identity-border);
  border-radius: .55rem;
  bottom: calc(var(--identity-footer-height) + 1rem);
  box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / 20%);
  color: var(--md-default-fg-color);
  opacity: 0;
  padding: .65rem .9rem;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transform: translateY(.5rem);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
}

.identity-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media screen and (max-width: 44.984375em) {
  .md-content__inner {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin-top: 0;
    padding: 1rem 1rem 2rem;
  }

  .identity-footer__brand {
    display: none;
  }

  .identity-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .identity-footer__title {
    max-width: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
