/* 공동체 pages (tools/community_pages.py; board review/community/board-v1.png, approved 2026-11-25).
   One column of the site grid at the page margin; the type scale (13 15 17 18 26 56); spacing 8/16/24/40/64. */
main[data-page] .cm-top, main[data-page] .cm-hero, main[data-page] .cm-facts-sec, main[data-page] .cm-story, main[data-page] .cm-band, main[data-page] .cm-others {
  width: auto; max-width: none !important; margin-inline: var(--margin, 24px) !important; padding-inline: 0 !important; box-sizing: border-box; }

/* the six bubbles: the home page's photos, the current one ringed in navy */
.cm-bubbles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cm-bubbles a { display: grid; justify-items: center; gap: 8px; color: var(--ink-2, #33415C); text-decoration: none; }
.cm-bub { display: block; width: min(100%, 96px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--sand-2, #ECE7DC);
  box-shadow: 0 0 0 3px var(--sand, #F6F4EE), 0 0 0 4px var(--rule, rgba(11, 36, 71, .14)); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.cm-bub img { width: 100%; height: 100%; object-fit: cover; }
.cm-bn { font: 600 15px/1.3 var(--sans); white-space: nowrap; }
.cm-bubbles a:hover .cm-bub, .cm-bubbles a:focus-visible .cm-bub { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--sand, #F6F4EE), 0 0 0 5px var(--ink-3, #5B6B85); }
.cm-bubbles a[aria-current="page"] .cm-bub { box-shadow: 0 0 0 3px var(--sand, #F6F4EE), 0 0 0 6px var(--night, #0B2447); }
.cm-bubbles a[aria-current="page"] .cm-bn { color: var(--ink, #0B2447); font-weight: 700; }
/* craft-exception: web.focus-outline -- the ring is drawn on .cm-bub in the rule above */
.cm-bubbles a:focus-visible { outline: none; }
.cm-bubbles a:focus-visible .cm-bn { text-decoration: underline; text-underline-offset: 4px; }
.cm-top { padding-block: 24px 0 !important; }

/* hero: the name large, its facts and Instagram, a five-photo mosaic beside */
.cm-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; align-items: center; padding-block: 64px 40px !important; }
.cm-label { margin: 0 0 16px; display: inline-block; padding: 6px 10px; border-radius: 4px; background: var(--orange, #E07A00); color: #fff; font: 700 13px/1 var(--sans); letter-spacing: .12em; }
.cm-hero h1 { margin: 0; font: 700 56px/1.1 var(--sans); letter-spacing: -.03em; color: var(--ink, #0B2447); word-break: keep-all; }
.cm-when { margin: 16px 0 24px; font: 500 18px/1.5 var(--sans); color: var(--ink-2, #33415C); }
.cm-igs { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cm-ig { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 100vmax; box-shadow: inset 0 0 0 1px var(--ink, #0B2447);
  color: var(--ink, #0B2447); font: 600 15px/1 var(--sans); text-decoration: none; transition: background .2s, color .2s; }
.cm-ig svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.cm-ig svg .dot { fill: currentColor; stroke: none; }
.cm-ig:hover, .cm-ig:focus-visible { background: var(--night, #0B2447); color: #fff; }
.cm-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 2fr 1fr 1fr; gap: 8px; aspect-ratio: 4 / 3.6; }
.cm-mosaic .cm-ph:first-child { grid-column: 1 / -1; }
.cm-mosaic .cm-ph { display: block; overflow: hidden; border-radius: 8px; background: var(--sand-2, #ECE7DC); min-height: 0; }
.cm-mosaic .cm-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.cm-ph:hover img, .cm-ph:focus-visible img { transform: scale(1.03); }
.cm-ph:focus-visible { outline: 2px solid var(--orange, #E07A00); outline-offset: 2px; }

/* facts bar */
.cm-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--rule, rgba(11, 36, 71, .14)); border-radius: 8px; background: #fff; }
.cm-facts div { display: grid; gap: 4px; padding: 16px 24px; }
.cm-facts div + div { border-left: 1px solid var(--rule, rgba(11, 36, 71, .14)); }
.cm-facts dt { font: 600 13px/1.4 var(--sans); color: var(--orange-ink, #A85A00); }
.cm-facts dd { margin: 0; font: 600 17px/1.5 var(--sans); color: var(--ink, #0B2447); word-break: keep-all; }
.cm-facts small { display: block; font: 400 13px/1.5 var(--sans); color: var(--ink-3, #5B6B85); }

/* 함께한 시간: each event, its date and name, a justified photo row (natural widths, no tight crops) */
.cm-story { padding-block: 64px 40px !important; }
.cm-story > h2, .cm-others h2 { margin: 0 0 24px; font: 700 26px/1.3 var(--sans); letter-spacing: -.02em; color: var(--ink, #0B2447); }
.cm-ev { padding: 24px 0 40px; border-top: 1px solid var(--rule, rgba(11, 36, 71, .14)); }
.cm-ev header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 16px; }
.cm-ev-d { margin: 0; width: 100%; font: 600 13px/1.4 var(--sans); color: var(--orange-ink, #A85A00); }
.cm-ev h3 { margin: 0; font: 700 18px/1.4 var(--sans); color: var(--ink, #0B2447); }
.cm-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: 500 15px/1 var(--sans); color: var(--ink-2, #33415C); text-decoration: none; white-space: nowrap; }
.cm-more svg, .cm-band .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; transition: transform .2s; }
.cm-more:hover svg, .cm-more:focus-visible svg { transform: translateX(3px); }
.cm-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-row::after { content: ""; flex-grow: 999; }   /* the last line keeps natural widths instead of stretching */
.cm-row .cm-ph { flex: 1 1 auto; height: 200px; overflow: hidden; border-radius: 8px; background: var(--sand-2, #ECE7DC); }
.cm-row .cm-ph img { height: 100%; width: 100%; min-width: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }

/* first-visit band and the other communities */
.cm-band { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-block: 0 64px !important;
  padding: 24px 40px !important; border-radius: 8px; background: var(--night, #0B2447) !important; color: #fff; }
.cm-band p { margin: 0; font: 700 18px/1.4 var(--sans); color: #fff; word-break: keep-all; }
main .cm-band .btn { display: inline-flex !important; align-items: center; gap: 4px; min-height: 44px; padding: 0 20px !important; border-radius: 100vmax !important;
  background: #fff !important; color: var(--night, #0B2447) !important; font: 600 15px/1 var(--sans) !important; text-decoration: none; border: 0 !important; }
.cm-band .btn:hover svg, .cm-band .btn:focus-visible svg { transform: translateX(3px); }
.cm-others { padding-block: 0 64px !important; }

@media (max-width: 1100px) {
  .cm-hero { grid-template-columns: 1fr; padding-top: 40px !important; }
  .cm-row .cm-ph { height: 160px; }
}
@media (max-width: 760px) {
  .cm-bubbles { display: flex; overflow-x: auto; gap: 12px; margin-inline: calc(-1 * var(--margin, 16px)); padding: 8px var(--margin, 16px); scrollbar-width: none; }
  .cm-bubbles li { flex: 0 0 72px; }
  .cm-bub { width: 64px; }
  .cm-bn { font-size: 13px; }
  .cm-hero { padding-block: 24px !important; gap: 24px; }
  .cm-hero h1 { font-size: 36px; }
  .cm-when { font-size: 17px; margin: 8px 0 16px; }
  .cm-mosaic { aspect-ratio: 1 / 1.1; }
  .cm-facts { grid-template-columns: 1fr; }
  .cm-facts div + div { border-left: 0; border-top: 1px solid var(--rule, rgba(11, 36, 71, .14)); }
  .cm-facts div { padding: 16px; }
  .cm-story { padding-block: 40px 24px !important; }
  .cm-story > h2, .cm-others h2 { font-size: 18px; }
  .cm-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--margin, 16px)); padding: 0 var(--margin, 16px); scrollbar-width: none; scroll-snap-type: x mandatory; }
  .cm-row::after { display: none; }
  .cm-row .cm-ph { flex: 0 0 auto; height: 140px; scroll-snap-align: start; }
  .cm-row .cm-ph img { width: auto; min-width: 0; }
  .cm-band { padding: 24px !important; margin-bottom: 40px !important; }
}
@media (prefers-reduced-motion: reduce) { .cm-bub, .cm-ph img, .cm-more svg, .cm-band .btn svg, .cm-ig { transition: none; } }
/* one line per event: five photos on wide screens (four on tablets); the rest open in the viewer from "모두 보기" */
@media (min-width: 761px) {
  .cm-row { flex-wrap: nowrap; overflow: hidden; }
  .cm-row::after { display: none; }
  .cm-row .cm-ph { height: 180px; flex: 1 1 auto; min-width: 0; }
  .cm-row .cm-ph:nth-child(n+6) { display: none; }
}
@media (min-width: 761px) and (max-width: 1100px) { .cm-row .cm-ph:nth-child(n+5) { display: none; } .cm-row .cm-ph { height: 150px; } }
/* the sections are grid items of main: without this a photo strip widens its section and the page slides sideways */
main[data-page] > .cm-top, main[data-page] > .cm-hero, main[data-page] > .cm-story, main[data-page] > .cm-others, .cm-ev, .cm-row, .cm-hero > * { min-width: 0; }
/* each photo anchors its own screen-reader label (.vh is absolute): otherwise the label of a photo scrolled out of a strip
   is placed against the page and widens it */
.cm-ph { position: relative; }

/* first-visit band (owner 2026-11-25 "정렬이랑 디자인 슬롭"): its own padding (an older section rule zeroed it), a small
   orange question above the meeting line, the button centred on the same axis; stacks on phones */
main[data-page] .sec.cm-band { padding: 32px 40px !important; align-items: center; }
.cm-band-txt { display: grid; gap: 8px; min-width: 0; }
.cm-band .cm-band-k { margin: 0; font: 700 13px/1.4 var(--sans) !important; letter-spacing: .08em; color: var(--orange, #E07A00) !important; }
.cm-band .cm-band-t { margin: 0; font: 700 26px/1.3 var(--sans) !important; letter-spacing: -.02em; color: #fff; word-break: keep-all; }
@media (max-width: 760px) {
  main[data-page] .sec.cm-band { padding: 24px !important; flex-direction: column; align-items: flex-start; gap: 16px; }
  .cm-band .cm-band-t { font-size: 18px !important; }
}
/* bubbles: six even columns whenever they fit; a swipe row only on narrow phones */
@media (min-width: 520px) and (max-width: 760px) {
  .cm-bubbles { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; margin-inline: 0; padding: 8px 0; }
  .cm-bubbles li { flex: none; }
}
@media (max-width: 519px) { .cm-bubbles::after { content: ""; flex: 0 0 4px; } }

/* 처음 오셨나요 (owner 2026-11-25 "다른 디자인"): the home page's 다음 예배 line, not a box. A hairline, a small orange
   question, then one row: the time large, the day and place beside it, 오시는 길 at the end; the row is the link */
main[data-page] .cm-visit-sec { padding: 24px 0 64px !important; border-top: 1px solid var(--ink, #0B2447); }
.cm-visit-k { margin: 0 0 16px; font: 700 13px/1.4 var(--sans); letter-spacing: .08em; color: var(--orange-ink, #A85A00); }
.cm-visit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 40px; color: var(--ink, #0B2447); text-decoration: none; }
.cm-visit-time { font: 300 72px/1 var(--sans); letter-spacing: -.04em; white-space: nowrap; }
.cm-visit-where { display: grid; gap: 4px; }
.cm-visit-where b { font: 700 18px/1.4 var(--sans); }
.cm-visit-where small { font: 400 15px/1.5 var(--sans); color: var(--ink-3, #5B6B85); }
.cm-visit-go { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 100vmax; box-shadow: inset 0 0 0 1px var(--ink, #0B2447);
  font: 600 15px/1 var(--sans); white-space: nowrap; transition: background .2s, color .2s; }
.cm-visit-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; transition: transform .2s; }
.cm-visit:hover .cm-visit-go, .cm-visit:focus-visible .cm-visit-go { background: var(--night, #0B2447); color: #fff; }
.cm-visit:hover .cm-visit-go svg, .cm-visit:focus-visible .cm-visit-go svg { transform: translateX(3px); }
.cm-visit:focus-visible { outline: 2px solid var(--orange, #E07A00); outline-offset: 6px; border-radius: 4px; }
@media (max-width: 760px) {
  main[data-page] .cm-visit-sec { padding: 24px 0 40px !important; }
  .cm-visit { grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; }
  .cm-visit-time { font-size: 44px; }
  .cm-visit-go { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .cm-visit-go, .cm-visit-go svg { transition: none; } }
/* 처음 오셨나요 sits inside the page gutter like every other section (review 2026-11-25: it ran edge to edge, its text
   at the screen's left edge and its button cut off at the right) */
main[data-page] .sec.cm-visit-sec { width: auto; max-width: none !important; margin-inline: var(--margin, 24px) !important; padding-inline: 0 !important; box-sizing: border-box; }
