/* === HS Doctor Detail Page === */
:root {
    --hsd-point:      #d32978;
    --hsd-point-lt:   rgba(211, 41, 120, 0.08);
    --hsd-point-md:   rgba(211, 41, 120, 0.18);
    --hsd-dark:       #1e1720;
    --hsd-text:       #3d3540;
    --hsd-muted:      #888;
    --hsd-bg-soft:    #fefaf3;
    --hsd-border:     #fed1d0;
    --hsd-wrap:       1140px;
    --hsd-font-sans:  'Noto Sans KR', -apple-system, sans-serif;
    --hsd-font-serif: 'Playfair Display', Georgia, serif;
}

.hsd-page {
    font-family: var(--hsd-font-sans);
    color: var(--hsd-text);
    background: #fefaf3;
}

/* ── Shared ── */
.hsd-wrap {
    max-width: var(--hsd-wrap);
    margin: 0 auto;
    padding: 0 40px;
}

.hsd-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--hsd-point);
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}
.hsd-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 1px;
    background: var(--hsd-point);
}

.hsd-divider {
    width: 44px;
    height: 2px;
    background: var(--hsd-point);
    border-radius: 2px;
    margin: 28px 0;
}

.hsd-section-head {
    margin-bottom: 36px;
}
.hsd-section-head--mt {
    margin-top: 52px;
}

.hsd-section-title {
    font-family: var(--hsd-font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hsd-dark);
    line-height: 1.25;
}

/* ── Hero ── */
.hsd-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hsd-hero__bg {
    position: absolute;
    inset: 0;
    background: #fed1d0;
}
.hsd-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
}
.hsd-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--hsd-wrap);
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}
.hsd-hero__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: rgba(61,47,53,0.45);
    margin-bottom: 14px;
}
.hsd-hero__role {
    font-size: 0.9rem;
    color: rgba(61,47,53,0.75);
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    font-weight: 500;
}
.hsd-hero__name {
    font-family: var(--hsd-font-serif);
    font-size: 3.4rem;
    font-weight: 700;
    color: #3d2f35;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}
.hsd-hero__en {
    font-size: 0.9rem;
    color: rgba(61,47,53,0.45);
    letter-spacing: 0.08em;
}
.hsd-hero__scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.hsd-hero__scroll span {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(61,47,53,0.35), transparent);
    margin: 0 auto;
    animation: hsdScroll 1.8s ease-in-out infinite;
}
@keyframes hsdScroll {
    0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* ── Profile ── */
.hsd-profile {
    padding: 100px 0 80px;
}
.hsd-profile__grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 72px;
    align-items: start;
}
.hsd-profile__photo-wrap {
    border-radius: 180px 180px 20px 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(211,41,120,0.14);
}
.hsd-profile__photo-wrap img {
    width: 100%;
    height: auto;
    display: block;
}
.hsd-profile__badge {
    margin-top: 18px;
    background: var(--hsd-bg-soft);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--hsd-border);
}
.hsd-profile__badge-name {
    font-family: var(--hsd-font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hsd-dark);
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.hsd-profile__badge-title {
    font-size: 0.82rem;
    color: var(--hsd-point);
    font-weight: 600;
    margin-bottom: 4px;
}
.hsd-profile__badge-en {
    font-size: 0.72rem;
    color: #aaa;
    letter-spacing: 0.04em;
}
.hsd-profile__info-col {
    padding-top: 8px;
}
.hsd-profile__headline {
    font-family: var(--hsd-font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--hsd-dark);
    line-height: 1.5;
}
.hsd-profile__headline em {
    font-style: italic;
    color: var(--hsd-point);
}
.hsd-profile__desc {
    font-size: 0.95rem;
    line-height: 2;
    color: #666;
    margin-bottom: 16px;
}
.hsd-profile__desc:last-child {
    margin-bottom: 0;
}

/* ── Info Band ── */
.hsd-info-band {
    padding: 80px 0;
    background: var(--hsd-bg-soft);
    border-top: 1px solid var(--hsd-border);
    border-bottom: 1px solid var(--hsd-border);
}
.hsd-info-band__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

/* 전문진료분야 태그 */
.hsd-specialty__tags {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hsd-specialty__tags li {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--hsd-text);
    background: #fff;
    border: 1px solid var(--hsd-border);
    border-radius: 100px;
    padding: 8px 20px;
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: default;
}
.hsd-specialty__tags li:hover {
    background: var(--hsd-point-lt);
    color: var(--hsd-point);
    border-color: var(--hsd-point-md);
}

/* 진료시간 테이블 */
.hsd-schedule {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
}
.hsd-schedule th,
.hsd-schedule td {
    padding: 12px 16px;
    font-size: 0.88rem;
    text-align: left;
    border-bottom: 1px solid var(--hsd-border);
}
.hsd-schedule th {
    font-weight: 600;
    color: var(--hsd-dark);
    width: 44%;
    background: #fff;
}
.hsd-schedule td {
    color: var(--hsd-text);
}
.hsd-schedule .hsd-schedule__note {
    font-size: 0.78rem;
    color: var(--hsd-muted);
}
.hsd-schedule .hsd-schedule__off th,
.hsd-schedule .hsd-schedule__off td {
    color: #bbb;
}

.hsd-btn {
    display: inline-block;
    background: var(--hsd-point);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--hsd-font-sans);
    letter-spacing: 0.06em;
    padding: 14px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.hsd-btn:hover {
    background: #ab2062;
    transform: translateY(-1px);
}

/* ── Quote ── */
.hsd-quote {
    padding: 80px 0;
    background: #fed1d0;
}
.hsd-quote__block {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.hsd-quote__block p {
    font-family: var(--hsd-font-serif);
    font-size: 1.55rem;
    font-weight: 400;
    font-style: italic;
    color: #3d2f35;
    line-height: 1.8;
    margin-bottom: 28px;
    position: relative;
}
.hsd-quote__block p::before {
    content: '\201C';
    position: absolute;
    top: -24px;
    left: -20px;
    font-size: 5rem;
    color: #d32978;
    opacity: 0.3;
    line-height: 1;
    font-style: normal;
}
.hsd-quote__block cite {
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: rgba(61,47,53,0.55);
}

/* ── Story ── */
.hsd-story {
    padding: 100px 0;
}
.hsd-story__grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 72px;
    align-items: start;
}
.hsd-story__heading {
    font-family: var(--hsd-font-serif);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--hsd-dark);
    line-height: 1.5;
    position: sticky;
    top: 40px;
}
.hsd-story__text-col p {
    font-size: 0.95rem;
    line-height: 2;
    color: #666;
    margin-bottom: 20px;
}
.hsd-story__text-col p:last-child {
    margin-bottom: 0;
}

/* ── Credentials ── */
.hsd-credentials {
    padding: 80px 0;
    background: var(--hsd-bg-soft);
    border-top: 1px solid var(--hsd-border);
}
.hsd-credentials__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.hsd-cred-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.hsd-cred-list li {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    padding: 13px 0 13px 20px;
    border-bottom: 1px solid var(--hsd-border);
    position: relative;
}
.hsd-cred-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--hsd-point);
    opacity: 0.5;
}
.hsd-cred-list li:first-child {
    border-top: 1px solid var(--hsd-border);
}
.hsd-cred-list__current {
    color: var(--hsd-point) !important;
    font-weight: 600;
}
.hsd-cred-list__current::before {
    opacity: 1 !important;
}

/* ── Awards ── */
.hsd-awards {
    padding: 80px 0;
    border-top: 1px solid var(--hsd-border);
}
.hsd-awards__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hsd-awards__list li {
    display: flex;
    gap: 24px;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--hsd-border);
    font-size: 0.9rem;
}
.hsd-awards__list li:first-child {
    border-top: 1px solid var(--hsd-border);
}
.hsd-awards__year {
    flex-shrink: 0;
    width: 72px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hsd-point);
    letter-spacing: 0.04em;
}
.hsd-awards__text {
    color: #555;
    line-height: 1.6;
}

/* ── Contact ── */
.hsd-contact {
    padding: 72px 0;
    background: var(--hsd-point);
}
.hsd-contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.hsd-contact__item {
    padding: 28px 32px;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.hsd-contact__item:last-child,
.hsd-contact__item:nth-child(3) {
    border-right: none;
}
.hsd-contact__item:nth-child(4),
.hsd-contact__item:nth-child(5) {
    border-top: 1px solid rgba(255,255,255,0.07);
}
.hsd-contact__label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--hsd-point);
    margin-bottom: 8px;
}
.hsd-contact__value {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hsd-credentials__grid,
    .hsd-info-band__grid {
        gap: 48px;
    }
    .hsd-contact__grid {
        grid-template-columns: 1fr 1fr;
    }
    .hsd-contact__item:nth-child(2) { border-right: none; }
    .hsd-contact__item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.07); }
    .hsd-contact__item:nth-child(4) { border-right: 1px solid rgba(255,255,255,0.07); }
}

@media (max-width: 860px) {
    .hsd-profile__grid,
    .hsd-info-band__grid,
    .hsd-credentials__grid,
    .hsd-story__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hsd-profile__photo-wrap {
        max-width: 300px;
        margin: 0 auto;
    }
    .hsd-profile__badge {
        max-width: 300px;
        margin: 16px auto 0;
    }
    .hsd-story__heading {
        position: static;
    }
    .hsd-hero__name {
        font-size: 2.6rem;
    }
}

@media (max-width: 640px) {
    .hsd-wrap { padding: 0 20px; }
    .hsd-hero { height: 320px; }
    .hsd-hero__name { font-size: 2rem; }
    .hsd-hero__inner { padding: 0 20px; }
    .hsd-profile { padding: 60px 0; }
    .hsd-profile__headline { font-size: 1.75rem; }
    .hsd-info-band,
    .hsd-story,
    .hsd-credentials,
    .hsd-awards { padding: 60px 0; }
    .hsd-quote { padding: 60px 0; }
    .hsd-quote__block p { font-size: 1.2rem; }
    .hsd-section-title { font-size: 1.5rem; }
    .hsd-contact__grid {
        grid-template-columns: 1fr;
    }
    .hsd-contact__item {
        border-right: none !important;
        border-top: 1px solid rgba(255,255,255,0.07) !important;
    }
    .hsd-contact__item:first-child { border-top: none !important; }
    .hsd-awards__list li { flex-direction: column; gap: 4px; }
    .hsd-awards__year { width: auto; }
}
