/* ── Money Magnets · brochure pages ─────────────────────────────────
   Loaded after styles.css on index / groups / membership / about.
   styles.css supplies the three-colour tokens (--ink, --lime, --navy and
   their alphas), the roster cards, the search field, the toast and the
   empty state. Everything the brochure adds lives here.

   The world: white paper, Archivo for times and big lines, Karla for what
   is read, EB Garamond italic in navy for the one verse. A navy
   rail carries the clock; lime is a fill, never type on a light ground. */

:root {
  --verse: "EB Garamond", Palatino, Georgia, serif;
  --wrap: 1120px;
  --gutter: 24px;
  --rail: 112px;          /* the clock column on the agenda */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Browser surfaces ──────────────────────────────────────────────── */

html { scrollbar-color: rgba(26, 26, 26, 0.32) transparent; }

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

body.brochure {
  caret-color: var(--navy);
  font-size: 16.5px;
  line-height: 1.55;
}

body.brochure :focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 3px;
}

body.brochure a:not([class]) { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
body.brochure a:not([class]):hover { text-decoration-thickness: 2px; }

/* The room bleeds past the content column on purpose; nothing else may. */
html, body.brochure { overflow-x: clip; }

body.brochure h1, body.brochure h2, body.brochure h3 {
  font-family: var(--display);
  text-wrap: balance;
  letter-spacing: -0.02em;
}

body.brochure main { max-width: none; margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.num { font-variant-numeric: tabular-nums; }

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-lime:hover { background: #96D138; border-color: #96D138; box-shadow: 0 6px 18px rgba(137, 195, 44, 0.32); }

.btn-ink { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.btn-ink:hover { background: #2C2C2C; box-shadow: 0 6px 18px rgba(26, 26, 26, 0.2); }

.btn-line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }

/* ── Nav ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover { color: var(--ink); background: var(--wash); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--navy); border-radius: 8px 8px 0 0; }

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-login:hover { background: var(--navy); color: #FFFFFF; text-decoration: none; }
.nav-login svg { width: 15px; height: 15px; }

/* ── Opener (photo hero) ──────────────────────────────────────────────────────────── */

.opener {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}

.opener-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.opener-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  filter: saturate(0.55) contrast(1.06);
  display: block;
}

/* Ink from the left so the verse sits on ink, the photo keeps the right */
.opener::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(26, 26, 26, 0.92) 0%, rgba(26, 26, 26, 0.55) 45%, rgba(26, 26, 26, 0.25) 100%),
    linear-gradient(to right, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.55) 50%, rgba(26, 26, 26, 0.15) 100%);
}

.opener-inner {
  width: 100%;
  padding-top: 96px;
  padding-bottom: 64px;
}

/* The house verse opens the page: EB Garamond italic, navy lifted for
   the ink ground (the kit's verse-on-ink value), the citation in lime. */
.opener-verse { margin: 0; }

.opener-verse p {
  font-family: var(--verse);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 84px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  max-width: 17ch;
  color: #9AA6BE;
  text-wrap: balance;
}

.opener-verse cite {
  display: block;
  margin-top: 18px;
  font-family: var(--display);
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lime);
}

.opener-sub {
  margin-top: 22px;
  max-width: 44ch;
  font-size: clamp(16.5px, 1.9vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

.opener-sub strong { color: #FFFFFF; }

.opener-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn-ghost-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost-light:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }

/* ── Lede ──────────────────────────────────────────────────────────── */

.lede { padding: 80px 0 36px; scroll-margin-top: 66px; }

.lede h1 {
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 18ch;
  color: var(--ink);
}

.lede p {
  margin-top: 22px;
  max-width: 58ch;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
}

.lede p strong { color: var(--ink); font-weight: 700; }

/* ── Day switch ────────────────────────────────────────────────────── */

.dayswitch-block { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.dayswitch {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  isolation: isolate;
}

.dayswitch::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--navy);
  border-radius: 999px;
  transform: translateX(var(--switch-x, 0));
  transition: transform 0.55s var(--ease-out);
}

.dayswitch[data-active="thursday"] { --switch-x: 100%; }

.dayswitch button {
  min-width: 128px;
  min-height: 44px;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dayswitch button[aria-pressed="true"] { color: #FFFFFF; }
.dayswitch button:focus-visible { outline-offset: -3px; outline-color: #FFFFFF; }
.dayswitch[data-active="tuesday"] button[aria-pressed="false"]:focus-visible,
.dayswitch[data-active="thursday"] button[aria-pressed="false"]:focus-visible { outline-color: var(--navy); }

.meetline {
  font-size: 15.5px;
  color: var(--ink-soft);
}

.meetline strong { color: var(--ink); font-weight: 700; }
.meetline .sep { margin: 0 8px; color: var(--line-strong); }

/* ── The agenda ────────────────────────────────────────────────────── */

.agenda { padding: 24px 0 8px; }

.agenda-head { padding-bottom: 18px; }

.agenda-list { list-style: none; position: relative; }

/* The rail: one navy line down the clock column, from the first time
   to the last. Each row's time sits on it with a knocked-out ground. */
.agenda-list::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: calc(var(--rail) - 9px);
  width: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* On a switch a lime pulse runs down the rail to the introductions row. */
.agenda-list::after {
  content: "";
  position: absolute;
  top: 26px;
  left: calc(var(--rail) - 9px);
  width: 2px;
  height: 0;
  background: var(--lime);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}

.agenda-list.is-running::after { animation: rail-run 0.9s var(--ease-out) forwards; }

@keyframes rail-run {
  0%   { height: 0; opacity: 1; }
  60%  { height: 32%; opacity: 1; }
  100% { height: 32%; opacity: 0; }
}

.agenda-row {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: 0 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.agenda-row:first-child { border-top: 0; }

.agenda-time {
  position: relative;
  align-self: start;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  padding-right: 26px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.agenda-time::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 3px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: #FFFFFF;
  border: 2.5px solid var(--navy);
  border-radius: 50%;
  box-sizing: border-box;
  transition: background 0.3s ease;
}

.agenda-row.is-live .agenda-time::after { background: var(--navy); box-shadow: 0 0 0 4px rgba(31, 58, 110, 0.16); }

.agenda-body { min-width: 0; }

.agenda-body h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.agenda-body p {
  margin-top: 8px;
  max-width: 62ch;
  font-size: 16.5px;
  color: var(--ink-soft);
}

.agenda-body p a { font-weight: 600; }

.agenda-body .btn { margin-top: 18px; }

.agenda-note {
  margin: 18px 0 0 calc(var(--rail) + 32px);
  font-size: 13.5px;
  color: var(--ink-faint);
}

/* Introductions: the room, as a lime band that streams the roster. Bleeds
   to the right edge of the viewport so the line of tiles has somewhere to go. */
.room {
  position: relative;
  margin: 20px 0 6px;
  padding: 22px 0 22px 22px;
  background: var(--lime);
  border-radius: 14px 0 0 14px;
  overflow: hidden;
  width: calc(100% + var(--gutter) + max(0px, (100vw - var(--wrap)) / 2));
  color: var(--ink);
}

.room-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-right: 22px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.room-head span:last-child { font-weight: 600; opacity: 0.72; white-space: nowrap; }

.room-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: room-drift var(--room-duration, 90s) linear infinite;
  transition: opacity 0.35s ease;
}

.room.is-swapping .room-track { opacity: 0; }

.room:hover .room-track,
.room.is-paused .room-track,
.room:focus-within .room-track { animation-play-state: paused; }

@keyframes room-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tile {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  padding: 8px 16px 8px 8px;
  background: #FFFFFF;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.06), 0 4px 12px rgba(26, 26, 26, 0.08);
}

.tile:hover { text-decoration: none; }

.tile .logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  font-size: 15px;
  border: 0;
}

.tile-name {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.tile-trade {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-faint);
  white-space: nowrap;
}

.room-note {
  padding: 14px 22px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0.78;
}

body.brochure .room-note a { color: var(--ink); }

/* ── Two groups, compared ──────────────────────────────────────────── */

.compare { padding: 88px 0 24px; }

.compare h2, .section-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 18ch;
}

.section-sub {
  margin-top: 14px;
  max-width: 58ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  margin-top: 40px;
  border-top: 2px solid var(--ink);
}

.compare-col { padding: 26px 0 10px; }

.compare-col + .compare-col { border-left: 1px solid var(--line); padding-left: 56px; margin-left: -28px; }

.compare-day {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.compare-name {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-faint);
}

.facts { list-style: none; margin-top: 22px; }

.facts li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}

.facts li span:first-child { font-weight: 600; color: var(--ink-faint); }
.facts li span:last-child { color: var(--ink); font-weight: 500; }

.compare-col .btn { margin-top: 22px; }

/* ── Why it works: ruled statements ────────────────────────────────── */

.why { padding: 88px 0 40px; }

.why-list { list-style: none; margin-top: 36px; border-top: 2px solid var(--ink); }

.why-list li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 20px 56px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.why-list h3 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.why-list p { font-size: 17px; color: var(--ink-soft); max-width: 58ch; }
.why-list p + p { margin-top: 12px; }

/* ── The verse ─────────────────────────────────────────────────────── */

.verse {
  padding: 72px 0;
  text-align: center;
}

.verse blockquote {
  margin: 0 auto;
  max-width: 24ch;
  font-family: var(--verse);
  font-style: italic;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.22;
  color: var(--navy);
  text-wrap: balance;
}

.verse cite {
  display: block;
  margin-top: 18px;
  font-family: var(--body);
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.verse-on-ink blockquote { color: #9AA6BE; }
.verse-on-ink cite { color: rgba(255, 255, 255, 0.55); }

/* ── Closing band ──────────────────────────────────────────────────── */

.visit {
  background: var(--ink);
  border-top: 6px solid var(--lime);
  color: #FFFFFF;
  padding: 84px 0 92px;
}

.visit-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: end;
}

.visit h2 {
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  max-width: 14ch;
}

.visit p { margin-top: 20px; max-width: 50ch; font-size: 17.5px; color: rgba(255, 255, 255, 0.76); }
.visit p strong { color: #FFFFFF; }

.visit-side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.visit-side .btn { font-size: 16px; min-height: 54px; padding: 0 28px; }

.visit-side .alt {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.62);
}

body.brochure .visit-side .alt a { color: #FFFFFF; }

/* ── Members strip ─────────────────────────────────────────────────── */

.members {
  scroll-margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.members-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

.members-inner > span { font-size: 15px; font-weight: 700; color: var(--ink); }

.members-inner nav { display: flex; flex-wrap: wrap; gap: 8px; }

.members-inner nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.members-inner nav a:hover { border-color: var(--ink); background: var(--wash); }
.members-inner nav a svg { width: 15px; height: 15px; }
.members-inner .who { margin-left: auto; font-size: 14px; color: var(--ink-faint); }

/* ── Footer ────────────────────────────────────────────────────────── */

.site-foot {
  text-align: left;
  padding: 44px 0 52px;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-foot-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 48px;
  align-items: start;
}

.site-foot .brand { font-size: 17px; }
.site-foot .brand img { width: 30px; }

.site-foot .indie { margin-top: 12px; max-width: 46ch; }
.site-foot .indie a { color: var(--navy); }

.site-foot nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 32px;
}

.site-foot nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-foot nav a:hover { text-decoration: underline; }

.site-foot .colophon {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--ink-faint);
}

.site-foot .foot-admin { margin-top: 0; }

/* ── Groups page ───────────────────────────────────────────────────── */

.groups-head { padding: 56px 0 0; }


.grouptabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--line);
}

.grouptab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 8px 22px 0;
  font-family: var(--display);
  text-align: left;
  color: var(--ink-faint);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.35s ease;
}

.grouptab + .grouptab { padding-left: 32px; border-left: 1px solid var(--line); }

.grouptab-day {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.grouptab-meta {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.grouptab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 4px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}

.grouptab + .grouptab::after { left: 32px; }

.grouptab[aria-selected="true"] { color: var(--ink); }
.grouptab[aria-selected="true"]::after { transform: scaleX(1); }
.grouptab:hover { color: var(--ink); }

.group-profile {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 56px;
  align-items: start;
  padding: 34px 0 40px;
  border-bottom: 1px solid var(--line);
}

.group-profile h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
}

.group-profile .facts { margin-top: 18px; }
.group-profile .facts li { grid-template-columns: 110px 1fr; }

.group-profile p.note { margin-top: 18px; max-width: 56ch; font-size: 16.5px; color: var(--ink-soft); }

.group-profile-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 6px; }
.group-profile-side .alt { font-size: 14px; color: var(--ink-faint); max-width: 34ch; }
.group-profile-side .alt a { color: var(--navy); }

.roster-tools { padding: 34px 0 6px; }

.roster-tools .search-shell { position: static; padding: 0; background: none; }
.roster-tools .search-wrap { margin: 0; max-width: none; }
.roster-tools #search { box-shadow: var(--shadow); height: 56px; }
.roster-tools .result-count { text-align: left; margin-top: 12px; max-width: none; }

.roster { padding: 12px 0 72px; }
.roster .grid { gap: 16px; }

/* ── Membership page ───────────────────────────────────────────────── */

.page-head { padding: 72px 0 24px; }

.page-head h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 16ch;
}

.page-head p {
  margin-top: 20px;
  max-width: 60ch;
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--ink-soft);
}

.block { padding: 56px 0 8px; }

.block h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); }

.block > .wrap > p, .block .prose p { margin-top: 16px; max-width: 64ch; font-size: 17px; color: var(--ink-soft); }
.block .prose p strong { color: var(--ink); }

.ruled { list-style: none; margin-top: 30px; border-top: 2px solid var(--ink); }

.ruled li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 12px 48px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.ruled h3 { font-size: 21px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.ruled p { font-size: 16.5px; color: var(--ink-soft); max-width: 60ch; }
.ruled p + p { margin-top: 10px; }

/* The referral pipeline, drawn with the rail's own dots. */
.pipeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 36px;
  position: relative;
}

.pipeline::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 7px;
  height: 2px;
  background: var(--navy);
}

.pipeline li { position: relative; padding: 30px 18px 0 0; }

.pipeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background: #FFFFFF;
  border: 2.5px solid var(--navy);
  border-radius: 50%;
  box-sizing: border-box;
}

.pipeline li:last-child::before { background: var(--lime); border-color: var(--lime); }

.pipeline strong { display: block; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); }
.pipeline span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-faint); }

.dues { margin-top: 28px; padding: 20px 24px; background: var(--navy-wash); border-radius: 12px; font-size: 16px; color: var(--ink); max-width: 64ch; }
.dues strong { font-weight: 700; }

/* ── About page ────────────────────────────────────────────────────── */

.lead-person {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 30px;
  padding: 26px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.lead-person .logo { width: 72px; height: 72px; border-radius: 16px; font-size: 26px; border: 0; }
.lead-person h3 { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.lead-person p { margin-top: 4px; font-size: 16px; color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 64px; margin-top: 10px; }
.two-col .prose p { margin-top: 14px; }
.two-col .prose p:first-child { margin-top: 0; }

/* ── Scroll reveal ─────────────────────────────────────────────────── */
/* Only when JS has confirmed it will run the observer (html.js-reveal);
   everything is visible by default otherwise. */

.js-reveal .reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}

.js-reveal .reveal[data-reveal="left"], .js-reveal .reveal[data-reveal="rail"] { transform: translateX(-36px); }
.js-reveal .reveal[data-reveal="up"] { transform: translateY(28px); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* The agenda rows fall into line on the rail: the whole row slides in, the
   time settles a beat after the body so the dot lands on the line last. */
.js-reveal .agenda-row.reveal .agenda-time { transition: transform 1s var(--ease-out) 0.08s; transform: translateX(-14px); }
.js-reveal .agenda-row.reveal.in .agenda-time { transform: none; }

/* ── Responsive ────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .compare-grid { grid-template-columns: 1fr; gap: 0; }
  .compare-col + .compare-col { border-left: 0; padding-left: 0; margin-left: 0; border-top: 1px solid var(--line); }
  .why-list li, .ruled li { grid-template-columns: 1fr; gap: 10px; }
  .visit-inner, .group-profile, .two-col { grid-template-columns: 1fr; }
  .visit-inner { align-items: start; }
  .pipeline { grid-template-columns: 1fr; gap: 4px; margin-left: 8px; }
  .pipeline::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .pipeline li { padding: 0 0 22px 30px; }
  .pipeline li::before { top: 2px; }
}

@media (max-width: 640px) {
  :root { --rail: 74px; --gutter: 16px; }
  .nav-inner { height: 60px; gap: 12px; }
  .brand span { display: none; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 8px; font-size: 14px; }
  .nav-login { padding: 0 12px; font-size: 13px; }
  .nav-login span { display: none; }
  .lede { padding: 44px 0 26px; }
  .opener { min-height: clamp(520px, 82vh, 720px); }
  .opener-inner { padding-top: 72px; padding-bottom: 40px; }
  .opener-photo img { object-position: 60% 40%; }
  .opener-verse p { font-size: clamp(34px, 9.6vw, 44px); }
  .opener-actions .btn { flex: 1 1 auto; justify-content: center; }
  .lede h1 { font-size: 34px; }
  .lede p { margin-top: 14px; font-size: 16px; }
  .room-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .room-head span:last-child { white-space: normal; }
  .room-note { padding-right: var(--gutter); }
  .dayswitch { width: 100%; }
  .dayswitch button { min-width: 0; }
  .compare, .why { padding-top: 64px; }
  .verse { padding: 56px 0; }
  .visit { padding: 64px 0 72px; }
  .members-inner .who { margin-left: 0; }
  .site-foot-inner { grid-template-columns: 1fr; }
  /* On a phone the two headings become the same pill switch the homepage uses. */
  .groups-head { padding-top: 28px; }
  .grouptabs {
    position: relative;
    isolation: isolate;
    padding: 4px;
    background: var(--wash);
    border: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 999px;
  }
  .grouptabs::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 4px; bottom: 4px; left: 4px;
    width: calc(50% - 4px);
    background: var(--navy);
    border-radius: 999px;
    transform: translateX(var(--switch-x, 0));
    transition: transform 0.55s var(--ease-out);
  }
  .grouptabs[data-active="thursday"] { --switch-x: 100%; }
  .grouptab, .grouptab + .grouptab {
    align-items: center;
    gap: 1px;
    padding: 9px 8px;
    border: 0;
    border-radius: 999px;
    text-align: center;
  }
  .grouptab::after { display: none; }
  .grouptab-day { font-size: 18px; letter-spacing: -0.01em; line-height: 1.1; padding: 4px 0; }
  .grouptab-meta { display: none; }   /* the profile heading below names the group */
  .grouptab { color: var(--ink-soft); }
  .grouptab[aria-selected="true"] { color: #FFFFFF; }
  .grouptab:focus-visible { outline-offset: -3px; outline-color: #FFFFFF; }
  .group-profile { padding-top: 28px; }
  .page-head { padding: 48px 0 16px; }
  .block { padding: 44px 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal, .js-reveal .agenda-row.reveal .agenda-time { opacity: 1; transform: none; transition: none; }
  .room-track { animation: none; width: auto; flex-wrap: wrap; padding-right: 22px; }
  .room-track .tile.is-clone { display: none; }
  .dayswitch::before, .grouptab::after, .grouptabs::before { transition: none; }
  .agenda-list.is-running::after { animation: none; }
}
