/* Only the signed-in community app. Public pages and print layouts use the shared base. */
/* The default look, Harbor on light: the values community-theme.js themeVars gives for it (community-theme.test.js
   holds the two equal). A community's own look replaces them on <body> (applyLook). */
.cm-app {
  --cm-paper: #f2f6f9;
  --cm-ink: #1c2b3a;
  --cm-soft: #506477;
  --cm-line: #dbe6ee;
  --cm-accent: #1f5f8b;
  --cm-accent-soft: #e6f0f7;
  --cm-radius: 16px;
  --cm-control: #7092a9;
  --cm-accent-hover: #17486a;
  --cm-accent-line: #c8ddec;
  --cm-accent-line-strong: #aac9e0;
  --cm-focus: #a66e32;
  --cm-on-accent-soft: #e0eef9;
  --cm-band-from: #1f5f8b;
  --cm-band-to: #194e72;
  --cm-band-ink: #ffffff;
  --cm-band-soft: #e0eef9;
  --cm-plate-line: #dbe6ee;
  font-size: 1rem;
}

/* ---- The community's own name and logo (owner, 2026-11-28: "Their logo would be ideal at the top too, fancy font of
   their church/association name"). The name is set in the face the owner chose (community-theme.js NAME_STYLES); a
   logo sits on a light plate in every look, because most logos are made for a white page. */
/* .cm-name and .cm-plate themselves are in community.css (the public page uses them too). */

.cm-app .cm-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
  background: linear-gradient(150deg, var(--cm-band-from), var(--cm-band-to)); color: var(--cm-band-ink); }
.cm-title-words { flex: 1 1 190px; display: grid; gap: 2px; min-width: 0; }
.cm-app .cm-title h1 { --cm-name-size: 1.3rem; margin: 0; }
.cm-app .cm-title .cm-eyebrow { color: var(--cm-band-soft); font-size: .875rem; font-weight: 500; letter-spacing: 0; }
.cm-app .cm-title .cm-plate { --cm-plate-size: 52px; border-color: transparent; }

/* Home: a band across the top with the logo, the name large, the line under the name and how many members. Only where
   the menu is a column; on a phone and in a narrow window the header above is already the top of the page. */
.cm-masthead { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 2.4vw, 28px);
  padding: clamp(20px, 2.6vw, 32px) clamp(20px, 3vw, 36px); border-radius: 20px; color: var(--cm-band-ink);
  background: radial-gradient(120% 140% at 100% 0%, var(--cm-band-hover), transparent 55%), linear-gradient(135deg, var(--cm-band-from), var(--cm-band-to)); }
.cm-masthead-words { flex: 1 1 340px; display: grid; gap: 6px; min-width: 0; }
.cm-masthead-name { --cm-name-size: clamp(1.85rem, 2.7vw, 2.55rem); margin: 0; }
.cm-masthead-tagline { font-size: 1.12rem; max-width: 52ch; }
.cm-masthead-meta { color: var(--cm-band-soft); font-size: .94rem; font-weight: 600; }
@media (max-width: 849px) { .cm-masthead { display: none; } }

/* The join screen: the logo above "Join <name>". */
.cm-join-head { display: grid; gap: 12px; justify-items: start; }
.cm-join-head .cm-plate { border-color: var(--cm-line); }
/* The join screen carries the community's logo and name itself: the header above it keeps only our small mark. */
.cm-app:has(#view-join:not([hidden])) .cm-title { display: none; }
#join-title.cm-name { --cm-name-size: 1.7rem; }

/* Settings, "Look and feel" and "How it looks for you". */
.cm-look-logo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cm-look-logo .cm-plate { --cm-plate-size: 88px; border-color: var(--cm-line); }
.cm-look-empty { display: grid; place-items: center; width: 88px; height: 88px; border: 1.5px dashed var(--cm-control); border-radius: 14px; color: var(--cm-soft); font-size: .86rem; text-align: center; padding: 6px; }
.cm-choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.cm-choice { position: relative; display: grid; gap: 4px; align-content: start; min-height: 64px; padding: 12px 14px; border: 1.5px solid var(--cm-control);
  border-radius: 12px; background: var(--cm-button); font-weight: 500; cursor: pointer; }
/* The radio itself covers its whole tile, unseen: the tile is what is pressed, and it is as tall as it looks. */
.cm-choice input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.cm-choice:has(input:checked) { border-color: var(--cm-accent); box-shadow: 0 0 0 2px var(--cm-accent); background: var(--cm-accent-soft); }
.cm-choice:has(input:focus-visible) { outline: 3px solid var(--cm-focus); outline-offset: 2px; }
.cm-choice-label { color: var(--cm-soft); font-size: .86rem; font-weight: 650; }
.cm-choice-name { --cm-name-size: 1.2rem; color: var(--cm-ink); }
.cm-choice-mark { position: absolute; top: -9px; right: -9px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--cm-accent);
  color: var(--cm-accent-ink); font-size: .875rem; font-weight: 800; line-height: 24px; text-align: center; box-shadow: 0 0 0 2px var(--cm-card); display: none; }
.cm-choice:has(input:checked) .cm-choice-mark { display: block; }
.cm-tones .cm-choice-mark { position: static; box-shadow: none; flex: none; }
.cm-swatches { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.cm-swatch { padding: 8px 8px 10px; gap: 8px; }
.cm-swatch-art { display: grid; grid-template-rows: 1fr; height: 64px; padding: 8px; border-radius: 8px; border: 1px solid rgba(127, 127, 127, .25); }
.cm-swatch-art span { display: grid; align-content: space-between; padding: 6px 8px; border-radius: 6px; }
.cm-swatch-art i { display: block; height: 6px; border-radius: 3px; }
.cm-swatch-art b { display: block; width: 48%; height: 12px; border-radius: 4px; }
.cm-swatch-name { font-weight: 700; color: var(--cm-ink); padding-inline: 2px; }
.cm-look-custom { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--cm-paper); border: 1px solid var(--cm-line); }
.cm-color-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cm-color-row input[type="color"] { width: 64px; height: 48px; padding: 4px; cursor: pointer; }
.cm-tones { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-tones .cm-choice { min-height: 48px; padding: 10px 16px; grid-auto-flow: column; align-items: center; }
.cm-look-note { padding: 10px 12px; border-radius: 10px; background: var(--cm-warm); color: var(--cm-warm-ink); font-weight: 600; }

.cm-app .site-header {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  background: var(--cm-card);
}
.cm-app .cm-header-in { padding: 16px 16px 12px; display: grid; width: 100%; gap: 12px; }
.cm-brand { display: flex; align-items: center; gap: 9px; font-size: .875rem; font-weight: 750; }
.cm-brand img { flex: none; }
.cm-app .cm-switch { min-width: 0; }
.cm-app .cm-switch select { width: 100%; }
.cm-app #sign-out { grid-column: 2; grid-row: 1; margin: 9px 12px 0 0; font-size: .875rem; }
.cm-app .cm-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 100%;
  max-width: none;
  padding: 0 16px 12px;
  overflow: visible;
}
.cm-app .cm-tabs button {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .875rem;
  text-align: left;
}
.cm-app .cm-tabs button:hover { background: var(--cm-paper); }
.cm-app .cm-tabs button[aria-current="page"] {
  border-color: var(--cm-accent-line);
  background: var(--cm-accent-soft);
  font-weight: 750;
}
.cm-app .cm-tabs .cm-count { margin-left: 0; }
.cm-app .cm-main { max-width: 1100px; width: 100%; padding: 25px 16px 40px; align-content: start; }
.cm-app .cm-main > section { gap: 16px; min-width: 0; }
.cm-app .cm-main > section > h2,
.cm-app :is(.cm-feed-heading, .cm-directory, #thread-list-wrap) > h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.2rem);
  letter-spacing: -.04em;
}
.cm-app :is(.cm-main > section, #thread-list-wrap) > .cm-muted { max-width: 66ch; }
.cm-app .cm-card { padding: clamp(16px, 2.4vw, 24px); }
.cm-app .cm-card h3 { margin: 0; }
.cm-app :is(input, select, textarea, .cm-button) { border-color: var(--cm-control); }
.cm-app .cm-primary:hover { background: var(--cm-accent-hover); border-color: var(--cm-accent-hover); }
.cm-app .cm-button:hover { background: var(--cm-accent-soft); }
.cm-app .cm-file:focus-within, .cm-app :focus-visible { outline-color: var(--cm-focus); }
/* A quiet link among a row of buttons ("Remove from the community") starts where the buttons do when it wraps to a line
   of its own; the row's gap already sets it apart (live check, 2026-11-29: it sat 6 px in). */
.cm-app .cm-member-controls > .cm-link { padding-inline: 0; }
.cm-app .cm-help-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.cm-app .cm-feed-stream, .cm-app .cm-directory { display: grid; gap: 16px; min-width: 0; align-content: start; }
.cm-app .cm-feed-groups { align-self: start; gap: 8px; }
.cm-app .cm-spaces { flex-wrap: wrap; overflow: visible; }
.cm-app .cm-chip { flex: 0 1 auto; border-color: var(--cm-control); border-radius: 8px; text-align: left; }
.cm-app .cm-chip[aria-pressed="true"] { background: var(--cm-accent-soft); color: var(--cm-accent); border-color: var(--cm-accent-line-strong); }
.cm-app .cm-compose { gap: 14px; }
.cm-app .cm-compose > label { font-weight: 750; }
.cm-app .cm-welcome { background: var(--cm-accent-soft); }
.cm-app .cm-welcome .cm-compose-row,
.cm-app .cm-compose .cm-assistance { padding-top: 0; border: 0; }
.cm-app .cm-assistance .cm-muted { flex: 1 1 180px; }
.cm-office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 12px; }
.cm-office-action { align-content: start; }
.cm-office-action .cm-button { justify-self: start; }
.cm-event-idea { padding: 12px; border-radius: 9px; background: var(--cm-accent-soft); display: grid; gap: 7px; align-content: start; }
.cm-event-idea .cm-button { justify-self: start; }
.cm-office-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.cm-office-form label:first-child { flex: 1 1 240px; }
.cm-work-panel { display: grid; gap: 11px; min-width: 0; }
.cm-work-details { border: 1px solid var(--cm-line); border-radius: 10px; padding: 0 12px; }
.cm-work-details summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 650; }
.cm-work-details[open] { padding-bottom: 12px; }
.cm-work-list { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.cm-work-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.cm-work-line > :first-child { flex: 1 1 150px; }
.cm-work-list > .cm-work-line { border-top: 1px solid var(--cm-line); padding-top: 8px; }
/* A sign-up spot: its name and how full it is, then its buttons together on the same line (on a phone, under them). */
.cm-slot-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.cm-slot-line > :first-child { flex: none; }
.cm-slot-words { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; }
.cm-slot-name { flex: 1 1 150px; min-width: 0; }
.cm-slot-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; }
.cm-slot-line > .cm-confirm { grid-column: 1 / -1; }
@media (max-width: 520px) {
  .cm-slot-line { grid-template-columns: minmax(0, 1fr); }
  .cm-slot-tools { justify-content: flex-start; }
}
.cm-work-form { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-work-form input { flex: 1 1 160px; }
#view-help { max-width: 760px; }
#help-profile, #help-request { scroll-margin-top: 14px; }
#draft-progress { padding: 9px 12px; background: var(--cm-accent-soft); border-radius: 8px; }
.cm-event-wide { grid-column: 1 / -1; }
.cm-app .cm-event-fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.cm-app #event-flyer { justify-self: start; }
.cm-import { padding: 12px; border: 1px solid var(--cm-line); border-radius: 10px; }
.cm-site-page { display: grid; gap: 8px; padding: 12px; margin: 0 0 10px; border: 1px solid var(--cm-line); border-radius: 10px; background: var(--cm-paper); }
.cm-site-page .cm-button { justify-self: start; }
#domain-target { flex: 1 1 240px; width: auto; }
.cm-ok { color: var(--cm-ok); font-weight: 700; }
.cm-import summary { min-height: 44px; padding: 9px; cursor: pointer; font-weight: 700; }
.cm-import > :not(summary) { margin: 10px 0; }
.cm-import-result { background: var(--cm-paper); border-radius: 9px; padding: 12px; }
.cm-import-result dt { font-weight: 700; }
.cm-import-result dd { margin: 0 0 8px; }
.cm-app .cm-compose > textarea { background: var(--cm-paper); }
.cm-app .cm-compose .cm-primary { min-width: 80px; }
.cm-app .cm-compose .cm-compose-row { border-top: 1px solid var(--cm-line); padding-top: 12px; }
.cm-app .cm-compose .cm-button { font-size: .875rem; padding-inline: 11px; }
.cm-app .cm-posts { gap: 16px; }
.cm-app .cm-post .cm-body { font-size: 1rem; }
.cm-app .cm-event { border: 0; border-radius: 10px; padding: 12px 14px; }
.cm-app .cm-react { border-radius: 8px; font-size: .875rem; }
.cm-app .cm-replies li { border-radius: 10px; }
.cm-app :is(.cm-setup, .cm-offered) { background: var(--cm-accent-soft); border-color: var(--cm-accent-line); }
.cm-app .cm-more { justify-self: start; }
.cm-app .cm-member { padding: 14px; }
.cm-app :is(#me-form, #reach-form) legend { padding-top: 8px; }
/* A member's email, text and alert choices: one block of controls, moved between Members and Settings (community.js
   showReach). The place it is not in takes no room. */
.cm-reach-slot { display: contents; }
.cm-reach { display: grid; gap: 12px; }
.cm-app #compose-event-offer { margin: 0; }
.cm-app .cm-bubble.mine { border-color: var(--cm-accent-line); }
.cm-app .cm-bubbles { padding: 8px 0; }
.cm-app .cm-thread:hover { border-color: var(--cm-control); background: var(--cm-accent-soft); }
.cm-app .cm-footer { max-width: 1100px; width: 100%; }
.cm-app .cm-skip { top: 0; }


/* ---- One layout (owner, 2026-11-28: "Think of every other social media how organized it is" and "The layout on this
   page is all fucked up"). Every view is one column of the same width, centred in the space beside the menu; Home is
   a feed column of reading width with a column beside it on wide screens. */
.cm-app svg.lucide { width: 20px; height: 20px; flex: none; }
.cm-app .cm-main { max-width: none; }
.cm-app .cm-main > * { width: 100%; max-width: 760px; justify-self: center; }
.cm-app .cm-main > .cm-narrow { max-width: 560px; }
.cm-app .cm-main > #view-feed { max-width: 680px; }
.cm-app .cm-footer { max-width: 760px; margin-inline: auto; }

/* The menu: what members use, then the labelled group for running the community. */
.cm-tab-group { display: contents; }
.cm-tab-head { margin: 14px 11px 2px; color: var(--cm-soft); font-size: .86rem; font-weight: 750; letter-spacing: .02em; }
.cm-tab-more { display: none; }
.cm-scrim { display: none; }
.cm-app .cm-tabs .cm-count { margin-left: auto; }

/* Home: the groups as one row of choices above the post box. */
.cm-app .cm-feed-stream, .cm-feed-top, .cm-feed-side, .cm-feed-list { display: grid; gap: 16px; min-width: 0; align-content: start; }
.cm-app .cm-feed-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cm-app .cm-feed-groups h3 { margin: 0; font-size: 1rem; }
.cm-app .cm-feed-heading h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); }

/* The post box: one line closed, the whole composer open. */
.cm-compose-write { display: flex; gap: 12px; align-items: flex-start; }
.cm-compose-write textarea { flex: 1; min-width: 0; min-height: 48px; resize: none; }
.cm-compose.open .cm-compose-write textarea { min-height: 120px; resize: vertical; }
.cm-compose:not(.open) :is(.cm-compose-kind, .cm-compose-more, #compose-event) { display: none; }
.cm-compose.open .cm-compose-quick, .cm-compose.open .cm-compose-write .cm-avatar { display: none; }
.cm-compose:not(.open) .cm-compose-write textarea { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cm-app .cm-card form > :is(.cm-primary, .cm-button) { justify-self: start; min-width: 180px; }
.cm-app #member-help-profile { justify-self: start; }
.cm-compose-quick { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 54px; }
.cm-compose-kind { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cm-segment { display: inline-flex; border: 1.5px solid var(--cm-control); border-radius: 10px; overflow: hidden; }
.cm-app .cm-segment .cm-button { border: 0; border-radius: 0; min-width: 110px; font-size: 1rem; }
.cm-app .cm-segment .cm-button + .cm-button { border-left: 1.5px solid var(--cm-control); }
.cm-app .cm-segment .cm-button[aria-pressed="true"] { background: var(--cm-accent); color: var(--cm-accent-ink); }
.cm-compose-more { display: grid; gap: 14px; }
.cm-compose-extra { border: 1px solid var(--cm-line); border-radius: 10px; padding: 0 12px; }
.cm-compose-extra summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 700; }
.cm-compose-extra[open] { display: grid; gap: 10px; padding-bottom: 12px; }
.cm-app .cm-compose .cm-mod { padding: 4px 12px; gap: 2px; }
/* A tick box whose words take two or three lines on a phone: the box beside the first line, the lines apart from the
   next choice (live check, 2026-11-29: the labels were cramped together). */
@media (max-width: 599px) {
  .cm-app .cm-compose :is(.cm-mod, .cm-event-extras) .cm-check { align-items: flex-start; padding: 8px 0; line-height: 1.4; }
  .cm-app .cm-compose :is(.cm-mod, .cm-event-extras) .cm-check input { margin-top: 1px; }
}
.cm-field-hint { font-weight: 400; font-size: .9rem; }
.cm-app .cm-compose .cm-compose-foot .cm-primary { margin-left: auto; min-width: 120px; }

/* Posts as cards: who and when, the words, the event, then reactions and replies. */
.cm-post-who { display: grid; gap: 2px; min-width: 0; }
.cm-post-head .cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.cm-tag-quiet { background: var(--cm-paper); color: var(--cm-soft); border: 1px solid var(--cm-line); }
.cm-event-block { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--cm-line); border-radius: 12px; background: var(--cm-paper); }
.cm-app .cm-event { display: flex; align-items: center; gap: 14px; }
.cm-app .cm-event-block .cm-event { background: none; padding: 0; }
.cm-event-text { display: grid; gap: 2px; min-width: 0; }
.cm-date-tile { flex: none; display: grid; width: 58px; overflow: hidden; border: 1px solid var(--cm-line); border-radius: 10px; background: var(--cm-card); text-align: center; }
.cm-date-tile span { background: var(--cm-accent); color: var(--cm-accent-ink); font-size: .86rem; font-weight: 750; line-height: 22px; text-transform: uppercase; }
.cm-date-tile strong { font-size: 1.45rem; line-height: 36px; }
.cm-app .cm-post > .cm-reactions { border-top: 1px solid var(--cm-line); padding-top: 12px; }

/* The column beside the posts: coming up, the owner's first steps, inviting members. */
.cm-side-card { gap: 10px; }
.cm-side-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.cm-side-head h3 { margin: 0; }
.cm-coming { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cm-up { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 6px; border: 1px solid transparent; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cm-up:hover { background: var(--cm-accent-soft); border-color: var(--cm-accent-line); }
.cm-up-main { display: grid; min-width: 0; }
.cm-up-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-side-card > .cm-button { justify-self: start; }
.cm-setup-row { display: none; }
.cm-setup-body { display: grid; gap: 10px; }
.cm-setup-head h3 { margin: 0; }
.cm-meter { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 5px; background: var(--cm-button); overflow: hidden; }
.cm-meter::-webkit-progress-bar { background: var(--cm-button); border-radius: 5px; }
.cm-meter::-webkit-progress-value { background: var(--cm-accent); border-radius: 5px; }
.cm-meter::-moz-progress-bar { background: var(--cm-accent); border-radius: 5px; }
.cm-setup-next { display: grid; gap: 4px; }
.cm-setup-next .cm-button { justify-self: start; margin-top: 6px; }
.cm-setup-links { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: -4px; }
.cm-side-card .cm-steps li { padding: 8px 10px; }

/* Settings: a long form in headed parts. */
.cm-part { border: 0; border-top: 1px solid var(--cm-line); margin: 0; padding: 16px 0 0; display: grid; gap: 12px; }
.cm-part > legend { float: left; width: 100%; margin: 0; padding: 0; font-size: 1.02rem; font-weight: 750; }

@media (max-width: 699px) {
  .cm-compose-quick { padding-left: 0; }
  .cm-compose-write .cm-avatar { display: none; }
  .cm-app .cm-segment .cm-button { min-width: 0; padding-inline: 14px; }
}

/* Narrower than the two columns: the column beside the posts sits under the post box, small. */
@media (max-width: 1259px) {
  .cm-app #side-invite { display: none; }
  .cm-setup-row { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  .cm-setup-row .cm-meta { margin-left: auto; }
  .cm-setup .cm-setup-head { display: none; }
  .cm-setup:not(.open) .cm-setup-body { display: none; }
  .cm-setup.open .cm-setup-row svg { transform: rotate(180deg); }
  /* Coming up stays a short list, one event under another (blind testers, 2026-11-28, finding 48: a sideways strip cut
     the second event off at the edge of a phone with no sign it scrolled). At most three are listed. */
  .cm-coming { gap: 2px; }
}

/* A phone or a tablet held upright: the menu is a bar at the bottom, the four places and "More". */
@media (max-width: 849px) {
  .cm-app .cm-header-in { grid-column: 1 / -1; grid-row: 1; }
  .cm-app .cm-brand { padding-right: 92px; }
  .cm-app:has(#tabs:not([hidden])) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .cm-app .cm-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 2px; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: var(--cm-card); border-top: 1px solid var(--cm-line); box-shadow: 0 -2px 12px var(--cm-shadow-strong); }
  .cm-app .cm-tabs button { position: relative; flex: 1 1 0; min-width: 0; min-height: 58px; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 2px; font-size: .86rem; text-align: center; }
  .cm-app .cm-tabs button:not(.cm-tab-bar):not(.cm-tab-more) { display: none; }
  .cm-app .cm-tab-head { display: none; }
  .cm-app .cm-tabs .cm-count { position: absolute; top: 2px; left: calc(50% + 9px); margin: 0; box-shadow: 0 0 0 2px var(--cm-card); }
  .cm-app .cm-tab-more { display: flex; }
  .cm-app .cm-tabs .cm-tab-more.cm-here { color: var(--cm-accent); background: var(--cm-accent-soft); }
  .cm-app .cm-tabs.open { display: block; max-height: calc(100dvh - 48px); overflow-y: auto; padding: 16px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .cm-app .cm-tabs.open .cm-tab-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
  .cm-app .cm-tabs.open button:not(.cm-tab-bar):not(.cm-tab-more) { display: flex; }
  .cm-app .cm-tabs.open button { flex-direction: row; justify-content: flex-start; min-height: 50px; padding: 8px 12px; font-size: .94rem; text-align: left; border: 1px solid var(--cm-line); }
  .cm-app .cm-tabs.open .cm-count { position: static; margin-left: auto; }
  .cm-app .cm-tabs.open .cm-tab-head { display: block; grid-column: 1 / -1; margin: 4px 2px 0; }
  .cm-app .cm-tabs.open .cm-tab-more { width: 100%; justify-content: center; }
  .cm-scrim { display: block; position: fixed; inset: 0; z-index: 29; background: var(--cm-scrim); }
  .cm-app .cm-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 849px) {
  .cm-app .cm-tabs:not(.open) button span:not(.cm-count) { white-space: nowrap; }
}
@media (max-width: 380px) {
  .cm-app .cm-tabs { gap: 0; padding-inline: 2px; }
  .cm-app .cm-tabs:not(.open) button { padding-inline: 0; font-weight: 600; letter-spacing: -.01em; }
  .cm-app .cm-tabs.open .cm-tab-group { grid-template-columns: minmax(0, 1fr); }
}
/* #721 A 320-wide phone: five equal buttons are 61px each, and "Messages" is 66px in Apple's own font (the labels
   are drawn in the device's font). Below 360 each button is as wide as its label plus an even share of what is left,
   so every label fits at the size it has everywhere else. */
@media (max-width: 359px) {
  .cm-app .cm-tabs:not(.open) button { flex: 1 1 auto; }
}

/* Wide enough for the menu at the side. */
@media (min-width: 850px) {
  .cm-app:has(#tabs:not([hidden])) {
    min-height: calc(100vh / var(--cm-zoom, 1));
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }
  .cm-app:has(#tabs:not([hidden])) .site-header {
    grid-row: 1 / -1;
    position: sticky;
    top: 0;
    height: calc(100dvh / var(--cm-zoom, 1));
    align-self: start;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border: 0;
    border-right: 1px solid var(--cm-line);
  }
  .cm-app:has(#tabs:not([hidden])) .cm-header-in { padding: 24px 16px 14px; gap: 16px; }
  .cm-app .cm-tabs { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 2px; }
  .cm-app .cm-tab-group { display: flex; flex-direction: column; gap: 2px; }
  .cm-app .cm-tabs button { flex: 0 0 auto; padding-inline: 11px; font-size: .94rem; }
  .cm-app:has(#tabs:not([hidden])) #sign-out { margin: auto 16px 18px; }
  .cm-app .cm-main { padding: 32px clamp(24px, 4vw, 56px) 40px; }
  .cm-app .cm-footer { padding-inline: clamp(24px, 4vw, 56px); }
  .cm-tab-more, .cm-scrim { display: none !important; }
  /* In the menu column the name is quieter: the band on Home carries the color. */
  .cm-app .cm-title { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 12px; background: var(--cm-accent-soft);
    border: 1px solid var(--cm-accent-line); color: var(--cm-ink); }
  .cm-app .cm-title h1 { --cm-name-size: 1.22rem; }
  .cm-app .cm-title-words { flex: none; width: 100%; }
  .cm-app .cm-title .cm-eyebrow { color: var(--cm-soft); }
  .cm-app .cm-title .cm-plate { --cm-plate-size: 56px; border-color: var(--cm-plate-line); }
  /* With the band above it, "Community feed" is a quiet label over the groups. */
  .cm-app #view-feed > .cm-masthead:not([hidden]) + .cm-feed-stream .cm-feed-heading h2 { font-size: 1.15rem; letter-spacing: 0; color: var(--cm-soft); }
}

/* Wide: the posts at reading width, and the column beside them. */
@media (min-width: 1260px) {
  .cm-app .cm-main > #view-feed { max-width: 1024px; }
  .cm-app .cm-main { padding-inline: clamp(24px, 2vw, 56px); }
  .cm-app .cm-feed-stream { grid-template-columns: minmax(0, 680px) 320px; grid-template-rows: auto 1fr; column-gap: 24px; justify-content: center; align-items: start; }
  .cm-feed-top { grid-column: 1; grid-row: 1; }
  .cm-feed-list { grid-column: 1; grid-row: 2; }
  .cm-feed-side { grid-column: 2; grid-row: 1 / 3; }
  .cm-app .cm-footer { max-width: 1004px; }
}

/* "How this works" (community-guide.js), "Who's who" under Members, and the moderators' note on a post already
   showing: the app's own cards with plain numbered steps. */
.cm-guide-list { display: grid; gap: 16px; }
.cm-guide-steps { display: grid; gap: 10px; }
.cm-guide-steps li > .cm-points { margin-top: 8px; }
.cm-guide-roles li { display: block; }
/* Who's who: its entries have no marker, so no indent; the closing line lines up with them and stands apart (live
   check, 2026-11-29: it touched the list and started further left). */
.cm-guide-roles { padding-left: 0; }
#guide-roles-body { display: grid; gap: 14px; }
.cm-guide-names { font-weight: 600; }
.cm-guide-what { display: block; color: var(--cm-soft); }
details.cm-guide > summary { cursor: pointer; font-weight: 700; min-height: 32px; }
details.cm-guide:not([open]) { gap: 0; }

/* The invitation: the link that works now, then, apart from it, making a new one. */
.cm-invite-one { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--cm-line); }
.cm-invite-new { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--cm-line); }
.cm-invite-new:first-child { border-top: 0; padding-top: 0; }
.cm-invite-new > .cm-primary, .cm-invite-new > .cm-button { justify-self: start; }
.cm-invite-slot:empty { display: none; }
.cm-invite-out { display: grid; gap: 12px; }
/* How someone joins, on the card itself (live check, 2026-11-29). With no link yet it follows the card's first line. */
.cm-invite-join { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--cm-line); }
#invite-out[hidden] + .cm-invite-join { border-top: 0; padding-top: 0; }
.cm-invite-join .cm-guide-steps { margin: 0; gap: 6px; }
#prayer-who-line { margin: -4px 0 0; }

/* The live check of 2026-11-29. A reply's Report and Remove, apart; an event post's title above its words; the post
   box when "Add an event" opens it on Events; the line under "Save the page". */
.cm-reply-tools { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 2px; }
.cm-post-title { margin: 0; font-size: 1.12rem; font-weight: 750; line-height: 1.35; }
.cm-compose-slot:empty { display: none; }
.cm-compose-slot { margin-bottom: 16px; }
#site-saved a { color: inherit; }

/* ---- Posts and events: the owner's marks of 2026-11-29 (company/workflow/tasks/owner-marks-1129/plan-posts.md). */

/* The event box: the title across, then "Day and time" and "Place" side by side, the same height, filling the row
   with a gap between; one under the other on a phone (mark 1). */
.cm-app .cm-event-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; }
.cm-field { display: grid; gap: 6px; font-weight: 600; min-width: 0; align-content: start; }
.cm-field > label { min-width: 0; }
.cm-app .cm-event-box :is(input, .cm-pick-field) { min-height: 48px; }
@media (max-width: 599px) { .cm-app .cm-event-box { grid-template-columns: minmax(0, 1fr); } }

/* The day and time picker (mark 3, community-datepick.js). The form's own field stays under it, unseen, holding the
   value; the button over it says the choice in words. */
.cm-pick { position: relative; display: block; min-width: 0; }
.cm-app .cm-pick-native { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; pointer-events: none; }
.cm-pick-field { position: relative; width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1.5px solid var(--cm-control); border-radius: 10px; background: var(--cm-field); color: var(--cm-ink); font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.cm-pick-field:hover { border-color: var(--cm-accent); }
.cm-pick-open .cm-pick-field { border-color: var(--cm-accent); box-shadow: 0 0 0 2px var(--cm-accent-line); }
.cm-pick-empty .cm-pick-words { color: var(--cm-soft); }
/* One line, whatever is chosen, so "Day and time" and "Place" stay the same height (live check, 2026-11-29): the field
   says the day short ("Sat, Dec 19, 10:00 AM"); the picker and screen readers have it in full. */
.cm-pick-words { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* "Day and time" above the field opens the picker too. */
.cm-field-label[data-pick-label] { cursor: pointer; }
.cm-pick-icon { flex: none; width: 18px; height: 17px; border: 2px solid var(--cm-accent); border-top-width: 5px; border-radius: 4px; }
.cm-pick-layer { position: absolute; top: calc(100% + 6px); left: 0; z-index: 35; width: min(372px, calc(100vw - 32px)); display: grid; gap: 12px;
  padding: 14px; background: var(--cm-card); border: 1px solid var(--cm-line); border-radius: 14px; box-shadow: 0 14px 36px var(--cm-toast-shadow); font-weight: 400; }
.cm-pick-scrim { display: none; }
.cm-pick-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cm-pick-head { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.cm-pick-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-app .cm-pick-quick .cm-button { flex: 1 1 96px; flex-direction: column; gap: 0; min-height: 52px; padding: 6px 10px; font-size: .94rem; line-height: 1.2; }
.cm-pick-quick .cm-meta { font-size: .86rem; font-weight: 500; }
.cm-pick-month { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.cm-pick-title { margin: 0; text-align: center; font-size: 1rem; }
.cm-app .cm-pick-nav { min-width: 44px; padding: 0; font-size: 1.35rem; line-height: 1; }
.cm-pick-grid { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; }
.cm-pick-grid th { padding: 2px 0 4px; color: var(--cm-soft); font-size: .86rem; font-weight: 650; text-align: center; }
.cm-pick-grid td { padding: 0; }
.cm-pick-day { width: 100%; min-height: 44px; padding: 0; border: 1.5px solid transparent; border-radius: 10px; background: none; color: var(--cm-ink); font: inherit; font-weight: 650; cursor: pointer; }
.cm-pick-day:hover:not(:disabled) { background: var(--cm-accent-soft); }
.cm-pick-out { color: var(--cm-soft); font-weight: 450; }
.cm-pick-day:disabled { color: var(--cm-control); font-weight: 400; cursor: default; }
.cm-pick-today { border-color: var(--cm-accent); }
.cm-pick-day[aria-pressed="true"] { background: var(--cm-accent); border-color: var(--cm-accent); color: var(--cm-accent-ink); }
.cm-pick-chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
/* The times scroll inside the picker on a wide screen: the scroll bar is always drawn, and the box ends half way
   through a row, so the later times plainly continue below (live check, 2026-11-29: the list seemed to end at 2:00 PM). */
.cm-pick-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; max-height: 272px; overflow-y: scroll; padding: 2px;
  scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--cm-control) var(--cm-paper); }
.cm-pick-times-more { margin: -4px 0 0; color: var(--cm-soft); font-size: .9rem; }
.cm-app .cm-pick-time { min-height: 44px; padding: 6px 8px; font-size: .94rem; }
.cm-app .cm-pick-time[aria-pressed="true"] { background: var(--cm-accent); color: var(--cm-accent-ink); border-color: var(--cm-accent); }
.cm-pick-time:disabled { opacity: .45; cursor: default; }
.cm-pick-other { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--cm-line); }
.cm-pick-other > label { font-weight: 650; }
.cm-pick-other-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-pick-other-row input { flex: 1 1 140px; width: auto; }
/* On a phone the picker is a sheet from the bottom of the screen, with bigger days to press. */
@media (max-width: 599px) {
  .cm-pick-layer { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 61; width: auto; max-height: 88dvh; overflow-y: auto;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .cm-pick-open .cm-pick-scrim { display: block; position: fixed; inset: 0; z-index: 60; background: var(--cm-scrim); }
  .cm-pick-day { min-height: 48px; }
  .cm-app .cm-pick-time { min-height: 48px; }
  .cm-pick-times { max-height: none; overflow-y: visible; }
  .cm-pick-times-more { display: none; }
}

/* "Place" and the places used before (mark 4, community-places.js): the same look as the picker's list. */
.cm-suggest { position: relative; }
.cm-suggest-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 35; margin: 0; padding: 6px; list-style: none;
  max-height: 288px; overflow-y: auto; background: var(--cm-card); border: 1px solid var(--cm-line); border-radius: 14px; box-shadow: 0 14px 36px var(--cm-toast-shadow); font-weight: 500; }
.cm-suggest-item { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.cm-suggest-item:hover, .cm-suggest-item[aria-selected="true"] { background: var(--cm-accent-soft); color: var(--cm-accent); }

/* Under "More choices": the event's own choices in one shaded group, like the moderator's above it (mark g), and the
   sign-up spots as a list with how many each needs (mark 5, community-spots-ui.js). */
.cm-event-extras { display: grid; gap: 10px; padding: 4px 12px 12px; border-radius: 12px; background: var(--cm-paper); }
.cm-app .cm-event-extras > .cm-button { justify-self: start; }
.cm-spots { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--cm-line); }
.cm-event-extras > .cm-spots:first-child, .cm-event-extras > [hidden] + .cm-spots { border-top: 0; padding-top: 8px; }
.cm-spots > legend { float: left; width: 100%; margin: 0; padding: 0; font-weight: 750; }
.cm-spots-box { display: grid; gap: 8px; }
.cm-spot-heads, .cm-spot { display: grid; grid-template-columns: minmax(0, 1fr) 150px 84px; gap: 8px; align-items: center; }
.cm-spot-heads { color: var(--cm-soft); font-size: .86rem; font-weight: 650; }
.cm-spot-heads span:last-child { grid-column: 2 / -1; }
.cm-spot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cm-spot-many { display: none; }
.cm-spot-how { display: inline-flex; align-items: stretch; width: 150px; border: 1.5px solid var(--cm-control); border-radius: 10px; overflow: hidden; background: var(--cm-field); }
.cm-app .cm-spot-how .cm-spot-step { flex: none; min-width: 46px; min-height: 44px; padding: 0; border: 0; border-radius: 0; font-size: 1.3rem; }
.cm-app .cm-spot-how .cm-spot-step:disabled { color: var(--cm-control); cursor: default; }
.cm-app .cm-spot-how .cm-spot-count { flex: 1; width: 100%; min-width: 0; min-height: 44px; padding: 6px 2px; border: 0; border-inline: 1.5px solid var(--cm-control); border-radius: 0; text-align: center; }
.cm-app .cm-spot-remove { justify-self: start; }
.cm-app .cm-spot-add { justify-self: start; }
.cm-app .cm-work-form .cm-spot-count { flex: 0 0 84px; width: 84px; text-align: center; }
.cm-spot-full { color: var(--cm-warm-ink); font-weight: 700; }
@media (max-width: 599px) {
  .cm-spot-heads { display: none; }
  /* The name across; under it "How many", the number and Remove on one line while they fit, and Remove on a line of
     its own, at the right, when they do not (walk, 2026-11-29: at 360 wide Remove was squeezed to one letter a line). */
  .cm-spot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 8px; border-bottom: 1px solid var(--cm-line); }
  .cm-spot .cm-spot-name { flex: 1 1 100%; }
  .cm-spot-many { display: block; color: var(--cm-soft); font-size: .94rem; font-weight: 600; }
  .cm-app .cm-spot-remove { margin-left: auto; white-space: nowrap; }
}

/* Photos in the post box, large: one as wide as the box at its own shape, several as big tiles (mark 2,
   community-photos.js). The older 84px thumbnails' rules (community.css) are set aside here. */
.cm-app #compose-photos.cm-thumbs-one { display: block; }
.cm-app #compose-photos.cm-thumbs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cm-app .cm-thumb { position: relative; width: auto; height: auto; }
.cm-app .cm-thumb .cm-thumb-open { position: static; display: block; width: 100%; height: auto; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: var(--cm-photo-bg); color: inherit; cursor: zoom-in; isolation: auto; }
.cm-app .cm-thumb .cm-thumb-open::before, .cm-app .cm-thumb .cm-thumb-remove::before { content: none; }
.cm-app .cm-thumb .cm-thumb-open img { display: block; width: 100%; height: auto; border-radius: 0; }
.cm-app .cm-thumbs-one .cm-thumb-open img { max-height: 440px; object-fit: contain; }
.cm-app .cm-thumbs-grid .cm-thumb-open img { aspect-ratio: 1 / 1; object-fit: cover; }
.cm-app .cm-thumb .cm-thumb-remove { position: absolute; top: 8px; right: 8px; width: auto; height: auto; min-height: 44px; padding: 6px 14px; border-radius: 10px;
  background: var(--cm-button); color: var(--cm-ink); border: 1.5px solid var(--cm-control); font-size: .94rem; box-shadow: 0 2px 8px var(--cm-toast-shadow); }
/* A posted post's photos open full size when pressed. */
.cm-photo-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; min-width: 0; }
.cm-app .cm-photos.n3 .cm-photo-open:first-child { grid-column: 1 / -1; }
.cm-app .cm-photos.n3 .cm-photo-open:not(:first-child) .cm-photo { aspect-ratio: 1 / 1; }
/* The full-size view: the photo on dark, Close at the top, Previous and Next beside it when there are several. */
.cm-viewer { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto minmax(0, 1fr); background: rgba(12, 18, 26, .94); }
.cm-viewer-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 16px; }
.cm-viewer-count { margin-right: auto; color: #fff; font-weight: 650; }
.cm-viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }
.cm-viewer-img { display: block; max-width: 100%; max-height: calc(100dvh / var(--cm-zoom, 1) - 100px); object-fit: contain; border-radius: 8px; }
.cm-app .cm-viewer-step { position: absolute; top: 50%; transform: translateY(-50%); min-width: 52px; min-height: 52px; padding: 0; border-radius: 50%; font-size: 1.6rem; line-height: 1; }
.cm-viewer-prev { left: 16px; }
.cm-viewer-next { right: 16px; }
body.cm-viewing { overflow: hidden; }

/* Changing a post (mark 7): the post box above the post, under its own heading, with who would lose a sign-up spot. */
.cm-compose-edit-title { margin: 0; font-size: 1.12rem; }
.cm-app .cm-compose.cm-editing { border-color: var(--cm-accent-line-strong); box-shadow: 0 0 0 3px var(--cm-accent-soft); }
.cm-compose.cm-editing .cm-segment { display: none; }
.cm-compose-confirm { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--cm-warm); color: var(--cm-warm-ink); font-weight: 600; }
.cm-app .cm-compose .cm-compose-confirm .cm-compose-row { border: 0; padding: 0; }
#events-posted { margin: 0; }

/* ==== A big screen (owner, 2026-11-30: "The Scaling really needs to be fixed on this", a 2731 px wide window where the
   whole app sat small in the middle). From 2200 px the app is drawn larger, everything in proportion: the menu, the
   words, the buttons. --cm-zoom is the step in use; a height taken from the window is divided by it (a zoomed part
   measures the window in its own, larger, pixels). */
.cm-app { --cm-zoom: 1; }
@media (min-width: 2200px) { .cm-app { --cm-zoom: 1.2; zoom: 1.2; } }
@media (min-width: 2600px) { .cm-app { --cm-zoom: 1.35; zoom: 1.35; } }
@media (min-width: 3200px) { .cm-app { --cm-zoom: 1.6; zoom: 1.6; } }
@media (min-width: 4000px) { .cm-app { --cm-zoom: 2; zoom: 2; } }
