/* 치료프로그램 공통 스타일. 이 테마의 전용 템플릿에서만 로드한다. */
.tp-program-page #content.content { padding:24px 0; }
.tp-program-page .tp-program-content { width:100%; max-width:700px; margin-inline:auto; box-sizing:border-box; }
/* 샘플 v2의 웹 본문 프레임: 모바일은 테두리 없이 전체 폭을 사용한다. */
@media (min-width:768px) {
 .tp-program-page .tp-program-content { border:1px solid #e6e6e6; }
}
.tp-program-page .tp-program-content img { max-width:100%; }
.medihi-treatment .tp-hero-photo { display:block; width:100%; height:auto; }
/* 참조 HTML의 상세 컴포넌트 스타일. 공통 메뉴·폰트·미리보기 shell은 포함하지 않는다. */
.medihi-treatment { --tp-safe-bottom:env(safe-area-inset-bottom,0px); max-width:700px; width:100%; margin-inline:auto; color:#191f28; background:#fff; font:inherit; font-family:MedihiTreatmentPretendard,Pretendard,-apple-system,"system-ui","Segoe UI",sans-serif; overflow-wrap:break-word; }
.medihi-treatment *, .medihi-treatment *::before, .medihi-treatment *::after { box-sizing:border-box; }
.medihi-treatment h1, .medihi-treatment h2, .medihi-treatment h3, .medihi-treatment h4, .medihi-treatment p, .medihi-treatment ul, .medihi-treatment ol, .medihi-treatment dl, .medihi-treatment dd { margin:0; }
.medihi-treatment h1, .medihi-treatment h2, .medihi-treatment h3, .medihi-treatment h4 { color:#191f28; font-family:inherit; }
.medihi-treatment button, .medihi-treatment summary, .medihi-treatment a { font:inherit; }
.medihi-treatment button { cursor:pointer; color:inherit; }
.medihi-treatment a { color:inherit; text-decoration:none; }
.medihi-treatment a:focus-visible, .medihi-treatment summary:focus-visible, .medihi-treatment button:focus-visible { outline:2px solid #ff6100; outline-offset:3px; }
.medihi-treatment .tp-hero-section { padding:0; }
.medihi-treatment .tp-treatment-visual { display:block; max-width:100%; margin-block:20px; }
.medihi-treatment .tp-publish-cta { padding:16px; display:flex; justify-content:center; }
.medihi-treatment .tp-publish-cta .tp-outline { width:100%; text-align:center; }
.medihi-treatment summary { cursor:pointer; list-style:none; }
.medihi-treatment summary::-webkit-details-marker { display:none; }
.medihi-treatment .tp-all-doctors article { padding:16px 0; border-bottom:1px solid #eceff2; }
.medihi-treatment .tp-hero h1 { font-size:28px; line-height:36px; margin-top:12px; word-break:keep-all; }
@media (max-width:767px) { .medihi-treatment .tp-hero h1 { font-size:28px; } }
.medihi-treatment .tp-hero-facts { display:flex; flex-wrap:wrap; gap:4px; margin:20px 0; }
.medihi-treatment .tp-hero-facts>span { background:#fff; border:1px solid #eceff2; padding:8px 14px; border-radius:999px; font-size:14px; line-height:20.3px; letter-spacing:-.112px; font-weight:600; color:#ff6100; }
.medihi-treatment .tp-satisfaction { display:flex; gap:16px; align-items:center; background:#f9fafb; border-radius:18px; padding:20px; margin:32px 0 12px; }
.medihi-treatment .tp-satisfaction-icon { width:54px; height:54px; flex:none; display:grid; place-items:center; border-radius:50%; background:#fff2e8; }
.medihi-treatment .tp-satisfaction-icon>img { width:30px; height:30px; object-fit:contain; }
.medihi-treatment .tp-satisfaction strong { color:#191f28; font-size:20px; line-height:32px; font-weight:600; }
.medihi-treatment .tp-satisfaction b { color:#ff6100; }
.medihi-treatment .tp-satisfaction p { color:#8b95a1; font-size:14px; line-height:18px; margin-top:4px; }
.medihi-treatment .tp-section-divider { height:12px; background:#f0f0f0; }
.medihi-treatment .tp-detail-section { padding:32px 24px; }
@media (max-width:767px) { .medihi-treatment .tp-detail-section { padding:32px 16px; } }
.medihi-treatment .tp-detail-section h2 { font-size:22px; line-height:32px; margin-bottom:20px; letter-spacing:0; }
.medihi-treatment .tp-detail-section h3 { font-size:18px; line-height:28px; }
.medihi-treatment .tp-detail-section p { font-size:14px; line-height:18px; color:#6b7684; }
.medihi-treatment .tp-soft-section { background:#f9fafb; }
.medihi-treatment .tp-consult-list { list-style:none; display:flex; flex-direction:column; gap:10px; padding:0; }
.medihi-treatment .tp-consult-list>li { background:#f9fafb; border-radius:18px; padding:20px 18px; display:flex; align-items:center; gap:12px; }
.medihi-treatment .tp-consult-list>li>span { flex:none; width:32px; height:32px; border:1px solid #e5e8eb; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#fff; color:#ff6100; font-size:12px; line-height:16px; font-weight:700; }
.medihi-treatment .tp-consult-list p { color:#333d4b; font-size:16px; line-height:24px; }
.medihi-treatment .tp-basic-card { background:white; border-radius:18px; overflow:hidden; }
.medihi-treatment .tp-accordion { width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; background:#fff; text-align:left; padding:22px 20px; }
.medihi-treatment .tp-accordion>span { min-width:0; }
.medihi-treatment .tp-accordion b { display:block; font-size:18px; line-height:28px; }
.medihi-treatment .tp-accordion small { display:block; font-size:14px; line-height:18px; color:#6b7684; margin-top:8px; }
@media (min-width:768px) { .medihi-treatment .tp-accordion b { font-size:19px; } }
@media (min-width:768px) { .medihi-treatment .tp-accordion small { line-height:22px; } }
.medihi-treatment .tp-more-icon { position:relative; display:block; width:32px; height:32px; flex:none; box-sizing:border-box; border:1px solid #e5e8eb; border-radius:16px; background:#fff; }
.medihi-treatment .tp-more-icon::before, .medihi-treatment .tp-more-icon::after { content:""; position:absolute; left:50%; top:50%; width:12px; height:2px; border-radius:999px; background:#ff6100; }
.medihi-treatment .tp-more-icon::before { transform:translate(-50%,-50%); }
.medihi-treatment .tp-more-icon::after { transform:translate(-50%,-50%) rotate(90deg); }
.medihi-treatment .tp-more-icon.is-open::before { transform:translate(-50%,-50%) rotate(45deg); }
.medihi-treatment .tp-more-icon.is-open::after { transform:translate(-50%,-50%) rotate(-45deg); }
.medihi-treatment .tp-basic-body { padding:0 20px 20px; }
.medihi-treatment .tp-basic-body h3, .medihi-treatment .tp-environment h3, .medihi-treatment .tp-visit-times h3 { position:relative; padding-left:13px; margin:32px 0 12px; }
.medihi-treatment .tp-basic-body h3:first-child { padding-top:20px; margin-top:0; }
.medihi-treatment .tp-basic-body h3:first-child:before { top:26px; }
.medihi-treatment .tp-basic-body h3:before, .medihi-treatment .tp-environment h3:before, .medihi-treatment .tp-visit-times h3:before { content:""; width:3px; height:16px; background:#ff6100; border-radius:3px; position:absolute; left:0; top:6px; }
.medihi-treatment .tp-basic-body>p { color:#333d4b; line-height:22px; }
.medihi-treatment .tp-basic-body ul { padding-left:16px; display:flex; flex-direction:column; gap:12px; color:#333d4b; font-size:14px; line-height:18px; }
.medihi-treatment .tp-basic-body h3:has(+ .tp-treatment-steps) { margin-bottom:20px; }
.medihi-treatment .tp-treatment-steps { padding:0; list-style:none; display:flex; flex-direction:column; gap:16px; }
.medihi-treatment .tp-treatment-steps>li { display:flex; gap:12px; }
.medihi-treatment .tp-treatment-steps>li>span { border:1px solid #e5e8eb; border-radius:50%; width:32px; height:32px; flex:none; display:grid; place-items:center; color:#ff6100; font-size:12px; font-weight:700; }
.medihi-treatment .tp-treatment-steps b { font-size:16px; line-height:24px; }
.medihi-treatment .tp-treatment-steps p { margin-top:6px; color:#333d4b; line-height:22px; }
.medihi-treatment .tp-optional-visual { background:#f2f4f6; border-radius:14px; min-height:160px; display:grid; place-items:center; margin:20px 0 32px; color:#8b95a1; font-size:14px; line-height:18px; }
.medihi-treatment .tp-notice { display:flex; align-items:flex-start; gap:10px; border-radius:14px; background:#f4f8fc; padding:18px; margin-top:20px!important; color:#333d4b!important; line-height:22px!important; }
.medihi-treatment .tp-notice>.tp-notice-icon { flex:none; background:#fff; border:1px solid #d8e3ee; color:#6b7c8f; border-radius:50%; width:22px; height:22px; display:grid; place-items:center; font-size:12px; line-height:16px; font-weight:700; margin-top:2px; }
.medihi-treatment .tp-detail-section>.tp-notice { display:block; position:relative; padding:18px 18px 18px 50px; font-size:14px; font-weight:400; overflow-wrap:break-word; }
.medihi-treatment .tp-detail-section>.tp-notice>.tp-notice-icon { position:absolute; top:18.5px; left:18px; margin-top:0; }
.medihi-treatment .tp-journey-summary { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:767px) { .medihi-treatment .tp-journey-summary { grid-template-columns:1fr; } }
.medihi-treatment .tp-journey-summary>div { background:#f9fafb; padding:20px 18px; border-radius:18px; }
.medihi-treatment .tp-journey-summary small { display:block; color:#ff6100; font-size:14px; line-height:18px; font-weight:700; }
.medihi-treatment .tp-journey-summary dl, .medihi-treatment .tp-cost-groups dl { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px 12px; margin-top:12px; font-size:14px; line-height:18px; }
.medihi-treatment .tp-journey-summary dt, .medihi-treatment .tp-cost-groups dt { color:#6b7684; font-weight:400; }
.medihi-treatment .tp-journey-summary dd, .medihi-treatment .tp-cost-groups dd { color:#191f28; text-align:right; font-weight:700; }
.medihi-treatment .tp-phase { padding:32px 0 0; }
.medihi-treatment .tp-phase h3 { display:flex; align-items:center; gap:12px; }
.medihi-treatment .tp-phase h3>span { width:32px; height:32px; border:1px solid #e5e8eb; background:#fff; color:#ff6100; font-size:12px; line-height:16px; border-radius:50%; display:grid; place-items:center; }
.medihi-treatment .tp-phase ol { padding:16px 0 0 42px; list-style:none; }
.medihi-treatment .tp-phase li { position:relative; padding:0 0 24px; }
.medihi-treatment .tp-phase li:before { content:""; width:9px; height:9px; border-radius:50%; background:#ff6100; position:absolute; top:8px; left:-30px; }
.medihi-treatment .tp-phase li:after { content:""; width:1px; background:#e6e6e6; position:absolute; left:-26px; top:17px; bottom:-8px; }
.medihi-treatment .tp-phase li:last-child:after { display:none; }
.medihi-treatment .tp-phase li:last-child { padding-bottom:0; }
.medihi-treatment .tp-phase b { font-size:16px; line-height:24px; }
.medihi-treatment .tp-phase p { margin-top:8px; }
.medihi-treatment .tp-cost-groups { display:flex; flex-direction:column; gap:12px; }
.medihi-treatment .tp-cost-groups>div { background:#f9fafb; border:0; border-radius:18px; padding:20px 18px; }
.medihi-treatment .tp-cost-groups h3 { color:#ff6100; font-size:14px; line-height:18px; font-weight:700; }
.medihi-treatment .tp-cost-groups dd { overflow-wrap:anywhere; }
@media (max-width:767px) { .medihi-treatment .tp-cost-groups dl { grid-template-columns:minmax(58px,1fr) minmax(0,auto); } }
.medihi-treatment .tp-hospital-proof { padding:32px 24px; background:#f9fafb; color:#333d4b; font-size:14px; line-height:18px; display:flex; align-items:flex-start; gap:8px; }
@media (max-width:767px) { .medihi-treatment .tp-hospital-proof { padding:32px 16px; } }
.medihi-treatment .tp-hospital-proof>img { width:24px; height:24px; flex:none; margin-top:6px; object-fit:contain; }
.medihi-treatment .tp-hospital-proof>div { display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-width:0; }
.medihi-treatment .tp-hospital-proof p { color:#333d4b; border:1px solid #eceff2; border-radius:999px; background:#fcfcfd; padding:8px 14px; min-height:36px; font-weight:700; overflow-wrap:anywhere; }
.medihi-treatment .tp-doctors { display:flex; flex-direction:column; gap:12px; }
.medihi-treatment .tp-doctors article { background:#f9fafb; padding:16px; border-radius:18px; min-width:0; }
.medihi-treatment .tp-doctors article>div { display:flex; gap:16px; align-items:center; }
.medihi-treatment .tp-doctor-avatar { width:64px; height:64px; flex:none; display:block; border-radius:50%; overflow:hidden; }
.medihi-treatment .tp-doctor-avatar.is-empty { background:#e6e6e6 url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBkPSJNMTIgMTJDMTQuMjEgMTIgMTYgMTAuMjEgMTYgOEMxNiA1Ljc5IDE0LjIxIDQgMTIgNEM5Ljc5IDQgOCA1Ljc5IDggOEM4IDEwLjIxIDkuNzkgMTIgMTIgMTJaTTEyIDE0QzkuMzMgMTQgNCAxNS4zNCA0IDE4VjIwSDIwVjE4QzIwIDE1LjM0IDE0LjY3IDE0IDEyIDE0WiIgZmlsbD0iI0NDQ0NDQyIvPgo8L3N2Zz4K') center / 59.259% no-repeat; }
.medihi-treatment .tp-doctor-avatar>img { width:100%; height:100%; display:block; object-fit:cover; }
.medihi-treatment .tp-doctors h3 { font-size:16px; line-height:24px; }
.medihi-treatment .tp-doctors p { color:#6b7684; margin-top:4px; }
.medihi-treatment .tp-doctors ul { color:#333d4b; padding-left:16px; margin-top:16px; display:flex; flex-direction:column; gap:7px; font-size:14px; line-height:18px; }
@media (min-width:768px) { .medihi-treatment .tp-doctors { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; } }
@media (min-width:768px) { .medihi-treatment .tp-doctors article>div { flex-direction:column; align-items:flex-start; gap:12px; } }
@media (min-width:768px) { .medihi-treatment .tp-doctor-avatar { width:76px; height:76px; } }
.medihi-treatment .tp-doctor-more { display:flex; width:100%; height:56px; align-items:center; justify-content:space-between; margin-top:12px; padding:0; background:transparent; font-size:14px!important; line-height:18px!important; font-weight:700!important; }
.medihi-treatment .tp-environment>h3 { margin:32px 0 20px; }
.medihi-treatment .tp-environment>h2+h3 { margin-top:20px; }
.medihi-treatment .tp-horizontal-cards { display:flex; gap:12px; overflow:auto; overscroll-behavior-x:contain; padding:0 0 6px; scrollbar-width:thin; }
.medihi-treatment .tp-horizontal-cards>article { flex:0 0 287px; border-radius:18px; overflow:hidden; background:#fff; }
.medihi-treatment .tp-horizontal-cards img { width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.medihi-treatment .tp-horizontal-cards article>div { padding:16px; }
.medihi-treatment .tp-horizontal-cards h4 { font-size:16px; line-height:24px; margin-bottom:6px; }
@media (min-width:768px) {
  .medihi-treatment .tp-horizontal-cards:not(.tp-facilities) { margin-right:-24px; }
  .medihi-treatment .tp-horizontal-cards:not(.tp-facilities)>article { flex:0 0 200px; min-width:0; }
}
.medihi-treatment .tp-facility-media { position:relative; }
.medihi-treatment .tp-horizontal-cards article>.tp-facility-media { padding:0; }
.medihi-treatment .tp-facility-media>b { position:absolute; bottom:12px; left:14px; background:rgba(25,31,40,.78); color:#fff; border-radius:8px; padding:7px 10px; font-size:14px; line-height:18px; }
.medihi-treatment .tp-facility-description { margin:0; padding:12px 16px 16px; color:#6b7684; font-size:14px; line-height:22px; overflow-wrap:anywhere; white-space:pre-line; }
.medihi-treatment .tp-facilities { margin-right:-24px; }
.medihi-treatment .tp-facilities article { position:relative; flex-basis:508.56px; }
.medihi-treatment .tp-facilities article>b { position:absolute; bottom:12px; left:14px; background:rgba(25,31,40,.78); color:#fff; border-radius:8px; padding:7px 10px; font-size:14px; line-height:18px; }
@media (max-width:767px) { .medihi-treatment .tp-horizontal-cards { margin-right:-16px; } }
@media (max-width:767px) { .medihi-treatment .tp-facilities article { flex-basis:273px; } }
.medihi-treatment .tp-visit-times h3 { font-size:18px; margin:0 0 12px; }
.medihi-treatment .tp-hours-table { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border:1px solid #e6e6e6; border-radius:8px; overflow:hidden; }
.medihi-treatment .tp-hours-day { border-right:1px solid #f0f0f0; display:flex; flex-direction:column; min-width:0; }
.medihi-treatment .tp-hours-day:last-child { border-right:0; }
.medihi-treatment .tp-hours-day>strong { display:flex; gap:4px; align-items:center; min-height:36px; background:#f7f7f7; padding:10px; font-size:12px; line-height:16px; color:#333; }
.medihi-treatment .tp-hours-day.is-closed, .medihi-treatment .tp-hours-day.is-closed>strong { color:#999; }
.medihi-treatment .tp-hours-day>div { min-height:32px; flex:1; border-top:1px solid #e6e6e6; display:flex; align-items:center; justify-content:center; gap:2px; padding:10px 4px; font-size:12px; line-height:12px; white-space:nowrap; }
.medihi-treatment .tp-hours-day.is-evening>div { background:#fffbed; }
.medihi-treatment .tp-hours-moon { position:relative; display:block; width:12px; height:12px; flex:none; }
.medihi-treatment .tp-hours-moon>img:first-child { position:absolute; width:12px; height:12px; }
.medihi-treatment .tp-hours-moon>img:last-child { position:absolute; width:8.94442px; height:9.94887px; left:.9984px; top:1.0548px; }
@media (max-width:767px) { .medihi-treatment .tp-hours-day>div { flex-direction:column; gap:0; min-height:56px; padding:10px 2px; } }
@media (max-width:767px) { .medihi-treatment .tp-hours-day>strong { padding:10px 8px; } }
.medihi-treatment .tp-visit-times ul { padding-left:21px; display:flex; flex-direction:column; gap:4px; margin-top:12px; font-size:14px; line-height:18px; color:#777; }
.medihi-treatment .tp-visit-location { border-radius:18px; overflow:hidden; background:#f9fafb; margin-top:20px; }
.medihi-treatment .tp-map-placeholder { display:grid; place-items:center; aspect-ratio:4/3; width:100%; color:#8b95a1; background:#f2f4f6; font-size:14px; font-weight:700; }
.medihi-treatment .tp-visit-info { display:grid; grid-template-columns:44px minmax(0,1fr); column-gap:12px; row-gap:16px; padding:20px 16px; font-size:14px; line-height:18px; color:#333d4b; }
.medihi-treatment .tp-visit-info dt { color:#191f28; font-weight:700; }
.medihi-treatment .tp-visit-info dd { white-space:pre-line; overflow-wrap:anywhere; }
.medihi-treatment .tp-visit-location.is-first { margin-top:0; }
.medihi-treatment .tp-visit-map { display:block; aspect-ratio:4/3; width:100%; border:0; background:#f2f4f6; }
.medihi-treatment .tp-verified { display:flex; flex-wrap:wrap; align-items:center; gap:8px 7px; padding-top:20px; }
.medihi-treatment .tp-verified small { color:#8b95a1; border:1px solid #8b95a1; border-radius:999px; min-height:26px; padding:3px 9px; font-size:12px; line-height:16px; font-weight:700; }
.medihi-treatment .tp-verified p { color:#8b95a1; font-size:14px; line-height:18px; }
.medihi-treatment .tp-related-section { padding-right:0; }
@media (max-width:767px) { .medihi-treatment .tp-related-section { padding-right:0; } }
.medihi-treatment .tp-related-section>h2 { padding-right:16px; }
.medihi-treatment .tp-related-grid { display:flex; gap:8px; overflow:auto; padding-bottom:6px; scrollbar-width:thin; }
.medihi-treatment .tp-related-grid>.tp-program-card { width:152px; flex:0 0 152px; }
.medihi-treatment .tp-related-grid .tp-card-photo { height:102px; aspect-ratio:auto; }
.medihi-treatment .tp-related-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; padding-right:16px; margin-bottom:20px; }
.medihi-treatment .tp-related-heading h2 { margin:0; }
.medihi-treatment .tp-related-grid { scroll-snap-type:x mandatory; touch-action:pan-x pan-y; }
.medihi-treatment .tp-related-grid>.tp-program-card { scroll-snap-align:start; }
.medihi-treatment .tp-related-grid.is-dragging { scroll-snap-type:none; cursor:grabbing; user-select:none; }
@media (min-width:768px) { .medihi-treatment .tp-related-section { padding-left:24px; padding-right:0; } }
@media (min-width:768px) { .medihi-treatment .tp-related-heading { padding-right:16px; } }
@media (min-width:768px) { .medihi-treatment .tp-related-grid { gap:16px; } }
@media (min-width:768px) { .medihi-treatment .tp-related-grid>.tp-program-card { width:185px; flex:0 0 185px; } }
@media (min-width:768px) { .medihi-treatment .tp-related-grid .tp-card-photo { height:102px; aspect-ratio:auto; } }
@media (min-width:768px) { .medihi-treatment #tp-other-hospitals .tp-card-photo { height:124px; } }
.medihi-treatment .tp-star { color:#ffc600; }
.medihi-treatment .tp-outline { border:1px solid #ddd; background:white; border-radius:8px; min-height:48px; padding:10px 16px; font-weight:600!important; }
.medihi-treatment .tp-text-link { display:block; width:100%; padding:12px; background:transparent; color:#777!important; }
.medihi-treatment .tp-detail-section>.tp-outline { margin-top:20px; width:100%; }

.medihi-treatment .tp-program-card { display:flex; flex-direction:column; min-width:0; border:1px solid #eceff2; border-radius:16px; overflow:hidden; }
.medihi-treatment .tp-card-photo { display:block; width:100%; object-fit:cover; }
.medihi-treatment .tp-card-content { padding:12px; display:flex; flex-direction:column; gap:8px; }
.medihi-treatment .tp-card-content h3 { font-size:16px; line-height:24px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.medihi-treatment .tp-related-grid[data-count="1"]>.tp-program-card { flex:1; }
.medihi-treatment .tp-related-grid[data-count="2"]>.tp-program-card { flex:1; }
@media(min-width:768px) { .medihi-treatment .tp-related-grid[data-count="3"]>.tp-program-card { flex:1; } }

/* 샘플 v2와 저장된 발행 HTML의 화면 구조 차이를 전용 템플릿 안에서 보정한다. */
.tp-program-page #content.content { padding:0; gap:0; }
.tp-program-page .main { padding-bottom:0; }
.tp-program-page .tp-program-content { min-width:0; padding-bottom:0; }
/* CTA가 프레임 안에서 공간을 차지하므로 바깥 탭바 여백은 중복하지 않는다. */
.tp-program-page:has(.tpi-root) .main { padding-bottom:0 !important; overflow:visible; }
.tp-program-page .tp-program-content:has(.tpi-root) { display:flex; flex-direction:column; min-height:calc(100dvh - 58px); }
/* 공통 CTA가 없는 이전 저장본은 기존 본문 여백을 유지한다. */
.tp-program-page:not(:has(.tpi-root)) .tp-program-content:has(.tp-publish-cta) { padding-bottom:calc(76px + env(safe-area-inset-bottom,0px)); }
.tp-program-toolbar { height:58px; padding:0 16px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #ddd; background:#fff; position:sticky; top:58px; z-index:20; }
.tp-program-toolbar a, .tp-program-share { display:inline-flex; width:40px; height:40px; align-items:center; justify-content:center; border:0; border-radius:8px; background:transparent; color:#191f28; padding:8px; cursor:pointer; }
.tp-program-toolbar svg, .tp-program-share svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; }
.tp-program-toolbar a:focus-visible, .tp-program-share:focus-visible { outline:2px solid #ff6100; outline-offset:2px; }
.tp-program-page .mobile-detail-header .tp-program-share { margin-left:auto; flex:none; }
.tp-program-share-status { position:fixed; left:50%; bottom:90px; transform:translateX(-50%); max-width:calc(100% - 32px); padding:10px 16px; border-radius:8px; background:#191f28; color:white; z-index:1000; font-size:14px; }
.tp-program-share-status:empty { display:none; }
.medihi-treatment { font-size:14px; line-height:1.5; }
.medihi-treatment .tp-hero-section { padding:0; }
.medihi-treatment .tp-hero-photo { aspect-ratio:16/9; object-fit:cover; }
.medihi-treatment .tp-hero-intro { padding:32px 24px; }
.medihi-treatment .tp-hero-intro>p { font-size:14px; line-height:18px; color:#6b7684; font-weight:700; }
.medihi-treatment h1, .medihi-treatment h2, .medihi-treatment h3, .medihi-treatment h4, .medihi-treatment b { font-weight:700; }
.medihi-treatment .tp-accordion>span:last-child { position:relative; width:32px; height:32px; flex:none; border:1px solid #e5e8eb; border-radius:50%; font-size:0; }
.medihi-treatment .tp-accordion>span:last-child::before, .medihi-treatment .tp-accordion>span:last-child::after { content:""; position:absolute; left:50%; top:50%; width:12px; height:2px; background:#ff6100; border-radius:2px; transform:translate(-50%,-50%); }
.medihi-treatment .tp-accordion>span:last-child::after { transform:translate(-50%,-50%) rotate(90deg); }
.medihi-treatment .tp-basic-card[open] .tp-accordion>span:last-child::before { transform:translate(-50%,-50%) rotate(45deg); }
.medihi-treatment .tp-basic-card[open] .tp-accordion>span:last-child::after { transform:translate(-50%,-50%) rotate(-45deg); }
.medihi-treatment .tp-notice>.tp-notice-icon { flex:none; display:grid; place-items:center; width:22px; height:22px; margin-top:2px; border:1px solid #d8e3ee; border-radius:50%; background:#fff; color:#6b7c8f; font-size:12px; line-height:16px; font-weight:700; }
.medihi-treatment .tp-phase h3>span { display:grid; place-items:center; width:32px; height:32px; flex:none; border:1px solid #e5e8eb; border-radius:50%; background:#fff; color:#ff6100; font-size:12px; line-height:16px; }
.medihi-treatment .tp-phase .tp-treatment-steps { gap:0; }
.medihi-treatment .tp-phase .tp-treatment-steps>li { display:block; }
.medihi-treatment .tp-phase .tp-treatment-steps>li>span { display:none; }
.medihi-treatment .tp-phase .tp-treatment-steps>li>div { min-width:0; }
.medihi-treatment .tp-phase .tp-treatment-steps p { margin-top:8px; }
.medihi-treatment .tp-hospital-proof::before { content:""; display:block; width:24px; height:24px; margin-top:6px; flex:none; background:url("../images/treatment-proof.svg") center / contain no-repeat; }
.medihi-treatment .tp-doctor-more { list-style:none; display:flex; align-items:center; justify-content:space-between; width:100%; min-height:56px; margin-top:12px; padding:0; background:transparent; font-size:14px; line-height:18px; font-weight:700; }
.medihi-treatment .tp-doctor-more::-webkit-details-marker { display:none; }
.medihi-treatment .tp-doctor-more::after { content:"+"; display:grid; place-items:center; width:32px; height:32px; border:1px solid #e5e8eb; border-radius:50%; color:#ff6100; font-size:20px; font-weight:400; }
.medihi-treatment .tp-doctors-dialog { width:min(520px,calc(100vw - 32px)); max-height:min(80vh,720px); margin:auto; padding:0; border:0; border-radius:18px; background:#fff; color:#191f28; overflow:auto; overscroll-behavior:contain; }
.medihi-treatment .tp-doctors-dialog::backdrop { background:rgba(0,0,0,.45); }
.medihi-treatment .tp-doctors-dialog>header { position:sticky; top:0; display:flex; align-items:center; justify-content:space-between; padding:18px 20px; background:#fff; border-bottom:0; z-index:1; }
.medihi-treatment .tp-doctors-dialog h2 { font-size:20px; line-height:28px; }
.medihi-treatment .tp-dialog-close { display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:50%; background:#f9fafb; font-size:24px; line-height:1; }
.medihi-treatment .tp-dialog-doctors { padding:0 20px; }
.medihi-treatment .tp-dialog-doctors article { padding:18px 0; border-bottom:1px solid #f0f0f0; }
.medihi-treatment .tp-dialog-doctors article:last-child { border:0; }
.medihi-treatment .tp-dialog-doctors h3 { font-size:16px; line-height:24px; }
.medihi-treatment .tp-dialog-doctors p { margin-top:3px; color:#6b7684; font-size:14px; line-height:18px; }
.medihi-treatment .tp-dialog-doctors ul { display:flex; flex-direction:column; gap:5px; margin-top:10px; padding-left:18px; color:#333d4b; font-size:14px; line-height:18px; }
.medihi-treatment .tp-hours-day.is-evening>strong::after { content:""; display:inline-block; width:12px; height:12px; flex:none; background:url("../images/treatment-night.svg") center / contain no-repeat; }
.medihi-treatment .tp-hours-day>div { gap:2px; }
.medihi-treatment .tp-hours-separator { color:#6b7684; }
.medihi-treatment .tp-verified { display:flex; flex-wrap:wrap; align-items:center; gap:8px 7px; }
.medihi-treatment .tp-verified small { color:#8b95a1; border:1px solid #8b95a1; border-radius:999px; padding:3px 9px; font-size:12px; line-height:16px; font-weight:700; }
.medihi-treatment .tp-verified p { color:#8b95a1; font-size:14px; line-height:18px; }
.medihi-treatment #tp-s10 { padding-top:20px; }
.medihi-treatment #tp-s09:has(+ .tp-section-divider + #tp-s10) { padding-bottom:0; }
.medihi-treatment #tp-s09 + .tp-section-divider:has(+ #tp-s10) { display:none; }
.medihi-treatment .tp-publish-cta { position:fixed; left:var(--tp-content-left,0px); width:var(--tp-content-width,100%); bottom:0; z-index:30; padding:6px 6px calc(6px + env(safe-area-inset-bottom,0px)); background:#fff; box-sizing:border-box; }
.medihi-treatment .tp-publish-cta>.tp-outline { width:100%; min-height:48px; padding:12px 16px; border:0; border-radius:8px; background:#ff6100; color:#fff; font-size:16px; line-height:24px; font-weight:700; text-align:center; }
@media (min-width:768px) {
 .medihi-treatment .tp-accordion b { font-size:19px; }
 .medihi-treatment .tp-accordion small { line-height:22px; }
}
@media (max-width:767px) {
 .tp-program-toolbar { display:none; }
 .medihi-treatment .tp-hero-photo { aspect-ratio:4/3; }
 .medihi-treatment .tp-hero-intro { padding:32px 16px; }
 .medihi-treatment .tp-hours-day>div { flex-direction:column; gap:0; min-height:56px; padding:10px 2px; }
 .medihi-treatment .tp-hours-separator { display:none; }
}

/* 상세 헤더는 샘플과 같이 내비게이션·공유만 표시한다. */
.tp-program-page .mobile-detail-title { display:none; }

/* publishing guide v3: common navbar height and body-aligned dialog. */
.tp-program-toolbar { top:var(--navbar--height,58px); }
.medihi-treatment .tp-doctors-dialog { width:min(520px,calc(var(--tp-content-width,100vw) - 32px)); margin-inline:0; left:calc(var(--tp-content-left,0px) + var(--tp-content-width,100vw) / 2); right:auto; transform:translateX(-50%); }
