/* 공통 상단 (head.php) - 모든 스타일은 .yhd 로 시작 */
.yhd-top,
.yhd,
.yhd-sub,
.yhd-drawer {
    --yhd-navy: #1d2b44;
    --yhd-blue: #29a9e1;
    --yhd-blue-dk: #1b7fb0;
    --yhd-text: #4a5566;
    --yhd-muted: #8a94a3;
    --yhd-line: #e6edf3;
    --yhd-soft: #f4f8fb;
    font-family: var(--ys-font);
    word-break: keep-all;
}

.yhd-top *,
.yhd *,
.yhd-sub *,
.yhd-drawer * {
    box-sizing: border-box;
}

.yhd-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.yhd a,
.yhd-top a,
.yhd-sub a,
.yhd-drawer a {
    text-decoration: none !important;
}

.yhd button,
.yhd-drawer button {
    font-family: var(--ys-font);
}

/* 1. 맨 위 안내 줄 (전화 · 진료시간 · 로그인 · SNS) */
.yhd-top {
    background: var(--yhd-navy);
    color: #b9c4d3;
    font-size: 13px;
}

.yhd-top .yhd-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 38px;
}

.yhd-top-info {
    margin: 0;
    font-size: 13px;
    color: #b9c4d3;
}

.yhd-top-info a {
    margin-right: 10px;
    font-weight: 700;
    color: #fff !important;
}

.yhd-top-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yhd-top-links a {
    font-size: 13px;
    color: #b9c4d3 !important;
    transition: color .2s;
}

.yhd-top-links a:hover {
    color: #fff !important;
}

.yhd-sns {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, .18);
}

/* SNS 아이콘 (contact.lib.php 의 ys_sns_icons) - 하단 · 모바일 메뉴는 각 브랜드 색 원형 */
.ys-sns {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .2s, background-color .2s, color .2s;
}

.ys-sns svg {
    display: block;
    width: 24px;
    height: 24px;
}

.ys-sns:hover {
    transform: translateY(-2px);
}

.ys-sns-blog {
    background: #03c75a;
}

.ys-sns-facebook {
    background: #1877f2;
}

.ys-sns-english {
    background: #1d2b44;
}

/* 맨 위 안내 줄에서는 작고 차분하게, 마우스를 올리면 브랜드 색 */
.yhd-top .ys-sns {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, .12);
    color: #b9c4d3 !important;
}

.yhd-top .ys-sns svg {
    width: 18px;
    height: 18px;
}

.yhd-top .ys-sns:hover {
    transform: none;
    color: #fff !important;
}

.yhd-top .ys-sns-blog:hover {
    background: #03c75a;
}

.yhd-top .ys-sns-facebook:hover {
    background: #1877f2;
}

.yhd-top .ys-sns-english:hover {
    background: var(--yhd-blue);
}

/* 2. 메인 바 (로고 · 메뉴 · 상담 버튼) - 스크롤해도 위에 고정 */
.yhd {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid var(--yhd-line);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
}

.yhd-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 76px;
}

.yhd-logo {
    flex-shrink: 0;
    display: block;
}

.yhd-logo img {
    display: block;
    width: auto;
    height: 46px;
}

.yhd-nav {
    flex: 1;
    height: 100%;
}

.yhd-menu {
    display: flex;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yhd-item {
    position: relative;
    display: flex;
    align-items: center;
}

.yhd-link {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 clamp(8px, .7vw, 10px);     /* 메뉴 10개가 화면 너비에 맞게 */
    font-size: clamp(14.5px, 1.1vw, 15.5px);
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: nowrap;
    color: var(--yhd-navy) !important;
    transition: color .2s;
}

.yhd-link::after {
    content: "";
    position: absolute;
    left: clamp(8px, .7vw, 10px);
    right: clamp(8px, .7vw, 10px);
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--yhd-blue);
    transform: scaleX(0);
    transition: transform .2s;
}

.yhd-item:hover .yhd-link,
.yhd-item.is-current .yhd-link {
    color: var(--yhd-blue-dk) !important;
}

.yhd-item:hover .yhd-link::after,
.yhd-item.is-current .yhd-link::after {
    transform: scaleX(1);
}

/* 드롭다운 */
.yhd-drop {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 270px;
    padding: 10px;
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(29, 43, 68, .14);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .18s, transform .18s, visibility .18s;
}

.yhd-item:hover .yhd-drop,
.yhd-item:focus-within .yhd-drop {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.yhd-drop ul,
.yhd-drawer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yhd-drop a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    transition: background-color .15s;
}

.yhd-drop a:hover,
.yhd-drop a.is-current {
    background: var(--yhd-soft);
}

.yhd-drop strong,
.yhd-drawer-list strong {
    display: block;
    font-size: 15px;
    color: var(--yhd-navy);
}

.yhd-drop a.is-current strong {
    color: var(--yhd-blue-dk);
}

.yhd-drop span,
.yhd-drawer-list span {
    display: block;
    font-size: 12px;
    color: var(--yhd-muted);
}

.yhd-new {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--yhd-blue);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .04em;
    vertical-align: 2px;
}

/* 오른쪽 버튼 */
.yhd-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yhd-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #fee500;
    color: #191919 !important;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .2s;
}

.yhd-cta:hover {
    background: #f5dc00;
}

.yhd-cta svg,
.yhd-icon-btn svg {
    width: 20px;
    height: 20px;
}

.yhd-icon-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--yhd-soft);
    color: var(--yhd-navy);
    cursor: pointer;
}

.yhd-icon-kakao {
    background: #fee500;
    color: #3c1e1e !important;
}

.yhd-burger span,
.yhd-burger span::before,
.yhd-burger span::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--yhd-navy);
}

.yhd-burger span {
    position: relative;
}

.yhd-burger span::before,
.yhd-burger span::after {
    content: "";
    position: absolute;
    left: 0;
}

.yhd-burger span::before {
    top: -6px;
}

.yhd-burger span::after {
    top: 6px;
}

/* 3. 하위 메뉴 탭 (하위 페이지에서만) */
.yhd-sub {
    background: #fff;
    border-bottom: 1px solid var(--yhd-line);
}

.yhd-sub .yhd-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 60px;
}

.yhd-sub-title {
    flex-shrink: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--yhd-navy);
}

.yhd-sub-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 0;
}

.yhd-sub-tabs::-webkit-scrollbar {
    display: none;
}

.yhd-sub-tabs a {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--yhd-line);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--yhd-text) !important;
    transition: border-color .2s, color .2s;
}

.yhd-sub-tabs a:hover {
    border-color: var(--yhd-blue);
    color: var(--yhd-blue-dk) !important;
}

.yhd-sub-tabs a.is-current {
    background: var(--yhd-navy);
    border-color: var(--yhd-navy);
    color: #fff !important;
}

/* 4. 모바일 메뉴 (오른쪽에서 열림) */
.yhd-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background: rgba(15, 23, 38, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.yhd-drawer.is-open {
    opacity: 1;
    visibility: visible;
}

.yhd-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(88vw, 380px);
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
}

.yhd-drawer.is-open .yhd-drawer-panel {
    transform: translateX(0);
}

.yhd-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 14px 20px;
    border-bottom: 1px solid var(--yhd-line);
}

.yhd-drawer-head img {
    display: block;
    height: 36px;
}

.yhd-close {
    display: flex;
    font-size: 30px;
    line-height: 1;
}

.yhd-drawer-auth {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--yhd-line);
}

.yhd-drawer-auth a {
    flex: 1;
    padding: 9px 0;
    border-radius: 10px;
    background: var(--yhd-soft);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--yhd-navy) !important;
}

.yhd-drawer details {
    border-bottom: 1px solid var(--yhd-line);
}

.yhd-drawer summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 700;
    color: var(--yhd-navy);
    list-style: none;
    cursor: pointer;
}

.yhd-drawer summary::-webkit-details-marker {
    display: none;
}

.yhd-drawer summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--yhd-muted);
    border-bottom: 2px solid var(--yhd-muted);
    transform: rotate(45deg);
    transition: transform .2s;
}

.yhd-drawer details[open] summary::after {
    transform: rotate(-135deg);
}

.yhd-drawer details.is-current summary {
    color: var(--yhd-blue-dk);
}

.yhd-drawer-list {
    padding: 0 12px 12px;
}

.yhd-drawer-list a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

.yhd-drawer-list a.is-current {
    background: var(--yhd-soft);
}

.yhd-drawer-list a.is-current strong {
    color: var(--yhd-blue-dk);
}

.yhd-drawer-foot {
    margin-top: auto;
    padding: 18px 20px 24px;
}

.yhd-drawer-foot .yhd-cta {
    justify-content: center;
    width: 100%;
    margin-bottom: 8px;
}

.yhd-drawer-tel {
    display: block;
    padding: 11px 0;
    border-radius: 999px;
    border: 2px solid var(--yhd-navy);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--yhd-navy) !important;
}

.yhd-drawer-foot p {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    color: var(--yhd-muted);
}

.yhd-drawer-foot .yhd-sns {
    justify-content: center;
    margin-top: 14px;
    padding: 0;
    border: 0;
}


html.yhd-lock,
html.yhd-lock body {
    overflow: hidden;
}

/* 1280px 미만 (태블릿 · 모바일 · 작은 노트북): 메뉴는 햄버거로 */
@media (max-width: 1279px) {
    .yhd-nav,
    .yhd-actions .yhd-cta {
        display: none;
    }

    .yhd-bar {
        justify-content: space-between;
        height: 64px;
    }

    .yhd-logo img {
        height: 38px;
    }

    .yhd-icon-btn {
        display: inline-flex;
    }
}

@media (max-width: 991px) {
    .yhd-top {
        display: none;
    }
}

@media (max-width: 767px) {
    .yhd-wrap {
        padding: 0 16px;
    }

    .yhd-bar {
        height: 58px;
    }

    .yhd-logo img {
        height: 34px;
    }

    .yhd-sub .yhd-wrap {
        display: block;
        min-height: 0;
        padding-top: 12px;
    }

    .yhd-sub-tabs {
        padding: 8px 0 12px;
    }
}

@media (min-width: 1280px) {
    .yhd-drawer {
        display: none;
    }
}

/* ===== 공통 하단 푸터 (tail.php) - .yft ===== */
.yft {
    --yft-navy: #1d2b44;
    --yft-blue-dk: #1b7fb0;
    --yft-text: #4a5566;
    --yft-muted: #8a94a3;
    --yft-line: #e2e9f0;
    margin-top: 48px;
    background: #f4f8fb;
    border-top: 1px solid var(--yft-line);
    font-family: var(--ys-font);
    font-size: 14px;
    line-height: 1.7;
    color: var(--yft-text);
    word-break: keep-all;
}

.yft * {
    box-sizing: border-box;
}

.yft a {
    text-decoration: none !important;
}

.yft-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 32px;
    padding-top: 44px;
    padding-bottom: 36px;
}

.yft-brand img {
    display: block;
    mix-blend-mode: multiply;    /* 로고 이미지의 흰 배경 제거 */
    height: 44px;
    width: auto;
    margin-bottom: 14px;
}

.yft-brand p {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--yft-text);
}

.yft-sns {
    display: flex;
    gap: 10px;
}


.yft h3 {
    margin: 0 0 12px;
    font-family: var(--ys-font);
    font-size: 15px;
    font-weight: 800;
    color: var(--yft-navy);
}

.yft-hours {
    margin: 0;
}

.yft-hours div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
}

.yft-hours dt {
    font-weight: 500;
}

.yft-hours dd {
    margin: 0;
    font-weight: 700;
    color: var(--yft-navy);
}

.yft-hours .yft-closed dd {
    color: #e0405e;
}

.yft-tel {
    display: block;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--yft-navy) !important;
}

.yft-contact p {
    margin: 2px 0 12px;
    font-size: 13px;
    color: var(--yft-muted);
}

.yft-kakao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #fee500;
    color: #191919 !important;
    font-size: 14px;
    font-weight: 700;
}

.yft-kakao svg {
    width: 18px;
    height: 18px;
}

.yft-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yft-links a {
    display: inline-block;
    padding: 3px 0;
    color: var(--yft-text) !important;
}

.yft-links a:hover {
    color: var(--yft-blue-dk) !important;
}

.yft-bottom {
    border-top: 1px solid var(--yft-line);
    padding-top: 20px;
    padding-bottom: 28px;
    font-size: 13px;
    color: var(--yft-muted);
}

.yft-policy {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 18px;
    margin-bottom: 10px;
}

.yft-policy a,
.yft-policy summary {
    font-size: 13px;
    color: var(--yft-text) !important;
    cursor: pointer;
}

.yft-policy a.yft-privacy {
    font-weight: 700;
    color: var(--yft-navy) !important;
}

.yft-policy summary {
    list-style: none;
}

.yft-policy summary::-webkit-details-marker {
    display: none;
}

.yft-policy details p {
    flex-basis: 100%;
    max-width: 720px;
    margin: 8px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    font-size: 12px;
    color: var(--yft-text);
}

.yft-biz {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    color: var(--yft-muted);
}

.yft-biz span {
    display: inline-block;
    margin-right: 14px;
}

.yft-copy {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--yft-muted);
}

@media (max-width: 991px) {
    .yft-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .yft {
        margin-top: 32px;
    }

    .yft-main {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 32px;
        padding-bottom: 26px;
    }

    .yft-biz span {
        display: block;
        margin-right: 0;
    }
}

/* 로그인 · 회원가입 창 (head.php) */
.ys-auth {
    --ya-navy: #1d2b44;
    --ya-blue: #29a9e1;
    --ya-blue-dk: #1b7fb0;
    --ya-text: #4a5566;
    --ya-muted: #8a94a3;
    --ya-line: #dfe6ee;
    --ya-soft: #f4f8fb;
    font-family: var(--ys-font);
    word-break: keep-all;
}

.ys-auth * {
    box-sizing: border-box;
}

.ys-auth .modal-dialog {
    max-width: 448px;
    margin: 16px auto;
    padding: 0 12px;
}

.ys-auth .modal-dialog-centered {
    min-height: calc(100% - 32px);
}

.ys-auth.fade .modal-dialog {
    transform: translateY(14px) scale(.98);
    transition: transform .22s ease-out;
}

.ys-auth.show .modal-dialog {
    transform: none;
}

.ys-auth .modal-content {
    position: relative;
    overflow: hidden;
    padding: 28px 28px 0;
    border: 0;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(15, 23, 38, .3);
    color: var(--ya-text);
    font-size: 15px;
}

.ys-auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ya-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.ys-auth-close:hover {
    background: var(--ya-soft);
    color: var(--ya-navy);
}

.ys-auth-close:focus {
    outline: none;
}

.ys-auth-close:focus-visible {
    box-shadow: 0 0 0 3px rgba(41, 169, 225, .3);
}

.ys-auth-close svg {
    width: 20px;
    height: 20px;
}

/* 로그인 | 회원가입 전환 */
.ys-auth-tabs {
    display: inline-flex;
    align-self: flex-start;
    gap: 4px;
    margin-bottom: 22px;
    padding: 4px;
    border-radius: 999px;
    background: var(--ya-soft);
}

.ys-auth-tabs > * {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ya-muted);
    text-decoration: none;
}

.ys-auth-tabs a:hover {
    color: var(--ya-navy);
    text-decoration: none;
}

.ys-auth-tabs .is-on {
    background: #fff;
    color: var(--ya-navy);
    box-shadow: 0 2px 8px rgba(29, 43, 68, .1);
}

.ys-auth-head h4 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ya-navy);
}

.ys-auth-head p {
    margin: 0 0 22px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ya-text);
}

.ys-auth-head b {
    font-weight: 700;
    color: var(--ya-blue-dk);
}

/* 입력칸 */
.ys-field {
    margin-bottom: 14px;
}

.ys-field label,
.ys-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ya-navy);
}

.ys-field input[type=text],
.ys-field input[type=password],
.ys-field input[type=email] {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--ya-line);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 16px; /* 16px 미만이면 아이폰에서 입력할 때 화면이 확대됨 */
    color: var(--ya-navy);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .15s, box-shadow .15s;
}

.ys-field input::placeholder {
    color: #a9b3c1;
}

.ys-field input:focus {
    outline: none;
    border-color: var(--ya-blue);
    box-shadow: 0 0 0 4px rgba(41, 169, 225, .15);
}

.ys-field-msg {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.4;
}

.ys-field-msg:empty {
    display: none;
}

.ys-field-msg[data-state=ok] {
    color: #1f9d5c;
}

.ys-field-msg[data-state=bad] {
    color: #d64545;
}

.ys-field-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 12px;
}

/* 비밀번호 보기 버튼 */
.ys-pw {
    position: relative;
}

.ys-field .ys-pw input {
    padding-right: 48px;
}

.ys-pw-toggle {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ya-muted);
    cursor: pointer;
}

.ys-pw-toggle:hover {
    color: var(--ya-navy);
}

.ys-pw-toggle:focus {
    outline: none;
}

.ys-pw-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(41, 169, 225, .3);
}

.ys-pw-toggle svg {
    width: 20px;
    height: 20px;
}

.ys-pw-toggle .ys-eye-off,
.ys-pw-toggle[aria-pressed=true] .ys-eye-on {
    display: none;
}

.ys-pw-toggle[aria-pressed=true] .ys-eye-off {
    display: block;
}

/* 체크박스 */
.ys-check {
    position: relative;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ya-text);
    cursor: pointer;
}

.ys-check input {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.ys-check-box {
    flex: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid #c5cfdb;
    border-radius: 6px;
    background: #fff;
    transition: background-color .15s, border-color .15s;
}

.ys-check input:checked + .ys-check-box {
    border-color: var(--ya-blue);
    background: var(--ya-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.ys-check input:focus-visible + .ys-check-box {
    box-shadow: 0 0 0 4px rgba(41, 169, 225, .2);
}

.ys-auth-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin: 4px 0 18px;
    font-size: 14px;
}

.ys-auth-row a {
    color: var(--ya-muted);
    text-decoration: none;
}

.ys-auth-row a:hover {
    color: var(--ya-navy);
    text-decoration: underline;
}

.ys-auth-warn {
    margin: -6px 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7e6;
    font-size: 13px;
    line-height: 1.5;
    color: #8a5a00;
}

.ys-auth-warn[hidden] {
    display: none;
}

/* 성별 선택 */
.ys-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ys-seg label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.ys-seg input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.ys-seg span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border: 1px solid var(--ya-line);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ya-text);
    transition: border-color .15s, background-color .15s, color .15s;
}

.ys-seg label:hover span {
    border-color: #b9c6d4;
}

.ys-seg input:checked + span {
    border-color: var(--ya-blue);
    background: #eef8fd;
    color: var(--ya-blue-dk);
    box-shadow: inset 0 0 0 1px var(--ya-blue);
}

.ys-seg input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(41, 169, 225, .2);
}

/* 약관 동의 */
.ys-agree {
    margin: 6px 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--ya-soft);
}

.ys-agree b {
    color: var(--ya-blue-dk);
}

.ys-agree-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 6px 0 0 28px;
    font-size: 13px;
}

.ys-agree-links a {
    color: var(--ya-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ys-agree-links a:hover {
    color: var(--ya-navy);
}

.ys-captcha {
    display: flex;
    justify-content: center;
}

.ys-captcha > div:not(:empty) {
    margin-bottom: 16px;
}

/* 버튼 · 하단 */
.ys-auth-submit {
    display: block;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: var(--ya-navy);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: background .15s, transform .1s;
}

.ys-auth-submit:hover {
    background: #2a3d5e;
}

.ys-auth-submit:active {
    transform: scale(.99);
}

.ys-auth-submit:focus {
    outline: none;
}

.ys-auth-submit:focus-visible {
    box-shadow: 0 0 0 4px rgba(41, 169, 225, .35);
}

.ys-auth-alt {
    margin: 16px 0 0;
    font-size: 14px;
    text-align: center;
    color: var(--ya-muted);
}

.ys-auth-alt a {
    margin-left: 4px;
    font-weight: 700;
    color: var(--ya-blue-dk);
    text-decoration: none;
}

.ys-auth-alt a:hover {
    text-decoration: underline;
}

.ys-auth-kakao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px -28px 0;
    padding: 15px 20px;
    background: #fff8d6;
    font-size: 14px;
    color: #3a2e00;
    text-decoration: none;
    transition: background .15s;
}

.ys-auth-kakao:hover {
    background: #fff0a8;
    color: #3a2e00;
    text-decoration: none;
}

.ys-auth-kakao svg {
    flex: none;
    width: 18px;
    height: 18px;
    color: #3a1d1d;
}

.ys-auth-kakao b {
    font-weight: 700;
}

@media (max-width: 420px) {
    .ys-auth .modal-dialog {
        padding: 0 8px;
    }

    .ys-auth .modal-content {
        padding: 24px 20px 0;
        border-radius: 20px;
    }

    .ys-auth-head h4 {
        font-size: 22px;
    }

    .ys-auth-kakao {
        margin: 18px -20px 0;
    }

    .ys-field-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 350px) {
    .ys-captcha > div {
        transform: scale(.9);
        transform-origin: center top;
    }
}
