/* The learning-styles page. Prose styling is the docs site's (`doc-prose`,
   from docs.css); this is only the page's own frame: the overview cards and
   one card per chapter. */

.learning { max-width: 860px; }

.learning__intro { margin-bottom: var(--space-6); }

.learning-glance { margin-bottom: var(--space-6); }
.learning-glance__title { margin: 0 0 var(--space-4); }
.learning-glance__group + .learning-glance__group { margin-top: var(--space-5); }
.learning-glance__group h3 { margin: 0; font-size: 1rem; }
.learning-glance__group .card__hint { margin: var(--space-1) 0 var(--space-3); }

.learning-glance__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The two groups get a different edge colour so a chapter's card and its
   heading below carry the same signal. */
.learning-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  height: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--ink-100);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}
.learning-card--presentation { border-left-color: var(--success, #2f9e6b); }
.learning-card:hover { border-color: var(--ink-300); text-decoration: none; }
.learning-card__title { font-weight: 640; color: var(--ink-900); }
.learning-card__summary { font-size: 0.88rem; color: var(--ink-500); }

.learning-chapter {
  margin-bottom: var(--space-5);
  scroll-margin-top: var(--space-6);
  border-left: 4px solid var(--accent);
}
.learning-chapter--presentation { border-left-color: var(--success, #2f9e6b); }

.learning-chapter__head { margin-bottom: var(--space-4); }
.learning-chapter__kicker {
  font-size: 0.74rem;
  font-weight: 660;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.learning-chapter__title { margin: var(--space-1) 0 0; }
.learning-chapter__aka { margin: var(--space-1) 0 0; color: var(--ink-500); }
