/* Galilean Baptist Church — the home page's new look.
 *
 * Every rule here is under html.look-new, which the page sets only when it is
 * opened as /?look=new. Until that is made the default, nobody who has not
 * been sent that address loads this file at all.
 *
 * The idea, in one line: the page is a morning. It opens bright, with the
 * morning's rays across a sunlit wall (the hero); is daylight through its
 * middle (the cream sections, unchanged); and has one passage of night, for
 * the section that is about the far side of the world (missions) and for the
 * foot — a globe of lights needs dark to be seen against.
 */
html.look-new{
  --night:#171210; --night-2:#211a16;
  --n-text:#f4ece3; --n-soft:rgba(244,236,227,.76); --n-dim:rgba(244,236,227,.52);
  --n-line:rgba(244,236,227,.14);
  --n-clay:#c9a08f; --n-warm:#ffd9bd;
}

/* ── the hero ─────────────────────────────────────────────────────────── */
/* Bright: a sunlit wall with the morning's rays across it. The background is
   the still version of what hero-light.js paints — what shows for the moment
   before the canvas starts, and all that shows where there is no WebGL. With
   the site's dark theme the wall is dark stone instead (further down). */
html.look-new .hero{
  overflow:visible;
  padding:calc(116px + var(--alertsH,0px)) 0 0;
  background:
    radial-gradient(95% 85% at 84% -14%,rgba(255,251,242,.98),rgba(255,246,230,.6) 36%,transparent 66%),
    linear-gradient(180deg,#eedfcb,#e4d1ba);
}
html.look-new .hero-grain{display:none}
html.look-new .hero-light{position:absolute;inset:0;width:100%;height:100%;display:block;animation:lookDawn 2.4s ease both}
@keyframes lookDawn{from{opacity:0}to{opacity:1}}
html.look-new .hero>.wrap{position:relative;z-index:2;display:flex;flex-direction:column;
  min-height:calc(min(100vh,960px) - 116px - 76px - var(--alertsH,0px))}
/* svh (the screen with its bars showing) is iOS 15.4. It cannot simply follow
   the line above inside the same rule: a value with var() in it is taken on
   trust, and an iPhone that then cannot work it out is left with no height at
   all rather than the line before. So it is asked for first. */
@supports (min-height:100svh){
  html.look-new .hero>.wrap{min-height:calc(min(100svh,960px) - 116px - 76px - var(--alertsH,0px))}
}
html.look-new .hero-inner{width:100%;margin-top:auto;margin-bottom:auto}
html.look-new .hero blockquote{margin-top:0}
/* The words keep the page's own ink; a little light gathered behind them
   keeps them clear where a ray crosses. */
html.look-new .hero blockquote .scripture{text-shadow:0 0 26px rgba(255,250,240,.75)}
html.look-new .hero .welcome{color:var(--ink);text-shadow:0 0 18px rgba(255,250,240,.8)}
/* The service times stay the paper card they have always been, and sit half
   on the hero and half on the page below — the one object that belongs to
   both, so the hero joins the page instead of stopping above it. */
html.look-new .hero-times{width:100%;color:var(--ink);margin-top:48px;margin-bottom:-52px;box-shadow:0 18px 44px -26px rgba(90,60,30,.45)}
html.look-new .hero + section{padding-top:calc(52px + 84px)}
/* Coming up sits directly under the times, in a band of its own: the band
   clears the half of the card that reaches into the page, the strip follows
   it (index.html gives the gap), and the section after keeps the distance it
   always had — so with no events to show the page is exactly as it was. */
html.look-new .hero + .upcoming-band{padding-top:52px}
html.look-new .upcoming-band + section{padding-top:84px}
/* With the live window first, it clears the header and the hero need not. */
html.look-new.live-first .hero{padding-top:84px}
html.look-new.live-first .hero>.wrap{min-height:0}
html.look-new .livehome{background:var(--night)}

/* Dark theme: the wall is dark stone and the words are light. */
html.look-new[data-theme="dark"] .hero{color:var(--n-text);background:
  radial-gradient(95% 80% at 84% -14%,rgba(255,206,164,.36),rgba(255,206,164,.12) 36%,transparent 64%),
  linear-gradient(180deg,#1b1512,#110d0b)}
html.look-new[data-theme="dark"] .hero blockquote .scripture{color:var(--n-text);text-shadow:0 2px 34px rgba(0,0,0,.55)}
html.look-new[data-theme="dark"] .hero blockquote cite{color:var(--n-clay)}
html.look-new[data-theme="dark"] .hero .welcome{color:var(--n-soft);text-shadow:0 1px 18px rgba(0,0,0,.5)}
html.look-new[data-theme="dark"] .hero .btn{border-color:rgba(244,236,227,.46);color:var(--n-text)}
html.look-new[data-theme="dark"] .hero .btn:hover{background:var(--n-text);border-color:var(--n-text);color:var(--night)}
html.look-new[data-theme="dark"] .hero .btn-primary{background:var(--n-warm);border-color:var(--n-warm);color:#2b1b12}
html.look-new[data-theme="dark"] .hero .btn-primary:hover{background:#fff1e4;border-color:#fff1e4;color:#2b1b12}
html.look-new[data-theme="dark"] .hero-times{box-shadow:0 18px 50px -24px rgba(0,0,0,.55)}

/* ── a recorded service, under the hero (assets/home-recording.js) ────── */
html.look-new .recsec{padding-bottom:28px;text-align:center}
html.look-new .recsec.after-mem{padding-top:56px}
html.look-new .rec-one{scroll-margin-top:96px}
html.look-new .rec-one + .rec-one{margin-top:64px}
html.look-new .recsec h2{font-size:clamp(1.7rem,3.4vw,2.4rem)}
html.look-new .rec-date{margin-top:8px;color:var(--ink-soft);font-size:15px}
html.look-new .rec-stage{position:relative;max-width:920px;margin:26px auto 0;aspect-ratio:16/9;border-radius:18px;overflow:hidden;
  background:#0e0b08 center/cover no-repeat;border:1px solid var(--line);display:grid;place-items:center}
html.look-new .rec-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
html.look-new .rec-play{width:84px;height:84px;border-radius:50%;cursor:pointer;display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.5);background:rgba(20,16,12,.55);color:#fff;transition:transform .2s ease,background .2s ease}
html.look-new .rec-play:hover{transform:scale(1.06);background:rgba(20,16,12,.75)}
html.look-new .rec-play:focus-visible{outline:3px solid #fff;outline-offset:3px}
html.look-new .rec-play svg{width:34px;height:34px;margin-left:4px}
html.look-new .rec-actions{margin-top:22px;display:flex;justify-content:center}
html.look-new .rec-share svg{width:18px;height:18px}
@media(max-width:680px){
  html.look-new .rec-stage{border-radius:12px}
  html.look-new .rec-play{width:68px;height:68px}
  html.look-new .rec-play svg{width:28px;height:28px}
}

/* ── missions: the same night, the same light ─────────────────────────── */
html.look-new .missions{background:var(--night);color:var(--n-text);padding:96px 0}
html.look-new .missions::before{opacity:1;background:
  radial-gradient(70% 90% at 88% -18%,rgba(255,206,164,.17),rgba(255,206,164,.05) 40%,transparent 66%)}
html.look-new .missions .eyebrow{color:var(--n-clay)}
html.look-new .missions .eyebrow::before,
html.look-new .missions .eyebrow.center::after{background:var(--n-clay)}
html.look-new .missions h2{color:var(--n-text)}
html.look-new .missions .where{color:var(--n-clay)}
html.look-new .missions p{color:var(--n-soft)}
.miss-more{display:none}
html.look-new .miss-more{display:inline-flex;align-items:center;gap:9px;margin-top:28px;
  font-weight:600;font-size:14.5px;color:var(--n-warm);border-bottom:1px solid rgba(255,217,189,.4);padding-bottom:3px;
  transition:border-color .2s}
html.look-new .miss-more:hover{border-bottom-color:var(--n-warm)}
html.look-new .miss-more svg{width:1em;height:1em;transition:transform .25s}
html.look-new .miss-more:hover svg{transform:translateX(3px)}

/* With the globe: words on the left, the world on the right. */
html.look-new .missions.with-globe{text-align:left}
html.look-new .missions.with-globe .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:56px;align-items:center}
html.look-new .missions.with-globe .eyebrow.center{justify-content:flex-start}
html.look-new .missions.with-globe .eyebrow.center::after{display:none}
html.look-new .missions.with-globe p{margin-left:0;margin-right:0}
html.look-new .miss-globe{position:relative;margin:-34px 0}
html.look-new .miss-stage{position:relative;width:100%;aspect-ratio:1/1;max-width:540px;margin:0 auto}
html.look-new .miss-cap{margin:2px auto 0 !important;max-width:none !important;text-align:center;
  font-size:13px;letter-spacing:.04em;color:var(--n-dim) !important;min-height:1.6em}
html.look-new .miss-cap b{color:var(--n-warm);font-weight:600}
@media(max-width:900px){
  html.look-new .missions{padding:64px 0 72px}
  html.look-new .missions.with-globe{text-align:center}
  html.look-new .missions.with-globe .wrap{grid-template-columns:1fr;gap:18px}
  html.look-new .missions.with-globe .eyebrow.center{justify-content:center}
  html.look-new .missions.with-globe .eyebrow.center::after{display:block}
  html.look-new .missions.with-globe p{margin-left:auto;margin-right:auto}
  html.look-new .miss-globe{order:-1;margin:-18px 0 0}
  html.look-new .miss-stage{max-width:440px}
}

/* ── the foot ─────────────────────────────────────────────────────────── */
html.look-new footer{background:var(--night)}

@media(max-width:680px){
  html.look-new .hero{padding-top:calc(108px + var(--alertsH,0px))}
  html.look-new .hero>.wrap{min-height:0}
  html.look-new .hero-times{margin-top:44px}
}
@media(prefers-reduced-motion:reduce){
  html.look-new .hero-light{animation:none}
}
