@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&family=Noto+Serif+KR:wght@600;700&display=swap');

:root {
  --navy: #17335f;
  --navy-dark: #0f2444;
  --navy-light: #24478a;
  --accent: #b08d3e;
  --ink: #222831;
  --gray-7: #4a5361;
  --gray-5: #767f8c;
  --gray-3: #c6ccd4;
  --gray-2: #e3e7ec;
  --gray-1: #f4f6f8;
  --white: #ffffff;
  --red: #b03a3a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 0.95rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- top utility bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #c8d3e6;
  font-size: 0.8rem;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px;
}
.topbar a:hover { color: #fff; }
.topbar .util { display: flex; gap: 18px; align-items: center; }
.topbar .util .user-name { color: #fff; font-weight: 500; }
.topbar .util .noti-link { position: relative; }
.noti-badge {
  display: inline-block; min-width: 17px; height: 17px; line-height: 17px;
  padding: 0 5px; margin-left: 4px; border-radius: 9px;
  background: #d63b3b; color: #fff; font-size: 0.7rem; font-weight: 700;
  text-align: center; vertical-align: middle;
}

/* 알림함 */
.noti-item {
  border: 1px solid var(--gray-2); border-left: 4px solid var(--gray-3);
  padding: 16px 18px; margin-bottom: 12px; background: #fff;
}
.noti-item.unread { border-left-color: var(--accent); background: #fffdf5; }
.noti-item .n-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.noti-item .n-title { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.noti-item .n-date { margin-left: auto; font-size: 0.78rem; color: var(--gray-5); }
.noti-item .n-body { font-size: 0.92rem; color: var(--gray-7); white-space: pre-wrap; line-height: 1.75; }
.noti-item .n-kind {
  font-size: 0.72rem; border: 1px solid var(--accent); color: var(--accent); padding: 1px 7px;
}

/* ---------- header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-2);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 58px; width: auto; }
.brand-text .denom {
  font-size: 0.72rem; color: var(--gray-5); letter-spacing: 2px;
}
.brand-text .name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.55rem; font-weight: 700; color: var(--navy);
  line-height: 1.2; letter-spacing: 1px;
}
.header-contact { text-align: right; font-size: 0.8rem; color: var(--gray-5); }
.header-contact strong { display: block; font-size: 1.05rem; color: var(--navy); letter-spacing: 0.5px; }

/* ---------- gnb ---------- */
.gnb { background: var(--navy); position: relative; z-index: 50; }
.gnb-list { display: flex; max-width: 1180px; margin: 0 auto; }
.gnb-item { position: relative; flex: 1; text-align: center; }
.gnb-item > a {
  display: block; padding: 15px 8px; color: #e8edf5;
  font-size: 1.02rem; font-weight: 500;
  border-bottom: 3px solid transparent;
}
.gnb-item > a:hover, .gnb-item.active > a {
  background: var(--navy-dark); color: #fff; border-bottom-color: var(--accent);
}
.gnb-sub {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--gray-2); border-top: none;
  box-shadow: 0 8px 18px rgba(15, 36, 68, 0.12);
}
.gnb-item:hover .gnb-sub { display: block; }
.gnb-sub a {
  display: block; padding: 10px 8px; font-size: 0.88rem; color: var(--gray-7);
  border-bottom: 1px solid var(--gray-1);
}
.gnb-sub a:hover { background: var(--gray-1); color: var(--navy); font-weight: 500; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(126deg, #081221 0%, #0d1e3a 48%, #143152 100%);
  min-height: 480px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 62% 70% at 72% 46%, rgba(64, 104, 168, 0.24), transparent 70%);
  pointer-events: none;
}
/* 입자 위에서 본문 글씨가 잘 읽히도록 왼쪽을 살짝 어둡게 */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8, 18, 38, 0.55) 0%, rgba(8, 18, 38, 0.24) 40%, transparent 66%);
  pointer-events: none;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero .container { position: relative; z-index: 2; color: #fff; padding-top: 54px; padding-bottom: 54px; }
.hero .hero-kicker {
  font-size: 0.8rem; letter-spacing: 6px; color: #93a8cc; margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: 2.7rem; font-weight: 700; line-height: 1.35;
  margin-bottom: 18px;
}
.hero p { font-size: 1.05rem; color: #c3cfe2; max-width: 560px; }
.hero .hero-verse { margin-top: 26px; font-size: 0.86rem; color: #90a5c7; }

/* 시·화·산 지역 — 절제된 텍스트 버튼 */
.hero-cities { margin-top: 30px; }
.hero-cities .chips { display: flex; gap: 26px; flex-wrap: wrap; }
.city-chip {
  display: inline-block;
  background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #ccd7e9; padding: 5px 2px 8px; border-radius: 0;
  font-size: 0.93rem; letter-spacing: 4px; line-height: 1;
  transition: color .25s, border-color .25s;
}
.city-chip .syl { font-family: inherit; color: inherit; font-weight: 600; }
.city-chip:hover, .city-chip:focus-visible, .city-chip.on {
  color: #fff; border-bottom-color: rgba(236, 229, 212, 0.9);
  outline: none;
}
.hero-cities-note {
  margin-top: 14px; font-size: 0.83rem; color: #8299bd;
  letter-spacing: 0.5px; min-height: 1.5em; transition: color .25s;
}
.hero-cities-note.on { color: #e4dcc6; }
@media (prefers-reduced-motion: reduce) {
  .city-chip { transition: none; }
}

/* 관리자가 사이트 관리에서 배경 사진을 지정한 경우: 기존 사진 히어로로 복귀 */
.hero.has-image { background: var(--navy-dark); }
.hero.has-image::before { background: rgba(15, 36, 68, 0.62); }
.hero.has-image::after,
.hero.has-image .hero-canvas,
.hero.has-image .hero-cities { display: none; }

/* ---------- main sections ---------- */
.home-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 28px;
  padding: 48px 0;
}
.section-title {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 4px;
}
.section-title h2 {
  font-size: 1.25rem; color: var(--navy); font-weight: 700;
}
.section-title .more { font-size: 0.8rem; color: var(--gray-5); }
.section-title .more:hover { color: var(--navy); }

.notice-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 4px; border-bottom: 1px solid var(--gray-2);
  font-size: 0.95rem;
}
.notice-list li a { color: var(--ink); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list li a:hover { color: var(--navy); text-decoration: underline; }
.notice-list .date { color: var(--gray-5); font-size: 0.85rem; flex-shrink: 0; }
.notice-list .cat {
  flex-shrink: 0; font-size: 0.75rem; color: var(--navy);
  border: 1px solid var(--navy-light); padding: 1px 8px; margin-right: 4px;
}

.side-box { border: 1px solid var(--gray-2); }
.side-box + .side-box { margin-top: 20px; }
.side-box .box-head {
  background: var(--gray-1); border-bottom: 1px solid var(--gray-2);
  padding: 12px 16px; font-weight: 700; color: var(--navy); font-size: 1rem;
}
.side-box .box-body { padding: 16px; font-size: 0.9rem; }
.side-box .box-body p + p { margin-top: 8px; }
.schedule-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--gray-1); }
.schedule-item:last-child { border-bottom: none; }
.schedule-item .d {
  flex-shrink: 0; width: 52px; text-align: center;
  border: 1px solid var(--navy-light); color: var(--navy);
  font-size: 0.78rem; font-weight: 700; padding: 2px 0;
}
.schedule-item .t { font-size: 0.88rem; }

.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 10px 0 48px; }
.quick-links a {
  border: 1px solid var(--gray-2); padding: 22px 18px; background: #fff;
  transition: border-color 0.15s;
}
.quick-links a:hover { border-color: var(--navy); }
.quick-links .q-title { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.quick-links .q-desc { font-size: 0.82rem; color: var(--gray-5); line-height: 1.5; }

.home-gallery { padding: 0 0 56px; }
.home-gallery .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px;
}
.home-gallery .grid a { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--gray-1); }
.home-gallery .grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.home-gallery .grid a:hover img { transform: scale(1.04); }

/* ---------- page layout ---------- */
.page-head {
  background: var(--navy); color: #fff;
  padding: 40px 0 34px;
}
.page-head h1 { font-family: 'Noto Serif KR', serif; font-size: 1.9rem; font-weight: 700; }
.page-head .crumb { font-size: 0.82rem; color: #aebdd6; margin-top: 8px; }
.page-body { padding: 44px 0 70px; }
.page-body h2 {
  font-size: 1.3rem; color: var(--navy); border-left: 4px solid var(--navy);
  padding-left: 12px; margin: 36px 0 16px;
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { font-size: 1.05rem; color: var(--ink); margin: 24px 0 10px; }
.page-body p { margin-bottom: 12px; color: var(--gray-7); }
.page-body .lead { font-size: 1.05rem; color: var(--ink); }

/* tabs */
.tabs { display: flex; border-bottom: 2px solid var(--navy); margin-bottom: 24px; flex-wrap: wrap; }
.tabs button {
  background: var(--gray-1); border: 1px solid var(--gray-2); border-bottom: none;
  padding: 11px 26px; font-size: 0.95rem; color: var(--gray-7); margin-right: 4px;
}
.tabs button.active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-bottom: 20px; }
.tbl th {
  background: var(--gray-1); color: var(--navy); font-weight: 700;
  border: 1px solid var(--gray-2); padding: 10px 12px;
}
.tbl td { border: 1px solid var(--gray-2); padding: 9px 12px; text-align: center; }
.tbl td.left { text-align: left; }
.tbl tbody tr:hover { background: #fafbfd; }
.tbl .role-badge {
  display: inline-block; font-size: 0.75rem; padding: 1px 8px;
  border: 1px solid var(--accent); color: var(--accent);
}

/* rules */
.rule-article { margin-bottom: 26px; }
.rule-article h4 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.rule-article p, .rule-article li { font-size: 0.94rem; color: var(--gray-7); margin-bottom: 4px; }
.rule-article ol { list-style: none; padding-left: 4px; }
.rule-chapter {
  font-family: 'Noto Serif KR', serif; text-align: center;
  font-size: 1.2rem; color: var(--navy); font-weight: 700;
  margin: 40px 0 22px; padding: 10px; background: var(--gray-1);
}
.rule-chapter:first-child { margin-top: 0; }

/* board */
.board-controls { display: flex; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.board-controls input[type=text] { border: 1px solid var(--gray-3); padding: 8px 12px; width: 240px; }
.btn {
  display: inline-block; background: var(--navy); color: #fff; border: 1px solid var(--navy);
  padding: 9px 22px; font-size: 0.9rem; font-weight: 500;
}
.btn:hover { background: var(--navy-dark); }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.ghost:hover { background: var(--gray-1); }
.btn.danger { background: #fff; border-color: var(--red); color: var(--red); }
.btn.danger:hover { background: #fdf3f3; }
.btn.sm { padding: 4px 12px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* gallery page */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid figure { border: 1px solid var(--gray-2); background: #fff; }
.gallery-grid a { display: block; overflow: hidden; aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid figcaption { padding: 12px 14px; font-size: 0.88rem; }
.gallery-grid figcaption .g-title { font-weight: 500; color: var(--ink); }
.gallery-grid figcaption .g-date { color: var(--gray-5); font-size: 0.8rem; margin-top: 2px; }

/* ---------- 소식 갤러리 ---------- */
.news-head { text-align: center; padding: 10px 0 26px; }
.news-head .news-eyebrow {
  font-size: 0.78rem; letter-spacing: 5px; color: var(--gray-5); margin-bottom: 10px;
}
.news-head h2 {
  font-family: 'Noto Serif KR', serif; font-size: 2rem; color: var(--ink);
  border: none; padding: 0; margin: 0 0 10px;
}
.news-head p { color: var(--gray-5); font-size: 0.95rem; }

.news-stage { position: relative; max-width: 860px; margin: 0 auto; }
.news-slide {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border-radius: 14px; background: var(--gray-1);
}
.news-slide img { width: 100%; height: 100%; object-fit: cover; }
.news-slide .news-cap {
  position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
  padding: 46px 26px 22px;
  background: linear-gradient(to top, rgba(0,0,0,0.62), rgba(0,0,0,0));
}
.news-slide .news-cap .t { font-size: 1.1rem; font-weight: 700; }
.news-slide .news-cap .d { font-size: 0.82rem; opacity: 0.9; margin-top: 4px; }
.news-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none;
  font-size: 1.2rem; color: var(--ink); line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.news-nav.prev { left: 14px; }
.news-nav.next { right: 14px; }
.news-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.news-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gray-3); cursor: pointer;
}
.news-dots span.on { background: var(--navy); }
.news-actions { display: flex; justify-content: center; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn-round {
  border-radius: 999px; padding: 11px 26px; font-size: 0.95rem;
  border: 1px solid var(--gray-3); background: #fff; color: var(--ink);
}
.btn-round:hover { background: var(--gray-1); }
.btn-round.solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-round.solid:hover { background: var(--navy-dark); }

/* 모달 */
.mdl { display: none; position: fixed; inset: 0; z-index: 300; background: rgba(15,20,30,0.55); }
.mdl.open { display: flex; align-items: flex-start; justify-content: center; padding: 4vh 16px; }
.mdl-box {
  background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
  max-height: 92vh; overflow-y: auto; padding: 26px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28); position: relative;
}
.mdl-box.wide { max-width: 720px; }
.mdl-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 1.5rem; line-height: 1; color: var(--gray-5);
}
.mdl-box h2 { border: none; padding: 0; margin: 0 0 18px; font-size: 1.4rem; }

/* 피드 카드 */
.feed-card { border: 1px solid var(--gray-2); border-radius: 12px; margin-bottom: 18px; overflow: hidden; }
.feed-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.feed-av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.feed-who { flex: 1; font-size: 0.9rem; }
.feed-who .d { font-size: 0.76rem; color: var(--gray-5); }
.feed-del { background: none; border: none; color: var(--gray-5); font-size: 0.82rem; }
.feed-img { width: 100%; display: block; background: var(--gray-1); }
.feed-bar { display: flex; gap: 14px; padding: 10px 14px 4px; align-items: center; }
.feed-bar button { background: none; border: none; font-size: 1.25rem; line-height: 1; padding: 0; color: var(--gray-7); }
.feed-bar button.liked { color: #e0245e; }
.feed-meta { padding: 0 14px 6px; font-size: 0.86rem; }
.feed-meta .likes { font-weight: 700; }
.feed-cmt { border-top: 1px solid var(--gray-1); padding: 8px 14px; font-size: 0.86rem; }
.feed-cmt .row { display: flex; gap: 6px; padding: 3px 0; }
.feed-cmt .row .n { font-weight: 700; flex-shrink: 0; }
.feed-cmt .row button { background: none; border: none; color: var(--gray-3); font-size: 0.78rem; margin-left: auto; }
.feed-in { display: flex; gap: 8px; border-top: 1px solid var(--gray-1); padding: 8px 14px; }
.feed-in input { flex: 1; border: none; outline: none; font-size: 0.88rem; }
.feed-in button { background: none; border: none; color: var(--navy); font-weight: 700; font-size: 0.88rem; }

/* 업로드 드롭존 */
.drop {
  border: 2px dashed var(--gray-3); border-radius: 12px; background: var(--gray-1);
  padding: 28px 20px; text-align: center; margin-bottom: 18px;
}
.drop.over { border-color: var(--navy); background: #eef3fb; }
.drop .ico { font-size: 1.8rem; margin-bottom: 10px; }
.drop .hint { font-size: 0.8rem; color: var(--gray-5); margin-top: 10px; }
.drop-preview { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.drop-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.mdl-divider {
  display: flex; align-items: center; gap: 10px; margin: 18px 0;
  color: var(--gray-5); font-size: 0.8rem;
}
.mdl-divider::before, .mdl-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-2); }

@media (max-width: 700px) {
  .news-head h2 { font-size: 1.5rem; }
  .news-nav { width: 34px; height: 34px; }
}

/* lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 16, 28, 0.88);
  align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; }
.lightbox .lb-close {
  position: absolute; top: 20px; right: 28px; background: none; border: none;
  color: #fff; font-size: 2rem; line-height: 1;
}

/* forms / login */
.form-card {
  max-width: 420px; margin: 0 auto; border: 1px solid var(--gray-2);
  padding: 36px;
}
.form-card h2 { border: none; padding: 0; text-align: center; margin-bottom: 24px; }
.home-committees { padding: 10px 0 30px; }

/* 나의 알림 */
.noti-card { border: 1px solid var(--gray-2); background: #fff; margin-bottom: 16px; }
.noti-card.has { border-color: var(--navy); border-left: 4px solid var(--accent); }
.noti-card-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--gray-2);
}
.noti-card:not(.has) .noti-card-head { border-bottom: none; }
.noti-card-head .n-label { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.noti-card-head .n-count {
  min-width: 24px; height: 24px; line-height: 24px; padding: 0 8px;
  background: #d63b3b; color: #fff; font-size: 0.82rem; font-weight: 700;
  text-align: center; border-radius: 12px;
}
.noti-card-head .n-sub { font-size: 0.86rem; color: var(--gray-5); }
.noti-card-head .more { margin-left: auto; font-size: 0.82rem; color: var(--gray-5); }
.noti-card-head .more:hover { color: var(--navy); }
.noti-card-list li { border-bottom: 1px solid var(--gray-1); }
.noti-card-list li:last-child { border-bottom: none; }
.noti-card-list a {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; font-size: 0.92rem;
}
.noti-card-list a:hover { background: var(--gray-1); }
.noti-card-list .n-kind {
  flex-shrink: 0; font-size: 0.72rem; border: 1px solid var(--accent); color: var(--accent);
  padding: 1px 7px;
}
.noti-card-list .n-t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.noti-card-list .n-d { flex-shrink: 0; font-size: 0.8rem; color: var(--gray-5); }
.noti-card-more { padding: 10px 18px; text-align: center; border-top: 1px solid var(--gray-1); }
.noti-card-more a { font-size: 0.85rem; color: var(--navy); }
.noti-card-more a:hover { text-decoration: underline; }
.home-committees .db-grid { margin-bottom: 0; }

/* ---------- 상비부 대시보드 ---------- */
.db-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px; margin-bottom: 30px;
}
.db-card {
  display: block; border: 1px solid var(--gray-2); border-top: 3px solid var(--gray-3);
  padding: 18px 20px; background: #fff; color: inherit;
}
.db-card:hover { border-color: var(--gray-5); border-top-color: var(--navy); }
.db-card.mine { border-top-color: var(--navy); background: var(--gray-1); }
.db-role {
  display: inline-block; font-size: 0.74rem; color: #fff; background: var(--navy);
  padding: 1px 8px; margin-bottom: 7px;
}
.db-name { font-size: 1.06rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.db-officer { font-size: 0.82rem; color: var(--gray-5); margin-bottom: 9px; }
.db-lines { font-size: 0.86rem; color: var(--gray-7); line-height: 1.75; }
.db-lines strong { color: var(--navy); margin-right: 5px; }
.db-count { font-size: 0.78rem; color: var(--gray-5); margin-top: 6px; }
.db-alert { color: var(--red, #b8352e); font-weight: 600; }

.cm-head { border: 1px solid var(--gray-2); padding: 18px 22px; margin-bottom: 20px; }
.cm-officers span { margin-right: 24px; font-size: 0.92rem; color: var(--gray-7); }
.cm-officers strong { color: var(--navy); margin-right: 6px; }
.cm-duty { margin: 12px 0 0; font-size: 0.88rem; color: var(--gray-5); line-height: 1.7; }

/* 달력 */
.cal-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 0 6px; }
table.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
table.cal th {
  background: var(--navy); color: #fff; padding: 9px 0; font-size: 0.86rem; font-weight: 500;
  border: 1px solid var(--navy);
}
table.cal th.sun { color: #ffc9c4; }
table.cal th.sat { color: #c4d8ff; }
table.cal td {
  border: 1px solid var(--gray-2); height: 104px; vertical-align: top; padding: 5px 6px;
  background: #fff;
}
table.cal td[data-day] { cursor: pointer; }
table.cal td[data-day]:hover { background: var(--gray-1); }
table.cal td.empty { background: var(--gray-1); }
table.cal td.today { background: #eef2f8; }
table.cal td.today .cal-d { background: var(--navy); color: #fff; }
.cal-d {
  display: inline-block; min-width: 22px; height: 22px; line-height: 22px; text-align: center;
  font-size: 0.82rem; color: var(--gray-7); margin-bottom: 4px;
}
td.sun .cal-d { color: var(--red, #b8352e); }
td.sat .cal-d { color: #2a4d8f; }
.cal-ev {
  font-size: 0.76rem; line-height: 1.4; padding: 3px 5px; margin-bottom: 3px; cursor: pointer;
  background: var(--navy); color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-ev.notice { background: var(--accent, #c8a24a); }
.cal-ev.todo { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.cal-ev.done { opacity: 0.5; text-decoration: line-through; }
.cal-ev:hover { opacity: 0.85; }
@media (max-width: 700px) {
  table.cal td { height: 72px; }
  .cal-ev { font-size: 0.68rem; }
}

/* ---------- 고시 모의고사 ---------- */
.exam-state { border-left: 4px solid var(--gray-3); background: var(--gray-1); padding: 14px 18px; margin-bottom: 18px; }
.exam-state.ok { border-left-color: #2f7d4f; }
.exam-state.wait { border-left-color: var(--accent, #c8a24a); }
.exam-state.no { border-left-color: var(--red, #b8352e); }

.exam-subject {
  margin-top: 30px; font-size: 1.05rem; color: var(--navy);
  border-bottom: 2px solid var(--navy); padding-bottom: 8px;
}
.exam-progress {
  position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff;
  padding: 10px 16px; font-size: 0.9rem; margin: 18px 0 6px;
}
.exam-q { border: 1px solid var(--gray-2); padding: 18px 20px; margin-bottom: 12px; background: #fff; }
.exam-q.answered { border-left: 4px solid var(--navy); }
.exam-q .q-text { font-weight: 500; line-height: 1.62; margin-bottom: 12px; color: var(--gray-7); }
.exam-q .q-no {
  display: inline-block; min-width: 26px; height: 26px; line-height: 26px; text-align: center;
  background: var(--navy); color: #fff; font-size: 0.82rem; margin-right: 10px;
}
.exam-q .q-sub {
  display: inline-block; font-size: 0.76rem; color: var(--navy);
  border: 1px solid var(--gray-3); padding: 1px 7px; margin-right: 8px;
}
.exam-q .q-opts label {
  display: block; padding: 9px 12px; border: 1px solid transparent; cursor: pointer; font-size: 0.94rem;
}
.exam-q .q-opts label:hover { background: var(--gray-1); }
.exam-q .q-opts input { width: auto; margin-right: 9px; }
.exam-submit { margin: 26px 0 40px; text-align: center; }
.exam-submit .btn { padding: 14px 46px; font-size: 1rem; }

.exam-q.review .q-opt { padding: 8px 12px; font-size: 0.92rem; color: var(--gray-7); }
.exam-q.review .q-opt.right { background: #eaf4ee; border-left: 3px solid #2f7d4f; }
.exam-q.review .q-opt.mine { background: #fbeceb; border-left: 3px solid var(--red, #b8352e); }
.exam-q.review .q-opt em {
  font-style: normal; font-size: 0.76rem; margin-left: 8px; padding: 1px 7px;
  background: var(--navy); color: #fff;
}
.exam-q.review .q-opt.mine em { background: var(--red, #b8352e); }

.exam-score {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  border: 1px solid var(--gray-2); border-top: 4px solid var(--navy);
  padding: 28px 32px; margin-bottom: 26px;
}
.exam-score.fail { border-top-color: var(--red, #b8352e); }
.exam-score .s-num { font-size: 3.2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.exam-score.fail .s-num { color: var(--red, #b8352e); }
.exam-score .s-num span { font-size: 1.1rem; margin-left: 4px; }
.exam-score .s-detail { font-size: 1rem; color: var(--gray-7); }
.exam-score .s-note { font-size: 0.88rem; color: var(--gray-5); margin-top: 6px; }
.pass { color: #2f7d4f; font-weight: 600; }
.fail { color: var(--red, #b8352e); font-weight: 600; }

/* 관리자 전용 메뉴 — 다른 메뉴와 구분되도록 왼쪽에 선을 둔다 */
.gnb-item.gnb-admin > a { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.22); }
.gnb-item.gnb-admin > a::after {
  content: ''; display: block; height: 2px; margin-top: 6px;
  background: var(--accent, #c8a24a);
}

/* 서류 설명 말풍선 */
.hint-word {
  border-bottom: 1px dotted var(--navy); cursor: help; color: var(--navy);
  font-weight: 500;
}
.hint-word:hover, .hint-word:focus { background: var(--gray-1); outline: none; }
.hint-bubble {
  position: absolute; z-index: 60; max-width: 460px;
  background: #fff; border: 1px solid var(--navy); border-top: 3px solid var(--navy);
  padding: 14px 16px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
  font-size: 0.88rem; line-height: 1.62; color: var(--gray-7);
}
.hint-bubble strong { display: block; color: var(--navy); margin-bottom: 8px; font-size: 0.95rem; }
.hint-bubble p { margin: 0 0 8px; }
.hint-bubble p:last-child { margin-bottom: 0; }
.hint-tag {
  display: inline-block; min-width: 62px; margin-right: 6px;
  font-size: 0.76rem; color: #fff; background: var(--navy);
  padding: 1px 7px; vertical-align: 1px;
}

/* 회기별 결의 목록 */
.res-row { border-bottom: 1px solid var(--gray-2); }
.res-row:first-child { border-top: 2px solid var(--navy); }
.res-head {
  width: 100%; text-align: left; background: #fff; border: none;
  padding: 18px 34px 18px 4px; cursor: pointer; position: relative;
}
.res-head:hover { background: var(--gray-1); }
.res-head::after {
  content: ''; position: absolute; right: 12px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--gray-5); border-bottom: 2px solid var(--gray-5);
  transform: rotate(45deg);
}
.res-head.open::after { transform: rotate(-135deg); margin-top: -2px; }
.res-title { display: block; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.res-meta { display: block; font-size: 0.86rem; color: var(--gray-5); }
.res-meta span { margin-right: 18px; }
.res-meta strong { color: var(--gray-7); margin-right: 5px; }
.res-body { padding: 4px 4px 20px; }
.res-body li { padding: 4px 0; }

/* 파일 끌어다 놓기 상자 */
.dropzone {
  border: 2px dashed var(--gray-3); background: var(--gray-1);
  padding: 26px 18px; text-align: center; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.dropzone:hover, .dropzone:focus { border-color: var(--navy); background: #fff; outline: none; }
.dropzone.over { border-color: var(--navy); background: #eef2f8; border-style: solid; }
.dropzone.has { background: #fff; border-style: solid; border-color: var(--gray-3); }
.dropzone .dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone .dz-guide strong { display: block; font-size: 0.95rem; color: var(--navy); margin-bottom: 5px; }
.dropzone .dz-guide span { display: block; font-size: 0.82rem; color: var(--gray-5); }
.dropzone.over .dz-guide strong { color: var(--navy); }
.dz-list { margin-top: 12px; }
.dz-list:empty { margin-top: 0; }
.dz-item {
  display: flex; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--gray-2); padding: 7px 4px;
  font-size: 0.85rem; text-align: left;
}
.dz-name { color: var(--gray-7); word-break: break-all; }
.dz-size { color: var(--gray-5); white-space: nowrap; }

/* 한 화면 안의 영역 이동 띠 */
.section-nav { display: flex; flex-wrap: wrap; border: 1px solid var(--gray-2); margin-bottom: 26px; }
.section-nav a {
  flex: 1 1 auto; text-align: center; padding: 13px 20px; font-size: 0.92rem;
  color: var(--gray-7); background: #fff; border-right: 1px solid var(--gray-2);
  white-space: nowrap;
}
.section-nav a:last-child { border-right: none; }
.section-nav a:hover { background: var(--gray-1); color: var(--navy); }
.section-nav a.active { background: var(--navy); color: #fff; font-weight: 600; }
.page-section > h2:first-child { margin-top: 0; }
@media (max-width: 700px) {
  .section-nav a { flex: 1 1 50%; border-bottom: 1px solid var(--gray-2); }
}

.form-step {
  border-top: 1px solid var(--gray-2); margin: 26px 0 16px; padding-top: 18px;
  font-weight: 700; color: var(--navy); font-size: 0.95rem;
}
.form-step:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.form-step span { display: block; font-weight: 400; font-size: 0.82rem; color: var(--gray-5); margin-top: 4px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: var(--gray-7); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--gray-3); padding: 10px 12px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
}
/* 구글 로그인 */
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; border: 1px solid var(--gray-3); color: #3c4043;
  padding: 11px 16px; font-size: 0.95rem; font-weight: 500;
}
.btn-google:hover { background: var(--gray-1); border-color: var(--gray-5); }
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--gray-5); font-size: 0.82rem;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-2);
}

.find-links {
  margin-top: 18px; text-align: center; font-size: 0.85rem; color: var(--gray-5);
}
.find-links a { color: var(--gray-7); }
.find-links a:hover { color: var(--navy); text-decoration: underline; }
.find-links .sep { margin: 0 10px; color: var(--gray-3); }

.form-msg { font-size: 0.85rem; margin-top: 12px; min-height: 1.2em; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: #22703a; }

.notice-banner {
  border: 1px solid var(--gray-2); background: var(--gray-1);
  padding: 14px 18px; font-size: 0.88rem; color: var(--gray-7); margin-bottom: 24px;
}
.notice-banner strong { color: var(--navy); }

/* admin */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.admin-card { border: 1px solid var(--gray-2); padding: 24px; }
.admin-card h3 { margin-top: 0; color: var(--navy); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; flex: 1; min-width: 120px; }

/* documents */
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.doc-item { border: 1px solid var(--gray-2); padding: 20px; }
.doc-item .d-name { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.doc-item .d-desc { font-size: 0.84rem; color: var(--gray-5); margin-bottom: 14px; }

/* print certificate */
.cert-sheet {
  border: 2px solid var(--navy); max-width: 720px; margin: 30px auto;
  padding: 60px 70px; font-family: 'Noto Serif KR', serif;
}
.cert-sheet .c-no { font-size: 0.85rem; color: var(--gray-7); font-family: 'Noto Sans KR', sans-serif; }
.cert-sheet h2 {
  border: none; padding: 0; text-align: center; font-size: 1.9rem;
  letter-spacing: 12px; margin: 30px 0 40px; font-family: 'Noto Serif KR', serif;
}
.cert-sheet .c-body td { padding: 10px 8px; font-size: 1rem; border-bottom: 1px dotted var(--gray-3); }
.cert-sheet .c-body td:first-child { width: 130px; color: var(--gray-7); }
.cert-sheet .c-text { margin: 40px 0; text-align: center; font-size: 1.05rem; line-height: 2; }
.cert-sheet .c-date { text-align: center; margin: 40px 0 24px; }
.cert-sheet .c-issuer {
  text-align: center; font-size: 1.35rem; font-weight: 700; letter-spacing: 6px;
  position: relative; display: inline-block; left: 50%; transform: translateX(-50%);
}
.cert-issuer-wrap { text-align: center; }
/* 직인은 발급 명의 끝에 겹쳐 찍는다 */
.cert-seal {
  position: absolute; right: -74px; top: 50%; transform: translateY(-50%);
  width: 72px; height: 72px; object-fit: contain;
  mix-blend-mode: multiply; opacity: 0.92; pointer-events: none;
}
.cert-signs { margin-top: 30px; text-align: center; }
.cert-signs .row {
  display: inline-block; position: relative; margin: 0 18px;
  font-size: 1rem; letter-spacing: 2px;
}
.cert-signs .row img {
  position: absolute; right: -58px; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; object-fit: contain;
  mix-blend-mode: multiply; opacity: 0.92;
}
.seal-pick { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 4px; font-size: 0.9rem; }
.seal-pick label { display: flex; align-items: center; gap: 6px; }
.seal-pick input { width: auto; }

@media print {
  .cert-seal, .cert-signs img {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* footer */
.site-footer { background: #1b222d; color: #97a1af; margin-top: 40px; }
.site-footer .container {
  padding: 34px 20px; font-size: 0.82rem; line-height: 1.9;
}
.site-footer .f-name { color: #dfe4ea; font-weight: 700; font-size: 0.95rem; }
.site-footer .f-links { margin-top: 10px; display: flex; gap: 18px; }
.site-footer .f-links a:hover { color: #fff; }

/* misc */
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }
.badge-locked {
  display: inline-block; border: 1px solid var(--gray-3); color: var(--gray-5);
  font-size: 0.75rem; padding: 1px 8px; vertical-align: middle;
}

@media (max-width: 900px) {
  .site-header .container { height: auto; padding: 14px 20px; flex-direction: column; gap: 8px; }
  .header-contact { display: none; }
  .gnb-list { flex-wrap: wrap; }
  .gnb-item { flex: 1 1 33%; }
  .gnb-sub { position: static; box-shadow: none; display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .home-gallery .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .doc-list { grid-template-columns: 1fr; }
  .hero { min-height: 440px; }
  .hero h1 { font-size: 1.9rem; }
  .hero::after { background: linear-gradient(90deg, rgba(8, 18, 38, 0.55) 0%, rgba(8, 18, 38, 0.30) 55%, rgba(8, 18, 38, 0.10) 100%); }
  /* 글 아래로 하나 됨의 원이 들어갈 띠를 비워 둔다 */
  .hero .container { padding-top: 44px; padding-bottom: 212px; }
  .city-chip { padding: 7px 14px; font-size: 0.88rem; }
  .cert-sheet { padding: 30px 24px; }
}

@media print {
  .topbar, .site-header, .gnb, .page-head, .site-footer, .no-print { display: none !important; }
  .page-body { padding: 0; }
  .cert-sheet { border: 2px solid #000; margin: 0 auto; }
}

/* ---------- 총회자료실 ---------- */
.lib-updated { font-size: 0.78rem; color: var(--gray-5); margin: -6px 0 18px; }
.lib-note { font-size: 0.85rem; color: var(--gray-7); margin: -8px 0 14px; }

.lib-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.lib-tab {
  background: #fff; border: 1px solid var(--gray-3); color: var(--gray-7);
  padding: 8px 16px; font-size: 0.92rem; line-height: 1;
  transition: all .18s;
}
.lib-tab:hover { border-color: var(--navy); color: var(--navy); }
.lib-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 500; }

.lib-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.lib-side-wrap { position: sticky; top: 16px; }
.lib-search {
  width: 100%; padding: 9px 12px; border: 1px solid var(--gray-3);
  font-size: 0.9rem; margin-bottom: 10px;
}
.lib-search:focus { outline: none; border-color: var(--navy); }
.lib-side {
  border: 1px solid var(--gray-2); background: var(--gray-1);
  max-height: 68vh; overflow-y: auto;
}
.lib-side a {
  display: block; padding: 9px 14px; font-size: 0.87rem; color: var(--gray-7);
  border-bottom: 1px solid var(--gray-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lib-side a:hover { background: #fff; color: var(--navy); }
.lib-side a.lv1 { padding-left: 28px; font-size: 0.83rem; }
.lib-side a.lv2 { padding-left: 40px; font-size: 0.8rem; }
.lib-side-empty { padding: 18px 14px; font-size: 0.85rem; color: var(--gray-5); }

.lib-doc { min-width: 0; }
.lib-loading, .lib-error { padding: 40px 0; color: var(--gray-5); font-size: 0.95rem; }
.lib-error { color: var(--red); }
.lib-sec { margin-bottom: 34px; }
.lib-sec.lv1 { margin-left: 14px; }
.lib-sec-title {
  font-family: 'Noto Serif KR', serif; font-size: 1.25rem; color: var(--navy);
  border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 14px;
}
.lib-sec.lv1 .lib-sec-title { font-size: 1.05rem; border-bottom: 1px solid var(--gray-3); }
.lib-sec-body { font-size: 0.95rem; line-height: 1.85; color: var(--ink); }
.lib-sec-body h3, .lib-sec-body h4, .lib-sec-body h5 {
  color: var(--navy); margin: 20px 0 8px; font-size: 1.02rem;
}
.lib-sec-body p { margin-bottom: 10px; }
.lib-sec-body ol, .lib-sec-body ul { margin: 8px 0 12px 22px; }
.lib-sec-body ol { list-style: decimal; }
.lib-sec-body ul { list-style: disc; }
.lib-sec-body table {
  border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.88rem;
}
.lib-sec-body table td, .lib-sec-body table th {
  border: 1px solid var(--gray-3); padding: 6px 10px;
}
.lib-sec-body blockquote {
  border-left: 3px solid var(--gray-3); padding: 4px 14px; margin: 10px 0;
  color: var(--gray-7);
}

/* 회의결의 */
.lib-res-tbl tbody tr { cursor: pointer; }
.lib-res-tbl tbody tr:hover td { background: var(--gray-1); }
.lib-res-head { margin: 18px 0 20px; }
.lib-res-head h2 {
  font-family: 'Noto Serif KR', serif; color: var(--navy); font-size: 1.5rem;
  margin-bottom: 8px;
}
.lib-res-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.88rem; color: var(--gray-7); }
.lib-res-cont { border-top: 2px solid var(--navy); padding-top: 18px; font-size: 0.95rem; line-height: 1.9; }

/* 보고서 */
.rpt-tree { margin-top: 4px; }
.rpt-group {
  border: 1px solid var(--gray-2); margin-bottom: 12px; background: #fff;
}
.rpt-group > summary {
  cursor: pointer; padding: 13px 18px; font-weight: 700; color: var(--navy);
  background: var(--gray-1); font-size: 0.98rem; list-style: none;
}
.rpt-group > summary::-webkit-details-marker { display: none; }
.rpt-group > summary::before { content: '▸ '; color: var(--accent); }
.rpt-group[open] > summary::before { content: '▾ '; }
.rpt-cnt {
  font-size: 0.75rem; color: var(--gray-5); font-weight: 400; margin-left: 4px;
}
.rpt-list { padding: 8px 18px 12px; }
.rpt-list ul { margin-left: 20px; }
.rpt-list li { border-bottom: 1px dashed var(--gray-2); }
.rpt-list li:last-child { border-bottom: none; }
.rpt-file, .rpt-name { display: inline-block; padding: 8px 2px; font-size: 0.9rem; }
.rpt-file { color: var(--gray-7); }
.rpt-file:hover { color: var(--navy); text-decoration: underline; }
.rpt-name { color: var(--gray-5); }
.rpt-ext {
  display: inline-block; margin-left: 7px; padding: 1px 6px; font-size: 0.68rem;
  border: 1px solid var(--accent); color: var(--accent); vertical-align: 1px;
}

@media (max-width: 900px) {
  .lib-wrap { grid-template-columns: 1fr; }
  .lib-side-wrap { position: static; }
  .lib-side { max-height: 240px; }
  .hide-m { display: none; }
}

/* ---------- 회원정보 카드 (조직 > 회원명단) ---------- */
.mb-link { color: var(--ink); border-bottom: 1px dotted var(--gray-3); }
.mb-link:hover { color: var(--navy); border-bottom-color: var(--navy); font-weight: 500; }

.mb-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 36, 68, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.mb-card {
  position: relative; background: #fff; width: 100%; max-width: 420px;
  padding: 26px 26px 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  border-top: 4px solid var(--navy);
  max-height: 88vh; overflow-y: auto;
}
.mb-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; font-size: 1.5rem; color: var(--gray-5);
  line-height: 1; padding: 4px;
}
.mb-close:hover { color: var(--ink); }
.mb-loading { padding: 30px 0; color: var(--gray-5); text-align: center; }
.mb-head { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.mb-photo {
  width: 92px; height: 118px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--gray-2); background: var(--gray-1);
}
.mb-photo-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--gray-3); font-size: 0.8rem; line-height: 1.5;
}
.mb-name {
  font-family: 'Noto Serif KR', serif; font-size: 1.35rem; font-weight: 700;
  color: var(--navy);
}
.mb-pos { font-family: 'Noto Sans KR', sans-serif; font-size: 0.85rem; font-weight: 500; color: var(--gray-7); }
.mb-church { font-size: 0.92rem; color: var(--gray-7); margin-top: 4px; }
.mb-tbl { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.mb-tbl th {
  width: 90px; text-align: left; font-size: 0.85rem; color: var(--gray-5);
  padding: 9px 4px; border-bottom: 1px solid var(--gray-1); font-weight: 500;
  vertical-align: top;
}
.mb-tbl td {
  font-size: 0.92rem; padding: 9px 4px; border-bottom: 1px solid var(--gray-1);
  word-break: keep-all;
}
.mb-dim { color: var(--gray-3); }
.mb-note { font-size: 0.8rem; color: var(--gray-5); line-height: 1.7; }

/* ---------- 내 사진 올리기 (내 정보) ---------- */
.ph-wrap { display: flex; gap: 14px; align-items: stretch; }
.ph-preview {
  width: 110px; min-height: 140px; flex-shrink: 0;
  border: 1px solid var(--gray-2); background: var(--gray-1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-3); font-size: 0.82rem; overflow: hidden;
}
.ph-preview img { width: 100%; height: 100%; object-fit: cover; }
.ph-drop {
  flex: 1; border: 2px dashed var(--gray-3); background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font-size: 0.88rem; color: var(--gray-7);
  padding: 18px 12px; cursor: pointer; line-height: 1.7;
  transition: border-color .2s, background .2s;
}
.ph-drop span { color: var(--navy); font-weight: 700; text-decoration: underline; }
.ph-drop small { display: block; margin-top: 6px; color: var(--gray-5); font-size: 0.76rem; }
.ph-drop:hover, .ph-drop.over { border-color: var(--navy); background: var(--gray-1); }

/* ---------- 증명서 (PDF 저장 / 인쇄) ---------- */
.cert-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 720px; margin: 0 auto 6px;
}
.cert-sheet .c-body { width: 100%; }
.cert-sheet .cert-foot {
  margin-top: 46px; padding-top: 14px; border-top: 1px solid var(--gray-2);
  text-align: center; font-size: 0.76rem; color: var(--gray-5);
  font-family: 'Noto Sans KR', sans-serif;
}
.cert-sheet { position: relative; }
.cert-void-mark {
  position: absolute; top: 44%; left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-size: 5rem; font-weight: 700; color: rgba(176, 58, 58, 0.22);
  letter-spacing: 20px; pointer-events: none; z-index: 2;
}

@media print {
  /* 증명서는 A4 한 장에 그대로 앉힌다 */
  @page { size: A4; margin: 0; }
  html, body { background: #fff; }
  .notice-banner, .form-msg, .admin-card, .tbl, h2 { display: none !important; }
  #cert-print, #cert-area { display: block !important; }
  .cert-sheet {
    display: block !important;
    box-sizing: border-box;
    width: 210mm; min-height: 297mm; max-width: none;
    margin: 0; padding: 28mm 24mm 20mm;
    border: none;
    page-break-after: always;
  }
  .cert-sheet h2 { display: block !important; }
  .cert-sheet .c-body, .cert-sheet .c-body tbody,
  .cert-sheet .c-body tr, .cert-sheet .c-body td { display: revert !important; }
  .cert-sheet .cert-foot { position: absolute; left: 24mm; right: 24mm; bottom: 14mm; }
}

/* 자간 때문에 마지막 글자 뒤 여백이 생겨 제목이 오른쪽으로 밀리는 것을 바로잡는다 */
.cert-sheet h2 { text-indent: 12px; }
.cert-sheet .c-issuer { text-indent: 6px; }

@media print {
  /* 증명 문구와 발급 명의를 종이 가운데 아래쪽에 앉힌다 */
  .cert-sheet .c-text { margin: 22mm 0 0; }
  .cert-sheet .c-date { margin: 20mm 0 10mm; }
}

/* 로그인 옵션 (아이디 저장 / 로그인 상태 유지) */
.login-opts { display: flex; gap: 18px; flex-wrap: wrap; }
.login-opts label {
  display: flex; align-items: center; font-size: 0.88rem;
  color: var(--gray-7); font-weight: 400; cursor: pointer;
}
.login-pw-tip {
  margin-top: 14px; font-size: 0.8rem; color: var(--gray-5); line-height: 1.7;
}

/* ---------- 총회자료실 자료 검색 (관리자 전용) ---------- */
.ai-bar {
  position: sticky; top: 0; z-index: 60;
  background: #12294c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 2px 10px rgba(15, 36, 68, 0.18);
}
.ai-bar-in { padding: 10px 20px; }
.ai-form { display: flex; align-items: center; gap: 10px; }
.ai-tag {
  flex-shrink: 0; font-size: 0.76rem; letter-spacing: 2px;
  color: #d9c9a3; border: 1px solid rgba(217, 201, 163, 0.5);
  padding: 4px 9px; white-space: nowrap;
}
.ai-form input {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff; padding: 9px 12px; font-size: 0.9rem;
}
.ai-form input::placeholder { color: #8fa3c4; }
.ai-form input:focus {
  outline: none; border-color: #d9c9a3; background: rgba(255, 255, 255, 0.12);
}
.ai-form .btn.sm { flex-shrink: 0; }
.ai-x {
  flex-shrink: 0; background: none; border: 0; color: #8fa3c4;
  font-size: 1.4rem; line-height: 1; padding: 2px 6px;
}
.ai-x:hover { color: #fff; }

.ai-panel {
  background: #fff; border: 1px solid var(--gray-2); border-top: none;
  margin-bottom: 12px; padding: 20px 22px;
  max-height: 62vh; overflow-y: auto;
}
.ai-q {
  font-weight: 700; color: var(--navy); font-size: 1rem;
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--gray-2);
}
.ai-q::before { content: 'Q. '; color: var(--accent); }
.ai-a { font-size: 0.94rem; line-height: 1.85; color: var(--ink); }
.ai-a p { margin-bottom: 10px; }
.ai-a ul { margin: 6px 0 12px 20px; list-style: disc; }
.ai-a li { margin-bottom: 5px; }
.ai-a .ai-basis { font-size: 0.84rem; color: var(--gray-5); margin-top: 12px; }
.ai-loading { padding: 22px 0; color: var(--gray-5); font-size: 0.92rem; }
.ai-err { padding: 14px 0; color: var(--red); font-size: 0.92rem; line-height: 1.8; }
.ai-src {
  margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--gray-2);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.ai-src span { font-size: 0.78rem; color: var(--gray-5); margin-right: 4px; }
.ai-src a {
  font-size: 0.78rem; color: var(--gray-7);
  border: 1px solid var(--gray-2); padding: 4px 9px; background: var(--gray-1);
}
.ai-src a:hover { border-color: var(--navy); color: var(--navy); }
.ai-note { margin-top: 14px; font-size: 0.78rem; color: var(--gray-5); line-height: 1.7; }

@media (max-width: 900px) {
  .ai-form { flex-wrap: wrap; }
  .ai-tag { display: none; }
  .ai-form input { flex: 1 1 100%; order: 1; }
  .ai-form .btn.sm { order: 2; }
  .ai-x { order: 3; margin-left: auto; }
  .ai-panel { max-height: 70vh; }
}
@media print { .ai-bar { display: none !important; } }
