/* A blog post (/blog/{slug}). Shares cards, covers, FAQs and the final block with blog.css. */
.bp-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 200; height: 4px; pointer-events: none; }
.bp-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hp-yellow), var(--hp-green)); transition: width .1s linear; }

/* Hero */
.bp-hero { position: relative; overflow: hidden; isolation: isolate; padding: 28px 0 44px; background: linear-gradient(115deg, #fff8cf 0%, #e9f9ef 48%, #dfeffa 100%); }
.bp-hero::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: -140px; bottom: -220px; border-radius: 50%; background: #c9ecd6; filter: blur(40px); opacity: .6; animation: bl-float 14s ease-in-out infinite alternate; }
.bp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.bp-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.bp-tags a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #062a1a; color: var(--hp-yellow); font-family: var(--hp-head); font-size: 13px; font-weight: 600; text-decoration: none; }
.bp .bp-hero h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.02em; animation: bl-rise .7s var(--ease-out) both; }
.bp-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; color: var(--hp-muted); font-size: 15px; }
.bp-meta li { display: inline-flex; align-items: center; gap: 6px; }
.bp .bp-meta .hp-i { width: 16px; height: 16px; color: var(--hp-green); }
.bp-cover { border-radius: 22px; overflow: hidden; box-shadow: var(--hp-shadow-lg); aspect-ratio: 16 / 9; background: var(--hp-soft); transform: rotate(1.5deg); transition: transform .5s var(--ease-out); animation: bl-rise .8s .1s var(--ease-out) both; }
.bp-cover:hover { transform: none; }
.bp-cover img { width: 100%; height: 100%; object-fit: cover; }
.bp-cover .bl-cover { min-height: 100%; font-size: 24px; padding: 26px; }

/* Body */
.bp-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 44px; align-items: start; padding-top: 44px; padding-bottom: 56px; }
.bp-side { position: sticky; top: 100px; display: grid; gap: 16px; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; }
.bp-toc { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--hp-line); }
.bp-toc__title { display: flex; align-items: center; gap: 8px; font-family: var(--hp-head); font-weight: 600; color: var(--hp-ink); margin-bottom: 8px !important; }
.bp .bp-toc__title .hp-i { width: 18px; height: 18px; color: var(--hp-green); }
.bp-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14.5px; }
.bp-toc a { display: block; padding: 6px 10px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; color: var(--hp-text); text-decoration: none; line-height: 1.35; transition: background-color .2s, border-color .2s, color .2s; }
.bp-toc__l3 a { padding-left: 22px; font-size: 13.5px; color: var(--hp-muted); }
.bp-toc a:hover { background: var(--hp-soft); }
.bp-toc a.is-on { border-left-color: var(--hp-green); background: var(--hp-green-50); color: var(--hp-green-700); font-weight: 600; }
.bp-course { padding: 20px; border-radius: 16px; color: #cfe6d9; background: radial-gradient(220px 140px at 100% 0%, rgba(248, 228, 2, .25), transparent 70%), linear-gradient(150deg, #062a1a, #00703a); }
.bp-course__tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-yellow); }
.bp-course__name { margin-top: 4px !important; font-family: var(--hp-head); font-weight: 700; font-size: 20px; line-height: 1.25; color: #fff; }
.bp-course__price { margin-top: 6px !important; }
.bp-course__price strong { font-family: var(--hp-head); font-size: 22px; color: var(--hp-yellow); }
.bp-course__inc { display: flex; align-items: center; gap: 6px; margin: 6px 0 14px !important; font-size: 14px; }
.bp .bp-course__inc .hp-i { width: 16px; height: 16px; color: var(--hp-yellow); }
.bp-course .hp-btn { width: 100%; }
.bp-course__ask { display: block; margin-top: 10px; text-align: center; color: #fff; font-weight: 600; text-decoration: underline; }

.bp-main { min-width: 0; max-width: 780px; }
.bp-answer { margin-bottom: 28px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--hp-line); border-left: 6px solid var(--hp-green); box-shadow: var(--hp-shadow); font-size: 18px; line-height: 1.6; color: var(--hp-ink); }
.bp-answer__label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px !important; font-family: var(--hp-head); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-green-700); }
.bp .bp-answer__label .hp-i { width: 16px; height: 16px; }
.bp-answer p { margin: 0 0 6px !important; }

/* The article's own HTML: same words, readable type */
.bp-prose { font-size: 18px; line-height: 1.75; color: var(--hp-text); overflow-wrap: anywhere; }
.bp-prose * { font-family: inherit !important; max-width: 100%; }
.bp-prose p, .bp-prose ul, .bp-prose ol, .bp-prose table, .bp-prose blockquote, .bp-prose figure { margin: 0 0 18px !important; }
.bp-prose h2, .bp-prose h3, .bp-prose h4 { font-family: var(--hp-head) !important; color: var(--hp-ink) !important; line-height: 1.25; scroll-margin-top: 110px; position: relative; }
.bp-prose h2 { margin: 40px 0 14px !important; font-size: clamp(24px, 2.6vw, 30px) !important; padding-top: 18px; border-top: 1px solid var(--hp-line); }
.bp-prose h3 { margin: 28px 0 10px !important; font-size: 21px !important; }
.bp-prose h4 { margin: 22px 0 8px !important; font-size: 18px !important; }
.bp-prose h2:first-child { margin-top: 0 !important; border-top: 0; padding-top: 0; }
.bp-prose ul, .bp-prose ol { padding-left: 24px; }
.bp-prose li { margin-bottom: 6px; }
.bp-prose ul li::marker { color: var(--hp-green); }
.bp-prose a { color: var(--hp-green-700) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bp-prose strong, .bp-prose b { color: var(--hp-ink); }
.bp-prose img { height: auto !important; border-radius: 14px; margin: 8px 0; box-shadow: var(--hp-shadow); }
.bp-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; border-radius: 12px; box-shadow: var(--hp-shadow); }
.bp-prose th, .bp-prose td { padding: 10px 12px; border: 1px solid var(--hp-line); text-align: left; vertical-align: top; }
.bp-prose th, .bp-prose thead td { background: #062a1a; color: #fff; font-family: var(--hp-head) !important; }
.bp-prose tr:nth-child(even) td { background: var(--hp-soft); }
.bp-prose blockquote { padding: 14px 18px; border-left: 5px solid var(--hp-yellow-600); background: #fffbe8; border-radius: 0 12px 12px 0; }
.bp-anchor { position: absolute; left: -26px; top: auto; opacity: 0; color: var(--hp-green) !important; text-decoration: none !important; font-weight: 400 !important; transition: opacity .2s; }
.bp-prose h2:hover .bp-anchor, .bp-prose h3:hover .bp-anchor { opacity: 1; }

.bp-mid { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 !important; padding: 20px 22px; border-radius: 18px; background: #062a1a; color: #cfe6d9; box-shadow: var(--hp-shadow-lg); font-size: 16px; line-height: 1.5; }
.bp-mid p { margin: 0 !important; }
.bp-mid__tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-yellow); }
.bp-mid__name { font-family: var(--hp-head) !important; font-weight: 700; font-size: 20px; color: #fff; }
.bp-mid .hp-btn { flex: none; text-decoration: none !important; color: #111 !important; }

.bp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 0; padding: 16px 0; border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); }
.bp-share > span { margin-right: 6px; font-weight: 600; color: var(--hp-ink); }
.bp-share a, .bp-share button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--hp-line); background: #fff; color: var(--hp-ink); font-family: var(--hp-head); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: border-color .2s, background-color .2s; }
.bp-share a:hover, .bp-share button:hover { border-color: var(--hp-green); background: var(--hp-green-50); }
.bp .bp-share .hp-i { width: 16px; height: 16px; }
.bp-share button.is-done { border-color: var(--hp-green); background: var(--hp-green); color: #fff; }
.bp-faq { margin-top: 36px; }
.bp .bp-faq h2 { margin-bottom: 14px; font-size: clamp(24px, 2.6vw, 30px); }
.bp-faq__a { padding: 0 20px 18px; font-size: 17px; line-height: 1.6; }
.bp-faq__a p { margin: 0 0 8px !important; }
.bp-search { max-width: 380px; margin: 0; flex: 1 1 280px; }
.bp-all { margin-top: 24px !important; text-align: center; }

@media (max-width: 1000px) {
  .bp-hero__grid, .bp-body { grid-template-columns: minmax(0, 1fr); }
  .bp-cover { transform: none; }
  .bp-side { position: static; max-height: none; order: 2; }
  .bp-main { order: 1; }
  .bp-toc { display: none; }
}
@media (max-width: 640px) {
  .bp-prose { font-size: 17px; }
  .bp-mid { flex-direction: column; align-items: flex-start; }
  .bp-anchor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bp *, .bp *::before { animation: none !important; transition: none !important; }
}
