.advent-shell{--advent-bg:#122a25;--advent-accent:#d7ad58;--advent-background-image:none;
  background:linear-gradient(170deg,var(--ncadcal-palette-bg,rgba(13,30,26,.87)),var(--ncadcal-palette-bg,rgba(22,54,45,.82))),var(--advent-background-image),var(--advent-bg);
  background-position:center;background-size:cover;color:#fbf8ed;border-radius:1rem;overflow:hidden;position:relative;
  isolation:isolate;min-height:650px;box-shadow:0 12px 35px rgba(0,0,0,.1)}
.advent-shell::before{content:"";position:absolute;inset:0;opacity:.12;pointer-events:none;
  background-image:radial-gradient(circle at 15% 12%,#fff 0 1px,transparent 2px),radial-gradient(circle at 67% 22%,#fff 0 1px,transparent 2px);
  background-size:137px 191px,161px 207px}
.advent-shell .advent-overlay{position:relative;max-width:1260px;margin:0 auto;padding:3.3rem clamp(1rem,4vw,4rem) 2.5rem}
.advent-head{text-align:center;max-width:750px;margin:0 auto 2.8rem}
.advent-head .advent-eyebrow{letter-spacing:.23em;text-transform:uppercase;color:#f0d99d;font-size:.78rem;font-weight:700}
.advent-head h1{font-size:clamp(2rem,5vw,4rem);line-height:1.15;letter-spacing:-.03em;color:#fff8df;margin:.7rem 0 1rem;font-weight:700}
.advent-head p{font-size:clamp(1rem,2.2vw,1.25rem);color:#f5ebd7}
.advent-flourish{display:flex;justify-content:center;align-items:center;gap:1rem;color:var(--advent-accent);margin:1.5rem auto}
.advent-flourish span{display:block;width:80px;height:1px;background:linear-gradient(90deg,transparent,var(--advent-accent))}
.advent-flourish span:last-child{transform:rotate(180deg)}
.advent-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(.6rem,2vw,1.4rem)}
.advent-door{appearance:none;display:block;position:relative;aspect-ratio:1/.94;border:2px solid var(--ncadcal-palette-accent,rgba(249,219,151,.9));
 border-radius:10px;background:linear-gradient(145deg,rgba(38,85,67,.98),rgba(15,47,39,.98));color:#ffe7aa;
 box-shadow:inset 0 0 0 4px rgba(246,221,169,.12),0 4px 11px rgba(0,0,0,.18);padding:7px;
 transition:transform .23s ease,box-shadow .23s ease;min-width:0}
.advent-door-inner{height:100%;border:1px dashed rgba(242,215,152,.36);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.7rem;border-radius:5px}
.advent-door-number{font-size:clamp(1.6rem,4vw,3.5rem);line-height:1;font-family:Georgia,"Times New Roman",serif;font-weight:bold}
.advent-door-bottom{font-size:clamp(.8rem,1.3vw,1.1rem);opacity:.85}
.advent-door.is-locked{cursor:default;filter:saturate(.65);opacity:.8}
.advent-door.is-unlocked{cursor:pointer;background:linear-gradient(145deg,rgba(74,111,77,.95),rgba(24,65,51,.98))}
.advent-door.is-unlocked:hover,.advent-door.is-unlocked:focus-visible{transform:translateY(-4px) scale(1.03);box-shadow:inset 0 0 0 4px rgba(246,221,169,.25),0 10px 25px rgba(0,0,0,.35);outline:2px solid #fff2c4;outline-offset:3px}
.advent-foot{text-align:center;margin:2.2rem auto 0}.advent-foot p{color:#ebdec7;font-size:.92rem}
.advent-gallery-link{display:inline-block;border:1px solid var(--advent-accent);border-radius:100px;padding:.65rem 1.3rem;color:#fff2cc;text-decoration:none}
.advent-gallery-link:hover,.advent-gallery-link:focus-visible{background:var(--advent-accent);color:#192b26}
/* A selected image is the actual calendar surface, not a tinted illustration. */
.advent-shell--has-image{background:var(--advent-background-image) center / cover no-repeat var(--advent-bg)}
.advent-shell--has-image::before{display:none}
.advent-shell--has-image .advent-door,.advent-shell--has-image .advent-door.is-unlocked{background:transparent;border:2px solid #202020;border-radius:4px;box-shadow:none;color:#1e5e1c}
.advent-shell--has-image .advent-door-inner{border:0;gap:.35rem}
.advent-shell--has-image .advent-door-number,.advent-shell--has-image .advent-door-bottom{text-shadow:-1px -1px 0 #fff,1px -1px 0 #fff,-1px 1px 0 #fff,1px 1px 0 #fff,0 0 4px #fff}
.advent-shell--has-image .advent-door.is-locked{filter:none;opacity:1}
.advent-shell--has-image .advent-door.is-unlocked:hover,.advent-shell--has-image .advent-door.is-unlocked:focus-visible{background:rgba(0,0,0,.25);box-shadow:none}
.advent-shell--has-image .advent-head h1,.advent-shell--has-image .advent-head p:not(.advent-preview-banner),.advent-shell--has-image .advent-eyebrow,.advent-shell--has-image .advent-continue button{text-shadow:0 1px 3px #000,0 0 6px #000}
/* Full-viewport reveal: media is the focal point, without a white dialog frame. */
.advent-dialog{--advent-stage-top:max(3.5rem,env(safe-area-inset-top,0px));--advent-stage-bottom:max(1rem,env(safe-area-inset-bottom,0px));
 --advent-stage-side:max(1rem,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));
 --advent-stage-media-height:calc(100vh - var(--advent-stage-top) - var(--advent-stage-bottom));
 position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100vh;max-height:none;padding:0;border:0;border-radius:0;
 background:transparent;color:#fff;box-shadow:none;overflow:hidden;box-sizing:border-box}
@supports(height:100dvh){.advent-dialog{height:100dvh;--advent-stage-media-height:calc(100dvh - var(--advent-stage-top) - var(--advent-stage-bottom))}}
.advent-dialog::backdrop{background:rgba(0,0,0,.8)}
body.advent-standalone:has(.advent-dialog[open]){overflow:hidden}
.advent-dialog-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0;padding:0;border:0}
.advent-dialog-body{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;width:100%;height:100%;overflow:auto;
 position:relative;padding:var(--advent-stage-top) var(--advent-stage-side) var(--advent-stage-bottom);overscroll-behavior:contain;text-align:center}
.advent-close{position:absolute;top:max(.75rem,env(safe-area-inset-top,0px));right:max(.75rem,env(safe-area-inset-right,0px));z-index:5;
 display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;
 background:rgba(0,0,0,.62);color:#fff;font-size:40px;line-height:1;cursor:pointer}
.advent-close > .fa-circle-xmark{display:block;width:1em;height:1em;line-height:1;font-size:inherit;text-align:center;pointer-events:none}
.advent-close:hover,.advent-close:focus-visible{background:#fff;color:#151515;outline:2px solid #d7ad58;outline-offset:2px}
.advent-reveal{box-sizing:border-box;text-align:center;max-width:100%;overflow-wrap:anywhere;flex:0 0 auto;margin:auto 0}
.advent-reveal--media{width:100%;min-width:0}
.advent-reveal--text{width:min(100%,720px);padding:clamp(1rem,4vw,2rem);border-radius:.75rem;background:rgba(255,255,255,.92);color:#18241e}
.advent-reveal .advent-content-title{margin:.1rem 0 1.2rem;font-size:clamp(1.3rem,3vw,1.75rem)}
.advent-reveal .advent-content-text{text-align:left;line-height:1.7;max-width:70ch;margin:0 auto}
.advent-reveal--text a{color:#174d80}
.advent-reveal img,.advent-reveal video{display:block;width:auto;height:auto;max-width:100%;max-height:var(--advent-stage-media-height);object-fit:contain;margin:0 auto}
.advent-reveal .advent-slides{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;align-items:center;width:100%;padding-bottom:.25rem}
.advent-reveal .advent-slides img{max-width:100%;max-height:calc(var(--advent-stage-media-height) - 1.5rem);flex:0 0 auto;scroll-snap-align:center;margin:0 auto}
/* Delay the entrance until the first visible media frame is available. */
.advent-dialog-body.is-preparing .advent-reveal{visibility:hidden;animation:none!important}
.advent-loading{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;color:#fff}
.advent-animation-fade{animation:adventFade .85s ease both}.advent-animation-zoom{animation:adventZoom 1s cubic-bezier(.2,.7,.3,1) both}
.advent-animation-slide{animation:adventSlide .95s cubic-bezier(.2,.7,.3,1) both}.advent-animation-flip{animation:adventFlip 1.05s ease both}
.advent-animation-bounce{animation:adventBounce 1.1s ease both}
@keyframes adventFade{from{opacity:0}to{opacity:1}}@keyframes adventZoom{from{opacity:0;transform:scale(.65)}to{opacity:1;transform:scale(1)}}
@keyframes adventSlide{from{opacity:0;transform:translateY(clamp(70px,18vh,150px))}to{opacity:1;transform:translateY(0)}}
@keyframes adventFlip{from{opacity:0;transform:perspective(1600px) rotateY(-78deg)}to{opacity:1;transform:perspective(1600px) rotateY(0)}}
@keyframes adventBounce{0%{opacity:0;transform:scale(.55)}55%{opacity:1;transform:scale(1.07)}75%{transform:scale(.96)}100%{transform:scale(1)}}
.advent-social-page{background:var(--bs-body-bg,#fff)}.advent-social-kicker{letter-spacing:.2em;font-weight:700;color:var(--bs-secondary-color,#777)}
.advent-social-card{overflow:hidden;border:1px solid var(--bs-border-color,#ddd);border-radius:1rem;background:var(--bs-body-bg,#fff);box-shadow:0 5px 24px rgba(0,0,0,.05)}
.advent-social-card-media{background:transparent;display:flex;align-items:center;justify-content:center;min-height:210px;overflow:hidden}
.advent-social-thumb{display:block;width:100%;height:240px;object-fit:contain;background:transparent}
.advent-social-card-media .advent-social-thumb{height:240px}
.advent-social-card video{display:block;width:100%;max-height:410px;object-fit:contain}.advent-social-card-body{padding:1.2rem}
@media(max-width:900px){.advent-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:500px){.advent-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}.advent-shell .advent-overlay{padding:2.25rem .8rem 1.9rem}.advent-head{margin-bottom:2rem}.advent-door-number{font-size:2rem}.advent-dialog{--advent-stage-side:max(.5rem,env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))}}
@media(prefers-reduced-motion:reduce){.advent-door,.advent-reveal{animation:none!important;transition:none!important}}

/* Standalone entry: no theme shell, no outer spacing or decorative card edge. */
body.advent-standalone{margin:0;min-height:100vh;min-height:100svh;background:#122a25}
.advent-standalone .advent-shell{min-height:100vh;min-height:100svh;border-radius:0;box-shadow:none;display:flex;flex-direction:column;justify-content:center}
.advent-standalone .advent-overlay{width:100%;max-width:1160px;padding:clamp(1rem,4vh,3rem) clamp(.8rem,4vw,3rem);}
.advent-standalone .advent-head{margin-bottom:clamp(1rem,3vh,2rem)}
.advent-standalone .advent-head h1{font-size:clamp(2rem,5vw,3.4rem)}
.advent-standalone .advent-flourish{margin:clamp(.65rem,2vh,1.2rem) auto}
@media(min-width:1050px){.advent-standalone .advent-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}

/* Visible only in the authenticated calendar preview. */
.advent-head .advent-preview-banner{display:inline-block;margin:0 auto .85rem;padding:.55rem .9rem;border:1px solid #e6bd63;border-radius:.55rem;background:#322b13;color:#fff1bb;font-size:.85rem;line-height:1.4}

@media(max-width:640px){.advent-close{width:42px;height:42px;font-size:38px}}

/* Keep the ordinary website accessible even before the first door is released. */
.advent-continue[hidden]{display:none!important}
.advent-continue{text-align:center;margin:0 auto 1rem;padding:0 .8rem;position:relative}
.advent-continue button{border:1px solid var(--advent-accent);border-radius:999px;background:transparent;color:#fff2cc;padding:.45rem .9rem;font:inherit;font-size:.875rem;cursor:pointer}
.advent-continue button:hover,.advent-continue button:focus-visible{background:var(--advent-accent);color:#192b26;outline-offset:3px}

/* Optional calendar text palette. Do not style the reveal, countdown panel or page peel. */
.advent-shell--custom-font .advent-head h1,
.advent-shell--custom-font .advent-head p:not(.advent-preview-banner),
.advent-shell--custom-font .advent-eyebrow,
.advent-shell--custom-font .advent-door,
.advent-shell--custom-font .advent-door.is-unlocked{color:var(--advent-font)}
.advent-shell--custom-font .advent-door.is-locked,
.advent-shell--custom-active-font .advent-door.is-current-day{filter:none;opacity:1}
.advent-shell--custom-font .advent-door-bottom,
.advent-shell--custom-active-font .advent-door.is-current-day .advent-door-bottom{opacity:1}
.advent-shell--custom-active-font .advent-door.is-current-day{color:var(--advent-active-font)}
.advent-shell--has-image.advent-shell--custom-font .advent-head h1,
.advent-shell--has-image.advent-shell--custom-font .advent-head p:not(.advent-preview-banner),
.advent-shell--has-image.advent-shell--custom-font .advent-eyebrow,
.advent-shell--has-image.advent-shell--custom-font .advent-door-number,
.advent-shell--has-image.advent-shell--custom-font .advent-door-bottom{ text-shadow:-1px -1px 0 var(--advent-font-outline),1px -1px 0 var(--advent-font-outline),-1px 1px 0 var(--advent-font-outline),1px 1px 0 var(--advent-font-outline) }
.advent-shell--has-image.advent-shell--custom-active-font .advent-door.is-current-day .advent-door-number,
.advent-shell--has-image.advent-shell--custom-active-font .advent-door.is-current-day .advent-door-bottom{ text-shadow:-1px -1px 0 var(--advent-active-outline),1px -1px 0 var(--advent-active-outline),-1px 1px 0 var(--advent-active-outline),1px 1px 0 var(--advent-active-outline) }

.advent-shell:not(.advent-shell--has-image) .advent-door{background:linear-gradient(145deg,var(--ncadcal-palette-bg,rgba(38,85,67,.98)),var(--ncadcal-palette-bg,rgba(15,47,39,.98)))}
.advent-shell:not(.advent-shell--has-image) .advent-door.is-unlocked{background:linear-gradient(145deg,var(--ncadcal-palette-bg,rgba(74,111,77,.95)),var(--ncadcal-palette-bg,rgba(24,65,51,.98)))}
.advent-shell:not(.advent-shell--has-image):not(.advent-shell--custom-font) .advent-head h1{color:var(--ncadcal-palette-text,#fff8df)}
.advent-shell:not(.advent-shell--has-image):not(.advent-shell--custom-font) .advent-head p:not(.advent-preview-banner){color:var(--ncadcal-palette-text,#f5ebd7)}
.advent-shell:not(.advent-shell--has-image):not(.advent-shell--custom-font) .advent-eyebrow{color:var(--ncadcal-palette-text,#f0d99d)}
.advent-shell:not(.advent-shell--has-image):not(.advent-shell--custom-font) .advent-door:not(.is-current-day),
.advent-shell:not(.advent-shell--has-image):not(.advent-shell--custom-font):not(.advent-shell--custom-active-font) .advent-door.is-current-day{color:var(--ncadcal-palette-text,#ffe7aa)}

/* Keep module typography independent of the active site's generated heading rules. */
.advent-shell .advent-overlay .advent-head{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
.advent-shell .advent-overlay .advent-head > h1{font-family:inherit!important;color:var(--advent-font,#fff8df)!important;font-size:clamp(2rem,5vw,3.4rem);line-height:1.15}
.advent-shell:not(.advent-shell--has-image) .advent-overlay .advent-head > h1{color:var(--advent-font,var(--ncadcal-palette-text,#fff8df))!important}
.advent-shell .advent-overlay .advent-head > p:not(.advent-preview-banner){font-family:inherit;color:var(--advent-font,#f5ebd7)!important;line-height:1.5}
.advent-shell:not(.advent-shell--has-image) .advent-overlay .advent-head > p:not(.advent-preview-banner){color:var(--advent-font,var(--ncadcal-palette-text,#f5ebd7))!important}

/* Brand header: use the configured theme/default logo and keep header typography
   independent of calendar door colors and theme-generated heading styles. */
.advent-shell .advent-overlay .advent-head > h1.advent-brand-heading{
  display:flex;align-items:center;justify-content:center;margin:.65rem 0 .8rem;
  padding:0;border:0;max-width:100%;line-height:1;min-height:0;
  background:none;box-shadow:none;text-shadow:none!important;
}
.advent-shell .advent-overlay .advent-head .advent-brand-logo{
  display:block;width:min(76vw,540px)!important;height:clamp(78px,16vh,165px)!important;
  max-width:100%;object-fit:contain;object-position:center;
  filter:drop-shadow(0 3px 7px rgba(0,0,0,.42));
  margin:0 auto;border:0;box-shadow:none;
}
.advent-shell .advent-overlay .advent-head > .advent-eyebrow{
  font-family:Georgia,"Times New Roman",serif!important;
  color:#ffe4ad!important;font-size:clamp(.77rem,1.2vw,1.04rem);
  font-weight:700;letter-spacing:.24em;line-height:1.45;
  text-shadow:0 2px 4px rgba(0,0,0,.85),0 0 9px rgba(0,0,0,.4)!important;
}
.advent-shell .advent-overlay .advent-head > p.advent-tagline{
  font-family:"Trebuchet MS","Segoe UI",Arial,sans-serif!important;
  font-size:clamp(.97rem,1.7vw,1.35rem);font-weight:600;
  color:#fff4d9!important;line-height:1.45;letter-spacing:.015em;
  text-shadow:0 2px 4px rgba(0,0,0,.9),0 0 8px rgba(0,0,0,.48)!important;
}
@media(max-width:500px){
  .advent-shell .advent-overlay .advent-head .advent-brand-logo{
    width:min(86vw,340px)!important;height:clamp(64px,14vh,110px)!important;
  }
  .advent-shell .advent-overlay .advent-head > .advent-eyebrow{letter-spacing:.13em}
}
