/* /os "Training and templates provided" (WEB-170): Not locked's two-line heading, a dot field (os-training.js), then
   three steps that reuse Not locked's title and line type (.nolock-text). data-step is the entry stage the field has
   reached; data-hl is the step being hovered, focused or tapped. */

.page .wrap.td-sec {
  --nolock-tl-title: calc(var(--os-fs-b) * var(--b-ui-lr));
  padding-inline: var(--gutter);
}

@supports (width: round(1px, 1px)) {
  .page .wrap.td-sec {
    --nolock-tl-title: round(calc(var(--os-fs-b) * var(--b-ui-lr)), 1px);
  }
}

.td-sec > .td-copy,
.td-sec > .td-body {
  grid-column: 1 / -1;
  min-width: 0;
}

html:not(#_n1) body:not(#_n2):not(#_n3):not(#_n4):not(#_n5):not(#_n6) [data-page=os] .td-sec .td-h {
  font-size: var(--os-fs-head) !important;
  line-height: var(--os-tl-head) !important;
  margin: 0 !important;
  padding: 0 !important;
  text-wrap: balance;
}

.td-h > span {
  display: block;
}

.td-h > span + span {
  color: var(--text);
}

.td-body {
  margin-top: calc(var(--line) * 2);
}

/* the unselected Not locked card's surface; the dot grid fades out before the edge, so the stroke stays clear */
.td-art {
  --nolock-u: calc(var(--os-fs-b) / 15);
  display: block;
  width: 100%;
  aspect-ratio: 9 / 2;
  border-radius: calc(20 * var(--nolock-u));
  background: var(--paper);
  box-shadow: inset 0 0 0 var(--stroke) var(--rule);
}

.td-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gut);
  margin: var(--line) 0 0;
  padding: 0;
  list-style: none;
}

.td-step {
  cursor: default;
  transition: opacity var(--dur-3) var(--ease);
}

.td-step:focus-visible {
  outline: var(--focus-w) solid var(--ink);
  outline-offset: var(--focus-off);
}

.td-step .nolock-line {
  max-width: 22em;
  text-wrap: pretty;
}

.td-sec[data-step="0"] .td-step,
.td-sec[data-step="1"] .td-step:not([data-i="1"]),
.td-sec[data-step="2"] .td-step[data-i="3"] {
  opacity: .3;
}

.td-sec:is([data-hl="1"], [data-hl="2"], [data-hl="3"]) .td-step {
  opacity: .4;
}

.td-sec[data-hl="1"] .td-step[data-i="1"],
.td-sec[data-hl="2"] .td-step[data-i="2"],
.td-sec[data-hl="3"] .td-step[data-i="3"] {
  opacity: 1;
}

@media (max-width:1023px) {
  .td-art {
    aspect-ratio: 3 / 1;
  }
}

@media (max-width:767px) {
  .td-art {
    aspect-ratio: 3 / 2;
  }

  .td-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--line) * 1.2);
  }
}

@media (max-width:767px) and (min-aspect-ratio:1/1) {
  .td-art {
    aspect-ratio: 3 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .td-step {
    transition: none;
  }
}
