/* Landing page styles (index.html). Tokens live in tokens.css; rules and values follow DESIGN.md.
   "Morning lilac": one centred column on a light page, lit by soft lilac glows.
   EB Garamond for headlines and reading text, a system sans for labels, buttons and forms.
   Scripture verses, the gold cross rule and rubric crosses are the only ornament. */

/* ---- base ---- */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--night); }
body {
  background: var(--night); color: var(--ink);
  font-family: var(--serif); font-size: var(--fs-body); line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: clip;
}
/* lilac light: two soft glows that stay put while the page scrolls */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42vmax 34vmax at 88% -6%, rgba(201,168,205,.38), transparent 70%),
    radial-gradient(36vmax 30vmax at -8% 62%, rgba(201,168,205,.22), transparent 70%);
}
.wrap { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lilac); }
h1, h2, h3 { font-weight: 500; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
::selection { background: var(--lilac-tint); color: var(--ink); }
section { padding-block: 20px; }
.sec-title { font-size: clamp(var(--fs-heading), 5vw, var(--fs-headline)); line-height: 1.2; margin-bottom: 14px; }
.lead { font-size: clamp(var(--fs-title), 3.4vw, var(--fs-heading)); line-height: 1.35; max-width: 34ch; text-wrap: pretty; }
.vision { font-style: italic; color: var(--lilac); }
.measure { max-width: 58ch; }
.center { text-align: center; }
.center .measure, .center .lead { margin-inline: auto; }

/* labels and rubrics: small spaced sans capitals in lilac; a rubric adds a gold Greek cross */
.label { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); }
.rubric::before { content: ""; display: inline-block; width: .8em; height: .8em; margin: 0 .6em .1em 0; vertical-align: middle; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M4.1 0h1.8v4.1H10v1.8H5.9V10H4.1V5.9H0V4.1h4.1z' fill='%23a8843f'/%3E%3C/svg%3E") center / contain no-repeat; }
.note { font-family: var(--sans); font-size: var(--fs-sm); color: var(--soft); line-height: 1.55; margin: 0; }
.note a, .consent a { color: inherit; }

/* signature: gold rule broken by a cross */
.rule { width: 132px; height: 12px; border: 0; margin: 20px auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 12'%3E%3Cpath d='M0 6h52M80 6h52' stroke='%23a8843f'/%3E%3Cpath d='M66 .5v11M60.5 6h11' stroke='%23a8843f' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---- hero ---- */
.hero { text-align: center; padding-top: 40px; padding-bottom: 24px; }
.hero img.logo { width: 84px; height: auto; display: block; margin: 0 auto 14px; border-radius: 50%; background: #f6f0f4; box-shadow: 0 0 0 6px var(--lilac-tint), 0 10px 30px rgba(122,79,132,.22); }
.hero h1 { font-size: clamp(34px, 10vw, 92px); letter-spacing: .04em; line-height: 1.05; text-transform: uppercase; }
.hero h1 .two { color: var(--gold); }
.hero .sub { margin-top: 16px; }
.hero .tag { font-size: clamp(var(--fs-title), 4vw, var(--fs-heading)); font-style: italic; line-height: 1.35; color: var(--lilac); width: fit-content; margin-inline: auto; }

/* ---- tabs: sticky segmented pill bar ---- */
.tabs {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px; margin: 4px 0 26px;
  background: rgba(252,249,252,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(60,30,70,.08);
}
.tab {
  font-family: var(--sans); font-size: var(--fs-sm); font-weight: 500; letter-spacing: .02em; line-height: 1.15;
  color: var(--ink); background: transparent; border: 0; border-radius: 999px;
  padding: 9px 8px; min-height: 44px; cursor: pointer;
}
.tab:hover { background: rgba(122,79,132,.08); }
.tab[aria-selected="true"] { background: var(--lilac); color: var(--night); }

/* ---- event band (When / Time / Where) ---- */
.event { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(255,255,255,.82); margin: 8px 0 0; }
.event > div { padding: 22px 16px; text-align: center; min-width: 0; }
.event > div + div { border-left: 1px solid var(--line); }
.event .big { font-size: var(--fs-heading); line-height: 1.15; margin-top: 6px; }
.event .big.nowrap { white-space: nowrap; }
.event .small { font-family: var(--sans); font-size: var(--fs-sm); color: var(--soft); margin-top: 6px; }
.mylocal { font-family: var(--sans); font-size: var(--fs-sm); color: var(--soft); text-align: center; margin: 14px 0 0; }
.mylocal b { font-weight: 600; color: var(--ink); }
.event-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; }
.event-cta .btn { width: auto; padding: 15px 34px; }

/* ---- buttons ---- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .04em;
  text-decoration: none; text-align: center; justify-content: center; align-items: center;
  background: var(--lilac); color: var(--night); border: 0; border-radius: 999px; padding: 15px 26px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(122,79,132,.22);
}
.btn:hover { background: var(--lilac-hover); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: rgba(122,79,132,.06); border-color: var(--lilac); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn.start { display: flex; margin: 0 auto; }
.cal { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cal.always { margin-top: 0; justify-content: center; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }

/* ---- guest speaker with the sign-up in the same card ---- */
section.guest { padding-top: 14px; }
.card { background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 16px 44px rgba(60,30,70,.07); }
.guest p { margin: 14px 0 0; }
.guest #speakerInfo > p:not(.live) { max-width: 68ch; }
.speaker-head { display: grid; grid-template-columns: 120px 1fr; gap: 4px 22px; align-items: center; margin-top: 18px; }
.speaker-head h2 { font-size: clamp(var(--fs-heading), 6vw, var(--fs-headline)); line-height: 1.2; align-self: end; }
.speaker-head .storyhead { font-size: var(--fs-title); font-style: italic; line-height: 1.3; color: var(--lilac); text-wrap: balance; margin: 0; align-self: start; }
.joelphoto { grid-row: 1 / span 2; width: 120px; height: 150px; margin: 0; border-radius: 14px; overflow: hidden; background: var(--night-3); }
.joelphoto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 4px; }
.stats div { border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.stats b { display: block; font-size: var(--fs-title); font-weight: 600; line-height: 1.1; color: var(--lilac); overflow-wrap: anywhere; }
.stats span { display: block; font-family: var(--sans); font-size: var(--fs-sm); color: var(--soft); line-height: 1.4; margin-top: 4px; }
.guest p.live { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); margin-top: 18px; }
.guest p.soon { font-size: var(--fs-title); font-style: italic; line-height: 1.35; color: var(--soft); margin: 12px 0 0; }
.signup-area { margin: 24px auto 0; padding-top: 24px; border-top: 1px solid var(--line); max-width: 560px; }
.guest p.promoline { font-size: var(--fs-title); line-height: 1.3; text-align: center; margin: 0 0 18px; }

/* ---- multi-step sign-up forms ---- */
form { display: grid; gap: 14px; }
label { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); display: grid; gap: 6px; }
.progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 25%; background: var(--lilac); transition: width .25s ease; }
.q label.ql, .q legend { font-family: var(--serif); font-size: var(--fs-title); line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--ink); display: block; margin: 6px 0 12px; padding: 0; }
.q label.ql-2 { margin-top: 22px; }
.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q .opt { font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-left: 6px; }
.q .hint { font-family: var(--sans); margin: 10px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--soft); }
input[type=text], input[type=email], input[type=tel], textarea {
  font: inherit; font-size: var(--fs-body); color: var(--ink); caret-color: var(--lilac); background: var(--night-3);
  border: 1px solid #9a849a; border-radius: 10px; padding: 12px 14px; width: 100%; min-width: 0;
}
input:focus, textarea:focus { border-color: var(--lilac); }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #7f6b81; opacity: 1; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error-rose); }
/* checkboxes and radios drawn here, so their outline reads clearly on the dark cards */
.q input[type=checkbox], .q input[type=radio] { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 0; flex: 0 0 auto; border: 1.5px solid var(--soft); background: var(--night-2); cursor: pointer; }
.q input[type=checkbox] { border-radius: 5px; }
.q input[type=radio] { border-radius: 50%; }
.q input[type=checkbox]:checked { border-color: var(--lilac); background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.q input[type=radio]:checked { border-color: var(--lilac); background: var(--lilac); box-shadow: inset 0 0 0 4px var(--night-3); }
.q input[aria-invalid="true"] { border-color: var(--error-rose); }
.recap { font-family: var(--sans); font-size: var(--fs-sm); color: var(--lilac); margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
/* retreat date choice: each option is a full-width row */
.choice { display: grid; gap: 8px; }
.choice label { font-family: var(--serif); font-size: var(--fs-body); letter-spacing: 0; text-transform: none; color: var(--ink); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--night-3); cursor: pointer; line-height: 1.3; }
.choice label:hover { border-color: var(--lilac); }
.choice label:has(input:checked) { border-color: var(--lilac); background: var(--lilac-tint); }
.choice small { display: block; font-family: var(--sans); font-size: var(--fs-xs); color: var(--soft); margin-top: 2px; }
.q label.consent { font-family: var(--sans); font-size: var(--fs-sm); letter-spacing: 0; text-transform: none; color: var(--soft); line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; }
.q label.consent input { margin-top: 1px; }
.nav { display: flex; gap: 10px; }
.nav .btn { display: inline-flex; flex: 0 0 auto; }
.nav .grow { flex: 1 1 auto; }
.error { font-family: var(--sans); font-size: var(--fs-sm); color: var(--error-rose); min-height: 1.2em; margin: 0; }
.done h3 { font-size: var(--fs-heading); line-height: 1.3; }
.done .done-text { margin: 10px 0 0; }
.fallback { margin-top: 16px; }
.fallback .note { margin: 0 0 12px; }
.mail { font-weight: 600; color: var(--ink); user-select: all; }
.joincard { background: var(--night-2); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 28px; max-width: 540px; margin: 0 auto; text-align: left; box-shadow: 0 16px 44px rgba(60,30,70,.07); }
.joincard > div > h2, .joincard > div > .note { text-align: center; }
.joincard h2 { font-size: var(--fs-heading); line-height: 1.3; }
.joincard .intro { margin: 8px 0 18px; }
@media (prefers-reduced-motion: reduce) { .progress i { transition: none; } html { scroll-behavior: auto; } }

/* ---- Online meet: format, voices, book ---- */
.format { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.format li { padding: 14px 0; border-top: 1px solid var(--line); font-size: var(--fs-title); line-height: 1.3; }
.format li span { display: block; font-family: var(--sans); font-size: var(--fs-sm); color: var(--soft); margin-top: 6px; }
#panel-gathering .lead { max-width: none; text-wrap: wrap; }
.intro-lead { font-size: var(--fs-title); line-height: 1.4; color: var(--soft); max-width: 40ch; margin: 6px 0 0; }
.intro-lead + .vision { margin: 12px 0 0; }
.intro-body { margin: 18px 0 0; max-width: 68ch; }
.sec-intro { margin: 0 0 18px; }
.voices { display: grid; }
.voice { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.voice h3 { font-size: var(--fs-title); line-height: 1.3; }
.voice .role { font-family: var(--sans); font-size: var(--fs-sm); color: var(--soft); margin-top: 4px; }
.voice p { margin: 0; }
.book { background: linear-gradient(135deg, var(--lilac-tint) 0%, var(--night-2) 75%); border: 1px solid var(--line-strong); color: var(--ink); border-radius: 18px; padding: 32px; display: grid; gap: 8px; }
.book h2 { font-size: clamp(var(--fs-heading), 5vw, var(--fs-headline)); line-height: 1.2; }
.book p { margin: 0; max-width: 60ch; }
.book .booksub { font-style: italic; line-height: 1.35; color: var(--lilac); margin-bottom: 6px; }
.closing > p { max-width: 48ch; margin: 0 auto 22px; color: var(--soft); }

/* ---- photos ---- */
.photopair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px auto 0; max-width: 600px; }
.photopair figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--night-3); }
.photopair img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---- Retreats ---- */
#retreat-panel { padding-top: 8px; }
#retreat-panel .sec-title { margin-top: 8px; }
#retreat-panel .lead { margin: 0; max-width: 36ch; color: var(--lilac); font-style: italic; }
.retreat-intro { max-width: 58ch; margin: 14px 0 0; }
.album { position: relative; margin-top: 28px; }
.album-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0; border-radius: 14px; }
.album-track::-webkit-scrollbar { display: none; }
.album-track figure { margin: 0; flex: 0 0 auto; scroll-snap-align: start; height: clamp(260px, 50vw, 400px); border-radius: 14px; overflow: hidden; background: var(--night-3); }
.album-track img { display: block; height: 100%; width: auto; max-width: none; }
.album-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(34,24,36,.72); color: #fff; font-family: var(--sans); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.album-btn.prev { left: 8px; }
.album-btn.next { right: 8px; }
.album-btn:focus-visible { outline-offset: 2px; }
.album-hint { font-family: var(--sans); font-size: var(--fs-sm); color: var(--soft); margin: 10px 2px 0; }
.invite { background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-top: 28px; }
.invite p { margin: 14px 0 0; max-width: 60ch; }
.invite p:first-child { margin-top: 0; }
.invite .sign { font-size: var(--fs-title); font-style: italic; line-height: 1.35; color: var(--lilac); }
.verse { font-style: italic; color: var(--soft); padding-top: 14px; border-top: 1px solid var(--line); }
.verse span { display: block; font-family: var(--sans); font-style: normal; font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); margin-top: 6px; }
.upnext { border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(255,255,255,.82); padding: 8px 24px; margin-top: 28px; }
.upnext .row { display: grid; grid-template-columns: 150px 1fr; gap: 6px 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.upnext .row:first-of-type { border-top: 0; }
.upnext .when { font-family: var(--sans); font-size: var(--fs-sm); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); padding-top: 7px; }
.upnext .where { font-size: var(--fs-heading); line-height: 1.3; }
.upnext .where span { display: block; font-family: var(--sans); font-size: var(--fs-sm); color: var(--soft); margin-top: 2px; }
.pray { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.retreat-join { margin-top: 28px; }

/* ---- Bible Study ---- */
#bible-intro { padding-top: 8px; }
#bible-intro .sec-title { margin-top: 8px; }
#bible-intro .lead { margin-block: 0; max-width: 36ch; color: var(--lilac); font-style: italic; }
#bible-intro .measure { margin-top: 14px; margin-bottom: 0; }
/* the 21 subjects: the first six always visible, the rest behind a native disclosure.
   Each list resets the counter itself, so the hidden list carries on at 7. */
.subjects { counter-reset: s; }
.more .subjects { counter-reset: s 6; }
.subjects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.subjects li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--fs-body); line-height: 1.35; }
.subjects li::before { content: counter(s); font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600; color: var(--gold); padding-top: 3px; text-align: right; padding-right: 2px; }
.more summary { list-style: none; width: fit-content; margin: 18px auto; }
.more summary::-webkit-details-marker { display: none; }
.more .hide, .more[open] .show { display: none; }
.more[open] .hide { display: inline; }
.welcome { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 620px; margin: 24px auto 0; padding: 22px 20px; background: var(--night-2); border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.welcome figure { margin: 0; width: 220px; max-width: 70%; border-radius: 14px; overflow: hidden; }
.welcome img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; height: auto; }
.welcome h2 { font-size: var(--fs-heading); line-height: 1.3; margin: 6px 0 10px; }
.welcome p { margin: 0 0 12px; }
.welcome .sign { font-size: var(--fs-title); font-style: italic; line-height: 1.35; color: var(--lilac); margin: 14px 0 0; }

/* ---- Scripture: one featured verse per tab, introduced by the gold cross rule ---- */
.scripture { margin: 40px auto 32px; max-width: 760px; text-align: center; }
.scripture.long { max-width: 820px; }
.scripture::before { content: ""; display: block; width: 132px; height: 12px; margin: 0 auto 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 12'%3E%3Cpath d='M0 6h52M80 6h52' stroke='%23a8843f'/%3E%3Cpath d='M66 .5v11M60.5 6h11' stroke='%23a8843f' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; }
.scripture blockquote { margin: 0 auto; max-width: 24em; font-style: italic; font-weight: 400; font-size: clamp(var(--fs-heading), 4.4vw, var(--fs-headline)); line-height: 1.25; text-wrap: balance; }
.scripture.long blockquote { font-size: clamp(var(--fs-title), 3vw, var(--fs-heading)); line-height: 1.4; }
.scripture figcaption { margin-top: 18px; font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); }

/* ---- footer and floating bar ---- */
footer { text-align: center; padding: 40px 0 104px; }
footer .org { font-size: var(--fs-title); line-height: 1.35; letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; }
footer .links { font-family: var(--sans); font-size: var(--fs-sm); color: var(--soft); margin-top: 16px; }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; background: rgba(252,249,252,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sticky .btn { width: 100%; max-width: 420px; }

/* ---- wide screens ---- */
@media (min-width: 640px) {
  .welcome { flex-direction: row; text-align: left; gap: 26px; padding: 24px; }
  .welcome figure { flex: 0 0 210px; max-width: none; }
}

/* ---- phones (720px and below): one column, full-width buttons, stacked event rows ---- */
@media (max-width: 720px) {
  html { -webkit-text-size-adjust: 100%; }
  /* a compact header, so the event band starts on the first screen */
  .hero { padding-top: 16px; padding-bottom: 12px; }
  .hero img.logo { width: 52px; margin-bottom: 8px; box-shadow: 0 0 0 4px var(--lilac-tint); }
  .hero h1 { font-size: clamp(30px, 9.8vw, 52px); }
  .hero .sub { margin-top: 8px; }
  .hero .rule { margin: 12px auto; }
  .hero .tag { font-size: var(--fs-body); }
  .tab { font-size: 14px; padding: 8px 4px; line-height: 1.05; }
  .sec-title { font-size: var(--fs-heading); }
  .lead { max-width: none; }
  .btn { display: block; width: 100%; padding: 16px 20px; }
  /* sign-up steps: the main button gets the full row, Back sits below it */
  .nav { flex-direction: column-reverse; }
  .nav .btn { width: 100%; }
  .nav .btn.ghost { border-color: transparent; }
  .event-cta .btn { width: 100%; padding: 16px 20px; }
  .cal { flex-direction: column; }
  /* event band: label above its value, so nothing has to wrap */
  .event { grid-template-columns: 1fr; }
  .event > div { text-align: left; padding: 14px 18px; }
  .event > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .event .big { font-size: var(--fs-title); margin-top: 2px; }
  .event .small { margin-top: 2px; }
  .format { grid-template-columns: 1fr; }
  .voice { grid-template-columns: 1fr; gap: 6px; }
  .book { padding: 24px; }
  /* Turnstile needs 300px inside the sign-up cards */
  .card, .joincard { padding: 22px 20px; }
  .invite { padding: 22px 18px; }
  .upnext { padding: 6px 18px; }
  .upnext .row { grid-template-columns: 1fr; }
  .upnext .when { padding-top: 0; }
  .subjects { grid-template-columns: 1fr; }
  .subjects li { padding: 8px 0; grid-template-columns: 26px 1fr; }
}
@media (max-width: 480px) {
  .speaker-head { grid-template-columns: 96px 1fr; column-gap: 16px; }
  .joelphoto { width: 96px; height: 120px; }
}
/* Wider photo box for a speaker photo with two people. */
.speaker-head:has(.duo) { grid-template-columns: 200px 1fr; }
.joelphoto.duo { width: 200px; }
.joelphoto.duo img { object-position: 60% 30%; }
@media (max-width: 600px) {
  .speaker-head:has(.duo) { grid-template-columns: 1fr; }
  .joelphoto.duo { grid-row: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; }
}
/* Roundtable: session flow as one numbered column; the home Bible Study as a compact note. */
.subjects.flow { grid-template-columns: 1fr; margin-bottom: 18px; }
.welcome.small { flex-direction: row; text-align: left; align-items: center; gap: 32px; max-width: 860px; padding: 32px; }
.welcome.small figure { width: 260px; flex: none; }
.welcome.small .label { font-size: var(--fs-sm); margin-bottom: 8px; }
.welcome.small p { font-size: var(--fs-body); line-height: 1.5; margin-bottom: 14px; }
.welcome.small .sign { font-size: var(--fs-title); margin-top: 6px; }
@media (max-width: 600px) { .welcome.small { flex-direction: column; text-align: center; padding: 24px 20px; } .welcome.small figure { width: 220px; } }
.withphoto { display: grid; grid-template-columns: 1fr 200px; gap: 32px; align-items: center; }
.withphoto p { margin: 0; }
.groupshot { margin: 0; text-align: center; }
.groupshot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.groupshot figcaption { font-family: var(--sans); font-size: var(--fs-xs); color: var(--soft); margin-top: 8px; }
@media (max-width: 600px) { .withphoto { grid-template-columns: 1fr; } .groupshot { max-width: 220px; margin: 0 auto; } }
/* Tab bar: Online meet and Roundtable share one tinted capsule; Retreats stands apart. */
.tabs { gap: 0; }
#tab-gathering, #tab-roundtable { background: var(--lilac-tint); }
#tab-gathering { border-radius: 999px 0 0 999px; }
#tab-roundtable { border-radius: 0 999px 999px 0; }
#tab-retreats { margin-left: 12px; }
#tab-gathering[aria-selected="true"], #tab-roundtable[aria-selected="true"] { background: var(--lilac); border-radius: 999px; }
/* Pointer from one online format to the other. */
.crosslink { text-align: center; max-width: 620px; margin: 8px auto 32px; }
.crosslink p { margin: 0 0 14px; color: var(--soft); }
.flowmore summary { margin: 22px 0 0; }
.flowmore .subjects.flow { margin-top: 16px; }
.dates { list-style: none; margin: 14px 0 0; padding: 0; max-width: 460px; }
.dates li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.dates b { font-family: var(--sans); font-weight: 600; color: var(--gold); }
.dates li.ot { color: var(--lilac); font-style: italic; }
/* Roundtable dates and the Zoom photo read as one block: the list runs up to the photo. */
.withphoto { grid-template-columns: minmax(0, 1fr) 220px; align-items: end; }
.withphoto .dates { max-width: none; }
/* Emanuel's retreat letter: a narrower card, so the text fills it. */
.invite { max-width: 700px; margin-inline: auto; }
/* Desktop header: tighter, so the date and the button show sooner. */
@media (min-width: 721px) {
  .hero { padding-top: 24px; padding-bottom: 16px; }
  .hero img.logo { width: 64px; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(34px, 8vw, 76px); }
  .hero .sub { margin-top: 10px; }
  .hero .rule { margin: 14px auto; }
}
.invite p { max-width: none; }
/* Roundtable: why we meet, a taste of the practices, timed session flow. */
.why { list-style: none; margin: 18px 0 0; padding: 0; max-width: 68ch; display: grid; gap: 10px; }
.why li { padding-left: 1.4em; position: relative; }
.why li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65em; height: .65em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M4.1 0h1.8v4.1H10v1.8H5.9V10H4.1V5.9H0V4.1h4.1z' fill='%23a8843f'/%3E%3C/svg%3E") center / contain no-repeat; }
.why b { font-weight: 600; }
.flowmore .subjects.flow { counter-reset: s; }
.subjects.flow li { grid-template-columns: 30px 1fr auto; }
.subjects.flow small { font-family: var(--sans); font-size: var(--fs-sm); color: var(--soft); padding-top: 3px; white-space: nowrap; }
@media (max-width: 720px) { .subjects.flow li { grid-template-columns: 26px 1fr auto; } }
/* Roundtable dates as calendar tiles; all-hands evenings in lilac tint. */
.caldates { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.caldates li { background: var(--night-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 14px; display: grid; gap: 6px; align-content: start; }
.caldates time { display: grid; }
.caldates .m { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.caldates .d { font-size: var(--fs-heading); line-height: 1; font-variant-numeric: lining-nums; }
.caldates .t { font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; }
.caldates .t small { display: block; font-weight: 400; color: var(--soft); font-size: var(--fs-xs); margin-top: 2px; }
.caldates li.ot { background: var(--lilac-tint); border-color: var(--line-strong); }
.caldates li.ot .t { color: var(--lilac); }
.withphoto { align-items: start; }
.withphoto .groupshot { margin-top: 8px; }
.regions { margin-top: 26px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--night-2); max-width: 760px; }
.regions h3 { font-size: var(--fs-title); line-height: 1.3; margin-bottom: 8px; }
.regions p { margin: 0; }
.regions p + p { margin-top: 10px; }
@media (max-width: 720px) { .caldates { grid-template-columns: repeat(2, minmax(0, 1fr)); } .regions { padding: 20px 18px; } }
@media (max-width: 600px) { .withphoto { grid-template-columns: 1fr; } }
/* Sign-up reassurance and the closing invitation on the Online meet tab. */
.signup-area .reassure { text-align: center; max-width: 44ch; margin: -8px auto 18px; }
.endcta { margin-top: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.endcta p { color: var(--soft); font-family: var(--sans); font-size: var(--fs-sm); margin: 0 auto 18px; }
/* Calendar tiles: the Roundtable sessions are the strong tiles; all-hands evenings are outlined only. */
.caldates li { border-color: var(--line-strong); box-shadow: 0 6px 18px rgba(60,30,70,.06); }
.caldates li .d { color: var(--lilac); }
.caldates li.ot { background: transparent; border: 1px dashed var(--line-strong); box-shadow: none; }
.caldates li.ot .d { color: var(--soft); }
.caldates li.ot .t { color: var(--soft); font-weight: 500; }
/* Regions as a quiet note, not another card. */
.regions.plain { border: 0; background: none; padding: 0; margin-top: 22px; max-width: 68ch; }
.regions.plain h3 { font-size: var(--fs-body); font-weight: 600; margin-bottom: 4px; }
.flowmore summary { margin: 22px 0 0; }
/* Review fixes: wider intro, purpose descriptions in reading size, comfortable line lengths, two stats. */
.intro-lead { max-width: 54ch; }
#panel-gathering .format li span { font-family: var(--serif); font-size: var(--fs-body); line-height: 1.5; color: var(--soft); }
.guest #speakerInfo > p:not(.live) { max-width: 62ch; }
.regions.plain { max-width: 62ch; }
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 440px; }
.hero .rule { margin-top: 14px; }
/* Calendar tiles: date on one line ("December 17") in the small gold label style; no big numerals. */
.caldates li { gap: 4px; }
.caldates .m { white-space: nowrap; }
/* More photos: Zurich lunch beside the Online meet intro, the Zoom call beside the sign-up, Roundtable table photos. */
.intro-photo { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; align-items: center; }
.sidephoto, .zoomshot { margin: 0; text-align: center; }
.sidephoto img, .zoomshot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.sidephoto figcaption, .zoomshot figcaption, .photonote { font-family: var(--sans); font-size: var(--fs-xs); color: var(--soft); margin-top: 8px; }
.signup-area.withzoom { max-width: 720px; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 32px; align-items: center; }
.rtphotos { max-width: 520px; margin: 24px 0 0; }
.photonote { margin: 8px 0 0; max-width: 520px; }
@media (max-width: 720px) {
  .intro-photo { grid-template-columns: 1fr; gap: 20px; }
  .sidephoto { max-width: 280px; margin: 0 auto; }
  .signup-area.withzoom { grid-template-columns: 1fr; gap: 20px; }
  .zoomshot { max-width: 200px; margin: 0 auto; }
}
/* Roundtable intro: text left, the two table photos on the right. */
.rt-intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: center; }
.rt-intro .lead { max-width: 30ch; }
.rtside .rtphotos { margin: 0; gap: 10px; }
.rtside .photonote { margin-top: 8px; }
@media (max-width: 900px) { .rt-intro { grid-template-columns: 1fr; gap: 20px; } .rtside { max-width: 420px; } }
/* Roundtable: library photo beside the intro, Bible table photo beside the calendar. */
.rt-intro { grid-template-columns: minmax(0, 1fr) 260px; }
.whenwrap.withtable { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: center; }
@media (max-width: 900px) { .rt-intro .rtside { max-width: 280px; margin: 0 auto; } }
@media (max-width: 720px) { .whenwrap.withtable { grid-template-columns: 1fr; gap: 20px; } .whenwrap.withtable .sidephoto { max-width: 260px; margin: 0 auto; } }
/* Phones and narrow tablets: Roundtable intro stacks (must come after the desktop column rule above). */
@media (max-width: 900px) {
  .rt-intro { grid-template-columns: 1fr; gap: 20px; }
  .rt-intro .lead { max-width: none; }
  .rt-intro .rtside { max-width: 300px; width: 100%; margin: 0 auto; }
}
