/* Product and edition photography */
.book-jacket {
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.5vw, 33px);
  background: #e6e4dc;
  overflow: hidden;
}
.blog-card-image:has(.book-jacket) { aspect-ratio: 4/3; }
.blog-card-image .book-jacket { width: 100%; height: 100%; }
.book-jacket img, .blog-card-image .book-jacket img {
  height: 100%;
  width: 100%;
  min-height: 0;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  aspect-ratio: auto;
  filter: drop-shadow(3px 5px 4px rgb(37 36 24 / .22));
}
.book-detail .book-jacket { height: clamp(325px, 41vw, 495px); }
.book-detail .book-edition { overflow-wrap: anywhere; }
.book-edition a, .product-cover figcaption a { text-decoration: underline; text-underline-offset: .18em; }
.blog-card-image img.gear-photo, .article-cover.product-cover img {
  object-fit: contain;
  object-position: center;
  background: white;
}
.article-cover.product-cover img { height: clamp(265px, 40vw, 470px); width: 100%; }
.article-cover.product-cover figcaption { font-size: 12px; }
.gear-index .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media(max-width: 900px) { .gear-index .blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 580px) { .gear-index .blog-grid { grid-template-columns: minmax(0,1fr); } }

/* Exercise player */
.movement-link { display: inline-flex; align-items: baseline; gap: .5em; text-decoration: none; text-align: left; }
.movement-link svg { flex: 0 0 auto; align-self: center; color: #536520; }
.movement-link span { text-decoration: underline; text-decoration-color: #a6aa91; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.movement-link:hover span, .movement-link:focus-visible span { text-decoration-color: currentColor; }
.movement-link:hover svg, .movement-link:focus-visible svg { color: #18271d; }
.exercise-card h3, .session-exercise h3 { overflow-wrap: anywhere; }
.movement-open { overflow: hidden; }
.movement-dialog:not([open]), .movement-dialog [hidden] { display: none !important; }
.movement-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  max-width: min(965px, calc(100% - 36px));
  width: 965px;
  height: fit-content;
  min-height: 0;
  max-height: calc(100dvh - 42px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #777f6b;
  border-radius: 7px;
  background: #f5f4ec;
  color: #202720;
  box-shadow: 0 22px 90px #10181070;
}
.movement-dialog::backdrop { background: rgb(12 18 14/.77); }
.move-inner { padding: clamp(20px,3.3vw,42px); }
.move-header { display: flex; align-items: start; gap: 15px; justify-content: space-between; margin-bottom: clamp(18px,2.5vw,28px); }
.move-kicker { color: #54634c; font-size: 12px; margin: 0 0 9px; }
.move-header h2 { font: 700 clamp(23px,3.15vw,39px)/1.13 'Body', sans-serif; letter-spacing: -.045em; margin: 0; overflow-wrap: anywhere; }
.move-close { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #a4ae9a; border-radius: 50%; background: transparent; color: inherit; font: 28px/1 Arial,sans-serif; cursor: pointer; }
.move-close:hover, .move-close:focus-visible { background: #dfe5d6; }
.move-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: start; gap: clamp(20px,3.2vw,36px); }
.move-view { min-width: 0; }
.move-canvas { background: #1e2c26; aspect-ratio: 3/2; width: 100%; border-radius: 4px 4px 0 0; overflow: hidden; }
.move-canvas:empty[aria-busy="true"] { display:grid; place-items:center; }
.move-canvas:empty[aria-busy="true"]::before { content:attr(data-loading); color:#e9eecc; font-size:13px; }
.move-canvas svg { height: 100%; width: 100%; display: block; }
.move-controls { display: flex; align-items: center; gap: 13px; background: #15211d; color: #f5f6ef; padding: 4px 12px 8px; border-radius: 0 0 4px 4px; }
.move-controls button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 0; color: inherit; background: transparent; cursor: pointer; font: bold 12px/1.1 'Body', sans-serif; }
.move-toggle { gap: 7px; }
.move-toggle::before { content: ''; border-block: 5px solid transparent; border-left: 8px solid #d6ed71; }
.move-toggle[data-playing=true]::before { border: 0; width: 8px; height: 10px; background: linear-gradient(to right,#d6ed71 0 36%,transparent 36% 64%,#d6ed71 64%); }
.move-controls input { flex: 1; width: 30px; min-width: 0; height: 36px; accent-color: #d6ed71; cursor: pointer; }
.move-step { min-width: 42px; }
.move-controls :focus-visible { outline: 2px solid #e1f193; outline-offset: 1px; }
.move-view-caption { display:flex; align-items:center; justify-content:space-between; gap:6px; flex-wrap:wrap; margin-top:7px; color:#636e5b; font-size:11px; }
.move-instructions h3 { font-size: 20px; line-height: 1.3; margin: 0 0 12px; }
.move-instructions .move-english { margin: 0 0 12px; font-size: 12px; color: #647157; }
.move-instructions ol { counter-reset: movement-step; list-style: none; margin: 0; padding: 0; }
.move-instructions li { counter-increment: movement-step; display: grid; grid-template-columns: 1.4em minmax(0,1fr); gap: 8px; padding: 10px 0; border-top: 1px solid #cbd0be; line-height: 1.55; font-size: 14px; }
.move-instructions li::before { content: counter(movement-step, decimal-leading-zero); color: #667751; font-size: 11px; font-weight: bold; margin-top: .24em; }
.move-source, .move-error a { display: inline-block; margin-top: 14px; color: #3f572a; text-decoration: underline; text-underline-offset: .25em; font-size: 13px; }
.move-error { margin-top: 16px; }
@media (max-width: 690px) {
  .movement-dialog { width: min(480px,100%); max-width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .move-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .move-inner { padding: 17px; }
  .move-header { gap: 10px; margin-bottom: 14px; }
  .move-header h2 { font-size: 23px; }
  .move-close { width: 38px; height: 38px; }
  .move-instructions li { padding: 8px 0; }
}
@media (max-height: 515px) and (min-width: 560px) {
  .move-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .move-canvas { max-height: 240px; }
}
