:root {
  --mxl-radius-lg: 28px;
  --mxl-shadow-soft: 0 26px 60px -30px rgba(13, 42, 78, 0.65);
  --mxl-shadow-card: 0 12px 32px -24px rgba(13, 66, 120, 0.55);
  --mxl-border-rgb: 14, 72, 129;
  --mxl-code-font: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --mxl-body-font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mxl-surface: rgba(255, 255, 255, 0.92);
  --mxl-surface-subtle: rgba(255, 255, 255, 0.75);
  --mxl-hero-gradient: radial-gradient(circle at 12% 20%, rgba(13, 110, 253, 0.25), transparent 60%),
    radial-gradient(circle at 82% 12%, rgba(41, 196, 255, 0.35), transparent 55%),
    linear-gradient(135deg, #0d47a1 0%, #4dabf5 60%, #7ad0ff 100%);
  --mxl-card-border: rgba(var(--mxl-border-rgb), 0.12);
  --mxl-text-muted: #31415f;
  --mxl-pill-bg: rgba(13, 110, 253, 0.12);
  --mxl-section-bg: rgba(18, 100, 163, 0.06);
  --mxl-topbar-bg: rgba(6, 21, 40, 0.38);
  --mxl-topbar-border: rgba(255, 255, 255, 0.14);
  --mxl-gradient-text: linear-gradient(90deg, #ffffff 0%, #cfefff 40%, #9ee1ff 100%);
  --mxl-landing-bg: linear-gradient(180deg, #eef4fb 0%, #f6f9ff 48%, #ffffff 100%);
  --mxl-landing-fade: #f6f9ff;
  /* Documentation code-block palette (light defaults) */
  --mxl-code-surface: #f7f9fc;
  --mxl-code-border: rgba(18, 65, 125, 0.14);
  --mxl-code-header-bg: linear-gradient(180deg, #eef3fa 0%, #e5ecf5 100%);
  --mxl-code-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 32px -28px rgba(13, 42, 78, 0.35);
  --mxl-inline-code-bg: rgba(18, 100, 163, 0.08);
  --mxl-inline-code-border: rgba(18, 100, 163, 0.18);
  --mxl-inline-code-color: #0d3b7a;
}

body {
  font-family: var(--mxl-body-font);
}

body[data-theme="light"],
body[data-theme="auto"][data-default-mode="light"] {
  --mxl-surface: rgba(255, 255, 255, 0.92);
  --mxl-surface-subtle: rgba(255, 255, 255, 0.75);
  --mxl-hero-gradient: radial-gradient(circle at 12% 20%, rgba(13, 110, 253, 0.25), transparent 60%),
    radial-gradient(circle at 82% 12%, rgba(41, 196, 255, 0.35), transparent 55%),
    linear-gradient(135deg, #0d47a1 0%, #4dabf5 60%, #7ad0ff 100%);
  --mxl-card-border: rgba(var(--mxl-border-rgb), 0.12);
  --mxl-text-muted: #31415f;
  --mxl-pill-bg: rgba(13, 110, 253, 0.12);
  --mxl-section-bg: rgba(18, 100, 163, 0.06);
  --mxl-landing-bg: linear-gradient(180deg, #eef4fb 0%, #f6f9ff 48%, #ffffff 100%);
  --mxl-landing-fade: #f6f9ff;
  --mxl-code-surface: #f7f9fc;
  --mxl-code-border: rgba(18, 65, 125, 0.14);
  --mxl-code-header-bg: linear-gradient(180deg, #eef3fa 0%, #e5ecf5 100%);
  --mxl-code-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 32px -28px rgba(13, 42, 78, 0.35);
  --mxl-inline-code-bg: rgba(18, 100, 163, 0.08);
  --mxl-inline-code-border: rgba(18, 100, 163, 0.18);
  --mxl-inline-code-color: #0d3b7a;
}

body[data-theme="dark"],
body[data-theme="auto"][data-default-mode="dark"] {
  --mxl-surface: rgba(15, 24, 40, 0.94);
  --mxl-surface-subtle: rgba(15, 24, 40, 0.75);
  --mxl-hero-gradient: radial-gradient(circle at 18% 18%, rgba(102, 199, 255, 0.25), transparent 65%),
    radial-gradient(circle at 70% 12%, rgba(108, 201, 255, 0.3), transparent 55%),
    linear-gradient(135deg, #061024 0%, #112c4f 55%, #0c4f7f 100%);
  --mxl-card-border: rgba(132, 198, 255, 0.08);
  --mxl-text-muted: #b3c7df;
  --mxl-pill-bg: rgba(102, 199, 255, 0.18);
  --mxl-section-bg: rgba(102, 199, 255, 0.08);
  --mxl-landing-bg: linear-gradient(180deg, #071224 0%, #0c1d33 55%, #0f223b 100%);
  --mxl-landing-fade: #0c1d33;
  --mxl-code-surface: #0f1a2e;
  --mxl-code-border: rgba(132, 198, 255, 0.14);
  --mxl-code-header-bg: linear-gradient(180deg, #152540 0%, #0f1a2e 100%);
  --mxl-code-shadow: 0 1px 0 rgba(132, 198, 255, 0.05) inset,
    0 18px 32px -24px rgba(0, 0, 0, 0.65);
  --mxl-inline-code-bg: rgba(102, 199, 255, 0.12);
  --mxl-inline-code-border: rgba(102, 199, 255, 0.22);
  --mxl-inline-code-color: #d6ecff;
}

/* --- Landing page chrome (index only) --- */
.mxl-skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0d2a4d;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
  z-index: 1000;
}

.mxl-skip-link:focus {
  transform: translateY(0);
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.mxl-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 0.9rem clamp(1.2rem, 4vw, 4rem);
  box-sizing: border-box;
  z-index: 900;
  background: var(--mxl-topbar-bg);
  border-bottom: 1px solid var(--mxl-topbar-border);
  backdrop-filter: blur(14px);
}

.mxl-topbar__inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.8rem);
}

.mxl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mxl-brand:visited {
  color: #fff;
}

.mxl-brand__name {
  color: #fff;
}

.mxl-brand__mark {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1.1rem;
}

.mxl-brand__mark img {
  width: 2.1rem;
  height: 2.1rem;
  display: block;
}

.mxl-brand__name {
  font-size: 1.02rem;
}

.mxl-topbar__nav {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.mxl-topbar__link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.mxl-topbar__link:visited {
  color: rgba(255, 255, 255, 0.82);
}

.mxl-topbar__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.mxl-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mxl-topbar__cta {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.mxl-topbar__cta:visited {
  color: rgba(255, 255, 255, 0.9);
}

.mxl-topbar__cta:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mxl-gradient-text {
  background: var(--mxl-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Hero block on the landing page --- */
.mxl-hero {
  position: relative;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding: calc(clamp(2.4rem, 5vw, 4.2rem) + 4.8rem) clamp(2rem, 6vw, 6rem)
    clamp(3.4rem, 5vw, 4.4rem);
  min-height: 100vh;
  border-radius: 0;
  background: var(--mxl-hero-gradient);
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mxl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 58%, var(--mxl-landing-fade) 100%);
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

.mxl-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 40%);
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.mxl-hero > * {
  position: relative;
  z-index: 2;
}

.mxl-hero__grid {
  width: min(1240px, 94vw);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.6rem, 5vw, 6rem);
  align-items: center;
}

.mxl-hero__copy {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
}

.mxl-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.86);
}

.mxl-hero__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.mxl-hero__title {
  font-size: clamp(2rem, 3.1vw, 2.7rem);
  line-height: 1.08;
  margin: 0;
  font-weight: 700;
}

.mxl-hero__lead {
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  max-width: 60ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.mxl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.6rem;
  justify-content: flex-start;
}

.mxl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
}

.mxl-button--sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
}

.mxl-button--primary {
  background: rgba(255, 255, 255, 0.92);
  color: #0d2a4d;
  box-shadow: 0 12px 24px -14px rgba(5, 22, 51, 0.65);
}

.mxl-button--primary:visited {
  color: #0d2a4d;
}

.mxl-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -18px rgba(5, 22, 51, 0.7);
}

.mxl-button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mxl-button--ghost:visited {
  color: #fff;
}

.mxl-button--ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.mxl-button--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 20px -18px rgba(5, 22, 51, 0.65);
}

.mxl-button--secondary:visited {
  color: #fff;
}

.mxl-button--secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 24px -18px rgba(5, 22, 51, 0.7);
}

.mxl-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
  padding: 1.1rem 1.3rem;
  border-radius: 24px;
  background: rgba(6, 21, 40, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 720px;
  margin: 0;
}

.mxl-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.mxl-glass-card {
  position: relative;
  width: min(430px, 92vw);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(14, 38, 72, 0.46), rgba(6, 21, 40, 0.3) 55%, rgba(12, 44, 82, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--mxl-shadow-soft);
  overflow: hidden;
}

.mxl-glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent 40%);
  opacity: 0.65;
  pointer-events: none;
}

.mxl-glass-card > * {
  position: relative;
  z-index: 2;
}

.mxl-glass-card__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.mxl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.mxl-chip--ok {
  background: linear-gradient(130deg, rgba(120, 214, 255, 0.45), rgba(255, 255, 255, 0.14));
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px -14px rgba(4, 20, 45, 0.8);
}

.mxl-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.6rem;
  align-items: center;
  margin: 1.1rem 0;
}

.mxl-node {
  padding: 0.7rem 0.9rem;
  border-radius: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.94);
}

.mxl-node--center {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 22px -18px rgba(5, 22, 51, 0.75);
}

.mxl-arrow {
  opacity: 0.7;
  font-weight: 900;
}

.mxl-mini {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mxl-mini__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.mxl-mini__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.mxl-mini__value {
  font-weight: 700;
  font-size: 0.9rem;
}

.mxl-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.55;
  pointer-events: none;
}

.mxl-glow--a {
  background: rgba(41, 196, 255, 0.55);
  top: -120px;
  left: -90px;
}

.mxl-glow--b {
  background: rgba(255, 255, 255, 0.22);
  bottom: -160px;
  right: -140px;
}

.mxl-scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.mxl-scroll:visited {
  color: rgba(255, 255, 255, 0.82);
}

.mxl-scroll:hover {
  color: #fff;
}

.mxl-scroll__line {
  width: 2px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

/* Responsive embedded video container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
  border-radius: 14px;
  box-shadow: 0 16px 32px -22px rgba(0, 0, 0, 0.45);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-fallback {
  text-align: center;
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.video-fallback a {
  font-weight: 600;
  text-decoration: none;
}

.mxl-hero__stats dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.25rem;
}

.mxl-hero__stats dd {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 600;
}

@media (max-width: 720px) {
  .mxl-topbar {
    padding: 0.85rem 1.2rem;
  }

  .mxl-topbar__nav {
    display: none;
  }

  .mxl-hero {
    padding: calc(2.8rem + 4.6rem) 1.8rem 3.8rem;
    min-height: auto;
  }

  .mxl-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .mxl-hero__copy {
    text-align: center;
    align-items: center;
  }

  .mxl-hero__actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }

  .mxl-hero__stats {
    max-width: 100%;
  }

  .mxl-hero__visual {
    min-height: auto;
    width: 100%;
  }

  .mxl-glass-card {
    width: 100%;
    max-width: 100%;
    padding: 1.05rem 1.1rem;
  }

  .mxl-loop--hero .mxl-loop__block {
    padding: 0.6rem 0.75rem;
  }

  .mxl-loop--hero .mxl-loop__meta {
    font-size: 0.72rem;
  }

  body.mxl-landing h1.mxl-hero__title {
    font-size: clamp(2.1rem, 6.5vw, 3.1rem) !important;
  }
}

@media (max-width: 540px) {
  .mxl-hero {
    padding: calc(2.6rem + 4.6rem) 1.4rem 3.8rem;
  }

  .mxl-brand__name {
    display: none;
  }

  .mxl-pill--light {
    display: none;
  }

  .mxl-topbar__actions {
    gap: 0.65rem;
  }

  .mxl-scroll__text {
    display: none;
  }
}

/* --- Landing sections (index only) --- */
.mxl-container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.mxl-section {
  position: relative;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding: clamp(3.4rem, 6vw, 5.2rem) 0;
  background: transparent;
}

.mxl-section--alt {
  background: var(--mxl-section-bg);
}

.mxl-section__head {
  margin: 0 auto 2.2rem auto;
  text-align: left;
}

.mxl-section__head h2 {
  margin: 0 0 0.6rem 0;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  padding-left: 0;
  text-indent: 0;
}

.mxl-section__head p {
  margin: 0;
  max-width: 82ch;
  padding-left: 0;
  text-indent: 0;
}

body.mxl-landing .mxl-section a:not(.mxl-button),
body.mxl-landing .video-fallback a,
body.mxl-landing .mxl-small a {
  color: var(--color-brand-primary);
}

body.mxl-landing .mxl-section a:not(.mxl-button):visited,
body.mxl-landing .video-fallback a:visited,
body.mxl-landing .mxl-small a:visited {
  color: var(--color-brand-primary);
}

body.mxl-landing .mxl-section .mxl-button {
  border-color: var(--mxl-card-border);
  backdrop-filter: none;
}

body.mxl-landing .mxl-section .mxl-button--primary {
  background: var(--color-brand-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px -18px rgba(13, 66, 120, 0.55);
}

body.mxl-landing .mxl-section .mxl-button--primary:visited {
  color: #fff;
}

body.mxl-landing .mxl-section .mxl-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -22px rgba(13, 66, 120, 0.6);
}

body.mxl-landing .mxl-section .mxl-button--secondary {
  background: var(--mxl-surface);
  color: var(--color-foreground-primary);
  box-shadow: var(--mxl-shadow-card);
}

body.mxl-landing .mxl-section .mxl-button--secondary:visited {
  color: var(--color-foreground-primary);
}

body.mxl-landing .mxl-section .mxl-button--secondary:hover {
  background: var(--mxl-surface-subtle);
}

body.mxl-landing .mxl-section .mxl-button--ghost {
  background: transparent;
  color: var(--color-foreground-primary);
}

body.mxl-landing .mxl-section .mxl-button--ghost:visited {
  color: var(--color-foreground-primary);
}

body.mxl-landing .mxl-section .mxl-button--ghost:hover {
  background: rgba(var(--mxl-border-rgb), 0.06);
}

.mxl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
}

.mxl-card {
  background: var(--mxl-surface);
  border: 1px solid var(--mxl-card-border);
  border-radius: 22px;
  padding: 1.4rem 1.4rem;
  box-shadow: var(--mxl-shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mxl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(13, 66, 120, 0.55);
}

.mxl-card h3 {
  margin: 0 0 0.55rem 0;
  font-size: 1.15rem;
}

.mxl-card p {
  margin: 0 0 1rem 0;
}

.mxl-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mxl-split {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.6rem, 4vw, 3.6rem);
}

.mxl-split--reverse {
  flex-direction: row-reverse;
}

.mxl-split__copy {
  flex: 1 1 0;
  min-width: 0;
}

.mxl-split__panel {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mxl-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.mxl-list {
  margin: 1.1rem 0 0 0;
  padding-left: 1.4rem;
}

.mxl-list li {
  margin: 0.55rem 0;
}

.mxl-small {
  font-size: 0.95rem;
  margin-top: 1rem;
  color: var(--mxl-text-muted);
}

body.mxl-landing .mxl-code-card {
  background: var(--mxl-surface);
  border: 1px solid var(--mxl-card-border);
  border-radius: 22px;
  box-shadow: var(--mxl-shadow-card);
  overflow: hidden;
}

.mxl-code-card__title {
  padding: 0.85rem 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--mxl-card-border);
  background: rgba(var(--mxl-border-rgb), 0.04);
}

body.mxl-landing .mxl-code-card__code {
  margin: 0;
  padding: 1.1rem 1.2rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-family: var(--mxl-code-font);
  font-size: 0.92rem;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--color-foreground-primary);
}

body.mxl-landing .mxl-code-card__code code {
  background: transparent;
  border: 0;
  padding: 0;
  font-family: inherit;
}

body.mxl-landing .mxl-loop-card {
  background: linear-gradient(160deg, rgba(var(--mxl-border-rgb), 0.06), rgba(var(--mxl-border-rgb), 0.02));
  border-color: rgba(var(--mxl-border-rgb), 0.18);
  position: relative;
}

body.mxl-landing .mxl-loop-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.35), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

body.mxl-landing .mxl-loop-card > * {
  position: relative;
  z-index: 1;
}

.mxl-loop-card__title {
  background: rgba(var(--mxl-border-rgb), 0.08);
}

.mxl-loop {
  padding: 1.1rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mxl-loop__block {
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--mxl-border-rgb), 0.18);
  background: var(--mxl-surface);
  box-shadow: 0 10px 20px -18px rgba(13, 66, 120, 0.35);
}

.mxl-loop__block--core {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), var(--mxl-surface));
  border-color: rgba(var(--mxl-border-rgb), 0.32);
}

.mxl-loop__name {
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.mxl-loop__meta {
  font-size: 0.85rem;
  color: var(--mxl-text-muted);
}

.mxl-loop__connector {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.mxl-loop__connector::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.6rem;
  bottom: -0.6rem;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(var(--mxl-border-rgb), 0.45), transparent);
  transform: translateX(-50%);
}

.mxl-loop__connector span {
  position: relative;
  z-index: 1;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--mxl-border-rgb), 0.08);
  border: 1px solid rgba(var(--mxl-border-rgb), 0.2);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mxl-text-muted);
}

.mxl-loop--hero {
  padding: 0.4rem 0 0.8rem;
  gap: 0.65rem;
}

.mxl-loop--hero .mxl-loop__block {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 24px -18px rgba(5, 22, 51, 0.65);
}

.mxl-loop--hero .mxl-loop__block--core {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
}

.mxl-loop--hero .mxl-loop__name {
  color: rgba(255, 255, 255, 0.96);
}

.mxl-loop--hero .mxl-loop__meta {
  color: rgba(255, 255, 255, 0.74);
}

.mxl-loop--hero .mxl-loop__connector::before {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.mxl-loop--hero .mxl-loop__connector span {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.82);
}

.mxl-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.mxl-step {
  background: var(--mxl-surface);
  border: 1px solid var(--mxl-card-border);
  border-radius: 22px;
  padding: 1.35rem 1.35rem;
  box-shadow: var(--mxl-shadow-card);
}

.mxl-step__num {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: rgba(var(--mxl-border-rgb), 0.12);
  color: var(--color-brand-primary);
}

.mxl-step h3 {
  margin: 1rem 0 0.55rem 0;
  font-size: 1.1rem;
}

.mxl-step p {
  margin: 0;
}

.mxl-cta-card {
  background: var(--mxl-surface);
  border: 1px solid var(--mxl-card-border);
  border-radius: 28px;
  padding: 1.6rem 1.7rem;
  box-shadow: var(--mxl-shadow-soft);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
}

.mxl-cta-card__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.mxl-cta-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 240px;
}

.mxl-ol {
  margin: 0;
  padding-left: 1.4rem;
}

.mxl-ol li {
  margin: 0.65rem 0;
}

.mxl-landing-footer {
  position: relative;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding: 2.8rem 0;
  background: rgba(var(--mxl-border-rgb), 0.05);
  border-top: 1px solid var(--mxl-card-border);
}

.mxl-landing-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.mxl-landing-footer__title {
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.mxl-landing-footer__text {
  max-width: 90ch;
  color: var(--mxl-text-muted);
}

.mxl-landing-footer__text a {
  color: var(--color-foreground-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--mxl-border-rgb), 0.25);
}

.mxl-landing-footer__text a:visited {
  color: var(--color-foreground-primary);
}

.mxl-landing-footer__text a:hover {
  color: var(--color-brand-primary);
  border-bottom-color: var(--color-brand-primary);
}

.mxl-landing-footer__links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}

.mxl-landing-footer__links a {
  color: var(--color-foreground-primary);
  font-weight: 800;
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 12px;
}

.mxl-landing-footer__links a:visited {
  color: var(--color-foreground-primary);
}

.mxl-landing-footer__links a:hover {
  background: rgba(var(--mxl-border-rgb), 0.06);
}

@media (max-width: 900px) {
  .mxl-split,
  .mxl-split--reverse {
    flex-direction: column;
  }

  .mxl-cta-card {
    flex-direction: column;
  }

  .mxl-cta-card__actions {
    width: 100%;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* --- Card surfaces and typography tweaks --- */
.content h1,
.content h2,
.content h3 {
  font-weight: 700;
  letter-spacing: -0.018em;
}

.content h1 {
  font-size: clamp(1.45rem, 1.05rem + 1.05vw, 1.75rem);
  line-height: 1.18;
  padding-bottom: 0.55rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--mxl-card-border);
  color: var(--color-foreground-primary);
}

.content h2 {
  font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.35rem);
  line-height: 1.22;
  margin-top: 1.6rem;
  margin-bottom: 0.9rem;
}

.content h3 {
  font-size: clamp(0.98rem, 0.9rem + 0.45vw, 1.12rem);
  line-height: 1.3;
  margin-top: 1.9rem;
  margin-bottom: 0.65rem;
  letter-spacing: -0.008em;
}

.content h4 {
  font-size: clamp(0.9rem, 0.88rem + 0.18vw, 1.0rem);
  font-weight: 600;
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.005em;
  text-transform: none;
}

.content p {
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--mxl-text-muted);
}

.content .admonition,
.content .note,
.content .tip,
.content .warning,
.content .important {
  border-radius: 18px;
  border-left: 6px solid var(--color-brand-primary);
  box-shadow: var(--mxl-shadow-card);
  overflow: hidden;
  background: var(--mxl-surface);
}

.content .admonition > p:first-of-type,
.content .admonition-title {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.content .highlight {
  position: relative;
  border-radius: 14px;
  background: var(--mxl-code-surface);
  border: 1px solid var(--mxl-code-border);
  box-shadow: var(--mxl-code-shadow);
  font-family: var(--mxl-code-font);
  font-size: 0.9rem;
  margin: 1.35rem 0;
  overflow: hidden;
}

.content .highlight pre {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 1.05rem 1.15rem !important;
  margin: 0 !important;
  line-height: 1.62;
  font-size: inherit;
  font-family: var(--mxl-code-font);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--mxl-border-rgb), 0.3) transparent;
}

.content .highlight pre::-webkit-scrollbar {
  height: 8px;
}

.content .highlight pre::-webkit-scrollbar-thumb {
  background: rgba(var(--mxl-border-rgb), 0.3);
  border-radius: 999px;
}

.content .highlight pre::-webkit-scrollbar-track {
  background: transparent;
}

/* When code block is directly rendered as <pre> (rare, e.g. doctest)  */
.content > pre,
.content > div > pre:not(.highlight pre) {
  border-radius: 14px;
  background: var(--mxl-code-surface);
  border: 1px solid var(--mxl-code-border);
  box-shadow: var(--mxl-code-shadow);
  font-family: var(--mxl-code-font);
  font-size: 0.9rem;
  padding: 1.05rem 1.15rem;
  line-height: 1.62;
}

/* Copy-to-clipboard button (only when sphinx-copybutton is enabled) */
.content .highlight button.copybtn {
  top: 6px !important;
  right: 8px !important;
  z-index: 3;
  background: rgba(var(--mxl-border-rgb), 0.06);
  border: 1px solid var(--mxl-code-border);
  border-radius: 8px;
  padding: 4px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.content .highlight:hover button.copybtn,
.content .highlight button.copybtn:focus-visible {
  opacity: 1;
}

.content code.literal {
  font-family: var(--mxl-code-font);
  padding: 0.1rem 0.38rem;
  border-radius: 6px;
  background: var(--mxl-inline-code-bg);
  border: 1px solid var(--mxl-inline-code-border);
  color: var(--mxl-inline-code-color);
  font-size: 0.88em;
  font-weight: 500;
}

body.mxl-landing .mxl-command {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 10px;
  background: rgba(var(--mxl-border-rgb), 0.08);
  border: 1px solid rgba(var(--mxl-border-rgb), 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-family: var(--mxl-code-font);
  font-size: 0.95rem;
  color: var(--color-foreground-primary);
  white-space: nowrap;
}

.content table.docutils {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--mxl-card-border);
  box-shadow: var(--mxl-shadow-card);
}

.content table.docutils thead {
  background: rgba(18, 100, 163, 0.08);
}

.content table.docutils td,
.content table.docutils th {
  padding: 0.75rem 1rem;
}

.content blockquote {
  border-left: 4px solid var(--color-brand-primary);
  background: var(--mxl-surface);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  box-shadow: var(--mxl-shadow-card);
  color: var(--mxl-text-muted);
}

/* --- Sidebar tweaks --- */
.sidebar {
  background: var(--color-sidebar-background);
}

.sidebar-brand img {
  max-height: 88px;
  width: auto;
}

.sidebar .sidebar-brand-text {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
}

.sidebar nav a.current {
  background: rgba(18, 100, 163, 0.12);
  border-radius: 12px;
}

/* --- Inline badges and lists --- */
.mxl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: var(--mxl-pill-bg);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mxl-pill--light {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}

.content ul {
  padding-left: 1.3rem;
}

.content ul > li::marker {
  color: var(--color-brand-primary);
}

/* --- Footer polish --- */
.footer {
  border-top: 1px solid var(--mxl-card-border);
  padding-top: 2rem;
  margin-top: 3rem;
}

/* --- Landing page layout overrides --- */
body.mxl-landing {
  overflow-x: hidden;
  background: var(--mxl-landing-bg);
  color: var(--color-foreground-primary);
}

body.mxl-landing .page,
body.mxl-landing .main {
  background: transparent;
}

body.mxl-landing .sidebar-drawer,
body.mxl-landing .sidebar-toggle,
body.mxl-landing .sidebar-overlay,
body.mxl-landing .toc-overlay,
body.mxl-landing .mobile-header,
body.mxl-landing .content-icon-container,
body.mxl-landing .back-to-top,
body.mxl-landing .related-pages,
body.mxl-landing .footer,
body.mxl-landing .bottom-of-page,
body.mxl-landing .theme-toggle-container,
body.mxl-landing .skip-to-content {
  display: none !important;
}

body.mxl-landing .page {
  margin: 0;
  max-width: none;
  width: 100%;
}

body.mxl-landing .main {
  margin: 0;
  max-width: none;
  width: 100%;
  margin-left: 0;
}

body.mxl-landing main {
  padding-top: 0;
}

body.mxl-landing .main > .content {
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: transparent;
}

body.mxl-landing .main > .content > .article-container,
body.mxl-landing .main > .content > .article-container > article {
  padding: 0;
  margin: 0;
  max-width: none;
  width: 100%;
}

body.mxl-landing h1.mxl-hero__title {
  font-size: clamp(2.0rem, 4.0vw, 3.0rem) !important;
}

/* --- Simplified landing page (index only) --- */
body.mxl-landing.mxl-landing-simple {
  --mxl-simple-bg: #fffdfd;
  --mxl-simple-bg-weak: #f7f6f4;
  --mxl-simple-bg-weak-hover: #efeeeb;
  --mxl-simple-card: #f7f6f4;
  --mxl-simple-border: rgba(33, 30, 30, 0.12);
  --mxl-simple-border-strong: #dedbd8;
  --mxl-simple-text: #211e1e;
  --mxl-simple-muted: #656363;
  --mxl-simple-faint: #8e8b8b;
  --mxl-simple-accent: #211e1e;
  --mxl-simple-accent-strong: #111010;
  --mxl-simple-interactive: #f5f3c7;
  --mxl-simple-card-bg: #f7f6f4;
  --mxl-simple-card-border: rgba(33, 30, 30, 0.12);
  background: var(--mxl-simple-bg);
  color: var(--mxl-simple-text);
  font-family: var(--mxl-code-font);
}

body.mxl-landing.mxl-landing-simple .main > .content {
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}

body.mxl-landing.mxl-landing-simple .main > .content > .article-container,
body.mxl-landing.mxl-landing-simple .main > .content > .article-container > article {
  display: flex;
  justify-content: center;
}

.mxl-simple-shell {
  width: min(67.5rem, 100%);
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--mxl-simple-border);
  border-right: 1px solid var(--mxl-simple-border);
  background: var(--mxl-simple-bg);
}

.mxl-simple-topbar {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 80px;
  min-height: 80px;
  padding: 24px 5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mxl-simple-bg);
  border-bottom: 1px solid var(--mxl-simple-border);
}

.mxl-simple-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--mxl-simple-text);
  font-size: 1rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.mxl-simple-brand:visited {
  color: var(--mxl-simple-text);
}

.mxl-simple-brand:hover {
  color: var(--mxl-simple-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mxl-simple-brand img {
  width: 2.1rem;
  height: 2.1rem;
}

.mxl-simple-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2rem;
}

.mxl-simple-nav a {
  text-decoration: none;
  color: var(--mxl-simple-muted);
  font-weight: 500;
  padding: 0;
  border-radius: 0;
  border: 0;
  font-size: 0.92rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.mxl-simple-nav a:visited {
  color: var(--mxl-simple-muted);
}

.mxl-simple-nav a:hover {
  color: var(--mxl-simple-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mxl-simple-nav .mxl-simple-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  background: var(--mxl-simple-text);
  color: var(--mxl-simple-bg);
  text-decoration: none;
}

.mxl-simple-nav .mxl-simple-nav__cta:visited {
  color: var(--mxl-simple-bg);
}

.mxl-simple-nav .mxl-simple-nav__cta:hover {
  background: #353131;
  color: var(--mxl-simple-bg);
  text-decoration: none;
}

.mxl-simple-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
}

.mxl-hero-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Hero ── */
.mxl-simple-hero {
  width: 100%;
  margin: 0;
  text-align: center;
  padding: 6rem 5rem 4.5rem;
  border-bottom: 1px solid var(--mxl-simple-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mxl-simple-kicker {
  margin: 0 0 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--mxl-simple-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.mxl-kicker-symbol {
  display: inline-block;
  width: 1.1em;
  text-align: center;
  font-size: 1.05em;
  opacity: 0.9;
}

body.mxl-landing.mxl-landing-simple .mxl-simple-hero h1 {
  margin: 0 auto;
  max-width: 22ch;
  font-size: clamp(2.05rem, 1.2rem + 2.6vw, 2.85rem);
  line-height: 1.16;
  color: var(--mxl-simple-text);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

.mxl-typewriter-wrap {
  display: inline;
  color: var(--mxl-simple-accent);
}

.mxl-typewriter {
  /* Content set by JS */
}

.mxl-typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--mxl-simple-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: mxl-blink 0.72s steps(2, start) infinite;
}

@keyframes mxl-blink {
  to { opacity: 0; }
}

.mxl-simple-lead {
  margin: 1.1rem auto 0;
  max-width: 52ch;
  color: var(--mxl-simple-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  text-align: center;
}

.mxl-simple-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.mxl-simple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 9.2rem;
  padding: 0.78rem 1.4rem;
  border-radius: 4px;
  border: 1px solid var(--mxl-simple-border);
  text-decoration: none;
  color: var(--mxl-simple-text);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--mxl-simple-bg-weak);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mxl-simple-btn:visited {
  color: var(--mxl-simple-text);
}

.mxl-simple-btn:hover {
  background: var(--mxl-simple-bg-weak-hover);
  border-color: var(--mxl-simple-border-strong);
}

.mxl-simple-btn--primary {
  color: var(--mxl-simple-bg);
  font-weight: 700;
  background: var(--mxl-simple-text);
  border-color: transparent;
  box-shadow: none;
}

.mxl-simple-btn--primary:visited {
  color: var(--mxl-simple-bg);
}

.mxl-simple-btn--primary:hover {
  background: #353131;
  border-color: transparent;
  box-shadow: none;
}

/* ── Install command block ── */
.mxl-install-block {
  margin: 2.2rem auto 0;
  width: 100%;
  max-width: 27rem;
  text-align: left;
  overflow: hidden;
}

.mxl-install-tabs {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 0 1.25rem;
  border: 1px solid var(--mxl-simple-border);
  border-bottom: 0;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  background: var(--mxl-simple-bg-weak);
}

.mxl-install-tabs button {
  appearance: none;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 1rem 0;
  cursor: default;
  color: var(--mxl-simple-muted);
  line-height: 1;
  border-bottom: 2px solid transparent;
  font: inherit;
}

.mxl-install-tabs button[aria-selected="true"] {
  color: var(--mxl-simple-text);
  border-bottom-color: var(--mxl-simple-text);
}

.mxl-install-panel {
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  padding: 1rem;
}

.mxl-install-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 4px;
  background: transparent;
  border: 0;
  font-family: var(--mxl-code-font);
  font-size: 1rem;
  color: var(--mxl-simple-muted);
  cursor: pointer;
  text-align: left;
}

.mxl-install-command code {
  flex: 1;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mxl-install-command:hover {
  background: var(--mxl-simple-bg-weak-hover);
}

.mxl-install-copy-label {
  flex: 0 0 auto;
  color: var(--mxl-simple-faint);
  font-size: 0.85rem;
  line-height: 1;
}

.mxl-install-prompt {
  color: var(--mxl-simple-faint);
  user-select: none;
}

.mxl-install-highlight {
  color: var(--mxl-simple-text);
  font-weight: 500;
}

/* ── Hero feature checklist (opencode-style calm list) ── */
.mxl-hero-checklist {
  list-style: none;
  margin: 2.4rem auto 0;
  padding: 0;
  width: 100%;
  max-width: 34rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--mxl-simple-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.mxl-hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.mxl-hero-checklist b {
  color: var(--mxl-simple-text);
  font-weight: 600;
}

.mxl-hero-checklist__mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mxl-simple-faint);
}

/* ── Feature grid ── */
.mxl-feature-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--mxl-simple-border);
  border: 1px solid var(--mxl-simple-card-border);
}

.mxl-feature-card {
  padding: 1.8rem 1.6rem;
  background: var(--mxl-simple-bg);
  transition: background 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mxl-feature-card:hover {
  background: var(--mxl-simple-bg-weak);
}

.mxl-feature-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  color: var(--mxl-simple-accent);
  margin-bottom: 0.4rem;
}

.mxl-feature-icon svg {
  width: 18px;
  height: 18px;
}

.mxl-feature-card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--mxl-simple-text);
  letter-spacing: 0;
}

.mxl-feature-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--mxl-simple-muted);
}

/* ── Capability sections (centered, stacked) ── */
.mxl-cap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4.5rem 5rem;
  border-bottom: 1px solid var(--mxl-simple-border);
}

.mxl-cap__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  max-width: 52ch;
}

.mxl-cap .mxl-feature-icon {
  margin: 0 0 0.3rem;
}

.mxl-cap__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--mxl-simple-text);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.mxl-cap__link {
  color: inherit;
  text-decoration: none;
}

.mxl-cap__link:visited {
  color: inherit;
}

.mxl-cap__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mxl-cap__badge {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mxl-simple-faint);
  border: 1px solid var(--mxl-simple-border);
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
}

.mxl-cap__desc {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--mxl-simple-muted);
}

.mxl-cap__desc code,
.mxl-cap__caption code {
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  border-radius: 5px;
  padding: 0.05em 0.32em;
  color: var(--mxl-simple-accent);
  font-family: var(--mxl-code-font);
  font-size: 0.9em;
}

.mxl-cap__cmd {
  margin: 0.4rem 0 0;
}

.mxl-cap__cmds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.45rem 0 0;
}

.mxl-cap__cmd code,
.mxl-cap__cmds code {
  color: var(--mxl-simple-accent);
  font-family: var(--mxl-code-font);
  font-size: 0.9rem;
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  border-radius: 6px;
  padding: 0.32rem 0.62rem;
}

.mxl-cap__demo {
  width: 100%;
  max-width: 38rem;
  margin: 2.4rem auto 0;
}

.mxl-cap__demo--wide {
  max-width: 50rem;
}

.mxl-cap__demo .po-cartoon {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.mxl-cap__image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--mxl-simple-border);
  border-radius: 6px;
  background: var(--mxl-simple-bg-weak);
}

.mxl-cap__caption {
  margin: 1.6rem auto 0;
  max-width: 48ch;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--mxl-simple-muted);
}

.mxl-cap__caption a {
  color: var(--mxl-simple-accent);
  text-decoration: none;
  font-weight: 600;
}

.mxl-cap__caption a:visited {
  color: var(--mxl-simple-accent);
}

.mxl-cap__caption a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── How it works ── */
.mxl-how-section {
  width: 100%;
  margin-top: 0;
  padding: 4rem 5rem;
  text-align: center;
  border-bottom: 1px solid var(--mxl-simple-border);
}

.mxl-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mxl-simple-text);
  margin: 0 0 1.5rem;
  letter-spacing: 0;
}

.mxl-how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.mxl-how-step {
  flex: 1;
  max-width: 280px;
  padding: 1.8rem 1.4rem;
  text-align: center;
}

.mxl-how-num {
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--mxl-simple-accent);
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
}

.mxl-how-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mxl-simple-text);
}

.mxl-how-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--mxl-simple-muted);
}

.mxl-how-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2.2rem;
  color: var(--mxl-simple-faint);
}

.mxl-how-connector svg {
  width: 20px;
  height: 20px;
}

/* ── Landing footer ── */
.mxl-landing-foot {
  width: 100%;
  margin-top: 0;
  padding: 2rem 5rem;
  border-top: 0;
}

.mxl-landing-foot__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.mxl-landing-foot__brand {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mxl-simple-faint);
}

.mxl-landing-foot__copyright {
  font-size: 0.82rem;
  color: var(--mxl-simple-faint);
}

/* ── Responsive ── */
@media (max-width: 65rem) {
  .mxl-simple-shell {
    border-left: 0;
    border-right: 0;
  }

  .mxl-simple-topbar,
  .mxl-simple-hero,
  .mxl-cap,
  .mxl-how-section,
  .mxl-landing-foot {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 820px) {
  .mxl-simple-topbar {
    align-items: center;
    flex-wrap: wrap;
    height: auto;
    min-height: 80px;
  }

  .mxl-simple-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .mxl-feature-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 0;
  }

  .mxl-how-steps {
    flex-direction: column;
    align-items: center;
  }

  .mxl-how-connector {
    padding-top: 0;
    transform: rotate(90deg);
  }
}

@media (max-width: 540px) {
  .mxl-feature-grid {
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .mxl-simple-hero,
  .mxl-cap {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  body.mxl-landing.mxl-landing-simple .mxl-simple-hero h1 {
    font-size: 1.6rem;
  }

  .mxl-simple-lead {
    line-height: 1.75;
  }

  .mxl-install-command code {
    max-width: calc(100vw - 7rem);
  }

  .mxl-landing-foot__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================================
   Documentation page polish (applies to non-landing pages only)
   ===================================================================== */

/* Give the content column a more editorial rhythm */
body:not(.mxl-landing) .content {
  font-family: var(--mxl-body-font);
}

body:not(.mxl-landing) .content h1 {
  font-size: 1.75rem;
}

body:not(.mxl-landing) .content h2 {
  font-size: 1.35rem;
}

body:not(.mxl-landing) .content h3 {
  font-size: 1.12rem;
}

body:not(.mxl-landing) .content h4 {
  font-size: 1rem;
}

body:not(.mxl-landing) article {
  max-width: none;
  width: 100%;
}

body:not(.mxl-landing) .content p {
  line-height: 1.6;
}

body:not(.mxl-landing) .content ul,
body:not(.mxl-landing) .content ol,
body:not(.mxl-landing) .content dl:not(.field-list),
body:not(.mxl-landing) .content blockquote,
body:not(.mxl-landing) .content .admonition {
  max-width: 76ch;
}

body:not(.mxl-landing) .content li {
  color: var(--mxl-text-muted);
  font-size: 0.97rem;
  line-height: 1.5;
  margin: 0.2rem 0;
}

body:not(.mxl-landing) .content a:not(.headerlink) {
  color: var(--color-brand-content);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--mxl-border-rgb), 0.28);
  transition: color 0.15s ease, border-color 0.15s ease;
}

body:not(.mxl-landing) .content a:not(.headerlink):hover {
  color: var(--color-brand-primary);
  border-bottom-color: var(--color-brand-primary);
}

body[data-theme="dark"]:not(.mxl-landing) .content a:not(.headerlink),
body[data-theme="auto"][data-default-mode="dark"]:not(.mxl-landing) .content a:not(.headerlink) {
  border-bottom-color: rgba(132, 198, 255, 0.3);
}

/* Headerlink (pilcrow) — subtler */
.content .headerlink {
  opacity: 0;
  margin-left: 0.35rem;
  color: var(--color-brand-primary);
  font-weight: 400;
  transition: opacity 0.15s ease;
}

.content h1:hover .headerlink,
.content h2:hover .headerlink,
.content h3:hover .headerlink,
.content h4:hover .headerlink,
.content h5:hover .headerlink,
.content h6:hover .headerlink {
  opacity: 0.8;
}

/* Sidebar brand — frame the logo for more presence in both themes */
.sidebar-brand {
  padding: 1.1rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  text-decoration: none;
}

.sidebar-brand:hover {
  text-decoration: none;
}

.sidebar-logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(145deg,
    rgba(18, 100, 163, 0.06),
    rgba(18, 100, 163, 0.02));
  border: 1px solid rgba(18, 100, 163, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 8px 18px -14px rgba(13, 42, 78, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-brand:hover .sidebar-logo-container {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 22px -14px rgba(13, 42, 78, 0.55);
}

body[data-theme="dark"] .sidebar-logo-container,
body[data-theme="auto"][data-default-mode="dark"] .sidebar-logo-container {
  background: linear-gradient(145deg,
    rgba(102, 199, 255, 0.08),
    rgba(102, 199, 255, 0.02));
  border-color: rgba(132, 198, 255, 0.18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 22px -16px rgba(0, 0, 0, 0.65);
}

.sidebar-brand img.sidebar-logo {
  max-height: none;
  width: 100%;
  height: 100%;
  display: block;
}

.sidebar-brand-text {
  font-weight: 700;
  letter-spacing: -0.005em;
  font-size: 0.98rem !important;
  text-transform: none;
  color: var(--color-foreground-primary);
}

/* Sidebar navigation — refined spacing and current-item treatment */
.sidebar-tree {
  padding-top: 0.3rem;
}

.sidebar-tree .caption,
.sidebar-tree p.caption {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-foreground-secondary);
  opacity: 0.85;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  padding: 0 1rem;
}

.sidebar-tree .reference {
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 0.32rem 0.7rem;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-tree .reference:hover {
  background: rgba(var(--mxl-border-rgb), 0.08);
}

.sidebar-tree .current > .reference,
.sidebar-tree .current-page > .reference {
  background: rgba(18, 100, 163, 0.12);
  color: var(--color-brand-primary);
  font-weight: 600;
}

body[data-theme="dark"] .sidebar-tree .current > .reference,
body[data-theme="dark"] .sidebar-tree .current-page > .reference,
body[data-theme="auto"][data-default-mode="dark"] .sidebar-tree .current > .reference,
body[data-theme="auto"][data-default-mode="dark"] .sidebar-tree .current-page > .reference {
  background: rgba(102, 199, 255, 0.14);
  color: var(--color-brand-primary);
}

/* Right-side TOC — refined list */
.toc-drawer .toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-foreground-secondary);
  opacity: 0.85;
}

.toc-tree a.reference {
  font-size: 0.86rem;
  line-height: 1.5;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  color: var(--color-foreground-secondary);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.toc-tree a.reference:hover {
  color: var(--color-brand-primary);
  background: rgba(var(--mxl-border-rgb), 0.05);
}

.toc-tree .scroll-current > a.reference {
  color: var(--color-brand-primary);
  font-weight: 600;
  border-left-color: var(--color-brand-primary);
  background: rgba(18, 100, 163, 0.06);
}

/* Refined admonitions */
.content .admonition,
.content .note,
.content .tip,
.content .warning,
.content .important,
.content .caution,
.content .seealso {
  border-radius: 12px;
  border: 1px solid var(--mxl-card-border);
  border-left: 4px solid var(--color-brand-primary);
  background: var(--mxl-surface);
  box-shadow: 0 4px 14px -10px rgba(13, 42, 78, 0.22);
  padding: 0.8rem 1.1rem;
  margin: 1.2rem 0;
  font-size: 0.94rem;
}

.content .admonition .admonition-title,
.content .admonition > p.admonition-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand-primary);
  margin: 0 0 0.45rem 0;
  background: transparent;
  padding: 0 0 0 1.6rem;
  line-height: 1.4;
  min-height: 1.1rem;
}

/* Position Furo's masked SVG icon to the left of the title text
   rather than stacked above it. */
.content .admonition .admonition-title::before,
.content .admonition > p.admonition-title::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  transform: translateY(-50%);
  background-color: var(--color-brand-primary);
}

/* No title-bar background — keep the card look consistent */
.content .admonition .admonition-title::after,
.content .admonition > p.admonition-title::after {
  display: none;
}

.content .admonition p,
.content .admonition li {
  font-size: 0.94rem;
  color: var(--color-foreground-primary);
}

.content .warning,
.content .caution {
  border-left-color: #d97706;
}

.content .warning .admonition-title,
.content .caution .admonition-title {
  color: #b45309;
}

.content .warning .admonition-title::before,
.content .caution .admonition-title::before {
  background-color: #b45309;
}

body[data-theme="dark"] .content .warning .admonition-title,
body[data-theme="dark"] .content .caution .admonition-title {
  color: #fbbf24;
}

body[data-theme="dark"] .content .warning .admonition-title::before,
body[data-theme="dark"] .content .caution .admonition-title::before {
  background-color: #fbbf24;
}

body[data-theme="dark"] .content .warning,
body[data-theme="dark"] .content .caution {
  border-left-color: #f59e0b;
}

/* Refined tables */
body:not(.mxl-landing) .content table.docutils {
  border-radius: 12px;
  font-size: 0.92rem;
  box-shadow: 0 4px 18px -14px rgba(13, 42, 78, 0.3);
}

body:not(.mxl-landing) .content table.docutils thead {
  background: rgba(18, 100, 163, 0.08);
}

body:not(.mxl-landing) .content table.docutils thead th {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-foreground-primary);
  border-bottom: 1px solid var(--mxl-card-border);
  padding: 0.7rem 1rem;
}

body:not(.mxl-landing) .content table.docutils tbody tr:nth-child(even) {
  background: rgba(var(--mxl-border-rgb), 0.03);
}

body:not(.mxl-landing) .content table.docutils tbody tr:hover {
  background: rgba(var(--mxl-border-rgb), 0.06);
}

body:not(.mxl-landing) .content table.docutils tbody td {
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--mxl-card-border);
}

/* Prev/next navigation at the bottom of each doc page */
.related-pages {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mxl-card-border);
  display: flex;
  gap: 1rem;
}

.related-pages a {
  flex: 1;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--mxl-card-border);
  background: var(--mxl-surface);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.related-pages a:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--mxl-border-rgb), 0.28);
  box-shadow: 0 8px 22px -14px rgba(13, 42, 78, 0.3);
}

.related-pages .page-info .title {
  font-weight: 600;
  color: var(--color-foreground-primary);
}

.related-pages .context {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-foreground-secondary);
  opacity: 0.8;
}

/* Normalize heading rhythm after common first elements */
body:not(.mxl-landing) .content > section > p:first-of-type,
body:not(.mxl-landing) .content > p:first-of-type {
  font-size: 1.02rem;
  color: var(--color-foreground-primary);
}

/* Figure captions */
.content figure figcaption,
.content .figure .caption {
  font-size: 0.85rem;
  color: var(--color-foreground-secondary);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Keep the author-defined override block tidy on small screens */
@media (max-width: 768px) {
  body:not(.mxl-landing) article {
    max-width: 100%;
  }

  .content .highlight pre {
    padding: 0.95rem 0.95rem !important;
  }

  .related-pages {
    flex-direction: column;
  }
}

/* ==========================================================================
   Static terminal demos for the landing page.
   ========================================================================== */

.po-cartoon {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.po-term {
  width: 100%;
  border-radius: 6px;
  background: var(--mxl-simple-bg);
  border: 1px solid var(--mxl-simple-border);
  box-shadow: none;
  overflow: hidden;
  font-family: var(--mxl-code-font);
}

.po-term-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  background: var(--mxl-simple-bg-weak);
  border-bottom: 1px solid var(--mxl-simple-border);
}

.po-term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.po-term-dot--r { background: #ff5f57; }
.po-term-dot--y { background: #febc2e; }
.po-term-dot--g { background: #28c840; }

.po-term-title {
  margin-left: 0.6rem;
  font-family: var(--mxl-code-font);
  font-size: 0.78rem;
  color: var(--mxl-simple-faint);
  letter-spacing: 0;
}

.po-term-body {
  padding: 1.05rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: var(--mxl-simple-text);
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 13rem;
}

.po-term-line {
  display: flex;
  align-items: baseline;
  white-space: pre;
}

.po-term-prompt {
  color: var(--mxl-simple-accent);
  font-weight: 700;
  margin-right: 0.55rem;
  user-select: none;
}

.po-term-cmd {
  color: var(--mxl-simple-text);
  white-space: pre;
}

.po-term-cursor {
  display: none;
  width: 8px;
  height: 1.05em;
  background: var(--mxl-simple-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  transform: translateY(2px);
  animation: none;
}

@keyframes po-term-blink {
  to { opacity: 0; }
}

.po-term-dots {
  color: var(--mxl-simple-muted);
  letter-spacing: 0.1em;
  min-height: 1.2em;
}

.po-term-chart {
  margin-top: 0.1rem;
  padding: 0.55rem 0.4rem 0.15rem;
  border-radius: 6px;
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  opacity: 0;
  transform: none;
  transition: none;
  min-height: 9.5rem;
}

.po-term-chart--visible {
  opacity: 1;
  transform: translateY(0);
}

.po-chart-caption {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0 0.55rem 0.25rem;
  font-family: var(--mxl-code-font);
  font-size: 0.78rem;
  color: var(--mxl-simple-muted);
  letter-spacing: 0.02em;
}

.po-chart-caption-label {
  font-weight: 700;
  color: var(--mxl-simple-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

.po-chart-caption-arrow {
  color: var(--mxl-simple-faint);
  font-weight: 700;
}

.po-chart-caption-sub {
  color: var(--mxl-simple-faint);
  font-size: 0.72rem;
  margin-left: auto;
}

.po-trend {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.po-trend-grid line {
  stroke: var(--mxl-simple-border);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.po-trend-axis {
  stroke: var(--mxl-simple-faint);
  stroke-width: 1;
}

.po-trend-tick {
  font-family: var(--mxl-code-font);
  font-size: 8px;
  fill: var(--mxl-simple-faint);
}

.po-trend-axis-label {
  font-family: var(--mxl-code-font);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--mxl-simple-accent);
}

.po-trend-area {
  fill: url(#po-trend-area-grad);
  fill: rgba(33, 30, 30, 0.06);
  opacity: 1;
  transition: none;
}

.po-trend-line {
  fill: none;
  stroke: var(--mxl-simple-accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: none;
  stroke-dasharray: 560;
  stroke-dashoffset: 0;
}

.po-term-chart--visible .po-trend-line {
  animation: none;
}

@keyframes po-trend-draw {
  to { stroke-dashoffset: 0; }
}

.po-term-chart--visible .po-trend-area {
  opacity: 1;
}

.po-trend-points circle {
  fill: var(--mxl-simple-bg);
  stroke: var(--mxl-simple-accent);
  stroke-width: 1.6;
  opacity: 1;
  transform-origin: center;
  transform: none;
}

.po-term-chart--visible .po-trend-points circle {
  animation: none;
  animation-delay: 0s;
}

@keyframes po-point-pop {
  to { opacity: 1; transform: scale(1); }
}

.po-cartoon-caption {
  margin: 1.2rem auto 0;
  max-width: 54ch;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--mxl-simple-muted);
  text-align: center;
}

.po-cartoon-caption code {
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  border-radius: 5px;
  padding: 0.05em 0.32em;
  color: var(--mxl-simple-accent);
  font-family: var(--mxl-code-font);
  font-size: 0.92em;
}

/* Quickstart cartoon (three commands) */
.po-term-body--quickstart {
  gap: 0.75rem;
  min-height: 9rem;
  justify-content: center;
}

.po-qs-step {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  transform: none;
  transition: none;
}

.po-qs-step--visible {
  opacity: 1;
  transform: translateY(0);
}

.po-qs-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 4px;
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  color: var(--mxl-simple-accent);
  font-family: var(--mxl-code-font);
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 0.6rem;
  user-select: none;
  align-self: center;
}

.po-qs-cmd {
  color: var(--mxl-simple-text);
  white-space: pre;
}

.po-qs-cursor {
  display: none;
}

.po-qs-step--typing .po-qs-cursor {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .po-term-cursor { animation: none; opacity: 0.55; }
  .po-trend-line { stroke-dashoffset: 0; animation: none; }
  .po-trend-area { opacity: 1; transition: none; }
  .po-trend-points circle { opacity: 1; transform: scale(1); animation: none; }
  .po-term-chart { opacity: 1; transform: none; transition: none; }
  .po-qs-step { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 540px) {
  .po-cartoon { padding-left: 1rem; padding-right: 1rem; }
  .po-term-body { font-size: 0.82rem; padding: 0.85rem 0.8rem 1rem; }
  .po-term-body--quickstart { min-height: 9rem; }
  .po-term-chart { padding: 0.4rem 0.25rem 0.1rem; min-height: 8rem; }
}

/* --- Docs responsive layout refinements (non-landing pages) ---
   Furo hardcodes the content, sidebar, and TOC widths. Keep the landing page
   untouched, but make the documentation shell adapt across laptop, tablet,
   and wide desktop viewports. */
body:not(.mxl-landing) {
  --sidebar-item-spacing-vertical: 0.3rem;
  --mxl-doc-sidebar-width: 14em;
  --mxl-doc-toc-width: 12.5em;
  --mxl-doc-content-max: 56em;
  --mxl-doc-gutter: 1.5em;
}

body:not(.mxl-landing) .content {
  box-sizing: border-box;
  max-width: 100%;
  padding-left: clamp(1.25rem, 2.4vw, 3rem);
  padding-right: clamp(1.25rem, 2.4vw, 3rem);
  width: min(
    var(--mxl-doc-content-max),
    calc(100vw - var(--mxl-doc-sidebar-width) - var(--mxl-doc-gutter))
  );
}

body:not(.mxl-landing) .sidebar-container {
  width: var(--mxl-doc-sidebar-width);
}

body:not(.mxl-landing) .toc-drawer {
  width: var(--mxl-doc-toc-width);
}

body:not(.mxl-landing) .main {
  justify-content: center;
}

body:not(.mxl-landing) .content li {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

body:not(.mxl-landing) .content .highlight,
body:not(.mxl-landing) .content .table-wrapper {
  max-width: 100%;
}

body:not(.mxl-landing) .content .table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body:not(.mxl-landing) .content .table-wrapper table.docutils {
  min-width: 100%;
}

/* Keep the left drawer from stretching to the viewport edge on desktop. */
@media (min-width: 63.01em) {
  body:not(.mxl-landing) .sidebar-drawer {
    width: var(--mxl-doc-sidebar-width);
    min-width: var(--mxl-doc-sidebar-width);
  }
}

/* Treat the right TOC as an off-canvas drawer until there is real room for
   all three columns. This keeps 13-inch laptops focused on nav + content. */
@media (min-width: 82.01em) and (max-width: 87.99em) {
  body:not(.mxl-landing) .toc-content-icon {
    display: flex;
  }

  body:not(.mxl-landing) .toc-drawer {
    border-left: 1px solid var(--color-background-border);
    height: 100vh;
    position: fixed;
    right: calc(0px - var(--mxl-doc-toc-width));
    top: 0;
  }

  body:not(.mxl-landing) .toc-tree {
    border-left: none;
    font-size: var(--toc-font-size--mobile);
  }
}

@media (min-width: 88em) {
  body:not(.mxl-landing) .content {
    width: min(
      var(--mxl-doc-content-max),
      calc(
        100vw - var(--mxl-doc-sidebar-width) - var(--mxl-doc-toc-width) -
        var(--mxl-doc-gutter)
      )
    );
  }
}

@media (min-width: 104em) {
  body:not(.mxl-landing) {
    --mxl-doc-sidebar-width: 15em;
    --mxl-doc-toc-width: 13.5em;
    --mxl-doc-content-max: 58em;
    --mxl-doc-gutter: 2em;
  }
}

/* Ultra-wide monitors leave a very large right-side content area after the
   fixed left sidebar. Bias the content+TOC group slightly left so the main
   reading column remains the visual anchor on 32-inch-class screens. */
@media (min-width: 120em) {
  body:not(.mxl-landing) .main {
    box-sizing: border-box;
    padding-right: clamp(0rem, calc(30vw - 35rem), 10rem);
  }
}

@media (max-width: 67em) {
  body:not(.mxl-landing) .content {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    width: min(
      100%,
      calc(100vw - var(--mxl-doc-sidebar-width) - 1rem)
    );
  }
}

@media (max-width: 63em) {
  body:not(.mxl-landing) .content {
    padding-left: clamp(0.95rem, 4vw, 1.2rem);
    padding-right: clamp(0.95rem, 4vw, 1.2rem);
    width: 100%;
  }

  body:not(.mxl-landing) .sidebar-container,
  body:not(.mxl-landing) .sidebar-drawer {
    min-width: 15em;
    width: 15em;
  }
}

@media (max-width: 768px) {
  body:not(.mxl-landing) .content h1 {
    font-size: 1.55rem;
  }

  body:not(.mxl-landing) .content h2 {
    font-size: 1.22rem;
  }

  body:not(.mxl-landing) .content h3 {
    font-size: 1.05rem;
  }

  body:not(.mxl-landing) .content .table-wrapper table.docutils {
    max-width: none;
    min-width: 34rem;
  }
}

@media (min-width: 63.01em) and (max-height: 720px) {
  body:not(.mxl-landing) .sidebar-brand {
    gap: 0.35rem;
    padding-bottom: 0.55rem;
    padding-top: 0.75rem;
  }

  body:not(.mxl-landing) .sidebar-logo-container {
    border-radius: 14px;
    height: 52px;
    padding: 8px;
    width: 52px;
  }

  body:not(.mxl-landing) .sidebar-tree .caption,
  body:not(.mxl-landing) .sidebar-tree p.caption {
    margin-top: 0.85rem;
  }
}

/* --- OpenCode-style documentation shell (non-landing pages) --- */
body.mxl-docs {
  --mxl-simple-bg: #fffdfd;
  --mxl-simple-bg-weak: #f7f6f4;
  --mxl-simple-bg-weak-hover: #efeeeb;
  --mxl-simple-border: rgba(33, 30, 30, 0.12);
  --mxl-simple-border-strong: #dedbd8;
  --mxl-simple-text: #211e1e;
  --mxl-simple-muted: #656363;
  --mxl-simple-faint: #8e8b8b;
  --mxl-simple-interactive: #f5f3c7;
  --mxl-doc-sidebar-width: 17rem;
  --mxl-doc-toc-width: 14.5rem;
  --mxl-doc-content-max: 50rem;
  --mxl-border-rgb: 33, 30, 30;
  --mxl-card-border: var(--mxl-simple-border);
  --mxl-text-muted: #3f3c3c;
  --mxl-surface: var(--mxl-simple-bg);
  --mxl-surface-subtle: var(--mxl-simple-bg-weak);
  --mxl-code-surface: var(--mxl-simple-bg-weak);
  --mxl-code-border: var(--mxl-simple-border);
  --mxl-code-shadow: none;
  --mxl-inline-code-bg: var(--mxl-simple-bg-weak);
  --mxl-inline-code-border: var(--mxl-simple-border);
  --mxl-inline-code-color: var(--mxl-simple-text);
  --color-background-primary: var(--mxl-simple-bg);
  --color-background-secondary: var(--mxl-simple-bg-weak);
  --color-background-hover: var(--mxl-simple-bg-weak-hover);
  --color-background-border: var(--mxl-simple-border);
  --color-foreground-primary: var(--mxl-simple-text);
  --color-foreground-secondary: var(--mxl-simple-muted);
  --color-foreground-muted: var(--mxl-simple-faint);
  --color-foreground-border: var(--mxl-simple-border-strong);
  --color-brand-primary: var(--mxl-simple-text);
  --color-brand-content: var(--mxl-simple-text);
  --color-brand-visited: var(--mxl-simple-text);
  --color-sidebar-background: var(--mxl-simple-bg);
  --color-sidebar-background-border: var(--mxl-simple-border);
  --color-sidebar-brand-text: var(--mxl-simple-text);
  --color-sidebar-caption-text: var(--mxl-simple-faint);
  --color-sidebar-link-text: var(--mxl-simple-muted);
  --color-sidebar-link-text--top-level: var(--mxl-simple-text);
  --color-sidebar-item-background: transparent;
  --color-sidebar-item-background--current: var(--mxl-simple-interactive);
  --color-sidebar-item-background--hover: var(--mxl-simple-bg-weak);
  --color-sidebar-search-background: var(--mxl-simple-bg-weak);
  --color-sidebar-search-background--focus: var(--mxl-simple-bg);
  --color-sidebar-search-border: var(--mxl-simple-border);
  --color-sidebar-search-icon: var(--mxl-simple-faint);
  --color-toc-background: var(--mxl-simple-bg);
  --color-toc-title-text: var(--mxl-simple-faint);
  --color-toc-item-text: var(--mxl-simple-muted);
  --color-toc-item-text--hover: var(--mxl-simple-text);
  --color-toc-item-text--active: var(--mxl-simple-text);
  background: var(--mxl-simple-bg);
  color: var(--mxl-simple-text);
}

body.mxl-docs .page,
body.mxl-docs .main {
  background: var(--mxl-simple-bg);
}

body.mxl-docs .sidebar-drawer {
  background: var(--mxl-simple-bg);
  border-right: 1px solid var(--mxl-simple-border);
  flex: 0 0 var(--mxl-doc-sidebar-width);
  justify-content: flex-start;
  min-width: var(--mxl-doc-sidebar-width);
  width: var(--mxl-doc-sidebar-width);
}

body.mxl-docs .sidebar-container {
  width: var(--mxl-doc-sidebar-width);
}

body.mxl-docs .sidebar-sticky {
  height: 100vh;
}

body.mxl-docs .sidebar-brand {
  align-items: center;
  border-bottom: 1px solid var(--mxl-simple-border);
  display: flex;
  flex-direction: row;
  gap: 0.65rem;
  margin: 0;
  min-height: 4.75rem;
  padding: 1rem 1.15rem;
}

body.mxl-docs .sidebar-logo-container {
  background: transparent;
  border: 1px solid var(--mxl-simple-border);
  border-radius: 6px;
  box-shadow: none;
  height: 2.25rem;
  margin: 0;
  padding: 0.25rem;
  width: 2.25rem;
}

body.mxl-docs .sidebar-brand:hover .sidebar-logo-container {
  box-shadow: none;
  transform: none;
}

body.mxl-docs .sidebar-brand img.sidebar-logo {
  height: 100%;
  width: 100%;
}

body.mxl-docs .sidebar-brand-text {
  color: var(--mxl-simple-text);
  font-family: var(--mxl-code-font);
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: 0;
}

body.mxl-docs .sidebar-search-container {
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  border-radius: 6px;
  margin: 0.9rem 1rem 0.55rem;
}

body.mxl-docs .sidebar-search-container:focus-within,
body.mxl-docs .sidebar-search-container:hover {
  background: var(--mxl-simple-bg);
  border-color: var(--mxl-simple-border-strong);
}

body.mxl-docs .sidebar-search {
  border: 0;
  color: var(--mxl-simple-text);
  font-family: var(--mxl-code-font);
  min-height: 2.4rem;
}

body.mxl-docs .sidebar-tree {
  font-family: var(--mxl-body-font);
  margin-top: 0.25rem;
  padding: 0 0.65rem 1.2rem;
}

body.mxl-docs .sidebar-tree .caption,
body.mxl-docs .sidebar-tree p.caption {
  color: var(--mxl-simple-faint);
  font-family: var(--mxl-code-font);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.65rem 0.4rem 0.25rem;
}

body.mxl-docs .sidebar-tree li > ul {
  margin-left: 0.75rem;
}

body.mxl-docs .sidebar-tree .reference {
  border-radius: 6px;
  color: var(--mxl-simple-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.38rem 0.55rem;
}

body.mxl-docs .sidebar-tree .reference:hover {
  background: var(--mxl-simple-bg-weak);
  color: var(--mxl-simple-text);
}

body.mxl-docs .sidebar-tree .current > .reference,
body.mxl-docs .sidebar-tree .current-page > .reference,
body.mxl-docs .sidebar nav a.current {
  background: var(--mxl-simple-interactive);
  color: var(--mxl-simple-text);
  font-weight: 600;
}

body.mxl-docs .sidebar-tree label {
  border-radius: 6px;
}

body.mxl-docs .main {
  justify-content: flex-start;
}

body.mxl-docs .content {
  box-sizing: border-box;
  max-width: none;
  padding-left: clamp(2rem, 4vw, 4.25rem);
  padding-right: clamp(1.5rem, 3vw, 3.25rem);
  width: min(
    var(--mxl-doc-content-max),
    calc(100vw - var(--mxl-doc-sidebar-width) - var(--mxl-doc-toc-width))
  );
}

body.mxl-docs .article-container,
body.mxl-docs article {
  max-width: none;
  width: 100%;
}

body.mxl-docs .content-icon-container {
  display: none;
}

.mxl-doc-topbar {
  align-items: center;
  background: rgba(255, 253, 253, 0.94);
  border-bottom: 1px solid var(--mxl-simple-border);
  display: flex;
  gap: 1.4rem;
  justify-content: space-between;
  margin: 0 0 2.4rem;
  min-height: 4.75rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.mxl-doc-topbar__brand {
  align-items: center;
  color: var(--mxl-simple-text);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: var(--mxl-code-font);
  font-size: 0.95rem;
  font-weight: 700;
  gap: 0.55rem;
  text-decoration: none;
}

.mxl-doc-topbar__brand:visited {
  color: var(--mxl-simple-text);
}

.mxl-doc-topbar__brand:hover {
  color: var(--mxl-simple-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mxl-doc-topbar__brand img {
  height: 1.55rem;
  width: 1.55rem;
}

.mxl-doc-topbar__links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  justify-content: flex-end;
}

.mxl-doc-topbar__links a {
  border-bottom: 0 !important;
  color: var(--mxl-simple-muted) !important;
  font-family: var(--mxl-code-font);
  font-size: 0.82rem;
  text-decoration: none;
}

.mxl-doc-topbar__links a:hover {
  color: var(--mxl-simple-text) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.mxl-docs .toc-drawer {
  background: var(--mxl-simple-bg);
  border-left: 1px solid var(--mxl-simple-border);
  box-sizing: border-box;
  flex: 0 0 var(--mxl-doc-toc-width);
  padding: 0 1.25rem;
  width: var(--mxl-doc-toc-width);
}

body.mxl-docs .toc-sticky {
  padding-top: 4.75rem;
}

body.mxl-docs .toc-title {
  color: var(--mxl-simple-faint);
  font-family: var(--mxl-code-font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body.mxl-docs .toc-tree {
  border-left: 0;
  font-family: var(--mxl-body-font);
  padding-left: 0;
}

body.mxl-docs .toc-tree a.reference {
  border-left: 2px solid transparent;
  border-radius: 4px;
  color: var(--mxl-simple-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  padding: 0.22rem 0.55rem;
}

body.mxl-docs .toc-tree a.reference:hover,
body.mxl-docs .toc-tree .scroll-current > a.reference {
  background: var(--mxl-simple-bg-weak);
  border-left-color: var(--mxl-simple-text);
  color: var(--mxl-simple-text);
}

body.mxl-docs .content h1,
body.mxl-docs .content h2,
body.mxl-docs .content h3,
body.mxl-docs .content h4 {
  color: var(--mxl-simple-text);
  font-family: var(--mxl-code-font);
  letter-spacing: 0;
}

body.mxl-docs .content h1 {
  border-bottom: 0;
  font-size: 2.15rem;
  line-height: 1.14;
  margin: 0 0 1rem;
  padding: 0;
}

body.mxl-docs .content h2 {
  border-top: 1px solid var(--mxl-simple-border);
  font-size: 1.35rem;
  line-height: 1.25;
  margin-top: 2.7rem;
  padding-top: 2rem;
}

body.mxl-docs .content h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin-top: 2rem;
}

body.mxl-docs .content h4 {
  font-size: 0.98rem;
  letter-spacing: 0;
}

body.mxl-docs .content p,
body.mxl-docs .content li {
  color: var(--mxl-text-muted);
  font-size: 0.98rem;
  line-height: 1.68;
}

body.mxl-docs .content > section > p:first-of-type,
body.mxl-docs .content > p:first-of-type {
  color: var(--mxl-text-muted);
  font-size: 1rem;
}

body.mxl-docs .content a:not(.headerlink) {
  border-bottom: 1px solid var(--mxl-simple-border);
  color: var(--mxl-simple-text);
  text-decoration: none;
}

body.mxl-docs .content a:not(.headerlink):hover {
  border-bottom-color: var(--mxl-simple-text);
  color: var(--mxl-simple-text);
}

body.mxl-docs .content code.literal {
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  border-radius: 5px;
  color: var(--mxl-simple-text);
  font-family: var(--mxl-code-font);
  padding: 0.08rem 0.33rem;
}

body.mxl-docs .content .highlight,
body.mxl-docs .content > pre,
body.mxl-docs .content > div > pre:not(.highlight pre) {
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  border-radius: 6px;
  box-shadow: none;
}

body.mxl-docs .content .highlight pre {
  font-size: 0.88rem;
  line-height: 1.65;
  padding: 1rem 1.1rem !important;
}

body.mxl-docs .content .admonition,
body.mxl-docs .content .note,
body.mxl-docs .content .tip,
body.mxl-docs .content .warning,
body.mxl-docs .content .important,
body.mxl-docs .content .caution,
body.mxl-docs .content .seealso {
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  border-left: 4px solid var(--mxl-simple-text);
  border-radius: 6px;
  box-shadow: none;
}

body.mxl-docs .content .admonition .admonition-title,
body.mxl-docs .content .admonition > p.admonition-title {
  color: var(--mxl-simple-text);
  font-family: var(--mxl-code-font);
  letter-spacing: 0.08em;
}

body.mxl-docs .content .admonition .admonition-title::before,
body.mxl-docs .content .admonition > p.admonition-title::before {
  background-color: var(--mxl-simple-text);
}

body.mxl-docs .content table.docutils {
  border: 1px solid var(--mxl-simple-border);
  border-radius: 6px;
  box-shadow: none;
}

body.mxl-docs .content table.docutils thead {
  background: var(--mxl-simple-bg-weak);
}

body.mxl-docs .content table.docutils tbody tr:nth-child(even),
body.mxl-docs .content table.docutils tbody tr:hover {
  background: transparent;
}

body.mxl-docs .content table.docutils th,
body.mxl-docs .content table.docutils td {
  border-color: var(--mxl-simple-border);
}

body.mxl-docs .content blockquote {
  background: var(--mxl-simple-bg-weak);
  border-left-color: var(--mxl-simple-text);
  border-radius: 6px;
  box-shadow: none;
}

body.mxl-docs .content figure,
body.mxl-docs .content .figure {
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

body.mxl-docs .content figure img,
body.mxl-docs .content .figure img {
  border-radius: 6px;
}

body.mxl-docs .related-pages {
  border-top: 1px solid var(--mxl-simple-border);
  gap: 1rem;
}

body.mxl-docs .related-pages a {
  background: var(--mxl-simple-bg-weak);
  border: 1px solid var(--mxl-simple-border);
  border-radius: 6px;
  box-shadow: none;
}

body.mxl-docs .related-pages a:hover {
  border-color: var(--mxl-simple-border-strong);
  box-shadow: none;
  transform: none;
}

body.mxl-docs .bottom-of-page {
  border-top: 1px solid var(--mxl-simple-border);
  color: var(--mxl-simple-faint);
}

@media (max-width: 82em) {
  body.mxl-docs .content {
    width: min(
      var(--mxl-doc-content-max),
      calc(100vw - var(--mxl-doc-sidebar-width))
    );
  }

  body.mxl-docs .toc-content-icon {
    display: flex;
  }

  body.mxl-docs .toc-drawer {
    border-left: 1px solid var(--mxl-simple-border);
    height: 100vh;
    position: fixed;
    right: calc(0px - var(--mxl-doc-toc-width));
    top: 0;
  }
}

@media (max-width: 63em) {
  body.mxl-docs,
  body.mxl-docs .page,
  body.mxl-docs .main {
    max-width: 100vw;
    overflow-x: hidden;
    width: 100%;
  }

  body.mxl-docs .main,
  body.mxl-docs .content,
  body.mxl-docs .article-container,
  body.mxl-docs article {
    min-width: 0;
  }

  body.mxl-docs .sidebar-drawer {
    height: 100vh;
    left: calc(0px - var(--mxl-doc-sidebar-width));
    position: fixed;
    top: 0;
  }

  body.mxl-docs .mobile-header {
    background: var(--mxl-simple-bg);
    border-bottom: 1px solid var(--mxl-simple-border);
  }

  body.mxl-docs .content {
    box-sizing: border-box;
    flex: 0 1 auto;
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100vw;
  }

  body.mxl-docs .article-container,
  body.mxl-docs article,
  body.mxl-docs article > section {
    box-sizing: border-box;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.mxl-docs .content p,
  body.mxl-docs .content li,
  body.mxl-docs .content blockquote,
  body.mxl-docs .content .admonition {
    box-sizing: border-box;
    max-width: calc(100vw - 2rem) !important;
    overflow-wrap: anywhere;
  }

  body.mxl-docs .content .highlight {
    box-sizing: border-box;
    max-width: calc(100vw - 2rem) !important;
    overflow-x: auto;
  }

  .mxl-doc-topbar {
    display: none;
  }
}

@media (max-width: 42em) {
  body.mxl-docs .content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.mxl-docs .content h1 {
    font-size: 1.65rem;
  }

  body.mxl-docs .content h2 {
    font-size: 1.2rem;
  }

  body.mxl-docs .content .table-wrapper table.docutils {
    min-width: 34rem;
  }
}
