/* Christmas theme v2 — bolder festive look, easy to remove in January.
   All rules are scoped to html.theme-christmas. To switch the theme off:
   remove the theme-christmas class, this stylesheet link, the seasonal
   banner markup, and this file. No other CSS or JS depends on it.
   Lightweight: CSS and SVG data URIs only, no JavaScript. */

.theme-christmas {
  --xmas-green: #0F3D2A;
  --xmas-green-mid: #1E5A44;
  --xmas-red: #7A1C28;
  --xmas-red-deep: #5C101A;
  --xmas-gold: #E0B65A;
  --xmas-cream: #FFF8EE;
  --xmas-ink: #14281F;
  --el-xmas-holly: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' aria-hidden='true'%3E%3Cpath fill='%230F3D2A' d='M8 18c-4-1-6-6-5-10 4 1 7 3 9 7-3 0-4 2-4 3z'/%3E%3Cpath fill='%231E5A44' d='M24 18c4-1 6-6 5-10-4 1-7 3-9 7 3 0 4 2 4 3z'/%3E%3Cpath fill='%230F3D2A' d='M16 8c1-4 6-6 10-5-1 4-3 7-7 9 0-3-2-4-3-4z'/%3E%3Ccircle cx='15' cy='20.5' r='2.2' fill='%23B12332'/%3E%3Ccircle cx='18.6' cy='19.5' r='1.9' fill='%237A1C28'/%3E%3Ccircle cx='16.6' cy='23.2' r='1.8' fill='%23C42B3A'/%3E%3C/svg%3E");
  --el-xmas-bauble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' aria-hidden='true'%3E%3Crect x='14' y='3' width='4' height='4' rx='0.6' fill='%23E0B65A'/%3E%3Cpath d='M12 7h8l-1 3h-6z' fill='%23E0B65A'/%3E%3Ccircle cx='16' cy='19' r='10' fill='%237A1C28'/%3E%3Ccircle cx='16' cy='19' r='10' fill='none' stroke='%23E0B65A' stroke-width='1.4'/%3E%3Cpath d='M16 9.2c-2.2 2.4-3.4 5.2-3.4 8.2 0 1.6.4 3.2 1 4.6' fill='none' stroke='%23FFF8EE' stroke-width='1.2' stroke-linecap='round' opacity='0.55'/%3E%3C/svg%3E");
  --el-xmas-lights: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 18' aria-hidden='true'%3E%3Cpath d='M0 4 Q20 10 40 4 T80 4' fill='none' stroke='%23222222' stroke-width='1.15'/%3E%3Crect x='8.2' y='4.2' width='3.6' height='2.2' fill='%23E0B65A'/%3E%3Ccircle cx='10' cy='10.2' r='3.6' fill='%23E23B3B'/%3E%3Crect x='28.2' y='5' width='3.6' height='2.2' fill='%23E0B65A'/%3E%3Ccircle cx='30' cy='11' r='3.6' fill='%23F0D56A'/%3E%3Crect x='48.2' y='4.2' width='3.6' height='2.2' fill='%23E0B65A'/%3E%3Ccircle cx='50' cy='10.2' r='3.6' fill='%232E9A5B'/%3E%3Crect x='68.2' y='5' width='3.6' height='2.2' fill='%23E0B65A'/%3E%3Ccircle cx='70' cy='11' r='3.6' fill='%23FFF6D8'/%3E%3C/svg%3E");
}

/* Bolder red-and-green banner. Real text in the HTML for accessibility.
   Holly on the left, a bauble on the right, sitting in the side padding. */
.theme-christmas .el-xmas-banner {
  position: relative;
  z-index: 15;
  margin: 0;
  padding: 0.7rem 3.1rem;
  background:
    linear-gradient(90deg, var(--xmas-green) 0%, var(--xmas-red-deep) 16%, var(--xmas-red) 50%, var(--xmas-red-deep) 84%, var(--xmas-green) 100%);
  color: var(--xmas-cream);
  text-align: center;
  overflow: hidden;
  border-bottom: 2px solid var(--xmas-gold);
}

.theme-christmas .el-xmas-banner p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 44rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--xmas-cream);
  letter-spacing: 0.01em;
}

.theme-christmas .el-xmas-banner::before,
.theme-christmas .el-xmas-banner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.85rem;
  height: 1.85rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.theme-christmas .el-xmas-banner::before {
  left: 0.7rem;
  background: var(--el-xmas-holly) no-repeat center / contain;
}

.theme-christmas .el-xmas-banner::after {
  right: 0.7rem;
  background: var(--el-xmas-bauble) no-repeat center / contain;
}

/* String of fairy lights along the top of the header. */
.theme-christmas .site-header {
  position: relative;
  padding-top: 0.9rem;
  background-clip: padding-box;
}

.theme-christmas .site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background-image: var(--el-xmas-lights);
  background-repeat: repeat-x;
  background-position: top left;
  background-size: 80px 16px;
  pointer-events: none;
  z-index: 6;
  animation: el-xmas-twinkle 1.8s ease-in-out infinite alternate;
}

/* Gold-and-green ribbon under the header, below the lights. */
.theme-christmas .site-header::after {
  content: "";
  display: block;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--xmas-green) 0 16px,
    var(--xmas-gold) 16px 24px,
    var(--xmas-red) 24px 32px,
    var(--xmas-gold) 32px 40px
  );
  pointer-events: none;
}

@keyframes el-xmas-twinkle {
  from { filter: brightness(1); }
  to { filter: brightness(1.45); }
}

@media (max-width: 379px) {
  .theme-christmas .el-xmas-banner { padding-inline: 2.3rem; }
  .theme-christmas .el-xmas-banner p { font-size: 0.98rem; }
  .theme-christmas .el-xmas-banner::before,
  .theme-christmas .el-xmas-banner::after {
    width: 1.25rem;
    height: 1.25rem;
  }
  .theme-christmas .el-xmas-banner::before { left: 0.35rem; }
  .theme-christmas .el-xmas-banner::after { right: 0.35rem; }
}

/* More visible snowfall in the hero only, behind the text.
   Pages without a hero have no snow. pointer-events none so links stay usable. */
.theme-christmas .hero {
  position: relative;
  overflow: hidden;
  --el-xmas-snow:
    radial-gradient(2.6px 2.6px at 8% 14%, rgb(255 255 255 / 95%), transparent 70%),
    radial-gradient(3.2px 3.2px at 22% 58%, rgb(255 255 255 / 90%), transparent 70%),
    radial-gradient(2px 2px at 36% 28%, rgb(255 255 255 / 85%), transparent 70%),
    radial-gradient(3.6px 3.6px at 48% 76%, rgb(255 255 255 / 92%), transparent 70%),
    radial-gradient(2.2px 2.2px at 61% 18%, rgb(255 255 255 / 88%), transparent 70%),
    radial-gradient(3px 3px at 74% 64%, rgb(255 255 255 / 90%), transparent 70%),
    radial-gradient(2.4px 2.4px at 86% 36%, rgb(255 255 255 / 86%), transparent 70%),
    radial-gradient(3.4px 3.4px at 94% 82%, rgb(255 255 255 / 80%), transparent 70%),
    radial-gradient(2px 2px at 12% 88%, rgb(255 255 255 / 85%), transparent 70%),
    radial-gradient(2.8px 2.8px at 40% 8%, rgb(255 255 255 / 90%), transparent 70%),
    radial-gradient(1.8px 1.8px at 68% 92%, rgb(255 255 255 / 80%), transparent 70%),
    radial-gradient(3px 3px at 16% 42%, rgb(255 255 255 / 88%), transparent 70%);
}

.theme-christmas .hero > .wrap {
  position: relative;
  z-index: 1;
}

.theme-christmas .hero::before,
.theme-christmas .hero::after {
  content: "";
  position: absolute;
  inset: -25% 0 0 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--el-xmas-snow);
  background-size: 180px 180px;
  opacity: 0.8;
  animation: el-xmas-snow 16s linear infinite;
}

.theme-christmas .hero::after {
  background-size: 120px 120px;
  opacity: 0.55;
  animation-duration: 26s;
  animation-direction: reverse;
}

@keyframes el-xmas-snow {
  from { transform: translateY(0); }
  to { transform: translateY(180px); }
}

/* Snow-capped tops on main buttons. Use ::before, not background-image:
   Engage Local .btn fills are linear-gradients, and setting background-image
   was wiping them (white text on a transparent header button). .btn-lg
   already uses ::after for its arrow. pointer-events none. Do not replace
   box-shadow, so existing button shadows stay. */
.theme-christmas .btn,
.theme-christmas .btn-orange,
.theme-christmas .nav-cta {
  position: relative;
}

.theme-christmas .btn::before,
.theme-christmas .btn-orange::before,
.theme-christmas .nav-cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0.7rem;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    radial-gradient(closest-side at 18% 0, rgb(255 255 255 / 95%) 0 5px, transparent 6px),
    radial-gradient(closest-side at 50% -2px, rgb(255 255 255 / 95%) 0 6px, transparent 7px),
    radial-gradient(closest-side at 82% 0, rgb(255 255 255 / 95%) 0 5px, transparent 6px);
  background-repeat: no-repeat;
}

/* Small bauble beside main section headings. */
.theme-christmas main h2::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.4rem;
  background: var(--el-xmas-bauble) no-repeat center / contain;
  vertical-align: -0.08em;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .theme-christmas .hero::before,
  .theme-christmas .hero::after,
  .theme-christmas .site-header::before {
    animation: none;
  }
}

/* Keep the skip link above the seasonal banner. */
.theme-christmas .skip:focus { z-index: 100; }

/* Slightly frosted header so the lights and wordmark holly stay clear. */
.theme-christmas .site-header {
  background: rgb(255 250 244 / 94%);
  border-bottom: 0;
}

.theme-christmas .wordmark {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.theme-christmas .wordmark::before {
  content: "";
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.35rem;
  background: var(--el-xmas-holly) no-repeat center / contain;
  pointer-events: none;
}

@media (max-width: 379px) {
  .theme-christmas .wordmark::before { display: none; }
}

/* Festive touch on the home hero: a soft red-and-green frost, and a gold
   edge on the hero copy, sitting behind the text (wrap is z-index 1). */
.theme-christmas .hero.dir-hero,
.theme-christmas .dir-hero {
  box-shadow:
    inset 0 0 0 3px rgb(224 182 90 / 0.45),
    inset 0 80px 80px rgb(122 28 40 / 0.22),
    inset 0 -80px 80px rgb(15 61 42 / 0.28);
}

.theme-christmas .dir-hero .hero-text {
  position: relative;
  z-index: 1;
}
