/* App artwork and schematic accents for the Open Learning guide. */
.open-learning .learning-products-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 20px;
}
.open-learning .learning-products-heading .learning-label { grid-column: 1; grid-row: 1; }
.open-learning .learning-products-heading h2 { grid-column: 1 / -1; grid-row: 2; }
.open-learning .learning-products-heading .learning-motion { grid-column: 2; grid-row: 1; margin-top: -6px; }
.open-learning .learning-apps .learning-app { display: flex; flex-direction: column; align-items: flex-start; }
.open-learning .learning-apps .learning-app-art {
  display: grid;
  grid-template-columns: clamp(65px, 7vw, 96px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 1.25vw, 21px);
  height: 106px;
  width: 100%;
  margin-bottom: 18px;
  color: #a8b2a1;
}
.open-learning .learning-apps .learning-app-icon {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 20%;
  background: #141615;
}
.open-learning .learning-apps .learning-app-signal {
  display: block;
  width: 100%;
  height: auto;
  max-width: 200px;
  max-height: 100%;
  justify-self: end;
  pointer-events: none;
}
.open-learning .learning-apps .learning-app-art + .learning-label { margin-top: 0; }
.open-learning .learning-apps .learning-app h3 { margin-top: 11px; }
.open-learning .learning-apps .learning-app-purpose {
  margin: 2px 0 9px;
  color: var(--learning-text);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.65;
}
.open-learning .learning-apps .learning-app-link { margin-top: auto; padding-top: 14px; }
.open-learning .learning-apps .learning-app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 8px; }
.open-learning .learning-apps .learning-app-actions .learning-app-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; font-size: 14px; white-space: nowrap; }
.open-learning .learning-apps .signal-trace { opacity: 0; stroke-dasharray: 19 81; }
.open-learning .learning-products.motion-ready .learning-apps .signal-trace {
  opacity: .88;
  animation: learning-app-trace 14s linear infinite;
  animation-delay: var(--phase, 0s);
}
.open-learning .learning-products.motion-ready .learning-apps .signal-node {
  animation: learning-app-node 9s ease-in-out infinite;
  animation-delay: var(--phase, 0s);
}
.open-learning .learning-products.motion-ready:not(.motion-paused) .learning-apps :is(.learning-app-icon, .learning-app-signal) {
  transition: transform 400ms cubic-bezier(.2,.7,.3,1), color 400ms ease;
}
.open-learning .learning-products.motion-ready:not(.motion-paused) .learning-apps .learning-app:focus-within .learning-app-icon { transform: translateY(-3px); }
.open-learning .learning-products.motion-ready:not(.motion-paused) .learning-apps .learning-app:focus-within .learning-app-signal { color: #c5e4a1; }
.open-learning .learning-products.motion-ready.motion-paused .learning-apps :is(.signal-trace, .signal-node) { animation-play-state: paused; }
@keyframes learning-app-trace { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes learning-app-node { 0%, 100% { opacity: .40; } 46%, 58% { opacity: .98; } }

@media (hover: hover) {
  .open-learning .learning-products.motion-ready:not(.motion-paused) .learning-apps .learning-app:hover .learning-app-icon { transform: translateY(-3px); }
  .open-learning .learning-products.motion-ready:not(.motion-paused) .learning-apps .learning-app:hover .learning-app-signal { color: #c5e4a1; }
}
@media (max-width: 850px) {
  .open-learning .learning-apps .learning-app-art { grid-template-columns: 63px minmax(0, 1fr); height: 90px; gap: 8px; margin-bottom: 14px; }
}
@media (max-width: 700px) {
  .open-learning .learning-apps .learning-app-art { grid-template-columns: 76px minmax(0, 1fr); height: 93px; gap: 14px; }
  .open-learning .learning-apps .learning-app-signal { width: min(100%, 160px); max-height: 92px; }
}
@media (max-width: 360px) {
  .open-learning .learning-products-heading { column-gap: 10px; }
  .open-learning .learning-apps .learning-app-art { grid-template-columns: 69px minmax(0, 1fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .open-learning .learning-products.motion-ready .learning-apps :is(.signal-trace, .signal-node) { animation: none; }
  .open-learning .learning-products.motion-ready .learning-apps .signal-trace { opacity: 0; }
  .open-learning .learning-products.motion-ready:not(.motion-paused) .learning-apps :is(.learning-app-icon, .learning-app-signal) { transition: none; }
  .open-learning .learning-products.motion-ready:not(.motion-paused) .learning-apps .learning-app:is(:focus-within, :hover) .learning-app-icon { transform: none; }
}

/* One causal diagram: a condition, an app, and the opportunity it can open. */
.open-learning .learning-products-heading > .learning-section-copy {
  max-width: 48em;
  padding-bottom: 10px;
}
.open-learning .learning-product-tracks .learning-apps .learning-app {
  align-items: stretch;
  padding: 48px 28px 32px;
}
.open-learning .learning-apps :is(.learning-app-challenge, .learning-app-opportunity) {
  position: relative;
  margin: 0;
  min-width: 0;
}
.open-learning .learning-app-step-label {
  display: block;
  margin-bottom: 7px;
  color: var(--learning-muted);
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
}
.open-learning .learning-apps :is(.learning-app-challenge, .learning-app-opportunity) strong {
  display: block;
  color: var(--learning-text);
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
}
.open-learning .learning-app-method {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  margin-block: 30px;
}
.open-learning .learning-apps .learning-app-opportunity strong { color: var(--learning-sage); }
.open-learning .learning-app-stage-point {
  --app-stage-light: 1;
  position: absolute;
  z-index: 1;
  inset: 12px auto auto -22.5px;
  width: 6px;
  height: 6px;
  border: 1px solid #a8c4ce;
  background: color-mix(in srgb, var(--learning-ground), #eefaff calc(var(--app-stage-light) * 100%));
  transform: translate(-50%, -50%);
}
.open-learning .learning-product-return {
  display: block;
  width: 100%;
  height: clamp(64px, 9vw, 100px);
  fill: none;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}
.open-learning .learning-product-return-signal {
  stroke: var(--learning-wire);
  stroke-width: 1.3;
  stroke-linecap: butt;
  stroke-linejoin: bevel;
}
.open-learning .learning-products-goal {
  position: relative;
  padding: 26px 0 32px;
  text-align: center;
}
.open-learning .learning-products-goal-point {
  --app-stage-light: 1;
  position: absolute;
  inset: 0 auto auto 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--learning-wire-node);
  background: color-mix(in srgb, var(--learning-ground), #eefaff calc(var(--app-stage-light) * 100%));
  transform: translate(-50%, -50%) rotate(45deg);
}
.open-learning .learning-products-goal h3 {
  margin: 10px 0 12px;
  color: var(--learning-sage);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.035em;
}
.open-learning .learning-products-goal .learning-section-copy { text-wrap: balance; }
@media (prefers-reduced-motion: no-preference) {
  .open-learning .learning-scroll-ready .learning-product-return-signal {
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--products-return-progress, 1));
    opacity: min(1, calc(var(--products-return-progress, 1) * 24));
  }
}
@media (max-width: 850px) {
  .open-learning .learning-product-tracks .learning-apps .learning-app { padding-inline-end: 16px; }
}
@media (max-width: 700px) {
  .open-learning .learning-product-tracks .learning-apps .learning-app { padding-block: 24px 36px; padding-inline-end: 0; }
  .open-learning .learning-app-method { flex: auto; margin-block: 26px; }
  .open-learning .learning-product-return { display: none; }
  .open-learning .learning-products-goal { padding: 30px 0 0 24px; text-align: start; }
  .open-learning .learning-products-goal-point { inset: 38px auto auto calc(var(--future-rail-x) + .5px); }
}
@media (max-width: 700px) {
  .open-learning .learning-product-tracks .learning-app-point { inset: var(--app-node-top) auto auto -6px; }
}
@media (min-width: 701px) {
  .open-learning .learning-apps .learning-app-opportunity strong { min-height: 3.2em; }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .open-learning .learning-future.learning-scroll-ready .learning-app-point {
    --app-dot-light: var(--app-dot-progress, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .open-learning :is(.learning-app-stage-point, .learning-products-goal-point) { background: #eefaff; }
}

.open-learning :is(.learning-app-purpose, .learning-products-goal) .learning-phrase { white-space: nowrap; }
