/* Church website themes. Loaded after style.css on public church pages.
   --brand comes from the church's chosen color; each theme sets type and surfaces around it. */
@font-face { font-family: 'Caslon'; src: url(/static/fonts/libre-caslon-text-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Caslon'; src: url(/static/fonts/libre-caslon-text-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Caslon'; src: url(/static/fonts/libre-caslon-text-latin-400-italic.woff2) format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'Caslon Display'; src: url(/static/fonts/libre-caslon-display-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/static/fonts/public-sans-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

.church { --display: 'Caslon Display', 'Caslon', Georgia, serif; --serif: 'Caslon', Georgia, serif; --sans: 'Public Sans', system-ui, sans-serif;
  --paper: #fdfcfa; --panel: #f3f1ec; --ink: #1d1f24; --muted: #5f6168; --line: #e3dfd6; --on-brand: #fff;
  font-family: var(--sans); background: var(--paper); color: var(--ink); }
.church.t-heritage { --paper: #faf6ef; --panel: #f0e9dc; --line: #e2d8c6; --ink: #2a2118; --muted: #6b5d4d; }
.church.t-fresh { --display: 'Public Sans', system-ui, sans-serif; --serif: 'Public Sans', system-ui, sans-serif; --paper: #ffffff; --panel: #f2f5f8; --line: #e1e6ec; }
.church h1, .church h2, .church h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.005em; }
.church.t-fresh h1, .church.t-fresh h2 { font-weight: 800; letter-spacing: -.02em; }
.church .prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; }
.church.t-fresh .prose { line-height: 1.65; }

/* header */
.ch-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.ch-head .inner { max-width: 1160px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.ch-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.ch-brand img { height: 48px; width: auto; }
.ch-brand .nm { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.ch-brand .sub { display: block; font-family: var(--sans); font-size: .78rem; color: var(--muted); font-weight: 500; }
.ch-nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); font-size: .95rem; font-weight: 500; }
.ch-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.ch-nav a:hover, .ch-nav a.on { border-color: var(--brand); }
.ch-nav .give { background: var(--brand); color: var(--on-brand); padding: 9px 18px; border-radius: 999px; border: 0; }
.ch-nav details { position: relative; }
.ch-nav summary { list-style: none; cursor: pointer; padding: 6px 0; }
.ch-nav summary::-webkit-details-marker { display: none; }
.ch-nav summary::after { content: ' ▾'; font-size: .75em; color: var(--muted); }
.ch-nav .more { position: absolute; right: 0; top: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-width: 210px; box-shadow: 0 12px 30px rgba(20,20,30,.12); display: grid; }
.ch-nav .more a { padding: 8px 12px; border: 0; border-radius: 6px; }
.ch-nav .more a:hover { background: var(--panel); }
.ch-menu { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--ink); }
@media (max-width: 1100px) {
  .ch-menu { display: block; }
  .ch-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px; }
  .ch-nav.open { display: flex; }
  .ch-nav a, .ch-nav summary { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ch-nav .more { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .ch-nav .give { text-align: center; margin-top: 12px; }
  /* The open menu scrolls on its own so every item (and the languages) can be reached on a phone. */
  .ch-nav { max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  .ch-nav .lang-switch { order: -1; margin: 6px 0 10px; }
  .ch-nav .lang-switch > a, .ch-nav .lang-switch summary { padding: 10px 16px; border-bottom: 0; }
  .ch-menu { white-space: nowrap; word-break: keep-all; }
}

/* hero */
.ch-hero { position: relative; color: #fff; min-height: 560px; display: grid; align-items: end; overflow: hidden; background: var(--brand); }
.ch-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ch-hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,20,.15) 0%, rgba(10,12,20,.25) 40%, rgba(10,12,20,.78) 100%); }
.ch-hero .pattern { position: absolute; inset: 0; opacity: .9; }
.ch-hero .inner { position: relative; max-width: 1160px; width: 100%; margin: 0 auto; padding: 120px 24px 56px; }
.ch-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin: 0 0 18px; max-width: 14ch; }
.church.t-fresh .ch-hero h1 { font-weight: 800; letter-spacing: -.03em; }
.ch-hero p.tag { font-family: var(--serif); font-size: 1.3rem; max-width: 40ch; margin: 0 0 28px; opacity: .95; }
.ch-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ch-btn { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; border: 2px solid transparent; }
.ch-btn.solid { background: #fff; color: var(--ink); }
.ch-btn.line { border-color: rgba(255,255,255,.8); color: #fff; }
.ch-btn.brand { background: var(--brand); color: var(--on-brand); }
.ch-btn.ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }

/* service-time strip */
.ch-times { background: var(--ink); color: #fff; }
.ch-times .inner { max-width: 1160px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; }
.ch-times .t { display: flex; flex-direction: column; }
.ch-times .t b { font-family: var(--serif); font-size: 1.25rem; }
.ch-times .t span { font-size: .85rem; opacity: .75; }
.ch-times .where { margin-left: auto; font-size: .95rem; opacity: .9; }
.ch-times .where a { color: #fff; }

/* sections */
.ch-sec { padding: 88px 0; }
.ch-sec.panel { background: var(--panel); }
.ch-sec .inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ch-sec h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 14px; line-height: 1.12; }
.ch-sec .lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 36px; }
.ch-welcome { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.ch-welcome .photo { aspect-ratio: 4/5; border-radius: 4px; background: var(--panel) center/cover; position: relative; }
.ch-welcome .photo.none { display: grid; place-items: center; font-family: var(--display); font-size: 6rem; color: var(--brand); }
.ch-welcome .sig { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-top: 18px; }
.ch-expect { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.ch-expect > div { padding: 28px 28px 0 0; }
.ch-expect > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.ch-expect h3 { font-size: 1.25rem; margin: 0 0 8px; }
.ch-expect p { margin: 0; color: var(--muted); }
.ch-sermon { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.ch-sermon .meta { color: var(--muted); }
.ch-sermon h3 { font-size: 1.8rem; margin: 6px 0 10px; }
.ch-events { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ch-event { display: grid; grid-template-columns: 84px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.ch-event .date { text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 8px 0; background: var(--paper); }
.ch-event .date b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.ch-event .date span { font-size: .8rem; color: var(--muted); }
.ch-event h3 { margin: 0 0 4px; font-size: 1.25rem; }
.ch-event p { margin: 0; color: var(--muted); font-size: .95rem; }
.ch-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ch-post { text-decoration: none; color: inherit; }
.ch-post .img { aspect-ratio: 16/10; background: var(--panel) center/cover; border-radius: 4px; margin-bottom: 14px; }
.ch-post h3 { font-size: 1.3rem; margin: 0 0 6px; }
.ch-post p { color: var(--muted); margin: 0; }
.ch-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ch-tools a { background: var(--paper); padding: 28px; text-decoration: none; color: inherit; }
.ch-tools a:hover { background: var(--panel); }
.ch-tools h3 { margin: 0 0 6px; font-size: 1.2rem; }
.ch-tools p { margin: 0; color: var(--muted); font-size: .95rem; }
.ch-ministries .prose ul { columns: 2; gap: 40px; padding-left: 1.1em; }
.ch-cta { background: var(--brand); color: var(--on-brand); text-align: center; }
.ch-cta h2 { color: inherit; }
.ch-cta p { font-size: 1.15rem; opacity: .9; margin: 0 auto 28px; max-width: 50ch; }
.ch-page-head { background: var(--panel); border-bottom: 1px solid var(--line); }
.ch-page-head .inner { max-width: 1160px; margin: 0 auto; padding: 56px 24px 40px; }
.ch-page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.church.t-fresh .ch-page-head h1 { font-weight: 800; }

/* footer */
.ch-foot { background: #15171c; color: #c9cbd1; padding: 64px 0 28px; font-size: .95rem; }
.ch-foot .inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.ch-foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.ch-foot h4 { color: #fff; font-family: var(--serif); font-size: 1.1rem; margin: 0 0 12px; font-weight: 700; }
.ch-foot a { color: #fff; }
.ch-foot ul { list-style: none; padding: 0; margin: 0; } .ch-foot li { margin: 6px 0; }
.ch-foot input { background: #22252c; border-color: #3a3e48; color: #fff; }
.ch-foot .legal { border-top: 1px solid #2c2f37; margin-top: 44px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .85rem; color: #8d909a; }
.ch-foot .legal a { color: #b8bbc4; }

@media (max-width: 900px) {
  .ch-welcome, .ch-sermon { grid-template-columns: 1fr; gap: 32px; }
  .ch-welcome .photo { max-width: 360px; }
  .ch-expect { grid-template-columns: 1fr; }
  .ch-expect > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .ch-posts { grid-template-columns: 1fr; }
  .ch-tools { grid-template-columns: 1fr 1fr; }
  .ch-foot .cols { grid-template-columns: 1fr 1fr; }
  .ch-hero { min-height: 480px; }
  .ch-sec { padding: 64px 0; }
  .ch-times .where { margin-left: 0; }
}
@media (max-width: 560px) { .ch-tools, .ch-foot .cols { grid-template-columns: 1fr; } .ch-event { grid-template-columns: 64px 1fr; } .ch-event .go { display: none; } }
.church a:focus-visible, .church button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.church main > .wrap, .church main > article.wrap { padding-top: 40px; padding-bottom: 56px; }
.church .card { background: var(--paper); border-color: var(--line); border-radius: 6px; }
.church .btn { background: var(--brand); border-color: var(--brand); border-radius: 999px; }
.church .btn.alt { background: var(--paper); color: var(--ink); border-color: var(--line); }
.church table td, .church table th { border-color: var(--line); }
/* inner pages: content shares the header's left edge */
.church main > .wrap, .church main > article.wrap { max-width: 1160px; padding-left: 24px; padding-right: 24px; }
.church main > .wrap.narrow > *, .church main > article.wrap.narrow > * { max-width: 720px; }
.church main > .wrap.center > * { margin-left: auto; margin-right: auto; }

.demo-bar{background:#1E2A47;color:#fff;font:500 14px/1.3 "Public Sans",system-ui,sans-serif}
.demo-bar .inner{max-width:1180px;margin:0 auto;padding:9px 20px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.demo-bar a{color:#fff;text-decoration:none;font-weight:700}
.demo-bar a:hover,.demo-bar a:focus-visible{text-decoration:underline}
.demo-bar span{opacity:.8;flex:1}
.demo-bar .go{background:#fff;color:#1E2A47;padding:5px 12px;border-radius:4px}
@media (max-width:600px){.demo-bar span{display:none}.demo-bar .inner{justify-content:space-between}}

.ch-welcome .photo.join { display: block; font-family: inherit; font-size: 1rem; color: inherit; padding: 36px 32px; aspect-ratio: auto; background: var(--panel); border-radius: 6px; }
.ch-welcome .photo.join h3 { font-family: var(--display); font-size: 1.8rem; margin: 0 0 14px; color: var(--brand); }
.ch-welcome .photo.join p { margin: 0 0 12px; } .ch-welcome .photo.join .addr { color: var(--muted, #555); }
.visit-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; line-height: 1.6; }
.expect { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin-bottom: 28px; }
.expect h3 { margin: 0 0 6px; font-size: 1.15rem; } .expect p { margin: 0; }
.kids-card { margin: 10px 0 28px; }
@media (max-width: 640px) { .ch-ministries .prose ul { columns: 1; } }
.ch-head .call { font-weight: 700; text-decoration: none; white-space: nowrap; }
.ch-head .call { display: none; } @media (max-width: 1100px) { .ch-head .call { display: inline-block; margin-left: auto; margin-right: 12px; padding: 6px 12px; border: 1px solid currentColor; border-radius: 99px; font-size: .9rem; color: inherit; } }
[hidden] { display: none !important; }
.push-bar{display:flex;gap:12px;align-items:center;justify-content:center;padding:10px 16px;background:var(--panel,#f3f1ea);font-size:.95rem}.push-bar .ch-btn{padding:6px 14px}.push-bar .push-x{background:none;border:0;font-size:1.4rem;cursor:pointer;line-height:1}

/* Menu labels never break mid-word (Korean/Chinese wrapped one character per line). */
.ch-nav a, .ch-nav summary { white-space: nowrap; word-break: keep-all; }
.ch-nav .lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; }
.ch-nav .lang-switch > a, .ch-nav .lang-switch summary { padding: 5px 12px; border: 0; border-radius: 99px; font-size: .9rem; color: var(--muted); }
.ch-nav .lang-switch > a:hover, .ch-nav .lang-switch summary:hover { color: var(--ink); background: var(--panel); }
.ch-nav .lang-switch > a.on, .ch-nav .lang-switch summary.on { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.ch-nav .lang-switch summary.on::after { color: inherit; }
.ch-nav details.langs .more { min-width: 170px; right: 0; left: auto; }
.ch-nav details.langs .more a.on { font-weight: 700; }
@media (max-width: 1100px) { .ch-nav .lang-switch { margin: 8px 0; align-self: flex-start; flex-wrap: wrap; border-radius: 14px; } }

.ch-brand { flex-shrink: 1; min-width: 0; }
/* The church name wraps only between words; it keeps enough room that a logo beside it can't squeeze it to a letter per line. */
.ch-brand .nm { overflow-wrap: break-word; min-width: min(9.5em, 42vw); }
.ch-brand img { flex-shrink: 0; max-width: 34vw; object-fit: contain; }
/* On wide screens, when the name and the full menu can't share one row, the menu drops to its own row instead of overlapping. */
@media (min-width: 1101px) { .ch-head .inner { flex-wrap: wrap; row-gap: 6px; } .ch-nav { flex-shrink: 0; margin-left: auto; } }
/* Phone tap targets */
@media (pointer: coarse) { .demo-bar a { display: inline-block; padding: 10px 0; } .ch-foot a { display: inline-block; padding: 8px 0; } }
.ch-foot .btn, .ch-foot button { background: #fff !important; color: #16171b !important; }
.ch-hero .pattern { width: 100%; height: 100%; }
