/* ============================================================
   ClariMoney Blog — reading paths, topic cards, read→do strip
   Loaded after blog-home.css on /blog/
   ============================================================ */

/* ── Topic bar: one scrollable row with arrows (PC) / swipe (touch) ── */
.blog-cats-nav--sr { padding: 14px 0 16px; position: sticky; top: var(--header-h, 68px); z-index: 60; box-shadow: 0 2px 10px rgba(15,43,92,.05); }
.blog-cats-nav--sr .blog-cats-nav-inner { display: flex; flex-wrap: nowrap; gap: 10px; padding: 2px 0; justify-content: flex-start; }
.blog-cats-nav--sr .blog-cats-nav-link {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px 6px 8px;
    border: 1.5px solid rgba(15,43,92,.12); border-radius: 999px; background: #fff; color: var(--primary-dark, #0F2B5C);
    font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s, transform .15s;
}
.blog-cats-nav--sr .blog-cats-nav-link:hover { border-color: var(--primary, #1E4A7A); background: var(--primary-light, #E9F0FA); transform: translateY(-1px); }
.blog-cats-nav--sr .blog-cats-nav-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.blog-cats-nav--sr .blog-cats-nav-icon svg { width: 16px; height: 16px; }

/* ── Reading paths ── */
.paths-note { font-size: .88rem; color: var(--neutral-500, #6B7686); }
.paths-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px)  { .paths-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .paths-grid { grid-template-columns: repeat(4, 1fr); } }

.path-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: #fff; border: 1px solid rgba(15,43,92,.1); border-top: 4px solid var(--path-color, #1E4A7A); border-radius: 16px; box-shadow: 0 1px 3px rgba(15,43,92,.05); }
.path-head { display: flex; gap: 12px; align-items: flex-start; }
.path-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--path-color); background: color-mix(in srgb, var(--path-color) 12%, #fff); }
.path-ico svg { width: 20px; height: 20px; }
.path-head h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary-dark, #0F2B5C); line-height: 1.25; margin: 0 0 3px; }
.path-head p { font-size: .8rem; color: var(--neutral-500, #6B7686); line-height: 1.45; margin: 0; }
.path-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.path-steps a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px; border-radius: 12px; background: var(--neutral-100, #F7FAFC); color: var(--neutral-900, #1A202C); text-decoration: none; transition: background .15s, transform .15s; }
.path-steps a:hover { background: var(--primary-light, #E9F0FA); transform: translateX(2px); }
.path-num { width: 24px; height: 24px; border-radius: 50%; background: var(--path-color); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; flex-shrink: 0; }
.path-title { flex: 1; font-size: .88rem; font-weight: 600; line-height: 1.35; }
.path-time { font-size: .72rem; color: var(--neutral-500, #6B7686); white-space: nowrap; }
.path-more { font-size: .84rem; font-weight: 700; color: var(--path-color); text-decoration: none; }
.path-more:hover { text-decoration: underline; }

/* ── Topic cards ── */
.topics-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px)  { .topics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .topics-grid { grid-template-columns: repeat(4, 1fr); } }
.topic-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 1.5px solid rgba(15,43,92,.1); border-radius: 16px; text-decoration: none; color: inherit; transition: transform .18s, border-color .18s, box-shadow .18s; }
.topic-card:hover { transform: translateY(-3px); border-color: var(--topic-color); box-shadow: 0 14px 28px -14px rgba(15,43,92,.3); }
.topic-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--topic-color); background: color-mix(in srgb, var(--topic-color) 12%, #fff); }
.topic-ico svg { width: 20px; height: 20px; }
.topic-body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.topic-body strong { font-size: 1rem; color: var(--primary-dark, #0F2B5C); }
.topic-body small { font-size: .8rem; color: var(--neutral-500, #6B7686); line-height: 1.45; }
.topic-count { font-size: .78rem; font-weight: 700; color: var(--topic-color); }

/* ── Read → do strip ── */
.try-strip { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 24px 28px; border-radius: 20px; background: linear-gradient(135deg, #0F2B5C 0%, #1E4A7A 100%); color: #fff; }
.try-copy { flex: 1 1 280px; }
.try-copy h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; color: #fff; }
.try-copy p { font-size: .92rem; margin: 0; color: rgba(255,255,255,.82); }
.try-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 380px; justify-content: flex-end; }
.try-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.try-list a:hover { background: #fff; color: #0F2B5C; }
.try-list .try-all { background: #F8B042; border-color: #F8B042; color: #0F2B5C; }
@media (max-width: 720px) { .try-list { justify-content: flex-start; } .try-strip { padding: 22px 20px; } }

@media (prefers-reduced-motion: reduce) { .topic-card, .path-steps a, .blog-cats-nav--sr .blog-cats-nav-link { transition: none; } }
