/* 치료 페이지(잇몸이식·바이오클리어·재수술) 이어붙임 보정.
   GPT 가 만든 treatment-concept.css / implant-type-*.css 는 손대지 않고,
   운영 사이트에서 새로 붙는 세 가지의 모양만 여기서 맞춘다.

   1) .tm-links  : 관련 치료 페이지 (라이브 페이지에 있던 내부 링크)
   2) .rc-static : 서버가 자동으로 만드는 "관련 치료 사례·안내" 구역
                   서버 코드(rebuild-related-links.js)가 어두운 배경으로 만들기 때문에
                   이 페이지의 밝은 바탕에 맞게 덮어쓴다. 서버가 다시 만들어도 클래스가 같아서 유지된다.
   3) #quick-consult-status : 하단 상담 바의 접수 결과 문구

   수치는 이 페이지에서 실제로 측정한 값이다 (FAQ 구역의 제목·소제목·여백과 같게). */

/* ── 관련 치료 페이지 ────────────────────────────── */
.tm-links { background: #fbfaf9; border-top: 1px solid var(--line, #dedce6); }
.tm-links .eyebrow { margin: 0 0 22px; color: #d6a093; font-size: 15px; font-weight: 700; letter-spacing: .18em; }
.tm-links h2,
body .rc-static h2 {
  margin: 0 0 28px; color: var(--tc-ink, #17151b);
  font-size: clamp(34px, 3.7vw, 54px); font-weight: 650; line-height: 1.25;
  letter-spacing: -.045em; word-break: keep-all; text-wrap: balance;
}
.tm-linklist { display: flex; flex-wrap: wrap; gap: 12px; }
.tm-linklist a,
body .rc-static .rc-more a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--line, #dedce6); background: #fff; color: var(--tc-ink, #17151b);
  font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; word-break: keep-all;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.tm-linklist a:hover, .tm-linklist a:focus-visible,
body .rc-static .rc-more a:hover, body .rc-static .rc-more a:focus-visible {
  border-color: var(--gold, #8473cb); color: var(--gold, #8473cb); background: #fbfaff; outline: none;
}

/* ── 관련 치료 사례·안내 (서버 자동 생성 구역) ──────── */
body .rc-static {
  background: #f7f4f1; border-top: 1px solid var(--line, #dedce6);
  padding: 100px 0; font-family: inherit;
}
body .rc-static .rc-in { width: min(1280px, calc(100% - 112px)); max-width: none; margin: 0 auto; }
body .rc-static .rc-k {
  margin: 0 0 22px; color: #d6a093; font-size: 15px; font-weight: 700; letter-spacing: .18em; text-transform: none;
}
body .rc-static .rc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
body .rc-static .rc-list li {
  background: #fff; border: 1px solid var(--line, #dedce6); padding: 22px 24px; transition: border-color .2s ease;
}
body .rc-static .rc-list li:hover { border-color: var(--gold, #8473cb); }
body .rc-static .rc-list a {
  color: var(--tc-ink, #17151b); font-size: 17px; font-weight: 700; line-height: 1.5; text-decoration: none; word-break: keep-all;
}
body .rc-static .rc-list span { display: block; margin-top: 8px; color: var(--muted, #62616d); font-size: 15px; line-height: 1.7; }
body .rc-static .rc-more { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
body .rc-static .rc-more a { min-height: 44px; padding: 10px 20px; font-size: 14px; }

/* ── 하단 상담 바 접수 결과 ─────────────────────── */
#quick-consult-status { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #27212d; font-weight: 650; text-align: center; }

@media (max-width: 1100px) {
  body .rc-static { padding: 76px 0; }
  body .rc-static .rc-in { width: calc(100% - 64px); }
}
@media (max-width: 720px) {
  body .rc-static { padding: 58px 0; }
  body .rc-static .rc-in { width: calc(100% - 40px); }
  body .rc-static .rc-list { grid-template-columns: 1fr; }
  .tm-links h2, body .rc-static h2 { font-size: 30px; }
}


/* GPT review: keep the two related-information bands visually connected and compact. */
.tm-links.section { padding-block: 82px 64px; }
.tm-links + .rc-static { padding-top: 58px; }
body .rc-static { padding-bottom: 76px; }
@media (max-width: 720px) {
  .tm-links.section { padding-block: 58px 46px; }
  .tm-links + .rc-static { padding-top: 44px; }
  body .rc-static { padding-bottom: 58px; }
}


/* 후기 첨부사진 확대 버튼 — 스크립트의 .review-photo-open 동작을 쓰려고 사진을 버튼으로 감쌌다 */
.review-media .review-photo-open { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: none; line-height: 0; cursor: zoom-in; }
.review-media .review-photo-open:focus-visible { outline: 2px solid var(--gold, #8473cb); outline-offset: -2px; }

.quick-actions button.is-success:disabled { opacity: 1; background: #8b6e49; color: #fff; }
