.worked-example,
.example-links {
  margin-block: 2rem;
  max-width: 62rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.worked-example h2,
.example-links h2 {
  font-size: 1.3rem;
  line-height: 1.4;
  margin-block: 1.5rem 0.6rem;
}
.worked-example li + li,
.example-links li + li {
  margin-top: 0.5rem;
}
.example-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.example-values section {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--mb-border, #d5ddd3);
  border-radius: 12px;
  background: var(--mb-surface, #fff);
}
.example-values h2 {
  margin-top: 0;
}
.worked-example pre {
  max-width: 100%;
  overflow: auto;
  padding: 0.75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
  font-size: 0.9rem;
  background: var(--mb-soft, #f5f6f2);
  border-radius: 8px;
}
.worked-example code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.example-links ul {
  padding-left: 1.25rem;
  margin-block: 0.5rem;
}
.example-links a,
.example-cta {
  display: inline-block;
  padding-block: 0.35rem;
  text-underline-offset: 0.2em;
}
@media (max-width: 600px) {
  .example-values {
    grid-template-columns: minmax(0, 1fr);
  }
  .worked-example,
  .example-links {
    margin-block: 1.5rem;
  }
}
