/* Prisma blog — index + article styling. Derived from the site's existing
   tokens (Onest, #FAFAF8/#0A0A0A/#EEEAE2) and used only on /blog pages. */

@font-face {
  font-family: 'Onest';
  src: url('/fonts/Onest-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --prisma-peach:    #FFE4D4;
  --prisma-lavender: #E6DDF0;
  --prisma-blue:     #DDEEFF;
  --prisma-cream:    #FAFAF8;
  --prisma-black:    #0A0A0A;
  --prisma-border:   #EEEAE2;
  --prisma-muted:    #7A7A78;

  /* V4 visual-system tokens — shared by blog/index.html + reference article only */
  --radius-sm: 10px;
  --radius-lg: 22px;
  --space-section: 48px;
  --space-compact: 24px;
  --reading-width: 720px;
  --wide-width: 1080px;
  --dur-swap: 220ms;
  --dur-hero: 2400ms;
  --ease-out: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--prisma-cream);
  color: var(--prisma-black);
  font-family: 'Onest', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[hidden] { display: none !important; }

.blog-shell { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.blog-shell-wide { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.blog-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--prisma-border);
}
.blog-nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.blog-nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.blog-nav-logo img { height: 26px; width: auto; display: block; }
.blog-nav-right { display: flex; align-items: center; gap: 14px; }
.blog-nav-back {
  font-size: 13px; color: var(--prisma-muted); text-decoration: none;
  transition: color 140ms;
  white-space: nowrap;
}
.blog-nav-back:hover { color: var(--prisma-black); }

/* Language switcher — same pill style as the homepage LangSwitcher */
.blog-lang-switcher {
  display: inline-flex; align-items: center;
  background: #fff; border: 1px solid #E8E5E0;
  border-radius: 9999px; padding: 2px; gap: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.blog-lang-switcher button {
  font-family: 'Onest', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; padding: 5px 10px; border-radius: 9999px;
  border: none; cursor: pointer; background: transparent; color: var(--prisma-muted);
  transition: all 140ms;
}
.blog-lang-switcher button.is-active { background: var(--prisma-black); color: #fff; }

/* ── Breadcrumb ──────────────────────────────────────────────────────── */
.blog-breadcrumb {
  padding: 18px 0 0;
  font-size: 13px; color: var(--prisma-muted);
}
.blog-breadcrumb a { text-decoration: none; color: var(--prisma-muted); }
.blog-breadcrumb a:hover { color: var(--prisma-black); }
.blog-breadcrumb-sep { margin: 0 6px; color: #C9C6C0; }

/* ── Hero / index intro ──────────────────────────────────────────────── */
.blog-hero { padding: 40px 0 8px; }
.blog-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--prisma-muted); margin-bottom: 14px;
}
.blog-hero h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 18px; }
.blog-hero .blog-lead { font-size: 17px; line-height: 1.6; color: #4A4A48; max-width: 640px; }

/* ── Article header ──────────────────────────────────────────────────── */
.blog-article-header { padding: 28px 0 8px; }
.blog-article-header h1 { font-size: 34px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 14px; }
.blog-meta { font-size: 13px; color: var(--prisma-muted); display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Card grid (blog index) ─────────────────────────────────────────── */
.blog-card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 40px 0;
}
.blog-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--prisma-border); border-radius: 16px;
  padding: 24px; text-decoration: none; color: var(--prisma-black);
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.blog-card-category {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--prisma-muted);
}
.blog-card h2 { font-size: 18px; line-height: 1.35; }
.blog-card p { font-size: 14px; line-height: 1.55; color: #5A5A58; }
.blog-card-readmore { font-size: 13px; font-weight: 600; margin-top: auto; }

/* ── Niche links block ───────────────────────────────────────────────── */
.blog-niche-links {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 40px;
}
.blog-niche-links a {
  font-size: 13px; text-decoration: none; color: var(--prisma-black);
  background: #fff; border: 1px solid var(--prisma-border); border-radius: 9999px;
  padding: 8px 16px; transition: background 140ms;
}
.blog-niche-links a:hover { background: var(--prisma-cream); }

/* ── Article prose ───────────────────────────────────────────────────── */
.blog-prose { max-width: 720px; padding: 24px 0 8px; font-size: 16px; line-height: 1.7; }
.blog-prose h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 14px; letter-spacing: -0.005em; }
.blog-prose h3 { font-size: 19px; line-height: 1.35; margin: 28px 0 10px; }
.blog-prose p { margin: 0 0 16px; color: #2A2A28; }
.blog-prose ul, .blog-prose ol { margin: 0 0 16px; padding-left: 22px; }
.blog-prose li { margin-bottom: 8px; color: #2A2A28; }
.blog-prose strong { font-weight: 600; }
.blog-checklist {
  list-style: none; padding: 0; margin: 20px 0 24px;
  border: 1px solid var(--prisma-border); border-radius: 14px; background: #fff;
}
.blog-checklist li {
  padding: 12px 18px; border-bottom: 1px solid var(--prisma-border);
  display: flex; gap: 10px; align-items: flex-start;
}
.blog-checklist li:last-child { border-bottom: none; }
.blog-checklist li::before { content: '\2713'; color: var(--prisma-black); font-weight: 700; flex-shrink: 0; }

/* ── CTA block ───────────────────────────────────────────────────────── */
.blog-cta {
  margin: 40px 0; padding: 32px; border-radius: 18px;
  background: linear-gradient(135deg, var(--prisma-peach) 0%, var(--prisma-blue) 100%);
}
.blog-cta h3 { font-size: 20px; margin-bottom: 8px; }
.blog-cta p { font-size: 14px; color: #3A3A38; margin-bottom: 18px; max-width: 520px; }
.blog-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.blog-btn-primary {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 500;
  background: var(--prisma-black); color: #fff; text-decoration: none;
  padding: 12px 24px; border-radius: 9999px; transition: opacity 150ms;
}
.blog-btn-primary:hover { opacity: 0.85; }
.blog-btn-outline {
  display: inline-flex; align-items: center; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--prisma-black); text-decoration: none;
  border: 1px solid var(--prisma-black); padding: 11px 24px; border-radius: 9999px;
  transition: background 150ms, color 150ms;
}
.blog-btn-outline:hover { background: var(--prisma-black); color: #fff; }

/* ── Related articles ────────────────────────────────────────────────── */
.blog-related { margin: 40px 0; }
.blog-related h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--prisma-muted); margin-bottom: 16px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.blog-related-card {
  display: block; text-decoration: none; color: var(--prisma-black);
  border: 1px solid var(--prisma-border); border-radius: 14px; padding: 18px;
  background: #fff; font-size: 14px; font-weight: 600; line-height: 1.4;
  transition: box-shadow 200ms ease;
}
.blog-related-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

/* ── Footer (mirrors site.css .site-footer) ─────────────────────────── */
.blog-footer { background: var(--prisma-black); border-top: 1px solid rgba(255,255,255,0.08); padding: 48px 24px; margin-top: 48px; }
.blog-footer-inner {
  max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: flex-start;
}
.blog-footer-brand img { height: 28px; filter: invert(1) brightness(1.2); display: block; margin-bottom: 12px; }
.blog-footer-tagline { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.5; max-width: 260px; }
.blog-footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.blog-footer-col-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.blog-footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.75); padding: 4px 0; transition: color 140ms; text-decoration: none; }
.blog-footer-col a:hover { color: #fff; }
.blog-footer-bottom {
  max-width: 1080px; margin: 28px auto 0; border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ── Reading progress bar ────────────────────────────────────────────── */
.blog-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  z-index: 60; pointer-events: none; background: transparent;
}
.blog-progress-bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--prisma-black), #4A4A48);
  transform: scaleX(0); transform-origin: 0 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .blog-progress-bar { transition: transform 100ms linear; }
}

/* ── Scroll reveal (progressive enhancement — gated by .blog-js) ───────── */
.blog-js .blog-reveal { opacity: 0; transform: translateY(16px); }
.blog-js .blog-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .blog-js .blog-reveal { transition: opacity 500ms ease, transform 500ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-js .blog-reveal { opacity: 1; transform: none; }
}

/* ── Article tags / read time / lead / hero schema ──────────────────── */
.blog-article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.blog-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: #fff; border: 1px solid var(--prisma-border); border-radius: 9999px;
  padding: 5px 12px; color: var(--prisma-black);
}
.blog-readtime { font-size: 12px; font-weight: 500; color: var(--prisma-muted); }
.blog-article-lead { font-size: 16px; line-height: 1.6; color: #4A4A48; max-width: 640px; margin: 4px 0 20px; }

.blog-hero-schema {
  display: flex; align-items: flex-start; gap: 4px; margin: 4px 0 22px;
  overflow-x: auto; padding-bottom: 6px;
}
.blog-hero-schema-node { display: flex; flex-direction: column; align-items: center; gap: 7px; flex-shrink: 0; min-width: 44px; }
.blog-hero-schema-dot { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2px solid var(--prisma-border); }
.blog-hero-schema-node.is-bottleneck .blog-hero-schema-dot {
  background: var(--prisma-black); border-color: var(--prisma-black);
  box-shadow: 0 0 0 4px var(--prisma-peach);
}
.blog-hero-schema-label { font-size: 10.5px; line-height: 1.25; text-align: center; color: var(--prisma-muted); max-width: 54px; }
.blog-hero-schema-node.is-bottleneck .blog-hero-schema-label { color: var(--prisma-black); font-weight: 600; }
.blog-hero-schema-line { flex: 1 1 auto; height: 2px; min-width: 8px; background: var(--prisma-border); margin-top: 6px; }

.blog-hero-actions { margin: 18px 0 4px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.blog-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  color: var(--prisma-black); text-decoration: none; border-bottom: 1px solid var(--prisma-black);
  padding-bottom: 2px;
}
/* V5 Lite: only one CTA in the hero on mobile — the secondary text link is
   dropped there (index/blog and the reference article only). */
@media (max-width: 640px) {
  .blog-hero-secondary { display: none; }
}
/* index only: the hero's secondary link re-appears as plain text below the
   diagnostic module on mobile instead of competing with the hero CTA */
.blog-hero-secondary-mobile { display: none; margin: 0 0 8px; }
@media (max-width: 640px) {
  .blog-hero-secondary-mobile { display: block; }
}

/* ── Symptom intro paragraph ────────────────────────────────────────── */
.blog-symptom { font-size: 18px; line-height: 1.6; color: #2A2A28; margin: 4px 0 8px !important; }

/* ── Compact mid-article CTA ────────────────────────────────────────── */
.blog-cta-compact {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 32px 0; padding: 18px 22px; border-radius: 14px;
  background: #fff; border: 1px solid var(--prisma-border);
}
.blog-cta-compact p { margin: 0 !important; font-size: 14px; color: #3A3A38; }
.blog-btn-sm { padding: 9px 18px; font-size: 13px; white-space: nowrap; }

/* ── Interactive funnel scheme (native <details>, no JS required) ──── */
.blog-funnel { margin: 30px 0 36px; }
.blog-funnel-intro { font-size: 13px; color: var(--prisma-muted); margin: 0 0 14px !important; }
.blog-funnel-track { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.blog-funnel-stage {
  flex: 1 1 0; min-width: 128px; border: 1px solid var(--prisma-border); background: #fff;
  border-radius: 12px;
}
.blog-funnel-stage summary {
  list-style: none; cursor: pointer; padding: 13px 14px 11px; font-size: 13px; font-weight: 600;
  text-align: center; color: var(--prisma-black);
}
.blog-funnel-stage summary::-webkit-details-marker { display: none; }
.blog-funnel-stage p { padding: 0 14px 14px; font-size: 12.5px; line-height: 1.5; color: #5A5A58; margin: 0 !important; }
.blog-funnel-stage.is-bottleneck { border-color: var(--prisma-black); background: var(--prisma-peach); }
.blog-funnel-tag {
  display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: #8A4B22; margin-top: 4px;
}
.blog-funnel-arrow { display: flex; align-items: center; color: #C9C6C0; font-size: 15px; flex-shrink: 0; }
@media (max-width: 640px) {
  .blog-funnel-track { flex-direction: column; }
  .blog-funnel-arrow { display: none; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .blog-funnel-stage { transition: border-color 150ms, box-shadow 150ms; }
  .blog-funnel-stage:hover { border-color: var(--prisma-black); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
}

/* ── Targeting vs Prisma distinction block ────────────────────────────── */
.blog-distinction { margin: 40px 0; }
.blog-distinction h2 { margin-top: 0 !important; }
.blog-distinction-note { color: var(--prisma-muted); font-size: 14px; margin: 0 0 18px !important; }
.blog-distinction-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.blog-distinction-col { border-radius: 16px; padding: 22px 24px; background: #fff; border: 1px solid var(--prisma-border); }
.blog-distinction-col h3 { font-size: 15px; margin: 0 0 14px !important; }
.blog-distinction-col.is-prisma { background: var(--prisma-black); border-color: var(--prisma-black); }
.blog-distinction-col.is-prisma h3 { color: #fff; }
.blog-distinction-list { list-style: none; padding: 0; margin: 0 !important; display: flex; flex-direction: column; gap: 9px; }
.blog-distinction-list li { font-size: 14px; color: #3A3A38 !important; margin: 0 !important; padding-left: 18px; position: relative; }
.blog-distinction-list li::before { content: '\2013'; position: absolute; left: 0; color: var(--prisma-muted); }
.blog-distinction-col.is-prisma .blog-distinction-list li { color: rgba(255,255,255,0.9) !important; }
.blog-distinction-col.is-prisma .blog-distinction-list li::before { color: rgba(255,255,255,0.4); }
@media (max-width: 640px) {
  .blog-distinction-grid { grid-template-columns: 1fr; }
  .blog-distinction-col { padding: 18px 20px; }
}

/* ── Implication block (cost of inaction) ───────────────────────────── */
.blog-implication { margin: 40px 0; padding: 26px 26px 24px; border-radius: 16px; background: #FBF4EF; border: 1px solid #F0E4D8; }
.blog-implication h2 { margin-top: 0 !important; }
.blog-implication-list { list-style: none; padding: 0; margin: 16px 0 0 !important; display: flex; flex-direction: column; gap: 10px; }
.blog-implication-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #3A2A20 !important; margin: 0 !important; }
.blog-implication-list li::before { content: '\2014'; color: #B5673A; flex-shrink: 0; font-weight: 700; }

/* ── Self-diagnosis accordion ───────────────────────────────────────── */
.blog-diagnosis { margin: 40px 0; }
.blog-diagnosis h2 { margin-top: 0 !important; }
.blog-diagnosis > p { color: #5A5A58; font-size: 15px; margin-bottom: 18px !important; }
.blog-diagnosis-list { display: flex; flex-direction: column; gap: 10px; }
.blog-diagnosis-item { border: 1px solid var(--prisma-border); border-radius: 12px; background: #fff; }
.blog-diagnosis-item summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-size: 15px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--prisma-black);
}
.blog-diagnosis-item summary::-webkit-details-marker { display: none; }
.blog-diagnosis-item summary::after {
  content: '+'; font-size: 18px; color: var(--prisma-muted); flex-shrink: 0; line-height: 1;
}
.blog-diagnosis-item[open] summary::after { content: '\2212'; }
.blog-diagnosis-item p { padding: 0 20px 18px; color: #5A5A58 !important; font-size: 14px; line-height: 1.6; margin: 0 !important; }

/* ── Catalog: problem / niche filters ───────────────────────────────── */
.blog-filter-block { margin: 28px 0; }
.blog-filter-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--prisma-muted); margin: 0 0 8px; }
.blog-filter-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.blog-filter-btn {
  font-family: 'Onest', sans-serif; font-size: 13px; padding: 7px 14px; border-radius: 9999px;
  border: 1px solid var(--prisma-border); background: #fff; color: var(--prisma-black); cursor: pointer;
}
.blog-filter-btn.is-active { background: var(--prisma-black); color: #fff; border-color: var(--prisma-black); }
.blog-filter-btn:hover:not(.is-active) { background: var(--prisma-cream); }

.blog-card-facts { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #5A5A58; margin: 2px 0 4px; }
.blog-card-facts strong { color: #2A2A28; font-weight: 600; }
.blog-card-grid-niche { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0 40px; }
.blog-section-heading { font-size: 20px; margin: 44px 0 4px; }
.blog-section-subheading { font-size: 14px; color: var(--prisma-muted); margin-bottom: 4px; }

/* ── CTA / interactive focus + press states ─────────────────────────── */
.blog-btn-primary:focus-visible,
.blog-btn-outline:focus-visible,
.blog-btn-ghost:focus-visible,
.blog-lang-switcher button:focus-visible,
.blog-filter-btn:focus-visible,
.blog-diagnosis-item summary:focus-visible,
.blog-funnel-stage summary:focus-visible {
  outline: 2px solid var(--prisma-black); outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .blog-btn-primary, .blog-btn-outline, .blog-btn-ghost, .blog-filter-btn { transition: opacity 150ms, transform 150ms, background 150ms, color 150ms, border-color 150ms; }
  .blog-btn-primary:active, .blog-btn-outline:active, .blog-btn-ghost:active { transform: scale(0.97); }
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .blog-card-grid { grid-template-columns: 1fr 1fr; }
  .blog-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .blog-hero h1 { font-size: 30px; }
  .blog-article-header h1 { font-size: 26px; }
  .blog-card-grid { grid-template-columns: 1fr; }
  .blog-card-grid-niche { grid-template-columns: 1fr; }
  .blog-footer-links { flex-direction: column; gap: 24px; }
  .blog-cta { padding: 24px; }
  .blog-cta-compact { padding: 16px 18px; flex-direction: column; align-items: flex-start; }
  .blog-implication { padding: 20px 20px 18px; }
}

/* ══════════════════════════════════════════════════════════════════════
   CONVERSION FUNNEL V4 — visual system for blog/index.html + the
   reference article only. Three visual levels, max two rectangular
   border-radius values (--radius-sm / --radius-lg; circular badges are
   exempt). Every class below is exclusive to these two pages — nothing
   here is referenced by the other blog articles.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Level 1 accent: hero handoff marker (index hero + compact article hero) */
.blog-hero-v3 { padding-bottom: 4px; }
.blog-handoff { position: relative; display: flex; align-items: center; gap: 0; margin: 20px 0 22px; }
.blog-handoff-side { flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.blog-handoff-side.is-prisma { align-items: flex-end; text-align: right; }
.blog-handoff-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--prisma-muted);
}
.blog-handoff-side.is-prisma .blog-handoff-label { color: var(--prisma-black); }
.blog-handoff-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blog-handoff-side.is-prisma .blog-handoff-steps { justify-content: flex-end; }
.blog-handoff-step { font-size: 13px; font-weight: 500; color: var(--prisma-muted); white-space: nowrap; }
.blog-handoff-side.is-prisma .blog-handoff-step { color: #3A3A38; font-weight: 600; }
.blog-handoff-side.is-prisma .blog-handoff-step.is-last { color: var(--prisma-black); font-weight: 700; }
.blog-handoff-arrow { color: #C9C6C0; font-size: 12px; }
.blog-handoff-signal { position: relative; display: block; height: 1px; background: var(--prisma-border); margin-top: 2px; }
.blog-handoff-signal-dot { position: absolute; top: 50%; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--prisma-black); transform: translateY(-50%); }

.blog-handoff-center { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 26px; min-width: 140px; }
.blog-handoff-caption { font-size: 10.5px; line-height: 1.35; color: var(--prisma-muted); text-align: center; max-width: 130px; }
.blog-handoff-marker { position: relative; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.blog-handoff-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--prisma-peach); }
.blog-handoff-ring-2 { inset: -9px; border-color: #F5D9C4; }
.blog-handoff-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--prisma-black); box-shadow: 0 0 0 6px var(--prisma-peach); }
.blog-handoff-word { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--prisma-black); }

/* Compact article variant */
.blog-handoff--compact { margin: 18px 0 20px; }
.blog-handoff--compact .blog-handoff-marker { width: 38px; height: 38px; }
.blog-handoff--compact .blog-handoff-dot { width: 11px; height: 11px; box-shadow: 0 0 0 5px var(--prisma-peach); }
.blog-handoff--compact .blog-handoff-word { font-size: 11.5px; }
.blog-handoff--compact .blog-handoff-center { padding: 0 18px; min-width: 100px; }
.blog-handoff--compact .blog-handoff-step { font-size: 12.5px; }

/* One-shot handoff motion: JS arms + plays once on load; static + fully
   visible by default so no-JS / reduced-motion visitors see the final state. */
@media (prefers-reduced-motion: no-preference) {
  .blog-handoff.js-armed .blog-handoff-signal-dot { opacity: 0; }
  .blog-handoff.js-armed.is-playing .blog-handoff-signal-dot { animation: prismaSignal 850ms var(--ease-out) forwards; }
  .blog-handoff.js-armed .blog-handoff-marker { transform: scale(0.82); opacity: 0.55; }
  .blog-handoff.js-armed.is-playing .blog-handoff-marker { animation: prismaMarkerPulse 480ms var(--ease-out) 800ms forwards; }
  .blog-handoff.js-armed .blog-handoff-side.is-prisma { opacity: 0.32; }
  .blog-handoff.js-armed.is-playing .blog-handoff-side.is-prisma { animation: prismaFadeIn 480ms var(--ease-out) 1280ms forwards; }
}
@keyframes prismaSignal { 0% { left: 0; opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
@keyframes prismaMarkerPulse { 0% { transform: scale(0.82); opacity: 0.55; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes prismaFadeIn { from { opacity: 0.32; transform: translateX(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .blog-handoff { flex-direction: column; align-items: stretch; gap: 18px; }
  .blog-handoff-side.is-prisma { align-items: flex-start; text-align: left; }
  .blog-handoff-side.is-prisma .blog-handoff-steps { justify-content: flex-start; }
  .blog-handoff-center { padding: 6px 0; }
}

/* ── V5 Lite: Target vs Prisma reduced to three compact typographic phases
   (index only — the article's duplicate block was removed entirely) ──── */
.blog-phases { margin: var(--space-section) 0; }
.blog-phases-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.blog-phases-col { padding: 0 22px; border-left: 1px solid var(--prisma-border); }
.blog-phases-col:first-child { padding-left: 0; border-left: none; }
.blog-phases-heading {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--prisma-muted); margin-bottom: 8px;
}
.blog-phases-col.is-prisma .blog-phases-heading { color: var(--prisma-black); }
.blog-phases-chain { font-size: 14.5px; line-height: 1.5; color: #3A3A38; margin: 0; }
.blog-phases-col.is-prisma .blog-phases-chain { font-weight: 600; color: var(--prisma-black); }
.blog-phases-summary { margin: 22px 0 0; font-size: 16px; font-weight: 500; color: #2A2A28; padding-top: 18px; border-top: 1px solid var(--prisma-border); }
@media (max-width: 760px) {
  .blog-phases-row { grid-template-columns: 1fr; gap: 14px; }
  .blog-phases-col { padding: 14px 0 0; border-left: none; border-top: 1px solid var(--prisma-border); }
  .blog-phases-col:first-child { padding-top: 0; border-top: none; }
}

/* ── Diagnostic module (index page) ───────────────────────────────────
   Level 2: compact row-list (problem) + underline tabs (niche).
   Level 1: single accent result panel. */
.blog-diag2 { margin: var(--space-section) 0; }
.blog-diag2-grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 18px; }
@media (min-width: 980px) {
  .blog-diag2-grid { grid-template-columns: 1.05fr 1fr; align-items: start; gap: 36px; }
}
.blog-diag2-block { margin-bottom: 26px; }
.blog-diag2-block:last-child { margin-bottom: 0; }
.blog-diag2-block-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--prisma-muted); margin-bottom: 8px; }

/* Mobile-only progressive disclosure: problem → niche → result, one focus
   at a time. Desktop (≥980px, where the grid already goes two-column) is
   untouched — every rule below lives inside the narrow-viewport query, so
   it has zero effect once the two-column layout kicks in. */
.blog-diag2-summary {
  display: none; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  font-family: 'Onest', sans-serif; background: transparent; border: none; border-bottom: 1px solid var(--prisma-border);
  padding: 14px 6px; min-height: 44px; cursor: pointer; text-align: left;
}
.blog-diag2-summary-value { font-size: 14px; font-weight: 600; color: var(--prisma-black); }
.blog-diag2-summary-edit { font-size: 12.5px; font-weight: 500; color: var(--prisma-muted); white-space: nowrap; }
@media (max-width: 979px) {
  .blog-diag2-block.is-locked { display: none; }
  .blog-diag2-block.is-done .blog-diag2-list,
  .blog-diag2-block.is-done .blog-diag2-tabs { display: none; }
  .blog-diag2-block.is-done .blog-diag2-summary { display: flex; }
  .blog-diag2-result[data-diag-step] { display: none; }
  .blog-diag2-result[data-diag-step].is-step-visible { display: block; }
}

.blog-diag2-list { display: flex; flex-direction: column; border-top: 1px solid var(--prisma-border); }
.blog-diag2-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font-family: 'Onest', sans-serif;
  background: transparent; border: none; border-bottom: 1px solid var(--prisma-border); border-left: 3px solid transparent;
  padding: 14px 6px; min-height: 64px; cursor: pointer;
}
.blog-diag2-row-num { font-size: 11px; font-weight: 700; color: var(--prisma-muted); flex-shrink: 0; width: 20px; font-variant-numeric: tabular-nums; }
.blog-diag2-row-text { display: flex; flex-direction: column; gap: 3px; }
.blog-diag2-row-title { font-size: 14px; font-weight: 600; color: var(--prisma-black); }
.blog-diag2-row-symptom { font-size: 12.5px; color: var(--prisma-muted); }
.blog-diag2-row.is-active { border-left-color: var(--prisma-black); background: linear-gradient(90deg, rgba(255,228,212,0.35), rgba(255,228,212,0)); padding-left: 14px; }
.blog-diag2-row.is-active .blog-diag2-row-num { color: var(--prisma-black); }
@media (hover: hover) { .blog-diag2-row:hover:not(.is-active) { background: rgba(0,0,0,0.025); } }

.blog-diag2-tabs { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--prisma-border); }
.blog-diag2-tab {
  font-family: 'Onest', sans-serif; font-size: 13px; font-weight: 500; padding: 10px 12px; min-height: 44px;
  background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  color: var(--prisma-muted); cursor: pointer;
}
.blog-diag2-tab.is-active { color: var(--prisma-black); font-weight: 700; border-bottom-color: var(--prisma-black); }
@media (hover: hover) { .blog-diag2-tab:hover:not(.is-active) { color: var(--prisma-black); } }

.blog-diag2-result { background: #fff; border: 1px solid var(--prisma-border); border-radius: var(--radius-lg); padding: 26px 28px; }
@media (min-width: 980px) { .blog-diag2-result { position: sticky; top: 84px; } }
.blog-diag2-result-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--prisma-muted); margin-bottom: 14px; }
.blog-diag2-result-inner { display: grid; }
.blog-diag2-result-content { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); pointer-events: none; }
.blog-diag2-result-content.is-active { opacity: 1; transform: none; pointer-events: auto; }
.blog-diag2-result-content.is-leaving { opacity: 0; transform: translateY(-6px); }
@media (prefers-reduced-motion: no-preference) {
  .blog-diag2-result-content { transition: opacity var(--dur-swap) ease, transform var(--dur-swap) ease; }
}
.blog-diag2-result-content h3 { font-size: 19px; line-height: 1.3; margin: 0 0 16px; }
.blog-diag2-result-rows { display: flex; flex-direction: column; gap: 12px; padding: 14px 0; border-top: 1px solid var(--prisma-border); border-bottom: 1px solid var(--prisma-border); margin-bottom: 16px; }
.blog-diag2-result-row { display: flex; gap: 14px; }
.blog-diag2-result-row-label { flex: 0 0 92px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--prisma-muted); padding-top: 2px; }
.blog-diag2-result-row p { flex: 1; font-size: 14px; line-height: 1.55; color: #3A3A38; margin: 0; }
.blog-diag2-result-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.blog-diag2-result-link { font-size: 13px; font-weight: 500; color: var(--prisma-muted); text-decoration: underline; text-underline-offset: 2px; }
.blog-diag2-result-link:hover { color: var(--prisma-black); }

@media (max-width: 640px) {
  .blog-diag2-row { min-height: 72px; }
}

/* ── Catalog: compact one-line diagnosis + accent bar ────────────────── */
.blog-card-diagnoses { display: block; font-size: 12.5px; color: #5A5A58; margin: 2px 0 4px; }
.blog-card { position: relative; }
.blog-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--prisma-peach); border-radius: 16px 16px 0 0; }
.blog-card:nth-of-type(3n+2)::before { background: var(--prisma-lavender); }
.blog-card:nth-of-type(3n)::before { background: var(--prisma-blue); }

/* ── "Как это выглядит сейчас" — editorial numbered chain (article) ──── */
.blog-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 24px 0 32px; padding: 16px 0; border-top: 1px solid var(--prisma-border); border-bottom: 1px solid var(--prisma-border); }
.blog-chain-step { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: #3A3A38; white-space: nowrap; }
.blog-chain-num { font-size: 10.5px; font-weight: 700; color: var(--prisma-muted); font-variant-numeric: tabular-nums; }
.blog-chain-step.is-fail { color: var(--prisma-black); font-weight: 700; }
.blog-chain-step.is-fail .blog-chain-num { color: #B5673A; }
.blog-chain-line { flex: 0 1 32px; height: 1px; background: var(--prisma-border); margin: 0 12px; min-width: 16px; }
@media (max-width: 560px) {
  .blog-chain { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 0; }
  .blog-chain-line { display: none; }
}

/* ── "Где ломается путь" — numbered scale, horizontal → vertical ─────── */
.blog-scale { margin: 26px 0 36px; }
.blog-scale-intro { font-size: 13px; color: var(--prisma-muted); margin: 0 0 16px !important; }
.blog-scale-track { display: flex; align-items: center; gap: 0; margin-bottom: 20px; }
.blog-scale-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: 'Onest', sans-serif;
  background: transparent; border: none; padding: 6px 4px; cursor: pointer; flex: 0 0 auto; min-height: 44px; justify-content: center;
}
.blog-scale-num {
  font-size: 12px; font-weight: 700; color: var(--prisma-muted); width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--prisma-border);
}
.blog-scale-label { font-size: 12px; font-weight: 600; color: var(--prisma-muted); white-space: nowrap; }
/* Bottleneck tag only appears when that step is the one currently selected —
   otherwise it reads as a second, competing "active" state next to the real
   black active marker on whichever step the visitor picked. */
.blog-scale-tag { display: none; font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #B5673A; }
.blog-scale-step.is-active .blog-scale-num { background: var(--prisma-black); border-color: var(--prisma-black); color: #fff; }
.blog-scale-step.is-active .blog-scale-label { color: var(--prisma-black); }
.blog-scale-step.is-active.is-bottleneck .blog-scale-tag { display: block; }
.blog-scale-step.is-active.is-bottleneck .blog-scale-num { background: #B5673A; border-color: #B5673A; box-shadow: 0 0 0 3px var(--prisma-peach); }
.blog-scale-line { flex: 1 1 auto; height: 1px; background: var(--prisma-border); position: relative; min-width: 12px; margin: 0 2px; top: -9px; }
.blog-scale-line-fill { position: absolute; inset: 0; background: var(--prisma-black); width: 0; }
@media (prefers-reduced-motion: no-preference) { .blog-scale-line-fill { transition: width var(--dur-swap) ease; } }
.blog-scale-detail { border-top: 1px solid var(--prisma-border); padding-top: 18px; }
.blog-scale-panel[hidden] { display: none; }
.blog-scale-panel { display: flex; flex-direction: column; gap: 8px; }
.blog-scale-panel p { font-size: 14px; line-height: 1.6; color: #3A3A38; margin: 0; }
@media (prefers-reduced-motion: no-preference) { .blog-scale-panel:not([hidden]) { animation: prismaPanelIn var(--dur-swap) ease; } }
@keyframes prismaPanelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (hover: hover) { .blog-scale-step:hover:not(.is-active) .blog-scale-label { color: var(--prisma-black); } }
@media (max-width: 640px) {
  .blog-scale-track { flex-direction: column; align-items: flex-start; gap: 10px; }
  .blog-scale-step { flex-direction: row; width: 100%; justify-content: flex-start; }
  .blog-scale-line { display: none; }
}

/* ── V5 Lite: "Цена бездействия" as one numbered list, not five cards ──── */
.blog-implication-numbered { list-style: none; counter-reset: cost; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.blog-implication-numbered li {
  counter-increment: cost; font-size: 14.5px; line-height: 1.5; color: #3A2A20; padding-left: 30px; position: relative;
}
.blog-implication-numbered li::before {
  content: counter(cost, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-size: 11px; font-weight: 700; color: #B5673A; font-variant-numeric: tabular-nums;
}

/* ── Self-diagnosis — visually isolated section, own accent background ── */
.blog-selfdx { margin: var(--space-section) 0; padding: 36px 30px; border-radius: var(--radius-lg); background: #FBF4EF; }
.blog-selfdx h2 { margin-top: 0 !important; }
.blog-selfdx-kicker { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #B5673A; margin-bottom: 10px; }
.blog-selfdx-intro { font-size: 15px; color: #5A5A58; margin-bottom: 20px !important; }
.blog-selfdx-progress { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.blog-selfdx-progress-num { font-size: 30px; font-weight: 700; color: var(--prisma-black); line-height: 1; }
.blog-selfdx-progress-total { font-size: 12px; color: var(--prisma-muted); flex: 1 1 100%; order: 2; }
.blog-selfdx-bar { width: 100%; order: 3; flex: 1 1 100%; height: 3px; background: rgba(0,0,0,0.08); overflow: hidden; margin-top: 8px; }
.blog-selfdx-bar-fill { display: block; height: 100%; width: 0; background: var(--prisma-black); }
@media (prefers-reduced-motion: no-preference) { .blog-selfdx-bar-fill { transition: width 250ms ease; } }
.blog-selfdx-list { display: flex; flex-direction: column; border-top: 1px solid rgba(0,0,0,0.08); margin: 0 0 26px; }
.blog-selfdx-q { padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.08); }
@media (prefers-reduced-motion: no-preference) { .blog-selfdx-q { transition: opacity 200ms ease; } }
.blog-selfdx-q.is-answered { opacity: 0.6; }
.blog-selfdx-back {
  display: none; font-family: 'Onest', sans-serif; font-size: 13px; font-weight: 500; color: var(--prisma-muted);
  background: transparent; border: none; padding: 0 0 14px; margin: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
/* V5 Lite: one question at a time on mobile — gated by .blog-js so a
   no-JS visitor still sees (and can complete) the full question list. */
@media (max-width: 640px) {
  .blog-js .blog-selfdx-q { display: none; }
  .blog-js .blog-selfdx-q.is-current { display: block; }
  .blog-js .blog-selfdx-back:not([hidden]) { display: inline-flex; }
}
.blog-selfdx-question { font-size: 14.5px; font-weight: 600; color: var(--prisma-black); margin: 0 0 12px !important; }
.blog-selfdx-options { display: flex; gap: 8px; flex-wrap: wrap; }
.blog-selfdx-opt {
  font-family: 'Onest', sans-serif; font-size: 13px; font-weight: 500; padding: 9px 16px; min-height: 44px;
  border-radius: var(--radius-sm); border: 1px solid rgba(0,0,0,0.12); background: #fff; color: var(--prisma-black); cursor: pointer;
}
.blog-selfdx-opt.is-selected { background: var(--prisma-black); color: #fff; border-color: var(--prisma-black); }
@media (hover: hover) { .blog-selfdx-opt:hover:not(.is-selected) { border-color: var(--prisma-black); } }
.blog-selfdx-result { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--prisma-black); }
.blog-selfdx-result h3 { font-size: 18px; margin: 0 0 8px; color: #fff; }
.blog-selfdx-result p { font-size: 14.5px; color: rgba(255,255,255,0.8); margin: 0 0 16px !important; }
.blog-selfdx-outcome[hidden] { display: none; }

/* ── Prisma process — two-column numbered list, no black pills ───────── */
.blog-process { margin: var(--space-section) 0; }
.blog-process h2 { margin-top: 0 !important; }
.blog-process-intro { font-size: 14px; color: var(--prisma-muted); margin-bottom: 20px !important; }
.blog-process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--prisma-border); }
@media (min-width: 640px) { .blog-process-grid { grid-template-columns: 1fr 1fr; } }
.blog-process-item { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--prisma-border); font-size: 14px; font-weight: 500; color: #3A3A38; }
.blog-process-num { font-size: 11px; font-weight: 700; color: var(--prisma-muted); width: 22px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.blog-process-item.is-final { font-weight: 700; color: var(--prisma-black); }
.blog-process-item.is-final .blog-process-num { color: #B5673A; }
/* Short desktop-only clarifier per phase — mobile shows just the 4 phase names */
.blog-process-note { font-weight: 400; color: var(--prisma-muted); }
@media (max-width: 640px) {
  .blog-process-note { display: none; }
}
@media (min-width: 640px) {
  .blog-process-item:nth-child(odd) { border-right: 1px solid var(--prisma-border); padding-right: 16px; }
  .blog-process-item:nth-child(even) { padding-left: 16px; }
}

/* ── Focus states for all new interactive elements ───────────────────── */
.blog-diag2-row:focus-visible,
.blog-diag2-tab:focus-visible,
.blog-diag2-summary:focus-visible,
.blog-diag2-result:focus-visible,
.blog-scale-step:focus-visible,
.blog-selfdx-opt:focus-visible,
.blog-selfdx-q:focus-visible,
.blog-selfdx-back:focus-visible {
  outline: 2px solid var(--prisma-black); outline-offset: 2px;
}
/* .blog-selfdx-result has a black background, so it needs a light outline
   to stay visible instead of the usual dark one. */
.blog-selfdx-result:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Programmatic focus moves (progressive disclosure step changes) should
   always show, even in browsers that would otherwise suppress :focus-visible
   for script-triggered focus. */
.blog-diag2-result:focus { outline: 2px solid var(--prisma-black); outline-offset: 2px; }
.blog-selfdx-result:focus { outline: 2px solid #fff; outline-offset: 2px; }
