/* 공통 블록 4종(2026-11-16): 표 · 진료시간표 · 영상 카드 · 전후 비교 — 모든 틀(기본형·정형외과형 바탕·정형외과형)
   색은 틀 토큰(--color · --ink · --body · --ivory · --line)만 써서 틀마다 자연스럽게 따라감 */
.xb { padding: 8rem 0; }
.xb--soft { background: var(--ivory, #f6f7f9); }
.xb-head { text-align: center; margin-bottom: 3.6rem; }
.xb-head .h2 { color: var(--ink, #222); margin: 0; }
.xb-head p { margin: 1.4rem auto 0; max-width: 72rem; color: var(--body, #555); font-size: 1.7rem; line-height: 1.7; }
.xb-head strong, .xb-hours .h2 strong { color: var(--color, #2a5bd7); }
.xb-note { margin: 1.6rem 0 0; color: var(--body, #666); font-size: 1.4rem; line-height: 1.6; }
.xb-btn { display: inline-block; margin-top: 2.4rem; padding: 1.2rem 2.8rem; border-radius: 99px; background: var(--color, #2a5bd7); color: #fff; font-size: 1.6rem; font-weight: 600; text-decoration: none; }
.xb-btn:hover, .xb-btn:focus-visible { filter: brightness(.92); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 표 */
.xb-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--ink, #222); }
.xb-table:focus-visible { outline: 2px solid var(--color, #2a5bd7); outline-offset: 2px; }
.xb-table table { width: 100%; min-width: 56rem; border-collapse: collapse; font-size: 1.6rem; line-height: 1.6; color: var(--body, #444); }
.xb-table th, .xb-table td { padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--line, #dde3ea); text-align: left; vertical-align: top; }
.xb-table thead th { background: var(--ivory, #f6f7f9); color: var(--ink, #222); font-weight: 700; white-space: nowrap; }
.xb-table tbody th { background: transparent; color: var(--ink, #222); font-weight: 600; }
.xb-table tbody tr:nth-child(even) > * { background: rgba(0,0,0,.015); }

/* 진료시간표 */
.xb-hours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4rem; align-items: start; }
.xb-hours .h2 { margin: 0; color: var(--ink, #222); }
.xb-hours__tel { display: block; margin-top: 1.6rem; color: var(--color, #2a5bd7); font-size: 3.2rem; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.xb-hours__r { margin: 0; background: #fff; border-radius: 1.6rem; padding: 2.4rem 3rem; box-shadow: 0 .4rem 2rem rgba(0,0,0,.05); }
.xb-hours__r > div { display: flex; gap: 2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line, #e5e8ec); font-size: 1.7rem; }
.xb-hours__r > div:last-of-type { border-bottom: 0; }
.xb-hours__r dt { flex: 0 0 9rem; color: var(--ink, #222); font-weight: 700; }
.xb-hours__r dt, .xb-hours__r dd { margin: 0; line-height: 1.6; }
.xb-hours__r dd { color: var(--body, #555); }

/* 영상 카드 */
.xb-videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem; }
.xb-videos a { display: block; color: inherit; text-decoration: none; }
.xb-videos__img { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 1.2rem; background: #000; }
.xb-videos__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.xb-videos a:hover img, .xb-videos a:focus-visible img { transform: scale(1.04); }
.xb-videos__img i { position: absolute; left: 50%; top: 50%; width: 5.6rem; height: 5.6rem; margin: -2.8rem 0 0 -2.8rem; border-radius: 50%; background: rgba(0,0,0,.6); }
.xb-videos__img i::after { content: ""; position: absolute; left: 2.2rem; top: 1.7rem; border-left: 1.8rem solid #fff; border-top: 1.1rem solid transparent; border-bottom: 1.1rem solid transparent; }
.xb-videos b { display: block; margin-top: 1.2rem; color: var(--ink, #222); font-size: 1.7rem; line-height: 1.5; }

/* 전후 비교 */
.xb-ba { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.2rem; }
.xb-ba__pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.xb-ba figure { position: relative; margin: 0; aspect-ratio: 1/1; overflow: hidden; border-radius: 1rem; background: var(--ivory, #f3f4f6); }
.xb-ba img { width: 100%; height: 100%; object-fit: cover; }
.xb-ba figcaption { position: absolute; left: .8rem; top: .8rem; padding: .3rem 1rem; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: 1.3rem; font-weight: 600; }
.xb-ba figure + figure figcaption { background: var(--color, #2a5bd7); }
.xb-ba li > p { margin: 1rem 0 0; color: var(--body, #555); font-size: 1.5rem; text-align: center; }
.xb-ba__no { display: inline-block; color: var(--ink, #333); font-weight: 600; }

@media (max-width: 1024px) {
  .xb-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xb-hours { grid-template-columns: 1fr; gap: 2.4rem; }
}
@media (max-width: 640px) {
  .xb { padding: 5.6rem 0; }
  .xb-ba { grid-template-columns: 1fr; }
  .xb-videos { gap: 1.6rem 1.2rem; }
  .xb-videos b { font-size: 1.5rem; }
  .xb-hours__r { padding: 1.6rem 2rem; }
  .xb-hours__r dt { flex-basis: 7.2rem; }
}

/* 배너 버튼(2026-11-19) — 관리자 배너 「버튼」 0~2개. 틀 CSS 가 모양을 덮어씀(카드형 등) */
.main-visual .mv-btns { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 3.6rem; pointer-events: auto; }
.main-visual .mv-btn { display: inline-flex; align-items: center; height: 5.4rem; padding: 0 2.8rem; border-radius: .8rem; font-size: 1.7rem; font-weight: 700; text-decoration: none; background: var(--color); color: #fff; border: 1px solid var(--color); }
.main-visual .mv-btn--2 { background: transparent; border-color: rgba(255, 255, 255, .7); }
@media (max-width: 1020px) { .main-visual .mv-btn { height: 44px; padding: 0 18px; font-size: 14px; } .main-visual .mv-btns { margin-top: 20px; gap: 8px; } }
/* 견본 프리셋 바꿔 보기(2026-11-20) — 견본 방에서만 나옴. 휴대폰 html 7px 이라 px 고정 */
.pv-bar { position:fixed; left:12px; bottom:12px; z-index:9999; display:flex; flex-wrap:wrap; align-items:center; gap:6px; max-width:calc(100vw - 24px); padding:8px 10px; background:rgba(20,24,32,.88); border-radius:12px; box-shadow:0 6px 20px rgba(0,0,0,.2); font-size:13px; line-height:1.2; }
.pv-bar__t { color:#cfd5e0; font-weight:600; margin-right:2px; }
.pv-bar__it { display:inline-flex; align-items:center; gap:5px; padding:6px 10px; border-radius:999px; color:#fff; text-decoration:none; background:rgba(255,255,255,.08); }
.pv-bar__it i { width:10px; height:10px; border-radius:50%; display:inline-block; box-shadow:0 0 0 1px rgba(255,255,255,.5); }
.pv-bar__it.is-on { background:#fff; color:#111; font-weight:700; }
.pv-bar__off { opacity:.85; }
@media (max-width: 768px) { .pv-bar { left:8px; right:8px; bottom:8px; font-size:12px; } .pv-bar__t { width:100%; } }
/* 진료 페이지 본문(견본 진료 글: .cp-lead 로 시작하는 글 상자) — 기본형 · 탭형 · 정형외과형에서 글씨가 10px 안팎으로 작던 것(2026-11-20).
   :where() 로 점수 0 → 새 틀(카드형 등) 자기 규칙이 그대로 이김. 휴대폰 html 7px 이라 px 고정 */
:where(.pblock-richtext:has(> .cp-lead)) { max-width: 820px; margin-left: auto; margin-right: auto; color: #333; }
:where(.pblock-richtext:has(> .cp-lead)) p,
:where(.pblock-richtext:has(> .cp-lead)) li { font-size: 17px; line-height: 1.75; }
:where(.pblock-richtext:has(> .cp-lead)) .cp-lead { font-size: 20px; line-height: 1.7; color: #222; font-weight: 500; margin: 0 0 32px; }
:where(.pblock-richtext:has(> .cp-lead)) h3 { font-size: 22px; line-height: 1.4; font-weight: 700; color: #111; margin: 40px 0 14px; padding-left: 12px; border-left: 4px solid var(--color, #333); }
:where(.pblock-richtext:has(> .cp-lead)) ul,
:where(.pblock-richtext:has(> .cp-lead)) ol { margin: 0 0 8px; padding-left: 22px; }
:where(.pblock-richtext:has(> .cp-lead)) ul { list-style: disc; }
:where(.pblock-richtext:has(> .cp-lead)) ol { list-style: decimal; }
:where(.pblock-richtext:has(> .cp-lead)) li { margin: 6px 0; }
:where(.pblock-richtext:has(> .cp-lead)) .cp-note { margin: 36px 0 0; padding: 18px 22px; background: #f5f6f8; border-radius: 10px; font-size: 16px; }
:where(.pblock-richtext:has(> .cp-lead)) .cp-sample { margin: 18px 0 0; font-size: 13px; color: #8a8f98; }
@media (max-width: 768px) {
  :where(.pblock-richtext:has(> .cp-lead)) p,
  :where(.pblock-richtext:has(> .cp-lead)) li { font-size: 15px; }
  :where(.pblock-richtext:has(> .cp-lead)) .cp-lead { font-size: 17px; margin-bottom: 24px; }
  :where(.pblock-richtext:has(> .cp-lead)) h3 { font-size: 19px; margin-top: 30px; }
  :where(.pblock-richtext:has(> .cp-lead)) .cp-note { font-size: 15px; padding: 14px 16px; }
  :where(.pblock-richtext:has(> .cp-lead)) .cp-sample { font-size: 12px; }
}

/* (2026-11-20) 기본형 · 탭형 블록 글씨 바닥값 — 이 틀은 html 글씨를 화면 폭에 따라 10 → 8 → 7px 로 줄여서(1280 · 1020px 이하)
   소개 문단 · 진료 순서 설명 · Q&A 답이 14px 아래로 작아졌음. max() 라 큰 화면 크기는 그대로, 작아질 때만 바닥에서 멈춤 */
.title2 .text { font-size: max(2rem, 15px); }
.title2 .tit small { font-size: max(1.6rem, 13px); }
.process ul li .text .txt { font-size: max(1.8rem, 15px); }
.faq .list ul li .q { font-size: max(2.5rem, 16px); }
.faq .list ul li .a { font-size: max(2rem, 15px); }
.feature2 ul li div { font-size: max(2.67rem, 16px); }
