/* -------------------------------------------------------------------------
   Shared by /blog/ and /academy/: reading typography, the progress bars and the
   lesson check buttons. Two pages, two visual languages, one set of primitives —
   so a check that is right here cannot be wrong there.
   ------------------------------------------------------------------------- */

/* ---------- reading column ---------- */

.read-body {
  max-width: 68ch;
  margin-top: 6px;
}

.read-section { margin-top: 26px; }

.read-section h2,
.learn-takeaways h2,
.step-head h2 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: .01em;
}

.read-body p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft, var(--muted));
}

.read-body ul {
  margin: 0 0 12px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.read-body li {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-soft, var(--muted));
}

.learn-takeaways {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 179, 71, .35);
  border-radius: 6px;
  background: rgba(255, 179, 71, .06);
}

.learn-takeaways ul { margin: 0; }

/* ---------- progress bar ---------- */

.learn-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}

.learn-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--copper), var(--amber));
  transition: width .25s ease;
}

.learn-bar--wide { flex: 1; max-width: 340px; }

.learn-status {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .05em;
  color: var(--dim);
  white-space: nowrap;
}

/* ---------- lesson steps + checks ---------- */

.step {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .025);
}

.step.is-done { border-color: rgba(90, 200, 140, .4); }

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-head h2 { margin: 0; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.step.is-done .step-num {
  border-color: rgba(90, 200, 140, .6);
  color: var(--live);
}

.check {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.check-q {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.check-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.check-option {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(0, 0, 0, .22);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}

.check-option:hover:not(:disabled) {
  border-color: rgba(255, 179, 71, .6);
  background: rgba(255, 179, 71, .08);
}

.check-option:disabled { cursor: default; opacity: .75; }

.check-option.is-right {
  border-color: rgba(90, 200, 140, .7);
  background: rgba(90, 200, 140, .12);
  color: var(--live);
  opacity: 1;
}

.check-option.is-wrong {
  border-color: rgba(220, 90, 90, .6);
  background: rgba(220, 90, 90, .1);
  color: var(--bad);
  opacity: 1;
}

.check-why {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.check-why.is-right { color: var(--live); }

.check-retry {
  margin-top: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.check-retry:hover { border-color: rgba(255, 179, 71, .6); color: var(--amber); }

/* ---------- back link + footer nav (both pages) ---------- */

.learn-back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}

.learn-back:hover { color: var(--amber); }

.learn-back-row { margin-top: 14px; }
