:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-soft: #f4efe6;
  --ink: #17231f;
  --muted: #52615d;
  --line: rgba(37, 95, 82, 0.14);
  --green: #255f52;
  --green-deep: #123c34;
  --green-soft: #dce8e2;
  --green-tint: rgba(37, 95, 82, 0.08);
  --green-shadow: rgba(18, 60, 52, 0.12);
  --gold: #b88a3d;
  --gold-soft: #eadcc0;
  --sky: #dce8e2;
  --shadow: 0 22px 55px var(--green-shadow);
  --max: 1160px;
  --font-body: "Zen Maru Gothic", "Noto Sans TC", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", Arial, sans-serif;
  --font-heading: "LXGW WenKai TC", "Noto Sans TC", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", Arial, sans-serif;
  --font-ui: "Nunito Sans", "Noto Sans TC", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--green-deep);
  accent-color: var(--green);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--green-deep);
  line-height: 1.75;
  min-height: 100vh;
}

.site-header,
main,
.site-footer {
  background: var(--bg);
}

html[lang="en"] {
  --font-body: "Source Sans 3", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-heading: "Manrope", "Source Sans 3", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-ui: "Manrope", "Source Sans 3", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.topbar,
.primary-nav,
.language-switch,
.eyebrow,
.section-kicker,
.online-label,
.button,
.footer-links,
.back-to-top {
  font-family: var(--font-ui);
}

.numeric-text {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--green-deep);
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.topbar-event {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.topbar-event span {
  white-space: nowrap;
}

.topbar-event span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-right: 10px;
  vertical-align: -0.12em;
  background: rgba(255, 255, 255, 0.28);
}

.topbar-event-detail {
  color: rgba(255, 255, 255, 0.78);
}

.topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(234, 220, 192, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.topbar-action:hover,
.topbar-action:focus-visible {
  border-color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-band {
  background: rgba(251, 250, 246, 0.96);
  backdrop-filter: blur(16px);
}

.nav-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(176px, 20vw, 260px);
  height: auto;
  display: block;
  filter: brightness(0) saturate(100%) invert(18%) sepia(20%) saturate(969%) hue-rotate(119deg) brightness(94%) contrast(93%);
}

.primary-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}

.primary-nav a {
  padding: 10px 8px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.active {
  color: var(--green);
  background: var(--green-tint);
}

.primary-nav a.active {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.language-switch button {
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.language-switch button.active {
  color: #fff;
  background: var(--green);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--green);
}

.hero {
  position: relative;
  min-height: calc(100vh - 118px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(rgba(18, 60, 52, 0.1), rgba(18, 60, 52, 0.1)),
    url("https://images.unsplash.com/photo-1507692049790-de58290a4334?auto=format&fit=crop&w=1800&q=82") center / cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 60, 52, 0.88) 0%, rgba(18, 60, 52, 0.6) 46%, rgba(18, 60, 52, 0.22) 100%),
    linear-gradient(0deg, rgba(18, 60, 52, 0.38), transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: clamp(80px, 12vw, 150px) 0 clamp(64px, 10vw, 112px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.message-panel,
.footer-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
}

.button-primary {
  border-color: rgba(18, 60, 52, 0.18);
  background: var(--gold);
  color: #18130a;
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--green-deep);
  background: #c99a4a;
  color: #18130a;
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
}

.button-outline {
  color: var(--green);
  border-color: var(--green);
}

.button-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  margin-right: 8px;
  fill: currentColor;
}

.youtube-button .button-icon {
  fill: #ff0000;
}

.button-icon-cutout {
  fill: #fff;
}

.button.full {
  width: 100%;
}

.welcome-band {
  background: var(--green);
  color: #fff;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: clamp(36px, 6vw, 64px) 0;
}

.welcome-grid .section-kicker,
.section-deep .section-kicker {
  color: var(--gold-soft);
}

.welcome-grid h2,
.section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.welcome-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.welcome-copy p + p {
  margin-top: 14px;
}

.local-keywords {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.local-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(234, 220, 192, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-tint {
  background: var(--surface-soft);
}

.section-deep {
  color: #fff;
  background:
    linear-gradient(rgba(18, 60, 52, 0.9), rgba(18, 60, 52, 0.9)),
    url("https://images.unsplash.com/photo-1511632765486-a01980e01a18?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.two-column,
.new-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.new-grid {
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
}

.section-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--sky);
}

.image-panel img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center;
}

.two-column .image-panel img {
  object-position: center 42%;
}

.image-panel.tall img {
  height: 520px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.section-heading.light p:last-child,
.section-heading.light h2 {
  color: #fff;
}

.card-grid,
.ministry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.ministry-grid article,
.contact-card {
  border-radius: 8px;
  padding: 26px;
}

.info-card {
  background: #fff;
  border: 1px solid rgba(37, 95, 82, 0.1);
  box-shadow: 0 16px 32px rgba(18, 60, 52, 0.08);
}

.card-media {
  overflow: hidden;
  margin: -8px -8px 20px;
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  background: var(--sky);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card h3,
.ministry-grid h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.info-card p,
.ministry-grid p {
  margin: 0 0 8px;
  color: var(--muted);
}

.service-time-highlight {
  font-family: var(--font-ui);
  margin: 2px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  color: var(--green) !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.ministry-grid article {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.ministry-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.step-list {
  display: grid;
  gap: 16px;
  margin: 26px 0;
}

.step-list div {
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: #fff;
  box-shadow: 0 14px 28px rgba(18, 60, 52, 0.07);
}

.step-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
}

.step-list p {
  margin: 0;
}

.text-link {
  color: var(--green);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.message-panel {
  justify-content: space-between;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.message-panel div {
  max-width: 680px;
}

.message-panel p:last-child {
  color: var(--muted);
}

.online-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.online-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.online-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green-tint);
  position: relative;
}

.online-card-icon svg {
  width: 30px;
  height: 30px;
}

.youtube-mark {
  background: var(--green-tint);
  border: 1px solid var(--green-tint);
  color: var(--green);
}

.youtube-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.book-mark {
  color: var(--green);
}

.book-mark svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.online-label {
  margin: 0 0 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.online-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
}

.online-card p {
  margin: 0;
  color: var(--muted);
}

.video-preview {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--green-deep);
}

.video-preview iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.scripture-passage {
  margin-top: 12px !important;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  color: var(--green) !important;
  font-weight: 700;
}

.question-list {
  padding: 16px 18px;
  border-radius: 8px;
  background: #fbfaf6;
}

.question-list > p {
  margin-bottom: 10px;
  color: var(--green);
  font-weight: 700;
}

.question-list ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.online-card .button,
.zoom-action-row {
  margin-top: auto;
}

.online-card .button {
  align-self: flex-start;
}

.zoom-action-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.zoom-code {
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 700;
}

.updates-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(18, 60, 52, 0.08);
}

.updates-tabs {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #faf7ef;
}

.updates-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.updates-tabs button.active,
.updates-tabs button:focus-visible {
  color: #fff;
  background: var(--green);
}

.updates-content {
  padding: clamp(18px, 3vw, 28px);
}

.roster-table-wrap {
  overflow-x: auto;
}

.roster-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.roster-table caption {
  margin-bottom: 14px;
  color: var(--green);
  font-weight: 700;
  text-align: left;
}

.roster-table th,
.roster-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(37, 95, 82, 0.12);
  text-align: left;
  vertical-align: top;
}

.roster-table thead th {
  font-family: var(--font-ui);
  color: #fff;
  background: var(--green);
}

.roster-table tbody th {
  width: 150px;
  color: var(--green);
  font-weight: 700;
  background: #fbfaf6;
}

.roster-table tbody tr:nth-child(even) td,
.roster-table tbody tr:nth-child(even) th {
  background: #f8f4ea;
}

.prayer-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: prayer;
}

.prayer-list li {
  position: relative;
  min-height: 58px;
  padding: 16px 18px 16px 58px;
  border: 1px solid rgba(37, 95, 82, 0.12);
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--muted);
}

.prayer-list li::before {
  counter-increment: prayer;
  content: counter(prayer);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(184, 138, 61, 0.18);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
}

.giving-section {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 60, 52, 0.97), rgba(37, 95, 82, 0.9)),
    radial-gradient(circle at 20% 20%, rgba(184, 138, 61, 0.26), transparent 30%);
}

.giving-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1.14fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.giving-intro .section-kicker {
  color: var(--gold-soft);
}

.giving-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.giving-intro p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.giving-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.giving-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #fffaf0;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.giving-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), #f2d28e);
}

.giving-card p {
  margin: 0 0 18px;
}

.giving-card dl {
  margin-bottom: 0;
}

.giving-card dl div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(37, 95, 82, 0.12);
}

.giving-card dt::after {
  content: ":";
}

.giving-card dt {
  color: var(--green);
  font-weight: 700;
}

.giving-card dd {
  margin-top: 0;
}

.giving-card dd {
  overflow-wrap: anywhere;
  font-weight: 700;
  color: var(--ink);
}

.contact-section {
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98), rgba(251, 250, 246, 0.86)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(37, 95, 82, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 48px);
}

.contact-details > p:not(.section-kicker) {
  margin: 14px 0 24px;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-list a[href^="tel:"] {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
}

.contact-list a {
  color: inherit;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.map-panel {
  overflow: hidden;
  height: 100%;
  min-height: 460px;
  border-left: 1px solid rgba(37, 95, 82, 0.12);
  background: var(--sky);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

dl {
  margin: 0 0 24px;
}

dl div {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--green);
  font-weight: 700;
}

dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.site-footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 26px 0;
}

.footer-inner {
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 28px rgba(18, 60, 52, 0.24);
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--green-deep);
  color: #fff;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .topbar-inner {
    justify-content: space-between;
    text-align: center;
    gap: 10px;
  }

  .topbar-event {
    justify-content: center;
    gap: 6px;
    overflow: hidden;
    text-align: left;
  }

  .topbar-event-detail {
    display: none;
  }

  .topbar-event span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-event span + span::before {
    margin-right: 6px;
  }

  .topbar-action {
    min-height: 30px;
    padding: 5px 10px;
  }

  .nav-row {
    grid-template-columns: auto auto auto;
    gap: 12px;
    min-height: 74px;
  }

  .brand-logo {
    width: clamp(148px, 37vw, 196px);
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 113px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(251, 250, 246, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(18, 60, 52, 0.9), rgba(18, 60, 52, 0.42));
  }

  .welcome-grid,
  .giving-panel,
  .two-column,
  .new-grid,
  .card-grid,
  .ministry-grid,
  .online-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 340px;
    border-left: 0;
    border-top: 1px solid rgba(37, 95, 82, 0.12);
  }

  .new-grid .image-panel {
    order: 2;
  }

  .image-panel img,
  .image-panel.tall img {
    height: 340px;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: min(148px, 37vw);
  }

  .language-switch button {
    min-width: 38px;
    padding: 7px 8px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-actions,
  .hero-actions .button,
  .message-panel .button,
  .online-card .button {
    width: 100%;
  }

  .online-card .button {
    align-self: stretch;
  }

  .zoom-code {
    width: 100%;
    justify-content: center;
  }

  .updates-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }

  .section {
    padding: 58px 0;
  }

  .info-card,
  .ministry-grid article,
  .contact-card,
  .message-panel {
    padding: 22px;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }
}
