/* Statements: the post's callout-note (definition, duality result) and
   callout-important (theorem, KKT conditions) blocks are mathematical statements,
   restyled from an alert box into a quiet theorem block. The warning and tip
   callouts keep the theme's look. Every colour is a theme token, so both halves of
   the light/dark pair repaint without a reload. Same rules as the Stein's Method
   series (posts/steins-lemma/post.css). */
.callout.callout-important,
.callout.callout-note {
  border: 1px solid var(--w-rule) !important;
  border-left: 1px solid var(--w-rule) !important;
  border-radius: 10px !important;
  background: var(--w-surface) !important;
  box-shadow: none !important;
  margin: 1.8rem 0 !important;
  position: relative;
}
.callout.callout-important::before,
.callout.callout-note::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: var(--w-accent);
}
.callout.callout-note::before {
  background: var(--w-c2);
}
.callout.callout-important .callout-header,
.callout.callout-note .callout-header {
  background: transparent !important;
  border: 0 !important;
  padding: 0.85rem 1.3rem 0 !important;
}
.callout.callout-important .callout-icon-container,
.callout.callout-note .callout-icon-container {
  display: none !important;
}
.callout.callout-important .callout-title-container,
.callout.callout-note .callout-title-container {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--w-ink) !important;
  opacity: 1;
}
/* the title may carry maths; it keeps its case */
.callout.callout-important .callout-title-container mjx-container,
.callout.callout-note .callout-title-container mjx-container {
  text-transform: none;
}
.callout.callout-important .callout-body-container,
.callout.callout-note .callout-body-container {
  padding: 0.35rem 1.3rem 0.4rem !important;
}
.callout.callout-important .callout-body-container mjx-container[display="true"],
.callout.callout-note .callout-body-container mjx-container[display="true"] {
  margin: 0.8em 0 !important;
}
@media (max-width: 575px) {
  .callout.callout-important .callout-header,
  .callout.callout-note .callout-header {
    padding: 0.75rem 0.9rem 0 !important;
  }
  .callout.callout-important .callout-body-container,
  .callout.callout-note .callout-body-container {
    padding: 0.3rem 0.9rem 0.35rem !important;
  }
}
