/* One world: a person's own clubs and teams inside Social (assets/js/sections/social-world.js).
   Built from the shared widgets (section, listRow, badge, empty) and the Search page's own row. This file
   adds only the mark in its ring, the "Show more" line and the quiet link back from Home.
   Tokens only, so Dark, Mixed and Light all follow. Purple is Clubhouses. */

.sw-clubs,.sw-feed { min-width:0; }
.sw-clubs .w-sec,.sw-feed .w-sec { margin-top:0; }
.sw-list { display:grid; grid-template-columns:minmax(0,1fr); }

/* One place, or one item from a place. The row itself is SHOT.w.listRow. */
.sw-row[hidden] { display:none; }
.sw-row > .w-row { border-bottom:0; }
.sw-row + .sw-row,.sw-more { border-top:1px solid var(--hairline); }
/* A club's name is what the person is looking for, so it wraps and is never cut. */
.sw-row .w-row-title { white-space:normal; overflow-wrap:anywhere; }
.sw-row .w-row-sub { display:block; overflow-wrap:anywhere; }
.sw-row .w-badge { white-space:nowrap; }

/* The mark in a purple ring. The ring sits inside the mark's own margin, so nothing clips it. */
.sw-mark { flex:none; display:grid; place-items:center; width:40px; height:40px; margin:4px; border-radius:50%; overflow:hidden;
  background:var(--shot-surface-light); color:var(--shot-text); font-family:var(--font-heading); font-size:13px; font-weight:700; line-height:1; letter-spacing:.02em;
  box-shadow:0 0 0 2px var(--shot-background),0 0 0 4px var(--accent-purple-text); }
.sw-mark img { width:100%; height:100%; object-fit:cover; display:block; }

/* The block steps aside when a typed name matches none of its rows. The empty state always stays. */
.sw-clubs:not(.sw-clubs--empty):not(:has(.sw-row:not([hidden]))) { display:none; }
.sw-more:not(:has(.sw-row:not([hidden]))) { display:none; }

/* "Show 6 more": a quiet line, not a chip. It opens once, then goes, so nothing sits between the rows. */
.sw-more > summary { display:flex; align-items:center; gap:6px; min-height:44px; cursor:pointer; list-style:none;
  color:var(--shot-text-secondary); font-size:var(--fs-caption,12px); font-weight:600; }
.sw-more > summary::-webkit-details-marker { display:none; }
.sw-more > summary :is(svg,i) { width:16px; height:16px; }
.sw-more[open] > summary,[data-sw-searching] .sw-more > summary { display:none; }
.sw-more[open] { border-top:0; }
.sw-more[open] > .sw-row:first-of-type { border-top:1px solid var(--hairline); }
/* While a name is being typed, the "not in a club yet" note steps aside too. */
.sw-clubs--empty[data-sw-searching] { display:none; }

/* The way back from a club or team page on Home. */
.sw-link { display:inline-flex; align-items:center; gap:6px; min-height:44px; color:var(--accent-purple-text);
  font-size:var(--fs-caption,12px); font-weight:600; text-decoration:none; }
.sw-link :is(svg,i) { width:16px; height:16px; }
