.learning-library-workspace {
  background: #f5f8fb;
}

.learning-library-frame {
  max-width: 1420px;
  margin: 0 auto;
  padding: 18px 28px 42px;
}

.learning-library-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 24px 26px;
  border: 1px solid #dce5ee;
  border-left: 5px solid #0f8f83;
  border-radius: 17px;
  background:
    linear-gradient(
      110deg,
      rgba(230, 248, 245, 0.92),
      rgba(255, 255, 255, 0.98)
    );
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.055);
}

.learning-library-header-copy {
  display: flex;
  align-items: center;
  gap: 17px;
}

.learning-library-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 14px;
  background: #edf8f6;
}

.learning-library-mark img {
  display: block;
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.learning-library-eyebrow {
  margin: 0 0 6px;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.learning-library-header h1 {
  margin: 0;
  color: #0b245b;
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  line-height: 1.15;
}

.learning-library-header p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #52657a;
  line-height: 1.6;
}

.learning-library-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #ffffff;
  color: #076c62;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.learning-library-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.learning-library-summary-card {
  padding: 17px 18px;
  border: 1px solid #dce5ee;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.045);
}

.learning-library-summary-card span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.learning-library-summary-card strong {
  color: #0b245b;
  font-size: 1.04rem;
  line-height: 1.4;
}

.learning-library-evidence {
  margin-bottom: 18px;
  padding: 17px 19px;
  border: 1px solid #b8ddd7;
  border-left: 5px solid #0f8f83;
  border-radius: 13px;
  background: #eff9f7;
}

.learning-library-evidence h2 {
  margin: 0 0 7px;
  color: #17564f;
  font-size: 0.98rem;
}

.learning-library-evidence p {
  margin: 0;
  color: #365f5a;
  font-size: 0.84rem;
  line-height: 1.55;
}

.learning-program {
  margin-bottom: 18px;
  padding: 22px 23px;
  border: 1px solid #dce5ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.learning-program:last-child {
  margin-bottom: 0;
}

.learning-program-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.learning-program-header h2 {
  margin: 0;
  color: #0b245b;
  font-size: 1.16rem;
}

.learning-program-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e4f5f2;
  color: #076c62;
  font-size: 0.73rem;
  font-weight: 800;
}

.learning-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.learning-module-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 18px;
  border: 1px solid #dce5ee;
  border-radius: 14px;
  background: #f8fafc;
}

.learning-module-card:hover {
  border-color: #9dd5ce;
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.055);
}

.learning-module-domain {
  margin-bottom: 9px;
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.learning-module-card h3 {
  margin: 0 0 9px;
  color: #0b245b;
  font-size: 1.01rem;
  line-height: 1.4;
}

.learning-module-card p {
  margin: 0 0 12px;
  color: #52657a;
  line-height: 1.5;
}

.learning-module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
}

.learning-module-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf2fb;
  color: #34517d;
  font-size: 0.71rem;
  font-weight: 800;
}

.learning-module-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 14px;
  border-radius: 9px;
  background: #078c7c;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.learning-module-action:hover {
  background: #067c6e;
}

.learning-library-empty {
  padding: 28px;
  border: 1px solid #dce5ee;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.learning-library-empty h2 {
  margin: 0 0 9px;
  color: #0b245b;
}

.learning-library-empty p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

@media (max-width: 1080px) {
  .learning-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .learning-library-frame {
    padding: 14px 16px 30px;
  }

  .learning-library-header,
  .learning-library-header-copy,
  .learning-program-header {
    display: block;
  }

  .learning-library-mark,
  .learning-library-badge,
  .learning-program-count {
    margin-top: 14px;
  }

  .learning-library-summary,
  .learning-module-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Learning module reader
   ========================================================= */

.learning-module-reader {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.learning-module-stack {
  display: grid;
  gap: 18px;
}

.learning-module-panel {
  min-width: 0;
  padding: 22px 23px;
  border: 1px solid #dce5ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.learning-module-panel h2 {
  margin: 0 0 11px;
  color: #0b245b;
  font-size: 1.12rem;
}

.learning-module-panel h3 {
  margin: 0 0 9px;
  color: #0b245b;
  font-size: 1rem;
}

.learning-module-panel p {
  color: #40536a;
  line-height: 1.65;
}

.learning-module-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-module-metadata span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf2fb;
  color: #34517d;
  font-size: 0.72rem;
  font-weight: 800;
}

.learning-content-block {
  padding: 22px 23px;
  border: 1px solid #dce5ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.learning-content-block h2 {
  margin: 0 0 12px;
  color: #0b245b;
  font-size: 1.15rem;
}

.learning-content-block-body {
  color: #26364a;
  line-height: 1.75;
}

.learning-content-block-body p {
  margin-top: 0;
}

.learning-content-block img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 16px;
  border: 1px solid #dce5ee;
  border-radius: 13px;
}

.learning-content-source {
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid #cce6e2;
  border-radius: 11px;
  background: #eff9f7;
  color: #365f5a;
  font-size: 0.8rem;
  line-height: 1.55;
}

.learning-content-source strong {
  color: #17564f;
}

.learning-content-source a {
  color: #076c62;
  font-weight: 800;
}

.learning-evidence-list {
  display: grid;
  gap: 11px;
}

.learning-evidence-item {
  padding: 15px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #f8fafc;
}

.learning-evidence-item h3 {
  margin: 0 0 7px;
}

.learning-evidence-item p {
  margin: 0 0 8px;
  font-size: 0.84rem;
}

.learning-evidence-item a {
  color: #076c62;
  font-weight: 800;
  text-decoration: none;
}

.learning-teachback {
  border-left: 5px solid #0f8f83;
}

.learning-teachback-prompt {
  margin: 0 0 17px;
  padding: 15px 16px;
  border: 1px solid #cce6e2;
  border-radius: 11px;
  background: #eff9f7;
  color: #173e3a;
  font-weight: 750;
  line-height: 1.55;
}

.learning-teachback-field {
  display: grid;
  gap: 8px;
  color: #172033;
  font-size: 0.88rem;
  font-weight: 800;
}

.learning-teachback-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 145px;
  padding: 12px 13px;
  border: 1px solid #cfd9e4;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  font: inherit;
  font-weight: 500;
  line-height: 1.55;
  outline: none;
  resize: vertical;
}

.learning-teachback-field textarea:focus {
  border-color: #0f8f83;
  box-shadow: 0 0 0 3px rgba(15, 143, 131, 0.12);
}

.learning-teachback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #078c7c;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(7, 140, 124, 0.18);
}

.learning-teachback-button:hover {
  background: #067c6e;
}

.learning-evaluation {
  padding: 17px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #f8fafc;
}

.learning-evaluation-score {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 13px;
}

.learning-evaluation-score strong {
  color: #0b245b;
  font-size: 1.75rem;
}

.learning-evaluation-score span {
  color: #64748b;
  font-weight: 700;
}

.learning-evaluation-grid {
  display: grid;
  gap: 10px;
}

.learning-evaluation-item {
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
}

.learning-evaluation-item span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.learning-evaluation-item strong {
  color: #0b245b;
}

.learning-adaptation-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-adaptation-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #cce6e2;
  border-radius: 10px;
  background: #eff9f7;
  color: #17564f;
  font-size: 0.82rem;
  font-weight: 700;
}

.learning-adaptation-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: #0f8f83;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.learning-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #b8ddd7;
  border-left: 5px solid #0f8f83;
  border-radius: 12px;
  background: #eff9f7;
  color: #17564f;
}

.learning-message p {
  margin: 0;
}

.learning-library-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #076c62;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .learning-module-reader {
    grid-template-columns: 1fr;
  }
}
