/* 4차 미리보기(2026-10-27 병원 피드백) — *.preview.* 에만 붙는다. 생성기 ~/tmp/renewal-src/build/batch-1027/r4.py
   병원 요청 ‘글자 수를 줄이고, 읽었으면 하는 글은 확실히 읽히게’ → 새 문구는 크고 짧게, 본문은 16px 이상 */

/* ── 메뉴: ‘알고 싶었던 치아재식술’ 펼침 메뉴 맨 위 설명 한 줄 ── */
.gnb__cap { padding: 6px 24px 10px; margin-bottom: 4px; border-bottom: 1px solid #eee; font-size: 13px; line-height: 1.4; color: var(--muted); white-space: nowrap; }

/* ── 모바일 하단 고정 바: 예약신청(카카오톡) | 전화상담(전화) — 1023px 이하만 ── */
.r4-bar { display: none; }
@media (max-width: 1023px) {
  .r4-bar { position: fixed; z-index: 48; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom); background: #1b1916; box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
  .r4-bar__a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 58px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
  .r4-bar__a--talk { background: var(--gold-btn); --talk-fg: #b38c45; }
  .r4-bar__a--talk .i-talk { width: 26px; height: 24px; color: #fff; }
  .r4-bar__a--tel { border-left: 1px solid rgba(255,255,255,.12); }
  .r4-bar__i { width: 20px; height: 20px; fill: none; stroke: #d6b068; stroke-width: 1.7; stroke-linejoin: round; }
  body.r4 { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* ── 메인 히어로: 병원 원고 — 물음 한 줄 · 큰 세 줄 · 아래 ‘임플란트를 하지 않는 치과’ ── */
.hero--ray .r4-hero .hero__q { margin-bottom: .75em; font-size: .5em; font-weight: 600; color: #fff; }
.hero--ray .r4-hero .hero__a { font-size: .74em; line-height: 1.34; font-weight: 400; }
.hero--ray .r4-hero__tag { margin-top: clamp(40px, 3vw + 16px, 64px); padding-top: clamp(18px, .8vw + 12px, 24px); font-size: clamp(17px, 15px + .5vw, 23px); font-weight: 500; color: rgba(255,255,255,.92); letter-spacing: -0.02em; }
.hero--ray .r4-hero__tag strong { font-weight: 700; color: var(--ray-gold, #d6b068); }
@media (max-width: 1023px) {
  .hero--ray .r4-hero .hero__q { font-size: .56em; }
  .hero--ray .r4-hero .hero__a { font-size: .8em; }
  .hero--ray .r4-hero__tag { margin-top: 28px; font-size: 16px; }
}

/* ── 메인 ‘재식술이 걸어온 길’: 위 슬로건 띠(Treatment Program 에서 옮김) + 연도 다섯 칸 ── */
.r4-path { position: relative; padding: clamp(64px, 4vw + 40px, 110px) 0 clamp(80px, 5vw + 50px, 140px); background: var(--n-warm, #f6f3ee); overflow: hidden; }
.r4-path > .sig-lead { position: relative; left: auto; right: auto; top: auto; bottom: auto; display: block; margin: 0 0 clamp(48px, 3vw + 30px, 84px); color: #c9c3ba; }
.r4-path .eyebrow { text-align: center; }
.r4-path .h2 { text-align: center; font-size: clamp(32px, 26px + 1.3vw, 48px); }
.r4-tl { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; margin: clamp(44px, 2vw + 32px, 64px) 0 0; padding: 0; list-style: none; }
.r4-tl::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--ph-h) + 34px); height: 1px; background: rgba(169,132,62,.45); }
.r4-tl { --ph-h: clamp(150px, 13vw, 230px); }
.r4-tl__i { position: relative; }
.r4-tl__ph { display: block; height: var(--ph-h); overflow: hidden; background: #e9e3d9; }
.r4-tl__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.r4-tl__i:hover .r4-tl__ph img { transform: scale(1.04); }
.r4-tl__ph--mark { display: grid; place-items: center; align-content: center; gap: 10px; background: #1b1916; }
.r4-tl__mark { width: 34%; max-width: 76px; fill: none; stroke: #d6b068; stroke-width: 2.2; }
.r4-tl__start { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #d6b068; }
.r4-tl__y { position: relative; margin: 22px 0 0; padding-top: 26px; font-size: clamp(30px, 22px + 1.2vw, 44px); line-height: 1; font-weight: 300; letter-spacing: -0.02em; color: var(--gold); }
.r4-tl__y::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--n-warm, #f6f3ee); }
.r4-tl__t { margin: 14px 0 0; font-size: clamp(17px, 15.5px + .3vw, 20px); line-height: 1.5; font-weight: 700; color: var(--ink); }
.r4-tl__t b { color: var(--gold); }
.r4-tl__s { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--sub); }
@media (max-width: 1023px) {
  .r4-tl { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; gap: 18px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; --ph-h: 200px; }
  .r4-tl::-webkit-scrollbar { display: none; }
  .r4-tl::before { left: var(--gut); right: auto; width: calc(62% * 5 + 18px * 4); }
  .r4-tl__i { scroll-snap-align: start; }
  .r4-tl__t { font-size: 17px; }
}
@media (max-width: 599px) { .r4-tl { grid-auto-columns: 74%; } .r4-tl::before { width: calc(74% * 5 + 18px * 4); } }

/* ── 메인 Signature(아래로 내림): 제목을 뺐으므로 머리말 아래 간격만 ── */
.r4 .sig .sig__body > .eyebrow { margin-bottom: clamp(24px, 1.4vw + 14px, 36px); }

/* ── 메인 전후 사진 탭: 재식술 · 이식술 · 치근단 수술 → 동그라미(증례) → 전/후 한 쌍 ── */
.r4-ba { padding: clamp(72px, 4vw + 48px, 120px) 0; background: var(--n-warm, #f6f3ee); }
.r4-ba__head { text-align: center; }
.r4-ba__tabs { display: flex; justify-content: center; gap: 10px; margin-top: clamp(28px, 1.4vw + 20px, 40px); }
.r4-ba__tab { min-width: 128px; height: 48px; padding: 0 22px; border: 1px solid #cfc6b8; border-radius: 999px; background: transparent; font: inherit; font-size: 17px; font-weight: 600; color: var(--sub); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.r4-ba__tab:hover { border-color: var(--ink); color: var(--ink); }
.r4-ba__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.r4-ba__p { margin-top: clamp(28px, 1.6vw + 18px, 44px); }
.r4-ba__dots { display: flex; justify-content: center; gap: clamp(14px, 1.6vw, 28px); margin: 0; padding: 0; list-style: none; }
.r4-ba__dot { display: grid; justify-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.r4-ba__th { display: block; width: clamp(72px, 5vw + 40px, 104px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; outline: 2px solid transparent; outline-offset: 4px; background: #111; transition: outline-color .2s, opacity .2s; opacity: .6; }
.r4-ba__th img { width: 100%; height: 100%; object-fit: cover; }
.r4-ba__lab { font-size: 15px; font-weight: 600; color: var(--sub); }
.r4-ba__dot[aria-pressed="true"] .r4-ba__th { outline-color: var(--gold); opacity: 1; }
.r4-ba__dot[aria-pressed="true"] .r4-ba__lab { color: var(--gold); }
.r4-ba__dot:hover .r4-ba__th { opacity: 1; }
.r4-ba__views { max-width: 980px; margin: clamp(26px, 1.6vw + 16px, 40px) auto 0; }
.r4-ba__pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.r4-ba__fr { position: relative; margin: 0; height: clamp(280px, 18vw + 120px, 380px); background: #111; }
.r4-ba__fr img { width: 100%; height: 100%; object-fit: contain; }
.r4-ba__fr figcaption { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.62); font-size: 14px; line-height: 1.4; font-weight: 600; color: #fff; max-width: calc(100% - 24px); }
.r4-ba__fr + .r4-ba__fr figcaption { background: var(--gold); }
.r4-ba__arr { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.r4-ba__arr svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.8; }
.r4-ba__t { margin: 22px 0 0; text-align: center; font-size: clamp(18px, 16px + .4vw, 22px); line-height: 1.5; font-weight: 700; color: var(--ink); }
.r4-ba__m { margin: 6px 0 0; text-align: center; font-size: 15px; color: var(--sub); }
.r4-ba__more { margin: clamp(28px, 1.4vw + 20px, 40px) 0 0; text-align: center; }
.r4-ba__more .link-arrow::after { display: none; }
.r4-ba__more .i-arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 599px) {
  .r4-ba__tab { min-width: 0; flex: 1; padding: 0 10px; font-size: 16px; }
  .r4-ba__dots { gap: 10px; }
  .r4-ba__th { width: 64px; }
  .r4-ba__lab { font-size: 13px; }
  .r4-ba__pair { gap: 8px; }
  .r4-ba__fr { height: 220px; }
  .r4-ba__fr figcaption { left: 6px; top: 6px; padding: 3px 8px; font-size: 12px; }
  .r4-ba__arr { width: 34px; height: 34px; }
}

/* ── 재식술 Team Play 띠 → 병원 원고 ── */
.r4-band__t { margin: 0; }
.r4-band__t strong { color: #fff; }
.r4-band__l { display: grid; gap: 10px; margin: clamp(22px, 1.2vw + 14px, 32px) 0 0; padding: 0; list-style: none; }
.r4-band__l li { position: relative; padding-left: 36px; font-size: clamp(19px, 16px + .8vw, 28px); line-height: 1.4; font-weight: 600; color: #fff; }
.r4-band__l li::before { content: ""; position: absolute; left: 0; top: .7em; width: 22px; height: 1px; background: #d6b068; }
.r4-band__l b { color: #d6b068; font-weight: 800; }

/* ── 재식술 논문 · 저서 (과정 위) ── */
.r4-proof { padding: clamp(64px, 4vw + 40px, 110px) 0; background: #fff; }
.r4-proof__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 56px); }
.r4-pf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(20px, 2vw, 36px); margin: 0; }
.r4-pf__ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #eee; box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.r4-pf__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.r4-pf__ph--book img { object-position: 50% 40%; }
.r4-pf__tx { display: grid; gap: 12px; }
.r4-pf__y { font-size: clamp(36px, 28px + 1.4vw, 56px); line-height: 1; font-weight: 300; color: var(--gold); }
.r4-pf__t { font-size: clamp(19px, 16.5px + .6vw, 25px); line-height: 1.5; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; }
.r4-pf__s { font-size: 15px; line-height: 1.55; color: var(--sub); }
@media (max-width: 1023px) {
  .r4-proof__in { grid-template-columns: none; gap: 40px; }
}
@media (max-width: 599px) {
  .r4-pf { grid-template-columns: 42% 1fr; gap: 18px; }
  .r4-pf__t { font-size: 18px; }
  .r4-pf__s { font-size: 14px; }
}

/* ── 무통 마취: 배너 제목(세 줄) · 배너 아래 후기 3건 ── */
.r4-an__t { font-size: clamp(28px, 22px + 1.3vw, 46px); }
.r4-arv { padding: clamp(56px, 3vw + 40px, 96px) 0; background: #f4f1ec; }
.r4-arv__h .eyebrow { font-weight: 400; }
.r4-arv__h { display: grid; justify-items: center; gap: 0; margin: 0; text-align: center; font-size: clamp(26px, 22px + 1vw, 38px); line-height: 1.4; font-weight: 700; letter-spacing: -0.03em; }
.r4-arv__l { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: clamp(28px, 1.6vw + 18px, 44px) 0 0; padding: 0; list-style: none; }
.r4-arv__l .an7-rv { box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.r4-arv__l .an7-rv__body p { font-size: 17px; }
.r4-arv__note { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.r4-arv__note a { margin-left: 8px; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1023px) {
  .r4-arv__l { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; }
  .r4-arv__l::-webkit-scrollbar { display: none; }
  .r4-arv__l > li { scroll-snap-align: start; }
  .r4-arv__l .an7-rv__body p { font-size: 16px; }
}

/* ── 세라믹: 배너 아래 ‘하지만 … 다릅니다’ + 세 가지 ── */
.r4-cer { padding: clamp(64px, 4vw + 40px, 120px) 0; background: #fff; }
.r4-cer__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 4vw, 80px); }
.r4-cer__t { margin: 0; font-size: clamp(24px, 19px + 1.2vw, 40px); line-height: 1.5; font-weight: 400; letter-spacing: -0.035em; color: var(--sub); }
.r4-cer__t strong { display: block; margin-top: 6px; font-weight: 700; color: var(--ink); }
.r4-cer__t em { font-style: normal; color: var(--gold); }
.r4-cer__l { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.r4-cer__l li { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 22px; padding: clamp(20px, 1vw + 14px, 28px) 0; border-bottom: 1px solid var(--line); }
.r4-cer__n { width: 1.6em; font-size: clamp(22px, 18px + .8vw, 30px); line-height: 1; font-weight: 300; color: var(--gold); }
.r4-cer__l p { margin: 0; font-size: clamp(18px, 16px + .5vw, 24px); line-height: 1.5; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; }
.r4-cer__l b { font-weight: 800; }
.r4-cer__l small { display: block; margin-top: 4px; font-size: clamp(15px, 14px + .25vw, 17px); font-weight: 400; color: var(--sub); }
@media (max-width: 1023px) { .r4-cer__in { grid-template-columns: none; } }
