/* ============================================================================
   style.css — 프로젝트 커스텀 스타일 (디자인 원본 front.css 와 분리)
   front.css 는 퍼블리싱 디자인 원본이라 손대지 않고, 우리가 추가/보정하는 스타일은 여기에 모은다.
   base.twig 에서 front.css 다음에 로드 → 필요 시 디자인 위에 덮어쓴다.
   ※ 신규 컴포넌트 클래스는 auth-/site- 등 접두사로 격리할 것 — front.css 범용 클래스(.tabs 등)와 충돌 방지.
   ============================================================================ */

/* ============================================================================
   디자인 토큰 — 브랜드 팔레트 (Plum · Champagne · Ivory · Charcoal)
   메인 브랜드색 = 병원 퍼스널 컬러 플럼(--color). 웜 뉴트럴 베이스(아이보리·차콜·웜그레이) +
   골드 보조 플로리시로 "보라+골드" 럭셔리 톤. front.css 의 :root{--color:#7c2399} 를 여기서 덮어쓴다
   (style.css 가 뒤에 로드). 사이트 전반의 강조색이 --color 한 곳으로 흐르므로 톤이 일괄 전환된다.
   ============================================================================ */
:root {
    --color:      #994699;   /* 주 강조 = 병원 퍼스널 컬러(플럼). 메인 브랜드색으로 승격.
                                흰 글씨 대비 ≈5.7:1(AA). CTA·버튼·링크·포커스가 전부 이 토큰으로 흐름 */
    --color-deep: #6f336f;   /* hover·진한 플럼 (ColorPalette HSL 파생값과 동일 — brand.css 폴백) */
    --color-soft: #f6eef6;   /* 옅은 플럼 틴트 — 틴트 hover 배경·알림 박스 (HSL 파생값과 동일) */
    --accent:     #c0a274;   /* 샴페인 골드 — 보조 헤어라인·플로리시(보라+골드 럭셔리 조합 유지, 흰 글씨 금지) */
    --ink:        #2c2825;   /* 차콜 — 큰 제목 */
    --body:       #4a443f;   /* 웜 그레이 본문 */
    --ivory:      #f7f2ec;   /* 따뜻한 섹션 배경 — 차가운 회색 대체 */
    --line:       #e8e0d8;   /* 웜 헤어라인 — 차가운 #eee/#f0f0f0 대체 */
    --paper:      #ffffff;
}

/* ── Sticky footer — 콘텐츠가 짧아도 푸터를 뷰포트 바닥에 붙여 흰 여백 제거.
   body 를 세로 flex 로 만들고 본문 래퍼(.page-wrap)를 늘린다. flexbox 의 free-space
   계산에 footer 의 margin-top(디자인 여백)도 포함되므로 긴 페이지의 디자인 간격은 그대로 유지. ── */
body { display: flex; flex-direction: column; min-height: 100vh; }
.page-wrap { flex: 1 0 auto; }
footer { flex-shrink: 0; }

/* ── 헤더 — 2단(.top 로고행 / .header 메뉴밴드). 6월6일 디자인 복원: 중앙 메뉴 + 우측 상담 CTA. ── */

/* 우상단 유틸바 (로그인/회원가입) — .top 우상단 절대배치. 전화 동선은 .header 의 .site-cta.
   모바일은 #m-gnb .m-auth 가 대신. */
.top { position: relative; }
/* 로고 이미지는 고해상 원본(레티나·OG 겸용)이라 표시 높이를 명시 — 미지정 시 고유 픽셀 크기로 거대 렌더 */
.top h1 img { height: 86px; width: auto; }
/* 모바일(햄버거 모드)은 슬림 로고바 45px — front.css 원래 설계 복원. 위 86px(데스크탑용 전역)가
   시트 로드 순서(front.css→style.css)로 front.css 의 미디어쿼리 45px 를 덮어 모바일 로고가
   두 배로 커지고(.top ≈114px) 햄버거(.btn-m, 45px 바 기준 top:15px)와 정렬이 어긋나던 문제 보정. */
@media all and (max-width: 1020px) { .top h1 img { height: 45px; } }
footer .logo img { height: 48px; width: auto; }
/* 우측 끝을 CTA(.site-cta right:3rem)와 동일선상으로 정렬 — 우상단/우측 끝이 한 줄로 떨어져 정돈된 인상 */
.site-utilbar { position: absolute; top: 2.1rem; left: auto; right: 3rem;
    text-align: right; font-size: 1.3rem; line-height: 1; letter-spacing: .01em; z-index: 5; }
.site-utilbar a, .site-utilbar button { color: #8c867f; text-decoration: none; transition: color .2s ease; }
.site-utilbar a:hover, .site-utilbar button:hover { color: var(--color); }
.site-utilbar button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 1.3rem; }
.site-utilbar form { display: inline; }
/* 파이프(|) 대신 중간점 — 더 넉넉한 여백으로 "요즘 사이트" 인상. .sep 텍스트는 비우고 CSS 로 점만 찍는다. */
.site-utilbar .sep { display: inline-block; margin: 0 1rem; }
.site-utilbar .sep::before { content: '·'; color: #cfc8c0; }
.site-utilbar .uname { color: var(--ink); }

/* ── GNB 보정 — 자식 없는 1뎁스는 펼침 표시 숨김 (front.js 가 동작 분기, 여기선 시각만) ── */
.header nav > ul > li:not(.has-children):hover .btn-dep1:before { opacity: 0; }
#m-gnb nav > ul > li:not(.has-children) .btn-dep1:before { display: none; }

/* ── 하단 인디케이터 바 — front.css 기본은 bottom 0→1rem 까지 transition:all 로 애니메이션해
   호버 해제 시 페이드아웃과 동시에 아래로 미끄러져 내려가며 사라짐. 위치를 1rem 으로 고정하고
   opacity 만 전환해 제자리에서 페이드만 되게 보정. ── */
.header nav .btn-dep1:before { bottom: 1rem; transition: opacity .4s ease; }

/* 메뉴 글꼴 = 본문 기본 Pretendard 유지(reset.css 로드). 별도 글꼴 미지정. */

/* ── 메뉴 밴드 슬림화 — front.css 기본(글씨 2.2rem·높이 7rem)이 과해 글씨/상하 여백 축소. ── */
.header nav .btn-dep1 { height: 6rem; font-size: 1.7rem; padding: 0 2.2rem;
    font-weight: 500; color: var(--ink); letter-spacing: .015em; }

/* ── 서브메뉴(dep2) — 세로 드롭다운 패널. front.js 가 .is-open 클래스를 토글하고,
   등장 모션(슬라이드+페이드+이징)은 여기 CSS 가 담당(jQuery fadeIn 의 밋밋한 opacity 깜빡임 대체).
   .dep2 자체에 padding-top 으로 버튼↔패널 사이 투명 호버 브릿지 → 이동 중 닫힘 방지.
   오른쪽 메뉴(마지막 4개)는 오른쪽 끝을 부모에 맞춰(right:0) 화면 밖 넘침 방지. ── */
.header nav > ul > li { position: relative; }
.header nav .dep2 { left: 0; right: auto; top: 100%; margin-top: -1px; padding-top: 0;
    display: block; opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
    transition: opacity .28s ease, transform .4s cubic-bezier(.22,.61,.36,1), visibility 0s linear .4s; }
.header nav > ul > li:nth-last-child(-n+4) .dep2 { left: auto; right: 0; }
.header nav .dep2.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
    transition: opacity .28s ease, transform .4s cubic-bezier(.22,.61,.36,1); }

/* 패널 카드 — 테두리 대신 부드럽게 떠있는 그림자 + 넉넉한 여백. 메뉴 밴드에 딱 붙는 구조라
   라운드는 직각(0)으로 통일 — 상단 각짐/하단 둥금의 비대칭 어색함 제거(그림자가 분리감 담당). */
.header nav .dep2 ul { display: block; min-width: 17rem; padding: 1rem 0; background: #fff;
    border: 0; border-radius: 0; position: relative; overflow: hidden;
    /* 각진 플러시 패널 — 하단 가중 레이어드 그림자(음수 spread 로 상단/측면 번짐 억제, 메뉴 밴드와 깔끔히 붙음).
       ※ 이 값이 최종 — 과거 파일 하단(웜그림자 섹션)의 중복 선언을 제거해 단일화함. */
    box-shadow: 0 16px 30px -12px rgba(60, 48, 40, .26), 0 4px 10px -6px rgba(60, 48, 40, .12); }
.header nav .dep2 ul li { display: block; }

/* 항목 — 넉넉한 패딩. hover 시 배경 틴트 + 브랜드색만(텍스트 위치 고정, 점프 없음). */
.header nav .dep2 ul .btn-dep2 { display: block; line-height: 1.3; padding: 1.1rem 2.4rem;
    font-size: 1.5rem; color: var(--ink); white-space: nowrap; opacity: 1;
    transition: color .2s ease, background .2s ease; }
.header nav .dep2 ul:hover .btn-dep2 { opacity: 1; }   /* front.css 의 형제 dim(opacity:.4) 무력화 */
.header nav .dep2 ul .btn-dep2:hover { background: var(--color-soft); color: var(--color); }

/* 항목 등장 스태거 — 패널이 열리면 항목이 위→아래로 시차 페이드인(공들인 인상). 닫히면 즉시 초기화.
   li 자체 투명도라 위 hover-dim(.btn-dep2 opacity) 무력화 규칙과 충돌하지 않는다. 데스크탑 전용 셀렉터. */
.header nav .dep2 ul li { opacity: 0; transform: translateY(7px);
    transition: opacity .3s ease, transform .35s cubic-bezier(.22,.61,.36,1); }
.header nav .dep2.is-open ul li { opacity: 1; transform: translateY(0); }
.header nav .dep2.is-open ul li:nth-child(2) { transition-delay: .04s; }
.header nav .dep2.is-open ul li:nth-child(3) { transition-delay: .08s; }
.header nav .dep2.is-open ul li:nth-child(4) { transition-delay: .12s; }
.header nav .dep2.is-open ul li:nth-child(5) { transition-delay: .16s; }
.header nav .dep2.is-open ul li:nth-child(n+6) { transition-delay: .2s; }

/* 가로 풀폭 보라 밴드(.bg-nav)는 미사용 잔재 → 숨김 */
.header .bg-nav { display: none !important; }

/* ── 헤더 우측 상담 CTA (.site-cta) — .header(position:relative) 우측 여백에 절대배치(세로 가운데).
   솔리드 핫필(plum) 1줄: 인라인 흰 라인 아이콘 + 라벨(작게·연한 흰색) + 번호(굵게·흰색).
   .header 가 모바일에서 display:none 이라 자동으로 데스크탑 전용(모바일은 #m-gnb .m-auth 의 전화하기). ── */
.site-cta { position: absolute; right: 3rem; top: 50%; transform: translateY(-50%); z-index: 16;
    display: inline-flex; flex-direction: row; align-items: center; gap: .8rem; line-height: 1; cursor: default;
    padding: 1.05rem 1.9rem; border: 1px solid var(--color); border-radius: 999px; background: var(--color);
    box-shadow: 0 6px 16px -6px rgba(125, 58, 125, .42);
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.site-cta-ico { flex: none; width: 1.9rem; height: 1.9rem; display: flex; align-items: center; justify-content: center; color: #fff; }
.site-cta-ico svg { width: 1.9rem; height: 1.9rem; }
.site-cta-text { display: inline-flex; flex-direction: row; align-items: baseline; gap: .6rem; }
.site-cta-label { font-size: 1.3rem; font-weight: 500; color: rgba(255, 255, 255, .82); letter-spacing: .04em; margin: 0; }
.site-cta-tel { font-size: 1.7rem; font-weight: 700; color: #fff; letter-spacing: .01em; }
/* 통화 가능 기기에서 front.js 가 href 를 부여했을 때만 커서 포인터(데스크탑은 .header display:none 으로 비노출) */
.site-cta[href] { cursor: pointer; }

/* ── 스크롤 헤더 고정(옵트인) — 디자인 설정 '상단 메뉴 고정'(system_settings.header_sticky)이 켜지면
   body.hdr-sticky. 데스크탑: 로고행(.top)은 자연히 스크롤아웃되고 메뉴 밴드(.header)만 sticky 로
   상단에 붙는다(축소형 1단 — 높이 애니메이션 없이 네이티브 스크롤이 축소를 담당). 붙는 시점부터
   front.js 가 body.hdr-scrolled 를 켜 밴드 좌측 컴팩트 로고 페이드인 + 떠있는 그림자.
   모바일(≤1020px)은 .header 가 숨김이라 슬림 로고바(.top)를 그대로 sticky.
   z-index 900 = 본문/서브 히어로 위·퀵바(1000)/모바일 오버레이(5000) 아래. ── */
body.hdr-sticky .header { position: sticky; top: 0; z-index: 900; }
body.hdr-sticky.hdr-scrolled .header { box-shadow: 0 10px 24px -14px rgba(60, 48, 40, .28); }
/* 컴팩트 로고 — .site-cta(right:3rem)와 대칭으로 좌측 절대배치. 평소엔 완전 숨김(자리 차지 없음). */
.header .header-logo { position: absolute; left: 3rem; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; z-index: 16;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s; }
.header .header-logo img { display: block; height: 3.4rem; width: auto; max-width: 24rem; object-fit: contain; }
.header .header-logo span { font-size: 1.8rem; font-weight: 700; color: var(--ink); letter-spacing: .02em; white-space: nowrap; }
body.hdr-scrolled .header .header-logo { opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity .25s ease; }
/* 해시 앵커 이동 시 고정 밴드에 가려지지 않게 — 밴드 높이(6rem)+여유만큼 스크롤 여백 */
html:has(body.hdr-sticky) { scroll-padding-top: 7rem; }
@media all and (max-width: 1020px) {
    /* 모바일 — .top(로고 45px 바)이 이미 슬림해 추가 축소 없이 그대로 상단 고정.
       .top 은 sticky 로 스택 컨텍스트가 생겨 내부 .btn-m(z:5000)이 밖으로 못 나가지만,
       메뉴 열림 상태의 햄버거(X)는 현재도 오버레이(.m-bg z:5000, DOM 후순위)에 덮이는 구조라 동작 변화 없음
       (닫기는 #m-gnb .btn-close/.m-bg 클릭이 담당). */
    body.hdr-sticky .top { position: sticky; top: 0; z-index: 900; }
    body.hdr-sticky.hdr-scrolled .top { box-shadow: 0 10px 24px -14px rgba(60, 48, 40, .28); }
    html:has(body.hdr-sticky) { scroll-padding-top: 80px; }   /* 모바일 .top(로고 45px+패딩) ≈73px + 여유 */
}

/* ── 모바일 슬라이드 메뉴 하단 회원 동선 (#m-gnb 내부) ── */
.m-auth { display: none; }
@media all and (max-width: 1020px) {
    /* 데스크탑 우상단 유틸바는 모바일에서 햄버거(.btn-m)와 겹치므로 숨김 — 회원 동선은 .m-auth 가 대신 */
    .site-utilbar { display: none; }
    /* #m-gnb 를 세로 flex 로: .m-auth(닫기버튼과 같은 상단 줄, 우측 닫기 영역 회피) → nav(남는 공간 스크롤).
       (front.css 의 nav height:calc(100% - 50px)+margin-top:50px 가 전체를 점유해 .m-auth 가 안 보이던 문제 보정) */
    #m-gnb { display: flex; flex-direction: column; }
    #m-gnb nav { height: auto; margin-top: 0; flex: 1 1 auto; min-height: 0; }
    .m-auth { flex: 0 0 auto; display: flex; align-items: center; gap: 16px;
        height: 50px; box-sizing: border-box; padding: 0 55px 0 20px; border-bottom: 1px solid var(--line); font-size: 17px; }
    /* 각 항목(전화·로그인·회원가입)은 줄바꿈 금지 — 폭 부족 시 글자가 개행되던 현상 보정 */
    .m-auth a, .m-auth button { color: var(--body); text-decoration: none; white-space: nowrap; flex: 0 0 auto; }
    .m-auth button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 17px; }
    .m-auth form { display: inline; }
    .m-auth .uname { color: var(--ink); font-weight: 600; }
    /* 전화는 아이콘+작은 라벨 링크 — 폭 잠식 없이 좌측 고정, 로그인/회원가입은 우측 정렬 */
    .m-auth .site-tel { color: var(--color); font-weight: 700; margin-right: auto; display: inline-flex; align-items: center; gap: 5px; }
    .m-auth .site-tel svg { display: block; }
    .m-auth .site-tel-txt { font-size: 15px; }

    /* ── 모바일 헤더 톤 정리 — 데스크탑과 같은 모카·차콜·웜 팔레트로 통일
       (front.css 원본의 차가운 회색 #666/#333/#f2f2f2/#555/#eee/순검정 보정) ── */
    .btn-m span { background: var(--ink); }                    /* 햄버거 라인: 회색 → 차콜 */
    #m-gnb { background: var(--paper); }                       /* 슬라이드 패널 흰 배경 */
    #m-gnb .btn-close:before, #m-gnb .btn-close:after { background: var(--ink); }  /* 닫기 X → 차콜 */
    /* 1뎁스 — 차콜 글씨 + 웜 행 구분선 + 펼침 화살표·활성색 모카 */
    #m-gnb nav > ul > li { border-bottom: 1px solid var(--line); }
    #m-gnb nav .btn-dep1 { color: var(--ink); letter-spacing: .01em; }
    #m-gnb nav .btn-dep1:before { border-color: var(--color); }
    #m-gnb nav > ul > li.on > .btn-dep1 { color: var(--color); }
    /* 2뎁스 — 차가운 회색 패널(#f2f2f2) → 웜 틴트, 항목 톤 정리 */
    #m-gnb nav .dep2 { background: var(--color-soft); }
    #m-gnb nav .btn-dep2 { color: var(--body); }
    #m-gnb nav .btn-dep2:active { color: var(--color); }
    /* 오버레이 — 순검정 → 따뜻한 딥 차콜 반투명 + 살짝 블러로 본문과 분리(미지원 시 반투명만) */
    .m-bg { background: rgba(44, 40, 37, .55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }

    /* ── E. 모바일 슬라이드 메뉴 폴리시 — 드로어 깊이감 + 편안한 터치 영역 + 위계 명확화 ── */
    /* 열렸을 때 페이지 위로 떠 보이는 좌측 그림자(깊이감) + 슬라이드 이징 보정(원본 ease → 감속 커브) */
    #m-gnb { transition: right .34s cubic-bezier(.22,.61,.36,1), opacity .34s ease;
        box-shadow: -12px 0 40px -12px rgba(44, 40, 37, .35); }
    /* 1뎁스 — 편안한 터치 높이 + 정돈된 타이포 */
    #m-gnb nav .btn-dep1 { padding: 16px 22px; font-size: 16px; font-weight: 600; }
    /* 펼침 화살표 — 두껍던 라인(2px) 가늘게(1.5px)·작게 다듬어 단정하게 */
    #m-gnb nav .btn-dep1:before { width: 7px; height: 7px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
    /* 2뎁스 — 들여쓰기 + 항목별 좌측 샴페인 헤어라인으로 부모-자식 위계를 또렷하게 */
    #m-gnb nav .dep2 { padding: .4rem 0; }
    #m-gnb nav .btn-dep2 { padding: 12px 22px 12px 34px; font-size: 15px; position: relative; }
    #m-gnb nav .btn-dep2::before { content: ''; position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
        width: 6px; height: 1px; background: var(--accent); }
}
/* 초협폭(≤360px) — .m-auth 로그인 상태 3항목(전화하기·마이페이지·로그아웃)이 닫기(X) 영역을
   침범하지 않도록 폰트·간격 축소. 가용폭 = 화면 - 55px(닫기 회피) - 20px(좌 패딩). */
@media all and (max-width: 360px) {
    .m-auth { gap: 11px; font-size: 15px; }
    .m-auth button { font-size: 15px; }
    .m-auth .site-tel-txt { font-size: 13px; }
}
/* 320px대(폴드 커버 등) — 전화는 아이콘만 남겨 로그아웃이 닫기(X)와 겹치지 않게 */
@media all and (max-width: 330px) {
    .m-auth .site-tel-txt { display: none; }
}

/* ── 서브페이지 유틸리티 — 디자인 톤이 아직 적용되지 않은 본문(폼/목록/알림)의 최소 가독 스타일.
   퍼블리싱 디자인(front.css)과 충돌하지 않도록 전부 .app-body 스코프. 홈은 page 블록을 직접
   override 하므로 .app-body 를 쓰지 않아 영향 없음. ── */
.app-body { max-width: 100rem; margin: 0 auto; padding: 2.5rem 2rem 6rem; min-height: 40vh; color: var(--body); line-height: 1.7; font-size: 1.6rem; }
/* 페이지 제목 — .sub-head h2 와 동일한 차콜 + 좌측 모카 바(서브페이지 통일) */
.app-body h1 { position: relative; padding-left: 1.8rem; font-size: 3rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 0 0 1.6rem; }
.app-body h1::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 2.2rem; background: var(--color); border-radius: 2px; }
.app-body h2 { font-size: 2rem; font-weight: 700; color: var(--ink); margin: 2.4rem 0 1rem; }
.app-body h3 { font-size: 1.7rem; font-weight: 600; color: var(--ink); margin: 1.6rem 0 .6rem; }
.app-body a { color: var(--color); }
.app-body form table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.app-body form th { text-align: left; padding: 1rem .8rem; width: 12rem; vertical-align: top; font-weight: 600; color: var(--ink); font-size: 1.5rem; }
.app-body form td { padding: 1rem .8rem; }
.app-body input[type="text"], .app-body input[type="email"], .app-body input[type="password"],
.app-body input[type="date"], .app-body input[type="tel"], .app-body select, .app-body textarea {
    padding: 1rem 1.4rem; border: 1px solid var(--line); border-radius: .8rem; min-width: 18rem; font-size: 1.5rem; color: var(--ink); background: #fff; }
.app-body input:focus, .app-body select:focus, .app-body textarea:focus { outline: none; border-color: var(--color); }
.app-body textarea { width: 100%; min-height: 8rem; line-height: 1.6; }
.app-body button, .app-body .btn { display: inline-flex; align-items: center; justify-content: center; height: 4.4rem; padding: 0 2.4rem;
    border: 1px solid var(--color); border-radius: .8rem; background: var(--color); color: #fff; font-size: 1.5rem; font-weight: 600;
    cursor: pointer; text-decoration: none; transition: all .25s ease; }
.app-body button:hover, .app-body .btn:hover { background: #fff; color: var(--color); }
.app-body button.secondary, .app-body .btn.secondary { background: #fff; color: var(--color); }
.app-body .errors { color: #c0392b; background: #fdecec; border-radius: 1rem; padding: 1.4rem 1.8rem; margin: 1rem 0; list-style: none; font-size: 1.5rem; }
.app-body .flash { background: var(--color-soft); color: var(--color-deep); border-radius: 1rem; padding: 1.4rem 1.8rem; margin: 1rem 0; font-size: 1.5rem; }
.app-body .tip { color: #8a857e; font-size: 1.5rem; }
/* 상세 페이지 빵부스러기(crumb) — 인라인 스타일보다 명시도 높게 잡아 톤 통일 */
.app-body .crumb { font-size: 1.4rem; color: #999; margin-bottom: 1.2rem; }
.app-body .crumb a { color: var(--color); text-decoration: none; }

/* 콘텐츠 페이지(진료항목·약관) 본문 타이포그래피 — sanitize 된 HTML 렌더 영역 (Phase 6.3) */
.app-body .content-body { line-height: 1.7; color: #333; max-width: 80rem; } /* 줄글 가독 캡(800px) — .post-body 와 동일 기준 */
.app-body .content-body h2 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; padding-left: 0.6rem; border-left: 4px solid var(--color); }
.app-body .content-body h3 { font-size: 1.05rem; margin: 1.2rem 0 0.5rem; }
.app-body .content-body h4 { font-size: 0.98rem; margin: 1rem 0 0.4rem; }
.app-body .content-body p { margin: 0.6rem 0; }
.app-body .content-body ul, .app-body .content-body ol { margin: 0.6rem 0; padding-left: 1.4rem; }
.app-body .content-body li { margin: 0.2rem 0; }
.app-body .content-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 0.6rem 0; }
.app-body .content-body blockquote { margin: 0.8rem 0; padding: 0.5rem 1rem; border-left: 3px solid #ccc; color: #555; background: #f8f9fa; }

/* ============================================================================
   회원 인증 화면 (로그인·회원가입·아이디/비밀번호 찾기·재설정·변경)
   퍼블리싱 디자인 톤(보라 var(--color)·Pretendard·pill 버튼·라운드 카드). 전부 .auth 스코프.
   ============================================================================ */
.auth { display:flex; justify-content:center; padding:6rem 2rem 9rem; }
/* 세로 중앙 정렬 — 카드가 짧아 푸터까지 흰 공백이 크게 남는 문제 보정.
   :has() 미지원 브라우저는 기존(상단 정렬) 그대로 — 순수 개선형(기능 영향 없음).
   콘텐츠가 뷰포트보다 길면(회원가입 등) 늘어난 컨테이너에 맞춰 자연히 상단부터 흐름. */
.page-wrap:has(> .auth) { display: flex; flex-direction: column; }
.page-wrap:has(> .auth) > .auth { flex: 1 0 auto; align-items: center; }
.auth-card { width:100%; max-width:52rem; background:#fff; border:1px solid #eee;
    border-radius:1.6rem; padding:4rem 5rem 4.5rem; }
.auth-head { text-align:center; margin-bottom:2.8rem; }
.auth-head .eyebrow { display:block; font-size:1.4rem; letter-spacing:.4rem; text-transform:uppercase;
    color:var(--color); font-weight:600; margin-bottom:.8rem; }
.auth-head h1 { font-size:2.8rem; font-weight:700; color:#222; }
.auth-head .desc { margin-top:1.2rem; font-size:1.5rem; color:#888; line-height:1.6; word-break:keep-all; }

.auth .section-title { font-size:1.7rem; font-weight:600; color:#333; margin:2.8rem 0 1.4rem;
    padding-top:2.4rem; border-top:1px solid var(--line); }
.auth .section-title:first-of-type { margin-top:.5rem; padding-top:0; border-top:0; }

.auth .field { margin-bottom:1.6rem; }
.auth .field label { display:block; font-size:1.5rem; color:#555; margin-bottom:.8rem; }
.auth .field input[type="text"], .auth .field input[type="email"],
.auth .field input[type="tel"], .auth .field input[type="password"] {
    width:100%; height:5rem; border:1px solid #ddd; border-radius:1rem;
    padding:0 1.6rem; font-size:1.6rem; color:#222; background:#fff; transition:border-color .2s ease; }
.auth .field input:focus { outline:none; border-color:var(--color); }
.auth .field .hint { margin-top:.7rem; font-size:1.3rem; color:#999; line-height:1.5; }

.auth .agree { margin:2rem 0 .5rem; }
.auth .agree label { display:flex; align-items:flex-start; gap:.8rem; font-size:1.5rem; color:#555;
    margin-bottom:1rem; cursor:pointer; }
.auth .agree input { margin-top:.3rem; flex:none; }
.auth .agree .opt { color:#aaa; }

.auth .notice, .auth .errors, .auth .result { border-radius:1rem; padding:1.4rem 1.8rem; margin-bottom:2rem;
    font-size:1.5rem; line-height:1.6; list-style:none; }
.auth .notice, .auth .result { background:var(--color-soft); color:var(--color-deep); }
.auth .result strong { color:var(--color); }
.auth .result a { color:var(--color); word-break:break-all; }
.auth .result .tip { display:block; margin-top:.6rem; font-size:1.3rem; color:var(--body); }
.auth .errors { background:#fdecec; color:#c0392b; }
.auth .errors li + li { margin-top:.5rem; }

.auth .btn-primary { width:100%; height:5rem; border:1px solid var(--color); border-radius:4rem;
    background:var(--color); color:#fff; font-size:1.7rem; font-weight:600; cursor:pointer;
    margin-top:.8rem; transition:all .25s ease; }
.auth .btn-primary:hover { background:#fff; color:var(--color); }
.auth .btn-outline { display:flex; align-items:center; justify-content:center; width:100%; height:5rem;
    border:1px solid #ddd; border-radius:4rem; background:#fff; color:#444; font-size:1.6rem;
    text-decoration:none; cursor:pointer; margin-top:1rem; transition:all .25s ease; }
.auth .btn-outline:hover { border-color:var(--color); color:var(--color); }
.auth .btn-row { display:flex; gap:1rem; margin-top:.8rem; }
.auth .btn-row .btn-primary, .auth .btn-row .btn-outline { margin-top:0; flex:1; }

/* 폴더형 탭 (이메일 / 휴대폰) — CSS-only 라디오 토글. 라디오를 nav·panel 보다 먼저 두고 ~ 형제 셀렉터로 전환.
   탭이 입력폼 박스 위에 얹히고(상하 배치), 활성 탭이 흰색으로 폼과 이어진다.
   margin-bottom:-1px 로 탭 하단이 폼 상단 경계선을 덮고, nav z-index 로 폼 위에 그려 활성 탭의 흰 배경이 경계선을 가린다.
   ※ 클래스는 반드시 auth- 접두사 유지 — front.css 에 .tabs{display:flex} 가 있어 무접두 .tabs 는 좌우 분할로 깨짐. */
.auth-tabs { position:relative; }
.auth-tab-radio { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.auth-tab-nav { display:flex; gap:.4rem; position:relative; z-index:1; }
.auth-tab-nav label { flex:1; text-align:center; padding:1.3rem 1rem; font-size:1.6rem; color:#888; cursor:pointer;
    background:var(--ivory); border:1px solid #e2e2e2; border-bottom:none;
    border-radius:1rem 1rem 0 0; margin-bottom:-1px; transition:all .2s ease; }
.auth-tab-radio.auth-tab-mobile:checked ~ .auth-tab-nav .auth-nav-mobile,
.auth-tab-radio.auth-tab-email:checked  ~ .auth-tab-nav .auth-nav-email { background:#fff; color:var(--color); font-weight:700; }
.auth-tab-panel { display:none; border:1px solid #e2e2e2; border-radius:0 0 1rem 1rem;
    padding:2.8rem 2.2rem 2.4rem; background:#fff; }
.auth-tab-radio.auth-tab-mobile:checked ~ .auth-tab-panel.auth-panel-mobile,
.auth-tab-radio.auth-tab-email:checked  ~ .auth-tab-panel.auth-panel-email { display:block; }
.auth-tab-panel .field:last-of-type { margin-bottom:0; }
.auth-tab-panel .btn-primary { margin-top:2rem; }

/* 소셜 간편 로그인 (카카오) — 공식 버튼 가이드: 배경 #FEE500, 라벨 검정 85%. auth- 접두 필수(front.css 충돌 방지). */
.auth-social { margin-top:2.4rem; }
.auth-social-divider { display:flex; align-items:center; gap:1.2rem; font-size:1.3rem; color:#aaa; margin-bottom:1.4rem; }
.auth-social-divider::before, .auth-social-divider::after { content:""; flex:1; height:1px; background:var(--line); }
.auth-kakao-btn { display:flex; align-items:center; justify-content:center; gap:.8rem; width:100%; height:5rem;
    border-radius:4rem; background:#FEE500; color:rgba(0,0,0,.85); font-size:1.6rem; font-weight:600;
    text-decoration:none; transition:filter .2s ease; }
.auth-kakao-btn:hover { filter:brightness(.96); }
.auth-kakao-btn svg { width:2rem; height:2rem; flex:none; }

.auth .help { margin-top:2.4rem; padding-top:2rem; border-top:1px solid var(--line); text-align:center;
    font-size:1.4rem; color:#999; }
.auth .help a { color:#777; text-decoration:none; }
.auth .help a:hover { color:var(--color); }
.auth .help .sep { margin:0 1rem; color:#ddd; }

/* 제목 글꼴은 사이트 전체 단일 Pretendard 로 일원화(배너 제목 포함, 파일 하단 "타이포 역할 시스템" 참조).
   과거 배너/큰 제목에 명조체(Noto Serif KR @font-face + Cormorant)를 걸었으나 기본 글꼴로 환원하며 제거했다. */


/* ============================================================================
   서브 카테고리 탭바(.subnav) — 빵부스러기 대체 위치표시 (2026-09-15)
   히어로 밴드 바로 아래 풀블리드 띠. 현재 페이지의 형제(2뎁스) 전체를 균등폭 탭으로 깔고
   현재 항목만 반전(흰 배경)시켜 "지금 어디" + "옆에 뭐가 있나"를 한 줄로 보여준다.
   마크업은 partials/_subnav.twig(형제 2개 이상일 때만 출력), 데이터는 breadcrumb.siblings 재사용.
   내부 레일은 .cp-hero__inner 와 동일한 1080 프레임 → 밴드 텍스트와 탭 시작 X 가 일치한다.
   ※ 무접두 .nav/.tabs 는 front.css 범용 클래스와 충돌하므로 .subnav 로 격리.
   ============================================================================ */
.subnav { position: relative; width: 100%; background: var(--color); }
.subnav__inner { max-width: calc(1080px + 4rem); margin: 0 auto; padding: 0 2rem; }
.subnav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.subnav li { flex: 1 1 0; min-width: 0; }
.subnav a,
.subnav li > span { display: flex; align-items: center; justify-content: center; height: 5.4rem; padding: 0 1.2rem;
    font-size: 1.6rem; font-weight: 500; line-height: 1.25; text-align: center; text-decoration: none;
    color: rgba(255, 255, 255, .88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .2s ease, color .2s ease; }
.subnav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
/* 이동 불가 항목(메뉴 href 가 비었거나 '#') — 링크 대신 비활성 텍스트 */
.subnav li > span { color: rgba(255, 255, 255, .55); cursor: default; }
.subnav .is-current a,
.subnav .is-current > span { background: #fff; color: var(--color); font-weight: 700; }
/* 형제가 1개뿐인 카테고리(수액클리닉/예방접종) — 균등분할(flex:1)이면 흰 활성 배경이 띠 전체를 덮어
   네이비 띠가 사라진다. 단일 탭만 폭을 내용에 맞춰 좌측 정렬 → 여러 개짜리 탭바의 첫 탭과 같은 모양.
   (탭을 아예 숨기지 않는 이유: 빵부스러기를 걷어낸 뒤 이 띠가 유일한 위치 단서이고,
    카테고리 간 본문 시작 높이를 고정해야 한다 — partials/_subnav.twig 주석) */
.subnav li:only-child { flex: 0 1 auto; min-width: 20rem; }

/* 모바일(≤1020px) — 균등분할 대신 가로 스크롤.
   라벨이 길어(예: '임파선염,경부종양') 6개 균등분할은 글자가 잘린다. 활성 항목은 front.js 가 화면 안으로 끌어온다.
   이 구간은 루트가 7px 로 줄어(front.css) rem 이 30% 작아지므로 높이·글자는 px 고정(quickbar 와 동일 방침). */
@media all and (max-width: 1020px) {
    .subnav__inner { max-width: none; padding: 0; }
    .subnav ul { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .subnav ul::-webkit-scrollbar { display: none; }
    .subnav li { flex: 0 0 auto; }
    .subnav a,
    .subnav li > span { height: 48px; padding: 0 18px; font-size: 14.5px; }
    .subnav li:only-child { min-width: 140px; }
    /* 우측 끝 페이드 — "더 있음" 암시. front.js 가 넘치는 경우에만 is-scrollable 을 붙이고,
       끝까지 스크롤하면 is-end 로 걷어낸다. */
    .subnav.is-scrollable::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 34px;
        pointer-events: none; background: linear-gradient(90deg, transparent, var(--color) 72%);
        opacity: 1; transition: opacity .2s ease; }
    .subnav.is-scrollable.is-end::after { opacity: 0; }
}

/* ============================================================================
   게시판 / 공지사항 — 프론트 퍼블리싱 디자인(서브페이지) 톤 적용
   _sub.twig 가 그리는 .sub-visual 히어로 + .sub-body 본문에 시안(front.css, 보라 --color)
   스케일을 입힌다. 루트 10px(반응형 8/7px) 환경이라 rem 값이 그대로 시안과 호응.
   ※ 충돌 방지: 본문 규칙은 전부 `.sub-body` 스코프 (front.css 의 무접두 .tabs/.muted 등과 분리).
   ============================================================================ */
.sub-body { padding: 2.5rem 0 2rem; color: #333; line-height: 1.6; }
.sub-body .inner { max-width: 100rem; }

/* 페이지 헤더 — 시안 .sub-visual(풀블리드 이미지 배너)을 걷어내고 가벼운 텍스트 헤더로 대체.
   작은 브레드크럼 + 제목. 제목 좌측 세로 강조 바(┃)로 "페이지명" 인상 + 헤더 앵커링. */
.sub-head { margin-bottom: 2.4rem; }
.sub-head .path { display: flex; align-items: center; gap: .8rem; font-size: 1.6rem; color: #888; margin-bottom: 1.4rem; }
.sub-head .path .home { display: inline-flex; align-items: center; color: #888; }
.sub-head .path a { color: #555; text-decoration: none; transition: color .2s ease; }
.sub-head .path a:hover { color: var(--color); }
/* 구분자 = 꺾쇠(›) — 부모›자식 위계/방향 표현(과거 점은 위계가 안 드러남). 빈 .dot span 에 글리프 주입.
   색은 글자보다 옅게(#aaa) 두어 항목이 도드라지게. */
.sub-head .path .dot { flex: none; width: auto; height: auto; background: none; border-radius: 0;
    color: #aaa; font-size: 1.5rem; line-height: 1; }
.sub-head .path .dot::before { content: '\203A'; }
.sub-head .path .current { color: #333; }
/* 상세 꼬리 크럼(글 제목) — 길면 말줄임 */
.sub-head .path .crumb-title { display: inline-block; max-width: 32rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
/* 좌측 세로 강조 바 — 상세에선 페이지 타이틀(바 O) vs 글 제목(바 X)으로 위계도 구분 */
.sub-head h2 { position: relative; padding-left: 1.8rem; font-size: 3rem; font-weight: 700; color: #222; line-height: 1.3; }
.sub-head h2::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 2.2rem; background: var(--color); border-radius: 2px; }

/* 브레드크럼 형제-점프 드롭다운 (nice-select) — 시안 동작 복원, 깔끔한 텍스트 헤더 톤으로 최소화.
   front.js 가 .path 의 <select> 를 .nice-select 로 변환하고 옵션 클릭 시 페이지 이동을 처리한다. */
.sub-head .path .nice-select { float: none; display: inline-flex; align-items: center; height: auto; line-height: 1.4;
    border: 0; border-radius: 0; background: transparent; padding: 0 2.2rem 0 0; margin: 0;
    font-size: 1.6rem; color: #777; transition: color .2s ease; }
.sub-head .path .nice-select:hover { color: var(--color); }
.sub-head .path .nice-select:after { right: .6rem; width: .7rem; height: .7rem; margin-top: -.55rem;
    border-bottom: 1.5px solid #aaa; border-right: 1.5px solid #aaa; transition: all .2s ease; }
.sub-head .path .nice-select:hover:after { border-color: var(--color); }
.sub-head .path .nice-select .list { min-width: 15rem; margin-top: 1rem; padding: .6rem 0;
    border: 1px solid #eee; border-radius: 1rem; box-shadow: 0 1rem 3rem rgba(0,0,0,.08); }
.sub-head .path .nice-select .option { min-height: auto; line-height: 1.6; padding: 1rem 1.8rem;
    font-size: 1.5rem; color: #666; }
.sub-head .path .nice-select .option:hover,
.sub-head .path .nice-select .option.focus,
.sub-head .path .nice-select .option.selected.focus { background: var(--color-soft); color: var(--color); }
.sub-head .path .nice-select .option.selected { color: var(--color); font-weight: 600; }

/* 공통 버튼 (pill, 시안 톤) */
.sub-body .btn { display: inline-flex; align-items: center; justify-content: center; height: 4.4rem;
    padding: 0 2.4rem; border-radius: .8rem; border: 1px solid var(--color); background: var(--color);
    color: #fff; font-size: 1.5rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: all .25s ease; }
.sub-body .btn:hover { background: #fff; color: var(--color); }
.sub-body .btn.secondary { background: #fff; color: #555; border-color: #ddd; }
.sub-body .btn.secondary:hover { border-color: var(--color); color: var(--color); }
.sub-body .btn.danger { background: #fff; color: #c0392b; border-color: #e3b4b4; }
.sub-body .btn.danger:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

.sub-body .flash { background: var(--color-soft); color: var(--color-deep); border-radius: 1rem; padding: 1.4rem 1.8rem; margin-bottom: 2rem; font-size: 1.5rem; }
.sub-body .errors { list-style: none; background: #fdecec; color: #c0392b; border-radius: 1rem; padding: 1.4rem 1.8rem; margin-bottom: 2rem; font-size: 1.5rem; }
.sub-body .errors li + li { margin-top: .5rem; }
.sub-body .tip { color: #999; font-size: 1.4rem; }

/* 찾기 도구 — 말머리 필터(좌) + 키워드 검색(우) */
.sub-body .list-tools { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sub-body .list-tools .board-cats { margin-bottom: 0; }
.sub-body .list-search { display: flex; flex: none; }
.sub-body .list-search input[type="text"] { height: 3.8rem; min-width: 18rem; border: 1px solid #ddd; border-right: 0;
    border-radius: .8rem 0 0 .8rem; padding: 0 1.4rem; font-size: 1.4rem; color: #222; background: #fff; }
.sub-body .list-search input[type="text"]:focus { outline: none; border-color: var(--color); }
.sub-body .list-search button { height: 3.8rem; padding: 0 1.8rem; border: 1px solid var(--color); border-radius: 0 .8rem .8rem 0;
    background: var(--color); color: #fff; font-size: 1.4rem; font-weight: 600; cursor: pointer; transition: all .2s ease; }
.sub-body .list-search button:hover { background: #fff; color: var(--color); }
.sub-body .search-meta { margin: 0 0 1.5rem; font-size: 1.5rem; color: #888; }
.sub-body .search-meta strong { color: var(--color); }

/* 결과 바 — 총 건수(좌) + 현재 페이지(우). 목록 위에 두는 "동작하는 시스템" 신뢰 신호.
   얇은 구분선 위에 얹어 목록 헤더처럼 보이게. */
.sub-body .list-count { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    margin: 0 0 1.2rem; padding-bottom: 1.1rem; border-bottom: 2px solid #333; font-size: 1.4rem; color: #777; }
.sub-body .list-count strong { color: var(--color); font-weight: 700; }
.sub-body .list-count .lc-page { color: #aaa; font-size: 1.3rem; }

/* 빈 상태 — 옅은 카드 + 문서 아이콘. 데이터 0건일 때도 미완성이 아닌 "비어있는 화면"으로. */
.sub-body .list-empty { display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
    padding: 5.5rem 2rem; text-align: center; border: 1px solid var(--line); border-radius: 1.4rem; background: #fafafa; }
.sub-body .list-empty .le-icon { width: 4.8rem; height: 4.8rem; border-radius: 50%; background: var(--color-soft);
    display: inline-flex; align-items: center; justify-content: center; }
.sub-body .list-empty .le-icon::before { content: ''; width: 1.8rem; height: 2.2rem; border: 2px solid var(--color); border-radius: .3rem;
    background: linear-gradient(var(--color), var(--color)) no-repeat, linear-gradient(var(--color), var(--color)) no-repeat;
    background-size: 1rem 2px; background-position: center .55rem, center 1.05rem; }
.sub-body .list-empty .le-text { margin: 0; font-size: 1.7rem; font-weight: 600; color: #555; }
.sub-body .list-empty .le-sub { margin: 0; font-size: 1.4rem; color: #aaa; }

/* 말머리/카테고리 탭 (pill) */
.sub-body .board-cats { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.sub-body .board-cats a { display: inline-flex; align-items: center; height: 3.8rem; padding: 0 1.8rem;
    border-radius: .8rem; border: 1px solid #ddd; font-size: 1.5rem; color: #666; text-decoration: none; transition: all .25s ease; }
.sub-body .board-cats a:hover { border-color: var(--color); color: var(--color); }
.sub-body .board-cats a.on { background: var(--color); border-color: var(--color); color: #fff; }

/* 목록 테이블 (게시판) — 검정 굵은선 제거, 옅은 구분선 + 넉넉한 행 여백 + 부드러운 hover */
.sub-body .board-list { width: 100%; border-collapse: collapse; font-size: 1.7rem; }
.sub-body .board-list th, .sub-body .board-list td { padding: 1.35rem 1.2rem; border-bottom: 1px solid var(--line); text-align: center; }
.sub-body .board-list thead th { font-size: 1.4rem; color: #999; font-weight: 600; background: transparent; border-bottom: 1px solid var(--line); padding-top: 1.1rem; padding-bottom: 1.1rem; }
.sub-body .board-list .c-title { text-align: left; }
/* 말머리 고정폭 슬롯 — 제목 시작 위치 정렬(말머리 쓰는 게시판에서만 렌더) */
.sub-body .board-list .cat-slot { display: inline-block; width: 7rem; vertical-align: middle; }
.sub-body .board-list .cat-slot .cat-label { margin-right: 0; }
.sub-body .board-list .c-no { width: 7rem; color: #bbb; font-size: 1.4rem; }
.sub-body .board-list .c-author { width: 11rem; color: #888; font-size: 1.4rem; }
.sub-body .board-list .c-date { width: 11rem; color: #aaa; font-size: 1.4rem; }
.sub-body .board-list .c-view { width: 7rem; color: #aaa; font-size: 1.4rem; }
.sub-body .board-list tbody tr { transition: background .15s ease; }
.sub-body .board-list tbody tr:hover { background: var(--color-soft); }
.sub-body .board-list tr.pinned { background: var(--color-soft); }
/* 제목 = 행의 주연. 한 단계 키우고 굵게, 보조 컬럼(번호·날짜·조회)과 위계 분리. */
.sub-body .board-list .c-title a { color: #1f1f1f; text-decoration: none; font-weight: 600; font-size: 1.65rem; }
.sub-body .board-list .c-title a:hover { color: var(--color); text-decoration: underline; }
.sub-body .board-list .cmt { color: var(--color); font-weight: 700; margin-left: .6rem; }
.sub-body .board-list .empty { color: #999; padding: 6rem 0; }

/* 뱃지/말머리 라벨 — 목록·상세 공통 */
.sub-body .notice-badge { display: inline-block; padding: .2rem 1rem; background: var(--color); color: #fff;
    border-radius: 3rem; font-size: 1.3rem; font-weight: 600; vertical-align: middle; }
.sub-body .cat-label { display: inline-block; margin-right: .6rem; padding: .2rem 1rem; background: var(--color-soft);
    color: var(--color); border-radius: 3rem; font-size: 1.4rem; vertical-align: middle; }

/* 단순 목록 (공지 — 말머리슬롯 + 제목 + 날짜) — 옅은 구분선 + 타이트한 행 여백 */
.sub-body .notice-list { list-style: none; padding: 0; margin: 0; }
.sub-body .notice-list li { display: flex; align-items: center; gap: 1.2rem; padding: 1.35rem 1.2rem; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.sub-body .notice-list li:hover { background: var(--color-soft); }
.sub-body .notice-list li.pinned { background: var(--color-soft); }
/* 말머리 고정폭 슬롯 — 제목 시작 위치 정렬. 슬롯 내부는 좌측 정렬. */
.sub-body .notice-list .ntag { flex: none; width: 5.5rem; display: flex; align-items: center; }
.sub-body .notice-list .cat { color: var(--color); font-size: 1.4rem; }
/* 고정 배지 — 제목 바로 앞 prefix */
.sub-body .notice-list .pin { display: inline-block; margin-right: .7rem; padding: .2rem 1rem; background: var(--color); color: #fff; border-radius: 3rem; font-size: 1.3rem; font-weight: 600; vertical-align: middle; }
/* 제목 = 행의 주연. 키우고 굵게. 날짜는 보조로 낮춤. */
.sub-body .notice-list a { flex: 1; min-width: 0; color: #1f1f1f; text-decoration: none; font-size: 1.65rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-body .notice-list a:hover { color: var(--color); }
.sub-body .notice-list .date { flex: none; color: #aaa; font-size: 1.4rem; }

/* 목록 하단 — 숫자형 페이지네이션 + 글쓰기 (3열 그리드: 가운데 페이저 중앙정렬, 우측 글쓰기) */
.sub-body .board-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 3rem; gap: 1rem; }
.sub-body .board-foot .pagination { grid-column: 2; margin: 0; }
.sub-body .board-foot .write-btn { grid-column: 3; justify-self: end; }
.sub-body .pagination { display: flex; align-items: center; justify-content: center; gap: .6rem; margin: 4rem 0 0; }
.sub-body .pagination .pg-num, .sub-body .pagination .pg-arrow { display: inline-flex; align-items: center; justify-content: center;
    min-width: 4rem; height: 4rem; padding: 0 .6rem; border-radius: .8rem; font-size: 1.6rem; color: #666; text-decoration: none; transition: all .2s ease; }
.sub-body .pagination a.pg-num:hover, .sub-body .pagination a.pg-arrow:hover { background: var(--color-soft); color: var(--color); }
.sub-body .pagination .pg-num.on { background: var(--color); color: #fff; font-weight: 600; }
.sub-body .pagination .pg-arrow { font-size: 2rem; color: #999; }
.sub-body .pagination .pg-arrow.disabled { color: #ddd; pointer-events: none; }
.sub-body .pagination .pg-gap { color: #bbb; padding: 0 .2rem; }

/* 상세 (게시판 글 / 공지) */
.sub-body .crumb { font-size: 1.5rem; margin-bottom: 1rem; }
.sub-body .crumb a { color: var(--color); text-decoration: none; }
.sub-body .post-head { border-bottom: 1px solid var(--line); padding: 0 0 1.5rem; margin-bottom: 2.2rem; }
/* 글 제목 — 페이지명(.sub-head h2 3rem)보다 한 단계 작게 둬 위계 구분 */
.sub-body .post-head h1 { font-size: 2.4rem; font-weight: 700; line-height: 1.4; margin: 0; color: #222; word-break: keep-all; }
/* 상세 제목 내 뱃지 — 목록과 동일 vocabulary(고정 pill + 말머리). 제목 크기에 휩쓸리지 않게 소형 고정.
   공지=플레인 보라 말머리(.cat, 목록과 동일) / 게시판=틴트 pill 말머리(.cat-label, 보드 목록과 동일). */
.sub-body .post-head h1 .notice-badge, .sub-body .post-head h1 .cat-label { margin-right: .8rem; vertical-align: middle; }
.sub-body .post-head h1 .cat { font-size: 1.6rem; color: var(--color); font-weight: 600; margin-right: .8rem; vertical-align: middle; }
.sub-body .post-meta { margin-top: .7rem; color: #999; font-size: 1.5rem; }
.sub-body .post-meta .sep { margin: 0 .8rem; color: #ddd; }
.sub-body .post-meta .pm-author { color: #555; font-weight: 600; }

/* 이전·다음 글 네비게이션 — 본문 아래. 다음글(더 최신)=위, 이전글(더 과거)=아래.
   목록↔상세 단절(막다른 길) 해소. 라벨 고정폭 + 제목 말줄임. */
.sub-body .post-nav { margin: 3rem 0 0; border-top: 1px solid var(--line); }
.sub-body .post-nav .pn-row { display: flex; align-items: center; gap: 1.6rem; padding: 1.5rem .6rem;
    border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s ease; }
.sub-body .post-nav .pn-row:hover { background: var(--color-soft); }
.sub-body .post-nav .pn-label { flex: none; display: inline-flex; align-items: center; gap: .6rem; width: 7rem;
    font-size: 1.4rem; font-weight: 600; color: #888; }
.sub-body .post-nav .pn-arrow { color: var(--color); font-size: 1.5rem; line-height: 1; }
.sub-body .post-nav .pn-title { flex: 1; min-width: 0; color: #444; font-size: 1.55rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-body .post-nav .pn-row:hover .pn-title { color: var(--color); }
/* 줄글 가독 캡: 본문 텍스트는 텍스트 레일(1000) 안에서 다시 80rem(800px)로 좁혀 한 줄 길이를 가독 범위로.
   좌측 정렬(margin auto 없음) → 제목/메타와 좌측 라인 정렬. 본문 내 이미지는 max-width:100%라 캡 안에서 표시. */
.sub-body .post-body { font-size: 1.8rem; line-height: 1.9; color: #333; min-height: 12rem; padding-bottom: 3rem; max-width: 80rem; }
.sub-body .post-body img, .sub-body .post-image img { max-width: 100%; height: auto; border-radius: .8rem; }
/* 리치 본문(content_format=html) 타이포그래피 — sanitize 된 HTML 렌더 영역. 약관(terms-show) 톤과 동형. */
.sub-body .post-body-rich h2 { font-size: 2rem; font-weight: 700; color: #222; padding-bottom: .4rem; border-bottom: 1px solid #e5e5e5; margin: 2.6rem 0 .9rem; }
.sub-body .post-body-rich h3 { font-size: 1.8rem; font-weight: 700; color: #333; margin: 1.6rem 0 .5rem; }
.sub-body .post-body-rich h4 { font-size: 1.6rem; font-weight: 600; color: #444; margin: 1.1rem 0 .4rem; }
.sub-body .post-body-rich p { margin: .6rem 0; }
.sub-body .post-body-rich ul, .sub-body .post-body-rich ol { margin: .6rem 0; padding-left: 2rem; }
.sub-body .post-body-rich li { margin: .25rem 0; }
.sub-body .post-body-rich blockquote { margin: .8rem 0; padding: .5rem 1.2rem; border-left: 3px solid #ccc; color: #555; background: #f8f9fa; }
.sub-body .post-body-rich a { color: var(--color); text-decoration: underline; }
.sub-body .post-image { margin-bottom: 2rem; }
.sub-body .post-files { background: var(--color-soft); border: 1px solid var(--line); border-radius: 1.2rem; padding: 2rem 2.4rem; margin-bottom: 3rem; }
.sub-body .post-files strong { font-size: 1.6rem; color: #555; }
.sub-body .post-files ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.sub-body .post-files li { margin: .6rem 0; }
.sub-body .post-files a { color: var(--color); text-decoration: none; font-size: 1.6rem; }
.sub-body .post-actions { display: flex; gap: 1rem; align-items: center; justify-content: center; padding-top: 3rem; border-top: 1px solid #eee; }

/* 댓글 */
.sub-body .comments { margin-top: 5rem; }
.sub-body .comments h2 { font-size: 2.2rem; font-weight: 600; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.sub-body .cmt-item { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.sub-body .cmt-meta { display: flex; align-items: center; gap: 1rem; font-size: 1.5rem; }
.sub-body .cmt-author { font-weight: 600; color: #444; }
.sub-body .muted { color: #aaa; }
.sub-body .cmt-text { font-size: 1.6rem; white-space: pre-wrap; margin: .8rem 0; color: #333; line-height: 1.6; }
.sub-body .cmt-reply { margin: 1.2rem 0 0 2.5rem; padding-left: 1.8rem; border-left: 2px solid #eee; }
.sub-body .link-btn { background: none; border: none; color: #c0392b; cursor: pointer; padding: 0; font-size: 1.4rem; text-decoration: underline; }
.sub-body .reply-toggle { margin-top: .8rem; }
.sub-body .reply-toggle summary { cursor: pointer; color: var(--color); font-size: 1.5rem; }
.sub-body .cmt-form { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; margin-top: 2rem; }
.sub-body .cmt-form.reply { margin: 1rem 0; }
.sub-body .cmt-form textarea { width: 100%; min-height: 8rem; border: 1px solid #ddd; border-radius: 1rem; padding: 1.4rem 1.6rem; font-size: 1.6rem; line-height: 1.6; }
.sub-body .cmt-form button[type="submit"] { height: 4.6rem; padding: 0 2.4rem; border-radius: 4rem; border: 1px solid var(--color);
    background: var(--color); color: #fff; font-size: 1.6rem; font-weight: 600; cursor: pointer; transition: all .25s ease; }
.sub-body .cmt-form button[type="submit"]:hover { background: #fff; color: var(--color); }
.sub-body .no-cmt { padding: 3rem 0; font-size: 1.6rem; }
.sub-body .login-hint { margin-top: 2rem; font-size: 1.6rem; }
.sub-body .login-hint a { color: var(--color); }

/* 글쓰기 폼 */
.sub-body .board-form table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.sub-body .board-form th { text-align: left; vertical-align: top; padding: 2rem 2rem 2rem 1rem; width: 14rem;
    font-size: 1.6rem; font-weight: 600; color: #444; background: #fafafa; border-bottom: 1px solid #eee; white-space: nowrap; }
.sub-body .board-form td { padding: 1.6rem 1rem; border-bottom: 1px solid #eee; }
.sub-body .board-form input[type="text"], .sub-body .board-form input[type="url"], .sub-body .board-form textarea, .sub-body .board-form select {
    border: 1px solid #ddd; border-radius: 1rem; padding: 1.2rem 1.6rem; font-size: 1.6rem; color: #222; background: #fff; }
.sub-body .board-form input[type="text"]:focus, .sub-body .board-form input[type="url"]:focus, .sub-body .board-form textarea:focus, .sub-body .board-form select:focus { outline: none; border-color: var(--color); }
.sub-body .board-form input[type="text"], .sub-body .board-form input[type="url"] { width: 100%; }
.sub-body .board-form textarea { width: 100%; min-height: 24rem; line-height: 1.7; }
.sub-body .board-form select { height: 4.8rem; }
.sub-body .board-form .req { color: var(--color); }
.sub-body .board-form .att-row { display: flex; align-items: center; gap: 1rem; padding: .5rem 0; font-size: 1.6rem; }
.sub-body .board-form .att-row .att-name { color: #333; }
.sub-body .form-actions { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 3rem; }

/* ============================================================================
   아티클 목록/상세 공통 — /media(언론)·/movie(영상)·/story(당신의 이야기)
   tl-* = 썸네일 행 목록(언론·스토리 공유) / vg-* = 영상 카드 그리드.
   상세는 게시판과 동일한 .post-* vocabulary 재사용 + 여기의 소보강(post-sub·post-embed·pm-link).
   ※ `.sub-body` 스코프 + 접두사 — 페이지 인라인 <style> 금지 원칙(fm-* 과 동일).
   ============================================================================ */
/* 썸네일 행 목록 — 좌측 고정비 썸네일(16:11) + 우측 본문. hover 는 목록 공통 틴트. */
.sub-body .tl-list { list-style: none; margin: 0; padding: 0; }
.sub-body .tl-item { display: flex; gap: 2rem; align-items: flex-start; padding: 2rem .6rem; border-bottom: 1px solid var(--line); transition: background .15s ease; }
.sub-body .tl-item:hover { background: var(--color-soft); }
.sub-body .tl-thumb { flex: none; }
.sub-body .tl-thumb img { width: 16rem; height: 11rem; object-fit: cover; border-radius: .8rem; display: block; background: #f4f4f4; }
.sub-body .tl-body { flex: 1; min-width: 0; }
/* 키커 = 언론사명 등 출처 라벨(제목 위 소형 플럼) */
.sub-body .tl-kicker { font-size: 1.4rem; font-weight: 600; color: var(--color); margin-bottom: .3rem; }
.sub-body .tl-title { display: inline; font-size: 1.7rem; font-weight: 600; color: #1f1f1f; text-decoration: none; line-height: 1.5; word-break: keep-all; }
.sub-body .tl-title:hover { color: var(--color); }
.sub-body .tl-out { font-size: 1.4rem; color: var(--color); text-decoration: none; margin-left: .8rem; white-space: nowrap; }
.sub-body .tl-out:hover { text-decoration: underline; }
.sub-body .tl-sub { font-size: 1.45rem; color: #777; margin-top: .4rem; }
.sub-body .tl-info { font-size: 1.45rem; color: #666; margin-top: .4rem; }
.sub-body .tl-info span + span { margin-left: .5rem; }
.sub-body .tl-meta { font-size: 1.35rem; color: #aaa; margin-top: .8rem; }
/* 영상 카드 그리드 — 16:9 썸네일 + 카테고리/제목/날짜. 썸네일 없으면 재생 삼각형 플레이스홀더. */
.sub-body .vg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); gap: 3rem 2rem; }
.sub-body .vg-thumb { display: block; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: var(--color-soft); }
.sub-body .vg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.sub-body .vg-item:hover .vg-thumb img { transform: scale(1.04); }
.sub-body .vg-ph { display: flex; align-items: center; justify-content: center; height: 100%; }
.sub-body .vg-ph::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 1.1rem 0 1.1rem 1.9rem; border-color: transparent transparent transparent var(--color); opacity: .5; }
.sub-body .vg-cat { font-size: 1.35rem; font-weight: 600; color: var(--color); margin: 1.1rem 0 .2rem; }
/* 제목 = 2줄 클램프 + 2줄 높이 예약(min-height) — 제목 길이와 무관하게 카드가 같은 공간 점유.
   keep-all 은 유지하되 공백 없는 장문이 카드 폭을 뚫지 않게 overflow-wrap:anywhere 가 최후 줄바꿈. */
.sub-body .vg-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1.6rem; font-weight: 600; color: #1f1f1f; text-decoration: none; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; min-height: 2.9em; margin-top: 1rem; }
.sub-body .vg-cat + .vg-title { margin-top: 0; }
.sub-body .vg-title:hover { color: var(--color); }
.sub-body .vg-date { font-size: 1.35rem; color: #aaa; margin-top: .5rem; }
/* 사진 갤러리형(vg-photo 변형) — 영상형 16:9 대신 4:3 사진 카드. 플레이스홀더는 재생 삼각형
   대신 사진 아이콘(mask=알파 기준이라 stroke 색 무관, 칠은 background-color). 배지 기준점은 vg-thumb. */
.sub-body .vg-photo .vg-thumb { aspect-ratio: 4 / 3; position: relative; }
.sub-body .vg-photo .vg-ph::before { width: 4rem; height: 4rem; border: 0; background-color: var(--color); opacity: .45; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E") no-repeat center / contain; }
.sub-body .vg-count { position: absolute; right: .8rem; bottom: .8rem; z-index: 1; padding: .3rem .9rem; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.2rem; font-weight: 600; line-height: 1.6; }
/* 시술 전후형 목록 카드 — 썸네일 자리를 전/후 2분할(vg-ba). 반쪽이 태그·자물쇠 오버레이 기준점,
   빈 역할 반쪽은 카드 배경(--color-soft)만 노출. 자물쇠는 비로그인 강블러본 위 표식(상세 오버레이 축약). */
.sub-body .vg-ba { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; }
.sub-body .vg-ba .vg-ba-half { position: relative; display: block; overflow: hidden; }
.sub-body .vg-ba .vg-ba-half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sub-body .vg-ba-tag { position: absolute; left: .6rem; top: .6rem; z-index: 1; padding: .15rem .8rem; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 1.15rem; font-weight: 700; line-height: 1.7; }
.sub-body .vg-ba-half--after .vg-ba-tag { background: var(--color); }
.sub-body .vg-ba-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.2rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.sub-body .vg-ba-lock .icon-lock { width: 1em; height: 1em; margin-right: 0; opacity: .95; }
/* 전후형 목록 그리드 변형(vg-list--ba) — 기본 3열이면 반쪽이 160px 좁은 기둥이라 2열 고정
   + 카드 8:3 = 반쪽 4:3(상세 ba-img 와 동일 비율). 전/후 첨부 없는 폴백 단일 대표 카드도
   그리드 통일 위해 같은 8:3. 모바일은 1열 적층. */
.sub-body .vg-list--ba { grid-template-columns: repeat(2, 1fr); }
.sub-body .vg-list--ba .vg-thumb { aspect-ratio: 8 / 3; }
@media (max-width: 768px) { .sub-body .vg-list--ba { grid-template-columns: 1fr; } }
/* 사진 갤러리형 상세 슬라이더(post-gallery) — 마크업은 둘러보기 갤러리(.gallery-slider)의 front.js
   자동 초기화 계약 재사용, 스타일은 별도 스코프(블록 인라인의 1080캡·2:1 크롭 미적용).
   본체 4:3 + cover — contain 은 세로 사진에서 WebKit(아이폰) 좌우 흰 기둥이라 금지.
   Swiper 구조 CSS 는 reset.css 가 swiper.min.css @import 로 전역 로드. */
.sub-body .post-gallery { margin: 0 0 3rem; }
.sub-body .post-gallery .gallery-main { position: relative; }
.sub-body .post-gallery .gallery-main .swiper-container { border-radius: .8rem; overflow: hidden; background: #f2f2f2; }
.sub-body .post-gallery .gallery-main .swiper-slide a { display: block; }
.sub-body .post-gallery .gallery-main .swiper-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.sub-body .post-gallery .gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 4.4rem; height: 4.4rem; border-radius: 50%; background: rgba(255, 255, 255, .9); border: 1px solid #e5e5e5; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sub-body .post-gallery .gallery-arrow--prev { left: 1rem; }
.sub-body .post-gallery .gallery-arrow--next { right: 1rem; }
.sub-body .post-gallery .gallery-arrow.swiper-button-disabled { opacity: .35; cursor: default; }
/* 썸네일 스트립 — 스크롤바 숨김, 가려진 썸네일이 있을 때만 가장자리 페이드 힌트(front.js fade-left/right). */
.sub-body .post-gallery .gallery-thumbs-wrap { position: relative; margin-top: 1.2rem; }
.sub-body .post-gallery .gallery-thumbs-wrap::before, .sub-body .post-gallery .gallery-thumbs-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 4rem; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .25s; }
.sub-body .post-gallery .gallery-thumbs-wrap::before { left: 0; background: linear-gradient(to right, var(--paper, #fff), rgba(255, 255, 255, 0)); }
.sub-body .post-gallery .gallery-thumbs-wrap::after { right: 0; background: linear-gradient(to left, var(--paper, #fff), rgba(255, 255, 255, 0)); }
.sub-body .post-gallery .gallery-thumbs-wrap.fade-left::before { opacity: 1; }
.sub-body .post-gallery .gallery-thumbs-wrap.fade-right::after { opacity: 1; }
.sub-body .post-gallery .gallery-thumbs { display: flex; gap: 1rem; justify-content: safe center; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.sub-body .post-gallery .gallery-thumbs::-webkit-scrollbar { display: none; }
/* 썸네일 = 4:3 여섯 칸이 본체 폭에 꽉 차는 크기. 7장 이상이면 가로 스크롤 필름스트립. */
.sub-body .post-gallery .gallery-thumb { flex: 0 0 auto; width: calc((100% - 5rem) / 6); border: 2px solid transparent; border-radius: .6rem; overflow: hidden; padding: 0; cursor: pointer; background: none; opacity: .55; transition: opacity .2s, border-color .2s; }
.sub-body .post-gallery .gallery-thumb.on { opacity: 1; border-color: var(--color); }
.sub-body .post-gallery .gallery-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
/* 점 네비게이션 = 모바일 전용(데스크톱은 썸네일 스트립). */
.sub-body .post-gallery .gallery-dots { display: none; }
@media (max-width: 768px) {
    .sub-body .post-gallery .gallery-arrow { width: 3.6rem; height: 3.6rem; }
    .sub-body .post-gallery .gallery-thumbs-wrap { display: none; }
    .sub-body .post-gallery .gallery-dots { display: flex; justify-content: center; gap: .8rem; margin-top: 1.4rem; }
    .sub-body .post-gallery .gallery-dots .swiper-pagination-bullet { width: .7rem; height: .7rem; border-radius: 50%; background: #d4d4d4; border: 0; padding: 0; margin: 0; opacity: 1; cursor: pointer; transition: width .2s, background .2s; }
    .sub-body .post-gallery .gallery-dots .swiper-pagination-bullet-active { width: 2rem; border-radius: .4rem; background: var(--color); }
}
/* 시술 전후형(before_after) 상세 — 전/후 2열 비교(ba- prefix, [[feedback_front_css_class_collision]]).
   시술 전 비로그인 = 블러본 이미지 위 로그인 안내 오버레이(ba-locked). 블러는 서버 파생본이
   전담 — CSS blur 미사용(원본 미전송이 방어선, 여기는 표현만). 모바일은 1열 적층. */
.sub-body .ba-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 0 0 3rem; }
.sub-body .ba-col { display: flex; flex-direction: column; gap: 1.2rem; }
.sub-body .ba-label { text-align: center; font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; color: #666; padding: .5rem 0; border-radius: .6rem; background: #f5f5f5; }
.sub-body .ba-col--after .ba-label { color: var(--color); background: color-mix(in srgb, var(--color) 8%, #fff); }
.sub-body .ba-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .8rem; display: block; background: #f2f2f2; }
.sub-body .ba-ph { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: .8rem; background: #f2f2f2; }
.sub-body .ba-locked { position: relative; border-radius: .8rem; overflow: hidden; }
.sub-body .ba-lock-overlay {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1rem; text-align: center; text-decoration: none; color: #fff; font-size: 1.4rem; line-height: 1.5;
    background: rgba(20, 20, 20, .45); padding: 1.5rem;
}
.sub-body .ba-lock-icon { font-size: 2.4rem; line-height: 1; }
/* 오버레이 배지 안에서는 공용 자물쇠 아이콘을 또렷하게(흰색 유지) — 목록용 여백·반투명 해제 */
.sub-body .ba-lock-icon .icon-lock { width: 1em; height: 1em; margin-right: 0; vertical-align: middle; opacity: 1; }
.sub-body .ba-lock-btn { display: inline-block; padding: .6rem 2rem; border-radius: 999rem; background: #fff; color: #222; font-weight: 700; font-size: 1.3rem; }
.sub-body .ba-lock-overlay:hover .ba-lock-btn { background: var(--color); color: #fff; }
@media (max-width: 768px) {
    .sub-body .ba-compare { grid-template-columns: 1fr; gap: 2.4rem; }
}

/* 상세 소보강 — 부제(제목 아래), 메타 내 외부 링크, 시술정보(스토리) 진한 메타 줄, 영상 임베드 */
.sub-body .post-head .post-sub { margin: .8rem 0 0; font-size: 1.6rem; color: #666; line-height: 1.6; word-break: keep-all; }
.sub-body .post-meta a.pm-link { color: var(--color); text-decoration: none; }
.sub-body .post-meta a.pm-link:hover { text-decoration: underline; }
.sub-body .post-meta.pm-info { color: #555; }
.sub-body .post-embed { margin: 0 0 3rem; aspect-ratio: 16 / 9; max-width: 88rem; background: #000; border-radius: 1rem; overflow: hidden; }
.sub-body .post-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
/* 안내 박스(.flash) 안 링크 — 배경이 소프트 플럼이라 딥 플럼 강조 */
.sub-body .flash a { color: var(--color-deep); font-weight: 600; }

/* ── 약관/고지(/legal) — sanitize 된 HTML 본문 타이포그래피.
   위계: 페이지제목(.sub-head h2 3rem) > 장 h2 1.9rem > 조 h3 1.5rem > 본문 1.3rem. ── */
.sub-body .terms-show { line-height: 1.7; color: #333; max-width: 80rem; } /* 줄글 가독 캡(800px) — .post-body 와 동일 기준 */
.sub-body .terms-show .eff { color: #888; font-size: 1.2rem; margin: 0 0 1.4rem; }
.sub-body .terms-show .archived { background: #fff8e1; border: 1px solid #ffe082; color: #8a6d00; padding: .6rem .9rem; border-radius: 4px; font-size: 1.2rem; margin-bottom: 1.2rem; }
.sub-body .terms-show .content-body h2 { font-size: 1.9rem; font-weight: 700; color: #222; padding-bottom: .4rem; border-bottom: 1px solid #e5e5e5; margin: 2.6rem 0 .9rem; }
.sub-body .terms-show .content-body h3 { font-size: 1.5rem; font-weight: 700; color: #333; margin: 1.6rem 0 .5rem; }
.sub-body .terms-show .content-body h4 { font-size: 1.35rem; font-weight: 600; color: #444; margin: 1.1rem 0 .4rem; }
.sub-body .terms-show .content-body p { margin: .6rem 0; }
.sub-body .terms-show .content-body ul, .sub-body .terms-show .content-body ol { margin: .6rem 0; padding-left: 1.6rem; }
.sub-body .terms-show .content-body li { margin: .25rem 0; }
.sub-body .terms-show .content-body blockquote { margin: .8rem 0; padding: .5rem 1rem; border-left: 3px solid #ccc; color: #555; background: #f8f9fa; }
.sub-body .terms-show .content-body img { max-width: 100%; height: auto; border-radius: 4px; margin: .6rem 0; }
/* 개정 이력 링크 (show_history ON 일 때) — 브랜드 플럼 pill(과거 파랑 #1f6feb 은 오프브랜드라 교체) */
.sub-body .terms-history { margin-top: 2.4rem; border-top: 1px solid #eee; padding-top: 1.2rem; }
.sub-body .terms-history h3 { font-size: 1.4rem; font-weight: 700; color: #555; margin-bottom: .6rem; }
.sub-body .terms-history ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.sub-body .terms-history a { font-size: 1.2rem; color: var(--color); text-decoration: none; border: 1px solid var(--color-soft); background: var(--color-soft); border-radius: 4px; padding: .3rem .7rem; transition: all .2s ease; }
.sub-body .terms-history a:hover { border-color: var(--color); }
.sub-body .terms-history a.current { background: var(--color); color: #fff; border-color: var(--color); }

/* ============================================================================
   콘텐츠 페이지 헤더(about-*) — page/show(소개·진료안내 등 블록 페이지) 공통.
   _sub(.sub-body) 가 아닌 base 직결 풀블리드 레이아웃이라 별도 스코프(px 스케일 의도).
   ============================================================================ */
/* 브레드크럼 = 가운데 1080 콘텐츠 프레임(의료진 카드·갤러리와 동일 폭·동심 정렬).
   박스폭 = 1080 + 좌우 거터(2rem) → 콘텐츠가 정확히 1080(그냥 max-width:1080 이면 .inner 기본 패딩 때문에 ~1040 으로 좁아져 카드와 어긋남).
   좁은 화면에서도 좌우 20px 거터 유지(의료진은 부모 .inner 가, 여긴 자체 패딩이 거터 담당). */
.about-crumb { max-width: calc(1080px + 4rem); margin: 0 auto; padding: 40px 2rem 0; }
.about-crumb .sub-head { margin-bottom: 0; }
/* 페이지 헤더(가운데 아이브로 + 제목 + 부제) */
.about-head { padding: 26px 0 40px; text-align: center; }
.about-head__eyebrow { color: var(--color, #994699); font-size: 14px; letter-spacing: .04em; margin: 0 0 10px; font-weight: 600; }
.about-head__title { font-size: 40px; font-weight: 700; color: #222; margin: 0; line-height: 1.25; }
.about-head__sub { margin: 16px auto 0; max-width: 760px; color: #777; font-size: 18px; line-height: 1.7; white-space: pre-line; }
@media (max-width: 768px) {
    .about-head { padding: 40px 0 28px; }
    .about-head__title { font-size: 28px; }
    .about-head__sub { font-size: 16px; padding: 0 20px; }
}

/* ============================================================================
   신청서형 폼 공통(fm-*) + 온라인 상담(cs-*) — /callback·/consult 계열
   세로 스택(label 위·input 아래) 신청서 폼. 표형 board-form 과 구분되는 별도 패턴.
   ※ 전부 `fm-`/`cs-` 접두 + `.sub-body` 스코프 (front.css 무접두 클래스와 충돌 방지).
   ※ 루트 10px 스케일(rem)·브랜드 토큰(--color) 준수 — 페이지 인라인 <style> 금지,
     새 front 폼은 이 컴포넌트를 재사용한다.
   ============================================================================ */
.sub-body .fm-form { max-width: 72rem; }
.sub-body .fm-field { margin-bottom: 2rem; }
.sub-body .fm-field > label { display: block; font-size: 1.5rem; font-weight: 600; color: #444; margin-bottom: .8rem; }
.sub-body .fm-field input[type="text"], .sub-body .fm-field input[type="email"],
.sub-body .fm-field input[type="tel"], .sub-body .fm-field input[type="password"],
.sub-body .fm-field input[type="date"] {
    width: 100%; height: 5rem; border: 1px solid #ddd; border-radius: 1rem; padding: 0 1.6rem;
    font-size: 1.6rem; color: #222; background: #fff; transition: border-color .2s ease; }
/* 네이티브 date — UA 기본(회색 각진 박스, iOS 중앙정렬·높이 무시)을 fm 인풋 톤으로 정규화.
   박스만 통일하고 달력 피커 UX 는 네이티브 유지(모바일 휠/캘린더가 자체 구현보다 낫다). */
.sub-body .fm-field input[type="date"] { -webkit-appearance: none; appearance: none; font-family: inherit; }
.sub-body .fm-field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.sub-body .fm-field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.sub-body .fm-field select { width: 100%; height: 5rem; border: 1px solid #ddd; border-radius: 1rem;
    padding: 0 1.4rem; font-size: 1.6rem; color: #222; background: #fff; }
.sub-body .fm-field textarea { width: 100%; min-height: 16rem; border: 1px solid #ddd; border-radius: 1rem;
    padding: 1.4rem 1.6rem; font-size: 1.6rem; line-height: 1.7; color: #222; background: #fff; resize: vertical; }
.sub-body .fm-field input:focus, .sub-body .fm-field select:focus, .sub-body .fm-field textarea:focus {
    outline: none; border-color: var(--color); }
.sub-body .fm-field input[type="file"] { font-size: 1.5rem; color: #555; }
.sub-body .fm-field .req, .sub-body .fm-check .req { color: var(--color); }
.sub-body .fm-field .err, .sub-body .fm-check .err { margin: .7rem 0 0; font-size: 1.4rem; color: #c0392b; }
.sub-body .fm-field .hint { margin: .7rem 0 0; font-size: 1.35rem; color: #999; line-height: 1.5; word-break: keep-all; }

/* 선택 pill (라디오 — 연락받을 시간대 등). 네이티브 라디오는 숨기고 pill 하이라이트로 표시 */
.sub-body .fm-choices { display: flex; flex-wrap: wrap; gap: .8rem; }
.sub-body .fm-choice { position: relative; }
.sub-body .fm-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sub-body .fm-choice span { display: inline-flex; align-items: center; height: 4.2rem; padding: 0 1.8rem;
    border: 1px solid #ddd; border-radius: 3rem; background: #fff; font-size: 1.5rem; color: #555;
    cursor: pointer; transition: all .2s ease; }
.sub-body .fm-choice:hover span { border-color: var(--color); color: var(--color); }
.sub-body .fm-choice input:checked + span { background: var(--color); border-color: var(--color); color: #fff; font-weight: 600; }
.sub-body .fm-choice input:focus-visible + span { outline: 2px solid var(--color); outline-offset: 2px; }

/* 체크 동의 줄 (개인정보 동의·비밀글 등) — 네이티브 체크박스는 accent-color 로 브랜드화 */
.sub-body .fm-check { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 1.5rem; color: #555; }
.sub-body .fm-check label { display: inline-flex; align-items: center; gap: .8rem; margin: 0; font-weight: 400; font-size: 1.5rem; cursor: pointer; }
.sub-body .fm-check input[type="checkbox"] { width: 1.8rem; height: 1.8rem; accent-color: var(--color); flex: none; }
.sub-body .fm-check .terms-link { font-size: 1.4rem; color: var(--color); text-decoration: underline; text-underline-offset: 3px; }
.sub-body .fm-check .err { flex-basis: 100%; }

/* 2열 그리드 — 짧은 필드 짝(이름/휴대폰 등). 우편번호 짝은 좌측 고정폭 변형 */
.sub-body .fm-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.6rem; }
.sub-body .fm-row--zip { grid-template-columns: 16rem 1fr; }

/* 안내 박스 — 플럼 틴트(auth .notice 와 동형). --warn 은 비가역 액션 경고(탈퇴 등) 레드 틴트 */
.sub-body .fm-tip { background: var(--color-soft); color: var(--color-deep); border-radius: 1rem;
    padding: 1.4rem 1.8rem; margin-bottom: 2.4rem; font-size: 1.5rem; line-height: 1.6; word-break: keep-all; }
.sub-body .fm-tip--warn { background: #fdecec; color: #b0413e; }

/* 액션 줄 — .btn/.btn.secondary(공통 pill 버튼) 조합 */
.sub-body .fm-actions { display: flex; gap: 1rem; align-items: center; margin-top: 3rem; }

/* 완료 카드 (신청/등록 완료) — 중앙 카드 + 체크 아이콘 */
.sub-body .fm-done { max-width: 56rem; margin: 3rem auto; padding: 5rem 4rem; background: #fff;
    border: 1px solid var(--line); border-radius: 1.6rem; text-align: center; }
.sub-body .fm-done .fd-icon { width: 6.4rem; height: 6.4rem; margin: 0 auto 2rem; border-radius: 50%;
    background: var(--color-soft); color: var(--color); display: flex; align-items: center; justify-content: center; }
.sub-body .fm-done .fd-icon svg { width: 3rem; height: 3rem; }
.sub-body .fm-done .fd-title { font-size: 2.2rem; font-weight: 700; color: #222; margin: 0 0 1.2rem; }
.sub-body .fm-done .fd-no { font-size: 1.6rem; color: #555; margin: 0; }
.sub-body .fm-done .fd-no strong { color: var(--color); font-weight: 700; }
.sub-body .fm-done .fd-desc { margin: .8rem 0 0; font-size: 1.5rem; color: #888; line-height: 1.65; word-break: keep-all; }
.sub-body .fm-done .fd-desc a { color: var(--color); text-decoration: underline; text-underline-offset: 3px; }
.sub-body .fm-done .fm-actions { justify-content: center; }
/* 완료 카드 세로 중앙 정렬 — 헤더(브레드크럼+제목)는 상단 유지, 카드만 남는 공간 가운데로.
   :has() 미지원 브라우저는 기존(상단 margin 3rem) 폴백. margin:auto 가 flex 남는 공간을 흡수. */
.page-wrap:has(.fm-done) { display: flex; flex-direction: column; }
.page-wrap:has(.fm-done) > .sub-body { flex: 1 0 auto; display: flex; flex-direction: column; }
.page-wrap:has(.fm-done) > .sub-body > .inner { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; }
.page-wrap:has(.fm-done) .fm-done { margin: auto; width: 100%; }

/* ── 비밀글 자물쇠 아이콘(공용, partials/_icon_lock.twig) — 이모지 대체 선형 SVG.
   글자 크기 비례(em)+currentColor 라 목록 제목·배지·홈 카드 등 어디서나 주변 톤을 따라간다. ── */
.icon-lock { display: inline-block; width: .88em; height: .88em; vertical-align: -0.06em; margin-right: .3em; opacity: .55; }

/* ── 온라인 상담(cs-*) — 목록·상태 배지·문답 스레드 ── */
.sub-body .cs-toolbar { display: flex; justify-content: flex-end; margin-bottom: 1.6rem; }
.sub-body .cs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sub-body .cs-item { display: flex; align-items: center; gap: 1.2rem; padding: 1.6rem .6rem; border-bottom: 1px solid var(--line); }
.sub-body .cs-item .cs-cat { flex: none; font-size: 1.4rem; font-weight: 600; color: var(--color); }
.sub-body .cs-item .cs-subject { flex: 1; min-width: 0; font-size: 1.65rem; font-weight: 600; color: #1f1f1f;
    text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-body .cs-item .cs-subject:hover { color: var(--color); text-decoration: underline; }
.sub-body .cs-item .cs-meta { flex: none; font-size: 1.4rem; color: #aaa; }
.sub-body .cs-item .cs-meta .who { color: #888; }

/* 상태 배지 — 대기(골드 틴트)/답변완료(플럼 틴트)/종료(웜 그레이). 브랜드 팔레트 파생 */
.sub-body .cs-badge { display: inline-flex; align-items: center; flex: none; height: 2.8rem; padding: 0 1.2rem;
    border-radius: 3rem; font-size: 1.3rem; font-weight: 600; }
.sub-body .cs-badge--open     { background: #f7efe0; color: #96733a; }
.sub-body .cs-badge--answered { background: var(--color-soft); color: var(--color-deep); }
.sub-body .cs-badge--closed   { background: #f0eeec; color: #8a857e; }

/* 상세 헤더 — 배지/말머리 줄 + 제목 + 작성 메타 */
.sub-body .cs-head { padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); margin-bottom: 2.4rem; }
.sub-body .cs-head .cs-tags { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.sub-body .cs-head .cs-cat { font-size: 1.4rem; font-weight: 600; color: var(--color); }
.sub-body .cs-head .cs-secret { font-size: 1.4rem; font-weight: 600; color: #b0413e; }
.sub-body .cs-head .cs-subject-h { margin: 0 0 1rem; font-size: 2.4rem; font-weight: 700; color: #1f1f1f; line-height: 1.4; word-break: keep-all; }
.sub-body .cs-head .cs-meta { font-size: 1.4rem; color: #999; }
.sub-body .cs-head .cs-meta strong { color: #555; font-weight: 600; }

/* 문답 스레드 — 환자(좌, 아이보리)/운영자(우, 플럼 틴트) 말풍선 */
.sub-body .cs-thread { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 3rem; }
.sub-body .cs-msg { max-width: 80%; padding: 1.6rem 2rem; border-radius: 1.4rem; }
.sub-body .cs-msg--patient { align-self: flex-start; background: var(--ivory); border-bottom-left-radius: .4rem; }
.sub-body .cs-msg--admin   { align-self: flex-end; background: var(--color-soft); border-bottom-right-radius: .4rem; }
.sub-body .cs-msg .cm-meta { font-size: 1.3rem; color: #999; margin-bottom: .8rem; }
.sub-body .cs-msg .cm-meta strong { color: #555; font-weight: 600; }
.sub-body .cs-msg--admin .cm-meta strong { color: var(--color-deep); }
.sub-body .cs-msg .cm-content { font-size: 1.55rem; line-height: 1.7; color: #333; white-space: pre-wrap; word-break: break-word; }
.sub-body .cs-msg .cm-image { margin-top: 1rem; }
.sub-body .cs-msg .cm-image img { max-width: 28rem; max-height: 28rem; border: 1px solid var(--line); border-radius: .8rem; }

/* 후속 질문 폼 */
.sub-body .cs-reply { border-top: 1px solid var(--line); padding-top: 2.4rem; }
.sub-body .cs-reply h3 { margin: 0 0 1.4rem; font-size: 1.8rem; font-weight: 700; color: #333; }

@media all and (max-width: 800px) {
    /* 목록 행 — 제목 전체폭 줄바꿈 + 메타 아랫줄 */
    .sub-body .cs-item { flex-wrap: wrap; gap: .8rem; }
    .sub-body .cs-item .cs-subject { flex-basis: 100%; order: 3; white-space: normal; word-break: break-all; }
    .sub-body .cs-item .cs-meta { order: 4; }
    .sub-body .cs-msg { max-width: 100%; }
    .sub-body .fm-done { padding: 4rem 2.4rem; }
    .sub-body .fm-actions { flex-wrap: wrap; }
    .sub-body .fm-row, .sub-body .fm-row--zip { grid-template-columns: 1fr; }
}

/* ============================================================================
   예약 신청/조회 (rsv-*) — /reservation 계열. 스텝형 신청 플로우(의료진→달력→시간→폼).
   폼 자체는 fm-* 재사용, 여기는 달력·슬롯·스텝 제목 등 예약 전용 컴포넌트만.
   ※ 전부 `rsv-` 접두 + `.sub-body` 스코프, 브랜드 토큰(--color) 준수.
   ============================================================================ */
.sub-body .rsv-step { margin-bottom: 3.6rem; scroll-margin-top: 2.4rem; }
/* reset.css 의 section{display:block} HTML5 심이 UA [hidden] 을 덮음 — JS 가 건 hidden 존중
   (front.css .sps-nav[hidden] 과 동일 유형 수정) */
.sub-body .rsv-step[hidden] { display: none; }
.sub-body .rsv-step-title { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1rem;
    margin: 0 0 1.6rem; font-size: 1.9rem; font-weight: 700; color: #222; }
.sub-body .rsv-step-title .num { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%;
    background: var(--color); color: #fff; font-size: 1.4rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; }
.sub-body .rsv-doctor-field { max-width: 40rem; }

/* 완료된 스텝(.is-done) — 본문을 접고 제목 줄 오른쪽에 요약+[변경]만 (결제 플로우 요약 패턴) */
.sub-body .rsv-step-done { display: none; margin-left: auto; align-items: center; gap: 1.2rem; min-width: 0; }
.sub-body .rsv-step-done strong { font-size: 1.5rem; font-weight: 600; color: var(--color-deep);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-body .rsv-step.is-done .rsv-step-done { display: inline-flex; }
.sub-body .rsv-step.is-done .rsv-step-body { display: none; }
.sub-body .rsv-step.is-done { margin-bottom: 2rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.sub-body .rsv-step.is-done .rsv-step-title { margin-bottom: 0; }
.sub-body .rsv-step.is-done .rsv-step-title .num { background: var(--color-soft); color: var(--color-deep); }
.sub-body .rsv-change { flex: none; height: 3rem; padding: 0 1.2rem; border: 1px solid #ddd;
    border-radius: 3rem; background: #fff; font-size: 1.3rem; color: #555; cursor: pointer;
    transition: all .2s ease; }
.sub-body .rsv-change:hover { border-color: var(--color); color: var(--color); }

/* 일시 섹션 안 시간 슬롯 블록 — 달력 아래 같은 카드에서 이어짐 */
.sub-body .rsv-slots-block { margin-top: 2.4rem; }

/* 월 내비 — 원형 셰브런 버튼 + 가운데 라벨 */
.sub-body .rsv-month-nav { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.sub-body .rsv-month-nav strong { min-width: 11rem; text-align: center; font-size: 1.8rem; color: #222; }
.sub-body .rsv-month-nav button { display: inline-flex; align-items: center; justify-content: center;
    width: 3.6rem; height: 3.6rem; border: 1px solid #ddd; border-radius: 50%; background: #fff;
    color: #555; cursor: pointer; transition: all .2s ease; }
.sub-body .rsv-month-nav button:hover { border-color: var(--color); color: var(--color); }
.sub-body .rsv-month-nav button svg { width: 1.6rem; height: 1.6rem; }
.sub-body .rsv-msg { font-size: 1.4rem; color: #999; }
.sub-body .rsv-msg:not(:empty) { margin-bottom: 1rem; }

/* 범례 — 달력 상태 톤 안내. 셀 안 반복 텍스트 대신 여기서 1회 설명 */
.sub-body .rsv-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; list-style: none;
    margin: 0 0 1.2rem; padding: 0; font-size: 1.35rem; color: #888; }
.sub-body .rsv-legend li { display: inline-flex; align-items: center; gap: .6rem; }
.sub-body .rsv-legend .chip { display: inline-flex; align-items: center; justify-content: center;
    width: 1.8rem; height: 1.8rem; border-radius: .5rem; border: 1px solid var(--line); }
.sub-body .rsv-legend .lg-avail .chip { background: var(--color-soft); border-color: transparent; }
.sub-body .rsv-legend .lg-rest .chip  { background: #fdecec; border-color: transparent; }
.sub-body .rsv-legend .lg-full .chip  { background: #f5f5f5; }

/* 달력 — 상태 톤: 가능=플럼 틴트+점 / 휴무·휴진=레드 틴트 / 마감·지난날=그레이 */
.sub-body .rsv-cal { width: 100%; max-width: 88rem; border-collapse: collapse; table-layout: fixed; }
/* 로드 중: 그리드를 비우지 않고 디밍만(높이 유지 — 깜빡임 방지). 응답 오면 통째 교체 */
.sub-body .rsv-cal tbody { transition: opacity .15s ease; }
.sub-body .rsv-cal.is-loading tbody { opacity: .45; pointer-events: none; }
.sub-body .rsv-cal th { padding: 1rem 0; font-size: 1.4rem; font-weight: 600; color: #888;
    border-bottom: 1px solid var(--line); }
.sub-body .rsv-cal td { height: 6.4rem; padding: .7rem .4rem; border: 1px solid var(--line);
    text-align: center; vertical-align: top; }
/* 숫자를 원형 박스로 — 오늘 링 표시의 기준. 상태색 규칙이 이보다 뒤에 와서 이긴다 */
.sub-body .rsv-cal .day-num { display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.5rem; font-weight: 600;
    color: #333; line-height: 1; }
.sub-body .rsv-cal .day-sum { margin-top: .1rem; font-size: 1.15rem; color: #999; line-height: 1.3; }
.sub-body .rsv-cal .day-dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%;
    background: var(--color); vertical-align: middle; }
/* 주말 표기(토=블루/일=레드) — 상태색 규칙보다 앞에 둬서 가능/휴진/마감 톤이 우선 */
.sub-body .rsv-cal th.wd-sat, .sub-body .rsv-cal td.wd-sat .day-num { color: #5c7fae; }
.sub-body .rsv-cal th.wd-sun, .sub-body .rsv-cal td.wd-sun .day-num { color: #c0685f; }
.sub-body .rsv-cal td.today .day-num { box-shadow: inset 0 0 0 1.5px var(--color); }
.sub-body .rsv-cal td.empty, .sub-body .rsv-cal td.past { background: #fafafa; }
.sub-body .rsv-cal td.past .day-num { color: #ccc; }
.sub-body .rsv-cal td.full { background: #f5f5f5; }
.sub-body .rsv-cal td.full .day-num, .sub-body .rsv-cal td.full .day-sum { color: #aaa; }
.sub-body .rsv-cal td.rest { background: #fdecec; }
.sub-body .rsv-cal td.rest .day-num, .sub-body .rsv-cal td.rest .day-sum { color: #b0413e; }
.sub-body .rsv-cal td.avail { background: var(--color-soft); cursor: pointer; transition: background .15s ease; }
.sub-body .rsv-cal td.avail .day-num { color: var(--color-deep); }
.sub-body .rsv-cal td.avail:hover, .sub-body .rsv-cal td.selected { background: var(--color); }
.sub-body .rsv-cal td.avail:hover .day-num, .sub-body .rsv-cal td.selected .day-num { color: #fff; }
.sub-body .rsv-cal td.avail:hover .day-dot, .sub-body .rsv-cal td.selected .day-dot { background: #fff; }
.sub-body .rsv-cal td.selected .day-num { box-shadow: none; }
.sub-body .rsv-cal td.today.selected .day-num,
.sub-body .rsv-cal td.today.avail:hover .day-num { box-shadow: inset 0 0 0 1.5px #fff; }

/* 시간 슬롯 — fm-choice 와 동형 pill 버튼 */
.sub-body .rsv-slots-date { font-size: 1.5rem; font-weight: 600; color: var(--color-deep); margin-bottom: 1.2rem; }
.sub-body .rsv-slots { display: flex; flex-wrap: wrap; gap: .8rem; font-size: 1.5rem; color: #999; }
.sub-body .rsv-slot-btn { display: inline-flex; align-items: center; justify-content: center;
    min-width: 8.6rem; height: 4.2rem; padding: 0 1.6rem; border: 1px solid #ddd; border-radius: 3rem;
    background: #fff; font-size: 1.5rem; color: #555; cursor: pointer; transition: all .2s ease; }
.sub-body .rsv-slot-btn:hover { border-color: var(--color); color: var(--color); }
.sub-body .rsv-slot-btn.selected { background: var(--color); border-color: var(--color); color: #fff; font-weight: 600; }
.sub-body .rsv-slot-btn.full { color: #bbb; border-color: #eee; background: #fafafa; cursor: not-allowed; }

/* 제출 상태/에러 메시지 */
.sub-body .rsv-form-msg { margin: 0; font-size: 1.45rem; color: #888; }
.sub-body .rsv-form-msg.err { color: #c0392b; }

/* 조회 결과 표는 마이페이지 my-table/my-badge 재사용 — 여기는 제목만 */
.sub-body .rsv-result-title { margin: 4.5rem 0 1.6rem; font-size: 1.9rem; font-weight: 700; color: #222; }

@media all and (max-width: 800px) {
    .sub-body .rsv-doctor-field { max-width: none; }
    /* 접힌 스텝 요약 — 제목 아랫줄 전체폭(번호 들여쓰기 정렬), [변경]은 우측 끝 */
    .sub-body .rsv-step.is-done .rsv-step-done { flex: 1 1 100%; margin-left: 3.8rem; justify-content: space-between; }
    .sub-body .rsv-cal td { height: 5.6rem; padding: .5rem .2rem; }
    .sub-body .rsv-cal .day-num { min-width: 2.4rem; height: 2.4rem; font-size: 1.4rem; }
    .sub-body .rsv-cal .day-sum { font-size: 1rem; letter-spacing: -.02em; }
    .sub-body .rsv-slot-btn { flex: 1 1 calc(33.333% - .6rem); min-width: 0; }
}

/* ============================================================================
   마이페이지 (my-*) — /me 계정 요약 · 내 정보 폼(fm-* 재사용) · 내 예약 · 계정 관리.
   ※ 전부 `my-` 접두 + `.sub-body` 스코프 (front.css 무접두 클래스와 충돌 방지).
   ============================================================================ */
/* 계정 요약 스트립 — 읽기전용 메타(아이디·가입일·최근 로그인)를 수정 폼에서 분리 */
.sub-body .my-summary { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem 2.4rem;
    flex-wrap: wrap; padding: 2rem 2.4rem; background: var(--ivory); border-radius: 1.4rem; margin-bottom: 4.5rem; }
.sub-body .my-summary .ms-id { display: flex; align-items: baseline; gap: 1rem; }
.sub-body .my-summary .ms-label { font-size: 1.4rem; color: #999; }
.sub-body .my-summary .ms-id strong { font-size: 1.8rem; font-weight: 700; color: var(--ink); }
.sub-body .my-summary .ms-meta { display: flex; flex-wrap: wrap; gap: .4rem 2rem; font-size: 1.4rem; color: #999; }
.sub-body .my-summary .ms-meta strong { color: #555; font-weight: 600; }

/* 섹션 탭 — 한 화면에 한 섹션만(스크롤 축소). auth-tabs 와 같은 CSS 라디오 전환, 언더라인 톤.
   숨긴 라디오도 키보드 포커스·화살표 전환은 동작(웹 표준 라디오 그룹). */
.sub-body .my-tabs { position: relative; }
.sub-body .my-tab-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sub-body .my-tab-nav { display: flex; gap: 3rem; border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.sub-body .my-tab-nav label { position: relative; padding: 0 .2rem 1.3rem; font-size: 1.7rem; font-weight: 600;
    color: #999; cursor: pointer; transition: color .2s ease; }
.sub-body .my-tab-nav label:hover { color: var(--color); }
.sub-body .my-tab-nav label::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.sub-body .my-tab-nav .my-nav-count { display: inline-block; min-width: 2rem; padding: 0 .6rem; margin-left: .2rem;
    border-radius: 2rem; background: var(--color-soft); color: var(--color-deep); font-size: 1.25rem; line-height: 2rem; text-align: center; }
.sub-body .my-tab-radio.my-tab-info:checked ~ .my-tab-nav .my-nav-info,
.sub-body .my-tab-radio.my-tab-rsv:checked  ~ .my-tab-nav .my-nav-rsv,
.sub-body .my-tab-radio.my-tab-acct:checked ~ .my-tab-nav .my-nav-acct { color: var(--ink); }
.sub-body .my-tab-radio.my-tab-info:checked ~ .my-tab-nav .my-nav-info::after,
.sub-body .my-tab-radio.my-tab-rsv:checked  ~ .my-tab-nav .my-nav-rsv::after,
.sub-body .my-tab-radio.my-tab-acct:checked ~ .my-tab-nav .my-nav-acct::after { background: var(--color); }
.sub-body .my-tab-panel { display: none; }
.sub-body .my-tab-radio.my-tab-info:checked ~ .my-tab-panel.my-panel-info,
.sub-body .my-tab-radio.my-tab-rsv:checked  ~ .my-tab-panel.my-panel-rsv,
.sub-body .my-tab-radio.my-tab-acct:checked ~ .my-tab-panel.my-panel-acct { display: block; }

/* 내 예약 테이블 — board-list 와 동형(옅은 구분선 + 넉넉한 행 여백) */
.sub-body .my-table { width: 100%; border-collapse: collapse; font-size: 1.5rem; }
.sub-body .my-table th, .sub-body .my-table td { padding: 1.3rem 1rem; border-bottom: 1px solid var(--line); text-align: center; }
.sub-body .my-table thead th { font-size: 1.35rem; color: #999; font-weight: 600; }
.sub-body .my-table .c-when { white-space: nowrap; }
.sub-body .my-table + .tip { margin-top: 1.2rem; }

/* 상태 배지 — cs-badge 와 동형(브랜드 팔레트 파생). 대기=골드/확정=플럼/완료·미연결=웜그레이/취소=레드 틴트 */
.sub-body .my-badge { display: inline-flex; align-items: center; flex: none; height: 2.6rem; padding: 0 1.1rem;
    border-radius: 3rem; font-size: 1.3rem; font-weight: 600; }
.sub-body .my-badge--pending   { background: #f7efe0; color: #96733a; }
.sub-body .my-badge--confirmed { background: var(--color-soft); color: var(--color-deep); }
.sub-body .my-badge--done      { background: #f0eeec; color: #8a857e; }
.sub-body .my-badge--cancelled { background: #fdecec; color: #c0392b; }
.sub-body .my-badge--none      { background: #f0eeec; color: #8a857e; }

/* 계정 관리 — 항목별 행(라벨+설명 좌 / 액션·상태 우) */
.sub-body .my-acct { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 72rem; }
.sub-body .my-acct-row { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem;
    padding: 1.8rem .4rem; border-bottom: 1px solid var(--line); }
.sub-body .my-acct-row .ma-info { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.sub-body .my-acct-row .ma-label { display: inline-flex; align-items: center; gap: .8rem; font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.sub-body .my-acct-row .ma-kakao svg { width: 2.6rem; height: 2.6rem; padding: .5rem; flex: none;
    background: #fee500; color: rgba(0,0,0,.85); border-radius: 50%; }
.sub-body .my-acct-row .ma-desc { font-size: 1.35rem; color: #999; word-break: keep-all; }
.sub-body .my-acct-row .btn { height: 3.8rem; padding: 0 1.6rem; font-size: 1.4rem; flex: none; }

/* 회원탈퇴 — 저장과 동급으로 보이지 않게 하단 우측 소형 텍스트 링크로 강등 */
.sub-body .my-withdraw { margin-top: 2.4rem; text-align: right; max-width: 72rem; }
.sub-body .my-withdraw a { font-size: 1.35rem; color: #aaa; text-decoration: underline; text-underline-offset: 3px; }
.sub-body .my-withdraw a:hover { color: #c0392b; }

@media all and (max-width: 800px) {
    .sub-body .my-summary { flex-direction: column; align-items: flex-start; padding: 1.8rem 2rem; }
    .sub-body .my-tab-nav { gap: 2rem; }
    /* 신청자 열 숨김 — 본인 예약 목록이라 대개 본인 이름(중복 정보) */
    .sub-body .my-table th:nth-child(4), .sub-body .my-table td:nth-child(4) { display: none; }
    .sub-body .my-acct-row { flex-wrap: wrap; }
}

/* ============================================================================
   비급여 진료비용 — 서브페이지 톤(보라 --color) 적용. 다열 가격표라 board-list 보다
   촘촘하지만, 검정 박스 대신 옅은 보라 헤더 + 얇은 구분선으로 시안 톤 유지.
   ※ 전부 `.price-*` 접두 + `.sub-body` 스코프 (front.css 무접두 .tabs 등과 분리).
     인쇄 전용 페이지(/non-covered/print)는 chrome 없는 별도 템플릿이 자체 스타일 보유. */
.sub-body .price-lead { font-size: 1.6rem; color: #555; line-height: 1.7; margin-bottom: 1.8rem; }

/* 도구 줄 — (좌) 갱신일 + 인쇄 / (우) 검색 (.list-search 재사용) */
.sub-body .price-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sub-body .price-meta { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.sub-body .price-updated { font-size: 1.4rem; color: #999; }
.sub-body .price-print { display: inline-flex; align-items: center; gap: .5rem; height: 3.8rem; padding: 0 1.6rem;
    border: 1px solid #ddd; border-radius: .8rem; font-size: 1.4rem; color: #555; text-decoration: none; transition: all .2s ease; }
.sub-body .price-print:hover { border-color: var(--color); color: var(--color); }
.sub-body .price-print svg { width: 1.6rem; height: 1.6rem; }

/* 카테고리 탭 (pill, board-cats 와 동형이나 button) */
.sub-body .price-tabs { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.sub-body .price-tab { display: inline-flex; align-items: center; height: 3.8rem; padding: 0 1.8rem; border-radius: .8rem;
    border: 1px solid #ddd; background: #fff; font-size: 1.5rem; color: #666; cursor: pointer; transition: all .25s ease; }
.sub-body .price-tab:hover { border-color: var(--color); color: var(--color); }
.sub-body .price-tab.active { background: var(--color); border-color: var(--color); color: #fff; }

/* 카테고리 구역 — 좌측 세로 강조 바(페이지 제목보다 한 단계 작게) */
.sub-body .price-section { margin-bottom: 4rem; }
.sub-body .price-section.hidden { display: none; }
.sub-body .price-section-title { position: relative; padding-left: 1.4rem; margin-bottom: 1.4rem; font-size: 2rem; font-weight: 700; color: #222; }
.sub-body .price-section-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 1.7rem; background: var(--color); border-radius: 2px; }
.sub-body .price-empty { padding: 3rem 0; text-align: center; color: #999; }

/* 가격표 — 좁은 화면은 래퍼가 가로 스크롤. 옅은 보라 헤더 + 얇은 구분선. */
.sub-body .price-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sub-body .price-table { width: 100%; min-width: 64rem; border-collapse: collapse; font-size: 1.4rem; }
.sub-body .price-table th, .sub-body .price-table td { padding: .7rem .9rem; border: 1px solid var(--line); text-align: left; vertical-align: middle; }
.sub-body .price-table thead th { background: var(--color-soft); color: var(--color-deep); font-weight: 600; text-align: center; white-space: nowrap; }
.sub-body .price-table tbody td { color: #444; }
.sub-body .price-table tbody tr { transition: background .15s ease; }
.sub-body .price-table tbody tr:hover { background: var(--color-soft); }
.sub-body .price-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sub-body .price-table td.center { text-align: center; }
.sub-body .price-table .empty { text-align: center; color: #999; padding: 2rem 0; }

/* ── 자주 묻는 질문(FAQ) — 탭 + <details> 아코디언, 비급여 톤과 통일 ── */
.sub-body .faq-lead { font-size: 1.6rem; color: #555; line-height: 1.7; margin-bottom: 1.8rem; }
.sub-body .faq-lead a { color: var(--color); font-weight: 600; }

/* 도구 줄 — (좌) 갱신일 / (우) 검색 */
.sub-body .faq-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.sub-body .faq-updated { font-size: 1.4rem; color: #999; }

/* 카테고리 탭 */
.sub-body .faq-tabs { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.sub-body .faq-tab { display: inline-flex; align-items: center; height: 3.8rem; padding: 0 1.8rem; border-radius: .8rem;
    border: 1px solid #ddd; background: #fff; color: #555; font-size: 1.5rem; cursor: pointer; transition: all .2s ease; }
.sub-body .faq-tab:hover { border-color: var(--color); color: var(--color); }
.sub-body .faq-tab.active { background: var(--color); border-color: var(--color); color: #fff; }

/* 카테고리 섹션 */
.sub-body .faq-section { margin-bottom: 4rem; }
.sub-body .faq-section.hidden { display: none; }
.sub-body .faq-section-title { position: relative; padding-left: 1.4rem; margin-bottom: 1.4rem; font-size: 2rem; font-weight: 700; color: #222; }
.sub-body .faq-section-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: .5rem; height: 1.8rem; border-radius: 1rem; background: var(--color); }
.sub-body .faq-empty { padding: 3rem 0; text-align: center; color: #999; }
.sub-body .faq-cat-tag { margin-left: .8rem; font-size: 1.3rem; color: var(--color); font-weight: 600; }

/* <details> 아코디언 — Q/A 배지 + 펼침 강조 */
.sub-body .faq-item { border: 1px solid var(--line); border-radius: 1rem; margin-bottom: 1rem; background: #fff; overflow: hidden; transition: border-color .2s ease; }
.sub-body .faq-item[open] { border-color: var(--color); }
.sub-body .faq-item summary { display: flex; align-items: center; gap: 1.2rem; padding: 1.6rem 1.8rem; font-size: 1.6rem; color: #333; cursor: pointer; list-style: none; }
.sub-body .faq-item summary::-webkit-details-marker { display: none; }
.sub-body .faq-item summary::before { content: 'Q'; flex: none; width: 2.6rem; height: 2.6rem; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--color-soft); color: var(--color); font-weight: 700; font-size: 1.4rem; }
.sub-body .faq-item summary .pin { flex: none; font-size: 1.2rem; font-weight: 600; color: var(--color); background: var(--color-soft); padding: .2rem .8rem; border-radius: 1rem; }
.sub-body .faq-item summary .q-text { flex: 1; }
.sub-body .faq-item summary .chev { flex: none; color: #bbb; font-size: 1.2rem; transition: transform .2s ease; }
.sub-body .faq-item[open] summary { background: var(--color-soft); }
.sub-body .faq-item[open] summary::before { background: var(--color); color: #fff; }
.sub-body .faq-item[open] summary .chev { transform: rotate(180deg); color: var(--color); }
.sub-body .faq-item .a-body { position: relative; padding: 1.6rem 1.8rem 1.8rem 5.4rem; border-top: 1px solid var(--line); font-size: 1.5rem; line-height: 1.75; color: #555; }
.sub-body .faq-item .a-body::before { content: 'A'; position: absolute; left: 1.8rem; top: 1.6rem; width: 2.6rem; height: 2.6rem;
    display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #f3f3f3; color: #999; font-weight: 700; font-size: 1.4rem; }

/* 반응형 — 좁은 화면에서 글쓴이/조회 컬럼 숨김 */
@media all and (max-width: 800px) {
    .sub-head h2 { font-size: 2.6rem; }
    .sub-body { padding: 2rem 0 2rem; }

    /* 찾기 도구 — 말머리 탭 위, 검색은 전체폭 한 줄(좁은 화면에서 가로 넘침 방지) */
    .sub-body .list-tools { flex-direction: column; align-items: stretch; gap: 1.4rem; }
    .sub-body .list-tools .list-search { width: 100%; }
    .sub-body .list-tools .list-search input[type="text"] { flex: 1; min-width: 0; }

    /* 게시판 목록 — 테이블을 카드형으로 전환(컬럼 숨김 대신 재배치).
       제목을 위에 크게, 글쓴이·날짜·조회를 아래 한 줄 메타로. 번호는 숨기고 고정은 배경 틴트로 구분. */
    .sub-body .board-list, .sub-body .board-list tbody, .sub-body .board-list tr, .sub-body .board-list td { display: block; }
    .sub-body .board-list { font-size: 1.5rem; }
    .sub-body .board-list thead { display: none; }
    .sub-body .board-list tr { padding: 1.4rem .6rem; border-bottom: 1px solid var(--line); }
    .sub-body .board-list tr.pinned { border-radius: .8rem; padding-left: 1.2rem; padding-right: 1.2rem; }
    .sub-body .board-list td { padding: 0; border: 0; text-align: left; width: auto; }
    .sub-body .board-list .c-no { display: none; }
    .sub-body .board-list .c-title { margin-bottom: .7rem; }
    .sub-body .board-list .c-title .cat-slot { display: inline; width: auto; margin-right: .4rem; }
    .sub-body .board-list .c-title a { display: inline; font-size: 1.6rem; line-height: 1.5; white-space: normal; word-break: break-all; }
    .sub-body .board-list .c-author, .sub-body .board-list .c-date, .sub-body .board-list .c-view { display: inline; font-size: 1.3rem; color: #aaa; }
    .sub-body .board-list .c-author { color: #888; }
    .sub-body .board-list .c-author::after, .sub-body .board-list .c-date::after { content: '·'; margin: 0 .5rem; color: #ddd; }
    .sub-body .board-list .c-view::before { content: '조회 '; }

    /* 공지 목록 — 한 줄 유지하되 말머리 슬롯·날짜 축소로 제목 공간 확보 */
    .sub-body .notice-list li { gap: .8rem; padding: 1.15rem .5rem; }
    .sub-body .notice-list .ntag { width: 4.4rem; }
    .sub-body .notice-list a { font-size: 1.55rem; }
    .sub-body .notice-list .date { font-size: 1.3rem; }

    /* 목록 하단 — 페이지네이션(중앙) 위, 글쓰기(전체폭) 아래로 단순 스택 */
    .sub-body .board-foot { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
    .sub-body .board-foot .pagination { margin: 0; }
    .sub-body .board-foot .write-btn { width: 100%; }
    .sub-body .pagination { flex-wrap: wrap; }
    .sub-body .pagination .pg-num, .sub-body .pagination .pg-arrow { min-width: 3.4rem; height: 3.4rem; font-size: 1.5rem; }

    /* 이전·다음 네비 — 라벨폭·간격 축소 */
    .sub-body .post-nav .pn-row { gap: 1rem; padding: 1.3rem .4rem; }
    .sub-body .post-nav .pn-label { width: 6rem; font-size: 1.3rem; }
    .sub-body .post-nav .pn-title { font-size: 1.45rem; }

    .sub-body .post-head h1 { font-size: 2.2rem; }
    .sub-body .board-form th { width: auto; display: block; border-bottom: none; padding-bottom: .6rem; }
    .sub-body .board-form td { display: block; padding-top: 0; }
    .sub-body .price-section-title { font-size: 1.8rem; }
    .sub-body .price-toolbar { flex-direction: column; align-items: stretch; }
    .sub-body .price-toolbar .list-search { width: 100%; }
    .sub-body .price-toolbar .list-search input[type="text"] { flex: 1; min-width: 0; }
    .sub-body .faq-section-title { font-size: 1.8rem; }
    .sub-body .faq-toolbar { flex-direction: column; align-items: stretch; }
    .sub-body .faq-toolbar .list-search { width: 100%; }
    .sub-body .faq-toolbar .list-search input[type="text"] { flex: 1; min-width: 0; }
    .sub-body .faq-item summary { font-size: 1.5rem; }
}

/* ============================================================================
   프리미엄 리스킨 — front.css(디자인 원본) 보정
   front.css 는 손대지 않고, style.css 가 뒤에 로드되는 이점으로 팔레트/배경/타이포만
   덮어쓴다. 구조·레이아웃·여백 스케일은 그대로. 동일 선택자는 로드 순서로 이쪽이 이긴다.
   ============================================================================ */

/* 본문 기조 — 따뜻한 흰 배경 + 웜 그레이 글씨 */
body { color: var(--body); background: var(--paper); -webkit-font-smoothing: antialiased; }

/* ── 타이포 역할 시스템 (단일 진실원) — 사이트 전체 글꼴 역할을 여기서 한 번에 정의.
   · Pretendard : UI·본문·메뉴·버튼·모든 제목 (reset.css body 기본) — 가독성/중립.
   배너 제목(.main-visual .text .t1)도 기본 Pretendard 로 통일(과거 Cormorant/Noto Serif KR 명조 포인트를
   걸었으나, 배너도 사이트 기본 글꼴에 맞추기로 환원). 별도 font-family 지정 없이 body 기본을 상속한다. ── */
.main-visual .text .t1 {
    letter-spacing: .005em;
}
/* 영문 eyebrow(섹션 위 작은 영문) — 넉넉한 자간 + 샴페인 톤으로 럭셔리 인상 */
/* 영문 eyebrow(섹션 위 작은 영문, 예: "St. Mary's Line Plastic Surgery") — 브랜드색(플럼).
   front.css 기본도 var(--color)지만 자간만 보정하므로 색은 토큰 그대로 둠 */
.h3-desc { color: var(--color); letter-spacing: .35rem; }
.h2 { letter-spacing: .04em; }

/* ── 헤더 — 분홍 밴드(#fef6f4) → 정갈한 아이보리 + 샴페인 헤어라인 ── */
.header { background: #fffdfb; border-bottom: 1px solid var(--line); }
.top { background: #fffdfb; }
/* 1뎁스 hover 언더라인 — 브랜드색(플럼) */
.header nav .btn-dep1:before { background: var(--color); }

/* ── 섹션 배경 — 차가운 회색(#f4f5fa/#f8f9fc) → 따뜻한 아이보리 ── */
.bg-inner { background: var(--ivory); }
.contact .item { background: #f5f4f6; }
/* 클리닉 슬라이드 카드 — 쉴 때 중립 라이트그레이, hover 시 브랜드 플럼(흰 글씨) */
.clinic-slider .swiper-slide a { background: #f5f4f6; }

/* ── 푸터 — 차가운 회보라(#565258) → 따뜻한 딥 차콜 ── */
footer { background: #322d29; }

/* (드롭다운 패널 그림자는 상단 .dep2 ul 정의로 단일화 — 여기 있던 중복 약한 그림자 제거) */

/* ── 메인 비주얼 페이지네이션 바 — 활성 색을 모카로(시안 #666 → 브랜드) ── */
.main-visual .swiper-pagination .swiper-pagination-bullet-active { background: var(--color); }
.swiper-pagination .swiper-pagination-progressbar-fill { background-color: var(--color); }

/* ============================================================================
   디테일·모션 폴리시 — "깔끔"에서 "공들인 고급"으로.
   카드 hover 리프트/이미지 줌 · 버튼 화살표 마이크로 인터랙션 · GNB 언더라인 ·
   부드러운 웜 그림자 · 섹션 에디토리얼 디바이더. (front.css 구조는 그대로, 거동만 보강)
   맨 아래 prefers-reduced-motion 으로 모션 민감 사용자 배려.
   ============================================================================ */

/* ── GNB 1뎁스 언더라인 — 가운데서 양옆으로 자라는 샴페인 라인(있다 없다 깜빡임 → 우아한 grow).
   style.css 상단의 has-children opacity 게이팅을 덮어써 모든 메뉴에 동일 적용. ── */
.header nav .btn-dep1:before { opacity: 1 !important; transform: scaleX(0); transform-origin: center;
    transition: transform .28s cubic-bezier(.22,.61,.36,1); }
.header nav > ul > li:hover .btn-dep1:before { transform: scaleX(1); }

/* ── 클리닉 카드 — hover 시 살짝 떠오르고(리프트) 웜 그림자. 텍스트는 모카 배경 위 흰색으로. ── */
.clinic-slider .swiper-slide a { transition: background-color .4s ease, transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease; will-change: transform; }
.clinic-slider .swiper-slide a:hover { transform: translateY(-8px); box-shadow: 0 18px 36px rgba(125,58,125,.22); }
.clinic-slider .swiper-slide a:hover dt,
.clinic-slider .swiper-slide a:hover dd { color: #fff; }
/* hover 리프트(-8px)+그림자가 swiper-container(overflow:hidden)에 잘리는 현상 보정.
   세로 패딩으로 클립 박스를 위(리프트 여유)·아래(그림자 여유)로 키우고 같은 크기 음수 마진으로
   보이는 위치는 유지. 세로 패딩은 슬라이드 가로폭 계산에 무영향 → 양옆 클립은 그대로. */
.clinic-slider .swiper-container { padding-top: 1.6rem; padding-bottom: 4rem; margin-top: -1.6rem; margin-bottom: -4rem; }

/* ── 커뮤니티 이미지 카드 — 컨테이너 overflow 안에서 이미지 줌(차분한 1.06배). ── */
.latest-list .item .img-box { overflow: hidden; }
.latest-list .item .img-box img { transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.latest-list .item .img-box a:hover img { transform: scale(1.06); }

/* ── slider1 우측 썸네일 — 이미지 줌 + 모카 화살표 원형이 hover 시 살짝 확대. ── */
.slider1 .right-box .img { overflow: hidden; }
.slider1 .right-box .img img { transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.slider1 .right-box .swiper-slide a:hover .img img { transform: scale(1.06); }
.slider1 .right-box .img i { transition: transform .35s ease; }
.slider1 .right-box .swiper-slide a:hover .img i { transform: scale(1.12); }

/* ── 연락처 카드 — hover 시 은은한 리프트 + 웜 그림자. ── */
.contact .item { transition: transform .4s cubic-bezier(.22,.61,.36,1), box-shadow .4s ease; }
.contact .item:not(.map-type):hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(60,48,40,.12); }

/* ── 버튼 화살표 마이크로 인터랙션 — hover 시 화살표가 오른쪽으로 미끄러진다(전환 유도). ── */
.contact .item .btns a svg { transition: transform .3s ease; }
.contact .item .btns a:hover svg { transform: translateX(5px); }
.sub-body .btn svg, .price-print svg { transition: transform .3s ease; }
.sub-body .btn:hover svg { transform: translateX(4px); }

/* ── 상담 CTA(헤더 우측) — 통화 가능 기기에서 href 승격 시 hover 로 더 진한 plum + 그림자 강조.
   주의: 베이스 .site-cta 가 translateY(-50%) 세로중앙이라 hover 에서 transform 을 건드리지 않는다
   (과거 translateY(-2px) 리프트가 세로중앙을 덮어 튀던 잠복버그 제거). ── */
.site-cta[href]:hover { background: var(--color-deep); border-color: var(--color-deep);
    box-shadow: 0 10px 22px -6px rgba(125, 58, 125, .55); }

/* ── 섹션 에디토리얼 디바이더 — 큰 영문 라벨(.h2) 아래 짧은 샴페인 헤어라인.
   home .title 은 가운데 정렬이라 중앙 배치. 위계와 "에디토리얼" 인상 강화. ── */
.title .h2 { position: relative; padding-bottom: 2.4rem; }
.title .h2::after { content: ''; position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%);
    width: 4.4rem; height: 1px; background: var(--accent); }

/* ── 접근성 — 모션 민감 사용자에겐 이동/줌 애니메이션을 끈다(색·표시는 유지). ── */
@media (prefers-reduced-motion: reduce) {
    .clinic-slider .swiper-slide a,
    .latest-list .item .img-box img,
    .slider1 .right-box .img img,
    .slider1 .right-box .img i,
    .contact .item,
    .site-cta[href],
    .header nav .btn-dep1:before,
    .header nav .dep2 ul li,
    .contact .item .btns a svg,
    .sub-body .btn svg { transition: none !important; transform: none !important; }
    /* 스태거 비활성 시에도 열린 패널 항목은 보이도록 보정(transform 제거로 위치는 정상) */
    .header nav .dep2.is-open ul li { opacity: 1; }
}

/* ============================================================================
   app-body 페이지 위젯 톤 — /treatment·/reservation·/movie·/media·/story 등
   템플릿 인라인 <style>(.tx-card 등, 명시도 0,1,0)을 .app-body 스코프(0,2,0)로 덮어
   프리미엄 모카 톤 + 10px 루트에 맞는 적정 크기로 통일. (인라인 색은 이미 토큰화됨)
   ============================================================================ */

/* (진료안내 목록 .tx-* 규칙은 /treatment·/treatment/{cat} 목록 페이지 폐지로 제거됨) */

/* 예약 캘린더/슬롯 (/reservation) — 가용=웜 틴트, 선택=모카 솔리드 */
.app-body .rsv-slot-btn { margin: .3rem; padding: .8rem 1.4rem; border: 1px solid var(--color); border-radius: .8rem;
    background: #fff; color: var(--color); font-size: 1.5rem; transition: all .2s ease; }
.app-body .rsv-slot-btn:hover { background: var(--color-soft); }
.app-body .rsv-slot-btn.selected { background: var(--color); color: #fff; }
.app-body .rsv-slot-btn.full { border-color: var(--line); color: #bbb; background: #faf8f5; }
.app-body .rsv-cal td.avail { background: var(--color-soft); }
.app-body .rsv-cal td.avail:hover, .app-body .rsv-cal td.selected { background: #e8dccf; }

/* 영상/언론/후기 탭·리스트 (/movie /media /story) */
.app-body .cat-tabs { gap: .8rem; margin: 1.5rem 0; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.app-body .cat-tabs a { padding: .7rem 1.4rem; border: 1px solid var(--line); border-radius: .8rem; color: var(--body); font-size: 1.5rem; transition: all .2s ease; }
.app-body .cat-tabs a:hover { border-color: var(--color); color: var(--color); }
.app-body .cat-tabs a.on { background: var(--color); color: #fff; border-color: var(--color); }
.app-body .movie-item, .app-body .media-item, .app-body .story-item { border-color: var(--line); }
.app-body .media-item .outlink, .app-body .article-detail .meta .outlink { color: var(--color); }

/* ──────────────────────────────────────────────────────────────────────────
   좌/우 플로팅 퀵바(바로가기) — 전 페이지 전역 chrome (운영자 /admin/quick-links 관리).
   레거시 #quickMenu 를 대체. 위치(좌/우)·PC/모바일 노출은 운영자 전역 설정(front_quick_settings).
   모바일 분기 1020px = 헤더 GNB 전환점과 동일.
   ────────────────────────────────────────────────────────────────────────── */
/* z-index 1000 = 본문 위, 팝업(레이어 .site-popup z-1200) 아래, 모바일 메뉴(5000/6000) 아래.
   팝업은 일시적 주목 요소라 상시 chrome 인 퀵바보다 위에 와야 함(특히 모바일 풀폭 팝업과 측면 퀵바 충돌 시). */
/* 원형 버튼형 — 통일된 라인 아이콘(큐레이티드 세트)을 담은 원형 숏컷. 라벨은 버튼 하단 옵셔널.
   운영자 임의 업로드 이미지(톤 들쭉날쭉) 폐기 → currentColor 라인 아이콘으로 강제 일관. */
.quickbar { position: fixed; top: 50%; transform: translateY(-50%); z-index: 1000; }
.quickbar--right { right: 1.6rem; }
.quickbar--left  { left: 1.6rem; }
.quickbar ul { display: flex; flex-direction: column; align-items: center; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.quickbar__item { display: flex; }
.quickbar__link {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    color: var(--body); text-decoration: none;
}
/* 원형 버튼 본체 — 흰 바탕·웜 헤어라인·소프트 그림자, 아이콘은 플럼. hover 시 플럼 솔리드 반전+살짝 떠오름. */
.quickbar__btn {
    display: flex; align-items: center; justify-content: center;
    width: 6.4rem; height: 6.4rem; border-radius: 50%;
    background: var(--paper); border: 1px solid var(--line); color: var(--color);
    box-shadow: 0 .4rem 1.4rem rgba(44, 40, 37, .12);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.quickbar__btn svg { width: 3rem; height: 3rem; display: block; }
.quickbar__link:hover .quickbar__btn {
    background: var(--color); border-color: var(--color); color: #fff;
    transform: translateY(-2px); box-shadow: 0 .7rem 2rem rgba(44, 40, 37, .22);
}
/* 라벨 = 반투명 흰 칩 — fixed 퀵바가 배너 이미지/흰 섹션/컬러밴드 어느 배경 위에 떠도 글자가 묻히지
   않게 자체 배경을 갖는다(맨 글자는 풀블리드 배너 위에서 가독성 0). */
.quickbar__label {
    padding: .25rem .65rem; border-radius: 1rem;
    background: rgba(255, 255, 255, .9); color: var(--ink);
    font-size: 1.1rem; font-weight: 600; text-align: center; line-height: 1.25;
    max-width: 7.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-shadow: 0 .2rem .7rem rgba(44, 40, 37, .14);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.quickbar__link:hover .quickbar__label { color: var(--color); }

/* 상담전화하기 = 전환 1순위 → 평소엔 옅은 플럼 틴트로 은은히 강조(아이콘색·hover 솔리드 반전은
   .quickbar__btn 공통 규칙 상속 → 결 일관). hover 솔리드는 공통 .quickbar__link:hover 가 처리.
   PC 는 클릭 무동작(href 없음)이라 호버 시 번호를 버튼 옆으로 펼쳐 노출(.quickbar__phone),
   모바일은 front.js 가 data-tel→tel: 로 승격해 탭하면 통화. */
.quickbar__item--phone .quickbar__btn { background: var(--color-soft); border-color: rgba(153, 70, 153, .35); }
.quickbar__phone {
    position: absolute; top: 3.2rem; transform: translateY(-50%); white-space: nowrap;
    padding: .9rem 1.4rem; border-radius: 1rem; background: var(--color-deep); color: #fff;
    font-size: 1.7rem; font-weight: 700; letter-spacing: .02em;
    box-shadow: 0 .6rem 2rem rgba(44, 40, 37, .24);
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.quickbar--right .quickbar__item--phone .quickbar__phone { right: calc(100% + 1.2rem); }
.quickbar--left  .quickbar__item--phone .quickbar__phone { left: calc(100% + 1.2rem); }
.quickbar__item--phone .quickbar__link:hover .quickbar__phone { opacity: 1; }

/* 노출 토글 — PC(>1020px) / 모바일(≤1020px) */
@media (min-width: 1021px) { .quickbar--hide-pc { display: none; } }
@media (max-width: 1020px) {
    .quickbar--hide-mobile { display: none; }
    /* 모바일도 측면(좌/우 설정)·세로 중앙 유지. html{font-size:7px} 스케일 대응 위해 버튼 크기는 px 고정. */
    .quickbar--right { right: 10px; }
    .quickbar--left  { left: 10px; }
    .quickbar ul { gap: 9px; }
    .quickbar__btn { width: 56px; height: 56px; }
    .quickbar__btn svg { width: 27px; height: 27px; }
    .quickbar__label { font-size: 11px; max-width: 64px; padding: 2px 7px; border-radius: 8px; }
    /* 상담전화는 탭하면 통화(tel:)라 호버 번호 플라이아웃 불필요 — 숨김 */
    .quickbar__phone { display: none; }
}
@media (prefers-reduced-motion: reduce) { .quickbar__btn { transition: none; } }
