/* The owner's marks of 2026-11-30, part C (company/workflow/tasks/owner-marks-1130/plan-c.md): "Logo only", the
   "Confirmed" mark and the card that asks for it, and the office's row of event ideas. Loaded by community.html,
   church.html (the public page) and community-admin.html. Every color is a --cm-* value of the community's look, so
   each holds in light, warm and dark. */

/* ---- "Logo only": where the name is not drawn, the logo takes its room (community-theme.js drawIdentity). */
.cm-app #group-title[data-logo-only] .cm-plate { --cm-plate-size: 76px; max-width: 100%; }
.cm-app #group-title[data-logo-only] .cm-title-words { flex: 0 0 auto; }
.cm-masthead[data-logo-only] .cm-plate { --cm-plate-size: clamp(96px, 6.5vw, 128px); max-width: min(100%, 460px); }
.cm-join-head[data-logo-only] .cm-plate { --cm-plate-size: 128px; max-width: min(100%, 420px); }
.cs-hero[data-logo-only] .cs-logo { --cm-plate-size: 150px; max-width: min(100%, 560px); }
/* "Welcome to" would lead into a name that is not drawn: it goes with the name (screen readers still hear the heading). */
.cs-hero[data-logo-only] #cs-kind { display: none; }
@media (max-width: 849px) { .cm-app #group-title[data-logo-only] .cm-plate { --cm-plate-size: 56px; max-width: min(100%, 260px); } }
@media (max-width: 520px) {
  .cs-hero[data-logo-only] .cs-logo { --cm-plate-size: 110px; }
  .cm-join-head[data-logo-only] .cm-plate { --cm-plate-size: 104px; }
}
/* The "Logo only" choice in Look and feel shows the logo itself. */
.cm-choice-logo .cm-plate { --cm-plate-size: 48px; border-color: var(--cm-line); }
.cm-choice-note { display: block; font-size: .86rem; }

/* ---- "Confirmed" beside a community's name. */
.cm-confirmed { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; vertical-align: middle;
  font: 600 .875rem/1.5 Inter, system-ui, sans-serif; letter-spacing: 0; white-space: nowrap;
  background: var(--cm-good); color: var(--cm-good-ink); border: 1px solid var(--cm-good-line); }
.cm-confirmed[hidden] { display: none; }
.cm-confirmed-tick { font-weight: 800; }
/* On the coloured band and the public page's header the mark is a light pill on the band. */
.cm-app .cm-title .cm-confirmed { margin: 4px 0 0; justify-self: start; width: max-content; }
.cm-masthead .cm-confirmed, .cs-hero .cm-confirmed { margin: 4px 0 0; justify-self: start; width: max-content;
  background: var(--cm-band-hover); color: var(--cm-band-ink); border-color: var(--cm-band-line); }
.cm-join-head .cm-confirmed { margin: 0; }

/* ---- The card that asks to be confirmed, and the lines where something waits for it. */
.cm-trust-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cm-trust-head h3 { margin: 0; }
#trust-form { display: grid; gap: 12px; margin-top: 12px; }
#trust-form label { display: grid; gap: 4px; }
#trust-form .cm-primary { justify-self: start; }
#trust-card > #trust-take-back { width: fit-content; max-width: 100%; justify-self: start; align-self: start; min-height: 44px; margin: 4px 0 8px; }
.cm-closed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; padding: 12px 14px; border-radius: 10px;
  background: var(--cm-warm); color: var(--cm-warm-ink); border: 1px solid var(--cm-warm-line); }
.cm-closed p { margin: 0; flex: 1 1 240px; }
.cm-closed .cm-button, #trust-form .cm-primary, #trust-form .cm-button, .cm-idea-move, .cm-chip, #office-ideas-others, .cm-look-confirm .cm-button { min-height: 44px; }

/* ---- The office's event ideas (community-workspace.js drawIdeas): whole cards only, three across where the row is
   wide, two where it is middling, one on a phone, by the row's own width (it sits in a column beside the menu). A page
   at a time with the buttons under the row, which say "1–3 of 108". The chips wrap onto more lines. */
.cm-ideas { display: grid; gap: 12px; min-width: 0; container-type: inline-size; container-name: ideas; }
.cm-idea-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chip { flex: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--cm-control); background: var(--cm-button); color: var(--cm-ink);
  font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.cm-chip[aria-pressed="true"] { background: var(--cm-accent); color: var(--cm-accent-ink); border-color: var(--cm-accent); }
.cm-chip:hover { border-color: var(--cm-accent); }
.cm-idea-row { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; --cm-idea-across: 3;
  grid-auto-columns: calc((100% - (var(--cm-idea-across) - 1) * 12px) / var(--cm-idea-across)); gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cm-idea-row::-webkit-scrollbar { display: none; }
/* Three on a desktop (the menu is a column there), two on a tablet, one on a phone; one in any row too narrow for two. */
@media (max-width: 849px) { .cm-idea-row { --cm-idea-across: 2; } }
@media (max-width: 560px) { .cm-idea-row { --cm-idea-across: 1; } }
@container ideas (max-width: 400px) { .cm-idea-row { --cm-idea-across: 1; } }
.cm-idea-row:focus-visible { outline: 3px solid var(--cm-focus); outline-offset: -3px; }
.cm-idea-row > .cm-event-idea { scroll-snap-align: start; min-width: 0; grid-template-rows: auto auto auto 1fr auto; }
.cm-idea-row > .cm-event-idea[hidden] { display: none !important; }
/* One layout for every card: the kind on its own line, when it suits on the next. */
.cm-idea-tags { display: flex; margin: 0; }
.cm-idea-when { margin: 0; }
.cm-idea-title { font-size: 1.04rem; line-height: 1.3; }
.cm-event-idea .cm-button { min-height: 44px; align-self: end; justify-self: start; }
.cm-idea-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.cm-idea-pager { display: flex; align-items: center; gap: 10px; }
.cm-idea-count { margin: 0; min-width: 8.5em; text-align: center; font-variant-numeric: tabular-nums; }
.cm-idea-move { width: 44px; padding: 0; font-size: 1.6rem; line-height: 1; border-radius: 999px; }
.cm-idea-move:disabled { opacity: .4; cursor: default; }
@media (prefers-reduced-motion: reduce) { .cm-idea-row { scroll-behavior: auto; } }
