/* Interactive Training "What Interactive Training delivers" panel visuals. Section shell, cards and
   panels come from platform-capabilities.css; variables are the shared --cap-* set. */

/* =========================================================
   Shared capture view: /images/training-capture.jpg framed like object-fit: cover, but as a sized
   layer so spots (percentages of the image) stay pinned. --fx / --fy pick the point to center
   when the crop allows it; --zoom scales past cover. The element must have a definite size.
   ========================================================= */
.training-scene {
  position: relative;
  overflow: hidden;
  container-type: size;
  background: #0b0f16;
}

.training-scene__image {
  --sw: calc(max(100cqw, 124.56cqh) * var(--zoom, 1));
  --sh: calc(max(100cqh, 80.28cqw) * var(--zoom, 1));
  position: absolute;
  left: clamp(calc(100cqw - var(--sw)), calc(50cqw - var(--fx, 0.5) * var(--sw)), 0px);
  top: clamp(calc(100cqh - var(--sh)), calc(50cqh - var(--fy, 0.5) * var(--sh)), 0px);
  width: var(--sw);
  height: var(--sh);
}

.training-scene__image img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.training-scene__spot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: max(7px, calc(var(--sw) * 0.016));
  aspect-ratio: 1;
  border-radius: 50%;
  background: #22b8ec;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9), 0 0 10px rgba(34, 184, 236, 0.7);
  transform: translate(-50%, -50%);
}

.training-scene__spot::before,
.training-scene__spot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1.5px solid #7dd3fc;
  border-radius: 50%;
  opacity: 0;
}

@keyframes training-scene-ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* =========================================================
   Card 1 — Landscape iPad running the training app. State comes from data-section (1–5) and
   data-state (watching | complete) on the figure, looped by training-capabilities.js; the markup
   defaults to a still frame for no-JS and reduced motion. Sizes are cqw of the figure.
   ========================================================= */
.training-ipad {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 24px;
  container-type: inline-size;
  color: var(--cap-ink);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 768px) {
  .training-ipad {
    margin-bottom: 32px;
  }
}

@media (min-width: 1280px) {
  .training-ipad {
    align-self: center;
    width: 84%;
    max-width: none;
    margin: 0 auto 40px;
  }
}

:where(.training-ipad) p {
  margin: 0;
  color: inherit;
}

:where(.training-ipad) ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-ipad__device {
  position: relative;
  padding: 1.8cqw;
  border-radius: 4cqw;
  background: linear-gradient(160deg, #3a4557 0%, #161c27 45%, #0c1018 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 40px 70px -40px rgba(15, 23, 42, 0.6),
    0 18px 30px -22px rgba(15, 23, 42, 0.45);
}

.training-ipad__camera {
  position: absolute;
  top: 0.6cqw;
  left: 50%;
  width: 0.7cqw;
  min-width: 4px;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #05070b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.training-ipad__screen {
  display: grid;
  grid-template-columns: 27% minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  aspect-ratio: 1.42;
  overflow: hidden;
  border-radius: 2.2cqw;
  background: #f3f5f8;
  isolation: isolate;
}

/* Lesson sidebar */
.training-ipad__sidebar {
  min-width: 0;
  padding: 2.2cqw 1.8cqw;
  border-right: 1px solid var(--cap-line);
  background: #f6f7f9;
}

.training-ipad__back {
  font-size: clamp(7.5px, 1.35cqw, 11px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--cap-faint);
}

.training-ipad__back::before {
  content: "\2190";
  margin-right: 0.4em;
}

.training-ipad__kicker {
  margin-top: 2cqw;
  font-size: clamp(6.5px, 1.05cqw, 9.5px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cap-faint);
}

.training-ipad__course {
  margin-top: 0.4cqw;
  font-size: clamp(10.5px, 2.2cqw, 17px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.training-ipad__count {
  display: flex;
  justify-content: space-between;
  margin-top: 1.8cqw;
  padding: 1cqw 0;
  border-top: 1px solid var(--cap-line);
  border-bottom: 1px solid var(--cap-line);
  font-size: clamp(6.5px, 1.05cqw, 9.5px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cap-faint);
}

.training-ipad__lessons {
  display: grid;
  gap: 0.5cqw;
  margin-top: 1.2cqw;
}

.training-ipad__lesson {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1cqw;
  padding: 1cqw 1.1cqw;
  border-radius: 0.9cqw;
  font-size: clamp(8px, 1.55cqw, 12px);
  line-height: 1.25;
  color: var(--cap-faint);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.training-ipad__num {
  position: relative;
  font-size: 0.85em;
  font-weight: 600;
  transition: color 0.4s ease;
}

.training-ipad__lesson-name {
  min-width: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
}

.training-ipad__status {
  display: grid;
  margin-top: 0.15em;
  font-size: 0.85em;
  font-weight: 500;
}

.training-ipad__status > span {
  grid-area: 1 / 1;
  transition: opacity 0.35s ease;
}

.training-ipad__status-done {
  opacity: 0;
}

.training-ipad__time {
  font-size: 0.85em;
  font-weight: 600;
}

.training-ipad__bar {
  grid-column: 1 / -1;
  height: max(3px, 0.45cqw);
  margin-top: 0.4cqw;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 34, 53, 0.08);
}

.training-ipad__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cap-cyan-deep);
  transform: scaleX(var(--training-progress, 0.4));
  transform-origin: left center;
  transition: transform 0.9s var(--cap-ease), background-color 0.4s ease;
}

.training-ipad.is-resetting .training-ipad__bar i {
  transition: none;
}

/* Watching: lesson 1 is the current lesson */
.training-ipad[data-state="watching"] .training-ipad__lesson--1,
.training-ipad[data-state="complete"] .training-ipad__lesson--2 {
  background: #fff;
  box-shadow: inset 2px 0 0 var(--cap-cyan-deep), 0 6px 14px -10px rgba(23, 34, 53, 0.45);
  color: var(--cap-ink);
}

.training-ipad[data-state="watching"] .training-ipad__lesson--1 .training-ipad__num,
.training-ipad[data-state="complete"] .training-ipad__lesson--2 .training-ipad__num {
  color: var(--cap-cyan-deep);
}

.training-ipad[data-state="watching"] .training-ipad__lesson--1 .training-ipad__status,
.training-ipad[data-state="complete"] .training-ipad__lesson--2 .training-ipad__status {
  color: var(--cap-muted);
}

/* Complete: lesson 1 done, lesson 2 unlocked */
.training-ipad[data-state="complete"] .training-ipad__lesson--1 {
  color: var(--cap-ink);
}

.training-ipad[data-state="complete"] .training-ipad__lesson--1 .training-ipad__num,
.training-ipad[data-state="complete"] .training-ipad__lesson--1 .training-ipad__status {
  color: var(--cap-teal);
}

.training-ipad[data-state="complete"] .training-ipad__bar i {
  background: var(--cap-teal);
}

.training-ipad[data-state="complete"] :is(.training-ipad__lesson--1, .training-ipad__lesson--2) .training-ipad__status-now {
  opacity: 0;
}

.training-ipad[data-state="complete"] :is(.training-ipad__lesson--1, .training-ipad__lesson--2) .training-ipad__status-done {
  opacity: 1;
}

/* Machine view */
.training-ipad__view {
  min-width: 0;
  min-height: 0;
}

.training-ipad__spot::before,
.training-ipad__spot::after {
  animation: training-scene-ping 1.8s ease-out infinite;
  visibility: hidden;
}

.training-ipad__spot::after {
  animation-delay: 0.9s;
}

.training-ipad__tag {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(11, 15, 22, 0.8);
  font-size: clamp(8px, 1.9cqw, 12px);
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  color: #fff;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.training-ipad[data-section="1"] .training-ipad__spot--1,
.training-ipad[data-section="2"] .training-ipad__spot--2,
.training-ipad[data-section="3"] .training-ipad__spot--3,
.training-ipad[data-section="4"] .training-ipad__spot--4,
.training-ipad[data-section="5"] .training-ipad__spot--5 {
  transform: translate(-50%, -50%) scale(1.25);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.training-ipad[data-section="1"] .training-ipad__spot--1 .training-ipad__tag,
.training-ipad[data-section="2"] .training-ipad__spot--2 .training-ipad__tag,
.training-ipad[data-section="3"] .training-ipad__spot--3 .training-ipad__tag,
.training-ipad[data-section="4"] .training-ipad__spot--4 .training-ipad__tag,
.training-ipad[data-section="5"] .training-ipad__spot--5 .training-ipad__tag {
  opacity: 1;
  transform: translate(-50%, 0);
}

.training-ipad[data-section="1"] .training-ipad__spot--1::before,
.training-ipad[data-section="1"] .training-ipad__spot--1::after,
.training-ipad[data-section="2"] .training-ipad__spot--2::before,
.training-ipad[data-section="2"] .training-ipad__spot--2::after,
.training-ipad[data-section="3"] .training-ipad__spot--3::before,
.training-ipad[data-section="3"] .training-ipad__spot--3::after,
.training-ipad[data-section="4"] .training-ipad__spot--4::before,
.training-ipad[data-section="4"] .training-ipad__spot--4::after,
.training-ipad[data-section="5"] .training-ipad__spot--5::before,
.training-ipad[data-section="5"] .training-ipad__spot--5::after {
  visibility: visible;
}

.training-ipad__close {
  position: absolute;
  top: 2.4cqh;
  left: 2.4cqh;
  width: max(16px, 7cqh);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.5);
}

.training-ipad__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 26%;
  height: 26%;
  border-left: 1.5px solid var(--cap-ink);
  border-bottom: 1.5px solid var(--cap-ink);
  transform: translate(-50%, -50%) rotate(45deg);
}

.training-ipad__toast {
  position: absolute;
  top: 2.4cqh;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: clamp(8px, 1.9cqw, 12px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--cap-teal);
  opacity: 0;
  transform: translate(-50%, -6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.training-ipad__toast::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.training-ipad[data-state="complete"] .training-ipad__toast {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Section strip along the bottom of the view, as in the app */
.training-ipad__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.1cqw 2cqw;
  background: rgba(255, 255, 255, 0.95);
  font-size: clamp(7px, 1.55cqw, 10.5px);
  line-height: 1.3;
  white-space: nowrap;
}

.training-ipad__machine {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.training-ipad__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.training-ipad__sections {
  display: flex;
  gap: 0.4cqw;
  min-width: 0;
  overflow: hidden;
}

.training-ipad__section {
  padding: 0.15em 0.6em;
  border-radius: 999px;
  font-weight: 500;
  color: var(--cap-faint);
  transition: background-color 0.35s ease, color 0.35s ease;
}

.training-ipad[data-section="1"] .training-ipad__section--1,
.training-ipad[data-section="2"] .training-ipad__section--2,
.training-ipad[data-section="3"] .training-ipad__section--3,
.training-ipad[data-section="4"] .training-ipad__section--4,
.training-ipad[data-section="5"] .training-ipad__section--5 {
  background: var(--cap-cyan-deep);
  color: #fff;
}

/* Bottom nav */
.training-ipad__nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-around;
  padding: 1.1cqw 0 1.3cqw;
  background: #1b2230;
}

.training-ipad__nav span {
  display: grid;
  justify-items: center;
  gap: 0.35cqw;
  font-size: clamp(6.5px, 1.1cqw, 10px);
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.6);
}

.training-ipad__nav .is-current {
  color: #fff;
}

.training-ipad__nav svg {
  width: max(10px, 1.8cqw);
  aspect-ratio: 1;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Small screens: drop the sidebar detail and the inactive section names */
@container (max-width: 520px) {
  .training-ipad__screen {
    grid-template-columns: 31% minmax(0, 1fr);
    aspect-ratio: 1.2;
  }

  .training-ipad__back,
  .training-ipad__time,
  .training-ipad__nav span:nth-child(2),
  .training-ipad__nav span:nth-child(5) {
    display: none;
  }

  .training-ipad__kicker {
    margin-top: 0;
  }

  .training-ipad__lesson--3 {
    display: none;
  }

  .training-ipad__lesson {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@container (max-width: 380px) {
  .training-ipad__section {
    display: none;
  }

  .training-ipad[data-section="1"] .training-ipad__section--1,
  .training-ipad[data-section="2"] .training-ipad__section--2,
  .training-ipad[data-section="3"] .training-ipad__section--3,
  .training-ipad[data-section="4"] .training-ipad__section--4,
  .training-ipad[data-section="5"] .training-ipad__section--5 {
    display: inline;
  }
}

/* =========================================================
   Card 2 — Any device: four device tiles sharing one progress bar
   ========================================================= */
.training-devices__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-devices__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 6px 12px;
  border: 1px solid var(--cap-line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.training-devices__shape {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 34px;
  margin-bottom: 10px;
  background: #1d232e;
  box-shadow: 0 8px 14px -10px rgba(15, 23, 42, 0.6);
}

.training-devices__shape i {
  display: block;
  background: #2a2f36 url("/images/training-capture.jpg") 42% 50% / cover no-repeat;
}

.training-devices__shape--vr {
  width: 50px;
  height: 26px;
  margin-top: 4px;
  margin-bottom: 14px;
  padding: 3px;
  border-radius: 10px;
}

.training-devices__shape--vr i {
  width: 19px;
  height: 18px;
  border-radius: 46% 46% 40% 40% / 50%;
}

.training-devices__shape--desktop {
  width: 50px;
  padding: 6px 2px 2px;
  border-radius: 4px;
  background: #e3e8ef;
  box-shadow: inset 0 0 0 1px rgba(23, 34, 53, 0.12), 0 8px 14px -10px rgba(15, 23, 42, 0.5);
}

.training-devices__shape--desktop i {
  width: 100%;
  height: 100%;
  border-radius: 1px;
}

.training-devices__shape--ipad {
  width: 46px;
  padding: 3px;
  border-radius: 5px;
}

.training-devices__shape--ipad i {
  width: 100%;
  height: 100%;
  border-radius: 2px;
}

.training-devices__shape--phone {
  width: 19px;
  padding: 2px;
  border-radius: 5px;
}

.training-devices__shape--phone i {
  width: 100%;
  height: 100%;
  border-radius: 3px;
  background-position: 58% 50%;
}

.training-devices__name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.training-devices__status {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--cap-faint);
}

/* One published course feeding every tile */
.training-devices__publish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: auto;
  padding: 14px 16px;
  border: 1px solid var(--cap-line);
  border-radius: 12px;
  background: #fff;
}

.training-devices__publish-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.training-devices__publish-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cap-teal);
}

@container (max-width: 420px) {
  .training-devices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   Card 3 — Hotspots: one spot on the capture opened into its part card
   ========================================================= */
/* Sized by aspect-ratio, not flex: container height units read 0 on a flex-grown size container. */
.training-spot__frame {
  aspect-ratio: 2;
  border-radius: 12px;
}

.training-spot__pin::before,
.training-spot__pin::after {
  animation: training-scene-ping 1.8s ease-out infinite;
}

.training-spot__pin::after {
  animation-delay: 0.9s;
}

.training-spot__card {
  position: absolute;
  top: 50%;
  left: calc(50% + 26px);
  width: min(210px, calc(50% - 38px));
  padding: 11px 13px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.6);
  transform: translateY(-50%);
  transform-origin: left center;
  transition: opacity 0.45s ease 0.3s, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) 0.3s;
}

.training-spot__card::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 18px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
}

.training-spot__part {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.training-spot__where {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--cap-faint);
}

.training-spot__lesson {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--cap-line);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cap-cyan-deep);
}

.training-spot__lesson span:last-child {
  margin-left: auto;
  font-weight: 500;
  color: var(--cap-faint);
}

.training-spot__play {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cap-cyan-deep);
}

.training-spot__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  border: 4px solid transparent;
  border-left: 6px solid #fff;
  border-right-width: 0;
  transform: translate(-50%, -50%);
}

@container (max-width: 400px) {
  .training-spot__frame {
    --fy: 0.62 !important;
    aspect-ratio: 1.05;
  }

  .training-spot__card {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    transform: none;
  }

  .training-spot__card::before {
    display: none;
  }
}

/* =========================================================
   Card 4 — Lessons and assessments: sequential unlock path
   ========================================================= */
.training-path__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-path__item {
  position: relative;
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--cap-line);
  border-radius: 12px;
  background: #fff;
}

/* Connector from one lesson's mark to the next */
.training-path__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 26.5px;
  top: calc(50% + 15px);
  height: calc(100% - 20px);
  width: 1.5px;
  background: var(--cap-line-strong);
  z-index: 1;
}

.training-path__item--done:not(:last-child)::after {
  background: var(--cap-teal);
}

.training-path__item--locked {
  border-style: dashed;
  background: rgba(23, 34, 53, 0.02);
}

.training-path__mark {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
}

.training-path__item--done .training-path__mark {
  background: var(--cap-teal);
}

.training-path__item--done .training-path__mark::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 6.5px;
  width: 9px;
  height: 5px;
  border-left: 1.75px solid #fff;
  border-bottom: 1.75px solid #fff;
  transform: rotate(-45deg);
}

.training-path__item--open .training-path__mark {
  border: 2px solid var(--cap-cyan-deep);
}

.training-path__item--open .training-path__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--cap-cyan-deep);
}

.training-path__item--locked .training-path__mark {
  border: 1.5px dashed var(--cap-line-strong);
}

/* Padlock: shackle and body */
.training-path__item--locked .training-path__mark::before,
.training-path__item--locked .training-path__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.training-path__item--locked .training-path__mark::before {
  top: 4.5px;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--cap-faint);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.training-path__item--locked .training-path__mark::after {
  top: 9.5px;
  width: 9px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--cap-faint);
}

.training-path__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.training-path__status {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--cap-faint);
}

.training-path__item--done .training-path__status {
  color: var(--cap-teal);
}

.training-path__item--open .training-path__status {
  color: var(--cap-cyan-deep);
}

.training-path__item--locked .training-path__name {
  color: var(--cap-muted);
}

@container (max-width: 400px) {
  .training-path__item {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
  }

  .training-path__item:not(:last-child)::after {
    top: 40px;
    height: calc(100% - 16px);
  }

  .training-path__item .platform-cap__chip {
    grid-column: 2;
    justify-self: start;
  }
}

/* =========================================================
   Card 5 — Certification: operator record with sign-off
   ========================================================= */
.training-cert__who {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.training-cert__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cap-blue-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cap-blue);
}

.training-cert__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.training-cert__role {
  margin-top: 1px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--cap-faint);
}

.training-cert__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: var(--cap-teal);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.training-cert__badge::before {
  content: "";
  width: 7px;
  height: 4px;
  margin-top: -2px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

.training-cert__rows {
  display: grid;
  flex: 1 1 auto;
  align-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-cert__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--cap-line);
  border-radius: 12px;
  background: #fff;
}

.training-cert__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--cap-muted);
}

.training-cert__meter {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
}

.training-cert__meter i {
  display: block;
  width: calc(var(--v) * 100%);
  height: 100%;
  border-radius: inherit;
  background: var(--cap-teal);
  transform-origin: left center;
  transition: transform 1.2s var(--cap-ease) 0.4s;
}

.training-cert__value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: right;
}

.training-cert__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@container (max-width: 400px) {
  .training-cert__who {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .training-cert__badge {
    grid-column: 2;
    justify-self: start;
  }

  .training-cert__row {
    grid-template-columns: 78px minmax(0, 1fr) 40px;
    gap: 10px;
  }
}

/* =========================================================
   Scroll reveals (only once the shared script has enhanced the section)
   ========================================================= */
.platform-cap.is-enhanced .training-cert__meter i {
  transform: scaleX(0);
}

.platform-cap.is-enhanced .is-inview .training-cert__meter i {
  transform: none;
}

.platform-cap.is-enhanced .training-spot__card {
  opacity: 0;
  transform: translateY(-50%) scale(0.92);
}

.platform-cap.is-enhanced .is-inview .training-spot__card {
  opacity: 1;
  transform: translateY(-50%);
}

@container (max-width: 400px) {
  .platform-cap.is-enhanced .training-spot__card {
    transform: translateY(8px);
  }

  .platform-cap.is-enhanced .is-inview .training-spot__card {
    transform: none;
  }
}
