/* =========================================================
   BOMBO KAMPANJATEEMA — JOULU
   Talvisävyt, tonttulakki ja luminapit
   ========================================================= */

body.bombo-season-xmas-header {
  --header-color-start: #214568;
  --header-color-end: #112742;
  --header-gradient: linear-gradient(155deg, #244a6e 0%, #153050 62%, #0f233c 100%);
}

body.bombo-season-xmas-snow {
  --bombo-snow-cap-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 13' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='0.55' stop-color='%23f6faff'/%3E%3Cstop offset='0.85' stop-color='%23dfecfa'/%3E%3Cstop offset='1' stop-color='%23c6dcf2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 1.1C10 1.1 16 0.25 26 0.25C34 0.25 37 1.3 45 1.3C54 1.3 61 0.2 73 0.2C84 0.2 89 1.35 98 1.35C107 1.35 114 0.35 124 0.35C133 0.35 137 1.1 144 1.1L144 6.1C138 6.1 135 7.4 128 7.4C121 7.4 119 5.7 112 5.7C106 5.7 105 9.3 99 9.3C93 9.3 92 6.2 85 6.2C77 6.2 73 7.6 65 7.6C57 7.6 54 5.6 46 5.6C39 5.6 38 8.8 32 8.8C26 8.8 25 6.4 18 6.4C12 6.4 9 7.2 5 6.6C2.5 6.25 1.5 6.1 0 6.1Z' transform='translate(0 1.25)' fill='%230a192f' fill-opacity='0.22'/%3E%3Cpath d='M0 1.1C10 1.1 16 0.25 26 0.25C34 0.25 37 1.3 45 1.3C54 1.3 61 0.2 73 0.2C84 0.2 89 1.35 98 1.35C107 1.35 114 0.35 124 0.35C133 0.35 137 1.1 144 1.1L144 6.1C138 6.1 135 7.4 128 7.4C121 7.4 119 5.7 112 5.7C106 5.7 105 9.3 99 9.3C93 9.3 92 6.2 85 6.2C77 6.2 73 7.6 65 7.6C57 7.6 54 5.6 46 5.6C39 5.6 38 8.8 32 8.8C26 8.8 25 6.4 18 6.4C12 6.4 9 7.2 5 6.6C2.5 6.25 1.5 6.1 0 6.1Z' fill='url(%23s)'/%3E%3Cpath d='M0 1.35C10 1.35 16 0.5 26 0.5C34 0.5 37 1.55 45 1.55C54 1.55 61 0.45 73 0.45C84 0.45 89 1.6 98 1.6C107 1.6 114 0.6 124 0.6C133 0.6 137 1.35 144 1.35' fill='none' stroke='%23ffffff' stroke-width='0.85'/%3E%3C/svg%3E");
}

/* =========================================================
   ETUSIVUN JOULUBOMBO-KUVAKE
   ========================================================= */

body.bombo-season-xmas-hero .hero.home .bombo-jouluilme-joulukuvake {
  position: relative;
  top: 10px;
  max-width: none;
}

/* =========================================================
   LOGON TONTTULAKKI (pehmeä SVG-kuvitus)
   ========================================================= */

body.bombo-season-xmas-hat .site-header .header-logo .custom-logo-link {
  position: relative;
  overflow: visible;
}

body.bombo-season-xmas-hat .site-header .custom-logo-link::before {
  position: absolute;
  z-index: 2;
  top: -0.24rem;
  left: -0.4rem;
  width: 2.35rem;
  height: 1.9rem;
  transform: rotate(-8deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 52'%3E%3Cdefs%3E%3ClinearGradient id='hc' x1='0.18' y1='0.05' x2='0.85' y2='0.95'%3E%3Cstop offset='0' stop-color='%23ff6c64'/%3E%3Cstop offset='0.48' stop-color='%23df2d3a'/%3E%3Cstop offset='1' stop-color='%239b1725'/%3E%3C/linearGradient%3E%3ClinearGradient id='hb' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='0.68' stop-color='%23f2f7fd'/%3E%3Cstop offset='1' stop-color='%23cadef2'/%3E%3C/linearGradient%3E%3CradialGradient id='hp' cx='0.36' cy='0.32' r='0.68'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='0.65' stop-color='%23f1f7fd'/%3E%3Cstop offset='1' stop-color='%23c6dbf0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill='%23071222' fill-opacity='0.3' transform='translate(0 1.8)'%3E%3Cpath d='M17 34L20 19C17 18 14 21 13 25L9 25C10 15 18 8 29 7C42 6 52 17 53 33Z'/%3E%3Cpath d='M15 31C25 27 43 25 55 28C59 29 60 35 55 37C43 35 26 37 16 40C11 41 10 33 15 31Z'/%3E%3Ccircle cx='9.5' cy='27.5' r='6.2'/%3E%3C/g%3E%3Cpath d='M17 34L20 19C17 18 14 21 13 25L9 25C10 15 18 8 29 7C42 6 52 17 53 33Z' fill='url(%23hc)'/%3E%3Cpath d='M20 19C23.5 16.8 27 18.2 24.8 24.5C21.6 23.2 19.6 21.2 20 19Z' fill='%236e0d19' fill-opacity='0.26'/%3E%3Ccircle cx='9.5' cy='27.5' r='6.2' fill='url(%23hp)'/%3E%3Cpath d='M15 31C25 27 43 25 55 28C59 29 60 35 55 37C43 35 26 37 16 40C11 41 10 33 15 31Z' fill='url(%23hb)'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  content: "";
}

body.bombo-season-xmas-hat .site-header .custom-logo-link::after {
  content: none;
}

/* =========================================================
   LUMINAPIT (ei venymistä, ei tekstin peittymistä)
   ========================================================= */

body.bombo-season-xmas-snow .bombo-joulunappi-position {
  position: relative;
}

body.bombo-season-xmas-snow .has-bombo-joululumi {
  overflow: visible;
}

body.bombo-season-xmas-snow .bombo-joulunappi-lumi,
body.bombo-season-xmas-snow a.bombo-christmas-button::before {
  position: absolute;
  inset: -3px 0 auto;
  height: 12px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: var(--bombo-snow-cap-svg) center top / 144px 12px repeat-x;
  mask: none;
  -webkit-mask: none;
  z-index: 1;
  pointer-events: none;
}

body.bombo-season-xmas-snow .bombo-joulunappi-lumi--pill {
  inset-inline: 6px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

body.bombo-season-xmas-snow a.bombo-christmas-button::before {
  content: "";
}
