/* Concepts in motion: animated sketch + live graph, embedded in Interview Prep answers */
.cm-embed { margin: 16px 0 6px; }
.cm-in { background: #070F18; border: 1px solid #1D3752; border-radius: 8px; padding: 16px 16px 14px; color: #ECE7D8; font-family: 'IBM Plex Sans', system-ui, sans-serif; }
.cm-k { margin: 0 0 2px; text-align: center; font-size: .78rem; color: #6E8CA8; letter-spacing: .02em; }
.cm-in .cm-t { font-family: 'Big Shoulders Display', 'Arial Narrow', sans-serif; font-weight: 800; color: #C9A227; font-size: clamp(1.6rem, 4.6vw, 2.3rem); line-height: 1.02; text-align: center; margin: 0 0 8px; letter-spacing: .01em; text-wrap: balance; }
.cm-in .cm-eq { text-align: center; margin: 0 0 3px; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: clamp(.92rem, 2.2vw, 1.08rem); color: #ECE7D8; line-height: 1.4; text-wrap: balance; }
.cm-in .cm-eq2 { text-align: center; margin: 0 0 14px; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: clamp(.86rem, 2vw, .98rem); color: #8FB8E8; line-height: 1.45; text-wrap: balance; }
.cm-in sub, .cm-in sup { font-size: .7em; }

.cm-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; align-items: stretch; }
.cm-box { position: relative; min-width: 0; }
.cm-box canvas { display: block; width: 100%; }
.cm-anim { aspect-ratio: 1 / 1; height: auto; max-height: 300px; margin: 0 auto; }
.cm-plot { min-height: 280px; }
.cm-plot canvas { position: absolute; inset: 0; height: 100%; }
.cm-cap { text-align: center; color: #6E8CA8; font-style: italic; font-size: .82rem; margin: 4px 0 0; line-height: 1.4; }

.cm-read {
  position: absolute; right: 10px; top: 10px; background: rgba(7, 15, 24, .9);
  border: 1px solid #2C4C6C; border-radius: 6px; padding: 7px 10px;
  font: 500 .84rem/1.5 'IBM Plex Mono', monospace; color: #ECE7D8; font-variant-numeric: tabular-nums;
  white-space: pre; pointer-events: none;
}
.cm-read b { color: #C9A227; font-weight: 600; }
.cm-read.br { top: auto; bottom: 54px; right: 22px; }
.cm-read.tl { right: auto; left: 66px; top: 20px; }
.cm-read.bl { right: auto; top: auto; left: 66px; bottom: 54px; }

.cm-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; margin: 12px 0 0; padding: 10px 12px; background: #122234; border: 1px solid #1D3752; border-radius: 6px; }
.cm-ctl label { font-weight: 600; font-size: .86rem; white-space: nowrap; color: #ECE7D8; }
.cm-ctl input[type=range] { width: 100%; accent-color: #C9A227; }
.cm-ctl input[type=range]:focus-visible { outline: 2px solid #C9A227; outline-offset: 4px; }
.cm-play { font: 600 .8rem 'IBM Plex Sans', system-ui, sans-serif; color: #ECE7D8; background: transparent; border: 1px solid #1D3752; border-radius: 4px; padding: 6px 12px; cursor: pointer; min-width: 66px; }
.cm-play:hover { border-color: #C9A227; color: #C9A227; }
.cm-play:focus-visible { outline: 2px solid #C9A227; outline-offset: 2px; }
.cm-note { margin: 10px 2px 0; color: #A9BCCD; font-size: .86rem; line-height: 1.55; }
.cm-how { margin: 10px 0 0; border-top: 1px solid #1D3752; padding-top: 10px; }
.cm-how-t { font: 600 .86rem 'IBM Plex Sans', system-ui, sans-serif; color: #C9A227; background: none; border: 1px solid #2C4C6C; border-radius: 4px; padding: 7px 12px; cursor: pointer; }
.cm-how-t::before { content: '+ '; } .cm-how-t[aria-expanded="true"]::before { content: '– '; }
.cm-how-t:hover, .cm-how-t:focus-visible { border-color: #C9A227; outline: none; }
.cm-how-l[hidden] { display: none; }
.cm-how-l { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.cm-how-l button { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; width: 100%; text-align: left; background: #0E1B29; border: 1px solid #16283C; border-radius: 6px; padding: 8px 10px; color: #D5DEE6; font: 400 .86rem/1.5 'IBM Plex Sans', system-ui, sans-serif; cursor: pointer; }
.cm-how-l button:hover { border-color: #2C4C6C; }
.cm-how-l button[aria-pressed="true"] { border-color: #C9A227; background: #15253A; }
.cm-how-l button:focus-visible { outline: 2px solid #C9A227; outline-offset: 1px; }
.cm-how-l .n { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #C9A227; color: #070F18; font-weight: 700; font-size: .78rem; align-items: center; justify-content: center; margin-top: 1px; }
.cm-how-l b { color: #ECE7D8; }

@media (max-width: 760px) {
  .cm-stage { grid-template-columns: 1fr; }
  .cm-anim { max-height: 280px; }
  .cm-plot { min-height: 0; }
  .cm-plot canvas { position: relative; height: 250px; }
  .cm-read { position: static; margin: 8px 0 0; display: block; }
}
@media (max-width: 520px) {
  .cm-in { padding: 14px 10px 12px; }
  .cm-ctl { grid-template-columns: 1fr auto; }
  .cm-ctl label { grid-column: 1 / -1; white-space: normal; }
  .cm-read { font-size: .78rem; }
}
