/* ==========================================================
   남경기노회 — 홈
   팔레트  : ink #1A1D21 / paper #F3F5F7 / deep #1D3147
             slate #5E6B7A / line #E0E4E8 / amber #B98B3B
   서체    : Pretendard Variable (전체)
   ========================================================== */

:root {
  --ink: #1a1d21;
  --paper: #f3f5f7;
  --white: #ffffff;
  --deep: #1d3147;
  --deep-dark: #16273a;
  --slate: #5e6b7a;
  --line: #e0e4e8;
  --amber: #b98b3b;
  --header-h: 92px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 컬러 테마 : 메인 컬러·배경 톤·포인트 색을 세트로 조정 */
:root[data-theme="forest"]   { --deep: #1f4636; --deep-dark: #173629; --paper: #f1f5ef; --line: #dce2d8; --amber: #45845f; }
:root[data-theme="burgundy"] { --deep: #5c2434; --deep-dark: #481b28; --paper: #f7f2f0; --line: #e5dbd7; --amber: #ad4f5e; }
:root[data-theme="royal"]    { --deep: #2a4a8b; --deep-dark: #203968; --paper: #f0f3f8; --line: #dbe0e9; --amber: #4d74c9; }
:root[data-theme="plum"]     { --deep: #4a3a6b; --deep-dark: #3a2d55; --paper: #f4f2f8; --line: #e0dce8; --amber: #8168b5; }
:root[data-theme="charcoal"] { --deep: #33383f; --deep-dark: #24282e; --paper: #f3f3f3; --line: #dfdfdf; --amber: #5c7290; }

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

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: min(90%, 1680px);
  margin-inline: auto;
}

/* 서브페이지 본문 공통 폭 */
.container--narrow { width: min(90%, 1200px); }

:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

::selection { background: var(--deep); color: #fff; }

/* ----------------------------------------------------------
   공통 요소
   ---------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--slate);
  text-transform: uppercase;
}

.eyebrow--light { color: rgba(255, 255, 255, 0.75); }

.cross {
  font-style: normal;
  font-weight: 300;
  font-size: 22px;
  line-height: 1;
  color: var(--amber);
}

.section { padding: clamp(90px, 12vw, 170px) 0; }
.section--tone { background: var(--paper); }

.section__head { max-width: 580px; }

.section__title {
  margin-top: 22px;
  font-size: clamp(32px, 3.4vw, 50px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.03em;
}

.section__desc {
  margin-top: 18px;
  font-size: 20px;
  color: var(--slate);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
  transition: color 0.25s, border-color 0.25s;
}

.link-more i {
  font-style: normal;
  transition: transform 0.3s var(--ease);
}

.link-more:hover { color: var(--amber); border-color: var(--amber); }
.link-more:hover i { transform: translateX(5px); }

/* 전체 보기 링크 : 콘텐츠 우측 상단 */
.news__body > .link-more {
  display: flex;
  width: max-content;
  margin: 0 0 20px auto;
}

.section__toprow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section__toprow .link-more {
  flex-shrink: 0;
  margin: 0 0 10px 0;
}

/* 스크롤 등장 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.on { opacity: 1; transform: none; }

/* ----------------------------------------------------------
   헤더
   ---------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background 0.35s, color 0.35s, box-shadow 0.35s;
}

.header.is-solid,
.header.is-mega {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(10px);
}

.header__inner {
  width: min(90%, 1680px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 로고 칩 : 흰 배경과 여백이 이미지에 포함되어 있음 (img/logo-chip.png) */
.logo__mark {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 6px rgba(26, 29, 33, 0.18));
}

.logo__mark img { display: block; width: 100%; height: 100%; }

.logo__text { line-height: 1.2; }
.logo__text em { display: block; font-style: normal; font-size: 12.5px; letter-spacing: 0.08em; opacity: 0.72; }
.logo__text strong { display: block; margin-top: 2px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

/* GNB */
.gnb { flex: 1; display: flex; justify-content: center; }

.gnb__list { display: flex; gap: clamp(6px, 2vw, 26px); }

.gnb__link {
  position: relative;
  display: block;
  padding: 32px 15px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gnb__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 24px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.gnb__link:hover::after { transform: scaleX(1); }

/* 전체 메뉴 패널 */
.mega {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(26, 29, 33, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.header.is-mega .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega__inner {
  width: min(90%, 1680px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  padding: 44px 0 54px;
}

.mega__title {
  padding-bottom: 14px;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
}

.mega__col a {
  display: block;
  padding: 8px 0;
  font-size: 18px;
  color: var(--slate);
  transition: color 0.2s;
}

.mega__col a:hover { color: var(--deep); font-weight: 600; }

/* 우측 유틸 */
.header__util {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-login {
  padding: 10px 26px;
  font-size: 17px;
  font-weight: 600;
  border: 1px solid currentColor;
  border-radius: 100px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.header .btn-login:hover { background: #fff; color: var(--ink); }
.header.is-solid .btn-login:hover,
.header.is-mega .btn-login:hover { background: var(--deep); border-color: var(--deep); color: #fff; }

.btn-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 9px;
}

.btn-menu span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s;
}

.btn-menu:hover span:nth-child(2) { transform: scaleX(0.6); transform-origin: right; }

/* ----------------------------------------------------------
   전체 메뉴 시트 + 딤
   ---------------------------------------------------------- */

.dim {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(22, 27, 34, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.dim.is-open { opacity: 1; visibility: visible; }

/* 닫힘 상태에서는 display:none — 레이아웃 폭에 영향을 주지 않도록 (모바일 가로 오버플로우 방지) */
.sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: min(480px, 100%);
  display: none;
  flex-direction: column;
  background: var(--white);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
}

.sheet.is-shown { display: flex; }
.sheet.is-open { transform: none; }

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 34px;
  border-bottom: 1px solid var(--line);
}

.sheet__brand { font-size: 22px; font-weight: 700; }
.sheet__brand span { margin-left: 8px; font-size: 16px; font-weight: 500; color: var(--slate); }

.sheet__close { width: 44px; height: 44px; padding: 10px; }
.sheet__close svg { width: 100%; height: 100%; }

.sheet__body { flex: 1; overflow-y: auto; padding: 12px 34px 30px; }

.sheet__group { border-bottom: 1px solid var(--line); }

.sheet__title {
  position: relative;
  display: block;
  width: 100%;
  padding: 20px 0;
  font-size: 21px;
  font-weight: 700;
  text-align: left;
}

.sheet__title::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 300;
  font-size: 25px;
  color: var(--slate);
  transition: transform 0.3s;
}

.sheet__title[aria-expanded="true"]::after { transform: translateY(-50%) rotate(45deg); color: var(--amber); }

.sheet__sub {
  display: none;
  padding: 2px 0 20px;
}

.sheet__group.is-open .sheet__sub { display: block; }

.sheet__sub a {
  display: block;
  padding: 9px 0;
  font-size: 19px;
  color: var(--slate);
}

.sheet__sub a:hover { color: var(--deep); }

.sheet__foot { padding: 22px 34px 30px; border-top: 1px solid var(--line); }

.btn-login--wide {
  display: block;
  text-align: center;
  padding: 15px;
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
  border-radius: 4px;
  font-size: 19px;
}

.btn-login--wide:hover { background: var(--deep-dark); }

/* ----------------------------------------------------------
   히어로 (메인 배너)
   ---------------------------------------------------------- */

.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 55%;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero__slide.is-active {
  opacity: 1;
  animation: hero-zoom 9s var(--ease) forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 27, 34, 0.38) 0%, rgba(22, 27, 34, 0.06) 34%, rgba(20, 28, 39, 0.7) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(90%, 1680px);
  margin-inline: auto;
  padding-bottom: clamp(80px, 13vh, 150px);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.85);
  animation: hero-up 1s var(--ease) 0.2s backwards;
}

.hero__slogan {
  margin-top: 28px;
  font-size: clamp(40px, 6.2vw, 92px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  animation: hero-up 1.1s var(--ease) 0.45s backwards;
}

.hero__verse {
  margin-top: 30px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.01em;
  animation: hero-up 1.1s var(--ease) 0.7s backwards;
}

@keyframes hero-up {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}

/* 배너 버튼 */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 46px;
  animation: hero-up 1.1s var(--ease) 0.85s backwards;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 250px;
  padding: 17px 32px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.btn-hero svg { width: 21px; height: 21px; }

.btn-hero:hover { transform: translateY(-2px); }

.btn-hero--primary {
  background: #fff;
  color: var(--deep);
}

.btn-hero--primary:hover { background: var(--amber); color: #fff; }

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

.btn-hero--ghost:hover { background: #fff; color: var(--deep); border-color: #fff; }

/* 배너 인디케이터 */
.hero__dots {
  display: flex;
  gap: 10px;
  margin-top: 38px;
  animation: hero-up 1.1s var(--ease) 1s backwards;
}

.hero__dot {
  width: 34px;
  height: 22px;
  padding: 9px 0;
  background: none;
}

.hero__dot::before {
  content: "";
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s;
}

.hero__dot:hover::before { background: rgba(255, 255, 255, 0.7); }
.hero__dot.is-active::before { background: var(--amber); }

/* 회기 표기 — 세로 */
.hero__session {
  position: absolute;
  z-index: 1;
  right: calc(5% - 8px);
  bottom: clamp(80px, 13vh, 150px);
  writing-mode: vertical-rl;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.7);
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 14px;
  animation: hero-up 1.1s var(--ease) 0.9s backwards;
}

.hero__scroll {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.65);
}

.hero__scroll i {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  position: relative;
}

.hero__scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scroll-drop 2.2s ease-in-out infinite;
}

@keyframes scroll-drop {
  0% { top: -50%; }
  60%, 100% { top: 110%; }
}

/* ----------------------------------------------------------
   자주 찾는 서비스
   ---------------------------------------------------------- */

.svc {
  margin-top: clamp(50px, 6vw, 90px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.svc__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 250px;
  padding: 34px 32px 32px;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 22px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.svc__icobox {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(26, 29, 33, 0.05);
  transition: transform 0.3s var(--ease);
}

.svc__icon { width: 46px; height: 46px; color: var(--deep); }
.svc__icon .acc { stroke: var(--amber); }
.svc__icon .accf { fill: var(--amber); }

.svc__item strong {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.svc__item span:not(.svc__icobox) { font-size: 17px; color: var(--slate); }

.svc__item:hover {
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 22px 44px -18px rgba(29, 49, 71, 0.22);
  transform: translateY(-5px);
}

.svc__item:hover .svc__icobox { transform: scale(1.06); }
.svc__item:hover strong { color: var(--deep); }

/* ----------------------------------------------------------
   노회 소식
   ---------------------------------------------------------- */

.news__grid {
  display: grid;
  grid-template-columns: minmax(360px, 440px) 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 40px;
}

.tabs__btn {
  padding: 10px 17px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  transition: all 0.25s;
}

.tabs__btn:hover { border-color: var(--slate); color: var(--ink); }

.tabs__btn.is-active {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.notice { display: none; }
.notice.is-active { display: block; }

.notice li { border-bottom: 1px solid var(--line); }
.notice li:first-child { border-top: 1px solid var(--ink); }

.notice a {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 8px;
  transition: background 0.2s;
}

.notice a:hover { background: rgba(29, 49, 71, 0.045); }

.notice__cat {
  flex-shrink: 0;
  min-width: 56px;
  font-style: normal;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--amber);
  text-align: center;
}

.notice strong {
  flex: 1;
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice a:hover strong { font-weight: 700; }

.notice time {
  flex-shrink: 0;
  font-size: 17px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------
   사진자료실
   ---------------------------------------------------------- */

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 18px;
  margin-top: clamp(50px, 6vw, 90px);
}

.gallery__item { display: block; }

.gallery__item figure {
  overflow: hidden;
  border-radius: 16px;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.gallery__item:hover img { transform: scale(1.05); }

.gallery__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 0 4px;
}

.gallery__cap strong {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s;
}

.gallery__item:hover .gallery__cap strong { color: var(--amber); }

.gallery__cap time {
  flex-shrink: 0;
  font-size: 14.5px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------
   소개 밴드
   ---------------------------------------------------------- */

.band {
  position: relative;
  padding: clamp(110px, 15vw, 210px) 0;
  color: #fff;
  overflow: hidden;
}

.band__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  background-attachment: fixed;
}

.band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--deep-dark) 90%, transparent) 18%,
    color-mix(in srgb, var(--deep-dark) 55%, transparent) 65%,
    color-mix(in srgb, var(--deep-dark) 35%, transparent) 100%);
}

.band__inner { position: relative; z-index: 1; }

.band__title {
  margin-top: 24px;
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.03em;
}

.band__facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 5vw, 84px);
  margin-top: clamp(40px, 5vw, 70px);
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  max-width: 800px;
}

.band__facts dt {
  font-size: 17px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
}

.band__facts dd {
  margin-top: 6px;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-ghost {
  display: inline-block;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 16px 38px;
  font-size: 19px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-ghost:hover { background: #fff; color: var(--deep); border-color: #fff; }

/* ----------------------------------------------------------
   관련 기관
   ---------------------------------------------------------- */

.partners { padding-block: clamp(70px, 9vw, 130px); }

.partners__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
}

.partners__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 34px;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 22px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.partners__name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.partners__name em {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--slate);
  transition: color 0.3s;
}

.partners__arrow {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  color: var(--slate);
  transition: color 0.3s, transform 0.3s var(--ease);
}

.partners__card:hover {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 22px 44px -18px rgba(29, 49, 71, 0.4);
  transform: translateY(-4px);
}

.partners__card:hover .partners__name em { color: rgba(255, 255, 255, 0.6); }
.partners__card:hover .partners__arrow {
  color: var(--amber);
  transform: translate(3px, -3px);
}

/* ----------------------------------------------------------
   푸터
   ---------------------------------------------------------- */

.footer {
  background: var(--deep-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: clamp(60px, 7vw, 100px) 0 40px;
  font-size: 18px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 0.8fr;
  gap: clamp(36px, 5vw, 80px);
  padding-bottom: clamp(44px, 5vw, 70px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__logo { font-size: 28px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }

.footer__eng {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.45);
}

.footer__info div {
  display: flex;
  gap: 16px;
  padding: 5px 0;
}

.footer__info dt {
  flex-shrink: 0;
  width: 64px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__info a:hover { text-decoration: underline; }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a { transition: color 0.2s; }
.footer__links a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
}

.footer__policy { display: flex; gap: 22px; }
.footer__policy a:hover { color: #fff; }

/* ----------------------------------------------------------
   서브페이지 공통 : 페이지 비주얼
   ---------------------------------------------------------- */

.pv { padding-top: var(--header-h); background: var(--white); }

.pv__title {
  padding: clamp(64px, 9vw, 130px) 0 clamp(48px, 7vw, 95px);
  text-align: center;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #ccd1d7;
  animation: pv-up 1s var(--ease) 0.1s backwards;
}

.pv__media {
  position: relative;
  height: clamp(200px, 22vw, 320px);
  overflow: hidden;
}

/* 홈 히어로와 동일한 줌아웃 등장 — 이미지는 처음부터 보임 (hero-zoom 재사용) */
.pv__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: hero-zoom 9s var(--ease) forwards;
}

.pv__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 39, 0.35);
}

/* 이미지 위에 얹는 타이틀 */
.pv__title--over {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  text-shadow: 0 4px 30px rgba(20, 28, 39, 0.45);
  animation: pv-up 1s var(--ease) 0.5s backwards;
}

.pv__txt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 5%;
}

.pv__eyebrow {
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  animation: pv-up 0.9s var(--ease) 0.75s backwards;
}

.pv__display {
  margin-top: 18px;
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
  animation: pv-up 0.9s var(--ease) 0.9s backwards;
}

@keyframes pv-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* 하위 메뉴 탭 : 비주얼 아래 중앙 정렬 */
.sub-tabs-bar { border-bottom: 1px solid var(--line); background: var(--white); }

/* 서브페이지 본문 여백 통일 (하위 탭 아래 오는 모든 섹션) */
.sub-tabs-bar ~ .section {
  padding: clamp(44px, 5vw, 70px) 0 clamp(80px, 9vw, 130px);
}

.sub-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
}

.sub-tabs a {
  position: relative;
  flex-shrink: 0;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--slate);
  transition: color 0.2s;
}

.sub-tabs a::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  background: var(--deep);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.sub-tabs a:hover { color: var(--ink); }

.sub-tabs a.is-current { color: var(--deep); font-weight: 700; }
.sub-tabs a.is-current::after { transform: scaleX(1); }

/* 상단 메뉴 현재 위치 표시 */
.gnb__link.is-current { font-weight: 700; }
.gnb__link.is-current::after { transform: scaleX(1); }

/* ----------------------------------------------------------
   노회장인사 (sub01_01)
   ---------------------------------------------------------- */

.greet__grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 720px);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
  justify-content: center;
}

.greet__photo {
  position: sticky;
  top: calc(var(--header-h) + 30px);
}

.greet__photo img {
  width: 100%;
  box-shadow: 0 24px 50px -20px rgba(26, 29, 33, 0.3);
}

.greet__photo figcaption {
  margin-top: 18px;
  font-size: 17px;
  color: var(--slate);
}

.greet__photo figcaption strong {
  margin-right: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.greet__title {
  margin-top: 22px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.03em;
}

/* 노회장 네임 카드 */
.greet__card {
  margin-top: 26px;
  padding: 24px 30px;
  background: var(--paper);
  border-left: 4px solid var(--deep);
  border-radius: 0 12px 12px 0;
}

.greet__card strong {
  display: block;
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.greet__card span {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--deep);
}

/* 강조 박스 */
.greet__box {
  margin: 30px 0;
  padding: 26px 30px;
  background: color-mix(in srgb, var(--amber) 9%, #fff);
  border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0;
}

.greet__box strong {
  display: block;
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 700;
}

.greet__box p {
  margin: 0;
  font-size: 19px;
  line-height: 1.8;
  color: #3a424c;
}

/* 우측 정렬 서명 */
.greet__sign2 {
  margin-top: clamp(36px, 4vw, 54px);
  text-align: right;
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 700;
}

.greet__text { margin-top: clamp(26px, 3vw, 40px); }

.greet__text p {
  margin-bottom: 20px;
  font-size: 19px;
  line-height: 1.9;
  color: #3a424c;
}

.greet__callout {
  font-weight: 700;
  font-size: 22px !important;
  color: var(--deep) !important;
  margin-top: 34px;
}

.greet__sign {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.greet__sign > p:first-child {
  font-size: 17px;
  color: var(--slate);
}

.greet__name {
  margin-top: 10px;
  font-size: 18px;
  color: var(--slate);
}

.greet__name strong {
  margin-right: 10px;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .greet__grid { grid-template-columns: 1fr; }

  .greet__photo {
    position: static;
    max-width: 340px;
  }
}

/* ----------------------------------------------------------
   노회소개 (sub01_02)
   ---------------------------------------------------------- */

.intro__top {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 330px);
  gap: clamp(30px, 4.5vw, 70px);
  align-items: center;
}

.intro__emblem img { width: 100%; }

/* 신앙의 표준 (텍스트 블록) */
.intro__creedsec { margin-top: clamp(50px, 6.5vw, 90px); }

.intro__h3 {
  margin-top: 18px;
  font-size: clamp(23px, 2.3vw, 33px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.intro__creed { margin-top: 18px; }

.intro__creed p {
  margin-bottom: 16px;
  font-size: 18.5px;
  line-height: 1.9;
  color: #3a424c;
}

/* 시찰 구성 */
.intro__sichal { margin-top: clamp(56px, 7vw, 100px); }

.intro__list--grid {
  /* 개수에 따라 JS(balanceSichalGrid)가 --sichal-cols를 조정 (예: 5개 → 3+2) */
  --sichal-cols: 4;
  --sichal-gap: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sichal-gap);
  margin-top: 24px;
}

.intro__list--grid li {
  width: calc((100% - (var(--sichal-cols) - 1) * var(--sichal-gap)) / var(--sichal-cols));
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 26px 26px;
  border: 0;
  background: var(--paper);
  border-radius: 18px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.intro__list--grid li:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -16px rgba(29, 49, 71, 0.22);
}

.intro__list--grid li::before {
  content: "0" counter(sichal);
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  color: var(--amber);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* 관할 지역 바 */
.intro__areabar {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 18px;
  padding: 24px 30px;
  background: color-mix(in srgb, var(--deep) 5%, #fff);
  border-left: 4px solid var(--deep);
  border-radius: 0 14px 14px 0;
}

.intro__areabar strong {
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--deep);
}

.intro__areabar .intro__area { margin-top: 0; }

@media (max-width: 900px) {
  .intro__top { grid-template-columns: 1fr; }
  .intro__emblem { max-width: 280px; margin: 10px auto 0; }
  .intro__list--grid li { width: calc((100% - var(--sichal-gap)) / 2); }
  .intro__areabar { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
  .intro__list--grid li { width: 100%; }
}

.intro__title {
  margin-top: 22px;
  font-size: clamp(26px, 2.7vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.intro__text { margin-top: clamp(24px, 3vw, 38px); }

.intro__text p {
  margin-bottom: 20px;
  font-size: 19px;
  line-height: 1.9;
  color: #3a424c;
}

.intro__cards {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: clamp(30px, 4vw, 50px);
}

.intro__card {
  padding: 32px 36px;
  background: var(--paper);
  border-radius: 20px;
}

.intro__card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
}

.intro__cardlead {
  margin-top: 10px;
  font-size: 16.5px;
  color: var(--slate);
}

.intro__list {
  margin-top: 14px;
  counter-reset: sichal;
}

.intro__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18.5px;
  font-weight: 600;
  counter-increment: sichal;
}

.intro__list li:last-child { border-bottom: 0; }

.intro__list li::before {
  content: counter(sichal);
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
}

.intro__area {
  margin-top: 16px;
  font-size: 18.5px;
  line-height: 1.85;
  color: #3a424c;
}

/* ----------------------------------------------------------
   역대임원 (sub01_03)
   ---------------------------------------------------------- */

.past__scroll {
  margin-top: clamp(36px, 4.5vw, 56px);
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.past__table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
  font-size: 16.5px;
}

.past__table thead th {
  padding: 15px 10px;
  background: var(--deep);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
}

.past__table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: #333a43;
}

.past__table tbody tr:last-child td { border-bottom: 0; }

.past__table td:first-child {
  font-weight: 700;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}

.past__table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper) 60%, #fff); }
.past__table tbody tr:hover { background: var(--paper); }

/* ----------------------------------------------------------
   현재임원 (sub01_04)
   ---------------------------------------------------------- */

.ofc__term {
  margin-top: 16px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ofc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3.5vw, 48px) clamp(20px, 2.5vw, 36px);
  margin-top: clamp(36px, 4.5vw, 56px);
}

/* 임원 카드 : 얇은 테두리 와꾸로 그리드 폭에 맞춤 */
.ofc__card {
  text-align: center;
  padding: 30px 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.ofc__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -16px rgba(29, 49, 71, 0.18);
}

/* 증명사진 비율 */
.ofc__avatar {
  display: grid;
  place-items: center;
  width: min(100%, 145px);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  color: var(--slate);
  font-size: 38px;
  font-weight: 700;
}

.ofc__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.ofc__card:hover .ofc__avatar img { transform: scale(1.04); }

.ofc__role {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.ofc__name {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ofc__name small {
  margin-left: 5px;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--slate);
}

.ofc__church {
  display: block;
  margin-top: 3px;
  font-size: 16.5px;
  color: var(--slate);
}

@media (max-width: 1100px) {
  .ofc__grid { grid-template-columns: repeat(2, 1fr); }
  .intro__cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ofc__grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   시찰현황 (sub02_01)
   ---------------------------------------------------------- */

.sichal__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.sichal__lead {
  margin-top: 16px;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sichal__toggleall {
  flex-shrink: 0;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 600;
  color: var(--deep);
  border: 1.5px solid var(--deep);
  border-radius: 100px;
  transition: background 0.25s, color 0.25s;
}

.sichal__toggleall:hover { background: var(--deep); color: #fff; }

.sichal__list { margin-top: clamp(30px, 4vw, 48px); }

.sichal__item {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}

.sichal__item:hover { box-shadow: 0 14px 34px -18px rgba(29, 49, 71, 0.18); }

.sichal__head {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px 28px;
  text-align: left;
}

.sichal__num {
  flex-shrink: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.sichal__headinfo { flex: 1; min-width: 0; }

.sichal__headinfo strong {
  display: block;
  font-size: clamp(20px, 1.8vw, 25px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sichal__headinfo > span {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  color: var(--slate);
}

.sichal__chev {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--slate);
  transition: transform 0.3s var(--ease);
}

.sichal__item.is-open .sichal__chev { transform: rotate(180deg); }

.sichal__body {
  display: none;
  padding: 0 28px 28px;
  border-top: 1px solid var(--line);
}

.sichal__item.is-open .sichal__body { display: block; }

.sichal__desc {
  padding-top: 22px;
  font-size: 17px;
  color: var(--slate);
}

.sichal__churches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.sichal__churches li {
  padding: 20px 24px;
  background: var(--paper);
  border-radius: 14px;
}

.sichal__churches strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sichal__churches em {
  margin-left: 8px;
  font-style: normal;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--deep);
}

.sichal__addr {
  margin-top: 7px;
  font-size: 15.5px;
  line-height: 1.6;
  color: #3a424c;
}

.sichal__tel {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

@media (max-width: 900px) {
  .sichal__churches { grid-template-columns: 1fr; }
  .sichal__head { padding: 20px 20px; gap: 14px; }
  .sichal__body { padding: 0 20px 22px; }
}

/* ----------------------------------------------------------
   기관소개 (sub03_XX)
   ---------------------------------------------------------- */

.org__block { margin-top: clamp(36px, 4.5vw, 56px); }

.org__h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(21px, 1.9vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.org__scroll {
  margin-top: 18px;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.org__table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 16.5px;
}

.org__table thead th {
  padding: 15px 12px;
  background: var(--deep);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
}

.org__table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: #333a43;
}

.org__table tbody tr:last-child td { border-bottom: 0; }

.org__table td:first-child { font-weight: 700; color: var(--deep); }

.org__table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper) 60%, #fff); }
.org__table tbody tr:hover { background: var(--paper); }

/* ----------------------------------------------------------
   게시판 자리 표시 (sub04~06 : 추후 게시판 연동 영역)
   ---------------------------------------------------------- */

/* ----------------------------------------------------------
   노회행정 데이터 페이지 (노회원현황·상비부현황·상회비현황·별명부)
   ---------------------------------------------------------- */

.member-note {
  margin: 4px 0 18px;
  font-size: 15.5px;
  color: var(--slate);
}

/* 탭 + 검색창 한 줄 배치 (모바일에서는 줄바꿈) */
.member-tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.member-tools .board-cats { margin-bottom: 0; }

.member-search {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 18px;
  min-width: min(280px, 100%);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s;
}

.member-search:focus-within { border-color: var(--deep); background: #fff; }

.member-search svg { width: 18px; height: 18px; color: var(--slate); flex-shrink: 0; }

.member-search input {
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}

.member-search input:focus { outline: none; }

.member-empty {
  padding: 36px 0;
  text-align: center;
  font-size: 16.5px;
  color: var(--slate);
}

@media (max-width: 640px) {
  .member-search { width: 100%; }
}

/* 공천부 카드 */
.promo-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  padding: 24px 30px;
  margin-bottom: 26px;
  background: var(--paper);
  border-left: 4px solid var(--deep);
  border-radius: 0 14px 14px 0;
}

.promo-card > div { display: flex; align-items: baseline; gap: 14px; }

.promo-card span {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--slate);
}

.promo-card strong,
.promo-card em {
  font-style: normal;
  font-size: 19px;
  font-weight: 700;
}

.standing__title {
  margin-bottom: 16px;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.standing__cell-members {
  text-align: left !important;
  line-height: 1.7;
}

/* 시찰 소계 행 */
.fees-subtotal td {
  background: #eef1f5;
  font-weight: 800;
  color: var(--deep);
  border-top: 2px solid var(--deep);
  font-variant-numeric: tabular-nums;
}

.fees-total__caption {
  width: 100%;
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.02em;
}

/* 상회비 합계 카드 */
.fees-total {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 60px;
  margin-top: 18px;
  padding: 24px 30px;
  background: var(--deep);
  color: #fff;
  border-radius: 14px;
}

.fees-total > div { display: flex; align-items: baseline; gap: 14px; }

.fees-total span { font-size: 15px; color: rgba(255, 255, 255, 0.7); }

.fees-total strong { font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------
   규칙자료실 (sub05_03)
   ---------------------------------------------------------- */

.rule__toc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 24px 28px;
  margin-bottom: clamp(30px, 4vw, 44px);
  background: var(--paper);
  border-radius: 16px;
}

.rule__toc li {
  font-size: 15.5px;
  font-weight: 600;
  color: #3a424c;
}

.rule__toc li b {
  margin-right: 8px;
  color: var(--amber);
  font-weight: 700;
}

.rule__chapter { margin-bottom: clamp(30px, 4vw, 44px); }

.rule__chapter h4 {
  padding-bottom: 12px;
  margin-bottom: 18px;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 700;
  border-bottom: 2px solid var(--deep);
}

.rule__body p {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.8;
  color: #3a424c;
}

.rule__body .rule__art {
  margin-top: 18px;
  font-weight: 700;
  color: var(--deep);
}

.rule__history {
  margin-top: 30px;
  padding: 20px 26px;
  background: var(--paper);
  border-radius: 14px;
  font-size: 15.5px;
  color: var(--slate);
  line-height: 1.9;
}

@media (max-width: 900px) {
  .rule__toc { grid-template-columns: repeat(2, 1fr); }
}

/* 게시판 3뎁스 분류 칩 */
.board-cats {
  margin: 0 0 26px;
  flex-wrap: wrap;
}

.board-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 320px;
  padding: 60px 24px;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--paper) 50%, #fff);
}

.board-wait svg {
  width: 52px;
  height: 52px;
  color: var(--slate);
  opacity: 0.6;
}

.board-wait strong {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  color: var(--ink);
}

.board-wait p {
  font-size: 16.5px;
  color: var(--slate);
}

.palette {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.palette__toggle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--white);
  color: var(--deep);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(26, 29, 33, 0.2);
  transition: transform 0.3s var(--ease), color 0.3s;
}

.palette__toggle svg { width: 26px; height: 26px; }

.palette__toggle:hover { transform: scale(1.07); }

.palette__pop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(26, 29, 33, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.palette.is-open .palette__pop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.palette__swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.palette__swatch:hover { transform: scale(1.12); }

.palette__swatch.is-active {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--sw);
}

/* ----------------------------------------------------------
   반응형
   ---------------------------------------------------------- */

@media (max-width: 1280px) {
  .gnb__link { font-size: 18px; padding-inline: 10px; }
  .gnb__link::after { left: 10px; right: 10px; }
}

@media (max-width: 1100px) {
  .gnb { display: none; }

  .svc { grid-template-columns: repeat(2, 1fr); }
  .svc__item { min-height: 210px; padding: 28px 26px 26px; }

  .news__grid { grid-template-columns: 1fr; }

  .gallery__grid { grid-template-columns: repeat(3, 1fr); }

  .partners__list { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }

  .band__bg { background-attachment: scroll; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }

  body { font-size: 17px; }

  .logo__text strong { font-size: 19px; }
  .logo__text em { font-size: 11.5px; }

  .header__inner { gap: 12px; }
  .header__util { gap: 10px; }
  .btn-login { padding: 8px 16px; font-size: 14.5px; }
  .btn-menu { width: 40px; height: 40px; gap: 6px; padding: 8px; }

  .hero__session { display: none; }

  .hero { min-height: 640px; }
  .hero__eyebrow { font-size: 13px; letter-spacing: 0.18em; }
  .hero__verse { margin-top: 22px; }
  .logo__mark { width: 42px; height: 42px; }

  /* 버튼 두 개 나란히 */
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 36px;
  }

  .btn-hero {
    min-width: 0;
    padding: 14px 10px;
    font-size: 15.5px;
    gap: 7px;
  }

  .btn-hero svg { width: 17px; height: 17px; }

  /* 모바일에서는 제목 줄바꿈 해제 — 흐름에 맡김 */
  .section__title br,
  .band__title br { display: none; }

  .section { padding: 70px 0; }
  .section__title { font-size: 27px; }
  .section__desc { font-size: 17px; margin-top: 12px; }
  .eyebrow { font-size: 15px; }
  .link-more { font-size: 17px; margin-top: 26px; }

  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .gallery__cap { margin-top: 8px; flex-direction: column; gap: 1px; align-items: flex-start; }
  .gallery__cap strong { font-size: 15px; }
  .gallery__cap time { font-size: 12.5px; }

  .tabs { margin-top: 28px; gap: 5px; }
  .tabs__btn { padding: 8px 12px; font-size: 14px; }

  .band { padding: 90px 0; }
  .band__title { font-size: 27px; }

  .band__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
    padding-top: 28px;
  }

  .band__facts dt { font-size: 14px; }
  .band__facts dd { font-size: 21px; }

  .btn-ghost { padding: 13px 28px; font-size: 16px; }

  .footer { font-size: 16px; }
  .footer__logo { font-size: 23px; }
  .footer__eng { font-size: 11px; letter-spacing: 0.14em; }
  .footer__info dt { width: 56px; }
  .footer__bottom { font-size: 13.5px; }

  .svc { grid-template-columns: 1fr 1fr; gap: 12px; }
  .svc__item { min-height: 180px; padding: 22px 20px 20px; border-radius: 18px; }
  .svc__item strong { font-size: 19px; margin-top: 14px; }
  .svc__item span:not(.svc__icobox) { font-size: 14.5px; }
  .svc__icobox { width: 58px; height: 58px; border-radius: 15px; }
  .svc__icon { width: 36px; height: 36px; }

  .notice a { gap: 14px; padding: 20px 4px; }
  .notice__cat { min-width: 44px; font-size: 14.5px; }
  .notice time { font-size: 15px; }

  .partners__list { grid-template-columns: 1fr; gap: 12px; }
  .partners__card { padding: 24px 26px; border-radius: 18px; }
  .partners__name { font-size: 19px; }

  .sheet__head, .sheet__body, .sheet__foot { padding-inline: 24px; }

  .palette { right: 16px; bottom: 16px; }
  .palette__toggle { width: 48px; height: 48px; }
  .palette__toggle svg { width: 22px; height: 22px; }
}

/* ----------------------------------------------------------
   모션 최소화 환경
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
