/* Concept 14 local teaching visual styles. Shared deck/editor styles stay unchanged. */
.dm-intro{text-align:center;gap:9px;padding:17px 18px}
.dm-intro>strong{font-size:22px}.dm-intro>p{font-size:18px}
.dm-object-flow{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:12px;align-items:center;margin:4px auto 0;width:min(100%,740px)}
.dm-object-flow>div{background:white;border:1px solid #cbdcef;padding:13px 10px;border-radius:12px;color:#235a98;font-size:20px;font-weight:850}
.dm-object-flow>b{font-size:17px;color:#5b7593;font-weight:850}
.dm-definition-card{gap:12px;padding:15px}
.dm-definition-card strong{font-size:19px}
.dm-scale{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 13px;border-radius:10px;background:#eaf2fd;font-size:17px;color:#356294;font-weight:850}
.dm-definition-card p{font-size:17px}
.dm-visual-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.dm-plot{display:flex;align-items:center;justify-content:center;min-width:0;padding:10px}
.dm-plot svg{display:block;width:100%;height:184px;max-height:184px}
.dm-eq-panel{justify-content:center;gap:8px}
.dm-eq{display:flex;justify-content:space-between;align-items:center;gap:9px;border:1px solid #d2e0ed;border-radius:9px;padding:10px;background:white;color:#25476f;font-size:18px;line-height:1.2}
.dm-eq b{font-weight:850}
.dm-eq span{text-align:right;white-space:nowrap}
.dm-cases{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);align-items:stretch}
.dm-table-wrap{border:1px solid #d7e3f1;border-radius:12px;overflow:hidden}
.dm-table{width:100%;height:100%;border-collapse:collapse;font-size:17px;text-align:center;color:#304b70}
.dm-table th,.dm-table td{padding:6px 10px;border-bottom:1px solid #dce6f1}
.dm-table thead{background:#eaf2fc}
.dm-table tbody tr:last-child th,.dm-table tbody tr:last-child td{border-bottom:0}
.dm-table tbody th{font-weight:850;text-align:left}
.dm-table tbody tr:nth-child(2){background:#f1f7ff}
.dm-problem{justify-content:center;gap:6px}
.dm-problem p{font-size:16px;line-height:1.26}
.dm-formula-box{border:1px solid #c8dcf2;background:#f3f8fe;border-radius:12px;padding:8px 12px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#25466e}
.dm-formula-box>strong{font-size:17px;line-height:1.25;max-width:58%}
.dm-formula{font-size:19px;font-weight:850;white-space:nowrap;color:#1e5795}
.dm-slider-row{display:grid;grid-template-columns:auto minmax(140px,1fr);align-items:center;gap:14px;font-size:16px;color:#344f70;font-weight:750}
.dm-slider-row label b{color:#1c67ab}
.dm-slider-row input{width:100%;accent-color:#2873c5}
.dm-results{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px}
.dm-results span{background:#e9f3ff;border-radius:9px;padding:7px 10px;font-size:16px;color:#234b76;white-space:nowrap}
.dm-set-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dm-set-grid .panel{padding:9px 11px;gap:5px}
.dm-set-grid .panel p{font-size:17px}
.dm-comparison{border-radius:10px;background:#fff8ed;border:1px solid #e9d5b6;padding:9px 12px;font-size:16px;color:#69532c;line-height:1.3}
.dm-comparison b{color:#78551f;margin-right:6px}
.dm-jaccard-results{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.dm-jaccard-results>div{background:#f0f7ff;border:1px solid #c6daef;border-radius:10px;padding:8px 11px;display:flex;align-items:center;justify-content:space-between;gap:6px;color:#315373;font-size:16px}
.dm-jaccard-results strong{font-size:17px}.dm-jaccard-results b{font-size:18px;color:#1f619d;white-space:nowrap}
.dm-small-note{margin:0;font-size:16px;color:#526884}
.dm-summary-grid{align-items:stretch}
.dm-summary-grid .panel{gap:6px;padding:14px 12px}
.dm-summary-grid p{font-weight:700}
.dm-summary-detail{background:#e6f0fb;color:#255c96;border-radius:8px;padding:8px;text-align:center;font-size:17px;font-weight:850;margin-top:auto}
.dm-bridge{margin:0;text-align:center;color:#44638a;font-size:16px;font-weight:800}
@media(min-width:901px) and (max-width:1024px){
 .dm-intro{padding:9px 12px;gap:5px}
 .dm-intro>p{font-size:17px}
 .dm-object-flow>div{padding:7px}
 .dm-definition-card{padding:9px;gap:7px}
 .dm-scale{padding:6px}
 .dm-plot svg{height:145px;max-height:145px}
 .dm-eq{font-size:16px;padding:7px}
 .dm-cases .panel{padding:7px 9px;gap:3px}
 .dm-table th,.dm-table td{padding:4px 7px}
 .dm-formula-box{padding:6px 9px;gap:8px}
 .dm-formula-box>strong{font-size:16px}
 .dm-formula{font-size:17px}
 .dm-slider-row{gap:8px}
 .dm-results span{padding:5px 7px}
 .dm-set-grid .panel{padding:6px 9px;gap:3px}
 .dm-comparison{padding:6px 9px}
 .dm-jaccard-results>div{padding:6px 8px}
 .dm-summary-grid .panel{padding:8px 9px;gap:3px}
 .dm-summary-detail{padding:5px}
}
@media(max-width:900px){
 .dm-object-flow{gap:5px}.dm-object-flow>div{font-size:16px;padding:9px 4px}
 .dm-object-flow>b{font-size:14px}
 .dm-visual-grid,.dm-cases,.dm-set-grid,.dm-jaccard-results{grid-template-columns:1fr}
 .dm-table th,.dm-table td{padding:8px}
 .dm-formula-box{flex-direction:column;align-items:flex-start}
 .dm-formula-box>strong{max-width:none}
 .dm-slider-row{grid-template-columns:1fr}
 .dm-summary-grid{grid-template-columns:1fr}
 .dm-jaccard-results>div{flex-wrap:wrap}
 .dm-plot svg{height:170px;max-height:170px}
}

/* Concept 14: vector diagram and dynamic comparison, scoped to this deck. */
.dm-cos-top{display:grid;grid-template-columns:minmax(0,.81fr) minmax(0,1.19fr);align-items:stretch;gap:9px;min-height:0}
.dm-cos-plot{display:flex;align-items:center;justify-content:center;min-width:0;padding:5px 9px}
.dm-cos-plot svg{display:block;width:100%;height:158px;max-height:158px}
.dm-vector-b-label{fill:#187957}
.dm-cos-reason{border:1px solid #e5d4b4;background:#fff9ef;border-radius:10px;padding:8px 11px;color:#425573;font-size:16px;line-height:1.3}
.dm-cos-reason>b{font-weight:850}
.dm-cos-reason span{margin-left:7px}
.dm-cos-scores{display:flex;align-items:stretch;gap:7px}
.dm-cos-scores span{flex:1;min-width:0;text-align:center;border:1px solid #c9deef;border-radius:9px;background:#ecf5ff;color:#245486;padding:6px 7px;font-size:16px;font-weight:750}
.dm-comparison span{font-weight:850}
.dm-jaccard-results>div span{line-height:1.3}
@media(min-width:901px) and (max-width:1024px){
  .dm-cos-top{gap:6px}
  .dm-cos-plot{padding:3px 6px}
  .dm-cos-plot svg{height:124px;max-height:124px}
  .dm-cos-reason{padding:5px 8px;line-height:1.2}
  .dm-cos-scores{gap:4px}
  .dm-cos-scores span{padding:4px 5px}
}
@media(max-width:900px){
 .dm-cos-top{grid-template-columns:1fr}
 .dm-cos-plot svg{height:165px;max-height:165px}
 .dm-cos-scores{flex-wrap:wrap}
 .dm-cos-scores span{flex:1 1 140px}
}

/* Concept 14: slider-driven vectors (all three share an adaptive equal-axis scale). */
.dm-cos-guide-a{stroke:#93b2d3;stroke-width:2;stroke-dasharray:5 5}
.dm-cos-guide-c{stroke:#e3c8a7;stroke-width:2;stroke-dasharray:5 5}
.dm-cos-arrow-a{stroke:#2864ac;stroke-width:4}
.dm-cos-arrow-c{stroke:#cb8a37;stroke-width:4}
.dm-cos-arrow-b{stroke:#16815b;stroke-width:3.5}
.dm-cos-dot-a{fill:#2864ac}
.dm-cos-dot-c{fill:#cb8a37}
.dm-cos-dot-b{fill:#16815b}
.dm-cos-legend{font-size:17px;font-weight:800}
.dm-cos-legend-a{fill:#2864ac}
.dm-cos-legend-b{fill:#16815b}
.dm-cos-legend-c{fill:#a36a20}
.dm-cos-zoom-note{fill:#637894;font-size:14px;font-weight:700}
