/* Shared navigation, typography and footer from the final design. */
.site-header::after {
 content:"";
 position:absolute;
 inset:auto 0 -1px;
 height:1px;
 background:rgb(0 0 0 / 10%);
 pointer-events:none;
}
.site-header .nav-heading { font-weight:700; }
.site-header .submenu a[aria-current] { color:#222; background:#f3f5f9; font-weight:600; }
#main#main .pill, #main#main .doctor-list-link, #main#main .doctor-card .doctor-more { font-weight:700; }
.quick-bar { --quick-gap:9px; }
.quick-bar .quick-toggle { color:#222; }
.quick-bar .booking { color:#fff; }
.quick-bar .quick-toggle, .quick-bar .booking { font-weight:500; line-height:1; }
.site-footer { color:#8b8b8b; }
.site-footer > .wrap > a > img { opacity:1; }
.site-footer .copyright { color:#b5b5b5; }
#main#main #location .map-links > :is(a,button),
#main#main .visit-map-links a { font-weight:600; }

/* Home typography and fill indicators. */
.home #main .hero-copy :is(h1,h2) strong { font-weight:700; }
.home #main .hero-line { height:1.2px; background:rgb(255 255 255 / 40%); }
.home #main .hero-line::before { width:100%; transform:scaleX(var(--hero-progress, .333333)); transform-origin:left; }
.home #main .stat strong,
.home #main .stat small { font-weight:700; }
.home #main .stat p { color:#454545; font-weight:500; }
.home #main .stat p span { color:#333; font-weight:600; }
.home #main .equipment-navigation { --equipment-progress-start:.152778; }
.home #main .equipment-navigation .scroll-progress { background:rgb(34 34 34 / 15%); }
.home #main .equipment-navigation .scroll-progress span {
 width:100%;
 background:#222;
 transform-origin:left;
 transform:scaleX(calc(var(--equipment-progress-start) + (1 - var(--equipment-progress-start)) * var(--equipment-progress, 0)));
}
.home #main .video-copy .video-tags > span {
 font-family:inherit;
 font-weight:500;
 color:#555;
 letter-spacing:-.2px;
}
.home #main .news-item-copy .circle-arrow {
 flex:none;
 display:grid;
 place-items:center;
 font-weight:400;
 line-height:1;
}

@media (min-width:1280px) {
 .quick-bar .quick-toggle,.quick-bar .booking { font-size:14px; letter-spacing:-.2px; }
 .location-page .visit-hours-card > p { margin-top:20px; font-size:28px; font-weight:600; line-height:43px; }
 .location-page .visit-hours-card > small { font-size:22px; font-weight:400; line-height:35px; }
 .home #main#main .stat .count-number { font-size:55px; letter-spacing:-1px; margin-inline-end:4px; }
 .home #main#main .stat small { font-size:40px; }
 .home #main#main .system-scroll-shell.is-pinned .systems { min-height:0; padding-bottom:72px; }
 .home #main#main .system-track article p { font-size:17px; line-height:1.7; }
 .home #main .system-track article h3 { font-size:30px; font-weight:700; }
 .home #main .news-item .news-item-copy h3 { font-size:25px; line-height:32px; font-weight:700; }
 .home #main .news-item-copy .circle-arrow { width:35px; height:35px; font-size:20px; }
 .home #main .video-copy .video-tags > span { padding:10px 20px; min-height:41px; font-size:17px; line-height:21px; }
 #main#main #location .map-links { gap:clamp(8px,calc(1.05 * var(--uvw, 1vw)),15px); }
 #main#main #location .map-links > :is(a,button) { flex:0 1 200px; width:200px; min-width:0; min-height:53px; padding-inline:clamp(4px,calc(.5 * var(--uvw, 1vw)),10px); white-space:nowrap; }
 #main .visit-map-links { --map-link-height:53px; }
}
@media (min-width:768px) and (max-width:1279px) {
 .quick-bar .quick-toggle,.quick-bar .booking { font-size:12px; }
 .location-page .visit-hours-grid { gap:18px; }
 .location-page .visit-hours-card { padding-block:50px 31px; }
 .location-page .visit-hours-card .visit-icon { width:45px; height:45px; margin-bottom:28px; }
 .location-page .visit-hours-card .visit-icon-phone { mask-size:42px; }
 .location-page .visit-hours-card > p { margin-top:14px; font-size:22px; font-weight:600; line-height:35px; }
 .location-page .visit-hours-card > small { font-size:20px; font-weight:400; line-height:32px; }
 .location-page .visit-hours-card:first-child > p { font-size:28px; line-height:43px; }
 .location-page .visit-hours-card:first-child > small { font-size:22px; line-height:35px; }
 .home #main#main .stat .count-number { font-size:36px; letter-spacing:-.5px; margin-inline-end:3.5px; }
 .home #main#main .stat small { font-size:28px; }
 .home #main#main .equipment-card h3 { margin-top:6px; }
 .home #main .equipment-navigation { --equipment-progress-start:.243243; }
 .home #main .news-item .news-item-copy h3 { font-size:17px; line-height:22px; font-weight:700; }
 .home #main .news-item-copy > div { max-width:195px; }
 .home #main .news-item-copy .circle-arrow { margin-left:auto; font-size:17px; }
 .home #main .video-copy .video-tags > span { padding:6px 12px; min-height:27px; font-size:12px; line-height:15px; }
 #main#main #location .address-text { max-width:none; white-space:nowrap; }
 #main#main #location .map-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:19px; }
 #main #location .map-links { --map-link-kakao-size:25px; --map-link-tmap-size:33px; }
 #main .visit-map-links { --map-link-icon-size:25px; --map-link-kakao-size:18px; --map-link-height:49px; }
 .home #main #location .map-links,
 #main:is(.about-page,.mission-page,.doctors-page,.disease-disc,.disease-patellar-luxation) #location .map-links {
  --map-link-kakao-radius:2.5px;
 }
 .site-footer > .wrap > a > img { width:136.5px; }
 .site-footer .copyright { margin-top:10px; padding-top:0; border:0; text-align:left; }
}
@media (max-width:767.98px) {
 .quick-bar { --quick-gap:6px; }
 .location-page .visit-hours-card > p { margin-top:17px; line-height:22px; }
 .location-page .visit-hours-card > small { font-size:12px; line-height:19px; }
 .home #main#main .stat .count-number { font-size:30px; }
 .home #main#main .stat small { font-size:25px; }
 .home #main .news-item-copy .circle-arrow { display:none; }
 .home #main .equipment-navigation { --equipment-progress-start:.149254; }
 #main #location .map-links { --map-link-icon-size:18px; --map-link-kakao-size:13px; }
 #main .visit-map-links { --map-link-icon-size:15px; --map-link-kakao-size:12px; --map-link-height:33px; }
 .home #main #location .map-links,
 #main:is(.about-page,.mission-page,.doctors-page,.disease-disc,.disease-patellar-luxation,.disease-general,.rehabilitation-page) #location .map-links {
  --map-link-kakao-radius:1px;
 }
}
@media (prefers-reduced-motion:reduce) {
 .home #main .hero-line::before { transition:none; }
}

/* The greeting photograph uses the original Figma crop at each breakpoint. */
.greeting-photos > .greeting-main { position:relative; overflow:hidden; }
.greeting-main .disease-art-variant { position:absolute; inset:0; }
.greeting-main .disease-art-variant img { position:absolute; max-width:none; }

/* Use the square Figma slot, including the transparent space in the source icons. */
#main :is(.map-links,.visit-map-links) img {
 width:var(--map-icon-size,var(--map-link-icon-size,30px));
 height:var(--map-icon-size,var(--map-link-icon-size,30px));
 max-height:none;
 flex:none;
 object-fit:contain;
}
#main :is(.map-links,.visit-map-links) .map-icon-kakao {
 --map-icon-size:var(--map-link-kakao-size,22px);
 border-radius:var(--map-link-kakao-radius,0);
 object-fit:cover;
 object-position:left;
}
#main .map-links .map-icon-tmap {
 --map-icon-size:var(--map-link-tmap-size,var(--map-link-icon-size,30px));
}
#main .visit-map-links a { min-height:var(--map-link-height); }

@media (min-width:768px) and (max-width:1279px) {
 #main#main.dentistry-page .dent-step-grid { --step-gap:18px; gap:var(--step-gap); }
 #main#main.dentistry-page .dent-step-grid article { flex-basis:260px; }
 #main#main.dentistry-page .dent-step-art { width:100%; height:auto; aspect-ratio:260/152; }
}
@media (max-width:767.98px) {
 #main#main.dentistry-page .dent-step-grid { --step-gap:12px; gap:var(--step-gap); }
 #main#main.dentistry-page .dent-step-grid article { flex-basis:240px; }
 #main#main.dentistry-page .dent-step-art { width:100%; height:auto; aspect-ratio:240/140; }
}

/* Cap the mission banner while its scroll measurements catch up after resizing. */
#main .mission-hero-track .mission-banner {
 --banner-safe-offset:max(calc((100% - calc(100 * var(--uvw, 1vw))) / 2), var(--banner-offset, 0px));
 margin-left:var(--banner-safe-offset);
 max-width:calc((100% + calc(100 * var(--uvw, 1vw))) / 2 - var(--banner-safe-offset));
}

/* 통계 숫자: tabular-nums 때문에 숫자 1이 넓게 잡혀 816·1,155·1,652 자간이 468보다 벌어져 보임 */
.home #main .stat .count-number { font-variant-numeric:normal; }
