/* Same file in all six Stein's Method posts. Every colour is a theme token, so both
   halves of the light/dark pair repaint without a reload. Display-maths spacing and
   phone overflow are site-wide (theme/math.css); this file adds what is particular
   to the series.

   1. Phone widths: a wide table scrolls inside its own box instead of widening the
      whole page.
   2. Statements: the house markup (callout-important for a lemma, proposition or
      theorem, callout-note for a definition) restyled from an alert box into a
      quiet theorem block. */

/* 1 ---------------------------------------------------------------- phone widths */
main table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}
/* The theme uppercases table headers; math inside a header must keep its case
   (d_W is not D_W, p(x) is not P(X)). */
main table th mjx-container,
main table th .math {
  text-transform: none;
}

/* 2 -------------------------------------------------------------------- statements */
.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 ($\mathbb{R}^d$); 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;
  }
}
