/* ==========================================================================
   의료진 (/doctors) — 부위별 담당 표 · 요일별 진료 표 · 원장 프로필
   ========================================================================== */
.doctors-tables { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(24px, 4vw, 56px); align-items: start; }
.doctors-tables__title { margin-bottom: 14px; }

.doc-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; font-size: 16.5px; }
.doc-table th, .doc-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.doc-table thead th { background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 700; }
.doc-table tbody th { font-weight: 700; white-space: nowrap; }
.doc-table tbody th a, .doc-table__doc { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.doc-table tbody tr:last-child > * { border-bottom: 0; }
.doc-table__doc { display: inline-block; margin-right: 14px; font-weight: 600; }
.doc-table__none { color: var(--ink-3); }

.doc-week { overflow-x: auto; border-radius: var(--radius-lg); }
.doc-table--week th:not(:first-child), .doc-table--week td { text-align: center; width: 13%; }
.doc-mark { display: block; font-size: 14.5px; font-weight: 700; }
.doc-mark--night { margin-top: 2px; color: var(--action-ink); }
.doc-mark--off { font-weight: 500; color: var(--ink-3); }
.doc-table--week td.is-on { background: #F7F9FB; }
.doc-table--week td.is-night { background: var(--action-soft); }
.doc-week__note { margin-top: 12px; }

.doctor-profile + .doctor-profile { border-top: 1px solid var(--line); }
.doctor-profile__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(28px, 4vw, 64px); align-items: start; }
.doctor-profile__photo { position: sticky; top: calc(var(--header-h) + 76px); }
.doctor-profile__title { margin-left: 6px; font-size: 17px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.doctor-profile__quote { margin-top: 16px; padding-left: 18px; border-left: 4px solid var(--action); font-size: 19px; line-height: 1.55; font-weight: 600; color: var(--ink); }
.doctor-profile__facts { margin-top: 28px; }
.doctor-profile__conditions a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.doctor-profile__bio { margin-top: 24px; }
.doctor-profile__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--col-gap); margin-top: 28px; }
.doctor-profile__list-title { margin-bottom: 10px; font-size: 16px; font-weight: 700; color: var(--ink-3); }
.doctor-profile__lists .dot-list { font-size: 16.5px; }
.doctor-profile__actions { margin-top: 28px; }

@media (max-width: 1099px) {
    .doctors-tables { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .doctor-profile__grid { grid-template-columns: minmax(0, 1fr); }
    /* 한쪽에 떠 있는 좁은 틀 대신 본문 폭 전체 — 너무 길지 않도록 정사각(아래쪽을 덜어낸다) */
    .doctor-profile__photo { position: static; }
    .doctor-profile__photo .media { aspect-ratio: 1 / 1; }
    .doctor-profile__photo .media > img { object-position: 50% 0; }
    .doctor-profile__lists { grid-template-columns: minmax(0, 1fr); }
    .doc-table--week th, .doc-table--week td { padding: 10px 6px; }
    .doc-table--week tbody th { padding-left: 12px; }
    .doc-mark { font-size: 13.5px; }
    .doctor-profile__actions .btn { width: 100%; }
}
