/* ==========================
   WONEUM 기본 테마 정의
   ========================== */

:root {
  --color-main: #c89a06;
  --color-main-hover: #8b5e00;
  --color-sub-1: #2c2c2c;
  --color-sub-2: #f6f1e4;
  --color-sub-3: #ddd;
  --color-footer: #ddd;

  --color-text: #222;
  --color-muted: #999;
  --color-bg: #fff;
  --color-bg3: #f1f9ff;
  --color-bg2: #faf6ee;
  --basic-bg: #f6f6f6;

  /* ✅ 표 전용 (게시판 list 전용) 파스텔톤 색상 추가 */
  --color-table-main: #dcd1b0;
  /* 주색상 파스텔 블루 */
  --color-table-hover: #ddd6c3;
  /* hover 시 배경색 */
  --color-table-border: #d9cbb2;
  /* 테두리 */
  --color-table-accent: #fcefe9;
  /* 강조용 배경 (예: 공지) */
  --color-table-muted: #8a99a6;
  /* 연한 텍스트 */

  /* 게시판용 색상 */
  --color-notice: #f23827;

  --head-width: 1920px;
  /* 기본 콘텐츠 최대 너비 */
  --header-height: 90px;
  --slide-height: 600px;
  --layout-width: 1200px;
  /* 기본 콘텐츠 최대 너비 */
  --layout-padding: 20px;
  /* 좌우 여백 (반응형용) */

  --font-main: "S-CoreDream-3Light", sans-serif;
  --font-title: "S-CoreDream-3Light", sans-serif;
  --font-subtitle: "S-CoreDream-3Light", sans-serif;
  --font-subpagetitle: "Paperlogy-8ExtraBold", sans-serif;

  --vig-edge: .35;
  /* 가장자리 어둡기(0~0.6 추천) */
  --vig-bottom: .45;
  /* 하단 어둡기(0~0.6 추천) */

  --menu-item-w: 140px;

  --nav-t: .32s;
  /* 전체 기본 지속시간 */
  --nav-ease: cubic-bezier(0.25, 1, 0.3, 1);
  --nav-fade: .28s;
  /* 로고/컬러 페이드용 */
  --sb-ease: cubic-bezier(0.25, 1, 0.3, 1);
  --sb-t: .32s;


  --space-section: clamp(40px, 6vw, 72px);
  /* 섹션 간 기본 여백 */
  --space-block: clamp(16px, 3vw, 32px);
  /* 요소 간 여백 */
}




.flex {
  display: flex;
}

.ctt_admin {
  max-width: var(--layout-width);
  margin: 0 auto;
}

@font-face {
  font-family: "S-CoreDream-3Light";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-3Light.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Paperlogy-8ExtraBold";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "BMJUA";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_one@1.0/BMJUA.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'WONbatang';
  font-style: normal;
  font-weight: 400;
  src: url('../font/WONbatangR.eot');
  src: url('../font/WONbatangR.eot?#iefix') format('embedded-opentype'),
    url('../font/WONbatangR.woff') format('woff');
}

@font-face {
  font-family: 'WONbatang';
  font-style: normal;
  font-weight: 700;
  src: url('../font/WONbatangB.eot');
  src: url('../font/WONbatangB.eot?#iefix') format('embedded-opentype'),
    url('../font/WONbatangB.woff') format('woff');
}

@font-face {
  font-family: 'WONdotum';
  font-style: normal;
  font-weight: 400;
  src: url('../font/WONdotumR.eot');
  src: url('../font/WONdotumR.eot?#iefix') format('embedded-opentype'),
    url('../font/WONdotumR.woff') format('woff');
}

@font-face {
  font-family: 'WONdotum';
  font-style: normal;
  font-weight: 700;
  src: url('../font/WONdotumB.eot');
  src: url('../font/WONdotumB.eot?#iefix') format('embedded-opentype'),
    url('../font/WONdotumB.woff') format('woff');
}

@font-face {
  font-family: 'WONtitle';
  font-style: normal;
  font-weight: 700;
  src: url('../font/WONtitle.eot');
  src: url('../font/WONtitle.eot?#iefix') format('embedded-opentype'),
    url('../font/WONtitle.woff') format('woff');
}

#hd {}

#ctt_con {
  max-width: var(--layout-width);
  padding: 0 10px;
  margin: 0 auto;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
}

#tnb {
  max-width: var(--head-width);
  align-items: center;
  padding: 0 10px;
}

#tnb .inner {
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
}

#lnb #logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#logo img {
  max-width: 220px;
  max-height: 60px;
}

.container {
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: 30px 10px;
}

.container_wide {
  width: 100%;
  margin: 0 auto;
}

.main-title {
  font-size: 2em;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.main-sub {
  font-size: 1.3em;
  margin-top: 20px;
}

.tnb_admin {
  display: flex;
  text-align: center;
  gap: 10px;
  margin: 0 30px;
}

.tnb_admin li {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hd_right {
  display: flex;
  list-style: none;
}

/* SNS 아이콘 스타일 */
.hd_sns {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hd_sns a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
  display: block;
  border-radius: 8px;
}

.hd_sns a:hover img {
  transform: scale(1.1);
}

.hd_login {
  display: none;
}

/* 메뉴바 */
/* 기본: 데스크탑에서는 데스크탑 메뉴만 */
.nav-mobile {
  display: none;
}

.wide-decorated {
  position: relative;
  overflow: hidden;
  z-index: 0;
}

/* 공통 원 스타일 */
.wide-decorated .circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0;
}

/* 각각 다른 원 */
.circle-1 {
  width: 200px;
  height: 200px;
  background-color: var(--color-main);
  top: -80px;
  left: -80px;

  animation: float 6s ease-in-out infinite;
}

.circle-2 {
  width: 520px;
  height: 520px;
  background-color: var(--color-sub-3);
  bottom: 50px;
  right: -100px;

  animation: pulse 5s ease-in-out infinite;
}

.circle-3 {
  width: 300px;
  height: 300px;
  background-color: var(--color-sub-2);
  top: -100px;
  right: 45%;

  animation: float 7s ease-in-out infinite;
  animation-delay: 1s;
}

.circle-4 {
  width: 500px;
  height: 500px;
  background-color: var(--color-sub-3);
  bottom: -200px;
  left: 10%;

  animation: pulse 4s ease-in-out infinite;
  animation-delay: 2s;
}

.circle-5 {
  width: 200px;
  height: 200px;
  background-color: var(--color-main);
  top: 40%;
  left: 60%;
  animation: float 5s ease-in-out infinite;
  animation-delay: 0.5s;
}

#bo_v,
#bo_w,
#bo_gall,
#bo_list {
  max-width: var(--layout-width);
  margin: 0 auto;
  /* margin-top: calc(var(--header-height) + 20px); */
  padding: 0 10px;
}

.frm_input2 {
  height: auto;
  font-size: 1.2em;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-50px);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes slow-rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 서브 비주얼 */
.sub-visual {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.sub-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2차 메뉴 */
.sub-menu {
  background: #f7f7f7;
  border-bottom: 1px solid #ddd;
}

.sub-menu ul {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  margin: 0;
  list-style: none;
}

.sub-menu ul li {
  margin: 0 15px;
}

.sub-menu ul li a {
  padding: 8px 16px;
  background: #3981bf;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.sub-menu ul li a:hover {
  background: #2c6a9e;
}

/* 1) 컨테이너에서 넘치는 부분 숨기기 */
.sub_visual {
  overflow: hidden;
  height: 280px;
  position: relative;
  /* 절대위치의 기준을 여기로 잡음 */
  display: flex;
  justify-content: center;
  margin-top: var(--header-height);
}

/* 2) 이미지 초기 확대 상태, transform-origin은 중앙 */
.sub_visual img {
  display: block;
  filter: brightness(60%);
  transform: scale(1.3);
  transform-origin: center center;
  animation: zoomOutImg 3s ease-out forwards;
}

#depth2_title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  display: inline-block;
  /* nowrap 적용을 위해 inline-block */
  white-space: nowrap;
  /* 한 글자씩 줄바꿈 방지 */
  text-align: center;
  z-index: 1;
  color: #fff;
  font-family: var(--font-subpagetitle);
  font-size: 40px;
  letter-spacing: 3px;
  text-shadow: 5px 5px 5px #333;
}

/* 3) keyframes 정의: 1.2배 → 1배 */
@keyframes zoomOutImg {
  from {
    transform: scale(1.3);
  }

  to {
    transform: scale(1);
  }
}

/* 태블릿/모바일 공통 (<=1024px) */
@media (max-width: 1024px) {
  #depth2_title {
    font-size: 30px;
  }
}

/* (선택) 태블릿과 모바일을 구분하고 싶다면 추가 분기 */
@media (min-width: 768px) and (max-width: 1024px) {
  .swiper-container {
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .tnb_admin {
    display: none;
  }

  .tnb_admin_mobile {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
  }

  .tnb_admin_mobile li {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    font-size: 1.2em;
  }

  #tnb {
    position: sticky;
    top: 0;
    height: 70px;
    z-index: 999;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
  }

  #tnb.hide {
    transform: translateY(-100%);
  }

  #tnb .inner {
    height: 70px;
  }

  .hd_sns_mobile {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .hd_sns_mobile a img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 8px;
  }

  .sub_visual {
    height: 200px;
  }
}

@media (max-width: 820px) {
  /* 모바일 전용 스타일이 필요하면 여기에… */

  #logo img {
    max-width: 200px;
  }

  .hd_sns {
    display: none;
  }

  .hd_sns_mobile {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .hd_sns_mobile a img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 8px;
  }

  #tnb {
    position: sticky;
    top: 0;
    height: 70px;
    z-index: 999;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
  }

  #tnb.hide {
    transform: translateY(-100%);
  }

  #tnb .inner {
    height: 70px;
  }

  .tnb_admin {
    display: none;
  }

  .tnb_admin_mobile {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
  }

  .tnb_admin_mobile li {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    font-size: 1.2em;
  }

  .swiper-container {
    margin-top: 0px;
    margin-bottom: 0px;
  }

  .sub_visual {
    height: 150px;
  }

  .sub-menu ul {
    flex-wrap: wrap;
  }

  .sub-menu ul li {
    margin-bottom: 10px;
  }
}


/* style.css 에 추가 */

/* 1) 가로 스크롤 컨테이너 */
.basic-table-responsive {
  width: 100%;
  overflow-x: auto;
}

/* 2) 테이블 기본 스타일 */
.basic-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  color: #333;
}

.basic-table th,
.basic-table td {
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  vertical-align: middle;
}

.basic-table th {
  width: 30%;
  background-color: #f5f5f5;
  text-align: center;
  font-weight: 500;
}

.basic-table td {
  background-color: #fff;
}

.all_chk {
  padding: 10px 5px !important;
}

.button {
  padding: 15px 10px;
}

.button:hover {
  opacity: 0.8;
}

.page-title {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  color: var(--color-main, #0a6bd9);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: var(--font-title);
}

.page-subtitle {
  text-align: center;
  color: var(--color-muted);
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.6;
  margin-top: 4px;
  margin-bottom: 18px;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
}




/* =============================
   📐 GRID UTILITY SYSTEM
   ============================= */
.grid {
  display: grid;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.grid-center {
  max-width: var(--layout-width);
  margin: 0 auto;
}

.gap-10 {
  gap: 10px;
}

.gap-20 {
  gap: 20px;
}

.gap-30 {
  gap: 30px;
}

/* 자동 반응형(카드 최소폭 보장) */
.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* 고정 열수 프리셋(원하면 사용) */
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

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

/* 단계별 보정 (선택): 데스크탑 4, 태블릿 3, 작은 태블릿 2, 모바일 1 */
@media (min-width:1280px) {
  .grid-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width:1279px) and (min-width:992px) {
  .grid-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:991px) and (min-width:640px) {
  .grid-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* (옵션) 특정 아이템을 넓게 쓰고 싶다면 */
.span-2 {
  grid-column: span 2;
}

@media (max-width:991px) {
  .span-2 {
    grid-column: auto;
  }
}

/* 태블릿 이하에서는 1칸 */

/* =============================
   CONTACT-US (uses :root tokens)
   ============================= */
.contact-us {
  box-sizing: border-box;
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-table-border);
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  color: var(--color-text);
  font-family: var(--font-main);
}

.contact-title {
  margin: 0 0 16px;
  text-align: center;
  font-family: var(--font-title);
  font-size: clamp(1.4em, 1.5vw, 1.8em);
  font-weight: 700;
  color: var(--color-main);
  position: relative;
}

.contact-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--color-main);
  border-radius: 2px;
}

.contact-info {
  list-style: none;
  margin: 50px 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-size: clamp(.98rem, 1.6vw, 1.05rem);
}

.contact-info .icon {
  margin-right: 6px;
}

.contact-info a {
  color: var(--color-main);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--nav-t) var(--nav-ease);
}

.contact-info a:hover {
  color: var(--color-main-hover);
}

.contact-bank {
  background: var(--color-bg2);
  border: 1px solid var(--color-table-border);
  border-radius: 10px;
  padding: 14px;
}

.contact-bank h3 {
  margin: 0 0 8px;
  font-weight: 700;
  ;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-bank p {
  margin: 2px 0;
}


/* ==========================================================================
   WONEUM — Global Page Pack (append-only)
   ========================================================================== */

/* 0) Reset-ish 보강 */
*,
*::before,
*::after {
  box-sizing: border-box;
}


a {
  color: inherit;
  text-decoration: none;
}


:focus-visible {
  outline: 2px solid var(--color-main);
  outline-offset: 2px;
}

/* 1) Layout primitives */
.container {
  max-width: var(--layout-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding);
}

.container-wide {
  width: 100%;
  margin: 0 auto;
}

.stack>*+* {
  margin-top: var(--stack-gap, 16px);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cluster-gap, 12px);
  align-items: center;
}

.center {
  box-sizing: content-box;
  max-width: var(--layout-width);
  margin-inline: auto;
  padding-inline: var(--layout-padding);
}

.bleed {
  margin-inline: calc(50% - 50vw);
}

/* 2) Grid utilities (보강) */
.grid {
  display: grid;
  gap: 20px;
}

.grid.auto {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

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

.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {

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

@media (max-width: 560px) {

  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

.span-2 {
  grid-column: span 2;
}

@media (max-width: 991px) {
  .span-2 {
    grid-column: auto;
  }
}

/* 3) Typography scale (에디터/페이지 공통) */
.page__title,
.h1 {
  font-family: var(--font-title);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.25;
}

.h2 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
}

.h3 {
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.4;
}

.lead {
  color: var(--color-muted);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
}

/* 4) Content-rich editor styling (내용관리 본문용) */
.c-editor {
  --c-gap: 14px;
}

.c-editor>*+* {
  margin-top: var(--c-gap);
}

.c-editor h1,
.c-editor h2,
.c-editor h3 {
  font-family: var(--font-title);
  margin: 28px 0 10px;
  line-height: 1.25;
}

.c-editor h1 {
  font-size: clamp(24px, 2.8vw, 36px);
}

.c-editor h2 {
  font-size: clamp(20px, 2.2vw, 28px);
}

.c-editor h3 {
  font-size: clamp(18px, 1.8vw, 22px);
}

.c-editor p {
  line-height: 1.8;
  color: var(--color-text);
}

.c-editor blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  background: var(--color-bg2);
  border-left: 4px solid var(--color-main);
  border-radius: 6px;
}

.c-editor ul,
.c-editor ol {
  padding-left: 1.1em;
}

.c-editor li {
  margin: 6px 0;
}

.c-editor hr {
  border: 0;
  height: 1px;
  background: var(--color-table-border);
  margin: 24px 0;
}

/* 표: 에디터에서 만든 table도 통일 */
.c-editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.c-editor th,
.c-editor td {
  border: 1px solid var(--color-table-border);
  padding: 10px 12px;
  vertical-align: middle;
}

.c-editor th {
  background: var(--color-table-main);
  color: #1b3a57;
  font-weight: 600;
}

.c-editor tbody tr:hover {
  background: var(--color-table-hover);
}




/* 7) Badges/labels */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 999px;
  background: var(--color-table-main);
  color: #1b3a57;
  border: 1px solid var(--color-table-border);
}

.badge--notice {
  background: var(--color-notice);
  color: #fff;
  border-color: var(--color-notice);
}

/* 8) Table system (전역 공용) */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #333;
  margin: 16px 0;
  background: #fff;
  border: 1px solid var(--color-table-border);
}

.table th,
.table td {
  padding: 10px 12px;
  border: 1px solid var(--color-table-border);
}

.table thead th {
  background: var(--color-table-main);
  text-align: center;
  font-weight: 600;
}

.table tbody tr:hover {
  background: var(--color-table-hover);
}

.table .is-accent {
  background: var(--color-table-accent);
}

/* 9) Form controls (전역 폼 통일) */
.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 600;
  color: var(--color-text);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  transition: border-color var(--nav-t), box-shadow var(--nav-t);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-main) 25%, transparent);
}

.help {
  color: var(--color-muted);
  font-size: 12px;
}

/* 10) AOS-lite preset (JS 없이도 기본 페이드업) */
[data-aos] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s var(--nav-ease), transform .6s var(--nav-ease);
}

.aos-in {
  opacity: 1 !important;
  transform: none !important;
}

/* 11) Section patterns */
.section {
  padding: clamp(24px, 4vw, 56px) 0;
}

.section--alt {
  background: var(--color-bg2);
}

.section__head {
  margin-bottom: 14px;
}

.section__desc {
  color: var(--color-muted);
}

/* 12) Tabs (데이터-속성 훅 기반) */
.tabs {
  border-bottom: 1px solid var(--color-table-border);
  display: flex;
  gap: 8px;
}

.tab {
  padding: 10px 14px;
  border: 1px solid var(--color-table-border);
  border-bottom-color: transparent;
  background: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  cursor: pointer;
}

.tab.is-active {
  background: var(--color-bg);
  color: var(--color-main);
  border-color: var(--color-main);
  border-bottom-color: var(--color-bg);
}

.tabpanel {
  display: none;
  padding: 16px;
  border: 1px solid var(--color-table-border);
  border-top: 0;
}

.tabpanel.is-active {
  display: block;
}

/* 13) Accordion */
.accordion .acc__head {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fafafa;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.accordion .acc__panel {
  display: none;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.accordion .acc__head.is-open+.acc__panel {
  display: block;
}

/* 14) Alert/Callout */
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-table-border);
  background: var(--color-bg3);
}

.alert--warn {
  background: #fff6e6;
  border-color: #ffe1b2;
}

.alert--danger {
  background: #ffeaea;
  border-color: #ffc7c7;
}

/* 15) Contact-US polish (기존 클래스 보강) */
.contact-us {
  --cluster-gap: 10px;
}

.contact-us .list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-us .list li {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.contact-us .icon {
  width: 1.3em;
  height: 1.3em;
  display: inline-block;
}

.contact-us .cta {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

/* 16) Helpers */
.muted {
  color: var(--color-muted);
}

.dimmed {
  opacity: .6;
}

.hide {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 17) Print */
@media print {
  .hide-print {
    display: none !important;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 12px;
    color: #666;
  }
}

/* 18) Dark (선택: body[data-theme="dark"]) */
body[data-theme="dark"] {
  --color-bg: #0f1115;
  --color-text: #e9edf2;
  --color-muted: #9aa4b2;
  --color-table-border: #283040;
  --color-table-main: #172030;
  --color-table-hover: #121a28;
  background: var(--color-bg);
  color: var(--color-text);
}

body[data-theme="dark"] .card,
body[data-theme="dark"] .table,
body[data-theme="dark"] .accordion .acc__panel {
  background: #101826;
  border-color: var(--color-table-border);
}

body[data-theme="dark"] .tab {
  background: #101826;
  border-color: var(--color-table-border);
}

body[data-theme="dark"] .tab.is-active {
  color: var(--color-main);
  border-color: var(--color-main);
}


/* ================================
   Membership Section (replaces .card)
   ================================ */

/* =======================================================
   MEMBERSHIP — NEW DESIGN (Full Refresh, same markup)
   ======================================================= */

/* =======================================================
   MEMBERSHIP — 일반 페이지형 (전체 새 디자인)
   ======================================================= */

.membership {
  max-width: min(var(--layout-width, 1200px), 100%);
  margin: 0 auto;
  color: var(--color-text, #222);
  font-family: var(--font-main, "S-CoreDream-3Light", sans-serif);
  line-height: 1.9;
  background: var(--color-bg, #fff);
}

/* ───────────── 헤더 ───────────── */
.membership .membership-head {
  text-align: left;
  margin-bottom: clamp(20px, 4vw, 36px);
}

.membership .membership-title {
  margin: 0;
  font-family: var(--font-title, "Paperlogy-8ExtraBold");
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  line-height: 1.25;
  color: var(--color-sub-1, #2c2c2c);
  background: linear-gradient(
    transparent 70%,
    color-mix(in oklab, var(--color-main, #c89a06) 25%, transparent) 0
  );
  display: inline-block;
}

.membership .membership-sub {
  margin-top: 6px;
  color: var(--color-muted, #777);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
}

/* ───────────── 본문 ───────────── */
.membership .membership-body {
  margin: 0 auto;
}

.membership .membership-body > * + * {
  margin-top: clamp(14px, 2.5vw, 24px);
}

.membership .membership-body p {
  margin: 0;
  text-align: justify;
}

/* 강조문단 */
.membership .membership-body .muted {
  background: var(--color-bg2, #faf6ee);
  border-left: 4px solid var(--color-main, #c89a06);
  padding: 12px 16px;
  border-radius: 6px;
  color: color-mix(in oklab, var(--color-text, #222) 85%, #000);
}

/* 소제목 (h6 등) */
.membership .membership-body .h6 {
  font-weight: 800;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--color-sub-1, #2c2c2c);
  margin: clamp(18px, 3vw, 24px) 0 clamp(6px, 1.4vw, 10px);
}

/* 조항 리스트 */
.membership .membership-body .terms-list {
  margin: 6px 0 0 1.2em;
  padding: 0;
}

.membership .membership-body .terms-list > li {
  margin: 6px 0;
  line-height: 1.8;
}

.membership .membership-body .terms-list > li::marker {
  color: var(--color-main, #c89a06);
  font-weight: 800;
}

.membership .membership-body .terms-list strong {
  color: var(--color-sub-1, #2c2c2c);
  font-weight: 800;
}

.membership .membership-body .terms-list u {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--color-main, #c89a06) 70%, #000);
}

/* ───────────── 푸터 ───────────── */
.membership .membership-foot {
  max-width: var(--measure);
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding-top: clamp(14px, 2vw, 20px);
  border-top: 1px solid var(--color-table-border, #d9cbb2);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.membership .membership-foot .help {
  color: var(--color-muted, #777);
  font-size: 0.95rem;
  text-align: right;
}

/* 버튼 */
.membership .membership-foot .btn-primary {
  background: var(--color-main, #c89a06);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.membership .membership-foot .btn-primary:hover {
  background: var(--color-main-hover, #8b5e00);
  transform: translateY(-1px);
}

/* ───────────── 반응형 ───────────── */
@media (max-width: 768px) {

  .membership .membership-foot {
    align-items: stretch;
  }

  .membership .membership-foot .help {
    text-align: left;
  }

  .membership .membership-foot .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* membership 섹션 간 기본 여백 추가 */
.membership + .membership {
  margin-top: clamp(40px, 6vw, 72px);
}

/* 7) Optional dark harmony (if you toggle body[data-theme="dark"]) */
body[data-theme="dark"] .membership{
  --panel-bg: #0f1117;
  --bd: #253046;
  box-shadow: 0 18px 50px -24px rgba(0,0,0,.6);
}
body[data-theme="dark"] .membership-head{ background: #0f1117; }
body[data-theme="dark"] .membership-body .terms-list > li{ background: #0f1117; }
body[data-theme="dark"] .membership-body .muted{
  background: #0d141d;
  border-color: #223044;
}
body[data-theme="dark"] .membership-foot{
  background: #0f1117;
  border-top-color: #253046;
}



.terms-list {
  margin: 6px 0 12px 20px;
}

.terms-list li {
  margin: 6px 0;
  line-height: 1.6;
}

.muted {
  color: var(--color-muted);
}

.agree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}


.help {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: .92rem;
}

@media (max-width:768px) {

  .card-head,
  .card-body,
  .card-foot {
    padding: 16px;
  }
}

/* 학회 인사말 섹션 */
.greeting {
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: var(--space-outer) var(--layout-padding);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.9;
}

/* 상하 섹션간 균일한 간격 */
.greeting > * + * { margin-top: var(--space-section); }

/* ─────────────────────────
   Head (타이틀 강조)
────────────────────────── */
.greeting-head {
  text-align: center;
  padding: 0;
  position: relative;
}
.greeting-title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  color: var(--color-sub-1);
  display: inline-block;
  line-height: 1.3;
  padding: 8px 6px;
  background:
    linear-gradient(transparent 60%, color-mix(in oklab, var(--color-main) 22%, transparent) 0);
}

/* ─────────────────────────
   Body (신문형 2단 옵션)
────────────────────────── */
/* 기본 단락 간 여백 */
.greeting-body > * + * { margin-top: var(--space-block); }

/* 2단 레이아웃 (데스크탑에서만) */
.greeting-body.is-two-col {
  /* 멀티컬럼은 요소 분할 이슈가 있어 바운더리 보호 필요 */
  column-gap: 40px;
}
@media (min-width: 1024px) {
  .greeting-body.is-two-col {
    column-count: 2;
  }
  /* 제목/리스트가 단 나뉘어 찢어지지 않도록 보호 */
  .greeting-body h3,
  .greeting-body ol,
  .greeting-body ul,
  .greeting-body p {
    break-inside: avoid-column;
  }
}

/* 서브타이틀(비전 안내) */
.greeting-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 800;
  margin: var(--space-section) 0 var(--space-block);
  color: var(--color-sub-1);
  padding-left: 12px;
  position: relative;
}
.greeting-subtitle::before {
  content: "";
  position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-main);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-main) 18%, transparent);
}

/* ─────────────────────────
   Vision list (번호형 리스트)
────────────────────────── */
.vision-list {
  list-style: none;
  counter-reset: vision;
  padding: 0;
  margin: var(--space-block) 0;
  display: grid;
  gap: 28px;
  position: relative;
}


.vision-list > li {
  counter-increment: vision;
  position: relative;
  background: linear-gradient(180deg, #fff, var(--color-bg2));
  border: 1px solid var(--color-table-border);
  border-radius: 12px;
  padding: 20px 20px 20px 80px;
  line-height: 1.8;
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.15);
}

/* 번호 디자인 */
.vision-list > li::before {
  content: counter(vision, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10em;
  font-weight: 900;
  color: color-mix(in oklab, var(--color-main) 80%, #000);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
}

/* hover 효과 */
.vision-list > li:hover {
  background: #fff;
  transform: translateY(-2px);
  transition: all 0.25s var(--sb-ease);
  box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--color-main) 40%, transparent);
}

/* 제목(첫 줄) 강조 */
.vision-list > li > strong {
  display: block;
  font-weight: 800;
  color: var(--color-sub-1);
  margin-bottom: 4px;
}


/* ─────────────────────────
   Foot (서명 정렬)
────────────────────────── */
.greeting-foot { display: flex; justify-content: flex-end; }
/* 모드: sign--gold */
.greeting-foot .sign.sign--gold{
  border:0;
  position:relative;
  padding-top:18px;
}
.greeting-foot .sign.sign--gold::before{
  content:"";
  position:absolute; right:0; left:auto; top:0;
  width:100%; height:2px;
  background: linear-gradient(90deg,
    color-mix(in oklab, var(--color-main) 60%, #000),
    color-mix(in oklab, var(--color-main) 20%, #fff));
  opacity:.9;
}
.greeting-foot .sign.sign--gold::after{
  content:"";
  position:absolute; right:0; top:-4px;
  width:8px; height:8px; border-radius:50%;
  background: var(--color-main);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-main) 25%, transparent);
}


/* ─────────────────────────
   Optional: 첫 문단 리드/드롭캡 (원하면 활성화)
────────────────────────── */
/* 큰 리드문 */
.greeting-body > p:first-of-type {
  font-size: clamp(1.02rem, 2.1vw, 1.12rem);
  color: color-mix(in oklab, var(--color-sub-1) 85%, #000);
}

/* 드롭캡을 쓰고 싶으면 아래 주석 해제 (한글은 상황에 따라 어색할 수 있어 옵션) */
/*
.greeting-body > p:first-of-type::first-letter {
  float: left;
  font-size: 2.6em;
  line-height: .9;
  padding-right: .06em;
  font-weight: 800;
  color: var(--color-main);
}
*/

/* 모션 최소화 환경 배려 */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}


/* ====================================
   한국원불교학회 소개 (About Section)
   ==================================== */
/* ===== About Base ===== */
.about-association {
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--layout-padding);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.85;
}

/* Hero */
.about-title {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.01em;
  /* 유연한 반응형 타이포 */
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
  text-align: center;
  margin: 0 0 8px;
  background:
    linear-gradient(transparent 60%, color-mix(in oklab, var(--color-main) 30%, transparent) 0);
  display: inline-block;
  color: var(--color-main);
}

.about-hero {
  text-align: center;
  margin-bottom: 28px;
}

.about-sub {
  text-align: center;
  color: var(--color-muted);
  font-size: clamp(.95rem, 1.8vw, 1.05rem);
  margin: 0 auto 36px;
}

/* Section spacing */
.about-section {
  margin-bottom: clamp(28px, 5vw, 44px);
}

/* ===== Headings ===== */
.about-heading {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 800;
  color: var(--color-sub-1);
  margin: 0 0 12px;
  position: relative;
  padding-left: 14px;
}

.about-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-main);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-main) 18%, transparent);
}

/* ===== Two-Column Intro ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(18px, 3.5vw, 28px);
  align-items: start;
}

@media (max-width: 920px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
}

/* Body text */
.about-body p {
  margin: 10px 0;
  text-align: justify;
  text-justify: auto;
}

/* ===== Numbered Feature List (자동 넘버링) ===== */
.about-features {
  --badge: var(--color-main);
  list-style: none;
  padding: 0;
  margin: 14px 0 50px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  counter-reset: feat;
}

.about-features li {
  counter-increment: feat;
  position: relative;
  padding: 10px 12px 10px 44px;
  border: 1px solid var(--color-table-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, color-mix(in oklab, var(--color-table-hover) 45%, #fff));
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}

.about-features li::before {
  content: counter(feat, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--badge);
  box-shadow: 0 6px 16px -6px color-mix(in oklab, var(--badge) 60%, transparent);
}

/* ===== Stat Card (오른쪽 정보 카드) ===== */
.about-aside {
  position: relative;
}

.stat-card {
  border: 1px solid var(--color-table-border);
  background: linear-gradient(180deg, #fff, var(--color-bg2));
  padding: 18px 18px 16px;
  border-radius: 16px;
  box-shadow:
    0 10px 24px -14px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .6);
  margin: 20px 0;
}

.stat-title {
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-size: 1rem;
  color: var(--color-sub-1);
}

.stat-grid {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.stat-grid dt {
  font-size: .82rem;
  color: var(--color-muted);
}

.stat-grid dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.stat-foot {
  margin: 6px 0 0;
  font-size: .9rem;
  color: var(--color-muted);
}

/* ===== Timeline ===== */
.about-timeline {
  position: relative;
  list-style: none;
  margin: 18px 0 0;
  padding-left: 0;
}

.about-timeline>li {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 10px 0 10px 0;
}

.about-timeline>li:not(:last-child) {
  margin-bottom: 6px;
}

.about-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: color-mix(in oklab, var(--color-main) 35%, #e8e8e8);
}

.tl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
      color-mix(in oklab, #fff 80%, var(--color-main)),
      var(--color-main) 70%);
  box-shadow:
    0 0 0 4px color-mix(in oklab, var(--color-main) 30%, transparent),
    0 6px 12px -4px color-mix(in oklab, var(--color-main) 60%, #000);
  margin-top: 4px;
}

.tl-body {
  margin-top: 2px;
}

.tl-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-sub-1);
}

.tl-body p {
  margin: 0;
}

/* ===== 3-Column Info Cards ===== */
.about-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2.6vw, 20px);
  margin-top: 20px;
}

@media (max-width: 980px) {
  .about-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

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

.info-card {
  border: 1px solid var(--color-table-border);
  border-radius: 16px;
  padding: 18px 18px 14px;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in oklab, var(--color-table-accent) 24%, #fff), #fff 40%),
    #fff;
  box-shadow: 0 8px 22px -16px rgba(0, 0, 0, .22);
}

.info-card .about-heading {
  margin-bottom: 8px;
}

/* ===== Motion Safety ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================
   Button Lite (Neutral-first)
   ========================= */
/* 공통 베이스: 기본은 뉴트럴(회색) */
.btn,
.btn-primary,
.button,
.btn_b01,        /* 그누 기본 보조버튼 */
.btn_admin       /* 관리자 버튼(보조 톤 유지) */
{
  /* 기본(뉴트럴) 팔레트 */
  --btn-bg: #f3f4f6;           /* bg-neutral */
  --btn-fg: #374151;           /* fg-neutral */
  --btn-bd: #d1d5db;           /* border-neutral */

  /* 브랜드 팔레트 (호버용/프라이머리용) */
  --btn-brand: var(--color-main, #3a8afd);
  --btn-brand-hover: var(--color-main-hover, #2f74ea);

  /* 공통 치수 */
  --btn-r: 10px;
  --btn-h: 40px;
  --btn-px: 10px;

  font-size: 15px;
  display: inline-flex ;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: var(--btn-h);
  padding-inline: var(--btn-px);
  border-radius: var(--btn-r);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;

  transition:
    background var(--nav-t, .18s) var(--nav-ease, ease),
    color var(--nav-t, .18s) var(--nav-ease, ease),
    border-color var(--nav-t, .18s) var(--nav-ease, ease),
    transform var(--nav-t, .18s) var(--nav-ease, ease);
}

/* 뉴트럴 → 브랜드 컬러로 인버트 전환 */
.btn:hover,
.button:hover,
.btn_b01:hover,
.btn_admin:hover {
  background: var(--btn-brand);
  color: #fff;
  border-color: var(--btn-brand);
}
.btn:active,
.button:active,
.btn_b01:active,
.btn_admin:active { transform: translateY(1px); }

/* 프라이머리: 항상 브랜드 컬러(글쓰기 등) */
.btn-primary,
.btn_b02 {
  --btn-bg: var(--btn-brand);
  --btn-fg: #fff;
  --btn-bd: var(--btn-brand);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: var(--btn-bd);
}
.btn-primary:hover,
.btn_b02:hover {
  background: var(--btn-brand-hover);
  border-color: var(--btn-brand-hover);
}

/* 상태 */
.btn[disabled],
.button[disabled],
.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

/* Variants (데이터 속성) */
.btn[data-variant="ghost"] {
  --btn-bg: #fff;
  --btn-fg: #374151;
  --btn-bd: #e5e7eb;
}
.btn[data-variant="muted"] {
  --btn-bg: #eceff3;
  --btn-fg: #374151;
  --btn-bd: #dee2e7;
}

/* Sizes */
.btn[data-size="sm"] { --btn-h: 34px; --btn-px: 12px; --btn-r: 8px; font-weight: 600; }
.btn[data-size="xl"] { --btn-h: 48px; --btn-px: 18px; --btn-r: 12px; }

/* 아이콘 정렬 */
.btn i, .btn_b01 i, .btn_b02 i, .btn_admin i {
  line-height: 0;
  font-size: 1.05em;
}

/* 포커스 접근성 */
.btn:focus-visible,
.button:focus-visible,
.btn_b01:focus-visible,
.btn_b02:focus-visible,
.btn_admin:focus-visible{
  outline: 2px solid var(--btn-brand-hover);
  outline-offset: 2px;
  border-radius: calc(var(--btn-r) + 2px);
}

/* 아이콘 전용 버튼 */
.btn--icon-only { width: var(--btn-h); padding: 0; gap: 0 !important; }

/* 레거시 호환 (.btn-easypay 등) */
.btn-easypay{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height: var(--btn-h,40px); padding-inline: var(--btn-px,10px);
  border-radius: var(--btn-r,10px); border:1px solid var(--btn-bd,#d1d5db);
  background: var(--btn-bg,#f3f4f6); color: var(--btn-fg,#374151); font-weight:700;
  text-decoration:none; cursor:pointer; transition:.18s ease;
}
.btn-easypay:hover{ background: var(--btn-brand, var(--color-main,#3a8afd)); color:#fff; border-color: var(--btn-brand, var(--color-main,#3a8afd)); }

/* =========================
   Danger Button (삭제 전용)
   ========================= */

/* 삭제 버튼 기본 상태 */
button[value="선택삭제"],
a[title="삭제"],
.btn--danger {
  --btn-bg: #fef2f2;          /* 아주 연한 빨강 배경 */
  --btn-fg: #b91c1c;          /* 진한 빨강 텍스트 */
  --btn-bd: #fca5a5;          /* 연한 빨강 테두리 */
}

/* hover 시 진한 붉은색 강조 */
button[value="선택삭제"]:hover,
a[title="삭제"]:hover,
.btn--danger:hover {
  background: #dc2626;        /* 강한 빨강 */
  color: #fff;
  border-color: #dc2626;
  transform: translateY(-1px);
}

/* active(눌렀을 때) */
button[value="선택삭제"]:active,
a[title="삭제"]:active,
.btn--danger:active {
  background: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(0);
}


/* ================================
   Bylaws — 일반 페이지 스타일
   ================================ */
.bylaws {
  margin: 0 auto;
  color: var(--color-text, #222);
  background: var(--color-bg, #fff);
  font-family: var(--font-main, "S-CoreDream-3Light", sans-serif);
  line-height: 1.9;
}

/* 섹션 간격 (상위끼리 붙지 않게) */
.bylaws + .bylaws { 
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--color-table-border, #d9cbb2);
  padding-top: clamp(24px, 4vw, 40px);
}

/* Head */
.bylaws-head{ 
  text-align:left; 
  margin-bottom: clamp(18px, 3vw, 28px);
}
.bylaws-title{
  margin:0;
  font-family: var(--font-title, "Paperlogy-8ExtraBold"), sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-sub-1, #2c2c2c);
  line-height: 1.25;
  display:inline-block;
  background: linear-gradient(transparent 70%, color-mix(in oklab, var(--color-main, #c89a06) 24%, transparent) 0);
}
.bylaws-sub{
  margin:6px 0 0;
  color: var(--color-muted, #777);
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
}

/* Body / measure */
.bylaws-body{
  max-width: var(--measure);
  margin: 0 auto;
  
}
.bylaws-body > * + *{ margin-top: clamp(14px, 2.2vw, 22px); }
.bylaws-body p{ margin:0; text-align: justify; }

/* Article list (조문 목록) */
.article-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 2.2vw, 22px);
}

/* Article block */
.article-list > li{
  position: relative;
  padding-left: 14px; /* 왼쪽 라인 여백 */
}
.article-list > li::before{
  content:"";
  position: absolute; left: 0; top: .6em; bottom: .6em; width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--color-main, #c89a06), color-mix(in oklab, var(--color-main, #c89a06) 55%, #000));
  opacity: .25;
}

/* Article title line */
.article-title{
  margin: 0 0 6px;
  font-weight: 800;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--color-sub-1, #2c2c2c);
  display: flex; align-items: baseline; gap: 8px;
}

/* "제N조" 배지 */
.art-no{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; height: 28px; padding: 0 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-main, #c89a06) 88%, #000);
  color: #fff; font-weight: 900; font-size: .9rem; letter-spacing: .3px;
  box-shadow: 0 10px 20px -14px color-mix(in oklab, var(--color-main, #c89a06) 65%, #000);
}

/* 하위 조항 목록 */
.clause-list{
  margin: 8px 0 0 1.2em;
  padding: 0;
}
.clause-list > li{
  margin: 6px 0;
  line-height: 1.8;
}
.clause-list > li::marker{
  font-weight: 800;
  color: var(--color-main, #c89a06);
}
.clause-list strong{ color: var(--color-sub-1, #2c2c2c); font-weight: 800; }
.clause-list u{
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--color-main, #c89a06) 70%, #000);
}

/* 반응형 */
@media (max-width: 640px){
  .art-no{ min-width: 46px; height: 26px; font-size: .86rem; }
}


.page-ready {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg, #fff);
  color: var(--color-text, #222);
  text-align: center;
  font-family: var(--font-main, "S-CoreDream-3Light", sans-serif);
  padding: 40px 20px;
}

.ready-inner {
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 0.8s ease forwards;
}

.ready-icon {
  font-size: 3rem;
  margin-top: 50px;
  animation: pulse 1.8s infinite ease-in-out;
}

.ready-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-main, #c89a06);
  margin-bottom: 10px;
}

.ready-text {
  font-size: 1rem;
  color: var(--color-muted, #777);
  line-height: 1.8;
  margin-bottom: 24px;
}

.btn-home {
  display: inline-block;
  background: var(--color-main, #c89a06);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-home:hover {
  background: var(--color-main-hover, #8b5e00);
  transform: translateY(-2px);
}

/* 부드러운 등장 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 아이콘 점멸 */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

