.blog-back { font-size: 13px; font-weight: 700; color: var(--muted) !important; }
.blog-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 26px; font-size: 13px; color: var(--muted); }
.blog-breadcrumb a:hover { color: var(--accent); }

/* Blog index */
.blog-intro { padding: 56px 0 36px; max-width: 780px; }
.blog-intro h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.12; letter-spacing: -2.4px; }
.blog-intro h1 span { color: var(--accent); }
.blog-intro > p:last-child { margin-top: 22px; max-width: 640px; font-size: 17px; line-height: 1.8; color: var(--muted); }
.blog-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 64px; }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; padding: 28px; transition: border-color .2s, background .2s; }
.blog-card:hover { border-color: #b4b5f7; background: #fafaff; }
.home .blog-card h2, .home .blog-card h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.6px; margin: 16px 0 12px; }
.blog-card p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.blog-card-meta { margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--muted); }
.blog-tag { display: inline-block; align-self: flex-start; color: var(--accent); background: #eeeefe; border-radius: 7px; padding: 5px 9px; font-size: 11px; font-weight: 800; letter-spacing: .4px; }

/* Article */
.post { max-width: 760px; padding-top: 44px; }
.home .post-header h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.14; letter-spacing: -2px; }
.post-lead { margin-top: 22px; font-size: 19px; line-height: 1.7; color: #4b4f63; }
.post-meta { margin-top: 18px; font-size: 14px; color: var(--muted); }
.post-summary { margin-top: 34px; padding: 24px 28px; border-radius: 18px; background: #f3f3ff; }
.home .post-summary h2, .post-toc-title { font-size: 15px; font-weight: 800; line-height: 1.4; letter-spacing: 0; margin-bottom: 12px; color: var(--ink); }
.post-summary ul { padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.7; color: #34374a; }
.post-summary li::marker { color: var(--accent); }
.post-toc { margin-top: 28px; padding-left: 22px; border-left: 2px solid var(--line); }
.post-toc ol { padding-left: 20px; display: grid; gap: 7px; font-size: 15px; line-height: 1.6; }
.post-toc a { color: var(--accent); }
.post-toc a:hover { text-decoration: underline; }
.post-body { font-size: 17px; line-height: 1.8; color: #34374a; }
.home .post-body h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.25; letter-spacing: -1px; margin: 52px 0 16px; scroll-margin-top: 104px; }
.home .post-body h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.4px; font-weight: 800; margin: 30px 0 10px; }
.post-body p + p { margin-top: 16px; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 16px 0; display: grid; gap: 9px; }
.post-body li::marker { color: var(--accent); font-weight: 800; }
.home .post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { color: var(--ink); }
.post-example { margin: 22px 0; padding: 20px 24px; border-radius: 16px; background: #f7f8fb; font-size: 16px; }
.post-table-wrap { overflow-x: auto; margin: 22px 0; }
.post-body table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.post-body caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.post-body thead th { background: #f7f8fb; color: var(--ink); font-weight: 800; }
.post-body tbody th { color: var(--ink); font-weight: 750; }
.split-bar { display: flex; height: 44px; margin: 24px 0 8px; border-radius: 12px; overflow: hidden; font-size: 13px; font-weight: 750; }
.split-bar span { display: flex; align-items: center; padding-inline: 12px; flex-basis: var(--share); color: #fff; white-space: nowrap; }
.split-bar span:nth-child(1) { background: #5657e9; }
.split-bar span:nth-child(2) { background: #8b89ea; }
.split-bar span:nth-child(3) { background: #23846b; }

/* In-article promotion of the app */
.app-card { display: grid; grid-template-columns: 56px 1fr; gap: 18px; margin: 40px 0; padding: 26px; border-radius: 22px; background: #202337; color: #fff; }
.app-card > img { border-radius: 14px; }
.post-body .app-card p { margin: 0; color: #c8cadb; font-size: 15px; line-height: 1.7; }
.post-body .app-card p + p { margin-top: 8px; }
.post-body .app-card .app-card-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #a8aaff; }
.post-body .app-card .app-card-title { margin-top: 6px; font-size: 20px; font-weight: 800; line-height: 1.35; letter-spacing: -.4px; color: #fff; }
.app-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.home .post-body .app-card-actions a { display: inline-flex; align-items: center; padding: 11px 16px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.home .post-body .app-card-actions a + a { background: transparent; border: 1px solid #ffffff4d; color: #fff; }
.post-body .app-card .app-card-note { margin-top: 14px; font-size: 13px; color: #a7aac2; }

/* FAQ, sources and related posts */
.post-faq { margin-top: 52px; }
.post-faq details { border-bottom: 1px solid var(--line); }
.post-faq details:first-of-type { border-top: 1px solid var(--line); }
.post-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 750; color: var(--ink); cursor: pointer; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary span { flex-shrink: 0; color: var(--accent); font-size: 22px; }
.post-faq details[open] summary span { transform: rotate(45deg); }
.post-faq details p { padding-bottom: 22px; font-size: 16px; }
.post-sources { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--muted); }
.home .post-sources h2 { font-size: 16px; line-height: 1.4; letter-spacing: 0; margin: 0 0 10px; }
.post-sources ul { padding-left: 20px; display: grid; gap: 6px; margin: 0; }
.home .post-sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.post-body .post-disclaimer { margin-top: 24px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.blog-page .download-section { margin-top: 64px; }
.blog-page .download-panel h2 { font-size: clamp(28px, 3vw, 38px); }
.post-related { padding: 64px 0 16px; }
.home .post-related > h2 { font-size: 26px; letter-spacing: -.8px; margin-bottom: 20px; }
.post-related .blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 24px; }
.home .post-related-guides { font-size: 18px; letter-spacing: -.3px; margin: 8px 0 14px; }
.post-guide-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 32px; }
.post-guide-links a { display: inline-flex; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--accent); }
.post-guide-links a:hover { border-color: #b4b5f7; background: #fafaff; }

/* Copyable prompts */
.post-prompt { margin: 18px 0; padding: 18px 22px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: #f7f8fb; font-size: 16px; line-height: 1.7; color: var(--ink); }
.post-prompt p + p { margin-top: 8px; }

/* 50/30/20 calculator */
.calc { margin: 28px 0; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fbfbff; }
.home .calc h3 { margin-top: 0; }
.calc-fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 16px; }
.calc-shares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.calc label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.calc input, .calc select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d9dbe6; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.calc input:focus, .calc select:focus { outline: 3px solid #8585ff; outline-offset: 1px; }
.calc-error { margin-top: 12px; font-size: 14px; font-weight: 700; color: #c2410c; }
.calc-results { margin-top: 6px; }
.calc-results table { min-width: 0; }

@media (max-width: 950px) {
    .blog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .blog-back { display: none; }
    .blog-intro { padding-top: 40px; }
    .blog-list, .post-related .blog-list { grid-template-columns: 1fr; }
    .blog-card { padding: 24px; }
    .post { padding-top: 32px; }
    .post-lead { font-size: 17px; }
    .post-body { font-size: 16px; }
    .post-summary { padding: 20px 22px; }
    .app-card { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
    .app-card > img { width: 48px; height: 48px; }
    .post-body table { min-width: 0; font-size: 14px; }
    .post-body th, .post-body td { padding: 10px 8px; }
    .split-bar { font-size: 11px; }
    .split-bar span { padding-inline: 8px; }
    .post-faq summary { font-size: 16px; }
    .calc { padding: 20px; }
    .calc-fields, .calc-shares { grid-template-columns: 1fr; }
}
