/* 반응형 브레이크(이 파일): 1589 · 1499 · 1439 · 1298 · 1280 · 1199 · 1023 · 899 · 767 · 419 · 383 (min: 1440 · 1200) */
/* 프로젝트 당 공통 스타일 (프로젝트 변수 + 메인/서브 공유 chrome 포함) */

/* =========================================================
   프로젝트 변수 — 교구별로 바뀌는 값 (색 / 컨테이너 / 카테고리)
   ※ common.css는 교구 불변(reset/유틸/폰트), 변수는 여기(프로젝트 레이어)
   ========================================================= */
:root {
    /* 컨테이너 */
    --msd-cont: 1440px;             /* 콘텐츠 폭 (1920 - 좌우 240) */
    --msd-gutter: 80px;            /* 좌우 최소 여백 */

    /* Primary — 마산 블루 */
    --color-primary-10:  #F8FAFF;   /* 2차 필터 영역 배경 (2026-11-10 사용자 지정) */
    --color-primary-25:  #F5F7FC;   /* 게시판 band 배경 */
    --color-primary-50:  #E8EFFF;
    --color-primary-700: #0455A1;
    --color-primary-60:  #E4F2FF;   /* 셀렉트 옵션 선택 하이라이트 (시안 786-643) */
    --color-primary-65:  #E1EAFF;   /* 2차 필터 비활성 아이콘 배경 (2026-11-10 사용자 지정) */
    --color-primary-100: #D1DFED;   /* 주보 카드 버튼 테두리 (시안 297-10946 / 510:150) */
    --color-primary-75:  #E2E8F6;   /* 2차 필터 영역 테두리 (2026-11-10 사용자 지정) */
    --color-primary-800: #064C8D;   /* 게시판 필터 active(진한 브랜드) */

    /* Point */
    --color-green-500:  #319C00;
    --color-yellow-400: #FFD900;

    /* Neutral */
    --color-neutral-1000: #000000;  /* 순검정 (퀵메뉴 텍스트 등 시안 지정값) */
    --color-neutral-900: #222222;
    --color-neutral-600: #555555;
    --color-neutral-500: #444444;
    --color-neutral-400: #8B8B8B;
    --color-neutral-300: #D3D3D3;
    --color-neutral-200: #C4C3CB;
    /* 게시판 보강 회색/흰색 (정확값 유지 — 하드코딩 제거용) */
    --color-white:       #FFFFFF;
    --color-white-90:    rgba(255, 255, 255, 0.9);  /* 스크롤 후 헤더/mega 글래스 배경(2026-08-18) */
    --color-white-20:    rgba(255, 255, 255, 0.2);  /* 메인 mega 메뉴 하단 라인(2026-08-18) */
    --color-black-20:    rgba(0, 0, 0, 0.2);         /* 메인 mega 메뉴 배경 그라데이션(2026-08-18) */
    --color-black-10:    rgba(0, 0, 0, 0.1);         /* 옅은 테두리 — 상세 이전/다음 비활성 버튼, 교구일정 행사표 버튼 (2026-11-11) */
    --color-neutral-50:  #F7F7F9;
    --color-neutral-40:  #F6F6F6;   /* 상세 이전/다음 비활성 버튼 배경 (2026-11-10 사용자 지정) */
    --color-neutral-100: #EEEEEE;
    --color-neutral-120: #ECECEC;
    --color-neutral-150: #E4E4E4;
    --color-neutral-175: #E0E0E0;
    --color-neutral-225: #DDDDDD;
    --color-neutral-250: #D9D9D9;
    --color-neutral-275: #D2D2D2;
    --color-neutral-280: #D0D0D0;
    --color-neutral-350: #A3A3A3;
    --color-neutral-375: #999999;
    --color-neutral-450: #888888;
    --color-neutral-550: #666666;
    --color-neutral-525: #737373;   /* 본당 카드 정보행 구분선(2026-08-06 신규) */
    --color-slate-500:   #677583;   /* 2차 카테고리 pill 글자 (시안 786-643) */
    --color-slate-600:   #56718C;   /* 2차 카테고리 pill 비활성 글자 (2026-11-10 사용자 지정) */

    /* Accent */
    --color-taupe-500:  #81725A;
    --color-orange-500: #E25701;
    --color-gold-700:   #9C7200;   /* 4뎁스 세그먼트 활성 (시안 1294:675) */
    --color-gray-100:   #F3F4F6;

    /* 카테고리 색 (메인 소식/일정) */
    --cat-gugu:     #0455a1;
    --cat-gyohoe:   #319c00;
    --cat-chaeyong: #e25701;
    /* 게시판 갤러리 카테고리 아이콘 색 (시안) */
    --cat-bishop:   #9629c8;   /* 교구장(주교) */
    --cat-diocese:  #0455a1;   /* 교구 */
    --cat-parish:   #319c00;   /* 본당(교회) */
    --cat-org:      #19b0c0;   /* 기관단체 */
    --cat-feast:    #84b400;   /* 축일 (교구일정 · Figma 297:10409) */
    --cat-memorial: #222222;   /* 기일 (=neutral-900) */

    /* 달력 요일색 (교구일정 · Figma 297:10409) */
    --color-cal-sun: #D50000;  /* 일요일 */
    --color-cal-sat: #33619E;  /* 토요일 */

    /* 메인 보조 */
    --msd-green:      #2e8b57;
    --msd-green-dark: #246b43;
    --msd-ink:        #231915;

    /* 푸터 */
    --color-footer-top: #2c2e42;  /* 푸터 그라데이션 상단색(linear-gradient 시작값) — 아코디언 패널 배경에도 사용(2026-08-11) */

    /* 시맨틱 별칭 */
    --color-brand: var(--color-primary-700);
    --color-text:  var(--color-neutral-900);
    --color-line:  var(--color-neutral-300);
    --color-point: var(--color-orange-500);   /* 게시판 포인트(라디오 중앙·active·총건수) */
    --color-date:  #595E68;                    /* 갤러리 카드 날짜색(시안) */
    --mainColor:   var(--color-primary-700);
}

/* 컨테이너 좌우 여백 — 화면별 (데스크탑 80=여백40 / ≤1023 40=여백20 / ≤767 30=여백15)
   여백(한쪽) = gutter ÷ 2. GUIDELINES 확인 브레이크 -1 적용: 1024→1023, 768→767
   → --msd-gutter 를 쓰는 sub·main 전 컨테이너(.msd-subbody 포함)에 모든 페이지 일괄 적용 */
@media (max-width: 1023px) { :root { --msd-gutter: 40px; } } /* 좌우 여백 20 */
@media (max-width: 767px)  { :root { --msd-gutter: 30px; } } /* 좌우 여백 15 (≤419도 동일하게 유지) */

/* 공통 컨테이너 폭 — 콘텐츠 폭(--msd-cont)을 쓰는 요소는 이 클래스를 붙여 사용(.msd-subbody 등) */
.msd-cont {
    width: var(--msd-cont);
    max-width: calc(100% - var(--msd-gutter));
    margin: 0 auto;
}

/* =========================================================
   메인·서브 공유 chrome (로고 / GNB / 로그인·메뉴 / 푸터 / 퀵메뉴)
   ※ 페이지별 오버라이드는 figma.css(.msd-header) / figma-sub.css(.msd-subhead)
   ========================================================= */

/* 로고 */
.msd-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
}
.msd-logo img { height: 50px; width: auto; display: block; }
@media (max-width: 899px) {
    .msd-logo img { height: 38px; }
}

/* GNB (메인=흰글자 / 서브=.msd-subhead에서 어두운색 오버라이드) */
.msd-gnb {
    display: flex;
    align-items: center;
    gap: clamp(38px, calc(7.773vw - 41.6px), 75px);   /* 1500↑=75 → 1024=38 화면 폭에 따라 연속 축소 (2026-11-10) */
}
.msd-gnb a {
    position: relative;
    display: inline-block;
    padding: 10px 6px;   /* 클릭 영역 확대 — 2차메뉴(.msd-2depth-link)와 같은 방식 */
    font-family: "Pretendard", sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.8px;
    text-decoration: none;
    white-space: nowrap;
}
/* 사용자 지정(2026-09-04) — <a>는 브라우저 기본값이 draggable:true라, 메뉴 링크를 꾹 누른 채
   마우스를 벗어나면 네이티브 링크 드래그가 시작되고, 드롭이 깔끔히 안 끝나면 이후 클릭이
   먹통이 되는 것처럼 보이는 문제가 있었음 — GNB(1·2차) 전체에서 네이티브 드래그 자체를 차단. */
.msd-gnb a,
.msd-gnb__mega a,
.msd-2depth-link,
.msd-logo a,
.msd-logo img {
    -webkit-user-drag: none;
    user-drag: none;
}
/* color는 여기서 안 주고 컨텍스트별로만 준다 — 메인(.msd-header)은 흰색, 서브(.msd-subhead)는
   어두운색으로 서로 다르기 때문. (예전엔 common.css의 전역 `a:hover,a:active{color:inherit}`
   리셋과 명시도가 부딪혀서 컨텍스트 selector가 꼭 필요했지만, 그 리셋 자체를 제거해서
   지금은 순수하게 "컨텍스트별로 다른 색" 때문에만 분리돼 있다.) */
.msd-header .msd-gnb a { color: #fff; }
/* 호버 점(1·2차 공용 매커니즘, 색만 계층별로 다름) — 글자색은 바꾸지 않고 좌상단에 작은 점만
   나타냈다 사라지는 것으로 호버를 표시한다. 활성(현재 페이지) 상태는 점과 무관 — 점은 순수 호버 전용.
   패딩(클릭 영역) 안쪽에 위치 — 링크 박스 바깥으로 튀어나가지 않는다. */
.msd-gnb a::before,
.msd-2depth-link::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
    pointer-events: none;
}
.msd-gnb a::before { background: var(--color-green-500); }   /* 1차메뉴 호버 점(서브헤더 기본: 흰 배경 위라 초록) */
.msd-header .msd-gnb a::before { background: #fff; }   /* 메인 헤더 1차메뉴만 흰 점(히어로 위라 초록보다 흰색이 잘 보임) */
.msd-2depth-link::before { background: var(--color-yellow-400); }   /* 2차메뉴(mega·subnav 공용) 호버 점 */
.msd-gnb a:hover::before,
.msd-2depth-link:hover::before {
    opacity: 1;
    transform: scale(1);
}
/* 2차메뉴 호버 중엔 그 메뉴를 열어준 1차메뉴도 점을 계속 유지 — common.js가 열림 상태인
   .msd-gnb__item에 .is-menu-open을 부여(마우스가 실제로 그 1차메뉴 위에 있지 않아도 유지). */
.msd-gnb__item.is-menu-open > a::before {
    opacity: 1;
    transform: scale(1);
}

/* 2차메뉴 공용 링크 클래스 — .msd-subnav(서브페이지 상시 2뎁스 바)와 .msd-gnb__mega-group(호버 2차메뉴)이
   같은 폰트·박스모델·점을 쓰도록 한 곳에서만 정의한다(두 군데 따로 적어 값이 갈리는 것 방지). */
.msd-2depth-link {
    position: relative;
    display: inline-block;
    padding: 10px 6px;   /* line-height 트릭 대신 padding으로 클릭 영역 확보 — 두 컨텍스트에 동일 적용 */
    font-family: "Pretendard", sans-serif;
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -0.044em;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
@media (max-width: 1023px) { .msd-2depth-link { padding: 8px 6px; font-size: 17px; } }

/* 2차메뉴 — 하위 있는 1차메뉴(.msd-gnb__item[data-menu])를 호버·포커스하면 뜨는,
   헤더 폭 전체를 쓰는 가로 바. .msd-subnav(서브페이지 2뎁스)와 동일한 톤·레이아웃
   (파랑 배경·흰 글자 가로나열·hover 노랑). .msd-header/.msd-subhead의 직계 자식이라
   헤더가 absolute(평소)든 fixed(스크롤)든 항상 같이 움직인다.
   열림/닫힘·어떤 메뉴를 보여줄지는 common.js가 .msd-gnb__mega[data-open=<메뉴키>]로 제어
   (1차메뉴와 이 바가 DOM상 형제라 순수 CSS :hover만으로는 "1차→2차로 마우스 이동" 중
   호버가 끊기지 않게 만들 수 없어 JS로 열림 유지/닫힘 지연을 처리한다). */
.msd-gnb__mega {
    position: absolute;
    /* top:100% 단독이면 부모(.msd-header/.msd-subhead)의 border-bottom(1px)만큼 containing
       block의 padding box가 border box보다 작아져 .msd-subnav(border box 바로 다음, 문서흐름)보다
       1px 위로 삐져나옴 — 호버 시 파란 바가 "흔들려" 보이던 원인(2026-08-14 헤드리스 크롬 실측 확정).
       border-bottom은 반응형과 무관하게 항상 1px이라 +1px 보정 하나로 전 브레이크포인트 대응. */
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--color-brand);
    clip-path: inset(0 0 100% 0);   /* 배경: 아래로 펼쳐지는 애니메이션의 닫힌 상태 */
    transition: clip-path 0.28s ease;
    pointer-events: none;
}
.msd-gnb__mega[data-open] {
    clip-path: inset(0 0 -40px 0);   /* 하단만 여유를 둬 box-shadow가 잘리지 않게 */
    pointer-events: auto;
}
/* 메인 전용(서브 .msd-subhead는 기존 단색 유지) — 스크롤 전/후 완전히 독립된 규칙(서로 영향 없음).
   평소(히어로 위, .is-scrolled 아님): 위 투명 → 아래 검정 20% 그라데이션 + 하단 흰 라인 20%.
   스크롤(.is-scrolled): 완전 불투명 흰 배경(뒤 비침 없음 — blur 불필요해 아예 제거해 충돌 소지 차단). */
.msd-header:not(.is-scrolled) .msd-gnb__mega {
    background: linear-gradient(to bottom, transparent 0%, var(--color-black-20) 100%);
    border-bottom: 1px solid var(--color-white-20);
    top: calc(100% + 1px - 20px);   /* 박스 전체를 올려서 clip-path에 안 잘리게(내부 margin 대신) */
}
.msd-header.is-scrolled .msd-gnb__mega {
    background: var(--color-white-90);   /* 1뎁스(.msd-header.is-scrolled)와 동일 */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    top: 100%;   /* 기본값의 +1px 보정 없이 1뎁스에 딱 맞닿게 */
    border-bottom: 1px solid var(--color-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);   /* .msd-header.is-scrolled와 동일 스타일 */
}
.msd-header.is-scrolled .msd-gnb__mega .msd-2depth-link {
    color: var(--color-text);   /* 흰 배경 위 가독성 확보 */
}
.msd-header .msd-gnb__mega .msd-2depth-link:hover {
    color: var(--color-yellow-400);   /* 호버 점(공용 노랑)과 톤 맞춰 텍스트도 노랑 — 스크롤 전(히어로 위) */
}
.msd-header.is-scrolled .msd-gnb__mega .msd-2depth-link:hover {
    color: var(--color-brand);   /* 스크롤 후(흰 배경)는 노랑 대신 대표 블루 */
}
.msd-header.is-scrolled .msd-gnb__mega .msd-2depth-link::before {
    background: var(--color-brand);   /* 호버 점도 동일하게 블루 */
}
.msd-gnb__mega__inner {
    position: relative;
    width: var(--msd-cont);
    max-width: calc(100% - var(--msd-gutter));
    margin: 0 auto;
    height: 50px;   /* 상시 노출 2뎁스(.msd-subnav__inner)와 동일 — 스크롤 전/후 공통(2026-08-18) */
}
.msd-gnb__mega-group {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.msd-gnb__mega[data-open="diocese"] .msd-gnb__mega-group[data-for="diocese"],
.msd-gnb__mega[data-open="parish"] .msd-gnb__mega-group[data-for="parish"],
.msd-gnb__mega[data-open="news"] .msd-gnb__mega-group[data-for="news"],
.msd-gnb__mega[data-open="jubo"] .msd-gnb__mega-group[data-for="jubo"] {
    opacity: 1;
    pointer-events: auto;
}
.msd-gnb__mega[data-open="diocese"] .msd-gnb__mega-group[data-for="diocese"] a,
.msd-gnb__mega[data-open="parish"] .msd-gnb__mega-group[data-for="parish"] a,
.msd-gnb__mega[data-open="news"] .msd-gnb__mega-group[data-for="news"] a,
.msd-gnb__mega[data-open="jubo"] .msd-gnb__mega-group[data-for="jubo"] a {
    opacity: 1;
    transform: translateY(0);
}
/* 폰트·박스모델·점은 .msd-2depth-link 공용 클래스가 담당(마크업에 함께 부여) —
   여기선 mega 전용 등장 애니메이션(펼쳐진 뒤 떠오름)만 추가로 얹는다.
   ⚠ 2026-09-02: 기존 0.12s 지연 + 0.22s 지속(최대 0.34s)이라, 특히 숨겨진 헤더가 peek으로 막
   나타나는 순간과 겹치면 "파란 배경만 잠깐 보이고 글자가 늦게 뜨는" 것처럼 보였음(사용자 리포트,
   영상으로 확인) — 배경(clip-path)과 텍스트가 거의 동시에 보이도록 지연 제거 + 지속시간 단축. */
.msd-gnb__mega-group a {
    opacity: 0;
    transform: translateY(8px);   /* 배경이 펼쳐진 뒤 떠오르는 애니메이션의 닫힌 상태 */
    transition: opacity 0.15s ease, transform 0.15s ease;
}

/* 우측 유틸 (로그인 + 메뉴) */
.msd-header__util {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* 공통 사이즈 반응형 — 서브헤더 한정 아님(버튼 사이즈와 동일 패턴).
   ⚠ 2026-08-11: 원래 .msd-subhead에만 스코프돼 있어 메인 헤더는 10px 고정이던 것을 여기로 승격
   (로그인 버튼 425 대조 중 발견 — 메인만 gap이 넓어 로그인 버튼이 5px 왼쪽으로 밀려 보였음).
   ⚠ 2026-08-19: 08-11 당시 "메인 gnb는 900에서 숨는다"는 잘못된 전제로 900을 썼으나,
   실제 메인 gnb 숨김 트리거(main/layout.css)는 1023 — gnb·mega·subnav 재통일(1023)에 맞춰 여기도 수정.
   전체메뉴 .msd-allmenu__util도 처음부터 1023이었으므로 이걸로 정합. */
@media (max-width: 1023px) { .msd-header__util { gap: 5px; } }
.msd-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;   /* 고정폭(85) 제거 → 글자 유동 */
    height: 40px;
    border: 2px solid #fff;
    border-radius: 16px;
    color: #fff;
    font-family: "Pretendard", sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.3px;
    text-decoration: none;
    /* transition은 여기 안 둔다 — 메인 헤더(.msd-header)에서는 pages/main/layout.css의
       더 구체적인 규칙(shorthand라 통째로 교체)에 항상 가려져 죽은 선언이었다.
       실제로 쓰는 곳(서브헤더)에만 아래에서 직접 지정한다. */
}
.msd-btn-login:hover {
    background: #fff;
    color: #0455a1;
}
/* 공통 사이즈 반응형 — 서브헤더 한정 아님(헤더 로그인 버튼 전체). 색상만 서브헤더가 별도 오버라이드 */
@media (max-width: 1199px) { .msd-btn-login { padding: 0 12px; height: 35px; border-radius: 10px; } } /* 메뉴·글자 충돌 방지 */
@media (max-width: 767px)  { .msd-btn-login { padding: 0 10px; height: 32px; } }  /* 768 아래 32 규격 유지(글자 유지, 아이콘 전용 아님) */
@media (max-width: 419px)  { .msd-btn-login { display: none; } }  /* 420 아래: 로고와 충돌 → 헤더에서 숨김(전체메뉴 .msd-allmenu__util 내부는 항시 노출) */
/* 로그인 시: 회원정보/로그아웃 (텍스트 전용, 가변폭) — 2026-08-19: 로그인 버튼과 동일하게 아이콘 제거.
   2026-08-19: 좌우 패딩도 .msd-btn-login 공통값(16/12/10)을 그대로 상속하도록 전용 padding 삭제
   (아이콘 있던 시절의 14/12/10 잔재 — 데스크탑만 16과 14로 어긋나 있었음), 폰트 15px 축소만 유지 */
.msd-btn-login.msd-btn-auth { width: auto; font-size: 15px; }
.msd-btn-menu {
    position: relative;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
/* 공통 사이즈 반응형 — 서브헤더 한정 아님(메뉴 버튼 전체). 색상만 서브헤더가 별도 오버라이드.
   ⚠ 2026-08-11: 원래 .msd-subhead에만 스코프돼 있어 메인 헤더는 40px 고정이던 것을 여기로 승격
   (로그인 버튼과 동일한 패턴 — 사이즈는 공통, 색만 컨텍스트별). */
@media (max-width: 1199px) { .msd-btn-menu { width: 35px; height: 35px; border-radius: 10px; } }
@media (max-width: 767px)  { .msd-btn-menu { width: 32px; height: 32px; } }
.msd-btn-menu img {
    width: clamp(15.64px, 1.5278vw, 22px);
    height: clamp(15.64px, 1.5278vw, 22px);
    display: block;
}
@media (max-width: 767px) { .msd-btn-menu img { width: 18px; height: 18px; } } /* 시안 menu-04 20×20 − 2px */

/* 전체메뉴 버튼 호버 툴팁 (말풍선, 시안 Frame 30 · node 284:61)
   ※ Figma export SVG 이미지로도 시도했으나 가장자리가 지저분해(2026-08-18) 순수 CSS 캡슐+삼각 꼬리로 최종 복원 */
.msd-btn-menu__tip {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    margin-top: -1.5px; /* 시안 실측(버튼 하단 96.5 vs 말풍선 상단 95): 거의 맞닿음 */
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 20;
}
.msd-btn-menu:hover .msd-btn-menu__tip,
.msd-btn-menu:focus-visible .msd-btn-menu__tip {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 767px) { .msd-btn-menu__tip { display: none; } } /* 터치 기기는 호버 없음 */
.msd-btn-menu__tip-arrow {
    width: 0;
    height: 0;
    border-left: clamp(3.56px, 0.3472vw, 5px) solid transparent;
    border-right: clamp(3.56px, 0.3472vw, 5px) solid transparent;
    border-bottom: clamp(3.56px, 0.3472vw, 5px) solid rgba(255, 255, 255, 0.45);
    margin-bottom: -1px; /* 캡슐과 이음매 없이 맞닿게 */
}
.msd-btn-menu__tip-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(14.22px, 1.3889vw, 20px);
    padding: 0 clamp(3.91px, 0.3819vw, 5.5px); /* 시안 실측: 텍스트-말풍선 가장자리 여백 ≈5.5px */
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(2.5px);
    backdrop-filter: blur(2.5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* 시안 대비 존재감 살짝 강조 */
    font-family: "Pretendard", sans-serif;
    font-weight: 500;
    font-size: 11px;   /* 시안 제공값 ≤14px → 고정(가이드라인 §6) */
    line-height: 145.455%; /* 16px ÷ 11px */
    color: var(--color-white);
    white-space: nowrap;
}
.msd-header.is-scrolled .msd-btn-menu__tip-bubble,
.msd-sub .msd-btn-menu__tip-bubble {
    color: var(--color-neutral-900); /* 스크롤/서브페이지는 배경이 흰색이라 흰 글자 표시 불가 — 대표 검은색으로 별도 지정 */
}

/* 푸터 */
.msd-footer {
    background: linear-gradient(180deg, #2c2e42 0%, #043029 100%);
    color: rgba(255, 255, 255, 0.7);
}
.msd-footer__links {
    position: relative;       /* ::before 선 기준 */
    display: flex;
    list-style: none;
    padding: 0;
    width: var(--msd-cont);
    max-width: calc(100% - var(--msd-gutter));
    margin: 0 auto;
}
@media (max-width: 1023px) { .msd-footer__links { margin: 0; max-width: none; width: 100%; } } /* margin 제거 → 전체폭. 2줄(wrap) 처리 제거(2026-08-26 사용자 지정) — 4개 다 한 줄 유지 */
.msd-footer__links::before {  /* border-bottom 대체 — 화면 전체폭(100vw) 하단선 */
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100vw;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}
/* li = 아코디언 트리거 한 그룹(버튼+드롭다운 패널). position:relative는 패널 절대배치 기준 */
.msd-footer__links > li {
    position: relative;
    flex: 1 1 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.msd-footer__links > li:last-child {
    border-right: 0;
}
@media (max-width: 1023px) {
    /* 2줄(2x2) 처리 제거(2026-08-26 사용자 지정) — flex-basis:50%만 주고 wrap은 안 시켜서
       4개가 계속 한 줄에 남음. border-right(기본 규칙, 위)는 그대로 유지 —
       한 줄 4분할 그대로라 별도 재정의 불필요. */
    .msd-footer__links > li { flex-basis: 50%; }
}
.msd-footer__links > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;   /* Figma(node 203:665): 텍스트 왼쪽·아이콘 오른쪽 정렬로 재지정(2026-08-26) — 이전엔 텍스트+아이콘을 가운데 그룹으로 정렬 */
    padding: 0 20px 0 34px;           /* 2026-08-26 재지정(사용자) */
    height: 66px;                     /* 섹션 기준 66px = 콘텐츠 65px + 하단선(::before, bottom:0) 1px(2026-08-26 사용자 지정) */
    color: #fff;
    text-decoration: none;
    font-family: "Pretendard", sans-serif;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
}
/* ── 1023px 아래: padding/font-size/height 축소(2026-08-26 사용자 지정, 기본 규칙 뒤 배치로 확실히 이김) ── */
@media (max-width: 1023px) {
    .msd-footer__links > li > a { padding: 0 13px 0 15px; font-size: 16px; height: 50px; }
}
/* ── 767px 아래: 세로 1열 쌓기로 전환(2026-08-26 사용자 지정) — 세로선(border-right) 대신
   각 항목 아래에 가로선(border-bottom), 마지막 항목만 자체 선 없이 컨테이너 하단의
   ::before(풀블리드 하단선)로 마무리(위 border-right:last-child 제외 패턴과 동일한 방식) ── */
@media (max-width: 767px) {
    .msd-footer__links { flex-direction: column; }
    .msd-footer__links > li { flex-basis: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
    .msd-footer__links > li:last-child { border-bottom: 0; }
}
.msd-footer__links .plus {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: transform 0.25s ease;
}
.msd-footer__links > li.is-active > a .plus {
    transform: rotate(45deg); /* +→ × (부산은 이미지 스왑, 마산은 인라인 SVG라 회전으로 대체) */
}
/* 항목이 하나도 없는 그룹은 열어도 보여줄 게 없다는 걸 알리는 흔들림 모션 — ×로 고정되지 않고
   1초 동안 여러 각도를 찍고 다시 +(0deg)로 복귀. li.is-active(0,2,0)보다 명시도가 높아
   (0,3,0) !important 없이 자연스럽게 우선 적용됨. JS가 애니메이션 종료 시각(1000ms)에
   맞춰 is-active를 자동으로 제거해 닫힌 상태로 되돌린다(common.js 참고). */
@keyframes msd-footer-plus-empty {
    0%   { transform: rotate(0deg); }
    15%  { transform: rotate(40deg); }
    40%  { transform: rotate(10deg); }
    75%  { transform: rotate(35deg); }
    100% { transform: rotate(0deg); }
}
.msd-footer__links > li.is-active.is-empty > a .plus {
    animation: msd-footer-plus-empty 1.00s ease forwards;
}
/* 드롭다운 패널 — 푸터가 화면 최하단이라 아래로 펼치면 화면 밖으로 나감 → 위로 펼침(부산 bsd01/bsd02와 동일 방향) */
.msd-footer__links > li > ul {
    display: none;
    position: absolute;
    left: 0;
    bottom: 100%;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    background: var(--color-footer-top);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10;
    /* 스크롤 색상 지정(2026-09-01, 사용자 지정값) — 썸 #2c2e42·트랙 #575a74.
       scrollbar-color는 <썸> <트랙> 순서(CSS Scrollbars 스펙). */
    scrollbar-width: revert;
    scrollbar-color: #2c2e42 #575a74;
}
.msd-footer__links > li > ul::-webkit-scrollbar {
    width: 8px;
}
.msd-footer__links > li > ul::-webkit-scrollbar-track {
    background: #575a74;
}
.msd-footer__links > li > ul::-webkit-scrollbar-thumb {
    background: #2c2e42;
}
/* 상하 화살표 버튼 제거 */
.msd-footer__links > li > ul::-webkit-scrollbar-button {
    display: none;
}
.msd-footer__links > li > ul a {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: "Pretendard", sans-serif;
    font-size: 16px;   /* 1024↑ 16px · 1023↓ 15px (2026-11-10, 사용자 지정) */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* ≤1023(적응형): 관련 사이트 링크 목록 글자 15px */
@media (max-width: 1023px) { .msd-footer__links > li > ul a { font-size: 15px; } }
.msd-footer__links > li > ul a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
/* 사용자 지정(2026-09-03) — 마지막 항목도 위 기본 border-bottom(1px, rgba(255,255,255,.08))을 유지 */
.msd-footer__body {
    width: var(--msd-cont);
    max-width: calc(100% - var(--msd-gutter));
    margin: 0 auto;
    padding: 50px 0 40px;
}
.msd-footer__logo {
    margin-bottom: 25px;
}
.msd-footer__logo img {
    height: 44px;
}
.msd-footer__addr {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 767px) {
    /* 사용자 지정(2026-09-03) — 반응형에서 텍스트가 두 줄로 꺾일 때 1.9 줄간격은 헐거워 보여 1.3으로,
       주소/연락처 두 문장(div) 사이 간격은 7px로 별도 지정 */
    .msd-footer__addr { line-height: 1.2; }
    .msd-footer__addr > div + div { margin-top: 7px; }
}
.msd-footer__addr a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.msd-footer__contact {
    display: flex;
    flex-wrap: wrap;
    column-gap: 30px;
}
@media (max-width: 767px) {
    /* 사용자 지정(2026-09-03) — 대표전화/E-mail이 줄바꿈될 때 문장 사이 간격 7px */
    .msd-footer__contact { row-gap: 7px; }
}
.msd-footer__contact span {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}
.msd-footer__contact span b {
    font-weight: 400;
}
.msd-footer__bottom {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (max-width: 1023px) { .msd-footer__bottom { flex-direction: column; gap: 16px; align-items: flex-start; } } /* 메뉴·카피라이트 충돌 방지를 위해 767→1023px로 앞당김(2026-09-02 사용자 지정) */
.msd-footer__menu {
    display: flex;
    gap: 35px;
}
.msd-footer__menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 16px;
}
.msd-footer__menu a.bold {
    color: #fff;
    font-weight: 600;
}
@media (max-width: 767px) { .msd-footer__menu { flex-wrap: wrap; row-gap: 3px; column-gap: 16px; } }
.msd-footer__copy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}
@media (max-width: 767px) {
    /* 사용자 지정(2026-09-03) — 두 줄로 꺾일 때 줄간격 1.3 */
    .msd-footer__copy { line-height: 1.2; }
}

/* 퀵메뉴 (우측 플로팅) */
/* top 기준(문서 좌표)으로 고정 — 오늘의 말씀(.msd-today__card) 하단과 정렬. bottom(뷰포트 높이 기준)은 창 높이에 따라 어긋나 사용하지 않음 */
.msd-quick {
    position: fixed;
    right: 30px;
    top: 404.41px;
    z-index: 90;
    width: clamp(78.22px, 7.6389vw, 110px);
}
.msd-quick__box {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-white);
    border-radius: clamp(11.38px, 1.1111vw, 16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.msd-quick__box a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc((clamp(170.67px, 16.6667vw, 240px) - 2px) / 2);   /* 항목 1개 높이 = (기존 박스 높이 − 테두리 2px) ÷ 2 — 항목 수만큼 박스가 늘어남 */
    text-decoration: none;
    color: var(--color-neutral-1000);
    font-family: "Pretendard", sans-serif;
    font-weight: 500;
    font-size: clamp(14px, 1.1111vw, 16px);
    letter-spacing: 0.0656em;
    text-align: center;
    gap: clamp(4.27px, 0.4167vw, 6px);
    line-height: 112.5%;                                                  /* 2줄 이름: 18px÷16px */
}
.msd-quick__box a.is-1line { gap: clamp(4.98px, 0.4861vw, 7px); line-height: 125%; }  /* 1줄 이름: 20px÷16px */
.msd-quick__box a + a { position: relative; }
.msd-quick__box a + a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(56.89px, 5.5556vw, 80px);
    height: 1px;
    background: var(--color-neutral-100);
}
.msd-quick__box .ico {
    height: clamp(25.6px, 2.5vw, 36px);
    width: clamp(26.31px, 2.5694vw, 37px);
    object-fit: contain;
}
.msd-quick__box a.is-lg .ico { height: clamp(35.56px, 3.4722vw, 50px); width: clamp(27.01px, 2.6389vw, 38px); }  /* 본당 아이콘(시안) */
.msd-quick__top {
    margin: clamp(4.98px, 0.4861vw, 7px) auto 0;
    width: clamp(38.4px, 3.75vw, 54px);
    height: clamp(38.4px, 3.75vw, 54px);
    border-radius: 50%;
    background: linear-gradient(to bottom, rgba(255, 219, 197, 0.5), rgba(255, 255, 255, 0.5));
    border: 1px solid var(--color-white);
    cursor: pointer;
    padding: 0;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.msd-quick__top img { width: clamp(14.22px, 1.3889vw, 20px); height: clamp(14.22px, 1.3889vw, 20px); display: block; }

/* 1440 미만: 우측 여백 30→15px, 전체 20% 축소된 크기를 다음 반응형 요청이 있을 때까지 고정으로
   유지(2026-09-01, 메인·서브 공통). 내부 요소들이 전부 vw 기반 clamp라 scale만 걸면 1439~1024 사이에서
   계속 더 줄어드는 채로 축소되어버려("고정 유지"가 아니게 됨) — 그래서 안쪽 clamp들도 전부 1440 최대값으로
   고정해 뷰포트 반응을 끊고, scale(0.8)만 그 위에 얹어 하나의 고정 크기로 유지시킨다. ⚠ 반드시 위 base
   .msd-quick* 규칙들보다 뒤(파일상 아래)에 와야 동일 특이도 캐스케이드에서 이 값이 이긴다 —
   처음엔 base 규칙보다 앞에 둬서 무시되고 있었음(2026-09-01 재수정).
   scale은 오른쪽 기준으로 줄여야 위 right:15px 여백이 그대로 유지됨(중앙 기준이면 안쪽으로 더 들어가 버림). */
@media (max-width: 1439px) {
    .msd-quick {
        right: 15px;
        width: 110px;
        transform-origin: right top;
        transform: scale(0.8);
    }
    .msd-quick__box {
        border-radius: 16px;
    }
    .msd-quick__box a {
        font-size: 16px;
        height: 119px;
        gap: 6px;
    }
    .msd-quick__box a.is-1line { gap: 7px; }
    .msd-quick__box a + a::before {
        width: 80px;
    }
    .msd-quick__box .ico { height: 36px; width: 37px; }
    .msd-quick__box a.is-lg .ico { height: 50px; width: 38px; }
    .msd-quick__top {
        margin-top: 7px;
        width: 54px;
        height: 54px;
    }
    .msd-quick__top img {
        width: 20px;
        height: 20px;
    }
}
/* 1439 이하(포함, 1024↓은 아래에서 숨김이라 실제로는 1025~1439에서만 보임): 위 top:404.41px
   고정 대신 화면 하단에서 20px 띄운 위치로 전환(메인·서브 공용).
   scale(0.8)은 위 1439 규칙에서 이미 걸려 있고, 여기선 기준점만 우측·하단으로 바꿔 축소 시
   하단 여백이 흐트러지지 않게 한다. 사용자 지정(2026-09-28) — 적용 구간 1024↓ → 1439↓로 확장 */
@media (max-width: 1439px) {
    .msd-quick {
        top: auto;
        bottom: 20px;
        transform-origin: right bottom;
    }
}

.msd-submain { position: relative; flex: 1 0 auto; } /* 본문이 남는 높이를 차지 → 내용이 짧아도 푸터를 화면 맨 밑으로 */
/* 사용자 지정(2026-09-28) — 서브 페이지 전용 sticky 트릭(bottom:150+margin-top:-270+translateY(-30))을
   제거하고, 메인과 동일하게 base .msd-quick(fixed + JS 푸터 도킹)을 그대로 상속받도록 통일 */

/* 사용자 지정(2026-10-06) — 1200 이하(포함)는 본문 폭이 좁아져 퀵메뉴(본당·주보광고접수)가 콘텐츠와
   겹치므로 박스만 숨기고, top 버튼은 모든 반응형 구간에서 계속 노출(메인·서브 공용).
   박스가 빠지면 컨테이너(110px 고정폭) 안에서 버튼이 가운데로 떠 우측 여백이 어긋나므로
   폭을 버튼에 맞추고 위쪽 여백도 제거해 우측 15px·하단 20px 기준에 그대로 붙인다. */
@media (max-width: 1199px) {
    .msd-quick__box { display: none; }
    .msd-quick { width: auto; }
    .msd-quick__top { margin: 0; }
    /* 사용자 지정(2026-10-06) — 박스가 숨겨진 구간의 top 버튼은 스크롤을 내리면 나타나고
       최상단으로 돌아오면 다시 숨김(.is-scrolled는 common.js가 스크롤 위치로 토글) */
    .msd-quick { transition: opacity .25s, visibility .25s; }
    /* + 스크롤이 멈춘 채 일정 시간(common.js IDLE_HIDE)이 지나면(.is-idle) 숨기고, 다시 스크롤하면 나타남 */
    .msd-quick:not(.is-scrolled),
    .msd-quick.is-idle { opacity: 0; visibility: hidden; pointer-events: none; }
}
/* 사용자 지정(2026-09-28) — 1440 이상: 퀵메뉴(메인·서브 공용, fixed)를 화면 세로 기준
   가운데 정렬로 전환(top:404.41px 고정 대신 top:50%+translateY(-50%)) */
@media (min-width: 1440px) {
    .msd-quick { top: 50%; transform: translateY(-50%); }
}


body {
	font-family: 'Roboto', 'Pretendard', sans-serif; /* 숫자/영문=Roboto 우선, 한글은 Roboto에 없어 Pretendard로 표시 (2026-11-10 공통 순서 변경) */
	font-weight: 400;
	word-break: keep-all;
	color: #222;
	font-size: 1.125rem;
	line-height: 1.5;
	letter-spacing: -0.01em;
  background-color: #c4c3cb;
	background-color: oklch(78.563% 0.01076 291.583);
}
@supports (-webkit-touch-callout: none) {
    body {
        font-family: 'Roboto', 'Pretendard', sans-serif;
    }
}



/* 레이아웃 길이 설정 */
.layout_max{
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
	padding-left: 30px;
	padding-right: 30px;
}
.layout_max.no_padding{
	padding-left: 0;
	padding-right: 0;
}
@media screen and (max-width: 1589px) {
	.layout_max{
		/* width: 100%;
		padding-left: 40px;
		padding-right: 40px; */
	}
}
@media screen and (max-width: 1499px) {
	.layout_max{
    max-width: 100%;
		/* width: 100%;
		padding-left: 40px;
		padding-right: 40px; */
	}
}
@media screen and (max-width: 1023px) {
	.layout_max{
		/* padding-left: 40px;
		padding-right: 40px; */
	}
}
@media screen and (max-width: 767px) {
	.layout_max{
		padding-left: 15px;
		padding-right: 15px;
	}
}
@media screen and (max-width: 419px) {
	.layout_max{
		/* padding-left: 15px;
		padding-right: 15px; */
	}
}




/* 
	.navbar : z-index 100
	.all_menu : z-index 1000
	.sub_page_menu : z-index 90
*/




/* 카카오맵 스타일 */
.root_daum_roughmap_landing .border2{
	display: block !important;
}


/* TabMenu */
.tab_content>div:not(:first-child) {
    display: none;
}


#flipbookContainer
{
	height:100vh !important
}
#flipbookContainer canvas
{
	width:100% !important;
	height:100vh !important;
}
.df-container{
	height: 100vh !important;
}


body > .container{
	background-color: #fff;
}

/* popup style */
.pop-layer {
    background-color:#fff;
	height: auto !important;
}
@media screen and ( max-width: 767px ) {
	.pop-layer{
		top: 0 !important;
		left: 0 !important;
		max-width: 100% !important;
	}
	.popM > div > p{
		max-width: 100% !important;
		height: auto !important;
	}
}




#layer-top {
	position:relative;
	top:0;
	left:0;
	width:100%;
	height:150px;
	overflow:hidden;
	background:#fff;
}
#layer-top > ul,
#layer-top > ul > li,
#layer-top > ul > li > div,
#layer-top > ul > li > div p
{
	height:100% !important;
}
#layer-top > ul > li > div p img
{
	width:100% !important;
	height:100% !important;
}
#layer-top .pop_layout_1200
{
	height:auto
}
#layer-top .popBExit
{
	position:absolute;
	bottom:10px;
	right:10px;
	z-index:1;
}
.popBExit{
	background-color: #807980;
    display: flex;
    justify-content: space-between;
	padding: 10px;
	padding-bottom: 11px;
	color: #fff;
}
.popBExit > label{
	display: flex;
	align-items: center;
	gap: 5px;
	padding-bottom: 1px;
}
.popBExit > label input{
	transform: translateY(1px);
}
.popBExit button{
	color: #fff;
}
.popM > div:not(.popBExit) img{
	max-width: 100% !important;
	width: 100% !important;
	height: auto !important;
}


/* 헤더 start */
.navbar{
	position: relative;
	z-index: 100;
	position: sticky;
	top: 0;
	left: 0;
	background-color: #fff;
	transition: 0.3s;
	box-shadow: 0px 1px 5px rgb(0 0 0 / 7%);
}

header{
	width: 100%;
	height: 100px;
	display: flex;
	justify-content: center;
	position: relative;
}
header > .layout_max{
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
header > .layout_max h1{

}
header > .layout_max h1 img{
	width: 240px;
}
header > .layout_max {
	display: flex;
}
header > .layout_max .layout_navi{
	height: 100%;
}
header > .layout_max ul.page_top_navi{
    display: flex;
    height: 100%;
    align-items: center;
	gap: 50px;
}
header > .layout_max ul.page_top_navi::before{
	content: '';
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: 0px;
    background-color: #fff;
    transition: height .3s;
    box-shadow: 0px 50px 50px rgb(0 0 0 / 7%);
	z-index: 0;
}
header > .layout_max ul.page_top_navi.scroll::before{
	border-top: 1px solid #eee;
}

header > .layout_max ul.page_top_navi.scroll::after{
    content: "";
    background: url(/assets/msd01/image/navi_top_deco.png) top center no-repeat;
    background-size: contain;
    top: 100px;
    left: 0;
    position: absolute;
    width: calc((100% - 1200px) / 2 + 250px);
    height: 145px;
    pointer-events: none;
}
header > .layout_max ul.page_top_navi.scroll::before{
	height: 420px;
}
header > .layout_max ul.page_top_navi > li{
	display: flex;
	align-items: center;
	height: 100%;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.9px;

}
header > .layout_max ul.page_top_navi > li > .depth01_tit{
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
}
header > .layout_max ul.page_top_navi > li > .depth01_tit.active{
	letter-spacing: -0.9px;
	color: #2E8B57;
}
header > .layout_max ul.page_top_navi > li > .depth01_tit.active::after{
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: #2E8B57;
	border-radius: 800px;
}
header > .layout_max ul.page_top_navi > li > ul{
    position: absolute;
    top: 0;
    left: 0;
    /* background-color: #fff; */
    width: 100%;
	min-height: 420px;
    top: 100px;
	padding-left: calc((100% - 1200px) / 2 + 335px);
	padding-right: calc((100% - 1200px) / 2);
	padding-top: 45px;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 15px 40px;
	display: none;
}
header > .layout_max ul.page_top_navi > li > ul[style*='display: block']{
    display: flex !important;
}
header > .layout_max ul.page_top_navi > li:first-of-type > ul{
	display: flex;
	display: none;
}
header > .layout_max ul.page_top_navi > li > ul > li{
	width: 21%;
}
header > .layout_max ul.page_top_navi > li > ul > li > a{
	display: inline-flex;
	width: 100%;
	padding-top: 15px;
	padding-bottom: 15px;
	font-weight: 500;
	font-size: 17px;
	position: relative;
	border-bottom: 1px solid #E5E5E5;
}
header > .layout_max ul.page_top_navi > li > ul > li.active > a{
	border-bottom: 1px solid #231915;
}
header > .layout_max ul.page_top_navi > li > ul > li > a::after{
	/* content: "";
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	background: url(/assets/msd01/image/icon_arrow_small_black.svg) center center no-repeat;
	background-size: contain;
	width: 10px;
	height: 10px; */
}
header > .layout_max ul.page_top_navi > li > ul > li > ul{
	display: flex;
	flex-direction: column;
	padding-top: 7.5px;
}
header > .layout_max ul.page_top_navi > li > ul > li > ul > li{

}
header > .layout_max ul.page_top_navi > li > ul > li > ul > li > a{
	display: inline-flex;
	width: 100%;
	font-weight: 400;
	color: #6A646A;
	font-size: 16px;
	padding: 10px 0;
}
header > .layout_max ul.page_top_navi > li > ul > li > ul > li.active > a{
	color: #2E8B57;
	text-decoration: underline;
	text-decoration-color: #2E8B57;
	text-underline-position: under;
}
header > .layout_max ul.page_top_navi > li > ul > li > ul > li:hover > a{
	color: #2E8B57;
	text-decoration: underline;
	text-decoration-color: #2E8B57;
	text-underline-position: under;
}
header > .layout_max .page_top_gather{
	display: flex;
	gap: 18px;
}
header > .layout_max .page_top_gather .box{
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: -0.75px;
	transform: translateY(-1px);
}
header > .layout_max .page_top_gather .box.search{
	display: none;
}
header > .layout_max .page_top_gather .box.total{
    background-color: #F1F7F3;
    padding: 7px 13px 10px;
    border-radius: 5px;
}
header > .layout_max .page_top_gather .box.total span{
	display: inline-block;
    padding-bottom: 0px;
}
header > .layout_max .page_top_gather .box a{
	display: flex;
	align-items: center;
	gap: 5px;
}
header > .layout_max .page_top_gather .box i{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	padding-top: 1px;
}
header > .layout_max .page_top_gather .box i img{
	width: 100%;
	height: 100%;
}
header > .layout_max .page_top_gather .box.total i{
	width: 12px;
	padding-bottom: 1px;
}
header > .layout_max ul.page_top_navi > li > .text_bg{
	width: auto;
	height: 420px;
	position: absolute;
	top: 100px;
	left: 0;
	padding-left: calc((100% - 1200px) / 2);
	padding-top: 60px;
	padding-bottom: 60px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	display: none;
}
header > .layout_max ul.page_top_navi > li > .text_bg[style*='display: block']{
	display: flex !important;
}
header > .layout_max ul.page_top_navi > li > .text_bg .text{
	min-width: 280px;
}
header > .layout_max ul.page_top_navi > li > .text_bg .text .tit{
	letter-spacing: -3px;
	color: #2E8B57;
	font-size: 30px;
	font-weight: 600;
	font-family: 'Pretendard', sans-serif;
}
header > .layout_max ul.page_top_navi > li > .text_bg .text .sub{
	max-width: 160px;
	letter-spacing: -0.8px;
	color: #231915;
	font-weight: 300;
	font-size: 16px;
	margin-top: 15px;
	line-height: 1.25;
}
header > .layout_max ul.page_top_navi > li > .text_bg .bg{
	display: flex;	
	justify-content: flex-end;
}
header > .layout_max ul.page_top_navi > li > .text_bg .bg img{
	width: auto;
}
@media screen and ( max-width: 1199px ) {
	header > .layout_max ul.page_top_navi{
		display: none;
	}
}
@media screen and ( max-width: 767px ) {
	.navbar{
		top: -70px;
	
	}
	.navbar.scrollup{
		top: 0px;
		/* border-bottom: 1px solid #EBE9E7; */
	}
	header{
		height: 50px;
	}
	header > .layout_max{
		padding-right: 5px;
		padding-left: 10px;
	}
	header > .layout_max h1 img{
		width: 170px;
	}
	header > .layout_max .page_top_gather{
		gap: 0px;
	}
	header > .layout_max .page_top_gather .box{
		font-size: 0;
		width: 34px;
		height: 34px;
		justify-content: center;
		align-items: center;
		transform: translateY(0);
		/* background-color: orange; */
	}
	header > .layout_max .page_top_gather .box.total{
		font-size: 0;
		gap: 0;
		background-color: transparent;
		/* background-color: orange; */
		padding: 0;
		border-radius: 0;
	}
	header > .layout_max .page_top_gather .box a{
		font-size: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
	}
	header > .layout_max .page_top_gather .box i{
		width: 24px;
		min-width: 24px;
	}
	header > .layout_max .page_top_gather .box.login i{
		transform: translateX(1px) translateY(-1px);
	}
	header > .layout_max .page_top_gather .box.login i{
		transform: translateX(1px) translateY(-1px);
	}
	header > .layout_max .page_top_gather .box.search i{
		transform: translateY(-1px);
		width: 25px;
	}
	header > .layout_max .page_top_gather .box.user-info i{
		transform: translateX(1px) translateY(-1px);
		width: 25px;
	}
	header > .layout_max .page_top_gather .box.total{
		
	}
	header > .layout_max .page_top_gather .box.total i{
		width: 19px;
		min-width: 19px;
		transform: translateY(-1px);
	}

	.sub_page_layout .navbar{
		box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	}
}
@media screen and ( max-width: 419px ) {
	header > .layout_max .page_top_gather .box.search{
		font-size: 0;
		gap: 0;
	}
}
/* 헤더 end */



/* 푸터 start */
/* 푸터 end */





/* ===== [주석처리] All Menu (구 navigation .all_menu 오버레이) =====
   allmenu(.msd-) 룩 병합 작업으로, 아래 ".msd-allmenu 병합 블록"의 재정의가 이 스타일을 대체함.
   기능형 클래스(.all_menu/.menu/.close/.page_top_gather)는 마크업·JS에서 유지(구조/개폐 동작).
   원복 시 이 주석 블록만 해제하면 구 마산 navigation 룩으로 복귀.
   ================================================================= */
/*
.all_menu{
    position:fixed;
    display:none;
    padding:0 40px;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:#2E8B57;
	background-size: contain;
    z-index:1000;
    overflow-y: auto;
	padding-bottom: 62px;
}
.all_menu::before{
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100px;
	background:#2E8B57;
	z-index: 1;
}
.all_menu::after{
	content: "";
	position: fixed;
	top: 100px;
	left: 50%;
	transform: translateX(-50%);
	width: 1200px;
	max-width: 100%;
	height: 2px;
	background:#ffffff;
	z-index: 1;
}

.all_menu::-webkit-scrollbar{
    display: none;
}

.all_menu .layout_max{
	position: relative;
}
.all_menu .deco_img{
	position: fixed;
	width: 30%;
	height: 30%;
	right: 0;
	bottom: 230px;
	display: flex;
	justify-content: flex-end;
	overflow: hidden;
}
.all_menu .deco_img img{
	transform: translateX(10%);
}
.all_menu .deco_text {
    display: block;
    width: 200%;
	height: 145px;
    position: fixed;
    overflow: hidden;
    bottom: 0px;
    left: 0px;
    background: url(/assets/msd01/image/all_menu_text01.svg) center center;
    background-repeat: repeat-x;
	background-position: bottom;
    animation: marquee 15s linear infinite;
    -webkit-animation: marquee 15s linear infinite;
    background-size: contain;
}
@keyframes marquee {
    0% {
        left: 0;
    }

    100% {
		left: -100%;
    }
}

@-webkit-keyframes marquee {
    0% {
		left: 0;
    }

    100% {
		left: -100%;
    }
}
.all_menu .close_wrap{
	max-width: 1240px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    height: 100px;
    margin: 0 auto;
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.all_menu .close {
    cursor: pointer;
}
.all_menu .menu
{
    display:flex;
	flex-direction: column;
    height: 100%;
    z-index: 1;
	color: #fff;
	margin-top: 100px;
	padding-top: 10px;
}
.all_menu .menu > li
{
	display: flex;
	width: 100%;
	padding: 35px 0;
	border-bottom: 1px solid #FFFFFF30;
}
.all_menu .menu > li:last-child
{
    border-bottom:0;
}
.all_menu .menu li a
{
    position:relative;
    transition:all .3s;
}
.all_menu .menu > li > a
{
    display:block;
    font-size:30px;
    font-weight:600;
    letter-spacing:-1.5px;
    margin-bottom:40px;
	width: 255px;
}
.all_menu .menu > li:hover > a
{
}
.all_menu .menu > li > ul
{
	width: calc(100% - 255px);
    padding-left:2px;
	display: flex;
	flex-wrap: wrap;
	gap: 30px 0;
}
.all_menu .menu > li > ul > li{
	width: 25%;
}
.all_menu .menu > li > ul > li > a
{
    font-size:20px;
    font-weight:500;
    letter-spacing:-1px;
    padding-left:14px;
}

.all_menu .menu > li > ul > li > ul
{
    padding-left:30px;
    margin-top:20px;
}
.all_menu .menu > li > ul > li > ul > li
{
    margin-bottom:16px;
}
.all_menu .menu > li > ul > li > ul > li > a
{
    position:relative;
    display: inline-block;
    word-break:keep-all;
    font-size:15px;
    letter-spacing:-0.9px;
	opacity: 0.6;
}
.all_menu .menu > li > ul > li > ul > li > a:before
{
    content:'';
    position:absolute;
    top:9px;
    left:-12px;
    width:7px;
    height:1px;
    background:#fff;
}
.all_menu .menu > li > ul > li > ul > li > a:hover{
	color: #fff;
	opacity: 1;
}
.all_menu .menu > li > ul > li > ul > li > a:hover:before
{
    background:#fff;
}

@media screen and ( max-width: 1280px ) {
	.all_menu::before{
		height: 100px;
	}
	.all_menu .menu{
		margin-top: 100px;
		padding-top: 0;
	}
	.all_menu::after{
		top: 100px;
	}
	.all_menu .close_wrap{
		height: 100px;
	}
	.all_menu .layout_max{
		padding-left: 0;
		padding-right: 0;
	}
	.all_menu .menu > li > a{
		width: 150px;
		font-size: 25px;
	}
	.all_menu .menu > li > ul{
		width: calc(100% - 150px);
	}
	.all_menu .menu > li > ul > li > a{
		font-size: 16px;
	}
	.all_menu .menu > li > ul > li > ul > li > a{
		font-size: 14px;
	}
	.all_menu .close{
		padding-right: 17px;
	}
}
@media screen and ( max-width: 767px ) {
	.all_menu{
		padding: 0 0px;
		background: rgba(46 139 87);
	}
	.all_menu .close{
		padding-right: 0;
	}
	.all_menu .close_wrap{
		top: 0;
		height: 50px;
		padding-left: 15px;
		padding-right: 15px;
	}
	.all_menu .close img{
		width: 16px;
	}
	.all_menu::before{
		height:50px;
		border-bottom: 1px solid #FFFFFF30;
	}
	.all_menu::after{
		top: 50px;
		display: none;
	}
	.all_menu .menu{
		margin-top: 50px;
		padding-top: 0;
		padding-bottom: 100px;
	}
	.all_menu .menu > li{
		flex-direction: column;
		padding: 0;
	}
	.all_menu .menu > li > ul{
		width: 100%;
		flex-direction: column;
		background-color: #b65e44;
		gap: 18px 0;
		padding: 0 15px;
		padding-top: 0px;
		padding-bottom: 0px;
		padding-left: 0;
		padding-right: 0;
		display: none;
	}
	.all_menu .menu > li > ul > li{
		width: 100%;
		border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
	}
	.all_menu .menu > li > ul > li:last-of-type{
		border-bottom: 0;
	}
	.all_menu .menu > li > ul > li:first-of-type{
		border-top: 0;
		padding-top: 0;
	}
	.all_menu .menu > li > ul > li > a{
		padding-left: 0;
		word-break: break-all;
		font-size: 16px;
		line-height: 1.4;
		min-height: 50px;
		display: flex;
		align-items: center;
		font-weight: 500;
		padding-left: 15px;
	}
	.all_menu .menu > li > ul > li > ul{
		padding-left: 0px;
		margin-top: 0;
		padding-bottom: 10px;
	}
	.all_menu .menu > li > ul > li > ul > li {
		margin-bottom: 0;
	}
	.all_menu .menu > li > ul > li > ul > li > a{
		width: 100%;
		font-size: 15px;
		min-height: 35px;
		display: flex;
		align-items: center;
		color: #FFFFFF99;
		font-weight: 400;
		padding-left: 40px;
		position: relative;
	}
	.all_menu .menu > li > ul > li > ul > li > a:before{
		left: 25px;
		top: 17.5px;
		background-color: #FFFFFF99;
	}
	.all_menu > .layout_max{
		padding-left: 0;
		padding-right: 0;
	}
	.all_menu .menu > li > a{
		font-size: 18px;
        margin-bottom: 0px;
		width: 100%;
		height: 50px;
		display: flex;
		align-items: center;
		padding: 0 15px;
		font-weight: 500;
	}
	.all_menu .menu > li > a::after{
		content: "";
		position: absolute;
		top: 50%;
		right: 15px;
		width: 14px;
		height: 8px;
		background: url(/assets/msd01/image/mobile_arrow_white.svg) center center no-repeat;
		transform: translateY(-50%);
		transition: 0.3s;
	}
	.all_menu .menu > li > a.active::after{
		transform: translateY(-50%) rotate(180deg);
	}
	.all_menu .deco_text{
		display: none;
	}
	.all_menu .deco_img{
		display: none;
	}
}
@media screen and ( max-width: 419px ) {
	.all_menu .menu{
	}
	.all_menu::after{
		top: 50px;
	}
	.all_menu::before{
		height: 50px;
	}
	.all_menu .close_wrap{

	}
	.all_menu .menu > li > ul > li > a{

	}
	.all_menu .menu > li > ul > li > ul{

	}
}
*/
/* ▲ [주석처리 끝] 구 All Menu(.all_menu) — 대체 정의는 아래 ".msd-allmenu 병합 블록" 참조 */

/* =========================================================
   .msd-allmenu 병합 블록 (navigation 기능 + allmenu 룩)
   - 대상: <div class="all_menu msd-allmenu"> (기능형 .all_menu + 룩 .msd-allmenu 병기)
   - allmenu 컴포넌트 CSS(이 파일 하단 "전체메뉴 오버레이" 섹션)를 재사용하되,
     navigation의 ul/li 구조(리스트) + common.js 2단 아코디언(≤1023, is-open/slideToggle)에 맞춤.
   - 구 .all_menu 시각 스타일은 위에서 주석처리됨.
   ========================================================= */
/* 루트: JS fadeIn/out 개폐용 초기 숨김 (구 .all_menu{display:none} 대체) */
.all_menu.msd-allmenu { display: none; }
/* ul/li 리스트 리셋 (design은 div 기준 → 여기선 ul.menu/li). padding-top·margin-top 등은 컴포넌트가 재설정 */
.msd-allmenu__nav { list-style: none; margin: 0; }
.msd-allmenu__cat-body, .msd-allmenu__sub { list-style: none; padding-left: 0; }
.msd-allmenu__cat, .msd-allmenu__grp, .msd-allmenu__sub > li { list-style: none; }
/* 2단 아코디언(≤1023): 컴포넌트의 is-open CSS(.cat.is-open .cat-body / .grp.is-open .sub + chevron/pm 상태)를
   그대로 사용. common.js가 is-open 토글 + slideToggle(부드러운 열림)로 구동.
   → 별도 CSS 불필요. 데스크탑(≥1024)은 컴포넌트 전개 룩. */
/* ▼ [주석처리 끝 + 병합 블록 끝] */



/* sub_top_menu_start */
@media screen and (max-width: 767px) {
	.sub_top_menu_wrap{
		display: flex;
		flex-wrap: wrap;
		padding-top: 0;
		width: 100%;
		z-index: 900;
		background-color: #fff;
	}
	.sub_top_menu_wrap .inner{
		width: 100%;
		max-width: 1280px;
		margin: 0 auto;
		height: 70px;
		background-color: #fff;
		display: flex;
		justify-content: space-between;
	}
	.sub_top_menu_wrap .inner .left_area{
		display: flex;
		align-items: center;
		width: 100%;
	}
	.sub_top_menu_wrap .inner .left_area .home{
		min-width: 70px;
		width: 70px;
		height: 70px;
		display: flex;
		align-items: center;
		justify-content: center;
		position: relative;
	}
	.sub_top_menu_wrap .inner .left_area .home::before{
		content: "";
		position: absolute;
		right: 0px;
		top: 50%;
		transform: translateY(-50%);
		width: 1px;
		height: 100%;
		background-color: #EBE9E7;
	}
	.sub_top_menu_wrap .inner .left_area .depthstyle{
		position: relative;
	}
	.sub_top_menu_wrap .inner .left_area .depthstyle.depth1::before{
		content: "";
		position: absolute;
		right: 0px;
		top: 50%;
		transform: translateY(-50%);
		width: 1px;
		height: 100%;
		background-color: #EBE9E7;
		z-index: 4;
	}
	.sub_top_menu_wrap .inner .left_area .depthstyle .current_menu{
		width: 250px;
		height: auto;
		text-align: left;
		color: #000000;
		font-size: 17px;
		font-weight: 500;
		font-family: 'Pretendard';
		padding: 16px 0 15px 25px;
		padding-left: 0;
		background-color: #fff;
		position: relative;
		z-index: 3;
		height: 48px;
		width: 100%;
        font-size: 16px;
		padding-left: 15px;
		padding-right: 15px;
	}
	.sub_top_menu_wrap .inner .left_area .depthstyle .current_menu.active::after{
		transform: translateY(calc(-50% + 0px)) rotate(180deg);
	}
	.sub_top_menu_wrap .inner .left_area .depthstyle .current_menu span{
		width: 100%;
		display: block;
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: hidden;
	}
	.sub_top_menu_wrap .inner .left_area .depthstyle ul{
		display: none;
		position: absolute;
		top: 100%;
		right: 0;
		width: 100%;
		z-index: 2;
		overflow-y: auto;
		background: #fff;
		box-shadow: 10px 15px 30px #0000000D;
		border-radius: 0px 0px 20px 20px;
		padding-bottom: 20px;
	}
	.sub_top_menu_wrap .inner .left_area .depthstyle ul li{
		background-color: blue;
	}
	.sub_top_menu_wrap .inner .left_area .depthstyle ul li a{
		display: block;
		color: #000000;
		font-size: 17px;
		padding: 15px 25px;
		font-weight: 500;
		background-color: #fff;
		/* letter-spacing: -0.04em; */ 
	}
	.sub_top_menu_wrap .inner .left_area .depthstyle ul li a.active{
		text-decoration: underline;
	}
	.sub_top_menu_wrap .inner .left_area .depthstyle ul li:hover a{
		color: #C7000B;
	}
	.sub_top_menu_wrap .inner .left_area .depthstyle ul li a:focus{
		color: #C7000B;
	}
	.sub_top_menu_wrap .inner .right_area{
		display: flex;
	}



	.sub_top_menu_wrap{
		display: flex;
	}
	.sub_top_menu_wrap .inner {
		height: 50px;
    }
    .sub_top_menu_wrap .inner .right_area{
		display: none;
    }
    .sub_top_menu_wrap .inner .left_area{
		flex: 1;
    }
    .sub_top_menu_wrap .inner .left_area .home{
		width: 50px;
        height: 50px;
		min-width: 50px;
    }
    .sub_top_menu_wrap .inner .left_area .depthstyle{
		width: calc(50% - 25px);
    }
    .sub_top_menu_wrap .inner .left_area .depthstyle ul{
		width: 100vw;
        border-radius: 0px;
    }
    .sub_top_menu_wrap .inner .left_area .depthstyle.depth1 ul{
		left: 0%;
        transform: translateX(-50px);
    }
}
@media (max-width: 419px) {
	.sub_top_menu_wrap{
		top: 0px;
	}
}
/* sub_top_menu_end */




/* 에러페이지(404, article/noRoute) — 2026-09-01: 리브랜딩 이전 색상(버튼 갈색 #857064·텍스트 회색
   #9F9EA3 하드코딩) 발견·교체(로그인/회원가입 페이지가 겪었던 것과 동일 패턴) — 버튼은 브랜드블루
   토큰, 텍스트는 공용 회색 토큰으로 교체. .error_img는 마산 원본에서도 display:none(의도적 비활성,
   마크업에 대응 <img>도 없음) — 그대로 유지. */
.noRouteWrap{
	width: 100%;
	max-width: 470px;
	margin: 0 auto;
	padding-top: 80px;
}
.noRouteWrap .text_wrap{
	text-align: center;
}
.noRouteWrap .text_wrap .big{
	letter-spacing: -1.4px;
	color: var(--color-neutral-450);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.3;
}
.noRouteWrap .btnWrap{
	display: flex;
	justify-content: center;
}
.noRouteWrap .btnWrap .btn-1{
	border-radius: 10px;
	background-color: var(--color-brand); /* 2026-09-01: 리브랜딩 이전 갈색(#857064) 잔존 발견·교체 */
	letter-spacing: -0.64px;
	color: #FFFFFF;
	max-width: 160px;
	width: 100%;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 60px;
	font-size: 16px;
	font-weight: 600;
	padding-bottom: 2px;
}
.noRouteWrap .text_wrap .small{
	letter-spacing: -0.8px;
	color: var(--color-neutral-450);
	font-size: 16px;
	font-weight: 400;
	margin-top: 25px;
	line-height: 1.7;
}
.noRouteWrap .error_img{
	display: flex;
	justify-content: center;
	display: none;
}
.noRouteWrap .error_img img{
	width: 100%;
	height: 100%;
	transform: translateY(130px);
}
@media only screen and (max-width: 767px) {
	.noRouteWrap {
		padding-top: 25px;
	}
	.noRouteWrap .error_img img{
		width: 68%;
		transform: translateY(60px);
	}
	.noRouteWrap .text_wrap .big{
		font-size: 21px;
	}
	.noRouteWrap .text_wrap .small{
		font-size: 15px;
		margin-top: 16px;
	}
	.noRouteWrap .btnWrap .btn-1{
	
		max-width: 133px;
		width: 100%;
		height: 45px;
		margin-top: 43px;
		font-size: 15px;
	}
}
/* 에러페이지 end */





.no_data_message{
	text-align: center; 
    padding: 60px 15px;
}
.no_data_message.border_b{
	border-bottom: 1px solid #E5E5E5;
}
.no_data_message.border_t{
	border-top: 1px solid #E5E5E5;
}
.no_data_message p{
	margin-top: 20px;
	font-size: 16px;
	color: #D9D9D9;
}






















/* 나뉘는 폼 스타일 */

.search_wrap{
    padding: 40px 120px;
    background-color: #F1F7F3;
    border-radius: 20px;
}
.search_wrap .search_click{
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 7px 20px 9px;
    font-size: 16px;
    line-height: 27px;
    letter-spacing: -0.9px;
    color: #fff;
    background-color: #2E8B57;
    font-weight: 600;
    border-radius: 0 10px 10px 0;
    border: 0;
	position: relative;
}
.search_wrap .search_click[type="submit"]{
	cursor: pointer;
}
.search_wrap input.input_text{
    padding: 0 14.5px 2.4px 14.5px;
    font-size: 16px;
    letter-spacing: -0.9px;
    border: none;
    width: 100%;
    border-radius: 10px 0px 0px 10px;
}

.search_wrap .button_wrap{
    display: flex;
    gap: 10px;
}
.search_wrap .button_wrap .area{
    position: relative;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 10px;
}
.search_wrap .button_wrap .area.small{
    width: 120px;
	min-width: 120px;
}

.search_wrap .button_wrap .area.small select{
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 0;
    padding: 0 15px;
    background: #fff url(/assets/msd01/image/icon_arrow_black_bottom.svg) no-repeat right 15px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 15px;
	border-radius: 10px;
	padding-bottom: 2px;
}
.search_wrap .button_wrap .area.big{
    display: flex;
}
@media screen and ( max-width: 1298px ){
	.search_wrap{
		padding: 40px 90px;
	}
}
@media screen and ( max-width: 1023px ){
	.search_wrap{
		padding: 20px 30px;
	}
	.search_wrap .search_click{
	    padding: 7px 20px 9px;
	}
}
@media screen and ( max-width: 767px ){
	.search_wrap{
		padding: 20px;
	}
	.search_wrap .button_wrap{
		flex-direction: column;
	}
	.search_wrap .button_wrap .area.small{
		width: 100%;
	}
	.search_wrap .button_wrap .area.small select{
		width: 100%;
		min-height: 43px;
		padding-bottom: 2px;
	}
	
}







/* 폼안에 input 공통 start  */
.search_wrap input.input_text::placeholder{
    color: #8A8A88;
}
.search_wrap input.input_text::-webkit-input-placeholder{
    color: #8A8A88;
}
/* IE */
.search_wrap input.input_text:-ms-input-placeholder{
    color: #8A8A88;
}
/* Firefox */
.search_wrap input.input_text::-moz-placeholder{
    color: #8A8A88;
}
.search_wrap input.input_text:-moz-placeholder{
    color: #8A8A88;
}
/* 폼안에 input 공통 end  */










/* 공통 count start */
.board_count{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 45px;
}
.board_count .number{
	display: inline-flex;
    gap: 3px;
	font-size: 15px;
}
.board_count .number .red{
	color: #2E8B57;
	font-weight: 600;
}
@media screen and ( max-width: 767px ){
	.board_count{
		margin-top: 30px;
	}
}

/* 공통 count end */
















#request_date_tagsinput{
	width: 100%;      /* 데이트픽커 아래 줄로 내려 배치(flex-wrap) */
	gap: 5px;         /* 태그 상하좌우 간격 5 (마진 대신 gap 사용) */
	padding: 0;
	border: 0;
}
#request_date_tagsinput > .tag{
	background-color: #fff;
	color: #231915;
	border: 1px solid #999;
	border-radius: 5px;
	padding-bottom: 7px;
	padding-left: 10px;
	margin: 0;        /* 플러그인 기본 5px 마진 제거 → gap이 대체 */
}
#request_date_tagsinput div input{ margin: 0; }   /* 입력칸 기본 5px 마진 제거 */
/* 삭제(X) 버튼: 태그 높이 100%·정사각(1/1)·X 중앙정렬 (기존엔 상단에 붙어 있었음) */
#request_date_tagsinput .tag .tag-remove{ top: 0; right: 0; height: 100%; width: auto; aspect-ratio: 1 / 1; }
#request_date_tagsinput .tag .tag-remove::before{ top: 50%; left: 50%; transform: translate(-50%, -50%) rotateZ(45deg); }
#request_date_tagsinput .tag .tag-remove::after{ top: 50%; left: 50%; transform: translate(-50%, -50%) rotateZ(-45deg); }
.tagsinput .tag .tag-remove:after, .tagsinput .tag .tag-remove:before{
	background: #2E8B57 !important;
}








/* 준비 페이지 */
.full_ready{
	width: 100dvw;
	height: 100dvh;
	margin: 0 auto;
	position: fixed;
	top: 0;
	left: 0;
	background-color: #F1F7F3;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding-bottom: 4%;
}
.full_ready .img_warp{
	display: flex;
	justify-content: center;
}
.full_ready .text_wrap{
	text-align: center;
	margin-top: 60px;
}
.full_ready .text_wrap .big{
	line-height: 1.3;
	color: #855021;
	font-size: 36px;
	font-weight: 800;
	letter-spacing: -1.8px;
}
.full_ready .btnWrap{
	display: flex;
	justify-content: center;
}
.full_ready .btnWrap .btn-1{
	border-radius: 10px;
	background-color: #857064;
	letter-spacing: -0.64px;
	color: #FFFFFF;
	max-width: 160px;
	width: 100%;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 60px;
	font-size: 16px;
	font-weight: 600;
	padding-bottom: 2px;
}
.full_ready .text_wrap .small{
	font-size: 20px;
	color: #605560;
	margin-top: 30px;
	line-height: 1.5;
	letter-spacing: -0.04em;
}
.full_ready .text_wrap .small .bold{
	color: #231915;
	font-weight: 700;
}
.full_ready .text_wrap .small .bold.color{
	color: #2E8B57;
	font-weight: 700;
}
.full_ready .error_img{
	display: flex;
	justify-content: center;
	display: none;
}
.full_ready .error_img img{
	width: 100%;
	height: 100%;
	transform: translateY(130px);
}
.full_ready .date_wrap{
	margin-top: 65px;
	background-color: #2E8B57;
	border-radius: 800px;
	font-weight: 700;
	color: #fff;
	display: flex;
    align-items: flex-end;
	padding: 0 45px;
	padding-top: 16px;
	padding-bottom: 19px;
	font-size: 24px;
}
.full_ready .date_wrap span{
	font-weight: 400;
	font-size: 20px;
	padding-right: 7px;
	padding-left: 2px;
}
@media screen and (max-width: 767px) {
	.full_ready{
		padding-left: 15px;
		padding-right: 15px;
	}
	.full_ready .img_warp{
		width: 100px;
	}
	.full_ready .img_warp img{
		width: 100%;
	}
	.full_ready .text_wrap{
		margin-top: 30px;
	}
	.full_ready .text_wrap .big{
		font-size: 24px;
	}
	.full_ready .text_wrap .small{
		font-size: 17px;
	}
	.full_ready .date_wrap{
		font-size: 15px;
		padding-left: 19px;
		padding-right: 19px;
		padding-top: 9px;
        padding-bottom: 12px;
		margin-top: 45px;
		flex-wrap: wrap;
		justify-content: center;
		line-height: 1.3;
	}
	.full_ready .date_wrap span{
		font-size: 15px;
	}

}
@media screen and (max-width: 383px) {
	.full_ready .text_wrap .small br{
		display: none;
	}
}










/* 미사안내 */
.page_wrap.masstime{
			
}
.page_wrap.masstime .cont_wrap {
	display: flex;
	flex-direction: column;
	margin-top: 30px;
}
.page_wrap.masstime .cont_wrap .cont{
	padding: 30px 0;
	padding-bottom: 30px;
}
.page_wrap.masstime .cont_wrap .cont .table_title{
	font-weight: 600;
	font-size: 27px;
	letter-spacing: -4px;
	line-height: 1.425;
	text-align: center;
	padding: 13px 0;
	padding-top: 0;
	
	font-weight: bold;
    font-size: 24px;
    letter-spacing: -2.4px;
    color: #231915;
}
.page_wrap.masstime .table_scroll {
	width: 100%;
	overflow: auto;
}
.page_wrap.masstime table.table_masstime {
	width: 100%;
	min-width: 910px;
	table-layout: auto;
}
.page_wrap.masstime table.table_masstime th,
.page_wrap.masstime table.table_masstime td {
	text-align: center;
	position: relative;
	height: 50px;
	line-height: 1.3;
	padding: 10px;
}
.page_wrap.masstime table.table_masstime th{
	border-top: 1px solid #000;
	border-right: 1px solid #E5E5E5;
}
.page_wrap.masstime table.table_masstime th.sat{
	color:#2254c0;
}
.page_wrap.masstime table.table_masstime th.sun{
	color: #ce382d;
}
.page_wrap.masstime table.table_masstime .view_move{
	width: 100%;
	height: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.page_wrap.masstime table.table_masstime .view_move .move{
	display: flex;
	align-items: center;
	transform: translateY(1px);
}
.page_wrap.masstime table.table_masstime th:last-of-type{
	border-right: 0;
}
.page_wrap.masstime table.table_masstime td{
	border: 1px solid #E5E5E5;
}
.page_wrap.masstime table.table_masstime tbody tr td:first-of-type{
	border-left: 0;
	font-weight: 700;
}
.page_wrap.masstime table.table_masstime tbody tr td:last-of-type{
	border-right: 0;
}
.page_wrap.masstime table.table_masstime .diagonal-header {
	position: relative;
}
.page_wrap.masstime table.table_masstime .diagonal-header::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(27deg);
    width: 50%;
    height: 100%;
    height: 1px;
    background-color: #E5E5E5;
}
.page_wrap.masstime table.table_masstime .diagonal-header .text-top {
	position: absolute;
	top: 5px;
	right: 10px;
}
.page_wrap.masstime table.table_masstime .diagonal-header .text-bottom {
	position: absolute;
	bottom: 5px;
	left: 10px;
}
.page_wrap.masstime .ms_guide_text{
	display: flex;
	gap: 4px;
	margin-bottom: 30px;
}
.page_wrap.masstime .ms_guide_text i{
	display: inline-flex;
	align-items: flex-start;
	padding-top: 3.5px;
}
.page_wrap.masstime .ms_guide_text p {
	line-height: 1.4;
}
.page_wrap.masstime .ms_guide_text p span{
	color: #2E8B57;
	text-decoration: underline;
	display: inline-block;
}
.page_wrap.masstime .type02{
	margin-top: 0;
}
.page_wrap.masstime .type02 table.table_masstime tbody tr td:first-of-type{
	font-weight: 400;
}
.page_wrap.masstime .type02 table.table_masstime{
    border-top: 1px solid #000;
}
.page_wrap.masstime .type02 table.table_masstime tr:first-of-type td{
	border-top: 0;
}
.page_wrap.masstime .type02 table.table_masstime tr td a{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #044997;
}
.page_wrap.masstime .type02 table.table_masstime tr td a .quick_icon{
	display: none !important;
}
.page_wrap.masstime .type02 table.table_masstime tr:first-of-type td a i.quick_icon{
	display: flex;
	align-items: center;
	padding-top: 1px;
}
.page_wrap.masstime .type02 .table_title .en{
    color: #7f7f7f;
    font-size: 15px;
    font-weight: 400;
    margin-top: 2px;
    margin-bottom: 6px;
	letter-spacing: -0.01em;
}
.page_wrap.masstime .type02 .table_title .link{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #044997;
	font-size: 15px;
	letter-spacing: -0.01em;
}
.page_wrap.masstime .type02 table.table_masstime td ul li{
	text-align: left;
}
.page_wrap.masstime .type02 table.table_masstime td .dl_wrap{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.page_wrap.masstime .type02 table.table_masstime td .dl_wrap dl{
	display: flex;
	align-items: center;
}
.page_wrap.masstime .type02 table.table_masstime td .dl_wrap dt{

}
.page_wrap.masstime .type02 table.table_masstime td .dl_wrap dd{

}

/* =========================================================
   [통합] 서브 공통 레이아웃(figma-sub) 흡수 (구 figma-sub.css → 이 파일로 통합)
   ========================================================= */
/* =========================================================
   마산교구 서브페이지 공통 레이아웃 - Figma 디자인
   (figma-sub.css) — 흰 헤더 + 파란 서브네비 + 브레드크럼 + 탭 + 본문
   ─────────────────────────────────────────────────────────
   목차
   01. 컨테이너 변수 / 페이지 배경
   02. 흰 헤더 (.msd-subhead)
   03. 파란 서브네비 2depth (.msd-subnav) + 브레드크럼 (.msd-crumb)
   04. 페이지헤드: 제목 + 액션 (.msd-pagehead)
   05. 3depth 탭 = PC 가로탭 / 모바일 드롭다운 (.msd-subtabs)
   06. 본문 래퍼 (.msd-subbody)
   07. 반응형 (≤1024 / ≤767)
   (교구>교구장 .msd-diocese 계열은 pages/sub/diocese.css 로 분리)
   ========================================================= */

/* ===== 01. 페이지 배경 (변수 :root는 common/layout.css) ===== */
.msd-sub { background: #fff; min-height: 100dvh; display: flex; flex-direction: column; } /* body 기본 배경이 비치지 않도록 + 최소 화면높이 + 스티키 푸터(flex column) */

/* ===== 02. 흰 배경 고정 헤더 (.msd-subhead) — 반응형: 1023·767 ===== */
.msd-subhead {
    /* sticky: 문서 흐름을 유지한 채(레이아웃 점프 없음) 스크롤 시작과 동시에 상단 고정.
       .msd-subnav(다음 형제)는 이 규칙의 영향을 받지 않아 그대로 흘러가며, 불투명 배경 +
       z-index로 위를 덮는 sticky 서브헤더 아래로 자연스럽게 가려진다. 그림자는 추가하지 않음
       (이미 border-bottom로 구분되고 있어 별도 "고정됨" 감지용 JS 없이 충분). */
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 103px;   /* ⚠ 2026-08-11: 누락돼있던 base 높이 추가 — 없으면 레거시 `header{height:100px}`
                        (구형 .layout_max 헤더용 태그 셀렉터, 이 파일 726행)가 그대로 새어들어와
                        데스크탑(≥1024)에서 배경(100)이 내용(__inner 103)보다 작아지는 문제가 있었음.
                        ≤1023/≤767 오버라이드는 이미 있었는데 base만 빠져 있던 케이스. */
    transition: height 0.3s ease, opacity 0.3s ease;
}
/* 서브페이지 전용: 스크롤을 내려 문서 30% 지점을 지나면 헤더가 그 자리에서 투명하게 숨고,
   스크롤을 올리면 즉시 다시 나타난다(js: common.js). 위치는 그대로(sticky) 두고 opacity만
   움직이므로 슬라이드 없이 페이드만 일어난다 — pointer-events도 같이 꺼서 숨은 동안 클릭 안 되게. */
.msd-subhead.is-hidden {
    opacity: 0;
    pointer-events: none;
}
@media (max-width: 1023px) { .msd-subhead { height: 75px; } }
@media (max-width: 767px)  { .msd-subhead { height: 60px; } }   /* allmenu 바(≤767 60)·시안 정합 */
.msd-subhead.is-scrolled { height: 70px; }   /* 메인(.msd-header.is-scrolled)과 동일 축소 비율 */
.msd-subhead__inner {
    width: var(--msd-cont);
    max-width: calc(100% - var(--msd-gutter));
    margin: 0 auto;
    height: 103px;   /* 시안 203-261: 서브 상단 바 103 (allmenu 바·2차60과 합 163) */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: height 0.3s ease;
}
@media (max-width: 1023px) { .msd-subhead__inner { height: 75px; } }
/* 상단 헤더 좌우 여백: 1520↑=한쪽 40px → 1024=20px 로 부드럽게 연속 축소(≤1023은 공통 gutter 40/30) (2026-11-10, 사용자 지정) */
@media (min-width: 1024px) { .msd-subhead__inner { max-width: calc(100% - clamp(40px, calc(8.06vw - 42.6px), 80px)); } }
@media (max-width: 767px)  { .msd-subhead__inner { height: 60px; } }
.msd-subhead.is-scrolled .msd-subhead__inner { height: 70px; }
.msd-subhead__logo { margin: 0; line-height: 0; }
.msd-subhead__logo img { height: 57px; width: auto; display: block; transition: height 0.3s ease; }
.msd-subhead.is-scrolled .msd-subhead__logo img { height: 39px; }   /* 57 × (70÷103) ≈ 39, 메인과 동일 */
@media (max-width: 1023px) { .msd-subhead__logo img { height: 45px; } }
@media (max-width: 767px)  { .msd-subhead__logo img { height: 39px; } }
.msd-subhead .msd-gnb a { color: var(--color-neutral-900); }
/* 현재 1depth 활성: 녹색 ExtraBold (Figma 서브 헤더 TOP-01 기준) */
.msd-subhead .msd-gnb a.is-active { font-weight: 800; color: var(--color-green-500); }
/* ⚠ 2026-08-19: 08-11엔 "메인 헤더는 900에서 gnb가 숨는다"는 잘못된 전제로 서브를 900에 맞췄으나,
   실제 메인(main/layout.css)의 gnb 숨김 트리거는 1023 — 재조사로 확정, 1023으로 재통일.
   서브페이지 표준 분기점(subhead 높이·subtabs·pagehead 전부 1023)과도 일치. gnb·mega가 같은
   트리거(1023)여야 gnb가 보이는 동안 mega 호버도 같이 살아있음(gnb만 보이고 mega는 죽어있으면
   호버해도 2차메뉴가 안 열리는 상태가 됨). */
@media (max-width: 1023px) { .msd-subhead .msd-gnb { display: none; } } /* 1023 아래: 서브 gnb 숨김(햄버거 전환) — 메인과 동일 트리거 */
@media (max-width: 1023px) { .msd-subhead .msd-gnb__mega { display: none; } } /* 1차메뉴가 숨으면 그 호버로 열리는 2차메뉴도 같이 숨김 */
/* 유틸 간격 5는 공통 .msd-header__util이 담당(2026-08-11 승격, 2026-08-19 900→1023 재통일, 메인·서브 동일) */
/* 서브헤더는 색상만 오버라이드 — 사이즈/반응형/숨김은 공통 .msd-btn-login이 담당 */
.msd-subhead .msd-btn-login { border: 2px solid var(--color-brand); color: var(--color-brand); transition: background 0.2s, color 0.2s; }
.msd-subhead .msd-btn-login:hover { background: var(--color-brand); color: #fff; }
/* 사이즈/반응형은 공통 .msd-btn-menu가 담당(2026-08-11 승격) — 서브헤더는 색상만 오버라이드 */
.msd-subhead .msd-btn-menu { background: var(--color-brand); }
.msd-subhead .msd-btn-menu img { filter: brightness(0) invert(1); }

/* ===== 03. 파란 서브네비 2depth (.msd-subnav) + 브레드크럼 — 반응형: 1023·767 ===== */
.msd-subnav {
    background: var(--color-brand);
    height: 50px; /* 시안 297:47: 파란 2뎁스바 60 − 10 */
    position: relative; /* 자식 .msd-crumb 절대배치 기준 */
}
/* 2차메뉴 없는 1차메뉴(성지·사적지 등) 호버 중엔 탭 링크만 잠깐 숨김 — .msd-gnb__mega가 닫히면서
   그 밑에 있던 이 상시 2뎁스 탭이 그대로 드러나면, "지금 페이지"와 무관한 카테고리가
   호버 중인 항목의 2차메뉴처럼 보여 혼동을 준다. common.js가 leaf 항목 호버 시 토글.
   ⚠ .msd-subnav(부모)가 아니라 .msd-subnav__inner에 스코프 — .msd-crumb가 .msd-subnav의
   자식이라, 부모에 opacity:0을 주면 자식에서 override 불가해 크럼까지 같이 사라지는 버그가
   있었음(2026-08-12 발견·수정). 파란 배경바 자체는 유지되고 탭 텍스트만 사라짐(허용 가능한 시각). */
/* 위로 스크롤 중(맨 위 아님)에는 파란 바 숨김 — 헤더 밑으로 걸쳐 보이는 현상 방지(common.js, 2026-11-10). 크럼은 그대로 */
/* 1depth 헤더(sticky, z-index 50) 밑에서 위로 접혀 들어가고(숨김) 아래로 내려오며(노출) 나타남.
   크럼은 바 아래 흰 영역에 있어 부모 이동을 translate로 상쇄해 제자리 유지. ≥1024에서만(그 아래는 바 없음/≤767은 크럼이 바 안) */
@media (min-width: 1024px) {
    .msd-subnav { transition: transform .35s ease; }
    .msd-subnav > .msd-crumb { transition: translate .35s ease; }
    .msd-subnav.is-away { transform: translateY(-100%); }
    .msd-subnav.is-away > .msd-crumb { translate: 0 50px; }   /* 50 = .msd-subnav 높이 */
    .msd-subnav.is-away .msd-subnav__inner { pointer-events: none; }
}
.msd-subnav__inner.is-hover-hidden {
    opacity: 0;
    pointer-events: none;
}
.msd-subnav__inner {
    transition: opacity 0.18s ease;
    width: var(--msd-cont);
    max-width: calc(100% - var(--msd-gutter));
    margin: 0 auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 55px;
}
/* ≤1023~767: GNB 숨는 구간과 정렬(2026-08-19: 1199→1023, gnb 트리거와 재통일 — 이전엔 1199에서
   파란바가 먼저 사라지고 gnb는 900까지 남아있어 그 사이 구간에서 1차메뉴만 덩그러니 보이는
   불일치가 있었음) — 바 배경 제거 + 2차 링크 숨김 + height:0으로 실제 공간 collapse
   (배경만 지우면 base height:60px가 남아 빈 박스가 자리를 차지해 subhead~크럼 간격이 벌어짐 → 2026-08-11 수정).
   브레드크럼은 그대로 노출(파란바 collapse로 subhead 바로 아래 + margin-top 40 위치, 배경 없음).
   ※ base .msd-subnav__inner{display:flex} 규칙보다 반드시 뒤에 와야
   같은 명시도에서 캐스케이드 순서로 이 display:none이 이긴다. */
@media (max-width: 1023px) {
    .msd-subnav { background: none; height: 0; }
    .msd-subnav__inner { display: none; }
}
/* 폰트·박스모델·점은 .msd-2depth-link 공용 클래스가 담당(마크업에 함께 부여) —
   여기선 subnav 전용 hover·active 글자색만 얹는다. */
/* 활성(현재 페이지)만 노랑 글자 (Figma --top-2depth-hover #FFD900) — 호버는 점만, 글자색 변경 없음.
   .msd-subnav·.msd-gnb__mega-group 둘 다 .msd-2depth-link를 쓰므로 여기 한 곳에서 공유. */
.msd-2depth-link.is-active {
    color: var(--color-yellow-400);
    font-weight: 700;
}
/* 브레드크럼: DOM상 subnav 자식이지만, 데스크탑은 파란바 '아래'(흰 영역)로 절대배치 → pagehead 위치처럼 보이게 */
.msd-subnav > .msd-crumb {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: var(--msd-cont);
    max-width: calc(100% - var(--msd-gutter));
    margin-top: 40px; /* 시안 297:47: 파란바 아래 → 크럼 40px */
}
/* ≤1023: 시안 지정값 — 크럼 위(subhead 하단)와 20px, 크럼 아래(타이틀)와 10px. 2026-08-11 확정 */
@media (max-width: 1023px) {
    .msd-subnav > .msd-crumb { margin-top: 20px; }
}
/* ≤767: 바 배경 다시 등장(링크는 계속 숨김), 브레드크럼이 바 위(안)로 흰 글자 —
   ⚠ 2026-08-11: 임계값을 1023→767로 수정(1023~768 구간은 위 1023 블록 collapse 상태 유지가 맞음,
   기존엔 1024에서 바로 병합돼 버려 크럼이 시안보다 훨씬 이른 시점에 파란바 위로 올라왔음).
   위 1023 블록(2026-08-19: 1199→1023 재통일)보다 뒤에 와야 이 구간에서 배경이 "없음→다시 보임"으로 정상적으로 덮어쓴다. */
@media (max-width: 767px) {
    .msd-subnav { background: var(--color-brand); height: 50px; }
    .msd-subnav > .msd-crumb {
        position: static; transform: none;
        width: var(--msd-cont); max-width: calc(100% - var(--msd-gutter)); margin: 0 auto;
        height: 50px; color: #fff; font-size: 16px; /* 최소 16px (2026-10-07 사용자 지정, 기존 14px) */
    }
    /* 파란 바 홈 아이콘·크럼 간격: 화면 비례(767→375: 아이콘 27→22, 간격 10→7) */
    .msd-subnav > .msd-crumb { gap: clamp(7px, calc(.765vw + 4.13px), 10px); }
    .msd-subnav > .msd-crumb .home { width: 18px; height: 18px; }   /* 파란 바(≤767) 안 홈 아이콘 18px (2026-11-10, 사용자 지정) */
    .msd-subnav > .msd-crumb .home img { filter: brightness(0) invert(1); }
    .msd-subnav > .msd-crumb .sep { background: rgba(255,255,255,.6); }
    /* 푸른 바 크럼의 마지막(현재 페이지) 항목 — 시안 866:1763: 노란색(--top-2depth-hover #ffd900) + Bold, 나머지는 흰색 Medium (2026-10-20) */
    .msd-subnav > .msd-crumb > span:not(.sep) { font-weight: 500; }
    .msd-subnav > .msd-crumb > span:not(.sep):last-of-type { color: #ffd900; font-weight: 700; }
}

/* 서브네비(2depth) 없는 페이지(no_side)용 변형: 파란 배경만 제거, 위치·크럼 계산은 위 규칙 그대로 재사용.
   배경 복귀 시점도 위와 동일하게 ≤767로 통일(2026-08-11, 위 병합 브레이크포인트 수정과 함께). */
.msd-subnav.is-plain { background: none; }
@media (max-width: 767px) {
    .msd-subnav.is-plain { background: var(--color-brand); }
}

/* ===== 04. 페이지헤드: 제목 + 액션 (.msd-pagehead) — 반응형: 1023·767 ===== */
.msd-pagehead {
    width: var(--msd-cont);
    max-width: calc(100% - var(--msd-gutter));
    margin: 0 auto;
    padding: 80px 0 0; /* 사용자 지정(2026-09-03) — 기존 85px(시안 297:47)에서 80px로 조정 */
    position: relative;
}
/* ≤1023: 시안 지정값 — 크럼 margin-top 20px(§03) + 크럼 높이 27px + 크럼~타이틀 10px = 57px.
   2026-08-11: 기존 52px(구 설계, ≤1023부터 크럼이 파란바에 병합되던 시절 값)를 시안 실측치로 교체. */
@media (max-width: 1023px) { .msd-pagehead { padding-top: 57px; } }
@media (max-width: 767px)  { .msd-pagehead { display: none; } } /* 시안 모바일엔 제목·액션 없음 */
.msd-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500; /* 시안: 크럼 글자 Medium */
    font-size: 18px;
    color: var(--color-neutral-900);
    letter-spacing: -0.8px;
}
.msd-crumb .home { display: inline-flex; width: 22px; height: 22px; }
.msd-crumb .home img { width: 100%; height: 100%; }
.msd-crumb .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--color-neutral-900); } /* 시안 297:47: 구분점 #222 */
/* 3depth 크럼: ≤767(파란바 안)에서만 표시. 한 줄 유지 — 길면 마지막 항목부터 말줄임(2026-10-07 사용자 지정) */
.msd-crumb .crumb-3rd { display: none; }
@media (max-width: 767px) {
    .msd-crumb { flex-wrap: nowrap; min-width: 0; }
    .msd-crumb .crumb-3rd { display: block; }
    .msd-crumb .sep { flex: 0 0 auto; }
    .msd-crumb .home { flex: 0 0 auto; }
    .msd-crumb > span:not(.sep) { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* 공유 버튼(.msd-crumb__share) — ≤767에서 제목·액션(.msd-pagehead)이 숨겨지고 파란바 안에 크럼이 들어올 때, 파란바 우측 끝에 노출(2026-10-20 사용자 지정).
   데스크탑 공유 버튼(.msd-pagehead__actions .share)과 같은 모양(radius 10·흰 아이콘), 배경만 #1870c2, 크기는 화면 비례(767=34 → 375=30) */
.msd-crumb__share { display: none; }
@media (max-width: 767px) {
    .msd-crumb__share {
        display: flex; align-items: center; justify-content: center; flex: 0 0 auto;

        width: clamp(30px, calc(1.0204vw + 26.17px), 34px); height: clamp(30px, calc(1.0204vw + 26.17px), 34px);
        padding: 0; border: 0; border-radius: 10px; cursor: pointer;
        background: #1870c2;   /* 푸른 바 위 공유 버튼 배경(2026-10-20 사용자 지정) */
    }
    .msd-crumb__share img { width: 20px; height: 20px;   /* 파란 바 안 공유 아이콘 20px 고정 (2026-11-10, 사용자 지정) */ }
}
/* SNS 공유 팝업(.sns_btn_wrap_ul) — 춘천교구 공유 버튼과 같은 방식(공유 버튼 클릭 시 아래에 SNS 아이콘 4개 팝업, subpage.js가 .active 토글) (2026-10-20)
   데스크탑: .msd-pagehead__actions(공유 버튼 옆) 기준 / ≤767: 파란바 공유 버튼(.msd-crumb__share-wrap) 기준 */
.sns_btn_wrap_ul {
    display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 80;   /* 퀵메뉴(.msd-quick, z-index 90)가 항상 위 — 팝업은 그 아래 */
    margin: 0; padding: clamp(8px, calc(0.1878vw + 7.3px), 10px) clamp(10px, calc(0.3756vw + 8.59px), 14px); list-style: none; gap: clamp(6px, calc(0.3756vw + 4.59px), 10px);
    background: #fff; border: 1px solid #e5e5e5; border-radius: clamp(8px, calc(0.1878vw + 7.3px), 10px);
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.05);
}
.sns_btn_wrap_ul.active { display: flex; }
/* 말풍선 꼬리 — 춘천교구 공유 팝업처럼 버튼 쪽(위)을 가리키는 작은 마름모(테두리용 ::before + 흰색으로 덮는 ::after) */
.sns_btn_wrap_ul::before,
.sns_btn_wrap_ul::after {
    content: ''; position: absolute; right: 20px; width: 8px; height: 8px; transform: rotate(45deg); background: #fff;   /* 20 = 공유 버튼(50px) 가운데(25) − 마름모 반폭(5: 8px + 테두리 1px×2) */
}
.sns_btn_wrap_ul::before { top: -6px; border: 1px solid #e5e5e5; }
.sns_btn_wrap_ul::after { top: -4px; border: 1px solid #fff; }
.msd-crumb__share-wrap .sns_btn_wrap_ul::before,
.msd-crumb__share-wrap .sns_btn_wrap_ul::after { right: calc(clamp(30px, calc(1.0204vw + 26.17px), 34px) / 2 - 5px); }   /* 파란바 공유 버튼(30~34px) 가운데 */
@media (max-width: 1023px) {
    .msd-pagehead__actions .sns_btn_wrap_ul::before,
    .msd-pagehead__actions .sns_btn_wrap_ul::after { right: 15px; }   /* ≤1023은 공유 버튼이 40px(가운데 20) */
}
.sns_btn_wrap_ul li { margin: 0; padding: 0; list-style: none; }
.sns_btn_wrap_ul button,
.msd-pagehead__actions .sns_btn_wrap_ul button {
    display: block; width: clamp(26px, calc(0.5634vw + 23.89px), 32px); height: clamp(26px, calc(0.5634vw + 23.89px), 32px); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer;
}
.sns_btn_wrap_ul button img { display: block; width: 100%; height: 100%; }
.msd-crumb__share-wrap { display: none; position: relative; flex: 0 0 auto; margin-left: auto; }
.msd-crumb__share-wrap .sns_btn_wrap_ul { top: calc(100% + 12px); }
@media (max-width: 767px) {
    .msd-crumb__share-wrap { display: block; }
}
.msd-pagetit {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 55px;
    letter-spacing: -0.016em;
    color: #111;
    line-height: 1;
    margin: 0;
}
@media (max-width: 1023px) { .msd-pagetit { font-size: 40px; line-height: 1; } }
.msd-pagehead__actions {
    position: absolute;
    right: 0; bottom: 0;
    display: flex;
    gap: 6px;
}
.msd-pagehead__actions button {
    width: 50px; height: 50px;
    border: 0; border-radius: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
@media (max-width: 1023px) { .msd-pagehead__actions button { width: 40px; height: 40px; border-radius: 10px; } } /* 시안·유틸버튼 radius 통일 */
/* Figma: 좌=주황(인쇄) · 우=회색(공유) */
.msd-pagehead__actions .print { background: var(--color-orange-500); }
.msd-pagehead__actions .share { background: var(--color-neutral-400); }
.msd-pagehead__actions svg { width: 26px; height: 26px; }
@media (max-width: 1023px) { .msd-pagehead__actions svg { width: 22px; height: 22px; } }
/* 공유 아이콘(인라인 SVG): 최대 28 · 최소 22 — 1440↑=28, 비례 축소 후 1131↓ 22. 선 굵기는 인쇄 아이콘과 같은 실제 픽셀 굵기(1.6/24 × 26px=1.73px, ≤1023은 22px라 1.47px)로 고정(non-scaling-stroke) (2026-11-10, 사용자 지정) */
.msd-pagehead__actions .share svg { width: clamp(22px, 1.9444vw, 28px); height: clamp(22px, 1.9444vw, 28px); }
.msd-pagehead__actions .share svg path { vector-effect: non-scaling-stroke; stroke-width: 1.7333px; }
@media (max-width: 1023px) { .msd-pagehead__actions .share svg path { stroke-width: 1.4667px; } }

/* ===== 05. 3depth 탭 = PC 가로탭 / 태블릿·모바일 드롭다운 (.msd-subtabs) — 반응형: 1023 ===== */
.msd-subtabs {
    width: var(--msd-cont);
    max-width: calc(100% - var(--msd-gutter));
    margin: 55px auto 0;   /* 사용자 지정(2026-09-03) — 기존 70px에서 55px로 조정 */
    position: relative;
}
@media (max-width: 1023px) { .msd-subtabs { margin-top: 20px; } } /* 서브네비 하단과 20 */
.msd-subtabs__toggle { display: none; } /* PC: 숨김 */
@media (max-width: 1023px) {
    .msd-subtabs__toggle {
        display: flex; align-items: center; justify-content: space-between;
        width: 100%; height: 50px; padding: 0 16px;
        background: #fff; border: 1px solid var(--color-neutral-300);
        font-family: 'Pretendard', sans-serif; font-weight: 600; font-size: 16px;
        color: #222; cursor: pointer;
    }
    .msd-subtabs.is-open .msd-subtabs__toggle { color: var(--color-brand); font-weight: 700; }   /* 열림: 브랜드색·700 (닫힘=#222·600) */
    .msd-subtabs__toggle .chev { width: 20px; height: 20px; transition: transform .2s; }
    .msd-subtabs.is-open .msd-subtabs__toggle .chev { transform: rotate(180deg); }
}
@media (max-width: 767px) {
    .msd-subtabs__toggle { font-size: 18px; line-height: 20px; height: 44px; }   /* 768 아래 */
}
.msd-subtabs__list {
    display: flex;
    justify-content: center; /* 시안 297:47: 3뎁스 라벨 중앙 그룹 */
    justify-content: safe center; /* 넘칠 때 시작점부터 스크롤 가능(미지원 브라우저는 위 center 유지) */
    /* 1440→~1173 구간 gap 55→15 선형 축소(가로 넘침 최소화). 15px로도 넘치면 overflow-x 가로 스크롤. 1023↓은 드롭다운 */
    gap: clamp(15px, calc(15vw - 161px), 55px);
    overflow-x: auto;
    position: relative;
}
@media (max-width: 1023px) {
    /* 1023: 가로탭 → 드롭다운 */
    .msd-subtabs__list {
        display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
        flex-direction: column; gap: 0; overflow: visible; box-shadow: 0 8px 16px rgba(0,0,0,.12); /* gap:0 = 데스크탑 gap 무효화 */
    }
    .msd-subtabs.is-open .msd-subtabs__list {
        display: flex;
        background: #fff;
    }
}
/* 베이스라인: 스크롤되는 __list가 아니라 부모(.msd-subtabs)에 둠 → 100vw가 가로 스크롤 유발하지 않음 */
.msd-subtabs::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background: #F3F3F3; /* 시안 297:47: 3뎁스 베이스라인 연회색 */
}
@media (max-width: 1023px) { .msd-subtabs::after { display: none; } }
.msd-subtabs__list a {
    flex: none;          /* 스크롤 구간에서 라벨이 찌그러지지 않도록 고정 */
    padding: 0 5px;      /* 밑줄 폭 = 라벨 + 좌우 5 (시안 라벨 w90 / 밑줄 w100) */
    height: 46px;        /* 시안: 라벨 y352 ~ 베이스라인 y398 */
    display: flex; align-items: flex-start; justify-content: center;
    white-space: nowrap;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    font-size: 26px;
    line-height: 30px;
    color: var(--color-neutral-500); /* #444 비활성 */
    text-decoration: none;
    position: relative;
}
/* 반응형: 1199 — 1200 미만 라벨 축소(가로 넘침 완화). font-size만 지정 → 다른 반응형 무영향.
   1023↓ 드롭다운(15px)은 바로 아래 @media가 소스 순서상 이김(둘 다 매칭 시 나중 규칙 우선). */
@media (max-width: 1199px) {
    .msd-subtabs__list a { font-size: 24px; }
}
@media (max-width: 1023px) {
    .msd-subtabs__list a {
        flex: none; height: 48px; align-items: center; justify-content: flex-start; padding: 0 16px;
        font-size: 15px; margin-left: 0; border: 1px solid #e4e4e4; border-top: 0;
    }
}
.msd-subtabs__list a.is-active {
    color: var(--color-brand);       /* #0455A1 활성 */
    font-weight: 800;                /* ExtraBold */
}
@media (max-width: 1023px) {
    .msd-subtabs__list a.is-active {
        background: #f5f5f5;
        background: oklch(99.015% 0.00011 271.152);
        border: 1px solid #e4e4e4;
        border-top: 0;
    }
}
.msd-subtabs__list a.is-active::after { /* 4px 밑줄 (시안 y394) */
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: var(--color-brand);
}
@media (max-width: 1023px) { .msd-subtabs__list a.is-active::after { display: none; } } /* 드롭다운: 밑줄 제거 */
/* 시안 297:47: 3뎁스 베이스라인 아래 옅은 페이드 밴드(#FAFAFA→투명). 탭 바로 아래 앵커 */
.msd-subtabs::before {
    content: "";
    position: absolute;
    left: 50%; top: 0;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #FAFAFA 100%);
    pointer-events: none;
}
@media (max-width: 1023px) { .msd-subtabs::before { display: none; } } /* 드롭다운: 페이드밴드 제거 */

/* ===== 06. 본문 래퍼 (.msd-subbody) — 반응형: 1023 ===== */
.msd-subbody {
    position: relative;   /* 폭·중앙정렬은 .msd-cont가 담당 */
    /* 사용자 지정(2026-09-28) — 탭 유무와 무관하게 "카테고리 위 여백" 공통 최대 55px로 통일
       (3뎁스 탭이 있는 페이지의 기존 80px 상한도 55px로 축소, 767=15·1440=55 연속 clamp) */
    padding-top: clamp(15px, calc(5.944vw - 30.59px), 55px); /* 767=15px, 1440=55px */
    padding-bottom: 150px; /* 사용자 지정(2026-09-03) — 탭 베이스라인 → 본문 100→80 */
}
@media (max-width: 1023px) {
    .msd-subbody { padding-bottom: 80px; } /* 모바일 하단 80 (상단은 위 clamp가 연속 처리) */
}
/* 태블릿(768~) 메뉴 타이틀 ↔ 카테고리 간격 +10px (2026-11-10 사용자 지정): 768=25 → 1306↑=55, 767 이하는 위 값(15) 유지 */
@media (min-width: 768px) {
    .msd-subbody { padding-top: clamp(25px, calc(5.944vw - 20.59px), 55px); }
}


/* ===== 전체 서브페이지 공통 콘텐츠 래퍼 ===== */
/* .msd-content {  } */

/* ===== 새로고침 버튼 (.msd-cal-refresh) 공용 — 교구일정에서 시작, 교구사제와 공용 (2026-07-28 공용화) =====
   페이지별 위치 정렬(margin-top 등)은 각 page CSS에서 이 클래스에 보정만 추가(예: calendar/layout.css). */
.msd-cal-refresh {
    width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; cursor: pointer;
    background: var(--color-primary-25); border: 1px solid #b5c0d7;
    display: inline-flex; align-items: center; justify-content: center;
}
.msd-cal-refresh img { width: 18px; height: 18px; }

/* ===== 페이지네이션 공용 (.msd-page) — 전역 공용 (2026-07-28, 샌드박스 공용블록 이관) =====
   시안: 흰 사각 버튼(radius ~5) + 활성 주황(--color-point). 화살표는 .arrow.
   마크업 2종 지원: (a) 정적 a/span (b) sitePaging ul/li/a+img (마산 서버출력).
   교구사제(priest) 등 신규 카드형에서 사용. (기존 게시판은 구형 .bbsNavi 유지) */
.msd-page { display: flex; justify-content: center; align-items: center; gap: clamp(3.56px, 0.3472vw, 5px); margin-top: clamp(28.44px, 2.7778vw, 40px); }
.msd-page a, .msd-page span {
    width: clamp(26.31px, 2.5694vw, 37px); height: clamp(26.31px, 2.5694vw, 37px);
    display: flex; align-items: center; justify-content: center;
    border-radius: clamp(3.56px, 0.3472vw, 5px); border: 1px solid rgba(0,0,0,.1);
    background: var(--color-white); color: var(--color-neutral-500); text-decoration: none;
    font-family: 'Roboto', sans-serif; font-size: clamp(16px, 1.25vw, 18px);
}
.msd-page .is-active { background: var(--color-point); border-color: var(--color-point); color: var(--color-white); font-weight: 600; }
.msd-page .arrow { border-color: rgba(0,0,0,.3); }
.msd-page .arrow svg { width: clamp(14.93px, 1.4583vw, 21px); height: clamp(14.93px, 1.4583vw, 21px); }
/* sitePaging(ul/li/a + img) 출력에도 동일 적용 — 마산 list 페이지네이션 */
.msd-page ul { display: flex; justify-content: center; align-items: center; gap: clamp(3.56px, 0.3472vw, 5px); list-style: none; padding: 0; margin: 0; }
.msd-page li a {
    width: clamp(26.31px, 2.5694vw, 37px); height: clamp(26.31px, 2.5694vw, 37px);
    display: flex; align-items: center; justify-content: center;
    border-radius: clamp(3.56px, 0.3472vw, 5px); border: 1px solid rgba(0,0,0,.1);
    background: var(--color-white); color: var(--color-neutral-500); text-decoration: none;
    font-family: 'Roboto', sans-serif; font-size: clamp(16px, 1.25vw, 18px);
}
.msd-page li.active a { background: var(--color-point); border-color: var(--color-point); color: var(--color-white); font-weight: 600; }
.msd-page li.btnFirst a, .msd-page li.btnPrev a, .msd-page li.btnNext a, .msd-page li.btnEnd a { border-color: rgba(0,0,0,.3); padding: clamp(4.98px, 0.4861vw, 7px); } /* 화살표 셀: 셰브론 ~clamp(14.93px, 1.4583vw, 21px) */
.msd-page li a img { width: 100%; height: 100%; object-fit: contain; } /* 시안 셰브론(img 100%) */
/* 시안: 화살표 묶음 ↔ 숫자 묶음 사이 간격 크게 (그룹 내 5px / 그룹 간 20px = gap5 + margin15) */
.msd-page .arrow + :not(.arrow), .msd-page :not(.arrow) + .arrow { margin-left: clamp(10.67px, 1.0417vw, 15px); }
.msd-page li.btnPrev + li, .msd-page li.btnNext { margin-left: clamp(10.67px, 1.0417vw, 15px); }
/* 첫/마지막 페이지: 처음·이전 / 다음·끝 버튼 비활성 표기 (반응 없음 + 선택불가 커서) */
.msd-page li.disabled { cursor: not-allowed; }
.msd-page .is-disabled, .msd-page li.disabled a { opacity: .35; cursor: not-allowed; pointer-events: none; }
/* 숫자 텍스트 선택(I-beam) 방지 + 현재 페이지는 클릭 대상 아님 → 기본 커서 */
.msd-page a, .msd-page span, .msd-page li a { user-select: none; }
.msd-page .is-active, .msd-page li.active a { cursor: default; }

/* .msd-diocese(교구 > 교구장) 계열은 pages/sub/diocese.css 로 분리 — 섹션별 링크로 로드 */

/* =========================================================
   전체메뉴 오버레이 (.msd-allmenu) — 시안 1404-1370 / 1410-628
   데스크탑(≥1440) 5열(교구 2fr·2단 내부) / 노트북(1024~1439) 3열 / 태블릿↓(≤1023) 세로 아코디언
   배경=브랜드블루(#0455a1), hover=#ffd900. .msd-btn-menu로 open(common.js)
   ========================================================= */
.msd-allmenu { position: fixed; inset: 0; z-index: 2000; background: var(--color-brand); color: #fff; overflow-y: auto; overscroll-behavior: contain; }
.msd-allmenu[hidden] { display: none; }
body.msd-allmenu-open { overflow: hidden; }

/* 전체(.msd-allmenu)가 스크롤 · 상단바는 position:fixed로 뷰포트 고정(콘텐츠가 바 뒤로 스크롤) */
.msd-allmenu__inner { min-height: 100%; max-width: 1920px; margin: 0 auto; padding: 0; box-sizing: border-box; }   /* full-bleed */

/* 상단바: position:fixed 고정 · 가로 전체(≤1920 중앙) · 불투명 배경으로 스크롤 콘텐츠 가림 · 높이 명시 */
.msd-allmenu__bar { position: fixed; top: 0; left: 0; right: 0; z-index: 2; max-width: 1920px; margin: 0 auto; background: var(--color-brand); display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 103px; padding: 0 35px; box-sizing: border-box; }
.msd-allmenu__logo { display: inline-flex; }
.msd-allmenu__logo img { height: clamp(40px, 3.9vw, 57px); width: auto; display: block; }
@media (max-width: 419px) { .msd-allmenu__logo img { display: none; } }   /* 419 이하: 로고 숨김 */
.msd-allmenu__util { display: flex; align-items: center; gap: 10px; }
/* 전체메뉴 로그인/로그아웃/회원정보 = 헤더 .msd-btn-login/.msd-btn-auth 재사용 (흰색 base 그대로, 색만 차이). 반응형은 공통 규칙이 담당, 아래는 전체메뉴 예외(≤419 가시성)만 보정 */
@media (max-width: 419px) { .msd-allmenu__util .msd-btn-login { display: flex; } } /* 헤더는 ≤419 숨김이나 전체메뉴는 항시 노출 */
.msd-allmenu__close { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 16px; background: #fff; color: #292929; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.msd-allmenu__close svg { width: 22px; height: 22px; display: block; }

/* 네비 — 데스크탑 5열(교구 2fr) + 컬럼 구분선 */
.msd-allmenu__nav { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; padding: clamp(148px, calc(87px + 6vw), 195px) clamp(59px, calc(35px + 6.4vw), 159px) 60px; box-sizing: border-box; }   /* 상단 padding = 고정 바(117) 아래로 콘텐츠 내림 */   /* 좌우=이전 inner35+nav124(=최대159) · 하단=이전 inner60 */
.msd-allmenu__cat { min-width: 0; }
.msd-allmenu__cat:not(:first-child) { border-left: 1px solid rgba(255,255,255,.22); padding-left: clamp(24px, 2.6vw, 54px); }
.msd-allmenu__cat:not(:last-child) { padding-right: clamp(24px, 2.6vw, 54px); }

/* 대분류 제목 */
.msd-allmenu__cat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: clamp(24px, 1.94vw, 30px); line-height: 1; }
.msd-allmenu__cat-head.is-active { color: #ffd900; }   /* 현재 페이지 표시(노랑) — hover 아님 */
.msd-allmenu__cat-body { margin-top: clamp(28px, 2.6vw, 46px); }

/* 교구 = 데스크탑 2단 내부배치 */
.msd-allmenu__cat--wide .msd-allmenu__cat-body { column-count: 2; column-gap: clamp(20px, 2vw, 40px); }
.msd-allmenu__cat--wide .msd-allmenu__grp { break-inside: avoid; }

/* 2depth 그룹 헤더 + 3depth 리스트 */
.msd-allmenu__grp { margin-bottom: clamp(24.89px, 2.43vw, 35px); }   /* 그룹 아래(3차 리스트 아래) 35 · 반응형 */
.msd-allmenu__grp:last-child { margin-bottom: 0; }
.msd-allmenu__grp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; text-decoration: none; font-weight: 500; font-size: clamp(20px, 1.597vw, 23px); line-height: 165%; }   /* 데스크탑 23px, 반응형 축소 */
.msd-allmenu__grp-head.is-active { color: #ffd900; }   /* 현재 페이지 표시(노랑) */
.msd-allmenu__sub { list-style: none; margin: 10px 0 0; padding: 0; }   /* 3차 리스트 위 10 */
.msd-allmenu__sub li { margin-bottom: 15px; }   /* 3차 사이 15 */
.msd-allmenu__sub li:last-child { margin-bottom: 0; }
.msd-allmenu__sub a { display: flex; align-items: center; gap: 8px; color: #C5E3FF; text-decoration: none; font-weight: 400; font-size: 18px; line-height: 18px; }
.msd-allmenu__sub a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; margin-bottom: -0.07em; }   /* 리스트 마크: 글자색(currentColor)과 동일 · 6px · 원을 글자 기준보다 살짝 내려 시각 중앙 정렬 */
.msd-allmenu__sub a.is-active { color: #ffd900; }   /* 현재 페이지 표시(노랑) — 불릿도 currentColor 따라 노랑 */
/* 호버 노랑(2026-11-11): 활성 표시와 같은 노랑 — 가장 깊은(말단) 메뉴에만. 하위 메뉴가 있는 1·2차 타이틀은 호버 효과 없음(펼침/접힘 토글 전용).
   1차 하위 없음(--cat--leaf) → 1차 호버 / 2차 하위 없음(--grp--leaf) → 2차 호버 / 3차는 항상 호버(불릿도 currentColor 따라 노랑) */
.msd-allmenu__cat-head, .msd-allmenu__grp-head, .msd-allmenu__sub a { transition: color .15s ease; }
@media (hover: hover) {
    .msd-allmenu__cat--leaf > .msd-allmenu__cat-head:hover,
    .msd-allmenu__grp--leaf > .msd-allmenu__grp-head:hover,
    .msd-allmenu__sub a:hover { color: var(--color-yellow-400); }
}

/* 토글 아이콘 — 데스크탑/노트북 숨김(아코디언 아님) */
.msd-allmenu__chev, .msd-allmenu__pm { display: none; width: 24px; height: 24px; position: relative; flex: 0 0 auto; }
.msd-allmenu__pm { color: #A4CDF4; }   /* 2차메뉴 ± 아이콘 색(흰색 아님) */
.msd-allmenu__chev::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -6px 0 0 -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s, margin .2s; }
.msd-allmenu__cat.is-open > .msd-allmenu__cat-head .msd-allmenu__chev::before { margin-top: -2px; transform: rotate(225deg); }
.msd-allmenu__pm::before, .msd-allmenu__pm::after { content: ""; position: absolute; background: currentColor; }
.msd-allmenu__pm::before { left: 5px; right: 5px; top: 50%; height: 2px; transform: translateY(-50%); }
.msd-allmenu__pm::after { top: 5px; bottom: 5px; left: 50%; width: 2px; transform: translateX(-50%); transition: opacity .2s; }
.msd-allmenu__grp.is-open .msd-allmenu__pm::after { opacity: 0; }

/* ── (2026-10-20) 3열 구간 삭제: 1200 이상 = 5열, 1199 이하 = 모바일형 아코디언 ── */
/* ── 태블릿↓: 세로 아코디언 (대분류 chevron + 2depth ± 토글) ── */
@media (max-width: 1199px) {
    /* inner full-bleed · 좌우=헤더 gutter/2를 bar·nav가 각자 가짐 · 상단바=서브헤더 동일 배치(열 때 로그인/닫기가 헤더 로그인/메뉴 자리에 겹침) */
    .msd-allmenu__inner { padding: 0; }
    .msd-allmenu__bar { height: 75px; padding: 0 calc(var(--msd-gutter) / 2); }
    .msd-allmenu__logo img { height: 45px; }
    .msd-allmenu__util { gap: 5px; }
    .msd-allmenu__close { width: 35px; height: 35px; border-radius: 10px; }
    .msd-allmenu__nav { display: block; padding: 99px calc(var(--msd-gutter) / 2) max(100px, 30dvh); }   /* 상단=고정 바75 + 간격24 */
    .msd-allmenu__cat { border-left: 0 !important; padding: 0 !important; border-bottom: 1px solid rgba(255,255,255,.22) !important; }   /* 항목 아래 선 → 마지막 항목도 하단선 보유(첫 항목 상단선 없음) */
    .msd-allmenu__cat-head { padding: 17px 0 17px 6px; font-size: 23px; line-height: 130.435%; }
    .msd-allmenu__cat.is-open .msd-allmenu__cat-head { font-weight: 700; }
    .msd-allmenu__chev { display: flex; }
    .msd-allmenu__cat--leaf .msd-allmenu__chev { display: none; }
    .msd-allmenu__cat-body { display: none; margin-top: 0; padding: 0 0 30px 10px; }   /* 1차 아래 좌 10 여백 · 열림 시 하단 30(=20+sub하단10) */
    .msd-allmenu__cat.is-open .msd-allmenu__cat-body { display: block; }
    .msd-allmenu__cat--wide .msd-allmenu__cat-body { column-count: 1; }

    .msd-allmenu__grp { margin-bottom: 5px; }   /* 2차 사이 5 · 구분선 없음 */
    .msd-allmenu__grp-head { padding: 0; font-size: 20px; }   /* 2차 타이틀 위아래 여백 삭제 */
    .msd-allmenu__grp:first-child .msd-allmenu__grp-head { padding-top: 0; }
    .msd-allmenu__grp.is-open .msd-allmenu__grp-head { font-weight: 700; }
    .msd-allmenu__pm { display: flex; }
    .msd-allmenu__grp--leaf .msd-allmenu__pm { display: none; }
    .msd-allmenu__sub { display: none; margin: 0; padding: 10px 5px 15px; }   /* 3차 리스트 여백(상하10·좌우5) */
    .msd-allmenu__sub li { margin-bottom: 10px; }   /* 3차 사이 10 */
    .msd-allmenu__sub a { font-size: 17px; gap: 5px; }   /* 태블릿↓ 불릿-글자 간격 5 */
    .msd-allmenu__sub a::before { width: 4px; height: 4px; }   /* 리스트 마크 4px */
    .msd-allmenu__grp.is-open .msd-allmenu__sub { display: block; }
}
/* ≤767·≤419: 상단바 버튼도 서브헤더 단계값과 동일하게(겹침 유지) */
@media (max-width: 767px) {
    .msd-allmenu__bar { height: 60px; }
    .msd-allmenu__logo img { height: 39px; }
    .msd-allmenu__close { width: 32px; height: 32px; }
    .msd-allmenu__nav { padding-top: 83px; }   /* 고정 바59 + 간격24 */
}

/* =========================================================
   전체메뉴 시안 정합 (2026-10-20) — 시안 1404-1370(데스크탑 1920) / 1410-628(모바일 402)
   데스크탑 값은 1920 기준 px → vw 비례(하한 clamp), 모바일은 402 기준(로그인/닫기 85×40·40×40 r16, 구분선·여백 34 등)
   ========================================================= */
/* 공통(전 구간): 상단바 버튼 — 로그인 85×40, 닫기 40×40, 둥글기 16, 간격 10 */
.msd-allmenu__util { gap: 10px; }
.msd-allmenu .msd-allmenu__util .msd-btn-login { width: 85px; min-width: 85px; height: 40px; padding: 0; border-radius: 16px; }
.msd-allmenu .msd-allmenu__close { width: 40px; height: 40px; border-radius: 16px; }
.msd-allmenu .msd-allmenu__sub a.is-active { font-weight: 600; }   /* 현재 페이지(3depth) 노랑 SemiBold */

/* 데스크탑·노트북(≥1024): 열 제목 35 / 2depth 줄높이 33 / 3depth 점 5 · 간격 7 / 그룹 간격 */
@media (min-width: 1200px) {
    .msd-allmenu__cat-head { font-size: clamp(24px, 1.823vw, 35px); line-height: 1.1429; }   /* 35 / 40 */
    .msd-allmenu__cat-body { margin-top: clamp(20px, 1.5625vw, 30px); }   /* 제목(40) → 첫 그룹 30 */
    .msd-allmenu__grp-head { line-height: 1.4348; padding-left: 5px; }   /* 33 (시안 그룹 안쪽 좌 5) */
    .msd-allmenu__sub { margin-top: clamp(12px, 0.885vw, 17px); padding: 0 5px; }   /* 2depth→점 목록 7+10 */
    .msd-allmenu__sub a { gap: clamp(5px, 0.3646vw, 7px); }
    .msd-allmenu__sub a::before { width: 5px; height: 5px; }
    .msd-allmenu__grp { margin-bottom: clamp(24.89px, 2.448vw, 47px); }   /* 3depth 아래 35 + 그룹 간 12 */
    .msd-allmenu__grp--leaf { margin-bottom: clamp(8px, 0.625vw, 12px); }   /* 3depth 없는 2depth끼리 12 */
    .msd-allmenu__grp:last-child { margin-bottom: 0; }
}
/* 5열(≥1200, 2026-10-20 사용자 지정: 1200까지 5열): 523:293(교구 2단) · 좌우 112.5 · 구분선 #196ab5. 열 안쪽 여백은 1920에서 시안(47/46), 좁아질수록 14까지 줄여 글자 줄바꿈 방지 */
@media (min-width: 1200px) {
    .msd-allmenu__nav { grid-template-columns: 523fr 293fr 293fr 293fr 293fr; column-gap: 0; row-gap: 0; padding-top: clamp(148px, calc(87px + 6vw), 188px); padding-left: min(5.859vw, 112.5px); padding-right: min(5.859vw, 112.5px); padding-bottom: 60px; }
    .msd-allmenu__cat { padding-left: clamp(14px, calc(5.4vw - 57px), 47px); }
    .msd-allmenu__cat:not(:first-child) { border-left: 1px solid #196ab5; padding-left: clamp(13px, calc(5.4vw - 58px), 46px); }   /* 구분선 1 + 46 = 47 */
    .msd-allmenu__cat:not(:last-child) { padding-right: clamp(14px, calc(5.4vw - 57px), 46px); }
    .msd-allmenu__cat--wide .msd-allmenu__cat-body { column-count: 2; column-gap: clamp(20px, 1.5625vw, 30px); }   /* 교구 2단 사이 30(폭 200+30+200) */
}
/* 데스크탑(≥1440): 상단바 123 (로고·버튼 세로 중심 61.5) */
@media (min-width: 1440px) {
    .msd-allmenu__bar { height: 123px; }
}
/* 태블릿↓(≤1023, 시안 모바일 402): 상단바 70 · 구분선 #196ab5 · 좌우 34 · 화살표 26 · 점 3 */
@media (max-width: 1199px) {
    .msd-allmenu__bar { height: 70px; padding-left: 15px; padding-right: 15px; }   /* 버튼 세로 중심 35 · 좌우 15 */
    .msd-allmenu__nav { padding-top: 103px; padding-left: clamp(30px, 8.46vw, 34px); padding-right: clamp(30px, 8.46vw, 34px); }   /* 첫 1depth 행 top 103 · 구분선 좌우 34 */
    .msd-allmenu__cat { border-bottom: 1px solid #196ab5 !important; }
    .msd-allmenu__chev { width: 26px; height: 26px; }
    .msd-allmenu__cat-body { padding: 0 11px 30px 11px; }   /* 2depth 컨테이너 좌우 11(구분선 안쪽) → ±아이콘 우측 끝 357 */
    .msd-allmenu__grp-head { padding-left: 5px; }
    .msd-allmenu__sub { margin: 0; padding: 10px 5px 15px; }
    .msd-allmenu__sub a { gap: 5px; }
    .msd-allmenu__sub a::before { width: 3px; height: 3px; }
}

/* 전체메뉴 5열 구간(1200~1920) 좌우 여백·글자 크기 비례 (2026-10-20, 사용자 지정)
   최대 = 시안 데스크탑(1920): 열 제목 35 / 2depth 23 / 3depth 18, 좌우 여백 112.5(상단바 35)
   최소 = 시안 모바일(402): 열 제목 23 / 2depth 20 / 3depth 17, 좌우 여백은 1200에서 30(상단바 15) — 1200 → 1920 선형 보간 */
@media (min-width: 1200px) {
    .msd-allmenu__bar { padding-left: clamp(15px, calc(2.778vw - 18.33px), 35px); padding-right: clamp(15px, calc(2.778vw - 18.33px), 35px); }
    .msd-allmenu__nav { padding-left: clamp(30px, calc(11.458vw - 107.5px), 112.5px); padding-right: clamp(30px, calc(11.458vw - 107.5px), 112.5px); }
    .msd-allmenu__cat { padding-left: clamp(14px, calc(4.583vw - 41px), 47px); }
    .msd-allmenu__cat:not(:first-child) { padding-left: clamp(13px, calc(4.444vw - 39.33px), 46px); }
    .msd-allmenu__cat:not(:last-child) { padding-right: clamp(14px, calc(4.444vw - 39.33px), 46px); }
    .msd-allmenu__cat-head { font-size: clamp(23px, calc(1.6667vw + 3px), 35px); }   /* 모바일 23 → 시안 35 */
    .msd-allmenu__grp-head { font-size: clamp(20px, calc(0.4167vw + 15px), 23px); }   /* 모바일 20 → 시안 23 */
    .msd-allmenu__sub a { font-size: clamp(17px, calc(0.1389vw + 15.33px), 18px); }   /* 모바일 17 → 시안 18 */
}

/* 전체메뉴 아코디언(≤1199) 글자 크기 — 화면 비율에 맞춰 조절 (2026-10-20, 사용자 지정)
   최대 = 시안 모바일(402)의 크기(1depth 23 / 2depth 20 / 3depth 17), 402 아래는 폭에 비례해 줄어듦(375에서 약 21.5 / 18.7 / 15.9) */
@media (max-width: 1199px) {
    .msd-allmenu__cat-head { font-size: clamp(20px, 5.72vw, 23px); }
    .msd-allmenu__grp-head { font-size: clamp(17px, 4.975vw, 20px); }
    .msd-allmenu__sub a { font-size: clamp(14px, 4.229vw, 17px); }
}

/* =========================================================
   전체메뉴 — "모바일 크기를 최소로" 규칙 취소, 화면 비율에 맞춰 글자·여백 모두 비례 (2026-10-20, 사용자 지정)
   · 5열(≥1200): 시안 1920 기준 값을 vw 비례로(1920에서 시안 그대로, 그 위는 시안값 고정). 글자만 가독성 하한 12px
   · 아코디언(≤1199): 시안 모바일 402 값을 최대로, 402 아래는 폭에 비례(여백·버튼·화살표 포함)
   ========================================================= */
@media (min-width: 1200px) {
    .msd-allmenu__bar { padding-left: min(1.823vw, 35px); padding-right: min(1.823vw, 35px); }
    .msd-allmenu__nav { padding-top: min(9.79vw, 188px); padding-left: min(5.859vw, 112.5px); padding-right: min(5.859vw, 112.5px); }
    .msd-allmenu__cat { padding-left: min(2.448vw, 47px); }
    .msd-allmenu__cat:not(:first-child) { padding-left: min(2.396vw, 46px); }
    .msd-allmenu__cat:not(:last-child) { padding-right: min(2.396vw, 46px); }
    .msd-allmenu__cat-head { font-size: max(12px, min(1.823vw, 35px)); }
    .msd-allmenu__grp-head { font-size: max(12px, min(1.198vw, 23px)); }
    .msd-allmenu__sub a { font-size: max(12px, min(0.9375vw, 18px)); line-height: 1; gap: min(0.3646vw, 7px); }
    .msd-allmenu__sub a::before { width: min(0.26vw, 5px); height: min(0.26vw, 5px); }
    .msd-allmenu__cat-body { margin-top: min(1.5625vw, 30px); }
    .msd-allmenu__cat--wide .msd-allmenu__cat-body { column-gap: min(1.5625vw, 30px); }
    .msd-allmenu__grp { margin-bottom: min(2.448vw, 47px); }
    .msd-allmenu__grp--leaf { margin-bottom: min(0.625vw, 12px); }
    .msd-allmenu__grp:last-child { margin-bottom: 0; }
    .msd-allmenu__sub { margin-top: min(0.885vw, 17px); }
    .msd-allmenu__sub li { margin-bottom: min(0.78125vw, 15px); }
    .msd-allmenu__sub li:last-child { margin-bottom: 0; }
}
@media (max-width: 1199px) {
    .msd-allmenu__bar { height: clamp(65px, 17.41vw, 70px); padding-left: clamp(13px, 3.73vw, 15px); padding-right: clamp(13px, 3.73vw, 15px); }
    .msd-allmenu__util { gap: clamp(9px, 2.49vw, 10px); }
    .msd-allmenu .msd-allmenu__util .msd-btn-login { width: clamp(79px, 21.14vw, 85px); min-width: 0; height: clamp(37px, 9.95vw, 40px); }
    .msd-allmenu .msd-allmenu__close { width: clamp(37px, 9.95vw, 40px); height: clamp(37px, 9.95vw, 40px); }
    .msd-allmenu__nav { padding-top: clamp(96px, 25.62vw, 103px); }
    .msd-allmenu__cat-head { padding-top: clamp(15.5px, 4.229vw, 17px); padding-bottom: clamp(15.5px, 4.229vw, 17px); padding-left: clamp(5.5px, 1.493vw, 6px); }
    .msd-allmenu__chev { width: clamp(24px, 6.468vw, 26px); height: clamp(24px, 6.468vw, 26px); }
    .msd-allmenu__cat-body { padding: 0 clamp(10px, 2.736vw, 11px) clamp(28px, 7.46vw, 30px) clamp(10px, 2.736vw, 11px); }
    .msd-allmenu__grp { margin-bottom: clamp(4.5px, 1.244vw, 5px); }
    .msd-allmenu__grp-head { padding-left: clamp(4.5px, 1.244vw, 5px); }
    .msd-allmenu__sub { padding: clamp(9px, 2.488vw, 10px) clamp(4.5px, 1.244vw, 5px) clamp(14px, 3.73vw, 15px); }
    .msd-allmenu__sub li { margin-bottom: clamp(9px, 2.488vw, 10px); }
    .msd-allmenu__sub li:last-child { margin-bottom: 0; }
    .msd-allmenu__sub a { gap: clamp(4.5px, 1.244vw, 5px); }
}

/* 전체메뉴 아코디언 화살표(1depth chevron)·±(2depth) — 화면 비율에 맞춰 박스·선 굵기·글리프 크기 모두 비례 (2026-10-20, 사용자 지정)
   박스는 시안 402 값(26 / 24)이 최대, 글리프·선은 박스 비율(%)로 따라가게 함 */
@media (max-width: 1199px) {
    .msd-allmenu__chev::before { width: 34.6%; height: 34.6%; margin: -23.1% 0 0 -19.2%; border-right-width: 2px; border-bottom-width: 2px; }   /* 브라우저가 2px 미만 테두리를 1px로 내려 버리므로 선 굵기는 2px 고정 */
    .msd-allmenu__cat.is-open > .msd-allmenu__cat-head .msd-allmenu__chev::before { margin-top: -7.7%; }
    .msd-allmenu__pm { width: clamp(22px, 5.97vw, 24px); height: clamp(22px, 5.97vw, 24px); }
    .msd-allmenu__pm::before { left: 20.8%; right: 20.8%; height: clamp(1.7px, 0.4975vw, 2px); }
    .msd-allmenu__pm::after { top: 20.8%; bottom: 20.8%; width: clamp(1.7px, 0.4975vw, 2px); }
}

/* 5열(1200~1920) 글자 크기 — 너무 작아지지 않게 하한 상향 (2026-10-20, 사용자 지정)
   1200에서 열 제목 24 / 2depth 17 / 3depth 14, 1920에서 시안(35 / 23 / 18), 그 사이는 선형 */
@media (min-width: 1200px) {
    .msd-allmenu__cat-head { font-size: min(35px, calc(1.528vw + 5.66px)); }
    .msd-allmenu__grp-head { font-size: min(23px, calc(0.8333vw + 7px)); }
    .msd-allmenu__sub a { font-size: min(18px, calc(0.5556vw + 7.33px)); }
}

/* 5열 3depth 최소 17px (2026-10-20, 사용자 지정) — 1200에서 17, 1920에서 시안 18 / 2depth·열 제목은 위 값(최소 17 / 24) 유지 */
@media (min-width: 1200px) {
    .msd-allmenu__sub a { font-size: min(18px, calc(0.1389vw + 15.33px)); }
}

/* 5열 2depth 최소 19px (2026-10-20, 사용자 지정) — 1200에서 19, 1920에서 시안 23, 그 사이는 선형 */
@media (min-width: 1200px) {
    .msd-allmenu__grp-head { font-size: min(23px, calc(0.5556vw + 12.33px)); }
}
