.sjt{--sjt-green:#245c3a;--sjt-gold:#b78b37;max-width:900px;margin:1.5rem auto;color:#243a2d;font-family:inherit}.sjt *{box-sizing:border-box}.sjt-heading{text-align:center}.sjt-heading h2{margin:0;color:var(--sjt-green)}.sjt-heading p{margin:.4rem 0 1rem}.sjt-tree{position:relative;overflow:hidden;border-radius:12px;isolation:isolate;background:#e8ebdf}.sjt-tree-art{display:block;width:100%;height:auto}.sjt-tree-placeholder{min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem}.sjt-tree-placeholder span{font-size:7rem}.sjt-hung{position:absolute;top:38%;left:48%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;background:transparent;border:0;cursor:pointer;color:#fff;text-shadow:0 1px 4px #172d23;padding:0}.sjt-hung[hidden],.sjt-moving[hidden]{display:none!important}.sjt-hung-image{display:flex;align-items:center;justify-content:center;width:clamp(42px,7vw,66px);height:clamp(42px,7vw,66px);border-radius:50%;background:#fff8df;border:3px solid #c99c3d;box-shadow:0 3px 12px #0005;font-size:2rem;overflow:hidden}.sjt-hung-image img{width:100%;height:100%;object-fit:contain}.sjt-hung-label{font-weight:700;font-size:.8rem;background:#183d2dc9;padding:1px 7px;border-radius:10px;margin-top:4px}.sjt-moving{position:fixed;z-index:999999;pointer-events:none;width:70px;height:70px;border-radius:50%;border:3px solid #d5aa4c;background:#fff8df;display:flex;align-items:center;justify-content:center;font-size:2.3rem;box-shadow:0 0 20px #e6c46b}.sjt-moving img{width:100%;height:100%;object-fit:contain;border-radius:50%}.sjt-chooser{text-align:center;padding:1.1rem}.sjt-chooser h3{margin:0 0 .7rem}.sjt-open{display:inline-flex;flex-direction:column;align-items:center;gap:6px;border:2px solid #cba351;background:#fffaf0;border-radius:16px;padding:14px 26px;cursor:pointer;color:#214a32;min-width:160px}.sjt-open:hover,.sjt-open:focus-visible{box-shadow:0 0 0 4px #e4ce9b}.sjt-open-image{display:flex;align-items:center;justify-content:center;width:96px;height:96px;border-radius:50%;border:3px solid #cba351;background:#f7edca;font-size:3.3rem;overflow:hidden}.sjt-open-image img{width:100%;height:100%;object-fit:contain}.sjt-open-title{font-weight:700}.sjt-open-action{font-size:.9rem;text-decoration:underline}.sjt-status{min-height:1.5rem}.sjt-dialog{border:1px solid #b6ad8d;border-radius:16px;max-width:min(650px,calc(100% - 24px));max-height:85vh;padding:0;box-shadow:0 15px 60px #0005;color:#263b2e}.sjt-dialog::backdrop{background:#132a21aa}.sjt-dialog-content{padding:clamp(18px,4vw,34px);position:relative}.sjt-dialog-content p{line-height:1.65}.sjt-dialog-content h3{color:#245c3a;margin:.2rem 0}.sjt-kicker{font-weight:700;color:#8d6724;text-transform:uppercase;letter-spacing:.08em;font-size:.8rem}.sjt-close{position:absolute;right:14px;top:12px;background:transparent;border:0;font-size:2rem;cursor:pointer}.sjt-scripture{background:#f1f4eb;padding:12px 16px;border-left:4px solid #cba351}.sjt-question{background:#fff8e8;padding:12px 16px}.sjt-actions{display:flex;gap:10px;flex-wrap:wrap}.sjt-hang-button,.sjt-secondary{padding:11px 17px;border-radius:8px;cursor:pointer}.sjt-hang-button{background:#245c3a;color:white;border:1px solid #245c3a}.sjt-secondary{background:white;border:1px solid #889c8d;color:#245c3a}.sjt-footnote{font-size:.82rem;color:#52645a}.sjt-hung:focus-visible{outline:3px solid #fff;outline-offset:4px}@media(prefers-reduced-motion:reduce){.sjt-moving{transition:none!important}}

/* v0.1.1: Show the actual transparent ornament without a second gold ring. */
.sjt-open-image:has(img),.sjt-hung-image:has(img),.sjt-moving:has(img){background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.sjt-open-image:has(img){width:96px;height:110px}
.sjt-hung-image:has(img){width:clamp(42px,7vw,66px);height:clamp(48px,8vw,76px)}
.sjt-open-image img,.sjt-hung-image img,.sjt-moving img{display:block;object-fit:contain;border-radius:0}

.sjt-worksheet { margin: 1rem 0 .25rem; }
.sjt-worksheet-link { display:inline-block; padding:.65rem 1rem; border-radius:8px; background:#e9f2e5; color:#245d34; font-weight:700; text-decoration:underline; }
.sjt-worksheet-link:hover,.sjt-worksheet-link:focus-visible { background:#d9ead2; }

/* v0.2.0 — all 24 ornaments and illustrated place cards */
.sjt-ornaments{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}.sjt-ornaments .sjt-open{min-width:0;padding:10px 6px;width:100%;font:inherit}.sjt-open-title{font-size:.85rem}.sjt-added{background:#e7f1e3}.sjt-tree{min-height:300px}.sjt-branches{position:absolute;inset:0;pointer-events:none}.sjt-hung{pointer-events:auto;width:clamp(34px,6vw,64px);height:clamp(40px,7vw,74px)}.sjt-hung img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px #0008)}.sjt-dialog{width:min(800px,calc(100% - 20px));max-width:800px;max-height:92vh}.sjt-dialog-content{padding:18px}.sjt-card-media{text-align:center;max-height:65vh;overflow:auto}.sjt-card-image{display:block;width:auto;max-width:100%;max-height:62vh;height:auto;margin:auto;object-fit:contain}.sjt-card-pdf{display:block;width:100%;height:60vh;border:1px solid #ddd}.sjt-card-media>a{display:inline-block;margin:8px}.sjt-actions{margin-top:12px;align-items:center}.sjt-worksheet-link{text-decoration:none}.sjt-dialog-content h3{padding-right:35px}.sjt-moving{display:flex}.sjt-moving img{width:100%;height:100%;object-fit:contain}@media(max-width:600px){.sjt-ornaments{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sjt-open-image:has(img){width:70px;height:78px}.sjt-dialog-content{padding:12px}.sjt-card-pdf{height:55vh}.sjt-actions{flex-direction:column;align-items:stretch}.sjt-actions>*{text-align:center}}

.sjt-reset-button{display:block;margin:14px auto 6px;padding:10px 18px;border:2px solid #397b4b;border-radius:8px;background:#fff;color:#225b34;font:inherit;font-weight:600;cursor:pointer}.sjt-reset-button:hover,.sjt-reset-button:focus-visible{background:#e8f1e5;outline-offset:3px}

.sjt [hidden]{display:none!important}.sjt-star{position:absolute;right:-5px;top:-5px;color:#ffdb65;font-size:24px;text-shadow:0 1px 3px #493700;line-height:1}.sjt-quiz-question{background:#f3f5ed;border:1px solid #c6d2bd;border-radius:10px;padding:14px;margin:14px 0}.sjt-quiz-question h5{font-size:1rem;margin:0 0 10px}.sjt-quiz-question button{display:block;width:100%;text-align:left;margin:7px 0;white-space:normal;font:inherit}.sjt-quiz-question button:disabled{opacity:1;cursor:default}.sjt-quiz-question .sjt-correct{background:#dcefd9;border-color:#397b4b}.sjt-quiz-question .sjt-wrong{background:#fff0db;border-color:#b78b37;text-decoration:line-through}.sjt-quiz-feedback{background:#fff8e8;padding:10px;border-radius:8px}.sjt-quiz-score{font-weight:bold;color:#245c3a}.sjt [data-quiz-panel] h4{color:#245c3a;margin-top:12px}.sjt [data-quiz-panel] button:focus-visible{outline:3px solid #397b4b;outline-offset:2px}
