/* Hallmark v2.0.0 · scope: app · theme: locked DESIGN.md · signature: graphic profile and quiet broadcast desk */
/* Critique: removed detached biography box; aligned real profile, entry and permission-filtered posts. */
/* Project overrides: 15px type ceiling, approved graphic portrait, existing shared chrome and centered entry remain. */
/* 정보량이 적을 때 프로필 이미지가 영역 높이를 과도하게 밀어내지 않도록 압축한다. */
.instructorPage { padding-bottom: var(--space-xxl); }
.instructorPage .sitePageHeading { margin-bottom: var(--space-md); }
/* 고수홈의 프로필 열을 키우고 소개·방송 동작 영역은 기존 배치를 유지한다. */
.instructorProfile { display: grid; grid-template-columns: calc(var(--space-section) * 2) minmax(0, 1fr); grid-template-areas: "portrait identity" "portrait biography"; gap: var(--space-xs) var(--space-lg); align-items: start; align-content: start; }
.instructorPortrait { grid-area: portrait; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-soft); }
/* 비공개 프로필도 사진과 같은 크기에 기본 실루엣을 표시한다. */
.instructorPlaceholder { display: grid; place-items: center; border: 1px solid var(--hairline); color: var(--muted-soft); }
.instructorPlaceholder svg { width: var(--space-xxl); height: var(--space-xxl); fill: currentColor; }
.instructorProfileCopy { display: contents; }
.instructorIdentity { grid-area: identity; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-sm); }
.instructorIdentity h1 { margin: 0; min-width: 0; color: var(--ink); font: 600 15px/1.3 var(--font-display); overflow-wrap: break-word; text-wrap: balance; }
.instructorIdentity span { color: var(--muted); font: 400 13px/1.4 var(--font-body); }
.instructorBiography { grid-area: biography; min-width: 0; max-width: 70ch; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.instructorProfileActions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.instructorProfileActions .buttonSecondary { width: auto; }
.instructorProfileActions form { margin: 0; }
.instructorProfileActions > span { font: 400 13px/1.4 var(--font-body); color: var(--muted); }
.instructorPage .instructorEntry { display: block; margin-top: var(--space-lg); }
.instructorEntry .broadcastTitleRow { gap: var(--space-sm); padding: var(--space-md); }
.instructorEntry h2 { margin: 0; min-width: 0; color: var(--ink); font: 600 15px/1.4 var(--font-body); overflow-wrap: anywhere; text-wrap: balance; }
.instructorEntry .promoMeta { margin-top: var(--space-sm); }
/* 고수별 최소 팔로워 레벨을 방송 입장 영역 가까이에 표시한다. */
.instructorAccess { margin: var(--space-sm) 0 0; color: var(--muted); font: 400 13px/1.4 var(--font-body); text-align: center; }
.instructorAccess strong { color: var(--ink); font-weight: 600; }
.instructorJournal { margin: var(--space-lg) var(--space-xl) 0; }
.instructorJournalHead { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--ink); }
.instructorJournalHead h2 { margin: 0; color: var(--ink); font: 600 15px/1.4 var(--font-body); text-wrap: balance; }
.instructorJournalHead a { color: var(--muted); font: 400 13px/1.4 var(--font-body); }
.instructorPostList { margin: 0; padding: 0; list-style: none; }
.instructorPostList li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-lg); padding: var(--space-sm) 0; border-bottom: 1px solid var(--hairline); }
.instructorPostList a { min-width: 0; overflow-wrap: anywhere; }
.instructorPostList time { font: 400 13px/1.4 var(--font-body); color: var(--muted); }
.instructorEmpty { margin: 0; padding: var(--space-sm) 0; color: var(--muted); font: 400 14px/1.5 var(--font-body); border-bottom: 1px solid var(--hairline); }
.instructorPage a:focus-visible, .instructorPage button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.instructorJournal a:hover { text-decoration: underline; }
.instructorJournal a:active { color: var(--muted); }
.instructorProfileActions .buttonSecondary:active { background: var(--surface-soft); }
@media (max-width: 767px) {
  .instructorProfile { grid-template-columns: calc(var(--space-lg) * 5) minmax(0, 1fr); grid-template-areas: "portrait identity" "portrait biography"; gap: var(--space-xs) var(--space-md); }
  .instructorProfileCopy { display: contents; }
  .instructorIdentity { align-self: start; }
  .instructorBiography { margin: 0; }
  .instructorProfileActions { margin-top: var(--space-xs); }
  .instructorProfileActions .buttonSecondary { white-space: normal; }
  .instructorEntry .broadcastTitleRow { padding: var(--space-md); }
  .instructorPostList li { gap: var(--space-sm); }
}

/* 공개 사진은 키보드로도 원본 보기 팝업을 열 수 있다. */
.instructorPortraitButton { grid-area: portrait; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.instructorPortraitButton:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.profileImageDialog { max-width: calc(100vw - var(--space-xl)); max-height: calc(100vh - var(--space-xl)); padding: var(--space-md); border: 1px solid var(--hairline); background: var(--canvas); color: var(--ink); overflow: auto; }
.profileImageDialog::backdrop { background: rgb(0 0 0 / 65%); }
.profileImageDialogHead { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-md); }
.profileImageDialog img { display: block; max-width: calc(100vw - var(--space-xxl) - var(--space-md)); max-height: calc(100vh - var(--space-section) - var(--space-xl)); width: auto; height: auto; }

/* 방송과 보조 메뉴를 소개 오른쪽의 동일한 동작 영역에 모은다. */
/* 소개와 방송 양쪽에 충분한 내부 여백을 둔다. */
.instructorOverview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--space-section) * 4)); align-items: start; gap: var(--space-xl); padding: var(--space-xl); }
.instructorControls { min-width: 0; }
.instructorControls .instructorEntry { margin-top: 0; }
.instructorControls .instructorProfileActions { justify-content: flex-end; margin-top: var(--space-sm); }
.instructorControls .promoNotice { margin-bottom: var(--space-sm); }
@media (max-width: 1023px) {
  .instructorOverview { grid-template-columns: minmax(0, 1fr); }
  .instructorControls .instructorProfileActions { justify-content: flex-start; }
}

@media (max-width: 767px) {
  .instructorOverview { padding: var(--space-md); gap: var(--space-lg); }
  .instructorJournal { margin-right: var(--space-md); margin-left: var(--space-md); }
}
