/* Shared dark heroes, Events and Weekly extend the approved story-page typography and hero geometry. */
.gathering-page .s-hero { position: relative; isolation: isolate; }
.gathering-page .s-hero > .section__inner { position: relative; z-index: 1; }
.gathering-page .s-hero__grid > *, .gather-calendar__layout > * { min-width: 0; }
.gathering-page .s-index a:hover { color: var(--blue); }
.gathering-page .s-photo img { display: block; }
.gathering-page .s-photo::before { border-color: rgba(255,255,255,.75); pointer-events: none; }
.gathering-page .s-photo__ornament { color: #93c9ed; }
:is(.story-page--events, .dark-hero-page) .s-hero {
  overflow: hidden;
  background: linear-gradient(155deg, var(--ink) 18%, #102d46 55%, #0a2237);
  color: var(--cream-on-dark);
}
:is(.story-page--events, .dark-hero-page) .header.on-dark,
:is(.story-page--events, .dark-hero-page) .header.on-dark.is-scrolled {
  background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
:is(.story-page--events, .dark-hero-page) .s-hero h1 em,
:is(.story-page--events, .dark-hero-page) .s-hero .s-icon,
:is(.story-page--events, .dark-hero-page) .s-index a:hover { color: #93c9ed; }
:is(.story-page--events, .dark-hero-page) .s-hero__lede, :is(.story-page--events, .dark-hero-page) .s-photo figcaption { color: #d2dee8; }
:is(.story-page--events, .dark-hero-page) .s-hero__button { background: var(--paper); color: var(--ink); }
:is(.story-page--events, .dark-hero-page) .s-hero__button:hover { background: #93c9ed; }
:is(.story-page--events, .dark-hero-page) .s-index { border-color: var(--line-light); }
.story-page--weekly .s-photo img { object-position: 65% center; }
.gather-atmosphere { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.gather-atmosphere::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(176,209,232,.19) .75px, transparent 1px) 0 0 / 14px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, rgba(0,0,0,.25) 40%, #000);
  mask-image: linear-gradient(90deg, transparent 10%, rgba(0,0,0,.25) 40%, #000);
}
.gather-atmosphere i {
  position: absolute; display: block; width: clamp(30rem,65vw,65rem); aspect-ratio: 1;
  border-radius: 50%; left: 34%; top: -35%;
  background: radial-gradient(ellipse, rgba(76,160,217,.19), rgba(76,160,217,.065) 38%, transparent 70%);
  animation: gather-drift 22s ease-in-out -6s infinite alternate paused;
}
.gather-atmosphere i:nth-child(2) {
  width: clamp(25rem,52vw,54rem); left: 48%; top: 8%;
  background: radial-gradient(ellipse, rgba(198,160,98,.12), rgba(198,160,98,.035) 40%, transparent 70%);
  animation-duration: 28s; animation-delay: -15s; animation-direction: alternate-reverse;
}
.s-hero.is-atmosphere-active .gather-atmosphere i { animation-play-state: running; }
@keyframes gather-drift {
  0% { transform: translate3d(-16%,-8%,0) scale(.94); }
  50% { transform: translate3d(7%,15%,0) scale(1.08); }
  100% { transform: translate3d(-8%,35%,0) scale(.98); }
}
.gather-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.gather-section-heading h2, .gather-calendar__intro h2 {
  font: 400 clamp(2.2rem,4vw,3.6rem)/1.12 var(--font-display); letter-spacing: -.03em; margin-top: 1.2rem;
}
.gather-section-heading h2 em, .gather-calendar__intro h2 em { color: var(--blue); }
.gather-section-heading > p { font-size: .9rem; color: var(--ink-soft); line-height: 1.8; }
.gathering-page .event-feature { border: 0; background: none; border-radius: 0; gap: clamp(2rem,5vw,5rem); align-items: center; margin: 0 0 3rem; }
.gathering-page .event-feature__img { height: auto; min-height: 0; max-height: none; aspect-ratio: 3 / 2; border-radius: 1.4rem; object-fit: contain; }
.gathering-page .event-feature__body { padding: 0; gap: .9rem; }
.gathering-page .event-feature__title { font-weight: 400; font-size: clamp(2rem,3.5vw,3.2rem); letter-spacing: -.03em; }
.gathering-page .event-feature__date { font-size: .75rem; line-height: 1.6; }
.gathering-page .event-feature__time { font-size: .72rem; line-height: 1.6; }
.gathering-page .event-feature__excerpt { font-size: .95rem; line-height: 1.85; }
.gathering-page .event-feature:hover .btn { background: var(--blue); }
.gathering-page .events-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2.5rem; }
.gathering-page .events-grid:empty { display: none; }
.gathering-page .ecard { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding-top: 2rem; }
.gathering-page .ecard:hover { transform: none; background: none; }
.gathering-page .ecard__img { aspect-ratio: 16 / 9; object-fit: contain; border-radius: 1rem; }
.gathering-page .ecard__body { padding: 1.5rem 0 0; gap: .7rem; }
.gathering-page .ecard__title { font-weight: 400; font-size: clamp(1.6rem,2.5vw,2.2rem); letter-spacing: -.02em; }
.gathering-page .ecard__date { font-size: .72rem; }
.gathering-page .ecard__time { font-size: .68rem; }
.gathering-page .ecard__excerpt { line-height: 1.8; }
.gathering-page .ecard:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(2rem,5vw,5rem); align-items: center; }
.gathering-page .ecard:only-child > * { min-width: 0; }
.gathering-page .ecard:only-child .ecard__body { padding: 0; }
.gathering-page .ecard__more { transition: color .25s; }
.gathering-page .ecard:hover .ecard__more { color: var(--ink); }
.gathering-page .events-empty { grid-column: 1 / -1; width: 100%; max-width: none; border-radius: .4rem; }
.gather-calendar { background: var(--paper-soft); }
.gather-calendar__layout { display: grid; grid-template-columns: .75fr 1.6fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.gather-calendar__intro > p:not(.s-eyebrow) { color: var(--ink-soft); margin-top: 1.5rem; font-size: .95rem; line-height: 1.85; max-width: 28rem; }
.gather-text-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--blue); font-size: .8rem; font-weight: 500; line-height: 1.6; margin-top: 1.5rem; padding-block: .4rem; }
.gather-text-link:hover { text-decoration: underline; text-underline-offset: .3rem; }
.gathering-page .cal { margin-top: 0; border-radius: .5rem; }
.gathering-page .cal__head { padding: 1.2rem; background: var(--paper); }
.gathering-page .cal__title { font-weight: 400; font-size: 1.6rem; }
.gathering-page .cal__btn { width: 2.75rem; height: 2.75rem; font-size: 1.3rem; }
.gathering-page .cal__grid { grid-template-columns: repeat(7,minmax(0,1fr)); }
.gathering-page .cal__day { min-width: 0; min-height: 6rem; }
.gathering-page .cal__evt { padding: .4rem; border-radius: .25rem; }
.gather-agenda { display: none; }
.gather-day { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem,5vw,5rem); border-top: 1px solid var(--line); padding-block: 3rem; }
.gather-day:last-child { padding-bottom: 0; }
.gather-day__when > .s-accent { display: block; margin-bottom: 1.25rem; }
.gather-day__when .s-icon { width: 2.8rem; height: 2.8rem; }
.gather-day__when h3 { font: 400 clamp(2rem,3vw,2.8rem)/1.2 var(--font-display); letter-spacing: -.03em; }
.gather-day__when > p { color: var(--blue); font-size: .9rem; margin-top: .6rem; }
.gather-day__recurrence { display: block; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: .6rem; }
.gather-meeting { display: grid; grid-template-columns: 2.3rem 1fr; gap: 1.2rem; padding-block: 1.8rem; border-bottom: 1px solid var(--line); }
.gather-meeting:first-child { padding-top: .2rem; }
.gather-meeting:last-child { border-bottom: 0; padding-bottom: 0; }
.gather-meeting .s-icon { width: 2.3rem; height: 2.3rem; }
.gather-meeting h4 { font: 400 clamp(1.6rem,2.5vw,2.2rem)/1.2 var(--font-display); letter-spacing: -.02em; }
.gather-meeting p { margin-top: .8rem; max-width: 35rem; font-size: .95rem; line-height: 1.85; color: var(--ink-soft); }
.gathering-page .s-invitation { border-bottom: 1px solid var(--line); }
/* Entrances enhance readable base HTML; focused controls are never left hidden. */
.gather-motion .gather-enter:not(.is-entered) { opacity: 0; transform: translateY(var(--reveal-dist)); }
.gather-motion .gather-enter.is-entered { animation: gather-enter var(--reveal-dur) var(--ease-out) var(--gather-delay,0ms) backwards; }
.gather-motion .s-photo.gather-enter.is-entered { animation-duration: 1.1s; }
.gather-motion .gather-enter:focus-within { opacity: 1; transform: none; animation: none; }
@keyframes gather-enter { from { opacity: 0; transform: translateY(var(--reveal-dist)); } to { opacity: 1; transform: none; } }
.gathering-page .s-accent.is-animating > .s-icon { animation: none; }
.gathering-page .is-animating .gather-icon-mark { animation: gather-icon 1.8s ease-in-out; }
@keyframes gather-icon { 0%,100% { opacity: 1; } 45% { opacity: .3; } }
@media (max-width: 960px) {
  .gather-calendar__layout { grid-template-columns: 1fr; gap: 2rem; }
  .gathering-page .event-feature { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gather-day { grid-template-columns: .8fr 1.5fr; }
}
@media (max-width: 700px) {
  .gather-section-heading { display: block; margin-bottom: 2rem; }
  .gather-section-heading > p { margin-top: 1.3rem; }
  .gather-section-heading h2, .gather-calendar__intro h2 { font-size: 2rem; }
  .gathering-page .event-feature { grid-template-columns: 1fr; }
  .gathering-page .event-feature__img { aspect-ratio: auto; object-fit: cover; background: none; }
  .gathering-page .events-grid { grid-template-columns: 1fr; }
  .gathering-page .ecard:only-child { display: flex; gap: 0; }
  .gathering-page .ecard:only-child .ecard__body { padding-top: 1.5rem; }
  .gather-day { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.5rem; }
  .gather-day__when { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; }
  .gather-day__when > .s-accent { display: none; }
  .gather-day__when h3 { flex-basis: 100%; }
  .gather-day__when > p, .gather-day__recurrence { margin: 0; }
  .gather-meeting { grid-template-columns: 1.8rem 1fr; gap: .9rem; }
  .gather-meeting .s-icon { width: 1.8rem; height: 1.8rem; }
  .gather-atmosphere i { left: -30%; top: 5%; }
  .gather-atmosphere i:nth-child(2) { left: -5%; top: 42%; }
}
@media (max-width: 640px) {
  .gathering-page .cal__head { padding: .9rem; }
  .gathering-page .cal__title { font-size: 1.3rem; }
  .gathering-page .cal__day { min-height: 4.7rem; padding: .3rem; }
  .gathering-page .cal__evt { width: 1.5rem; height: 1.5rem; padding: 0; border-radius: 50%; margin-top: .25rem; }
  .gather-agenda { display: block; margin-top: 1.5rem; }
  .gather-agenda h3 { font: 400 1.3rem var(--font-display); margin-bottom: .8rem; }
  .gather-agenda a { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 0; border-top: 1px solid var(--line); }
  .gather-agenda a:hover { color: var(--blue); }
  .gather-agenda time { font-size: .68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
  .gather-agenda p { font-size: .9rem; color: var(--ink-soft); }
  .gather-agenda p a { display: inline; padding: 0; border: 0; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  .gather-motion .gather-enter:not(.is-entered), .gather-motion .gather-enter.is-entered { opacity: 1; transform: none; animation: none; }
  .gather-atmosphere i, .gathering-page .is-animating .gather-icon-mark { animation: none; }
}

/* Keep the sanctuary windows framed as they are on History. */
.dark-hero-page .s-photo img { object-position: 70% center; }
