/* Trade Source IRE Christmas countdown. Scoped to avoid changing existing pages. */
.tsi-xmas{--xmas-green:#204d34;--xmas-red:#a83236;--xmas-gold:#be9b52;position:relative;isolation:isolate;background:repeating-linear-gradient(135deg,#b43135 0 8px,#fff9ec 8px 16px);padding:3px 0;color:var(--xmas-green);font-family:Arial,Helvetica,sans-serif}
.tsi-xmas[hidden],.tsi-xmas-elves[hidden]{display:none!important}
.tsi-xmas *{box-sizing:border-box}
.tsi-xmas-inner{position:relative;min-height:94px;display:flex;align-items:center;justify-content:center;gap:34px;padding:13px 105px;background:#fff9ee;overflow:hidden}
.tsi-xmas-label{display:flex;align-items:center;gap:12px;flex-shrink:0}
.tsi-xmas-holly{width:34px;height:34px;flex-shrink:0}
.tsi-xmas-title{display:block;font:700 23px/1.15 Georgia,'Times New Roman',serif;color:var(--xmas-green);letter-spacing:-.025em}
.tsi-xmas-subtitle{display:block;margin-top:7px;font-size:10px;line-height:1.3;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#933337}
.tsi-xmas-clock{display:flex;align-items:center;gap:8px;flex-shrink:0}
.tsi-xmas-tile{width:56px;min-height:60px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;background:#fffdf8;border:1px solid #d8c99f;border-radius:8px;box-shadow:0 3px 0 #e7dcc2}
.tsi-xmas-value{display:block;font:700 27px/1 Arial,Helvetica,sans-serif;font-variant-numeric:tabular-nums;color:var(--xmas-green)}
.tsi-xmas-unit{font-size:9px;font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:.075em;color:var(--xmas-red)}
.tsi-xmas-colon{color:#a7813f;font-size:22px;font-weight:700;line-height:1;margin:0 -3px}
.tsi-xmas-cane{position:absolute;width:30px;height:48px;left:max(24px,calc((100% - 1100px)/2));top:50%;transform:translateY(-50%) rotate(-14deg);pointer-events:none}
.tsi-xmas-cane--right{left:auto;right:max(96px,calc((100% - 1100px)/2));transform:translateY(-50%) rotate(14deg) scaleX(-1)}
.tsi-xmas-actions{position:absolute;right:15px;top:50%;transform:translateY(-50%);display:flex;gap:8px;align-items:center}
.tsi-xmas-button{display:grid;place-items:center;width:32px;height:32px;padding:0;background:#fffdf8;color:#933337;border:1px solid #d6b9a1;border-radius:50%;font:400 21px/1 Arial,Helvetica,sans-serif;cursor:pointer}
.tsi-xmas-button[data-xmas-motion]{font-size:16px}
.tsi-xmas-button:hover{background:#f4e8d1;color:#702326}
.tsi-xmas-button:focus-visible{outline:3px solid #ba7621;outline-offset:3px}
.tsi-xmas-lights{position:absolute;top:0;left:0;right:0;height:8px;display:flex;justify-content:space-around;pointer-events:none}
.tsi-xmas-lights i{width:4px;height:6px;border-radius:0 0 6px 6px;background:#be9b52;box-shadow:0 0 5px #be9b5266}
.tsi-xmas-lights i:nth-child(3n){background:#b43135}.tsi-xmas-lights i:nth-child(3n + 1){background:#397450}
.tsi-xmas.is-playing .tsi-xmas-label{animation:tsi-xmas-reveal .8s .1s both}
.tsi-xmas.is-playing .tsi-xmas-clock{animation:tsi-xmas-reveal .8s .25s both}
.tsi-xmas.is-playing .tsi-xmas-lights i{animation:tsi-xmas-glow 1.3s .2s ease-in-out 3}
.tsi-xmas.is-playing .tsi-xmas-lights i:nth-child(even){animation-delay:.55s}
.tsi-xmas-value.is-changing{animation:tsi-xmas-digit .25s ease-out}
.tsi-xmas.is-paused *,.tsi-xmas-elves.is-paused *{animation-play-state:paused!important}
.tsi-xmas-elves{position:fixed;inset:0 0 auto;height:114px;z-index:2147483002;pointer-events:none;overflow:hidden}
.tsi-xmas-corner{position:absolute;top:0;width:100px;height:110px;pointer-events:none}
.tsi-xmas-corner--left{left:0;--hat:#bf3b34;--hatshade:#8c2825;--shirt:#3b7043}
.tsi-xmas-corner--right{right:0;transform:scaleX(-1);--hat:#34784b;--hatshade:#215735;--shirt:#ad3c36}
.tsi-xmas-elf-motion{position:absolute;inset:0;opacity:0;transform:translate(-115px,-100px)}
.tsi-xmas-sprite{position:absolute;left:-30px;top:-28px;width:78px;height:125px;transform:rotate(65deg);filter:drop-shadow(0 2px 2px #0003)}
.tsi-xmas-sprite svg{width:100%;height:100%;display:block;overflow:visible}
.tsi-xmas-elves.is-playing .tsi-xmas-elf-motion{animation:tsi-xmas-jump 7.6s ease-in-out both}
.tsi-xmas-elves.is-playing .tsi-xmas-corner--right .tsi-xmas-elf-motion{animation-delay:.25s}
.tsi-xmas-elves.is-playing .tsi-xmas-eyes{transform-box:fill-box;transform-origin:center;animation:tsi-xmas-blink 2.8s 1s 2}
.tsi-xmas-twinkles{position:absolute;left:9px;top:6px;width:72px;height:73px;color:#e4be6c}
.tsi-xmas-twinkles span{position:absolute;opacity:0;font-size:12px}
.tsi-xmas-twinkles span:nth-child(1){left:47px;top:6px}.tsi-xmas-twinkles span:nth-child(2){left:4px;top:53px;font-size:9px}.tsi-xmas-twinkles span:nth-child(3){left:46px;top:44px;font-size:10px}
.tsi-xmas-elves.is-playing .tsi-xmas-twinkles span{animation:tsi-xmas-sparkle 1.3s 1.2s ease-in-out 3}
.tsi-xmas-elves.is-playing .tsi-xmas-twinkles span:nth-child(2){animation-delay:1.6s}.tsi-xmas-elves.is-playing .tsi-xmas-twinkles span:nth-child(3){animation-delay:2s}
.tsi-xmas-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tsi-xmas.is-reduced *,.tsi-xmas-elves.is-reduced *{animation:none!important}
.tsi-xmas-elves.is-reduced.is-playing .tsi-xmas-elf-motion{opacity:1;transform:translate(0,0)}
.tsi-xmas-elves.is-reduced .tsi-xmas-twinkles{display:none}
@keyframes tsi-xmas-reveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes tsi-xmas-glow{0%,100%{opacity:.5}50%{opacity:1;box-shadow:0 0 8px #be9b52}}
@keyframes tsi-xmas-digit{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@keyframes tsi-xmas-jump{0%,5%{opacity:0;transform:translate(-115px,-100px) scale(.8)}17%{opacity:1;transform:translate(11px,12px) scale(1.05)}24%{opacity:1;transform:translate(-3px,-3px) scale(.96)}31%,72%{opacity:1;transform:translate(0,0) scale(1)}100%{opacity:0;transform:translate(-115px,-100px) scale(.8)}}
@keyframes tsi-xmas-blink{0%,44%,51%,100%{transform:scaleY(1)}48%{transform:scaleY(.12)}}
@keyframes tsi-xmas-sparkle{0%,100%{opacity:0;transform:scale(.5)}45%,60%{opacity:1;transform:scale(1)}}
@media(max-width:900px){.tsi-xmas-inner{min-height:130px;flex-direction:column;gap:12px;padding:17px 42px 13px}.tsi-xmas-title{font-size:20px}.tsi-xmas-subtitle{display:none}.tsi-xmas-holly{width:26px;height:26px}.tsi-xmas-tile{width:48px;min-height:53px}.tsi-xmas-value{font-size:24px}.tsi-xmas-cane{width:23px;height:39px;left:13px;top:67%}.tsi-xmas-cane--right{left:auto;right:13px}.tsi-xmas-actions{right:7px;top:9px;transform:none;gap:5px}.tsi-xmas-button{width:27px;height:27px}.tsi-xmas-button[data-xmas-motion]{font-size:14px}.tsi-xmas-label{gap:8px}.tsi-xmas-corner{width:82px;height:88px}.tsi-xmas-sprite{left:-25px;top:-23px;width:65px;height:104px}}
@media(max-width:360px){.tsi-xmas-inner{padding-left:36px;padding-right:36px}.tsi-xmas-title{font-size:18px}.tsi-xmas-label{gap:5px}.tsi-xmas-holly{width:22px;height:22px}.tsi-xmas-tile{width:44px}.tsi-xmas-clock{gap:6px}.tsi-xmas-actions{gap:3px;right:5px}.tsi-xmas-button{width:24px;height:26px}}
@media(prefers-reduced-motion:reduce){.tsi-xmas *,.tsi-xmas-elves *{animation:none!important}.tsi-xmas-elves.is-playing .tsi-xmas-elf-motion{opacity:1;transform:translate(0,0)}.tsi-xmas-twinkles{display:none}}

/* Keep seasonal text legible when the site's global readability rules apply. */
html body #tsi-christmas-countdown {
  --tsi-read-text:#173e29;--tsi-read-link:#872329;
  --xmas-green:#173e29;--xmas-red:#872329;
  color:#173e29!important;
}
html body #tsi-christmas-countdown :is(.tsi-xmas-title,.tsi-xmas-value) {
  color:#173e29!important;-webkit-text-fill-color:#173e29!important;
  text-shadow:none!important;
}
html body #tsi-christmas-countdown :is(.tsi-xmas-subtitle,.tsi-xmas-unit,.tsi-xmas-button) {
  color:#872329!important;-webkit-text-fill-color:#872329!important;
  text-shadow:none!important;
}
html body #tsi-christmas-countdown .tsi-xmas-colon {
  color:#73541d!important;-webkit-text-fill-color:#73541d!important;
}
