/* 의료진 소개 (page/doctor.php) */
.dr_greeting .mo_only { display: none; }

/* 인사말 */
.dr_greeting {
    position: relative;
    padding: 96px 20px 80px;
    text-align: center;
    color: #312a28;
}
.dr_quote_mark {
    display: block;
    height: 56px;
    font-family: "CormorantGaramond", serif;
    font-size: 120px;
    line-height: 1;
    color: #c9b2a8;
}
.dr_quote {
    margin-top: 12px;
    font-family: "JejuMyeongjoOTF", serif;
    font-size: 34px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.02em;
    word-break: keep-all;
}
.dr_quote strong { color: #957064; font-weight: 400; }
.dr_greeting_txt {
    max-width: 760px;
    margin: 28px auto 0;
    color: #6b605b;
    font-size: 17px;
    line-height: 1.9;
    word-break: keep-all;
}

/* 의료진 바로가기 */
.dr_index {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.dr_index a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 26px 8px 8px;
    border: 1px solid #ebe3de;
    border-radius: 999px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.dr_index a:hover { border-color: #c9b2a8; box-shadow: 0 8px 24px rgba(80, 55, 45, .08); transform: translateY(-2px); }
.dr_index_img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: #F4F1EE;
    flex-shrink: 0;
}
.dr_index_img img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.dr_index_txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
.dr_index_txt em { font-style: normal; font-size: 13px; color: #957064; }
.dr_index_txt b { font-family: "JejuMyeongjoOTF", serif; font-size: 18px; font-weight: 400; color: #312a28; }

/* 원장 카드: 히어로 패널 + 약력 탭 */
.dr_card {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 112px;
    color: #312a28;
    scroll-margin-top: 100px;
}
.dr_hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 440px;
    min-height: 560px;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(120deg, #F8F4F1 0%, #EFE6E0 60%, #E6D9D1 100%);
}
.dr_card:nth-of-type(even) .dr_hero { background: linear-gradient(120deg, #F5F1EE 0%, #EAE3DE 60%, #DED3CC 100%); }
.dr_hero::before {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.dr_intro {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 72px;
}
.dr_intro > h2 {
    display: flex;
    flex-direction: column;
}
.dr_no {
    font-family: "CormorantGaramond", serif;
    font-variant-numeric: lining-nums;
    font-size: 20px;
    letter-spacing: 0.08em;
    color: #b39486;
}
.dr_position {
    margin-top: 28px;
    color: #957064;
    font-size: 17px;
    font-weight: 600;
}
.dr_name {
    margin-top: 8px;
    font-family: "JejuMyeongjoOTF", serif;
    font-size: 60px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.dr_specialist { margin-top: 14px; color: #6b605b; font-size: 18px; }

.dr_depart {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(149, 112, 100, .25);
}
.dr_depart h3 {
    margin-bottom: 14px;
    color: #957064;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.dr_depart ul { display: flex; flex-wrap: wrap; gap: 8px; }
.dr_depart li {
    padding: 7px 15px;
    border: 1px solid rgba(149, 112, 100, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .65);
    color: #3d3431;
    font-size: 15px;
    line-height: 1.4;
}

.dr_photo { position: relative; background: #EDE6E1; }
.dr_photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.dr_photo_none {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "JejuMyeongjoOTF", serif;
    color: #b9a59c;
    font-size: 18px;
}

/* 약력 탭 */
.dr_tabs {
    margin-top: 48px;
    display: flex;
    gap: 36px;
    border-bottom: 1px solid #e6dcd6;
    overflow-x: auto;
    scrollbar-width: none;
}
.dr_tabs::-webkit-scrollbar { display: none; }
.dr_tabs button {
    position: relative;
    flex-shrink: 0;
    padding: 0 2px 18px;
    border: 0;
    background: none;
    color: #a39893;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s;
}
.dr_tabs button span {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #c4b8b2;
}
.dr_tabs button:hover { color: #6b5a52; }
.dr_tabs button[aria-selected="true"] { color: #312a28; }
.dr_tabs button[aria-selected="true"] span { color: #957064; }
.dr_tabs button[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #957064;
}
.dr_tabs button:focus-visible { outline: 2px solid #957064; outline-offset: 4px; border-radius: 2px; }

.dr_panel { padding: 32px 4px 0; }
.dr_panel[hidden] { display: none; }
.dr_panel ul li {
    position: relative;
    padding-left: 18px;
    color: #3d3431;
    font-size: 16px;
    line-height: 1.75;
    word-break: keep-all;
    break-inside: avoid;
}
.dr_panel ul li + li { margin-top: 10px; }
.dr_panel ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 6px;
    height: 1px;
    background: #957064;
}
.dr_panel.is_cols ul { columns: 2; column-gap: 64px; }
.dr_panel ul li b { color: #312a28; font-weight: 600; }
.dr_note { margin-top: 20px; color: #a39893; font-size: 13px; }

@media (max-width: 1024px) {
    .dr_greeting .mo_only { display: inline; }
    .dr_greeting .pc_only { display: none; }
    .dr_greeting { padding: 56px 20px 48px; }
    .dr_quote_mark { height: 40px; font-size: 88px; }
    .dr_quote { font-size: 23px; }
    .dr_greeting_txt { margin-top: 20px; font-size: 15px; line-height: 1.8; }
    .dr_index { margin-top: 32px; gap: 8px; }
    .dr_index a { padding: 6px 18px 6px 6px; gap: 10px; }
    .dr_index_img { width: 44px; height: 44px; }
    .dr_index_txt b { font-size: 16px; }

    .dr_card { padding: 0 20px 64px; scroll-margin-top: 80px; }
    .dr_hero { grid-template-columns: 1fr; min-height: 0; border-radius: 24px; }
    .dr_photo { order: -1; aspect-ratio: 4 / 4.2; }
    .dr_intro { padding: 32px 24px 36px; }
    .dr_no { font-size: 16px; }
    .dr_position { margin-top: 14px; font-size: 15px; }
    .dr_name { font-size: 38px; }
    .dr_specialist { margin-top: 8px; font-size: 15px; }
    .dr_depart { margin-top: 24px; padding-top: 20px; }
    .dr_depart ul { gap: 6px; }
    .dr_depart li { padding: 6px 12px; font-size: 14px; }
    .dr_tabs { margin-top: 28px; gap: 24px; }
    .dr_tabs button { padding-bottom: 14px; font-size: 16px; }
    .dr_panel { padding-top: 22px; }
    .dr_panel ul li { font-size: 15px; }
    .dr_panel.is_cols ul { columns: 1; }
}
