/* "How this page works" guide on the Sparkuna teacher pages (2026-10-22, Alif: teachers found the pages
   confusing). One card at the top of .page-wrap: numbered steps with a real screenshot each, what students
   see, the words on the page and what is good to know. Hide / show is remembered per page in this browser
   (partials/sparkuna-guide.js); a screenshot opens large on click. Screenshots: assets/sparkuna/guide/.
   Sparkuna Studio tokens (sparkuna-theme.css) only. */
.tg { background: var(--spk-card); border: 1px solid var(--spk-line); border-radius: var(--spk-radius); box-shadow: var(--spk-shadow); overflow: hidden; min-width: 0; }
.tg__bar { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: linear-gradient(120deg, #1a1348 0%, #2a1b6b 100%); color: var(--spk-on-night); }
.tg__mascot { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--spk-void); box-shadow: 0 0 0 3px rgba(108,92,231,.45); flex-shrink: 0; }
.tg__intro { flex: 1 1 auto; min-width: 0; }
.tg__eyebrow { display: block; font-family: var(--spk-font-display); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--spk-gold); }
.tg__title { font-family: var(--spk-font-display); font-size: 1.2rem; font-weight: 800; margin: 2px 0 0; color: #fff; }
.tg__lede { margin: 3px 0 0; font-size: .88rem; line-height: 1.5; color: var(--spk-on-night-2); }
.tg__toggle { flex-shrink: 0; font-family: var(--spk-font-display); font-weight: 700; font-size: .82rem; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(198,191,255,.4); border-radius: 11px; padding: 8px 13px; cursor: pointer; }
.tg__toggle:hover { background: rgba(255,255,255,.14); }
/* the page's short film (2026-11-17): always in the bar, also while the guide is closed; opens the guide and plays it */
.tg__film { flex-shrink: 0; font-family: var(--spk-font-display); font-weight: 700; font-size: .82rem; color: #1a1348; background: var(--spk-gold); border: 0; border-radius: 11px; padding: 9px 14px; cursor: pointer; box-shadow: 0 0 0 3px rgba(255,211,42,.28); white-space: nowrap; }
.tg__film:hover { filter: brightness(1.06); }
.tg__film:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tg__toggle:focus-visible, .tg-shot:focus-visible { outline: 3px solid var(--spk-gold); outline-offset: 2px; }
@media (max-width: 640px) {
  .tg__bar { flex-wrap: wrap; padding: 14px 16px; gap: 10px 12px; }
  .tg__mascot { width: 40px; height: 40px; }
  .tg__intro { flex: 1 1 calc(100% - 56px); }
  .tg__toggle, .tg__film { flex: 1 1 auto; }
}
.tg__body { padding: 20px; display: grid; gap: 22px; }
@media (max-width: 640px) { .tg__body { padding: 16px; } }
.tg__body[hidden] { display: none; }
.tg.is-closed .tg__lede { display: none; }
/* Closed until sparkuna-guide.js has read the remembered choice (2026-10-27: it starts closed), so the
   open guide never flashes on a first paint. */
.tg:not([data-ready]) .tg__body, .tg:not([data-ready]) .tg__lede { display: none; }

/* steps: picture left, words right (stacked on a narrow screen) */
.tg-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tg-step { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.tg-step--tall { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tg-step + .tg-step { padding-top: 18px; border-top: 1px dashed var(--spk-line-strong); }
.tg-step__txt { display: grid; gap: 6px; align-content: start; }
.tg-step__n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--spk-violet); color: #fff; font: 800 .9rem/1 var(--spk-font-display); box-shadow: 0 3px 0 var(--spk-violet-lip); }
.tg-step__txt h3 { font-family: var(--spk-font-display); font-size: 1.05rem; font-weight: 700; color: var(--spk-ink); margin: 2px 0 0; }
.tg-step__txt p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--spk-ink-2); }
.tg-step__txt ul { margin: 0; padding-left: 18px; font-size: .9rem; line-height: 1.55; color: var(--spk-ink-2); display: grid; gap: 3px; }
.tg-step__txt b { color: var(--spk-ink); }
.tg-shots { display: grid; gap: 10px; min-width: 0; }
.tg-shot { display: block; width: 100%; padding: 0; border: 1px solid var(--spk-line); border-radius: 12px; overflow: hidden; background: var(--spk-paper); cursor: zoom-in; box-shadow: 0 10px 24px -16px rgba(72,52,212,.45); }
.tg-shot img { display: block; width: 100%; height: auto; }
.tg-shot--dark { background: var(--spk-void); border-color: #2b2741; }
.tg-cap { font-size: .76rem; color: var(--spk-ink-3); margin: -4px 0 0; }
@media (max-width: 820px) { .tg-step, .tg-step--tall { grid-template-columns: minmax(0, 1fr); } .tg-step__txt { order: -1; } }

/* what students see */
.tg-see { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px; border-radius: 14px; background: linear-gradient(120deg, #141029 0%, #201c36 100%); color: var(--spk-on-night); }
.tg-see h3 { font-family: var(--spk-font-display); font-size: 1.02rem; margin: 0 0 6px; color: #fff; }
.tg-see p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--spk-on-night-2); }
.tg-see p + p { margin-top: 8px; }
.tg-see b { color: #fff; }
.tg-see .tg-tag { display: inline-block; font-family: var(--spk-font-display); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--spk-cyan); margin-bottom: 4px; }
.tg-see a { color: var(--spk-gold); font-weight: 700; }
@media (max-width: 820px) { .tg-see { grid-template-columns: minmax(0, 1fr); } }
/* several films side by side (My Students → In class, 2026-11-17) */
.tg-see--films { grid-template-columns: minmax(0, 1fr); }
.tg-films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tg-films p { margin: 8px 0 0; font-size: .84rem; line-height: 1.45; }
@media (max-width: 820px) { .tg-films { grid-template-columns: minmax(0, 1fr); } }

/* words + good to know */
.tg-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 820px) { .tg-cols { grid-template-columns: minmax(0, 1fr); } }
.tg-box { border: 1px solid var(--spk-line); border-radius: 14px; padding: 14px 16px; background: var(--spk-paper); min-width: 0; }
.tg-box--gold { background: var(--spk-gold-soft); border-color: #f3dd8a; }
.tg-box h3 { font-family: var(--spk-font-display); font-size: .95rem; font-weight: 700; margin: 0 0 8px; color: var(--spk-ink); }
.tg-box--gold h3 { color: var(--spk-gold-ink); }
.tg-words { margin: 0; display: grid; gap: 8px; }
.tg-words div { display: grid; gap: 1px; }
.tg-words dt { font-weight: 700; font-size: .88rem; color: var(--spk-violet-ink); }
.tg-words dd { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--spk-ink-2); }
.tg-good { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .87rem; line-height: 1.5; color: var(--spk-ink-2); }
.tg-good b { color: var(--spk-ink); }

/* a map of the page: what each card tells you, with a jump link */
.tg-map h3 { font-family: var(--spk-font-display); font-size: .95rem; font-weight: 700; margin: 0 0 4px; color: var(--spk-ink); }
.tg-map > p { margin: 0 0 10px; font-size: .86rem; color: var(--spk-ink-3); }
.tg-map ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.tg-map a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 8px; align-items: start; padding: 10px 12px; border: 1px solid var(--spk-line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--spk-ink-2); font-size: .84rem; line-height: 1.45; height: 100%; }
.tg-map a:hover { border-color: var(--spk-violet); background: var(--spk-violet-soft); }
.tg-map a i { font-style: normal; font-size: 1.15rem; line-height: 1.3; grid-row: span 2; }
.tg-map a b { font-family: var(--spk-font-display); color: var(--spk-ink); font-size: .9rem; }

/* video: plays in place, never loads before the click */
.tg-video { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--spk-void); aspect-ratio: 16 / 9; }
.tg-video img, .tg-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tg-video__play { position: absolute; inset: 0; display: grid; place-items: end start; padding: 14px; }   /* corner: the poster's own title stays readable */
.tg-video__play span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(15,11,36,.82); color: #fff; font: 700 .9rem/1 var(--spk-font-display); box-shadow: 0 0 0 3px rgba(255,211,42,.6); }

/* the large picture */
.tg-zoom { border: 0; padding: 0; border-radius: 16px; max-width: min(1200px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--spk-card); box-shadow: 0 30px 80px -20px rgba(15,11,36,.6); }
.tg-zoom::backdrop { background: rgba(15,11,36,.7); backdrop-filter: blur(3px); }
.tg-zoom img { display: block; max-width: 100%; max-height: calc(100vh - 110px); margin: 0 auto; }
.tg-zoom__foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--spk-line); }
.tg-zoom__foot p { flex: 1 1 auto; margin: 0; font-size: .86rem; color: var(--spk-ink-2); }
