/* The kit's frame for a page built from the starter kit (landing-base), loaded in the kit head before the page's own
   stylesheets, so the page's rules win where they speak. It holds what every page needs and a hand-built page kept
   getting wrong: the ground painted under the whole page (a phone ignores a fixed background, so a page that painted
   only the body ended at one screen with a hard seam), one vertical rhythm for the sections, room above a calm footer,
   and nothing wider than the screen. Colours are the look's roles (look.css), with the base green as a fallback. */
:root {
  --tf-space-section: clamp(56px, 2.5rem + 5vw, 112px);
  --tf-space-gutter: clamp(20px, 6vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--tf-field-deep, #0c2c24); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; }
body > main { overflow-x: clip; }
body > main > section { padding-block: var(--tf-space-section); }
img, video { max-width: 100%; height: auto; }
body > footer {
  margin-top: 0;
  padding: clamp(32px, 4vw, 48px) var(--tf-space-gutter) calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid color-mix(in srgb, var(--tf-on-field, #f4f2e7) 14%, transparent);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: center;
  color: var(--tf-on-field-soft, #c9d8cc);
}
/* The kit's video player (the kit's `video`): a 16:9 box around a video player's frame, and the sound button page.js
   wires for Vimeo's player. The button stands in the frame's top left corner, clear of the picture's middle, a video's
   subtitles and the player's own bar (owner, 2026-11-26: in the middle it covered the lesson's slide), in the look's
   action colour; its ring pulses only where motion is welcome. A page restyles both classes in its own stylesheet. */
.tf-video { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 16px; background: var(--tf-field-deep, #0c2c24); }
.tf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tf-video-sound {
  position: absolute; left: 12px; top: 12px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border: 0; border-radius: 999px; background: var(--tf-action, #0866ff); color: var(--tf-action-ink, #ffffff);
  font: 700 1rem/1.2 var(--tf-font-body, Arial, sans-serif); white-space: nowrap; cursor: pointer;
  box-shadow: 0 6px 20px rgb(0 0 0 / .3);
}
.tf-video-sound[hidden] { display: none; }
/* A phone's frame is narrow: the button is smaller there, so it covers less of the picture. The markup turns Vimeo's own
   «Unmute» off (`unmute_button=0`), so this button is the frame's one way to the sound. */
@media (max-width: 479px) {
  .tf-video-sound { left: 8px; top: 8px; gap: 6px; min-height: 36px; padding: 6px 12px; font-size: .875rem; }
  .tf-video-sound svg { width: 16px; height: 16px; }
}
.tf-video-sound svg { flex: none; width: 20px; height: 20px; }
.tf-video-sound::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--tf-action-ink, #ffffff); border-radius: inherit; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .tf-video-sound::after { animation: tf-video-pulse 1.8s ease-out infinite; }
  @keyframes tf-video-pulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.18, 1.5); } }
}
