:root {
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --accent: #1e40af;
  --accent-soft: #dbeafe;
  --radius: 14px;
  --shadow: 0 18px 45px -22px rgba(15, 23, 42, 0.35);
  --header-h: 64px;
  --bottom-tab-h: 62px;
  --page-max-w: 1920px;
  --page-side-pad: clamp(14px, 2.6vw, 52px);
  --section-bg: none;
  --section-bg-pos: center 40%;
  --section-bg-size: cover;
  /* 상단 메뉴(헤더): 모든 공개 페이지 공통 배경 (hero-bg.jpg 와 별도) */
  --header-bg: url("/images/header-bg.jpg");
  --header-bg-pos: center 45%;
}

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

html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 500px at 10% -10%, #e8efff 0%, var(--bg) 55%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.site-header .inner {
  width: min(var(--page-max-w), 100%);
  margin: 0 auto;
  padding: 0 var(--page-side-pad);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.65rem, 1.2vw, 1.35rem);
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: var(--card);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  margin-left: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.2rem, 0.6vw, 0.5rem) clamp(0.55rem, 1.2vw, 1.55rem);
  align-items: center;
  justify-content: center;
  flex: 1;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.9rem, 0.28vw + 0.82rem, 1rem);
  padding: clamp(0.28rem, 0.32vw, 0.42rem) clamp(0.16rem, 0.3vw, 0.3rem);
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
  outline: none;
}

.site-nav a.nav-admin {
  margin-left: 0.25rem;
  padding: 0.35rem 0.65rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
}

.site-nav a.nav-my-account {
  margin-left: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  font-weight: 600;
}

.site-nav .nav-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-nav a.nav-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: #fff;
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  font-weight: 600;
}

.site-nav a.nav-logout::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: center;
  /* inline SVG 아이콘(이미지) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M10 7V6a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-1' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 12H3m0 0 3.5-3.5M3 12l3.5 3.5' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.site-nav a.nav-logout:hover,
.site-nav a.nav-logout:focus-visible {
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.35);
  background: #e8f4ff;
  outline: none;
}

.site-nav a.nav-logout:hover::before,
.site-nav a.nav-logout:focus-visible::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M10 7V6a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-1' stroke='%231e40af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 12H3m0 0 3.5-3.5M3 12l3.5 3.5' stroke='%231e40af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.site-nav a.nav-my-account:hover,
.site-nav a.nav-my-account:focus-visible {
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.35);
  background: #e8f4ff;
}

.account-info-dl {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem 1rem;
  margin: 1rem 0 0;
}

.account-info-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted, #64748b);
  font-size: 0.92rem;
}

.account-info-dl dd {
  margin: 0;
  font-size: 0.95rem;
}

.account-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.account-session-id {
  word-break: break-all;
  font-size: 0.88rem;
}

@media (max-width: 540px) {
  .account-info-dl {
    grid-template-columns: 1fr;
  }
  .account-info-dl dt {
    padding-top: 0.35rem;
  }
}

.site-nav .nav-root {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.9rem, 0.28vw + 0.82rem, 1rem);
  padding: clamp(0.28rem, 0.32vw, 0.42rem) clamp(0.16rem, 0.3vw, 0.3rem);
  border-radius: 6px;
}

.site-nav .nav-root:hover,
.site-nav .nav-root:focus-visible {
  color: var(--accent);
  outline: none;
}

.nav-item {
  position: relative;
}

.nav-item > .nav-top {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.9rem, 0.28vw + 0.82rem, 1rem);
  padding: clamp(0.28rem, 0.32vw, 0.42rem) clamp(0.16rem, 0.3vw, 0.3rem);
  border-radius: 6px;
  display: inline-block;
}

.nav-item > .nav-top:hover,
.nav-item > .nav-top:focus-visible {
  color: var(--accent);
  outline: none;
}

.nav-item .subnav--list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
}

.nav-item .subnav--list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
}

.nav-item .subnav--list a::after {
  content: "›";
  font-size: 1rem;
  color: #94a3b8;
  font-weight: 600;
}

.nav-item .subnav--list a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-item .subnav--list a:hover::after {
  color: var(--accent);
}

.nav-item .subnav--cards {
  display: none;
}

template.nav-cards-source {
  display: none;
}

@media (min-width: 901px) {
  .mobile-nav-body,
  .mobile-nav-rail {
    display: contents;
  }

  .mobile-nav-cards-panel {
    display: none !important;
  }

  .nav-item .subnav--list {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    padding: 0.5rem 0.35rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 60;
  }

  .nav-item:hover .subnav--list {
    display: block;
  }

  /* 클릭 직후(해시 이동) 포인터가 메뉴 위에 있어도 드롭다운이 닫히도록 JS가 붙이는 클래스 */
  .site-nav.nav-dropdown-suppress .nav-item .subnav--list {
    display: none !important;
  }
}

.hub-head {
  margin-bottom: 1.25rem;
}

.submenu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 22vw, 290px), 1fr));
  gap: clamp(0.75rem, 1.1vw, 1.15rem);
}

a.submenu-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 8px 22px -18px rgba(15, 23, 42, 0.45);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

a.submenu-card:hover {
  border-color: rgba(30, 64, 175, 0.35);
  box-shadow: 0 14px 32px -20px rgba(30, 64, 175, 0.35);
}

.submenu-card-title {
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.submenu-card-go {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav a.is-active {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.nav-item.is-active > .nav-top {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

button.link-del {
  background: none;
  border: none;
  padding: 0;
  color: #b91c1c;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.site-main {
  flex: 1;
  width: min(var(--page-max-w), 100%);
  margin: 0 auto;
  padding: clamp(1.2rem, 2vw, 2rem) var(--page-side-pad) clamp(1.8rem, 2.8vw, 3rem);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.6);
}

.site-footer .inner {
  width: min(var(--page-max-w), 100%);
  margin: 0 auto;
  padding: 1.25rem var(--page-side-pad);
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.hero {
  display: grid;
  gap: 1.25rem;
  padding: 2.5rem 1.75rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 48%, #2563eb 100%);
  color: #f8fafc;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  max-width: 52ch;
  line-height: 1.7;
  opacity: 0.95;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* 공개 페이지: 대메뉴별 배경 (섹션 배너·홈 히어로·카드 fallback) */
body.page-home {
  --section-bg: url("/images/hero-bg.jpg");
  /* hero-bg.jpg 는 세로형(1920×2400) — cover 시 상·하가 잘림 → contain 으로 전체 노출 */
  --section-bg-pos: center center;
  --section-bg-size: contain;
}

body.page-cat-1 {
  --section-bg: url("/images/section-bg-1.jpg");
  --section-bg-pos: center 38%;
}

body.page-cat-2 {
  --section-bg: url("/images/section-bg-2.jpg");
  --section-bg-pos: center 48%;
}

body.page-cat-3 {
  --section-bg: url("/images/section-bg-3.jpg");
  --section-bg-pos: center 40%;
}

body.page-cat-4 {
  --section-bg: url("/images/section-bg-4.jpg");
  --section-bg-pos: center 42%;
}

body.page-cat-5 {
  --section-bg: url("/images/section-bg-5.jpg");
  --section-bg-pos: center 35%;
}

body.page-cat-6 {
  --section-bg: url("/images/section-bg-6.jpg");
  --section-bg-pos: center 42%;
}

body.page-cat-7 {
  --section-bg: url("/images/section-bg-7.jpg");
  --section-bg-pos: center 45%;
}

body.page-cat-8 {
  --section-bg: url("/images/section-bg-8.jpg");
  --section-bg-pos: center 45%;
}

body.page-themed {
  position: relative;
  background: #f3ece1;
}

/* 대메뉴 공통: 배경 사진 1장을 viewport에 고정 → 배너·본문이 이어져 보임 */
body.page-themed::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--section-bg) var(--section-bg-pos) / var(--section-bg-size) no-repeat;
  pointer-events: none;
}

body.page-themed .site-header {
  position: sticky;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.72) 100%),
    var(--header-bg) var(--header-bg-pos) / cover no-repeat;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  overflow: visible;
}

body.page-themed .site-header .inner,
body.page-themed .site-nav {
  overflow: visible;
}

@media (min-width: 901px) {
  body.page-themed .nav-item .subnav--list {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(226, 232, 240, 0.95);
    z-index: 80;
  }
}

body.page-themed .brand {
  color: #faf8f3;
}

body.page-themed .site-nav > .nav-root,
body.page-themed .site-nav .nav-item > .nav-top {
  color: rgba(255, 255, 255, 0.9);
}

body.page-themed .site-nav > .nav-root:hover,
body.page-themed .site-nav > .nav-root:focus-visible,
body.page-themed .site-nav .nav-item > .nav-top:hover,
body.page-themed .site-nav .nav-item > .nav-top:focus-visible,
body.page-themed .nav-item.is-active > .nav-top {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

/* 드롭다운 서브메뉴: 밝은 패널 + 진한 글자 (헤더 흰 글자 규칙과 분리) */
body.page-themed .nav-item .subnav--list a {
  color: #1e293b;
}

body.page-themed .nav-item .subnav--list a.is-active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

body.page-themed .nav-item .subnav--list a::after {
  color: #64748b;
}

body.page-themed .nav-item .subnav--list a:hover,
body.page-themed .nav-item .subnav--list a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
}

body.page-themed .nav-item .subnav--list a:hover::after,
body.page-themed .nav-item .subnav--list a:focus-visible::after {
  color: var(--accent);
}

body.page-themed .site-nav a.nav-admin {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

body.page-themed .site-nav a.nav-my-account,
body.page-themed .site-nav a.nav-logout {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.28);
}

body.page-themed .nav-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.section-hero[hidden] {
  display: none !important;
}

body.page-themed .section-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: clamp(11.5rem, 26vw, 15.5rem);
  color: #f8fafc;
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--page-side-pad);
  /* 사진은 body::before 고정 레이어 — 여기는 어두운 그라데이션만 */
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.58) 55%,
    rgba(247, 243, 235, 0.22) 100%
  );
  border-bottom: none;
}

body.page-themed .site-main {
  position: relative;
  z-index: 1;
  isolation: isolate;
  flex: 1;
  padding-top: clamp(1.2rem, 2vw, 2rem);
}

/* 본문: 같은 사진 위에 연한 막 — 배너 하단과 자연스럽게 이어짐 */
body.page-themed .site-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(247, 243, 235, 0.15) 0%,
    rgba(243, 236, 225, 0.68) 28%,
    rgba(248, 244, 236, 0.86) 100%
  );
  pointer-events: none;
}

body.page-themed .site-footer {
  position: relative;
  z-index: 1;
  background: rgba(248, 244, 236, 0.95);
}

body.page-themed .hub-shell-themed .hub-lead-below-hero {
  color: var(--ink);
}

body.page-themed .section-hero-inner {
  width: min(var(--page-max-w), 100%);
  margin: 0 auto;
}

body.page-themed .section-hero-title {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

body.page-themed .section-hero-lead {
  margin: 0.55rem 0 0;
  max-width: 52ch;
  line-height: 1.65;
  opacity: 0.92;
  font-size: 0.98rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

body.page-themed .section-hero .hero-actions {
  margin-top: 1.1rem;
}

.hub-shell.hub-shell-themed .hub-lead-below-hero {
  margin: 0 0 1.15rem;
}

@media (max-width: 900px) {
  body.page-themed .site-nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  body.page-themed .nav-item .subnav--list a {
    color: rgba(255, 255, 255, 0.92);
  }

  body.page-themed .nav-item .subnav--list a::after {
    color: rgba(255, 255, 255, 0.55);
  }

  body.page-themed .nav-item .subnav--list a:hover,
  body.page-themed .nav-item .subnav--list a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  body.page-themed .nav-item .subnav--list a:hover::after,
  body.page-themed .nav-item .subnav--list a:focus-visible::after {
    color: #fff;
  }
}

/* 대메뉴 허브: 서브메뉴 카드에 섹션 배경 이미지 */
body.page-themed .hub-shell a.submenu-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(6.5rem, 14vw, 8.5rem);
  justify-content: space-between;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.82) 0%,
      rgba(30, 58, 95, 0.58) 55%,
      rgba(15, 23, 42, 0.72) 100%
    ),
    var(--card-bg, var(--section-bg)) var(--card-bg-pos, var(--section-bg-pos)) / cover no-repeat;
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.55);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

body.page-themed .hub-shell a.submenu-card:hover,
body.page-themed .hub-shell a.submenu-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 36px -16px rgba(15, 23, 42, 0.65);
  transform: translateY(-2px);
  outline: none;
}

body.page-themed .hub-shell .submenu-card-title {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

body.page-themed .hub-shell .submenu-card-go {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

body.page-themed .hub-shell a.submenu-card:hover .submenu-card-go,
body.page-themed .hub-shell a.submenu-card:focus-visible .submenu-card-go {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: #fff;
  color: #1e3a8a;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-dark {
  background: var(--accent);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(30, 64, 175, 0.35);
}

.grid-2 {
  display: grid;
  gap: clamp(1rem, 1.6vw, 1.5rem);
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.card h2 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.page-title {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.notice-list a {
  display: block;
  padding: 1rem 1.1rem;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px -14px rgba(15, 23, 42, 0.4);
}

.notice-list a:hover {
  border-color: rgba(30, 64, 175, 0.35);
}

.notice-list .meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.notice-body {
  line-height: 1.8;
  color: #334155;
  white-space: pre-wrap;
}

.page-html-body {
  white-space: normal;
}

.page-html-body img,
.page-html-body video,
.page-html-body iframe {
  max-width: 100%;
  height: auto;
}

.page-html-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* 담임목사소개: PC는 사진·소개 나란히, 모바일은 사진 아래 소개 */
.pastor-intro-v3 .pastor-intro-head {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 899px) {
  .pastor-intro-v3 .pastor-intro-head,
  .pastor-intro-v3 > section:first-of-type {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem;
  }

  .pastor-intro-v3 .pastor-intro-photo,
  .pastor-intro-v3 > section:first-of-type > div:first-child {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* 인사말: PC는 사진·인사 나란히, 모바일은 사진 아래 본문 */
.greeting-v1 .greeting-head {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 899px) {
  .greeting-v1 .greeting-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .greeting-v1 .greeting-photo {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
}

/* 교회소개: 비전 카드 그리드 */
.church-intro-template-v1 .church-intro-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.church-intro-template-v1 .church-intro-vision-card {
  padding: 1rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 18px -16px rgba(15, 23, 42, 0.45);
}

.form-page-html {
  max-width: min(960px, 100%);
}

.form-page-html textarea.admin-page-body {
  min-height: 320px;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 0.875rem;
}

.form-page-html--wysiwyg .admin-wysiwyg-label {
  display: block;
  max-width: min(960px, 100%);
}

.form-page-html--wysiwyg .admin-page-body-wysiwyg {
  width: 100%;
  min-height: 420px;
  font-family: inherit;
  font-size: 1rem;
}

.form-page-html--wysiwyg .tox-tinymce {
  max-width: min(960px, 100%);
  border-radius: 12px;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.35);
}

.admin-page-preview {
  margin-top: 2rem;
  max-width: min(960px, 100%);
}

.h-admin-preview {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.h-admin-form {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* 관리자: 사용자 관리 — 상단 전환(목록/생성/수정/비밀번호) */
.admin-users-seg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.45rem;
  margin: 0.75rem 0 1.1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.admin-users-seg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}

.admin-users-seg__btn:hover {
  background: #eef2ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.admin-users-seg__btn.is-active {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.25);
  cursor: default;
}

.admin-users-seg__btn.is-active:hover {
  color: #fff;
  background: #1e3a8a;
  border-color: #1e3a8a;
}

.admin-users-panels {
  min-height: 4rem;
}

.admin-users-panel[hidden] {
  display: none !important;
}

.admin-users-panel-lead {
  margin: 0 0 0.9rem;
  line-height: 1.5;
  max-width: 46rem;
}

.admin-users-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.admin-preview-box {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: var(--card);
  min-height: 120px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form input,
.form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: #fff;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.perm-groups {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.perm-toolbar {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.perm-toolbar .btn,
.perm-group-actions .btn {
  padding: 0.34rem 0.58rem;
  font-size: 0.78rem;
}

.perm-group {
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 0.7rem 0.8rem 0.65rem;
  background: #fff;
}

.perm-group legend {
  width: 100%;
  padding: 0 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.perm-group-title {
  display: inline-flex;
  align-items: center;
}

.perm-group-actions {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.perm-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.perm-tree {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.perm-submenu {
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  background: #f8fafc;
}

.perm-submenu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.perm-submenu-title {
  font-size: 0.83rem;
  color: #334155;
}

.form label.perm-option,
.perm-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  justify-content: flex-start;
  text-align: left;
  white-space: nowrap;
}

.form label.perm-option input[type="checkbox"],
.perm-option input[type="checkbox"] {
  display: inline-block;
  width: auto;
  flex: 0 0 auto;
  padding: 0;
  margin-top: 0;
  vertical-align: middle;
}

.form label.perm-option .perm-option-label,
.perm-option-label {
  display: inline-block;
  line-height: 1.35;
  white-space: nowrap;
  text-align: left;
  vertical-align: middle;
}

.admin-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .admin-layout {
    grid-template-columns: 240px 1fr;
  }
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.admin-nav-group {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.admin-nav-group:first-of-type {
  margin-top: 0.35rem;
}

.admin-nav-group-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  padding: 0.35rem 0.65rem 0.45rem;
  opacity: 0.95;
}

.admin-nav-group-items {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-nav-group-items a {
  padding-left: 1rem;
  font-size: 0.92rem;
}

.admin-fold-controls {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.admin-fold-section {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.admin-fold-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.72rem 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: #f8fafc;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.admin-fold-summary::-webkit-details-marker {
  display: none;
}

.admin-fold-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.35rem;
  transition: transform 0.15s ease;
}

.admin-fold-section[open] .admin-fold-summary::before {
  transform: rotate(90deg);
}

.admin-fold-body {
  padding: 0.85rem 0.85rem 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: var(--card);
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.simple th,
table.simple td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

table.simple th {
  background: #f1f5f9;
  font-weight: 600;
}

.sermon-board-desc {
  margin: 0;
}

.sermon-search-form {
  display: grid;
  grid-template-columns: minmax(110px, 130px) minmax(170px, 1fr) auto auto;
  gap: 0.55rem;
  margin: 1.15rem 0 0.4rem;
}

.sermon-search-form select,
.sermon-search-form input {
  font: inherit;
  padding: 0.58rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.65);
  background: #fff;
}

.sermon-table td {
  vertical-align: middle;
}

.sermon-row {
  cursor: pointer;
}

.sermon-row:hover {
  background: #f8fafc;
}

.sermon-thumb {
  width: 86px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.sermon-thumb-empty {
  width: 86px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--muted);
  background: #f8fafc;
}

.sermon-body-cell {
  min-width: 220px;
}

.sermon-title-ellipsis {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sermon-board-mobile-grid {
  display: none;
  margin-top: 0.25rem;
}

.sermon-mobile-empty {
  margin: 0.5rem 0 0;
}

.sermon-mobile-no-yt-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #e2e8f0, #f8fafc);
}

.sermon-mobile-no-yt-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.sermon-photo-preview {
  width: min(360px, 100%);
  height: auto;
  aspect-ratio: 16 / 10;
  margin-top: 0.35rem;
}

.sermon-detail-photo {
  width: min(100%, 760px);
  max-height: 460px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  display: block;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
}

.badge.on {
  background: #dcfce7;
  color: #166534;
}

.badge.off {
  background: #fee2e2;
  color: #991b1b;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.dup-login-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.dup-login-modal {
  width: min(540px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.45);
  padding: 1.1rem 1.1rem 1rem;
}

.dup-login-modal h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
}

.dup-login-modal-desc {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.dup-login-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.session-policy-lead {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.session-policy-form {
  gap: 0.85rem;
}

.session-policy-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #fff;
  padding: 0.95rem 1rem;
}

.session-policy-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: #0f172a;
}

.session-policy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
}

.session-policy-help {
  margin: 0.5rem 0 0;
}

.session-policy-options {
  display: grid;
  gap: 0.55rem;
}

.session-policy-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: #f8fafc;
}

.session-policy-option strong {
  display: block;
  font-size: 0.92rem;
}

.session-policy-option small {
  display: block;
  margin-top: 0.15rem;
  color: #64748b;
  line-height: 1.45;
}

.holiday-lead {
  margin: 0 0 0.8rem;
  line-height: 1.6;
}

.holiday-search-form {
  margin-bottom: 0.7rem;
}

.holiday-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.holiday-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.holiday-mode-tab.is-active {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
}

.holiday-pane {
  margin-bottom: 1rem;
}

.holiday-pane h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.holiday-list-wrap {
  margin-top: 1rem;
}

.menu-order-row {
  cursor: grab;
}

.menu-order-row.is-dragging {
  opacity: 0.45;
}

.menu-order-row.is-drop-target {
  outline: 2px dashed #3b82f6;
  outline-offset: -2px;
  background: #eff6ff;
}

.menu-drag-handle {
  display: inline-block;
  margin-right: 0.35rem;
  color: #64748b;
  font-weight: 700;
}

.holiday-choice-group {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 0.6rem 0.7rem 0.7rem;
  margin: 0;
  background: #fff;
}

.holiday-choice-group legend {
  padding: 0 0.35rem;
  color: #1e3a8a;
  font-size: 0.84rem;
  font-weight: 700;
}

.holiday-choice-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.holiday-choice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.6rem 0.65rem;
  background: #f8fafc;
}

.holiday-choice-card strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.4;
}

.holiday-choice-card small {
  display: block;
  margin-top: 0.1rem;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    gap: 0.35rem;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    max-height: calc(100dvh - var(--header-h));
    overflow: hidden;
    padding: 0.65rem 0 0.75rem;
  }

  .site-nav .nav-root {
    padding: 0.35rem 1rem 0.55rem;
    flex-shrink: 0;
    align-self: stretch;
    width: 100%;
  }

  .mobile-nav-body {
    display: flex;
    flex: 1;
    min-height: 0;
    flex-wrap: nowrap;
    align-self: stretch;
    width: 100%;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
  }

  body.page-themed .mobile-nav-body {
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .mobile-nav-rail {
    flex: 0 0 clamp(7.2rem, 34vw, 9.5rem);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid rgba(148, 163, 184, 0.28);
    padding: 0.35rem 0;
  }

  body.page-themed .mobile-nav-rail {
    border-right-color: rgba(255, 255, 255, 0.12);
  }

  .mobile-nav-rail .nav-item {
    flex-shrink: 0;
  }

  .mobile-nav-rail .nav-item > .nav-top {
    display: block;
    width: 100%;
    padding: 0.55rem 0.65rem;
    font-size: 0.86rem;
    line-height: 1.35;
    text-align: left;
    border-radius: 0;
  }

  .mobile-nav-rail .nav-item > .nav-top::after {
    display: none;
  }

  .mobile-nav-rail .nav-item.is-open > .nav-top,
  .mobile-nav-rail .nav-item.is-active > .nav-top {
    background: rgba(30, 64, 175, 0.1);
    color: var(--accent);
    font-weight: 600;
  }

  body.page-themed .mobile-nav-rail .nav-item.is-open > .nav-top,
  body.page-themed .mobile-nav-rail .nav-item.is-active > .nav-top {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
  }

  .mobile-nav-rail .subnav--list {
    display: none !important;
  }

  .mobile-nav-cards-panel {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.55rem 0.65rem 0.65rem;
  }

  .mobile-nav-cards-panel.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-cards-empty {
    margin: 0;
    padding: 0.5rem;
    font-size: 0.86rem;
    line-height: 1.5;
    text-align: center;
  }

  body.page-themed .mobile-nav-cards-empty {
    color: rgba(255, 255, 255, 0.72);
  }

  .mobile-nav-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .mobile-nav-cards-panel .menu-hub-slot--mobile-nav {
    margin-top: 0.75rem;
    padding: 0.85rem 0.9rem;
    font-size: 0.92rem;
    line-height: 1.6;
  }

  body.page-themed .mobile-nav-cards-panel .menu-hub-slot--mobile-nav {
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
  }

  .mobile-nav-cards-panel .menu-hub-slot--mobile-nav .page-html-body {
    font-size: inherit;
  }

  .mobile-nav-cards-panel .subnav--admin-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-nav-cards-panel .subnav--admin-mobile a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.5rem;
    font-size: 0.88rem;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
  }

  body.page-themed .mobile-nav-cards-panel .subnav--admin-mobile a {
    color: rgba(255, 255, 255, 0.92);
  }

  .mobile-nav-cards-panel .subnav--admin-mobile a:hover,
  .mobile-nav-cards-panel .subnav--admin-mobile a:focus-visible {
    background: var(--accent-soft);
    color: var(--accent);
  }

  body.page-themed .mobile-nav-cards-panel .subnav--admin-mobile a:hover,
  body.page-themed .mobile-nav-cards-panel .subnav--admin-mobile a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .site-nav a.submenu-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 4.75rem;
    justify-content: space-between;
    padding: 0.8rem 0.85rem;
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.18);
    background:
      linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(30, 58, 95, 0.58) 55%,
        rgba(15, 23, 42, 0.72) 100%
      ),
      var(--card-bg, var(--section-bg)) var(--card-bg-pos, var(--section-bg-pos)) / cover no-repeat;
    box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.55);
  }

  .site-nav .submenu-card-title {
    color: #fff;
    font-size: 0.9rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  }

  .site-nav .submenu-card-go {
    color: rgba(255, 255, 255, 0.88);
  }

  .site-nav a.submenu-card.is-active {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
  }

  .site-nav .nav-right {
    flex-shrink: 0;
    padding: 0.55rem 1rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
  }

  body.page-themed .site-nav .nav-right {
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .sermon-search-form {
    grid-template-columns: 1fr 1fr;
  }

  .sermon-search-form input {
    grid-column: 1 / -1;
  }

  .sermon-board-table-wrap {
    display: none;
  }

  .sermon-board-mobile-grid {
    display: grid;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery-grid button {
  border: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #e2e8f0;
  aspect-ratio: 1;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 1rem;
}

.album-card {
  text-align: left;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 8px 22px -16px rgba(15, 23, 42, 0.45);
}

.album-card .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e2e8f0;
}

.album-card .bd {
  padding: 0.85rem 1rem 1rem;
}

.album-card a {
  text-decoration: none;
  color: inherit;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox-img {
  max-width: min(960px, 100%);
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 2.25rem;
  line-height: 1;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.attach-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.attach-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

/* 서브메뉴 허브·본문 (경로 + 좌측 네비) */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: rgba(100, 116, 139, 0.65);
  user-select: none;
  margin: 0 0.15rem;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.sub-page-layout {
  display: grid;
  gap: 1.35rem;
  align-items: start;
}

@media (min-width: 900px) {
  .sub-page-layout {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    gap: 1.75rem;
  }

  .sub-page-aside {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

.sub-page-aside {
  padding: 1rem 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 10px 28px -20px rgba(15, 23, 42, 0.35);
}

.sub-page-aside-title {
  margin: 0 0 0.65rem;
  padding: 0 0.35rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid rgba(30, 64, 175, 0.15);
}

.sub-page-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

a.sub-page-nav-item {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition:
    background 0.12s ease,
    color 0.12s ease,
    border-color 0.12s ease;
}

a.sub-page-nav-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

a.sub-page-nav-item.is-active {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--accent);
}

/* 교회학교 탭(소개/행사달력/앨범)은 클릭 가능성이 더 잘 보이도록 강조 */
.school-dept-tabs {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.5rem;
}

.school-dept-tabs a.sub-page-nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 0.62rem 1rem;
  border: 1px solid #cbd5e1;
  border-left: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.school-dept-tabs a.sub-page-nav-item:hover {
  background: #eef2ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.school-dept-tabs a.sub-page-nav-item.is-active {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e3a8a;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.18);
}

.sub-page-main {
  min-width: 0;
}

.sub-page-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.sub-page-title {
  margin: 0 0 0.35rem;
}

.sub-page-meta {
  margin: 0;
}

.sub-page-body {
  margin-top: 0;
}

.hub-shell .hub-head-lined {
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.hub-page-title {
  margin: 0 0 0.35rem;
}

.hub-lead {
  margin: 0;
}

.submenu-grid-panels {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

/* min-height는 body.page-themed .hub-shell a.submenu-card 에서 통합 */

/* 대메뉴 허브·홈: 하위 카드(또는 히어로) 아래 메인 소개 블록 */
.hub-shell .menu-hub-slot {
  margin-top: 1.35rem;
}

.menu-hub-slot--home {
  margin-top: 1.25rem;
}

.menu-hub-slot-loading {
  margin: 0;
}

/* 인사말 등 AWC 원본 레이아웃 (800×1050 기준, 가로 스크롤) */
.aysech-insham .aysech-awc-viewport {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1rem;
  padding-bottom: 0.35rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.aysech-insham .aysech-awc-frame {
  min-width: 800px;
  margin: 0 auto;
  padding: 0.75rem 0.5rem 1rem;
}

.aysech-insham .aysech-awc-layer {
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 12px 40px -24px rgba(15, 23, 42, 0.45);
  border-radius: 10px;
  overflow: hidden;
}

/* 교회학교 부서 미디어 피드 (유초등부 등) */
.dept-feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.dept-feed-post {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.dept-feed-post:last-of-type {
  border-bottom: none;
}

.dept-feed-meta {
  margin-bottom: 0.5rem;
}

.dept-feed-date {
  font-size: 0.9rem;
  color: var(--muted, #64748b);
}

.dept-feed-title {
  font-size: 1.1rem;
  margin: 0.25rem 0 0;
  font-weight: 700;
  color: var(--text, #0f172a);
}

.dept-feed-desc {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted, #64748b);
}

.dept-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}

.dept-feed-cell {
  position: relative;
  border-radius: var(--radius, 10px);
  overflow: hidden;
  background: rgba(241, 245, 249, 0.9);
}

.dept-feed-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.dept-feed-img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.dept-feed-video {
  display: block;
  width: 100%;
  max-height: 360px;
  background: #000;
}

.dept-feed-sentinel {
  height: 4px;
  margin-top: 0.5rem;
}

.bulletin-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.bulletin-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  padding: 0.5rem;
  background: #fff;
}

.bulletin-thumb {
  width: 120px;
  height: 158px;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
}

.bulletin-meta strong {
  display: block;
  font-size: 1.02rem;
}

.bulletin-meta .meta {
  margin-top: 0.35rem;
}

.bulletin-detail-wrap {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bulletin-detail-img {
  width: 100%;
  max-width: 760px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #fff;
}

.bulletin-zoom-btn {
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
}

/* 공개 행사 달력: .cal-admin-filter-bar + .cal-public-ym-bar (app.js) */

/* 교회학교 공개 달력: 은은한 녹색 톤 */
.cal-filter-bar--school {
  background: linear-gradient(120deg, #ecfdf5 0%, #f8fafc 55%);
  border-color: rgba(5, 150, 105, 0.28);
}

.cal-filter-bar--school .cal-admin-filter-title {
  color: #047857;
}

.calendar-head {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.4rem;
}

.calendar-weekdays span {
  text-align: center;
  font-weight: 600;
  color: #64748b;
  padding: 0.35rem 0;
}

.calendar-weekdays span.is-sunday {
  color: #dc2626;
}

.calendar-cell {
  min-height: 112px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  background: #fff;
  padding: 0.45rem 0.45rem 0.55rem;
}

.calendar-empty {
  background: rgba(241, 245, 249, 0.55);
}

.calendar-cell.calendar-cell--has-events {
  background: linear-gradient(165deg, #dbeafe 0%, #eff6ff 55%, #f8fafc 100%);
  border-color: #60a5fa;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.calendar-cell.calendar-cell--has-events.is-holiday {
  background: linear-gradient(165deg, #fecaca 0%, #fef2f2 55%, #fff5f5 100%);
  border-color: #f87171;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.1);
}

.calendar-has-ev-mark {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.28rem;
  border-radius: 999px;
  background: #2563eb;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.calendar-cell.calendar-cell--has-events.is-holiday .calendar-has-ev-mark {
  background: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.16);
}

.calendar-day {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.calendar-day.is-sunday {
  color: #dc2626;
}

.calendar-day.is-holiday {
  color: #dc2626;
}

.calendar-holiday-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-left: 0.3rem;
  background: #fee2e2;
  color: #b91c1c;
  vertical-align: middle;
}

.calendar-ev-item.is-holiday {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.calendar-ev-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.calendar-ev-item {
  font-size: 0.82rem;
  padding: 0.28rem 0.35rem;
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.95);
}

.calendar-ev-title {
  font-weight: 600;
}

.calendar-ev-desc {
  margin-top: 0.18rem;
  color: #475569;
}

@media (max-width: 900px) {
  .calendar-month-view--mobile .calendar-grid--compact {
    gap: 0.28rem;
  }

  .calendar-month-view--mobile .calendar-cell--pickable {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0.35rem 0.2rem 0.4rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    aspect-ratio: 1;
    box-sizing: border-box;
  }

  .calendar-month-view--mobile .calendar-cell--pickable .calendar-day {
    margin-bottom: 0.15rem;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .calendar-month-view--mobile .calendar-cell--pickable.calendar-cell--has-events {
    background: linear-gradient(165deg, #bfdbfe 0%, #dbeafe 100%);
    border-color: #3b82f6;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  }

  .calendar-month-view--mobile .calendar-cell--pickable.calendar-cell--has-events.is-holiday {
    background: linear-gradient(165deg, #fca5a5 0%, #fee2e2 100%);
    border-color: #ef4444;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.12);
  }

  .calendar-month-view--mobile .calendar-cell--pickable.calendar-cell--has-events .calendar-day {
    color: #1d4ed8;
  }

  .calendar-month-view--mobile .calendar-cell--pickable.calendar-cell--has-events.is-holiday .calendar-day,
  .calendar-month-view--mobile .calendar-cell--pickable.calendar-cell--has-events.is-sunday .calendar-day.is-sunday {
    color: #b91c1c;
  }

  .calendar-month-view--mobile .calendar-cell--pickable.is-today {
    box-shadow: inset 0 0 0 2px rgba(30, 64, 175, 0.45);
  }

  .calendar-month-view--mobile .calendar-cell--pickable.is-selected {
    border-color: rgba(30, 64, 175, 0.65);
    box-shadow: inset 0 0 0 2px rgba(30, 64, 175, 0.55);
    background: rgba(219, 234, 254, 0.85);
  }

  .calendar-month-view--mobile .calendar-cell--pickable.is-today.is-selected {
    box-shadow: inset 0 0 0 2px rgba(30, 64, 175, 0.75);
  }

  .calendar-month-view--mobile .calendar-ev-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    background: #2563eb;
    color: #fff;
    box-shadow: 0 1px 2px rgba(30, 64, 175, 0.25);
  }

  .calendar-month-view--mobile .calendar-cell--pickable.is-holiday .calendar-ev-count {
    background: #dc2626;
    box-shadow: 0 1px 2px rgba(185, 28, 28, 0.25);
  }

  .calendar-month-view--mobile .calendar-empty {
    min-height: 0;
    aspect-ratio: 1;
    padding: 0;
  }

  .calendar-month-view--mobile .calendar-holiday-dot {
    min-width: 1rem;
    height: 1rem;
    font-size: 0.62rem;
    margin-left: 0.12rem;
  }

  .calendar-day-detail {
    margin-top: 0.85rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: #f8fafc;
  }

  .calendar-day-detail-head {
    margin: 0 0 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
  }

  .calendar-day-detail-empty {
    margin: 0;
    font-size: 0.88rem;
  }

  .calendar-day-detail-list {
    gap: 0.45rem;
  }

  .calendar-day-detail-list .calendar-ev-item {
    font-size: 0.9rem;
    padding: 0.45rem 0.55rem;
  }
}

/* 섬기는 사람들(공개) */
.serving-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1.25rem;
}

.serving-person-card {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--card);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.serving-person-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: block;
}

.serving-person-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.serving-person-name {
  margin: 0.75rem 0 0.25rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.serving-person-role {
  margin: 0;
  color: #334155;
  font-weight: 700;
}

.serving-person-meta {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  color: #475569;
}

.serving-person-meta .label {
  color: #64748b;
  font-weight: 600;
  margin-right: 0.25rem;
}

.serving-person-intro {
  margin: 0.6rem 0 0;
  color: #334155;
  line-height: 1.65;
  font-size: 0.95rem;
}

/* 관리자: 폼 안 단일 파일 드롭존(설교·게시판 본문 등) */
.admin-file-drop-compact .dept-post-file-label {
  min-height: 5.25rem;
  padding: 1rem 0.85rem 0.9rem;
}

.admin-file-drop-compact .dept-post-file-icon {
  width: 2.35rem;
  height: 2.35rem;
  background-size: 1.15rem 1.15rem;
}

/* 관리자: 부서 앨범(새가족 소개 등) 파일 등록 폼 */
.dept-post-upload-card {
  max-width: 720px;
  margin: 1.25rem 0 2rem;
  padding: 1.35rem 1.35rem 1.5rem;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px -18px rgba(15, 23, 42, 0.22);
}

.dept-post-upload-head {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.dept-post-upload-title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.dept-post-upload-lead {
  margin: 0 0 0.4rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.dept-post-upload-meta {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.dept-post-upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dept-post-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #334155;
}

.dept-post-field input,
.dept-post-field textarea {
  font-weight: 400;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dept-post-field input:focus,
.dept-post-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.dept-post-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.dept-post-req {
  color: #b91c1c;
  font-weight: 700;
}

.dept-post-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dept-post-file-input:focus + .dept-post-file-label {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.dept-post-file-zone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dept-post-file-zone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(30, 64, 175, 0.2);
}

.dept-post-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem 1.35rem;
  cursor: pointer;
  gap: 0.5rem;
  min-height: 7.5rem;
  border-radius: 10px;
}

.dept-post-file-zone:hover,
.dept-post-file-zone:focus-within {
  border-color: #94a3b8;
  background: #f8fafc;
}

.dept-post-file-icon {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e40af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E")
    center / 1.4rem 1.4rem no-repeat;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.12);
}

.dept-post-file-text {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.45;
}

.dept-post-file-hint {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.dept-post-file-list {
  list-style: none;
  margin: 0;
  padding: 0.65rem 0.85rem 0.85rem;
  border-top: 1px solid #e2e8f0;
  background: #f1f5f9;
  border-radius: 0 0 10px 10px;
  max-height: 11rem;
  overflow-y: auto;
}

.dept-post-file-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.25rem;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.dept-post-file-list li:last-child {
  border-bottom: 0;
}

.dept-post-fname {
  word-break: break-all;
  color: #0f172a;
  flex: 1;
  min-width: 0;
}

.dept-post-fsize {
  flex-shrink: 0;
  font-size: 0.8rem;
}

.dept-post-actions {
  margin-top: 0.15rem;
}

.dept-post-submit {
  min-width: 8rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
}

.dept-post-list-heading {
  margin-top: 0.5rem;
}

.dept-post-table {
  margin-top: 0.5rem;
}

/* 관리자: 주보 등록(이미지 전용) */
.bulletin-admin-lead {
  max-width: 52rem;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.bulletin-upload-card {
  max-width: 720px;
  margin: 1.25rem 0 2rem;
  padding: 1.35rem 1.35rem 1.5rem;
  background: linear-gradient(170deg, #ffffff 0%, #f6f7fb 100%);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px -18px rgba(15, 23, 42, 0.22);
}

.bulletin-upload-head {
  margin-bottom: 1.1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.bulletin-upload-title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.bulletin-upload-desc {
  margin: 0;
  line-height: 1.55;
  font-size: 0.94rem;
}

.bulletin-upload-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.bulletin-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #334155;
}

.bulletin-field .bulletin-date-input {
  font-weight: 400;
  max-width: 16rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  background: #fff;
}

.bulletin-field .bulletin-date-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.bulletin-field-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: #334155;
}

.bulletin-req {
  color: #b91c1c;
  font-weight: 700;
}

.bulletin-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bulletin-file-input:focus + .bulletin-file-label {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.bulletin-file-zone {
  position: relative;
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.bulletin-file-zone.is-dragover {
  border-color: #0d9488;
  background: #ecfdf5;
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.25);
}

.bulletin-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.45rem 1.15rem 1.25rem;
  cursor: pointer;
  gap: 0.45rem;
  min-height: 7.25rem;
  border-radius: 10px;
}

.bulletin-file-zone:hover,
.bulletin-file-zone:focus-within {
  border-color: #5eead4;
  background: #f0fdfa;
}

.bulletin-file-icon {
  display: block;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 12px;
  background: #ccfbf1
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E")
    center / 1.35rem 1.35rem no-repeat;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.bulletin-file-text {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.45;
}

.bulletin-file-hint {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.1rem;
  max-width: 22rem;
  line-height: 1.4;
}

.bulletin-file-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem 0.85rem 0.8rem;
  border-top: 1px solid #d1fae5;
  background: #f0fdfa;
  border-radius: 0 0 10px 10px;
  max-height: 11rem;
  overflow-y: auto;
}

.bulletin-file-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0.25rem;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(45, 212, 191, 0.25);
}

.bulletin-file-list li:last-child {
  border-bottom: 0;
}

.bulletin-fname {
  word-break: break-all;
  color: #0f172a;
  flex: 1;
  min-width: 0;
}

.bulletin-fsize {
  flex-shrink: 0;
  font-size: 0.8rem;
}

.bulletin-actions {
  margin-top: 0.1rem;
}

.bulletin-submit {
  min-width: 7.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  background: #0f766e;
  border-color: #0f766e;
}

.bulletin-submit:hover,
.bulletin-submit:focus-visible {
  background: #0d9488;
  border-color: #0d9488;
}

.bulletin-list-heading {
  margin-top: 0.35rem;
}

.bulletin-table {
  margin-top: 0.45rem;
}

.bulletin-table .bulletin-preview-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.86rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

/* 관리자: 사진 모자이크 (앨범 관리 그룹) */
.mosaic-tool-lead {
  max-width: 50rem;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.mosaic-tool-card {
  max-width: 900px;
  margin-top: 0.5rem;
}

.mosaic-tool-card .mosaic-single-label {
  min-height: 6.5rem;
  padding: 1.2rem 1rem 1.1rem;
}

.mosaic-tool-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 1.1rem 0 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.mosaic-strength-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
  flex: 1 1 10rem;
}

.mosaic-strength-input {
  width: 8rem;
  min-width: 0;
  accent-color: var(--accent);
}

.mosaic-strength-val {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
  color: #0f172a;
}

.mosaic-tool-status {
  font-size: 0.9rem;
  min-height: 1.3rem;
  margin-bottom: 0.6rem;
  color: #64748b;
}

.mosaic-tool-status.mosaic-status-error {
  color: #b91c1c;
  font-weight: 600;
}

.mosaic-canvas-shell {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.mosaic-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 280px;
  background: #f1f5f9;
  cursor: crosshair;
}

.mosaic-regions-block {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #334155;
}

.mosaic-regions-list {
  margin-top: 0.45rem;
  line-height: 1.6;
}

/* 관리자: 행사 달력(교회 전체 + 교회학교 부서) */
.cal-admin-lead {
  max-width: 50rem;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}

.cal-admin-filter-bar {
  max-width: 52rem;
  margin: 1rem 0 1.1rem;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(120deg, #f0f9ff 0%, #f8fafc 55%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 12px;
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.15);
}

/* 공개 서브페이지(행사 달력): 본문 카드 너비에 맞춤 */
.sub-page-main .cal-public-ym-bar.cal-admin-filter-bar {
  max-width: none;
}

.cal-admin-filter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.cal-admin-filter-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
  margin-right: 0.25rem;
}

.cal-admin-select-group {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.cal-admin-select {
  min-width: 6.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  font-size: 0.95rem;
  background: #fff;
  color: #0f172a;
  line-height: 1.3;
  cursor: pointer;
}

.cal-admin-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.cal-admin-filter-sep {
  color: #94a3b8;
  font-weight: 300;
  user-select: none;
}

.cal-admin-load-btn {
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  margin-left: auto;
  border-radius: 999px;
}

@media (max-width: 700px) {
  .cal-admin-filter-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cal-admin-load-btn {
    margin-left: 0;
    width: 100%;
  }
}

.cal-admin-form-card {
  max-width: 720px;
  margin: 0 0 1.5rem;
}

.dept-post-upload-card.cal-admin-form-card--school {
  border-color: rgba(5, 150, 105, 0.35);
  background: linear-gradient(160deg, #ffffff 0%, #f0fdf4 100%);
}

.cal-admin-form-head .dept-post-upload-title,
.cal-admin-form-card .dept-post-upload-title {
  font-size: 1.15rem;
}

.cal-admin-form-actions {
  margin-top: 0.35rem;
}

.cal-admin-submit {
  min-width: 6.5rem;
}

.cal-admin-input,
.cal-admin-textarea {
  font-weight: 400;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  background: #fff;
}

.cal-admin-input:focus,
.cal-admin-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cal-admin-input-date {
  max-width: 16rem;
}

.cal-admin-textarea {
  min-height: 4.2rem;
  line-height: 1.5;
  resize: vertical;
}

.cal-admin-list-heading {
  margin-top: 0.2rem;
}

.cal-admin-list-sub {
  max-width: 48rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.15rem 0 0.55rem;
}

.cal-admin-table-wrap {
  max-width: min(100%, 960px);
  margin-top: 0.2rem;
}

.cal-admin-table {
  table-layout: fixed;
  width: 100%;
}

.cal-admin-table th,
.cal-admin-table td {
  vertical-align: top;
  padding: 0.6rem 0.65rem;
  font-size: 0.92rem;
}

.cal-admin-table th {
  background: #f1f5f9;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #334155;
}

.cal-admin-table .col-date {
  width: 7.5rem;
  white-space: nowrap;
}

.cal-admin-table .col-title {
  width: 28%;
  font-weight: 600;
  color: #0f172a;
}

.cal-admin-table .col-desc,
.cal-admin-table td:nth-child(3) {
  min-width: 0;
  word-break: break-word;
  line-height: 1.5;
  color: #475569;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.cal-admin-table .col-act {
  width: 4.2rem;
  text-align: right;
  white-space: nowrap;
}

/* 성가대 찬양 페이지 — YouTube 외부 링크 카드 그리드 */
.choir-youtube-section {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.choir-youtube-heading {
  margin: 0 0 1rem;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.choir-youtube-lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.choir-youtube-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.choir-youtube-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.choir-youtube-filter-grow {
  flex: 1 1 12rem;
}

.choir-youtube-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.choir-youtube-select,
.choir-youtube-search {
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 10px;
  font-size: 0.92rem;
  background: var(--card);
  color: var(--ink);
  box-sizing: border-box;
}

.choir-youtube-search {
  width: 100%;
  max-width: 100%;
}

.choir-youtube-pane-hidden {
  display: none !important;
}

.choir-youtube-by-month {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.choir-youtube-month-block {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.choir-youtube-month-block:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.choir-youtube-month-title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.choir-youtube-month-empty {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
}

.choir-youtube-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}

a.choir-youtube-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.35);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

a.choir-youtube-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -14px rgba(30, 64, 175, 0.45);
}

.choir-youtube-thumb-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #1e293b;
}

img.choir-youtube-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.choir-youtube-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  pointer-events: none;
  opacity: 0.95;
}

.choir-youtube-play-icon {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.choir-youtube-ym {
  display: block;
  padding: 0.35rem 0.85rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  background: var(--card);
}

.choir-youtube-caption {
  display: block;
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  background: var(--card);
}

.choir-youtube-caption--muted {
  font-weight: 500;
  color: var(--muted);
}

.bottom-tab-bar {
  display: none;
}

.bottom-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: var(--bottom-tab-h);
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  text-decoration: none;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s ease, background 0.15s ease;
}

.bottom-tab-item.is-active {
  color: var(--accent);
}

.bottom-tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
}

.bottom-tab-label {
  line-height: 1.1;
}

.page-more .page-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.more-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.more-link-card {
  display: flex;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.more-link-card-title {
  font-weight: 600;
  line-height: 1.35;
}

.push-settings {
  margin-top: 0.5rem;
}

.push-settings-desc {
  margin: 0.35rem 0 0.75rem;
}

.push-settings-status {
  margin: 0 0 0.85rem;
}

@media (max-width: 900px) {
  body:not(.bottom-tab-hidden) .bottom-tab-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px -18px rgba(15, 23, 42, 0.45);
  }

  body:not(.bottom-tab-hidden) .site-main {
    padding-bottom: calc(var(--bottom-tab-h) + env(safe-area-inset-bottom, 0px) + 1rem);
  }
}
