/* GymSpotter tool video ("Watch how it works") — kit 1.0.0.
   ORIGINAL: GymSpotter OS\shared\tool-video\tool-video.css; each GymSpotter plugin carries a copy in
   assets/tool-video/ (GymSpotter OS tools/sync-tool-videos.cjs). Never edit a copy.
   Everything is scoped under .gstv: a self-contained light card that keeps its own colours on any theme
   (text 7:1 or more, boundaries 3:1 or more), 44 px targets, visible focus, forced colours, no motion. */
.gstv {
  --gstv-fg: #111827;      /* 17.7:1 on white */
  --gstv-muted: #374151;   /* 10.3:1 */
  --gstv-bg: #ffffff;
  --gstv-soft: #f3f4f6;    /* muted text on it: 9.3:1 */
  --gstv-line: #6b7280;    /* 4.8:1, boundaries */
  --gstv-link: #1e40af;    /* 8.7:1 */
  --gstv-focus: #1e40af;
  box-sizing: border-box;
  max-width: 72rem;
  margin: 2.5rem auto;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--gstv-line);
  border-radius: 12px;
  background: var(--gstv-bg);
  color: var(--gstv-fg);
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
}
.gstv *, .gstv *::before, .gstv *::after { box-sizing: border-box; }
.gstv .gstv-h {
  margin: 0 0 .5rem;
  color: var(--gstv-fg);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
}
.gstv .gstv-lede { margin: 0 0 1.25rem; max-width: 70ch; color: var(--gstv-muted); font-size: 1.0625rem; }
/* the layout follows the space the section gets (a narrow theme column or a wide page), not the window */
.gstv { container-type: inline-size; container-name: gstv; }
.gstv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2rem; align-items: start; }
@container gstv (min-width: 50rem) { .gstv-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
@container gstv (min-width: 34rem) and (max-width: 49.99rem) { .gstv .gstv-points { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gstv .gstv-fig { margin: 0; padding: 0; }
.gstv-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 10px; background: #0b1020; }
.gstv .gstv-video { display: block; width: 100%; height: 100%; max-width: 100%; margin: 0; border: 0; background: #0b1020; object-fit: contain; }
.gstv .gstv-cap { margin: .5rem 0 0; color: var(--gstv-muted); font-size: .9375rem; }
.gstv .gstv-points { display: grid; gap: .75rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.gstv .gstv-points li { margin: 0; padding: .75rem 1rem; border-left: 4px solid var(--gstv-link); border-radius: 0 8px 8px 0; background: var(--gstv-soft); }
.gstv .gstv-points strong { display: block; color: var(--gstv-fg); font-weight: 700; }
.gstv .gstv-points span { color: var(--gstv-muted); }
.gstv .gstv-ch-h { margin: 0 0 .25rem; color: var(--gstv-fg); font-weight: 700; }
.gstv .gstv-ch { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.gstv .gstv-ch li { margin: 0; padding: .125rem 0; }
.gstv .gstv-more { margin: 0; }
.gstv a { color: var(--gstv-link); text-decoration: underline; text-underline-offset: .15em; }
.gstv a:hover { text-decoration-thickness: 2px; }
.gstv a.gstv-watch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1rem;
  border: 2px solid var(--gstv-link);
  border-radius: 8px;
  background: var(--gstv-bg);
  color: var(--gstv-link);
  font-weight: 600;
  line-height: 1.3;
}
.gstv .gstv-tr { margin: 1.25rem 0 0; border: 1px solid var(--gstv-line); border-radius: 8px; background: var(--gstv-bg); }
.gstv .gstv-tr > summary {
  display: list-item;
  min-height: 44px;
  padding: .625rem 1rem;
  color: var(--gstv-fg);
  font-weight: 600;
  cursor: pointer;
}
.gstv .gstv-lines { max-width: 75ch; margin: 0; padding: 0 1rem 1rem; list-style: none; }
.gstv .gstv-lines li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: .5rem; margin: 0; padding: .3rem 0; border-top: 1px solid var(--gstv-soft); }
.gstv .gstv-t { color: var(--gstv-muted); font-variant-numeric: tabular-nums; }
.gstv :is(a, summary):focus-visible { outline: 3px solid var(--gstv-focus); outline-offset: 3px; border-radius: 4px; }
/* the video's own ring is drawn inside it (white on the dark frame); the frame gets the blue ring outside */
.gstv .gstv-video:focus-visible { outline: 3px solid #ffffff; outline-offset: -3px; }
.gstv-frame:has(> .gstv-video:focus-visible) { outline: 3px solid var(--gstv-focus); outline-offset: 3px; }
.gstv .gstv-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (forced-colors: active) {
  .gstv, .gstv .gstv-tr, .gstv-frame { border: 1px solid CanvasText; }
  .gstv .gstv-points li { border: 1px solid CanvasText; border-left-width: 4px; }
  .gstv a, .gstv a.gstv-watch { color: LinkText; border-color: LinkText; }
  .gstv :is(a, summary):focus-visible, .gstv-frame:has(> .gstv-video:focus-visible) { outline: 3px solid Highlight; outline-offset: 3px; }
  .gstv .gstv-video:focus-visible { outline: 3px solid Highlight; outline-offset: -3px; }
}
@media print { .gstv-frame, .gstv .gstv-more { display: none; } .gstv .gstv-tr { border: 0; } }
