.tmv2-module {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #cddcf0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px #17396812;
  color: #203047;
}

.tmv2-module * { box-sizing: border-box; }
.tmv2-module h2,
.tmv2-module h3 { color: #173968; }
.tmv2-module h2 { margin: .1rem 0 .6rem; }
.tmv2-module h3 { margin: .2rem 0 .5rem; }

.tmv2-eyebrow {
  font-weight: 900;
  color: #2457d6;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .76rem;
}

.tmv2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.tmv2-card {
  padding: 14px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: #f9fbfe;
}

.tmv2-vocab {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.tmv2-vocab div {
  padding: 10px;
  border-left: 4px solid #2457d6;
  background: #f3f7ff;
  border-radius: 7px;
}

.tmv2-vocab dt { font-weight: 900; }
.tmv2-vocab dd { margin: 3px 0 0; }

.tmv2-misconceptions,
.tmv2-worked-expanded,
.tmv2-important-problems { margin-top: 12px; }

.tmv2-worked-head > p { margin: .25rem 0; }

.tmv2-worked-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.tmv2-worked-problem {
  padding: 14px;
  border: 1px solid #d5e1ef;
  border-radius: 12px;
  background: #fff;
}

.tmv2-worked-problem h4 {
  margin: .15rem 0 .55rem;
  color: #173968;
  line-height: 1.35;
}

.tmv2-worked-number {
  display: inline-block;
  margin: 0 0 .35rem;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: #e8f0ff;
  color: #2457d6;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tmv2-worked-question {
  margin: .55rem 0;
  padding: .7rem .8rem;
  border-left: 4px solid #2457d6;
  border-radius: 8px;
  background: #f3f7ff;
}

.tmv2-worked-problem ol {
  margin: .65rem 0;
  padding-left: 22px;
}

.tmv2-worked-problem li + li { margin-top: .35rem; }

.tmv2-worked-answer,
.tmv2-worked-check {
  margin: .5rem 0 0;
  padding: .65rem .75rem;
  border-radius: 8px;
}

.tmv2-worked-answer { background: #edf7ef; }
.tmv2-worked-check { background: #f6f8fb; }

.tmv2-visual {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid #cbd9ec;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.tmv2-visual figcaption {
  margin-top: 8px;
  color: #49627f;
  font-size: .82rem;
  line-height: 1.35;
}

.tmv2-array {
  display: grid;
  grid-template-columns: repeat(var(--side), 1fr);
  width: min(220px, 80vw);
  aspect-ratio: 1;
  margin: auto;
  border: 2px solid #173968;
}

.tmv2-array i {
  border: .5px solid #adc1dc;
  background: #deebff;
}

.tmv2-bounds {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  margin: auto;
}

.tmv2-bounds strong {
  padding: 8px 12px;
  border-radius: 999px;
  background: #efb63f;
  color: #173968;
}

.tmv2-instructional-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 560px;
  margin: auto;
}

.tmv2-instructional-svg line,
.tmv2-instructional-svg path,
.tmv2-instructional-svg polyline,
.tmv2-instructional-svg circle,
.tmv2-instructional-svg rect {
  stroke: #315274;
  stroke-width: 2;
  fill: none;
}

.tmv2-instructional-svg .grid {
  stroke: #dce5ef;
  stroke-width: 1;
}

.tmv2-instructional-svg .accent {
  stroke: #2457d6;
  stroke-width: 4;
  fill: none;
}

.tmv2-instructional-svg .reference {
  stroke: #8a98a8;
  stroke-dasharray: 6 5;
}

.tmv2-instructional-svg .accentFill {
  fill: #dbe8ff;
  stroke: #2457d6;
}

.tmv2-instructional-svg text {
  font: 600 13px system-ui, sans-serif;
  fill: #315274;
  text-anchor: middle;
}

.tmv2-instructional-svg .title {
  font-size: 17px;
  font-weight: 900;
  fill: #173968;
}

.tmv2-instructional-svg .big {
  font-size: 19px;
  font-weight: 900;
  fill: #173968;
}

.tmv2-instructional-svg .call {
  font-weight: 900;
  fill: #2457d6;
}

.tmv2-problems-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tmv2-problems-head p { margin: .25rem 0; }

.tmv2-problems-head > a {
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: 9px;
  background: #2457d6;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.tmv2-important-problems > ol {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.tmv2-important-problems > ol > li {
  padding: 12px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  background: #fff;
}

.tmv2-important-problems > ol > li > p { margin: 0 0 8px; }

.tmv2-important-problems details {
  border-top: 1px solid #edf1f5;
  padding-top: 7px;
}

.tmv2-important-problems summary {
  cursor: pointer;
  color: #2457d6;
  font-weight: 800;
}

.tmv2-important-problems details p { margin: 7px 0 0; }

.tmv2-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tmv2-links a {
  padding: 8px 11px;
  border-radius: 9px;
  background: #2457d6;
  color: #fff;
  text-decoration: none;
  font-weight: 850;
}

.tmv2-retained-reference > summary {
  cursor: pointer;
  padding: 4px;
  color: #173968;
}

.tmv2-retained-content { margin-top: 14px; }
.tmv2-preserved-visual .y7-board { margin: 0; }

@media (max-width: 720px) {
  .tmv2-grid,
  .tmv2-vocab,
  .tmv2-worked-grid,
  .tmv2-important-problems > ol {
    grid-template-columns: 1fr;
  }

  .tmv2-problems-head { flex-direction: column; }
}