/* Scoped to the treatment menu; all eleven icons share a 96-unit canvas and 2.1-unit stroke. */
#depart{--department-orange:#f19e18;--department-active:#ff633e;--department-text:#60340e;scroll-margin-top:110px}
#depart>.container-1500{max-width:1320px;width:calc(100% - 48px)}
#depart .grid_wrap{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;overflow:visible!important}
#depart .grid_wrap>.item{min-width:0!important;min-height:365px!important;border:0!important;border-radius:0!important;position:relative;--department-ink:white}
#depart .department-card-link{display:block;height:100%;color:var(--department-text);text-decoration:none}
#depart .grid_wrap>.item .inner{height:100%!important;min-height:365px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:0!important;position:relative;inset:auto!important;padding:48px 22px 26px!important;border:0!important;border-right:1px solid #ddd6cf!important;border-bottom:1px solid #ddd6cf!important;border-radius:0!important;background:white!important;box-shadow:none!important;transform:none!important;transition:transform .38s cubic-bezier(.22,1,.36,1),background-color .3s,box-shadow .3s!important;color:var(--department-text)!important;overflow:hidden!important}
#depart .grid_wrap>.item:nth-child(3n) .inner{border-right:0!important}
#depart .inner h3{font-family:'Noto Serif KR','Nanum Myeongjo',Batang,serif!important;font-size:25px!important;line-height:1.5!important;font-weight:400!important;letter-spacing:-.045em!important;margin:0 0 28px!important;color:inherit!important;white-space:normal;text-align:center}
#depart .grid_wrap .inner .img_wrap{width:130px!important;height:130px!important;min-height:130px!important;flex:0 0 130px!important;display:grid!important;place-items:center;padding:33px!important;margin:0 0 24px!important;border-radius:50%!important;background:var(--department-orange)!important;color:white!important;isolation:auto}
#depart .grid_wrap .inner .img_wrap::after{content:none!important;display:none!important}
#depart .img_wrap svg{display:block;width:64px;height:64px;max-width:none;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
#depart .hov_wrap{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;width:100%!important;max-height:none!important;height:auto!important}
#depart .inner p{font-family:inherit;font-size:15px!important;line-height:1.7!important;font-weight:400!important;letter-spacing:-.035em!important;color:inherit!important;margin:0!important;text-align:center;word-break:keep-all}
#depart .department-more{display:flex!important;align-items:center;justify-content:center;gap:30px;flex-shrink:0;background:#fff!important;color:#60340e!important;border-radius:36px 36px 0 0!important;min-height:58px!important;padding:12px 30px!important;font-size:16px!important;font-weight:600!important;position:absolute!important;left:50%!important;bottom:-66px!important;width:230px!important;max-width:85%;margin:0!important;opacity:0!important;transform:translateX(-50%)!important;transition:bottom .38s,opacity .3s!important}
#depart .department-more::after{content:'→';font-size:25px;font-weight:400}
#depart .grid_wrap>.item:is(:hover,:focus-within){z-index:2}
#depart .grid_wrap>.item:is(:hover,:focus-within) .inner{background:var(--department-active)!important;color:#fff!important;transform:translateY(-12px)!important;box-shadow:0 12px 28px #291b1726!important;padding-bottom:78px!important}
#depart .grid_wrap>.item:is(:hover,:focus-within) .img_wrap{background:#fff!important;color:var(--department-orange)!important}
#depart .grid_wrap>.item:is(:hover,:focus-within) .department-more{bottom:0!important;opacity:1!important;color:#60340e!important}
#depart .department-controls{display:none}
@media(max-width:768px){
 #depart>.container-1500{width:100%!important;max-width:100%!important;margin-top:32px!important}
 #depart .grid_wrap{display:flex!important;gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory;scroll-padding-inline:20px;overscroll-behavior-x:contain;padding:16px 20px 20px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 #depart .grid_wrap::-webkit-scrollbar{display:none}
 #depart .grid_wrap>.item{flex:0 0 85%!important;width:85%!important;min-height:390px!important;scroll-snap-align:center}
 #depart .grid_wrap>.item .inner{min-height:390px!important;border:1px solid #ede5dc!important;border-radius:16px!important;padding:34px 20px 86px!important}
 #depart .inner h3{font-size:24px!important;margin-bottom:24px!important;font-weight:400!important}
 #depart .grid_wrap .inner .img_wrap{width:130px!important;height:130px!important;min-height:130px!important;flex-basis:130px!important}
 #depart .inner p{font-size:15px!important}
 #depart .department-more{bottom:0!important;opacity:1!important;background:#fff7eb!important;font-size:15px!important}
 #depart .grid_wrap>.item:is(:hover,:focus-within) .inner{transform:none!important;padding-bottom:86px!important}
 #depart .department-controls{display:flex;align-items:center;justify-content:center;gap:20px;padding:0 20px;font-size:14px;color:#674b37}
 #depart .department-controls button{display:grid;place-items:center;width:44px;height:44px;border:1px solid #eadfd5;border-radius:50%;background:#fff;color:#60340e;font-size:24px;cursor:pointer}
 #depart .department-controls button:disabled{opacity:.3;cursor:default}
}
@media(prefers-reduced-motion:reduce){#depart .inner,#depart .department-more{transition:none!important}#depart .grid_wrap{scroll-behavior:auto!important}}
/* Override the retained legacy hover selectors as well as keyboard focus. */
#depart .grid_wrap>.item:is(:hover,:focus-within,:active) .inner .img_wrap{background:#fff!important;background-color:#fff!important;color:var(--department-orange)!important}
#depart .grid_wrap>.item:is(:hover,:focus-within,:active) .inner .department-more{color:#60340e!important}

/* Generated transparent PNGs, same visual size in every card and both states. */
#depart .grid_wrap>.item .inner .img_wrap{padding:24px!important}
#depart .grid_wrap>.item .inner .img_wrap img{display:block!important;width:82px!important;height:82px!important;max-width:none!important;object-fit:contain!important;opacity:1!important}
@supports (mask-image:url("")) or (-webkit-mask-image:url("")){
 #depart .grid_wrap>.item .inner .img_wrap{position:relative!important}
 #depart .grid_wrap>.item .inner .img_wrap img{opacity:0!important}
 #depart .grid_wrap>.item .inner .img_wrap::after{content:""!important;display:block!important;position:absolute!important;inset:24px!important;background:currentColor!important;-webkit-mask:var(--generated-icon) center/contain no-repeat!important;mask:var(--generated-icon) center/contain no-repeat!important;mask-mode:alpha!important;pointer-events:none}
}

/* Match the STORY heading and separate it from the image section on desktop. */
@media(min-width:769px){
 #depart{padding-top:96px!important}
 #depart>h2{font-family:var(--ui-font)!important;font-weight:700!important;letter-spacing:-.035em!important;line-height:1.45!important}
}

/* Readable treatment subtitles in the shared brand sans-serif. */
#depart .grid_wrap>.item .inner h3{font-family:var(--ui-font)!important;font-weight:600!important;letter-spacing:-.035em!important}
/* Keep breathing room between the visible homepage sections. */
@media(min-width:769px){
 body[data-app-page="home"] #depart{padding-bottom:96px!important}
 body[data-app-page="home"] #doctor{padding-top:96px!important}
 body[data-app-page="home"] .jin-news,
 body[data-app-page="home"] .main_sect03.ytb,
 body[data-app-page="home"] #bna,
 body[data-app-page="home"] #review{padding-top:96px!important;padding-bottom:96px!important}
}
@media(max-width:768px){
 body[data-app-page="home"] #depart{padding-top:64px!important;padding-bottom:64px!important}
 body[data-app-page="home"] #doctor{padding-top:64px!important}
 body[data-app-page="home"] .jin-news,
 body[data-app-page="home"] .main_sect03.ytb,
 body[data-app-page="home"] #bna,
 body[data-app-page="home"] #review{padding-top:64px!important;padding-bottom:64px!important}
}

/* Use the exact light serif face shown by the online consultation heading. */
body[data-app-page="home"] #depart>h2,
body[data-app-page="home"] #depart .grid_wrap>.item .inner h3,
body[data-app-page="home"] .jin-team-heading h2,
body[data-app-page="home"] .jin-news-heading h2,
body[data-app-page="home"] .main_sect03.ytb>h2,
body[data-app-page="home"] #bna>.container-1500>h2,
body[data-app-page="home"] #review>.container-1500>h2,
body[data-app-page="home"] #contactus .content>h2{font-family:'Noto Serif KR',serif!important;font-weight:300!important;letter-spacing:normal!important}

/* Three equal treatment cards per mobile viewport, with native swipe navigation. */
@media(max-width:768px){
 #depart .grid_wrap{gap:8px!important;padding:12px 12px 20px!important;scroll-padding-inline:12px;scroll-snap-type:x mandatory}
 #depart .grid_wrap>.item{flex:0 0 calc((100% - 16px)/3)!important;width:calc((100% - 16px)/3)!important;min-height:230px!important;height:230px!important;scroll-snap-align:start}
 #depart .grid_wrap>.item .inner,#depart .grid_wrap>.item:is(:hover,:focus-within) .inner{min-height:230px!important;height:230px!important;padding:20px 5px 48px!important;border-radius:12px!important;transform:none!important}
 #depart .grid_wrap>.item .inner h3{font-size:14px!important;line-height:1.5!important;min-height:42px!important;display:flex;align-items:center;justify-content:center;margin:0 0 12px!important;word-break:keep-all;overflow-wrap:normal}
 #depart .grid_wrap>.item .inner .img_wrap{width:62px!important;height:62px!important;min-height:62px!important;flex-basis:62px!important;padding:10px!important;margin:0 auto 12px!important}
 #depart .grid_wrap>.item .inner .img_wrap img{width:42px!important;height:42px!important}
 #depart .grid_wrap>.item .inner .img_wrap::after{inset:10px!important}
 #depart .grid_wrap>.item .hov_wrap{display:none!important}
 #depart .grid_wrap>.item .inner .department-more{width:100%!important;max-width:100%!important;min-height:36px!important;gap:4px!important;padding:8px 2px!important;font-size:11px!important;border-radius:12px 12px 0 0!important;white-space:nowrap!important}
 #depart .department-more::after{font-size:16px!important}
}
@media(max-width:768px) and (hover:none){
 #depart .grid_wrap>.item:is(:hover,:focus-within) .inner{background:#fff!important;color:var(--department-text)!important;box-shadow:none!important}
 #depart .grid_wrap>.item:is(:hover,:focus-within) .inner .img_wrap{background:var(--department-orange)!important;color:#fff!important}
 #depart .grid_wrap>.item:active .inner{background:var(--department-active)!important;color:#fff!important}
 #depart .grid_wrap>.item:active .inner .img_wrap{background:#fff!important;color:var(--department-orange)!important}
}

/* Show every treatment in a three-column mobile grid without pagination. */
@media(max-width:768px){
 #depart .grid_wrap{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px 8px!important;overflow:visible!important;scroll-snap-type:none!important;padding:12px!important}
 #depart .grid_wrap>.item{width:100%!important;min-width:0!important;flex:none!important;scroll-snap-align:none!important}
 #depart .department-controls{display:none!important}
}
