/* dg-dt-erp.css */
/* dt-erp: ERP/CRM selection as a 10-week plan, six steps with milestones (durations from the SCT ERP selection deck, slide 5). A time line sweeps week 1 to 10. */
.dg-dt-erp { margin: 8px 0 28px; container-type: inline-size; font-family: var(--font); color: var(--ink); --lw: 46%; --cg: 16px; }
.dg-dt-erp .in { position: relative; }
.dg-dt-erp .ax, .dg-dt-erp .r { display: grid; grid-template-columns: var(--lw) minmax(0, 1fr); column-gap: var(--cg); align-items: center; }
.dg-dt-erp .ax { padding-bottom: 6px; }
.dg-dt-erp .ax strong { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.2; color: var(--blue); }
.dg-dt-erp .tk { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.dg-dt-erp .tk span { text-align: center; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dg-dt-erp ol { list-style: none; margin: 0; padding: 0; }
.dg-dt-erp .r { padding: 7px 0; border-top: 1px solid var(--grey-tint); }
.dg-dt-erp .lb { display: flex; gap: 10px; align-items: baseline; font-size: 0.875rem; font-weight: 700; line-height: 1.3; min-width: 0; }
.dg-dt-erp .lb b { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-tint); font-family: var(--font-display); font-size: 0.8125rem; line-height: 1; transform: translateY(-1px); }
.dg-dt-erp .trk { position: relative; height: 18px; border-radius: 5px; background-color: var(--off); background-image: linear-gradient(to right, var(--grey-tint) 1px, transparent 1px); background-size: 10% 100%; }
.dg-dt-erp .bar { position: absolute; top: 2px; bottom: 2px; left: calc(var(--s) * 10%); width: calc(var(--d) * 10%); border-radius: 6px; background: var(--blue); }
.dg-dt-erp .bar::after { content: ""; position: absolute; right: -6px; top: 50%; width: 11px; height: 11px; margin-top: -6.5px; background: var(--yellow); border: 2px solid var(--navy); border-radius: 2px; transform: rotate(45deg); }
.dg-dt-erp .r1 { --s: 0; --d: 2; }
.dg-dt-erp .r2 { --s: 2; --d: 2; }
.dg-dt-erp .r3 { --s: 4; --d: 1; }
.dg-dt-erp .r4 { --s: 5; --d: 1; }
.dg-dt-erp .r5 { --s: 6; --d: 3; }
.dg-dt-erp .r6 { --s: 9; --d: 1; }
.dg-dt-erp .r6 .bar { background: var(--navy); }
.dg-dt-erp .sw { position: absolute; top: 0; bottom: 0; left: calc(var(--lw) + var(--cg)); right: 0; overflow: hidden; pointer-events: none; }
.dg-dt-erp .sw span { position: relative; display: block; width: 100%; height: 100%; animation: dg-dt-erp-sweep 10s linear infinite; }
.dg-dt-erp .sw span::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--amber); border-radius: 1px; }
@keyframes dg-dt-erp-sweep { from { transform: translateX(0); } to { transform: translateX(100%); } }

@container (max-width: 500px) {
  .dg-dt-erp .ax, .dg-dt-erp .r { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .dg-dt-erp .r { padding: 9px 0; }
  .dg-dt-erp .sw { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dg-dt-erp * { animation: none !important; } }

/* dg-dt-maturity.css */
/* dt-maturity — ascending staircase of the four maturity stages (navy panel context) */
.dg-dt-maturity {
  margin: 0;
  container-type: inline-size;
  color: var(--on-dark);
  font-family: var(--font);
}
.dg-dt-maturity__stairs { position: relative; }
.dg-dt-maturity__steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.dg-dt-maturity__step {
  --tone: var(--blue); --on-tone: var(--white); --mark: var(--sky-tint);
  display: flex; flex-direction: column;
}
.dg-dt-maturity__step:nth-child(2) { --tone: var(--sky); --on-tone: var(--navy); --mark: var(--sky); }
.dg-dt-maturity__step:nth-child(3) { --tone: var(--yellow); --on-tone: var(--navy); --mark: var(--yellow); }
.dg-dt-maturity__step:nth-child(4) { --tone: var(--off); --on-tone: var(--navy); --mark: var(--off); }

/* riser = coloured step block carrying number + title */
.dg-dt-maturity__riser {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: var(--tone); color: var(--on-tone);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}
/* quarter-circle brand shape tucked into the riser corner */
.dg-dt-maturity__riser::after {
  content: ""; position: absolute; right: -22px; bottom: -22px;
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid currentColor; opacity: 0.18;
}
.dg-dt-maturity__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 32px; line-height: 1; letter-spacing: -0.02em;
  flex: none;
}
.dg-dt-maturity__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; line-height: 1.15; letter-spacing: -0.01em;
  color: inherit; text-wrap: balance;
}

/* body = text + bullets, a faint column below the riser */
.dg-dt-maturity__body {
  flex: 1;
  padding: 16px 18px 20px;
  background: color-mix(in srgb, var(--off) 7%, transparent);
  border-radius: 0 0 18px 18px;
}
.dg-dt-maturity__body p {
  margin: 0 0 12px;
  font-size: 15px; line-height: 1.5; color: var(--on-dark);
}
.dg-dt-maturity__body ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 6px;
}
.dg-dt-maturity__body li {
  position: relative; padding-left: 18px;
  font-size: 14px; line-height: 1.4; color: var(--on-dark-soft);
}
.dg-dt-maturity__body li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 7px; height: 7px; background: var(--mark);
  transform: rotate(45deg);
}

/* mobile: vertical stepped list, progressively indented */
.dg-dt-maturity__step:nth-child(2) { margin-inline-start: clamp(8px, 4cqi, 28px); }
.dg-dt-maturity__step:nth-child(3) { margin-inline-start: calc(2 * clamp(8px, 4cqi, 28px)); }
.dg-dt-maturity__step:nth-child(4) { margin-inline-start: calc(3 * clamp(8px, 4cqi, 28px)); }

.dg-dt-maturity__climber { display: none; }

/* desktop: a real staircase, four steps rising left to right */
@container (min-width: 820px) {
  .dg-dt-maturity__stairs {
    --g: 14px; --rise: 48px; --pad: 26px; --c: 16px;
    padding-top: var(--pad);
  }
  .dg-dt-maturity__steps {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--g); align-items: stretch;
  }
  .dg-dt-maturity__step { margin-inline-start: 0 !important; }
  .dg-dt-maturity__step:nth-child(1) { padding-top: calc(3 * var(--rise)); }
  .dg-dt-maturity__step:nth-child(2) { padding-top: calc(2 * var(--rise)); }
  .dg-dt-maturity__step:nth-child(3) { padding-top: var(--rise); }
  .dg-dt-maturity__riser {
    flex-direction: column; align-items: flex-start; gap: 10px;
    min-height: 148px; padding: 20px 20px 18px;
    border-radius: 22px 22px 0 0;
  }
  .dg-dt-maturity__riser::after { width: 88px; height: 88px; right: -30px; bottom: -30px; }
  .dg-dt-maturity__num { font-size: 46px; }
  .dg-dt-maturity__title { font-size: clamp(17px, 1.75cqi, 22px); }
  .dg-dt-maturity__body { padding: 18px 20px 24px; border-radius: 0 0 22px 22px; }
  .dg-dt-maturity__body p { font-size: 15.5px; }

  /* small yellow circle that climbs the treads; rests on the top step when still */
  .dg-dt-maturity__climber {
    display: block; position: absolute;
    width: var(--c); height: var(--c); border-radius: 50%;
    background: var(--yellow);
    left: calc((100% - 3 * var(--g)) / 4 * 3.5 + var(--g) * 3 - var(--c) / 2);
    top: calc(var(--pad) - var(--c) - 3px);
    animation: dg-dt-maturity-climb 11s var(--ease) infinite;
    pointer-events: none;
  }
}

@keyframes dg-dt-maturity-climb {
  0%   { opacity: 0; left: calc((100% - 3 * var(--g)) / 4 * 0 + 18px); top: calc(var(--pad) + 3 * var(--rise) - var(--c) - 3px); }
  4%   { opacity: 1; left: calc((100% - 3 * var(--g)) / 4 * 0 + 24px); top: calc(var(--pad) + 3 * var(--rise) - var(--c) - 3px); }
  13%  { left: calc((100% - 3 * var(--g)) / 4 * 1 - 34px); top: calc(var(--pad) + 3 * var(--rise) - var(--c) - 3px); }
  17%  { left: calc((100% - 3 * var(--g)) / 4 * 1 + var(--g) / 2 - var(--c) / 2); top: calc(var(--pad) + 2 * var(--rise) - var(--c) - 22px); }
  21%  { left: calc((100% - 3 * var(--g)) / 4 * 1 + var(--g) + 22px); top: calc(var(--pad) + 2 * var(--rise) - var(--c) - 3px); }
  32%  { left: calc((100% - 3 * var(--g)) / 4 * 2 + var(--g) - 34px); top: calc(var(--pad) + 2 * var(--rise) - var(--c) - 3px); }
  36%  { left: calc((100% - 3 * var(--g)) / 4 * 2 + var(--g) * 1.5 - var(--c) / 2); top: calc(var(--pad) + 1 * var(--rise) - var(--c) - 22px); }
  40%  { left: calc((100% - 3 * var(--g)) / 4 * 2 + var(--g) * 2 + 22px); top: calc(var(--pad) + 1 * var(--rise) - var(--c) - 3px); }
  51%  { left: calc((100% - 3 * var(--g)) / 4 * 3 + var(--g) * 2 - 34px); top: calc(var(--pad) + 1 * var(--rise) - var(--c) - 3px); }
  55%  { left: calc((100% - 3 * var(--g)) / 4 * 3 + var(--g) * 2.5 - var(--c) / 2); top: calc(var(--pad) - var(--c) - 22px); }
  59%  { left: calc((100% - 3 * var(--g)) / 4 * 3 + var(--g) * 3 + 22px); top: calc(var(--pad) - var(--c) - 3px); }
  70%, 88% { opacity: 1; left: calc((100% - 3 * var(--g)) / 4 * 3.5 + var(--g) * 3 - var(--c) / 2); top: calc(var(--pad) - var(--c) - 3px); }
  95%, 100% { opacity: 0; left: calc((100% - 3 * var(--g)) / 4 * 3.5 + var(--g) * 3 - var(--c) / 2); top: calc(var(--pad) - var(--c) - 3px); }
}

@media (prefers-reduced-motion: reduce) {
  .dg-dt-maturity * { animation: none !important; }
}

/* inside the site's dark panel the generic ".dark h3" colour must not override the step colours */
.dark .dg-dt-maturity .dg-dt-maturity__title { color: inherit; }
