/* 柱石华人圣经教会 site styles.
   Layout follows City Light (photo hero, dark worship band, values list) with Olive Tree's "一起…" photo rows. Single light theme by choice. */
:root {
  --ink: #2A2E35;
  --muted: #646B76;
  --slate: #1B3A5B;   /* logo navy */
  --night: #13283F;
  --yellow: #F4C542;
  --soft: #F4F5F7;
  --white: #FFFFFF;
  --line: #E3E5E9;
  --font: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
html[lang="zh-Hant"] { --font: "Noto Serif TC", "Songti TC", "PMingLiU", serif; }
/* English uses a Latin font first: the Chinese fonts draw ’ and “ ” as wide full-width marks */
html[lang="en"] { --font: "Noto Serif", "Noto Serif SC", Georgia, serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 40; padding: 10px 20px; background: var(--yellow); color: var(--night); }
.skip-link:focus { top: 8px; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 300 16.5px/1.9 var(--font); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }
.top :focus-visible, footer :focus-visible, .hero :focus-visible { outline-color: var(--yellow); }
.wrap {
  max-width: 1140px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}


/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--night); color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark { color: var(--white); width: 34px; height: 40px; flex: none; }
.logo b { display: block; font-weight: 500; font-size: 1.02rem; line-height: 1.2; letter-spacing: 0.02em; }
.logo small { display: block; font-size: 0.72rem; line-height: 1.3; opacity: 0.7; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 0.9rem; }
.nav a { text-decoration: none; opacity: 0.88; }
.nav a:hover { opacity: 1; color: var(--yellow); }
.nav a[aria-current="page"], .nav a[aria-current="location"] { color: var(--yellow); opacity: 1; }
.langs { display: flex; align-items: center; font-size: 0.85rem; }
.nav .langs a { padding: 4px 7px; opacity: 0.6; border-bottom: 0; text-decoration: none; }
.nav .langs a + a { border-left: 1px solid rgba(255,255,255,.3); }
.nav .langs a:hover { opacity: 1; color: var(--yellow); }
.nav .langs a[aria-current] { opacity: 1; font-weight: 500; color: var(--yellow); }
.menu { display: none; background: none; border: 0; color: var(--white); font: 500 0.95rem var(--font); padding: 8px 0; cursor: pointer; }
@media (max-width: 1100px) {
  .menu.enhanced { display: block; }
  .nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); padding: 4px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.enhanced { display: none; max-height: calc(100dvh - 64px); overflow-y: auto; }
  .nav.enhanced.open { display: flex; }
  .top .wrap:has(.nav:not(.enhanced)) { height: auto; min-height: 64px; flex-wrap: wrap; padding-block: 12px; }
  .nav:not(.enhanced) { position: static; width: 100%; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .langs { margin-top: 14px; font-size: 1rem; }
  .nav .langs a:first-child { padding-left: 0; }
}

/* Footer */
footer { background: var(--night); color: #C9CDD3; font-size: 0.95rem; }
footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 36px 44px; }
footer .fname { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
footer .fname h4 { margin: 0; }
footer .flogo { width: 27px; height: 32px; flex: none; color: var(--white); }
footer h4 { margin: 0 0 10px; color: var(--white); font-size: 1rem; font-weight: 500; }
footer a { text-decoration: none; }
footer a:hover { color: var(--yellow); }
footer .social { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer .credit { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 0.8rem; opacity: .6; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; gap: 28px; } }


/* An icon visually; the localized button name remains available to screen readers. */
.menu { width: 44px; height: 44px; padding: 11px; flex: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu[aria-expanded="true"] .menu-icon { background: transparent; }
.menu[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

/* Compact welcome: the same original text and photo, in the approved shorter layout. */
.hero { position: relative; min-height: 340px; display: flex; align-items: center; color: var(--white); background: var(--night); overflow: hidden; }
.hero picture { position: absolute; inset: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 80%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,20,32,.88), rgba(10,20,32,.65) 52%, rgba(10,20,32,.15)); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-block: 38px; }
.hero h1 { max-width: 780px; font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.3; letter-spacing: .01em; }
.hero p { font-size: 1rem; margin-top: 12px; opacity: .95; }
.btn { display: inline-block; margin-top: 20px; background: var(--yellow); color: var(--night); text-decoration: none;
  font-weight: 500; padding: 11px 23px; border-radius: 999px; }
.btn.dark { background: var(--night); color: var(--white); }
.btn.outline { background: var(--white); color: var(--night); box-shadow: inset 0 0 0 2px var(--yellow); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 24px; }
.hero-actions .btn { margin-top: 0; }
.hero .btn.outline { background: rgba(19,40,63,.35); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); }

/* Visitor information and the entrance photo stay visible together. */
.band { background: #F5F2EB; color: var(--ink); }
.sunday-wrap { max-width: 1100px; padding-block: 44px 24px; }
.sunday-overview { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 28px; align-items: center; }
.sunday-copy { min-width: 0; }
.sunday-eyebrow { color: var(--slate); font-size: .8rem; letter-spacing: .08em; margin-bottom: 8px; }
.band h2 { font-size: clamp(1.65rem, 2.4vw, 1.9rem); line-height: 1.45; font-weight: 500; }
.sunday-intro { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.sunday-facts { display: grid; gap: 18px; margin-top: 26px; }
.sunday-fact { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; align-items: start; }
.sunday-time { font-size: 1.2rem; line-height: 1.6; font-weight: 500; }
.sunday-address { font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.sunday-note { font-size: .85rem; line-height: 1.7; color: var(--muted); margin-top: 4px; }
/* Each icon is centered within the first line, independent of wrapped copy. */
.sunday-icon { display: grid; place-items: center; color: var(--slate); }
.sunday-fact-time .sunday-icon { height: 1.92rem; }
.sunday-fact-location .sunday-icon { height: 1.7rem; }
.sunday-icon svg { display: block; width: 20px; height: 20px; }
.band a { color: var(--slate); text-underline-offset: 4px; }
.sunday-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 24px; }
.sunday-actions .btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 0; color: var(--white); font-size: .95rem; }
.sunday-actions .btn.outline-dark { background: var(--white); color: var(--night); box-shadow: inset 0 0 0 2px var(--night); }
.sunday-address a { color: inherit; text-underline-offset: 4px; }
.sunday-photo picture { display: block; }
.sunday-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.sunday-resources { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; }
.sunday-resources>p { color: var(--muted); font-size: .8rem; }
.sunday-resource-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; }
.sunday-resource-links a { padding-block: 4px; }
@media (max-width: 820px) {
  .sunday-wrap { padding-block: 32px 22px; }
  .sunday-overview { grid-template-columns: 1fr; gap: 26px; }
  .sunday-resources { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 22px; }
  .sunday-resource-links { gap: 8px 22px; }
}
@media (max-width: 760px) {
  .hero { min-height: 320px; }
  .hero::before { background: rgba(10,20,32,.74); }
  .hero .wrap { padding-block: 32px; }
  .hero h1 { font-size: clamp(1.7rem, 6.5vw, 2rem); }
  .hero-actions { gap: 12px; margin-top: 22px; }
}

/* Weekly gatherings: four columns on wide screens, two on tablets, one on phones. */
.week { background: var(--soft); padding-block: 36px; }
.week h2, .together h2, .values h2 { font-size: 1.75rem; font-weight: 500; text-align: left; margin-bottom: 24px; }
.intro { color: var(--muted); text-align: center; max-width: 34em; margin: -16px auto 36px; }
.boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.box { min-width: 0; border: 0; border-left: 1px solid var(--line); padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 4px; }
.box:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.box h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 8px; }
.box p { color: var(--muted); }
.box p b { color: var(--ink); font-weight: 500; }
.week-more { display: inline-block; margin-top: 28px; font-weight: 500; text-decoration: none; color: var(--slate); }
.week-more:hover { text-decoration: underline; }
@media (min-width: 761px) and (max-width: 1100px) {
  .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box:nth-child(n) { border-left: 1px solid var(--line); padding-left: 24px; }
  .box:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .boxes { grid-template-columns: 1fr; gap: 20px; }
  .box:nth-child(n) { border-left: 0; padding: 0; }
  .box + .box { padding-top: 20px; border-top: 1px solid var(--line); }
}

/* Verse band (City Light mission band, with our verse) */
.verse { background: var(--slate); color: var(--white); text-align: center; }
.verse .wrap { padding-block: 40px; }
.verse p.v { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 400; line-height: 1.6; letter-spacing: 0.06em; }
.verse p.r { margin-top: 14px; color: var(--yellow); letter-spacing: 0.1em; }
.verse p.n { margin-top: 18px; opacity: .75; font-size: 0.95rem; }

/* Photo strip (City Light carousel) */
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 8px; scrollbar-width: none; }
.strip picture { flex: none; }
.strip img { height: 240px; width: auto; flex: none; scroll-snap-align: start; object-fit: cover; }
.photo-open { position: relative; flex: none; padding: 0; border: 0; background: var(--night); scroll-snap-align: start; }
.photo-open:enabled { cursor: zoom-in; }
.photo-open:focus-visible { outline-offset: -4px; outline-color: var(--yellow); }
.photo-expand { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(19,40,63,.8); color: white; font: 24px/32px sans-serif; pointer-events: none; }
.photo-open:disabled .photo-expand { display: none; }
.photo-viewer-open { overflow: hidden; }
.photo-viewer { width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); border: 0; background: rgba(10,20,32,.97); color: white; }
.photo-viewer::backdrop { background: var(--night); }
.photo-viewer[open] { display: flex; flex-direction: column; gap: 12px; }
.photo-toolbar { display: flex; justify-content: space-between; align-items: center; flex: none; font-variant-numeric: tabular-nums; }
.photo-viewer button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; flex: none; border: 1px solid #7F93AB; border-radius: 50%; color: white; background: transparent; font: 28px/1 sans-serif; cursor: pointer; }
.photo-viewer button:hover { background: var(--slate); }
.photo-viewer :focus-visible { outline-color: var(--yellow); }
.photo-figure { margin: 0; min-height: 0; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.photo-stage { min-height: 0; flex: 1; display: flex; align-items: center; justify-content: center; }
.photo-stage picture { display: contents; }
.photo-stage img { width: 100%; height: 100%; object-fit: contain; }
.photo-navigation { flex: none; display: flex; gap: 24px; justify-content: center; }
@media (max-width: 640px) { .strip img { height: 180px; } }

/* Values (City Light) */
.values { background: var(--soft); padding-block: 44px; }
.values h2, .values .more { text-align: center; }
.vlist { width: fit-content; max-width: 100%; margin: 0 auto; display: grid; gap: 22px; }
.vitem { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; }
.vitem .num { font-size: 2rem; font-weight: 400; color: #7F93AB; line-height: 1.2; }
.vitem h3 { font-size: 1.2rem; font-weight: 500; }
.values .more { margin-top: 28px; }
.values .more .btn { margin-top: 0; }


/* Dated events are separate from recurring gatherings. */
.events { padding-block: 40px; }
.section-heading { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.section-heading>div:first-child { flex: 1 1 300px; }
.section-heading h2 { font-size: 1.75rem; font-weight: 500; margin-bottom: 8px; }
.section-heading p { color: var(--muted); }
.event-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 44px) / 3); gap: 22px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 4px 16px; scroll-padding-inline: 4px; }
.event-card { scroll-snap-align: start; }
.event-controls { display: flex; gap: 8px; flex: none; margin-left: auto; }
.event-controls button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--slate); font: inherit; cursor: pointer; }
.event-controls button:disabled { opacity: .4; cursor: default; }
.event-controls button:hover:not(:disabled) { background: var(--soft); }
.event-card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.event-card-header { position: relative; min-height: 155px; background: linear-gradient(135deg, #e9eef3, #f5f2eb); }
.event-image { display: block; }
.event-image img { width: 100%; height: 155px; object-fit: cover; }
.event-date-badge { position: absolute; top: 14px; left: 14px; min-width: 72px; padding: 9px 12px 11px; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; background: var(--white); color: var(--slate); box-shadow: 0 2px 12px rgba(19,40,63,.12); }
.event-date-badge span { font-size: .72rem; font-weight: 500; line-height: 1.5; }
.event-date-badge strong { font-size: 2rem; line-height: 1.15; font-weight: 500; }
.event-content { padding: 20px; display: flex; flex: 1; flex-direction: column; }
.sample-label { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.event-content h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 12px; }
.event-content h3 a { text-decoration: none; }
.event-content h3 a:hover, .event-link:hover { text-decoration: underline; }
.event-meta { font-size: .85rem; }
.event-summary { color: var(--muted); margin: 12px 0 18px; font-size: .95rem; }
.event-link { align-self: flex-start; margin-top: auto; color: var(--slate); font-weight: 500; text-decoration: none; }
.event-page { padding-block: 32px 72px; }
.event-page .back { margin: 0 0 28px; }
.event-heading { max-width: 48em; margin-bottom: 36px; }
.event-heading h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; margin: 8px 0 16px; line-height: 1.4; }
.event-heading>p:last-child { color: var(--muted); }
.event-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.event-side { grid-column: 2; grid-row: 1; min-width: 0; }
.event-info { background: var(--soft); border-radius: 10px; padding: 26px; }
.event-about { margin-top: 28px; padding-inline: 26px; }
.event-about h2 { font-weight: 500; font-size: 1.3rem; margin-bottom: 14px; }
.event-about p { font-size: 1.05rem; line-height: 1.85; color: var(--ink); }
.event-info h2, .event-description h2 { font-weight: 500; font-size: 1.3rem; }
.event-info dl { margin: 18px 0; }
.event-info dt { color: var(--muted); font-size: .85rem; margin-top: 18px; }
.event-info dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.event-question { display: block; margin-top: 18px; color: var(--slate); }
.event-description { grid-column: 1; grid-row: 1; }
.event-description img { display: block; width: 100%; height: auto; border-radius: 10px; }
.event-description h2 { margin-bottom: 14px; }
.event-ended { color: var(--slate); font-weight: 500; }
@media (max-width: 760px) {
  .events { padding-block: 32px; }
  .event-layout { grid-template-columns: 1fr; }
  .event-grid { grid-auto-columns: 88%; gap: 16px; }
  .event-side, .event-description { grid-column: auto; grid-row: auto; }
  .event-layout { gap: 30px; }
}


/* 信仰告白: shared page heading, followed by topics and scripture references. */
.wrap.tbody { padding-block: 56px 80px; }
.tlist, .task { max-width: 760px; }
.tlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 36px; }
.tlist h2 { font-size: 1.3rem; font-weight: 500; margin: 0 0 8px; }
.tlist .refs { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.task { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.task p { color: var(--muted); }
.task .btn { margin-top: 18px; }
.back { display: inline-block; margin-top: 28px; color: var(--slate); text-decoration: none; }
.back:hover { text-decoration: underline; }


/* Contact form and delivery states. */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px 64px; padding-block: 44px 56px; }
.contact-layout h2 { font-size: 1.45rem; font-weight: 500; margin-bottom: 10px; }
.contact-form-section>h2 { line-height: 1.6; margin-bottom: 20px; }
.contact-required { color: var(--muted); font-size: .85rem; }
.contact-required { margin-bottom: 16px; }
.contact-context { margin-bottom: 18px; overflow-wrap: anywhere; font-size: .95rem; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; min-width: 0; }
.contact-field label { font-weight: 500; font-size: .95rem; }
.contact-field input, .contact-field select, .contact-field textarea { width: 100%; min-width: 0; border: 1px solid #AEB7C2; border-radius: 6px; padding: 11px 12px; background: var(--white); color: var(--ink); font: 400 1rem/1.6 var(--font); }
.contact-field textarea { resize: vertical; min-height: 180px; }
.contact-message-hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: .8rem; color: var(--muted); }
.contact-message-hint small { font-size: inherit; }
.contact-send { font: 500 1rem/1.5 var(--font); border: 0; cursor: pointer; }
.contact-send:hover { background: var(--slate); }
.contact-sidebar { min-width: 0; }
.contact-email-block { background: #F5F2EB; padding: 28px; border-radius: 8px; }
.contact-email { display: block; width: fit-content; margin-top: 4px; color: var(--slate); overflow-wrap: anywhere; text-underline-offset: 4px; font-weight: 500; }
.contact-visit-block { margin-top: 30px; padding-inline: 28px; }
.contact-visit-block p { color: var(--ink); font-size: 1.05rem; }
.contact-visit-block .contact-service-time { color: var(--ink); font-weight: 500; }
.contact-visit-block h3 { font-size: .95rem; font-weight: 500; margin-top: 20px; }
.contact-visit-block .contact-address a { color: inherit; text-underline-offset: 4px; }
.contact-back { grid-column: 1 / -1; width: fit-content; color: var(--slate); text-decoration: none; }
.contact-back:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; padding-block: 30px 40px; }
  .contact-fields { grid-template-columns: 1fr; gap: 0; }
  .contact-email-block { padding: 24px; }
  .contact-visit-block { padding-inline: 24px; }
}


.contact-send:disabled { opacity: .6; cursor: not-allowed; }
.contact-status { margin-block: 16px; overflow-wrap: anywhere; }
.contact-status:empty { display: none; }
.contact-status-error { color: #8b2525; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.contact-retry { display: block; margin-bottom: 12px; font: 500 1rem/1.5 var(--font); cursor: pointer; border: 1px solid var(--slate); background: var(--white); color: var(--slate); }
.contact-retry:disabled { opacity: .65; cursor: default; }
#contact-verification { min-height: 65px; max-width: 100%; overflow-x: auto; }
.contact-retry[hidden] { display: none; }

/* Giving: readable instructions, an original QR asset, and no on-site payment collection. */
/* One body-text style for the whole Giving page: same size, line height and black colour. */
.giving-lead p, .giving-zelle-content>p, .giving-method p, .giving-method li, .giving-statements p { font-size: 1.15rem; line-height: 1.85; color: var(--ink); }
.giving-lead { padding-top: 42px; }
.giving-lead p { max-width: 48rem; }
.giving-lead p + p { margin-top: 16px; }
.giving-methods { padding-block: 42px; }
.giving-methods>h2, .giving-statements h2 { font-size: 1.65rem; font-weight: 500; margin-bottom: 24px; }
.giving-zelle { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; background: #F5F2EB; border-radius: 12px; padding: 30px 36px; }
.giving-zelle h3 { font-size: 1.75rem; font-weight: 500; margin: 0 0 14px; }
.giving-zelle-content>p { max-width: 31em; }
.giving-recipient { margin: 24px 0 0; }
.giving-recipient dt { color: var(--muted); font-size: 1rem; margin-top: 14px; }
.giving-recipient dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.giving-email { user-select: all; }
.giving-copy { font: 500 .95rem/1.5 var(--font); border: 0; cursor: pointer; }
.giving-copy:hover { background: var(--slate); }
.giving-copy-status { min-height: 1.9em; margin-top: 8px; font-size: 1rem; }
.giving-qr { width: 100%; max-width: 340px; margin: 0; justify-self: center; text-align: center; }
.giving-qr>a:first-child { display: block; }
.giving-qr img { width: 100%; height: auto; border-radius: 8px; background: var(--white); }
.giving-other-methods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; margin-top: 24px; }
.giving-method { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.giving-method h3 { font-weight: 500; font-size: 1.3rem; margin-bottom: 12px; }
/* The payee name reads like the Zelle recipient details: black, same size as the Zelle email. */
.giving-method .giving-payee { color: var(--ink); font-size: 1.25rem; font-weight: 500; margin-top: 12px; overflow-wrap: anywhere; }
.giving-stock { grid-column: 2; grid-row: 1 / span 2; }
.giving-stock ol { padding-left: 1.4em; margin: 18px 0; }
.giving-stock li { padding-left: 6px; margin-top: 14px; }
.giving-stock a { color: var(--slate); text-underline-offset: 4px; overflow-wrap: anywhere; }
.giving-stock .giving-year-end { border-top: 1px solid var(--line); padding-top: 16px; }
.giving-method-note { margin-top: 16px; }
.giving-statements { background: var(--soft); padding-block: 32px; }
.giving-statements .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; }
.giving-statements h2 { margin-bottom: 10px; font-size: 1.4rem; }
.giving-statements p { max-width: 42em; }
.giving-statements .btn { margin-top: 0; white-space: nowrap; flex: none; }
@media (max-width: 760px) {
  .giving-methods { padding-block: 30px; }
  .giving-lead { padding-top: 30px; }
  .giving-lead p, .giving-zelle-content>p, .giving-method p, .giving-method li, .giving-statements p { font-size: 1.05rem; }
  .giving-zelle { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .giving-qr { max-width: 340px; }
  .giving-other-methods { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
  .giving-stock { grid-column: auto; grid-row: auto; }
  .giving-method { padding: 24px; }
  .giving-statements .wrap { flex-direction: column; align-items: flex-start; }
}

/* About: church introduction, sourced pastor details, and the relocated Church Life rows. */
.about-mission { display: grid; gap: 24px; padding-block: 42px; }
.about-mission>div { max-width: 48rem; }
.about-mission .about-lead { margin-bottom: 18px; }
.about-mission h2, .about-pastor>h2, .about-page .together>h2 { font-size: 1.75rem; font-weight: 500; }
.about-pastor>h2 { margin-bottom: 24px; }
.about-page .together>h2 { margin-bottom: 24px; }
/* One body-text style for the whole About page: same size, line height and colour. */
.about-mission p, .pastor-bio, .core-values-list p, .row p { font-size: 1.15rem; line-height: 1.85; color: var(--ink); }
.about-text-link { display: inline-block; color: var(--slate); font-weight: 500; font-size: 1rem; text-underline-offset: 5px; }
.about-mission .about-text-link { margin-top: 20px; }
.pastor-card { display: grid; grid-template-columns: 315px minmax(0, 1fr); gap: 36px; align-items: start; padding: 28px; background: var(--soft); border-radius: 12px; }
.pastor-portrait { max-width: 315px; }
.pastor-portrait img { width: 100%; height: auto; border-radius: 8px; }
.pastor-content { padding-block: 8px; }
.pastor-content h3 { font-size: clamp(1.65rem, 3vw, 2rem); line-height: 1.4; font-weight: 500; }
.pastor-content>p { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.pastor-bio { margin-top: 20px; }
.pastor-bio p + p { margin-top: 16px; }
.pastor-content>.pastor-contact { color: var(--ink); font-size: 1rem; }
.pastor-contact { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-top: 22px; }
.pastor-contact .pastor-email { font-size: 1rem; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .about-mission { gap: 16px; padding-block: 30px; }
  .about-mission p, .pastor-bio, .core-values-list p, .row p { font-size: 1.05rem; }
  .pastor-card { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .pastor-portrait { width: 100%; justify-self: center; }
  .pastor-content { padding: 0; }
}

/* Church life rows (Olive Tree) */
.together { padding-block: 40px 0; }
.together { padding-bottom: 56px; }
.rows { display: grid; gap: 32px; }
.row { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: center; }
.row:nth-child(even) { grid-template-columns: 1.15fr .85fr; }
.row:nth-child(even) .pic { order: 2; }
.row .pic { min-width: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; }
.row .pic picture { display: block; width: 100%; height: 100%; }
.row .pic img { width: 100%; height: 100%; object-fit: cover; }
.row h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: 10px; }
.row p { max-width: 36em; }
@media (max-width: 760px) {
  .rows { gap: 28px; }
  .row, .row:nth-child(even) { grid-template-columns: 1fr; gap: 18px; }
  .row:nth-child(even) .pic { order: 0; }
}


/* Official core values share their titles and copy with the homepage summaries. */
.about-mission p + p { margin-top: 16px; }
.about-values { padding-block: 42px 56px; scroll-margin-top: 88px; }
.about-values > h2 { font-size: 1.75rem; font-weight: 500; margin-bottom: 24px; }
.core-values-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.core-values-list li { border-top: 1px solid var(--line); padding-top: 20px; }
.core-values-list h3 { font-size: 1.3rem; line-height: 1.5; font-weight: 500; margin-bottom: 12px; }
.core-values-list .refs { margin-top: 12px; color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) {
  .core-values-list { grid-template-columns: 1fr; gap: 24px; }
  .about-values { padding-block: 30px 0; }
}

/* Shared page headings keep About, Beliefs, Giving and Contact visually consistent. */
.page-heading { background: var(--night); color: var(--white); text-align: left; padding-block: 40px; }
.page-heading h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; line-height: 1.4; }
.page-heading p { max-width: 48em; margin-top: 12px; color: #D6DEE7; font-size: 1rem; }
@media (max-width: 760px) { .page-heading { padding-block: 28px; } }


/* Extend the existing church page headings, navy buttons and cream Sunday band. */
/* Short archives fill the viewport so the footer leaves no white strip below it. */
body:has(> .sermons-page) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > .sermons-page { flex: 1 0 auto; }
body:has(> .sermons-page) > :is(.top, footer, .sermon-preview-bar) { flex-shrink: 0; }
.sermon-current { background: #F5F2EB; padding-block: 30px; }
.sermon-columns { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1.35fr); gap: 32px 56px; }
.sermons-page h2, .bulletin-page h2 { font-size: 1.7rem; font-weight: 500; }
.sermons-page h3 { font-size: 1.55rem; font-weight: 500; line-height: 1.5; }
.sermon-date, .sermon-meta, .sermon-status { color: var(--muted); font-size: .95rem; }
.sermon-date { margin-bottom: 8px; }
.sermon-meta { margin-top: 8px; }
.sermon-status { margin-top: 12px; }
.sermon-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 18px; }
.sermon-actions .btn, .sermon-recording-band .btn { margin-top: 0; }
.sermon-text-link { color: var(--slate); font-weight: 500; font-size: .95rem; text-underline-offset: 5px; }
.sermon-history { padding-block: 42px; }
.sermon-history-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.sermon-history-heading>p { color: var(--muted); font-size: .9rem; }
.sermon-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; }
.sermon-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.sermon-pagination li>a, .sermon-pagination li>span { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 6px 10px; border-radius: 999px; color: var(--slate); text-decoration: none; }
.sermon-pagination [aria-current] { background: var(--night); color: var(--white); }
.sermon-pagination>p { color: var(--muted); font-size: .9rem; }
.sermon-row { display: grid; grid-template-columns: 240px minmax(0,1fr); align-items: center; gap: 32px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.sermon-row h3 a { text-decoration: none; }
.sermon-thumbnail { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden; border-radius: 10px; background: var(--night); color: var(--white); text-decoration: none; }
.sermon-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.sermon-sample-thumbnail { font-size: .85rem; }
.sermon-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(19,40,63,.88); color: white; font-size: 18px; }
.sermon-sample-thumbnail .sermon-play { position: static; transform: none; background: rgba(255,255,255,.14); }
.sermon-no-recording { background: #F5F2EB; color: var(--muted); padding: 20px; text-align: center; font-size: .9rem; }
.sermon-channel, .sermon-not-ready, .sermon-no-bulletin { padding-block: 24px; }
.sermon-empty { padding-block: 24px; max-width: 44em; }
.sermon-empty p { color: var(--muted); margin-top: 14px; }
.sermon-empty a { display: inline-block; margin-top: 18px; }
.sermon-detail, .bulletin-content { padding-block: 30px 42px; }
.sermon-back { display: inline-block; margin-bottom: 28px; }
.bulletin-page .sermon-back { margin-bottom: 14px; }
.bulletin-heading .bulletin-date { margin-top: 4px; }
.bulletin-sermon { background: #F5F2EB; padding: clamp(18px, 3vw, 28px); margin-bottom: 26px; overflow-wrap: anywhere; }
.bulletin-sermon h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.35; }
.bulletin-sermon-details { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 12px 0 0; }
.bulletin-sermon-details div { min-width: 0; }
.bulletin-sermon-details dt { color: var(--muted); font-size: .85rem; }
.bulletin-sermon-details dd { margin: 0; }
.bulletin-section { padding-block: 14px 26px; overflow-wrap: anywhere; }
.bulletin-section + .bulletin-section { border-top: 1px solid var(--line); padding-top: 24px; }
.bulletin-program { list-style: none; margin: 0; padding: 0; }
.bulletin-program li { padding-block: 10px; }
.bulletin-program li + li { border-top: 1px solid var(--line); }
.bulletin-program li:first-child { padding-top: 0; }
.bulletin-program li:last-child { padding-bottom: 0; }
.bulletin-program small { display: block; color: var(--muted); font-size: .9rem; }
.bulletin-announcement + .bulletin-announcement { margin-top: 18px; }
.bulletin-announcement h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.5; margin-bottom: 4px; }
.bulletin-recording .sermon-status { margin-top: 0; }
.sermon-recording-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; }
.sermon-recording-band h2 { font-size: 1.4rem; font-weight: 500; }
.sermon-recording-band>div>p { color: var(--muted); font-size: .95rem; }
.sermon-video { aspect-ratio: 16/9; background: var(--night); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.sermon-video:not(:has(button:not([hidden]))):not(:has(iframe)) { display: none; }
.sermon-video button { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: var(--night); position: relative; cursor: pointer; }
.sermon-video button[hidden] { display: none; }
.sermon-video img { width: 100%; height: 100%; object-fit: cover; }
.sermon-play-caption { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(19,40,63,.92); color: var(--white); padding: 12px; font: 400 1rem/1.6 var(--font); }
.sermon-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.sermon-video-placeholder { background: #F5F2EB; border-radius: 10px; min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 36px; text-align: center; }
.sermon-video-placeholder h2 { font-size: 1.5rem; font-weight: 500; }
.sermon-video-placeholder p { max-width: 36em; color: var(--muted); }
.sermon-neighbors { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 28px; font-size: .9rem; color: var(--slate); }
.sermon-preview-bar { background: #F5F2EB; border-bottom: 1px solid var(--line); padding-block: 12px; color: var(--ink); font: 400 .9rem/1.6 var(--font); }
.sermon-preview-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.sermon-preview-bar a { color: var(--slate); text-underline-offset: 4px; padding-block: 4px; }
.sermon-preview-bar a[aria-current] { font-weight: 600; }
.sermon-preview-page-links { display: flex; flex-wrap: wrap; gap: 12px 20px; border-left: 1px solid var(--line); padding-left: 20px; }
.sermon-preview-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sermon-preview-picker select { max-width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px 32px 8px 12px; background: white; color: var(--ink); font: 400 1rem/1.5 var(--font); }
@media(max-width:760px) {
  .sermon-columns { grid-template-columns: 1fr; gap: 16px; }
  .bulletin-content { padding-block: 18px 28px; }
  .sermon-history { padding-block: 30px; }
  .sermon-row { grid-template-columns: 150px minmax(0,1fr); gap: 22px; }
  .sermon-row h3 { font-size: 1.3rem; }
  .sermon-history-heading { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sermon-recording-band { align-items: flex-start; flex-direction: column; }
  .sermon-video-placeholder { padding: 24px; }
}
@media(max-width:440px) { .sermon-row { grid-template-columns: 1fr; gap: 18px; } }
@media print {
  .bulletin-page .sermon-back, .sermon-preview-bar, body:has(.bulletin-page) .top, body:has(.bulletin-page) footer, .bulletin-recording { display: none; }
  .bulletin-page { color: black; font-size: 11pt; line-height: 1.45; }
  .bulletin-heading { background: white; color: black; padding-block: 0 8pt; }
  .bulletin-heading h1 { font-size: 20pt; }
  .bulletin-heading .bulletin-date { color: black; font-size: inherit; }
  .bulletin-content { padding-block: 0; }
  .bulletin-sermon { background: white; border-block: 1px solid var(--line); padding: 8pt 0; margin-bottom: 12pt; }
  .bulletin-sermon h2, .bulletin-section h2 { font-size: 15pt; }
  .bulletin-sermon-details { margin-top: 4pt; }
  .bulletin-section, .bulletin-section + .bulletin-section { display: block; padding-block: 0 10pt; border: 0; }
  .bulletin-section h2 { margin-bottom: 4pt; }
  .bulletin-announcement h3 { font-size: 12pt; }
  .bulletin-sermon, .bulletin-program li { break-inside: avoid; }
  .bulletin-section h2, .bulletin-announcement h3 { break-after: avoid; }
  .bulletin-program li { padding-block: 4pt; }
}

