/* 주보플러스 교회 홈페이지 — shared design system + 5 templates */

.church-site {
  --cs-ink: #18212f;
  --cs-muted: #5b6573;
  --cs-line: #e6eaf0;
  --cs-surface: #ffffff;
  --cs-soft: #f5f7fa;
  --cs-radius: 18px;
  --cs-shadow: 0 12px 40px rgba(24, 33, 47, 0.08);
  margin: 0;
  color: var(--cs-ink);
  background: var(--cs-surface);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.6;
  overflow-x: clip;
}

.church-site h1,
.church-site h2,
.church-site h3,
.church-site h4,
.church-site .cs-brand-text strong {
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.church-site *,
.church-site *::before,
.church-site *::after { box-sizing: border-box; }

.cs-header-inner,
.cs-main,
.cs-footer-inner,
.cs-page-title,
.cs-home,
.cs-section {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.cs-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cs-line);
}
.cs-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.cs-brand {
  display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none; min-width: 0; max-width: min(70vw, 420px);
}
.cs-brand img {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  object-fit: contain; background: transparent;
}
.cs-brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--cs-primary) 16%, white);
  color: var(--cs-primary); font-weight: 700;
}
.cs-brand-text { display: grid; min-width: 0; gap: 2px; }
.cs-brand-text strong {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 1.05rem; letter-spacing: -0.02em;
}
.cs-brand-text em {
  font-style: normal; color: var(--cs-muted); font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cs-nav { display: flex; gap: 4px 8px; flex-wrap: wrap; align-items: center; }
.cs-nav-head { display: none; }
.cs-nav a {
  color: var(--cs-muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 10px; border-radius: 999px; max-width: 100%; word-break: keep-all;
}
.cs-nav a.is-active,
.cs-nav a:hover { color: var(--cs-ink); background: var(--cs-soft); }
.cs-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.cs-nav-parent-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.cs-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cs-muted);
  cursor: pointer;
  border-radius: 999px;
}
.cs-nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}
.cs-nav-item.is-open .cs-nav-caret { transform: rotate(180deg); }
.cs-nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--cs-line);
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  z-index: 40;
  flex-direction: column;
  gap: 2px;
}
.cs-nav-item.has-sub:hover > .cs-nav-sub,
.cs-nav-item.has-sub:focus-within > .cs-nav-sub {
  display: flex;
}
.cs-nav-sub a {
  display: block;
  border-radius: 0;
  white-space: nowrap;
}
.cs-nav a:focus,
.cs-btn:focus,
.cs-menu-btn:focus,
.cs-text-link:focus { outline: 2px solid var(--cs-primary); outline-offset: 2px; }
.cs-menu-btn {
  display: none; background: none; border: 0; width: 42px; height: 42px; padding: 8px; cursor: pointer;
}
.cs-menu-btn span { display: block; height: 2px; background: currentColor; margin: 6px 0; border-radius: 2px; }

/* Hero — full-bleed banner background + text overlay */
.cs-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: end stretch;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
.cs-hero.no-image {
  color: var(--cs-ink);
  background: var(--cs-soft);
}
.cs-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cs-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.cs-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.25) 0%, rgba(16, 24, 40, 0.62) 100%);
}
.cs-hero-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: end start;
  padding: 28px;
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--cs-primary) 22%, white),
    color-mix(in srgb, var(--cs-primary) 8%, #eef2f7));
}
.cs-hero-fallback-label {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  color: color-mix(in srgb, var(--cs-primary) 70%, #18212f);
  opacity: .55; letter-spacing: -0.03em; max-width: 90%; overflow-wrap: anywhere;
}
.cs-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  max-width: 720px;
  justify-self: start;
}
.cs-kicker,
.cs-eyebrow {
  margin: 0 0 8px; color: var(--cs-primary); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.cs-hero.has-image .cs-kicker { color: rgba(255, 255, 255, 0.85); }
.cs-hero h1,
.cs-page-title h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem); line-height: 1.18;
  margin: 0 0 14px; letter-spacing: -0.03em; overflow-wrap: anywhere; word-break: keep-all;
}
.cs-hero.has-image h1 { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }
.cs-hero-sub {
  margin: 0 0 12px; font-size: 1.15rem; color: var(--cs-ink); font-weight: 600;
}
.cs-hero.has-image .cs-hero-sub { color: rgba(255, 255, 255, 0.95); }
.cs-lead, .cs-prose, .cs-section-lead {
  white-space: pre-line; line-height: 1.75; color: var(--cs-muted); margin: 0 0 18px;
}
.cs-hero.has-image .cs-lead { color: rgba(255, 255, 255, 0.88); }
.cs-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.cs-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  background: var(--cs-primary); color: #fff; text-decoration: none; border: 0;
  font-weight: 600; max-width: 100%;
}
.cs-btn-ghost {
  background: transparent; color: var(--cs-primary);
  border: 1px solid color-mix(in srgb, var(--cs-primary) 45%, white);
}
.cs-hero.has-image .cs-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}
.cs-text-link {
  display: inline-flex; margin-top: 12px; color: var(--cs-primary);
  font-weight: 600; text-decoration: none; font-size: 14px;
}
.cs-hero-meta {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 8px;
}
.cs-hero.has-image .cs-hero-meta { max-width: 420px; }
.cs-hero-meta li,
.cs-contact-card p,
.cs-footer-contact p {
  display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: start;
  margin: 0; font-size: 14px;
}
.cs-hero-meta span,
.cs-contact-card span,
.cs-footer-contact span {
  color: var(--cs-muted); font-size: 12px; padding-top: 2px;
}
.cs-hero.has-image .cs-hero-meta span { color: rgba(255, 255, 255, 0.7); }
.cs-hero.has-image .cs-hero-meta strong { color: #fff; }
.cs-hero-meta strong,
.cs-contact-card strong { font-weight: 600; overflow-wrap: anywhere; }
.cs-page-title { padding: 36px 0 8px; }
.template-modern.cs-ew-boards .cs-page-title {
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--theme-line, var(--cs-line));
  margin-bottom: 18px;
}
.template-modern.cs-ew-boards .cs-page-title h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}
.cs-main { padding: 8px 0 64px; }

/* Home sections */
.cs-home { padding-bottom: 24px; }
.cs-home-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; margin: 8px 0 28px;
}
.cs-home-block,
.cs-panel,
.cs-sermon-card,
.cs-album-card,
.cs-contact-card,
.cs-section-welcome,
.cs-empty-card {
  border: 1px solid var(--cs-line);
  border-radius: var(--cs-radius);
  background: var(--cs-surface);
}
.cs-home-block,
.cs-panel,
.cs-contact-card,
.cs-section-welcome { padding: 22px; }
.cs-span-all { grid-column: 1 / -1; }
.cs-block-head { margin-bottom: 14px; }
.cs-home-block h2,
.cs-section h2,
.cs-panel h2 {
  margin: 0; font-size: 1.25rem; letter-spacing: -0.02em; word-break: keep-all;
}
.cs-block-title {
  display: block; margin: 6px 0 10px; font-size: 1.1rem; overflow-wrap: anywhere;
}
.cs-meta-line { color: var(--cs-muted); font-size: 13px; margin: 0 0 8px; }
.cs-feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cs-feed a {
  display: grid; gap: 4px; color: inherit; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--cs-line);
}
.cs-feed a:last-child { border-bottom: 0; }
.cs-feed strong { overflow-wrap: anywhere; word-break: keep-all; }
.cs-feed em { font-style: normal; color: var(--cs-primary); font-size: 12px; font-weight: 600; }
.cs-feed span, .cs-feed time { color: var(--cs-muted); font-size: 13px; }
.cs-feed-events li {
  display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--cs-line);
}
.cs-feed-events li:last-child { border-bottom: 0; }
.cs-empty-card {
  padding: 16px 18px; color: var(--cs-muted); background: var(--cs-soft); border-style: dashed;
}
.cs-section { margin: 28px auto; }
.cs-section-head { margin-bottom: 16px; }
.cs-section-head-row {
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
}
.cs-section-welcome {
  background: color-mix(in srgb, var(--cs-primary) 8%, white);
  border-color: color-mix(in srgb, var(--cs-primary) 18%, white);
}
.cs-contact-grid {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px;
}
.cs-map-canvas { min-height: 240px; background: var(--cs-soft); border-radius: 14px; }

.cs-map-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  pointer-events: none;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.cs-map-marker-label {
  max-width: 220px;
  margin-bottom: 6px;
  padding: 5px 10px;
  border: 1px solid #e15a5a;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.cs-map-marker-pin {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #e53935;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
  transform: rotate(-45deg);
}
.cs-map-fallback { margin: 10px 0 0; font-size: 13px; }
.cs-giving { margin-top: 28px; }
.cs-giving h2 { margin: 0 0 12px; font-size: 1.15rem; }
.cs-note { color: var(--cs-muted); font-size: 13px; margin: 0 0 14px; }

/* Lists / cards */
.cs-list { list-style: none; padding: 0; margin: 0; }
.cs-list li { border-bottom: 1px solid var(--cs-line); }
.cs-list a {
  color: inherit; text-decoration: none; display: flex; gap: 12px;
  align-items: center; justify-content: space-between; padding: 16px 4px;
}
.cs-list a strong { overflow-wrap: anywhere; }
.cs-list a span, .cs-list time { color: var(--cs-muted); font-size: 13px; flex-shrink: 0; }
.cs-list-events li {
  display: flex; gap: 16px; align-items: baseline; justify-content: space-between;
  padding: 16px 4px; border-bottom: 1px solid var(--cs-line);
}
.cs-sermon-grid,
.cs-album-grid,
.cs-photo-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.cs-sermon-card,
.cs-album-card {
  display: grid; gap: 8px; padding: 14px; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cs-sermon-card:hover,
.cs-album-card:hover { transform: translateY(-2px); box-shadow: var(--cs-shadow); }
.cs-sermon-card strong,
.cs-album-card strong { overflow-wrap: anywhere; word-break: keep-all; }
.cs-sermon-card em { font-style: normal; color: var(--cs-primary); font-size: 12px; font-weight: 600; }
.cs-thumb,
.cs-album-fallback {
  display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--cs-primary) 28%, #dbe4f0),
    color-mix(in srgb, var(--cs-primary) 8%, #f4f6f8));
}
.cs-album-card img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; display: block;
}
.cs-embed { position: relative; padding-top: 56.25%; border-radius: 16px; overflow: hidden; margin: 16px 0; }
.cs-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-meta { display: grid; gap: 10px; margin: 18px 0; }
.cs-meta div {
  display: grid; grid-template-columns: 88px 1fr; gap: 8px;
  padding: 12px 0; border-bottom: 1px solid var(--cs-line);
}
.cs-meta dt { color: var(--cs-muted); font-size: 13px; }
.cs-meta dd { margin: 0; overflow-wrap: anywhere; }
.cs-bulletin-block {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--cs-line);
}
.cs-bulletin-block h3 { margin: 0 0 8px; font-size: 1.05rem; }
.cs-badge {
  background: var(--cs-primary); color: #fff; font-style: normal; font-size: 12px;
  padding: 2px 8px; border-radius: 999px; margin-right: 6px;
}
.cs-photo {
  border: 0; padding: 0; background: none; cursor: pointer; text-align: left;
}
.cs-photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block;
}
.cs-photo span { display: block; margin-top: 6px; font-size: 13px; color: var(--cs-muted); }
.cs-lightbox { border: 0; padding: 16px; max-width: 92vw; border-radius: 16px; }
.cs-lightbox img { max-width: min(880px, 86vw); max-height: 78vh; display: block; }

/* Footer */
.cs-footer {
  border-top: 1px solid var(--cs-line); background: var(--cs-soft);
  padding: 40px 0 48px; margin-top: 24px;
}
.cs-footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 24px;
}
.cs-footer-brand {
  display: flex; align-items: flex-start; gap: 14px;
}
.cs-footer-logo {
  width: 48px; height: 48px; border-radius: 12px; object-fit: contain;
  background: transparent; flex-shrink: 0;
}
.cs-footer-brand strong { font-size: 1.1rem; }
.cs-footer-muted, .cs-footer-slogan, .cs-powered { color: var(--cs-muted); font-size: 14px; }
.cs-footer a { color: inherit; }

/* ========== MODERN ========== */
.template-modern {
  --cs-ink: #0f172a;
  --cs-muted: #64748b;
  --cs-line: #e2e8f0;
  --cs-soft: #f8fafc;
  --cs-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
  background:
    radial-gradient(1100px 380px at 8% -12%, color-mix(in srgb, var(--cs-primary) 6%, transparent), transparent 68%),
    #f8fafc;
}
.template-modern .cs-hero { place-items: end stretch; }
.template-modern .cs-hero > .cs-hero-copy > .cs-hero-actions { margin-bottom: 36px; }
.template-modern .cs-home { margin-top: 40px; }
@media (max-width: 768px) {
  .template-modern .cs-hero-copy {
    padding-bottom: clamp(56px, 12vw, 88px);
  }
  .template-modern .cs-hero > .cs-hero-copy > .cs-hero-actions {
    margin-bottom: 20px;
  }
  .template-modern .cs-home {
    margin-top: 36px;
    padding-top: 8px;
  }
  .template-modern .cs-home-grid {
    margin-top: 20px;
  }
}
.template-modern .cs-hero-meta { margin-top: 4px; gap: 10px; }
.template-modern .cs-hero.has-image .cs-hero-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28) 0%, rgba(15, 23, 42, 0.68) 100%);
}

.template-modern .cs-home-block {
  border: 1px solid color-mix(in srgb, var(--cs-primary) 8%, var(--cs-line));
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--cs-primary) 3%, #ffffff) 0%,
      #ffffff 48%,
      color-mix(in srgb, var(--cs-primary) 2%, #f8fafc) 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}
.template-modern .cs-home-block h2 {
  color: var(--cs-ink);
  position: relative;
  display: inline-block;
  padding-left: 12px;
}
.template-modern .cs-home-block h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 3px;
  border-radius: 999px;
  background: var(--cs-primary);
}
.template-modern .cs-block-head { margin-bottom: 12px; }
.template-modern .cs-feed { gap: 2px; }
.template-modern .cs-feed a,
.template-modern .cs-feed-events li {
  padding: 8px 0;
  gap: 2px;
}

.template-modern .cs-section-contact .cs-eyebrow { display: none; }
.template-modern .cs-section-contact .cs-map > h2 { display: none; }
.template-modern .cs-section-contact .cs-contact-col > .cs-section-head {
  margin-bottom: 14px;
}
.template-modern .cs-section-contact .cs-contact-col > .cs-section-head h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.template-modern .cs-contact-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 26px;
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--cs-primary) 3%, #ffffff) 0%,
      #ffffff 55%,
      color-mix(in srgb, var(--cs-primary) 2%, #f8fafc) 100%);
}
.template-modern .cs-contact-info {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}
.template-modern .cs-contact-actions {
  margin-top: 28px;
  margin-bottom: 0;
  padding-top: 22px;
  border-top: 1px solid var(--cs-line);
}

/* ========== WARM ========== */
.template-warm {
  --cs-ink: #3a2f28;
  --cs-muted: #7a6a60;
  --cs-line: #eadfd4;
  --cs-soft: #f7efe6;
  --cs-surface: #fffaf5;
  background:
    linear-gradient(180deg, #fff8f1 0%, #fffaf5 38%, #f7efe6 100%);
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
}
.template-warm .cs-header {
  position: static; background: transparent; border: 0; backdrop-filter: none;
}
.template-warm .cs-nav a {
  background: rgba(255,255,255,.78); border: 1px solid var(--cs-line); padding: 8px 14px;
}
.template-warm .cs-nav a.is-active {
  background: color-mix(in srgb, var(--cs-primary) 14%, white);
  color: var(--cs-ink);
}
.template-warm h1, .template-warm h2 {
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; font-weight: 600;
}
.template-warm .cs-home-block,
.template-warm .cs-section-welcome {
  border-radius: 28px; background: rgba(255,255,255,.88);
}
.template-warm .cs-section-welcome { text-align: center; }

/* ========== CLASSIC / MINIMAL / YOUTH ==========
   Full visual systems live in /css/themes/*.css */

/* Responsive */
@media (max-width: 1024px) {
  .cs-home-grid,
  .cs-sermon-grid,
  .cs-album-grid,
  .cs-photo-grid,
  .cs-contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Shared mobile drawer (Modern and other cs-nav templates) — Warm-style slide-over */
.cs-mobile-backdrop {
  display: none;
}
.cs-mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .cs-menu-btn { display: block; }
  .cs-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
  }
  .cs-nav-close {
    border: 1px solid var(--cs-line); background: transparent; color: inherit;
    border-radius: 999px; padding: 8px 14px; cursor: pointer;
  }
  /* Modern uses slide-over drawer; hide desktop nav on mobile */
  .cs-nav {
    display: none !important;
  }
  .church-site.nav-open,
  .church-site.cs-menu-open { overflow: hidden; }

  /* Backdrop must stay hidden until the drawer opens — otherwise mobile
     preview iframes (≤768px) get a permanent dim overlay that blocks clicks. */
  .cs-mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 60;
    pointer-events: none;
  }
  .church-site.cs-menu-open .cs-mobile-backdrop,
  .church-site.nav-open .cs-mobile-backdrop {
    display: block;
    pointer-events: auto;
  }
  .cs-mobile-backdrop[hidden] {
    display: none !important;
    pointer-events: none !important;
  }
  .cs-mobile-menu {
    display: flex;
    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;
    flex-direction: column;
    gap: 18px;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.12);
    pointer-events: none;
  }
  .church-site.cs-menu-open .cs-mobile-menu,
  .church-site.nav-open .cs-mobile-menu {
    transform: translateX(0);
    pointer-events: auto;
  }
  .cs-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .cs-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .cs-mobile-brand img,
  .cs-mobile-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .cs-mobile-brand-mark {
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--cs-primary) 14%, white);
    color: var(--cs-primary);
    font-weight: 800;
    font-size: 14px;
  }
  .cs-mobile-brand em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: var(--cs-muted);
  }
  .cs-mobile-brand strong {
    display: block;
    font-size: 0.98rem;
    color: var(--cs-ink);
  }
  .cs-mobile-close {
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--cs-muted);
    cursor: pointer;
    padding: 0 8px;
    font-size: 14px;
  }
  .cs-mobile-nav {
    display: grid;
    gap: 2px;
    overflow: auto;
    flex: 1;
  }
  .cs-mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 10px;
    border-radius: 12px;
    color: var(--cs-ink);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
  }
  .cs-mobile-nav a.is-active {
    background: color-mix(in srgb, var(--cs-primary) 10%, white);
    color: var(--cs-primary);
  }
  .cs-mobile-nav-item {
    display: flex;
    flex-direction: column;
  }
  .cs-mobile-nav-item .cs-nav-parent-row {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .cs-mobile-nav-item .cs-nav-parent-row > a { flex: 1; }
  .cs-mobile-nav-sub {
    display: none;
    padding: 0 0 6px 12px;
  }
  .cs-mobile-nav-item.is-open > .cs-mobile-nav-sub { display: grid; gap: 2px; }
  .cs-mobile-cta {
    margin-top: auto;
    width: 100%;
    border-radius: 14px;
  }

  .cs-nav a { font-size: 1.05rem; padding: 14px 12px; border-radius: 12px; }
  .cs-nav-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .cs-nav-parent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }
  .cs-nav-parent-row > a { flex: 1; }
  .cs-nav-toggle { display: inline-flex; }
  .cs-nav-item.has-sub:hover > .cs-nav-sub,
  .cs-nav-item.has-sub:focus-within > .cs-nav-sub {
    display: none;
  }
  .cs-nav-item.has-sub.is-open > .cs-nav-sub {
    display: flex;
  }
  .cs-nav-sub {
    position: static;
    min-width: 0;
    margin: 0 0 4px 12px;
    padding: 4px 0 4px 8px;
    border: 0;
    border-left: 2px solid var(--cs-line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .cs-nav-sub a { font-size: 0.98rem; padding: 10px 12px; }
  .cs-home-grid,
  .cs-sermon-grid,
  .cs-album-grid,
  .cs-photo-grid,
  .cs-contact-grid,
  .cs-footer-inner { grid-template-columns: 1fr; }
  .cs-hero {
    height: clamp(280px, 62vw, 480px);
  }
  .cs-hero-copy { padding: 40px 0 36px; }
  .template-warm .cs-nav a { background: transparent; border: 0; }
}

@media (max-width: 390px) {
  .cs-header-inner, .cs-main, .cs-home, .cs-section, .cs-footer-inner, .cs-page-title {
    width: calc(100% - 24px);
  }
  .cs-hero-copy { width: calc(100% - 24px); }
  .cs-hero-actions .cs-btn { width: 100%; }
  .cs-brand-text em { display: none; }
}

/* PHASE 3.7 — visual acceptance */
.cs-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cs-list-main { display: grid; gap: 6px; min-width: 0; flex: 1; }
.cs-back-link,
.cs-detail-nav { margin-top: 14px; }
.cs-back-link {
  display: inline-flex; color: var(--cs-muted); text-decoration: none; font-size: 14px; font-weight: 600;
}
.cs-back-link:hover { color: var(--cs-primary); }
.cs-hero-fallback {
  position: relative; overflow: hidden;
}
.cs-hero-fallback-shape {
  display: block;
  position: absolute; inset: auto -10% -20% 35%;
  width: 70%; height: 70%; border-radius: 40% 60% 55% 45%;
  background: color-mix(in srgb, var(--cs-primary) 28%, transparent);
  filter: blur(2px);
}
.template-modern .cs-hero-fallback {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cs-primary) 10%, #f8fafc), #f1f5f9 55%, #e2e8f0),
    repeating-linear-gradient(-18deg, transparent 0 14px, rgba(255,255,255,.35) 14px 15px);
}
.cs-nav a:focus-visible,
.cs-btn:focus-visible,
.cs-menu-btn:focus-visible,
.cs-text-link:focus-visible,
.cs-back-link:focus-visible,
.cs-photo:focus-visible {
  outline: 2px solid var(--cs-primary);
  outline-offset: 2px;
}
.cs-page-title { display: grid; gap: 8px; }

/* Sermon thumbnails */
.cs-thumb-img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 12px; background: var(--cs-soft);
}

/* Worship timetable */
.cs-table-wrap { overflow-x: auto; }
.cs-worship-table {
  width: 100%; border-collapse: collapse; min-width: 480px;
}
.cs-worship-table th,
.cs-worship-table td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--cs-line);
  vertical-align: top; word-break: keep-all;
}
.cs-worship-table th {
  font-size: 13px; color: var(--cs-muted); font-weight: 600;
  background: var(--cs-soft);
}
.cs-worship-table td:first-child { font-weight: 600; }

/* Month calendar */
.cs-calendar { display: grid; gap: 16px; }
.cs-calendar-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cs-calendar-label { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.cs-calendar-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--cs-line); color: inherit; font-size: 1.4rem; line-height: 1;
  background: var(--cs-surface);
}
.cs-calendar-nav:hover { border-color: var(--cs-primary); color: var(--cs-primary); }
.cs-calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
  text-align: center; font-size: 12px; color: var(--cs-muted); font-weight: 600;
}
.cs-calendar-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
}
.cs-calendar-cell {
  min-height: 92px; border: 1px solid var(--cs-line); border-radius: 12px;
  padding: 8px; background: var(--cs-surface);
}
.cs-calendar-cell.is-outside { background: transparent; border-color: transparent; }
.cs-calendar-cell.has-events { border-color: color-mix(in srgb, var(--cs-primary) 35%, var(--cs-line)); }
.cs-calendar-day { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.cs-calendar-events { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.cs-calendar-events li {
  font-size: 11px; line-height: 1.3; padding: 3px 5px; border-radius: 6px;
  background: color-mix(in srgb, var(--cs-primary) 12%, transparent);
  color: var(--cs-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cs-calendar-more { background: transparent !important; color: var(--cs-muted) !important; padding-left: 2px !important; }
.cs-calendar-list h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.cs-calendar-empty { margin-top: 4px; }
@media (max-width: 768px) {
  .cs-calendar-cell { min-height: 68px; padding: 5px; border-radius: 8px; }
  .cs-calendar-events li { font-size: 10px; padding: 2px 4px; }
  .cs-calendar-events li:nth-child(n+2) { display: none; }
  .cs-calendar-more { display: block !important; }
}

/* Paper-style bulletin (예배순서) */
.cs-bulletin {
  display: grid; gap: 16px;
  max-width: 720px; margin-inline: auto; width: 100%;
}
.cs-bulletin-head h2 {
  margin: 0 0 8px; font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  letter-spacing: -0.02em; line-height: 1.25;
}
.cs-bulletin-paper {
  background: var(--cs-surface);
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--cs-line) 80%, transparent);
  box-shadow: 0 10px 28px rgba(24, 33, 47, 0.06);
  padding: 6px 18px 10px;
}
.cs-bulletin-order {
  list-style: none; margin: 0; padding: 0;
}
.cs-bulletin-order li {
  display: grid;
  grid-template-columns: minmax(4.8rem, 7.5rem) minmax(0, 1fr) minmax(3.5rem, 7.5rem);
  gap: 8px 14px;
  align-items: baseline;
  padding: 15px 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--cs-line) 90%, transparent);
}
.cs-bulletin-order li:last-child { border-bottom: 0; }
.cs-bulletin-title {
  font-weight: 700; font-size: 0.98rem; color: var(--cs-ink);
  word-break: keep-all;
}
.cs-bulletin-body {
  font-size: 0.95rem; color: var(--cs-ink); line-height: 1.45;
  word-break: keep-all; text-align: center;
}
.cs-bulletin-people {
  font-size: 0.9rem; color: var(--cs-muted); text-align: right;
  white-space: nowrap; justify-self: end;
}
@media (max-width: 560px) {
  .cs-bulletin { max-width: none; }
  .cs-bulletin-paper { padding: 4px 14px 8px; border-radius: 16px; }
  .cs-bulletin-order li {
    grid-template-columns: minmax(4.2rem, 5.8rem) minmax(0, 1fr) minmax(3rem, 5.2rem);
    gap: 6px 10px;
    padding: 14px 0;
  }
  .cs-bulletin-title { font-size: 0.92rem; }
  .cs-bulletin-body { font-size: 0.9rem; }
  .cs-bulletin-people { font-size: 0.85rem; }
}

/* Shared WARM board/detail layouts — color tokens follow each template */
.church-site.cs-ew-boards,
.church-site.cs-ew-about {
  --theme-primary: var(--cs-primary);
  --theme-accent: var(--cs-primary);
  --theme-navy: var(--cs-ink);
  --theme-text: var(--cs-ink);
  --theme-muted: var(--cs-muted);
  --theme-surface: var(--cs-soft);
  --theme-line: var(--cs-line);
  --theme-bg: transparent;
  --theme-radius: 18px;
  --theme-max: 1100px;
  --theme-narrow: 720px;
  color: var(--theme-text);
}

.cs-boards {
  width: 100%;
  min-width: 0;
}

.template-modern .cs-boards,
.template-classic .cs-boards,
.template-minimal .cs-boards,
.template-youth .cs-boards {
  padding-bottom: 24px;
}

.cs-ew-boards .cs-boards .ew-board,
.cs-ew-boards .cs-boards .ew-album,
.cs-ew-boards .cs-boards .ew-cal,
.cs-ew-boards .cs-boards .ew-detail {
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

/* About sub-pages — shared with all templates via cs-ew-about / warm */
:is(.theme-editorial-warm, .cs-ew-about) .ew-about-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}
:is(.theme-editorial-warm, .cs-ew-about) .ew-about-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--theme-line, var(--cs-line));
  color: var(--theme-muted, var(--cs-muted));
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
}
:is(.theme-editorial-warm, .cs-ew-about) .ew-about-subnav a:hover,
:is(.theme-editorial-warm, .cs-ew-about) .ew-about-subnav a.is-active {
  color: var(--theme-navy, var(--cs-ink));
  border-color: color-mix(in srgb, var(--theme-accent, var(--cs-primary)) 45%, var(--theme-line, var(--cs-line)));
  background: color-mix(in srgb, var(--theme-accent, var(--cs-primary)) 10%, transparent);
}
:is(.theme-editorial-warm, .cs-ew-about) .ew-about-history-page .ew-about-history,
:is(.theme-editorial-warm, .cs-ew-about) .ew-about-staff-page .ew-about-staff {
  margin-top: 8px;
}


/* ---- 메인 팝업 공지 (템플릿별 변형) ---- */
.cs-notice-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: stretch;
  justify-content: center;
  animation: csNoticeFadeIn 0.28s ease;
}
@keyframes csNoticeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cs-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cs-notice-stage {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: 100%;
  margin: auto;
  padding: 20px 16px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.cs-notice-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}
.cs-notice-card {
  --notice-radius: 20px;
  --notice-pad: 18px;
  --notice-surface: #ffffff;
  --notice-ink: var(--cs-ink);
  --notice-muted: var(--cs-muted);
  --notice-line: color-mix(in srgb, var(--cs-line) 80%, transparent);
  --notice-soft: var(--cs-soft);
  --notice-accent: var(--cs-primary);
  --notice-accent-ink: #ffffff;
  --notice-shadow: 0 24px 64px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.06);
  width: min(380px, 100%);
  max-width: 100%;
  background: var(--notice-surface);
  color: var(--notice-ink);
  border: 1px solid var(--notice-line);
  border-radius: var(--notice-radius);
  box-shadow: var(--notice-shadow);
  overflow: hidden;
  animation: csNoticeRise 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cs-notice-card:nth-child(2) { animation-delay: 0.05s; }
.cs-notice-card:nth-child(3) { animation-delay: 0.1s; }
.cs-notice-card:nth-child(n+4) { animation-delay: 0.14s; }
@keyframes csNoticeRise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.cs-notice-card-inner {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cs-notice-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--notice-accent);
}
.cs-notice-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--notice-pad) var(--notice-pad) 0;
}
.cs-notice-head-text { flex: 1; min-width: 0; }
.cs-notice-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--notice-ink);
  word-break: keep-all;
}
.cs-notice-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--notice-soft) 88%, white);
  color: var(--notice-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.cs-notice-close:hover {
  background: var(--notice-soft);
  color: var(--notice-ink);
  border-color: var(--notice-line);
}
.cs-notice-close:active { transform: scale(0.96); }
.cs-notice-close:focus-visible {
  outline: 2px solid var(--notice-accent);
  outline-offset: 2px;
}
.cs-notice-visual {
  position: relative;
  margin: 14px 14px 0;
}
.cs-notice-visual .cs-notice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #334155;
}
.cs-notice-visual .cs-notice-close:hover {
  background: #fff;
  color: #0f172a;
}
.cs-notice-media {
  display: block;
  border-radius: calc(var(--notice-radius) - 6px);
  overflow: hidden;
  background: var(--notice-soft);
  aspect-ratio: 16 / 10;
}
.cs-notice-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
a.cs-notice-media:hover img { transform: scale(1.03); }
.cs-notice-media-static { pointer-events: none; }
.cs-notice-copy {
  padding: 14px var(--notice-pad) 4px;
}
.cs-notice-copy--solo { padding-top: 12px; }
.cs-notice-copy .cs-notice-title { margin-bottom: 8px; }
.cs-notice-body {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--notice-muted);
  white-space: pre-wrap;
  word-break: keep-all;
}
.cs-notice-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--notice-accent);
  color: var(--notice-accent-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.cs-notice-link-btn:hover { filter: brightness(1.05); }
.cs-notice-link-btn:focus-visible {
  outline: 2px solid var(--notice-accent);
  outline-offset: 2px;
}
.cs-notice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 8px;
  padding: 14px var(--notice-pad) var(--notice-pad);
  border-top: 1px solid var(--notice-line);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--notice-soft) 55%, transparent) 0%,
    color-mix(in srgb, var(--notice-soft) 35%, white) 100%
  );
}
.cs-notice-actions-quiet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 2px;
  flex: 1;
  min-width: 0;
}
.cs-notice-actions-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--notice-muted) 45%, transparent);
  margin: 0 2px;
}
.cs-notice-action {
  border: 0;
  background: transparent;
  color: var(--notice-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.cs-notice-action:hover {
  color: var(--notice-ink);
  background: color-mix(in srgb, var(--notice-soft) 70%, white);
}
.cs-notice-action:focus-visible {
  outline: 2px solid var(--notice-accent);
  outline-offset: 2px;
}
.cs-notice-action-primary {
  margin-left: auto;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--notice-accent-ink);
  background: var(--notice-accent);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--notice-accent) 28%, transparent);
}
.cs-notice-action-primary:hover {
  filter: brightness(1.04);
  color: var(--notice-accent-ink);
  background: var(--notice-accent);
}

/* MODERN — cool slate glass */
.template-modern .cs-notice-backdrop {
  background: rgba(15, 23, 42, 0.55);
}
.template-modern .cs-notice-card {
  --notice-radius: 22px;
  --notice-surface: rgba(255, 255, 255, 0.97);
  --notice-soft: #f1f5f9;
  --notice-line: #e2e8f0;
  --notice-accent: var(--cs-primary);
  --notice-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  border-top: 3px solid var(--notice-accent);
}
.template-modern .cs-notice-eyebrow {
  color: color-mix(in srgb, var(--cs-primary) 75%, #334155);
}

/* WARM — soft editorial blue */
.template-warm .cs-notice-backdrop {
  background: rgba(36, 52, 71, 0.48);
}
.template-warm .cs-notice-card {
  --notice-radius: 24px;
  --notice-surface: #ffffff;
  --notice-soft: var(--theme-surface, #F4F6F9);
  --notice-line: var(--theme-line, #E3E8EF);
  --notice-ink: var(--theme-text, #243447);
  --notice-muted: var(--theme-muted, #6B7785);
  --notice-accent: var(--theme-primary, var(--cs-primary));
  --notice-shadow: 0 26px 60px rgba(47, 70, 99, 0.16);
}
.template-warm .cs-notice-title {
  letter-spacing: -0.02em;
}

/* CLASSIC — ivory / navy / gold */
.template-classic .cs-notice-backdrop {
  background: rgba(8, 18, 38, 0.58);
}
.template-classic .cs-notice-card {
  --notice-radius: 4px;
  --notice-surface: var(--ck-paper, #faf6ec);
  --notice-soft: var(--ck-ivory, #f5efe4);
  --notice-line: var(--ck-rule, #c9bea4);
  --notice-ink: var(--ck-ink, #1a1712);
  --notice-muted: var(--ck-muted, #6b6355);
  --notice-accent: var(--ck-navy, #0f1e3d);
  --notice-accent-ink: var(--ck-ivory, #f5efe4);
  --notice-shadow: 0 22px 50px rgba(8, 18, 38, 0.28);
  border: 1px solid var(--ck-rule, #c9bea4);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ck-gold, #b8935a) 35%, transparent),
    var(--notice-shadow);
}
.template-classic .cs-notice-eyebrow {
  color: var(--ck-gold, #b8935a);
  letter-spacing: 0.16em;
}
.template-classic .cs-notice-action-primary,
.template-classic .cs-notice-link-btn,
.template-classic .cs-notice-close {
  border-radius: 2px;
}
.template-classic .cs-notice-media {
  border-radius: 2px;
}
.template-classic .cs-notice-actions {
  border-top: 1px solid var(--ck-rule, #c9bea4);
  background: linear-gradient(180deg, #f7f1e4, #f3ebda);
}
.template-classic .cs-notice-action-primary {
  background: var(--ck-navy, #0f1e3d);
  box-shadow: none;
  border-bottom: 2px solid var(--ck-gold, #b8935a);
}

/* MINIMAL — magazine cream */
.template-minimal .cs-notice-backdrop {
  background: rgba(20, 19, 17, 0.45);
}
.template-minimal .cs-notice-card {
  --notice-radius: 0;
  --notice-surface: #fffdf8;
  --notice-soft: var(--mn-paper, #ede8dd);
  --notice-line: var(--mn-rule, #d9d2c3);
  --notice-ink: var(--mn-ink, #141311);
  --notice-muted: var(--mn-muted, #7a7267);
  --notice-accent: var(--mn-accent, var(--cs-primary));
  --notice-shadow: 0 18px 48px rgba(20, 19, 17, 0.14);
  border: 1px solid var(--mn-ink, #141311);
}
.template-minimal .cs-notice-eyebrow {
  color: var(--notice-ink);
  opacity: 0.55;
}
.template-minimal .cs-notice-title {
  font-weight: 750;
  letter-spacing: -0.03em;
}
.template-minimal .cs-notice-close,
.template-minimal .cs-notice-action-primary,
.template-minimal .cs-notice-link-btn,
.template-minimal .cs-notice-media {
  border-radius: 0;
}
.template-minimal .cs-notice-action-primary {
  box-shadow: none;
  background: var(--notice-ink);
  color: #fffdf8;
}
.template-minimal .cs-notice-link-btn {
  background: transparent;
  color: var(--notice-ink);
  border: 1px solid var(--notice-ink);
  --notice-accent-ink: var(--notice-ink);
}

/* YOUTH — soft watercolor */
.template-youth .cs-notice-backdrop {
  background: rgba(61, 50, 38, 0.42);
}
.template-youth .cs-notice-card {
  --notice-radius: 28px;
  --notice-surface: var(--md-cream, #faf5ee);
  --notice-soft: var(--md-cream-2, #f4ead9);
  --notice-line: var(--md-rule, #e3d5b8);
  --notice-ink: var(--md-ink, #3d3226);
  --notice-muted: var(--md-muted, #8a7c6b);
  --notice-accent: var(--md-sage-deep, #5f7057);
  --notice-accent-ink: #faf7f1;
  --notice-shadow: 0 24px 56px rgba(107, 78, 61, 0.16);
}
.template-youth .cs-notice-eyebrow {
  color: var(--md-rose-deep, #b57f7f);
}
.template-youth .cs-notice-action-primary {
  background: linear-gradient(135deg, var(--md-sage, #8a9a7b), var(--md-sage-deep, #5f7057));
  box-shadow: 0 10px 24px rgba(95, 112, 87, 0.28);
}
.template-youth .cs-notice-link-btn {
  background: var(--md-rose-deep, #b57f7f);
}

@media (max-width: 720px) {
  .cs-notice-stage {
    padding: 12px;
    align-self: stretch;
  }
  .cs-notice-stack {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 14px;
    max-height: min(92vh, 100%);
  }
  .cs-notice-card {
    width: 100%;
  }
  .cs-notice-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cs-notice-actions-quiet {
    justify-content: center;
    order: 2;
  }
  .cs-notice-action-primary {
    margin-left: 0;
    width: 100%;
    text-align: center;
    order: 1;
  }
  .cs-notice-actions-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-notice-root,
  .cs-notice-card,
  .cs-notice-media img {
    animation: none !important;
    transition: none !important;
  }
}

body.cs-notice-open {
  overflow: hidden;
}
