/* JP1143 - video stills (assets/js/video-stills.js). A still is a private JPEG of the talk shown through a short-lived
   signed URL; it loads lazily, never blocks the page, and a figure whose image cannot be had removes itself, so every
   layout below also reads complete without it. Dark theme tokens of the app; responsive down to 390 px. */

/* ---------- the figure ---------- */
.jp-still{ margin: 0; min-width: 0 }
.jp-still[hidden]{ display: none !important }
.jp-still__label{
  margin: 0 0 7px; font: 800 11px/1.3 'Nunito Sans', system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim, #a99a84); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jp-still__frame{
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0; padding: 0; overflow: hidden;
  border: 1px solid rgba(227,194,122,.24); border-radius: 12px; cursor: pointer; color: inherit; font: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  box-shadow: 0 12px 30px rgba(0,0,0,.30);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
div.jp-still__frame{ cursor: default }
button.jp-still__frame:hover{ border-color: rgba(227,194,122,.6); box-shadow: 0 14px 34px rgba(0,0,0,.38) }
button.jp-still__frame:focus-visible{ outline: 2px solid var(--gilded-gold, #e4ba61); outline-offset: 3px }
.jp-still__img{ display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease }
.jp-still[data-state="ready"] .jp-still__img{ opacity: 1 }
/* while the image is on its way: a quiet shimmer inside the reserved frame */
.jp-still:not([data-state="ready"]) .jp-still__frame::before{
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 25%, rgba(255,255,255,.07) 50%, transparent 75%); background-size: 220% 100%;
  animation: jpStillShimmer 1.5s linear infinite;
}
@keyframes jpStillShimmer{ from{ background-position: 130% 0 } to{ background-position: -90% 0 } }
.jp-still__play{
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none; opacity: 0;
  background: rgba(12,14,18,.66); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 4px 12px rgba(0,0,0,.35);
  transition: opacity .2s ease, background .18s ease, border-color .18s ease;
}
.jp-still__play::before{ content: ""; margin-left: 3px; border-left: 11px solid #fff7e8; border-top: 7px solid transparent; border-bottom: 7px solid transparent }
.jp-still[data-state="ready"] .jp-still__play{ opacity: .92 }
button.jp-still__frame:hover .jp-still__play, button.jp-still__frame:focus-visible .jp-still__play{ opacity: 1; background: rgba(228,186,97,.92); border-color: rgba(228,186,97,1) }
button.jp-still__frame:hover .jp-still__play::before, button.jp-still__frame:focus-visible .jp-still__play::before{ border-left-color: #17120b }
.jp-still-pair.is-pair .jp-still__play{ width: 28px; height: 28px; right: 8px; bottom: 8px }
.jp-still-pair.is-pair .jp-still__play::before{ border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; margin-left: 2px }
.jp-still__cap{ margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-dim, #a99a84); overflow-wrap: anywhere }
/* JP1150: the still becomes a small player of its moment (one at a time); the x or the end shows the still again */
.jp-still__frame[hidden]{ display: none !important }
.jp-still[data-inline="loading"] .jp-still__play{ opacity: 1; background: rgba(228,186,97,.92); border-color: rgba(228,186,97,1); animation: jpStillPulse 1s ease-in-out infinite }
.jp-still[data-inline="loading"] .jp-still__play::before{ border-left-color: #17120b }
@keyframes jpStillPulse{ 50%{ transform: scale(.86) } }
.jp-still__player{
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border: 1px solid rgba(228,186,97,.6); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.30);
}
.jp-still__video{ display: block; width: 100%; height: 100%; object-fit: contain; background: #000 }
.jp-still__close{
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff7e8; font: 700 0/1 system-ui, sans-serif;
  background: rgba(12,14,18,.72); border: 1px solid rgba(255,255,255,.34); box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.jp-still__close::before, .jp-still__close::after{ content: ""; position: absolute; width: 13px; height: 2px; border-radius: 1px; background: currentColor; transform: rotate(45deg) }
.jp-still__close::after{ transform: rotate(-45deg) }
.jp-still__close:hover, .jp-still__close:focus-visible{ background: rgba(228,186,97,.94); color: #17120b; border-color: rgba(228,186,97,1) }
.jp-still__close:focus-visible{ outline: 2px solid var(--gilded-gold, #e4ba61); outline-offset: 2px }
.ac-sd__still .jp-still__player{ aspect-ratio: var(--ac-sd-still-ar, 16 / 9) }
@media (prefers-reduced-motion: reduce){
  .jp-still[data-inline="loading"] .jp-still__play{ animation: none }
  .jp-still__frame, .jp-still__img, .jp-still__play{ transition: none }
  .jp-still:not([data-state="ready"]) .jp-still__frame::before{ animation: none }
}

/* ---------- 1. the Start coach summary: the still on the right (34 %), under the text on phones ---------- */
.jp-start-summary-layout{ position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,34%); gap: 30px; align-items: start }
.jp-start-summary-layout.is-pair{ grid-template-columns: minmax(0,1fr) minmax(0,42%) }
.jp-start-summary-layout:not(.has-still){ display: block }
.jp-start-summary-layout:not(.has-still) > .jp-start-summary-media{ display: none }
.jp-start-summary-layout > .jp-start-summary-text{ min-width: 0 }
.jp-start-summary-media{ position: relative; min-width: 0; margin: 4px 0 0 }
.jp-still-pair__grid{ display: grid; gap: 12px; min-width: 0 }
.jp-still-pair.is-pair .jp-still-pair__grid{ grid-template-columns: repeat(2, minmax(0,1fr)) }
.jp-still-pair:not(.is-pair) .jp-still__label{ display: none }
.jp-still-pair__cap{ margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: #cbbfa9; overflow-wrap: anywhere }
.gilded-start.d2-start .gilded-start-combined-coach p.jp-still-pair__cap{ margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: #cbbfa9; font-weight: 600 }
@media (max-width: 760px){
  .jp-start-summary-layout, .jp-start-summary-layout.is-pair{ display: block }
  .jp-start-summary-media{ margin: 20px 0 0 }
}

/* ---------- 2. the spice chart: the still beside the ATTENTION SPICE card (above it on phones) ---------- */
.ac-sd__inforow{ display: grid; grid-template-columns: minmax(200px, 300px) minmax(0,1fr); gap: 14px; align-items: start; min-width: 0 }
.ac-sd__inforow > .ac-spice-info{ margin-top: 0; min-width: 0 }
.ac-sd__still{ min-width: 0 }
.ac-sd__still .jp-still__frame{ aspect-ratio: var(--ac-sd-still-ar, 16 / 9); box-shadow: 0 8px 22px rgba(0,0,0,.28) }
.ac-sd__still .jp-still__cap{ font-size: 12.5px }
.ac-sd__still-idle{
  aspect-ratio: var(--ac-sd-still-ar, 16 / 9); display: grid; place-items: center; padding: 14px; text-align: center;
  border: 1px dashed rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.02);
  font-size: 13px; line-height: 1.45; color: var(--text-dim, #a99a84);
}
@media (max-width: 640px){
  .ac-sd__inforow{ grid-template-columns: minmax(0,1fr) }
  .ac-sd__still{ max-width: 420px }
}

/* ---------- 3. the Delivery, Content and Mindset coach messages: the cited moment beside the message ---------- */
.jp-domain-coaching-message--still{ display: flow-root }
.jp-domain-coaching-message--still .jp-domain-coaching-still{ float: right; width: min(42%, 300px); margin: 4px 0 14px 22px }
@media (max-width: 640px){
  .jp-domain-coaching-message--still .jp-domain-coaching-still{ float: none; width: 100%; margin: 6px 0 16px }
}
