/* Native, compact teaching figures. No changes to existing guide/lab selectors. */
figure.fw-concept {
  container-type: inline-size;
  min-width: 0;
  width: 100%;
  margin: 8px 0;
  padding: clamp(16px, 2.8vw, 28px);
  color: #25243b;
  background: #fff;
  border: 1px solid #ded9eb;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgb(41 29 68 / 3%);
}
.fw-concept, .fw-concept * { box-sizing: border-box; }
.fw-concept > header { max-width: 70ch; margin-bottom: 18px; }
.fw-concept .fw-concept-kicker {
  margin: 0 0 7px;
  color: #74538c;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fw-concept h3 { margin: 0 0 8px; color: #28223b; font-size: clamp(20px, 2vw, 26px); line-height: 1.2; letter-spacing: -.035em; }
.fw-concept p { margin: 0; color: #595369; font-size: 14px; line-height: 1.6; }
.fw-concept .fw-concept-controls { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.fw-concept [hidden] { display: none !important; }
.fw-concept .fw-concept-controls button {
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #dbd4e8;
  border-radius: 9px;
  background: #faf8fc;
  color: #514161;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  cursor: pointer;
}
.fw-concept .fw-concept-controls button[aria-pressed="true"] { background: #f0e8fa; border-color: #9261bd; color: #643397; box-shadow: inset 3px 0 #9e42ae; }
.fw-concept .fw-concept-controls button:hover { border-color: #8b5bb1; }
.fw-concept .fw-concept-controls .fw-concept-reset { background: #fff; font-weight: 500; }
.fw-concept :is(button, a):focus-visible { outline: 3px solid #a830aa; outline-offset: 3px; }
.fw-concept .fw-concept-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.fw-concept .fw-concept-body > * { min-width: 0; }
.fw-concept .fw-concept-diagram { padding: 16px; border: 1px solid #e4deed; border-radius: 11px; background: #f8f6fb; }
.fw-concept .fw-concept-flow { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.fw-concept .fw-concept-flow li { min-width: 0; margin: 0; padding: 10px 0 10px 14px; border-left: 2px solid #c9a7de; position: relative; }
.fw-concept .fw-concept-flow li::before { content: ""; position: absolute; top: 15px; left: -4px; width: 6px; height: 6px; border-radius: 50%; background: #99469f; }
.fw-concept .fw-concept-flow li:first-child { padding-top: 3px; }
.fw-concept .fw-concept-flow li:first-child::before { top: 8px; }
.fw-concept .fw-concept-flow li:last-child { padding-bottom: 3px; }
.fw-concept .fw-concept-step { display: block; margin: 0 0 4px; color: #78548d; font-size: 11px; font-weight: 700; letter-spacing: .025em; }
.fw-concept .fw-concept-diagram strong { display: block; color: #393044; font-size: 14px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.fw-concept .fw-concept-readout > strong { display: block; margin-bottom: 10px; color: #44324e; font-size: 17px; line-height: 1.35; letter-spacing: -.015em; }
.fw-concept .fw-concept-evidence { margin-top: 15px; padding-top: 13px; border-top: 1px solid #e6e0ec; font-size: 13px; }
.fw-concept .fw-concept-evidence > span:first-child { display: block; margin-bottom: 4px; color: #78548d; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.fw-concept figcaption { margin-top: 18px; padding-top: 13px; border-top: 1px solid #e6e0ec; color: #69616f; font-size: 12px; line-height: 1.65; }
.fw-concept a { color: #784293; text-decoration: underline; text-underline-offset: 3px; }
.fw-concept .fw-concept-task-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.fw-concept .fw-concept-task { padding: 12px; min-width: 0; border: 1px solid #d9cce5; border-radius: 8px; background: #fff; }
.fw-concept .fw-concept-task p { margin-top: 8px; font-size: 13px; }
.fw-concept .fw-concept-diagram > p { padding-top: 10px; border-top: 1px dashed #cdb9d9; font-size: 13px; }
.fw-concept .fw-concept-matrix { display: table; width: 100%; min-width: 0; margin: 0; table-layout: fixed; border-collapse: collapse; color: #44354f; font-size: 13px; }
.fw-concept .fw-concept-matrix caption { padding: 0 0 13px; color: #78548d; font-size: 12px; font-weight: 600; line-height: 1.4; text-align: left; }
.fw-concept .fw-concept-matrix tr { display: table-row; }
.fw-concept .fw-concept-matrix :is(th, td) { display: table-cell; min-width: 0; padding: 13px 7px; border: 1px solid #ddd3e6; font-size: 13px; line-height: 1.4; vertical-align: middle; text-align: center; overflow-wrap: anywhere; background: #fff; }
.fw-concept .fw-concept-matrix th { color: #68477c; background: #f0eaf6; font-weight: 650; }
.fw-concept .fw-concept-matrix th:first-child { width: 22%; }
.fw-concept .fw-concept-matrix td strong { font-size: 13px; letter-spacing: .025em; }
.fw-concept .fw-concept-matrix [data-result="pass"] { color: #307251; }
.fw-concept .fw-concept-matrix [data-result="fail"] { color: #b23d60; }
.fw-concept[data-tone="fail"] .fw-concept-readout > strong { color: #a1395a; }
.fw-concept[data-tone="pass"] .fw-concept-readout > strong { color: #30684f; }
@container (max-width: 640px) {
  .fw-concept .fw-concept-body { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .fw-concept .fw-concept-diagram { padding: 13px; }
}
@container (max-width: 320px) {
  .fw-concept .fw-concept-task-pair { grid-template-columns: minmax(0, 1fr); }
  .fw-concept .fw-concept-controls button { flex: 1 1 120px; }
  .fw-concept .fw-concept-controls .fw-concept-reset { flex: 0 0 auto; }
  .fw-concept .fw-concept-matrix :is(th, td) { padding: 11px 5px; }
}
@media print {
  .fw-concept .fw-concept-controls { display: none; }
  figure.fw-concept { box-shadow: none; break-inside: avoid; }
}
.fw-concept .fw-concept-matrix th { letter-spacing: 0; text-transform: none; }
