/* ============================================================
   Widget · Timeline
   ============================================================
   Vertical progression with a sage→accent gradient line and a
   dot per stage. Mirrors `.timeline` from the mockup.

   Dot halo trick: each dot has a 4px box-shadow ring matching
   the page background, masking the line behind it. Assumption
   is a near-white post background (which is what the
   believe-detox `.bdc-post-body` is). If a page uses a
   different background, override `--bdc-timeline-halo` on the
   widget wrapper.
   ============================================================ */

.bdc-timeline {
  list-style: none;
  padding: 0 0 0 28px;
  margin: 18px 0 28px;
  position: relative;
  font-family: var(--bdc-sans);
  /* Halo color — masks the gradient line behind each dot. */
  --bdc-timeline-halo: #fff;
  /* Line gradient endpoints — exposed so user can override
     per-page if a different palette is needed. */
  --bdc-timeline-line-start: var(--bdc-sage);
  --bdc-timeline-line-end:   var(--bdc-accent);
}

.bdc-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--bdc-timeline-line-start) 0%, var(--bdc-timeline-line-end) 100%);
  border-radius: 2px;
}

.bdc-timeline__item {
  position: relative;
  padding-bottom: 22px;
  list-style: none;
}
.bdc-timeline__item:last-child {
  padding-bottom: 0;
}

.bdc-timeline__item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--bdc-timeline-halo);
  border: 2.5px solid var(--bdc-sage);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bdc-timeline-halo);
  box-sizing: border-box;
}

.bdc-timeline__item--danger::before {
  border-color: var(--bdc-danger);
  background: var(--bdc-danger);
}

.bdc-timeline__when {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bdc-sage);
  font-weight: 700;
  margin-bottom: 4px;
}
.bdc-timeline__item--danger .bdc-timeline__when {
  color: var(--bdc-danger);
}

.bdc-timeline__what {
  font-family: var(--bdc-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--bdc-ink);
  line-height: 1.2;
}

.bdc-timeline__detail {
  font-size: 14.5px;
  color: var(--bdc-ink-2);
  line-height: 1.55;
}
.bdc-timeline__detail strong {
  color: var(--bdc-ink);
  font-weight: 600;
}
.bdc-timeline__item--danger .bdc-timeline__detail strong {
  color: var(--bdc-danger);
}

/* ───── Desktop scaling ───── */

@media (min-width: 768px) {
  .bdc-timeline {
    padding-left: 36px;
    margin: 24px 0 36px;
  }
  .bdc-timeline::before {
    left: 11px;
  }
  .bdc-timeline__item {
    padding-bottom: 28px;
  }
  .bdc-timeline__item::before {
    left: -32px;
    width: 16px;
    height: 16px;
    top: 6px;
  }
  .bdc-timeline__when {
    font-size: 12.5px;
    margin-bottom: 6px;
  }
  .bdc-timeline__what {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .bdc-timeline__detail {
    font-size: 16.5px;
    line-height: 1.6;
  }
}

@media (min-width: 1200px) {
  .bdc-timeline__what   { font-size: 24px; }
  .bdc-timeline__detail { font-size: 17px; }
}

/* ───── Specificity safety ─────
   `<ol>` + `<li>` are heavily styled by themes. The believe-detox
   theme has `.bdc-post-content-col ol li` (0,1,2) with site color
   #2A3441 and 16px size → would override our (0,1,0) item rules.
   `.bdc-v3 .bdc-timeline__item` (0,2,0) wins the cascade.

   Strong inside detail content from wp_kses_post might be hit by
   `body strong` rules — re-declared too. */

.bdc-v3 .bdc-timeline__item {
  list-style: none;
}
.bdc-v3 .bdc-timeline__when { color: var(--bdc-sage); }
.bdc-v3 .bdc-timeline__what { color: var(--bdc-ink); }
.bdc-v3 .bdc-timeline__detail,
.bdc-v3 .bdc-timeline__detail p { color: var(--bdc-ink-2); }
.bdc-v3 .bdc-timeline__detail strong { color: var(--bdc-ink); }

.bdc-v3 .bdc-timeline__item--danger .bdc-timeline__when { color: var(--bdc-danger); }
.bdc-v3 .bdc-timeline__item--danger .bdc-timeline__detail strong { color: var(--bdc-danger); }
