/* FundedReady /library/ styles - extends blog.css / learn.css / courses.css */

.library-page .library-hero {
  margin-bottom: 36px;
}
.library-lesson-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.library-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items: center;
}
.library-link-secondary {
  color: #58a6ff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.library-link-secondary:hover { text-decoration: underline; }

.library-body .lesson-section {
  margin-bottom: 22px;
  padding: 18px 20px;
  background: rgba(22, 27, 34, 0.5);
  border: 1px solid #21262d;
  border-radius: 10px;
}
.library-body .lesson-section h2 {
  font-size: 22px;
  color: #e6edf3;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.library-body .lesson-section p {
  font-size: 16px;
  color: #c9d1d9;
  line-height: 1.65;
  margin: 0 0 10px;
}
.library-body .lesson-section p:last-child { margin-bottom: 0; }
.library-body .lesson-section strong { color: #e6edf3; }
.library-body .lesson-section.lesson-tip {
  background: linear-gradient(135deg, rgba(240, 185, 11, 0.08) 0%, rgba(22, 27, 34, 0.5) 100%);
  border-color: rgba(240, 185, 11, 0.35);
}
.library-body .lesson-section.lesson-tip h2 {
  color: #f0b90b;
}

/* ── Library index grid ── */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.library-card {
  display: flex;
  flex-direction: column;
  background: rgba(22, 27, 34, 0.7);
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.library-card:hover {
  border-color: #26a69a;
  transform: translateY(-2px);
  background: rgba(22, 27, 34, 0.9);
}
.library-card-lesson {
  font-size: 11px;
  font-weight: 600;
  color: #26a69a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.library-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.library-card-summary {
  font-size: 14px;
  color: #b1b8c0;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}
.library-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #8b949e;
}

@media (max-width: 560px) {
  .library-hero-actions { flex-direction: column; align-items: stretch; }
  .library-hero-actions .blog-cta-btn { width: 100%; text-align: center; }
}
