/* Figures and comparison tables on Insights explainers (14 Nov 2026 CIP article) */
.insight-fig{margin:0 0 1.75rem}
.insight-fig img{width:100%;height:auto;background:#F8F6F1;border-radius:12px;box-shadow:var(--shadow)}
.insight-fig figcaption{font-size:.85rem;color:var(--muted);margin-top:8px;line-height:1.45}
.table-wrap{margin:0 0 1.75rem}
.table-wrap table th[scope="row"]{text-align:left;color:var(--navy);white-space:nowrap}
@media (max-width:640px){
  .table-wrap table th[scope="row"]{white-space:normal}
}

/* Teaching layers: objectives, callouts, example, glossary, quiz */
.learn-box,.callout,.worked-example,.takeaways,.insight-quiz,.glossary-wrap,.download-sheet{
  margin:0 0 1.75rem;padding:22px 24px;border-radius:var(--radius,10px)
}
.learn-box{background:#eef1f7;border-left:4px solid var(--navy)}
.learn-box h2,.callout h2,.callout h3,.worked-example h2,.takeaways h2,.insight-quiz h2,.download-sheet h2{margin-top:0;margin-bottom:.5em}
.learn-box ol{margin:0;padding-left:1.2em}
.learn-box li{margin:.35em 0}
.callout-deeper{background:var(--gold-pale);border-left:4px solid var(--gold)}
.callout-mistake{background:#f8eee8;border-left:4px solid #8a3b12}
.callout-safety{background:#eef6ef;border-left:4px solid #2f6b3a}
.callout-analogy{background:#eef1f7;border-left:4px solid var(--gold)}
.callout p:last-child,.worked-example p:last-child{margin-bottom:0}
.worked-example{background:var(--gold-pale);border:1px solid var(--gold)}
.worked-example .calc{font-variant-numeric:tabular-nums;background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px 16px;margin:12px 0}
.worked-example .calc p{margin:.35em 0}
.takeaways{background:#eef1f7;border-left:4px solid var(--navy)}
.download-sheet{background:#fff;border:1px solid var(--line);display:flex;gap:1.25rem;align-items:center;flex-wrap:wrap}
.download-sheet img{width:140px;height:auto;border-radius:8px;box-shadow:var(--shadow);margin:0}
.glossary-wrap{padding:0;background:transparent}
.glossary-wrap table thead th,
.glossary-wrap table th[scope="row"],
.glossary-wrap table td:first-child,
.glossary-wrap table th:first-child{
  font-weight:700;color:var(--navy);background:#fff;text-align:left;white-space:nowrap
}
.glossary-wrap table thead th{
  background:var(--gold-pale);border-bottom:2px solid var(--gold)
}
.glossary-wrap table tbody th[scope="row"]{background:var(--gold-pale)}
.insight-quiz{background:#fff;border:1px solid var(--line)}
.insight-quiz ol{list-style:none;margin:0;padding:0}
.insight-quiz li{margin:0 0 1.1rem;list-style:none}
.insight-quiz fieldset{border:0;margin:0;padding:0}
.insight-quiz legend{font-weight:700;color:var(--navy);margin-bottom:.4em}
.insight-quiz label{display:block;margin:.25em 0;padding:6px 8px;border-radius:6px;cursor:pointer}
.insight-quiz label:hover{background:var(--gold-pale)}
.insight-quiz[data-checked] label.is-correct{background:#e7f4ea}
.insight-quiz[data-checked] label.is-wrong{background:#f8e8e4}
.quiz-result{font-weight:700;margin:1rem 0 0}
.future-close{margin:0 0 1.75rem}
@media(max-width:640px){
  .download-sheet{align-items:flex-start}
  .glossary-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .glossary-wrap table{font-size:.9rem;min-width:32rem}
}


/* On small screens, let labelled diagrams stay large enough to read — swipe sideways. */
@media (max-width: 700px) {
  .insight-fig {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-right: 0;
    padding-bottom: 6px;
  }
  .insight-fig img {
    min-width: 700px;
    width: 700px;
    max-width: none;
    height: auto;
  }
  .insight-fig::after {
    display: block;
    margin: 6px 0 0;
    font-size: .8rem;
    color: var(--muted, #5b6475);
  }
  html[lang="en"] .insight-fig::after { content: "Swipe sideways to read the full diagram."; }
  html[lang="sw"] .insight-fig::after { content: "Telezesha kando ili usome mchoro wote."; }
}
