/* course-route.css — the "next lesson" block in blog articles (a free lesson that continues the article),
   and its quiet note in the right margin on wide screens. Placed by scripts/blog-routing/apply.py. */

.post-body .cr-card{margin:56px 0 48px;padding:28px 28px 26px;border:1px solid rgba(245,245,240,0.12);border-radius:14px;background:rgba(245,245,240,0.03)}
.post-body .cr-card a.cr-thumb{display:block;margin:0 0 20px;border-radius:10px;overflow:hidden;border:1px solid rgba(245,245,240,0.1);transition:transform .15s,border-color .15s}
.post-body .cr-card a.cr-thumb:hover{transform:translateY(-1px);border-color:rgba(245,245,240,0.25)}
.post-body .cr-card a.cr-thumb:focus-visible{outline:2px solid var(--pink);outline-offset:3px}
.post-body .cr-card a.cr-thumb img{display:block;width:100%;height:auto;aspect-ratio:16/9;margin:0;border-radius:0;border:0;box-shadow:none}
.post-body .cr-card .cr-h{margin:0 0 10px;font-size:22px;font-weight:600;letter-spacing:-0.015em;line-height:1.3;color:var(--paper);text-wrap:balance}
.post-body .cr-card .cr-line{margin:0 0 20px;font-size:16px;line-height:1.6;color:rgba(245,245,240,0.82)}
.post-body .cr-card .cr-act{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
.post-body .cr-card a.cr-btn{display:inline-block;padding:12px 22px;border-radius:999px;background:var(--paper);color:var(--near-black);font-size:15px;font-weight:600;text-decoration:none;line-height:1.2;transition:background .15s,transform .15s}
.post-body .cr-card a.cr-btn:hover{background:#FFFFFF;transform:translateY(-1px)}
.post-body .cr-card a.cr-btn:focus-visible{outline:2px solid var(--pink);outline-offset:3px}
.post-body .cr-card .cr-micro{margin:0;font-size:13px;line-height:1.5;color:rgba(245,245,240,0.55)}
@media (max-width:640px){
  .post-body .cr-card{padding:22px 18px 20px;margin:44px 0 40px}
  .post-body .cr-card .cr-h{font-size:20px}
}

/* Margin note: wide screens only, shown by course-route.js between the first code block and the block above. */
.cr-note{position:fixed;top:38vh;right:max(32px,calc((100vw - 720px) / 2 - 300px));width:236px;padding:2px 0 2px 16px;border-left:2px solid var(--pink);font-family:var(--sans);font-size:14px;line-height:1.55;color:rgba(245,245,240,0.7);opacity:0;transition:opacity .25s ease;z-index:5}
.cr-note.is-on{opacity:1}
.cr-note[hidden]{display:none}
.cr-note p{margin:0 0 8px}
.cr-note a{color:var(--pink);text-decoration:underline;text-underline-offset:3px;font-weight:500}
@media (prefers-reduced-motion:reduce){.cr-note{transition:none}.post-body .cr-card a.cr-btn{transition:none}}
@media (max-width:1279px){.cr-note{display:none}}

/* The short block earlier in the article: a photo and one sentence, on every screen. */
.post-body .cr-early{display:flex;gap:14px;align-items:center;margin:32px 0;padding:14px 16px;border:1px solid rgba(245,245,240,0.12);border-radius:12px;background:rgba(245,245,240,0.03)}
.post-body .cr-early img{width:44px;height:44px;border-radius:50%;flex:none;object-fit:cover;margin:0;border:0;box-shadow:none}
.post-body .cr-early p{margin:0;font-size:15px;line-height:1.55;color:rgba(245,245,240,0.82)}
.post-body .cr-early p b{color:var(--paper);font-weight:600}
.post-body .cr-early a{white-space:nowrap}
@media (max-width:640px){.post-body .cr-early a{white-space:normal}}
