/* Christmas overlay: falling snowflakes and santa hats drawn on a full-viewport
   canvas. Fixed + pointer-events: none keeps it click-through on desktop and
   touch-scrollable on mobile; it never blocks the page. */
#xmas-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Teaser between the logo and the menu (hamburger on mobile). Absolutely
   positioned inside .u-sheet, which is already position: relative, so the logo
   and menu keep the margins the page CSS gives them. christmas.js sets left and
   right from the logo's and the menu's own edges; the values here are the
   fallback for a page whose script never runs. The text may shrink, the button
   never does, so the button cannot end up over the hamburger. Colours are the
   ones the rest of the site uses, so both states clear 4.5:1 on the white
   header. */
.xmas-teaser {
  position: absolute;
  left: 106px;
  right: 640px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.888889rem;
  font-weight: 700;
  color: #376f9e;
}
.xmas-teaser-text {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.xmas-teaser-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  background-color: #376f9e;
  color: #ffffff;
  cursor: pointer;
}
.xmas-teaser-btn:hover {
  background-color: #2f628a;
}
.xmas-teaser.xmas-grinch {
  color: #356b2b;
}
.xmas-teaser.xmas-grinch .xmas-teaser-btn {
  background-color: #356b2b;
}
.xmas-teaser.xmas-grinch .xmas-teaser-btn:hover {
  background-color: #2b5723;
}
@media (max-width: 991px) {
  .xmas-teaser {
    right: 60px;
  }
}
@media (max-width: 575px) {
  /* Narrow screens: the text sits above the button instead of beside it, and
     both shrink. The gap between logo and hamburger is too small for one row
     with the longer "Återgå till julen" label. */
  .xmas-teaser {
    left: 92px;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
  }
  .xmas-teaser-text {
    white-space: nowrap;
  }
  .xmas-teaser-btn {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
}
