/* 치아 재식술(replant) · 치아 이식술(transplant) 전용 — 2026-10-20
   style.css 뒤에 불러온다. 섹션 흐름·공용 클래스(shero · c-intro · c-proc · c-diff · c-core · c-case · faq)는 ceramic.html · anesthesia.html 과 같고,
   이 두 페이지에서만 필요한 조정과 새 블록(rt-*)만 둔다. 사진은 모두 블로그 실사진(자르기·크기만). 생성기 ~/tmp/renewal-src/build/replant-1020/build_rt.py */

/* 소개: 원내 게시판 사진은 글자가 잘리지 않도록 원본 비율 */
.c-intro__img.rt-board { aspect-ratio: 1400 / 1091; background: #efeeec; }

/* 진료 개요 */
.rt-facts { margin-top: 30px; border-top: 1px solid var(--ink); }
.rt-facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rt-facts dt { font-size: 14px; line-height: 1.65; font-weight: 600; color: var(--gold); }
.rt-facts dd { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }

/* 전후 2장 나란히 (이식술 소개 · 두 가지 카드) */
.rt-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #111; }
.rt-ba__i { position: relative; min-width: 0; overflow: hidden; }
.rt-ba__i img { width: 100%; height: 100%; object-fit: cover; }
.rt-ba__l { position: absolute; left: 10px; top: 10px; padding: 3px 10px; background: rgba(0,0,0,.62); color: #fff; font-size: 13px; line-height: 1.5; }
.c-intro__img.rt-ba { aspect-ratio: 700 / 420; }

/* 연도 · 재직 시절 표시 (사진마다) */
.rt-meta { display: block; margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.rt-label { display: inline-block; margin-top: 6px; padding: 2px 8px; border: 1px solid #d9cdb4; font-size: 12px; line-height: 1.6; color: #7a6a4a; background: #fbf8f2; }

/* 과정(c-proc): 왼쪽 배경의 3D 치아 렌더(process-bg.jpg) 대신 같은 톤의 단색 — 실사진만 쓰는 페이지 */
.rt-proc .c-proc__sticky { background: #eceaea; }
.rt-proc .step__img { position: relative; }
.rt-proc .step .rt-meta { margin-top: 12px; color: rgba(255,255,255,.5); }
.rt-cap { position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 7px 12px; background: rgba(0,0,0,.62); color: rgba(255,255,255,.9); font-size: 13px; line-height: 1.45; text-align: left; }
.rt-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: #2b2b2b; }
.rt-tile b { font-size: clamp(40px, 3.4vw, 60px); line-height: 1.1; font-weight: 700; color: var(--gold); letter-spacing: -0.02em; }
.rt-tile span { font-size: 15px; color: rgba(255,255,255,.72); }

/* 차별점 카드 — 영문 장식 글자가 어두운 사진·엑스레이에 묻히지 않게 사진과 겹치지 않음 */
.rt-diff .diff-card .diff-card__en { margin-bottom: 12px; }
.rt-diff .diff-card__img { position: relative; background: #e9e7e3; }
.rt-diff .diff-card__img.rt-ba { background: #111; }
.rt-diff .rt-meta { margin-top: 14px; }
.rt-diff .btns { justify-content: center; margin-top: 64px; }

/* 증례 카드: 사진 + 제목 + 설명 + 연도 */
.case-list.rt-cases { gap: 16px; text-align: left; }
.rt-cases figure { height: 100%; }
.rt-cases img { aspect-ratio: 4 / 3; }
.rt-cases figcaption { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 22px 26px; }
.rt-case__t { display: block; font-size: 19px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.rt-case__d { display: block; margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--sub); }
.rt-cases .rt-meta { margin-top: 12px; }
.c-case .btns { justify-content: center; margin-top: 50px; }

/* 후기 카드 (anesthesia.html 의 후기와 같은 모양) */
.rt-rvsec .c-case__sub b { color: var(--gold); font-variant-numeric: tabular-nums; }
.case-list.rt-rvlist { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; text-align: left; }
.rt-rv { position: relative; display: flex; flex-direction: column; height: 100%; padding: 34px 30px 26px; background: #fff; }
.rt-rv__q { display: block; height: 34px; font-size: 56px; line-height: 1; font-weight: 700; color: var(--gold); font-family: Georgia, serif; }
.rt-rv__body { flex: 1; margin: 6px 0 0; }
.rt-rv__body p { font-size: 16px; line-height: 1.8; color: var(--text); }
.rt-rv__body mark { background: linear-gradient(transparent 58%, rgba(169,132,62,.28) 58%); color: var(--ink); font-weight: 600; }
.rt-rv__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 22px; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.rt-rv__meta a { margin-left: auto; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.rt-rv__meta a:hover { color: var(--gold); }

/* FAQ 안 링크 */
.faq .acc__body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .rt-facts { margin-top: 24px; }
  .rt-facts > div { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .rt-facts dt { font-size: 13px; }
  .rt-facts dd { font-size: 14px; }
  .c-intro__img.rt-ba { aspect-ratio: 320 / 220; }
  .rt-cap { padding: 5px 10px; font-size: 12px; }
  .rt-tile span { font-size: 14px; }
  .case-list.rt-cases { padding-inline: calc(50% - 140px); }
  .rt-cases li { flex: 0 0 280px; }
  .rt-cases figcaption { padding: 18px 18px 22px; }
  .rt-case__t { font-size: 17px; }
  .rt-case__d { font-size: 14px; }
  .c-case .btns { margin-top: 34px; }
  .rt-diff .btns { margin-top: 44px; }
  .case-list.rt-rvlist { display: flex; gap: 14px; padding-inline: calc(50% - 150px); }
  .case-list.rt-rvlist li { flex: 0 0 300px; }
  .rt-rv { padding: 28px 22px 20px; }
  .rt-rv__body p { font-size: 15px; }
}
