/* A church's public page (/c/<slug>), the rules page, the printable flyers, and the page that sells the package
   (/church-community). Built on community.css. */
.cs-body { --cm-band-from: #1f5f8b; --cm-band-to: #17466a; --cm-band-ink: #fff; --cm-band-soft: #cfe3f2; --cm-band-line: #ffffff59; --cm-band-hover: #ffffff26; }
.cs-body .site-header { position: static; background: linear-gradient(160deg, var(--cm-band-from), var(--cm-band-to)); color: var(--cm-band-ink); border-bottom: 0; }
/* The owner's look at a page that is not published yet: a plain band that stays at the top. */
.cs-preview { position: sticky; top: 0; z-index: 30; margin: 0; padding: 12px 16px; text-align: center; font-weight: 700; background: var(--cm-warm); color: var(--cm-warm-ink); border-bottom: 1px solid var(--cm-warm-line); }
.cs-hero { max-width: 760px; margin: 0 auto; padding: 44px 20px 40px; display: grid; justify-items: start; gap: 22px; }
.cs-hero-words { min-width: 0; }
.cs-logo { --cm-plate-size: 112px; box-shadow: 0 6px 20px var(--cm-toast-shadow); }
.cs-hero .cm-eyebrow { color: var(--cm-band-soft); font-size: 1rem; }
.cs-hero h1 { --cm-name-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin-top: 4px; }
@media (max-width: 520px) { .cs-hero { padding: 32px 18px 30px; } .cs-logo { --cm-plate-size: 84px; } }
.cs-tagline { font-size: 1.2rem; color: var(--cm-band-ink); margin-top: 10px; max-width: 38ch; }
.cs-main #cs-page { display: grid; gap: 16px; }
.cs-nav { max-width: 760px; margin: 0 auto; padding: 0 20px 14px; }
.cs-nav-links { display: flex; flex-wrap: wrap; gap: 6px 8px; }
/* "Menu" is only for a narrow screen (church-site-menu.js): wider screens show the links as they are. */
.cs-menu { display: none; }
@media (max-width: 640px) {
  .cs-nav { padding: 0 18px 16px; }
  .cs-menu { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 16px; border: 1px solid var(--cm-band-line); border-radius: 12px; background: var(--cm-band-hover); color: var(--cm-band-ink); font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
  .cs-menu:hover, .cs-menu:focus-visible { background: var(--cm-band-line); }
  .cs-menu::after { content: ""; margin-left: auto; flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
  .cs-nav.cs-open .cs-menu::after { transform: translateY(2px) rotate(-135deg); }
  .cs-menu-page { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--cm-band-soft); }
  .cs-menu-page:not(:empty)::before { content: "· "; }
  .cs-nav-links { display: none; }
  .cs-nav.cs-open .cs-nav-links { display: grid; gap: 6px; margin-top: 8px; }
  .cs-nav.cs-open .cs-nav-links a { border-radius: 12px; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .cs-menu::after { transition: none; } }
.cs-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; color: var(--cm-band-ink); font-weight: 700; text-decoration: none; border: 1px solid var(--cm-band-line); }
.cs-nav a:hover, .cs-nav a:focus-visible { background: var(--cm-band-hover); }
.cs-nav a.cs-on { background: var(--cm-band-ink); color: var(--cm-band-from); border-color: var(--cm-band-ink); }
.cs-give { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; padding: 8px 22px; border-radius: 999px; background: var(--cm-band-ink); color: var(--cm-band-from); font-weight: 800; text-decoration: none; }
.cs-give:hover { background: var(--cm-band-soft); }
#cs-extra h2 { font-size: 1.5rem; margin-bottom: 8px; }
#cs-extra-body p { margin: 0 0 12px; font-size: 1.08rem; overflow-wrap: anywhere; }
/* A link in running text: the padding makes it tall enough to tap without pushing the lines apart. */
#cs-extra-body a { color: var(--cm-accent); padding-block: 11px; font-weight: 700; }
.cs-main #cs-events-card { display: grid; gap: 12px; }
.cs-big { font-size: 1.15rem; }
.cs-members { background: var(--cm-accent-soft); border-color: var(--cm-accent-line); }
.cs-main .cm-button { text-decoration: none; }
#cs-phone, #cs-email { display: inline-block; padding: 10px 0; font-weight: 600; }
.ct-main a { font-weight: 600; }
/* The rules page's bar: the site's logo and name back to the home page, and the way back for someone who came from
   their community. It lines up with the hero's words below it. */
.ct-bar { max-width: 760px; margin: 0 auto; padding: 14px 20px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ct-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--cm-band-ink); font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.ct-brand img { flex: 0 0 auto; border-radius: 8px; background: #fff; padding: 2px; }
.ct-brand:hover span, .ct-brand:focus-visible span { text-decoration: underline; }
.ct-bar + .cs-hero { padding-top: 28px; }
@media (max-width: 520px) { .ct-bar { padding: 12px 18px 0; } .ct-bar + .cs-hero { padding-top: 22px; } }
/* The rules page's way back, for someone who came from their community. */
.ct-back { margin: 0; }
.ct-back[hidden] { display: none; }
.ct-back a { display: inline-block; padding: 8px 14px; border: 1px solid var(--cm-band-line); border-radius: 999px; color: var(--cm-band-ink); font-weight: 600; text-decoration: none; }
.ct-back a:hover, .ct-back a:focus-visible { background: var(--cm-band-hover); }

/* ---- the page that sells the package (/church-community) */
.cc-body {
  --cm-paper: #edf4f9;
  --cm-ink: #1c2b3a;
  --cm-soft: #506477;
  --cm-line: #dbe6ee;
  --cm-accent: #1f5f8b;
  --cm-accent-soft: #e6f0f7;
  --cc-dark: #123a59;
  --cc-cream: #f9dfab;
  background: #f6f8fa;
}
.cc-body .site-header { position: static; border-bottom: 0; color: #fff; background: var(--cc-dark); }
.cc-bar { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cc-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; text-decoration: none; min-height: 44px; }
.cc-brand span { font-weight: 500; color: #cee3f4; }
.cc-nav { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.cc-navlink { color: #fff; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.cc-start { text-decoration: none; }
.cc-body .site-header .cc-start, .cc-band .cc-start { background: var(--cc-cream); color: #263849; border-color: var(--cc-cream); }
.cc-body .cc-start:hover { filter: brightness(.94); }
.cc-big { min-height: 56px; padding: 14px 28px; font-size: 1.12rem; border-radius: 12px; }
.cc-hero { max-width: 1120px; margin: 0 auto; padding: 40px 20px 38px; display: grid; gap: 28px; align-items: center; }
.cc-hero-words { display: grid; gap: 18px; }
.cc-eyebrow { font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; font-size: 0.86rem; color: #cee3f4; }
.cc-eyebrow.dark { color: var(--cm-accent); }
.cc-hero h1 { font: 400 clamp(2.55rem, 6vw, 4.65rem)/1.02 Georgia, serif; letter-spacing: -.04em; max-width: 13ch; }
.cc-lead { font-size: 1.12rem; color: #e2eef8; max-width: 44ch; }
.cc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.cc-price-link { color: #fff; display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.cc-price-note { color: #e2eef8; font-size: .9375rem; }
.cc-price-note strong { color: #fff; }
.cc-hero-shot { display: grid; min-width: 0; align-items: center; border-radius: 18px; background: #285b7f; padding: clamp(10px, 2vw, 24px); }
.cc-app-shot { overflow: hidden; border-radius: 10px; border: 1px solid #dbe6ee; box-shadow: 0 12px 24px #12283ca6; }
.cc-app-shot img { display: block; width: 100%; height: auto; }
.cc-phone { width: min(300px, 100%); overflow: hidden; border-radius: 18px; border: 1px solid var(--cm-line); background: #fff; box-shadow: 0 17px 36px #16365023; flex: 0 0 auto; }
.cc-phone img { display: block; width: 100%; height: auto; }
.cc-main { max-width: 1120px; margin: 0 auto; padding: 56px 20px 40px; display: grid; gap: 72px; }
.cc-section { display: grid; gap: 16px; }
.cc-section h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.cc-sub { font-size: 1.12rem; color: var(--cm-soft); max-width: 60ch; }
.cc-tiles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cc-tiles li { background: #fff; border: 1px solid var(--cm-line); border-radius: 16px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.cc-tiles h3 { margin: 0; font-size: 1.12rem; }
.cc-tiles p { color: var(--cm-soft); }
.cc-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--cm-accent-soft); color: var(--cm-accent); display: grid; place-items: center; }
.cc-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-row { align-items: center; gap: 28px; justify-items: center; padding-top: 36px; border-top: 1px solid var(--cm-line); }
.cc-row-words { display: grid; gap: 14px; max-width: 56ch; justify-self: start; }
.cc-row-words p, .cc-row-words li { font-size: 1.08rem; }
.cc-pair { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.cc-pair .cc-phone { width: min(240px, 60vw); }
.cc-flyer { width: min(250px, 62vw); height: auto; border-radius: 8px; border: 1px solid var(--cm-line); box-shadow: 0 14px 34px rgba(15, 34, 51, 0.16); transform: rotate(2deg); background: #fff; }
.cc-steps { margin: 0; padding-left: 24px; display: grid; gap: 12px; font-size: 1.08rem; }
.cc-pricing { justify-items: center; }
.cc-price-card { width: min(680px, 100%); background: #fff; border: 2px solid var(--cm-accent); border-radius: 22px; padding: 32px 26px; display: grid; gap: 16px; text-align: center; justify-items: center; box-shadow: 0 18px 44px rgba(31, 95, 139, 0.14); }
.cc-dollar { font-size: 1.9em; color: var(--cm-accent); letter-spacing: -0.03em; }
.cc-sizes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); width: 100%; }
.cc-sizes li { background: var(--cm-paper); border-radius: 14px; padding: 14px 10px; display: grid; gap: 2px; }
.cc-sizes strong { font-size: 1.05rem; }
.cc-sizes span { color: var(--cm-soft); }
.cc-faq-grid { display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cc-faq-grid div { background: #fff; border: 1px solid var(--cm-line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 6px; }
.cc-faq-grid h3 { margin: 0; }
.cc-faq a, .cc-row-words > p > a:not(.cm-primary) { font-weight: 600; }
.cc-band { background: var(--cc-dark); color: #fff; border-radius: 22px; padding: 44px 24px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.cc-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 0; }
@media (min-width: 900px) {
  .cc-hero { grid-template-columns: .95fr 1.05fr; gap: 48px; padding-block: 48px 60px; }
  .cc-main { padding-top: 64px; gap: 76px; }
  .cc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .cc-row.flip .cc-row-words { order: 2; }
}
@media (max-width: 420px) {
  .cc-bar { padding: 10px 14px; }
  .cc-brand span { display: none; }
  .cc-big { width: 100%; }
  .cc-faq-grid, .cc-tiles { grid-template-columns: minmax(0, 1fr); }
}

/* ---- flyers (community-flyer.html): one printed page */
.fl-body .site-header { position: static; background: none; border: 0; max-width: 8.5in; margin: 0 auto; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fl-sheet { width: min(8.5in, 100% - 24px); min-height: 10.2in; margin: 0 auto 32px; background: #fff; border: 1px solid var(--cm-line); border-radius: 6px; padding: 0.7in 0.75in; display: grid; gap: 22px; align-content: start; text-align: center; box-shadow: 0 2px 12px rgba(28, 43, 58, 0.08); }
.fl-church { font-size: 1.25rem; font-weight: 700; color: var(--cm-accent); letter-spacing: 0.02em; }
.fl-title { font-size: clamp(2.1rem, 6vw, 3.3rem); line-height: 1.08; letter-spacing: -0.015em; }
.fl-lead { font-size: 1.35rem; max-width: 30ch; margin: 0 auto; }
.fl-when { font-size: 1.6rem; font-weight: 700; }
.fl-where { font-size: 1.35rem; }
.fl-image { display: block; width: min(100%, 5.8in); height: 2.1in; object-fit: cover; border-radius: 8px; margin: 0 auto; }
.fl-points { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; font-size: 1.15rem; text-align: left; max-width: 34ch; }
.fl-points li { padding-left: 30px; position: relative; }
.fl-points li::before { content: "✓"; position: absolute; left: 0; color: var(--cm-accent); font-weight: 800; }
.fl-qr { width: 2.7in; max-width: 70%; margin: 0 auto; }
.fl-qr svg { display: block; width: 100%; height: auto; fill: #000; }
.fl-how { font-size: 1.15rem; font-weight: 600; }
.fl-small { font-size: 0.92rem; color: var(--cm-soft); word-break: break-all; }
.fl-foot { margin-top: auto; font-size: 0.9rem; color: var(--cm-soft); }
@media print {
  @page { size: letter; margin: 0.4in; }
  body { background: #fff; }
  .fl-body .site-header, .cm-toast, .cm-skip { display: none !important; }
  .fl-sheet { border: 0; box-shadow: none; margin: 0; width: 100%; min-height: 0; padding: 0.3in 0.4in; }
}
@media screen and (max-width: 600px) {
  .fl-sheet { padding: 28px 18px; min-height: 0; gap: 16px; }
  .fl-title { font-size: 1.9rem; }
  .fl-lead, .fl-where { font-size: 1.15rem; }
  .fl-when { font-size: 1.3rem; }
  .fl-points { font-size: 1.05rem; }
}
/* The site's own sections, made with "Tell us what to change" (church-site.js section): words, a list, one of the
   community's website pictures, buttons. On the home page each is a card; on a further page, a part of the page. */
.cs-added h2 { margin-bottom: 8px; }
.cs-added p, .cs-block p { overflow-wrap: anywhere; }
.cs-block { margin-top: 18px; }
.cs-block h3 { font-size: 1.2rem; margin: 0 0 8px; }
.cs-list { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 1.08rem; }
.cs-list a, .cs-added p a { color: var(--cm-accent); font-weight: 700; padding-block: 11px; }
.cs-picture { margin: 0; }
.cs-picture img { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: cover; border-radius: 12px; background: var(--cm-photo-bg); }
.cs-picture figcaption { margin-top: 8px; color: var(--cm-soft); }
.cs-buttons { flex-wrap: wrap; }
.cs-buttons .cm-button { min-height: 44px; display: inline-flex; align-items: center; }
/* A gap the owner still has to fill, shown only in the before/after frames on the owner's page (never published). */
.cs-blank { display: inline-block; padding: 0 8px; border-radius: 6px; border: 2px dashed var(--cm-warm-line); background: var(--cm-warm); color: var(--cm-warm-ink); font-weight: 700; }
