:root {
  --holiday-red: #c92f46;
  --holiday-red-light: #f04f63;
  --holiday-green: #0f7656;
  --holiday-green-light: #38bb83;
  --holiday-ice: #c9efff;
  --holiday-gold: #f0bd4e;
  --holiday-accent-primary-rgb: 201, 47, 70;
  --holiday-accent-secondary-rgb: 15, 118, 86;
  --holiday-highlight-rgb: 201, 239, 255;
}

body.holiday-theme--march8 {
  --holiday-red: #c72f78;
  --holiday-red-light: #ef639f;
  --holiday-green: #7540a2;
  --holiday-green-light: #a66bd2;
  --holiday-ice: #ffe3ef;
  --holiday-gold: #f1b953;
  --holiday-accent-primary-rgb: 199, 47, 120;
  --holiday-accent-secondary-rgb: 117, 64, 162;
  --holiday-highlight-rgb: 255, 227, 239;
}

body.holiday-theme--may9 {
  --holiday-red: #dc6b08;
  --holiday-red-light: #f09a31;
  --holiday-green: #222;
  --holiday-green-light: #555;
  --holiday-ice: #ffe4b5;
  --holiday-gold: #f1a428;
  --holiday-accent-primary-rgb: 220, 107, 8;
  --holiday-accent-secondary-rgb: 34, 34, 34;
  --holiday-highlight-rgb: 255, 228, 181;
}

body.holiday-theme--independence {
  --holiday-red: #0796a8;
  --holiday-red-light: #f1c64a;
  --holiday-green: #087f91;
  --holiday-green-light: #25bacb;
  --holiday-ice: #d9fbff;
  --holiday-gold: #f1c64a;
  --holiday-accent-primary-rgb: 7, 150, 168;
  --holiday-accent-secondary-rgb: 241, 198, 74;
  --holiday-highlight-rgb: 217, 251, 255;
}

.holiday-theme-decor {
  position: fixed;
  inset: 0;
  z-index: 1001;
  margin: 0 !important;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
  isolation: isolate;
  user-select: none;
}

body.site-menu-lock .holiday-theme-decor { z-index: 1201; }
body.site-menu-lock .holiday-snow { opacity: .28; }
body.site-menu-lock .holiday-santa { opacity: .35; }
body.site-menu-lock .holiday-independence-flag { opacity: 0; }
body.site-menu-lock .holiday-preview-badge { display: none; }

.holiday-snow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: 43px 19px, 137px 89px, 11px 173px;
  background-repeat: repeat;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(245,251,255,.7) 0 1.5px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,.55) 0 .8px, transparent 1.8px);
  opacity: .8;
  transition: opacity .2s ease;
  pointer-events: none;
}

.holiday-snow.snow-1 {
  background-size: 317px 211px, 491px 367px, 239px 397px;
}

.holiday-snow.snow-2 {
  background-size: 457px 331px, 661px 503px, 379px 557px;
}

.holiday-snow.is-rendered {
  background-image: none;
}

.holiday-snow-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.holiday-theme-decor.is-motion-reduced .holiday-snow {
  opacity: .4;
}

.holiday-theme-decor.is-motion-reduced .holiday-garland.garland-4 {
  background-image: url("../img/holiday-theme/garland-4-static.png");
}

.holiday-theme-decor.is-motion-reduced .holiday-garland.garland-8 {
  background-image: url("../img/holiday-theme/garland-8-static.png");
}

.holiday-theme-decor.is-motion-reduced .holiday-garland.garland-10 {
  background-image: url("../img/holiday-theme/garland-10-static.png");
}

.holiday-theme-decor.is-motion-reduced .holiday-garland.may9-1 {
  background-image: url("../img/holiday-theme/may9/may9-1-static.png");
}

.holiday-theme-decor.is-motion-reduced .holiday-garland.may9-2 {
  background-image: url("../img/holiday-theme/may9/may9-2-static.png");
}

.holiday-theme-decor.is-motion-reduced .holiday-garland.may9-3 {
  background-image: url("../img/holiday-theme/may9/may9-3-static.png");
}

.holiday-theme-decor.is-motion-reduced .holiday-santa {
  background-image: url("../img/holiday-theme/santa-static.png");
}

.holiday-garland {
  position: absolute;
  z-index: 3;
  top: var(--holiday-header-bottom, 72px);
  left: 0;
  width: 100%;
  height: 50px;
  background-color: transparent;
  background-position: top center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 7px rgba(3, 20, 37, .3));
  pointer-events: none;
}

.holiday-garland.garland-1 {
  height: 47px;
  background-image: url("../img/holiday-theme/garland-1.png");
  background-repeat: repeat-x;
  background-size: auto 47px;
}

.holiday-garland.garland-2 {
  top: auto;
  bottom: 0;
  height: 136px;
  background-image: url("../img/holiday-theme/garland-2.png");
  background-size: cover;
  filter: drop-shadow(0 -5px 8px rgba(3, 20, 37, .22));
}

.holiday-garland.garland-3 {
  height: 120px;
  background-image: url("../img/holiday-theme/garland-3.png");
  background-size: cover;
}

.holiday-garland.garland-4 {
  height: 30px;
  background-image: url("../img/holiday-theme/garland-4.gif");
  background-repeat: repeat-x;
  background-size: auto 30px;
}

.holiday-garland.garland-8 {
  height: 49px;
  background-image: url("../img/holiday-theme/garland-8.gif");
  background-repeat: repeat-x;
  background-size: auto 49px;
}

.holiday-garland.garland-10 {
  height: 50px;
  background-image: url("../img/holiday-theme/garland-10.gif");
  background-repeat: repeat-x;
  background-size: auto 50px;
}

.holiday-garland.garland-11 {
  height: 88px;
  background-image: url("../img/holiday-theme/garland-11.webp");
  background-size: 100% auto;
}

.holiday-garland.march8-1,
.holiday-garland.march8-2,
.holiday-garland.march8-3,
.holiday-garland.march8-4,
.holiday-garland.may9-1,
.holiday-garland.may9-2,
.holiday-garland.may9-3,
.holiday-garland.may9-4 {
  background-repeat: repeat-x;
  filter: drop-shadow(0 4px 8px rgba(41, 18, 36, .2));
}

.holiday-garland.march8-1 {
  height: 76px;
  background-image: url("../img/holiday-theme/march8/march8-1.png");
  background-size: auto 76px;
}

.holiday-garland.march8-2 {
  height: 64px;
  background-image: url("../img/holiday-theme/march8/march8-2.png");
  background-size: auto 64px;
}

.holiday-garland.march8-3 {
  top: auto;
  bottom: 0;
  height: 92px;
  background-image: url("../img/holiday-theme/march8/march8-3.png");
  background-position: center bottom;
  background-size: auto 92px;
  filter: drop-shadow(0 -5px 9px rgba(41, 18, 36, .18));
}

.holiday-garland.march8-4 {
  top: auto;
  bottom: 0;
  height: 76px;
  background-image: url("../img/holiday-theme/march8/march8-4.png");
  background-position: center bottom;
  background-size: auto 76px;
  filter: drop-shadow(0 -5px 9px rgba(41, 18, 36, .18));
}

.holiday-garland.may9-1,
.holiday-garland.may9-3,
.holiday-garland.may9-4 {
  right: auto;
  background-repeat: no-repeat;
  background-position: left top;
  background-size: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .2));
}

.holiday-garland.may9-1 {
  width: 120px;
  height: 120px;
  background-image: url("../img/holiday-theme/may9/may9-1.gif");
}

.holiday-garland.may9-2 {
  height: 48px;
  background-image: url("../img/holiday-theme/may9/may9-2.gif");
  background-size: auto 48px;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .22));
}

.holiday-garland.may9-3 {
  left: 20px;
  width: 100px;
  height: 241px;
  background-image: url("../img/holiday-theme/may9/may9-3.gif");
}

.holiday-garland.may9-4 {
  width: 63px;
  height: 125px;
  background-image: url("../img/holiday-theme/may9/may9-4.png");
}

.holiday-independence-flag {
  position: absolute;
  z-index: 2;
  display: block;
  aspect-ratio: 16 / 9;
  filter: drop-shadow(0 10px 18px rgba(3, 44, 54, .3));
  opacity: .96;
  transition: opacity .2s ease;
  pointer-events: none;
}

.holiday-independence-flag.independence-flag {
  left: max(0px, env(safe-area-inset-left, 0px));
  bottom: max(0px, env(safe-area-inset-bottom, 0px));
  width: clamp(280px, 26vw, 460px);
  background: url("../img/holiday-theme/independence/flagkz.png") left bottom / contain no-repeat;
}

.holiday-independence-flag.independence-flag-2 {
  top: var(--holiday-header-bottom, 72px);
  left: max(0px, env(safe-area-inset-left, 0px));
  width: clamp(300px, 27vw, 480px);
  background: url("../img/holiday-theme/independence/flagkz2.png") left top / contain no-repeat;
}

.holiday-logo-hat {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: block;
  width: var(--holiday-hat-width, 36px);
  aspect-ratio: 750 / 571;
  background: url("../img/holiday-theme/hat.png") center / contain no-repeat;
  opacity: 0;
  filter: drop-shadow(0 2px 2px rgba(4, 20, 37, .3));
  transform: translate3d(var(--holiday-hat-x, -200px), var(--holiday-hat-y, -200px), 0) rotate(-8deg);
  transform-origin: 72% 88%;
  transition: opacity .12s ease;
  will-change: transform;
  pointer-events: none;
}

.holiday-logo-hat.is-visible { opacity: 1; }

.holiday-santa {
  position: absolute;
  z-index: 4;
  left: max(14px, env(safe-area-inset-left, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  display: block;
  width: clamp(96px, 9vw, 142px);
  aspect-ratio: 1;
  background: url("../img/holiday-theme/santa.gif") center / contain no-repeat;
  filter: drop-shadow(0 8px 12px rgba(3, 20, 37, .28));
  opacity: 1;
  transition: opacity .2s ease;
  pointer-events: none;
}

body.holiday-theme-icons .public-site-nav {
  background:
    linear-gradient(90deg, rgba(var(--holiday-accent-primary-rgb), .075), transparent 28%, transparent 72%, rgba(var(--holiday-accent-secondary-rgb), .09)),
    rgba(7, 29, 52, .97);
  border-bottom-color: rgba(240, 189, 78, .52);
  box-shadow: 0 10px 34px rgba(4, 20, 38, .24), inset 0 -1px 0 rgba(255, 255, 255, .045);
}

body.holiday-theme-icons nav .site-menu-button span,
body.holiday-theme-icons[class*="route-site-"] nav .site-menu-button span {
  background: #fff !important;
}

body.holiday-theme-icons nav .site-menu-button span:first-child,
body.holiday-theme-icons[class*="route-site-"] nav .site-menu-button span:first-child {
  background: var(--holiday-red-light) !important;
}

body.holiday-theme-icons nav .site-menu-button span:last-child,
body.holiday-theme-icons[class*="route-site-"] nav .site-menu-button span:last-child {
  background: var(--holiday-green-light) !important;
}

body.holiday-theme-icons .site-search-toggle {
  position: relative;
  border-color: rgba(var(--holiday-highlight-rgb), .44);
  box-shadow: inset 0 0 18px rgba(var(--holiday-highlight-rgb), .055);
}

body.holiday-theme-icons .site-search-toggle::after {
  content: "✦";
  position: absolute;
  top: -7px;
  right: -5px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 2px solid #0b2542;
  border-radius: 50%;
  color: #fff;
  background: var(--holiday-red);
  font-size: 8px;
  line-height: 1;
  box-shadow: 0 0 10px rgba(240, 79, 99, .55);
}

body.holiday-theme--independence.holiday-theme-icons .site-search-toggle::after {
  content: "☀";
  color: #f6ca49;
  background: #087f91;
  box-shadow: 0 0 10px rgba(37, 186, 203, .48);
}

body.holiday-theme-icons.route-site-index .hero-actions .cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

body.holiday-theme-icons.route-site-index .hero-actions .cta-primary::before {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 40%, currentColor 41% 58%, transparent 59%),
    linear-gradient(0deg, transparent 62%, currentColor 63% 75%, transparent 76%);
  opacity: .82;
}

body.holiday-theme--independence.holiday-theme-icons.route-site-index .hero-actions .cta-primary::before {
  content: "☀";
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 16px;
  line-height: 1;
}

body.holiday-theme-icons .nav-platonus {
  border-color: rgba(var(--holiday-accent-secondary-rgb), .5);
  box-shadow: 0 0 0 2px rgba(var(--holiday-accent-primary-rgb), .13), 0 0 16px rgba(var(--holiday-accent-secondary-rgb), .16);
}

body.holiday-theme-icons .lang-switcher {
  border-color: rgba(240, 189, 78, .38);
  box-shadow: inset 0 0 14px rgba(240, 189, 78, .045);
}

body.holiday-theme-icons .lang-btn.active {
  background: linear-gradient(135deg, #f1be4f, #e4a82b);
}

body.holiday-theme-icons .site-menu-panel {
  background:
    radial-gradient(circle at 8% 8%, rgba(var(--holiday-accent-primary-rgb), .2), transparent 28%),
    radial-gradient(circle at 92% 88%, rgba(var(--holiday-accent-secondary-rgb), .24), transparent 30%),
    #0a3158;
}

.holiday-preview-badge {
  position: fixed;
  z-index: 10090;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  width: min(560px, calc(100vw - 36px));
  padding: 10px 12px;
  color: #fff;
  background: rgba(7, 29, 52, .96);
  border: 1px solid rgba(240, 189, 78, .48);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
  backdrop-filter: blur(16px);
}

.holiday-preview-badge-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--holiday-ice);
  background: rgba(201, 239, 255, .1);
  font-size: 20px;
}

.holiday-preview-badge strong,
.holiday-preview-badge small {
  display: block;
}

.holiday-preview-badge strong { font-size: 12px; }
.holiday-preview-badge small { margin-top: 2px; color: rgba(255, 255, 255, .58); font-size: 10px; }
.holiday-preview-link,
.holiday-preview-close {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.holiday-preview-link:hover,
.holiday-preview-close:hover {
  color: #071d34;
  background: var(--holiday-gold);
  border-color: var(--holiday-gold);
}

.holiday-preview-stop-form { margin: 0; }

@media (max-width: 900px) {
  .holiday-garland.garland-3 {
    height: 32px;
  }

  .holiday-garland.garland-11 {
    height: 55px;
  }
}

@media (max-width: 760px) {
  .holiday-snow {
    opacity: .72;
  }

  .holiday-garland { filter: drop-shadow(0 3px 5px rgba(3, 20, 37, .26)); }

  .holiday-garland.garland-2 {
    height: 82px;
    background-size: auto 100%;
  }

  .holiday-garland.march8-1,
  .holiday-garland.march8-2,
  .holiday-garland.march8-4 {
    height: 52px;
    background-size: auto 52px;
  }

  .holiday-garland.march8-3 {
    height: 68px;
    background-size: auto 68px;
  }

  .holiday-garland.may9-1 {
    width: 84px;
    height: 84px;
  }

  .holiday-garland.may9-2 {
    height: 34px;
    background-size: auto 34px;
  }

  .holiday-garland.may9-3 {
    left: 8px;
    width: 62px;
    height: 150px;
  }

  .holiday-garland.may9-4 {
    width: 50px;
    height: 99px;
  }

  .holiday-independence-flag.independence-flag {
    width: min(250px, 68vw);
    opacity: .92;
  }

  .holiday-independence-flag.independence-flag-2 {
    width: min(230px, 62vw);
    opacity: .92;
  }

  .holiday-santa {
    left: max(8px, env(safe-area-inset-left, 0px));
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    width: 88px;
  }

  .holiday-preview-badge {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    right: 10px;
    top: calc(112px + env(safe-area-inset-top, 0px));
    bottom: auto;
    width: calc(100vw - 20px);
    gap: 8px;
  }
  .holiday-preview-badge-icon { width: 32px; height: 32px; }
  .holiday-preview-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .holiday-snow {
    opacity: .4;
    transition: none;
  }

  .holiday-garland { filter: none; }
  .holiday-garland.garland-4 { background-image: url("../img/holiday-theme/garland-4-static.png"); }
  .holiday-garland.garland-8 { background-image: url("../img/holiday-theme/garland-8-static.png"); }
  .holiday-garland.garland-10 { background-image: url("../img/holiday-theme/garland-10-static.png"); }
  .holiday-garland.may9-1 { background-image: url("../img/holiday-theme/may9/may9-1-static.png"); }
  .holiday-garland.may9-2 { background-image: url("../img/holiday-theme/may9/may9-2-static.png"); }
  .holiday-garland.may9-3 { background-image: url("../img/holiday-theme/may9/may9-3-static.png"); }
  .holiday-santa { background-image: url("../img/holiday-theme/santa-static.png"); }
  .holiday-logo-hat,
  .holiday-santa { transition: none; }
}

@media print {
  .holiday-theme-decor,
  .holiday-preview-badge {
    display: none !important;
  }
}
