/* ═════════ ARTICLE · SECTION 2 · TABLE OF CONTENTS + TEXT ═════════
   Desktop: the contents list stays beside the text and marks the part
   you're reading (blog-page.js). Phones: the text only. */
.bp-section2 {
  position: relative;
  padding: 70px 0 60px;
}

.bp2-inner {
  display: grid;
  grid-template-columns: 250px minmax(0, 720px);
  justify-content: center;
  gap: 72px;
  align-items: start;
}

/* ─── contents ─── */
.bp2-toc {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
}

.bp2-toc-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.bp2-toc ol {
  list-style: none;
  border-inline-start: 1px solid var(--border);
}

.bp2-toc a {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 6px;
  padding: 8px 0;
  padding-inline-start: 16px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s;
}

.bp2-toc a span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding-top: 2px;
  color: var(--text-faint);
}

.bp2-toc a::before {
  content: '';
  position: absolute;
  inset-inline-start: -1px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--blue-light);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}

.bp2-toc a:hover,
.bp2-toc a.is-on {
  color: var(--text);
}

.bp2-toc a.is-on span {
  color: var(--blue-light);
}

.bp2-toc a.is-on::before {
  transform: scaleY(1);
}

/* ─── the text ─── */
.bp2-summary {
  margin-bottom: 44px;
  padding: 24px 26px 22px;
  border-radius: 20px;
  border: 1px solid rgba(91, 149, 255, 0.3);
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(20, 99, 243, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.02);
}

.bp2-summary-label {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

.bp2-summary ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.bp2-summary li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.6;
}

.bp2-summary li i {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
}

.bp2-body h2 {
  margin: 52px 0 16px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  scroll-margin-top: calc(var(--nav-h) + 30px);
}

.bp2-body > p,
.bp2-body li {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #C3CBDD;
}

.bp2-body > p {
  margin-bottom: 18px;
}

.bp2-body ul,
.bp2-body ol {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 8px 0 22px;
}

.bp2-body > ul li {
  position: relative;
  padding-inline-start: 22px;
}

.bp2-body > ul li::before {
  content: '';
  position: absolute;
  inset-inline-start: 2px;
  top: 0.75em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-glow);
}

.bp2-body > ol {
  counter-reset: bp-step;
}

.bp2-body > ol li {
  position: relative;
  padding-inline-start: 40px;
  counter-increment: bp-step;
}

.bp2-body > ol li::before {
  content: counter(bp-step, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: 0.2em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-light);
}

.bp2-note {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  margin: 26px 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(91, 149, 255, 0.3);
  background: rgba(20, 99, 243, 0.08);
}

.bp2-note i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-style: normal;
  font-weight: 600;
}

.bp2-note p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.bp2-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  padding: 24px 26px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(170deg, #0B1329, #060A16 80%);
}

.bp2-cta p {
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

@media (max-width: 1000px) {
  .bp2-inner { grid-template-columns: minmax(0, 720px); }
  .bp2-toc { display: none; }
}

@media (max-width: 900px) {
  .bp-section2 { padding: 44px 0 40px; }
  .bp2-summary { padding: 20px 18px 18px; margin-bottom: 32px; }
  .bp2-body h2 { margin-top: 40px; }
}
