/* Venturi docs brand layer on top of Material for MkDocs. */

:root {
  --venturi-ink: #141a22;
  --venturi-muted: #596578;
  --venturi-subtle: #7a8494;
  --venturi-border: #d7dde6;
  --venturi-border-strong: #aeb8c7;
  --venturi-canvas: #f7f8f6;
  --venturi-surface: #ffffff;
  --venturi-surface-alt: #eef2f4;
  --venturi-navy: #111827;
  --venturi-teal: #147965;
  --venturi-teal-bright: #36c3a7;
  --venturi-blue: #2f5f9f;
  --venturi-safe-top: env(safe-area-inset-top, 0px);
  --venturi-safe-right: env(safe-area-inset-right, 0px);
  --venturi-safe-bottom: env(safe-area-inset-bottom, 0px);
  --venturi-safe-left: env(safe-area-inset-left, 0px);

  --md-primary-fg-color: var(--venturi-surface);
  --md-primary-bg-color: var(--venturi-ink);
  --md-accent-fg-color: var(--venturi-teal);
  --md-typeset-a-color: var(--venturi-blue);
  --md-default-bg-color: var(--venturi-canvas);
  --md-default-fg-color: var(--venturi-ink);
  --md-default-fg-color--light: var(--venturi-muted);
  --md-code-bg-color: #eef1f4;
  --md-code-fg-color: #1d2937;
}

[data-md-color-scheme="slate"] {
  --venturi-ink: #edf2f6;
  --venturi-muted: #b5c0ce;
  --venturi-subtle: #8d99aa;
  --venturi-border: #303a49;
  --venturi-border-strong: #455166;
  --venturi-canvas: #0b1017;
  --venturi-surface: #111824;
  --venturi-surface-alt: #172131;
  --venturi-navy: #0f1725;
  --venturi-teal: #66d9c2;
  --venturi-teal-bright: #66d9c2;
  --venturi-blue: #9fbef8;

  --md-primary-fg-color: #111824;
  --md-primary-bg-color: var(--venturi-ink);
  --md-accent-fg-color: var(--venturi-teal);
  --md-typeset-a-color: var(--venturi-blue);
  --md-default-bg-color: var(--venturi-canvas);
  --md-default-fg-color: var(--venturi-ink);
  --md-default-fg-color--light: var(--venturi-muted);
  --md-code-bg-color: #1a2433;
  --md-code-fg-color: #edf2f6;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(3.2rem + var(--venturi-safe-top));
}

body {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--venturi-surface) 72%, transparent) 0, transparent 19rem),
    repeating-linear-gradient(90deg, transparent 0 5.95rem, color-mix(in srgb, var(--venturi-border) 24%, transparent) 5.95rem 6rem),
    var(--venturi-canvas);
}

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

.md-header {
  background: color-mix(in srgb, var(--venturi-surface) 95%, transparent);
  border-bottom: 1px solid var(--venturi-border);
  box-shadow: none;
  color: var(--venturi-ink);
}

.md-header__inner {
  min-height: 3rem;
}

.md-header__button.md-logo {
  border-radius: 7px;
  margin: 0.25rem 0.35rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.55rem;
  filter: drop-shadow(0 0 0.02rem color-mix(in srgb, var(--venturi-border) 80%, transparent));
  width: 1.55rem;
}

.md-header__title {
  font-weight: 680;
}

.md-search__form {
  background: color-mix(in srgb, var(--venturi-surface-alt) 80%, transparent);
  border: 1px solid var(--venturi-border);
  border-radius: 8px;
  box-shadow: none;
}

.md-search__form:hover,
.md-search__form:focus-within {
  border-color: var(--venturi-border-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--venturi-teal) 14%, transparent);
}

.md-search__input,
.md-search__icon {
  color: var(--venturi-ink);
}

.md-tabs {
  background: color-mix(in srgb, var(--venturi-surface) 94%, transparent);
  border-bottom: 1px solid var(--venturi-border);
  box-shadow: none;
}

.md-tabs__link {
  color: var(--venturi-muted);
  font-weight: 620;
  opacity: 1;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: var(--venturi-teal);
}

.md-main {
  background: transparent;
}

.md-content {
  background: color-mix(in srgb, var(--venturi-surface) 88%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--venturi-border) 62%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--venturi-border) 62%, transparent);
}

.md-content__inner {
  margin-bottom: 3rem;
  padding-top: 1.6rem;
}

.md-content__inner::before {
  display: none;
}

.md-sidebar {
  color: var(--venturi-muted);
}

.md-sidebar--primary .md-sidebar__scrollwrap,
.md-sidebar--secondary .md-sidebar__scrollwrap {
  scrollbar-color: var(--venturi-border-strong) transparent;
}

.md-nav__title {
  color: var(--venturi-ink);
  font-weight: 700;
}

.md-nav__item .md-nav__link {
  border-radius: 6px;
  color: var(--venturi-muted);
  font-weight: 520;
  margin: 0.08rem 0;
  padding: 0.35rem 0.45rem;
}

.md-nav__link:is(:focus, :hover) {
  background: color-mix(in srgb, var(--venturi-surface-alt) 78%, transparent);
  color: var(--venturi-ink);
}

.md-nav__link--active,
.md-nav__item .md-nav__link--active {
  background: color-mix(in srgb, var(--venturi-teal) 12%, transparent);
  color: var(--venturi-teal);
  font-weight: 680;
}

.md-sidebar--secondary .md-nav__title {
  color: var(--venturi-subtle);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.md-typeset {
  color: var(--venturi-ink);
  font-size: 0.8rem;
}

.md-typeset p,
.md-typeset li {
  line-height: 1.68;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
  color: var(--venturi-ink);
  font-weight: 720;
  letter-spacing: 0;
}

.md-typeset h1 {
  border-bottom: 1px solid var(--venturi-border);
  font-size: 1.92rem;
  line-height: 1.12;
  margin: 0 0 1.35rem;
  max-width: 48rem;
  padding-bottom: 0.85rem;
}

.md-typeset h2 {
  font-size: 1.32rem;
  line-height: 1.25;
  margin-top: 2.15rem;
}

.md-typeset h3 {
  font-size: 1.02rem;
  line-height: 1.35;
}

.md-typeset a {
  color: var(--venturi-blue);
  font-weight: 590;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.md-typeset hr {
  border-bottom-color: var(--venturi-border);
}

.md-typeset strong {
  font-weight: 710;
}

.md-typeset .md-button {
  border-radius: 7px;
  box-shadow: none;
  font-weight: 680;
  padding: 0.64rem 1rem;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.md-typeset .md-button:hover {
  transform: translateY(-1px);
}

.md-typeset .md-button--primary {
  background: var(--venturi-teal);
  border-color: var(--venturi-teal);
  color: #ffffff;
}

.md-typeset .md-button--primary:hover {
  background: color-mix(in srgb, var(--venturi-teal) 86%, #000000);
  border-color: color-mix(in srgb, var(--venturi-teal) 86%, #000000);
}

.md-typeset .grid.cards > ul {
  gap: 0.85rem;
}

.md-typeset .grid.cards > ul > li {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--venturi-surface) 96%, transparent), color-mix(in srgb, var(--venturi-surface-alt) 42%, transparent));
  border: 1px solid var(--venturi-border);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgb(15 23 42 / 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li {
  box-shadow: 0 14px 32px rgb(0 0 0 / 0.22);
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: color-mix(in srgb, var(--venturi-teal) 54%, var(--venturi-border));
  box-shadow: 0 18px 42px rgb(15 23 42 / 0.11);
  transform: translateY(-2px);
}

.md-typeset .grid.cards .lg {
  color: var(--venturi-teal);
}

.venturi-path-cards .lg {
  color: var(--venturi-blue);
}

.md-typeset table:not([class]) {
  background: var(--venturi-surface);
  border: 1px solid var(--venturi-border);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(15 23 42 / 0.05);
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: color-mix(in srgb, var(--venturi-surface-alt) 82%, transparent);
  color: var(--venturi-ink);
  font-weight: 700;
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  border-color: var(--venturi-border);
  padding: 0.7em 0.9em;
  vertical-align: top;
}

.md-typeset__scrollwrap,
.md-typeset .highlight {
  -webkit-overflow-scrolling: touch;
}

.md-typeset code {
  border: 1px solid color-mix(in srgb, var(--venturi-border) 70%, transparent);
  border-radius: 5px;
  padding: 0.08em 0.34em;
}

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

.md-typeset .highlight {
  border: 1px solid var(--venturi-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgb(15 23 42 / 0.06);
  overflow: hidden;
}

.md-typeset .highlight > pre {
  -webkit-overflow-scrolling: touch;
}

.md-typeset .admonition,
.md-typeset details {
  background: color-mix(in srgb, var(--venturi-surface) 95%, transparent);
  border: 1px solid var(--venturi-border);
  border-left: 0.28rem solid var(--venturi-teal);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(15 23 42 / 0.05);
}

.md-typeset .admonition-title,
.md-typeset summary {
  background: color-mix(in srgb, var(--venturi-teal) 10%, transparent);
  color: var(--venturi-ink);
  font-weight: 700;
}

.md-typeset .tabbed-set {
  margin: 1.1rem 0;
}

.md-typeset .tabbed-labels {
  gap: 0.3rem;
}

.md-typeset .tabbed-labels > label {
  border: 1px solid var(--venturi-border);
  border-radius: 7px 7px 0 0;
  color: var(--venturi-muted);
  font-weight: 650;
  padding: 0.55rem 0.75rem;
}

.md-typeset .tabbed-labels > label:hover {
  color: var(--venturi-ink);
}

.md-typeset .tabbed-content {
  background: color-mix(in srgb, var(--venturi-surface) 94%, transparent);
  border: 1px solid var(--venturi-border);
  border-radius: 0 8px 8px;
  padding: 0.15rem 0.95rem 0.95rem;
}

.argmin-docs-hero {
  background:
    linear-gradient(135deg, var(--venturi-navy), #172236 58%, #123b36);
  border: 1px solid color-mix(in srgb, var(--venturi-navy) 38%, var(--venturi-border));
  border-radius: 8px;
  box-shadow: 0 24px 54px rgb(15 23 42 / 0.16);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(14rem, 0.75fr);
  margin: 0.15rem 0 1.6rem;
  overflow: hidden;
  padding: 1.1rem;
  position: relative;
}

.argmin-docs-hero::after {
  background:
    linear-gradient(90deg, transparent, rgb(255 255 255 / 0.14), transparent),
    linear-gradient(0deg, transparent, rgb(54 195 167 / 0.16));
  content: "";
  inset: auto 0 0;
  height: 3px;
  position: absolute;
}

.argmin-docs-hero__copy,
.argmin-docs-hero__panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.argmin-docs-hero__copy p,
.argmin-docs-hero__copy {
  color: #e7edf5;
  line-height: 1.5;
}

.argmin-docs-hero__copy strong {
  color: #ffffff;
}

.argmin-docs-hero__panel {
  border-left: 1px solid rgb(255 255 255 / 0.18);
  padding-left: 1.25rem;
}

.argmin-docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.9rem 0 0;
}

.argmin-docs-actions .md-button {
  border-color: rgb(255 255 255 / 0.34);
  color: #ffffff;
  margin: 0;
  padding-inline: 0.9rem;
}

.argmin-docs-actions .md-button:not(.md-button--primary):hover {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.62);
}

.argmin-docs-contract {
  display: grid;
  gap: 0;
  margin: 0.8rem 0 1.1rem;
  overflow: hidden;
}

.argmin-docs-contract div {
  border-top: 1px solid rgb(255 255 255 / 0.14);
  display: grid;
  gap: 0.65rem;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  padding: 0.58rem 0;
}

.argmin-docs-contract div:first-child {
  border-top: 0;
  padding-top: 0;
}

.argmin-docs-contract dt {
  color: #b8c5d7;
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

.argmin-docs-contract dd {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 680;
  margin: 0;
}

.argmin-docs-contract code {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.16);
  color: #ffffff;
}

.argmin-docs-kicker,
.argmin-docs-panel-label {
  color: var(--venturi-teal-bright);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.argmin-docs-hero__panel a {
  color: #d7f9f2;
}

@media screen and (max-width: 76.1875em) {
  .md-content {
    border-left: 0;
    border-right: 0;
  }
}

@media screen and (max-width: 59.9375em) {
  .md-header {
    padding-top: var(--venturi-safe-top);
  }

  .md-header__inner {
    min-height: 2.7rem;
    padding-left: max(0.2rem, var(--venturi-safe-left));
    padding-right: max(0.2rem, var(--venturi-safe-right));
  }

  .md-header__button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 2.25rem;
    min-width: 2.25rem;
  }

  .md-header__button.md-logo {
    height: 2.25rem;
    margin: 0 0.15rem;
    width: 2.25rem;
  }

  .md-search__form {
    min-height: 2.25rem;
  }

  .md-search__overlay {
    height: 2.25rem;
    width: 2.25rem;
  }

  .md-nav__item .md-nav__link {
    align-items: center;
    display: flex;
    min-height: 2.75rem;
    padding-bottom: 0.55rem;
    padding-top: 0.55rem;
  }

  .md-sidebar--primary .md-sidebar__scrollwrap {
    padding-bottom: max(1rem, var(--venturi-safe-bottom));
  }

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

  .md-typeset h1 {
    font-size: 1.72rem;
    margin-bottom: 1.35rem;
  }

  .argmin-docs-hero {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .argmin-docs-hero__panel {
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 0.18);
    padding-left: 0;
    padding-top: 1.05rem;
  }
}

@media screen and (max-width: 38em) {
  body {
    background: var(--venturi-canvas);
  }

  .md-typeset {
    font-size: 0.78rem;
  }

  .md-content__inner {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .md-typeset h1 {
    font-size: 1.54rem;
    line-height: 1.16;
    margin-bottom: 1rem;
  }

  .md-typeset p,
  .md-typeset li {
    line-height: 1.58;
  }

  .md-typeset .md-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 2.75rem;
  }

  .md-typeset code:not(pre code) {
    border-radius: 4px;
    overflow-wrap: anywhere;
    padding: 0.04em 0.24em;
    word-break: break-word;
  }

  .md-typeset .highlight,
  .md-typeset__scrollwrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100%;
  }

  .md-typeset .highlight {
    border-radius: 7px;
  }

  .md-typeset .highlight > pre,
  .md-typeset__scrollwrap {
    overflow-x: auto;
  }

  .md-typeset table:not([class]) td,
  .md-typeset table:not([class]) th {
    padding: 0.6em 0.72em;
  }

  .argmin-docs-hero {
    gap: 0.8rem;
    margin: 0 0 1.15rem;
    padding: 0.9rem;
  }

  .argmin-docs-hero__copy p,
  .argmin-docs-hero__copy {
    line-height: 1.42;
  }

  .argmin-docs-kicker,
  .argmin-docs-panel-label {
    margin-bottom: 0.45rem;
  }

  .argmin-docs-actions {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.65rem;
  }

  .argmin-docs-actions .md-button {
    font-size: 0.68rem;
    line-height: 1.2;
    padding: 0.5rem 0.55rem;
    width: 100%;
  }

  .argmin-docs-hero__panel {
    padding-top: 0.75rem;
  }

  .argmin-docs-contract {
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.55rem 0 0.7rem;
  }

  .argmin-docs-contract div {
    background: rgb(255 255 255 / 0.06);
    border: 1px solid rgb(255 255 255 / 0.14);
    border-radius: 6px;
    gap: 0.25rem;
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }

  .argmin-docs-contract div:first-child {
    border-top: 1px solid rgb(255 255 255 / 0.14);
    padding-top: 0.5rem;
  }

  .argmin-docs-contract dt {
    font-size: 0.62rem;
  }

  .argmin-docs-contract dd {
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .md-typeset .tabbed-content {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-typeset .md-button:hover,
  .md-typeset .grid.cards > ul > li:hover {
    transform: none;
  }
}
