/* ==========================================================================
   B2B Headz — egységes cikk-ábrák (bh-fig)
   --------------------------------------------------------------------------
   Minden ábra ugyanabból a néhány építőelemből áll:
     .bh-fig          keret: cím (a lényeg egy mondatban) + ábra + megjegyzés
     .bh-stats        nagy számok kutatási adatokhoz
     .bh-steps        sorrendi folyamat (vízszintes, mobilon függőleges)
     .bh-funnel       arányos sávok valós/példa számokhoz + lépésenkénti arány
     .bh-narrow       szűkülő szűrők számok nélkül (fogalmi tölcsér)
     .bh-compare      2–4 oszlopos összevetés / szerepkörök
     .bh-metrics      két változat összevetése sávokkal
     .bh-lanes        csatornaváltás (pl. LinkedIn → e-mail)
   Szabályok: egy ábrán egyetlen sárga kiemelés jelöli, hová tart a folyamat;
   a sávok arányosak; mobilon soha nincs vízszintes görgetés.
   A fájl a styles.css UTÁN töltődik, !important nélkül.
   ========================================================================== */

.article-body {
  --bhd-ink: #0b1220;
  --bhd-text: #273142;
  --bhd-muted: #5d6677;
  --bhd-faint: #8a93a3;
  --bhd-surface: #f3f4f7;
  --bhd-card: #ffffff;
  --bhd-line: #dde1e8;
  --bhd-dim: #c3cad6;
  --bhd-accent: #ffd400;
  --bhd-accent-ink: #241e00;
  --bhd-radius: 16px;
  --bhd-gap: 14px;
}

/* ---------- Keret ---------- */
.article-body figure.bh-fig {
  margin: 2.75em 0;
  padding: clamp(20px, 4vw, 32px);
  background: var(--bhd-surface);
  border-radius: var(--bhd-radius);
  overflow: visible;
  color: var(--bhd-text);
  font-family: var(--font-body);
}
.article-body .bh-fig .bh-fig-title {
  display: block;
  margin: 0 0 22px;
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 21px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--bhd-ink);
}
.article-body .bh-fig .bh-fig-note {
  margin: 20px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--bhd-muted);
}
.article-body .bh-fig ol,
.article-body .bh-fig ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-body .bh-fig li {
  margin: 0;
  padding: 0;
}
.article-body .bh-fig p { margin: 0; }
.article-body .bh-fig strong { color: var(--bhd-ink); }

/* ---------- Nagy számok ---------- */
.article-body .bh-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px var(--bhd-gap);
}
.article-body .bh-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-body .bh-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.article-body .bh-stat {
  padding-top: 14px;
  border-top: 2px solid var(--bhd-ink);
}
.article-body .bh-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bhd-ink);
  font-variant-numeric: tabular-nums;
}
.article-body .bh-stat-label {
  display: block;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--bhd-text);
}

/* ---------- Folyamat lépései ---------- */
.article-body .bh-steps {
  --n: 4;
  --marker: 30px;
  counter-reset: bhstep;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 22px var(--bhd-gap);
}
.article-body .bh-phases { counter-reset: bhstep; }
.article-body .bh-phases .bh-steps { counter-reset: none; }

.article-body .bh-step {
  position: relative;
  counter-increment: bhstep;
  min-width: 0;
}
.article-body .bh-step::before {
  content: counter(bhstep);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--marker);
  height: var(--marker);
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--bhd-ink);
  color: #fff;
  font: 700 13px/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
/* összekötő vonal a következő lépéshez */
.article-body .bh-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--marker) / 2 - 1px);
  left: calc(var(--marker) + 8px);
  right: calc(-1 * var(--bhd-gap) + 6px);
  height: 2px;
  background: var(--bhd-dim);
}
.article-body .bh-step-kicker {
  display: block;
  margin-bottom: 3px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bhd-muted);
}
.article-body .bh-step-title {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--bhd-ink);
}
.article-body .bh-step-desc {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--bhd-muted);
}
/* a cél: ide tart a folyamat */
.article-body .bh-step.is-goal::before {
  background: var(--bhd-accent);
  color: var(--bhd-accent-ink);
  box-shadow: 0 0 0 4px rgba(255, 212, 0, 0.28);
}
/* ami már nem ennek a lépésnek a feladata */
.article-body .bh-step.is-later { opacity: 0.45; }
.article-body .bh-step.is-later::before { background: var(--bhd-dim); color: var(--bhd-ink); }

/* 8 lépés: két sor négyesével */
.article-body .bh-steps--grid { --n: 4; row-gap: 28px; }
.article-body .bh-steps--grid .bh-step:nth-child(4n)::after { display: none; }

/* függőleges változat (hosszabb listákhoz) */
.article-body .bh-steps--vertical,
.article-body .bh-phases .bh-steps {
  grid-template-columns: 1fr;
  gap: 16px;
}
.article-body .bh-steps--vertical .bh-step,
.article-body .bh-phases .bh-step {
  padding-left: calc(var(--marker) + 14px);
  min-height: var(--marker);
}
.article-body .bh-steps--vertical .bh-step::before,
.article-body .bh-phases .bh-step::before {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
}
.article-body .bh-steps--vertical .bh-step:not(:last-child)::after,
.article-body .bh-phases .bh-step:not(:last-child)::after {
  top: calc(var(--marker) + 6px);
  bottom: -10px;
  left: calc(var(--marker) / 2 - 1px);
  right: auto;
  width: 2px;
  height: auto;
}
.article-body .bh-steps--vertical .bh-step > :first-child,
.article-body .bh-phases .bh-step > :first-child { padding-top: 5px; }
.article-body .bh-steps--vertical .bh-step-title,
.article-body .bh-phases .bh-step-title {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
}
.article-body .bh-phases {
  display: grid;
  gap: 22px;
}
.article-body .bh-phase {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bhd-line);
}
.article-body .bh-phase:first-child { padding-top: 0; border-top: 0; }
.article-body .bh-phase-label {
  padding-top: 5px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  color: var(--bhd-ink);
}

/* ---------- Arányos tölcsér (számokkal) ---------- */
.article-body .bh-funnel {
  display: grid;
  grid-template-columns: minmax(120px, 34%) minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 10px;
}
.article-body .bh-funnel-head {
  display: contents;
}
.article-body .bh-funnel-head > span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--bhd-muted);
  padding-bottom: 2px;
}
.article-body .bh-funnel-head > span:nth-child(3),
.article-body .bh-funnel-head > span:nth-child(4) { text-align: right; }
.article-body .bh-row { display: contents; }
.article-body .bh-row-label {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bhd-ink);
}
.article-body .bh-track {
  position: relative;
  height: 22px;
  background: rgba(11, 18, 32, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.article-body .bh-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: max(4px, calc(var(--v) * 1%));
  background: var(--bhd-ink);
  border-radius: 4px;
  transform-origin: left center;
}
.article-body .bh-row.is-goal .bh-bar { background: var(--bhd-accent); }
.article-body .bh-row-value {
  min-width: 3.2em;
  text-align: right;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--bhd-ink);
  font-variant-numeric: tabular-nums;
}
.article-body .bh-row-rate {
  min-width: 3.4em;
  text-align: right;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bhd-muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Szűkülő szűrők (számok nélkül) ---------- */
.article-body .bh-narrow {
  display: grid;
  grid-template-columns: minmax(96px, 30%) minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 8px;
  align-items: center;
}
.article-body .bh-narrow-row { display: contents; }
.article-body .bh-narrow-shape {
  height: 30px;
  width: calc(var(--w) * 1%);
  justify-self: center;
  border-radius: 6px;
  background: var(--bhd-dim);
}
.article-body .bh-narrow-row.is-goal .bh-narrow-shape { background: var(--bhd-accent); }
.article-body .bh-narrow-title {
  display: block;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.25;
  color: var(--bhd-ink);
}
.article-body .bh-narrow-desc {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bhd-muted);
}

/* ---------- Összevetés / szerepkörök ---------- */
.article-body .bh-compare {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: var(--bhd-gap);
}
.article-body .bh-col {
  padding: 20px 20px 22px;
  background: var(--bhd-card);
  border-radius: 12px;
  border-top: 3px solid var(--bhd-dim);
}
.article-body .bh-col.is-goal { border-top-color: var(--bhd-accent); }
.article-body .bh-col-title {
  display: block;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--bhd-ink);
}
.article-body .bh-col-sub {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bhd-muted);
}
.article-body .bh-fig .bh-col-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.article-body .bh-fig .bh-col-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--bhd-text);
}
.article-body .bh-fig .bh-col-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bhd-dim);
}
.article-body .bh-col.is-goal .bh-col-list li::before { background: var(--bhd-ink); }

/* ---------- Két változat sávokkal ---------- */
.article-body .bh-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bhd-text);
}
.article-body .bh-key { display: inline-flex; align-items: center; gap: 8px; }
.article-body .bh-key::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--bhd-dim);
}
.article-body .bh-key--b::before { background: var(--bhd-ink); }
.article-body .bh-metrics { display: grid; gap: 22px; }
.article-body .bh-metric-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 750;
  color: var(--bhd-ink);
}
.article-body .bh-metric-bars { display: grid; gap: 6px; }
.article-body .bh-mbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.4em;
  align-items: center;
  gap: 12px;
}
.article-body .bh-mbar .bh-track { height: 20px; }
.article-body .bh-mbar--a .bh-bar { background: var(--bhd-dim); }
.article-body .bh-mbar-value {
  text-align: right;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--bhd-ink);
  font-variant-numeric: tabular-nums;
}
.article-body .bh-mbar--a .bh-mbar-value { color: var(--bhd-muted); }

/* ---------- Csatornák (LinkedIn → e-mail) ---------- */
.article-body .bh-lanes { display: grid; gap: 12px; }
.article-body .bh-lane {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  background: var(--bhd-card);
  border-radius: 12px;
}
.article-body .bh-lane-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--bhd-ink);
}
.article-body .bh-lane-label small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--bhd-muted);
}
.article-body .bh-fig .bh-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
}
.article-body .bh-fig .bh-chip {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--bhd-ink);
}
.article-body .bh-fig .bh-chip > span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bhd-surface);
}
.article-body .bh-fig .bh-chip + .bh-chip::before {
  content: "";
  width: 22px;
  height: 2px;
  margin: 0 6px;
  background: var(--bhd-dim);
}
.article-body .bh-fig .bh-chip.is-goal > span { background: var(--bhd-accent); color: var(--bhd-accent-ink); }
.article-body .bh-fig .bh-chip.is-muted > span {
  background: transparent;
  border: 1px dashed var(--bhd-dim);
  color: var(--bhd-muted);
  font-weight: 500;
}

/* ---------- Egyetlen animáció: sávok kinőnek + számok felpörögnek (diagrams.js) ----------
   A diagrams.js teszi rá a .bh-anim osztályt (JS nélkül minden azonnal kész állapotban látszik),
   és a .bh-in osztályt, amikor az ábra képbe ér. */
.article-body .bh-fig.bh-anim .bh-bar,
.article-body .bh-fig.bh-anim .bh-narrow-shape {
  transform: scaleX(0);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-body .bh-fig.bh-anim .bh-narrow-shape { transform-origin: center; }
.article-body .bh-fig.bh-anim.bh-in .bh-bar,
.article-body .bh-fig.bh-anim.bh-in .bh-narrow-shape { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .article-body .bh-fig.bh-anim .bh-bar,
  .article-body .bh-fig.bh-anim .bh-narrow-shape { transform: none; transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 760px) {
  .article-body .bh-steps--grid { --n: 2; }
  .article-body .bh-steps--grid .bh-step:nth-child(4n)::after { display: block; }
  .article-body .bh-steps--grid .bh-step:nth-child(2n)::after { display: none; }
  .article-body .bh-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
  .article-body figure.bh-fig { border-radius: 12px; margin-left: -6px; margin-right: -6px; }

  .article-body .bh-stats,
  .article-body .bh-stats--2 { grid-template-columns: 1fr; gap: 18px; }
  .article-body .bh-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .article-body .bh-stat-num { font-size: 34px; }

  /* minden folyamat függőleges */
  .article-body .bh-steps,
  .article-body .bh-steps--grid { grid-template-columns: 1fr; gap: 16px; }
  .article-body .bh-steps .bh-step {
    padding-left: calc(var(--marker) + 14px);
    min-height: var(--marker);
  }
  .article-body .bh-steps .bh-step::before {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
  .article-body .bh-steps .bh-step:not(:last-child)::after,
  .article-body .bh-steps--grid .bh-step:nth-child(n):not(:last-child)::after {
    display: block;
    top: calc(var(--marker) + 6px);
    bottom: -10px;
    left: calc(var(--marker) / 2 - 1px);
    right: auto;
    width: 2px;
    height: auto;
  }
  .article-body .bh-steps .bh-step > :first-child { padding-top: 6px; }

  .article-body .bh-phase { grid-template-columns: 1fr; gap: 12px; }

  /* tölcsér: címke felül, sáv + szám alatta */
  .article-body .bh-funnel {
    grid-template-columns: minmax(0, 1fr) auto auto;
    row-gap: 4px;
  }
  .article-body .bh-funnel-head > span:first-child { display: none; }
  .article-body .bh-row-label { grid-column: 1 / -1; margin-top: 8px; font-size: 14px; }

  .article-body .bh-narrow { grid-template-columns: 34% minmax(0, 1fr); column-gap: 14px; }

  .article-body .bh-compare { grid-template-columns: 1fr; }
  .article-body .bh-lane { grid-template-columns: 1fr; gap: 12px; }
  .article-body .bh-fig .bh-chips { flex-direction: column; align-items: flex-start; }
  .article-body .bh-fig .bh-chip { flex-direction: column; align-items: flex-start; }
  .article-body .bh-fig .bh-chip + .bh-chip::before { width: 2px; height: 12px; margin: 3px 0 3px 18px; }
}

/* ==========================================================================
   Egérre reagáló állapotok
   Csak egérrel/trackpaddel használt eszközökön (érintőképernyőn nem
   „ragad be”), és kikapcsol, ha a látogató csökkentett mozgást kért.
   Elv: csak az az elem változik, amire rámutatsz; a többi változatlan marad.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .article-body .bh-fig {
    --bhd-ease: cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* --- Nagy számok: a vonal sárgára vált, a szám kicsit megemelkedik --- */
  .article-body .bh-stat {
    border-top-color: var(--bhd-ink);
    transition: border-color 0.25s ease, opacity 0.25s ease;
    cursor: default;
  }
  .article-body .bh-stat-num {
    transition: transform 0.35s var(--bhd-ease);
  }
  .article-body .bh-stats .bh-stat:hover { opacity: 1; border-top-color: var(--bhd-accent); }
  .article-body .bh-stat:hover .bh-stat-num { transform: translateY(-4px) scale(1.04); transform-origin: left bottom; }

  /* --- Folyamatlépések: a kiválasztott lépés kiemelkedik, a vonal tovább „fut” --- */
  .article-body .bh-step {
    cursor: default;
    transition: opacity 0.25s ease;
  }
  .article-body .bh-step::before {
    transition: transform 0.35s var(--bhd-ease), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  }
  .article-body .bh-step::after {
    background-image: linear-gradient(var(--bhd-ink), var(--bhd-ink));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.45s var(--bhd-ease);
  }
  .article-body .bh-step-title { transition: transform 0.3s var(--bhd-ease); }
  .article-body .bh-step:hover { opacity: 1; }
  .article-body .bh-step:hover::before {
    transform: scale(1.15);
    background: var(--bhd-accent);
    color: var(--bhd-accent-ink);
    box-shadow: 0 0 0 5px rgba(255, 212, 0, 0.3);
  }
  .article-body .bh-step:hover::after { background-size: 100% 100%; }
  .article-body .bh-steps:not(.bh-steps--vertical) .bh-step:hover .bh-step-title { transform: translateX(3px); }
  .article-body .bh-step.is-later:hover::before { background: var(--bhd-ink); color: #fff; box-shadow: none; }
  /* függőleges vonalnál felülről lefelé töltődik */
  .article-body .bh-steps--vertical .bh-step::after,
  .article-body .bh-phases .bh-step::after { background-size: 100% 0%; }
  .article-body .bh-steps--vertical .bh-step:hover::after,
  .article-body .bh-phases .bh-step:hover::after { background-size: 100% 100%; }
  .article-body .bh-phase-label { transition: color 0.25s ease; }
  .article-body .bh-phase:hover .bh-phase-label { color: var(--bhd-ink); text-decoration: underline; text-decoration-color: var(--bhd-accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }

  /* --- Tölcsér: a sor kiemelődik, a többi sáv elhalványul --- */
  .article-body .bh-row > * { transition: opacity 0.25s ease, color 0.25s ease; cursor: default; }
  .article-body .bh-bar { transition: background-color 0.25s ease, transform 1.1s var(--bhd-ease); }
  .article-body .bh-track { transition: height 0.25s var(--bhd-ease); }
  .article-body .bh-funnel .bh-row:hover > * { opacity: 1; }
  .article-body .bh-funnel .bh-row:hover .bh-bar { background: var(--bhd-accent); }
  .article-body .bh-funnel .bh-row.is-goal:hover .bh-bar { background: var(--bhd-ink); }
  .article-body .bh-funnel .bh-row:hover .bh-row-rate {
    color: var(--bhd-ink);
    font-weight: 800;
  }

  /* --- Szűkülő szűrők: a kiválasztott szint „bekapcsol” --- */
  .article-body .bh-narrow-row > * { transition: opacity 0.25s ease; cursor: default; }
  .article-body .bh-narrow-shape { transition: background-color 0.25s ease, transform 0.35s var(--bhd-ease); }
  .article-body .bh-narrow .bh-narrow-row:hover > * { opacity: 1; }
  .article-body .bh-narrow .bh-narrow-row:hover .bh-narrow-shape { background: var(--bhd-ink); transform: scaleY(1.15); }
  .article-body .bh-narrow .bh-narrow-row.is-goal:hover .bh-narrow-shape { background: var(--bhd-accent); }

  /* --- Összevetés / szerepkörök: a kártya megemelkedik --- */
  .article-body .bh-col {
    cursor: default;
    transition: transform 0.35s var(--bhd-ease), box-shadow 0.35s ease, border-color 0.25s ease, opacity 0.25s ease;
  }
  .article-body .bh-fig .bh-col-list li::before { transition: background-color 0.25s ease, transform 0.3s var(--bhd-ease); }
  .article-body .bh-col:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -16px rgba(11, 18, 32, 0.35);
    border-top-color: var(--bhd-ink);
  }
  .article-body .bh-col.is-goal:hover { border-top-color: var(--bhd-accent); }
  .article-body .bh-fig .bh-col:hover .bh-col-list li::before { background: var(--bhd-accent); transform: scale(1.25); }

  /* --- Két változat: a mutató csoport sávjai vastagodnak --- */
  .article-body .bh-metric { transition: opacity 0.25s ease; cursor: default; }
  .article-body .bh-metric:hover .bh-track { height: 26px; }
  .article-body .bh-metric:hover .bh-mbar--b .bh-bar { background: var(--bhd-accent); }
  .article-body .bh-metric:hover .bh-mbar--b .bh-mbar-value { transform: scale(1.12); }
  .article-body .bh-mbar-value { transition: transform 0.3s var(--bhd-ease); transform-origin: right center; }

  /* --- Csatornák: a sáv kiemelődik, a buborékok sorban felvillannak --- */
  .article-body .bh-lane { transition: box-shadow 0.35s ease, opacity 0.25s ease; cursor: default; }
  .article-body .bh-lane:hover { box-shadow: 0 12px 26px -18px rgba(11, 18, 32, 0.4); }
  .article-body .bh-fig .bh-chip > span { transition: transform 0.3s var(--bhd-ease), background-color 0.25s ease; }
  .article-body .bh-fig .bh-chip + .bh-chip::before { transition: background-color 0.25s ease; }
  .article-body .bh-fig .bh-lane:hover .bh-chip + .bh-chip::before { background: var(--bhd-ink); }
  .article-body .bh-fig .bh-lane:hover .bh-chip > span { transform: translateY(-2px); }
  .article-body .bh-fig .bh-lane:hover .bh-chip:nth-child(2) > span { transition-delay: 0.06s; }
  .article-body .bh-fig .bh-lane:hover .bh-chip:nth-child(3) > span { transition-delay: 0.12s; }
  .article-body .bh-fig .bh-lane:hover .bh-chip:nth-child(4) > span { transition-delay: 0.18s; }
  .article-body .bh-fig .bh-chip:not(.is-goal):not(.is-muted):hover > span { background: var(--bhd-ink); color: #fff; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .article-body .bh-fig *,
  .article-body .bh-fig *::before,
  .article-body .bh-fig *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .article-body .bh-stat:hover .bh-stat-num,
  .article-body .bh-col:hover,
  .article-body .bh-fig .bh-lane:hover .bh-chip > span,
  .article-body .bh-step:hover::before,
  .article-body .bh-narrow .bh-narrow-row:hover .bh-narrow-shape { transform: none; }
}

/* ---------- Szövegbuborékok (pill-list): a szöveg középen ----------
   A cikk általános li-szabálya (padding-left: .25em) elcsúsztatta a szöveget balra. */
.article-body .pill-list li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 16px;
  text-align: center;
  line-height: 1.35;
}

/* ==========================================================================
   4. cikk: 2×2-es mátrix, táblázat, tanulási kör
   ========================================================================== */

/* ---------- 2×2-es mátrix ---------- */
.article-body .bh-matrix {
  display: grid;
  grid-template-columns: 52px repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto) auto;
  gap: var(--bhd-gap);
}
.article-body .bh-matrix-y {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2px solid var(--bhd-dim);
  margin-right: 6px;
}
.article-body .bh-matrix-y b {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 750;
  color: var(--bhd-ink);
  white-space: nowrap;
}
.article-body .bh-matrix-y .bh-matrix-hi,
.article-body .bh-matrix-y .bh-matrix-lo {
  position: absolute;
  left: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--bhd-muted);
}
.article-body .bh-matrix-y .bh-matrix-hi { top: 4px; }
.article-body .bh-matrix-y .bh-matrix-lo { bottom: 4px; }
.article-body .bh-matrix-x {
  grid-column: 2 / span 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 2px solid var(--bhd-dim);
  font-size: 12px;
  font-weight: 600;
  color: var(--bhd-muted);
}
.article-body .bh-matrix-x b {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 750;
  color: var(--bhd-ink);
}
.article-body .bh-quad {
  min-height: 128px;
  padding: 18px 18px 20px;
  background: var(--bhd-card);
  border-radius: 12px;
  border-top: 3px solid var(--bhd-dim);
}
.article-body .bh-quad.is-goal {
  background: rgba(255, 212, 0, 0.16);
  border-top-color: var(--bhd-accent);
}
.article-body .bh-quad .bh-col-sub { margin-top: 6px; color: var(--bhd-text); }

/* ---------- Kitölthető táblázat ---------- */
.article-body .bh-table-wrap {
  overflow-x: auto;
  background: var(--bhd-card);
  border-radius: 12px;
}
.article-body table.bh-table {
  display: table !important;
  width: 100%;
  min-width: 640px;
  font-family: var(--font-body);
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
  margin: 0;
  border-collapse: collapse;
  font-size: 14px;
}
.article-body .bh-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bhd-line);
  background: transparent;
  color: var(--bhd-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  vertical-align: bottom;
}
.article-body .bh-table th,
.article-body .bh-table td { font-family: var(--font-body); word-break: normal; overflow-wrap: normal; }
.article-body .bh-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bhd-line);
  color: var(--bhd-ink);
  vertical-align: top;
  height: 22px;
}
.article-body .bh-table tr:last-child td { border-bottom: 0; color: var(--bhd-faint); }

/* ---------- Tanulási kör ---------- */
.article-body .bh-cycle {
  --cyc-line: var(--bhd-dim);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 84px);
}
.article-body .bh-cycle-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: var(--bhd-card);
  border: 1.5px solid var(--bhd-dim);
  border-radius: 12px;
  text-align: center;
}
.article-body .bh-cycle-step.is-goal { background: rgba(255, 212, 0, 0.16); border-color: var(--bhd-accent); border-width: 2px; }
.article-body .bh-cycle-step .bh-step-title { font-size: 16px; }
.article-body .bh-cycle-step .bh-step-desc { margin-top: 3px; font-size: 13px; }
.article-body .bh-cycle-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bhd-muted);
}
/* sarkok: L alakú összekötő nyíllal, az óramutató járásával megegyezően */
.article-body .bh-cycle-corner { position: relative; }
.article-body .bh-cycle-corner::before,
.article-body .bh-cycle-corner::after { content: ""; position: absolute; }
.article-body .bh-cycle-corner::before { border: 0 solid var(--cyc-line); }
.article-body .bh-cycle-corner::after { width: 0; height: 0; border: 6px solid transparent; }
/* fent jobbra: Megkeresés → Eredmény (jobbra, majd le) */
.article-body .bh-cycle-tr::before { left: 0; top: 50%; width: 50%; bottom: 0; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 12px; }
.article-body .bh-cycle-tr::after { left: calc(50% - 6px + 1px); bottom: -2px; border-top-color: var(--cyc-line); border-bottom-width: 0; }
/* lent jobbra: Eredmény → Minta (le, majd balra) */
.article-body .bh-cycle-br::before { left: 0; top: 0; width: 50%; height: 50%; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 12px; }
.article-body .bh-cycle-br::after { left: -2px; top: calc(50% - 6px + 1px); border-right-color: var(--cyc-line); border-left-width: 0; }
/* lent balra: Minta → Módosítás (balra, majd fel) */
.article-body .bh-cycle-bl::before { right: 0; top: 0; width: 50%; height: 50%; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 12px; }
.article-body .bh-cycle-bl::after { right: calc(50% - 6px + 1px - 0px); top: -2px; transform: translateX(-1px); border-bottom-color: var(--cyc-line); border-top-width: 0; }
/* fent balra: Módosítás → Megkeresés (fel, majd jobbra) */
.article-body .bh-cycle-tl::before { right: 0; top: 50%; width: 50%; bottom: 0; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 12px; }
.article-body .bh-cycle-tl::after { right: -2px; top: calc(50% - 6px + 1px); border-left-color: var(--cyc-line); border-right-width: 0; }

@media (hover: hover) and (pointer: fine) {
  .article-body .bh-quad,
  .article-body .bh-cycle-step {
    cursor: default;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
  }
  .article-body .bh-quad:hover,
  .article-body .bh-cycle-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -16px rgba(11, 18, 32, 0.35);
  }
  .article-body .bh-quad:not(.is-goal):hover { border-top-color: var(--bhd-ink); }
  .article-body .bh-cycle-step:not(.is-goal):hover { border-color: var(--bhd-ink); }
  .article-body .bh-table tbody tr { transition: background-color 0.2s ease; }
  .article-body .bh-table tbody tr:hover td { background: rgba(255, 212, 0, 0.1); }
}
@media (prefers-reduced-motion: reduce) {
  .article-body .bh-quad:hover,
  .article-body .bh-cycle-step:hover { transform: none; }
}

@media (max-width: 600px) {
  .article-body .bh-matrix { grid-template-columns: 26px repeat(2, minmax(0, 1fr)); gap: 8px; }
  .article-body .bh-matrix-y { border-right-width: 2px; }
  .article-body .bh-matrix-y { margin-right: 2px; }
  .article-body .bh-matrix-y .bh-matrix-hi,
  .article-body .bh-matrix-y .bh-matrix-lo { display: none; }
  .article-body .bh-quad { min-height: 0; padding: 14px 12px 16px; }
  .article-body .bh-quad .bh-col-title { font-size: 15px; }
  .article-body .bh-quad .bh-col-sub { font-size: 13px; }

  /* a kör mobilon egymás alatti lépések, a végén vissza az elejére */
  .article-body .bh-cycle { grid-template-columns: 1fr; grid-template-rows: none; gap: 22px; }
  .article-body .bh-cycle-corner { display: none; }
  .article-body .bh-cycle-step { position: relative; min-height: 72px; }
  .article-body .bh-cycle-1 { order: 1; }
  .article-body .bh-cycle-2 { order: 2; }
  .article-body .bh-cycle-3 { order: 3; }
  .article-body .bh-cycle-4 { order: 4; }
  .article-body .bh-cycle-center { order: 5; padding-top: 0; }
  .article-body .bh-cycle-center::before { content: "↺ "; }
  .article-body .bh-cycle-step:not(.bh-cycle-4)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--bhd-dim);
    border-bottom-width: 0;
  }
}
