/* Members list and member profile v2 - docs/design/pages-h/S_Members.html, S_Members_m.html, S_MemberProfile.html,
   S_MemberProfile_m.html (social-h.css translated to the v2 tokens), visual system "H". Depends on tokens.css +
   components.css. Colours are tokens only, so the page follows the web and the Velvet theme. */

/* ---- Members list: every member is a card (photo or silhouette, nickname, meta, headline, Message) ------ */
.cg-mem { display: flex; flex-direction: column; gap: 18px; padding-block: 24px 64px; }
#cg-members-results { display: flex; flex-direction: column; gap: 18px; }
/* City view: "All members > London" */
.cg-mem__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: -6px; font-size: 14px; font-weight: var(--w-strong); color: var(--ink-caption); }
.cg-body .cg-mem__crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: var(--link); }
.cg-mem__crumbs [aria-current] { color: var(--ink-muted); overflow-wrap: anywhere; }
.cg-mem__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.cg-mem__title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cg-mem h1 { font: italic var(--w-regular) 56px/1 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.cg-mem__stats { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 16px; font-weight: var(--w-strong); color: var(--ink-muted); }
.cg-mem__stats > span + span::before { content: "\00b7"; margin-right: 10px; color: var(--ink-caption); }
.cg-mem__live { color: var(--on-live); white-space: nowrap; display: inline-flex; align-items: center; }
/* A city under ten members: one neutral line instead of small numbers ("on the right" / "below" follows the layout) */
.cg-mem__smallline { margin: 0; max-width: 60ch; font-size: 16px; line-height: 1.45; color: var(--ink-muted); }
.cg-mem__dir--below { display: none; }

/* City search */
.cg-mem__find { display: flex; gap: 8px; width: 380px; max-width: 100%; }
.cg-mem__find input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--border); background: var(--surface);
  color: var(--ink); font: var(--w-strong) 15px/1 var(--font-sans); }
.cg-mem__find input:focus { outline: none; border-color: var(--accent); }
.cg-mem__find .cg-btn { height: 46px; padding: 0 20px; font-size: 15px; }
.cg-mem__found { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: var(--radius-m); background: var(--surface); }
.cg-mem__found h2 { font: var(--w-strong) 15px/1.3 var(--font-sans); font-style: normal; color: var(--ink-muted); }
.cg-mem__cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.cg-body a.cg-mcity { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: var(--radius-m); background: var(--surface-warm); color: var(--ink); }
.cg-body a.cg-mcity:hover { color: var(--ink); background: var(--surface-soft); }
.cg-body a.cg-mcity[aria-current] { box-shadow: inset 0 0 0 2px var(--ink); }
.cg-mcity__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cg-mcity__tx strong { font-size: 15px; overflow-wrap: anywhere; }
.cg-mcity__tx span { font-size: 13px; font-weight: var(--w-strong); color: var(--ink-caption); }
.cg-mcity__tx .cg-mcity__live { color: var(--on-live); }
.cg-mcity svg { flex: none; color: var(--ink-caption); transform: scaleX(-1); }

/* Filters: underlined tabs like the Category V2 tab bar (not pills) */
.cg-mem__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); }
.cg-mem__tabs::-webkit-scrollbar { display: none; }
.cg-body a.cg-mtab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 7px; border-bottom: 3px solid transparent; margin-bottom: -1px;
  color: var(--ink-caption); font-size: 15px; font-weight: var(--w-strong); white-space: nowrap; }
.cg-body a.cg-mtab:hover { color: var(--ink); border-bottom-color: var(--border); }
.cg-body a.cg-mtab[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

.cg-mem__split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.cg-mem__main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.cg-mem__range { margin: 0; font-size: 14px; font-weight: var(--w-strong); color: var(--ink-caption); }
/* A line above the list ("Nobody has been active this week yet. Members active this month:") */
.cg-mem__note { margin: 0; font-size: 15px; font-weight: var(--w-strong); line-height: 1.45; color: var(--ink-muted); }
/* City view: "Earlier members . Last active before Oct 2024" between the recent and the older members (same list) */
.cg-mem__divider { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
.cg-mem__divider h3 { margin: 0; font: var(--w-strong) 16px/1.3 var(--font-sans); font-style: normal; color: var(--ink); }
.cg-mem__divider span { font-size: 13px; font-weight: var(--w-strong); color: var(--ink-caption); }
/* "Add a photo" prompt for a viewer without one */
.cg-mem__cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 18px 22px; border-radius: var(--radius-m); background: var(--surface-warm); }
.cg-mem__ctatx { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 280px; }
.cg-mem__cta h2 { margin: 0; font: var(--w-strong) 17px/1.3 var(--font-sans); font-style: normal; color: var(--ink); }
.cg-mem__cta p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.cg-mem__cta .cg-btn { flex: none; }
.cg-mem__none { margin: 0; padding: 14px 18px; border-radius: var(--radius-m); background: var(--surface-warm); font-size: 15px; color: var(--ink-muted); }

/* Quiet city / no members: a warm panel with words, never grey placeholder avatars */
.cg-mem__quiet { padding: 24px 26px; border-radius: var(--radius-l); background: var(--surface-warm); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cg-mem__quiet h2 { font: italic var(--w-regular) 34px/1.05 var(--font-display); }
.cg-mem__quiet p { margin: 0; max-width: 64ch; font-size: 16px; line-height: 1.55; color: var(--ink-muted); }

/* Section heads inside the list */
.cg-mem__group { display: flex; flex-direction: column; gap: 12px; }
.cg-mem__grouphead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cg-mem__label { margin: 0; font: var(--w-strong) 16px/1.3 var(--font-sans); font-style: normal; color: var(--ink); }
.cg-body a.cg-mem__all { font-size: 14px; font-weight: var(--w-strong); color: var(--link); white-space: nowrap; }

/* Members with a photo: photo tiles, name + "Man . 30s" over a soft bottom gradient, online dot */
.cg-pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cg-pt a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: .85; overflow: hidden; border-radius: var(--radius-m); background: var(--surface-warm); color: var(--on-panel-strong); }
.cg-pt__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.cg-pt a:hover .cg-pt__img { transform: scale(1.03); }
.cg-pt a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cg-pt__dot { position: absolute; right: 8px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--live-dot); border: 2px solid var(--surface); }
.cg-pt__cap { position: relative; display: flex; flex-direction: column; padding: 30px 10px 9px; line-height: 1.25; min-width: 0; background: linear-gradient(to top, var(--scrim), transparent); }
.cg-pt__cap strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-pt__cap span { font-size: 12px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-pt--earlier a { opacity: .72; }
.cg-pt--earlier a:hover, .cg-pt--earlier a:focus-visible { opacity: 1; }

/* Everyone else: compact horizontal profile cards, 3 per row. The nickname is the profile link, stretched over the
   whole card (::after); only the city link of a site-wide card sits above it. */
.cg-mgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; grid-auto-flow: row dense; }
.cg-mgrid__wide { grid-column: 1 / -1; }
.cg-mc { min-width: 0; }
.cg-mc__card { position: relative; display: flex; align-items: flex-start; gap: 14px; height: 100%; min-height: 110px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--surface);
  border: 1px solid var(--surface-divider); color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.cg-mc__card:hover { border-color: var(--border); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.cg-body a.cg-mc__link { display: block; min-width: 0; overflow: hidden; color: var(--ink); }
.cg-body a.cg-mc__link:hover { color: var(--ink); }
.cg-mc__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-m); }
.cg-body a.cg-mc__link:focus-visible { outline: none; }
.cg-mc__link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.cg-body a.cg-mc__city { position: relative; z-index: 2; color: var(--link); }
.cg-body a.cg-mc__city:hover { text-decoration: underline; }
/* City view: members last active before the divider, muted */
.cg-mc--earlier .cg-mc__card { background: transparent; border-color: var(--border); }
.cg-mc--earlier .cg-av { opacity: .7; }
.cg-mc--earlier .cg-mc__name, .cg-mc--earlier .cg-mc__line { color: var(--ink-muted); }
.cg-mt--a1 { background: var(--avatar-1); } .cg-mt--a2 { background: var(--avatar-2); } .cg-mt--a3 { background: var(--avatar-3); }
.cg-mt--a4 { background: var(--avatar-4); } .cg-mt--a5 { background: var(--avatar-5); } .cg-mt--a6 { background: var(--avatar-6); }
.cg-av { flex: none; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: var(--w-strong) 18px/1 var(--font-sans); color: var(--ink); letter-spacing: .02em; }
.cg-mc .cg-av { overflow: hidden; }
.cg-av__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cg-mc__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cg-mc__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cg-mc__name { font-size: 16px; font-weight: var(--w-strong); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-mc__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--live-dot); }
.cg-mc__meta { font-size: 12px; font-weight: var(--w-strong); color: var(--ink-caption); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-mc__line { margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cg-mc__when { margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--ink-caption); }
.cg-mc__when--on { color: var(--on-live); font-weight: var(--w-strong); }

/* Numbered paging */
.cg-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding-top: 6px; }
.cg-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cg-body .cg-pager a, .cg-pager span.cg-pg { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: var(--w-strong); color: var(--ink); background: var(--surface); white-space: nowrap; }
.cg-body .cg-pager a:hover { background: var(--surface-soft); color: var(--ink); }
.cg-pager span.cg-pg.cg-pg--on { background: var(--ink); color: var(--surface); }
.cg-pager span.cg-pg.cg-pg--off { color: var(--ink-caption); background: transparent; }
.cg-pager span.cg-pg.cg-pg--gap { background: transparent; min-width: 24px; padding: 0; color: var(--ink-caption); }

/* Right column: Latest activity (+ a quiet list of other cities) */
.cg-mem__side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 16px; }
.cg-side { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 10px; border-radius: var(--radius-l); background: var(--surface); }
.cg-side h2 { font: var(--w-strong) 15px/1.3 var(--font-sans); font-style: normal; color: var(--ink-muted); padding-bottom: 6px; }
.cg-side ul { list-style: none; margin: 0; padding: 0; }
.cg-side li + li { border-top: 1px solid var(--surface-divider); }
.cg-body a.cg-lr { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; color: var(--ink); }
.cg-body a.cg-lr:hover { color: var(--ink); }
.cg-body a.cg-lr:hover .cg-lr__tx strong { text-decoration: underline; }
.cg-lr__av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: var(--w-strong) 14px/1 var(--font-sans); color: var(--ink); }
.cg-lr__av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cg-lr__dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--live-dot); border: 2px solid var(--surface); }
.cg-lr__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cg-lr__tx strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-lr__tx span { font-size: 13px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-lr__when { flex: none; font-size: 12px; font-weight: var(--w-strong); color: var(--ink-caption); white-space: nowrap; }
.cg-lr__when--on { color: var(--on-live); }
.cg-side--cities { padding-bottom: 14px; }
.cg-body a.cg-oc { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-height: 40px; padding: 8px 0; font-size: 15px; font-weight: var(--w-strong); color: var(--ink); }
.cg-body a.cg-oc:hover { color: var(--link); }
.cg-oc small { font-size: 12px; font-weight: var(--w-strong); color: var(--ink-caption); white-space: nowrap; }
.cg-body a.cg-oc[aria-current] { color: var(--link); }
.cg-side__quiet { margin: 0; padding: 6px 0 4px; font-size: 14px; color: var(--ink-muted); }
/* All cities: every city with a member active in the last two years, folded */
.cg-allcities { border-top: 1px solid var(--surface-divider); }
.cg-allcities summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 15px; font-weight: var(--w-strong); color: var(--link); }
.cg-allcities ul { max-height: 360px; overflow-y: auto; columns: 2; column-gap: 16px; padding-bottom: 4px; }
.cg-allcities li { break-inside: avoid; }
.cg-side .cg-allcities li + li { border-top: 0; }
.cg-body .cg-allcities a { display: block; padding: 5px 0; font-size: 14px; color: var(--ink-muted); overflow-wrap: anywhere; }
.cg-body .cg-allcities a:hover, .cg-body .cg-allcities a[aria-current] { color: var(--link); }

/* ---- Member profile ---------------------------------------------------------------------------------- */
.cg-prof { display: flex; flex-direction: column; gap: 14px; padding-block: 16px 64px; }
.cg-body a.cg-prof__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: var(--w-strong); color: var(--ink-muted); }
.cg-prof__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; }
.cg-prof__id { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: var(--radius-l); background: var(--surface); min-width: 0; }
.cg-pav { position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; background: var(--avatar-6); display: block; }
.cg-pav > a { position: absolute; inset: 0; display: block; border-radius: 50%; }
.cg-pav__ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: italic var(--w-regular) 40px/1 var(--font-display); color: var(--ink); }
.cg-pav__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cg-pav__dot { position: absolute; right: 2px; bottom: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--live-dot); border: 3px solid var(--surface); }
.cg-prof__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cg-prof h1 { font: italic var(--w-regular) 44px/1 var(--font-display); overflow-wrap: anywhere; }
.cg-prof__active { margin: 0; font-size: 15px; font-weight: var(--w-strong); color: var(--ink-muted); }
.cg-prof__active--on { color: var(--on-live); }
.cg-prof__where { margin: 0; font-size: 14px; color: var(--ink-muted); }
.cg-prof__stats { margin: 0; display: flex; padding: 4px 0; border-radius: var(--radius-m); background: var(--surface-warm); }
.cg-prof__stats > div { flex: 1; min-width: 0; padding: 8px 14px; display: flex; flex-direction: column-reverse; gap: 2px; }
.cg-prof__stats > div + div { border-left: 1px solid var(--surface-divider); }
.cg-prof__stats dd { margin: 0; font: italic var(--w-regular) 30px/1 var(--font-display); }
.cg-prof__stats dt { font-size: 13px; font-weight: var(--w-strong); color: var(--ink-muted); line-height: 1.25; }
.cg-prof__about { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-muted); white-space: pre-line; overflow-wrap: anywhere; }
.cg-prof__facts { margin: 0; display: flex; flex-direction: column; font-size: 14px; }
.cg-prof__facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--surface-divider); }
.cg-prof__facts dt { color: var(--ink-caption); font-weight: var(--w-strong); }
.cg-prof__facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.cg-prof__actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--border); }
.cg-body .cg-prof__actions .cg-btn { box-sizing: border-box; width: 100%; min-height: 48px; height: auto; padding: 12px 18px; white-space: normal; text-align: center; line-height: 1.4; }
.cg-body a.cg-prof__report { align-self: center; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: var(--w-strong); color: var(--ink-caption); }
.cg-body a.cg-prof__report:hover { color: var(--link); }

.cg-prof__main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.cg-prof__main section { display: flex; flex-direction: column; gap: 12px; }
.cg-prof__main h2 { font: italic var(--w-regular) 34px/1.05 var(--font-display); }
.cg-prof__photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cg-prof__note { margin: -6px 0 10px; font-size: 13px; color: var(--ink-muted); }
.cg-prof__photos li { position: relative; }
/* Report (ADR 0023): a quiet link in the photo's corner, always reachable, no hover needed on touch. */
.cg-prof__photos .cg-prof__report { position: absolute; right: 6px; bottom: 6px; margin: 0; }
.cg-prof__report button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.cg-prof__report button:hover, .cg-prof__report button:focus-visible { background: rgba(0, 0, 0, .8); }
.cg-prof__report.is-reported { display: inline-flex; align-items: center; gap: 2px; padding-left: 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; }
.cg-prof__report.is-reported button { background: none; text-decoration: underline; font-weight: var(--w-strong); }
.cg-prof__flash { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--live-tint, #e8f5ee); color: var(--on-live, #14532d); font-weight: 600; }
.cg-prof__photos li { aspect-ratio: 1; border-radius: var(--radius-m); overflow: hidden; background: var(--surface-warm); }
.cg-prof__photo-link { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.cg-prof__photo-link:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.cg-prof__photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cg-prof__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cg-pitem { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-radius: var(--radius-m); background: var(--surface); }
.cg-pitem__top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.cg-pitem__top strong { font-size: 16px; }
.cg-pitem__meta { margin: 0; font-size: 13px; color: var(--ink-caption); }
.cg-pitem__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-muted); white-space: pre-line; overflow-wrap: anywhere; }

/* Velvet: big serif headings take the rose-gold heading colour */
[data-theme="velvet"] .cg-mem h1, [data-theme="velvet"] .cg-mem__quiet h2,
[data-theme="velvet"] .cg-prof h1, [data-theme="velvet"] .cg-prof__main h2, [data-theme="velvet"] .cg-prof__stats dd { color: var(--heading); }

/* ---- Narrow screens ---------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .cg-mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cg-mem__split { grid-template-columns: 1fr; gap: 28px; }
  .cg-mem__side { position: static; }
  .cg-mem__dir--side { display: none; }
  .cg-mem__dir--below { display: inline; }
  .cg-mem h1 { font-size: 40px; }
  .cg-mem__find { width: 100%; }
  .cg-prof__grid { grid-template-columns: 1fr; gap: 24px; }
  .cg-prof__id { position: static; padding: 20px; }
  .cg-prof__photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cg-mem { padding-block: 16px 48px; gap: 14px; }
  .cg-mem h1 { font-size: 34px; }
  .cg-mem__stats { font-size: 14px; }
  .cg-mem__smallline { font-size: 15px; }
  .cg-mem__cta { padding: 16px 18px; }
  .cg-mem__cta .cg-btn { width: 100%; justify-content: center; }
  .cg-mgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cg-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cg-pt a { border-radius: var(--radius-s); }
  .cg-pt__cap strong { font-size: 13px; }
  .cg-mc__card { padding: 12px 14px; gap: 12px; }
  .cg-av { width: 52px; height: 52px; font-size: 17px; }
  .cg-mem__quiet { padding: 18px; }
  .cg-mem__quiet h2 { font-size: 28px; }
  .cg-pager { gap: 4px; }
  .cg-body .cg-pager a, .cg-pager span.cg-pg { min-width: 40px; height: 40px; padding: 0 10px; }
  .cg-prof h1 { font-size: 38px; }
  .cg-prof__photos { gap: 6px; }
  .cg-prof__main h2 { font-size: 28px; }
}

/* Members list only: with hundreds of initials avatars on one page, a single tint reads as a wall. Vary them across
   warm hues of the H palette (wine initials stay readable on all). The design-system rule of one avatar style still
   holds elsewhere (Location/City members blocks). Velvet keeps its own avatar tokens. */
:root:not([data-theme="velvet"]) .cg-mt--a1 { background: #ffe1d2; }
:root:not([data-theme="velvet"]) .cg-mt--a2 { background: #fcd3e2; }
:root:not([data-theme="velvet"]) .cg-mt--a3 { background: #f3d6ef; }
:root:not([data-theme="velvet"]) .cg-mt--a4 { background: #ffe7c2; }
:root:not([data-theme="velvet"]) .cg-mt--a5 { background: #f7d0c6; }
:root:not([data-theme="velvet"]) .cg-mt--a6 { background: #e6dbf6; }

/* Members directory v2: Rec-Members-D/P.v2, 2026-10-23. Profile styling above stays shared. */
.cg-mem--directory { gap: 24px; padding-block: 24px 56px; }
.cg-mem--directory .cg-mem__head { flex-wrap: nowrap; gap: 32px; }
.cg-mem__eyebrow { margin: 0 0 8px; color: var(--ink-caption); font-size: 12px; font-weight: var(--w-strong); }
.cg-mem--directory .cg-mem__title { gap: 10px; }
.cg-mem--directory h1 { font-size: 60px; }
.cg-mem__location { display: flex; flex-direction: column; gap: 7px; width: 230px; min-width: 180px; }
.cg-mem__location label { font-size: 12px; color: var(--ink-caption); }
.cg-mem__location select { width: 100%; min-height: 46px; padding: 8px 32px 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font: var(--w-strong) 14px/1.4 var(--font-sans); }
.cg-mem__searchrow { display: flex; align-items: center; gap: 20px; }
.cg-mem--directory .cg-mem__find { width: 630px; }
.cg-mem--directory .cg-mem__find input { height: 52px; font-weight: var(--w-regular); font-size: 16px; }
.cg-mem--directory .cg-mem__find .cg-btn { height: 52px; }
.cg-mem--directory input:focus-visible, .cg-mem--directory select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cg-mem__searchhint { font-size: 12px; color: var(--ink-caption); max-width: 36ch; }
.cg-mem--directory .cg-mem__split { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
.cg-mem--directory .cg-mem__tabs { gap: 20px; }
.cg-mem--directory a.cg-mtab { padding: 8px 2px 12px; min-height: 52px; }
.cg-mem__resulthead { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cg-mem__sort { display: flex; align-items: center; gap: 6px; }
.cg-mem__resulthead label { display: flex; align-items: center; gap: 6px; color: var(--ink-caption); font-size: 13px; }
.cg-mem__resulthead select { border: 0; min-height: 44px; color: var(--ink); background: transparent; font: inherit; font-weight: var(--w-strong); }
.cg-mem__scope { margin: -16px 0 0; color: var(--ink-caption); font-size: 12px; }
.cg-member-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; list-style: none; padding: 0; margin: 0; }
.cg-member-rows > li { min-width: 0; }
.cg-body a.cg-mrow { display: flex; gap: 14px; align-items: center; min-height: 112px; padding: 16px 4px; border-top: 1px solid var(--border); color: var(--ink); }
.cg-body a.cg-mrow:hover { background: var(--surface-warm); color: var(--ink); }
.cg-body a.cg-mrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cg-mrow__avatar { position: relative; display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 50%; font-size: 18px; font-weight: var(--w-strong); }
.cg-mrow__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cg-mrow__dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ground); background: var(--live-dot); }
.cg-mrow__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cg-mrow__copy strong { display: flex; gap: 8px; align-items: center; font-size: 16px; font-weight: var(--w-strong); overflow-wrap: anywhere; }
.cg-mrow__copy strong > span { margin-left: auto; color: var(--ink-caption); font-weight: var(--w-regular); }
.cg-mrow__meta, .cg-mrow__bio { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); font-size: 13px; }
.cg-mrow__when { color: var(--ink-caption); font-size: 12px; }
.cg-mrow__when.is-online { color: var(--on-live); font-weight: var(--w-strong); }
.cg-mem__older { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-block: 14px; color: var(--ink-caption); font-size: 12px; }
.cg-mem__older::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.cg-mem--directory .cg-side { background: transparent; padding: 12px 0 0; border-radius: 0; border-top: 2px solid var(--ink); }
.cg-mem--directory .cg-side h2 { color: var(--ink); font-size: 16px; }
.cg-mem--directory .cg-lr { min-height: 80px; }
.cg-mem--directory .cg-lr__tx { gap: 3px; }
.cg-mem--directory .cg-lr__when { margin-top: 2px; font-weight: var(--w-regular); }
.cg-mem__across, .cg-mem__privacy { margin: 0; font-size: 12px; color: var(--ink-caption); }
.cg-member-nav { display: none; }
@media (max-width: 1050px) {
  .cg-mem--directory .cg-mem__split { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
  .cg-member-rows { grid-template-columns: minmax(0, 1fr); }
  .cg-mem--directory h1 { font-size: 48px; }
}
@media (max-width: 720px) {
  .cg-page-members { padding-bottom: 80px; }
  .cg-mem--directory { gap: 20px; padding-block: 16px 40px; }
  .cg-mem--directory .cg-mem__head { flex-direction: column; align-items: stretch; gap: 16px; }
  .cg-mem--directory h1 { font-size: 40px; }
  .cg-mem__eyebrow { display: none; }
  .cg-mem__location { flex-direction: row; align-items: center; gap: 12px; width: 100%; }
  .cg-mem__location label { flex: none; }
  .cg-mem__location select { min-width: 0; flex: 1; min-height: 44px; font-size: 13px; }
  .cg-mem__searchrow { flex-direction: column; align-items: stretch; gap: 6px; }
  .cg-mem--directory .cg-mem__find { width: 100%; }
  .cg-mem__searchhint { padding-inline: 4px; font-size: 11px; max-width: none; }
  .cg-mem--directory .cg-mem__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; border: 0; }
  .cg-mem--directory a.cg-mtab { justify-content: center; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 13px; white-space: normal; text-align: center; }
  .cg-mem--directory a.cg-mtab[aria-current] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
  .cg-mem--directory .cg-mem__split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cg-mem--directory .cg-mem__range { font-size: 12px; }
  .cg-mem__resulthead { gap: 6px; }
  .cg-mem__resulthead label { font-size: 12px; }
  .cg-mem__scope { font-size: 11px; }
  .cg-body a.cg-mrow { min-height: 104px; padding: 14px 0; }
  .cg-mem--directory .cg-mem__side { position: static; }
  .cg-member-nav { display: flex; position: fixed; z-index: 30; bottom: 0; inset-inline: 0; padding: 6px 6px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); border-radius: 22px 22px 0 0; background: var(--surface); box-shadow: var(--shadow-sheet); }
  .cg-body .cg-member-nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; flex: 1; min-width: 0; min-height: 56px; color: var(--ink-muted); font-size: 11px; }
  .cg-body .cg-member-nav a[aria-current] { color: var(--accent); font-weight: var(--w-strong); }
}

/* Flag PlacesYouGo: the own-profile "Add the places you go" button stays button-sized. */
.cg-prof__addplaces { align-self: flex-start; width: auto; }
