.xp-mistral-large-4 {
  --ml-paper: #f4ecdc;
  --ml-card: #fbf6ea;
  --ml-ink: #1d1b1a;
  --ml-muted: #4f4840;
  --ml-dot: #ddd1ba;
  --ml-orange: #ff5a1f;
  --ml-key: #b23a0a;
  --ml-blue: #2a5bd7;
  background-color: var(--ml-paper);
  background-image: radial-gradient(var(--ml-dot) 1.6px, transparent 1.8px);
  background-size: 22px 22px;
  color: var(--ml-ink);
  font-family: "Work Sans", "Avenir Next", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  padding: 3rem 1.25rem 4rem;
}

.xp-mistral-large-4 > * {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

.xp-mistral-large-4 p {
  margin: 0 0 1rem;
}

.xp-mistral-large-4 a {
  color: var(--ml-key);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.xp-mistral-large-4 a:focus-visible,
.xp-mistral-large-4 input:focus-visible,
.xp-mistral-large-4 button:focus-visible,
.xp-mistral-large-4 summary:focus-visible {
  outline: 3px solid var(--ml-blue);
  outline-offset: 3px;
}

.xp-mistral-large-4 dfn {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(255, 90, 31, 0.28) 60%);
}

.xp-mistral-large-4 h1,
.xp-mistral-large-4 h2 {
  font-family: "Archivo Black", "Futura", sans-serif;
  font-weight: 400;
  line-height: 1.1;
}

.xp-mistral-large-4 .ml-hero {
  padding: 1rem 0 2rem;
  border-bottom: 4px solid var(--ml-ink);
}

.xp-mistral-large-4 .ml-kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ml-muted);
  margin: 0 0 1rem;
}

.xp-mistral-large-4 .ml-title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin: 0 0 1.25rem;
  text-shadow: 4px 4px 0 var(--ml-orange);
  overflow-wrap: break-word;
}

.xp-mistral-large-4 .ml-dek {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.xp-mistral-large-4 .ml-follow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
}

.xp-mistral-large-4 .ml-follow--end {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ml-ink);
}

.xp-mistral-large-4 .ml-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.xp-mistral-large-4 .ml-stamp {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border: 2px solid var(--ml-ink);
  background: var(--ml-card);
  transform: rotate(-1.5deg);
  box-shadow: 3px 3px 0 var(--ml-ink);
}

.xp-mistral-large-4 .ml-stamp--key {
  background: var(--ml-orange);
  transform: rotate(1.5deg);
}

.xp-mistral-large-4 .ml-short {
  margin-top: 2rem;
  padding: 1.5rem 1.5rem 1rem;
  background: var(--ml-card);
  border: 3px solid var(--ml-ink);
  box-shadow: 8px 8px 0 var(--ml-orange);
}

.xp-mistral-large-4 .ml-short h2 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.xp-mistral-large-4 .ml-video {
  margin: 2.5rem auto 0;
}

.xp-mistral-large-4 .ml-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 3px solid var(--ml-ink);
  background: var(--ml-ink);
}

.xp-mistral-large-4 .ml-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.xp-mistral-large-4 .ml-video figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--ml-muted);
  margin-top: 0.5rem;
}

.xp-mistral-large-4 .ml-sec {
  margin-top: 3.25rem;
}

.xp-mistral-large-4 .ml-sec h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin: 0 0 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.xp-mistral-large-4 .ml-n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  color: var(--ml-paper);
  background: var(--ml-ink);
  padding: 0.15rem 0.45rem;
  flex: none;
}

/* The router playground */
.xp-mistral-large-4 .ml-router,
.xp-mistral-large-4 .ml-calc {
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: var(--ml-card);
  border: 3px solid var(--ml-ink);
  box-shadow: 6px 6px 0 var(--ml-blue);
}

.xp-mistral-large-4 .ml-router__label,
.xp-mistral-large-4 .ml-calc__label,
.xp-mistral-large-4 .ml-calc__title {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.xp-mistral-large-4 .ml-router__input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--ml-ink);
  background: #fff;
  color: var(--ml-ink);
}

.xp-mistral-large-4 .ml-router__tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}

.xp-mistral-large-4 .ml-token {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--ml-ink);
  border-radius: 999px;
  background: var(--ml-paper);
  color: var(--ml-ink);
  cursor: pointer;
}

.xp-mistral-large-4 .ml-token[aria-pressed="true"] {
  background: var(--ml-ink);
  color: var(--ml-paper);
}

.xp-mistral-large-4 .ml-router__grid {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 5px;
  max-width: 34rem;
}

.xp-mistral-large-4 .ml-dotx {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--ml-ink);
  background: var(--ml-paper);
  transition: background-color 0.25s, transform 0.25s;
}

.xp-mistral-large-4 .ml-dotx.is-on {
  background: var(--ml-orange);
  transform: scale(1.15);
}

.xp-mistral-large-4 .ml-dotx.is-shared {
  background: var(--ml-blue);
}

.xp-mistral-large-4 .ml-router__read {
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.xp-mistral-large-4 .ml-router__note {
  font-size: 0.9rem;
  color: var(--ml-muted);
  margin: 0;
}

/* The memory calculator */
.xp-mistral-large-4 .ml-calc__range {
  width: 100%;
  accent-color: var(--ml-key);
}

.xp-mistral-large-4 .ml-calc__ticks {
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--ml-muted);
  margin: 0.2rem 0 0;
}

.xp-mistral-large-4 .ml-calc__result {
  font-family: "Archivo Black", "Futura", sans-serif;
  font-size: clamp(2.4rem, 9vw, 4rem);
  line-height: 1;
  margin: 1rem 0 0.75rem;
  text-shadow: 3px 3px 0 var(--ml-orange);
}

.xp-mistral-large-4 .ml-calc__bar {
  height: 18px;
  border: 2px solid var(--ml-ink);
  background: var(--ml-paper);
}

.xp-mistral-large-4 .ml-calc__bar span {
  display: block;
  height: 100%;
  width: 50%;
  background: var(--ml-orange);
  transition: width 0.3s;
}

.xp-mistral-large-4 .ml-calc__desc {
  margin: 0.75rem 0 0;
}

.xp-mistral-large-4 .ml-list,
.xp-mistral-large-4 .ml-sources,
.xp-mistral-large-4 .ml-updates {
  padding-left: 1.25rem;
}

.xp-mistral-large-4 .ml-list li,
.xp-mistral-large-4 .ml-sources li,
.xp-mistral-large-4 .ml-updates li {
  margin-bottom: 0.5rem;
}

.xp-mistral-large-4 .ml-updates time {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  margin-right: 0.5rem;
}

.xp-mistral-large-4 .ml-quotes {
  display: grid;
  gap: 1.25rem;
}

.xp-mistral-large-4 .ml-quote {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--ml-card);
  border-left: 8px solid var(--ml-orange);
}

.xp-mistral-large-4 .ml-quote p {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.xp-mistral-large-4 .ml-quote footer {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  color: var(--ml-muted);
}

.xp-mistral-large-4 .ml-timeline {
  list-style: none;
  padding: 0;
  border-left: 4px solid var(--ml-ink);
}

.xp-mistral-large-4 .ml-timeline li {
  position: relative;
  padding: 0 0 1rem 1.5rem;
}

.xp-mistral-large-4 .ml-timeline li::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ml-orange);
  border: 2px solid var(--ml-ink);
}

.xp-mistral-large-4 .ml-q {
  border: 2px solid var(--ml-ink);
  background: var(--ml-card);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.xp-mistral-large-4 .ml-q summary {
  font-weight: 700;
  cursor: pointer;
}

.xp-mistral-large-4 .ml-q p {
  margin: 0.75rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .xp-mistral-large-4 .ml-dotx,
  .xp-mistral-large-4 .ml-calc__bar span {
    transition: none;
  }
}
