/* Typography shared by the lessons aligned with chapter 4, lesson 3. */
html.cw-balanced {
  --cw-body-size: 22px;
  --cw-small-size: 17px;
  --cw-title-size: 34px;
  --cw-subtitle-size: 25px;
  --cw-cover-size: 52px;
}
html.cw-balanced.cw-balanced.cw-balanced [data-cw-type] {
  font-size: calc(var(--cw-type-size) * var(--text-scale, 1)) !important;
}
html.cw-balanced [data-cw-type="body"] { --cw-type-size: var(--cw-body-size); }
html.cw-balanced [data-cw-type="small"] { --cw-type-size: var(--cw-small-size); }
html.cw-balanced [data-cw-type="title"] { --cw-type-size: var(--cw-title-size); }
html.cw-balanced [data-cw-type="subtitle"] { --cw-type-size: var(--cw-subtitle-size); }
html.cw-balanced [data-cw-type="cover"] { --cw-type-size: var(--cw-cover-size); }
html.cw-balanced :is(h1,h2,h3,h4)[data-cw-type] { line-height: 1.35; }
html.cw-balanced .cw-teaching-note {
  display: block;
  position: relative;
  grid-column: 1 / -1;
  flex: 0 0 100%;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 24px 0 8px;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid #dbe3eb;
  border-radius: 0;
  background: transparent;
  color: #26384d;
  text-align: left;
  overflow: visible;
  line-height: 1.65;
}
html.cw-balanced .cw-teaching-note h3 { margin: 0 0 12px; color: #23466c; }
html.cw-balanced .cw-teaching-note p { margin: 10px 0; line-height: 1.65; }
html.cw-balanced .cw-teaching-note :is(.katex-display,mjx-container) { max-width: 100%; overflow: visible; }
html.cw-balanced .cw-balanced-zoom-slot { display: inline-flex; align-items: center; flex: 0 0 auto; }
html.cw-balanced .cw-balanced-zoom-slot #cwZoomControls { position: static !important; inset: auto !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
html.cw-balanced .toolbar:has(> .cw-balanced-zoom-slot) { display: flex !important; flex-wrap: wrap !important; align-items: center; justify-content: center !important; gap: 6px 12px !important; height: auto !important; flex: 0 0 auto !important; padding: 6px 10px !important; }
html.cw-balanced .decision-entry::after { content: none; }
html.cw-balanced .cover-bg-matrix,
html.cw-balanced .S .particle { display: none !important; }
html.cw-balanced .badge.model { display: block; width: max-content; max-width: 100%; margin: 0 0 10px; }
html.cw-balanced .badge.model + h2.t { display: block !important; }
html.cw-balanced .meter { min-width: min(100%,180px); }
html.cw-balanced .meter > .mk { overflow: visible; white-space: normal; text-overflow: clip; width: 100%; }
html.cw-balanced .sh-tag { flex-wrap: wrap !important; min-width: 0; max-width: 100%; }
html.cw-balanced .sh-sub { white-space: normal !important; overflow-wrap: anywhere; flex: 1 1 180px; }
html.cw-balanced .cw-tp { height: auto !important; min-height: 100% !important; justify-content: safe center !important; overflow: visible !important; }
html.cw-balanced.cw-balanced :is(#finalDeck,#stage,#deck) .cw-flow-slide > .page { height: auto !important; min-height: 100% !important; max-height: none !important; overflow: visible !important; flex-shrink: 0 !important; }
@media(max-width:800px) {
  html.cw-balanced .ctl { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; }
  html.cw-balanced .ctl > label { grid-column: 1 / -1; }
  html.cw-balanced .ctl > input { min-width: 0 !important; width: 100% !important; }
}
@media(max-width:800px) {
  html.cw-balanced {
    --cw-body-size: 18px;
    --cw-small-size: 15px;
    --cw-title-size: 26px;
    --cw-subtitle-size: 21px;
    --cw-cover-size: 36px;
  }
  html.cw-balanced .cw-teaching-note { margin-top: 18px; padding-top: 16px; }
}
