/* 21차 미리보기(2026-10-31 · ko-ver2) — 메인 대표진료 B안 · 재식술(소개 · 전후 사진 자리 · 띠 · 논문/저서 · 과정 B안 · 차별점 · 대상 B안). 생성 batch-1031/r21.py */

/* ───── 메인 대표진료 B안(index.preview.sig-b.html): 밝은 바탕 · 왼쪽 제목 · 오른쪽 엇갈린 2열 사진 카드 ───── */
.r21-sig { position: relative; overflow: hidden; padding: clamp(90px, 6vw + 40px, 150px) 0 clamp(110px, 8vw + 40px, 190px); background: #fff; color: var(--ink, #1b1916); }
.r21-sig__bg { position: absolute; left: -0.04em; bottom: clamp(60px, 6vw, 120px); margin: 0; font-size: clamp(110px, 15vw, 260px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: #f2eee7; pointer-events: none; white-space: nowrap; }
.r21-sig__in { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 80px); align-items: start; }
.r21-sig__hd { position: sticky; top: 120px; }
.r21-sig__t { margin: 0; font-size: clamp(34px, 24px + 1.8vw, 54px); line-height: 1.25; font-weight: 800; letter-spacing: -0.045em; }
.r21-sig__t em { display: block; margin-top: 4px; font-style: normal; font-weight: 700; font-size: .78em; color: #a9843e; }
.r21-sig__more { display: inline-flex; align-items: center; gap: 10px; height: 48px; margin-top: clamp(26px, 2vw + 10px, 40px); padding: 0 24px; border: 1px solid #a9843e; border-radius: 4px; font-size: 15px; font-weight: 600; color: #6f5527; transition: background-color .25s, color .25s; }
.r21-sig__more:hover { background: #a9843e; color: #fff; }
.r21-sig__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px); margin: 0; padding: 0; list-style: none; }
.r21-sig__grid > li:nth-child(even) { transform: translateY(clamp(70px, 7vw, 130px)); }
.r21-sc a { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: #ece6dc; color: inherit; box-shadow: 0 26px 50px -36px rgba(40,30,15,.5); }
.r21-sc img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.r21-sc a:hover img { transform: scale(1.05); }
.r21-sc a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(255,255,255,.82) 78%, rgba(255,255,255,.96) 100%); pointer-events: none; }
.r21-sc__tx { position: absolute; z-index: 1; left: clamp(18px, 1.6vw, 28px); right: clamp(18px, 1.6vw, 28px); bottom: clamp(18px, 1.6vw, 28px); display: grid; gap: 4px; }
.r21-sc__no { font-size: 12px; letter-spacing: .2em; color: #a9843e; }
.r21-sc__s { font-size: clamp(13px, 12px + .2vw, 15px); line-height: 1.5; color: #4a4540; }
.r21-sc__t { font-size: clamp(20px, 15px + .8vw, 27px); line-height: 1.3; font-weight: 800; letter-spacing: -0.04em; color: #1b1916; }
.r21-sc .r8-staged { top: 12px; right: 12px; bottom: auto; z-index: 2; }
@media (max-width: 1023px) {
  .r21-sig__in { grid-template-columns: none; }
  .r21-sig__hd { position: static; }
  .r21-sig__grid { gap: 12px; }
  .r21-sig__grid > li:nth-child(even) { transform: translateY(40px); }
  .r21-sc a { aspect-ratio: 3 / 4; }
  .r21-sc__t { font-size: 18px; }
  .r21-sc__s { font-size: 12.5px; }
  .r21-sig__bg { display: none; }
}

/* ───── 재식술 소개(치아 재식술이란?): 짧은 한 줄 + 3단계 + 핵심 칩 ───── */
.r21-intro { padding: clamp(90px, 6vw + 40px, 150px) 0; background: #fff; }
.r21-intro__hd { text-align: center; }
.r21-intro__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 80px); align-items: center; margin-top: clamp(40px, 3vw + 16px, 64px); }
.r21-intro__ph { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; }
.r21-intro__ph img { width: 100%; height: 100%; object-fit: cover; }
.r21-intro__ph .bp-r3-ph__tag { position: absolute; left: 12px; bottom: 12px; }
.r21-intro__lead { margin: 0; font-size: clamp(22px, 16px + 1vw, 31px); line-height: 1.45; font-weight: 700; letter-spacing: -0.04em; }
.r21-intro__lead mark { padding: 0 4px; background: linear-gradient(transparent 58%, #f1dfb4 58%); color: inherit; }
.r21-intro__sub { margin: 12px 0 0; font-size: 16px; line-height: 1.7; color: #6a645c; }
.r21-intro__steps { display: grid; gap: 0; margin: clamp(26px, 2vw + 10px, 40px) 0 0; padding: 0; list-style: none; border-top: 1px solid #1b1916; }
.r21-intro__steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; row-gap: 2px; padding: 18px 0; border-bottom: 1px solid #e3ddd2; }
.r21-intro__steps b { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #1b1916; font-size: 15px; font-weight: 700; color: #e2c27f; }
.r21-intro__steps strong { font-size: 19px; line-height: 1.4; font-weight: 800; letter-spacing: -0.03em; }
.r21-intro__steps span { font-size: 15.5px; line-height: 1.6; color: #55504a; }
.r21-intro__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.r21-intro__chips li { padding: 8px 14px; border-radius: 999px; background: #f4efe6; font-size: 14px; font-weight: 600; color: #6f5527; }
.r21-intro__for { margin: 20px 0 0; font-size: 15px; font-weight: 700; color: #1b1916; }
.r21-intro__for::before { content: "· "; color: #a9843e; }
@media (max-width: 1023px) { .r21-intro__grid { grid-template-columns: none; } }

/* ───── 재식술 전후 사진(새 섹션 — 실제 증례 사진 자리만): 왼쪽 원장 · 오른쪽 라벨 · 제목 · BEFORE → AFTER 둥근 자리 ───── */
.r21-ba { position: relative; overflow: hidden; background: linear-gradient(180deg, #f4f1ec 0%, #ece7df 100%); color: var(--ink, #1b1916); }
.r21-ba__in { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: end; gap: clamp(20px, 3vw, 60px); min-height: clamp(560px, 40vw, 760px); }
.r21-ba__bgt { display: none; position: absolute; right: -0.05em; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: 100% 0; margin: 0; font-size: clamp(80px, 8vw, 150px); line-height: 1; font-weight: 800; letter-spacing: .02em; color: rgba(169,132,62,.08); pointer-events: none; white-space: nowrap; }
.r21-ba__doc { position: relative; align-self: end; margin: 0; }
.r21-ba__doc img { display: block; width: 100%; max-width: 440px; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
.r21-ba__sign { position: absolute; left: 0; bottom: clamp(18px, 2vw, 32px); display: grid; gap: 4px; padding: 12px 16px; border-radius: 8px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 13px; line-height: 1.5; color: #4a4540; box-shadow: 0 12px 30px -18px rgba(40,30,15,.5); }
.r21-ba__sign b { font-size: 15px; color: #1b1916; }
.r21-ba__body { align-self: center; padding: clamp(70px, 5vw + 30px, 110px) 0; text-align: center; }
.r21-ba__pill { display: inline-block; margin: 0; padding: 8px 20px; border-radius: 4px; background: #1b1916; font-size: clamp(14px, 13px + .3vw, 17px); font-weight: 600; color: #fff; }
.r21-ba__pill mark { background: none; color: #e2c27f; }
.r21-ba__t { margin: 14px 0 0; font-size: clamp(38px, 26px + 2.6vw, 72px); line-height: 1.15; font-weight: 800; letter-spacing: -0.05em; color: #1b1916; }
.r21-ba__t em { font-style: normal; color: #a9843e; }
.r21-ba__pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(14px, 2vw, 36px); max-width: 720px; margin: clamp(30px, 2.5vw + 12px, 54px) auto 0; }
.r21-ba__slot { display: grid; justify-items: center; gap: 14px; margin: 0; }
.r21-ba__circle { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(169,132,62,.55); background: radial-gradient(circle at 35% 30%, #fff, #f1ece3 70%); box-shadow: 0 24px 50px -30px rgba(40,30,15,.45); overflow: hidden; }
.r21-ba__circle img { width: 100%; height: 100%; object-fit: cover; }
.r21-ba__ph-note { padding: 0 18%; font-size: 13px; line-height: 1.5; color: #9a8f7e; }
.r21-ba__slot figcaption { font-size: clamp(18px, 14px + .7vw, 24px); font-weight: 800; letter-spacing: .08em; color: #1b1916; }
.r21-ba__slot--after figcaption { color: #a9843e; }
.r21-ba__arr { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #a9843e; color: #fff; }
.r21-ba__arr svg { width: 16px; height: 16px; fill: currentColor; }
.r21-ba__more { margin: clamp(22px, 2vw, 32px) 0 0; font-size: 15px; }
.r21-ba__more a { color: #6f5527; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1023px) {
  .r21-ba__in { grid-template-columns: none; min-height: 0; }
  .r21-ba__body { order: -1; padding: 64px 0 20px; }
  .r21-ba__doc { justify-self: center; width: min(72%, 320px); }
  .r21-ba__sign { left: -10%; }
  .r21-ba__bgt { display: none; }
  .r21-ba__pair { gap: 10px; }
  .r21-ba__arr { width: 36px; height: 36px; }
}

/* ───── 재식술 띠(20차) — 높이를 Specialist 띠와 같게 · 원장 흰 가운 사진 · 문구 4개 ───── */
@media (min-width: 1024px) {
  .r21-band.r20-band { display: flex; flex-direction: column; justify-content: center; min-height: clamp(620px, 46vw, 880px); padding-top: clamp(60px, 4vw, 90px); }
  .r21-band .r20-band__fig { padding-bottom: clamp(60px, 4vw, 90px); }
  .r21-band .r20-band__doc { width: clamp(320px, 30vw, 560px); }
}
@media (max-width: 1023px) { .r21-band .r20-band__doc { width: min(70%, 320px); } }

/* ───── 논문 · 저서: 같은 크기 카드 두 장 · 사진 상자에 맞춤 · 연도 크게 ───── */
.r21-proof { padding: clamp(80px, 5vw + 40px, 140px) 0; background: #fff; }
.r21-proof__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.r21-pf { display: grid; grid-template-rows: auto 1fr; margin: 0; overflow: hidden; border-radius: 16px; background: #f6f3ee; transition: transform .4s, box-shadow .4s; }
.r21-pf:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -40px rgba(40,30,15,.55); }
.r21-pf__ph { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #ebe5db; }
.r21-pf__ph img { width: 100%; height: 100%; object-fit: cover; }
.r21-pf__ph--paper { padding: 7% 14%; background: linear-gradient(160deg, #efe9df, #e2dacd); }
.r21-pf__ph--paper img { object-fit: cover; object-position: 50% 0; box-shadow: 0 18px 30px -18px rgba(40,30,15,.55); }
.r21-pf figcaption { display: grid; align-content: start; gap: 8px; padding: clamp(24px, 2vw + 10px, 40px); }
.r21-pf__y { font-size: clamp(40px, 28px + 1.8vw, 64px); line-height: 1; font-weight: 300; letter-spacing: -0.03em; color: #a9843e; }
.r21-pf__t { margin-top: 6px; font-size: clamp(20px, 15px + .8vw, 27px); line-height: 1.4; font-weight: 800; letter-spacing: -0.035em; color: #1b1916; }
.r21-pf__s { font-size: 15px; line-height: 1.6; color: #6a645c; }
@media (max-width: 1023px) { .r21-proof__grid { grid-template-columns: none; } }

/* ───── 재식술 과정 B안(replant.preview.proc-b.html): 어두운 바탕 · 가운데 세로선 · 좌우로 엇갈리는 단계 ───── */
.r21-pz { padding: clamp(90px, 6vw + 40px, 150px) 0; background: #17150f; color: #fff; }
.r21-pz__hd { text-align: center; }
.r21-pz__hd .s-h2 { color: #fff; }
.r21-pz__lead { max-width: 640px; margin: 18px auto 0; font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.7); }
.r21-pz__phase { display: flex; justify-content: center; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; }
.r21-pz__phase li { display: grid; gap: 2px; padding: 0 clamp(14px, 2vw, 34px); text-align: center; border-left: 1px solid rgba(214,176,104,.35); }
.r21-pz__phase li:first-child { border-left: 0; }
.r21-pz__phase b { font-size: 17px; font-weight: 700; }
.r21-pz__phase small { font-size: 13px; color: #d6b068; }
.r21-pz__list { position: relative; margin: clamp(50px, 4vw + 20px, 90px) 0 0; padding: 0; list-style: none; }
.r21-pz__list::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, rgba(214,176,104,0), #d6b068 6%, #d6b068 94%, rgba(214,176,104,0)); }
.r21-pz__it { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(50px, 6vw, 110px); align-items: center; padding: clamp(24px, 2.5vw, 44px) 0; }
.r21-pz__it::before { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -7px 0 0 -7px; border-radius: 50%; background: #17150f; border: 2px solid #d6b068; box-shadow: 0 0 0 6px rgba(214,176,104,.12); }
.r21-pz__it:nth-child(even) .r21-pz__img { order: 2; }
.r21-pz__img { position: relative; margin: 0; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 14px; background: #0f0e0b; }
.r21-pz__img img { width: 100%; height: 100%; object-fit: cover; }
.r21-pz__img--contain img { object-fit: contain; }
.r21-pz__img figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.6); font-size: 12.5px; color: #fff; }
.r21-pz__tx { max-width: 480px; }
.r21-pz__it:nth-child(odd) .r21-pz__tx { justify-self: start; }
.r21-pz__it:nth-child(even) .r21-pz__tx { justify-self: end; text-align: right; }
.r21-pz__no { display: inline-flex; gap: 10px; align-items: center; margin: 0; font-size: 13px; letter-spacing: .18em; color: #d6b068; }
.r21-pz__no i { font-style: normal; padding: 2px 10px; border: 1px solid rgba(214,176,104,.45); border-radius: 999px; font-size: 11.5px; letter-spacing: .02em; color: rgba(255,255,255,.75); }
.r21-pz__tx h3 { margin: 10px 0 12px; font-size: clamp(22px, 16px + .9vw, 30px); line-height: 1.35; font-weight: 800; letter-spacing: -0.04em; }
.r21-pz__tx p:not(.r21-pz__no) { margin: 0 0 8px; font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.72); }
.r21-pz__tx .rt-meta { font-size: 13px; color: rgba(255,255,255,.45); }
@media (max-width: 1023px) {
  .r21-pz__phase { flex-wrap: wrap; row-gap: 10px; }
  .r21-pz__list::before { left: 7px; }
  .r21-pz__it { grid-template-columns: none; gap: 16px; padding: 22px 0 22px 30px; }
  .r21-pz__it::before { left: 7px; top: 36px; }
  .r21-pz__it:nth-child(even) .r21-pz__img { order: 0; }
  .r21-pz__it:nth-child(even) .r21-pz__tx { justify-self: start; text-align: left; }
}

/* ───── 차별점 카드: 위 영문 글자 삭제 · 사진 아래 큰 제목(영문) → 부제목(한글) · 본문 삭제 ───── */
.r21-dc .diff-card__img { margin-bottom: 22px; }
.bp-diff .diff-card.r21-dc .r21-dc__t { margin: 0; font-size: clamp(26px, 18px + 1.3vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; color: #1b1916; }
.bp-diff .diff-card.r21-dc .r21-dc__s { margin: 10px 0 0; font-size: clamp(16px, 14px + .35vw, 19px); line-height: 1.55; font-weight: 600; letter-spacing: -0.02em; color: #6a645c; }

/* ───── 재식술 대상 B안(replant.preview.target-b.html): 어두운 바탕 · 가운데 제목 · 3×2 카드 · 아래 안내 상자 ───── */
.r21-tg { padding: clamp(90px, 6vw + 40px, 150px) 0; background: #1b1916; color: #fff; }
.r21-tg__hd { text-align: center; }
.r21-tg__hd .s-h2 { color: #fff; }
.r21-tg__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: clamp(40px, 3vw + 16px, 64px) 0 0; padding: 0; list-style: none; counter-reset: tg; }
.r21-tg__it { position: relative; display: grid; align-content: space-between; gap: 30px; min-height: 210px; padding: clamp(24px, 2vw + 8px, 34px); border: 1px solid rgba(214,176,104,.22); border-radius: 14px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.01)); transition: border-color .3s, transform .3s; }
.r21-tg__it:hover { border-color: rgba(214,176,104,.7); transform: translateY(-4px); }
.r21-tg__top { display: flex; align-items: center; justify-content: space-between; }
.r21-tg__ic { width: 40px; height: 40px; color: #d6b068; }
.r21-tg__ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.r21-tg__no { font-size: 44px; line-height: 1; font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(214,176,104,.7); }
.r21-tg__it h3 { margin: 0; font-size: clamp(18px, 15px + .5vw, 22px); line-height: 1.45; font-weight: 700; letter-spacing: -0.03em; }
.r21-tg__note { display: flex; gap: 14px; align-items: flex-start; max-width: 820px; margin: 28px auto 0; padding: 18px 22px; border-radius: 12px; background: rgba(214,176,104,.1); font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,.82); }
.r21-tg__note svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: #d6b068; stroke-width: 1.6; }
@media (max-width: 1023px) {
  .r21-tg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .r21-tg__it { min-height: 170px; gap: 18px; padding: 18px; }
  .r21-tg__no { font-size: 32px; }
  .r21-tg__ic { width: 32px; height: 32px; }
  .r21-tg__it h3 { font-size: 16px; }
}
