/* Seasonal accents for Essner & Kobin. All rules are scoped under html.holiday
   so the site is unchanged when the date gate (or ?holiday=0) is off. */

html.holiday .holiday-utility-greet::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: .4rem;
  vertical-align: -1px;
  background: currentColor;
  -webkit-mask: url("../images/brand/holiday-snowflake.svg") center / contain no-repeat;
  mask: url("../images/brand/holiday-snowflake.svg") center / contain no-repeat;
}

/* Keep the eyebrow's 28px rule line; sit a snowflake on it without shifting type. */
html.holiday .eyebrow {
  position: relative;
}
html.holiday .eyebrow::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: currentColor;
  -webkit-mask: url("../images/brand/holiday-snowflake.svg") center / contain no-repeat;
  mask: url("../images/brand/holiday-snowflake.svg") center / contain no-repeat;
  pointer-events: none;
}
html.holiday .eyebrow::before {
  visibility: hidden;
}

/* Inner-page greeting sits in existing page-hero top padding (no flow, no shift). */
html.holiday .page-hero .holiday-greet {
  position: absolute;
  z-index: 2;
  top: 1.3rem;
  left: 0;
  right: 0;
  width: min(calc(100% - 2.4rem), var(--container));
  margin: 0 auto;
  color: #fff;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1.3;
}

/* Home: compact greeting in existing hero padding on small screens (top bar note is hidden). */
html.holiday .hero-intro { position: relative; }
html.holiday .holiday-hero-intro-greet,
html.holiday .hero-photo .holiday-greet { display: none; }
@media (max-width: 820px) {
  html.holiday .hero-v2 .hero-v2-grid {
    padding-top: calc(clamp(2.2rem, 4vw, 3.6rem) + 1.35rem);
  }
}
@media (max-width: 820px) {
  html.holiday .holiday-hero-intro-greet {
    display: block;
    position: absolute;
    z-index: 3;
    top: .7rem;
    left: 1.2rem;
    right: 1.2rem;
    margin: 0;
    color: #fff;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .02em;
    line-height: 1.3;
  }
}
html.holiday .hero-photo { position: relative; }

/* Inner pages: show the in-hero greeting only when the top bar note is hidden. */
@media (min-width: 821px) {
  html.holiday .page-hero .holiday-greet { display: none; }
}

html.holiday .holiday-snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Footer: a light row of snowflakes along the existing top edge, inside current padding. */
html.holiday .site-footer {
  position: relative;
}
html.holiday .site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 16px;
  pointer-events: none;
  opacity: .9;
  background-color: #fff;
  -webkit-mask: url("../images/brand/holiday-snowflake.svg") 0 0 / 16px 16px repeat-x;
  mask: url("../images/brand/holiday-snowflake.svg") 0 0 / 16px 16px repeat-x;
  -webkit-mask-size: 40px 16px;
  mask-size: 40px 16px;
}

@media (prefers-reduced-motion: reduce) {
  html.holiday .holiday-snow { display: none !important; }
}

@media print {
  html.holiday .holiday-snow,
  html.holiday .holiday-greet { display: none !important; }
}

@media (max-width: 820px) {
  html.holiday .hero-v2 .eyebrow::after { display: none; }
  html.holiday .hero-v2 .eyebrow::before { visibility: visible; }
}

/* ---- Holiday card (Dec 2026): inclusive of Christmas, Chanukah and Kwanzaa ---- */
html.holiday .hero-photo.has-hcard picture { box-shadow: none; aspect-ratio: 16 / 10.5; background: #0d2236; }
html.holiday .hcard {
  position: relative;
  overflow: hidden;
  padding: 30px 30px .85rem;
  border: 1px solid rgba(240, 207, 122, .45);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 233, 168, .16) 0 9px, transparent 10px),
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, .12) 0 14px, transparent 15px),
    radial-gradient(circle at 72% 30%, rgba(255, 233, 168, .10) 0 6px, transparent 7px),
    radial-gradient(circle at 94% 64%, rgba(255, 233, 168, .12) 0 11px, transparent 12px),
    radial-gradient(circle at 6% 58%, rgba(255, 255, 255, .08) 0 22px, transparent 23px),
    radial-gradient(circle at 52% 6%, rgba(255, 233, 168, .08) 0 26px, transparent 27px),
    radial-gradient(ellipse at 50% 100%, #14365a 0%, #0a1d33 55%, #061424 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}
html.holiday .hcard-frame {
  position: relative;
  z-index: 1;
  padding: 5px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
html.holiday .hcard-scene {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: .6rem;
  margin-top: -2.2rem;
}
html.holiday .hcard-art { display: block; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
html.holiday .hcard-tree { width: clamp(92px, 8.6vw, 124px); justify-self: start; }
html.holiday .hcard-kinara { width: clamp(96px, 8.8vw, 126px); justify-self: end; margin-bottom: .3rem; }
html.holiday .hcard-msg { text-align: center; padding: 2.1rem 0 .2rem; }
html.holiday .hcard-menorah { width: clamp(72px, 6.4vw, 92px); margin: 0 auto .35rem; }
html.holiday .hcard-greet {
  margin: 0;
  color: #fbf6e8;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: clamp(.95rem, 1.15vw, 1.08rem);
  line-height: 1.3;
  letter-spacing: .005em;
}
/* Firm name in the logo blue (#0f75bc), bold. The logo blue is only about 2.5-3.8:1
   on the navy card, so it sits on a small white plate (4.9:1, passes WCAG AA). */
html.holiday .hcard-firm { margin: .45rem 0 0; }
html.holiday .hcard-firm span {
  display: inline-block;
  padding: .22rem .7rem .2rem;
  border-radius: 2px;
  background: #ffffff;
  color: #0f75bc;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
/* Blue and white string lights along the top and both sides (in the card margin, clear of the photo). */
html.holiday .hcard-lights { position: absolute; z-index: 2; pointer-events: none; background-repeat: repeat-x; filter: drop-shadow(0 0 3px rgba(150, 205, 255, .55)); }
html.holiday .hcard-lights-top { top: 0; left: 0; right: 0; height: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='26' viewBox='0 0 64 26'%3E%3Cpath d='M0 3 Q16 13 32 3 Q48 13 64 3' fill='none' stroke='%23c9d6e2' stroke-opacity='.7' stroke-width='1.2'/%3E%3Crect x='14.2' y='7' width='3.6' height='3.4' rx='.6' fill='%23c9d6e2'/%3E%3Cellipse cx='16' cy='15.2' rx='3.6' ry='5.4' fill='%235fb4ff'/%3E%3Cellipse cx='15' cy='13.6' rx='1.1' ry='2' fill='%23ffffff' fill-opacity='.7'/%3E%3Crect x='46.2' y='7' width='3.6' height='3.4' rx='.6' fill='%23c9d6e2'/%3E%3Cellipse cx='48' cy='15.2' rx='3.6' ry='5.4' fill='%23ffffff'/%3E%3Cellipse cx='47' cy='13.6' rx='1.1' ry='2' fill='%23dff0ff'/%3E%3C/svg%3E"); background-position: 8px 0; }
html.holiday .hcard-lights-left,
html.holiday .hcard-lights-right { top: 22px; bottom: 34%; width: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='64' viewBox='0 0 26 64'%3E%3Cpath d='M3 0 Q13 16 3 32 Q13 48 3 64' fill='none' stroke='%23c9d6e2' stroke-opacity='.7' stroke-width='1.2'/%3E%3Crect x='7' y='14.2' width='3.4' height='3.6' rx='.6' fill='%23c9d6e2'/%3E%3Cellipse cx='15.2' cy='16' rx='5.4' ry='3.6' fill='%23ffffff'/%3E%3Cellipse cx='13.6' cy='15' rx='2' ry='1.1' fill='%23dff0ff'/%3E%3Crect x='7' y='46.2' width='3.4' height='3.6' rx='.6' fill='%23c9d6e2'/%3E%3Cellipse cx='15.2' cy='48' rx='5.4' ry='3.6' fill='%235fb4ff'/%3E%3Cellipse cx='13.6' cy='47' rx='2' ry='1.1' fill='%23ffffff' fill-opacity='.7'/%3E%3C/svg%3E"); background-repeat: repeat-y; }
html.holiday .hcard-lights-left { left: 0; }
html.holiday .hcard-lights-right { right: 0; transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  html.holiday .hcard-lights { animation: hcard-twinkle 3.2s ease-in-out infinite alternate; }
  html.holiday .hcard-lights-left { animation-delay: -1.1s; }
  html.holiday .hcard-lights-right { animation-delay: -2.2s; }
}
@keyframes hcard-twinkle {
  from { filter: drop-shadow(0 0 2px rgba(150, 205, 255, .35)); opacity: .88; }
  to { filter: drop-shadow(0 0 6px rgba(170, 215, 255, .8)); opacity: 1; }
}
html.holiday .hero-photo.has-hcard figcaption { margin-top: .7rem; }
html.holiday .hcard .holiday-snow { z-index: 2; }
@media (max-width: 820px) {
  html.holiday .hero-photo.has-hcard picture { aspect-ratio: 16 / 9; }
  html.holiday .hcard { padding: 24px 22px .75rem; }
  html.holiday .hcard-lights-top { height: 22px; background-size: 54px 22px; }
  html.holiday .hcard-lights-left, html.holiday .hcard-lights-right { width: 20px; background-size: 20px 50px; top: 18px; }
  html.holiday .hcard-scene { margin-top: -1.4rem; gap: .3rem; }
  html.holiday .hcard-msg { padding-top: 1.4rem; }
  html.holiday .hcard-tree { width: 78px; }
  html.holiday .hcard-kinara { width: 84px; }
  html.holiday .hcard-menorah { width: 58px; margin-bottom: .2rem; }
  html.holiday .hcard-greet { font-size: .86rem; }
  html.holiday .hcard-firm span { font-size: .68rem; letter-spacing: .1em; }
}
@media (max-width: 380px) {
  html.holiday .hcard-tree { width: 64px; }
  html.holiday .hcard-kinara { width: 70px; }
  html.holiday .hcard-greet { font-size: .8rem; }
}
@media (forced-colors: active) {
  html.holiday .hcard { border: 1px solid CanvasText; }
  html.holiday .hcard-lights { display: none; }
  html.holiday .hcard-firm span { border: 1px solid CanvasText; }
}
@media print {
  html.holiday .hcard-scene, html.holiday .hcard-lights { display: none !important; }
}
