/* Member organizations and sponsor spots (community-orgs.js, community-sponsors.js; owner, 2026-11-29, mark 6). The
   app's own cards, chips, tags and buttons (community.css, community-app.css); an organization's page is a member's
   page (community-people.css .pf-*) in its look. Nothing typed is ever a style. */

/* ---- the directory */
.org-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
/* The sponsor box, the search box and the cards share the part's width (live check, 2026-11-29: three widths). */
.org-search { display: grid; gap: 6px; }
.org-search label { font-weight: 650; }
.org-search input { min-height: 48px; }
.org-search .cm-muted { margin: 0; }
/* One card takes the row; several share it (live check, 2026-11-29: one card a quarter wide, its name in two lines). */
.org-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.org-no-match { display: grid; gap: 2px; }
.org-no-match p { margin: 0; }
.org-grid > li { display: grid; min-width: 0; }
.org-card { display: flex; align-items: flex-start; gap: 14px; width: 100%; min-height: 96px; margin: 0; padding: 16px; text-align: left; font: inherit; color: var(--cm-ink);
  cursor: pointer; border: 1px solid var(--cm-line); }
.org-card:hover { border-color: var(--cm-accent-line-strong, var(--cm-accent)); }
.org-card:focus-visible { outline: 3px solid var(--cm-focus); outline-offset: 2px; }
.org-logo { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden; border-radius: 14px; background: var(--cm-accent-soft); color: var(--cm-accent);
  font-size: 1.5rem; font-weight: 750; border: 1px solid var(--cm-line); }
.org-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; font-size: 0; }
.org-card-words { display: grid; gap: 2px; min-width: 0; }
.org-card-name { font-weight: 750; font-size: 1.08rem; overflow-wrap: anywhere; }
.org-card-line { overflow-wrap: anywhere; }
.org-empty { gap: 12px; }
.org-empty .org-head { margin-top: 4px; }

/* ---- an organization's page (a member's page in its look) */
/* Its people take the whole row under About, What we do and How to reach us, in columns (live check, 2026-11-29: the
   card sat alone in the first column with the rest of the row empty). */
.org-page .org-people { grid-column: 1 / -1; }
.org-page .org-people > .cm-list { gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.org-page .org-people .cm-member { background: transparent; border-color: var(--pf-line); }
.org-page .org-people .cm-author { color: var(--pf-ink); }
.org-page .cm-picker { background: var(--pf-card); border-color: var(--pf-line); color: var(--pf-ink); }
.org-tools { margin-top: 4px; }
/* The join link's whole address, wrapping, on a white plate so it reads in every look (live check, 2026-11-29). */
.org-link-address { margin: 0; padding: 10px 12px; border-radius: 10px; background: #fff; color: #1c2b3a; border: 1px solid var(--pf-line, var(--cm-line));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; word-break: break-all; user-select: all; }
.org-mine .cm-chip { white-space: normal; text-align: left; }


/* ---- a sponsor spot: plainly a sponsor's, under the word "Sponsor", never dressed as a post */
.sp-spot { display: grid; gap: 8px; border-style: dashed; border-color: var(--cm-line-strong, var(--cm-line)); background: var(--cm-paper, var(--cm-card)); }
.sp-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; }
.sp-word { font-size: .875rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--cm-soft); }
/* Whose spot it is, quietly under it, by name: it opens their page. */
.sp-from { margin: 0; color: var(--cm-soft); font-size: .94rem; }
.sp-from .sp-org { display: inline; min-height: 0; padding: 11px 0; margin: -11px 0; font-weight: 650; overflow-wrap: anywhere; }
.sp-picture-box { overflow: hidden; border-radius: 12px; background: var(--cm-card); }
.sp-picture { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.sp-headline { margin: 0; font-size: 1.12rem; font-weight: 750; overflow-wrap: anywhere; }
.sp-line { margin: 0; color: var(--cm-soft); overflow-wrap: anywhere; }
.sp-go { justify-self: start; }
.sp-side .sp-picture { max-height: 200px; }
/* Home: beside the posts from 1260 px (the column), between the posts below that (never above the first post). */
#sponsor-side:empty { display: none; }
.sp-feed { display: none; }
@media (max-width: 1259.98px) {
  #sponsor-side { display: none; }
  .sp-feed { display: grid; }
}

/* ---- Settings, Sponsors */
.sp-money { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--cm-accent-soft); border: 1px solid var(--cm-accent-line, var(--cm-line)); font-weight: 600; }
.sp-row { align-items: flex-start; }
.sp-thumb { flex: none; width: 72px; height: 72px; overflow: hidden; border-radius: 10px; border: 1px solid var(--cm-line); }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-counts { color: var(--cm-ink); }
.sp-form { display: grid; gap: 12px; }
.sp-form h4 { margin: 0; font-size: 1.1rem; }
.sp-form label { display: grid; gap: 6px; }
.sp-form label.cm-check { display: flex; }
@media (max-width: 520px) {
  .org-card { padding: 14px; }
  .sp-thumb { width: 56px; height: 56px; }
}
