/* Holiday look (modules/holiday): November 1 - December 31. Decorations never catch clicks or cover text. */

/* String of lights: a thin strip above the page, repeated as small swags (never over a header or its links) */
.avhol-lights { position: relative; z-index: 99990; pointer-events: none;
  height: clamp(34px, 3.6vw, 50px); background-repeat: repeat-x; background-position: center top; background-size: auto 100%;
  filter: drop-shadow(0 3px 8px rgba(255, 210, 120, .35)); }
body:has(#avpmHome) .avhol-lights { display: none; }   /* the new home page has the ornament garland instead */

/* Light snowfall over the page */
.avhol-snow { position: fixed; inset: 0; z-index: 99989; pointer-events: none; overflow: hidden; }
.avhol-snow i { position: absolute; top: -12px; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .75;
  filter: blur(.6px); animation: avhol-fall 13s linear infinite; }
.avhol-snow i:nth-child(3n) { width: 4px; height: 4px; opacity: .55; animation-duration: 17s; }
.avhol-snow i:nth-child(4n) { width: 9px; height: 9px; opacity: .5; filter: blur(1.4px); animation-duration: 21s; }
.avhol-snow i:nth-child(5n) { animation-name: avhol-fall-sway; }
@keyframes avhol-fall { to { transform: translate3d(30px, 108vh, 0); } }
@keyframes avhol-fall-sway { 50% { transform: translate3d(-40px, 54vh, 0); } to { transform: translate3d(20px, 108vh, 0); } }
.avhol-snow i:nth-child(1) { left: 3%; animation-delay: -1s; }   .avhol-snow i:nth-child(2) { left: 7%; animation-delay: -9s; }
.avhol-snow i:nth-child(3) { left: 11%; animation-delay: -4s; }  .avhol-snow i:nth-child(4) { left: 15%; animation-delay: -12s; }
.avhol-snow i:nth-child(5) { left: 19%; animation-delay: -7s; }  .avhol-snow i:nth-child(6) { left: 23%; animation-delay: -2s; }
.avhol-snow i:nth-child(7) { left: 27%; animation-delay: -15s; } .avhol-snow i:nth-child(8) { left: 31%; animation-delay: -5s; }
.avhol-snow i:nth-child(9) { left: 35%; animation-delay: -11s; } .avhol-snow i:nth-child(10) { left: 39%; animation-delay: -3s; }
.avhol-snow i:nth-child(11) { left: 43%; animation-delay: -8s; } .avhol-snow i:nth-child(12) { left: 47%; animation-delay: -14s; }
.avhol-snow i:nth-child(13) { left: 51%; animation-delay: -6s; } .avhol-snow i:nth-child(14) { left: 55%; animation-delay: -10s; }
.avhol-snow i:nth-child(15) { left: 59%; animation-delay: -1.5s; } .avhol-snow i:nth-child(16) { left: 63%; animation-delay: -13s; }
.avhol-snow i:nth-child(17) { left: 67%; animation-delay: -4.5s; } .avhol-snow i:nth-child(18) { left: 71%; animation-delay: -9.5s; }
.avhol-snow i:nth-child(19) { left: 75%; animation-delay: -2.5s; } .avhol-snow i:nth-child(20) { left: 79%; animation-delay: -16s; }
.avhol-snow i:nth-child(21) { left: 83%; animation-delay: -7.5s; } .avhol-snow i:nth-child(22) { left: 87%; animation-delay: -12.5s; }
.avhol-snow i:nth-child(23) { left: 91%; animation-delay: -5.5s; } .avhol-snow i:nth-child(24) { left: 95%; animation-delay: -10.5s; }
.avhol-snow i:nth-child(25) { left: 98%; animation-delay: -3.5s; } .avhol-snow i:nth-child(26) { left: 13%; animation-delay: -17s; }
.avhol-snow i:nth-child(27) { left: 57%; animation-delay: -18s; } .avhol-snow i:nth-child(28) { left: 85%; animation-delay: -19s; }
@media (max-width: 620px) { .avhol-snow i:nth-child(n+15) { display: none; } }
@media (prefers-reduced-motion: reduce) { .avhol-snow { display: none; } }

/* Snowy gifts along the bottom of the page */
.avhol-ground { pointer-events: none; line-height: 0; margin-top: clamp(-70px, -4vw, -24px); position: relative; z-index: 5; }
.avhol-ground img { width: 100%; height: auto; max-height: 260px; object-fit: cover; object-position: center bottom; display: block; }

/* ---- the new home page (#avpmHome) -------------------------------------------------------------------- */
#avpmHome .avhm-logo-wreath { display: block; width: 64px; height: 64px; flex: none; margin: -10px 0 -10px -4px; }
#avpmHome .avhm-logo-wreath img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
#avpmHome .avhm-hero-card:has(.avhol-av-garland) { margin-top: clamp(40px, 6vw, 70px); padding-top: clamp(84px, 8.4vw, 112px); }
#avpmHome .avhol-av-garland { position: absolute; left: 50%; top: 0; width: min(118%, 900px); height: auto; transform: translate(-50%, -62%);
  pointer-events: none; z-index: 2; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
#avpmHome .avhol-tree { position: absolute; right: max(16px, calc(50% - 620px)); bottom: clamp(20px, 4vw, 56px); width: clamp(260px, 25vw, 380px);
  height: auto; pointer-events: none; z-index: 1; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
#avpmHome .avhol-candy { width: 64px; height: auto; vertical-align: middle; margin-left: 6px; transform: rotate(-8deg); }
#avpmHome .avhol-greeting { display: grid; grid-template-columns: 170px 1fr 230px; align-items: end; gap: 24px; padding: 20px 28px 0; overflow: hidden; }
#avpmHome .avhol-patrick { width: 170px; height: auto; display: block; align-self: end; margin-bottom: -2px; }
#avpmHome .avhol-greeting-text { padding: 24px 0 28px; align-self: center; }
#avpmHome .avhol-greeting-text h2 { margin-bottom: 10px; }
#avpmHome .avhol-greeting-text p:last-child { color: var(--muted); font-size: 16px; line-height: 1.6; }
#avpmHome .avhol-gifts { width: 230px; height: auto; align-self: end; margin-bottom: 14px; }
#avpmHome .avhol-foot-garland { line-height: 0; pointer-events: none; margin: 8px auto -36px; max-width: min(860px, 92vw); position: relative; z-index: 3; }
#avpmHome .avhol-foot-garland img { width: 100%; height: auto; display: block; }
@media (max-width: 1100px) { #avpmHome .avhol-tree { display: none; } }
@media (max-width: 780px) {
  #avpmHome .avhol-greeting { grid-template-columns: 120px 1fr; padding: 16px 18px 0; }
  #avpmHome .avhol-patrick { width: 120px; }
  #avpmHome .avhol-gifts { display: none; }
  #avpmHome .avhm-logo-wreath { width: 54px; height: 54px; }
  #avpmHome .avhol-foot-garland { margin-bottom: -24px; }
}
@media (max-width: 480px) {
  #avpmHome .avhol-greeting { grid-template-columns: 1fr; text-align: center; }
  #avpmHome .avhol-patrick { width: 130px; margin: 0 auto -2px; order: 2; }
  #avpmHome .avhol-greeting-text { padding: 4px 0 8px; }
}

/* Holly pill buttons (Patrick 2026-11-02): the black pill with holly, lights and snow. The ends keep their shape;
   only the plain middle stretches with the label. */
.avhol-pill { background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  border-style: solid !important; border-color: transparent !important; border-width: 0 calc(var(--pill-h, 60px) * .5) !important;
  border-image: url('pill.webp') 0 220 0 240 fill / 0 calc(var(--pill-h, 60px) * 1.16) 0 calc(var(--pill-h, 60px) * 1.26) stretch;
  min-height: var(--pill-h, 60px); padding: 8px calc(var(--pill-h, 60px) * .2) !important; color: #fff !important;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); transition: filter .18s ease, transform .18s ease; }
.avhol-pill:hover, .avhol-pill:focus-visible { filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)) drop-shadow(0 0 14px rgba(255,205,110,.55)); transform: translateY(-1px); }
.avhol-pill svg { color: #ff5a5f; }
#avpmHome .avhm-btns .avhol-pill { --pill-h: 62px; }

/* ---- the landing page with the orbiting tabs (front page) ------------------------------------------------- */
.avpm-landing--holiday .avpm-landing-brand img { filter: drop-shadow(0 28px 34px rgba(0,0,0,.78)) drop-shadow(0 0 46px rgba(255,200,110,.22)); }
.avpm-landing--holiday .avpm-landing-tile { width: 240px; min-height: 0; height: 71px; margin-left: -120px; margin-top: -36px; padding: 0 46px 0 50px;
  border: 0; border-radius: 0; background: url('pill.webp') center / 100% 100% no-repeat; box-shadow: none; backdrop-filter: none;
  align-items: center; text-align: center; gap: 3px; }   /* landing.js sets each tab's filter (depth blur) itself */
.avpm-landing--holiday .avpm-landing-tile span { font-size: 17px; }
.avpm-landing--holiday .avpm-landing-tile small { font-size: 9.5px; letter-spacing: .14em; color: #f3d9a4; }
.avpm-landing--holiday .avpm-landing-tile.is-active { border: 0; box-shadow: none; }
.avpm-landing--holiday .avpm-landing-tile.is-active small { color: #ffd98a; }
/* Falling snow inside the landing page (it sits above the rest of the site), in front of the logo, never catching clicks */
.avpm-landing-snow { position: absolute; inset: 0; z-index: 600; pointer-events: none; overflow: hidden; }
.avpm-landing-snow i { position: absolute; top: -14px; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .8;
  filter: blur(.6px); animation: avhol-fall 12s linear infinite; }
.avpm-landing-snow i:nth-child(3n) { width: 4px; height: 4px; opacity: .6; animation-duration: 16s; }
.avpm-landing-snow i:nth-child(4n) { width: 10px; height: 10px; opacity: .5; filter: blur(1.5px); animation-duration: 20s; }
.avpm-landing-snow i:nth-child(5n) { animation-name: avhol-fall-sway; }
.avpm-landing-snow i:nth-child(1) { left: 0.6%; animation-delay: -3.0s; } .avpm-landing-snow i:nth-child(2) { left: 3.8%; animation-delay: -1.4s; }
.avpm-landing-snow i:nth-child(3) { left: 6.1%; animation-delay: -7.3s; } .avpm-landing-snow i:nth-child(4) { left: 7.6%; animation-delay: -10.1s; }
.avpm-landing-snow i:nth-child(5) { left: 10.1%; animation-delay: -8.7s; } .avpm-landing-snow i:nth-child(6) { left: 12.6%; animation-delay: -1.8s; }
.avpm-landing-snow i:nth-child(7) { left: 15.8%; animation-delay: -16.5s; } .avpm-landing-snow i:nth-child(8) { left: 17.7%; animation-delay: -4.5s; }
.avpm-landing-snow i:nth-child(9) { left: 21.3%; animation-delay: -19.0s; } .avpm-landing-snow i:nth-child(10) { left: 23.7%; animation-delay: -7.9s; }
.avpm-landing-snow i:nth-child(11) { left: 27.0%; animation-delay: -0.9s; } .avpm-landing-snow i:nth-child(12) { left: 29.2%; animation-delay: -5.8s; }
.avpm-landing-snow i:nth-child(13) { left: 30.3%; animation-delay: -2.4s; } .avpm-landing-snow i:nth-child(14) { left: 33.1%; animation-delay: -16.3s; }
.avpm-landing-snow i:nth-child(15) { left: 35.4%; animation-delay: -11.6s; } .avpm-landing-snow i:nth-child(16) { left: 38.8%; animation-delay: -7.4s; }
.avpm-landing-snow i:nth-child(17) { left: 41.1%; animation-delay: -1.3s; } .avpm-landing-snow i:nth-child(18) { left: 42.6%; animation-delay: -4.1s; }
.avpm-landing-snow i:nth-child(19) { left: 46.4%; animation-delay: -8.6s; } .avpm-landing-snow i:nth-child(20) { left: 48.1%; animation-delay: -11.7s; }
.avpm-landing-snow i:nth-child(21) { left: 50.9%; animation-delay: -6.0s; } .avpm-landing-snow i:nth-child(22) { left: 54.1%; animation-delay: -14.0s; }
.avpm-landing-snow i:nth-child(23) { left: 55.5%; animation-delay: -11.5s; } .avpm-landing-snow i:nth-child(24) { left: 58.6%; animation-delay: -17.5s; }
.avpm-landing-snow i:nth-child(25) { left: 61.5%; animation-delay: -5.8s; } .avpm-landing-snow i:nth-child(26) { left: 64.5%; animation-delay: -2.4s; }
.avpm-landing-snow i:nth-child(27) { left: 65.8%; animation-delay: -15.1s; } .avpm-landing-snow i:nth-child(28) { left: 67.8%; animation-delay: -9.8s; }
.avpm-landing-snow i:nth-child(29) { left: 70.1%; animation-delay: -13.4s; } .avpm-landing-snow i:nth-child(30) { left: 74.0%; animation-delay: -11.5s; }
.avpm-landing-snow i:nth-child(31) { left: 76.8%; animation-delay: -6.3s; } .avpm-landing-snow i:nth-child(32) { left: 78.9%; animation-delay: -11.9s; }
.avpm-landing-snow i:nth-child(33) { left: 81.2%; animation-delay: -9.1s; } .avpm-landing-snow i:nth-child(34) { left: 84.2%; animation-delay: -18.9s; }
.avpm-landing-snow i:nth-child(35) { left: 85.9%; animation-delay: -13.3s; } .avpm-landing-snow i:nth-child(36) { left: 87.6%; animation-delay: -14.0s; }
.avpm-landing-snow i:nth-child(37) { left: 91.3%; animation-delay: -19.9s; } .avpm-landing-snow i:nth-child(38) { left: 94.1%; animation-delay: -5.7s; }
.avpm-landing-snow i:nth-child(39) { left: 95.8%; animation-delay: -13.4s; } .avpm-landing-snow i:nth-child(40) { left: 97.5%; animation-delay: -9.2s; }
@media (max-width: 860px) {
  .avpm-landing--holiday .avpm-landing-tile { width: 180px; height: 53px; margin-left: -90px; margin-top: -27px; padding: 0 34px 0 38px; gap: 2px; }
  .avpm-landing--holiday .avpm-landing-tile span { font-size: 13.5px; }
  .avpm-landing--holiday .avpm-landing-tile small { font-size: 7.5px; letter-spacing: .1em; }
  .avpm-landing-snow i:nth-child(n+21) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .avpm-landing-snow { display: none; } }
