/*
 * Church Manager — website pages in the Kingdom Ambassadors design system (C09, "Side A: calm").
 * Everything is scoped to .cm so it never leaks into the theme or Elementor.
 * To use exact brand values from the style guide, change the tokens below.
 */
.cm {
	--cm-paper: #edeff2;
	--cm-surface: #ffffff;
	--cm-ink: #0d1015;
	--cm-ink-2: #505866;
	--cm-ink-3: #8d929b;
	--cm-line: #e2e6eb;
	--cm-line-2: #c8cdd4;
	--cm-field: #8d929b;
	--cm-verm: #c8330c;
	--cm-verm-press: #9e260a;
	--cm-lime: #c6f135;
	--cm-lime-press: #b4dc2a;
	--cm-green: #1b7a4b;
	--cm-green-tint: #e8f3ed;
	--cm-red: #c4232b;
	--cm-red-tint: #fbeaea;
	--cm-amber: #9a5b00;
	--cm-focus: #2450ff;
	--cm-serif: var(--cm-sans); /* Headings use the sans (Outfit). */
	--cm-sans: 'CM Sans', 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--cm-mono: 'CM Mono', 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
	--cm-r-card: 20px;
	--cm-r-field: 8px;
	--cm-e1: 0 1px 2px rgba(13, 16, 21, .04);
	--cm-e2: 0 10px 28px -12px rgba(13, 16, 21, .22);

	font-family: var(--cm-sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--cm-ink);
	max-width: 760px;
	margin: 0 auto 32px;
	-webkit-font-smoothing: antialiased;
	font-synthesis: none; /* never fake bold/italic on the single-weight serif */
}
.cm *, .cm *::before, .cm *::after { box-sizing: border-box; }
/* Keep the theme / Elementor global heading styles (letter-spacing, capitals) off our titles. */
.cm .cm-event-title, .cm .cm-card-title, .cm .cm-auth-title, .cm .cm-empty-title, .cm .cm-stat-value, .cm .cm-amount input, .cm .cm-avatar {
	word-spacing: normal; text-transform: none; font-stretch: normal; font-style: normal;
}
.cm p { margin: 0 0 12px; }
.cm a { color: inherit; }
.cm h2, .cm h3 { margin: 0; letter-spacing: normal; text-transform: none; }
.cm .cm-icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.cm .cm-sr, .cm .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm .cm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cm .cm-mono { font-family: var(--cm-mono); font-size: 12px; letter-spacing: .08em; }
.cm .cm-muted { color: var(--cm-ink-2); }
.cm .cm-nowrap { white-space: nowrap; }

/* Cards ------------------------------------------------------------------ */
.cm .cm-card { background: var(--cm-surface); border: 1px solid var(--cm-line); border-radius: var(--cm-r-card); box-shadow: var(--cm-e1); margin: 0 0 20px; }
.cm .cm-form-card, .cm .cm-state, .cm .cm-auth { padding: 28px; }
.cm .cm-card-title { font-family: var(--cm-serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0 0 18px; }

/* Mono label row: "REGISTER ——— THE EXPERIENCE" */
.cm .cm-label-row { display: flex; align-items: center; gap: 12px; font-family: var(--cm-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cm-ink-2); margin: 0 0 18px; }
.cm .cm-label-row > span:last-child:not(:first-child) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm .cm-label-rule { flex: 0 0 44px; height: 1px; background: currentColor; opacity: .6; }
.cm .cm-dash-body > .cm-label-row { margin-top: 26px; }

/* Buttons (C01) ---------------------------------------------------------- */
.cm .cm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 24px; border: 1.5px solid var(--cm-verm); border-radius: 999px; background: var(--cm-verm); color: #fff; font: 600 16px/1.2 var(--cm-sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s; white-space: nowrap; -webkit-appearance: none; appearance: none; }
.cm .cm-btn:hover { background: var(--cm-ink); border-color: var(--cm-ink); color: #fff; box-shadow: var(--cm-e2); }
.cm .cm-btn:active { background: var(--cm-verm-press); border-color: var(--cm-verm-press); box-shadow: none; }
.cm .cm-btn--ink { background: var(--cm-ink); border-color: var(--cm-ink); }
.cm .cm-btn--ink:hover { background: var(--cm-lime); border-color: var(--cm-lime); color: var(--cm-ink); }
.cm .cm-btn--ink:active { background: var(--cm-lime-press); border-color: var(--cm-lime-press); color: var(--cm-ink); }
.cm .cm-btn--ghost { background: var(--cm-surface); border-color: var(--cm-ink); color: var(--cm-ink); }
.cm .cm-btn--ghost:hover { background: var(--cm-ink); color: #fff; }
.cm .cm-btn--ghost:active { background: var(--cm-line); color: var(--cm-ink); }
.cm .cm-btn--m { min-height: 44px; padding: 10px 20px; font-size: 14.5px; }
.cm .cm-btn--s { min-height: 36px; padding: 7px 14px; font-size: 13.5px; gap: 8px; }
.cm .cm-btn--block { width: 100%; }
.cm .cm-btn[disabled], .cm .cm-btn.is-loading { background: var(--cm-line); border-color: var(--cm-line); color: var(--cm-ink-3); box-shadow: none; cursor: default; }
.cm .cm-btn.is-loading { background: var(--cm-ink); border-color: var(--cm-ink); color: #fff; }
.cm .cm-btn.is-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: cm-spin .7s linear infinite; }
@keyframes cm-spin { to { transform: rotate(360deg); } }

.cm .cm-link { display: inline-flex; align-items: center; gap: 6px; padding: 0 0 2px; border: 0; border-bottom: 1.5px solid currentColor; border-radius: 0; background: none; color: var(--cm-ink); font: 600 14.5px/1.3 var(--cm-sans); text-decoration: none; cursor: pointer; }
.cm .cm-link:hover, .cm .cm-link--verm { color: var(--cm-verm); }
.cm .cm-link--verm { font-weight: 600; text-decoration: none; }
.cm a.cm-link--verm:hover { text-decoration: underline; }
.cm :is(a, button, input, select, textarea, summary, .cm-chip):focus-visible { outline: 2px solid var(--cm-focus); outline-offset: 3px; }
.cm :is(a, button, summary):focus:not(:focus-visible) { outline: none; }
.cm .cm-inline-form { display: inline; margin: 0; }
.cm .cm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.cm .cm-actions--spaced { margin-top: 22px; gap: 12px 16px; }

/* Forms (C06) ------------------------------------------------------------ */
.cm .cm-form { margin: 0; }
.cm .cm-field { margin: 0 0 18px; min-width: 0; }
.cm .cm-field > label, .cm .cm-label-split label { display: block; font: 500 14px/1.3 var(--cm-sans); color: var(--cm-ink); margin: 0 0 8px; }
.cm .cm-label-split { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cm .cm-label-split a { font-size: 14px; }
.cm .cm-optional { color: var(--cm-ink-2); font-weight: 400; }
.cm input[type="text"], .cm input[type="email"], .cm input[type="tel"], .cm input[type="password"], .cm input[type="number"], .cm input[type="date"], .cm select, .cm textarea {
	display: block; width: 100%; height: 52px; margin: 0; padding: 0 16px; background: var(--cm-surface); border: 1.5px solid var(--cm-field); border-radius: var(--cm-r-field);
	box-shadow: none; color: var(--cm-ink); font: 400 16px/1.4 var(--cm-sans); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.cm textarea { height: auto; min-height: 132px; padding: 14px 16px; resize: vertical; }
.cm input::placeholder, .cm textarea::placeholder { color: var(--cm-ink-3); opacity: 1; }
.cm :is(input, select, textarea):hover { border-color: var(--cm-ink); }
.cm :is(input, select, textarea):focus { outline: none; border-color: var(--cm-focus); box-shadow: 0 0 0 3px rgba(36, 80, 255, .16); }
.cm :is(input, select, textarea):disabled { background: var(--cm-line); border-color: var(--cm-line); color: var(--cm-ink-3); }
.cm .is-error :is(input, select, textarea), .cm [aria-invalid="true"] { border-color: var(--cm-red); }
.cm .cm-help { display: flex; align-items: flex-start; gap: 6px; margin: 7px 0 0; font-size: 13px; line-height: 1.4; color: var(--cm-ink-2); }
.cm .cm-help--error { color: var(--cm-red); }
.cm .cm-help .cm-icon { width: 15px; height: 15px; margin-top: 1px; }
.cm .cm-count { margin: 6px 0 0; text-align: right; font: 12px var(--cm-mono); color: var(--cm-ink-3); }
.cm .cm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.cm .cm-input-group { display: flex; align-items: stretch; height: 52px; border: 1.5px solid var(--cm-field); border-radius: var(--cm-r-field); background: var(--cm-surface); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.cm .cm-input-group:hover { border-color: var(--cm-ink); }
.cm .cm-input-group:focus-within { border-color: var(--cm-focus); box-shadow: 0 0 0 3px rgba(36, 80, 255, .16); }
.cm .is-error .cm-input-group { border-color: var(--cm-red); }
.cm .cm-input-group .cm-prefix { display: flex; align-items: center; padding: 0 14px; background: var(--cm-paper); border-right: 1.5px solid var(--cm-line-2); font: 500 15px var(--cm-sans); color: var(--cm-ink-2); }
.cm .cm-input-group input { height: 100%; border: 0; border-radius: 0; box-shadow: none !important; }

.cm .cm-select { position: relative; display: block; }
.cm .cm-select select { padding-right: 44px; cursor: pointer; }
.cm .cm-select .cm-icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--cm-ink-2); }
.cm .cm-select--inline { display: inline-block; min-width: 120px; }
.cm .cm-select--inline select { height: 40px; font-size: 15px; }

/* Amount with GHS chip + quick picks */
.cm .cm-amount { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px; border: 1.5px solid var(--cm-field); border-radius: var(--cm-r-field); background: var(--cm-surface); transition: border-color .15s, box-shadow .15s; }
.cm .cm-amount:hover { border-color: var(--cm-ink); }
.cm .cm-amount:focus-within { border-color: var(--cm-focus); box-shadow: 0 0 0 3px rgba(36, 80, 255, .16); }
.cm .is-error .cm-amount { border-color: var(--cm-red); }
.cm .cm-amount-code { flex: none; padding: 4px 7px; border-radius: 4px; background: var(--cm-ink); color: #fff; font: 500 12px var(--cm-mono); letter-spacing: .04em; }
.cm .cm-amount input { height: 100%; padding: 0; border: 0; box-shadow: none !important; font: 400 32px/1 var(--cm-serif); font-variant-numeric: lining-nums; }
.cm .cm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cm .cm-chip { position: relative; cursor: pointer; }
.cm .cm-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cm .cm-chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 16px; border: 1px solid var(--cm-line-2); border-radius: 999px; background: var(--cm-surface); font: 500 13.5px var(--cm-mono); color: var(--cm-ink); transition: background .15s, color .15s, border-color .15s; }
.cm .cm-chip:hover span { border-color: var(--cm-ink); }
.cm .cm-chip input:checked + span { background: var(--cm-ink); border-color: var(--cm-ink); color: #fff; }
.cm .cm-chip input:focus-visible + span { outline: 2px solid var(--cm-focus); outline-offset: 2px; }

/* Checkbox */
.cm .cm-check, .cm .cm-check-card { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0 0 20px; cursor: pointer; font-size: 15px; line-height: 1.4; }
.cm .cm-check input, .cm .cm-check-card input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.cm .cm-check-box { flex: none; width: 20px; height: 20px; margin-top: 0; border: 1.5px solid var(--cm-ink); border-radius: 4px; background: var(--cm-surface); transition: background .15s; }
.cm input:checked + .cm-check-box { background: var(--cm-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10.5 3.2 3L15 6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.cm input:focus-visible + .cm-check-box { outline: 2px solid var(--cm-focus); outline-offset: 2px; }
.cm .cm-check-card { padding: 16px; border-radius: 12px; background: var(--cm-paper); }
.cm .cm-check-card strong { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.cm .cm-check-card .cm-icon { width: 16px; height: 16px; }
.cm .cm-check-help { display: block; margin-top: 3px; font-size: 13.5px; color: var(--cm-ink-2); }
.cm .cm-fineprint { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--cm-ink-2); }

/* Alerts (C08) ----------------------------------------------------------- */
.cm .cm-alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin: 0 0 20px; border: 1.5px solid var(--cm-line-2); border-radius: 12px; background: var(--cm-surface); }
.cm .cm-alert-icon { width: 20px; height: 20px; margin-top: 1px; }
.cm .cm-alert-title { margin: 0; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.cm .cm-alert-body { margin: 3px 0 0; font-size: 14.5px; color: var(--cm-ink-2); }
.cm .cm-alert-body .cm-link { font-size: 14px; }
.cm .cm-alert--success { border-color: var(--cm-green); }
.cm .cm-alert--success :is(.cm-alert-icon, .cm-alert-title) { color: var(--cm-green); }
.cm .cm-alert--error { border-color: var(--cm-red); }
.cm .cm-alert--error :is(.cm-alert-icon, .cm-alert-title) { color: var(--cm-red); }
.cm .cm-alert--warning { border-color: var(--cm-amber); }
.cm .cm-alert--warning :is(.cm-alert-icon, .cm-alert-title) { color: var(--cm-amber); }
.cm .cm-alert--info .cm-alert-icon { color: var(--cm-ink-2); }

/* Events list (C09 [cm_events]) ------------------------------------------ */
.cm .cm-events { list-style: none; margin: 0 0 24px; padding: 0; background: var(--cm-surface); border: 1px solid var(--cm-line); border-radius: var(--cm-r-card); overflow: hidden; box-shadow: var(--cm-e1); }
.cm .cm-events--flat { box-shadow: none; margin-bottom: 18px; }
.cm .cm-event { display: flex; align-items: center; gap: 20px; margin: 0; padding: 22px 24px; border-top: 1px solid var(--cm-line); }
.cm .cm-event:first-child { border-top: 0; }
.cm .cm-event--full { background: #f4f5f7; }
.cm .cm-event--full .cm-event-title, .cm .cm-event--past .cm-event-title { color: var(--cm-ink-2); }
.cm .cm-date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 10px; background: var(--cm-ink); color: #fff; font-family: var(--cm-mono); line-height: 1; }
.cm .cm-date strong { font-size: 19px; font-weight: 500; letter-spacing: .02em; }
.cm .cm-date span { margin-top: 5px; font-size: 10px; letter-spacing: .14em; }
.cm .cm-date--full { background: transparent; color: var(--cm-ink-2); border: 1.5px dashed var(--cm-field); }
.cm .cm-date--registered { background: var(--cm-green); }
.cm .cm-date--past { background: var(--cm-paper); color: var(--cm-ink-2); }
.cm .cm-event-body { flex: 1; min-width: 0; }
.cm .cm-event-title { font: 400 26px/1.15 var(--cm-serif); color: var(--cm-ink); margin: 0 0 6px; }
.cm .cm-meta { display: block; margin: 0; font: 400 11.5px/1.6 var(--cm-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cm-ink-2); }
.cm .cm-meta .cm-icon { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.cm .cm-meta--almost { color: var(--cm-amber); }
.cm .cm-meta--registered { color: var(--cm-green); }
.cm .cm-event-desc { margin: 8px 0 0; font-size: 14.5px; color: var(--cm-ink-2); }
.cm .cm-event-action { flex: none; display: flex; align-items: center; gap: 16px; }
.cm .cm-event-action .cm-link { font-size: 14px; }

/* Registration panel + states -------------------------------------------- */
.cm .cm-panel { scroll-margin-top: 90px; }
.cm .cm-panel-when { display: flex; align-items: center; gap: 8px; margin: -6px 0 20px; font-size: 14.5px; color: var(--cm-ink-2); }
.cm .cm-signed-in { padding: 12px 16px; border-radius: 10px; background: var(--cm-paper); font-size: 15px; }
.cm .cm-state-title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-weight: 600; font-size: 17px; }
.cm .cm-state-title .cm-icon { width: 22px; height: 22px; }
.cm .cm-state p:not(.cm-state-title) { color: var(--cm-ink-2); font-size: 15px; }
.cm .cm-state .cm-actions { margin-top: 16px; }
.cm .cm-state--full { border: 1.5px dashed var(--cm-field); box-shadow: none; }
.cm .cm-state--registered { border: 1.5px solid var(--cm-green); }
.cm .cm-state--registered .cm-state-title { color: var(--cm-green); }
.cm .cm-state--confirm { border: 1.5px solid var(--cm-ink); }
.cm .cm-waitlist-form { display: flex; gap: 10px; margin-top: 16px; }
.cm .cm-waitlist-form input[type="email"] { flex: 1; height: 48px; }

.cm .cm-cal { position: relative; display: inline-block; }
.cm .cm-cal summary { list-style: none; }
.cm .cm-cal summary::-webkit-details-marker { display: none; }
.cm .cm-cal-menu { position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); display: flex; flex-direction: column; min-width: 190px; padding: 6px; background: var(--cm-surface); border: 1px solid var(--cm-line); border-radius: 12px; box-shadow: var(--cm-e2); }
.cm .cm-cal-menu a { padding: 10px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.cm .cm-cal-menu a:hover { background: var(--cm-paper); }
.cm .cm-event-action .cm-cal-menu { left: auto; right: 0; }

/* Empty state */
.cm .cm-empty { padding: 44px 28px; text-align: center; }
.cm .cm-empty-icon { width: 36px; height: 36px; color: var(--cm-ink-3); margin-bottom: 10px; }
.cm .cm-empty-title { font: 400 28px/1.15 var(--cm-serif); margin: 0 0 8px !important; }
.cm .cm-empty p:not(.cm-empty-title) { max-width: 420px; margin: 0 auto 16px; color: var(--cm-ink-2); }

/* Giving -------------------------------------------------------------------- */
.cm .cm-pledge-note { margin: 0 0 20px; padding: 16px 18px; border-radius: 12px; background: var(--cm-paper); }
.cm .cm-pledge-note .cm-label-row { margin-bottom: 6px; }
.cm .cm-pledge-note p:last-child { margin: 0; color: var(--cm-ink-2); font-size: 14.5px; }

/* Member portal (C09 [cm_member_portal]) ------------------------------------ */
.cm .cm-auth { max-width: 440px; margin-left: auto; margin-right: auto; }
.cm .cm-auth-title { font: 400 40px/1.05 var(--cm-serif); margin: 0 0 24px; }
.cm .cm-auth-title em, .cm .cm-card-title em { font-style: italic; }
.cm .cm-auth-foot { margin: 18px 0 0; text-align: center; font-size: 15px; color: var(--cm-ink-2); }
.cm .cm-password { position: relative; display: block; }
.cm .cm-password input { padding-right: 52px; }
.cm .cm-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--cm-ink-2); cursor: pointer; }
.cm .cm-eye:hover { color: var(--cm-ink); background: var(--cm-paper); }
.cm .cm-eye.is-on { color: var(--cm-ink); }

.cm .cm-dash { overflow: hidden; }
.cm .cm-dash-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px; }
.cm .cm-avatar { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cm-lime); border: 1.5px solid var(--cm-ink); font: 400 20px var(--cm-serif); color: var(--cm-ink); }
.cm .cm-dash-who { flex: 1; min-width: 0; }
.cm .cm-dash-who strong { display: block; font-weight: 600; font-size: 17px; line-height: 1.25; }
.cm .cm-dash-who .cm-mono { display: block; margin-top: 3px; font-size: 11.5px; letter-spacing: .12em; color: var(--cm-ink-2); }
.cm .cm-tabs { display: flex; gap: 28px; padding: 0 24px; border-top: 1px solid var(--cm-line); border-bottom: 1px solid var(--cm-line); overflow-x: auto; scrollbar-width: none; }
.cm .cm-tabs::-webkit-scrollbar { display: none; }
.cm .cm-tabs a { position: relative; flex: none; padding: 16px 0 14px; font-weight: 500; font-size: 15px; color: var(--cm-ink-2); text-decoration: none; }
.cm .cm-tabs a:hover { color: var(--cm-ink); }
.cm .cm-tabs a.is-active { color: var(--cm-ink); }
.cm .cm-tabs a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cm-verm); }
.cm .cm-dash-body { padding: 24px; }

.cm .cm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.cm .cm-stat { display: flex; flex-direction: column; justify-content: space-between; min-height: 116px; padding: 16px 18px; border-radius: 14px; background: var(--cm-paper); }
.cm .cm-stat--wide { min-height: 0; margin: 0 0 16px; }
.cm .cm-stat-label { font: 400 11px/1.4 var(--cm-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cm-ink-2); }
.cm .cm-stat-value { margin-top: 10px; font: 400 40px/1 var(--cm-serif); font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.cm .cm-stat-value small { font-size: .55em; letter-spacing: .02em; }

.cm .cm-pledge { margin: 0 0 12px; padding: 18px; border: 1px solid var(--cm-line); border-radius: 14px; background: var(--cm-surface); }
.cm .cm-pledge-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 12px; }
.cm .cm-pledge-top strong { font-weight: 600; font-size: 15.5px; }
.cm .cm-pledge-top .cm-mono { font-size: 12px; color: var(--cm-ink-2); }
.cm .cm-progress { height: 10px; border-radius: 99px; background: var(--cm-line); overflow: hidden; }
.cm .cm-progress span { display: block; height: 100%; min-width: 4px; border-radius: 99px; background: var(--cm-verm); }
.cm .cm-pledge.is-done .cm-progress span { background: var(--cm-green); }
.cm .cm-pledge-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; font-size: 14px; color: var(--cm-ink-2); }
.cm .cm-pledge-foot .cm-link { font-size: 14px; }
.cm .cm-warn { color: var(--cm-amber); font-weight: 500; }
.cm .cm-ok { color: var(--cm-green); justify-content: flex-start; gap: 6px; }

.cm .cm-readonly { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0 0 8px; padding: 18px; border-radius: 14px; background: var(--cm-paper); }
.cm .cm-readonly dt { font: 400 11px var(--cm-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cm-ink-2); }
.cm .cm-readonly dd { margin: 3px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.cm .cm-readonly + .cm-help { margin-bottom: 22px; }

.cm .cm-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.cm .cm-table-wrap { overflow-x: auto; margin: 0 0 12px; border: 1px solid var(--cm-line); border-radius: 14px; }
.cm .cm-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 14.5px; }
.cm .cm-table th { padding: 12px 16px; background: var(--cm-paper); border: 0; text-align: left; font: 400 11px var(--cm-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cm-ink-2); }
.cm .cm-table td { padding: 13px 16px; border: 0; border-top: 1px solid var(--cm-line); }
.cm .cm-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm .cm-table .cm-mono { font-size: 12.5px; }

/* Phones --------------------------------------------------------------------- */
@media (max-width: 767px) {
	.cm .cm-form-card, .cm .cm-state, .cm .cm-auth { padding: 22px 18px; }
	.cm .cm-grid-2 { grid-template-columns: 1fr; }
	.cm .cm-event { flex-wrap: wrap; align-items: flex-start; gap: 14px 16px; padding: 18px; }
	.cm .cm-date { width: 52px; height: 52px; }
	.cm .cm-event-body { flex-basis: calc(100% - 70px); }
	.cm .cm-event-title { font-size: 23px; }
	.cm .cm-event-action { width: 100%; padding-left: 68px; }
	.cm .cm-event-action .cm-btn { flex: 1; }
	.cm .cm-waitlist-form { flex-direction: column; }
	.cm .cm-waitlist-form .cm-btn { width: 100%; }
	.cm .cm-dash-head { flex-wrap: wrap; padding: 18px; }
	.cm .cm-dash-head .cm-btn { margin-left: auto; }
	.cm .cm-tabs { gap: 16px; padding: 0 18px; }
	.cm .cm-tabs a { font-size: 14.5px; }
	.cm .cm-dash-who .cm-mono { letter-spacing: .06em; }
	.cm .cm-dash-body { padding: 18px; }
	.cm .cm-stats { grid-template-columns: 1fr 1fr; }
	.cm .cm-stats .cm-stat:first-child { grid-column: 1 / -1; }
	.cm .cm-stat { min-height: 96px; }
	.cm .cm-stat-value { font-size: 34px; }
	.cm .cm-readonly { grid-template-columns: 1fr; }
	.cm .cm-auth-title { font-size: 36px; }
	.cm .cm-cal-menu, .cm .cm-event-action .cm-cal-menu { left: 0; right: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.cm *, .cm *::before { transition: none !important; animation: none !important; }
}

/* ---------- Headings & figures: Outfit (sans) ---------- */
.cm .cm-event-title { font: 600 21px/1.25 var(--cm-sans); letter-spacing: -.015em; }
.cm .cm-card-title { font-weight: 600; font-size: 26px; letter-spacing: -.02em; }
.cm .cm-empty-title { font: 600 22px/1.25 var(--cm-sans); letter-spacing: -.015em; }
.cm .cm-auth-title { font: 600 32px/1.1 var(--cm-sans); letter-spacing: -.025em; }
.cm .cm-auth-title em, .cm .cm-card-title em { font-style: normal; color: var(--cm-verm); }
.cm .cm-stat-value { font: 600 32px/1.05 var(--cm-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cm .cm-amount input { font: 500 28px/1 var(--cm-sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cm .cm-avatar { font: 600 17px var(--cm-sans); }
@media (max-width: 767px) {
	.cm .cm-event-title { font-size: 19px; }
	.cm .cm-stat-value { font-size: 28px; }
	.cm .cm-auth-title { font-size: 28px; }
}

/* ======================================================================== */
/* 1.6 — Sermons, serve teams, plan a visit, QR check-in                    */
/* ======================================================================== */
.cm.cm-sermons, .cm.cm-teams { max-width: 1080px; }
.cm .cm-back { margin: 0 0 16px; }
.cm .cm-eyebrow { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: var(--cm-lime); color: var(--cm-ink); font: 500 11px/1.3 var(--cm-mono); letter-spacing: .12em; text-transform: uppercase; }
.cm .cm-tag { display: block; font: 500 11px/1.4 var(--cm-mono); letter-spacing: .12em; color: var(--cm-verm); }

/* Thumbnails */
.cm .cm-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--cm-ink) center / cover no-repeat; overflow: hidden; color: #fff; }
.cm .cm-thumb--plain { background: var(--cm-ink); background-image: radial-gradient(120% 90% at 100% 0%, rgba(200, 51, 12, .55), transparent 60%); }
.cm .cm-thumb-word { position: absolute; left: 16px; right: 16px; bottom: 14px; font: 600 22px/1.05 var(--cm-sans); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm .cm-thumb--big .cm-thumb-word { font-size: 34px; }
.cm .cm-play-dot { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--cm-verm); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s, background .15s; }
.cm .cm-thumb--plain .cm-play-dot { top: 16px; left: auto; right: 16px; margin: 0; width: 40px; height: 40px; }
.cm .cm-play-dot svg { width: 22px; height: 22px; margin-left: 2px; }
.cm .cm-thumb-dur, .cm .cm-thumb-tag { position: absolute; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: rgba(13,16,21,.78); color: #fff; font: 500 11.5px/1.3 var(--cm-mono); letter-spacing: .04em; }
.cm .cm-thumb-dur { right: 10px; }
.cm .cm-thumb-tag { left: 10px; top: 10px; bottom: auto; background: var(--cm-lime); color: var(--cm-ink); }
.cm .cm-thumb--plain .cm-thumb-tag { top: auto; bottom: 10px; left: auto; right: 10px; }
.cm .cm-thumb--plain .cm-thumb-dur { display: none; }
.cm .cm-thumb-tag .cm-icon { width: 12px; height: 12px; vertical-align: 0; }
.cm .cm-thumb--sm { width: 96px; flex: none; border-radius: 10px; }
.cm .cm-thumb--sm .cm-thumb-word, .cm .cm-thumb--sm .cm-thumb-dur, .cm .cm-thumb--sm .cm-thumb-tag { display: none; }
.cm .cm-thumb--sm .cm-play-dot { top: 50%; left: 50%; right: auto; width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cm .cm-thumb--sm .cm-play-dot svg { width: 15px; height: 15px; }

/* Featured + grid */
.cm .cm-sermon-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 16px; margin: 0 0 32px; background: var(--cm-surface); border: 1px solid var(--cm-line); border-radius: var(--cm-r-card); box-shadow: var(--cm-e1); text-decoration: none; color: inherit; }
.cm .cm-sermon-feature .cm-sermon-body { display: flex; flex-direction: column; gap: 10px; padding: 8px 12px 8px 0; }
.cm .cm-sermon-feature .cm-sermon-title { font: 600 30px/1.1 var(--cm-sans); letter-spacing: -.01em; }
.cm .cm-sermon-feature .cm-btn { align-self: flex-start; margin-top: 8px; }
.cm .cm-sermon-feature:hover .cm-btn { background: var(--cm-ink); border-color: var(--cm-ink); }
.cm .cm-sermon-desc { color: var(--cm-ink-2); font-size: 15px; }
.cm .cm-sermon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; margin: 0 0 28px; }
.cm .cm-sermon-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.cm .cm-sermon-card .cm-sermon-body { display: flex; flex-direction: column; gap: 4px; }
.cm .cm-sermon-title { display: block; font: 600 18px/1.25 var(--cm-sans); }
.cm .cm-sermon-card .cm-meta, .cm .cm-sermon-row .cm-meta { font-size: 13px; color: var(--cm-ink-2); }
.cm :is(.cm-sermon-card, .cm-sermon-feature, .cm-sermon-row):hover .cm-play-dot { transform: scale(1.08); background: var(--cm-ink); }
.cm .cm-sermon-card:hover .cm-sermon-title, .cm .cm-sermon-row:hover .cm-sermon-title { text-decoration: underline; text-underline-offset: 3px; }

/* Series */
.cm .cm-series-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; margin: 0 0 32px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.cm .cm-series-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 150px; padding: 18px; border-radius: 16px; background: var(--cm-paper) center / cover; color: var(--cm-ink); text-decoration: none; scroll-snap-align: start; overflow: hidden; border: 1px solid var(--cm-line); }
.cm .cm-series-card.has-img { color: #fff; border: 0; }
.cm .cm-series-card.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,16,21,.05), rgba(13,16,21,.8)); }
.cm .cm-series-card > * { position: relative; }
.cm .cm-series-card .cm-mono { font-size: 10.5px; opacity: .85; }
.cm .cm-series-title { font: 600 21px/1.15 var(--cm-sans); }
.cm .cm-series-when { font-size: 13px; opacity: .8; }
.cm .cm-series-card:hover { box-shadow: var(--cm-e2); }
.cm .cm-series-head { margin: 0 0 24px; }
.cm .cm-series-head .cm-card-title { margin-bottom: 8px; }

/* Filters + pager */
.cm .cm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 24px; }
.cm .cm-filters input[type="search"] { flex: 1 1 260px; width: auto; height: 44px; padding: 0 16px; border: 1.5px solid var(--cm-field); border-radius: 999px; background: var(--cm-surface); font: 400 15px var(--cm-sans); -webkit-appearance: none; appearance: none; }
.cm .cm-filters input[type="search"]:focus { outline: none; border-color: var(--cm-focus); box-shadow: 0 0 0 3px rgba(36, 80, 255, .16); }
.cm .cm-filters .cm-select { flex: 0 1 190px; }
.cm .cm-filters select { height: 44px; border-radius: 999px; font-size: 15px; }
.cm .cm-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 8px 0 24px; color: var(--cm-ink-2); }

/* Single sermon */
.cm .cm-sermon { padding: 28px; }
.cm .cm-sermon .cm-card-title { margin-bottom: 8px; }
.cm .cm-sermon-meta { margin: 0 0 22px; font: 500 12px/1.5 var(--cm-mono); letter-spacing: .1em; color: var(--cm-ink-2); }
.cm .cm-media-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px; border-radius: 999px; background: var(--cm-paper); }
.cm .cm-media-tabs button { min-height: 36px; padding: 6px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--cm-ink-2); font: 600 14px var(--cm-sans); cursor: pointer; }
.cm .cm-media-tabs button.is-active { background: var(--cm-ink); color: #fff; }
.cm .cm-media-pane { margin: 0 0 22px; }
.cm .cm-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--cm-ink); }
.cm .cm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cm .cm-sermon-actions { gap: 10px 12px; margin: 0 0 8px; }
.cm .cm-save.is-saved { background: var(--cm-lime); border-color: var(--cm-lime); color: var(--cm-ink); }
.cm .cm-sermon-text { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--cm-line); color: var(--cm-ink); font-size: 16px; line-height: 1.65; }
.cm .cm-state--locked { margin-top: 8px; padding: 24px; border-radius: 16px; background: var(--cm-paper); }
.cm .cm-state--locked .cm-state-title .cm-icon { color: var(--cm-verm); }

/* Audio player */
.cm .cm-player { padding: 18px 20px; border-radius: 16px; background: var(--cm-ink); color: #fff; }
.cm .cm-player audio { width: 100%; }
.cm .cm-player.is-ready audio { display: none; }
.cm .cm-player-ui { display: flex; align-items: center; gap: 18px; }
.cm .cm-player-ui[hidden] { display: none; }
.cm .cm-pl-play { flex: none; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: var(--cm-verm); color: #fff; cursor: pointer; transition: background .15s, transform .15s; }
.cm .cm-pl-play:hover { background: var(--cm-lime); color: var(--cm-ink); }
.cm .cm-pl-play:active { transform: scale(.95); }
.cm .cm-pl-play svg { width: 28px; height: 28px; }
.cm .cm-pl-play .i-pause, .cm .cm-player.is-playing .cm-pl-play .i-play { display: none; }
.cm .cm-player.is-playing .cm-pl-play .i-pause { display: block; }
.cm .cm-pl-main { flex: 1; min-width: 0; }
.cm .cm-pl-seek { --pct: 0%; display: block; width: 100%; height: 22px; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.cm .cm-pl-seek:focus { box-shadow: none; }
.cm .cm-pl-seek::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--cm-lime) var(--pct), rgba(255,255,255,.22) var(--pct)); }
.cm .cm-pl-seek::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(255,255,255,.22); }
.cm .cm-pl-seek::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--cm-lime); }
.cm .cm-pl-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; }
.cm .cm-pl-seek::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.cm .cm-pl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.cm .cm-pl-time { font: 500 13px var(--cm-mono); color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.cm .cm-pl-ctrls { display: flex; gap: 6px; }
.cm .cm-pl-ctrls button { min-width: 44px; min-height: 34px; padding: 4px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: transparent; color: #fff; font: 500 13px var(--cm-mono); cursor: pointer; }
.cm .cm-pl-ctrls button:hover { background: #fff; color: var(--cm-ink); }
.cm .cm-pl-resume { margin: 12px 0 0 !important; font-size: 13.5px; color: rgba(255,255,255,.75); }

/* Portal rows */
.cm .cm-sermon-rows { display: flex; flex-direction: column; gap: 4px; margin: 0 0 20px; }
.cm .cm-sermon-row { display: flex; align-items: center; gap: 14px; padding: 10px; margin: 0 -10px; border-radius: 12px; text-decoration: none; color: inherit; }
.cm .cm-sermon-row:hover { background: var(--cm-paper); }
.cm .cm-sermon-row .cm-sermon-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cm .cm-sermon-row .cm-sermon-title { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm .cm-progress--thin { height: 4px; margin-top: 6px; }
.cm .cm-note-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin: 0 0 16px; border-radius: 14px; background: var(--cm-lime); color: var(--cm-ink); text-decoration: none; }
.cm .cm-note-card > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm .cm-note-card strong { font-weight: 600; font-size: 17px; }
.cm .cm-note-card .cm-stat-label, .cm .cm-note-card .cm-muted { color: rgba(13,16,21,.7); }
.cm .cm-note-card:hover { box-shadow: var(--cm-e2); }
.cm .cm-plain-list { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--cm-line); }
.cm .cm-plain-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 0; border-bottom: 1px solid var(--cm-line); }
.cm .cm-plain-list > li > :first-child { flex: 1 1 200px; min-width: 0; }

/* Serve teams */
.cm .cm-team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px; }
.cm .cm-team-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--cm-surface); border: 1px solid var(--cm-line); border-radius: var(--cm-r-card); box-shadow: var(--cm-e1); scroll-margin-top: 90px; }
.cm .cm-team-card.is-picked { border: 1.5px solid var(--cm-ink); }
.cm .cm-team-mark { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cm-ink); color: var(--cm-lime); font: 500 15px var(--cm-mono); letter-spacing: .06em; }
.cm .cm-team-card:nth-child(3n+2) .cm-team-mark { background: var(--cm-verm); color: #fff; }
.cm .cm-team-card:nth-child(3n+3) .cm-team-mark { background: var(--cm-lime); color: var(--cm-ink); }
.cm .cm-team-name { font: 600 20px/1.2 var(--cm-sans); }
.cm .cm-team-blurb { flex: 1; margin: 0; color: var(--cm-ink-2); font-size: 15px; }
.cm .cm-team-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-top: 12px; border-top: 1px solid var(--cm-line); }
.cm .cm-team-foot .cm-meta { font: 500 11px/1.4 var(--cm-mono); letter-spacing: .1em; color: var(--cm-ink-2); }
.cm.cm-teams .cm-panel { max-width: 760px; margin-left: auto; margin-right: auto; }

/* QR check-in */
.cm .cm-checkin { max-width: 520px; margin: 0 auto 24px; scroll-margin-top: 80px; }
.cm .cm-checkin .cm-card-title { margin-bottom: 4px; }
.cm .cm-checkin .cm-form-card > .cm-meta { margin: 0 0 22px; font: 500 12px var(--cm-mono); letter-spacing: .1em; color: var(--cm-ink-2); }
.cm .cm-btn--big { min-height: 64px; font-size: 18px; }
.cm .cm-signed-in { color: var(--cm-ink-2); }
.cm .cm-checkin-phone { margin: 0 0 20px; }
.cm .cm-checkin-new { margin: 0 0 16px; border: 1.5px solid var(--cm-line-2); border-radius: 14px; }
.cm .cm-checkin-new > summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.cm .cm-checkin-new > summary::-webkit-details-marker { display: none; }
.cm .cm-checkin-new > summary::after { content: "+"; font: 400 22px/1 var(--cm-mono); color: var(--cm-verm); }
.cm .cm-checkin-new[open] > summary::after { content: "–"; }
.cm .cm-checkin-new > form { padding: 0 18px 18px; }
.cm .cm-checkin-done { text-align: center; padding: 36px 28px; }
.cm .cm-checkin-done .cm-state-title { justify-content: center; font-size: 22px; }
.cm .cm-checkin-tick { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0 0 16px; border-radius: 50%; background: var(--cm-green); color: #fff; animation: cm-pop .35s ease-out; }
.cm .cm-checkin-tick .cm-icon { width: 36px; height: 36px; }
.cm .cm-checkin-done .cm-actions { justify-content: center; }
@keyframes cm-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 900px) {
	.cm .cm-sermon-grid, .cm .cm-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.cm .cm-sermon-feature { grid-template-columns: 1fr; gap: 16px; padding: 12px; }
	.cm .cm-sermon-feature .cm-sermon-body { padding: 4px 6px 8px; }
	.cm .cm-sermon-feature .cm-sermon-title { font-size: 24px; }
	.cm .cm-sermon { padding: 22px 18px; }
	.cm .cm-player { padding: 16px; }
	.cm .cm-player-ui { gap: 14px; }
	.cm .cm-pl-play { width: 52px; height: 52px; }
	.cm .cm-pl-row { flex-wrap: wrap; }
	.cm .cm-filters .cm-select { flex: 1 1 140px; }
}
@media (max-width: 560px) {
	.cm .cm-sermon-grid, .cm .cm-team-grid { grid-template-columns: 1fr; }
	.cm .cm-sermon-grid { gap: 22px; }
	.cm .cm-series-row { grid-auto-columns: 78%; }
}
@media (prefers-reduced-motion: reduce) {
	.cm .cm-checkin-tick { animation: none; }
}
.cm .cm-label-row > span:first-child { white-space: nowrap; }

/* ======================================================================== */
/* 1.7 — Split member sign-in: photo side + dark "worship night" side       */
/* ======================================================================== */
.cm { --cm-brand-rgb: 200, 51, 12; --cm-accent-rgb: 198, 241, 53; --cm-dark-rgb: 13, 16, 21; }
.cm.cm-portal--out { max-width: 1120px; }
.cm .cm-signin { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 660px; border-radius: 28px; overflow: hidden; background: var(--cm-ink); box-shadow: 0 30px 70px -30px rgba(var(--cm-dark-rgb), .55); }

.cm .cm-signin-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 34px 36px 40px; background: var(--cm-paper) center / cover no-repeat; color: var(--cm-ink); overflow: hidden; isolation: isolate; }
.cm .cm-signin-side::after { content: ""; position: absolute; z-index: -1; right: -18%; bottom: -8%; width: 78%; aspect-ratio: 1; border: 56px solid rgba(var(--cm-brand-rgb), .09); border-bottom: 0; border-radius: 999px 999px 0 0; }
.cm .cm-signin-side.has-photo { color: #fff; }
.cm .cm-signin-side.has-photo::after { inset: 0; width: auto; aspect-ratio: auto; border: 0; border-radius: 0; background: linear-gradient(180deg, rgba(var(--cm-dark-rgb), .45) 0%, rgba(var(--cm-dark-rgb), .05) 38%, rgba(var(--cm-dark-rgb), .25) 60%, rgba(var(--cm-dark-rgb), .88) 100%); }
.cm .cm-signin-side-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cm .cm-signin-side-logo { display: block; max-width: 150px; max-height: 44px; width: auto; height: auto; object-fit: contain; }
.cm .cm-signin-side.has-photo .cm-signin-side-logo { box-sizing: content-box; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .94); }
.cm .cm-signin-side-church { font: 500 12px/1.3 var(--cm-mono); letter-spacing: .14em; text-transform: uppercase; }
.cm .cm-signin-side-heading { margin: 0 0 12px !important; font: 600 52px/1.02 var(--cm-sans); letter-spacing: -.03em; overflow-wrap: anywhere; }
.cm .cm-signin-side-text { max-width: 400px; margin: 0 !important; font-size: 17px; line-height: 1.5; opacity: .88; }
.cm .cm-signin-side:not(.has-photo) .cm-signin-side-text { color: var(--cm-ink-2); opacity: 1; }

.cm .cm-signin-main { position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 36px; isolation: isolate; }
.cm .cm-signin-main > .cm-auth { position: relative; width: 100%; max-width: 420px; margin: 0; border: 0; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06); }

/* Worship night: stage-light glows, soft beams, haze and a little grain. */
.cm .cm-night { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
	background:
		radial-gradient(60% 45% at 88% -4%, rgba(var(--cm-brand-rgb), .62), transparent 70%),
		radial-gradient(40% 35% at 8% 4%, rgba(var(--cm-brand-rgb), .26), transparent 72%),
		radial-gradient(70% 40% at 45% 112%, rgba(var(--cm-accent-rgb), .18), transparent 70%),
		var(--cm-ink); }
.cm .cm-night::after { content: ""; position: absolute; inset: 0; opacity: .14; mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cm .cm-night-beams { position: absolute; left: -30%; right: -30%; top: -6%; height: 120%; transform-origin: 72% 0; mix-blend-mode: screen; filter: blur(3px);
	background: conic-gradient(from 150deg at 72% -4%, transparent 0deg, rgba(255,255,255,.08) 5deg, transparent 11deg, transparent 19deg, rgba(255,255,255,.055) 24deg, transparent 30deg, transparent 37deg, rgba(var(--cm-accent-rgb), .07) 41deg, transparent 47deg, transparent 55deg, rgba(255,255,255,.045) 59deg, transparent 65deg);
	animation: cm-sway 16s ease-in-out infinite alternate; }
.cm .cm-night-haze { position: absolute; left: 10%; bottom: -12%; width: 80%; height: 55%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .1), transparent); filter: blur(24px); animation: cm-drift 20s ease-in-out infinite alternate; }
@keyframes cm-sway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes cm-drift { from { transform: translateX(-6%); opacity: .7; } to { transform: translateX(8%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cm .cm-night-beams, .cm .cm-night-haze { animation: none; } }

@media (max-width: 860px) {
	.cm .cm-signin { grid-template-columns: 1fr; min-height: 0; border-radius: 22px; }
	.cm .cm-signin-side { min-height: 250px; padding: 22px 22px 26px; gap: 20px; }
	.cm .cm-signin-side-heading { font-size: 36px; }
	.cm .cm-signin-side-text { font-size: 15.5px; }
	.cm .cm-signin-main { padding: 28px 16px 32px; }
}
@media (max-width: 480px) {
	.cm .cm-signin { margin-left: -4px; margin-right: -4px; }
	.cm .cm-signin-side { min-height: 210px; }
	.cm .cm-signin-side-heading { font-size: 30px; }
}
@media (max-width: 860px) {
	.cm .cm-signin-side-logo { max-height: 34px; max-width: 140px; }
}

/* 1.9 — "Get the church app" card in the portal */
.cm .cm-app-promo { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; padding: 16px 18px; border-radius: 18px; color: #fff; text-decoration: none;
	background: radial-gradient(90% 140% at 100% 0%, rgba(var(--cm-brand-rgb), .65), transparent 62%), var(--cm-ink); }
.cm .cm-app-promo img { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.cm .cm-app-promo > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cm .cm-app-promo strong { font-weight: 600; font-size: 16.5px; }
.cm .cm-app-promo small { font-size: 13.5px; color: rgba(255,255,255,.78); line-height: 1.4; }
.cm .cm-app-promo-go { font-size: 22px; color: var(--cm-lime); }
.cm .cm-app-promo:hover { box-shadow: var(--cm-e2); }

/* ------------------------------------------------------------------ */
/* Bible reading ([cm_reading_plan] and the member portal)             */
/* ------------------------------------------------------------------ */
.cm .cm-reading-plan + .cm-reading-plan { margin-top: 22px; }
.cm .cm-reading-title { margin: 0 0 6px; font-family: var(--cm-sans); font-weight: 600; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; letter-spacing: -.015em; color: var(--cm-ink); }
.cm .cm-meta--series { color: var(--cm-verm); margin-bottom: 8px; }
.cm .cm-reading-desc { margin: 0 0 16px; color: var(--cm-ink-2); max-width: 62ch; }
.cm .cm-reading-progress { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.cm .cm-reading-progress .cm-progress { flex: 1; max-width: 320px; height: 8px; }
.cm .cm-reading-progress .cm-muted { font-size: 14px; white-space: nowrap; }
.cm .cm-reading-week { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--cm-line); }
.cm .cm-reading-day { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; margin: 0; padding: 14px 4px; border-bottom: 1px solid var(--cm-line); }
.cm .cm-reading-when { font: 500 12px/1.3 var(--cm-mono); letter-spacing: .1em; color: var(--cm-ink-2); }
.cm .cm-reading-when b { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--cm-lime); color: var(--cm-ink); font-weight: 500; font-size: 10.5px; letter-spacing: .12em; }
.cm .cm-reading-what { font-size: 17px; font-weight: 500; line-height: 1.4; }
.cm .cm-reading-what .cm-link { font-weight: 600; }
.cm .cm-reading-what .cm-sep { color: var(--cm-ink-3); margin-right: 2px; }
.cm .cm-reading-day.is-today { position: relative; background: linear-gradient(90deg, rgba(var(--cm-accent-rgb), .22), rgba(var(--cm-accent-rgb), 0) 80%); border-radius: 12px; border-bottom-color: transparent; padding-left: 14px; padding-right: 14px; margin: 4px 0; }
.cm .cm-reading-day.is-today .cm-reading-when { color: var(--cm-ink); }
.cm .cm-reading-day.is-past:not(.is-done) .cm-reading-when { color: var(--cm-ink-3); }
.cm .cm-reading-day.is-done .cm-reading-what .cm-link { color: var(--cm-ink-2); }
.cm .cm-reading-day.is-empty { display: block; color: var(--cm-ink-2); }
.cm .cm-reading-tick { margin: 0; }
.cm .cm-tick { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border: 1.5px solid var(--cm-line-2); border-radius: 999px; background: var(--cm-surface); color: var(--cm-ink); font: 500 14px/1 var(--cm-sans); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.cm .cm-tick .cm-icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; border: 1.5px solid var(--cm-line-2); box-sizing: border-box; stroke-width: 3; color: transparent; }
.cm .cm-tick:hover { border-color: var(--cm-ink); }
.cm .cm-tick.is-on { background: var(--cm-ink); border-color: var(--cm-ink); color: #fff; }
.cm .cm-tick.is-on .cm-icon { background: var(--cm-lime); border-color: var(--cm-lime); color: var(--cm-ink); }
.cm .cm-tick:focus-visible { outline: 2px solid var(--cm-focus); outline-offset: 2px; }
.cm .cm-reading-catch { margin: 18px 0 6px; padding: 14px 18px; border-radius: 14px; background: var(--cm-paper); }
.cm .cm-reading-catch summary { cursor: pointer; font-weight: 600; }
.cm .cm-reading-catch p { margin: 8px 0 10px; font-size: 14px; }
.cm .cm-reading-catch .cm-reading-week { border-top-color: var(--cm-line-2); }
.cm .cm-reading-foot { margin: 14px 0 0; font-size: 14px; color: var(--cm-ink-2); }
.cm .cm-note-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cm-ink); color: var(--cm-lime); }
.cm .cm-note-icon.is-done { background: rgba(13, 16, 21, .12); color: var(--cm-ink); }
.cm .cm-note-icon .cm-icon { width: 22px; height: 22px; }
@media (max-width: 600px) {
	.cm .cm-reading-day { grid-template-columns: minmax(0, 1fr) auto; }
	.cm .cm-reading-when { grid-column: 1 / -1; }
	.cm .cm-reading-what { font-size: 16px; }
	.cm .cm-tick span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.cm .cm-tick { padding: 0 10px; }
}
.cm .cm-card.cm-reading-plan { padding: clamp(20px, 4vw, 34px); }
.cm .cm-card.cm-reading-plan .cm-reading-week { margin-left: -4px; margin-right: -4px; }

/* Create an account */
.cm .cm-signin-main > .cm-auth--signup { max-width: 460px; }
.cm .cm-choice { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.cm .cm-choice legend { padding: 0; margin: 0 0 8px; font-weight: 500; font-size: 15px; color: var(--cm-ink); }
.cm .cm-choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cm .cm-choice-opt { position: relative; display: block; cursor: pointer; }
.cm .cm-choice-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cm .cm-choice-opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--cm-line-2); border-radius: var(--cm-r-field); text-align: center; font-size: 14.5px; font-weight: 500; line-height: 1.25; transition: border-color .15s, background .15s, box-shadow .15s; }
.cm .cm-choice-opt:hover span { border-color: var(--cm-ink-2); }
.cm .cm-choice-opt input:checked + span { border-color: var(--cm-ink); background: var(--cm-paper); box-shadow: inset 0 0 0 1px var(--cm-ink); }
.cm .cm-choice-opt input:focus-visible + span { outline: 2px solid var(--cm-focus); outline-offset: 2px; }
.cm .cm-choice.is-error .cm-choice-opt span { border-color: var(--cm-red); }
.cm .cm-small { font-size: 13px; }
.cm .cm-auth-note { margin: 12px 0 0; text-align: center; }
.cm .cm-auth-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 14px; border-radius: 16px; background: var(--cm-lime); color: var(--cm-ink); }
.cm .cm-auth-icon .cm-icon { width: 26px; height: 26px; }
@media (max-width: 380px) { .cm .cm-choice-row { grid-template-columns: 1fr; } }

/* This week: book + sermon, ring */
.cm .cm-week-extras { display: grid; gap: 10px; margin: 16px 0 6px; }
.cm .cm-week-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--cm-line); border-radius: 16px; background: var(--cm-surface); }
.cm .cm-week-item.is-done .cm-week-body strong { color: var(--cm-ink-2); }
.cm .cm-week-thumb { flex: none; display: grid; place-items: center; width: 48px; height: 64px; border-radius: 8px; background: var(--cm-ink) center / cover no-repeat; color: #fff; box-shadow: 0 6px 14px -8px rgba(13, 16, 21, .5); }
.cm .cm-week-thumb.is-plain { background: radial-gradient(120% 90% at 100% 0%, rgba(var(--cm-brand-rgb), .75), transparent 62%), var(--cm-ink); }
.cm .cm-week-thumb.is-sermon { width: 48px; height: 48px; border-radius: 50%; background: var(--cm-verm); }
.cm .cm-week-thumb .cm-icon { width: 22px; height: 22px; }
.cm .cm-week-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm .cm-week-body strong { font-size: 17px; font-weight: 600; line-height: 1.3; }
.cm .cm-week-body .cm-muted { font-size: 14px; }
.cm .cm-week-body .cm-link { align-self: flex-start; margin-top: 4px; font-size: 14.5px; }
.cm .cm-week-score { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; background: var(--cm-paper); }
.cm .cm-week-score > span { display: flex; flex-direction: column; }
.cm .cm-week-score.is-done { background: var(--cm-lime); }
.cm .cm-ring { flex: none; color: var(--cm-ink); }
.cm .cm-ring circle { stroke: var(--cm-line-2); }
.cm .cm-ring circle.is-on { stroke: var(--cm-verm); }
.cm .cm-week-score.is-done .cm-ring circle.is-on { stroke: var(--cm-ink); }
@media (max-width: 600px) { .cm .cm-week-item { flex-wrap: wrap; } .cm .cm-week-item .cm-reading-tick { margin-left: 62px; } }

/* Library */
.cm .cm-books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cm .cm-book { display: flex; gap: 16px; margin: 0; padding: 16px; border: 1px solid var(--cm-line); border-radius: 18px; background: var(--cm-surface); }
.cm .cm-book-cover { flex: none; display: grid; place-items: center; width: 92px; height: 128px; border-radius: 8px; background: var(--cm-ink) center / cover no-repeat; color: #fff; overflow: hidden; box-shadow: 0 10px 22px -12px rgba(13, 16, 21, .6); }
.cm .cm-book-cover.is-plain { background: radial-gradient(120% 90% at 100% 0%, rgba(var(--cm-brand-rgb), .75), transparent 62%), var(--cm-ink); }
.cm .cm-book-cover.is-plain span { padding: 8px; font-weight: 600; font-size: 13px; line-height: 1.25; text-align: center; }
.cm .cm-book-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cm .cm-book-title { font-size: 18px; font-weight: 600; line-height: 1.25; }
.cm .cm-book-desc { font-size: 14px; color: var(--cm-ink-2); line-height: 1.45; }
.cm .cm-book-prog { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; }
.cm .cm-book-prog .cm-progress { flex: 1; height: 6px; }
.cm .cm-book-actions { margin-top: auto; padding-top: 10px; }
@media (max-width: 400px) { .cm .cm-books { grid-template-columns: 1fr; } .cm .cm-book-cover { width: 74px; height: 102px; } }
@media (min-width: 700px) { .cm .cm-tabs { flex-wrap: wrap; column-gap: 24px; overflow: visible; } }
@media (max-width: 699px) { .cm .cm-tabs { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 36px; } }
