/* ==========================================================================
   의료진 /doctors — 담당 표(진료 × 의료진) + 같은 형식의 프로필
   ========================================================================== */

/* ---------------------------------------------------------------- 담당 표 */
.matrix-wrap { overflow-x: auto; }
.matrix { width: 100%; min-width: 560px; table-layout: fixed; border-top: 2px solid var(--ink); }
.matrix th,
.matrix td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; font-size: 16px; }
.matrix thead th { padding: 18px 12px; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.matrix thead th a { display: grid; gap: 4px; justify-items: center; }
.matrix thead th a:hover .matrix__doctor { color: var(--accent); }
.matrix__corner { width: 34%; text-align: left !important; padding-left: 0 !important; font-size: 14.5px !important; font-weight: 500; color: var(--ink-3); }
.matrix__doctor { font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.matrix__spec { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.matrix tbody th { padding-left: 0; text-align: left; font-weight: 500; }
.matrix tbody th a { border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.matrix tbody th a:hover { color: var(--accent); border-bottom-color: currentColor; }
.matrix__group th {
    padding-top: 26px !important;
    font-family: var(--mono);
    font-size: 12.5px !important;
    font-weight: 500 !important;
    letter-spacing: .06em;
    color: var(--accent);
    border-bottom-color: var(--line-2) !important;
}
.matrix__group th a { font-family: var(--font); font-size: 15px; font-weight: 650; letter-spacing: 0; color: var(--accent-2); }
.matrix tbody tr:not(.matrix__group):hover { background: var(--bg-2); }
.matrix__dot {
    display: inline-block;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--accent);
}
.matrix tbody tr:hover .matrix__dot { box-shadow: 0 0 0 3px var(--bg-2), 0 0 0 4.5px var(--accent); }

/* ---------------------------------------------------------------- 프로필 */
.doctor-profile { padding: clamp(72px, 8vw, 128px) 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 60px); }
.doctor-profile__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
}
.doctor-profile__photo { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 80px); }
.doctor-profile__body { grid-column: 6 / span 7; }
.doctor-profile__name { margin-top: 22px; font-size: clamp(34px, 3.4vw, 50px); font-weight: 650; letter-spacing: -.04em; line-height: 1.15; }
.doctor-profile__title { margin-top: 10px; font-size: 17px; font-weight: 500; color: var(--ink-2); }
.doctor-profile__quote { margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--accent); max-width: 34em; }
.doctor-profile__quote p { font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; line-height: 1.5; letter-spacing: -.025em; }
.doctor-profile__bio { margin-top: 28px; }
.doctor-profile__facts { margin-top: 40px; border-top: 2px solid var(--ink); }
.doctor-profile__facts > div {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: var(--col-gap);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16.5px;
    line-height: 1.7;
}
.doctor-profile__facts dt { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.doctor-profile__facts dd > a { border-bottom: 1px solid var(--line-2); }
.doctor-profile__facts dd > a:hover { color: var(--accent); border-bottom-color: currentColor; }
.doctor-profile__list li { position: relative; padding-left: 16px; }
.doctor-profile__list li + li { margin-top: 4px; }
.doctor-profile__list li::before { content: ""; position: absolute; left: 0; top: .85em; width: 7px; height: 1px; background: var(--ink-3); }
.doctor-profile__reserve { margin-top: 36px; }

@media (max-width: 1099px) {
    .doctor-profile__photo { grid-column: 1 / span 5; }
    .doctor-profile__body { grid-column: 6 / span 7; }
}
@media (max-width: 767px) {
    .doctor-profile__photo { grid-column: 1 / -1; position: static; }
    .doctor-profile__body { grid-column: 1 / -1; margin-top: 36px; }
    .doctor-profile__facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .matrix { min-width: 0; }
    .matrix__corner { width: 40%; }
    .matrix th, .matrix td { padding: 12px 6px; font-size: 15px; }
    .matrix__doctor { font-size: 15.5px; }
    .matrix__spec { display: none; }
}
