/* The download banner under the first picture of each blog post. */
.dl-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
    margin: 28px 0; padding: 20px 24px; border-radius: 14px;
    border: 1px solid rgba(88, 166, 255, 0.35);
    background: linear-gradient(120deg, rgba(31, 111, 235, 0.22), rgba(88, 166, 255, 0.06) 60%, var(--bg-card, #161b22));
}
.dl-banner-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.dl-banner-text strong { font-size: 18px; line-height: 1.3; color: var(--text-primary, #e6edf3); }
.dl-banner-text span { font-size: 14px; line-height: 1.5; color: var(--text-secondary, #8b949e); }
.dl-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-banner-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px;
    border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none;
    border: 1px solid var(--border-light, #30363d); color: var(--text-primary, #e6edf3); background: var(--bg-card, #161b22);
}
.dl-banner-btn:hover { text-decoration: none; border-color: var(--text-muted, #6e7681); }
.dl-banner-btn.primary { background: var(--accent-dim, #1f6feb); border-color: var(--accent-dim, #1f6feb); color: #fff; }
.dl-banner-btn.primary:hover { background: var(--accent, #58a6ff); border-color: var(--accent, #58a6ff); }
@media (max-width: 600px) {
    .dl-banner { padding: 18px 16px; }
    .dl-banner-actions { width: 100%; }
    .dl-banner-btn { flex: 1 1 100%; }
}

/* Keep reading: three related links at the end of a post. */
.keep-reading { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--border, #21262d); }
.keep-reading h2 { margin: 0 0 16px; font-size: 20px; }
.keep-reading ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.keep-reading li { margin: 0; }
.keep-reading a {
    display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; padding: 16px; border-radius: 12px;
    border: 1px solid var(--border-light, #30363d); background: var(--bg-card, #161b22); text-decoration: none;
}
.keep-reading a:hover { border-color: var(--accent, #58a6ff); text-decoration: none; }
main .keep-reading li a:not(.btn) { text-decoration: none; } /* the cards are not inline text links; the site rule underlines every link in a list */
.keep-reading strong { font-size: 15px; line-height: 1.35; color: var(--text-primary, #e6edf3); }
.keep-reading span { font-size: 13px; line-height: 1.5; color: var(--text-secondary, #8b949e); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .keep-reading ul { grid-template-columns: 1fr; } }
