/* The free Santa picture inside the Fable home (#santa, Guy 17.11). Fable tokens from b.css; script: /js/santa-photo.js (inline mode).
   santa-photo.html keeps its own styles (css/santa-photo.css). */
.santa { background: var(--cream); scroll-margin-top: 64px; }
.santa h2 { margin-bottom: .3em; }
.santa .sp-grid { display: grid; gap: 22px; max-width: 940px; margin: 26px auto 0; align-items: start; }
@media (min-width: 820px) { .santa .sp-grid { grid-template-columns: 1fr 1.05fr; gap: 32px; } }
.santa .sp-example { margin: 0 auto; max-width: 260px; width: 100%; text-align: center; }
.santa .sp-example img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-lg); }
.santa .sp-example figcaption { margin-top: 8px; color: var(--muted); font-size: .88rem; }

.santa .sp-form { background: #fff; border-radius: 22px; padding: 22px 18px; box-shadow: 0 18px 50px rgba(34, 30, 74, .12); display: grid; gap: 14px; text-align: left; }
.santa .sp-drop { position: relative; display: grid; gap: 4px; place-items: center; text-align: center; padding: 22px 14px; border: 2px dashed #CFC8F5; border-radius: 16px; background: var(--purple-soft); cursor: pointer; }
.santa .sp-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.santa .sp-drop:focus-within { outline: 3px solid var(--purple); outline-offset: 2px; }
.santa .sp-drop.has-photo { border-style: solid; background: #fff; }
.santa .sp-drop-big { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.santa .sp-drop-sm { color: var(--muted); font-size: .9rem; }
.santa .sp-thumb { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; }
.santa .sp-row { display: grid; gap: 6px; }
.santa .sp-row label, .santa .sp-label { font-weight: 800; color: var(--ink); font-size: .95rem; }
.santa .sp-row label span, .santa .sp-label span { font-weight: 400; color: var(--muted); }
.santa .sp-row input { width: 100%; height: 48px; padding: 0 14px; border: 2px solid #D9D4FA; border-radius: 12px; font: inherit; color: var(--ink); background: #fff; }
.santa .sp-row input:focus { outline: none; border-color: var(--purple); }
.santa .sp-chips { display: flex; gap: 8px; }
.santa .sp-chip { height: 44px; padding: 0 22px; border: 2px solid #D9D4FA; border-radius: 999px; background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.santa .sp-chip[aria-pressed="true"] { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.santa .sp-note { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.santa .sp-error { margin: 0; color: #B42318; font-weight: 700; font-size: .95rem; }
.santa .sp-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.santa .sp-consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--purple); }

.santa .sp-wait, .santa .sp-off { max-width: 560px; margin: 0 auto; text-align: center; background: #fff; border-radius: 22px; box-shadow: 0 18px 50px rgba(34, 30, 74, .12); padding: 34px 20px; }
.santa .sp-wait p, .santa .sp-off p { color: var(--muted); }
.santa .sp-spark { font-size: 3rem; animation: sp-bob 1.4s ease-in-out infinite; }
@keyframes sp-bob { 50% { transform: translateY(-8px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .santa .sp-spark { animation: none; } }

.santa .sp-result { max-width: 620px; margin: 0 auto; display: grid; gap: 16px; }
.santa .sp-figure { margin: 0; }
.santa .sp-figure img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-lg); background: var(--purple-soft); }
.santa .sp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.santa .sp-actions .btn { flex: 1 1 200px; }
.santa .sp-email h3 { margin: 0; font-size: 1.3rem; }
.santa .sp-email-sub { margin: 0; color: var(--muted); }
.santa .sp-sent { margin: 0; text-align: center; color: var(--muted); }
.santa .sp-cta { background: var(--night-2); color: #fff; border-radius: 22px; padding: 22px 18px; text-align: center; }
.santa .sp-cta h3 { color: #fff; margin: 0 0 6px; font-size: 1.35rem; }
.santa .sp-cta p { color: #D9D5F7; margin: 0 0 14px; }
.santa [hidden] { display: none !important; }
@media (min-width: 820px) { .santa .sp-example { max-width: 400px; } }
