/* ==========================================================================
   의료진 /doctors · 원장 상세 /doctors/{slug}
   ========================================================================== */

/* ---------------------------------------------------------------- 목록 (어두운 면) */
.doctors-list { padding: 0 0 clamp(96px, 10vw, 176px); }
.doctor-row { padding-top: clamp(72px, 8vw, 136px); }
.doctor-row + .doctor-row .doctor-row__grid { padding-top: clamp(72px, 8vw, 136px); border-top: 1px solid var(--rule); }
.doctor-row + .doctor-row { padding-top: clamp(72px, 8vw, 136px); }
.doctor-row__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
}
.doctor-row__figure { grid-column: 1 / span 5; }
.doctor-row__figure .media { display: block; }
.doctor-row__figure img { transition: opacity .6s var(--ease); }
.doctor-row__figure a:hover img { opacity: .9; }
.doctor-row__body { grid-column: 7 / span 6; }
.doctor-row--reverse .doctor-row__figure { grid-column: 8 / span 5; grid-row: 1; }
.doctor-row--reverse .doctor-row__body { grid-column: 1 / span 6; grid-row: 1; }
.doctor-row--no-photo .doctor-row__body { grid-column: 1 / span 8; }

.doctor-row__index { display: flex; align-items: baseline; gap: 18px; font-size: 13px; color: var(--fg-3); }
.doctor-row__index .numeral { font-size: 20px; color: var(--accent); }
.doctor-row__name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 20px;
    margin-top: 32px;
    font-size: clamp(34px, 3.6vw, 58px);
    font-weight: 260;
    line-height: 1.15;
    letter-spacing: -.04em;
}
.doctor-row__name a { transition: opacity .3s var(--ease); }
.doctor-row__name a:hover { opacity: .78; }
.doctor-row__title { font-size: 14.5px; font-weight: 400; letter-spacing: .01em; color: var(--fg-2); }
.doctor-row__en { margin-top: 10px; font-style: italic; font-size: clamp(18px, 1.5vw, 23px); color: var(--fg-3); }
.doctor-row__quote p {
    max-width: 560px;
    margin-top: 40px;
    font-size: clamp(19px, 1.6vw, 25px);
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: -.025em;
    text-wrap: balance;
}
.doctor-row__fields {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    font-size: 14.5px;
}
.doctor-row__fields dt { color: var(--fg-3); font-size: 13px; padding-top: 2px; }
.doctor-row__fields dd { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.doctor-row__fields a { border-bottom: 1px solid var(--rule-strong); transition: border-color .3s var(--ease); }
.doctor-row__fields a:hover { border-bottom-color: currentColor; }
.doctor-row__actions { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 48px; }

.doctors-closing { padding-top: clamp(96px, 10vw, 176px); }

/* ---------------------------------------------------------------- 상세 머리 */
.doctor-head { padding: clamp(56px, 7vw, 128px) 0 clamp(72px, 8vw, 136px); }
.doctor-head__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: end;
}
.doctor-head__intro { grid-column: 1 / span 6; }
.doctor-head__figure { grid-column: 8 / span 5; }
.doctor-head--text .doctor-head__intro { grid-column: 1 / span 9; }
.doctor-head__crumb { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--fg-3); }
.doctor-head__crumb a { padding: 6px 0; font-family: var(--serif); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; transition: color .3s var(--ease); }
.doctor-head__crumb a:hover { color: var(--fg); }
.doctor-head__crumb span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 14px; vertical-align: middle; background: currentColor; opacity: .55; }
.doctor-head__name {
    margin-top: 40px;
    font-size: clamp(44px, 5.4vw, 92px);
    font-weight: 250;
    line-height: 1.1;
    letter-spacing: -.045em;
}
.doctor-head__en { margin-top: 14px; font-style: italic; font-size: clamp(20px, 1.7vw, 27px); color: var(--fg-3); }
.doctor-head__title { margin-top: 20px; font-size: 14.5px; color: var(--fg-2); }
.doctor-head__quote p {
    max-width: 560px;
    margin-top: 48px;
    font-size: clamp(21px, 1.9vw, 30px);
    font-weight: 280;
    line-height: 1.6;
    letter-spacing: -.028em;
    text-wrap: balance;
}
.doctor-head__quote p::before {
    content: "\201C";
    display: block;
    height: .5em;
    margin-bottom: .12em;
    font-family: var(--serif);
    font-size: 2.4em;
    line-height: 1;
    color: var(--accent);
}
.doctor-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin-top: 52px; }

/* ---------------------------------------------------------------- 상세 본문 */
.doctor-flow { padding: clamp(88px, 9vw, 160px) 0 clamp(96px, 10vw, 176px); }
@container blocks (min-width: 900px) {
    .doctor-section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
}
.doctor-fields { border-top: 1px solid var(--rule-strong); }
.doctor-fields li { border-bottom: 1px solid var(--rule); }
.doctor-fields a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 16px;
    padding: 20px 0;
}
.doctor-fields__name { font-size: clamp(20px, 1.6vw, 26px); font-weight: 300; letter-spacing: -.025em; }
.doctor-fields__en { margin-left: 14px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--fg-3); }
.doctor-fields .arrow { opacity: .5; transition: opacity .45s var(--ease), transform .45s var(--ease); transform: translateX(-6px); }
@media (hover: hover) {
    .doctor-fields a:hover .arrow { opacity: 1; transform: none; }
}
.doctor-career li {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 15px;
    line-height: 1.7;
    color: var(--fg-2);
}
.doctor-career { border-top: 1px solid var(--rule); }

.doctor-others { margin-top: clamp(96px, 10vw, 176px); }
.doctor-others__head { margin-bottom: 24px; }

/* ---------------------------------------------------------------- tablet · mobile */
@media (max-width: 1099px) {
    .doctor-row__figure, .doctor-row--reverse .doctor-row__figure { grid-column: 1 / span 6; grid-row: 1; }
    .doctor-row__body, .doctor-row--reverse .doctor-row__body { grid-column: 7 / span 6; grid-row: 1; }
    .doctor-head__intro { grid-column: 1 / span 7; }
    .doctor-head__figure { grid-column: 8 / span 5; }
}
@media (max-width: 767px) {
    /* 모바일: 사진은 본문 폭 전체, 좌우로 번갈지 않는다 */
    .doctor-row__figure, .doctor-row--reverse .doctor-row__figure { grid-column: 1 / -1; }
    .doctor-row__body, .doctor-row--reverse .doctor-row__body { grid-column: 1 / -1; grid-row: 2; margin-top: 40px; }
    .doctor-row__fields { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .doctor-head__intro, .doctor-head__figure { grid-column: 1 / -1; }
    .doctor-head__figure { grid-row: 1; margin-bottom: 40px; }
    .doctor-head__name { margin-top: 28px; }
}
