.learning-library { display: grid; gap: 22px; }
.learning-group h2 {
  margin: 0 0 9px;
  color: #49365e;
  font-size: 20px;
  line-height: 1.35;
}
.learning-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.learning-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  padding-inline-end: 6px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}
.learning-item[data-learning-kind='article'] { --type-tint: #f1e9f8; --type-ink: #644788; }
.learning-item[data-learning-kind='pdf'] { --type-tint: #faeee6; --type-ink: #87472e; }
.learning-item[data-learning-kind='video'] {
  --type-tint: #e8edf9;
  --type-ink: #415989;
  grid-template-columns: minmax(0, 1fr);
  padding-inline-end: 11px;
}
.learning-open {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 83px;
  min-width: 0;
  padding: 11px 2px 11px 12px;
  border-radius: 16px;
  text-align: left;
}
.learning-open:active { background: var(--brand-soft); }
.learning-open:focus-visible { outline-offset: -3px; }
.learning-copy { display: grid; gap: 3px; min-width: 0; }
.learning-copy strong {
  display: block;
  color: #342746;
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.learning-type-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background: var(--type-tint, #efe8f7);
  color: var(--type-ink, #67498a);
}
.learning-type-icon .icon { width: 23px; height: 23px; }
.learning-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 9px;
  color: #5d5569;
  font-size: 14px;
  line-height: 1.4;
}
.learning-access {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 5px;
  background: #f1e9fa;
  color: #654384;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}
.learning-access .icon { width: 13px; height: 13px; }
.learning-chevron { width: 18px; height: 18px; color: #655584; }
.learning-item[data-locked] .learning-chevron { color: #714b92; }
.learning-bookmark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #6f647e;
}
.learning-bookmark .icon { width: 20px; height: 20px; }
.learning-bookmark[aria-pressed='true'] .icon {
  color: #654384;
  fill: #d6bce9;
}
.learning-empty, .learning-locked {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 26px 18px;
  border-radius: 17px;
  background: #f5eff9;
  color: #50336c;
}
.learning-locked strong { font-size: 20px; }
.learning-locked p { margin: 0; color: #493f55; font-size: 16px; }
.learning-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #61467b;
  font-size: 15px;
  font-weight: 700;
}
.learning-detail-meta > span:not(.learning-access) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #f1ebf7;
}
.learning-detail-meta .icon { width: 16px; height: 16px; }
.learning-article, .learning-pdf { display: grid; gap: 16px; }
.learning-article-body {
  display: grid;
  gap: 16px;
  color: #443951;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.learning-article-body p { margin: 0; }
.learning-article-body p:first-child { color: #46305e; }
.learning-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: learning-step;
}
.learning-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 12px;
  border-radius: 12px;
  background: #f6f0fa;
  counter-increment: learning-step;
}
.learning-steps li::before {
  content: counter(learning-step);
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-top: 2px;
  border-radius: 50%;
  background: #e9dcf4;
  color: #644885;
  font-size: 15px;
  font-weight: 700;
}
.learning-pdf img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
}
@media (max-width: 880px) {
  .learning-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .learning-open { gap: 8px; padding-inline-start: 10px; }
}
