/* Learn pages: builds on /styles.css and /labs/labs.css. */

.learn-paths {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.learn-card {
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 22px 24px;
  border: 1px solid #263248;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f1c30, #0b1526 70%);
  color: inherit;
  text-decoration: none;
}
a.learn-card:hover,
a.learn-card:focus-visible {
  border-color: var(--mint);
}
.learn-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #e6f2f8;
}
.learn-card p {
  margin: 0;
  color: #c4d2e2;
}
.learn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9cdfca;
}
.learn-card.is-coming {
  border-style: dashed;
  background: transparent;
}
.learn-card.is-coming .learn-meta {
  color: #8fa3bb;
}
.learn-progress {
  font-size: 0.85rem;
  color: #8fa3bb;
}
.learn-progress[data-done] {
  color: var(--mint);
}
.learn-section {
  margin-top: 48px;
}

/* A path page */
.path-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.path-facts li {
  border: 1px solid #35465d;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.82rem;
  color: #c4d2e2;
}
.path-teaches {
  margin: 14px 0 0;
  color: #c4d2e2;
}
.path-bar {
  height: 6px;
  border-radius: 999px;
  background: #1a2639;
  overflow: hidden;
  margin: 24px 0 6px;
}
.path-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mint);
  transition: width 0.3s ease;
}
.path-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
  counter-reset: step;
}
.path-step {
  position: relative;
  border: 1px solid #263248;
  border-radius: 14px;
  padding: 22px 24px 22px 76px;
  background: #0d182a;
}
.path-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 1px solid #35465d;
  color: #c4d2e2;
}
.path-step[data-done]::before {
  content: "✓";
  background: rgba(83, 227, 189, 0.16);
  border-color: var(--mint);
  color: var(--mint);
}
.path-step h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
}
.path-step-time {
  font-size: 0.8rem;
  color: #8fa3bb;
}
.path-step h4 {
  margin: 16px 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9cdfca;
}
.path-step ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 4px;
  color: #dbe5f0;
}
.path-step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
}
.path-step-actions .labs-quiz-score {
  font-size: 0.85rem;
  color: #8fa3bb;
}
.path-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #c4d2e2;
  cursor: pointer;
}
.path-next {
  margin-top: 32px;
}
@media (max-width: 560px) {
  .path-step {
    padding: 18px 16px 18px 60px;
  }
  .path-step::before {
    left: 14px;
    top: 18px;
    width: 32px;
    height: 32px;
  }
}

.path-after {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid #263248;
  border-left: 3px solid var(--mint);
  border-radius: 14px;
}
.path-after h2 {
  margin: 0 0 6px;
}
.path-after > p {
  margin: 0;
  color: #c4d2e2;
}
.path-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px 28px;
  margin-top: 18px;
}
.path-after h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #9cdfca;
}
.path-after ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
  color: #dbe5f0;
}
.path-next a {
  color: var(--mint);
}
