/* Elves on the Shelf */
.elvespage .elvhead{padding-top:8px}
.elfshelves{display:grid;gap:34px;margin:8px 0 10px}
.eshelf-h{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;margin-bottom:6px}
.eshelf-h h3{margin:0;font-size:1.35rem;display:flex;align-items:center;gap:10px}
.eshelf-ico{flex:none;width:30px;height:30px;border-radius:50%;background:var(--ec,#2e7d4f);border:2px solid #fff;padding:4px;box-sizing:border-box;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.eshelf .eshelf-plank{border-top:4px solid var(--ec,transparent)}
.eshelf-h p{margin:0;font-size:.95rem;opacity:.85}
.eshelf{padding-bottom:100px}
.eshelf-row{display:flex;flex-wrap:wrap;gap:124px 14px;align-items:flex-end;padding:40px 6px 0}
.eshelf-plank{margin-top:-6px;height:22px;border-radius:8px;background:linear-gradient(#c58a52,#a0683a);box-shadow:0 8px 0 #7a4a24,0 14px 18px rgba(0,0,0,.35);position:relative;z-index:1}
.elf{position:relative;display:flex;flex-direction:column;align-items:center;width:104px;height:92px;padding:0;border:0;background:none;cursor:pointer;color:inherit;font:inherit;text-decoration:none;z-index:2}
.elf .elf-hat{position:absolute;top:-34px;left:10px;width:88px;height:66px;z-index:3;transition:transform .25s}
.elf .elf-hat .h{fill:var(--ec,#c62828)}.elf .elf-hat .b{fill:#ffd54f}
.elf .elf-badge{position:absolute;top:10px;left:12px;width:26px;height:26px;z-index:5;border-radius:50%;background:var(--ec,#2e7d4f);border:2px solid #fff;padding:3px;box-sizing:border-box;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
.elf:hover .elf-badge,.elf:focus-visible .elf-badge{transform:rotate(-8deg) translateY(-3px)}
.elf-face{width:84px;height:84px;border-radius:50%;overflow:hidden;background:#e8f2f0;border:4px solid #fff;display:grid;place-items:center;position:relative;z-index:2;box-shadow:0 3px 8px rgba(0,0,0,.25)}
.elf-face img{width:100%;height:100%;object-fit:cover;display:block}
.elf-q{font-size:2.3rem;font-weight:900;color:var(--ec,#2e7d4f);line-height:1}
.elf.secret .elf-face{background:#2b4775}.elf.secret .elf-q{color:#ffd54f}
.elf-legs{display:flex;gap:16px;height:76px;position:absolute;top:82px;left:50%;margin-left:-20px;z-index:4;transform-origin:top center}
.elf-legs i{display:block;width:12px;height:66px;border-radius:6px;background:repeating-linear-gradient(var(--ec,#c62828) 0 6px,#fff 6px 12px)}
.elf-legs i::after{content:'';display:block;width:16px;height:9px;border-radius:50%;background:#12233b;margin:60px 0 0 -2px}
.elf-name{position:absolute;top:166px;left:-8px;right:-8px;font-weight:800;font-size:.9rem;line-height:1.2;text-align:center;overflow-wrap:anywhere}
.elf:hover .elf-hat,.elf:focus-visible .elf-hat{transform:rotate(-8deg) translateY(-3px)}
.elf:focus-visible{outline:3px solid #ffd54f;outline-offset:6px;border-radius:12px}
.elf.join{opacity:.85}.elf.join .elf-face{background:rgba(255,255,255,.15);border-style:dashed}.elf.join .elf-q{color:#ffd54f}
.elf.join .elf-hat .h,.elf.join .elf-hat .b{fill:rgba(255,255,255,.35)}
.elf.join .elf-legs i{background:repeating-linear-gradient(rgba(255,255,255,.5) 0 6px,transparent 6px 12px)}
.elf-wait,.elf-note{opacity:.9}
.elf-note{font-size:.92rem;margin-top:26px}
@media(prefers-reduced-motion:no-preference){html:not(.calm) .elf-legs{animation:elfswing 3.2s ease-in-out infinite;transform-origin:top center}
 html:not(.calm) .elf:nth-child(2n) .elf-legs{animation-delay:-1.6s}
 @keyframes elfswing{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}}
/* the card pop-up */
.elf-dlg{border:0;border-radius:22px;padding:18px;max-width:min(560px,94vw);width:100%;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.elf-dlg::backdrop{background:rgba(10,20,35,.6)}
.elf-dlg .elf-cv{width:100%;height:auto;border-radius:14px;display:block}
.elf-dlg .elf-story{font-size:1.02rem;margin:12px 4px}
.elf-dlg .elf-x{position:absolute;top:10px;right:12px;width:40px;height:40px;border-radius:50%;border:0;background:#12233b;color:#fff;font-size:1.5rem;line-height:1;cursor:pointer}
.elf-dlg .btn{margin-top:4px}
/* form preview */
#elfForm .fprev canvas{width:100%;max-width:420px;height:auto;border-radius:14px;box-shadow:0 4px 14px rgba(0,0,0,.12)}
#elfForm fieldset{border:0;padding:0;margin:8px 0}#elfForm legend{font-weight:700;margin-bottom:4px}
.hp{position:absolute;left:-9999px}
@media(max-width:560px){.elf{width:88px}.elf .elf-hat{left:4px}.eshelf-row{gap:4px 8px}}

/* home page snapshot */
.elfmini{margin-top:28px;padding:22px 18px 6px;border-radius:22px;background:#0f3b6e;color:#fff}
.elfmini .eshelf{padding-bottom:96px}.elfmini .eshelf-row{justify-content:center;flex-wrap:nowrap}
.elfmini .eshelf-plank{border-top:0}
.eshelf-key{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin:0 0 14px;padding:0;font-size:.92rem;font-weight:700}
.eshelf-key li{display:flex;align-items:center;gap:6px}.eshelf-key .eshelf-ico{width:24px;height:24px;padding:3px}
.elfmini-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px}
.elfmini .elfmini-h h3{margin:0;color:#fff}.elfmini-h a{color:#ffd54f;font-weight:800}
/* "Already one of our Elves?" card form, folded away unless opened by a personal link */
.joinbox>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px}
.joinbox>summary::-webkit-details-marker{display:none}
.joinbox>summary h2{margin:0;display:inline}
.joinbox>summary::after{content:'+';flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:1.5rem;font-weight:800;background:#0f2742;color:#fff}
.joinbox[open]>summary::after{content:'−'}
.joinbox>summary:focus-visible{outline:3px solid #ffd54f;outline-offset:4px;border-radius:8px}
.joinbox>p{margin-top:14px}
/* the Elf card part of the volunteer form */
fieldset.velf{margin-top:18px;padding:14px 16px;border:2px dashed #c9d6e6;border-radius:16px}
fieldset.velf legend{padding:0 6px;font-weight:800}
/* Volunteer hero: words on the left, a random Elf's card on the right */
.ehgrid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.ehgrid>.fhcard[hidden]{display:none}
@media (max-width:820px){.ehgrid{grid-template-columns:1fr}}
