:root {
  --navy: #062a4a;
  --blue: #0f7ae5;
  --blue-bright: #2eb7ff;
  --coral: #ff5a3c;
  --amber: #ffb020;
  --teal: #14c8a8;
  --gold: #ffb020;
  --stone: #eef7ff;
  --ink: #10243a;
  --muted: #4d6780;
  --surface: rgba(255, 255, 255, 0.88);
  --shadow: 0 14px 40px rgba(6, 42, 74, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.7 Outfit, "Noto Serif TC", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, #7ad7ff55, transparent 55%),
    radial-gradient(900px 500px at 90% 0%, #ff8a6550, transparent 50%),
    radial-gradient(800px 500px at 70% 100%, #39e0c040, transparent 45%),
    linear-gradient(160deg, #f4fbff 0%, #e8f4ff 40%, #fff6ef 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

.topbar {
  min-height: 40px;
  background: linear-gradient(90deg, #041f38, #0a4f9c 55%, #0f7ae5);
  color: #eaf6ff;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 6px 5%;
  font-size: .78rem;
  transition: background .35s ease, color .35s ease;
}
.topbar.topbar-liturgy {
  background: var(--liturgy-bg, #2F6B4F);
  color: var(--liturgy-fg, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--liturgy-accent, transparent) 35%, transparent);
}
body.liturgy-light .topbar.topbar-liturgy {
  box-shadow: inset 0 -2px 0 var(--liturgy-accent, #B8892E);
}
.topbar .liturgy-strip {
  margin-left: auto;
  white-space: nowrap;
  font-weight: 600;
}
.topbar-weather {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar-warnings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.topbar-warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 4px;
  background: rgba(255,255,255,.92);
  padding: 1px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.topbar-warning-icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.topbar-warning-icon:hover {
  transform: translateY(-1px);
}
.liturgy-strip strong { font-weight: 800; margin-right: .4em; }
.liturgy-strip small {
  opacity: .92;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  color: inherit;
}
body.liturgy-light .liturgy-strip small {
  opacity: 1;
  color: var(--liturgy-accent, #9A7420);
  background: color-mix(in srgb, var(--liturgy-accent, #B8892E) 18%, transparent);
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 3%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 30px rgba(6, 42, 74, 0.08);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--teal), var(--amber), var(--coral)) 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  flex: 0 0 auto;
  min-width: 0;
  margin-right: 8px;
  max-width: none;
}
.brand img {
  width: clamp(48px, 9vw, 64px);
  height: clamp(48px, 9vw, 64px);
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(15, 122, 229, 0.25));
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: max-content;
  flex: 0 0 auto;
  overflow: visible;
  padding-right: .15em;
}
.brand b {
  display: inline-block;
  font: 700 clamp(1.25rem, 3.8vw, 1.85rem) / 1.25 "Noto Serif TC";
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--navy);
  padding-right: .12em;
}
.brand em {
  display: block;
  margin-top: 3px;
  font: 700 clamp(.64rem, 2.4vw, 1rem) / 1.2 Outfit, sans-serif;
  font-style: normal;
  letter-spacing: 0;
  color: var(--navy);
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.2vw, 18px);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  min-width: 0;
}
nav > a,
.nav-drop > button {
  white-space: nowrap;
  flex-shrink: 0;
}
nav > a:hover, .nav-drop > button:hover { color: var(--blue); }
.nav-drop { position: relative; flex-shrink: 0; }
.nav-drop > button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: inherit;
  font-size: inherit;
  padding: 0;
}
.nav-drop > div {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: white;
  box-shadow: var(--shadow);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid #d7ebff;
}
.nav-drop:hover > div { display: grid; }
.nav-drop div a {
  padding: 8px 12px;
  white-space: nowrap;
  border-radius: 8px;
}
.nav-drop div a:hover { background: #eef7ff; color: var(--blue); }
.share-menu {
  display: none;
  grid-template-columns: repeat(3, 44px);
  gap: 10px;
  padding: 12px !important;
  min-width: auto !important;
}
.nav-drop:hover > .share-menu { display: grid; }
.share-menu .share-icon {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  padding: 0;
  transition: transform .15s, filter .15s;
}
.share-menu .share-icon svg { width: 20px; height: 20px; fill: currentColor; }
.share-menu .share-icon:hover { transform: translateY(-2px) scale(1.06); filter: brightness(1.08); }
.share-email { background: linear-gradient(145deg, #5b6b7c, #3d4a57); }
.share-facebook { background: linear-gradient(145deg, #1877f2, #0f5ed6); }
.share-whatsapp { background: linear-gradient(145deg, #25d366, #128c7e); }
.share-wechat { background: linear-gradient(145deg, #09b83e, #078c30); }
.share-copy { background: linear-gradient(145deg, #0f7ae5, #0a58b8); }
.share-instagram { background: linear-gradient(145deg, #f58529, #dd2a7b 50%, #8134af); }

.nav-utils {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.langs {
  display: flex;
  border-left: 1px solid #c5daf0;
  padding-left: 12px;
  gap: 6px;
}
.langs a {
  padding: 2px 7px;
  border-radius: 999px;
}
.langs a.active {
  color: white;
  background: linear-gradient(120deg, var(--blue), var(--teal));
}

.fb, .footer-fb, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1877f2, #0f5ed6);
  color: white !important;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.35);
  transition: transform .2s;
}
.fb:hover, .footer-fb:hover { transform: translateY(-2px) scale(1.05); }
.fb svg, .footer-fb svg { width: 15px; height: 15px; fill: currentColor; }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: clamp(44px, 11vw, 56px);
  height: clamp(44px, 11vw, 56px);
  border: 0;
  border-radius: 14px;
  background: var(--liturgy-accent, var(--liturgy-bg, #0f7ae5));
  color: #fff;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--liturgy-accent, var(--liturgy-bg, #0f7ae5)) 45%, transparent);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}
.nav-toggle span {
  display: block;
  width: 54%;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
}

.hero {
  min-height: calc(100vh - 126px);
  position: relative;
  display: grid;
  align-items: end;
  color: white;
  overflow: hidden;
  background: var(--navy);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.3s, transform 6s ease;
  transform: scale(1.04);
}
.hero-slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(4, 24, 46, .72) 8%, transparent 58%);
  pointer-events: none;
}
/* Homepage hero: fixed glory gold, not liturgical season colour */
.hero.hero-glory .hero-slide:after {
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--hero-bg, #C8961E) 72%, #04182e) 0%, transparent 62%),
    linear-gradient(0deg, rgba(4, 24, 46, .78) 6%, transparent 55%);
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-copy {
  position: relative;
  padding: 0 9% 12%;
  max-width: 900px;
  animation: riseIn .9s ease both;
}
.hero-copy .eyebrow {
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ffe08a;
  font-weight: 700;
}
.hero h1 {
  font: 700 clamp(2rem, 5.2vw, 4.2rem) / 1.1 "Noto Serif TC", Fraunces;
  margin: 14px 0;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.hero h1 span {
  display: block;
  font: 700 clamp(1.2rem, 2.8vw, 2rem) "Noto Serif TC";
  color: #d9f3ff;
  margin-top: .35em;
}
.hero h1 .hero-en-name {
  font: 700 clamp(1rem, 2.2vw, 1.45rem) Outfit, sans-serif;
  letter-spacing: .02em;
  color: #ffe08a;
  margin-top: .4em;
}
.hero p {
  font: 1.15rem "Noto Serif TC";
  max-width: 560px;
  color: #e8f6ff;
}

.btn {
  display: inline-block;
  background: linear-gradient(120deg, var(--amber), var(--coral));
  color: #1a1208;
  padding: 12px 24px;
  font-weight: 800;
  margin: 12px 8px 0 0;
  border-radius: 999px;
  border: 0;
  transition: .2s;
  box-shadow: 0 10px 24px rgba(255, 90, 60, 0.28);
  cursor: pointer;
}
.btn.alt {
  background: transparent;
  border: 2px solid #fff;
  color: white;
  box-shadow: none;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }

section, .content-page {
  padding: 88px max(5%, calc((100vw - 1180px) / 2));
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}
.section-head h2, .content-page h1 {
  font: 700 clamp(2rem, 4vw, 3.5rem) / 1 Fraunces, "Noto Serif TC";
  color: var(--navy);
  margin: 0;
}
.section-head p {
  color: var(--coral);
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--surface);
  padding: 26px;
  box-shadow: var(--shadow);
  border-radius: 22px;
  border: 1px solid #d7ebff;
  border-top: 4px solid var(--blue);
  transition: .25s;
  backdrop-filter: blur(8px);
}
.card:nth-child(2) { border-top-color: var(--teal); }
.card:nth-child(3) { border-top-color: var(--coral); }
.card:nth-child(4) { border-top-color: var(--amber); }
.card:hover {
  transform: translateY(-7px) rotate(-0.2deg);
  box-shadow: 0 18px 40px rgba(15, 122, 229, 0.18);
}
.card h3 { font-family: "Noto Serif TC"; margin: 0 0 8px; }
.card span { color: var(--blue); font-weight: 700; }

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

/* Homepage preview cards (keep compact row) */
.schedule {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr auto;
  gap: 20px 24px;
  align-items: center;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #d7ebff;
  border-left: 6px solid var(--liturgy-accent, var(--liturgy-bg, var(--blue)));
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(6, 42, 74, 0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.schedule:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(6, 42, 74, 0.12);
}
.schedule time {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px 14px;
  font: 800 1.15rem/1.25 Outfit, "Noto Serif TC", sans-serif;
  color: #fff;
  text-align: center;
  background: var(--liturgy-accent, var(--liturgy-bg, var(--blue)));
  border-radius: 14px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--liturgy-accent, var(--liturgy-bg, var(--blue))) 35%, transparent);
}
.schedule-body strong {
  display: block;
  font: 700 1.35rem/1.3 "Noto Serif TC", serif;
  color: var(--navy);
  margin-bottom: 6px;
}
.schedule-body small {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: .95rem;
  color: var(--muted);
}
.schedule-day,
.schedule-loc,
.schedule-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-weight: 700;
  font-size: .82rem;
}
.schedule-cat {
  background: color-mix(in srgb, var(--liturgy-accent, var(--teal)) 16%, #fff);
  color: var(--liturgy-accent, #0d6e63);
}
.schedule-note {
  font-weight: 500;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.schedule-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.schedule-link:hover {
  background: var(--liturgy-accent, var(--liturgy-bg, var(--blue)));
  color: #fff;
}

/* Dedicated 各聚會時間 page */
.schedule-page-wrap {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 72px;
  box-sizing: border-box;
}
.schedule-page-head {
  margin: 0 0 36px;
  text-align: left;
}
.schedule-page-eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .82rem;
}
.schedule-page-head h1 {
  margin: 0;
  font: 700 clamp(2rem, 4vw, 3.2rem) / 1.15 Fraunces, "Noto Serif TC", serif;
  color: var(--navy);
}
.schedule-group {
  margin: 0 0 36px;
  padding: 0 !important; /* override global `section` padding if tag changes */
  width: 100%;
  max-width: none;
}
.schedule-group:last-child { margin-bottom: 0; }
.schedule-group-title {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  font: 700 clamp(1.2rem, 2.2vw, 1.45rem) / 1.3 "Noto Serif TC", Fraunces, serif;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
  writing-mode: horizontal-tb;
}
.schedule-group-title::before {
  content: "";
  width: 5px;
  height: 1.1em;
  border-radius: 99px;
  background: var(--liturgy-accent, var(--blue));
  flex: 0 0 auto;
}
.schedule-group-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d7ebff;
  border-radius: 99px;
}
.schedule-page-wrap .schedule-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
@media (min-width: 900px) {
  .schedule-page-wrap .schedule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }
}
.schedule-item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 18px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d7ebff;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(6, 42, 74, 0.06);
}
.schedule-time {
  flex: 0 0 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--liturgy-accent, var(--blue));
  color: #fff;
  text-align: center;
  font: 800 .95rem / 1.3 Outfit, "Noto Serif TC", sans-serif;
  writing-mode: horizontal-tb;
  white-space: normal;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--liturgy-accent, var(--blue)) 28%, transparent);
}
.schedule-main {
  flex: 1 1 auto;
  min-width: 0;
}
.schedule-title {
  margin: 0 0 8px;
  font: 700 1.15rem / 1.35 "Noto Serif TC", serif;
  color: var(--navy);
  writing-mode: horizontal-tb;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}
.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.schedule-item .schedule-note {
  margin-top: 10px;
  font-size: .9rem;
}

.liturgy-feature {
  padding: 65px max(5%, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 35px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: background .4s ease;
}
.liturgy-feature:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0,0,0,.12), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.18), transparent 40%);
  pointer-events: none;
}
.liturgy-feature h2,
.liturgy-festival {
  font: 700 clamp(1.35rem, 2.8vw, 2.4rem) "Noto Serif TC", Fraunces;
  margin: 0;
  position: relative;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.liturgy-feature p { color: inherit; opacity: .95; }
.liturgy-feature > * { position: relative; }
.liturgy-feature .color-chip {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  background: color-mix(in srgb, var(--liturgy-accent, currentColor) 22%, transparent);
  color: inherit;
  border: 1px solid color-mix(in srgb, var(--liturgy-accent, currentColor) 45%, transparent);
}
body.liturgy-light .liturgy-feature .color-chip {
  color: var(--liturgy-accent, #9A7420);
  background: color-mix(in srgb, var(--liturgy-accent, #B8892E) 16%, #fff);
  border-color: color-mix(in srgb, var(--liturgy-accent, #B8892E) 40%, #fff);
}
body.liturgy-light .liturgy-feature {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--liturgy-accent, #B8892E) 35%, transparent);
}
.lectionary-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font: 600 1.2rem/1.45 "Noto Serif TC", serif;
}
.lectionary-list li span {
  font-weight: 800;
  opacity: .92;
  margin-right: .15em;
}
.verse { font: 600 1.3rem "Noto Serif TC"; }

.content-page { max-width: 1060px; margin: auto; min-height: 58vh; }
.content-page .page-body {
  font-family: "Noto Serif", "Noto Serif TC", serif;
  font-size: 1.07rem;
  background: var(--surface);
  padding: 35px;
  margin-top: 30px;
  box-shadow: var(--shadow);
  border-radius: 22px;
  border: 1px solid #d7ebff;
}
.page-body h2 {
  margin: 2em 0 .8em;
  font: 700 1.45rem "Noto Serif", "Noto Serif TC", serif;
  color: var(--navy);
  border-left: 5px solid var(--liturgy-accent, var(--liturgy-bg, var(--blue)));
  padding-left: 12px;
}
.page-body h2:first-of-type { margin-top: 1.4em; }
.faith-list {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
}
.faith-list li {
  margin: .55em 0;
  line-height: 1.7;
}
.faith-prayer {
  background: #f3f8ff;
  border-radius: 14px;
  padding: 18px 20px;
  border-left: 4px solid var(--coral);
}
.faith-note {
  font-size: .9rem;
  color: var(--muted);
}
.faith-source {
  margin-top: 2.2em;
  padding-top: 1em;
  border-top: 1px solid #d7ebff;
  font-size: .95rem;
}
.faith-source a { color: var(--blue); font-weight: 700; }
.map { width: 100%; height: 380px; border: 0; margin-top: 24px; border-radius: 18px; }
.warning {
  background: linear-gradient(120deg, #d62828, #ff5a3c);
  color: #fff;
  padding: 15px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
}
.fade-up { opacity: 0; transform: translateY(24px); transition: .65s; }
.fade-up.visible { opacity: 1; transform: none; }

footer,
.site-footer {
  background: linear-gradient(120deg, #04182e, #0a3f7a 60%, #0d6e63);
  color: #e7f4ff;
  padding: 40px 5%;
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) 1.5fr;
  gap: 18px 32px;
  align-items: center;
  transition: background .35s ease, color .35s ease;
}
.site-footer.footer-liturgy,
body.has-liturgy .site-footer {
  background: var(--liturgy-bg, #2F6B4F);
  color: var(--liturgy-fg, #fff);
  border-top: 3px solid var(--liturgy-accent, transparent);
}
footer a { color: inherit; }
.footer-brand strong {
  display: block;
  font: 700 clamp(1.15rem, 2.4vw, 1.75rem) / 1.25 "Noto Serif TC";
  white-space: nowrap;
  letter-spacing: .04em;
  padding-right: .12em;
}
.footer-brand span {
  display: block;
  margin-top: 6px;
  font: 700 clamp(.65rem, 1.4vw, .8rem) Outfit;
  letter-spacing: .02em;
  color: #ffe08a;
  white-space: nowrap;
}
body.liturgy-light .footer-brand span {
  color: var(--liturgy-accent, #9A7420);
}
body.liturgy-light .site-footer {
  color: #10243a;
}
body.liturgy-light .footer-copy {
  color: #4d6780;
  opacity: 1;
}
.footer-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
footer address {
  font-style: normal;
  line-height: 1.6;
  text-align: right;
}
.footer-copy {
  grid-column: 1 / -1;
  display: block;
  opacity: .92;
  line-height: 1.5;
}

.weather-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: #04182ebb;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  padding: 20px;
}
.weather-modal > div {
  background: white;
  padding: 40px 36px 36px;
  position: relative;
  max-width: 560px;
  width: 100%;
  text-align: center;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border-top: 6px solid var(--coral);
}
.weather-modal > div > p:first-of-type {
  margin: 0 0 8px;
  font: 700 1.15rem/1.4 "Noto Serif TC", "Noto Sans TC", serif;
  letter-spacing: .08em;
  color: var(--coral, #e85d3b);
}
.weather-modal #warning-name {
  margin: 0 0 6px;
  font: 700 1.55rem/1.35 "Noto Serif TC", "Noto Sans TC", serif;
  color: #0a2744;
}
.weather-modal #warning-detail {
  margin: 0 0 4px;
  font-size: 1rem;
}
.weather-modal-message {
  text-align: left;
  line-height: 1.85;
  margin: 20px 0 28px;
  color: #0a2744;
  font-size: 1.2rem;
  font-weight: 600;
}
.weather-modal-message br + br {
  display: block;
  content: "";
  margin-top: .35em;
}
.weather-modal .btn {
  font-size: 1.05rem;
  padding: 14px 28px;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
}

[hidden] { display: none !important; }
.muted { color: var(--muted); font-size: .9rem; }
.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  letter-spacing: .04em;
  font-size: .95rem;
  font-weight: 700;
}
blockquote.verse {
  background: var(--surface);
  padding: 32px;
  border-left: 6px solid var(--liturgy-accent, var(--coral));
  font: 600 1.35rem / 1.7 "Noto Serif TC";
  margin: 0;
  box-shadow: var(--shadow);
  border-radius: 0 22px 22px 0;
}
blockquote.verse footer {
  margin-top: 16px;
  font: 700 .95rem Outfit;
  color: var(--blue);
  background: none;
  padding: 0;
  display: block;
}
.bible-badge {
  display: inline-block;
  background: linear-gradient(120deg, var(--blue), var(--teal));
  color: white;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  margin: 10px 0 0;
}
.bible-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
  margin-bottom: 8px;
}
.bible-head h1 { margin: 0; }
.bible-reader { margin-top: 18px; }
.bible-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: end;
  margin-bottom: 18px;
}
.bible-field {
  display: grid;
  gap: 6px;
  min-width: min(100%, 220px);
  flex: 1 1 180px;
}
.bible-field-chapter { flex: 0 1 110px; min-width: 96px; }
.bible-field span {
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
}
.bible-field select {
  appearance: none;
  width: 100%;
  border: 1px solid #cfe0f5;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a6fa5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
  border-radius: 12px;
  padding: 11px 36px 11px 14px;
  font: 600 1rem Outfit, "Noto Serif TC", sans-serif;
  color: var(--navy);
  box-shadow: 0 1px 0 rgba(20, 50, 90, .04);
}
.bible-nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.bible-nav .btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #cfe0f5;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}
.bible-nav .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.bible-panel {
  background: var(--surface);
  border: 1px solid #d7ebff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
  min-height: 50vh;
}
.bible-title {
  margin: 0 0 18px;
  font: 700 clamp(1.35rem, 2.6vw, 1.85rem) "Noto Serif", "Noto Serif TC", serif;
  color: var(--navy);
  border-left: 5px solid var(--liturgy-accent, var(--liturgy-bg, var(--blue)));
  padding-left: 12px;
}
.bible-status { margin: 1.5rem 0; }
.bible-status.is-error { color: #b42318; font-weight: 600; }
.bible-text {
  font-family: "Noto Serif", "Noto Serif TC", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.18rem);
  line-height: 1.9;
  color: #1d2a3a;
}
.bible-section {
  margin: 1.6em 0 .7em;
  font: 700 1.15rem "Noto Serif", "Noto Serif TC", serif;
  color: var(--teal);
}
.bible-section:first-child { margin-top: 0; }
.bible-verse { margin: 0 0 .55em; }
.bible-verse-num {
  display: inline-block;
  min-width: 1.4em;
  margin-right: .35em;
  font: 700 .78rem Outfit, sans-serif;
  color: var(--blue);
  vertical-align: super;
}
.bible-credit {
  margin-top: 18px;
  font-size: .9rem;
}
.bible-credit a { color: var(--blue); font-weight: 600; }
@media (max-width: 720px) {
  .bible-nav { width: 100%; margin-left: 0; }
  .bible-nav .btn { flex: 1; }
}

/* Sermons */
.sermons-page > h1 {
  color: var(--liturgy-accent, var(--navy));
}
/* Override global content-page max-width (~1060) and side padding
   (calc((100vw - 1180px) / 2)) so grids can use a wider desktop layout. */
.content-page.sermons-page,
.content-page.info-page {
  max-width: min(1760px, 100%);
  width: 100%;
  margin-inline: auto;
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}
.info-page > h1 {
  color: var(--liturgy-accent, var(--navy));
}
.info-page .grid {
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .info-page .grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  }
}
@media (min-width: 1100px) {
  .info-page .grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 20px;
  }
}
.sermon-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
.sermon-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  background: var(--surface);
  border: 1px solid #d7ebff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: .2s;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.sermon-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--liturgy-accent, #8ec8ff) 45%, #8ec8ff);
}
.sermon-item .date {
  font-weight: 800;
  color: var(--liturgy-accent, var(--coral));
  background: color-mix(in srgb, var(--liturgy-accent, var(--coral)) 12%, #fff);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  line-height: 1.25;
  width: fit-content;
}
.sermon-item-body { flex: 1; width: 100%; min-width: 0; }
.sermon-item h3 { margin: 0 0 6px; font-family: "Noto Serif TC"; font-size: 1.15rem; color: var(--navy); }
.sermon-meta { color: var(--muted); font-size: .92rem; }
.sermon-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sermon-item .btn {
  margin-top: auto;
  align-self: flex-start;
  background: var(--liturgy-accent, var(--blue));
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--liturgy-accent, var(--blue)) 35%, transparent);
}
.sermon-item:hover .btn {
  filter: brightness(1.06);
}
body.liturgy-light .sermon-item .btn {
  color: #10243a;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--liturgy-accent, #B8892E) 28%, transparent);
}
.tag {
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e7f4ff;
  color: var(--blue);
}
.tag.audio { background: #e8fff8; color: #0a8f76; }
.tag.video { background: #ffe9e4; color: #d13a22; }

@media (min-width: 640px) {
  .sermon-list {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 18px;
  }
}
@media (min-width: 1100px) {
  .sermon-list {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 20px;
  }
}

/* Monthly PDF (頌恩月報) */
.content-page.monthly-page {
  max-width: min(1760px, 100%);
  width: 100%;
  margin-inline: auto;
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}
.monthly-page > h1 {
  color: var(--liturgy-accent, var(--navy));
}
.monthly-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .monthly-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 20px;
  }
}
@media (min-width: 1100px) {
  .monthly-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 22px;
  }
}
.monthly-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #d7ebff;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: .2s transform, .2s border-color;
  box-sizing: border-box;
}
.monthly-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--liturgy-accent, #8ec8ff) 45%, #8ec8ff);
}
.monthly-card-static {
  cursor: default;
}
.monthly-card-static:hover {
  transform: none;
}
.monthly-preview {
  position: relative;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(160deg, #eef5fc 0%, #d9e8f7 48%, #c5daf0 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.monthly-preview-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .35s ease;
  box-shadow: 0 10px 28px rgba(16, 36, 58, .18);
}
.monthly-preview-canvas.is-ready {
  opacity: 1;
}
.monthly-preview-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .92rem;
  pointer-events: none;
}
.monthly-preview-canvas.is-ready + .monthly-preview-fallback {
  display: none;
}
.monthly-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}
.monthly-card-body .date {
  font-weight: 800;
  color: var(--liturgy-accent, var(--coral));
  background: color-mix(in srgb, var(--liturgy-accent, var(--coral)) 12%, #fff);
  border-radius: 14px;
  padding: 8px 12px;
  width: fit-content;
  line-height: 1.25;
}
.monthly-card-body h3 {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Serif", serif;
  font-size: 1.12rem;
  color: var(--navy);
}
.monthly-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.monthly-card-body .btn {
  margin-top: auto;
  align-self: flex-start;
  background: var(--liturgy-accent, var(--blue));
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--liturgy-accent, var(--blue)) 35%, transparent);
  text-decoration: none;
}
.monthly-card:hover .btn {
  filter: brightness(1.06);
}
body.liturgy-light .monthly-card-body .btn {
  color: #10243a;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--liturgy-accent, #B8892E) 28%, transparent);
}

/* PDF ebook reader */
body.pdf-reader-open {
  overflow: hidden;
}
.pdf-reader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
}
.pdf-reader[hidden] {
  display: none !important;
}
.pdf-reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 32, .72);
  border: 0;
  cursor: pointer;
}
.pdf-reader-panel {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
  height: min(920px, calc(100vh - 32px));
  display: flex;
  flex-direction: column;
  background: #f4f7fb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .2);
}
.pdf-reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface, #fff);
  border-bottom: 1px solid #d7ebff;
}
.pdf-reader-header h2 {
  margin: 0;
  font: 700 1.1rem "Noto Serif TC", "Noto Serif", serif;
  color: var(--navy);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-reader-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pdf-reader-actions .btn {
  background: var(--liturgy-accent, var(--blue));
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
body.liturgy-light .pdf-reader-actions .btn {
  color: #10243a;
}
.pdf-reader-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #e8eef6;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.pdf-reader-close:hover {
  background: #d7e4f3;
}
.pdf-reader-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  background:
    radial-gradient(ellipse at center, #1a2f4a 0%, #0c1828 70%);
}
.pdf-nav {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: .15s background, .15s opacity;
}
.pdf-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, .28);
}
.pdf-nav:disabled {
  opacity: .28;
  cursor: default;
}
.pdf-book {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  perspective: 1800px;
}
.pdf-spread {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 100%;
  max-height: 100%;
  transform-style: preserve-3d;
}
.pdf-leaf {
  background: #fff;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.pdf-leaf-left {
  border-radius: 4px 0 0 4px;
}
.pdf-leaf-right {
  border-radius: 0 4px 4px 0;
  border-left: 1px solid rgba(16, 36, 58, .08);
}
.pdf-spread.single-page .pdf-leaf-left {
  border-radius: 4px;
}
.pdf-spread.single-page .pdf-leaf-right {
  display: none;
}
.pdf-leaf canvas {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: top;
}
.pdf-reader-status {
  position: absolute;
  inset: auto;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  font-size: .95rem;
}
.pdf-reader-status.is-error {
  background: #ffe9e4;
  color: #d13a22;
}
.pdf-reader-status[hidden] {
  display: none !important;
}
.pdf-page-indicator {
  margin: 0;
  padding: 10px 16px 14px;
  text-align: center;
  color: var(--muted);
  background: var(--surface, #fff);
  border-top: 1px solid #d7ebff;
  font-size: .92rem;
}
.pdf-spread.flip-next {
  animation: pdfFlipNext .5s ease;
}
.pdf-spread.flip-prev {
  animation: pdfFlipPrev .5s ease;
}
@keyframes pdfFlipNext {
  0% { transform: rotateY(0); opacity: 1; }
  45% { transform: rotateY(-18deg) scale(.985); opacity: .72; }
  100% { transform: rotateY(0); opacity: 1; }
}
@keyframes pdfFlipPrev {
  0% { transform: rotateY(0); opacity: 1; }
  45% { transform: rotateY(18deg) scale(.985); opacity: .72; }
  100% { transform: rotateY(0); opacity: 1; }
}

@media (max-width: 767px) {
  .pdf-reader {
    padding: 0;
  }
  .pdf-reader-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .pdf-reader-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: 8px;
  }
  .pdf-nav {
    position: absolute;
    z-index: 2;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
  .pdf-nav-prev { left: 14px; }
  .pdf-nav-next { right: 14px; }
  .pdf-book {
    grid-row: 1;
  }
  .pdf-reader-header {
    padding: 12px 14px;
  }
  .pdf-reader-header h2 {
    font-size: 1rem;
  }
  .pdf-reader-actions .btn {
    padding: 8px 12px;
    font-size: .85rem;
  }
  .pdf-spread.flip-next,
  .pdf-spread.flip-prev {
    animation-duration: .35s;
  }
}

.sermon-detail { display: grid; gap: 24px; }
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #04182e;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.audio-player {
  background: linear-gradient(120deg, #062a4a, #0f7ae5);
  color: white;
  padding: 20px 22px;
  border-radius: 18px;
  display: grid;
  gap: 10px;
}
.audio-player audio { width: 100%; }
.sermon-panel {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  border: 1px solid #d7ebff;
  box-shadow: var(--shadow);
}
.sermon-panel h2 {
  margin: 0 0 12px;
  font: 700 1.4rem "Noto Serif TC";
  color: var(--navy);
}

@keyframes pulse {
  50% { transform: scale(1.55); box-shadow: 0 0 0 6px #ffffff33; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* Switch to hamburger before nav labels wrap */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 14px 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 18px 40px rgba(6, 42, 74, 0.18);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    font-size: 1.2rem;
  }
  nav.open { display: flex; }
  nav > a,
  nav .nav-drop > button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: "Noto Serif TC", serif;
    color: var(--navy);
    text-align: left;
    border: 0;
    border-radius: 14px;
    background: #f3f8ff;
    white-space: nowrap;
  }
  nav > a:active,
  nav .nav-drop > button:active,
  nav > a:hover,
  nav .nav-drop > button:hover {
    background: linear-gradient(120deg, #e7f3ff, #dffaf3);
    color: var(--blue);
  }
  nav .nav-drop { width: 100%; }
  nav .nav-drop > div {
    position: static;
    display: none;
    box-shadow: none;
    padding: 6px 0 4px 10px;
    background: transparent;
    border: 0;
    min-width: 0;
    gap: 6px;
  }
  nav .nav-drop:hover > div,
  nav .nav-drop:focus-within > div,
  nav .nav-drop.is-open > div { display: grid; }
  nav .nav-drop > div a {
    min-height: 48px;
    font-size: 1.08rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 14px;
    background: #eef6ff;
    white-space: nowrap;
  }
  nav .share-menu {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px 4px 6px !important;
    background: #eef4fa;
    border-radius: 14px;
    margin-top: 6px;
  }
  nav .nav-drop.is-open > .share-menu,
  nav .nav-drop:focus-within > .share-menu { display: grid; }
  nav .share-menu .share-icon {
    width: 100%;
    height: 56px;
    min-height: 56px;
    border-radius: 14px;
    padding: 0;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(6, 42, 74, 0.18);
  }
  nav .share-menu .share-icon.share-email { background: linear-gradient(145deg, #5b6b7c, #3d4a57) !important; }
  nav .share-menu .share-icon.share-facebook { background: linear-gradient(145deg, #1877f2, #0f5ed6) !important; }
  nav .share-menu .share-icon.share-whatsapp { background: linear-gradient(145deg, #25d366, #128c7e) !important; }
  nav .share-menu .share-icon.share-wechat { background: linear-gradient(145deg, #09b83e, #078c30) !important; }
  nav .share-menu .share-icon.share-copy { background: linear-gradient(145deg, #0f7ae5, #0a58b8) !important; }
  nav .share-menu .share-icon.share-instagram { background: linear-gradient(145deg, #f58529, #dd2a7b 50%, #8134af) !important; }
  nav .share-menu .share-icon svg { width: 26px; height: 26px; fill: #fff; }
  nav .nav-utils {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #dceaf8;
  }
  nav .langs {
    border: 0;
    padding: 0;
    gap: 10px;
    justify-content: flex-start;
  }
  nav .langs a {
    min-width: 56px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 999px;
    background: #eef6ff;
  }
  nav .fb {
    width: 44px;
    height: 44px;
    margin: 0;
    flex-shrink: 0;
  }
  nav .fb svg { width: 20px; height: 20px; }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand-text {
    min-width: 0;
    overflow: visible;
  }
  .brand b,
  .brand em {
    overflow: visible;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 8px 4%;
    gap: 10px;
    min-height: 44px;
    font-size: .82rem;
    flex-wrap: wrap;
  }
  .topbar .liturgy-strip { display: none; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .liturgy-feature { grid-template-columns: 1fr; }
  .liturgy-festival {
    white-space: nowrap;
    font-size: clamp(1.15rem, 5.2vw, 1.6rem);
  }
  .site-footer,
  footer.site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 5% 32px;
    justify-items: start;
  }
  .footer-brand {
    width: 100%;
  }
  .footer-brand strong {
    white-space: nowrap;
    font-size: clamp(1.15rem, 5.5vw, 1.4rem);
  }
  .footer-brand span {
    white-space: normal;
    font-size: .72rem;
    line-height: 1.35;
  }
  .footer-contact {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
  }
  footer address {
    text-align: left;
    width: 100%;
  }
  .footer-copy {
    grid-column: auto;
    width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .schedule {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .schedule time {
    min-height: 56px;
    width: fit-content;
    font-size: 1.05rem;
  }
  .schedule-body strong { font-size: 1.2rem; }
  .schedule-link { justify-self: start; }
  .schedule-page-wrap {
    width: calc(100% - 32px);
    padding: 36px 0 52px;
  }
  .schedule-item {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .schedule-time {
    flex-basis: auto;
    width: fit-content;
    min-height: 44px;
    padding: 8px 14px;
    font-size: .95rem;
  }
  .schedule-title { font-size: 1.12rem; }
  .hero-copy { padding: 0 7% 18%; }
}

@media (max-width: 520px) {
  .site-header { min-height: 84px; padding: 10px 3.5%; }
  .brand { gap: 8px; }
  .brand img { width: 48px; height: 48px; }
  .brand b {
    font-size: clamp(1.2rem, 5.6vw, 1.5rem);
    letter-spacing: .04em;
  }
  .brand em {
    font-size: clamp(.62rem, 2.85vw, .8rem);
  }
  .nav-toggle { width: 50px; height: 50px; border-radius: 12px; gap: 5px; }
  .hero { min-height: 580px; }
  section, .content-page { padding: 55px 6%; }
  .content-page.sermons-page,
  .content-page.info-page,
  .content-page.monthly-page {
    padding-left: 6%;
    padding-right: 6%;
  }
}

@media (max-width: 360px) {
  .brand em { font-size: .58rem; }
  .brand b { font-size: 1.12rem; }
}

/* —— Dashboard login —— */
.login-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(900px 520px at 12% 8%, #7ad7ff44, transparent 55%),
    radial-gradient(700px 480px at 92% 12%, #14c8a838, transparent 50%),
    radial-gradient(640px 420px at 70% 95%, #0f7ae528, transparent 48%),
    linear-gradient(165deg, #eef7ff 0%, #e4f1fb 45%, #f7fbfd 100%);
  background-attachment: fixed;
}

.login-stage {
  width: min(420px, 100%);
  animation: login-rise .7s cubic-bezier(.22, 1, .36, 1) both;
}

.login-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(15, 122, 229, 0.12);
  border-radius: 28px;
  padding: 40px 36px 32px;
  box-shadow:
    0 24px 60px rgba(6, 42, 74, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 22px rgba(15, 122, 229, 0.28));
  animation: login-logo-in .85s cubic-bezier(.22, 1, .36, 1) .08s both;
}

.login-brand h1 {
  margin: 0;
  font: 700 clamp(1.45rem, 4.5vw, 1.75rem) / 1.3 "Noto Serif TC", Fraunces, serif;
  color: var(--navy);
  letter-spacing: .04em;
  animation: login-rise .75s cubic-bezier(.22, 1, .36, 1) .15s both;
}

.login-en {
  margin: 8px 0 0;
  font: 500 .78rem / 1.45 Outfit, sans-serif;
  color: var(--muted);
  letter-spacing: .02em;
  animation: login-rise .75s cubic-bezier(.22, 1, .36, 1) .22s both;
}

.login-subtitle {
  margin: 14px 0 0;
  display: inline-block;
  font: 700 .72rem / 1 Outfit, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  animation: login-rise .75s cubic-bezier(.22, 1, .36, 1) .28s both;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: login-rise .75s cubic-bezier(.22, 1, .36, 1) .34s both;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  font: 600 .88rem Outfit, sans-serif;
  color: var(--navy);
}

.login-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #c5d8eb;
  border-radius: 14px;
  background: #f8fbff;
  font: 500 1rem Outfit, "Noto Serif TC", sans-serif;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.login-field input::placeholder {
  color: #8aa0b5;
  font-weight: 400;
}

.login-field input:hover {
  border-color: #9fc0de;
}

.login-field input:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 122, 229, 0.15);
}

.login-captcha {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 8px;
  align-items: center;
}

.login-captcha-code {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 8px,
      rgba(15, 122, 229, 0.06) 8px,
      rgba(15, 122, 229, 0.06) 9px
    ),
    linear-gradient(135deg, #e8f3ff, #f4fbff 55%, #eef8f4);
  border: 1.5px dashed #9fc0de;
  user-select: none;
  letter-spacing: .12em;
}

.login-captcha-code span {
  flex: 1;
  text-align: center;
  font: 700 1.45rem / 1 Fraunces, "Noto Serif TC", serif;
  color: var(--navy);
  transform: rotate(var(--tilt, 0deg));
}

.login-captcha-code span:nth-child(1) { --tilt: -6deg; }
.login-captcha-code span:nth-child(2) { --tilt: 4deg; color: #0a5fb8; }
.login-captcha-code span:nth-child(3) { --tilt: -3deg; color: #0d6e63; }
.login-captcha-code span:nth-child(4) { --tilt: 5deg; color: #0a4f9c; }
.login-captcha-code span:nth-child(5) { --tilt: -4deg; }

.login-captcha-refresh {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1.5px solid #c5d8eb;
  background: #f8fbff;
  color: var(--blue);
  font-size: 1.25rem;
  line-height: 1;
  transition: background .2s, border-color .2s, transform .2s;
}

.login-captcha-refresh:hover {
  background: #eef6ff;
  border-color: var(--blue);
  transform: rotate(-20deg);
}

.login-captcha-field {
  grid-column: 1 / -1;
}

.login-submit {
  width: 100%;
  margin: 8px 0 0;
  padding: 14px 24px;
  font: 700 1.05rem Outfit, sans-serif;
  letter-spacing: .06em;
}

.login-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(120deg, #c62828, #e53935);
  color: #fff;
  font: 600 .9rem Outfit, "Noto Serif TC", sans-serif;
  text-align: center;
}

.login-back {
  display: block;
  margin-top: 22px;
  text-align: center;
  font: 600 .88rem Outfit, sans-serif;
  color: var(--muted);
  transition: color .2s;
  animation: login-rise .75s cubic-bezier(.22, 1, .36, 1) .42s both;
}

.login-back:hover {
  color: var(--blue);
}

@keyframes login-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes login-logo-in {
  from { opacity: 0; transform: scale(.86) translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .login-body { padding: 24px 16px; }
  .login-panel { padding: 32px 22px 26px; border-radius: 22px; }
  .login-logo { width: 76px; height: 76px; }
}

/* Live worship */
.live-page {
  max-width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px) 72px;
}
.live-hero {
  position: relative;
  margin: 0 calc(-1 * clamp(16px, 3vw, 40px)) 28px;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 72px);
  color: var(--live-fg, #fff);
  background:
    radial-gradient(ellipse 80% 70% at 15% 20%, color-mix(in srgb, var(--live-accent, #ffb020) 35%, transparent), transparent 55%),
    linear-gradient(145deg, var(--live-bg, #0b2a4a) 0%, color-mix(in srgb, var(--live-bg, #0b2a4a) 70%, #041018) 100%);
  overflow: hidden;
}
.live-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, color-mix(in srgb, var(--live-accent, #ffb020) 28%, transparent), transparent 65%);
  pointer-events: none;
}
.live-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}
.live-eyebrow {
  margin: 0 0 10px;
  font: 700 .82rem/1.3 Outfit, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .88;
}
.live-hero h1 {
  margin: 0;
  font: 700 clamp(1.8rem, 4.5vw, 2.8rem)/1.2 "Noto Serif TC", "Noto Serif", serif;
}
.live-date {
  margin: 14px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  opacity: .95;
}
.live-dot { margin: 0 .35em; opacity: .7; }
.live-offline { margin: 16px 0 0; }
.live-main { display: grid; gap: 28px; }
.live-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 20px;
  margin: 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid #d7ebff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.live-meta dt {
  margin: 0 0 4px;
  font: 700 .78rem Outfit, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.live-meta dd {
  margin: 0;
  font: 600 1.08rem/1.45 "Noto Serif TC", "Noto Serif", serif;
  color: var(--navy);
}
.live-player { width: 100%; }
.live-video {
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(6, 42, 74, .28);
}
.live-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}
.live-actions .btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  width: 100%;
  margin: 0;
  min-height: 56px;
  box-sizing: border-box;
  text-align: left;
}
.live-yt-btn {
  background: #c4302b;
  color: #fff;
  box-shadow: 0 10px 24px rgba(196, 48, 43, .35);
}
.live-yt-btn:hover { filter: brightness(1.06); }
.live-action-sub {
  font-size: .82rem;
  font-weight: 500;
  opacity: .85;
}
.live-actions a.btn.alt {
  background: #fff;
  border: 2px solid var(--navy, #062a4a);
  color: var(--navy, #062a4a);
  box-shadow: 0 8px 20px rgba(6, 42, 74, .12);
}
.live-actions a.btn.alt:hover {
  background: var(--navy, #062a4a);
  color: #fff;
  border-color: var(--navy, #062a4a);
}
.live-actions a.btn.alt .live-action-sub {
  color: inherit;
  opacity: .75;
}
@media (min-width: 720px) {
  .live-actions {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  .live-actions .btn {
    min-height: 72px;
    padding: 16px 22px;
    border-radius: 18px;
  }
}

/* Homepage live notice — fixed bottom bar + blink */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}
.live-blink-dot {
  display: inline-block;
  width: .72em;
  height: .72em;
  margin-right: .45em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
  animation: liveBlink 1.15s ease-in-out infinite;
  vertical-align: -.05em;
}
.btn.live-hero-cta {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  background: linear-gradient(120deg, #ff3b30, #c62828);
  color: #fff;
  border: 0;
  box-shadow:
    0 0 0 0 rgba(255, 59, 48, .55),
    0 12px 28px rgba(198, 40, 40, .45);
  animation: liveCtaPulse 1.6s ease-in-out infinite;
}
.btn.live-hero-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-3px) scale(1.03);
}
.live-home-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  padding: 12px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  pointer-events: none;
}
.live-home-banner[hidden] {
  display: none !important;
}
body.live-bar-open {
  padding-bottom: clamp(120px, 28vw, 200px);
}
.live-home-banner-inner {
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 48px 16px 20px;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(115deg, #b71c1c 0%, #d32f2f 42%, #e53935 100%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow:
    0 18px 48px rgba(183, 28, 28, .45),
    0 0 0 1px rgba(255, 255, 255, .08) inset;
  animation: liveBannerGlow 2.4s ease-in-out infinite;
}
.live-home-banner-copy {
  flex: 1;
  min-width: min(100%, 220px);
}
.live-home-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.live-home-close:hover {
  background: rgba(0, 0, 0, .45);
}
.live-home-kicker {
  margin: 0 0 6px;
  font: 700 .78rem Outfit, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .95;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.live-on-air {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  font: 800 .72rem/1 Outfit, sans-serif;
  letter-spacing: .14em;
}
.live-on-air .live-blink-dot {
  background: #ff8a80;
  box-shadow: 0 0 0 0 rgba(255, 138, 128, .8);
}
.live-home-banner-inner h2 {
  margin: 0 0 4px;
  font: 700 1.2rem/1.25 "Noto Serif TC", "Noto Serif", serif;
}
.live-home-banner-inner p { margin: 0; opacity: .95; font-size: .95rem; }
.live-home-sermon {
  margin-top: 6px !important;
  font-weight: 600;
  font-size: .9rem !important;
}
.live-home-banner-inner .btn.live-home-go {
  flex-shrink: 0;
  margin: 0;
  background: #fff;
  color: #b71c1c;
  border: 0;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}
.live-home-banner-inner .btn.live-home-go:hover {
  background: #fff5f5;
  color: #8e0000;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  50% { opacity: .35; transform: scale(.85); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}
@keyframes liveCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .55), 0 12px 28px rgba(198, 40, 40, .45); }
  50% { box-shadow: 0 0 0 12px rgba(255, 59, 48, 0), 0 14px 32px rgba(198, 40, 40, .55); }
}
@keyframes liveBannerGlow {
  0%, 100% { box-shadow: 0 18px 48px rgba(183, 28, 28, .45), 0 0 0 1px rgba(255, 255, 255, .08) inset; }
  50% { box-shadow: 0 20px 56px rgba(183, 28, 28, .6), 0 0 0 1px rgba(255, 255, 255, .16) inset; }
}

body.live-notice-open { overflow: hidden; }
.live-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
}
.live-notice-modal[hidden] { display: none !important; }
.live-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 32, .62);
  border: 0;
  cursor: pointer;
}
.live-notice-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 28px 26px 24px;
  border-radius: 22px;
  background:
    linear-gradient(165deg, #fff 0%, #eef6ff 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
  animation: liveNoticeIn .35s cubic-bezier(.22, 1, .36, 1);
}
.live-notice-panel h2 {
  margin: 0 0 10px;
  font: 700 1.45rem/1.25 "Noto Serif TC", "Noto Serif", serif;
  color: var(--navy);
}
.live-notice-panel .live-on-air {
  background: #c62828;
}
.live-notice-panel .live-home-kicker {
  color: var(--muted);
}
.live-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.live-notice-actions .btn.alt {
  background: transparent;
  border: 2px solid #c5d6e8;
  color: var(--navy);
  box-shadow: none;
}
@keyframes liveNoticeIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .live-hero { margin-inline: -6%; padding-inline: 6%; }
  .live-page { padding-inline: 6%; }
  .live-home-banner-inner {
    padding: 14px 42px 14px 14px;
    gap: 12px;
  }
  .live-home-banner-inner h2 {
    font-size: 1.05rem;
  }
  .live-home-banner-inner .btn.live-home-go {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .btn.live-hero-cta {
    margin-left: 0;
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-blink-dot,
  .btn.live-hero-cta,
  .live-home-banner-inner {
    animation: none;
  }
}
