/* embed/daily.html: the embeddable daily-question widget, built for a 360 x 520 frame (it fills whatever frame it is given). Loaded after
   css/app.css, which carries the kit (paper and ink tokens, the answer bubbles, the grader's circle and slash). The frame is a fixed
   column - head, a body that scrolls inside the frame, a foot with the one link - so nothing moves when the question or the
   translations arrive (CLS 0). No gradients; the only motion is the kit's (transform and opacity, off for reduced motion). */
html, body.emb { height: 100%; }
body.emb { margin: 0; overflow: hidden; background: var(--c-surface); }
.emb-card { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; background: var(--c-surface); box-shadow: inset 0 3px 0 var(--c-text); }

.emb-head { flex: none; display: flex; align-items: center; gap: 10px; height: 54px; padding: 3px 14px 0; border-bottom: 1px solid var(--c-line); }
.emb-art { width: 32px; height: 32px; }
.emb-brand { display: grid; flex: 1; min-width: 0; }
.emb-name { color: var(--c-text-3); font-size: .75rem; font-weight: var(--fw-bold); line-height: 1.2; letter-spacing: .02em; }
.emb-title { margin: 0; overflow: hidden; font-size: 1.0625rem; line-height: 1.25; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.emb-count { flex: none; color: var(--c-text-2); font-size: var(--fs-caption); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.p3:is(:lang(my), :lang(km), :lang(si), :lang(th)) .emb-title { line-height: 1.6; }

.emb-body { flex: 1; min-height: 0; padding: 10px 14px 12px; overflow-y: auto; overscroll-behavior: contain; }
.emb-note { margin: var(--s-5) 0; color: var(--c-text-2); font-size: var(--fs-small); }
.emb-kicker { margin: 0 0 var(--s-1); color: var(--c-text-3); font-size: var(--fs-caption); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.emb .passage { margin-bottom: var(--s-3); padding: 10px 12px; font-size: .9375rem; line-height: 1.65; }
.emb .qtext { margin: 0 0 var(--s-1); font-size: 1rem; line-height: 1.5; }
.emb .qen { margin-bottom: var(--s-2); font-size: .8125rem; line-height: 1.45; }
.emb .emb-opts { display: grid; gap: 6px; margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.emb .opt { min-height: 48px; padding-top: 8px; padding-bottom: 8px; padding-right: 12px; font-size: .9375rem; line-height: 1.45; }
.emb .opt .en { font-size: .8125rem; line-height: 1.4; }
.emb .explain { margin-top: var(--s-3); padding: var(--s-3); animation: p3-in 200ms var(--ease) both; }
.emb .explain p { font-size: .9375rem; line-height: 1.6; }

.emb-foot { flex: none; height: 64px; padding: 8px 14px 8px; border-top: 1px solid var(--c-line); background: var(--c-surface); }
.emb-more { box-sizing: border-box; width: 100%; height: 48px; min-height: 0; padding: 2px 12px; font-size: .9375rem; line-height: 1.25; text-align: center; text-decoration: none; }
