@charset "utf-8";

body.syou-sub-page.syou-doctor-page #container.syou-sub {
    padding: 0;
}

body.syou-sub-page.syou-doctor-page .syou-sub__body:has(.syou-doctor) {
    padding: 0 0 32px;
}

.syou-doctor {
    --doctor-ink: #1a1a1a;
    --doctor-sub: #888;
    --doctor-line: #e5e5e5;
    --doctor-line-section: #d8d4d0;
    --doctor-accent: var(--syou-page-cat-accent, #d81b60);
    --doctor-btn-bg: var(--syou-primary-light, #faf6f1);
    --doctor-btn-border: #e8e8e8;
    color: var(--doctor-ink);
}

/* 상단 탭: 직함 + 이름 한 줄 */
.syou-page-cat-bar--doctor .syou-doctor-cat-nav__btn {
    min-height: 48px;
    padding: 12px 14px;
}

.syou-page-cat-bar--doctor .syou-doctor-cat-nav__label {
    display: block;
    font-size: var(--syou-frame-meta, 1.4rem);
    line-height: 1.25;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.syou-page-cat-bar--doctor .syou-page-cat-nav__item.is-active .syou-doctor-cat-nav__label {
    color: var(--syou-page-cat-accent, #d81b60);
}

.syou-page-cat-bar--doctor .syou-page-cat-nav__item.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--syou-page-cat-accent, #d81b60);
}

.syou-page-cat-bar--doctor .syou-page-cat-nav__item {
    min-width: 112px;
}

/* 목록 (첫 화면) */
.syou-doctor-index {
    padding: 16px var(--syou-frame-pad-x, 16px) 8px;
}

.syou-doctor-index__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.syou-doctor-index__item + .syou-doctor-index__item {
    margin-top: 20px;
}

.syou-doctor-index__card {
    color: inherit;
}

.syou-doctor-index__figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f3f0;
    line-height: 0;
    aspect-ratio: 4 / 5;
}

.syou-doctor-index__figure img,
.syou-doctor-index__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.syou-doctor-index__figure img {
    object-fit: contain;
    object-position: center center;
}

.syou-doctor-index__figure.is-placeholder {
    background: #ececec;
}

.syou-doctor-index__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px 16px;
    box-sizing: border-box;
    background: #ececec;
}

.syou-doctor-index__placeholder-text {
    font-size: var(--syou-frame-caption, 1.6rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.03em;
    color: #999;
    text-align: center;
}

/* 1행: 이름·직함(좌) | 자세히 보기 + ↓(우측·세로 중앙) */
.syou-doctor-index__foot {
    --doctor-name-size: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 0 2px;
}

.syou-doctor-index__meta {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.syou-doctor-index__name {
    margin: 0;
    font-size: var(--doctor-name-size);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.04em;
    color: var(--doctor-ink);
}

.syou-doctor-index__role {
    margin: 4px 0 0;
    font-size: var(--syou-frame-caption, 1.6rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--doctor-sub);
}

.syou-doctor-index__more {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 6px 0 6px 8px;
    border: 0;
    background: none;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.syou-doctor-index__more-label {
    margin: 0;
    color: #555;
    font-size: calc(var(--doctor-name-size) - 2px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.syou-doctor-index__more:hover .syou-doctor-index__more-label,
.syou-doctor-index__more:focus-visible .syou-doctor-index__more-label {
    color: var(--syou-page-cat-accent, #d81b60);
}

.syou-doctor-index__item.is-detail-open .syou-doctor-index__more-label,
.syou-doctor-index__item.is-detail-open .syou-doctor-index__more-arrow {
    visibility: hidden;
    pointer-events: none;
}

.syou-doctor-index__more-arrow {
    font-size: calc(var(--doctor-name-size) - 2px);
    font-weight: 800;
    line-height: 1;
    color: var(--syou-page-cat-accent, #d81b60);
    animation: syou-doctor-arrow-bounce-y 1s ease-in-out infinite;
}

.syou-doctor-index__more:hover .syou-doctor-index__more-arrow,
.syou-doctor-index__more:focus-visible .syou-doctor-index__more-arrow {
    color: var(--syou-page-cat-accent, #d81b60);
}

@keyframes syou-doctor-arrow-bounce-y {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

/* 약력 상세 (펼침) */
.syou-doctor-index__item {
    scroll-margin-top: calc(var(--syou-sticky-header-h, 104px) + 12px);
}

.syou-doctor-detail {
    scroll-margin-top: calc(var(--syou-sticky-header-h, 104px) + 12px);
}

.syou-doctor-detail[hidden] {
    display: none !important;
}

.syou-doctor-detail.is-open {
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--doctor-line-section);
}

.syou-doctor-detail__section + .syou-doctor-detail__section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--doctor-line);
}

.syou-doctor-detail__heading {
    margin: 0 0 12px;
    font-size: var(--syou-frame-text, 1.8rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--doctor-ink);
}

.syou-doctor-detail__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.syou-doctor-detail__list li {
    position: relative;
    padding-left: 10px;
    font-size: var(--syou-frame-caption, 1.6rem);
    font-weight: 400;
    line-height: 1.65;
    color: #555;
}

.syou-doctor-detail__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #aaa;
}

.syou-doctor-detail__list li + li {
    margin-top: 6px;
}

.syou-doctor-detail__foot {
    margin-top: 24px;
    padding-top: 8px;
    text-align: center;
}

/* common.css button { border-color: transparent } 보다 우선 */
body.syou-sub-page.syou-doctor-page button.syou-doctor-detail__close,
.syou-doctor-detail__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    height: 44px;
    padding: 0 28px;
    border: 1px solid #666 !important;
    border-radius: 8px;
    background: #fff !important;
    color: #333;
    font-family: inherit;
    font-size: var(--syou-frame-caption, 1.6rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

body.syou-sub-page.syou-doctor-page button.syou-doctor-detail__close:hover,
body.syou-sub-page.syou-doctor-page button.syou-doctor-detail__close:focus-visible,
.syou-doctor-detail__close:hover,
.syou-doctor-detail__close:focus-visible {
    border: 1px solid #333 !important;
    color: #111;
    background: #fafafa !important;
    outline: none;
}

@container syouframe (max-width: 740px) {
    body.syou-sub-page.syou-doctor-page .syou-sub__body:has(.syou-doctor) {
        padding: 0 0 calc(100cqw * 32 / 430);
    }

    .syou-doctor-index {
        padding: calc(100cqw * 16 / 430) var(--syou-frame-pad-x, calc(100cqw * 16 / 430)) calc(100cqw * 8 / 430);
    }
}

@media (max-width: 740px) {
    body.syou-layout:not(.syou-proportional-scale).syou-sub-page.syou-doctor-page .syou-sub__body:has(.syou-doctor) {
        padding: 0 0 calc(100vw * 32 / 430);
    }
}
