@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&display=swap");

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

/* Site-wide body copy uses Exo 2 (headings and components set their own weights). */
body {
  font-family: "Exo 2", sans-serif;
  padding-left: 0;
  padding-right: 0;
}

[data-md-color-scheme="default"] body {
  color: var(--kb-text);
}

.md-sidebar__scrollwrap {
  scroll-behavior: smooth;
}

.md-nav--secondary {
  scroll-behavior: smooth;
}

:root > * {
  /* Primary ink for body copy, inline code, and command text in light mode */
  --kb-text: #26203a;
  --kb-brand-ink: var(--kb-text);
  --kb-brand-green: #58fbda;

  --md-primary-fg-color: #323040;
  --md-primary-fg-color--light: #4a4858;
  --md-primary-fg-color--dark: #1a1926;

  --md-accent-fg-color: #4c24ab;
  --md-accent-fg-color-opposite: #58fbda;
  --md-typeset-a-color: #4c24ab;

  --md-default-fg-color: #323040;
  --md-default-fg-color--light: #323040;
  --md-default-fg-color--dark: #323040;

  --md-default-bg-color: #ffffff;
  --md-default-bg-color--light: #ffffff;
  --md-default-bg-color--dark: #f2f2f4;

  --md-primary-bg-color: #ffffff;
  --md-shadow-z1: none;
}

/* Classic overlapping-pages copy icon (Material “content copy”); theme default is Lucide clipboard-copy. */
:root {
  --md-code-copy-icon: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>');
  --md-clipboard-icon: var(--md-code-copy-icon);
}

:root[data-md-color-scheme="slate"] > * {
  --md-primary-fg-color: #323040;
  --md-primary-fg-color--light: #4a4858;
  --md-primary-fg-color--dark: #1a1926;

  --md-accent-fg-color: #58fbda;
  --md-accent-fg-color-opposite: #da2ae0;
  --md-typeset-a-color: #58fbda;

  --md-default-fg-color: #ffffff;
  --md-default-fg-color--light: #ffffff;
  --md-default-fg-color--dark: #ffffff;

  --md-default-bg-color: var(--kb-brand-ink);
  --md-default-bg-color--light: var(--kb-brand-ink);
  --md-default-bg-color--dark: var(--kb-brand-ink);

  --md-primary-bg-color: var(--kb-brand-ink);
  --md-shadow-z1: none;
}

[data-md-color-scheme="slate"] {
  background-color: var(--kb-brand-ink);
}

/* Modern theme header: solid dark background with white text */
.md-header {
  background-color: var(--kb-brand-ink);
  color: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.md-header .md-ellipsis,
.md-header__title,
.md-header__title *,
.md-header__topic,
.md-header__topic *,
.md-header__button,
.md-header a {
  color: #ffffff !important;
}

.md-header__button svg {
  fill: #58fbda;
}

/* 24px between header icon controls (theme default is ~0.2rem each side) */
.md-header .md-header__button {
  margin: 0.2rem 12px;
}

.md-header .md-search__input {
  color: #323040;
}

/* Keep header styles self-contained to avoid global bleed */
.md-header .md-header__inner {
  padding: 12px 20px;
}

/* Repo link: fixed width, no extra inset (theme uses 11.5rem + margin-left) */
.md-header .md-header__source {
  width: 200px;
  max-width: 200px;
}

[dir="ltr"] .md-header .md-header__source {
  margin-left: 0;
}

[dir="rtl"] .md-header .md-header__source {
  margin-right: 0;
}

.md-header a.md-source {
  box-sizing: border-box;
  margin-left: 0;
  max-width: 100%;
  padding-left: 0;
  text-align: right;
  width: 100%;
}

[data-md-color-scheme="slate"] .md-main {
  background-color: var(--kb-brand-ink);
}

/* Main article column (`data-md-component="content"` on article; see docs/overrides/main.html). */
.md-main__inner.md-grid > article.md-content__inner {
  flex: 1 1 auto;
  min-width: 0;
}

[data-md-color-scheme="slate"] .md-content {
  background-color: var(--kb-brand-ink);
}

[data-md-color-scheme="slate"] .md-sidebar {
  background-color: var(--kb-brand-ink);
}

[data-md-color-scheme="slate"] .md-container {
  background-color: var(--kb-brand-ink);
}

[data-md-color-scheme="slate"] body {
  background-color: var(--kb-brand-ink);
}

.highlight {
  position: relative;
  background: #282a36;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 16px 0 16px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.highlight .filename,
.highlight a.filename,
.md-typeset .highlight .filename {
  color: rgba(255, 255, 255, 0.6);
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  padding: 0 0 0 24px;
  margin: 0;
  align-self: flex-start;
  background: transparent url("/assets/icons/file-dark.svg") no-repeat left center;
  background-size: 16px 16px;
  border-bottom: none;
}

.highlight pre {
  background-color: transparent;
  color: #ffffff;
  margin: 0;
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
  position: relative;
  width: 100%;
}

.highlight code {
  background-color: transparent;
  color: #ffffff;
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.4px;
}

.highlight .md-code__content {
  padding-left: 0;
  margin-left: 0;
}

.highlight .md-code__nav {
  position: absolute;
  right: 0;
  top: 0;
  background: transparent;
}

.highlight .md-code__button {
  color: #58fbda;
}

.highlight .md-code__button svg {
  fill: #58fbda;
}

[data-md-color-scheme="slate"] code {
  background-color: #3c3a4a;
  color: #58fbda;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

[data-md-color-scheme="default"] code {
  background-color: #f2f2f4;
  color: var(--kb-text);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.highlight code,
.highlight pre code {
  background-color: transparent;
  color: #ffffff;
}

.highlight .k,
.highlight .kn,
.highlight .kd,
.highlight .kp,
.highlight .kr,
.highlight .kt {
  color: #ff79c6;
}

.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .ch,
.highlight .cpf,
.highlight .cs {
  color: #6272a4;
  font-style: italic;
}

.highlight pre code .n,
.highlight pre code .nv,
.highlight pre code .vc,
.highlight pre code .vg,
.highlight pre code .vi,
.highlight pre code .vm,
.highlight .n,
.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi,
.highlight .vm {
  color: #f8f8f2;
}

.highlight pre code .nb,
.highlight pre code .bp,
.highlight .nb,
.highlight .bp {
  color: #8be9fd;
  font-style: italic;
}

.highlight pre code .nn,
.highlight .nn {
  color: #8be9fd;
  font-weight: bold;
}

.highlight pre code .no,
.highlight .no {
  color: #bd93f9;
}

.highlight pre code .ni,
.highlight .ni {
  color: #f8f8f2;
}

.highlight .o {
  color: #ff79c6;
}

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sa,
.highlight .sb,
.highlight .sc,
.highlight .dl,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr,
.highlight .ss,
.highlight .sd {
  color: #f1fa8c;
}

.highlight .nf,
.highlight .fm {
  color: #50fa7b;
}

.highlight .nc {
  color: #8be9fd;
}

.highlight .language-bash,
.highlight .language-sh,
.highlight .language-console {
  position: relative;
}

.language-bash .filename,
.language-sh .filename,
.language-console .filename {
  background-image: url("/assets/icons/terminal-dark.svg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 16px 16px;
}

.highlight .language-bash:not(:has(.filename))::before,
.highlight .language-sh:not(:has(.filename))::before,
.highlight .language-console:not(:has(.filename))::before {
  content: "Terminal";
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  margin-bottom: 0.75rem;
  background-image: url("/assets/icons/terminal-dark.svg");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 16px 16px;
  padding-left: 24px;
}

/* ── Buttons (Tirza design) ── */
.md-button {
  border-radius: 12px;
  border: 1px solid var(--kb-brand-green);
  font-family: "Exo 2", sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 4px 1.4em;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 1;
}

/* Beat Material `.md-typeset .md-button` pill radius (extra.css loads after theme). */
.md-typeset a.md-button {
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
}

/* ── Primary — Light Mode: ink bg, white text ── */
[data-md-color-scheme="default"] .md-button--primary {
  background: var(--kb-brand-ink);
  color: #ffffff !important;
  border-color: var(--kb-brand-green);
}

[data-md-color-scheme="default"] .md-button--primary:hover {
  background: var(--kb-brand-ink);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(38, 32, 58, 0.3);
}

/* ── Secondary — Light Mode ── */
[data-md-color-scheme="default"] .md-button:not(.md-button--primary) {
  background-color: var(--kb-brand-ink);
  border-color: var(--kb-brand-green);
  color: #ffffff !important;
}

[data-md-color-scheme="default"] .md-button:not(.md-button--primary):hover {
  border-color: var(--kb-brand-green);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(38, 32, 58, 0.25);
}

/* ── Primary — Dark Mode: teal text, transparent bg ── */
[data-md-color-scheme="slate"] .md-button--primary {
  background-color: transparent;
  color: var(--kb-brand-green) !important;
  border-color: var(--kb-brand-green);
}

[data-md-color-scheme="slate"] .md-button--primary:hover {
  background-color: rgba(88, 251, 218, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(88, 251, 218, 0.2);
}

/* ── Secondary — Dark Mode: teal border, white text ── */
[data-md-color-scheme="slate"] .md-button:not(.md-button--primary) {
  background-color: transparent;
  border-color: var(--kb-brand-green);
  color: #ffffff !important;
}

[data-md-color-scheme="slate"] .md-button:not(.md-button--primary):hover {
  background-color: rgba(88, 251, 218, 0.08);
  color: #58fbda !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(88, 251, 218, 0.15);
}

/* Back to top button */
[data-md-color-scheme="slate"] .md-top:hover {
  background-color: #58fbda;
  color: #000000;
}

[data-md-color-scheme="slate"] .md-top:hover svg {
  fill: #000000 !important;
}

:root > * {
  --md-banner-fg-color: #0f172a;
  --md-banner-bg-color: #e8f7f3;
}

:root[data-md-color-scheme="slate"] > * {
  --md-banner-fg-color: #e8f7f3;
  --md-banner-bg-color: #1f2937;
}

.md-typeset .admonition {
  border-radius: 8px;
  background-color: var(--md-code-bg-color--light);
  padding: 12px;
}

.md-typeset .admonition > .admonition-title {
  border-radius: 12px;
}

[data-md-color-scheme="default"] .md-typeset .admonition > .admonition-title {
  color: var(--kb-text);
}

[data-md-color-scheme="slate"] .md-typeset .admonition p,
[data-md-color-scheme="slate"] .md-typeset .admonition li,
[data-md-color-scheme="slate"] .md-typeset details p,
[data-md-color-scheme="slate"] .md-typeset details li {
  color: var(--md-primary-fg-color);
}

[data-md-color-scheme="slate"] .md-typeset .admonition strong,
[data-md-color-scheme="slate"] .md-typeset details strong {
  color: #323040;
}

[data-md-color-scheme="slate"] .md-typeset details:not([class]),
[data-md-color-scheme="slate"] .md-typeset details:not([class]) > summary,
[data-md-color-scheme="slate"] .md-typeset details:not([class]) p,
[data-md-color-scheme="slate"] .md-typeset details:not([class]) li,
[data-md-color-scheme="slate"] .md-typeset details:not([class]) strong {
  color: rgba(255, 255, 255, 0.9);
}

.md-typeset details:not([class])[open] {
  padding-bottom: 0.6rem;
}

[data-md-color-scheme="slate"] .md-typeset .admonition > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset details > summary {
  margin: 0 0 0.6rem 0;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  padding-left: 2.4rem;
  padding-right: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition > .admonition-title::before,
[data-md-color-scheme="slate"] .md-typeset details > summary::before {
  top: 0.6rem;
  bottom: 0.6rem;
  left: 1rem;
}

[data-md-color-scheme="slate"] .md-typeset details > summary::after {
  top: 0.6rem;
  right: 1rem;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.note,
[data-md-color-scheme="slate"] .md-typeset details.note {
  border: 2px solid #2558ff;
  background-color: transparent;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.note > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset details.note > summary {
  background-color: rgba(37, 88, 255, 0.05);
  border: none;
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.note > .admonition-title::before,
[data-md-color-scheme="slate"] .md-typeset details.note > summary::before {
  background-color: #ffffff;
  mask-image: url("/assets/icons/note-dark.svg");
  -webkit-mask-image: url("/assets/icons/note-dark.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.note p,
[data-md-color-scheme="slate"] .md-typeset .admonition.note li,
[data-md-color-scheme="slate"] .md-typeset details.note p,
[data-md-color-scheme="slate"] .md-typeset details.note li {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.note strong,
[data-md-color-scheme="slate"] .md-typeset details.note strong {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.question,
[data-md-color-scheme="slate"] .md-typeset details.question {
  border: 2px solid #04d492;
  background-color: transparent;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.question > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset details.question > summary {
  background-color: rgba(4, 212, 146, 0.05);
  border: none;
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.question > .admonition-title::before,
[data-md-color-scheme="slate"] .md-typeset details.question > summary::before {
  background-color: #ffffff;
  mask-image: url("/assets/icons/question-dark.svg");
  -webkit-mask-image: url("/assets/icons/question-dark.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.question p,
[data-md-color-scheme="slate"] .md-typeset .admonition.question li,
[data-md-color-scheme="slate"] .md-typeset details.question p,
[data-md-color-scheme="slate"] .md-typeset details.question li {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.question strong,
[data-md-color-scheme="slate"] .md-typeset details.question strong {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.info,
[data-md-color-scheme="slate"] .md-typeset details.info {
  border: 2px solid #43e5ff;
  background-color: transparent;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.info > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset details.info > summary {
  background-color: rgba(67, 229, 255, 0.05);
  border: none;
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.info > .admonition-title::before,
[data-md-color-scheme="slate"] .md-typeset details.info > summary::before {
  background-color: #ffffff;
  mask-image: url("/assets/icons/info-dark.svg");
  -webkit-mask-image: url("/assets/icons/info-dark.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.info p,
[data-md-color-scheme="slate"] .md-typeset .admonition.info li,
[data-md-color-scheme="slate"] .md-typeset details.info p,
[data-md-color-scheme="slate"] .md-typeset details.info li {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.info strong,
[data-md-color-scheme="slate"] .md-typeset details.info strong {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.warning,
[data-md-color-scheme="slate"] .md-typeset details.warning {
  border: 1px solid #ffee00;
  background-color: transparent;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.warning > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset details.warning > summary {
  background-color: rgba(255, 238, 0, 0.05);
  border: none;
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.warning > .admonition-title::before,
[data-md-color-scheme="slate"] .md-typeset details.warning > summary::before {
  background-color: #ffffff;
  mask-image: url("/assets/icons/warning-dark.svg");
  -webkit-mask-image: url("/assets/icons/warning-dark.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.warning p,
[data-md-color-scheme="slate"] .md-typeset .admonition.warning li,
[data-md-color-scheme="slate"] .md-typeset details.warning p,
[data-md-color-scheme="slate"] .md-typeset details.warning li {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.warning strong,
[data-md-color-scheme="slate"] .md-typeset details.warning strong {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.tip,
[data-md-color-scheme="slate"] .md-typeset details.tip {
  border-width: 1px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0);
  border-image: none;
  background-color: transparent;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.tip > .admonition-title,
[data-md-color-scheme="slate"] .md-typeset details.tip > summary {
  background-color: rgba(88, 251, 218, 0.05);
  border: none;
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.tip > .admonition-title::before,
[data-md-color-scheme="slate"] .md-typeset details.tip > summary::before {
  background-color: #ffffff;
  mask-image: url("/assets/icons/tip-dark.svg");
  -webkit-mask-image: url("/assets/icons/tip-dark.svg");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

[data-md-color-scheme="slate"] .md-typeset .admonition.tip p,
[data-md-color-scheme="slate"] .md-typeset .admonition.tip li,
[data-md-color-scheme="slate"] .md-typeset details.tip p,
[data-md-color-scheme="slate"] .md-typeset details.tip li {
  color: rgba(255, 255, 255, 0.9);
}

[data-md-color-scheme="slate"] .md-typeset .admonition.tip strong,
[data-md-color-scheme="slate"] .md-typeset details.tip strong {
  color: rgba(255, 255, 255, 0.9);
}

details .highlight {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.md-typeset .tabbed-set {
  border-radius: 8px;
  overflow: hidden;
  border: none !important;
  box-shadow: none !important;
}

.md-typeset .tabbed-set.tabbed-alternate {
  border: none !important;
  box-shadow: none !important;
}

.md-typeset .tabbed-labels,
.md-typeset .tabbed-labels--linked {
  border: none !important;
  border-bottom: none !important;
  margin-bottom: 4px !important;
  box-shadow: none !important;
}

.md-typeset .tabbed-content {
  border-top: none !important;
  box-shadow: none !important;
}

.md-typeset .tabbed-labels::before {
  background-color: #4c24ab !important;
  height: 2px !important;
}

[data-md-color-scheme="slate"] .md-typeset .tabbed-labels::before {
  background-color: #58fbda !important;
}

.md-typeset .tabbed-labels > label {
  color: var(--md-default-fg-color) !important;
  transition: all 0.2s ease;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  background-color: transparent !important;
  border: none !important;
  font-weight: 500;
}

.md-typeset .tabbed-labels > label a {
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: inherit;
  line-height: normal;
  transition: all 0.2s ease;
}

[data-md-color-scheme="slate"] .md-typeset .tabbed-labels > label {
  border: none !important;
  color: #ffffff !important;
  background-color: transparent !important;
}

[data-md-color-scheme="slate"] .md-typeset .tabbed-labels > label a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.md-typeset .tabbed-labels > label:hover {
  background-color: transparent !important;
  border: none !important;
  color: #4c24ab !important;
}

.md-typeset .tabbed-labels > label:hover a {
  color: #4c24ab !important;
  text-decoration: none;
}

[data-md-color-scheme="slate"] .md-typeset .tabbed-labels > label:hover {
  background-color: transparent !important;
  border: none !important;
  color: #58fbda !important;
}

[data-md-color-scheme="slate"] .md-typeset .tabbed-labels > label:hover a {
  color: #58fbda !important;
  text-decoration: none;
}

.md-typeset .tabbed-labels > label:active {
  background-color: transparent !important;
  border: none !important;
  color: #4c24ab !important;
}

.md-typeset .tabbed-labels > label:active a {
  color: #4c24ab !important;
  text-decoration: none !important;
}

[data-md-color-scheme="slate"] .md-typeset .tabbed-labels > label:active {
  background-color: transparent !important;
  border: none !important;
  color: #58fbda !important;
}

[data-md-color-scheme="slate"] .md-typeset .tabbed-labels > label:active a {
  color: #58fbda !important;
  text-decoration: none !important;
}

.md-typeset .tabbed-labels > label[for][aria-selected="true"] {
  background-color: transparent !important;
  border: none !important;
  color: #4c24ab !important;
  font-weight: 600;
}

.md-typeset .tabbed-labels > label[for][aria-selected="true"] a {
  color: #4c24ab !important;
  text-decoration: none;
}

[data-md-color-scheme="slate"] .md-typeset .tabbed-labels > label[for][aria-selected="true"] {
  background-color: transparent !important;
  border: none !important;
  color: #58fbda !important;
}

[data-md-color-scheme="slate"] .md-typeset .tabbed-labels > label[for][aria-selected="true"] a {
  color: #58fbda !important;
  text-decoration: none;
}

.md-search__input {
  display: flex;
  padding: 6px 16px 6px 40px;
  align-items: center;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid transparent;
  color: #99a1af;
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.md-search__input:hover,
.md-search__input:focus,
.md-search__input:active {
  background: #ffffff;
  outline: 1px solid #58fbda;
  border-color: transparent;
  box-shadow: none;
}

.md-search__input::placeholder {
  color: #99a1af;
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  opacity: 1;
}

.md-search__icon {
  color: #99a1af;
}

.md-search__icon[for="__search"] {
  color: #99a1af;
}

.md-search__icon svg {
  transform: scale(0.75);
}

[data-md-color-scheme="default"] .md-search__button {
  background: #ffffff;
  color: #323040;
}

[data-md-color-scheme="default"] .md-search__button svg {
  fill: #323040;
}

[data-md-color-scheme="default"] .md-search__button::after {
  color: #323040;
}

[data-md-color-scheme="slate"] button.md-search__button {
  background-color: rgba(220, 220, 230, 1);
}

[data-md-toggle="search"]:checked ~ .md-header .md-search__input {
  border-radius: 0;
}

[data-md-color-scheme="slate"] .md-search__output .md-typeset h1,
[data-md-color-scheme="slate"] .md-search__output .md-typeset h2,
[data-md-color-scheme="slate"] .md-search__output .md-typeset p,
[data-md-color-scheme="slate"] .md-search__output .md-typeset li,
[data-md-color-scheme="slate"] .md-search__output .md-typeset ul {
  color: #323040;
}

label[for="__palette_0"] svg,
label[for="__palette_1"] svg {
  transform: scale(0.75);
}

.md-typeset h1 {
  color: var(--kb-brand-ink);
  font-family: "Exo 2", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 41.6px;
}

/* Edit / view-source actions moved next to the first h1 (see docs/overrides/main.html). */
.md-typeset .md-content__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 0 0 0.8em;
}

.md-typeset .md-content__title-row h1 {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  color: var(--kb-brand-ink);
}

[data-md-color-scheme="slate"] .md-typeset .md-content__title-row h1 {
  color: #ffffff;
}

.md-typeset .md-content__title-row .md-content__button {
  flex: 0 0 auto;
  float: none;
  position: static;
  top: auto;
  right: auto;
}

[data-md-color-scheme="default"] .md-typeset .md-content__title-row .md-content__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--kb-brand-green);
  background-color: var(--kb-brand-ink);
  background-image: none;
  color: #ffffff;
  opacity: 1;
  box-shadow: none;
}

[data-md-color-scheme="default"] .md-typeset .md-content__title-row .md-content__button:hover,
[data-md-color-scheme="default"] .md-typeset .md-content__title-row .md-content__button:focus {
  background-color: var(--kb-brand-ink);
  background-image: none;
  border-color: var(--kb-brand-green);
  color: #ffffff;
}

[data-md-color-scheme="default"] .md-typeset .md-content__title-row .md-content__button svg {
  fill: currentColor;
}

[data-md-color-scheme="slate"] .md-typeset .md-content__title-row .md-content__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--kb-brand-green);
  background-color: transparent;
  background-image: none;
  color: var(--kb-brand-green);
  opacity: 1;
}

[data-md-color-scheme="slate"] .md-typeset .md-content__title-row .md-content__button svg {
  fill: currentColor;
}

.md-typeset h2 {
  color: #323040;
  font-family: "Exo 2", sans-serif;
  font-size: 26px;
  font-style: normal;
  font-weight: 600;
  line-height: 33.8px;
}

.md-typeset h3 {
  color: #323040;
  font-family: "Exo 2", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 27.2px;
}

.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  color: #323040;
}

.md-typeset p,
.md-typeset li {
  font-family: "Exo 2", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
}

.md-typeset p {
  color: var(--kb-text);
}

.md-typeset li {
  color: #5b5966;
  background-color: var(--md-code-bg-color--light);
}

[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3,
[data-md-color-scheme="slate"] .md-typeset h4,
[data-md-color-scheme="slate"] .md-typeset h5,
[data-md-color-scheme="slate"] .md-typeset h6 {
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-typeset p,
[data-md-color-scheme="slate"] .md-typeset li {
  color: rgba(255, 255, 255, 0.8);
}

[data-md-color-scheme="slate"] .md-typeset li {
  background: unset;
}

.md-typeset a {
  color: #4c24ab;
  font-family: "Exo 2", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 27.2px;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

[data-md-color-scheme="slate"] .md-typeset a {
  color: #58fbda;
}

.md-content a,
.md-typeset .md-content a {
  color: #4c24ab;
}

[data-md-color-scheme="slate"] .md-content a,
[data-md-color-scheme="slate"] .md-typeset .md-content a {
  color: #58fbda;
}

[data-md-color-scheme="default"] .md-typeset a code {
  color: #4c24ab;
}

[data-md-color-scheme="slate"] .md-typeset a code {
  color: #ffffff;
}

strong {
  color: #323040;
  font-weight: 600;
}

[data-md-color-scheme="slate"] strong {
  color: var(--md-default-fg-color--light);
}

/* Lead-in bold in list items (e.g. Getting Help) — full white vs body list rgba */
[data-md-color-scheme="slate"] .md-typeset li > strong {
  color: #ffffff;
}

.md-header__title,
.md-header__title *,
.md-header__topic,
.md-header__topic *,
.md-header .md-ellipsis {
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
}

.md-header__button.md-logo {
  margin-right: 0.2rem;
  padding: 0;
}

.md-header__title {
  margin-left: 0.2rem;
  padding-left: 0;
}

.md-tabs {
  background-color: #3d3a4d;
  width: 100%;
}

.md-tabs__link {
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 23.8px;
}

.md-tabs__item {
  position: relative;
}

[data-md-color-scheme="default"] .md-tabs__link--active,
[data-md-color-scheme="default"] .md-tabs__link:hover,
[data-md-color-scheme="default"] .md-tabs__link:focus,
[data-md-color-scheme="default"] .md-tabs__item--active .md-tabs__link {
  color: #4c24ab;
}

[data-md-color-scheme="slate"] .md-tabs__link--active,
[data-md-color-scheme="slate"] .md-tabs__link:hover,
[data-md-color-scheme="slate"] .md-tabs__link:focus,
[data-md-color-scheme="slate"] .md-tabs__item--active .md-tabs__link {
  color: #58fbda;
}

[data-md-color-scheme="default"] .md-tabs__item--active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #4c24ab;
}

[data-md-color-scheme="slate"] .md-tabs__item--active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #58fbda;
}

[data-md-color-scheme="default"] .md-tabs__item:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #4c24ab;
  opacity: 0.5;
}

[data-md-color-scheme="slate"] .md-tabs__item:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #58fbda;
  opacity: 0.5;
}

.md-footer__inner.md-grid {
  background-color: #323040;
  max-width: 100%;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

.md-footer__link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.md-footer__link:hover {
  color: #fff;
}

[data-md-color-scheme="default"] .md-footer__link:hover .md-footer__title {
  color: #4c24ab;
}

[data-md-color-scheme="slate"] .md-footer__link:hover .md-footer__title {
  color: #58fbda;
}

.md-footer__inner .md-footer__button.md-icon svg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
}

div.md-footer-meta__inner.md-grid {
  background-color: var(--color-backdrop);
  color: rgba(38, 32, 58, 1);
  max-width: 100%;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

.md-footer-meta {
  background-color: #323040;
}

.md-copyright {
  color: rgba(255, 255, 255, 0.7) !important;
}

.md-copyright__highlight {
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-md-color-scheme="default"] .md-copyright a {
  color: #4c24ab !important;
}

[data-md-color-scheme="slate"] .md-copyright a {
  color: #58fbda !important;
}

.md-social {
  padding: 0.4rem 0;
}

.md-social__link {
  color: rgba(255, 255, 255, 0.7) !important;
}

.md-nav__link {
  color: #26203a;
  font-family: "Exo 2", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 23.8px;
  border-radius: 4px;
  padding: 4px 12px;
}

/* ── Sidebar active / hover — light mode accent ── */
.md-nav__link.md-nav__link--active {
  background: linear-gradient(90deg, rgba(76, 36, 171, 0.18) 0%, transparent 100%);
  color: #4c24ab;
  font-weight: 500;
}

.md-nav__link:not(.md-nav__link--active):hover {
  background: rgba(76, 36, 171, 0.06);
  color: #4c24ab;
}

[data-md-color-scheme="slate"] .md-nav__link {
  color: rgba(255, 255, 255, 0.65);
}

[data-md-color-scheme="slate"] .md-nav__link.md-nav__link--active {
  background: linear-gradient(90deg, rgba(88, 251, 218, 0.25) 0%, rgba(88, 251, 218, 0.05) 100%);
  color: #58fbda;
  font-weight: 500;
}

[data-md-color-scheme="slate"] .md-nav__link:not(.md-nav__link--active):hover {
  background: unset !important;
  color: #58fbda !important;
}

.md-nav--lifted > .md-nav__list > .md-nav__item--active {
  background: transparent;
  box-shadow: none;
}

.md-nav--lifted > .md-nav__list > .md-nav__item--active > .md-nav__link,
.md-nav--lifted > .md-nav__list > .md-nav__item--active > label.md-nav__link,
.md-nav--lifted > .md-nav__list > .md-nav__item--active > a.md-nav__link {
  background: linear-gradient(90deg, rgba(76, 36, 171, 0.18) 0%, transparent 100%);
  box-shadow: none;
  border-radius: 4px;
  padding: 8px 12px;
  color: #4c24ab;
  font-weight: 500;
}

[data-md-color-scheme="slate"]
  .md-nav--lifted
  > .md-nav__list
  > .md-nav__item--active
  > .md-nav__link,
[data-md-color-scheme="slate"]
  .md-nav--lifted
  > .md-nav__list
  > .md-nav__item--active
  > label.md-nav__link,
[data-md-color-scheme="slate"]
  .md-nav--lifted
  > .md-nav__list
  > .md-nav__item--active
  > a.md-nav__link {
  background: linear-gradient(90deg, rgba(88, 251, 218, 0.25) 0%, rgba(88, 251, 218, 0.05) 100%);
  color: #58fbda;
  font-weight: 500;
}

.md-nav--secondary .md-nav__list .md-nav__link {
  margin-top: 8px;
  margin-right: 0;
}

nav.md-nav--secondary {
  border: none;
  border-left: none;
  border-inline-start: none;
  box-shadow: none;
}

nav.md-nav--secondary ul.md-nav__list {
  padding-left: 0;
  padding-inline-start: 0;
}

nav.md-nav--secondary > .md-nav__list > .md-nav__item > .md-nav__link {
  padding-left: 0.5rem;
}

[data-md-color-scheme="default"] .md-typeset__scrollwrap,
[data-md-color-scheme="default"] .md-typeset__table,
[data-md-color-scheme="default"] .md-typeset table {
  background: transparent;
  background-color: transparent;
}

[data-md-color-scheme="default"] .md-typeset table thead,
[data-md-color-scheme="default"] .md-typeset table tbody,
[data-md-color-scheme="default"] .md-typeset table tr,
[data-md-color-scheme="default"] .md-typeset table th,
[data-md-color-scheme="default"] .md-typeset table td {
  background: transparent;
  background-color: transparent;
  color: #323040;
}

[data-md-color-scheme="default"] .md-typeset table tr:hover {
  background-color: transparent;
}

[data-md-color-scheme="slate"] .md-typeset__scrollwrap,
[data-md-color-scheme="slate"] .md-typeset__table,
[data-md-color-scheme="slate"] .md-typeset table {
  background: transparent;
  background-color: transparent;
}

[data-md-color-scheme="slate"] .md-typeset table thead,
[data-md-color-scheme="slate"] .md-typeset table tbody,
[data-md-color-scheme="slate"] .md-typeset table tr,
[data-md-color-scheme="slate"] .md-typeset table th,
[data-md-color-scheme="slate"] .md-typeset table td {
  background: transparent;
  background-color: transparent;
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-typeset table tr:hover {
  background-color: transparent;
}

[data-md-color-scheme="slate"] .md-typeset table th strong,
[data-md-color-scheme="slate"] .md-typeset table td strong {
  color: #ffffff;
}

[data-md-color-scheme="default"] .md-source-file {
  color: rgba(91, 89, 102, 0.6);
}

[data-md-color-scheme="default"] .md-source-file__fact {
  color: rgba(91, 89, 102, 0.6);
}

[data-md-color-scheme="default"] .md-source-file .md-icon svg {
  fill: #4c24ab;
}

/* Repo / GitHub octicon in header — always brand teal (not accent purple). */
.md-header .md-source__icon,
.md-header .md-source__icon svg {
  color: var(--kb-brand-green) !important;
  fill: var(--kb-brand-green) !important;
}

[data-md-color-scheme="slate"] .md-source-file {
  color: rgba(255, 255, 255, 0.4);
}

[data-md-color-scheme="slate"] .md-source-file__fact {
  color: rgba(255, 255, 255, 0.4);
}

[data-md-color-scheme="slate"] .md-source-file .md-icon svg {
  fill: rgba(255, 255, 255, 0.4);
}

[data-md-color-scheme="default"] .md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 6px;
}

[data-md-color-scheme="default"] .md-sidebar__scrollwrap::-webkit-scrollbar-track {
  background: transparent;
}

[data-md-color-scheme="default"] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background-color: #da2ae0;
  border-radius: 3px;
}

[data-md-color-scheme="default"] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
  background-color: #b825c0;
}

[data-md-color-scheme="default"] .md-sidebar__scrollwrap {
  scrollbar-width: thin;
  scrollbar-color: #da2ae0 transparent;
}

[data-md-color-scheme="slate"] .md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 6px;
}

[data-md-color-scheme="slate"] .md-sidebar__scrollwrap::-webkit-scrollbar-track {
  background: transparent;
}

[data-md-color-scheme="slate"] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background-color: #58fbda;
  border-radius: 3px;
}

[data-md-color-scheme="slate"] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
  background-color: #7ffce8;
}

[data-md-color-scheme="slate"] .md-sidebar__scrollwrap {
  scrollbar-width: thin;
  scrollbar-color: #58fbda transparent;
}

.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .il,
.highlight .mo {
  color: #bd93f9;
}

.highlight .p {
  color: #f8f8f2;
}

.highlight .kc {
  color: #bd93f9;
}

.highlight .ow {
  color: #ff79c6;
}

.highlight .nf,
.highlight .fm {
  color: #50fa7b;
}

.highlight .nc {
  color: #8be9fd;
}

.highlight .na,
.highlight .nl {
  color: #50fa7b;
}

.highlight .nd {
  color: #50fa7b;
}

/* Generic tokens - Diff, Output, Errors */
.highlight .err {
  color: #ff5555;
  background-color: rgba(255, 85, 85, 0.1);
}

.highlight .gd {
  color: #ff5555;
  background-color: rgba(255, 85, 85, 0.1);
}

.highlight .gi {
  color: #50fa7b;
  background-color: rgba(80, 250, 123, 0.1);
}

.highlight .gh {
  color: #8be9fd;
  font-weight: bold;
}

.highlight .gu {
  color: #6272a4;
  font-weight: bold;
}

.highlight .go {
  color: #44475a;
}

nav.md-nav--secondary
  > .md-nav__list
  > .md-nav__item
  > .md-nav
  > .md-nav__list
  > .md-nav__item
  > .md-nav__link {
  padding-left: 1rem;
}

/* Breadcrumb (nav.md-path): full width, flush with content edges */
nav.md-path {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

nav.md-path .md-path__list {
  margin-top: 0;
  margin-bottom: 10px;
  margin-left: 0;
}

nav.md-path .md-path__link {
  background: unset;
}

[data-md-color-scheme="slate"] .md-path {
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-path .md-path__link {
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-path .md-path__list {
  color: #ffffff;
}

[data-md-color-scheme="default"] .md-typeset .task-list-indicator::before {
  background-color: #da2ae0;
}

[data-md-color-scheme="default"]
  .md-typeset
  .task-list-control
  [type="checkbox"]:checked
  + .task-list-indicator::before {
  background-color: #da2ae0;
}

[data-md-color-scheme="slate"] .md-typeset .task-list-indicator::before {
  background-color: #58fbda;
}

[data-md-color-scheme="slate"]
  .md-typeset
  .task-list-control
  [type="checkbox"]:checked
  + .task-list-indicator::before {
  background-color: #58fbda;
}

.mermaid {
  text-align: center;
}

/*
 * Mermaid node boxes: 8px corner radius. Only touch rects with no rounding yet
 * (rx missing or 0) so stadium / pill shapes keep their large rx from Mermaid.
 */
.md-typeset .mermaid svg .node rect[rx="0"],
.md-typeset .mermaid svg .node rect:not([rx]),
.md-typeset .mermaid svg .cluster rect[rx="0"],
.md-typeset .mermaid svg .cluster rect:not([rx]),
.md-typeset .mermaid svg g.classGroup rect[rx="0"],
.md-typeset .mermaid svg g.classGroup rect:not([rx]),
.md-typeset .mermaid svg g.stateGroup rect[rx="0"],
.md-typeset .mermaid svg g.stateGroup rect:not([rx]),
.md-typeset .mermaid svg .statediagram-cluster rect[rx="0"],
.md-typeset .mermaid svg .statediagram-cluster rect:not([rx]),
.md-typeset .mermaid svg [id^="entity"] rect[rx="0"],
.md-typeset .mermaid svg [id^="entity"] rect:not([rx]),
.md-typeset .mermaid svg rect.actor[rx="0"],
.md-typeset .mermaid svg rect.actor:not([rx]),
.md-typeset .mermaid svg .note rect[rx="0"],
.md-typeset .mermaid svg .note rect:not([rx]),
.md-typeset .mermaid svg rect.rect[rx="0"],
.md-typeset .mermaid svg rect.rect:not([rx]) {
  rx: 8px;
  ry: 8px;
}

[data-md-color-scheme="slate"] .mermaid {
  --md-mermaid-label-fg-color: #4a4a4a;
  --md-mermaid-node-bg-color: #e8e8e8;
  --md-mermaid-label-bg-color: rgba(40, 40, 45, 0.95);
}

[data-md-color-scheme="slate"] {
  --md-default-fg-color--lightest: rgba(240, 240, 245, 0.5);
  --md-default-fg-color--lighter: rgba(220, 220, 230, 0.5);
}

[data-md-color-scheme="default"] .md-icon svg {
  fill: #26203a;
}

[data-md-color-scheme="slate"] .md-icon svg {
  fill: #58fbda;
}

[data-md-color-scheme="default"] .md-social__link {
  color: var(--kb-brand-green) !important;
}

[data-md-color-scheme="default"] .md-social__link svg {
  color: var(--kb-brand-green);
  fill: var(--kb-brand-green) !important;
}

[data-md-color-scheme="default"] .md-social__link svg path {
  color: var(--kb-brand-green);
  fill: var(--kb-brand-green) !important;
}

[data-md-color-scheme="slate"] .md-social__link {
  color: #58fbda !important;
}

[data-md-color-scheme="slate"] .md-social__link[href*="github.com"] svg {
  fill: var(--kb-brand-green) !important;
}

[data-md-color-scheme="default"] .md-header__button svg {
  fill: #58fbda;
}

[data-md-color-scheme="slate"] .md-header__button svg {
  fill: #58fbda;
}

[data-md-color-scheme="default"] .md-top {
  background-color: #ffffff;
}

[data-md-color-scheme="default"] .md-top svg {
  color: #26203a;
}

[data-md-color-scheme="default"] .md-top svg circle {
  fill: #000000;
  stroke: #000000;
}

[data-md-color-scheme="default"] .md-top:hover {
  background-color: #da2ae0 !important;
}

[data-md-color-scheme="default"] .md-top:hover svg {
  fill: #ffffff;
}

[data-md-color-scheme="slate"] .md-top:hover {
  background-color: #58fbda !important;
}

[data-md-color-scheme="slate"] .md-top svg {
  color: #58fbda;
}

[data-md-color-scheme="slate"] .md-top svg circle {
  fill: #000000;
  stroke: #000000;
}

.benchmark-dashboard {
  margin: 2rem 0;
}

.benchmark-dashboard iframe {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.full-width {
  margin: 0 -2rem;
  padding: 2rem;
  background: var(--md-default-bg-color);
}

/* Chart container responsive adjustments */
@media (max-width: 768px) {
  .full-width {
    margin: 0 -1rem;
    padding: 1rem;
  }

  .benchmark-dashboard iframe {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}

.md-typeset h2 a {
  color: #4c24ab !important;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
}

[data-md-color-scheme="slate"] .md-typeset h2 a {
  color: #58fbda !important;
}

.md-typeset .headerlink {
  color: transparent;
  transition: color 0.2s ease;
}

.md-typeset .headerlink:hover,
.md-typeset :target > .headerlink {
  color: #4c24ab !important;
}

[data-md-color-scheme="slate"] .md-typeset .headerlink:hover,
[data-md-color-scheme="slate"] .md-typeset :target > .headerlink {
  color: #58fbda !important;
}

/* Hide sidebar on benchmarks page and make content full-width */
/* Target the page using the full-width-iframe class we already have in the markdown */
.full-width-iframe {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  max-width: 100vw !important;
}

/* Hide sidebars when full-width-iframe is present */
body:has(.full-width-iframe) .md-sidebar--primary,
body:has(.full-width-iframe) .md-sidebar--secondary {
  display: none !important;
}

/* Make content area full width when full-width-iframe is present */
body:has(.full-width-iframe) .md-content {
  max-width: none !important;
  margin: 0 !important;
}

body:has(.full-width-iframe) .md-content__inner {
  max-width: none !important;
  margin: 0 !important;
  padding: 1rem !important;
}

body:has(.full-width-iframe) .md-main__inner {
  margin: 0 !important;
  max-width: none !important;
}

body:has(.full-width-iframe) .md-grid {
  max-width: none !important;
}

/* Make the article itself full width */
body:has(.full-width-iframe) article {
  max-width: none !important;
  margin: 0 !important;
}

/* Version badges */
.version-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: "Exo 2", sans-serif;
  line-height: 1;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  vertical-align: middle;
  background-color: #e0e0e0;
  color: #323040;
}

[data-md-color-scheme="slate"] .version-badge {
  background-color: #3c3a4a;
  color: #ffffff;
}

.version-badge.unreleased {
  background-color: #fff3cd;
  color: #856404;
}

[data-md-color-scheme="slate"] .version-badge.unreleased {
  background-color: #5c4a1e;
  color: #ffc107;
}

.version-badge.deprecated {
  background-color: #f8d7da;
  color: #842029;
}

[data-md-color-scheme="slate"] .version-badge.deprecated {
  background-color: #4a1e22;
  color: #f87171;
}

.version-badge.new {
  background-color: #d1e7dd;
  color: #0f5132;
}

[data-md-color-scheme="slate"] .version-badge.new {
  background-color: #1e4a2e;
  color: #50fa7b;
}

/* Format chips — compact inline badges for format listings */
.format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  padding: 0.25em 0;
}

.format-chip {
  display: inline-block;
  font-size: 0.8rem;
  font-family: "Exo 2", sans-serif;
  font-weight: 500;
  line-height: 1;
  padding: 0.35em 0.7em;
  margin: 0.2em 0.15em;
  border-radius: 6px;
  background-color: #f2f2f4;
  color: #323040;
  white-space: nowrap;
}

.format-chip code {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.65;
  background: transparent !important;
  padding: 0 !important;
  color: inherit !important;
}

[data-md-color-scheme="slate"] .format-chip {
  background-color: #3c3a4a;
  color: #ffffff;
}

/* =====================================================
   Homepage Styles
   ===================================================== */

/* Hero badges - centered CTA row */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

/* Markdown emits one <p> around all links; unwrap it so gap applies between .md-button anchors */
.md-typeset .hero-badges > p {
  display: contents;
  margin: 0;
}

.hero-badges .md-button {
  font-family: "Exo 2", sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 4px 1.4em;
}

/* Homepage hero CTAs: Exo 2 16px regular, white label, no gradient */
[data-md-color-scheme="default"] .hero-badges .md-button--primary {
  opacity: 1;
  border-radius: 12px;
  border-width: 1px;
  border-style: solid;
  border-color: var(--kb-brand-green);
  padding-top: 4px;
  padding-bottom: 4px;
  font-family: "Exo 2", sans-serif;
  font-weight: 400;
  font-size: 16px;
  background: var(--kb-brand-ink);
  background-image: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  color: #ffffff !important;
}

[data-md-color-scheme="default"] .hero-badges .md-button--primary:hover,
[data-md-color-scheme="default"] .hero-badges .md-button--primary:focus,
[data-md-color-scheme="default"] .hero-badges .md-button--primary:active {
  background: var(--kb-brand-ink);
  background-image: none;
  color: #ffffff !important;
}

[data-md-color-scheme="default"] .hero-badges .md-button:not(.md-button--primary) {
  opacity: 1;
  border-radius: 12px;
  border-width: 1px;
  font-family: "Exo 2", sans-serif;
  font-weight: 400;
  font-size: 16px;
  padding-top: 4px;
  padding-bottom: 4px;
  background-image: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  color: #ffffff !important;
}

[data-md-color-scheme="default"] .hero-badges .md-button:not(.md-button--primary):hover,
[data-md-color-scheme="default"] .hero-badges .md-button:not(.md-button--primary):focus,
[data-md-color-scheme="default"] .hero-badges .md-button:not(.md-button--primary):active {
  color: #ffffff !important;
}

[data-md-color-scheme="default"] .hero-badges .md-button .twemoji svg,
[data-md-color-scheme="default"] .hero-badges .md-button .twemoji svg path {
  fill: var(--kb-brand-green);
  color: var(--kb-brand-green);
}

/*
 * Feature grid cards — one <ul>; each <li> is a full card (MkDocs: indent body under list item).
 */
.md-typeset .grid.cards:not(.install-cards) > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

@media screen and (max-width: 768px) {
  .md-typeset .grid.cards:not(.install-cards) > ul {
    grid-template-columns: 1fr;
  }
}

.md-typeset .grid.cards:not(.install-cards) > ul > li {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e4e1ed;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: stretch;
}

.md-typeset .grid.cards:not(.install-cards) > ul > li > p {
  margin: 0;
}

.md-typeset .grid.cards:not(.install-cards) > ul > li > p:first-child {
  font-size: 16px;
  font-weight: 500;
}

.md-typeset .grid.cards:not(.install-cards) > ul > li > p:not(:first-child) {
  font-size: 16px;
  line-height: 1.5;
}

[data-md-color-scheme="default"] .md-typeset .grid.cards:not(.install-cards) > ul > li {
  color: var(--kb-text);
  background-color: var(--md-default-bg-color--dark, #f2f2f4) !important;
}

[data-md-color-scheme="default"]
  .md-typeset
  .grid.cards:not(.install-cards)
  > ul
  > li
  > p:first-child {
  color: var(--kb-text);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards:not(.install-cards) > ul > li {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards:not(.install-cards) > ul > li > p {
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards:not(.install-cards) > ul > li strong {
  color: #ffffff;
}

.md-typeset .grid.cards:not(.install-cards) > ul > li strong {
  background: unset;
  font-weight: 600;
  color: var(--kb-text);
}

.md-typeset .grid.cards:not(.install-cards) > ul > li > .highlight {
  margin: 0 !important;
}

/* Card icons — brand ink; title row matches body text token */
.md-typeset .grid.cards:not(.install-cards) svg {
  color: var(--kb-text);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards:not(.install-cards) svg {
  color: #ffffff;
}

[data-md-color-scheme="default"] .md-typeset .grid.cards:not(.install-cards) .twemoji,
[data-md-color-scheme="default"] .md-typeset .grid.cards:not(.install-cards) .emojione,
[data-md-color-scheme="default"] .md-typeset .grid.cards:not(.install-cards) .middle {
  color: var(--kb-text);
}

[data-md-color-scheme="default"] .md-typeset .grid.cards:not(.install-cards) .twemoji svg,
[data-md-color-scheme="default"] .md-typeset .grid.cards:not(.install-cards) .twemoji svg path {
  fill: var(--kb-text);
}

[data-md-color-scheme="default"]
  .md-typeset
  .grid.cards:not(.install-cards)
  > ul
  > li
  > p:first-child
  .twemoji,
[data-md-color-scheme="default"]
  .md-typeset
  .grid.cards:not(.install-cards)
  > ul
  > li
  > p:first-child
  .emojione,
[data-md-color-scheme="default"]
  .md-typeset
  .grid.cards:not(.install-cards)
  > ul
  > li
  > p:first-child
  .middle {
  color: var(--kb-text);
}

[data-md-color-scheme="default"]
  .md-typeset
  .grid.cards:not(.install-cards)
  > ul
  > li
  > p:first-child
  .twemoji
  svg,
[data-md-color-scheme="default"]
  .md-typeset
  .grid.cards:not(.install-cards)
  > ul
  > li
  > p:first-child
  .twemoji
  svg
  path {
  fill: var(--kb-text);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards:not(.install-cards) .twemoji,
[data-md-color-scheme="slate"] .md-typeset .grid.cards:not(.install-cards) .emojione,
[data-md-color-scheme="slate"] .md-typeset .grid.cards:not(.install-cards) .middle {
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards:not(.install-cards) .twemoji svg,
[data-md-color-scheme="slate"] .md-typeset .grid.cards:not(.install-cards) .twemoji svg path {
  fill: #ffffff;
}

[data-md-color-scheme="slate"]
  .md-typeset
  .grid.cards:not(.install-cards)
  > ul
  > li
  > p:first-child
  .twemoji,
[data-md-color-scheme="slate"]
  .md-typeset
  .grid.cards:not(.install-cards)
  > ul
  > li
  > p:first-child
  .emojione,
[data-md-color-scheme="slate"]
  .md-typeset
  .grid.cards:not(.install-cards)
  > ul
  > li
  > p:first-child
  .middle {
  color: #ffffff;
}

[data-md-color-scheme="slate"]
  .md-typeset
  .grid.cards:not(.install-cards)
  > ul
  > li
  > p:first-child
  .twemoji
  svg,
[data-md-color-scheme="slate"]
  .md-typeset
  .grid.cards:not(.install-cards)
  > ul
  > li
  > p:first-child
  .twemoji
  svg
  path {
  fill: #ffffff;
}

/* ── CLI / Docker hero section ── */
.cli-hero {
  background: #f6f5fa;
  border: 1px solid #e4e1ed;
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 2rem;
}

.cli-hero h2 {
  margin-top: 0 !important;
  margin-bottom: 0.25rem !important;
}

.cli-hero > p:first-of-type {
  margin-top: 0;
  margin-bottom: 1rem;
  opacity: 0.7;
  font-size: 16px;
}

.cli-hero > p:has(.install-btn) {
  padding-top: 12px;
  padding-bottom: 12px;
}

.md-typeset .cli-hero a.install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  border-radius: 8px;
  font-family: "Exo 2", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none !important;
  margin-right: 10px;
  margin-top: 4px;
  white-space: nowrap;
}

.md-typeset .cli-hero a.install-btn--ghost {
  border: 1.5px solid #c9a0d4;
  background: unset;
}

[data-md-color-scheme="default"] .md-typeset .cli-hero a.install-btn--ghost,
[data-md-color-scheme="default"] .md-typeset .cli-hero a.install-btn--ghost:hover {
  color: #000000 !important;
}

.md-typeset .cli-hero a.install-btn--ghost:hover {
  border-color: #a86cbf;
  background: unset;
}

.md-typeset .cli-hero a.install-btn--solid {
  border: none;
  color: var(--kb-brand-green) !important;
  background: linear-gradient(135deg, #2f2848, #3d2d60);
}

.md-typeset .cli-hero a.install-btn--solid:hover {
  background: linear-gradient(135deg, #3d2d60, #2f2848);
  box-shadow: 0 2px 8px rgba(47, 40, 72, 0.3);
}

[data-md-color-scheme="slate"] .cli-hero {
  background: #302d3e;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-md-color-scheme="slate"] .md-typeset .cli-hero a.install-btn--ghost {
  border-color: #58fbda;
  color: #58fbda !important;
  background: unset;
}

[data-md-color-scheme="slate"] .md-typeset .cli-hero a.install-btn--ghost:hover {
  border-color: #7ffce8;
  color: #7ffce8 !important;
  background: unset;
}

[data-md-color-scheme="slate"] .md-typeset .cli-hero a.install-btn--solid {
  background: #58fbda;
  color: #1a1926 !important;
  border: none;
}

[data-md-color-scheme="slate"] .md-typeset .cli-hero a.install-btn--solid:hover {
  background: #7ffce8;
  box-shadow: 0 2px 10px rgba(88, 251, 218, 0.3);
}

.cli-hero .md-icon svg {
  fill: currentColor !important;
}

.cli-hero .tabbed-content {
  margin-bottom: 0 !important;
}

.cli-hero .tabbed-content .highlight {
  margin-bottom: 0;
}

/* ── Installation cards (Figma design) ── */
.md-typeset .install-cards.grid.cards {
  column-gap: 24px;
  row-gap: 24px;
}

.md-typeset .install-cards.grid.cards > ul,
.md-typeset .install-cards.grid.cards > ol {
  row-gap: 48px !important;
  column-gap: 48px !important;
}

.md-typeset .install-cards.grid.cards > ul > li,
.md-typeset .install-cards.grid.cards > ol > li {
  border-radius: 16px;
  border: 1.5px solid #ddd8e8;
  background: #ffffff;
  padding: 32px !important;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.md-typeset .install-cards.grid.cards > ul > li:hover,
.md-typeset .install-cards.grid.cards > ol > li:hover {
  transform: none;
  box-shadow: none;
  border-color: #c5b8d9;
}

.md-typeset .install-cards.grid.cards > ul > li hr,
.md-typeset .install-cards.grid.cards > ol > li hr {
  display: none;
}

.md-typeset .install-cards.grid.cards > ul > li > p:first-child,
.md-typeset .install-cards.grid.cards > ol > li > p:first-child {
  margin: -32px -32px 0.2rem -32px;
  padding: 16px;
  font-size: 1rem;
  background-color: var(--md-code-bg-color);
  border-radius: 14px 14px 0 0;
}

[data-md-color-scheme="default"] .md-typeset .install-cards.grid.cards > ul > li > p:first-child,
[data-md-color-scheme="default"] .md-typeset .install-cards.grid.cards > ol > li > p:first-child {
  color: var(--md-accent-bg-color--light);
}

[data-md-color-scheme="slate"] .md-typeset .install-cards.grid.cards > ul > li > p:first-child,
[data-md-color-scheme="slate"] .md-typeset .install-cards.grid.cards > ol > li > p:first-child {
  background-color: rgba(20, 23, 31, 0.3);
}

.md-typeset .install-cards.grid.cards > ul > li > p:first-child strong,
.md-typeset .install-cards.grid.cards > ol > li > p:first-child strong {
  font-size: 20px;
  font-weight: 600;
}

/* Language icon color — pink accent in light mode */
.md-typeset .install-cards .lg svg,
.md-typeset .install-cards .lg svg path {
  fill: #26203a;
}

/* Language icon color — white in dark mode (header row) */
[data-md-color-scheme="slate"] .md-typeset .install-cards .twemoji.lg,
[data-md-color-scheme="slate"] .md-typeset .install-cards .emojione.lg {
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-typeset .install-cards .lg svg,
[data-md-color-scheme="slate"] .md-typeset .install-cards .lg svg path {
  fill: #ffffff;
}

/* API Reference: text link (not button) + Quick Start row */
.md-typeset .install-cards.grid.cards > ul > li > p:has(.install-api-link),
.md-typeset .install-cards.grid.cards > ol > li > p:has(.install-api-link) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.35rem;
  margin-top: 0.25rem;
}

.md-typeset .install-cards .install-api-link {
  display: inline;
  font-family: "Exo 2", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border: none;
  padding: 0;
  margin: 0;
  background: none !important;
  box-shadow: none !important;
  min-height: 0;
  min-width: 0;
  white-space: nowrap;
}

[data-md-color-scheme="default"] .md-typeset .install-cards .install-api-link {
  color: #4c24ab !important;
}

[data-md-color-scheme="default"] .md-typeset .install-cards .install-api-link:hover {
  color: #3a1d7a !important;
}

[data-md-color-scheme="slate"] .md-typeset .install-cards .install-api-link {
  color: #58fbda !important;
}

[data-md-color-scheme="slate"] .md-typeset .install-cards .install-api-link:hover {
  color: #7ffce8 !important;
}

.md-typeset .install-cards .highlight {
  position: relative;
  overflow: visible;
  background: #2c2840;
  border: none;
  border-radius: 12px;
  margin: 12px 0 20px;
  padding: 18px;
  gap: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.md-typeset .install-cards .highlight pre {
  background-color: transparent;
  margin: 0;
  width: 100%;
  padding-right: 2.75rem;
}

.md-typeset .install-cards .highlight pre,
.md-typeset .install-cards .highlight code {
  font-size: 16px;
  line-height: 1.5;
}

.md-typeset .install-cards .highlight .md-code__nav {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 1 !important;
  pointer-events: auto;
}

.md-typeset .install-cards .highlight .md-code__button {
  color: #58fbda;
}

.md-typeset .install-cards .highlight .md-code__button:hover {
  color: #7ffce8;
}

.md-typeset .install-cards .highlight .md-code__button .md-icon,
.md-typeset .install-cards .highlight .md-code__button svg {
  fill: currentColor;
}

.md-typeset .install-cards .install-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 130px;
  padding: 6px 18px;
  border-radius: 8px;
  font-family: "Exo 2", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none !important;
  margin-right: 0;
  white-space: nowrap;
}

.md-typeset .install-cards .install-btn--sm {
  min-height: 32px;
  min-width: 0;
  padding: 4px 14px;
  font-size: 16px;
  border-radius: 6px;
}

.md-typeset .install-cards .install-btn--sm .twemoji svg,
.md-typeset .install-cards .install-btn--sm .md-icon svg {
  width: 0.85em;
  height: 0.85em;
  vertical-align: -0.08em;
}

/* Light mode buttons */
.md-typeset .install-cards .install-btn--ghost {
  border: 1.5px solid #d4c5e0;
  color: #3f3456 !important;
  background: transparent;
}

.md-typeset .install-cards .install-btn--ghost:hover {
  border-color: #b89fd0;
  background: rgba(218, 42, 224, 0.03);
}

.md-typeset .install-cards .install-btn--solid {
  border: none;
  color: #ffffff !important;
  background: #2c2840;
}

.md-typeset .install-cards .install-btn--solid:hover {
  background: #3a3258;
  box-shadow: 0 2px 8px rgba(44, 40, 64, 0.25);
}

/* Dark mode */
[data-md-color-scheme="slate"] .md-typeset .install-cards.grid.cards > ul > li,
[data-md-color-scheme="slate"] .md-typeset .install-cards.grid.cards > ol > li {
  background: #2a2838;
  border-color: rgba(88, 251, 218, 0.12);
}

[data-md-color-scheme="slate"] .md-typeset .install-cards.grid.cards > ul > li:hover,
[data-md-color-scheme="slate"] .md-typeset .install-cards.grid.cards > ol > li:hover {
  border-color: rgba(88, 251, 218, 0.25);
}

[data-md-color-scheme="slate"] .md-typeset .install-cards .highlight {
  background: #201e2e;
}

[data-md-color-scheme="slate"] .md-typeset .install-cards .install-btn--ghost {
  border-color: #58fbda;
  color: #58fbda !important;
  background: transparent;
}

[data-md-color-scheme="slate"] .md-typeset .install-cards .install-btn--ghost:hover {
  border-color: #7ffce8;
  color: #7ffce8 !important;
  background: rgba(88, 251, 218, 0.06);
}

[data-md-color-scheme="slate"] .md-typeset .install-cards .install-btn--solid {
  background: #26203a;
  color: #ffffff !important;
  border: none;
  outline: 1px solid #58fbda;
  outline-offset: 0;
}

[data-md-color-scheme="slate"] .md-typeset .install-cards .install-btn--solid:hover {
  background: #2e2848;
  outline-color: #7ffce8;
  box-shadow: 0 2px 10px rgba(88, 251, 218, 0.2);
}

/* Button icon — white in light mode (on dark solid bg) */
.md-typeset .install-cards .install-btn--solid .twemoji svg,
.md-typeset .install-cards .install-btn--solid .md-icon svg {
  fill: #ffffff !important;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.1em;
  margin-right: 3px;
}

/* Button icon — white in dark mode (on purple solid bg + teal outline) */
[data-md-color-scheme="slate"] .md-typeset .install-cards .install-btn--solid .twemoji svg,
[data-md-color-scheme="slate"] .md-typeset .install-cards .install-btn--solid .md-icon svg {
  fill: #ffffff !important;
}

.md-typeset .install-cards .install-btn--ghost .twemoji svg,
.md-typeset .install-cards .install-btn--ghost .md-icon svg {
  fill: currentColor !important;
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.1em;
  margin-right: 3px;
}

/* Homepage hero banner */
.hero-banner {
  margin: 0 -0.8rem 1rem;
  border-radius: 12px;
  overflow: hidden;
}

.hero-banner img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.hero-banner a {
  display: block;
  line-height: 0;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
}

.hero-banner a:focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

/* Homepage bottom cloud banner */
.cloud-banner {
  margin: 2.5rem -0.8rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.cloud-banner p {
  margin: 0;
}

.cloud-banner a {
  display: block;
  line-height: 0;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
}

.cloud-banner a:focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

.cloud-banner img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/*
 * Light mode: Material sets link color via --md-typeset-a-color from the palette after :root
 * custom props, so prose links can stay on the theme default unless we reassert here.
 */
[data-md-color-scheme="default"] {
  --md-typeset-a-color: #4c24ab !important;
  --md-accent-fg-color: #4c24ab !important;
}

[data-md-color-scheme="default"] .md-typeset a,
[data-md-color-scheme="default"] .md-content a,
[data-md-color-scheme="default"] .md-typeset .md-content a {
  color: #4c24ab !important;
}

[data-md-color-scheme="default"] .md-typeset a code {
  color: #4c24ab !important;
}
