/* magic.css — Christmas Toolbox: the finishing magic.
   Snow that settles and drips, festive badges, friendly form feedback, toasts and visiting characters. */

:root {
  --ct-berry: #b81d36; --ct-berry-dark: #8d1528; --ct-holly: #1f6b45; --ct-evergreen: #103e2c;
  --ct-gold: #e2b65a; --ct-cream: #fffaf1; --ct-ink: #24392e; --ct-error: #c0263c;
  --ct-snow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.55' stop-color='%23fbfdff'/%3E%3Cstop offset='1' stop-color='%23dfeaf2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url%28%23g%29' d='M0,8C6,3 14,2 20,5C26,1 36,1 42,4C50,0 62,1 68,5C76,2 88,1 96,4C104,1 114,2 120,8L120,10C117,10 115,11 113,11C111,11 110,13 110,16C110,19.5 106,19.5 106,16C106,13 105,11 103,11C96,11 92,10 88,10C84,10 83,12 83,13C83,15.5 79,15.5 79,13C79,11 77,10 75,10C66,10 60,11 55,11C52,11 51,14 51,18C51,22.5 45,22.5 45,18C45,14 44,11 41,11C33,11 27,10 22,10C19,10 18,12 18,14C18,17 13.5,17 13.5,14C13.5,12 12,10 9,10C5,10 2,10 0,10Z'/%3E%3Cpath fill='%23fff' opacity='.9' d='M8,5.5C14,3.2 20,4.5 24,4M46,3C54,1.5 60,2 66,4M84,3.4C92,2.2 100,2.5 106,3.6' stroke='%23fff' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='31' cy='4' r='.7' fill='%23cfe4ff'/%3E%3Ccircle cx='74' cy='4.5' r='.6' fill='%23cfe4ff'/%3E%3Ccircle cx='101' cy='3.5' r='.6' fill='%23cfe4ff'/%3E%3C/svg%3E");
  --ct-snow-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='173' height='24' viewBox='0 0 173 24'%3E%3Cdefs%3E%3ClinearGradient id='h' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23e3edf4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23h)' d='M0,9C10,6 18,2 30,2C42,2 48,6 58,6C70,6 76,0 92,1C104,2 110,7 122,6C134,5 142,3 154,4C162,5 168,7 173,9L173,11C166,11 160,12 156,12C153,12 152,15 152,19C152,23.5 146.5,23.5 146.5,19C146.5,15 145,12 141,12C128,12 118,11 108,11C104,11 103,13 103,15C103,18 98.5,18 98.5,15C98.5,13 97,11 93,11C80,11 70,12 62,12C50,12 40,11 30,11C27,11 26,12.5 26,14C26,16 23,16 23,14C23,12.5 21,11 18,11C10,11 4,11 0,11Z'/%3E%3C/svg%3E");
  --ct-holly-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cpath fill='%231f6b45' d='M30 26C24 18 14 18 4 22c4 1 5 4 4 6 3-1 6 0 6 3 2-2 5-2 6 0 1-3 5-4 10-5z'/%3E%3Cpath fill='%232c8456' d='M34 26c6-8 16-8 26-4-4 1-5 4-4 6-3-1-6 0-6 3-2-2-5-2-6 0-1-3-5-4-10-5z'/%3E%3Cpath fill='none' stroke='%2312462d' stroke-width='.8' d='M8 23.5c8-1 15 0 22 2.5M56 23.5c-8-1-15 0-22 2.5'/%3E%3Ccircle cx='28' cy='30' r='5.2' fill='%23c0263c'/%3E%3Ccircle cx='36.5' cy='30.5' r='5.2' fill='%23d4334a'/%3E%3Ccircle cx='32' cy='23.5' r='5.2' fill='%23b81d36'/%3E%3Ccircle cx='30.4' cy='21.8' r='1.4' fill='%23fff' opacity='.7'/%3E%3Ccircle cx='26.4' cy='28.3' r='1.3' fill='%23fff' opacity='.6'/%3E%3Ccircle cx='35' cy='28.8' r='1.3' fill='%23fff' opacity='.6'/%3E%3C/svg%3E");
  --ct-star-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f3c25b' d='M12 1l2.6 7.4L22 9l-6 4.6L18.2 21 12 16.6 5.8 21 8 13.6 2 9l7.4-.6z'/%3E%3C/svg%3E");
}

/* Accessibility: a visible skip link for keyboard users. */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 3000; padding: .7rem 1rem; border-radius: .6rem; background: var(--ct-cream); color: var(--ct-evergreen); font-weight: 700; box-shadow: 0 6px 18px #0004; }
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

/* ------------------------------------------------------------------
   Settled snow with drips. A tileable ledge sits on every button's
   top edge, follows its rounded corners and hangs little icicles.
------------------------------------------------------------------- */
.christmas-theme .btn:not(label):not(.btn-link):not(.zoom-btn):not(.snow-toggle):not(.btn-close)::before {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  top: -7px; left: -3px; right: -3px; height: 24px;
  background: var(--ct-snow) repeat-x 0 0 / 120px 24px, var(--ct-snow-b) repeat-x 31px 0 / 173px 24px;
  border-radius: 12px 12px 0 0;
  filter: drop-shadow(0 1.5px 1px rgba(16, 62, 44, .28));
  transform-origin: 50% 0; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.christmas-theme .btn:nth-of-type(2n)::before { background-position: -47px 0, -12px 0; }
.christmas-theme .btn:nth-of-type(3n)::before { background-position: -83px 0, 70px 0; }
.christmas-theme .btn-sm::before { top: -5px !important; height: 17px !important; background-size: 85px 17px, 122px 17px !important; }
.christmas-theme .btn-lg::before { top: -8px !important; height: 28px !important; background-size: 140px 28px, 200px 28px !important; }
.christmas-theme .btn:not(:disabled):hover::before { transform: scaleY(1.12); }
/* The button face needs a little headroom so drips never touch the label. */
.christmas-theme .btn:not(label):not(.btn-link):not(.zoom-btn):not(.btn-close):not(.btn-sm) { padding-top: .55rem; }
/* Snow on light buttons needs a frost edge to stay visible. */
.christmas-theme .btn-light::before, .christmas-theme .btn-outline-light::before { filter: drop-shadow(0 1px 1px rgba(16, 62, 44, .55)) drop-shadow(0 0 1px rgba(16, 62, 44, .4)) !important; }

/* Velvet-red Santa buttons with a soft shine that sweeps across on hover. */
.christmas-theme .btn-primary, .christmas-theme .btn-danger, .christmas-theme .btn-holly, .christmas-theme .btn-success, .christmas-theme .btn-santa-email { overflow: visible; isolation: isolate; }
.christmas-theme .btn-primary::after, .christmas-theme .btn-danger::after, .christmas-theme .btn-holly::after, .christmas-theme .btn-success::after, .christmas-theme .btn-santa-email::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 45%, transparent 60%) -150% 0 / 250% 100% no-repeat;
  transition: background-position .8s ease;
}
.christmas-theme .btn-primary:hover::after, .christmas-theme .btn-danger:hover::after, .christmas-theme .btn-holly:hover::after, .christmas-theme .btn-success:hover::after, .christmas-theme .btn-santa-email:hover::after { background-position: 150% 0; }
.christmas-theme .btn-success { --bs-btn-bg: #1f6b45; --bs-btn-border-color: #1a5c3b; --bs-btn-hover-bg: #17563a; --bs-btn-hover-border-color: #17563a; --bs-btn-active-bg: #12462d; background: linear-gradient(#2a7d52, #1a5c3b); box-shadow: 0 3px 0 #0e3b25; color: #fff; }
.christmas-theme .btn-light { box-shadow: 0 3px 0 #c9d6cc; }

/* A tiny burst of stars when an important button is pressed. */
.ct-sparkle { position: fixed; z-index: 2600; width: 14px; height: 14px; pointer-events: none; background: var(--ct-star-img) center / contain no-repeat; animation: ct-sparkle .75s ease-out forwards; }
@keyframes ct-sparkle { 0% { opacity: 1; transform: translate(0, 0) scale(.4) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(160deg); } }

/* ------------------------------------------------------------------
   Stationery: holly sprigs, stamps, wax seals and ribbons.
------------------------------------------------------------------- */
.christmas-theme .card-christmas::after {
  content: ""; position: absolute; top: -14px; right: 14px; width: 54px; height: 40px; pointer-events: none;
  background: var(--ct-holly-img) center / contain no-repeat; filter: drop-shadow(0 2px 2px #0002); transform: rotate(8deg);
}
.christmas-theme .card-christmas.no-holly::after, .christmas-theme .hero-christmas .card-christmas::after { display: none; }

.ct-badge-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ct-stamp {
  --stamp: #b81d36; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--stamp); background: #fffaf1; border: 2px dashed currentColor; border-radius: .35rem; transform: rotate(-2deg);
  box-shadow: inset 0 0 0 2px #fffaf1, inset 0 0 0 3px color-mix(in srgb, currentColor 35%, transparent);
}
.ct-stamp.is-green { --stamp: #1f6b45; transform: rotate(1.5deg); }
.ct-stamp.is-gold { --stamp: #9a6b12; }
.ct-seal { display: inline-grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; color: #ffe9e9; font: 700 1.05rem/1 "Mountains of Christmas", cursive;
  background: radial-gradient(circle at 35% 30%, #e0485c, #a3152b 60%, #7e0f20); box-shadow: 0 0 0 4px #b81d3633, 0 3px 6px #0004, inset 0 -3px 6px #0003; transform: rotate(-8deg); }
.ct-ribbon { position: relative; display: inline-block; padding: .3rem 1.1rem; color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .05em; background: linear-gradient(#cd2b41, #a3172d); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%); }
.ct-divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0; color: #b0954f; }
.ct-divider::before, .ct-divider::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #d8c48d 0 8px, transparent 8px 14px); }
.ct-divider i { color: var(--ct-berry); }

/* Section titles get a little star. */
.christmas-theme .card-christmas h1.brand-script::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .35rem; vertical-align: .35em; background: var(--ct-star-img) center / contain no-repeat; animation: ct-twinkle 3.2s ease-in-out infinite; }
@keyframes ct-twinkle { 0%, 100% { opacity: 1; transform: scale(1) rotate(0); } 50% { opacity: .55; transform: scale(.82) rotate(18deg); } }

/* Step tracker becomes a string of baubles. */
.letter-flow-nav ol { position: relative; }
.letter-flow-nav ol::before { content: ""; position: absolute; top: 2px; left: 12%; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, #c9b37a 0 6px, transparent 6px 10px); }
.letter-flow-nav li { position: relative; }
.letter-flow-nav li span { position: relative; margin-top: .55rem; box-shadow: inset -3px -4px 0 #0000001a, inset 3px 3px 0 #ffffff70; }
.letter-flow-nav li span::before { content: ""; position: absolute; top: -9px; left: 50%; width: 9px; height: 6px; transform: translateX(-50%); border-radius: 2px 2px 0 0; background: linear-gradient(#e9d08c, #b8964a); }
.christmas-theme .letter-flow-nav li.is-complete span { background: #1f6b45; }
.christmas-theme .letter-flow-nav li.is-current span { animation: ct-swing 2.4s ease-in-out infinite; transform-origin: 50% -9px; }
@keyframes ct-swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* ------------------------------------------------------------------
   Friendly validation: the exact field glows red, shakes gently once
   and explains what to fix right underneath.
------------------------------------------------------------------- */
.christmas-theme .form-control.is-invalid, .christmas-theme .form-select.is-invalid, .christmas-theme .is-invalid.form-control[contenteditable] {
  border-color: var(--ct-error) !important; border-width: 2px; background-color: #fff6f6;
  box-shadow: 0 0 0 .25rem rgba(192, 38, 60, .16) !important; background-image: none;
}
.christmas-theme .ct-shake { animation: ct-shake .45s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes ct-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-5px); } 40%, 60% { transform: translateX(5px); } }
.ct-field-error { display: flex; align-items: flex-start; gap: .4rem; margin: .4rem 0 .75rem; padding: .45rem .65rem; border-radius: .55rem; color: #8e1b2c; background: #fff0ee; border: 1px solid #efc2c7; font-size: .86rem; font-weight: 600; animation: ct-drop-in .25s ease-out; }
.ct-field-error::before { content: "\2744"; color: var(--ct-error); line-height: 1.3; }
.christmas-theme .is-invalid-group { border-radius: .9rem; outline: 2px solid var(--ct-error); outline-offset: 4px; box-shadow: 0 0 0 .4rem rgba(192, 38, 60, .1); }
.christmas-theme .form-control.is-valid-soft { border-color: #4f9a6c; }
@keyframes ct-drop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Character counters under longer fields. */
.ct-counter { display: block; text-align: right; font-size: .75rem; color: #6c7c71; margin-top: .2rem; }
.ct-counter.is-near { color: #9a6b12; font-weight: 700; }
.ct-counter.is-over { color: var(--ct-error); font-weight: 800; }

/* ------------------------------------------------------------------
   Toast notes from the North Pole (replace browser alert boxes).
------------------------------------------------------------------- */
.ct-toasts { position: fixed; z-index: 2500; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: grid; gap: .6rem; width: min(380px, calc(100vw - 2rem)); }
.ct-toast { position: relative; display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 2.6rem .9rem 1rem; border-radius: 1rem; background: var(--ct-cream); color: var(--ct-ink); border: 1px solid #e5d7ae; border-left: 6px solid var(--ct-holly); box-shadow: 0 12px 30px #0d2a1d33; animation: ct-toast-in .35s cubic-bezier(.2, 1.4, .4, 1); }
.ct-toast.is-error { border-left-color: var(--ct-error); }
.ct-toast.is-warning { border-left-color: #c9952c; }
.ct-toast .ct-toast-icon { flex: 0 0 auto; font-size: 1.35rem; line-height: 1; }
.ct-toast strong { display: block; font-family: "Mountains of Christmas", cursive; font-size: 1.15rem; color: var(--ct-evergreen); }
.ct-toast p { margin: 0; font-size: .9rem; }
.ct-toast button { position: absolute; top: .45rem; right: .5rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: #56685c; font-size: 1.1rem; }
.ct-toast button:hover { background: #0000000d; }
.ct-toast.is-leaving { animation: ct-toast-out .25s ease-in forwards; }
@keyframes ct-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ct-toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ------------------------------------------------------------------
   Visitors from the North Pole: Santa, Rudolph, a snowman, an elf, a penguin
   and a gingerbread friend peek in now and then (north-pole-visitors.js).
   The box slides in; only the drawing inside is mirrored or flipped.
------------------------------------------------------------------- */
.ct-peeker { position: fixed; z-index: 1900; width: 150px; height: 169px; pointer-events: none; transition: transform .9s cubic-bezier(.2, 1.25, .35, 1); }
.ct-peeker .ct-peeker-bob { width: 100%; height: 100%; }
.ct-peeker svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 6px 10px #0003); }
.ct-peeker.from-right svg { transform: scaleX(-1); }
.ct-peeker.is-in .ct-peeker-bob { animation: ct-peek-bob 2.6s ease-in-out .9s infinite; }
.ct-peeker.is-spotted .ct-peeker-bob { animation: ct-peek-giggle .45s ease-in-out 3; }
@keyframes ct-peek-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes ct-peek-giggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.ct-peeker button.ct-peeker-hit { position: absolute; inset: 12% 12% 8%; border: 0; background: transparent; cursor: pointer; pointer-events: auto; border-radius: 40%; }
.ct-peeker button.ct-peeker-hit:focus-visible { outline: 3px solid var(--ct-gold); }
/* Side visitors turn a full quarter so the flat bottom of the drawing lies along the screen edge, out of sight. */
.ct-peeker.from-left { left: 0; top: min(var(--peek-y, 55vh), calc(100vh - 210px)); transform: translateX(-125%) rotate(90deg); }
.ct-peeker.from-left.is-in { transform: translateX(-14%) rotate(90deg); }
.ct-peeker.from-right { right: 0; top: min(var(--peek-y, 55vh), calc(100vh - 210px)); transform: translateX(125%) rotate(-90deg); }
.ct-peeker.from-right.is-in { transform: translateX(14%) rotate(-90deg); }
.ct-peeker.from-bottom { bottom: 0; left: var(--peek-x, 70vw); transform: translateY(110%); }
.ct-peeker.from-bottom.is-in { transform: translateY(30%); }
.ct-peeker .ct-wave { transform-box: fill-box; transform-origin: 20% 95%; animation: ct-wave .6s ease-in-out infinite alternate; }
@keyframes ct-wave { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
.ct-peeker .ct-blink { animation: ct-blink 4s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ct-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.ct-peeker .ct-nose { animation: ct-nose 1.4s ease-in-out infinite; }
@keyframes ct-nose { 0%, 100% { filter: drop-shadow(0 0 2px #ff4d4d); } 50% { filter: drop-shadow(0 0 10px #ff2a2a); } }
.ct-bubble { position: fixed; z-index: 1901; max-width: 230px; padding: .7rem .9rem; border-radius: 1rem; background: #fff; color: var(--ct-evergreen); font: 600 1.1rem/1.25 "Caveat", "Mountains of Christmas", cursive; box-shadow: 0 10px 24px #0d2a1d33; border: 2px solid #f1e3bd; opacity: 0; transform: scale(.7); transition: opacity .25s, transform .3s cubic-bezier(.2, 1.5, .4, 1); pointer-events: none; }
.ct-bubble.is-in { opacity: 1; transform: none; }

/* The sleigh bell in the footer calls a visitor straight away. */
.ct-bell-btn .ct-bell { display: inline-block; transform-origin: 50% 10%; }
.ct-bell-btn.is-ringing .ct-bell { animation: ct-bell-ring .7s ease-in-out; }
@keyframes ct-bell-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-22deg); } 40% { transform: rotate(18deg); } 60% { transform: rotate(-12deg); } 80% { transform: rotate(6deg); } }

/* Footer magic toggles. */
.ct-magic-toggles { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ------------------------------------------------------------------
   Santa letter studio: magic details and layout fine-tuning.
------------------------------------------------------------------- */
.ct-magic-panel { position: relative; padding: 1rem 1rem .5rem; margin-bottom: 1rem; border-radius: 1rem; border: 1.5px dashed #d6c286; background: linear-gradient(180deg, #fffaf0, #fff6e4); }
.ct-magic-panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ct-evergreen); }
.ct-magic-panel > summary::-webkit-details-marker { display: none; }
.ct-magic-panel > summary::after { content: "\25BE"; margin-left: auto; transition: transform .2s; color: #9a7b33; }
.ct-magic-panel[open] > summary::after { transform: rotate(180deg); }
.ct-magic-panel > summary .ct-sub { display: block; font-weight: 500; font-size: .82rem; color: #66705f; }
.ct-magic-panel .ct-magic-icon { flex: 0 0 auto; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #b81d36; color: #fff; box-shadow: inset -3px -4px 0 #0002; }
.ct-magic-panel .ct-magic-body { padding-top: .9rem; }
.ct-wish-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .6rem; }
.ct-wish-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .4rem .3rem .7rem; border-radius: 999px; background: #fff; border: 1.5px solid #d7c58f; font-weight: 600; font-size: .88rem; color: #3b4b30; }
.ct-wish-chip button { border: 0; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #f5ecd6; color: #7d1a2a; line-height: 1; }
.ct-wish-chip button:hover { background: #b81d36; color: #fff; }
.ct-sample-line { margin: .25rem 0 .75rem; padding: .6rem .8rem; border-radius: .7rem; background: #fff; border-left: 4px solid var(--ct-gold); font: 600 1.15rem/1.3 "Caveat", cursive; color: #3a4a3e; }
.ct-tune { padding: 1rem; border-radius: 1rem; background: #f6f8f1; border: 1px solid #dde5d3; }
.ct-tune .form-label { font-size: .85rem; margin-bottom: .2rem; }
.ct-ink-swatches { display: flex; gap: .5rem; flex-wrap: wrap; }
.ct-ink-swatches label { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border-radius: 999px; border: 1.5px solid #cfd8c8; background: #fff; cursor: pointer; font-size: .85rem; font-weight: 600; min-height: 38px; }
.ct-ink-swatches label i { width: 1rem; height: 1rem; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #0002; }
.ct-ink-swatches input:checked + label { border-color: var(--ct-holly); background: #edf8f1; box-shadow: 0 0 0 2px #cfe8d9; }
.ct-ink-swatches input:focus-visible + label { outline: 3px solid #1269b2; outline-offset: 2px; }
.template-card .ct-new-badge { position: absolute; top: .35rem; left: .35rem; z-index: 1; }

@media (max-width: 575.98px) {
  .ct-peeker { width: 110px; height: 124px; }
  .ct-bubble { max-width: 180px; font-size: 1rem; }
  .christmas-theme .card-christmas::after { width: 42px; height: 31px; top: -11px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-peeker, .ct-bubble, .ct-sparkle { display: none !important; }
}
@media print {
  .ct-peeker, .ct-bubble, .ct-toasts, .skip-link { display: none !important; }
  .christmas-theme .card-christmas::after { display: none; }
}

/* Footer links and toggles. */
.footer-actions { flex-direction: column; align-items: flex-end; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: flex-end; }
.footer-links a { color: #ffe5a2; text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
@media (max-width: 575.98px) { .footer-actions { align-items: flex-start; } .footer-links { justify-content: flex-start; } }
@media (max-width: 991.98px) {
  .footer-content { flex-wrap: wrap; }
  .footer-message { flex: 1 1 260px; min-width: 220px; }
  .footer-actions { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
  .footer-links { justify-content: flex-start; }
}
.ct-magic-panel legend.form-label { font-size: 1rem; }
