/* ==========================================================================
   HG Ministry — public site styles
   Black and white, photo-led and quiet. Glass is used sparingly: the nav capsule,
   a few pills and the lightbox controls.
   ========================================================================== */

@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

/* Russian letters. Browsers fetch these files only when a page uses them.
   Cormorant Garamond has its own Cyrillic; DM Sans has none, so Russian body
   text is set in Manrope. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-cyrillic-wght-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ink: #0b0b0b;
  --gray: #6b6b6b;
  --mist: #f5f5f3;
  --line: #e3e3e1;
  --white: #fff;
  --black: #000;
  --black-2: #161616;
  --live: #ff4b4b;          /* the one colour: the "live" dot */

  /* Solid buttons are black on light sections and white on dark ones. */
  --btn-bg: var(--ink);
  --btn-fg: #fff;

  /* Manrope sits second so Russian words typed in the admin look right on the English site too. */
  --font: "DM Sans", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;

  --wrap: 1180px;
  --gutter: max(clamp(20px, 5vw, 56px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --nav-h: 60px;
  --section: clamp(72px, 10vw, 150px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reading in Russian: one sans-serif for both alphabets, so mixed lines match. */
html[lang="ru"] { --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }

/* The site is black and white on purpose: never let a phone's "dark mode" invert it. */
:root { color-scheme: only light; }

/* What shows beyond the page edges (pulling past the top or bottom, the notch area):
   black, like the photo at the top and the footer at the bottom, never a white flash. */
html {
  background: #000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 40px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Browsers hand the body's overflow setting to the window, where it stops clipping, so the
   main content clips its own sideways spill (animated rows, the moving text band). Without
   this a phone can be nudged a few pixels sideways after scrolling the home page. */
main { overflow-x: clip; }
/* The white of the page is painted by the content itself, so the page behind it can be black. */
main { background: var(--white); }

/* iPhone and iPad Safari colour the strip behind the clock (and around the floating address bar)
   from the page itself, not from the theme-color setting: a full-width strip pinned to the top
   edge, or else the page background. Both are black there, like the photo at the top of every
   page; the strip turns white over white parts of a page, in case Safari follows it as you scroll. */
.ios body { background: #000; }
.edge-tint { display: none; }
.ios .edge-tint { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 1px; background: #000; pointer-events: none; }
.ios .edge-tint.is-light { background: #fff; }

/* Older Safari has no "clip"; "hidden" keeps the page from scrolling sideways there too. */
@supports not (overflow-x: clip) { body, main { overflow-x: hidden; } }

/* No grey flash on tap (iPhone, Android). */
a, button, label, summary, select { -webkit-tap-highlight-color: transparent; }

/* Headings break into even lines; paragraphs avoid a lone last word where browsers can. */
h1, h2, h3, .footer__lead, .hero__pre, .subhero__pre { text-wrap: balance; }
p { text-wrap: pretty; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img, video { max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--ink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--focus, var(--ink));
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 8px; background: var(--white); color: var(--ink); font-weight: 500;
}
.skip-link:focus { top: 16px; }

.icon {
  flex: none; width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* Intro elements stay hidden until the opening animation takes over.
   `.motion-off` (no animation library or reduced motion) and `.ready`
   (safety net) both reveal them. */
.js [data-intro] { visibility: hidden; }
.motion-off [data-intro], .ready [data-intro] { visibility: visible; }

/* Opening curtain (home page, once per visit). Never shown without animation,
   and removed by the safety net if the script cannot run. */
.curtain { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: #000; color: #fff; }
.curtain .logo { width: clamp(130px, 17vw, 210px); height: auto; }
.js .curtain { display: grid; }
.js.motion-off .curtain, .js.seen-intro .curtain, .js.ready .curtain:not(.is-playing) { display: none; }

/* ---------- Liquid glass ----------
   Blur + saturation for the frosted body, layered inner highlights for the
   bright rim, and a moving specular sheen (--mx/--my follow the pointer).
   In Chromium, js/site.js adds real edge refraction on [data-liquid]. */

.glass {
  --glass-tint: rgba(255, 255, 255, 0.13);
  --glass-rim: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.5);
  --mx: 28%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  background-color: var(--glass-tint);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    inset 0 1px 0 0 var(--glass-rim),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -10px 18px -12px rgba(255, 255, 255, 0.22),
    var(--glass-shadow);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(90% 150% at var(--mx) var(--my), rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.07));
}

.glass--light {
  --glass-tint: rgba(255, 255, 255, 0.66);
  --glass-rim: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* A browser that cannot blur what is behind glass gets a solid tint instead, so text stays readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { --glass-tint: rgba(18, 18, 18, 0.74); }
  .glass--light, .nav--solid .nav__bar { --glass-tint: rgba(255, 255, 255, 0.96); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.7em 1.6em;
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--font); font-size: 0.76rem; font-weight: 500; line-height: 1; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--solid { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.btn--solid:hover { background: transparent; color: var(--btn-bg); }
.btn--glass { color: #fff; border-radius: 999px; padding-inline: 1.6em; }
.btn--line { border-color: rgba(0, 0, 0, 0.35); background: transparent; color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--line-light { border-color: rgba(255, 255, 255, 0.5); background: transparent; color: #fff; }
.btn--line-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
/* A button can carry a shorter label for phones. */
.btn .label-short { display: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  color: var(--ink); font-weight: 500; text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.link-arrow::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }
/* Pointing back, e.g. from a sub-folder to the folder it is in */
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: "\2190"; transition: transform 0.3s var(--ease); }
.link-arrow--back:hover::before { transform: translateX(-6px); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.7; flex: none; }
.is-live .dot, .dot.is-live {
  background: var(--live); opacity: 1;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 75, 75, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 75, 75, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 75, 75, 0); }
}

/* ---------- Section titles ---------- */

.title-block { margin-bottom: clamp(40px, 6vw, 76px); text-align: center; }
.title-block h2 { font-size: clamp(2.3rem, 4vw, 3.5rem); color: var(--ink); }
.rule { display: block; width: 48px; height: 1px; margin: 22px auto 0; background: currentColor; }
.title-block--left { text-align: left; }
.title-block--left .rule { margin-left: 0; }

.kicker {
  display: flex; align-items: center; gap: 14px; margin: 0 0 26px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray);
}
.kicker::before { content: ""; width: 30px; height: 1px; background: currentColor; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: max(14px, env(safe-area-inset-top, 0px)) 0 auto 0; z-index: 60;
  display: flex; justify-content: center;
  padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px));
  pointer-events: none;
}

.nav__bar {
  --focus: #fff;
  pointer-events: auto;
  display: flex; align-items: center; gap: 6px;
  width: min(100%, 1120px); height: var(--nav-h);
  padding: 0 14px 0 22px;
  border-radius: 999px;
  color: #fff;
  transition: color 0.35s, background-color 0.35s, box-shadow 0.35s;
}

.nav--solid .nav__bar {
  --focus: var(--ink);
  --glass-tint: rgba(255, 255, 255, 0.68);
  --glass-rim: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.06);
  color: var(--ink);
}

.nav__brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  min-height: 44px; padding-right: 10px;
  font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
}

/* The church's logo. It takes the colour of the text around it. */
.logo { display: block; width: auto; height: 100%; aspect-ratio: 2152 / 1724; fill: currentColor; }
.nav__brand .logo { height: 40px; }

.nav__links { display: flex; align-items: center; gap: 2px; }

.nav__links a {
  padding: 10px 14px; border-radius: 999px;
  font-size: 0.92rem; text-decoration: none;
  transition: background-color 0.25s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: rgba(255, 255, 255, 0.18); }
.nav--solid .nav__links a:hover, .nav--solid .nav__links a[aria-current="page"] { background: rgba(0, 0, 0, 0.1); }
/* The team portal: a pill button at the end of the menu. */
.nav__links .nav__serve { margin-left: 8px; padding: 9px 16px; background: #fff; color: var(--ink); font-weight: 600; white-space: nowrap; }
.nav__links .nav__serve:hover { background: rgba(255, 255, 255, 0.82); }
.nav--solid .nav__links .nav__serve { background: var(--ink); color: #fff; }
.nav--solid .nav__links .nav__serve:hover { background: #333; }

.nav__live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 75, 75, 0.14);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
}

/* Language switch: shows the language you would change to. */
.nav__lang {
  display: none; align-items: center; justify-content: center; flex: none;
  min-width: 48px; height: 34px; margin-left: 6px; padding: 0 12px;
  border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 38%, transparent);
  border-radius: 999px; background: transparent; color: inherit;
  font: 600 0.7rem/1 var(--font); letter-spacing: 0.1em; cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}
.js .nav__lang { display: inline-flex; }
.nav__lang:hover { background: rgba(255, 255, 255, 0.18); }
.nav--solid .nav__lang:hover { background: rgba(0, 0, 0, 0.1); }

.nav__toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.nav__toggle .icon { width: 1.5rem; height: 1.5rem; }
.nav__toggle .icon + .icon, .nav.is-open .nav__toggle .icon:first-of-type { display: none; }
.nav.is-open .nav__toggle .icon + .icon { display: block; }

.nav__progress {
  position: fixed; inset: 0 0 auto 0; z-index: 61; height: 2px; pointer-events: none; mix-blend-mode: difference;
}
.nav__progress i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

/* ---------- Hero (home) ---------- */

.hero, .zoom__pin, .watch, .subhero, .footer { --btn-bg: #fff; --btn-fg: var(--ink); }

/* Site photography is shown in black and white. Photos added in the admin
   keep their colour where they are the content (gallery, lightbox, events). */
.hero__media img, .subhero__media img, .tall__img img, .zoom__frame img { filter: grayscale(1); }
.stream__thumb img, .strip__item img, .album__cover img { filter: grayscale(1); }
.stream button:hover img, .strip__item a:hover img, .album a:hover .album__cover img { filter: none; }

.hero {
  --focus: #fff;
  position: relative;
  display: grid; place-items: center;
  height: 100vh; height: 100lvh; min-height: 520px;
  overflow: hidden;
  color: #fff; text-align: center;
  background: #161616;
}

.hero__media { position: absolute; inset: -6% 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }

.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1) 42%, rgba(0, 0, 0, 0.55));
}

.hero__content { position: relative; z-index: 2; width: 100%; padding-inline: var(--gutter); margin-top: -5vh; margin-top: calc(-5svh - (100lvh - 100svh)); }

.hero__pre {
  margin: 0;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 3.4rem); font-weight: 400; line-height: 1.1; letter-spacing: 0;
}

.hero__title {
  margin-top: 0.03em;
  font-size: clamp(3.5rem, 14.4vw, 13.5rem); line-height: 0.9; letter-spacing: -0.025em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}
/* A phone held sideways has a short screen: smaller words, so the whole opening fits on it. */
@media (orientation: landscape) and (max-height: 520px) {
  .hero { min-height: 300px; }
  .hero__content { margin-top: 0; margin-top: calc(0px - (100lvh - 100svh)); padding-top: 44px; }
  .hero__pre { font-size: clamp(1.1rem, 6svh, 1.6rem); }
  .hero__title { font-size: clamp(2.6rem, 21svh, 6rem); }
  .hero__actions { margin-top: 1rem; }
  .hero__foot { bottom: 12px; bottom: calc(12px + (100lvh - 100svh)); }
  /* one line, not stacked, so it clears the button */
  .hero .hero__meta { flex-direction: row; gap: 6px 18px; }
  .hero .hero__meta i { display: block; }
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 34px; margin-top: 2.6rem; }


.hero__foot { position: absolute; left: 0; right: 0; bottom: clamp(26px, 5vh, 46px); bottom: calc(clamp(26px, 5svh, 46px) + (100lvh - 100svh)); z-index: 3; display: flex; justify-content: center; padding-inline: var(--gutter); }

/* One small line at the foot of the hero: when and where. */
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; margin: 0;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; text-align: center;
  color: rgba(255, 255, 255, 0.86);
}
.hero__meta i { width: 30px; height: 1px; background: rgba(255, 255, 255, 0.55); }

.announce {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 22px; padding: 8px 18px 8px 14px;
  border-radius: 999px; color: #fff; font-size: 0.88rem; font-weight: 500; text-decoration: none;
}
/* The dot sits on the text, not on the pill: the pill's own ::before is its glass sheen. */
.announce > span { display: inline-flex; align-items: center; gap: 10px; }
.announce > span::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #fff; }

.fact { display: grid; gap: 2px; min-width: 0; }
.fact__label { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.78; }
.fact__value { font-size: 0.98rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Statement ---------- */

.statement { padding-block: clamp(96px, 13vw, 200px) clamp(48px, 7vw, 100px); }

.statement__text {
  max-width: 21em; margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4.1rem); line-height: 1.1; letter-spacing: -0.012em; color: var(--ink);
}

/* ---------- What to expect ---------- */

.expect { padding-block: var(--section); }

.expect__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 30px); align-items: start;
}

.tall__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--mist); }
.tall__img img { display: block; width: 100%; height: 114%; object-fit: cover; }
.tall h3 { margin: 22px 4px 8px; font-size: 1.7rem; font-weight: 400; color: var(--ink); }
.tall p { max-width: 31ch; margin: 0 4px; font-size: 0.95rem; font-weight: 300; line-height: 1.75; color: var(--gray); }

/* ---------- Zoom band (visit) ---------- */

.zoom { position: relative; background: var(--white); }

.zoom__pin {
  --focus: #fff;
  position: relative; display: grid; place-items: center;
  height: 100vh; height: 100lvh; min-height: 620px;
  padding-bottom: calc(100lvh - 100svh);
  overflow: hidden; color: #fff; text-align: center;
}

.zoom__frame { position: absolute; inset: 0; overflow: hidden; }
.zoom__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zoom__frame::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.44); }

.zoom__ghost {
  position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: space-between;
  padding-inline: 3vw; pointer-events: none;
  font-size: clamp(2.6rem, 9vw, 9rem); letter-spacing: -0.05em; line-height: 1; color: var(--ink); white-space: nowrap;
}
/* The Russian words are longer; keep them clear of the photo between them. */
html[lang="ru"] .zoom__ghost { font-size: clamp(2rem, 5.4vw, 5.4rem); letter-spacing: -0.04em; }
.zoom__frame { z-index: 1; }
.zoom__content { position: relative; z-index: 2; padding-inline: var(--gutter); }
.zoom__content h2 { font-size: clamp(3.2rem, 10vw, 9.5rem); line-height: 0.94; letter-spacing: -0.02em; }

.zoom__facts {
  display: inline-flex; align-items: center; gap: clamp(18px, 3.4vw, 48px);
  margin: clamp(22px, 3vw, 36px) 0;
  padding: 16px 34px; border-radius: 999px; text-align: left;
}

/* ---------- Watch ---------- */

.watch {
  --focus: #fff;
  position: relative; overflow: hidden;
  padding-block: var(--section);
  background: var(--black); color: #fff;
}

.watch::before, .watch::after {
  content: ""; position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
}
.watch::before {
  left: -18vw; top: -22vw; width: 62vw; height: 62vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 62%);
}
.watch::after {
  right: -24vw; bottom: -30vw; width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 62%);
}
.watch > .wrap { position: relative; z-index: 1; }

.watch__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px 8px 13px;
  border-radius: 999px; font-size: 0.85rem; font-weight: 500;
}

.watch h2 { font-size: clamp(2.8rem, 6.8vw, 6rem); line-height: 0.98; letter-spacing: -0.015em; }
.watch__lede { max-width: 30rem; margin: 20px 0 0; color: rgba(255, 255, 255, 0.76); }
.watch__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.player { perspective: 1500px; }

.player__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 16px;
  background: #000 url("../assets/img/summit.webp") center / cover no-repeat;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-origin: 50% 100%;
}

.player__frame iframe, .player__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}

.player__poster {
  padding: 0; background: transparent center / cover no-repeat; cursor: pointer; color: #fff;
}
/* The video's own thumbnail, in black and white until it plays. */
.player__img { position: absolute; inset: 0; background: center / cover no-repeat; filter: grayscale(1); }
.player__poster::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.75));
  transition: opacity 0.3s;
}
.player__poster:hover::after { opacity: 0.8; }

.player__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  display: grid; place-items: center; width: clamp(68px, 8vw, 104px); aspect-ratio: 1;
  border-radius: 50%; transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease);
}
.player__poster:hover .player__play { transform: translate(-50%, -50%) scale(1.08); }
.player__play .icon { width: 34%; height: 34%; margin-left: 7%; }

.player__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  padding: clamp(16px, 2.6vw, 34px); text-align: left;
}
.player__title { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.3vw, 2.1rem); line-height: 1.15; }
.player__sub { display: block; margin-bottom: 6px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }

.badge-live {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--live); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.badge-live .dot { background: #fff; opacity: 1; animation: none; }

.streams { margin-top: clamp(36px, 5vw, 64px); }
.streams__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.streams__head h3 { font-size: 1.8rem; }
.streams__note { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

.streams__track {
  display: flex; gap: 18px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; list-style: none;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.stream { flex: 0 0 clamp(220px, 24vw, 300px); scroll-snap-align: start; }
.stream button {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit;
}
.stream__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: var(--black-2); }
.stream__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.stream button:hover img { transform: scale(1.06); }
.stream.is-current .stream__thumb { box-shadow: 0 0 0 1px #fff; }
.stream.is-current .stream__thumb img { filter: none; }
.stream__title { display: block; margin-top: 12px; font-size: 0.95rem; font-weight: 500; line-height: 1.35; }
.stream__date { display: block; margin-top: 4px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Marquee ---------- */

.marquee { padding-block: clamp(34px, 6vw, 84px); overflow: hidden; }

.marquee__row {
  display: flex; align-items: center; gap: 0.5em; width: max-content;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 10rem); line-height: 1.05; letter-spacing: -0.015em; white-space: nowrap;
  color: var(--ink); will-change: transform;
}
.marquee__row span:nth-of-type(even) { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--ink); }
.marquee__row i { flex: none; width: 0.6em; height: 1px; background: var(--ink); }

/* ---------- Events ---------- */

.upcoming { padding-block: clamp(40px, 6vw, 90px) var(--section); }
.upcoming .link-arrow { margin-top: 36px; }
.empty-note { margin: 0; padding: 30px 0; border-block: 1px solid var(--line); color: var(--gray); }

.event-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }

.event-row {
  display: grid; grid-template-columns: clamp(84px, 11vw, 150px) minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 44px); align-items: center;
  padding: clamp(20px, 2.6vw, 32px) 0; border-bottom: 1px solid var(--line);
}

.event-row__date { display: grid; align-content: start; align-self: start; color: var(--ink); }
.event-row .event-row__date { align-self: center; }
.event-row__day { font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: clamp(3rem, 6vw, 5.2rem); line-height: 0.85; }
.event-row__month { margin-top: 6px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); }
.event-row__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--ink); }
.event-row__meta { margin: 8px 0 0; font-size: 0.95rem; color: var(--gray); }
.event-row__go {
  display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink); text-decoration: none; transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.event-row:hover .event-row__go { background: var(--ink); border-color: var(--ink); color: #fff; transform: rotate(-45deg); }

/* Full events page */
.events-page { padding-block: clamp(56px, 8vw, 110px) var(--section); }
.month { display: grid; grid-template-columns: clamp(120px, 20vw, 260px) minmax(0, 1fr); gap: clamp(16px, 4vw, 60px); margin-bottom: clamp(36px, 5vw, 70px); }
.month__label { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; font-size: clamp(1.9rem, 3.4vw, 2.9rem); color: var(--ink); }
.month__label small { display: block; margin-top: 6px; font-family: var(--font); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gray); }

.event-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(16px, 2.6vw, 34px); padding: 30px 0; border-top: 1px solid var(--line); }
.event-card:last-child { border-bottom: 1px solid var(--line); }
.event-card__body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ink); }
.event-card__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 0.95rem; color: var(--gray); }
.event-card__meta li { display: inline-flex; align-items: center; gap: 8px; }
.event-card__desc { max-width: 62ch; margin: 16px 0 0; color: var(--gray); white-space: pre-line; }
.event-card__img { display: block; width: 100%; max-width: 620px; margin-top: 20px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--mist); }
.event-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
/* The event someone followed a link to: a soft panel behind it, without moving anything. */
.event-card.is-target { background: var(--mist); box-shadow: 0 0 0 clamp(10px, 2vw, 20px) var(--mist); }
.event-card.is-past { opacity: 0.62; }

.past-toggle { margin-top: 10px; }

/* Registration status on an event, and the sign-up dialog. */
.event-card__reg { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.event-card__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink); }
.event-card__dot.is-open { background: var(--ink); }

.modal {
  width: min(100% - 28px, 560px); max-height: calc(100% - 28px); max-height: calc(100dvh - 28px); padding: 0; border: 0; overflow: auto;
  overscroll-behavior: contain;
  background: var(--white); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__body { --pad: clamp(28px, 6vw, 52px); padding: var(--pad); }
.modal__body h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.modal__meta { margin: 12px 0 0; color: var(--gray); }
.modal__close {
  position: sticky; top: 8px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px;
  margin: 8px 8px -52px auto; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); cursor: pointer;
}

.form { display: grid; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.field em { font-style: normal; letter-spacing: 0.04em; text-transform: none; color: var(--gray); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfcfcd; border-radius: 0;
  background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--font);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pay-steps { display: grid; gap: 14px; margin: 26px 0 6px; padding-left: 1.2em; }
.pay-steps li { padding-left: 6px; }
.pay-code { display: inline-block; margin-left: 4px; padding: 4px 12px; border: 1px solid var(--ink); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: 0.12em; }
.form-hint { margin: 0; font-size: 0.9rem; color: var(--gray); }
/* A yes/no question on the sign-up form */
.check-field { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; cursor: pointer; }
.check-field input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.check-field em { font-style: normal; color: var(--gray); }
/* The running total on a paid sign-up */
/* The total and the sign-up button: a bar that stays at the bottom of the form while it scrolls. */
.form__bar {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  margin: 0 calc(-1 * var(--pad, 0px)) calc(-1 * var(--pad, 0px));
  padding: 14px var(--pad, 0px) calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--white);
}
.form__bar > .btn { margin-left: auto; }
.form-total { display: grid; gap: 2px; margin: 0; }
.form-total span { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.form-total strong { font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums; }
.form-note { margin: 0; padding: 12px 14px; border-left: 2px solid var(--ink); background: var(--mist); font-size: 0.95rem; }

/* ---------- Media strip (home) ---------- */

.strip { background: var(--mist); overflow: hidden; }
.strip__pin { display: grid; align-content: center; gap: clamp(24px, 4vw, 48px); min-height: 100vh; min-height: 100svh; padding-block: clamp(90px, 10vw, 130px) clamp(50px, 6vw, 80px); }
.strip__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.strip__head h2 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); color: var(--ink); letter-spacing: -0.015em; }
.strip__scroller { overflow-x: auto; scrollbar-width: none; }
.strip__scroller::-webkit-scrollbar { display: none; }
.strip.is-pinned .strip__scroller { overflow: visible; }
.strip__track { display: flex; gap: clamp(14px, 2vw, 26px); width: max-content; margin: 0; padding: 0 var(--gutter); list-style: none; will-change: transform; }
.strip__item { flex: none; height: clamp(260px, 52vh, 520px); overflow: hidden; background: var(--line); }
.strip__item:nth-child(even) { margin-top: clamp(18px, 4vh, 48px); }
.strip__item img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Scripture ---------- */

.verse { padding-block: var(--section); background: var(--mist); text-align: center; }
.verse__mark { display: block; height: 0.5em; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: #c9c9c7; }
.verse blockquote {
  max-width: 22em; margin: 26px auto 0;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.25; color: var(--ink);
}
.verse cite { display: block; margin-top: 30px; font-size: 0.8rem; font-style: normal; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); }

/* ---------- Give + contact ---------- */

.duo { padding-block: var(--section); }
.duo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 8vw, 120px); }
.duo h2 { font-size: clamp(2.3rem, 4vw, 3.5rem); color: var(--ink); }
.duo .rule { margin: 22px 0 28px; }
.duo p { max-width: 34rem; color: var(--gray); }
.duo .btn { margin-top: 14px; }

.contact-list { display: grid; gap: 14px; margin: 0 0 12px; padding: 0; list-style: none; color: var(--gray); }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin-top: 0.25em; color: var(--ink); }
.contact-list a { color: var(--ink); text-underline-offset: 3px; }
.contact-list span { white-space: pre-line; }

/* ---------- Footer ---------- */

.footer { --focus: #fff; position: relative; overflow: hidden; background: var(--black); color: rgba(255, 255, 255, 0.7); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px clamp(28px, 6vw, 90px); padding-block: clamp(60px, 8vw, 110px) clamp(36px, 5vw, 60px); }
.footer__lead { max-width: 24rem; font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; color: #fff; }
.footer h2 { margin-bottom: 16px; font-family: var(--font); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer p span { white-space: pre-line; }
.footer__logo { width: clamp(180px, 28vw, 380px); margin: clamp(8px, 2vw, 28px) auto clamp(40px, 6vw, 84px); color: #fff; }
.footer__logo .logo { width: 100%; height: auto; }
.footer__base {
  position: relative;
  padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; background: var(--black);
}
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer__base p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.social { display: flex !important; gap: 10px !important; margin-top: 22px !important; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 50%; color: #fff; }
.social a:hover { background: #fff; border-color: #fff; color: var(--ink); }
.social .icon { width: 1.05rem; height: 1.05rem; }

/* ---------- Floating live translation button ---------- */

.fab {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px 0 16px;
  border-radius: 999px; color: var(--ink); font-size: 0.9rem; font-weight: 500; text-decoration: none;
  transform: translateY(160%); transition: transform 0.6s var(--ease);
}
.fab.is-in { transform: none; }
.fab:hover { --glass-tint: rgba(255, 255, 255, 0.92); }

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 80; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.9rem;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: transform 0.4s var(--ease), opacity 0.3s;
}
.toast.is-in { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Sub-page hero ---------- */

.subhero {
  --focus: #fff;
  position: relative; display: grid; align-items: end;
  height: min(66vh, 600px); min-height: 400px; overflow: hidden; color: #fff; background: #161616;
}
.subhero__media { position: absolute; inset: -8% 0; }
.subhero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The group photo: keep faces in frame rather than the ceiling. */
.subhero__media--people img { object-position: 50% 62%; }
/* The camera photo has bright numbers along its bottom edge. On narrow screens
   they would sit right behind the title, so the photo is enlarged a little and
   the numbers fall just below the banner. */
@media (max-width: 860px) {
  .subhero__media--camera img { height: 128%; }
}
.subhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.12) 45%, rgba(0, 0, 0, 0.62)); }
.subhero__content { position: relative; z-index: 2; padding-bottom: clamp(28px, 5vw, 60px); }
.subhero__pre { margin: 0 0 0.1em; font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 2.2rem); }
.subhero h1 { font-size: clamp(3.8rem, 12.5vw, 11rem); line-height: 0.9; letter-spacing: -0.02em; }

/* ---------- Media page ---------- */

.media-page { padding-block: clamp(56px, 8vw, 110px) var(--section); }
.media-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.media-toolbar h2 { font-size: clamp(2.3rem, 4vw, 3.5rem); color: var(--ink); }
.media-toolbar p { margin: 6px 0 0; color: var(--gray); }
.media-toolbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.albums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px) clamp(16px, 2.2vw, 30px); margin: 0; padding: 0; list-style: none; }
.album { position: relative; }
.album a { display: block; text-decoration: none; }
.album__cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.album__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.album a:hover .album__cover img { transform: scale(1.06); }
.album__count { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; color: #fff; font-size: 0.78rem; font-weight: 500; }
/* Share this folder: sits on the corner of the cover, outside the link. */
.album__share {
  --glass-tint: rgba(0, 0, 0, 0.32);
  --focus: #fff;
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; color: #fff; cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.album__share:hover { transform: scale(1.08); }
.album__share .icon { width: 1.1rem; height: 1.1rem; }
.album__empty { display: grid; place-items: center; width: 100%; height: 100%; color: #bdbdbb; }
.album__empty .icon { width: 2.6rem; height: 2.6rem; }
/* No picture yet: the count sits on pale grey, so it turns dark. */
.album__empty + .album__count { --glass-tint: rgba(0, 0, 0, 0.06); --glass-rim: rgba(0, 0, 0, 0.08); color: var(--ink); }
.album h3 { margin: 18px 4px 2px; font-size: 1.7rem; font-weight: 400; color: var(--ink); }
.album time { display: block; margin: 0 4px; font-size: 0.9rem; color: var(--gray); }

/* Folders inside an open folder: a smaller row above its photos */
.albums--sub { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px) clamp(12px, 1.8vw, 24px); margin-bottom: clamp(44px, 6vw, 80px); }
.albums--sub .album__cover { aspect-ratio: 1 / 1; }
.albums--sub h3 { margin-top: 12px; font-size: 1.35rem; }

.gallery { columns: 3 260px; column-gap: clamp(10px, 1.4vw, 18px); margin: 0; padding: 0; list-style: none; }
.gallery li { break-inside: avoid; margin-bottom: clamp(10px, 1.4vw, 18px); }
.gallery button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; overflow: hidden; }
.gallery img { display: block; width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: #fff; transform: translate(-50%, -50%); }
.gallery__play .icon { width: 36%; height: 36%; margin-left: 6%; }
.gallery__blank { display: grid; place-items: center; aspect-ratio: 16 / 9; color: #fff; background: var(--black-2); }

.lightbox {
  --focus: #fff;
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.9); color: #fff;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 76px clamp(12px, 7vw, 110px) 96px; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lightbox__stage iframe { width: min(100%, 1200px); aspect-ratio: 16 / 9; max-height: 100%; border: 0; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); margin: 0; padding-inline: 24px; text-align: center; font-size: 0.95rem; color: rgba(255, 255, 255, 0.85); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; }
.lightbox__close { top: calc(16px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lightbox__prev { left: max(16px, env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: calc(30px + env(safe-area-inset-top, 0px)); left: max(24px, env(safe-area-inset-left, 0px)); font-size: 0.85rem; letter-spacing: 0.1em; }

.skeleton { background: linear-gradient(100deg, var(--mist) 30%, #fbfbfa 50%, var(--mist) 70%) 0 0 / 300% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav__bar { padding-left: 16px; padding-right: 10px; }
  .nav__links a { padding-inline: 8px; }
  .nav__links .nav__serve { margin-left: 4px; padding-inline: 12px; }
  .nav__live { padding-inline: 10px; }
}

@media (max-width: 1000px) {
  .nav__links a { padding-inline: 7px; font-size: 0.88rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__toggle { display: grid; }
  .nav__lang { height: 38px; margin-left: 0; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    border-radius: 26px; color: var(--ink);
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
    box-shadow: inset 0 1px 0 #fff, 0 24px 50px -20px rgba(0, 0, 0, 0.5);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav__links a:hover, .nav__links a[aria-current="page"] { background: rgba(0, 0, 0, 0.1); }
  .nav__links .nav__serve, .nav--solid .nav__links .nav__serve { margin: 8px 0 0; padding: 15px 16px; background: var(--ink); color: #fff; text-align: center; }
  .nav__links .nav__serve:hover { background: #333; }
  .nav__bar { position: relative; }

  .expect__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .tall__img { aspect-ratio: 4 / 5; }
  .duo__grid { grid-template-columns: minmax(0, 1fr); }
  .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .albums--sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .month__label { position: static; }

  .hero__meta i { display: none; }
  .hero__meta { flex-direction: column; gap: 6px; }
  .zoom__ghost { display: none; }

  .zoom__facts { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 26px; border-radius: 26px; }
}

@media (min-width: 861px) {
  .nav__home { display: none; }
}

@media (max-width: 560px) {
  .event-row { grid-template-columns: 70px minmax(0, 1fr); }
  .event-row__go { display: none; }
  .event-card { grid-template-columns: 64px minmax(0, 1fr); }
  .albums { grid-template-columns: minmax(0, 1fr); }
  .albums--sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .albums--sub h3 { font-size: 1.15rem; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .fab span { display: none; }
  .fab { padding: 0; width: 52px; justify-content: center; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .lightbox__caption { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- A shared link (/l/...), and the sign-up list it can show ---------- */

.linkpage { min-height: 72vh; padding-block: calc(var(--nav-h) + 64px) var(--section); }
.linkpage__wait { color: var(--gray); }
.linkpage__message { max-width: 36rem; padding-block: 30px; }
.linkpage__message h1 { margin-bottom: 14px; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.linkpage__message p { margin-bottom: 26px; color: var(--gray); }
.linkpage__head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.linkpage__meta { margin: 10px 0 0; color: var(--gray); }
.linkpage__totals { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.linkpage__totals li { padding: 7px 12px; background: var(--mist); font-size: 0.9rem; }
.linkpage__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 26px; }
.linkpage__tools input[type=search] {
  flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid #cfcfcd; border-radius: 0;
  background: var(--white); color: var(--ink); font: 400 1rem/1.4 var(--font);
}
.linkpage__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.linkpage__count { display: block; margin-top: 12px; font-size: 0.9rem; color: var(--gray); }
.linkpage__note { margin-top: 26px; font-size: 0.88rem; color: var(--gray); }
.doorpage .wrap { max-width: 34rem; }
.door__head h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.door__when { margin: 12px 0 0; color: var(--gray); }
.door__when strong { color: var(--ink); font-weight: 600; }
.door__button {
  display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 96px; margin-top: 30px;
  padding: 22px; border: 0; border-radius: 0; background: var(--ink); color: #fff; cursor: pointer;
  font: 600 1.15rem/1.2 var(--font); letter-spacing: 0.08em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.door__button .icon { width: 30px; height: 30px; }
.door__button:active:not(:disabled) { transform: scale(0.985); }
.door__button:disabled { background: #cfcfcd; color: #6b6b6b; cursor: not-allowed; }
.door__status { margin: 18px 0 0; padding: 14px 16px; font-weight: 600; background: var(--mist); }
.door__status.is-ok { background: #e7f4ea; color: #14532d; }
.door__status.is-bad { background: #fdecea; color: #8a1c12; }
.door__status.is-wait { background: var(--mist); color: var(--ink); }
.door__note { margin: 16px 0 0; font-size: 0.95rem; color: var(--gray); }
a.door__button { text-decoration: none; }

/* "Open this in Safari / Chrome", shown inside Telegram's and other apps' built-in browsers */
.leave-app__more { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.leave-app__more .btn { width: 100%; }
.leave-app__link { width: 100%; padding: 12px 14px; border: 1px solid rgba(0, 0, 0, 0.25); border-radius: 10px; font: 400 0.95rem/1.3 var(--font); color: var(--ink); background: #fff; }

/* "Put Serve on your home screen" */
.home-steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.home-steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--soft, #f4f4f2); font-size: 1.02rem; line-height: 1.35; }
.home-steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; }
.home-steps .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.home-steps small { display: block; margin-top: 2px; color: var(--gray); font-size: 0.86rem; }
.home-done { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.home-done .btn { width: 100%; }
.home-pointer { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); color: var(--ink); font-size: 0.82rem; font-weight: 600; pointer-events: none; animation: home-bob 1.4s ease-in-out infinite; }
.home-pointer .icon { width: 30px; height: 30px; transform: rotate(90deg); }
@keyframes home-bob { 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .home-pointer { animation: none; } }

/* ---------- Serve portal (/serve) ---------- */
.servepage { --open: #b45309; --open-bg: #fff4e5; --filled: #166534; --filled-bg: #e7f4ea; --soft: #f4f4f2; }
.servepage .wrap { max-width: 46rem; }
@media (min-width: 900px) { .servepage .wrap { max-width: 62rem; } }
body:has(.servepage) .fab { display: none; }
.serve-join .door__button { margin-top: 10px; }
.serve-join { display: grid; gap: 18px; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 76px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--soft, #f4f4f2); color: var(--ink); font: 500 0.85rem/1 var(--font); cursor: pointer; }
.serve-roles { margin: 0; padding: 0; border: 0; min-width: 0; }
.serve-roles legend { padding: 0; margin-bottom: 10px; }
.serve-roles legend span { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.serve-roles legend em { font-style: normal; letter-spacing: 0.04em; text-transform: none; color: var(--gray); }
.serve-roles input[type=text] { margin-top: 10px; }
.serve-rules { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.serve-rules li { padding: 14px 16px; border-radius: 14px; background: var(--soft, #f4f4f2); line-height: 1.45; }
.serve-rules__warn { background: #fdecea !important; color: #8a1c12; font-weight: 600; }

/* The portal has no site menu bar or footer: just the logo (back to the main site) and the
   language switch at the top, so the page starts right under the phone's status bar. */
:root:has(.servepage) { --nav-h: 0px; scroll-padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.servepage { min-height: 100svh; padding-block: calc(14px + env(safe-area-inset-top, 0px)) calc(36px + env(safe-area-inset-bottom, 0px)); }
.serve-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; color: var(--ink); }
.serve-bar__brand { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.serve-bar__brand .logo { height: 34px; }
.serve-bar .nav__lang { height: 38px; margin-left: 0; }
.serve-bar .nav__lang:hover { background: rgba(0, 0, 0, 0.06); }
.servepage .wizard { scroll-margin-top: 12px; }

/* Greeting and the three buttons */
.serve-hi { margin: 0 0 16px; font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
.serve-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0 0 22px; padding: 4px; border-radius: 14px; background: var(--soft); }
.serve-nav__item { min-width: 0; min-height: 44px; padding: 8px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--gray); font: 600 0.92rem/1.15 var(--font); white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (max-width: 380px) { .serve-nav__item { font-size: 0.84rem; letter-spacing: -0.01em; } }
@media (min-width: 640px) { .serve-nav { max-width: 34rem; } }
.serve-nav__item[aria-current="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.serve-panel { display: grid; gap: 14px; }
.serve-empty { margin: 0; padding: 18px; border-radius: 14px; background: var(--soft); color: var(--gray); }
.serve-tip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--soft); font-size: 0.95rem; }
.serve-tip p { flex: 1 1 220px; margin: 0; }

/* Chips (the "what's it for" suggestions) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 500 0.95rem/1.1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Cards: my bookings, and "booked" */
.serve-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.serve-card h3, .cal-item h4 { margin: 0; font-family: var(--font); font-size: 1.08rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.serve-meta { margin: 4px 0 0; color: var(--gray); font-size: 0.92rem; }
.serve-notes { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--soft); font-size: 0.92rem; white-space: pre-line; }
.serve-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 0.82rem; font-weight: 600; }
.serve-chip.is-filled { background: var(--filled-bg); color: var(--filled); }
.serve-card > .serve-chip { margin-bottom: 8px; }
.serve-needs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; }
.serve-needs__label { margin-right: 2px; color: var(--gray); font-size: 0.85rem; }
.serve-dates { display: grid; margin: 12px 0 0; padding: 0; list-style: none; font-size: 0.95rem; }
.serve-dates li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.serve-dates li > span { display: grid; min-width: 0; }
.serve-dates small { color: var(--gray); font-size: 0.9rem; }
.serve-dates .linkish { flex: none; }
.serve-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 14px; }
.serve-foot { margin-top: 30px; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 0.78rem; }
.linkish { min-height: 32px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:disabled { opacity: 0.5; cursor: default; }

/* Calendar. On phones: clean numbers with a coloured dot for each booking (colour = room);
   the chosen day is a black circle, today has a ring. On wider screens: a paper calendar
   with each booking's time and name in its day. */
.cal { display: grid; gap: 10px; }
.cal-head { display: flex; align-items: center; gap: 8px; }
.cal-head h2 { flex: 1; margin: 0; text-align: center; font-size: clamp(1.4rem, 5vw, 1.9rem); }
.cal-move { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow { padding: 4px 0; text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.cal-day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; min-height: 50px; padding: 3px 0 5px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cal-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; font-weight: 500; }
.cal-day.is-other { color: #c4c4c1; }
.cal-day.is-past .cal-num { color: #9a9a97; }
.cal-day.is-today .cal-num { font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day.is-selected .cal-num { background: var(--ink); color: #fff; }
.cal-marks { display: flex; justify-content: center; gap: 3px; min-height: 6px; }
.cal-ev { width: 6px; height: 6px; border-radius: 50%; background: var(--room); font-size: 0; overflow: hidden; }
.cal-ev__time { font-weight: 700; }
.cal-more { display: none; }
.cal-ev--service { display: none; }
@media (min-width: 640px) {
  .cal-grid { gap: 4px; }
  .cal-day { align-items: stretch; gap: 3px; min-height: 96px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-align: left; overflow: hidden; }
  .cal-day.is-other { background: transparent; }
  .cal-day.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
  .cal-num { width: 28px; height: 28px; font-size: 0.92rem; font-weight: 600; }
  .cal-marks { display: grid; justify-content: stretch; }
  .cal-ev { width: auto; height: auto; padding: 2px 6px; border-left: 3px solid var(--room); border-radius: 4px; background: var(--soft); color: var(--ink); font-size: 0.72rem; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
  .cal-more { display: block; font-size: 0.7rem; line-height: 1.3; color: var(--gray); }
  .cal-ev--service { display: block; border-left-color: #b0b0ad; background: transparent; color: var(--gray); }
}
.cal-agenda { display: grid; gap: 10px; margin-top: 6px; }
.cal-agenda__title { margin: 8px 0 0; font-family: var(--font); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
.cal-item { padding: 14px 16px; border: 1px solid var(--line); border-left: 5px solid var(--room, var(--ink)); border-radius: 14px; background: var(--white); }
.cal-item__time { margin: 0 0 2px; font-size: 0.88rem; font-weight: 700; }
.cal-item--service { border-left-color: #b0b0ad; background: var(--soft); }
.cal-book { justify-self: start; gap: 8px; }

/* Booking: a guide, one question per screen, with big answer buttons */
.wizard { display: grid; gap: 18px; scroll-margin-top: calc(var(--nav-h, 60px) + 30px); }
.wiz-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wiz-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 6px 14px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 600 0.95rem/1 var(--font); cursor: pointer; }
.wiz-back .icon { width: 20px; height: 20px; }
.wiz-count { color: var(--gray); font-size: 0.88rem; font-weight: 600; }
.wiz-bar { height: 6px; margin-top: 12px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.wiz-bar span { display: block; height: 100%; border-radius: 999px; background: var(--ink); transition: width 0.3s ease; }
.wiz-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wiz-crumb { min-height: 34px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); font: 500 0.88rem/1.2 var(--font); cursor: pointer; }
.wiz-body { display: grid; gap: 14px; }
.wiz-q { margin: 2px 0 0; font-size: clamp(1.8rem, 7vw, 2.4rem); line-height: 1.1; }
.wiz-help { margin: 0; color: var(--gray); font-size: 0.95rem; }
.wiz-part { margin: 10px 0 0; font-family: var(--font); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }
.pick-list { display: grid; gap: 10px; }
.pick-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick-list--times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick { position: relative; display: grid; gap: 3px; justify-items: start; align-content: center; min-height: 66px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color 0.15s ease, background 0.15s ease; }
.pick:hover { border-color: #9a9a97; }
.pick:active { transform: scale(0.985); }
.pick.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.pick__main { font: 600 1.08rem/1.25 var(--font); }
.pick__sub { font-size: 0.88rem; opacity: 0.72; }
.pick-list--times .pick { justify-items: center; min-height: 56px; padding: 10px 6px; }
.pick-list--times .pick__main { font-size: 1rem; }
.pick--room { padding-left: 46px; }
.pick--room::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--room); box-shadow: 0 0 0 2px var(--white); }
.pick--check { padding-left: 56px; }
.pick--check::before { content: ""; position: absolute; left: 18px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border: 2px solid #b8b8b5; border-radius: 7px; background: var(--white); }
.pick--check.is-on::before { border-color: #fff; }
.pick--check.is-on::after { content: ""; position: absolute; left: 27px; top: 50%; width: 7px; height: 13px; margin-top: -9px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.wiz-other { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; color: var(--gray); font-size: 0.95rem; }
.date-other { min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font: inherit; }
.wiz-suggest .chip { min-height: 40px; }
.wiz-foot { margin-top: 6px; }
.wiz-next { width: 100%; min-height: 58px; font-size: 0.9rem; }
.wiz-next:disabled { opacity: 0.4; cursor: default; }
.review { display: grid; margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); }
.review__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px; padding: 12px 16px; border-top: 1px solid var(--line); }
.review__row .linkish { grid-column: 2; grid-row: 1 / span 2; }
.review__row:first-child { border-top: 0; }
.review dt { grid-column: 1; color: var(--gray); font-size: 0.82rem; }
.review dd { grid-column: 1; margin: 0; font-size: 1.02rem; font-weight: 600; overflow-wrap: break-word; }
.book-title { width: 100%; min-height: 56px; padding: 12px 16px; border: 1.5px solid #cfcfcd; border-radius: 14px; background: var(--white); color: var(--ink); font: 400 1.1rem/1.4 var(--font); }
.book-notes textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfcfcd; border-radius: 14px; font: 400 1rem/1.4 var(--font); }
.book-problem { display: grid; gap: 10px; }
.book-problem:empty { display: none; }
.book-done .serve-actions { margin-top: 18px; }
@media (min-width: 640px) {
  .pick-list--two { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pick-list--times { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .wiz-next { width: auto; min-width: 260px; }
}
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.person { padding: 16px 18px; border: 1px solid var(--line); background: var(--white); break-inside: avoid; }
.person.is-awaiting { border-style: dashed; }
.person--empty { grid-column: 1 / -1; color: var(--gray); }
.person__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.person h3 { font-family: var(--font); font-size: 1.05rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.person__count { flex: none; font-size: 0.85rem; color: var(--gray); }
.person__status { margin: 4px 0 0; font-size: 0.88rem; color: var(--gray); }
.person__answers { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.92rem; }
.person__answers li { display: flex; justify-content: space-between; gap: 12px; }
.person__answers span { color: var(--gray); }
.person__notes { margin: 10px 0 0; padding: 8px 10px; background: var(--mist); font-size: 0.9rem; white-space: pre-line; }
.person__contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; font-size: 0.92rem; }
.person__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 14px; font-size: 0.88rem; color: var(--gray); }
.person__actions .btn { min-height: 44px; padding: 10px 18px; }
.person__actions .btn--solid { flex: 1 1 auto; }
.linkpage__how { max-width: 44rem; margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--ink); background: var(--mist); font-size: 0.95rem; }
.linkpage__filter { display: flex; flex: none; align-items: center; gap: 10px; min-height: 48px; font-size: 0.95rem; cursor: pointer; }
.linkpage__filter input { width: 20px; height: 20px; accent-color: var(--ink); }

/* Printing the list (for the door): just the list. */
@media print {
  .nav, .nav__progress, .fab, .footer, .toast, .linkpage__tools, .linkpage__how, .person__actions, .skip-link { display: none !important; }
  .linkpage { padding-top: 0; }
  .people { grid-template-columns: 1fr 1fr; }
}

/* ---------- Events page and sign-up form on phones ---------- */

@media (max-width: 600px) {
  /* A shorter banner, so the first events show on the first screen. */
  .subhero { height: 44svh; min-height: 290px; max-height: 420px; }
  .events-page { padding-top: 20px; }

  /* The month: a slim heading that stays in view while you scroll its events. */
  .month { gap: 0; margin-bottom: 26px; }
  .month__label {
    position: sticky; top: calc(var(--nav-h) + 14px + env(safe-area-inset-top, 0px)); z-index: 4;
    display: flex; align-items: baseline; gap: 10px;
    margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) 10px;
    font-size: 1.65rem; background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .month__label small { margin: 0; }

  /* A card: the date beside the title and time; everything else uses the full width. */
  .event-card { grid-template-columns: 50px minmax(0, 1fr); column-gap: 14px; row-gap: 0; padding: 22px 0; }
  .event-card__body { display: contents; }
  .event-card > .event-row__date { grid-row: 1 / span 2; }
  .event-card .event-row__day { font-size: 2.5rem; }
  .event-card .event-row__month { margin-top: 4px; font-size: 0.7rem; }
  .event-card h3 { grid-column: 2; font-size: 1.55rem; line-height: 1.1; }
  .event-card__meta { grid-column: 2; margin-top: 8px; gap: 4px 16px; font-size: 0.9rem; }
  .event-card__reg, .event-card__desc, .event-card__img, .event-card__actions { grid-column: 1 / -1; }
  .event-card__reg {
    align-items: flex-start; margin-top: 16px; padding: 11px 13px; background: var(--mist);
    font-size: 0.86rem; line-height: 1.45; letter-spacing: 0.01em; text-transform: none;
  }
  .event-card__reg .event-card__dot { margin-top: 6px; }
  .event-card__desc { margin-top: 14px; font-size: 0.98rem; }
  .event-card__img { margin-top: 16px; }
  .event-card__actions { gap: 8px; margin-top: 16px; }
  .event-card__actions .btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; letter-spacing: 0.12em; white-space: normal; text-align: center; }
  .event-card__actions .btn--solid { flex-basis: 100%; min-height: 52px; }
  .event-card__actions .label-long { display: none; }
  .event-card__actions .label-short { display: inline; }
  .event-card.is-target { box-shadow: 0 0 0 10px var(--mist); }
  .past-toggle .btn { width: 100%; }

  /* The sign-up form rises from the bottom of the screen. */
  .modal { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .modal__body { --pad: 22px; padding-top: 30px; }
  .modal__body h2 { padding-right: 36px; font-size: 1.9rem; }
  .form__bar > .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
