/* =========================================
   SOMA3D LEARNING MODULES UI
   Styles for educational content blocks
   (NOT global layout, NOT navigation)
========================================= */


/* ---------- Concept intro paragraph ---------- */
.textbook-article > p:first-of-type {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.92;
}


/* ---------- Callout boxes ---------- */
.callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f5f8fb;
  border-left: 5px solid #70A7C5; /* Soma3D brand */
  line-height: 1.6;
}

.callout > strong:first-child {
  display: block;
  margin-bottom: 4px;
}

/* Variants */
.callout-key {
  border-left-color: #70A7C5;
  background: #eef5f9;
}

.callout-clinical {
  border-left-color: #c57a70;
  background: #f9f1ef;
}

.callout-memory {
  border-left-color: #9c8bc5;
  background: #f3f0f9;
}


/* ---------- Instruction lists (viewer tasks) ---------- */
.textbook-article ol,
.textbook-article ul {
  margin: 10px 0 14px 22px;
  line-height: 1.65;
}

.textbook-article li {
  margin-bottom: 6px;
}


/* ---------- Embedded viewer spacing inside lessons ---------- */
.textbook-article .viewer-embed-portrait {
  margin: 18px 0 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}


/* ---------- Side-by-side viewer comparison ---------- */
.viewer-compare {
  display: flex;
  gap: 16px;
  margin: 18px 0 10px;
}

.viewer-compare-item {
  flex: 1 1 0;
  min-width: 0;
}

.viewer-compare-label {
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 6px;
}

.viewer-embed-short {
  height: 420px;
}

@media (max-width: 900px) {
  .viewer-compare {
    flex-direction: column;
  }

  .viewer-embed-short {
    height: 380px;
  }
}


/* ---------- Takeaway / summary list ---------- */
#takeaways ul {
  margin-top: 8px;
}

#takeaways li {
  margin-bottom: 8px;
  font-weight: 500;
}


/* ---------- Subtle section separators for long lessons ---------- */
.textbook-article section {
  margin-bottom: 36px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.textbook-article section:last-of-type {
  border-bottom: none;
}


/* ---------- Tables inside lessons (like Shoulder vs Hip) ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 10px;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
}

.compare-table th {
  font-weight: 600;
  opacity: 0.75;
}
