/* WARM editorial — inspired by clean Korean church sites (layout/pattern only) */
body.theme-editorial-warm.template-warm {
  background: #ffffff;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

body.theme-editorial-warm.template-warm h1,
body.theme-editorial-warm.template-warm h2 {
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) {
  --theme-primary: #6B8FB8;
  --theme-accent: #7A98C4;
  --theme-surface: #F4F6F9;
  --theme-text: #243447;
  --theme-muted: #6B7785;
  --theme-bg: #FFFFFF;
  --theme-line: #E3E8EF;
  --theme-navy: #2F4663;
  --theme-radius: 22px;
  --theme-max: 1180px;
  --theme-narrow: 720px;
  background: var(--theme-bg);
  color: var(--theme-text);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--theme-bg);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-main,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page { flex: 1; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-wrap {
  width: min(100% - 40px, var(--theme-max));
  margin-inline: auto;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-wrap-narrow {
  width: min(100% - 40px, var(--theme-narrow));
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-primary);
  font-weight: 600;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-meta,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-muted { color: var(--theme-muted); font-size: 0.92rem; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-lead {
  margin: 0 0 16px;
  line-height: 1.75;
  color: var(--theme-muted);
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--theme-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-text-link:hover { color: var(--theme-primary); }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-btn-solid {
  background: var(--theme-primary);
  color: #fff;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-btn-solid:hover { filter: brightness(0.96); }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  min-width: 180px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-section { padding: 64px 0; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-section-surface { background: var(--theme-surface); }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-section-head {
  margin-bottom: 28px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 700;
  color: var(--theme-navy);
  letter-spacing: -0.02em;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-section-head-row,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-section-head-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-section-head-center {
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-empty {
  padding: 32px 20px;
  border: 1px solid var(--theme-line);
  border-radius: var(--theme-radius);
  text-align: center;
  color: var(--theme-muted);
  background: #fff;
}

/* ===== Header ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-header.is-scrolled {
  border-bottom-color: var(--theme-line);
  box-shadow: 0 1px 0 rgba(36, 52, 71, 0.04);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-header-inner {
  width: min(100% - 28px, var(--theme-max));
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-nav-desktop {
  display: none;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  min-width: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  color: var(--theme-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-nav-desktop a:hover,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-nav-desktop a.is-active {
  color: var(--theme-navy);
  background: var(--theme-surface);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--theme-line, #e5e7eb);
  border-radius: 0;
  box-shadow: 0 14px 30px rgba(36, 52, 71, 0.12);
  z-index: 50;
  flex-direction: column;
  gap: 2px;
}
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-nav-item.has-sub:hover > .ew-nav-sub,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-nav-item.has-sub:focus-within > .ew-nav-sub {
  display: flex;
}
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-nav-sub a {
  display: block;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 0;
  white-space: nowrap;
  text-align: left;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-nav-item .cs-nav-parent-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-nav-item .cs-nav-parent-row > a {
  flex: 1;
}
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-nav-item .cs-nav-toggle {
  display: inline-flex;
  color: var(--theme-muted);
}
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-nav-sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 4px 12px;
  padding: 4px 0 4px 10px;
  border-left: 2px solid var(--theme-line, #e5e7eb);
}
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-nav-item.is-open > .ew-mobile-nav-sub {
  display: flex;
}
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-nav-sub a {
  font-size: 0.95rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--theme-navy);
  min-width: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-brand-mark {
  color: var(--theme-primary);
  display: grid;
  flex-shrink: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-brand-text em {
  font-style: normal;
  font-size: 11px;
  color: var(--theme-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 280px);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-brand-text strong {
  font-size: 1.02rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(58vw, 320px);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-menu-btn {
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  display: inline-grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
  color: var(--theme-navy);
  padding: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ===== Mobile menu ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 52, 71, 0.35);
  z-index: 60;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(90vw, 380px);
  height: 100%;
  background: #fff;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  padding: 22px 22px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about).ew-menu-open .ew-mobile-menu { transform: translateX(0); }
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about).ew-menu-open { overflow: hidden; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-brand em {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: var(--theme-muted);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-brand strong {
  display: block;
  font-size: 0.98rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-close {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--theme-muted);
  cursor: pointer;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-nav {
  display: grid;
  gap: 2px;
  overflow: auto;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 12px;
  text-decoration: none;
  color: var(--theme-navy);
  border-radius: 10px;
  font-weight: 600;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-nav a.is-active,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-nav a:hover {
  background: var(--theme-surface);
  color: var(--theme-primary);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-mobile-cta {
  margin-top: auto;
  text-align: center;
  background: var(--theme-primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  min-height: 48px;
  display: grid;
  place-items: center;
  font-weight: 600;
}

/* ===== Hero ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero {
  position: relative;
  width: 100%;
  min-width: 100%;
  max-width: none;
  margin: 0;
  height: clamp(300px, 42vw, 640px);
  min-height: 300px;
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  color: inherit;
  text-decoration: none;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-slide img,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-slide .ew-hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(72px, 11vw, 120px);
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 48, 72, 0.28), rgba(30, 48, 72, 0.55));
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-fallback {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.18), transparent 50%),
    linear-gradient(145deg, #4F6F96, #2F4663 55%, #243447);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 88px 24px 140px;
  max-width: 760px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-welcome {
  margin: 0 auto 28px;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.65;
  opacity: 0.92;
  word-break: keep-all;
  max-width: 28em;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  color: #fff;
  line-height: 0;
  pointer-events: none;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-wave svg {
  width: 100%;
  height: clamp(56px, 9vw, 110px);
  display: block;
}

@media (max-width: 767px) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero {
    height: clamp(280px, 62vw, 480px);
  }
}

/* ===== Quick cards (overlap hero) ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick {
  position: relative;
  z-index: 4;
  margin-top: -72px;
  padding: 0 0 28px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--theme-navy);
  background: #fff;
  border-radius: 24px;
  padding: 28px 18px 24px;
  box-shadow: 0 10px 28px rgba(47, 70, 99, 0.1);
  border: 1px solid rgba(227, 232, 239, 0.9);
  min-height: 150px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47, 70, 99, 0.14);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick-card.is-accent {
  background: var(--theme-primary);
  color: #fff;
  border-color: transparent;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick-icon {
  color: inherit;
  display: grid;
  place-items: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick-card strong {
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 700;
  word-break: keep-all;
  letter-spacing: -0.02em;
}

/* ===== Vision split ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-vision { padding-top: 36px; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-vision-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-vision-col h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  color: var(--theme-navy);
  word-break: keep-all;
  line-height: 1.4;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-vision-col p {
  margin: 0 0 18px;
  color: var(--theme-muted);
  line-height: 1.7;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-vision-mark {
  display: none;
  color: #A8B7C8;
  justify-content: center;
}

/* ===== Word cards ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-card {
  display: block;
  text-decoration: none;
  color: #fff;
  border-radius: 24px;
  overflow: hidden;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #6B7C90;
  min-height: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-media.is-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #7A98C4, #3E5674);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 32, 48, 0.78));
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 20px 18px;
  display: grid;
  gap: 6px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-caption em {
  font-style: normal;
  font-size: 12px;
  opacity: 0.85;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-caption strong {
  font-size: 1.05rem;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-caption span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ===== Home section rhythm (odd = soft gradient) ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-main > section:nth-child(odd):not(.ew-hero):not(.ew-quick) {
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--theme-primary) 9%, #ffffff) 0%,
      #f6f8fb 52%,
      color-mix(in srgb, var(--theme-primary) 6%, #eef2f7) 100%);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-main > section:nth-child(even):not(.ew-quick) {
  background: #fff;
}

/* ===== Bulletin / Worship / News / Events ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-block + .ew-home-block {
  border-top: 1px solid color-mix(in srgb, var(--theme-line) 70%, transparent);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-card {
  margin-top: 8px;
  padding: 22px 22px 20px;
  border: 1px solid var(--theme-line);
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--theme-primary) 7%, #ffffff) 0%,
      #ffffff 55%,
      var(--theme-surface) 100%);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-card-meta time,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-feed-item time {
  color: var(--theme-muted);
  font-size: 0.88rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-primary) 14%, #fff);
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-badge.is-notice {
  background: color-mix(in srgb, #c45c5c 14%, #fff);
  color: #b14343;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-kicker {
  margin: 0 0 6px;
  color: var(--theme-muted);
  font-size: 0.92rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  color: var(--theme-navy);
  word-break: keep-all;
  line-height: 1.4;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-desc {
  margin: 10px 0 0;
  color: var(--theme-muted);
  line-height: 1.65;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-feed {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border: 1px solid var(--theme-line);
  background: #fff;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-feed > li + li {
  border-top: 1px solid var(--theme-line);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-feed-item:hover {
  background: color-mix(in srgb, var(--theme-primary) 5%, #fff);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-feed-main {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-feed-main strong {
  font-size: 1.02rem;
  color: var(--theme-navy);
  word-break: keep-all;
  line-height: 1.45;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-sub {
  color: var(--theme-muted);
  font-size: 0.88rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-feed-events .ew-home-feed-item {
  justify-content: flex-start;
  align-items: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-date {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 56px;
  min-height: 56px;
  border: 1px solid var(--theme-line);
  background: var(--theme-surface);
  color: var(--theme-navy);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-date em {
  font-style: normal;
  font-size: 11px;
  color: var(--theme-muted);
  letter-spacing: 0.04em;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-date strong {
  font-size: 1.35rem;
  line-height: 1;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-home-block .ew-empty {
  margin-top: 8px;
  border: 1px solid var(--theme-line);
  background: #fff;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-feature-bulletin h3 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  color: var(--theme-navy);
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-card {
  padding: 22px 20px;
  border: 1px solid var(--theme-line);
  border-radius: 18px;
  background: #fff;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--theme-navy);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-card dl div {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 8px;
  font-size: 0.94rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-card dt { color: var(--theme-muted); }
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-card dd { margin: 0; word-break: keep-all; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-news-layout {
  display: grid;
  gap: 20px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-news-featured {
  text-decoration: none;
  color: inherit;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-media {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: var(--theme-surface);
  position: relative;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-media.is-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #D7E2EF, #F4F6F9);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-news-copy {
  display: grid;
  gap: 6px;
  padding-top: 14px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-news-copy em,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-news-list em {
  font-style: normal;
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 600;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-news-list li { border-top: 1px solid var(--theme-line); }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-news-list a {
  display: grid;
  gap: 4px;
  padding: 16px 2px;
  text-decoration: none;
  color: inherit;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-event-list li { border-bottom: 1px solid var(--theme-line); }
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-event-list li:last-child { border-bottom: 0; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-event-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  text-decoration: none;
  color: inherit;
  min-height: 72px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-event-date {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 0;
  border-radius: 14px;
  background: var(--theme-surface);
  color: var(--theme-navy);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-event-date em {
  font-style: normal;
  font-size: 12px;
  color: var(--theme-muted);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-event-date strong { font-size: 1.35rem; line-height: 1; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-event-body { display: grid; gap: 4px; min-width: 0; }

/* Intro CTA */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-intro-grid {
  display: grid;
  gap: 24px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-intro-media {
  position: relative;
  min-height: 240px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--theme-surface);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 240px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-intro-media.is-placeholder {
  background: linear-gradient(145deg, #DCE6F2, #F4F6F9);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-intro-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  color: var(--theme-navy);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-slogan {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--theme-navy);
  word-break: keep-all;
}

/* Footer */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer {
  margin-top: auto;
  background: var(--theme-navy);
  color: rgba(255, 255, 255, 0.88);
  padding: 48px 0 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer a { color: inherit; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-inner {
  display: grid;
  gap: 28px;
  padding-bottom: 32px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-brand strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #fff;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-brand p,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-col p {
  margin: 0 0 6px;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.85;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-col h3 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  color: #fff;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-worship,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-worship li { display: grid; gap: 2px; font-size: 0.92rem; }
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-links a { text-decoration: none; opacity: 0.85; }
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-links a:hover { opacity: 1; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-powered { margin: 0; }

/* Subpages */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page {
  width: min(100% - 40px, var(--theme-max));
  margin: 0 auto 56px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page-title {
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--theme-line);
  margin-bottom: 18px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page-title h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  color: var(--theme-navy);
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page .cs-main { padding: 0; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page .cs-panel {
  border: 1px solid var(--theme-line);
  box-shadow: none;
  border-radius: 18px;
  background: #fff;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page .cs-worship-table th {
  background: var(--theme-surface);
  color: var(--theme-muted);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page .cs-bulletin-paper {
  border-color: var(--theme-line);
  box-shadow: none;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page .cs-btn,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page .cs-calendar-nav:hover {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page .cs-text-link,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page .cs-sermon-card em,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page .cs-eyebrow {
  color: var(--theme-primary);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page .cs-list a:hover,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page .cs-sermon-card:hover {
  border-color: color-mix(in srgb, var(--theme-primary) 35%, var(--theme-line));
}

@media (min-width: 768px) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick {
    margin-top: -88px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick-card {
    min-height: 180px;
    padding: 34px 20px 28px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick-card.is-accent {
    transform: translateY(-10px);
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-quick-card.is-accent:hover {
    transform: translateY(-12px);
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-vision-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 36px;
    align-items: center;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-vision-mark { display: grid; }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-vision-col:first-child { text-align: right; }
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-vision-col:first-child .ew-btn { margin-left: auto; }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-word-media { aspect-ratio: 16 / 9; }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
  }
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-grid[data-count="1"] {
    grid-template-columns: minmax(0, 360px);
    justify-content: center;
  }
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-grid[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-grid[data-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-intro-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-footer-inner {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-section { padding: 80px 0; }
}

@media (min-width: 1024px) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-nav-desktop {
    display: flex;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero {
    height: clamp(360px, 38vw, 680px);
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-hero-content {
    padding-bottom: 160px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
  }
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-grid[data-count="1"] {
    grid-template-columns: minmax(0, 360px);
  }
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-worship-grid[data-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Board list (sermons / news / bulletins) ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board {
  padding-bottom: 40px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-search {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0;
  margin: 0 0 18px;
  flex-wrap: wrap;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-search select,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-search input {
  min-height: 40px;
  border: 1px solid #d8dde5;
  background: #fff;
  color: var(--theme-navy);
  font: inherit;
  font-size: 0.92rem;
  padding: 0 12px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-search select {
  border-radius: 4px 0 0 4px;
  min-width: 88px;
  border-right: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-search input {
  width: min(100%, 220px);
  border-radius: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-search-btn {
  width: 42px;
  min-height: 40px;
  border: 1px solid #d8dde5;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  background: #f3f5f8;
  color: #333;
  cursor: pointer;
  display: grid;
  place-items: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-search-btn:hover {
  background: #e8ecf2;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table-wrap {
  overflow-x: auto;
  border-top: 1px solid #cfd5de;
  border-bottom: 1px solid #cfd5de;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table-simple {
  min-width: 520px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table th,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e6eaef;
  font-size: 0.92rem;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table thead th {
  background: #f3f5f8;
  color: #5c6675;
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 1px solid #cfd5de;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table tbody tr:last-child td {
  border-bottom: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table .col-no {
  width: 64px;
  color: #8a93a0;
  text-align: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table th.col-no,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table th.col-view,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table th.col-date,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table th.col-speaker,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table th.col-bible {
  text-align: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table .col-bible,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table .col-speaker,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table .col-date {
  color: #7a8493;
  text-align: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table .col-title {
  font-weight: 600;
  color: #1f2a37;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table .col-title a {
  color: inherit;
  text-decoration: none;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table .col-title a:hover {
  color: var(--theme-primary);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--theme-surface);
  color: var(--theme-primary);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table .col-view {
  width: 72px;
  text-align: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-view {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 4px;
  background: #5c6675;
  color: #fff;
  text-decoration: none;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-view:hover {
  background: var(--theme-navy);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-sort {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-empty {
  margin: 24px 0 0;
  text-align: center;
  color: var(--theme-muted);
}

@media (max-width: 767px) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-search {
    justify-content: stretch;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-search select {
    flex: 0 0 88px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-search input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table .col-bible,
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-board-table .col-speaker {
    /* keep columns; horizontal scroll handles overflow */
  }
}

/* ===== Church album board (list / summary / grid) ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album {
  padding-bottom: 40px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid #d8dde5;
  border-bottom: 1px solid #d8dde5;
  margin-bottom: 18px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-view-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #8a93a0;
  cursor: pointer;
  padding: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-view-btn:hover {
  color: var(--theme-navy);
  background: #f3f5f8;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-view-btn.is-active {
  color: #444;
  background: #e9edf2;
  border-color: #d5dbe3;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-count {
  margin: 0;
  font-size: 0.92rem;
  color: #666;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 0 0 auto;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-search select,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-search input {
  min-height: 36px;
  border: 1px solid #cfd5de;
  background: #fff;
  color: var(--theme-navy);
  font: inherit;
  font-size: 0.9rem;
  padding: 0 10px;
  box-sizing: border-box;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-search select {
  min-width: 72px;
  flex: 0 0 auto;
  border-right: 0;
  border-radius: 2px 0 0 2px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-search input {
  width: 180px;
  flex: 1 1 auto;
  min-width: 120px;
  border-radius: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-search-btn {
  flex: 0 0 auto;
  min-width: 56px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #555;
  border-left: 0;
  border-radius: 0 2px 2px 0;
  background: #555;
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-search-btn:hover {
  background: #333;
  border-color: #333;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-table .col-author,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-table .col-views {
  width: 88px;
  text-align: center;
  color: #666;
  white-space: nowrap;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-table .col-title a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  color: #9aa3af;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 2px;
  background: #f0843c;
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-summary {
  list-style: none;
  margin: 0;
  padding: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-summary > li {
  border-bottom: 1px solid #e4e8ee;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-summary-card {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 4px;
  text-decoration: none;
  color: inherit;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f5;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-thumb.is-empty::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #e8edf3 0%, #f5f7fa 48%, #dde4ec 100%);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-summary-body {
  min-width: 0;
  display: grid;
  gap: 12px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-summary-body strong {
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px solid #d8dde5;
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: #777;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-grid {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 22px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-grid-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-grid-card .ew-album-thumb .ew-album-new {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-grid-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
}

@media (max-width: 767px) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-toolbar {
    align-items: stretch;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-search {
    width: 100%;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-search input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-summary-card {
    grid-template-columns: 112px 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-summary-body strong {
    font-size: 1rem;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-grid {
    grid-template-columns: 1fr;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-table .col-author,
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-album-table .col-views {
    /* keep; table scrolls horizontally via wrap */
  }
}

/* ===== Monthly calendar (reference board style) ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal {
  padding-bottom: 40px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 22px;
  max-width: 420px;
  margin-inline: auto;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-title {
  margin: 0;
  min-width: 4.8em;
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #444;
  letter-spacing: 0.02em;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #777;
  text-decoration: none;
  font-size: 2rem;
  line-height: 1;
  border-radius: 8px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-nav:hover {
  color: var(--theme-navy);
  background: var(--theme-surface);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8dde5;
  background: #fff;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 640px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-table th,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-table td {
  border: 1px solid #e1e5ec;
  vertical-align: top;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-table thead th {
  height: 42px;
  background: #f5f6f8;
  color: #444;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  vertical-align: middle;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-table thead th.is-sun { color: #e15a5a; }
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-table thead th.is-sat { color: #3db5d8; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-cell {
  height: 110px;
  padding: 8px;
  background: #fff;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-cell.is-outside {
  background: #fafbfc;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-cell.is-today {
  background: #f0f2f5;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-dayline {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
  min-height: 1.2em;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-day {
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  line-height: 1.2;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-cell.is-sun .ew-cal-day { color: #e15a5a; }
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-cell.is-sat .ew-cal-day { color: #3db5d8; }

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-holiday {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e15a5a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-events li {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #4a5563;
  padding: 2px 4px;
  border-radius: 3px;
  background: #f3f5f8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-more {
  background: transparent !important;
  color: #8a93a0 !important;
  padding-left: 2px !important;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-list {
  margin-top: 28px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-list h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: var(--theme-navy);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e1e5ec;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 4px;
  border-bottom: 1px solid #e1e5ec;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-list time {
  flex: 0 0 auto;
  color: #8a93a0;
  font-size: 0.9rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-list strong {
  font-weight: 600;
  color: #333;
  word-break: keep-all;
}

@media (max-width: 767px) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-cell {
    height: 78px;
    padding: 5px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-events li:nth-child(n+2) {
    display: none;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-holiday {
    display: none;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-cal-head {
    gap: 16px;
  }
}

/* ===== Unified detail view (news / sermon / bulletin / album) ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail {
  padding-bottom: 48px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-head {
  margin: 0 0 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-title {
  margin: 0;
  padding: 14px 18px;
  background: #5f6368;
  color: #fff;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 12px 4px;
  border-bottom: 1px solid #d8dde5;
  color: #888;
  font-size: 0.9rem;
  line-height: 1.5;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-meta > span {
  display: inline-flex;
  align-items: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-meta > span + span::before {
  content: '|';
  display: inline-block;
  margin: 0 10px;
  color: #c5CAD3;
  font-weight: 400;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-body {
  padding: 28px 4px 8px;
  color: #333;
  font-size: 1rem;
  line-height: 1.85;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-plain .ew-detail-body {
  padding-top: 8px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-prose {
  white-space: pre-wrap;
  word-break: keep-all;
  margin: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-prose + .ew-detail-embed,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-embed + .ew-detail-prose,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-prose + .ew-detail-photos {
  margin-top: 24px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-embed {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: #111;
  margin: 0 0 8px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-nav {
  display: flex;
  justify-content: flex-end;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e4e8ee;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #cfd5de;
  background: #f7f8fa;
  color: #444;
  text-decoration: none;
  font-size: 0.92rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-back:hover {
  background: #eef1f5;
  color: var(--theme-navy);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-bulletin {
  width: min(100%, 560px);
  margin: 0 auto;
  border: 1px solid #e4e8ee;
  background: #fff;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-body-bulletin {
  padding-top: 28px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-bulletin-order {
  list-style: none;
  margin: 0;
  padding: 10px 16px 14px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-bulletin-order li {
  display: grid;
  grid-template-columns: minmax(4.5rem, 6.5rem) minmax(0, 1fr) minmax(3.2rem, 5.5rem);
  gap: 8px 12px;
  align-items: center;
  justify-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid #eef1f5;
  text-align: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-bulletin-order li:last-child {
  border-bottom: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-bulletin-title {
  font-weight: 700;
  color: #333;
  word-break: keep-all;
  justify-self: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-bulletin-body {
  color: #444;
  word-break: keep-all;
  justify-self: center;
  text-align: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-bulletin-people {
  text-align: center;
  color: #777;
  font-size: 0.92rem;
  justify-self: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-lead {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--theme-navy);
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-verse {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--theme-primary);
  background: #f7f9fc;
  color: #526074;
  font-size: 0.95rem;
  line-height: 1.7;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-facts {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid #e4e8ee;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-facts > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid #eef1f5;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-facts dt {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-facts dd {
  margin: 0;
  color: #333;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4e8ee;
  background: #fff;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-table th,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef1f5;
  text-align: center;
  word-break: keep-all;
  font-size: 0.95rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-table thead th {
  background: #f5f7fa;
  color: #666;
  font-weight: 600;
  border-bottom-color: #e4e8ee;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-table tbody tr:last-child td {
  border-bottom: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-table td:first-child {
  font-weight: 600;
  color: #333;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-body .cs-map,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-body #csMap {
  margin-top: 24px;
  border-radius: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .cs-map {
  margin-top: 8px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .cs-map h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--theme-navy);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .cs-map > p {
  margin: 0 0 12px;
  color: var(--theme-muted);
  font-size: 0.95rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .cs-map-canvas {
  min-height: 320px;
  border: 1px solid #e4e8ee;
  border-radius: 0;
  background: #eef1f5;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .cs-map-fallback {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .cs-map-fallback a {
  color: var(--theme-primary);
  text-decoration: none;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-photo {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #eef1f5;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-photo span {
  display: block;
  padding: 8px 4px 0;
  font-size: 0.85rem;
  color: #777;
}

@media (max-width: 767px) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-title {
    padding: 12px 14px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-body {
    padding: 22px 2px 4px;
    font-size: 0.98rem;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-bulletin-order {
    padding: 6px 10px 10px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-bulletin-order li {
    grid-template-columns: minmax(3.8rem, 5.2rem) minmax(0, 1fr) minmax(2.8rem, 4.4rem);
    gap: 6px 8px;
    padding: 11px 2px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-detail-facts > div {
    grid-template-columns: 72px 1fr;
  }
}

/* ===== About: motto / verse / greeting ===== */
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page-about {
  width: min(100% - 40px, 1120px);
  padding-top: 28px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about {
  padding-bottom: 48px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-layout.has-visual {
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 40px 48px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-main {
  display: grid;
  gap: 34px;
  min-width: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-block {
  opacity: 0;
  transform: translateY(14px);
  animation: ewAboutIn 0.7s ease forwards;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-motto { animation-delay: 0.05s; }
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-verse { animation-delay: 0.16s; }
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-greeting { animation-delay: 0.28s; }

@keyframes ewAboutIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-block {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--theme-primary);
  text-transform: none;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-motto-text {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 2.55rem);
  line-height: 1.35;
  font-weight: 800;
  color: #1f2d3d;
  word-break: keep-all;
  letter-spacing: -0.02em;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-welcome {
  margin: 14px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #3a4a5c;
  word-break: keep-all;
  line-height: 1.55;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-verse-box {
  margin: 0;
  padding: 22px 24px;
  background: #eef3f9;
  border: 0;
  color: #425466;
  text-align: center;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-verse-box p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 500;
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-accent-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--theme-primary);
  word-break: keep-all;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-accent-title::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: color-mix(in srgb, var(--theme-primary) 55%, #d5dde8);
  min-width: 48px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-prose {
  margin: 0;
  white-space: pre-wrap;
  word-break: keep-all;
  color: #334155;
  font-size: 1rem;
  line-height: 1.9;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-sign {
  margin: 28px 0 0;
  font-size: 1rem;
  color: #1f2d3d;
  font-weight: 600;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-sign strong {
  font-weight: 800;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual {
  position: relative;
  min-height: 320px;
  margin-top: 8px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 100% 88%, 0 100%);
  background: linear-gradient(155deg, #d7e3f1, #eef2f7 55%, #c9d7e8);
  min-height: 420px;
  animation: ewAboutVisualIn 0.9s ease 0.2s both;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual-frame.is-placeholder::after {
  content: '';
  position: absolute;
  inset: 18% 22%;
  border: 1px solid color-mix(in srgb, var(--theme-primary) 35%, transparent);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  opacity: 0.55;
}

@keyframes ewAboutVisualIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual-frame {
    animation: none;
  }
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual-deco[data-deco='a'] {
  width: 160px;
  height: 160px;
  right: -18px;
  top: 18%;
  background: color-mix(in srgb, var(--theme-primary) 28%, transparent);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual-deco[data-deco='b'] {
  width: 92px;
  height: 92px;
  right: 42px;
  bottom: 12%;
  border: 2px solid color-mix(in srgb, var(--theme-primary) 45%, transparent);
  background: transparent;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual-deco[data-deco='dots'] {
  width: 88px;
  height: 88px;
  left: -8px;
  bottom: 8%;
  border-radius: 0;
  background-image: radial-gradient(circle, color-mix(in srgb, var(--theme-primary) 55%, #9bb4d0) 1.4px, transparent 1.6px);
  background-size: 12px 12px;
  opacity: 0.7;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-facts {
  margin-top: 40px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about .cs-map,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about #csMap {
  margin-top: 28px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about .cs-giving {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--theme-line, #e4e8ee);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about .cs-giving h2 {
  margin: 0 0 14px;
  font-family: var(--theme-font-display, inherit);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-navy, #243447);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about .cs-giving .cs-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about .cs-giving .cs-meta > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: baseline;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about .cs-giving .cs-meta dt {
  margin: 0;
  color: var(--theme-muted, #6b7785);
  font-size: 0.875rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about .cs-giving .cs-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  color: var(--theme-navy, #243447);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-history,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-staff {
  margin-top: 40px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-history-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-history-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(36, 52, 71, 0.08);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-history-year {
  font-weight: 700;
  color: var(--theme-navy, #243447);
  font-size: 1.05rem;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-history-title {
  margin: 0;
  font-weight: 700;
  color: var(--theme-navy, #243447);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-history-desc {
  margin: 6px 0 0;
  color: var(--theme-muted, #6b7785);
  line-height: 1.55;
  white-space: pre-line;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-staff-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-staff-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-staff-photo {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f6;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-staff-photo.is-placeholder {
  background:
    linear-gradient(135deg, rgba(36, 52, 71, 0.06), rgba(36, 52, 71, 0.02));
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-staff-name {
  margin: 0;
  font-weight: 700;
  color: var(--theme-navy, #243447);
}

:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-staff-role,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-staff-ministry,
:is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-staff-contact {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--theme-muted, #6b7785);
}

@media (max-width: 960px) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-layout.has-visual {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    min-height: 260px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual-frame,
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual-frame img {
    min-height: 280px;
  }
}

@media (max-width: 767px) {
  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-page-about {
    padding-top: 18px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-main {
    gap: 28px;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-motto-text {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-verse-box {
    padding: 18px 16px;
    text-align: left;
  }

  :is(.theme-editorial-warm, .cs-ew-boards, .cs-ew-about) .ew-about-visual-deco[data-deco='a'] {
    width: 110px;
    height: 110px;
  }
}
