/* LiveEdge 流程動畫的樣式 —— 所有規則都收在 .le-anim 底下，
   放進速查頁、獨立頁或嵌入框都不會影響頁面其他地方。
   字體沿用頁面本身載入的 Plus Jakarta Sans ＋ Noto Sans TC（自架子集）。 */

.le-anim { color: #f3f4f6; font-family: "Plus Jakarta Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
/* Japanese pages load Noto Sans JP (the self-hosted subset has no kana, and TC glyph forms read as Chinese). */
:lang(ja) .le-anim { font-family: "Plus Jakarta Sans", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
.le-anim * { box-sizing: border-box; }
.le-anim p { max-width: none; }      /* host pages (guide.css) cap paragraphs at 66ch */
.le-anim .le-head { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.le-anim .le-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: #60a5fa; }
.le-anim .le-title { margin: 0; font-size: clamp(17px, 2.4vw, 24px); font-weight: 700; line-height: 1.3; }
.le-anim .le-stage { width: 100%; height: auto; display: block; border-radius: 14px; background: #060913;
  border: 1px solid rgba(255,255,255,.08); }
.le-anim .le-stage text { font-family: inherit; }
.le-anim .le-stage .proto { display: none; }
.le-anim .le-stage.show-proto .proto { display: inline; }

/* The step caption sits under the picture like a subtitle: same place every step,
   never covering the focus, and not scaled down on phones. */
.le-anim .le-sub { min-height: 2.6em; margin: 12px 0 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: clamp(16px, 2.1vw, 23px); font-weight: 700; line-height: 1.3; text-align: center;
  transition: opacity .3s ease, transform .3s ease; }
.le-anim .le-sub.hide { opacity: 0; transform: translateY(6px); }
.le-anim .le-sub .n { font-size: .6em; font-weight: 600; color: #60a5fa; letter-spacing: .08em; white-space: nowrap; }

.le-anim .le-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.le-anim .le-controls button, .le-anim .le-proto {
  font-family: inherit; font-size: 13px; font-weight: 600; color: #aab3c2; background: #0d1424;
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 9px 14px; min-height: 44px; cursor: pointer;
}
.le-anim .le-controls button:hover, .le-anim .le-proto:hover { color: #f3f4f6; border-color: rgba(255,255,255,.3); }
.le-anim .le-controls button:disabled { opacity: .35; cursor: default; }
.le-anim .le-play { min-width: 88px; color: #0b1020 !important; background: #60a5fa !important; border-color: #60a5fa !important; }
.le-anim .le-proto { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.le-anim .le-proto input { accent-color: #60a5fa; }

.le-anim .le-dots { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.le-anim .le-dots .ch { display: flex; align-items: center; gap: 2px; }
.le-anim .le-dots .ch > span { font-size: 12px; color: #8a94a6; margin-right: 4px; cursor: pointer; }
.le-anim .le-dots .ch.on > span { color: #f3f4f6; font-weight: 700; }
.le-anim .le-dots button { width: 20px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.le-anim .le-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #3a4356; }
.le-anim .le-dots button.done::before { background: #6b7a94; }
.le-anim .le-dots button.on::before { background: #60a5fa; width: 10px; height: 10px; }
.le-anim :focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; }

@media (max-width: 560px) {
  .le-anim .le-proto { margin-left: 0; }
  .le-anim .le-dots { gap: 10px; }
}

/* Narration toggle (English only). "ask" = the browser refused sound until a tap. */
.le-anim .le-voice { display: inline-flex; align-items: center; gap: 8px; }
.le-anim .le-voice[hidden] { display: none; }
.le-anim .le-voice.on { color: #93c5fd; border-color: rgba(96,165,250,.55); }
.le-anim .le-voice.ask { color: #f3f4f6; border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,.18); }

/* Static architecture diagram under an animation (flow-arch.js). */
.le-arch { margin: 28px 0 0; padding: 18px; border-radius: 14px; background: #0b111d; border: 1px solid rgba(255,255,255,.08);
  color: #f3f4f6; font-family: "Plus Jakarta Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
:lang(ja) .le-arch { font-family: "Plus Jakarta Sans", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif; }
.le-arch-t { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: #aab3c2; margin: 0 0 10px; }
.le-arch svg { width: 100%; height: auto; display: block; }
.le-arch svg text { font-family: inherit; }
.le-arch-k { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13.5px; line-height: 1.5; }
.le-arch-k th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: #8a94a6; padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.le-arch-k td { padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.06); color: #d1d5db; vertical-align: top; }
.le-arch-k td.p { color: #f3f4f6; font-weight: 600; white-space: nowrap; }
.le-arch-k .n { font-weight: 800; font-size: 15px; }
@media (max-width: 640px) {
  .le-arch { padding: 12px; }
  .le-arch-k { font-size: 12.5px; }
  .le-arch-k th:nth-child(4), .le-arch-k td:nth-child(4) { display: none; }   /* "when" drops on phones */
  .le-arch-k td.p { white-space: normal; }
}

/* Video-render mode (HyperFrames): no controls, captions switch without a fade. */
.le-anim.le-render .le-controls, .le-anim.le-render .le-dots { display: none; }
.le-anim.le-render .le-sub { transition: none; }
