/* Seasonal decoration. Scoped to the public hero and the workspace shell. */
.hero.container {
  position: relative;
  isolation: isolate;
}

.hero.container::before,
.hero.container::after {
  position: absolute;
  inset: 0 0 auto;
  height: min(90%, 600px);
  content: "";
  pointer-events: none;
  z-index: -1;
}

.hero.container::before {
  background:
    radial-gradient(ellipse at 82% 17%, rgb(112 179 234 / 22%), transparent 49%),
    radial-gradient(ellipse at 79% 53%, rgb(171 156 235 / 11%), transparent 58%);
  mask-image: linear-gradient(90deg, transparent 28%, #000 56% 87%, transparent),
    linear-gradient(180deg, transparent, #000 17% 60%, transparent);
  mask-composite: intersect;
}

.hero.container::after {
  background:
    radial-gradient(circle at 52% 14%, #bbdafa 0 2px, transparent 3px),
    radial-gradient(circle at 56% 32%, #e6f2ff 0 2.5px, transparent 4px),
    radial-gradient(circle at 62% 7%, #d1eaff 0 2px, transparent 3.5px),
    radial-gradient(circle at 68% 17%, #fafcff 0 3px, transparent 4.5px),
    radial-gradient(circle at 73% 5%, #eaf3ff 0 2px, transparent 3px),
    radial-gradient(circle at 77% 27%, #c8dfff 0 2px, transparent 3.5px),
    radial-gradient(circle at 84% 8%, #f2f6ff 0 3px, transparent 4.5px),
    radial-gradient(circle at 88% 17%, #d7edff 0 2px, transparent 3px),
    radial-gradient(circle at 92% 8%, #c7d6f8 0 2px, transparent 3.5px),
    radial-gradient(circle at 95% 30%, #f7f9ff 0 2.5px, transparent 4px),
    radial-gradient(circle at 97% 45%, #cee5ff 0 2px, transparent 3.5px),
    radial-gradient(circle at 90% 50%, #dbeaff 0 2px, transparent 3px);
  --winter-snow-opacity: .65;
  opacity: var(--winter-snow-opacity);
  animation: ret4you-winter-drift 4.6s ease-out both;
}

@keyframes ret4you-winter-drift {
  from { transform: translate3d(0, -18px, 0); opacity: 0; }
  28% { opacity: var(--winter-snow-opacity); }
  to { transform: translate3d(-8px, 17px, 0); opacity: var(--winter-snow-opacity); }
}

.app-shell .sidebar > .brand {
  position: relative;
}

.app-shell .sidebar > .brand::after {
  position: absolute;
  inset: 0 0 auto auto;
  width: 35%;
  height: 48px;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 55% 65%, #a2d6fd 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 70% 40%, #ffc482 0 2px, transparent 3.5px),
    radial-gradient(circle at 80% 62%, #d4e8ff 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 90% 23%, #d4e8ff 0 2px, transparent 3px),
    radial-gradient(ellipse at 80% 48%, rgb(111 175 240 / 25%), transparent 64%);
}

.app-shell .topbar::after {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent 10%, rgb(134 193 249 / 55%) 50%, rgb(255 184 115 / 40%) 76%, transparent 100%);
}

@media (max-width: 760px) {
  .hero.container::after { --winter-snow-opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.container::after { animation: none; }
}

.hero .floating-brand,
.app-shell .sidebar > .brand .ret4you-mark {
  --winter-hat-width: 54px;
  --winter-hat-top: -16px;
  --winter-hat-left: -10px;
}
.app-shell .sidebar > .brand .ret4you-mark {
  --winter-hat-width: 28px;
  --winter-hat-top: -10px;
  --winter-hat-left: -7px;
  position: relative;
}

.hero .floating-brand::before,
.hero .floating-brand::after,
.app-shell .sidebar > .brand .ret4you-mark::before,
.app-shell .sidebar > .brand .ret4you-mark::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
  top: var(--winter-hat-top);
  left: var(--winter-hat-left);
  width: var(--winter-hat-width);
  aspect-ratio: 1.36;
  transform: rotate(-18deg);
}

.hero .floating-brand::before,
.app-shell .sidebar > .brand .ret4you-mark::before {
  background: linear-gradient(120deg, #981d34 15%, #e7595a 61%, #ba263d 88%);
  clip-path: polygon(16% 29%, 29% 11%, 51% 8%, 67% 17%, 79% 37%, 93% 76%, 41% 94%, 35% 60%, 28% 42%, 15% 48%, 10% 41%);
}

.hero .floating-brand::after,
.app-shell .sidebar > .brand .ret4you-mark::after {
  background:
    radial-gradient(circle, #fff 32%, #d5e6f5 55%, transparent 62%) 0% 42% / 25% 36%,
    linear-gradient(170deg, #fff, #e5eef7 70%, #bad0e0) 100% 96% / 61% 21%;
  background-repeat: no-repeat;
}

@media (max-width: 760px) {
  .hero .floating-brand {
    --winter-hat-width: 35px;
    --winter-hat-top: -10px;
    --winter-hat-left: -6px;
  }
}

.winter-surprise {
  display: block;
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 8;
}

.winter-surprise summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #efc587;
  background: #191b20;
  border: 1px solid #b28c514d;
  border-radius: 12px;
  list-style: none;
  cursor: pointer;
}

.winter-surprise summary::-webkit-details-marker { display: none; }
.winter-surprise summary:focus-visible { outline: 2px solid #acd8f9; outline-offset: 3px; }
.winter-surprise summary .icon { width: 19px; height: 19px; }
.winter-surprise summary:hover,
.winter-surprise[open] summary { border-color: #efc587; }

.winter-surprise img {
  position: absolute;
  bottom: 1px;
  right: 48px;
  width: 84px;
  height: 84px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}

@media (max-width: 760px) {
  .winter-surprise { right: 7px; bottom: 3px; }
  .winter-surprise img { width: 72px; height: 72px; }
}

.winter-surprise-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Keep the winter accent in the heading gutters, above the working panels. */
.app-shell #workspace-content .page > .page-heading {
  position: relative;
  isolation: isolate;
}

.app-shell #workspace-content .page > .page-heading::after {
  position: absolute;
  display: block;
  content: "";
  z-index: -1;
  pointer-events: none;
  inset: -10px 0 -14px auto;
  width: min(48%, 425px);
  background:
    radial-gradient(circle at 82% 26%, #bddef6 0 2px, transparent 3px),
    radial-gradient(circle at 91% 57%, #f1bc80 0 1.5px, transparent 3px),
    radial-gradient(circle at 72% 61%, #8bbadd 0 1.5px, transparent 3px),
    radial-gradient(circle at 95% 19%, #a4cbe9 0 1px, transparent 2.5px),
    radial-gradient(circle at 64% 28%, #bad8ee 0 1px, transparent 2.5px),
    radial-gradient(ellipse at 84% 47%, rgb(114 172 219 / 26%), transparent 60%);
}

.app-shell[data-theme="light"] #workspace-content .page > .page-heading::after {
  opacity: .82;
}

@media (max-width: 640px) {
  .app-shell #workspace-content .page > .page-heading::after {
    width: 35%;
    inset: -7px 0 auto auto;
    height: 36px;
  }
}

.app-shell[data-theme="dark"] .sidebar > .brand .ret4you-mark::before {
  background: linear-gradient(125deg, #c72f4c 15%, #ff7373 66%, #de4357 90%);
}

.app-shell #workspace-content .page > .page-heading::before {
  position: absolute;
  display: block;
  content: "";
  pointer-events: none;
  inset: auto 16px -9px auto;
  width: 64px;
  height: 64px;
  z-index: 0;
  background: url("/public-site-assets/winter-surprise.8485984f8c39.png") center / contain no-repeat;
  opacity: 1;
  mask-image: none;
}

.app-shell #workspace-content .workspace-quick-access {
  position: relative;
}

.app-shell #workspace-content .workspace-quick-access::after {
  position: absolute;
  inset: -1px 16px auto auto;
  width: min(46%, 290px);
  height: 16px;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 27%, #efbc77 1.5px, transparent 3px),
    radial-gradient(circle at 24% 54%, #a0d1ed 1.5px, transparent 3px),
    radial-gradient(circle at 36% 76%, #df8a93 1.5px, transparent 3px),
    radial-gradient(circle at 50% 85%, #f3c991 2px, transparent 3.5px),
    radial-gradient(circle at 64% 76%, #a5d3ef 1.5px, transparent 3px),
    radial-gradient(circle at 76% 54%, #df8a93 1.5px, transparent 3px),
    radial-gradient(circle at 88% 27%, #efbc77 1.5px, transparent 3px),
    radial-gradient(ellipse 49% 80% at 50% 0, transparent 87%, #8da8bd90 92%, transparent 100%);
}

@media (max-width: 640px) {
  .app-shell #workspace-content .page > .page-heading::before {
    width: 42px;
    height: 42px;
    inset: -13px 1px auto auto;
  }
  .app-shell #workspace-content .workspace-quick-access::after {
    width: min(49%, 164px);
    right: 10px;
  }
}
