/* 공식 진료과 소개와 의료진 상세 경력. 기존 브랜드 토큰을 사용합니다. */
.specialty-content { min-width: 0; }
.specialty-overview { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.specialty-photos { display: grid; gap: 16px; }
.specialty-photo { margin: 0; }
.specialty-photos img { display: block; width: 100%; height: auto; border-radius: 8px; }
.specialty-photo-caption { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.specialty-overview-copy { font-size: var(--text-body); line-height: 1.85; overflow-wrap: anywhere; }
.specialty-overview-copy p + p { margin-top: 14px; }
.specialty-treatment-details { margin-block: 24px 30px; border-block: 1px solid var(--line); }
.specialty-treatment-details > summary { min-height: 56px; padding: 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--navy); font-weight: 700; cursor: pointer; list-style: none; }
.specialty-treatment-details > summary::-webkit-details-marker { display: none; }
.specialty-treatment-details > summary svg { width: 20px; height: 20px; flex: none; }
.specialty-treatment-details[open] > summary svg { transform: rotate(180deg); }
.specialty-treatment-body { padding: 4px 0 28px; }
.specialty-treatment + .specialty-treatment { margin-top: 28px; }
.specialty-treatment h3 { font-size: 18px; line-height: 1.5; margin-bottom: 10px; text-wrap: pretty; }
.specialty-treatment p { max-width: 75ch; line-height: 1.85; overflow-wrap: anywhere; }
.specialty-treatment p + p { margin-top: 10px; }
.career-button { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; margin-top: 24px; padding: 12px 18px; border: 1px solid var(--navy); border-radius: 6px; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.5; transition: background-color 160ms ease, color 160ms ease; }
.career-button svg { width: 19px; height: 19px; flex: none; }
.career-button:active { background: var(--soft); }
.career-dialog { width: min(700px, calc(100% - 32px)); max-width: none; height: min(780px, calc(100dvh - 48px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 14px; color: var(--ink); background: var(--white); box-shadow: 0 24px 80px rgb(16 31 104 / 22%); overflow: hidden; }
.career-dialog::backdrop { background: rgb(12 22 48 / 58%); }
.career-dialog-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.career-dialog-header { display: flex; flex: none; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 26px 30px 22px; background: var(--soft); border-bottom: 1px solid var(--line); }
.career-dialog-header h2 { font-size: 27px; line-height: 1.35; margin-block: 5px 8px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.career-dialog-header p { font-size: 14px; color: var(--muted); }
.career-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--navy); cursor: pointer; }
.career-close svg { width: 22px; height: 22px; }
.career-dialog-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px 30px; scrollbar-color: var(--muted) var(--soft); scrollbar-width: thin; }
.career-group + .career-group { margin-top: 28px; }
.career-group h3 { color: var(--navy); font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
.career-group ul { padding-left: 20px; margin: 0; line-height: 1.85; font-size: 15px; overflow-wrap: anywhere; }
.career-group li + li { margin-top: 7px; }
.career-source-note { margin-bottom: 10px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.career-dialog-footer { flex: none; display: flex; justify-content: flex-end; padding: 15px 30px; border-top: 1px solid var(--line); background: var(--white); }
.career-dialog-footer button { min-width: 94px; min-height: 44px; }
.career-open { overflow: hidden; scrollbar-gutter: stable; }
.career-page { max-width: 800px; }
.career-page h1 { margin-top: 30px; font-size: 36px; }
.career-page > p { margin-block: 12px 32px; }
.career-button:focus-visible, .career-close:focus-visible, .specialty-treatment-details > summary:focus-visible, .career-dialog-body:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.career-dialog-body:focus-visible { outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .career-button:hover { background: var(--navy); color: var(--white); }
  .career-close:hover { background: var(--soft); }
  .specialty-treatment-details > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 700px) {
  .specialty-overview { grid-template-columns: 1fr; gap: 22px; }
  .specialty-photos { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); align-items: start; }
  .specialty-photos img { max-width: 440px; }
  .career-dialog { width: calc(100% - 20px); height: calc(100dvh - 32px); max-height: calc(100dvh - 32px); border-radius: 10px; }
  .career-dialog-header { padding: 20px; }
  .career-dialog-header h2 { font-size: 23px; }
  .career-dialog-body { padding: 22px 20px; }
  .career-dialog-footer { padding: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) { .career-button { transition: none; } }
