/* D · Final: A's homepage (lights on the hero photo + two boxes, gift tag),
   C's roofline lights on every page, a bold "Let it snow" button in the header. */

/* ---------- roofline band: sticks right under the header, opaque, clips its bulbs,
   so lights never sit over page text and never run past the screen edge ---------- */
.bfD-eave{position:sticky;top:64px;z-index:49;height:38px;background:#FFF9EF;overflow:hidden;
  box-shadow:0 1px 0 #EFDDBE,0 10px 16px -12px rgba(67,48,62,.28)}
.bfD-eave-lights{position:absolute;inset:0}
@media (max-width:700px){ .bfD-eave{height:34px} }

/* ---------- the snow button: plum pill, white text, coral mitten — the one dark thing up top ---------- */
.site-header a.brand + .bfD-snow{margin:0 auto 0 22px}
button.bf-snow-btn.bfD-snow,button.bf-snow-btn.bfD-snow:active{position:relative;min-height:48px;padding:0 20px 0 13px;gap:9px;
  background:#43303E;color:#fff;border:2px solid #43303E;border-radius:999px;font:900 17px/1 Nunito,system-ui,sans-serif;
  box-shadow:0 3px 0 #C33A24;letter-spacing:.1px;white-space:nowrap}
button.bf-snow-btn.bfD-snow:hover{background:#5A4351;color:#fff}
button.bf-snow-btn.bfD-snow svg{width:26px;height:26px;background:#fff;border-radius:50%;padding:2px}
button.bf-snow-btn.bfD-snow[aria-pressed="true"]{background:#E8F1F8;color:#43303E;border-color:#43303E;box-shadow:0 3px 0 #637884}
button.bf-snow-btn.bfD-snow:focus-visible{outline:3px solid #4A7292;outline-offset:3px}
/* first-visit cue: two soft wiggles and a pulsing coral ring, plus a handwritten "psst" note, then gone for good */
.bfD-hint-note{position:absolute;left:50%;top:calc(100% + 12px);transform:translateX(-50%) rotate(-3deg);opacity:0;pointer-events:none;
  background:#fff;color:#43303E;font:700 21px/1 Caveat,cursive;padding:7px 12px 8px;border-radius:10px;white-space:nowrap;
  box-shadow:0 6px 16px rgba(67,48,62,.18);transition:opacity .4s}
.bfD-hint-note::before{content:"";position:absolute;left:50%;top:-6px;width:12px;height:12px;background:#fff;transform:translateX(-50%) rotate(45deg)}
.bfD-snow.bf-hint .bfD-hint-note{opacity:1}
.bfD-snow.bf-hint{animation:bfD-wiggle 1.4s ease-in-out 2}
.bfD-snow.bf-hint::after{content:"";position:absolute;inset:-4px;border-radius:999px;border:3px solid #F76856;animation:bfD-ring 1.4s ease-out 2;pointer-events:none}
@keyframes bfD-wiggle{0%,60%,100%{transform:none}15%{transform:rotate(-4deg) scale(1.04)}30%{transform:rotate(3deg) scale(1.04)}45%{transform:rotate(-2deg)}}
@keyframes bfD-ring{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(1.25)}}
@media (prefers-reduced-motion:reduce){
  .bfD-snow.bf-hint{animation:none}
  .bfD-snow.bf-hint::after{animation:none;opacity:1}
  .bfD-hint-note{transition:none}
}
/* Desktop 1025-1399: the full nav already fills the header (the live header wraps to two rows
   below ~1250px), so the same big pill moves down into the roofline band, at its left end,
   and the band grows to 56px there. Only one of the two buttons is ever displayed. */
.bfD-snow--eave{display:none!important}
@media (max-width:1439px) and (min-width:1400px){ button.bf-snow-btn.bfD-snow{padding:0 14px 0 9px;font-size:15px} .site-header a.brand + .bfD-snow{margin-left:14px} }
@media (max-width:1399px) and (min-width:1025px){
  .bfD-snow--hdr{display:none!important}
  .bfD-snow--eave{display:inline-flex!important;position:absolute;left:16px;top:4px;z-index:2}
  .bfD-eave{height:56px}
  .bfD-eave-lights{left:190px}
  .bfD-eave .bfD-hint-note{top:50%;left:calc(100% + 14px);transform:translateY(-50%) rotate(-3deg)}
  .bfD-eave .bfD-hint-note::before{left:-5px;top:50%;transform:translateY(-50%) rotate(45deg)}
}
@media (max-width:1024px){ .site-header a.brand + .bfD-snow{margin:0 14px 0 auto} }
@media (max-width:420px){
  button.bf-snow-btn.bfD-snow{min-height:44px;padding:0 14px 0 8px;font-size:15px;gap:6px}
  button.bf-snow-btn.bfD-snow svg{width:24px;height:24px}
  .site-header a.brand + .bfD-snow{margin-right:10px}
}

/* ---------- gift tag (from A), new words ---------- */
.hero-figure{position:relative}
.bfA-tag{position:absolute;top:-30px;right:-58px;width:150px;height:176px;z-index:5;transform:rotate(6deg);transform-origin:75px 0;
  filter:drop-shadow(0 6px 10px rgba(67,48,62,.16))}
.bfA-tag-shape{position:absolute;inset:0;width:100%;height:100%}
.bfA-twine{position:absolute;width:60px;left:44px;top:-22px;height:56px}
.bfA-tag-body{position:relative;padding:46px 12px 0;text-align:center;color:#43303E}
.bfA-tag-body p{margin:0}
.bfD-num{font:400 54px/1 Chewy,Nunito,sans-serif;color:#43303E;display:flex;align-items:baseline;justify-content:center;gap:5px}
.bfD-unit{font-size:24px}
.bfD-until{font:700 20px/1.05 Caveat,cursive;white-space:nowrap;margin-left:-6px!important;margin-right:-6px!important;color:#C33A24;margin-top:6px!important;transform:rotate(-3deg)}
.bfD-big{font:400 29px/1.02 Chewy,Nunito,sans-serif;color:#C33A24;margin-top:6px!important}
@media (max-width:1180px){ .bfA-tag{right:-14px;top:-34px;transform:rotate(5deg) scale(.9)} }
@media (max-width:700px){ .bfA-tag{right:4px;top:-40px;transform:rotate(5deg) scale(.74);transform-origin:100% 0} }
/* Phones: hang the tag from the top-LEFT of the hero so it stays
   fully on screen and clear of the Need help? button (bottom right). */
@media (max-width:600px){
  .bfA-tag{right:auto;left:10px;top:-18px;
    transform:rotate(-5deg) scale(.85);transform-origin:0 0}
}
@media (max-width:360px){
  .bfA-tag{transform:rotate(-5deg) scale(.78);transform-origin:0 0}
}

/* Christmas Mabel is a <picture>; don't let the wrapper change layout. */
picture.seasonal-mabel{display:contents}

/* In-page anchors: the sticky stack is the header plus the roofline band.
   JS sets the exact value from measured heights; these are the fallbacks. */
html.bf-holiday{scroll-padding-top:105px}
@media (min-width:1025px) and (max-width:1399px){ html.bf-holiday{scroll-padding-top:123px} }
