/* JM Editorial v0.3.1: lazy YouTube facades + Shorts strip. Palette H tokens from jm-design-system.css. */
.jm-yt { position:relative; background:var(--jm-ink); overflow:hidden; }
.jm-yt--wide { aspect-ratio:16/9; }
.jm-yt--short { aspect-ratio:9/16; }
.jm-yt .jm-photo-link, .jm-yt .jm-photo { width:100%; height:100%; }
.jm-yt .jm-photo { background:var(--jm-ink); }
.jm-yt img { width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.jm-card__media .jm-yt .jm-photo { aspect-ratio:auto; border-width:0; }
.jm-yt__link:focus-visible { outline:3px solid var(--jm-focus); outline-offset:-3px; }
.jm-yt__link:hover::after, .jm-yt__link:focus-visible::after { background:var(--jm-gold); }
.jm-yt__frame { position:absolute; inset:0; width:100%; height:100%; border:0; display:block; }

.jm-yt-feature { margin:0; }
.jm-yt-feature .jm-yt { border:1px solid var(--jm-line); }
.jm-yt-feature figcaption { margin-top:.6rem; }
.jm-yt-feature figcaption a { color:var(--jm-gold-deep); }
.jm-prose .jm-yt-feature { margin:0 0 var(--jm-space-xl); }

.jm-yt-grid { margin-bottom:var(--jm-space-l); }
.jm-yt-grid .jm-card__body h3 { font-size:var(--jm-step-1); line-height:1.25; }

.jm-shorts__intro { color:var(--jm-charcoal); max-width:46rem; margin:0 0 var(--jm-space-m); }
.jm-shorts__list { list-style:none; margin:0; padding:0 0 var(--jm-space-s); display:grid; grid-auto-flow:column;
  grid-auto-columns:clamp(9.5rem, 15.5%, 13rem); gap:var(--jm-space-m); overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:var(--jm-gold) transparent; }
.jm-shorts__item { scroll-snap-align:start; min-width:0; }
.jm-shorts__item .jm-yt { border:1px solid var(--jm-line); }
.jm-shorts__item .jm-photo-link::after { width:2.75rem; height:2.75rem; margin:-1.375rem 0 0 -1.375rem; }
.jm-shorts__title { margin:.6rem 0 0; font-size:.92rem; line-height:1.35; }
.jm-shorts__title a { color:var(--jm-ink); text-decoration:none; }
.jm-shorts__title a:hover, .jm-shorts__title a:focus-visible { color:var(--jm-gold-deep); text-decoration:underline; }
@media (max-width:640px){ .jm-shorts__list { grid-auto-columns:42%; gap:var(--jm-space-s); } }
