/* ============================================================
   OutcomeDev Learning Center
   A supplement to /styles.css. Only layout and prose additions
   live here; colour, type and spacing come from the variables in
   the main stylesheet so the section stays part of the site.
   Linked only from pages inside /learn/.
   ============================================================ */

/* ------------------------------------------------------------------ crumb */

.crumb {
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.crumb a { color: var(--ink-3); transition: color 700ms var(--ease); }
.crumb a:hover { color: var(--ink); }
.crumb span { color: var(--ink-4); margin: 0 8px; }

/* ------------------------------------------------------------------ prose

   Imported straight from the site: .eyebrow, .lede, .section, .wrap,
   .wrap.narrow, .card, .cards, .btn, .faq, .muted, .plain-list. */

.prose { max-width: 720px; margin: 0 auto; }

.prose p {
  font-size: 18px;
  line-height: 30px;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.prose > p:first-of-type {
  font-size: 20px;
  line-height: 32px;
  color: var(--ink);
}

.prose h2 {
  font-size: 26px;
  line-height: 34px;
  letter-spacing: -0.4px;
  font-weight: 700;
  margin: 48px 0 16px;
  max-width: none;
}

.prose h3 {
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  margin: 32px 0 8px;
}

.prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink-4);
  transition: border-color 700ms var(--ease);
}
.prose a:hover { border-color: var(--ink); }

.prose ul,
.prose ol { margin: 0 0 20px; padding-left: 24px; }

.prose li {
  font-size: 18px;
  line-height: 30px;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.prose li strong { color: var(--ink); }

.prose strong { color: var(--ink); font-weight: 650; }

/* A pull quote used for the one sentence a lesson wants remembered. */
.prose blockquote {
  margin: 32px 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--ink);
}
.prose blockquote p {
  font-size: 20px;
  line-height: 32px;
  color: var(--ink);
  margin: 0;
}

/* ------------------------------------------------------------------ try it */

.try {
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--bg-2);
  padding: 24px;
  margin: 48px 0 0;
}
.try h2 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.try p {
  font-size: 17px;
  line-height: 28px;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.try p:last-child { margin-bottom: 0; }
.try ol,
.try ul { margin: 0 0 12px; padding-left: 24px; }
.try li {
  font-size: 17px;
  line-height: 28px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

/* ------------------------------------------------------------------ pager */

.pager {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 32px;
}

.pager a,
.pager span.pager-gap { flex: 1 1 0; min-width: 0; }

.pager a {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 700ms var(--ease), background 700ms var(--ease);
}
.pager a:hover { border-color: #dcdcdc; background: var(--bg-2); }
.pager a.next { text-align: right; align-items: flex-end; }

.pager .pager-k {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-4);
}
.pager .pager-t { font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }

@media (max-width: 640px) {
  .pager { flex-direction: column; }
  .pager a.next { text-align: left; align-items: flex-start; }
  .pager span.pager-gap { display: none; }
}

/* ------------------------------------------------------------------ catalogue */

.course-block { margin-top: 56px; }

.course-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.course-n {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-4);
}
.course-block h3 { font-size: 22px; line-height: 30px; font-weight: 700; letter-spacing: -0.3px; }
.course-block > p { font-size: 16px; line-height: 26px; color: var(--ink-2); max-width: 680px; margin-bottom: 16px; }

.lesson-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }

.lesson-list li { border-bottom: 1px solid var(--line); }

.lesson-list a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 4px;
  transition: background 700ms var(--ease);
}
.lesson-list a:hover { background: var(--bg-2); }

.lesson-list .lesson-n {
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  color: var(--ink-4);
}
.lesson-list .lesson-t { font-size: 17px; line-height: 26px; font-weight: 600; display: block; }
.lesson-list .lesson-d { font-size: 14px; line-height: 22px; color: var(--ink-3); display: block; margin-top: 2px; }

/* ------------------------------------------------------------------ terms */

.terms { margin-top: 32px; }

.term {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.term:first-child { border-top: 0; }
.term dt {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.term dd {
  margin: 0;
  font-size: 17px;
  line-height: 28px;
  color: var(--ink-2);
  max-width: 720px;
}
.term dd p { font-size: 17px; line-height: 28px; color: var(--ink-2); margin-bottom: 12px; }
.term dd p:last-child { margin-bottom: 0; }
.term dd a { color: var(--ink); border-bottom: 1px solid var(--ink-4); }

/* ------------------------------------------------------------------ dark */

[data-theme="dark"] .try { background: #181818; }
[data-theme="dark"] .lesson-list a:hover { background: #181818; }
[data-theme="dark"] .pager a:hover { background: #181818; border-color: #3d3d3d; }
