/* ======================================================================
   Join Us page body, egw-diaspora theme 3.14.0. Loaded by page-join-us.php only, after global.css, the kit
   (egw-kit, or assets/css/egw-kit-scoped.css) and the shared flag picker (assets/css/egw-picker.css). Every rule here is
   limited to .j-page, the page body's wrapper, so the theme's header, menus, quick links and footer are untouched.

   Ported from the approved Join Us preview v1.4.2 (source/join.css, Fable 5.1), with these additions:
   1. the preview's own section helpers (.sec-head, .actions and their centring), which the kit leaves out;
   2. room for the theme's fixed header (--nav-height: its real height, kept up to date by the chrome);
   3. the theme's own pickers (EGWForms, dressed by egw-picker.css) in place of the preview's stand-in pickers;
   4. answers to the global.css rules that would otherwise reach into the page; each one names the rule it answers;
   5. photos in the dark theme through the kit's .photo (in place of the preview's grayscale block, join.css 285-293);
   6. the viewer's YouTube and Vimeo player (.lb-frame), which the preview does not show;
   7. two fixes beyond the preview, from the rules that came after its approval: the selected filter in the kit's inverted
      colours (R36) and the two-field rows that stack before a field gets too narrow for a whole name (R29).
   Every colour is a kit token, so light and dark ship together. Motion uses transform, opacity, translate, scale and
   clip-path only, and stops under prefers-reduced-motion. No overflow: hidden on any ancestor of the pinned rail.
   ====================================================================== */

/* ---------- 00 page frame: the theme's fixed header, anchors, section helpers ---------- */
.j-page { padding-top: var(--nav-height, 72px); }
/* in-page links land just under the header (the preview's 78px with the header at rest); #join-form is the old page's anchor */
.j-page section[id], .j-page #join-form { scroll-margin-top: max(0px, calc(var(--nav-height, 72px) - 7px)); }
.j-page #joinForm { scroll-margin-top: calc(var(--nav-height, 72px) + 20px); } /* the cards' buttons glide to the form; it stops under the header, not behind it */
.j-page .actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.j-page .sec-head { display: grid; gap: var(--s-4); }
.j-page button.round { padding: 0; font: inherit; } /* the kit's .round has no padding of its own; a button's default padding would shift its icon */

/* ---------- 02 hero: copy beside the four facts, then the Customizer hero image in a band ---------- */
.j-page .j-hero { padding-block: clamp(1.5rem, 3vw, 2.5rem); overflow-x: clip; } /* kit change log 41 (Contact, Dennis 18:25): the page header keeps only its small bottom padding, never two paddings stacked */
.j-page .j-hero + .sec { padding-top: calc(var(--section) * .75); } /* the section after the page header starts at three quarters of --section */
.j-page .j-ph { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.j-page .j-ph-id { display: grid; gap: var(--s-5); justify-items: start; }
.j-page .j-ph-id h1 { font-size: clamp(2.8rem, 6.2vw, 4.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.j-page .j-ph-id .lead { max-width: 48ch; }
.j-page .j-ph-id .lead strong { color: var(--ink); font-weight: 600; }
.j-page .j-ph-id .actions { margin-top: var(--s-1); }
.j-page .j-glance { margin: 0; padding: var(--s-3); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.j-page .j-gl { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-3); align-items: center; padding: var(--s-3); border-radius: var(--r-sm); transition: background-color .12s ease; }
.j-page .j-gl:hover { background: var(--tint-1); }
.j-page .j-gl .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--page); }
.j-page .j-gl:hover .ic { transform: scale(1.08) rotate(-4deg); }
.j-page .j-gl dt { margin: 0; }
.j-page .j-gl dd { margin: 2px 0 0; font-size: var(--t-sm); font-weight: 600; color: var(--ink); line-height: 1.3; }
.j-page .j-bandfig { margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; }
.j-page .j-band { position: relative; height: clamp(180px, 28vw, 340px); border-radius: var(--r-xl); overflow: hidden; background: var(--well); box-shadow: var(--well-shadow); }
/* the photo carries the kit's .photo (black and white in the dark theme); its filter eases with the band's own moves */
.j-page .j-band img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 35%; scale: 1.06; translate: 0 var(--py, 0px); transition: translate .25s linear, scale 1.6s var(--ease-out), filter .3s ease; }
html.js-armed .j-page .j-band.rv:not(.in) img { scale: 1.14; }

/* ---------- 03 diaspora context: statement left, explanation right ---------- */
.j-page .j-ctx-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.j-page .j-ctx-head h2 { max-width: 16ch; }
.j-page .j-ctx-head .lead { max-width: 38ch; }
.j-page .j-ctx-head .lead strong { color: var(--ink); font-weight: 600; }
.j-page .j-ctx-card { padding: var(--s-2) var(--s-6); display: grid; }
.j-page .j-ctx-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-4); align-items: start; padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.j-page .j-ctx-row:first-child { border-top: 0; }
.j-page .j-ctx-row h3 { margin: 0 0 4px; font-size: var(--t-base); font-weight: 600; letter-spacing: -.005em; }
.j-page .j-ctx-row p { margin: 0; font-size: var(--t-base); line-height: 1.6; color: var(--ink-2); max-width: 50ch; }
.j-page .j-ctx-row p strong { color: var(--ink); font-weight: 600; }
.j-page .j-ctx-row .link { margin-top: var(--s-3); }
.j-page .j-ctx-row:hover .ic { transform: scale(1.1) rotate(-4deg); }

/* ---------- 04 two ways: the two definitions as cards that pre-select the form ---------- */
/* Dennis 06:08: "center the two cards", "everything within this should be centred": the row centres in the section and each card centres its content */
.j-page #s-ways .sec-head { text-align: center; justify-items: center; }
.j-page #s-ways .sec-head .lead { margin-inline: auto; }
.j-page .j-ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); margin: var(--s-5) auto 0; max-width: 980px; }
.j-page .j-way { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); text-align: center; justify-items: center; }
.j-page .j-way-top .ic { width: 40px; height: 40px; border-radius: 12px; }
.j-page .j-way-top { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); width: 100%; }
.j-page .j-way h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.j-page .j-way > p { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; max-width: 44ch; margin-inline: auto; }
.j-page .j-ticks { list-style: none; margin: var(--s-1) 0 0; padding: var(--s-3) 0 0; border-top: 1px solid var(--line); display: grid; justify-content: center; gap: var(--s-2); width: 100%; text-align: left; }
.j-page .j-ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.j-page .j-ticks .i { width: 18px; height: 18px; color: var(--ink); }
.j-page .j-ticks .i circle { stroke-dasharray: 60; stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease-out) calc(var(--i, 0) * .09s); }
.j-page .j-ticks .i path { stroke-dasharray: 20; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease-out) calc(.45s + var(--i, 0) * .09s); }
html.js-armed .j-page .j-way:not(.in) .j-ticks .i circle { stroke-dashoffset: 60; }
html.js-armed .j-page .j-way:not(.in) .j-ticks .i path { stroke-dashoffset: 20; }
.j-page .j-way .actions { margin-top: var(--s-1); justify-content: center; }
.j-page .j-way .actions .btn { min-height: 44px; padding: 0 var(--s-4); font-size: .9rem; white-space: normal; text-align: center; line-height: 1.2; } /* a longer language wraps to two lines instead of widening the card */
@media (max-width: 860px) {
  .j-page .j-ways { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 05 gallery: a photo wall of justified rows; every item keeps its own shape, nothing is cropped ---------- */
.j-page .j-gal-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); flex-wrap: wrap; }
.j-page .j-filter { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--well); box-shadow: var(--well-shadow); flex: none; }
.j-page .j-fbtn { height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font: 600 var(--t-sm)/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background-color .12s ease, color .12s ease, box-shadow .12s ease; }
.j-page .j-fbtn b { font-size: var(--t-xs); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.j-page .j-fbtn:hover { background: var(--tint-1); color: var(--ink); }
/* R36 (a fix beyond the preview): the selected kind stands out in the kit's inverted colours, in light and in dark, its count
   included; hovering it keeps them (the preview's var(--card) sat 1.03:1 against the filter's well) */
.j-page .j-fbtn.is-on, .j-page .j-fbtn.is-on:hover { background: var(--inv-bg); color: var(--inv-fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.j-page .j-fbtn.is-on b, .j-page .j-fbtn.is-on:hover b { color: var(--inv-fg); }
.j-page .j-fbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.j-page .j-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-6); }
.j-page .j-wall::after { content: ''; flex: 9999 1 0px; } /* without the script a short last row keeps its basis height */
.j-page .j-wall.js::after { display: none; }
.j-page .j-tile { position: relative; overflow: hidden; border: 0; padding: 0; margin: 0; border-radius: var(--r-md); background: var(--well); color: inherit; font: inherit; cursor: zoom-in; aspect-ratio: var(--ar); flex: calc(var(--ar) * 100) 1 calc(var(--ar) * 230px); max-width: 100%; }
.j-page .j-tile[hidden] { display: none; }
.j-page .j-wall > * { transition: opacity .7s var(--ease-out), translate .7s var(--ease-out), scale .7s var(--ease-out); }
html.js-armed .j-page .j-wall > :not(.in) { scale: .96; }
.j-page .j-tile img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: scale .9s var(--ease-out), filter .3s ease; } /* the photos' .photo: black and white in the dark theme */
.j-page .j-tile:hover img, .j-page .j-tile:focus-visible img { scale: 1.04; }
.j-page .j-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.j-page .j-tile .cap { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: var(--r-pill); background: var(--page); color: var(--ink); font-size: var(--t-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; translate: 0 6px; transition: opacity .12s ease, translate .3s var(--ease-spring); }
.j-page .j-tile:hover .cap, .j-page .j-tile:focus-visible .cap { opacity: 1; translate: none; }
.j-page .j-tile .play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--page); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-float); transition: scale .35s var(--ease-spring); }
.j-page .j-tile:hover .play { scale: 1.08; }
.j-page .j-tile .play .i { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; stroke: none; }
.j-page .j-gal-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4) var(--s-5); flex-wrap: wrap; margin-top: var(--s-4); }
.j-page .j-count { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (hover: none) { .j-page .j-tile .cap { display: none; } }
@media (max-width: 960px) { .j-page .j-gal-head { flex-direction: column; align-items: center; text-align: center; } }
@media (max-width: 640px) { .j-page .j-wall { gap: 6px; } .j-page .j-filter { max-width: 100%; flex-wrap: wrap; justify-content: center; } .j-page .j-fbtn { height: 34px; padding: 0 12px; } .j-page .j-gal-foot { flex-direction: column; text-align: center; } }

/* the media viewer holds a photo, a video file or a YouTube or Vimeo player, with a caption, a counter and arrows; swipe on touch.
   The kit's .lb (fixed, over the header: egw-chrome.css gives it z-index 1250) centres it; the scroll lock goes on html. */
.j-page .lb-fig { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); justify-items: center; width: 100%; max-width: 1100px; min-width: 0; touch-action: pan-y; }
.j-page .lb img, .j-page .lb video { max-height: 78vh; width: auto; border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #000; transition: none; } /* a photo's black and white (.photo) switches with its item, without the kit's ease */
/* the YouTube or Vimeo player (not in the preview): a 16:9 frame as large as the kit's .lb video may be */
.j-page .lb .lb-frame { display: block; width: min(100%, calc(100vw - 2 * var(--gutter)), calc(78vh * 16 / 9)); height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #000; }
.j-page .lb-cap { color: #FFFFFF; font-size: var(--t-sm); font-weight: 500; text-align: center; display: inline-flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }
.j-page .lb-cap .lb-kind { height: 22px; padding: 0 9px; border-radius: var(--r-pill); background: rgba(255,255,255,.16); color: #FFFFFF; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; }
.j-page .lb-cap .lb-kind:empty, .j-page .lb-cap span:empty { display: none; }
.j-page .lb-nav { position: absolute; left: var(--s-4); right: var(--s-4); top: calc(50% - 22px); display: flex; justify-content: space-between; pointer-events: none; }
.j-page .lb-nav .round { pointer-events: auto; }
.j-page .lb-count { position: fixed; top: calc(env(safe-area-inset-top, 0px) + var(--s-4) + 11px); left: var(--s-5); color: #FFFFFF; font-size: var(--t-sm); font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
@media (max-width: 960px) {
  .j-page .lb { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); }
  .j-page .lb-nav { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + var(--s-5)); justify-content: center; gap: var(--s-4); align-items: center; }
  .j-page .lb-count { position: static; min-width: 56px; text-align: center; }
  .j-page .lb img, .j-page .lb video { max-height: 66vh; }
  .j-page .lb .lb-frame { width: min(100%, calc(100vw - 2 * var(--gutter)), calc(66vh * 16 / 9)); }
}

/* ---------- 06 registration: a "what happens next" rail beside the form card ---------- */
.j-page .j-form-grid { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; margin-top: var(--s-6); }
.j-page .j-steps { position: sticky; top: calc(var(--nav-height, 72px) + 11px); display: grid; gap: var(--s-4); } /* the preview's 96px, under the theme's header */
.j-page .j-step-list { list-style: none; margin: 0; padding: 0; display: grid; }
.j-page .j-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-3); align-items: start; padding-block: var(--s-3); position: relative; }
.j-page .j-step .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--well); color: var(--muted); font-size: var(--t-xs); font-weight: 700; box-shadow: var(--well-shadow); transition: background-color .3s ease, color .3s ease, transform .35s var(--ease-spring); position: relative; z-index: 1; }
.j-page .j-step .n .i { width: 16px; height: 16px; stroke-width: 2.2; display: none; }
.j-page .j-step b { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); transition: color .3s ease; padding-top: 7px; }
.j-page .j-step small { display: block; font-size: var(--t-xs); color: var(--muted); margin-top: 2px; line-height: 1.45; }
.j-page .j-step::before { content: ""; position: absolute; left: 17px; top: calc(var(--s-3) + 40px); bottom: calc(-1 * var(--s-3) + 4px); width: 2px; border-radius: 2px; background: var(--line-strong); }
.j-page .j-step:last-child::before { display: none; }
.j-page .j-step.is-on .n { background: var(--btn); color: var(--btn-fg); box-shadow: none; transform: scale(1.08); }
.j-page .j-step.is-on b { color: var(--ink); }
.j-page .j-step.is-done .n { background: var(--ok-bg); color: var(--ok); box-shadow: none; }
.j-page .j-step.is-done .n .i { display: block; }
.j-page .j-step.is-done .n > span { display: none; }
.j-page .j-form-stage { display: grid; min-width: 0; }

/* R29 (a fix beyond the preview): the form card is a size container, so its two-field rows go side by side only while each field
   keeps room for a whole entry such as "Abena Oluwaseun Adjei-Mensah" (234px of text at 16px, 268px with the field's padding and
   border: two fields and the 16px gap need 552px), in every language and at every width (the preview's 1fr 1fr gave the referral
   name 232px at 1024px). Below that the fields stack, one under the other. */
.j-page .j-form { container: jform / inline-size; padding: clamp(var(--s-5), 3vw, var(--s-7)); display: grid; gap: var(--s-6); transition: opacity .45s var(--ease-out), translate .45s var(--ease-out), scale .45s var(--ease-out); }
.j-page .j-form.is-sent { opacity: 0; scale: .985; pointer-events: none; }
.j-page .j-fset { display: grid; gap: var(--s-4); min-width: 0; }
.j-page .j-fset > .micro { margin: 0 0 var(--s-1); }
.j-page .j-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
@container jform (min-width: 552px) { /* while the row has two columns, its labels share a row (subgrid), so the two fields stay level when one label wraps */
  .j-page .j-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; row-gap: 8px; }
  .j-page .j-row.two > .j-group { grid-row: span 3; grid-template-rows: subgrid; }
}
.j-page .j-group { display: grid; gap: 8px; min-width: 0; position: relative; align-content: start; }
.j-page .j-label { font-size: var(--t-sm); font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; line-height: 22px; min-height: 22px; }
.j-page .j-label .opt { font-weight: 500; color: var(--muted); font-size: var(--t-xs); line-height: inherit; }
.j-page .j-label .req { font-style: normal; font-weight: 500; color: var(--muted); font-size: var(--t-xs); line-height: inherit; } /* 3.59.x member pages (Dennis 23:09 18 Nov): r3 "(required)" in words takes class req as on the record, as quiet as "(optional)" */
.j-page .j-in { width: 100%; min-height: 52px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; background: var(--well); box-shadow: var(--well-shadow); color: var(--ink); font: 500 var(--t-base)/1.3 var(--font); font-size: max(1rem, 16px); outline: none; transition: border-color .15s ease, background-color .2s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none; }
.j-page .j-in::placeholder { color: var(--muted); opacity: 1; font-weight: 400; }
.j-page .j-in:hover { border-color: var(--line-strong); }
.j-page .j-in:focus, .j-page .j-in:focus-visible { border-color: var(--ink); background: var(--page); box-shadow: 0 0 0 4px var(--tint-2); outline: none; } /* global: input:focus-visible and select:focus brand rings */
.j-page .j-group.is-err .j-in { border-color: var(--live); }
.j-page .j-err { display: grid; grid-template-rows: 0fr; margin: 0; transition: grid-template-rows .3s var(--ease-out); }
.j-page .j-err > span { overflow: hidden; min-height: 0; display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--live); }
.j-page .j-err .i { width: 14px; height: 14px; flex: none; }
.j-page .j-group.is-err .j-err { grid-template-rows: 1fr; }
.j-page .j-group.is-err .j-err > span { padding-top: 2px; }

/* native selects in the well look, with a drawn chevron */
.j-page .j-sel { position: relative; }
.j-page .j-sel select { padding-right: 44px; cursor: pointer; background-image: none; } /* global: select's own chevron image, light and dark */
.j-page .j-sel select:invalid { color: var(--muted); font-weight: 400; }
.j-page .j-sel select option { color: var(--ink); font-weight: 500; }
.j-page .j-sel .chev { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; pointer-events: none; color: var(--ink-2); transition: transform .3s var(--ease-spring); }
.j-page .j-sel:focus-within .chev { transform: rotate(180deg); }

/* the pickers (egw-picker.css dresses them): the buttons as tall as the other fields (52px; egw-picker.css's own is 44px), the search
   fields 44px, and a field in error keeps its red edge on hover, on focus and while open, as the other fields do */
.j-page .egw-picker .j-in.egw-country-trigger, .j-page .egw-picker .j-in.egw-phone-country-btn { min-height: 52px; }
.j-page .egw-picker .j-in.egw-country-search, .j-page .egw-picker .j-in.egw-phone-search { min-height: 44px; }
.j-page .j-group.is-err .egw-picker .j-in { border-color: var(--live); }
/* phone row, the kit's .field-row (change log 43, Dennis 19:05): the dial code at its content width (never under 168px, as on Contact),
   the number takes the rest with a 14rem floor, and the pair wraps, the number under the code at full width, before either shrinks */
.j-page .j-phone { gap: var(--s-3); }
.j-page .j-phone > .egw-picker { flex: 0 0 auto; min-width: 168px; max-width: 100%; }
.j-page .j-phone .egw-phone-code { font-variant-numeric: tabular-nums; }
/* small phones (change log 43, settled 20:08): up to 400px the form card keeps var(--form-pad) at its sides (16px) and every field and
   picker button var(--field-pad) (12px); both 8px below 385px (the kit's tokens), so info@ephesusgatheringsworldwide.com shows whole from 360px up */
@media (max-width: 400px) { .j-page .j-form { padding-inline: var(--form-pad); } .j-page .j-in { padding-inline: var(--field-pad); } }

/* register as: two tiles with a springing tick */
.j-page .j-types { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.j-page .j-type { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; gap: var(--s-3); align-items: center; padding: var(--s-4); border-radius: var(--r-md); background: var(--well); border: 1px solid transparent; box-shadow: var(--well-shadow); cursor: pointer; transition: border-color .15s ease, background-color .2s ease, box-shadow .15s ease; }
.j-page .j-type:hover { border-color: var(--line-strong); }
.j-page .j-type input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.j-page .j-type .ic { background: var(--card); transition: transform .35s var(--ease-spring), background-color .2s ease, color .2s ease; }
.j-page .j-type:hover .ic { transform: scale(1.1) rotate(-4deg); }
.j-page .j-type b { display: block; font-size: var(--t-base); font-weight: 600; }
.j-page .j-type small { display: block; font-size: var(--t-xs); color: var(--muted); margin-top: 2px; line-height: 1.4; }
.j-page .j-type .tk { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: var(--btn-fg); transition: background-color .2s ease, border-color .2s ease, transform .35s var(--ease-spring); }
.j-page .j-type .tk .i { width: 14px; height: 14px; stroke-width: 2.4; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease-out) .05s; }
.j-page .j-type.is-on, .j-page .j-type:has(input:checked) { background: var(--page); border-color: var(--ink); box-shadow: 0 0 0 4px var(--tint-2); }
.j-page .j-type.is-on .tk, .j-page .j-type:has(input:checked) .tk { background: var(--btn); border-color: var(--btn); transform: scale(1.08); }
.j-page .j-type.is-on .tk .i, .j-page .j-type:has(input:checked) .tk .i { stroke-dashoffset: 0; }
.j-page .j-type.is-on .ic, .j-page .j-type:has(input:checked) .ic { background: var(--btn); color: var(--btn-fg); }
.j-page .j-type:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.j-page .j-group.is-err .j-type { border-color: var(--live); }
.j-page .j-type.landed { animation: j-landed 1.3s var(--ease-out); }
@keyframes j-landed { 0% { box-shadow: 0 0 0 0 var(--ink); } 35% { box-shadow: 0 0 0 8px var(--tint-2), 0 0 0 1px var(--ink); } 100% { box-shadow: 0 0 0 4px var(--tint-2); } }
@media (max-width: 640px) { .j-page .j-types { grid-template-columns: 1fr; } }

/* consent */
.j-page .j-consent { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start; cursor: pointer; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; }
.j-page .j-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.j-page .j-consent .bx { width: 24px; height: 24px; border-radius: 7px; background: var(--well); border: 1px solid var(--line-strong); box-shadow: var(--well-shadow); display: grid; place-items: center; color: var(--btn-fg); margin-top: 1px; transition: background-color .2s ease, border-color .2s ease, transform .35s var(--ease-spring); }
.j-page .j-consent .bx .i { width: 14px; height: 14px; stroke-width: 2.6; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s var(--ease-out) .05s; }
.j-page .j-consent:hover .bx { border-color: var(--muted); }
.j-page .j-consent.is-on .bx, .j-page .j-consent:has(input:checked) .bx { background: var(--btn); border-color: var(--btn); transform: scale(1.06); }
.j-page .j-consent.is-on .bx .i, .j-page .j-consent:has(input:checked) .bx .i { stroke-dashoffset: 0; }
.j-page .j-consent:has(input:focus-visible) .bx { outline: 2px solid var(--ink); outline-offset: 3px; }
.j-page .j-group.is-err .j-consent .bx { border-color: var(--live); }

/* the message at the top of the card (server or consent errors), in the status red */
.j-page .j-alert { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out), opacity .7s var(--ease-out), translate .7s var(--ease-out); }
.j-page .j-alert > div { overflow: hidden; min-height: 0; }
.j-page .j-alert.show { grid-template-rows: 1fr; }
.j-page .j-alert-in { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--live-bg); color: var(--live); margin-bottom: var(--s-2); }
.j-page .j-alert-in .ic { background: var(--page); color: var(--live); width: 36px; height: 36px; border-radius: 10px; }
.j-page .j-alert-in b { display: block; font-size: var(--t-sm); font-weight: 700; }
.j-page .j-alert-in span { display: block; font-size: var(--t-xs); font-weight: 500; }
.j-page .j-alert-in span:empty { display: none; }

/* submit: the label gives way to a spinner, then a tick (the button is never disabled: global.css styles .btn:disabled) */
.j-page .j-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-top: var(--s-2); }
.j-page .j-foot .micro { display: inline-flex; align-items: center; gap: 7px; }
.j-page .j-foot .micro .i { width: 15px; height: 15px; }
.j-page .btn.j-submit { display: inline-grid; place-items: center; min-width: 250px; min-height: 56px; }
.j-page .j-submit > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: var(--s-2); transition: opacity .25s ease, translate .4s var(--ease-out); }
.j-page .j-submit .busy, .j-page .j-submit .done { opacity: 0; translate: 0 10px; }
.j-page .j-submit[data-state="busy"] .lbl, .j-page .j-submit[data-state="done"] .lbl { opacity: 0; translate: 0 -10px; }
.j-page .j-submit[data-state="busy"] .busy { opacity: 1; translate: 0; }
.j-page .j-submit[data-state="done"] .done { opacity: 1; translate: 0; }
.j-page .j-submit .done .i { stroke-width: 2.4; }
.j-page .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: j-spin .8s linear infinite; }
@keyframes j-spin { to { transform: rotate(360deg); } }

/* success */
.j-page .j-success { display: grid; gap: var(--s-4); justify-items: start; align-content: start; padding: clamp(var(--s-6), 4vw, var(--s-8)); opacity: 0; translate: 0 16px; scale: .985; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out), scale .6s var(--ease-out); }
.j-page .j-success.show { opacity: 1; translate: 0; scale: 1; }
.j-page .j-success:focus { outline: none; } /* it takes the focus once the form gives way to it, so the next Tab starts there */
.j-page .j-success .ic.lg { background: var(--ok-bg); color: var(--ok); width: 56px; height: 56px; border-radius: 16px; }
.j-page .j-success .ic .i { width: 26px; height: 26px; stroke-width: 2.2; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .7s var(--ease-out) .4s; }
.j-page .j-success.show .ic .i { stroke-dashoffset: 0; }
.j-page .j-success h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.j-page .j-success p { color: var(--ink-2); max-width: 52ch; }
.j-page .j-success .actions { margin-top: var(--s-2); }

/* ---------- Already a member or affiliate? (3.47.0): the way into the Member & Affiliate Record; the link is the record's
   own text link (.rs-tlink in record.css), so both pages draw it the same ---------- */
.j-page .j-have { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-2); row-gap: 2px; margin: 0; font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); }
.j-page .j-ph-id .j-have { margin-top: calc(var(--s-2) * -1); } /* 16px under the buttons: it belongs to them */
.j-page .j-have-a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); transition: text-decoration-color .2s ease; }
.j-page .j-have-a:hover { text-decoration-color: var(--ink); }
.j-page .j-have-a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.j-page .j-have-a .arrow { width: 16px; height: 16px; flex: none; transition: transform .3s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)); }
.j-page .j-have-a:hover .arrow { transform: translateX(3px); }
.j-page .j-have-side { flex-direction: column; align-items: flex-start; padding-top: var(--s-4); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .j-page .j-have-a .arrow { transition: none; } }

/* ---------- responsive: the holders that stack get centred (Dennis's standing rule) ---------- */
@media (max-width: 960px) {
  .j-page .actions { justify-content: center; }
  .j-page .sec-head { text-align: center; justify-items: center; justify-content: center; }
  .j-page .sec-head .lead { margin-inline: auto; }
  .j-page .j-ph { grid-template-columns: 1fr; }
  .j-page .j-ph-id { justify-items: center; text-align: center; }
  .j-page .j-ph-id .lead { margin-inline: auto; }
  .j-page .crumb { text-align: center; } .j-page .crumb ol { justify-content: center; } /* the kit centres .crumb only inside .c-sm / .c-xs holders; this one sits in .wrap */
  .j-page .j-glance { width: 100%; max-width: 560px; margin-inline: auto; }
  .j-page .j-band { height: clamp(160px, 42vw, 280px); }
  .j-page .j-band img { translate: none !important; }
  .j-page .j-ctx-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .j-page .j-ctx-head { text-align: center; justify-items: center; }
  .j-page .j-ctx-head h2, .j-page .j-ctx-head .lead { margin-inline: auto; }
  .j-page .j-ctx-card { padding-inline: var(--s-5); }
  .j-page .j-form-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .j-page .j-steps { position: static; text-align: center; justify-items: center; }
  .j-page .j-step-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); width: 100%; }
  .j-page .j-step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0; gap: var(--s-2); }
  .j-page .j-step::before { display: none; }
  .j-page .j-step b { padding-top: 0; }
  .j-page .j-step small { display: none; }
  .j-page .j-have { justify-content: center; text-align: center; }
  .j-page .j-have-side { align-items: center; width: 100%; }
}
@media (max-width: 640px) {
  .j-page .j-glance { grid-template-columns: 1fr; }
  .j-page .j-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
  .j-page .j-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .j-page .j-foot .micro { justify-content: center; }
  .j-page .btn.j-submit { width: 100%; }
  .j-page .j-success { text-align: center; justify-items: center; }
  .j-page .j-success .actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html.js-armed .j-page .j-band.rv:not(.in) img { scale: 1.06; }
  html.js-armed .j-page .j-way:not(.in) .j-ticks .i circle, html.js-armed .j-page .j-way:not(.in) .j-ticks .i path { stroke-dashoffset: 0; }
  .j-page .j-band img { translate: none !important; transition: none; }
  .j-page .j-tile img, .j-page .j-tile .play, .j-page .j-tile .cap { transition: none !important; }
  .j-page .j-success { translate: 0; scale: 1; }
}

/* image captions (3.35.0): a saved caption in the viewer, title then text then source (a photo without one keeps the single line above) */
.j-page .lb-cap #lbCap.has-rich { display: grid; gap: 2px; max-width: 64ch; text-align: center; justify-items: center; overflow-wrap: anywhere; }
.j-page .lb-cap #lbCap .cap-title { font-weight: 700; }
.j-page .lb-cap #lbCap .cap-text { font-weight: 500; }
.j-page .lb-cap #lbCap .cap-source { font-size: var(--t-xs); font-weight: 500; letter-spacing: .04em; color: #D9D6CC; }

/* Stay in touch (3.52.0, Email updates; V6 approved preview parts/css-40-joinus.css, jx-): the list's topics under the record's heads,
   two to a row while the form is wide, one when narrow; a Required topic ticked and locked with its reason; the Daily Readings line */
.j-page .jx-subs[hidden], .j-page .jx-topic[hidden], .j-page .jx-gh[hidden], .j-page .jx-lock[hidden] { display: none; }
.j-page .jx-subs .micro .opt { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.j-page .jx-lead { margin: calc(-1 * var(--s-2)) 0 0; font-size: var(--t-sm); line-height: 1.55; color: var(--ink-2); }
.j-page .jx-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-5); }
@container jform (max-width: 520px) { .j-page .jx-topics { grid-template-columns: minmax(0, 1fr); } }
.j-page .jx-gh { grid-column: 1 / -1; margin: var(--s-2) 0 calc(-1 * var(--s-1)); font-size: var(--t-sm); font-weight: 600; line-height: 1.4; color: var(--ink); }
.j-page .jx-gh:first-child { margin-top: 0; }
.j-page .jx-tn { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.j-page .jx-tn b { overflow-wrap: anywhere; }
.j-page .jx-tn .pill { height: 20px; padding: 0 8px; font-size: 10px; }
.j-page .jx-topic { padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md, 14px); min-height: 44px; min-width: 0; }
.j-page .jx-topic:has(input:checked) { border-color: var(--ink); }
.j-page .jx-topic.is-forced { cursor: default; }
.j-page .jx-tt { display: grid; gap: 2px; min-width: 0; }
.j-page .jx-tt b { font-weight: 600; color: var(--ink); line-height: 1.35; }
.j-page .jx-tt small { font-size: var(--t-xs); line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.j-page .jx-lock { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; font-weight: 600; }
.j-page .jx-lock .i { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.j-page .jx-dr { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); align-items: center; margin: 0; font-size: var(--t-sm); line-height: 1.55; color: var(--ink-2); }
.j-page .jx-dr .ic .i { width: 20px; height: 20px; color: var(--ink); }
.j-page .jx-dr b { color: var(--ink); font-weight: 600; }
.j-page .jx-dr a { color: var(--ink); font-weight: 600; }

/* 2026-10-24: past the set height (about two rows, three on phones) the wall is a row of batches that glide left and right;
   join-us.js adds .is-paged, wraps the rows in .j-batch and shows the pager; the wall's height follows the glide */
.j-page .j-wall.is-paged { flex-wrap: nowrap; justify-content: flex-start; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; transition: height .2s var(--ease-out); }
.j-page .j-wall.is-paged::-webkit-scrollbar { display: none; }
.j-page .j-wall.is-paged.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.j-page .j-wall.is-paged.is-drag .j-tile { cursor: grabbing; }
.j-page .j-batch { flex: 0 0 100%; display: flex; flex-wrap: wrap; gap: inherit; scroll-snap-align: start; scroll-snap-stop: always; }
.j-page .j-pager { display: inline-flex; align-items: center; gap: var(--s-3); }
.j-page .j-pager[hidden] { display: none; }
.j-page .j-pager .round:disabled { opacity: .4; cursor: default; }
.j-page .j-pager-track { position: relative; width: 96px; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.j-page .j-pager-track i { position: absolute; left: 0; top: 0; height: 100%; border-radius: inherit; background: var(--ink); will-change: transform; }
.j-page .j-pager-n { min-width: 5.5em; text-align: center; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .j-page .j-pager { width: 100%; justify-content: center; } .j-page .j-pager-track { width: 64px; } }
@media (prefers-reduced-motion: reduce) { .j-page .j-wall.is-paged { transition: none; scroll-behavior: auto; } }

/* ==== 3.59.x member pages (Dennis 23:09 18 Nov): F158 the thank-you shows where the request is; F126 the round cookie button stays
   off Join Us (a form): Cookie settings sits in the footer ==== */
/* 3.59.2 member look (audit 19 Nov, G12 to G14): as the sketch draws it, the label close above the list in ink-2, the list left-aligned
   across the card's text (centred with the card on phones), and the last line with no margin of its own */
.j-page .j-success .j-where-h { margin: var(--s-2) 0 0; font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.j-page .j-where { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); text-align: left; counter-reset: js; }
.j-page .j-where li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-3); align-items: center; min-height: 40px; color: var(--ink-2); font-size: var(--t-sm); }
.j-page .j-where li::before { counter-increment: js; content: counter(js); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box; border: 1px solid var(--line-strong); background: var(--page); font-weight: 700; font-size: var(--t-xs); color: var(--ink-2); }
.j-page .j-where li.done::before { content: "\2713"; border-color: var(--ink); color: var(--ink); }
.j-page .j-where li.on { color: var(--ink); font-weight: 600; }
.j-page .j-where li.on::before { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-fg); }
.j-page .j-success .j-next { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.egw-consent .egwc-float { display: none !important; }
