@import url("https://fonts.googleapis.com/css2?family=Sofia+Sans:ital,wght@0,400..700;1,400..700&family=Sofia+Sans+Extra+Condensed:wght@400..700&display=swap");
/* Cycling Dating (cyclingdating.com), 18 Nov 2026. The brand's own look: forest-green road at dusk, chalk-white reading bands, a hi-vis lime for Joins on dark and burnt-orange Joins on light. Type: the Stadium Energy pairing (Sofia Sans Extra Condensed over Sofia Sans). 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 (stadium-energy), so a slow font does not move the first Join */
@font-face { font-family: "SofiaSansExtraCondensedFallback"; src: local("Arial"); font-weight: 400; size-adjust: 60.9%; ascent-override: 90.0%; descent-override: 30.0%; line-gap-override: 0.0%; }
@font-face { font-family: "SofiaSansExtraCondensedFallback"; src: local("Arial Bold"), local("Arial"); font-weight: 700; size-adjust: 66.3%; ascent-override: 90.0%; descent-override: 30.0%; line-gap-override: 0.0%; }
@font-face { font-family: "SofiaSansFallback"; src: local("Arial"); font-weight: 400; size-adjust: 96.4%; ascent-override: 90.0%; descent-override: 30.0%; line-gap-override: 0.0%; }
@font-face { font-family: "SofiaSansFallback"; src: local("Arial Bold"), local("Arial"); font-weight: 700; size-adjust: 97.7%; ascent-override: 90.0%; descent-override: 30.0%; line-gap-override: 0.0%; }

:root {
  /* toolkit token contract */
  --color-bg: #F4F2EA;
  --color-surface: #ffffff;
  --color-surface-soft: #E5EEE6;
  --color-text: #17241F;
  --color-text-soft: #44524B;
  --color-heading: #0F2A21;
  --color-primary: #B5400E;
  --color-primary-dark: #8F320B;
  --color-on-primary: #ffffff;
  --color-scrim: #12382C;
  --color-on-scrim: #ffffff;
  --color-rule: #D9DED6;
  --color-focus: #12382C;
  --font-heading: 'Sofia Sans Extra Condensed', 'SofiaSansExtraCondensedFallback', 'Arial Narrow', sans-serif;
  --font-body: 'Sofia Sans', 'SofiaSansFallback', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --weight-display: 700;
  --type-scale: 1.2;
  --heading-leading: 0.95;
  --heading-tracking: 0.02;
  --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: 6px;
  --card-radius: 10px;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 26px rgba(0, 0, 0, .07);
  --card-border: 1px solid #D9DED6;
  --chip-radius: 6px;
  --logo-height: 52px;
  --logo-height-footer: 58px;
  --transition-fast: 150ms ease;
  --transition-slow: 300ms ease;
  --cd-dark: #12382C;
  --cd-on-dark: #E6EFE9;
  --cd-on-dark-soft: #BFD0C6;
  --cd-accent: #D9F26B;
  --cd-accent-ink: #12241C;
  --cd-tint: #E5EEE6;
  --cd-tint-2: #FBEBDD;
}

*, *::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, .cd-section-inner.prose-column { max-width: calc(var(--prose-max) + 2.5rem); }
.prose-column a:not([class]), .cd-faq a:not([class]), .cd-rules a:not([class]), .cd-items a:not([class]), .cd-card a:not([class]) { color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.cd-site { min-height: 100vh; display: flex; flex-direction: column; }
.cd-site > main { flex: 1 0 auto; }

/* ---------- buttons */
.cd-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); }
.cd-btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.cd-btn--hero { min-width: 12rem; min-height: 52px; font-size: 1.1rem; }
.cd-btn--band { background: var(--cd-accent); border-color: var(--cd-accent); color: var(--cd-accent-ink); }
.cd-btn--band:hover { background: #fff; border-color: #fff; color: var(--cd-accent-ink); }

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

/* ---------- hero */
.cd-hero { background: #12382C; color: #E6EFE9; }
.cd-hero-inner { max-width: var(--container-max); margin: 0 auto; padding: 1.25rem 1rem 1.5rem; display: grid; gap: 1.25rem; }
.cd-hero-title { color: #ffffff; margin: 0; font-size: calc(2.1rem * var(--type-scale)); }
.cd-hero-cta { margin: 1rem 0 0; }
.cd-hero-sub { margin: 1rem 0 0; font-size: 1.08rem; max-width: 36rem; color: #E6EFE9; }
.cd-hero-sub a { color: inherit; text-decoration: underline; }
.cd-hero-points { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
.cd-hero-points li { position: relative; padding-left: 1.6rem; font-weight: 600; }
.cd-hero-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .5rem; background: #D9F26B; transform: skewX(-20deg); }
.cd-hero-photo { margin: 0; }
.cd-hero-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; box-shadow: 8px 8px 0 #D9F26B; }

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

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

.cd-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.cd-items > li { background: #fff; border: var(--card-border); border-radius: var(--card-radius); padding: 1.1rem 1.2rem; }
.cd-items > li p { margin: 0; }
.cd-section--dark .cd-items > li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.cd-items--num { counter-reset: it; }
.cd-items--num > li { counter-increment: it; position: relative; padding-left: 3.4rem; }
.cd-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: 4px; background: var(--color-primary); color: #fff; font-weight: 700; font-family: var(--font-heading); }

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

.cd-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cd-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); }
.cd-card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cd-card-body { padding: 1rem 1.1rem 1.2rem; }
.cd-card-body p { margin: 0; }
.cd-card-title { font-size: 1.3rem; margin-bottom: .4rem; }
.cd-card-title a { color: var(--color-heading); text-decoration: none; }
.cd-card-title a::after { content: ""; position: absolute; inset: 0; }
.cd-card-title a:hover { text-decoration: underline; }

.cd-cta-band { background: var(--cd-dark); color: var(--cd-on-dark); padding: 2.75rem 0; background-image: repeating-linear-gradient(-55deg, rgba(217,242,107,.08) 0 14px, transparent 14px 34px); }
.cd-cta-band-inner { max-width: var(--prose-max); margin: 0 auto; padding: 0 1.25rem; text-align: center; }
.cd-cta-band h2 { color: #fff; }
.cd-cta-band p { color: var(--cd-on-dark); }

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

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

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

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

/* brand flourishes */
.cd-hero .cd-btn--hero { background: #D9F26B; border-color: #D9F26B; color: #12241C; }
.cd-hero .cd-btn--hero:hover { background: #ffffff; border-color: #ffffff; color: #12241C; }
.cd-hero-photo { margin-right: 8px; }
.cd-hero-title { text-transform: uppercase; }
.cd-section h2 { text-transform: uppercase; }
.cd-cta-band h2 { text-transform: uppercase; font-size: calc(2rem * var(--type-scale)); }
.cd-card { border-top: 5px solid #B5400E; }
.cd-items > li h3 { text-transform: uppercase; letter-spacing: .02em; }


/* ---------- 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;
}


