/* =========================================================
   교육성장네트워크 꿈들 — 공통 스타일시트
   - 손으로 매만진 기록물 느낌: 종이 질감의 배경, 명조 제목,
     손글씨 캡션, 스냅사진(테이프) 프레임, 장부(원장) 스타일 숫자
   - 모바일 우선 반응형 · 외부 프레임워크 없음
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Gowun+Batang:wght@400;700&family=Nanum+Pen+Script&display=swap");

:root {
  /* 종이와 먹 */
  --paper: #faf7f0;
  --paper-deep: #f1ebdd;
  --paper-card: #fffdf8;
  --ink: #2e2a22;
  --ink-soft: #6d6353;
  --line: #ddd5c2;
  --line-soft: #e9e2d1;

  /* 소나무 초록(신뢰) · 감빛 주황(온기·후원) · 볕빛 노랑(포인트) */
  --pine: #2f5d4b;
  --pine-deep: #24483a;
  --persimmon: #bf5232;
  --persimmon-deep: #a0421f;
  --sun: #d99a2b;

  --radius: 6px;
  --shadow: 0 2px 10px rgba(72, 60, 38, 0.07);
  --maxw: 1080px;
  --serif: "Gowun Batang", "Nanum Myeongjo", "Noto Serif KR", serif;
  --hand: "Nanum Pen Script", "Gowun Batang", cursive;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* 손으로 그은 밑줄 */
  --underline: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M4 9 Q 45 3 85 7 T 196 5' fill='none' stroke='%23bf5232' stroke-width='5' stroke-linecap='round' opacity='.4'/></svg>");

  /* 구버전 변수 별칭 (예전 마크업 호환) */
  --brand: var(--pine);
  --brand-dark: var(--pine-deep);
  --accent: var(--persimmon);
  --accent-dark: var(--persimmon-deep);
  --bg: var(--paper);
  --bg-soft: var(--paper-deep);
  --bg-warm: #f6ede0;
}

/* 키보드 사용자 포커스 표시 */
:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; border-radius: 2px; }

/* 움직임을 줄이고 싶은 사용자 존중 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

::selection { background: rgba(217, 154, 43, 0.35); }

img { max-width: 100%; display: block; }

a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 72px 0; }
.section--soft { background: var(--paper-deep); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section--warm { background: #f6ede0; border-top: 1px solid var(--line-soft); }

/* 작은 표제 — 알약 대신 짧은 가로줄과 자간 넓은 글자 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--persimmon);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--persimmon);
  opacity: .55;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.45; letter-spacing: -0.005em; font-weight: 700; }
.section h2 { font-size: 1.75rem; margin: 0 0 10px; }
.section .lead { color: var(--ink-soft); margin: 0 0 34px; font-size: 1.03rem; }

/* 핵심 구절에 손으로 그은 밑줄 */
.u-mark {
  background: var(--underline) no-repeat left 88%;
  background-size: 100% 0.42em;
  padding-bottom: 0.06em;
}

/* 손글씨 */
.hand { font-family: var(--hand); font-size: 1.25em; color: var(--ink-soft); letter-spacing: 0.01em; }

/* 각주 */
.foot-note { font-size: .86rem; color: var(--ink-soft); }
.foot-note .ast { color: var(--persimmon); }

/* ---------- 버튼 : 도장 찍듯 반듯하게 ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--persimmon); color: #fff; border-color: var(--persimmon); }
.btn--primary:hover { background: var(--persimmon-deep); border-color: var(--persimmon-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: #b5aa93; }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper-card); color: var(--ink); }
.btn--lg { padding: 14px 32px; font-size: 1.04rem; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.brand .logo-img { width: 42px; height: 42px; object-fit: contain; display: block; }
.brand small { display: block; font-size: .68rem; font-weight: 400; font-family: var(--font); color: var(--ink-soft); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: var(--radius);
  color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.nav-links a:hover { background: var(--paper-deep); text-decoration: none; }
.nav-links a.active, .nav-links .has-sub.active > .sub-toggle { color: var(--persimmon); }
.nav-links .btn { padding: 9px 18px; }
.nav-links .btn:hover { background: var(--persimmon-deep); }
.nav-links .caret { font-style: normal; font-size: .7em; opacity: .55; }

/* 드롭다운(하위 메뉴) */
.sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 195px;
  list-style: none; margin: 6px 0 0; padding: 6px;
  background: var(--paper-card); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: .16s; z-index: 60;
}
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu a { font-weight: 500; font-size: .92rem; padding: 9px 12px; }
.sub-menu a:hover { background: var(--paper-deep); color: var(--pine); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: var(--radius);
}

@media (max-width: 640px) {
  .brand small { display: none; }
  .brand .brand-name { font-size: 1rem; }
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .2s; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; box-shadow: var(--shadow);
    display: none; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-links .btn { text-align: center; margin-top: 6px; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--line);
    border-radius: 0; margin: 0 0 4px 10px; padding: 0 0 0 6px;
    max-height: 0; overflow: hidden; transition: max-height .2s; background: transparent;
  }
  .has-sub.open > .sub-menu { max-height: 420px; }
  .has-sub > .sub-toggle .caret { float: right; }
}

/* ---------- 히어로 ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line-soft); overflow: hidden; }
.hero .container { padding-top: 76px; padding-bottom: 76px; }
.hero h1 { font-size: 2.5rem; margin: 12px 0 22px; line-height: 1.42; }
.hero p { font-size: 1.06rem; color: #4c4335; max-width: 600px; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .blob { display: none; }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-side { position: relative; }

/* 둥근 도장(인장) */
.seal {
  width: 96px; height: 96px;
  border: 2px solid rgba(191, 82, 50, 0.55);
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: .72rem; line-height: 1.5; font-weight: 700;
  color: rgba(160, 66, 31, 0.85);
  transform: rotate(-8deg);
  padding: 8px;
}

/* ---------- 스냅사진(테이프 붙인 인화지) ---------- */
.snap {
  margin: 0;
  background: #fff;
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(72, 60, 38, 0.12);
  transform: rotate(-1.2deg);
  position: relative;
}
.snap img { width: 100%; object-fit: cover; }
.snap::before {
  content: "";
  position: absolute; top: -12px; left: 50%;
  width: 96px; height: 26px;
  margin-left: -48px;
  background: rgba(222, 205, 160, 0.75);
  border-left: 1px dashed rgba(140, 120, 80, 0.25);
  border-right: 1px dashed rgba(140, 120, 80, 0.25);
  transform: rotate(-2deg);
  box-shadow: 0 1px 3px rgba(72, 60, 38, 0.12);
}
.snap--r { transform: rotate(1.1deg); }
.snap--r::before { transform: rotate(2.5deg); }
.snap figcaption {
  font-family: var(--hand);
  font-size: 1.15rem;
  color: #5a5040;
  padding: 10px 4px 0;
  text-align: center;
}

/* ---------- 기록(장부) 스타일 숫자 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat {
  background: transparent;
  border: 0; border-top: 2px solid var(--ink);
  border-radius: 0; box-shadow: none;
  padding: 18px 2px 0;
  text-align: left;
}
.stat .num { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.stat .label { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }
a.stat { display: block; color: inherit; }
a.stat:hover { text-decoration: none; border-top-color: var(--persimmon); }
a.stat:hover .num { color: var(--persimmon); }

/* ---------- 카드 그리드 ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.16rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card .ico { font-size: 1.6rem; margin-bottom: 10px; }
a.card { color: inherit; display: block; transition: border-color .14s, background .14s; }
a.card:hover { text-decoration: none; border-color: #b9ad92; background: #fffef9; }
a.card h3 { color: var(--ink); }

/* 사업 소개 — 한글 순번(하나·둘·셋) */
.work-item { border-top: 2px solid var(--ink); padding-top: 18px; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; box-shadow: none; padding-left: 2px; padding-right: 2px; padding-bottom: 4px; }
.work-item .ord { font-family: var(--hand); font-size: 1.35rem; color: var(--persimmon); display: block; margin-bottom: 6px; }
.work-item h3 { margin: 0 0 8px; font-size: 1.22rem; }
.work-item p { margin: 0 0 12px; color: var(--ink-soft); font-size: .97rem; }
.work-item .more { font-size: .92rem; font-weight: 700; color: var(--pine); }
a.work-item:hover { background: transparent; border-color: var(--persimmon); }
a.work-item:hover .more { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 게시글 리스트 ---------- */
.posts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a.post {
  display: flex; align-items: center; gap: 14px;
  padding: 17px 6px; color: var(--ink);
}
.posts a.post:hover { text-decoration: none; background: rgba(255, 253, 248, 0.9); }
.post .tag {
  flex: none; font-size: .76rem; font-weight: 700;
  padding: 3px 10px; border-radius: 3px;
  border: 1px solid currentColor;
  background: transparent;
}
.post .tag.t-소식 { color: var(--pine); }
.post .tag.t-보도자료 { color: #4a5a78; }
.post .tag.t-프로젝트 { color: var(--persimmon); }
.post .tag.t-공지사항 { color: #8a6210; }
.post .title { flex: 1; font-weight: 600; }
.post .date { flex: none; color: var(--ink-soft); font-size: .88rem; font-variant-numeric: tabular-nums; }

.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  border: 1px solid #b5aa93; background: transparent; color: var(--ink-soft);
  padding: 7px 16px; border-radius: var(--radius); font-weight: 600; font-size: .92rem; cursor: pointer;
  font-family: inherit;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- 후원 CTA : 편지지 ---------- */
.cta {
  background: var(--paper-card);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  border-radius: 2px;
  padding: 52px 48px;
  text-align: center;
  position: relative;
}
.cta h2 { color: var(--ink); margin: 0 0 14px; font-size: 1.65rem; }
.cta p { color: #4c4335; margin: 0 auto 26px; max-width: 620px; }
.cta .btn--primary { background: var(--persimmon); color: #fff; }
.cta .btn--primary:hover { background: var(--persimmon-deep); color: #fff; }
.cta .acct-line { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin: 0 0 24px; }

/* ---------- 페이지 헤더 ---------- */
.page-head { background: var(--paper-deep); border-bottom: 1px solid var(--line); padding: 48px 0; }
.page-head h1 { margin: 8px 0 8px; font-size: 2rem; }
.page-head p { margin: 0; color: var(--ink-soft); }
.breadcrumb { font-size: .85rem; color: var(--ink-soft); }

/* ---------- 본문(소개 등) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.prose p { margin: 0 0 15px; color: #443b2d; }
.prose ul { padding-left: 20px; color: #443b2d; }
.prose li { margin: 6px 0; }

/* 인용 — 여백에 쓴 말 */
.pull-quote {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--ink);
  border-left: 3px solid var(--persimmon);
  padding: 6px 0 6px 22px;
  margin: 30px 0;
}
.pull-quote .who { display: block; font-size: .9rem; color: var(--ink-soft); font-family: var(--font); margin-top: 8px; }

.timeline { list-style: none; padding: 0; margin: 18px 0; border-left: 2px solid var(--line); }
.timeline li { display: flex; gap: 18px; padding: 12px 0 12px 20px; position: relative; border-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 24px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--persimmon);
}
.timeline .yr { flex: none; font-family: var(--serif); font-weight: 700; color: var(--persimmon); width: 74px; }

.note {
  background: rgba(217, 154, 43, 0.08);
  border: 1px solid rgba(217, 154, 43, 0.35);
  border-left: 3px solid var(--sun);
  padding: 16px 18px; border-radius: var(--radius);
  color: #6a5836; font-size: .95rem;
}

/* ---------- 푸터 ---------- */
.site-footer { background: #262119; color: #cfc6b4; padding: 52px 0 30px; margin-top: 56px; }
.site-footer a { color: #cfc6b4; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
.site-footer h4 { color: #f4efe4; font-family: var(--serif); font-size: 1.02rem; margin: 0 0 10px; }
.site-footer .muted { color: #9a917e; font-size: .88rem; line-height: 1.9; }
.site-footer .copy { border-top: 1px solid #3a3427; margin-top: 30px; padding-top: 18px; font-size: .82rem; color: #9a917e; }
.site-footer .hand { color: #b8ae99; font-size: 1.2rem; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-side { max-width: 440px; }
}
@media (max-width: 860px) {
  .section { padding: 56px 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero h1 { font-size: 1.85rem; }
  .cta { padding: 36px 24px; }
  .post .date { display: none; }
}

/* =========================================================
   게시글 상세보기 모달 (posts.js)
   ========================================================= */
.post-modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.post-modal.open { display: block; }
.pm-backdrop { position: absolute; inset: 0; background: rgba(38, 33, 25, 0.55); }
.pm-panel {
  position: relative; max-width: 860px; margin: 5vh auto; background: var(--paper-card);
  border-radius: var(--radius); box-shadow: 0 12px 40px rgba(38, 33, 25, 0.3); max-height: 90vh;
  overflow-y: auto; padding: 32px 30px 44px; -webkit-overflow-scrolling: touch;
}
.pm-x {
  position: sticky; top: -6px; float: right; border: none; background: transparent;
  font-size: 30px; line-height: 1; color: var(--ink-soft); cursor: pointer; padding: 0 4px;
}
.pm-x:hover { color: var(--ink); }
.pm-head { border-bottom: 2px solid var(--ink); padding-bottom: 16px; margin-bottom: 22px; }
.pm-cat.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px;
  border-radius: 3px; margin-bottom: 10px; border: 1px solid currentColor;
}
.pm-cat.t-소식 { color: var(--pine); background: transparent; }
.pm-cat.t-보도자료 { color: #4a5a78; background: transparent; }
.pm-cat.t-프로젝트 { color: var(--persimmon); background: transparent; }
.pm-cat.t-공지사항 { color: #8a6210; background: transparent; }
.pm-title { margin: 4px 0 6px; font-size: 1.5rem; line-height: 1.5; color: var(--ink); }
.pm-date { font-size: .9rem; color: var(--ink-soft); }
.pm-body { font-size: 1rem; line-height: 1.85; color: #443b2d; word-break: break-word; }
.pm-body img { margin: 12px auto; border-radius: 4px; border: 1px solid var(--line-soft); }
.pm-body p { margin: 0 0 14px; }
.pm-body a { word-break: break-all; }
.pm-body table { max-width: 100%; }
.posts a.post { cursor: pointer; }

@media (max-width: 640px) {
  .pm-panel { margin: 0; min-height: 100vh; border-radius: 0; padding: 22px 18px 40px; }
  .pm-title { font-size: 1.25rem; }
}

/* =========================================================
   정관(bylaws) 페이지
   ========================================================= */
.jeonggwan { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; max-width: 820px; line-height: 1.9; }
.jeonggwan .jg-chap { margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink);
  font-size: 1.18rem; color: var(--ink); font-family: var(--serif); }
.jeonggwan .jg-chap:first-child { margin-top: 0; }
.jeonggwan .jg-art { margin: 20px 0 6px; font-weight: 700; color: var(--ink); }
.jeonggwan .jg-p { margin: 4px 0; color: #443b2d; }
.jeonggwan .jg-item { margin: 2px 0 2px 16px; color: #443b2d; }
@media (max-width: 640px) { .jeonggwan { padding: 22px 18px; } }

/* ---------- 홈 현장 사진 밴드 ---------- */
.photo-band { align-items: start; }
.photo-band figure {
  margin: 0; background: #fff; border: 1px solid var(--line);
  padding: 10px 10px 6px; border-radius: 0; overflow: visible;
  box-shadow: 0 3px 12px rgba(72, 60, 38, 0.1);
  position: relative;
}
.photo-band figure:nth-child(odd) { transform: rotate(-1.1deg); }
.photo-band figure:nth-child(even) { transform: rotate(0.9deg); margin-top: 14px; }
.photo-band figure::before {
  content: ""; position: absolute; top: -11px; left: 50%;
  width: 84px; height: 24px; margin-left: -42px;
  background: rgba(222, 205, 160, 0.75);
  transform: rotate(-2deg);
  box-shadow: 0 1px 3px rgba(72, 60, 38, 0.12);
}
.photo-band figure:nth-child(even)::before { transform: rotate(2.4deg); }
.photo-band img { width: 100%; height: 215px; object-fit: cover; }
.photo-band figcaption { padding: 10px 6px 8px; font-family: var(--hand); font-size: 1.12rem; color: #5a5040; text-align: center; }

/* ---------- 신청 폼 ---------- */
.apply-form .fld { margin-bottom: 16px; }
.apply-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .94rem; color: var(--ink); }
.apply-form .req { color: var(--persimmon); }
.apply-form input, .apply-form select, .apply-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #c9bfa8; border-radius: var(--radius);
  font-family: inherit; font-size: .98rem; background: #fffefb; color: var(--ink);
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(47, 93, 75, .13);
}
.apply-form textarea { resize: vertical; }

/* ---------- 관리자 ---------- */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; vertical-align: top; }
.admin-table th { background: var(--paper-deep); font-weight: 700; }
.admin-table .role-sel { padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffefb; }

/* 앵커 이동 시 고정 헤더 여백 */
[id] { scroll-margin-top: 84px; }

/* 사업안내 페이지 */
.prog-index .prog-mini { text-align: center; text-decoration: none; padding: 18px 12px; }
.prog-index .prog-mini h3 { font-size: 1rem; margin: 0; }
.prog-index .prog-mini:hover { border-color: var(--persimmon); }
.prog-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.prog-row--rev .prog-txt { order: 2; }
.prog-row .prog-img {
  width: 100%; height: 300px; object-fit: cover;
  border: 1px solid var(--line); background: #fff; padding: 10px;
  box-shadow: 0 3px 12px rgba(72, 60, 38, 0.1);
}
.prog-row:nth-of-type(odd) .prog-img { transform: rotate(-0.8deg); }
.prog-row:nth-of-type(even) .prog-img { transform: rotate(0.8deg); }
.prog-row h2 { font-size: 1.6rem; margin: 0 0 12px; }
.prog-row p { color: #443b2d; margin: 0 0 20px; line-height: 1.85; }
@media (max-width: 760px) {
  .prog-row { grid-template-columns: 1fr; gap: 20px; }
  .prog-row--rev .prog-txt { order: 0; }
  .prog-row .prog-img { height: 220px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 활동 갤러리 ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery .ph {
  margin: 0; cursor: pointer; overflow: hidden;
  border: 1px solid var(--line); background: #fff; padding: 7px;
  box-shadow: 0 2px 8px rgba(72, 60, 38, 0.09); position: relative;
}
.gallery .ph:nth-child(3n+1) { transform: rotate(-0.7deg); }
.gallery .ph:nth-child(3n+2) { transform: rotate(0.6deg); }
.gallery .ph img { width: 100%; height: 185px; object-fit: cover; display: block; transition: transform .25s; }
.gallery .ph:hover img { transform: scale(1.04); }
.gallery .ph figcaption {
  position: absolute; left: 7px; right: 7px; bottom: 7px; padding: 8px 10px; font-size: .82rem; color: #fff;
  background: linear-gradient(transparent, rgba(38, 33, 25, .65)); opacity: 0; transition: .2s;
}
.gallery .ph:hover figcaption { opacity: 1; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery .ph img { height: 150px; } }

.lightbox { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(28, 24, 17, .92);
  align-items: center; justify-content: center; flex-direction: column; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox .lb-cap { color: #ece5d6; margin-top: 14px; font-size: .95rem; }
.lightbox .lb-x { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }

/* ---------- 후원 ---------- */
.donate-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; align-items: stretch; margin: 18px 0; }
.qr-card { text-align: center; }
.qr-card img { width: 190px; height: 190px; margin: 6px auto 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; padding: 8px; }
.acct-big { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: .3px; }
.copy-btn { margin-left: 8px; font-size: .8rem; padding: 4px 12px; border: 1px solid #b5aa93; border-radius: var(--radius); background: transparent; cursor: pointer; font-family: inherit; color: var(--ink-soft); font-weight: 600; }
.copy-btn:hover { border-color: var(--ink); color: var(--ink); }
@media (max-width: 680px) { .donate-grid { grid-template-columns: 1fr; } }

/* 후원 안내 — 정기후원 금액 예시 */
.tier-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.tier {
  border: 1px dashed #b5aa93; border-radius: var(--radius);
  padding: 20px 18px; background: transparent;
}
.tier .amt { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.tier p { margin: 8px 0 0; font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 680px) { .tier-row { grid-template-columns: 1fr; } }

/* 함께해 준 곳들 */
.partners {
  margin-top: 30px; padding-top: 16px;
  border-top: 1px dashed #c9bfa8;
  font-size: .92rem; color: var(--ink-soft); line-height: 1.9;
}
.partners strong { color: var(--ink); font-weight: 700; }

/* 투명운영 링크 묶음 */
.trust-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.trust-links a {
  display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-card); color: var(--ink); box-shadow: var(--shadow);
}
.trust-links a:hover { text-decoration: none; border-color: #b9ad92; }
.trust-links .t { font-weight: 700; display: block; margin-bottom: 4px; }
.trust-links .d { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 680px) { .trust-links { grid-template-columns: 1fr; } }
