:root {
  --md-primary-fg-color: rgb(131, 21, 249);
  --md-primary-fg-color--light: rgb(221, 214, 254);
  --md-primary-fg-color--dark: rgb(91, 33, 182);
  --md-typeset-color: #6F6C79;
  --md-default-fg-color: #6F6C79;
  --md-default-bg-color: #FFFFFF;
  --md-header-fg-color: #1D1D1F;
}

[data-md-color-accent=indigo] {
  --md-accent-fg-color: rgb(76, 29, 149);
  --md-accent-fg-color--transparent: rgb(76, 29, 149, 0.1);
}

body {
  background: white !important;
}

body[data-md-color-scheme] {
  background: linear-gradient(to bottom left, #F3EEFF, #FFFFFF) !important;
  background-attachment: fixed !important;
}

body[data-md-color-scheme] .md-header {
  background: linear-gradient(to bottom left, #F3EEFF, #FFFFFF) !important;
  background-attachment: fixed !important;
  box-shadow: none;
  border-bottom: 1px solid #E7E4F0;
}

/* MkDocs adds a specific URL path or we can use the home grid */
/* We'll override the background if we're on the home page by targeting .tx-container or similar later if needed, but for now we apply gradient everywhere and we will fix home page in a sec */

.md-typeset a:focus,
.md-typeset a:hover {
  text-decoration: underline;
}

.md-nav {
  font-size: 16px;
}

.md-typeset {
  font-size: 16px;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  color: #1D1D1F;
}

.md-typeset h1 {
  margin-bottom: 0;
  opacity: 0.75;
}

.md-tabs__link {
  font-size: 0.82rem;
  margin-top: 0.1rem;
  color: #6F6C79 !important;
  opacity: 1 !important;
  padding: 8px 12px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.md-tabs__link::before {
  font-family: "Font Awesome 6 Pro";
  font-weight: 400;
  font-size: 14px;
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* Start - book icon */
.md-tabs__item:nth-child(1) .md-tabs__link::before {
  content: "\f02d";
}

/* Models - chart-network icon */
.md-tabs__item:nth-child(2) .md-tabs__link::before {
  content: "\f78a";
}

/* Workflows - network-wired icon */
.md-tabs__item:nth-child(3) .md-tabs__link::before {
  content: "\f6ff";
}

/* Reference - code icon */
.md-tabs__item:nth-child(4) .md-tabs__link::before {
  content: "\f121";
}

/* Active tab icon color override */
.md-tabs__item--active > .md-tabs__link::before,
.md-tabs__link--active::before,
.md-tabs__link[data-md-state="active"]::before {
  color: #6706CE;
}

.md-tabs__link:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  border-radius: 4px;
}

.md-tabs__item--active > .md-tabs__link,
.md-tabs__link--active,
.md-tabs__link[data-md-state="active"] {
  color: #6706CE !important;
  box-shadow: inset 0 -2px 0 #6706CE !important;
  border-radius: 0 !important;
  background-color: transparent !important;
}

.half-button {
  width: 49%;
}

.button-holder {
  display: flex;
  justify-content: space-between;
}

.grecaptcha-badge {
  box-shadow: none !important;
}

@media screen and (min-width: 76.25em) {
  .md-nav__item--section>.md-nav__link {
    font-weight: 700;
    color: var(--md-default-fg-color--light);
  }
}

.md-header {
  background: linear-gradient(to bottom left, #F3EEFF, #FFFFFF) !important;
  background-attachment: fixed !important;
  box-shadow: none;
  border-bottom: 1px solid #E7E4F0;
}

.md-header__title,
.md-header__title a,
.md-header__button,
.md-source__repository,
.md-source__fact,
.md-header__source {
  color: #1D1D1F !important;
}

.md-footer {
  margin-top: 1.5rem;
  background: transparent !important;
}

.md-footer-meta {
  background-color: rgba(243, 241, 254, 1) !important;
}

.md-tabs {
  background: transparent;
  line-height: normal;
  padding-bottom: 2px;
}

.md-tabs__item {
  height: auto;
}

.md-tabs__item--active {
  border-bottom: none !important;
}

[dir=ltr] .md-header__title {
  margin-left: 0;
}

@media screen and (min-width: 76.25em) {
  [dir=ltr] .md-header__source {
    margin-left: 0.25rem;
  }
}

@media screen and (min-width: 60em) {
  .md-search__input {
    font-size: .7rem;
  }

  .md-search {
    order: 1;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
  }

  .md-header__source {
    order: 2;
  }

  .md-search__inner {
    width: 16rem;
  }
}

@media screen and (min-width: 76.25em) {
  .md-search__inner {
    width: 22rem;
  }

  [data-md-toggle=search]:checked ~ .md-header .md-search__inner {
    width: 34rem;
  }
}

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

.imageContainer {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0px auto 15px;
  font-style: italic;
}

.imageContainer>div:first-child {
  background-color: white;
  padding: 15px 25px;
}

.imageContainer .caption {
  opacity: 0.7;
}

.youtube {
  color: #EE0F0F;
}

/* Download page styles */
:root {
  --download-border-radius: 0.5rem;
  --download-padding: 0.875rem 1.5rem;
  --download-gap: 0.625rem;
  --download-font-size: 0.875rem;
  --download-icon-size: 1.125rem;
  --download-shadow: 0 0.25rem 0.75rem var(--md-primary-fg-color--transparent);
}

.download-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  max-width: 43.75rem;
}

.download-card {
  background: transparent;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.md-typeset .install-link {
  margin: 0;
  font-size: var(--download-font-size);
}

.md-typeset .install-link a {
  color: var(--md-default-fg-color--light);
  text-decoration: underline;
}

.md-typeset .install-link a:hover {
  color: var(--md-primary-fg-color);
}

.md-typeset .download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--download-gap);
  background: transparent;
  color: var(--md-primary-fg-color);
  border: 0.094rem solid var(--md-primary-fg-color);
  padding: var(--download-padding);
  border-radius: var(--download-border-radius);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: var(--download-font-size);
  min-width: 12.5rem;
  white-space: nowrap;
}

.md-typeset .download-button:hover {
  background: var(--md-primary-fg-color);
  color: white;
  transform: translateY(-0.063rem);
  box-shadow: var(--download-shadow);
}

.download-button img {
  width: var(--download-icon-size);
  height: var(--download-icon-size);
  flex-shrink: 0;
  opacity: 0.8;
}

.download-button:hover img {
  opacity: 1;
}

@media (max-width: 48rem) {
  .download-container {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .download-card {
    padding: 1.25rem;
  }

  .md-typeset .download-button {
    min-width: 11.25rem;
    padding: 0.75rem 1.25rem;
  }
}

/* Related products cards */
.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.md-typeset .product-card {
  border: 1px solid #E7E4F0;
  border-radius: 0.5rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.md-typeset .product-card:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 0.25rem 0.75rem rgba(131, 21, 249, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}

.product-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.md-typeset .product-card__title {
  font-weight: 600;
  color: #1D1D1F;
  font-size: 0.95rem;
  text-decoration: none;
}

.md-typeset .product-card__title:hover {
  color: var(--md-primary-fg-color);
}

.product-card__desc {
  font-size: 16px;
  color: #6F6C79;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 48rem) {
  .product-cards {
    grid-template-columns: 1fr;
  }
}

/* Org-level attribution shown at the bottom of every inner doc page.
 * Surfaces an E-E-A-T signal for AI citation engines without competing
 * with article content. */
.rf-page-attribution {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E7E4F0;
  font-size: 0.85rem;
  color: #6F6C79;
}

.rf-page-attribution p {
  margin: 0;
}

.rf-page-attribution a {
  color: var(--md-primary-fg-color);
  text-decoration: none;
}

.rf-page-attribution a:hover,
.rf-page-attribution a:focus {
  text-decoration: underline;
}