/* Recorded examples sit inside the normal classroom whiteboard. */
.example-trigger span { margin-right: .2em; }
.mj-card .mj-example-launch { margin-top: 8px; min-height: 44px; }
.example-playing .score { display: none; }
.example-playing #askFab .af-bubble { display:none; }
.example-playing #askFab :is(.af-ph,.af-face) { width:48px;height:48px; }

.example-teacher {
  display: grid;
  grid-template-columns: minmax(170px, .55fr) minmax(0, 1.45fr);
  gap: 7px 16px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px 16px;
  color: var(--marker, #1d2b4f);
  background: #edf4ff;
  border: 1px solid #c9d9f5;
  border-radius: 14px;
}
.example-speaker {
  display: flex;
  gap: 9px;
  min-width: 0;
  align-items: center;
  font-size: .94rem;
}
.example-speaker img {
  width: 52px;
  height: 52px;
  border: 2px solid white;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.example-speaker span:not(.example-wave) {
  display: block;
  font-size: .78rem;
  color: #405678;
}
.example-caption {
  margin: 0;
  min-height: 2.7em;
  border-inline-start: 3px solid var(--marker-blue, #1f6feb);
  padding: 1px 0 1px 12px;
  font: 700 clamp(.95rem, 2vw, 1.12rem)/1.35 "Andika", system-ui, sans-serif;
}
.example-wave { display: flex; gap: 2px; align-items: center; height: 16px; }
.example-wave i { display: block; width: 3px; height: 13px; background: #2564bf; border-radius: 5px; transform: scaleY(.2); }
.example-teacher.speaking .example-wave i { animation: example-wave .72s alternate infinite ease-in-out; }
.example-wave i:nth-child(2) { animation-delay: -.15s !important; }
.example-wave i:nth-child(3) { animation-delay: -.35s !important; }
.example-wave i:nth-child(4) { animation-delay: -.5s !important; }
@keyframes example-wave { from { transform: scaleY(.24); } to { transform: scaleY(1); } }
.example-tools {
  grid-column: 1 / -1;
  display: flex;
  gap: 5px 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}
.example-tools label, .example-status { color: #405678; font-size: .79rem; font-weight: 600; }
.example-tools select, .example-button {
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid #bacfee;
  border-radius: 8px;
  background: #fff;
  color: #174789;
  font: 600 .81rem Inter, system-ui, sans-serif;
}
.example-tools :is(button,select):focus-visible { outline: 3px solid #2663b7; outline-offset: 2px; }
.example-status { grid-column: 1 / -1; margin: 0; }
.example-status:empty { height: 0; }
.example-next { display: flex; justify-content: flex-end; margin-top: 12px; }
.example-next button { min-height: 44px; }
.example-playing .board-title:focus, .example-playing #quizQ:focus { outline: 0; }
.example-playing .board-visual { width: min(100%, 440px); justify-self: center; }
.example-model {
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid #c8d9f5;
  border-radius: 13px;
  background: #f2f6ff;
  color: var(--marker, #1d2b4f);
  text-align: center;
  font-family: "Andika", system-ui, sans-serif;
}
.example-model h3, .example-model p { margin: 0; font-size: .88rem; }
.example-model p { color: #425471; }
.example-tray { display: grid; grid-template-columns: repeat(var(--parts), minmax(0, 1fr)); gap: 4px; margin: 10px 0; }
.example-tray span {
  display: grid;
  min-height: clamp(46px, 8vw, 74px);
  justify-items: center;
  align-content: center;
  padding: 5px 1px;
  line-height: 1.05;
  font-size: clamp(.75rem, 1.8vw, .98rem);
  border: 1px solid #b0c3e0;
  border-radius: 6px;
  background: #fff;
}
.example-tray span b:first-child { border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-bottom: 2px; }
.example-tray .first, .example-x { background: #cfe3ff !important; border-color: #8baee2 !important; color: #194b92; }
.example-tray .second, .example-extra { background: #ffe4cd !important; border-color: #cf9d76 !important; color: #78360e; }
.example-scale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  margin-top: 8px;
  gap: 4px;
}
.example-scale div {
  display: flex;
  justify-content: center;
  align-items: end;
  min-height: 59px;
  gap: 4px;
  padding: 5px 2px;
  border-bottom: 3px solid #7297cb;
  border-radius: 0 0 8px 8px;
}
.example-scale b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 31px;
  border: 1px solid #b0c3e0;
  border-radius: 7px;
  background: #fff;
}
.example-beam {
  display: block;
  margin: 5px auto;
  width: 0;
  height: 0;
  border: 15px solid transparent;
  border-top: 0;
  border-bottom-color: #7896c2;
}
.example-targets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.example-targets div { padding: 3px; border: 1px solid #b9cded; border-radius: 9px; background: white; }
.example-targets b { display: block; font-size: 1.2rem; }
@media (max-width: 680px) {
  .example-teacher { grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; padding: 9px 11px; }
  .example-speaker img { width: 38px; height: 38px; }
  .example-caption { min-height: 2.45em; }
  body.example-playing .board-body { gap: 12px; }
  .example-playing .board-visual { grid-row: 1; }
  body.example-playing .board-lines { gap: 10px; }
  body.example-playing .bl { font-size: clamp(17px, 5vw, 22px); }
}
@media (prefers-reduced-motion: reduce) {
  .example-teacher.speaking .example-wave i { animation: none; transform: none; }
}
