@import url("https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,400..700;1,400..700&family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&display=swap");
/* Open Relationship Singles (openrelationshipsingles.com), 18 Nov 2026. The brand's own look: calm and grown-up, nothing like a swinger site. Warm sand and cream reading bands, sage tints, deep teal for night bands and footer, terracotta Joins on light and apricot Joins on teal. Soft, rounded shapes. Type: the Slow Sunday pairing (Newsreader headings over Karla text). No JavaScript anywhere.
   Built by working/tools/build_site.py into site/global.css; edit the content module, never site/global.css. */

/* metric-matched fallbacks from scripts/font-pairings.json (slow-sunday), so a slow font does not move the first Join */
@font-face { font-family: "NewsreaderFallback"; src: local("Arial"); font-weight: 400; size-adjust: 100.1%; ascent-override: 73.5%; descent-override: 26.5%; line-gap-override: 0.0%; }
@font-face { font-family: "NewsreaderFallback"; src: local("Arial Bold"), local("Arial"); font-weight: 700; size-adjust: 108.8%; ascent-override: 73.5%; descent-override: 26.5%; line-gap-override: 0.0%; }
@font-face { font-family: "KarlaFallback"; src: local("Arial"); font-weight: 400; size-adjust: 103.7%; ascent-override: 91.7%; descent-override: 25.2%; line-gap-override: 0.0%; }
@font-face { font-family: "KarlaFallback"; src: local("Arial Bold"), local("Arial"); font-weight: 700; size-adjust: 108.7%; ascent-override: 91.7%; descent-override: 25.2%; line-gap-override: 0.0%; }

:root {
  /* toolkit token contract */
  --color-bg: #FBF7F1;
  --color-surface: #ffffff;
  --color-surface-soft: #E6EDE4;
  --color-text: #26302F;
  --color-text-soft: #4E5A58;
  --color-heading: #1E3A3A;
  --color-primary: #A3432A;
  --color-primary-dark: #7E3220;
  --color-on-primary: #ffffff;
  --color-scrim: #1E3A3A;
  --color-on-scrim: #ffffff;
  --color-rule: #E3DDD3;
  --color-focus: #1E3A3A;
  --font-heading: 'Newsreader', 'NewsreaderFallback', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', 'KarlaFallback', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --weight-display: 700;
  --type-scale: 1.0;
  --heading-leading: 1.15;
  --heading-tracking: -0.005;
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-7: 2rem; --space-8: 2.5rem; --space-9: 3rem; --space-10: 4rem; --space-11: 5rem; --space-12: 6rem;
  --container-max: 72rem;
  --prose-max: 42rem;
  --btn-radius: 999px;
  --card-radius: 22px;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 26px rgba(0, 0, 0, .07);
  --card-border: 1px solid #E3DDD3;
  --chip-radius: 999px;
  --logo-height: 56px;
  --logo-height-footer: 62px;
  --transition-fast: 150ms ease;
  --transition-slow: 300ms ease;
  --or-dark: #1E3A3A;
  --or-on-dark: #E9F0EC;
  --or-on-dark-soft: #C3D2CC;
  --or-accent: #F3D7C2;
  --or-accent-ink: #3A1F14;
  --or-tint: #E6EDE4;
  --or-tint-2: #F6E9DD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-dark); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-heading); line-height: var(--heading-leading); letter-spacing: calc(var(--heading-tracking) * 1em); margin: 0 0 .75rem; font-weight: 700; overflow-wrap: break-word; }
h1 { font-size: calc(2.15rem * var(--type-scale)); }
h2 { font-size: calc(1.7rem * var(--type-scale)); }
h3 { font-size: calc(1.2rem * var(--type-scale)); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.prose-column, .or-section-inner.prose-column { max-width: calc(var(--prose-max) + 2.5rem); }
.prose-column a:not([class]), .or-faq a:not([class]), .or-rules a:not([class]), .or-items a:not([class]), .or-card a:not([class]) { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.or-site { min-height: 100vh; display: flex; flex-direction: column; }
.or-site > main { flex: 1 0 auto; }

/* ---------- buttons */
.or-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.6rem; border-radius: var(--btn-radius); background: var(--color-primary); color: var(--color-on-primary); font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: .01em; border: 2px solid var(--color-primary); transition: background var(--transition-fast), border-color var(--transition-fast); }
.or-btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.or-btn--hero { min-width: 12rem; min-height: 52px; font-size: 1.1rem; }
.or-btn--band { background: var(--or-accent); border-color: var(--or-accent); color: var(--or-accent-ink); }
.or-btn--band:hover { background: #fff; border-color: #fff; color: var(--or-accent-ink); }

/* ---------- header */
.or-head { position: relative; z-index: 5; background: #FBF7F1; border-bottom: 1px solid #E3DDD3; }
.or-head-inner { max-width: var(--container-max); margin: 0 auto; padding: .55rem 1rem; display: flex; align-items: center; gap: .6rem; min-height: 60px; }
.or-head-mark { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.or-head-logo { height: var(--logo-height); width: auto; }
@media (max-width: 55.99rem) { .or-head-logo { height: auto; width: auto; max-width: 46vw; } .or-head-mark { min-width: 0; flex-shrink: 1; } }
.or-head-nav { display: none; }
.or-head-nav ul, .or-menu-nav ul { list-style: none; margin: 0; padding: 0; }
.or-head-actions { flex-shrink: 0; display: flex; align-items: center; gap: .6rem; }
.or-head-login { display: none; color: #1E3A3A; font-weight: 600; text-decoration: none; padding: .5rem .25rem; }
.or-head-login:hover { text-decoration: underline; }
.or-head-join { white-space: nowrap; flex-shrink: 0; min-height: 42px; padding: .45rem 1rem; font-size: .98rem; }
.or-menu { position: static; }
.or-menu-toggle { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 2px solid #E3DDD3; }
.or-menu-toggle::-webkit-details-marker { display: none; }
.or-menu-bars, .or-menu-bars::before, .or-menu-bars::after { display: block; width: 20px; height: 2px; background: #1E3A3A; border-radius: 2px; position: relative; content: ""; }
.or-menu-bars::before { position: absolute; top: -6px; }
.or-menu-bars::after { position: absolute; top: 6px; }
.or-menu[open] .or-menu-bars { background: transparent; }
.or-menu[open] .or-menu-bars::before { top: 0; transform: rotate(45deg); }
.or-menu[open] .or-menu-bars::after { top: 0; transform: rotate(-45deg); }
.or-menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #FBF7F1; border-bottom: 1px solid var(--color-rule); padding: .5rem 1rem 1rem; box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.or-menu-nav a, .or-menu-login { display: flex; align-items: center; min-height: 46px; color: #1E3A3A; font-weight: 600; text-decoration: none; border-bottom: 1px solid #ECE6DC; }
.or-menu-login { border-bottom: 0; text-decoration: underline; }

/* ---------- hero */
.or-hero { background: #F6E9DD; color: #26302F; }
.or-hero-inner { max-width: var(--container-max); margin: 0 auto; padding: 1.25rem 1rem 1.5rem; display: grid; gap: 1.25rem; }
.or-hero-title { color: #1E3A3A; margin: 0; font-size: calc(2.1rem * var(--type-scale)); }
.or-hero-cta { margin: 1rem 0 0; }
.or-hero-sub { margin: 1rem 0 0; font-size: 1.08rem; max-width: 36rem; color: #26302F; }
.or-hero-sub a { color: inherit; text-decoration: underline; }
.or-hero-points { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
.or-hero-points li { position: relative; padding-left: 1.6rem; font-weight: 600; }
.or-hero-points li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .7rem; height: .7rem; border-radius: 50%; background: #A3432A; box-shadow: .35rem .2rem 0 #9DB59A; }
.or-hero-photo { margin: 0; }
.or-hero-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 28px 28px 28px 6px;  }

/* ---------- sections */
.or-section { padding: 2.5rem 0; }
.or-section--tint { background: var(--or-tint); }
.or-section--tint2 { background: var(--or-tint-2); }
.or-section--white { background: #fff; }
.or-section--dark { background: var(--or-dark); color: var(--or-on-dark); }
.or-section--dark h2, .or-section--dark h3 { color: #fff; }
.or-section--dark a:not([class]) { color: #fff; }
.or-section-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
.or-section-head { max-width: var(--prose-max); margin-bottom: 1.25rem; }
.or-lede { font-size: 1.15rem; }
.or-small { font-size: .95rem; color: var(--color-text-soft); }
.or-small-list { font-size: .95rem; color: var(--color-text-soft); padding-left: 1.2rem; max-width: var(--prose-max); }
.or-list { padding-left: 1.3rem; }
.or-list li { margin-bottom: .5rem; }
.or-list--num { padding-left: 1.5rem; }
.or-more-link { margin-top: 1.5rem; }

.or-join-box { margin: 1.5rem 0; padding: 1.25rem; border-radius: var(--card-radius); background: #ffffff; border: 1px solid #E3DDD3; display: grid; gap: .85rem; justify-items: start; }
.or-join-box p { margin: 0; font-weight: 600; color: var(--color-heading); }
.or-section--dark .or-join-box { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.or-section--dark .or-join-box p { color: #fff; }
.or-section--dark .or-join-box .or-btn { background: var(--or-accent); border-color: var(--or-accent); color: var(--or-accent-ink); }
.or-join-box--mid { background: #E6EDE4; border-color: #D3DECF; }

.or-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.or-items > li { background: #fff; border: var(--card-border); border-radius: var(--card-radius); padding: 1.1rem 1.2rem; }
.or-items > li p { margin: 0; }
.or-section--dark .or-items > li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.or-items--num { counter-reset: it; }
.or-items--num > li { counter-increment: it; position: relative; padding-left: 3.4rem; }
.or-items--num > li::before { content: counter(it); position: absolute; left: 1rem; top: 1rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 999px; background: var(--color-primary); color: #fff; font-weight: 700; font-family: var(--font-heading); }

.or-rules { margin: 0; display: grid; gap: .3rem; }
.or-rules dt { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--color-heading); margin-top: .9rem; }
.or-rules dd { margin: 0; }
.or-section--dark .or-rules dt { color: #fff; }

.or-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.or-card { position: relative; background: #fff; border: var(--card-border); border-radius: var(--card-radius); overflow: hidden; box-shadow: var(--card-shadow); color: var(--color-text); }
.or-card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.or-card-body { padding: 1rem 1.1rem 1.2rem; }
.or-card-body p { margin: 0; }
.or-card-title { font-size: 1.3rem; margin-bottom: .4rem; }
.or-card-title a { color: var(--color-heading); text-decoration: none; }
.or-card-title a::after { content: ""; position: absolute; inset: 0; }
.or-card-title a:hover { text-decoration: underline; }

.or-cta-band { background: var(--or-dark); color: var(--or-on-dark); padding: 2.75rem 0; background-image: radial-gradient(circle at 15% 20%, rgba(243,215,194,.12) 0 22%, transparent 23%), radial-gradient(circle at 85% 80%, rgba(157,181,154,.14) 0 26%, transparent 27%); }
.or-cta-band-inner { max-width: var(--prose-max); margin: 0 auto; padding: 0 1.25rem; text-align: center; }
.or-cta-band h2 { color: #fff; }
.or-cta-band p { color: var(--or-on-dark); }

/* ---------- tables (pricing) */
.or-table-wrap { margin: 1.25rem 0; }
.or-table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; border: 1px solid var(--color-rule); font-size: 1rem; }
.or-table caption { caption-side: top; text-align: left; font-weight: 600; color: var(--color-text-soft); padding: 0 0 .5rem; font-size: .95rem; }
.or-table th, .or-table td { padding: .65rem .7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-rule); overflow-wrap: break-word; hyphens: auto; }
.or-table thead th { background: var(--or-dark); color: #fff; font-family: var(--font-heading); font-size: 1.05rem; }
.or-table tbody th { font-weight: 600; color: var(--color-heading); }
.or-table tbody th[scope="rowgroup"] { background: var(--or-tint); }
.or-price-table td .or-amt { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; line-height: 1.15; color: var(--color-heading); }
.or-price-table td .or-how { display: block; font-size: .92rem; color: var(--color-text-soft); line-height: 1.4; margin-top: .15rem; }
.or-price-block { margin: 0; }
.or-feature-table th:first-child { width: 40%; }
@media (max-width: 30rem) { .or-table { font-size: .86rem; } .or-feature-table th:first-child { width: 34%; } .or-table th, .or-table td { padding: .5rem .4rem; } .or-price-table td .or-amt { font-size: 1.15rem; } }

/* ---------- FAQ */
.or-section-inner.or-faq { max-width: calc(var(--prose-max) + 2.5rem); }
.faq-details { border-bottom: 1px solid var(--color-rule); }
.faq-details:first-of-type { border-top: 1px solid var(--color-rule); }
.faq-details > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem .15rem; font-weight: 700; color: var(--color-heading); min-height: 48px; }
.faq-details > summary::-webkit-details-marker { display: none; }
.faq-details > summary::after { content: "+"; flex: none; font-family: var(--font-heading); font-size: 1.6rem; line-height: .8; color: var(--color-primary); transition: transform var(--transition-fast); }
.faq-details[open] > summary::after { transform: rotate(45deg); }
.faq-details-answer { padding: 0 .15rem 1.1rem; }
.faq-details-answer p { margin: 0; }
.faq-details-question { flex: 1; }

/* ---------- footer */
.or-foot { background: #172F2F; color: var(--or-on-dark-soft); padding: 2.5rem 0 2rem; font-size: .95rem; }
.or-foot-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; display: grid; gap: 1.1rem; }
.or-foot-logo { height: var(--logo-height-footer); width: auto; }
.or-foot-menu ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .1rem 1rem; }
.or-foot-menu a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; text-decoration: none; }
.or-foot-menu a:hover { text-decoration: underline; }
.or-foot-legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.or-foot-legal a { display: inline-flex; align-items: center; min-height: 36px; color: var(--or-on-dark-soft); text-decoration: underline; text-underline-offset: 2px; }
.or-foot-legal a:hover { color: #fff; }
.or-foot-note, .or-foot-copy { margin: 0; color: var(--or-on-dark-soft); }
.or-foot-age { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; color: #fff; margin: 0; }
.or-foot-age span { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.4rem; border-radius: 8px; background: var(--or-accent); color: var(--or-accent-ink); font-family: var(--font-heading); font-size: 1.1rem; }

.or-section-inner > .member-grid { padding-inline: 0; margin-top: 1.25rem; }
.or-section-inner > .currency-switch { margin-bottom: 1rem; }

/* ---------- wider screens */
@media (min-width: 40rem) {
  .or-cards { grid-template-columns: repeat(2, 1fr); }
  .or-items { grid-template-columns: repeat(2, 1fr); }
  .or-items--num { grid-template-columns: 1fr; }
}
@media (min-width: 56rem) {
  h1 { font-size: calc(2.9rem * var(--type-scale)); }
  .or-head-nav { display: block; }
  .or-head-nav ul { display: flex; gap: 1.1rem; }
  .or-head-nav a { color: #1E3A3A; text-decoration: none; font-weight: 600; }
  .or-head-nav a:hover { text-decoration: underline; }
  .or-head-login { display: inline-flex; }
  .or-menu { display: none; }
  .or-hero-inner { grid-template-columns: 1.05fr 1fr; align-items: center; padding: 3rem 1.5rem; gap: 2.5rem; }
  .or-hero-title { font-size: calc(3rem * var(--type-scale)); }
  .or-section { padding: 3.5rem 0; }
  .or-cards { grid-template-columns: repeat(4, 1fr); }
  .or-items { grid-template-columns: repeat(3, 1fr); }
  .or-items--num { grid-template-columns: repeat(2, 1fr); }
}

/* brand flourishes */
.or-hero-title { font-weight: 600; }
.or-section h2, .or-cta-band h2 { font-weight: 600; }
.or-hero-sub { font-size: 1.12rem; }
.or-card { border: 0; box-shadow: 0 1px 2px rgba(30,58,58,.06), 0 12px 28px rgba(30,58,58,.09); }
.or-card-img { border-radius: 22px 22px 0 0; }
.or-items > li { border-radius: 18px; }
.or-rules dt { font-style: italic; }
.or-lede { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.45; color: var(--color-heading); }


/* ---------- pattern library blocks copied from the Design-passed Las Vegas Singles kit (17 Nov 2026), unchanged ---------- */
/* ---------- currency switch on /pricing: pattern library v332 currency-switch, copied as it ships ---------- */
/* currency-switch v1 - tokens only, selectors prefixed */
.currency-switch {
  overflow-wrap: var(--long-words, break-word);
}
.currency-switch :is(h1, h2, h3, h4) {
  overflow-wrap: var(--long-words, anywhere);
}
@supports (hyphenate-limit-chars: 20 8 8) {
  .currency-switch {
    hyphens: var(--long-word-hyphens, manual);
    hyphenate-limit-chars: 20 8 8;
  }
}
.currency-switch {
  /* The touch-target floor. Every option is at least this tall and wide. */
  --currency-switch-target: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  margin: 0 0 var(--space-5);
  padding: 0;
  border: 0;
}
.currency-switch-label {
  margin: 0 0 var(--space-2);
  padding: 0;
  color: var(--color-text);
  font-weight: 700;
}
.currency-switch-option {
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--currency-switch-target);
  min-width: var(--currency-switch-target);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  color: var(--color-text);
  /* The border is what marks an unpicked option as a control. */
  border: 2px solid color-mix(in srgb, var(--color-primary) 75%, var(--color-surface));
  border-radius: var(--chip-radius);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
/* The radio covers its label and is not drawn: the label is the control. */
.currency-switch-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  background: none;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}
/* Every currency side by side: a page with no switch, and a browser that
   cannot switch. \20, because a space straight after an escape is part of it. */
.currency-switch-price > span + span::before {
  content: " \b7\20";
}
@supports not selector(:has(*)) {
  /* The choices would do nothing here, so they are not drawn. */
  .currency-switch {
    display: none;
  }
}
@supports selector(:has(*)) {
  /* The picked state commits to both halves of the guaranteed pair. */
  .currency-switch-option:has(.currency-switch-input:checked) {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
  }
  .currency-switch-option:has(.currency-switch-input:focus-visible) {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
  }
  body:has(.currency-switch) .currency-switch-price > span + span::before {
    content: none;
  }
  /* The option's place in the group is the price's place in its wrapper,
     which is why both are written in one order. With nothing picked the page
     shows its first currency. */
  body:has(.currency-switch):not(:has(.currency-switch-input:checked)) .currency-switch-price > span:not(:nth-child(1)),
  body:has(.currency-switch-option:nth-of-type(1) > .currency-switch-input:checked) .currency-switch-price > span:not(:nth-child(1)),
  body:has(.currency-switch-option:nth-of-type(2) > .currency-switch-input:checked) .currency-switch-price > span:not(:nth-child(2)),
  body:has(.currency-switch-option:nth-of-type(3) > .currency-switch-input:checked) .currency-switch-price > span:not(:nth-child(3)),
  body:has(.currency-switch-option:nth-of-type(4) > .currency-switch-input:checked) .currency-switch-price > span:not(:nth-child(4)),
  body:has(.currency-switch-option:nth-of-type(5) > .currency-switch-input:checked) .currency-switch-price > span:not(:nth-child(5)),
  body:has(.currency-switch-option:nth-of-type(6) > .currency-switch-input:checked) .currency-switch-price > span:not(:nth-child(6)) {
    display: none;
  }
}

/* ---------- live member block: pattern library v332 member-grid (plain, grid), copied as it ships. The platform fills
   the empty <section data-members> with this brand's own members at render; a preview shows it empty. ---------- */
/* member-grid v1 - tokens only, selectors prefixed.
   Everything below .member-grid is markup the PLATFORM writes, so these class
   names are a contract with it, not ours to rename. */
.member-grid {
  overflow-wrap: var(--long-words, break-word);
}
.member-grid :is(h1, h2, h3, h4) {
  overflow-wrap: var(--long-words, anywhere);
}
@supports (hyphenate-limit-chars: 20 8 8) {
  .member-grid {
    hyphens: var(--long-word-hyphens, manual);
    hyphenate-limit-chars: 20 8 8;
  }
}
.member-grid {
  display: block;
  padding-inline: var(--space-4);
}
.member-grid .lp-grid,
.member-grid .lp-members__empty {
  max-width: var(--container-max);
  margin-inline: auto;
}
.member-grid .lp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: var(--space-4);
  list-style: none;
  margin-block: 0;
  padding: 0;
}
.member-grid .mem-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  position: relative;
}
.member-grid .mem-card img,
.member-grid .mem-card__initial {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--card-radius);
  background: var(--color-surface);
}
.member-grid .mem-card__initial {
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: calc(2rem * var(--type-scale, 1));
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
}
.member-grid .mem-card .badge {
  position: absolute;
  top: var(--space-2);
  inset-inline-start: var(--space-2);
  padding: 0.15rem var(--space-2);
  border-radius: var(--chip-radius);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}
.member-grid .mem-card__name {
  margin: var(--space-2) 0 0;
  font-family: var(--font-heading);
  font-size: calc(1rem * var(--type-scale, 1));
  font-weight: 700;
  color: var(--color-text);
  overflow-wrap: anywhere;
}
.member-grid .mem-card__where,
.member-grid .mem-card__line {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-soft);
  overflow-wrap: anywhere;
}
/* Two lines and no more. A blurb is member-written and has no length limit,
   so without this one card sets the height of the whole row. */
.member-grid .mem-card__line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
/* 44px, not the 24px WCAG floor: on a phone this is the card's only control
   and it sits between two photographs. */
.member-grid .mem-card__cta {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.member-grid .mem-card__cta:hover {
  text-decoration: underline;
}
.member-grid .mem-card__cta:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--chip-radius);
}
/* The join tile is the platform's last li and carries no photograph, so it
   needs a body of its own or it collapses to a link on the baseline. A grid
   item stretches to its row, so the floor is for the row it lands in ALONE -
   it is the last of an unknown number, so it wraps by itself often. */
.member-grid .mem-card--join {
  display: grid;
  place-items: center;
  min-height: 9rem;
  padding: var(--space-4);
  border: var(--card-border);
  border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
  text-align: center;
}
.member-grid .mem-card--join .mem-card__cta {
  justify-content: center;
  margin: 0;
}
.member-grid .lp-members__empty {
  margin-block: 0;
  padding: var(--space-5) var(--space-4);
  border: 1px dashed color-mix(in srgb, var(--color-primary) 30%, transparent);
  border-radius: var(--card-radius);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* card: how much furniture sits around the photograph */
.member-grid--plain .mem-card {
  padding: 0;
}
.member-grid--framed .mem-card {
  padding: var(--space-3);
  border: var(--card-border);
  border-radius: var(--card-radius);
  background: var(--color-surface);
  box-shadow: var(--card-shadow);
}
.member-grid--framed .mem-card .badge {
  top: var(--space-4);
  inset-inline-start: var(--space-4);
}
.member-grid--portrait .mem-card img,
.member-grid--portrait .mem-card__initial {
  aspect-ratio: 3 / 4;
}

/* flow: a wrapping grid, or one row the reader swipes. The rail never moves
   on its own - the visitor drives it, the same bargain gallery-scroll makes. */
.member-grid--grid .lp-grid {
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
}
/* marquee is the rail plus a behaviour. With no behaviour library it IS the
   rail, so it takes every rail rule and adds nothing of its own. */
.member-grid--rail,
.member-grid--marquee {
  padding-inline: 0;
}
.member-grid--rail .lp-grid,
.member-grid--marquee .lp-grid {
  display: flex;
  padding-inline: var(--space-4);
  gap: var(--space-4);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-4);
  scrollbar-width: none;
  padding-block: var(--space-2);
  max-width: none;
}
.member-grid--rail .lp-grid::-webkit-scrollbar,
.member-grid--marquee .lp-grid::-webkit-scrollbar {
  display: none;
}
.member-grid--rail .mem-card,
.member-grid--marquee .mem-card {
  flex: 0 0 auto;
  width: min(42vw, 11rem);
  scroll-snap-align: start;
}
.member-grid--rail .lp-grid:focus-visible,
.member-grid--marquee .lp-grid:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}
/* The carousel's controls stay hidden while the marquee moves the row, and
   show once its stop control is pressed. */
.member-grid--marquee:has(.hub-marquee-running):not(:has(.hub-marquee-control[aria-pressed="true"])) .hub-carousel-controls {
  display: none;
}

/* controls: where the previous and next arrows sit, read by the behaviour
   library from these properties. phone: whether a phone shows them. */
.member-grid--top {
  --hub-carousel-controls: top;
  --hub-carousel-look: round;
}
.member-grid--edges {
  --hub-carousel-controls: edges;
  --hub-carousel-look: round;
}
.member-grid--arrows {
  --hub-carousel-phone: show;
}
.member-grid--swipe {
  --hub-carousel-phone: hide;
}
.member-grid--marquee {
  --hub-marquee-look: round;
}
/* The pair keeps to the column the heading above it sits in. */
.member-grid .hub-carousel-controls--top {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
/* Over a photograph the arrows need a ground of their own. */
.member-grid .hub-carousel-controls--edges .hub-carousel-control {
  border: 0;
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--card-shadow);
}
/* The marquee's stop control shares the arrows' row, at its end. */
.member-grid--marquee {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.member-grid--marquee .lp-grid,
.member-grid--marquee .lp-members__empty {
  flex: 0 0 100%;
}
.member-grid--marquee .hub-carousel-controls--top {
  margin-inline: 0;
  padding-inline: 0 var(--space-2);
}
.member-grid--marquee .hub-marquee-control {
  margin: 0 var(--space-4) var(--space-3) 0;
}

@media (min-width: 48rem) {
  .member-grid .lp-grid {
    gap: var(--space-5);
  }
  .member-grid--grid .lp-grid {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  }
  .member-grid--rail .mem-card,
  .member-grid--marquee .mem-card {
    width: 13rem;
  }
  .member-grid .mem-card--join {
    min-height: 11rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .member-grid--rail .lp-grid,
  .member-grid--marquee .lp-grid {
    scroll-behavior: smooth;
  }
  .member-grid .mem-card__cta {
    transition: color var(--transition-fast);
  }
}

/* With scripting off nothing can build the previous and next controls, and
   the hidden scroll bar would leave a mouse no way along the row, so both
   rows wrap like the grid rung. */
@media (scripting: none) {
  .member-grid--rail .lp-grid,
  .member-grid--marquee .lp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    overflow-x: visible;
    max-width: var(--container-max);
  }
  .member-grid--rail .mem-card,
  .member-grid--marquee .mem-card {
    width: auto;
  }
}
@media (scripting: none) and (min-width: 48rem) {
  .member-grid--rail .lp-grid,
  .member-grid--marquee .lp-grid {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  }
}
.member-grid:not(.member-grid--moving):not(.member-grid--marquee) {
  --hub-motion: none;
}


