/* frontend/panseo/profile.css — 판서. 공개 프로필 뷰 스타일(보강 시트).
 *
 * 규범 스펙: .superpowers/sdd/2026-08-15-panseo-community-core/panseo-src/app/profile-enhancements.css
 * 원본 본문은 보존한다. 파일 끝의 '본인 댓글 보강' 블록만 서비스 기능에 맞춰 추가했다.
 *
 * ⚠ 원본에서 PublicProfile.tsx 는 identity.css 를 먼저, profile-enhancements.css 를 나중에
 *   import 한다. 이 페이지는 계획서가 정한 순서(profile.css → identity.css)로 링크하는데,
 *   두 시트가 함께 건드리는 선택자는 `.profile-verified`(gap)와 `.profile-follow`(transition)
 *   둘뿐이고 겹치는 **속성이 하나도 없어** 순서가 계산값을 바꾸지 않는다.
 *
 * ⚠ 캐스케이드: base.css(globals) → community.css → jobs.css → events.css → clips.css →
 *   **profile.css** → identity.css → readability.css(항상 마지막).
 */
/* Follow state and employment verification additions for public profiles. */

.profile-verified {
  gap: 4px;
}

.profile-follow {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.profile-verification-card {
  border-top-color: var(--orange);
}

.profile-verification-card > h2 {
  max-width: 235px;
  margin: 11px 0 0;
  color: var(--on-block);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.5;
}

.profile-verification-proof {
  margin-top: 17px;
  padding: 13px 0;
  border-top: 1px solid #3a3936;
  border-bottom: 1px solid #3a3936;
}

.profile-verification-proof strong {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--on-block);
  font-size: 11px;
  line-height: 1.4;
  gap: 6px;
}

.profile-verification-proof strong span {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  background: var(--orange);
  color: var(--on-orange);
  font-size: 9px;
}

.profile-verification-proof p,
.profile-verification-card .profile-verification-unverified {
  margin: 8px 0 0;
  color: #d1cec7;
  font-size: 9px;
  line-height: 1.55;
}

.profile-verification-proof small {
  display: block;
  margin-top: 4px;
  color: #85827c;
  font-size: 8px;
}

.profile-verification-apply {
  margin-top: 17px;
}

.profile-verification-apply > p:first-child {
  margin: 0 0 11px;
  color: #aaa7a0;
  font-size: 9px;
  line-height: 1.6;
}

.profile-verification-apply > button {
  width: 100%;
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid var(--on-block);
  background: var(--on-block);
  color: var(--block);
  font-size: 10px;
  font-weight: 800;
}

.profile-verification-apply > button:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--on-orange);
}

.profile-verification-apply .profile-verification-pending {
  margin: 9px 0 0;
  color: #d9d5ce;
  font-size: 8px;
  line-height: 1.5;
}

.profile-verification-pending span {
  margin-right: 4px;
  color: var(--orange-text);
  font-size: 6px;
}

.profile-verification-backdrop {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  overflow: auto;
  place-items: center;
  padding: 28px 20px;
  background: rgba(16, 16, 15, 0.72);
  backdrop-filter: blur(4px);
}

.profile-verification-backdrop-dismiss {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: default;
}

.profile-verification-modal {
  position: relative;
  z-index: 1;
  width: min(570px, 100%);
  max-height: calc(100vh - 56px);
  max-height: calc(100svh - 56px);
  max-height: calc(100dvh - 56px);
  overflow: auto;
  overscroll-behavior: contain;
  border-top: 5px solid var(--orange);
  background: var(--paper);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.32);
  color: var(--ink);
}

.profile-verification-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 89px;
  padding: 23px 26px 18px;
  border-bottom: 1px solid var(--ink);
  gap: 20px;
}

.profile-verification-modal-header span {
  color: var(--orange-dark-text);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.profile-verification-modal-header h2 {
  margin: 5px 0 0;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.055em;
}

.profile-verification-modal-header > button {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--control-line);
  background: var(--paper);
  color: var(--ink);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

.profile-verification-modal-header > button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--on-ink);
}

.profile-verification-form {
  padding: 22px 26px 27px;
}

.profile-verification-form > p:first-child {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.profile-verification-field {
  display: block;
  margin-top: 16px;
}

.profile-verification-field > span {
  display: flex;
  align-items: center;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  gap: 6px;
}

.profile-verification-field > span b {
  color: var(--orange-dark-text);
  font-size: 8px;
}

.profile-verification-field > input,
.profile-verification-field > select {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 1px solid var(--control-line);
  border-radius: 0;
  outline: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

.profile-verification-field > input:focus,
.profile-verification-field > select:focus,
.profile-verification-dropzone:focus-within,
.profile-verification-dropzone:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(239, 91, 42, 0.16);
}

.profile-verification-dropzone {
  padding: 18px;
  border: 1px dashed var(--control-line);
  background: var(--wash);
  outline: 0;
  text-align: center;
}

.profile-verification-dropzone.has-file {
  border-style: solid;
  border-color: var(--orange);
  background: var(--orange-tint);
}

.profile-verification-dropzone > strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-verification-dropzone > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.profile-verification-dropzone > div {
  display: flex;
  justify-content: center;
  margin-top: 13px;
  gap: 7px;
}

.profile-verification-dropzone label,
.profile-verification-dropzone button {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.profile-verification-dropzone button {
  background: var(--ink);
  color: var(--on-ink);
}

.profile-verification-dropzone label:hover,
.profile-verification-dropzone button:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--on-orange);
}

.profile-verification-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-verification-privacy {
  margin-top: 19px;
  padding: 12px 14px;
  border-left: 3px solid var(--orange);
  background: var(--wash-4);
}

.profile-verification-privacy strong {
  display: block;
  font-size: 9px;
  font-weight: 800;
}

.profile-verification-privacy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.profile-verification-modal-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-top: 23px;
  gap: 8px;
}

.profile-verification-modal-actions button,
.profile-verification-submitted > button {
  min-height: 43px;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.profile-verification-modal-actions button[type="submit"],
.profile-verification-submitted > button {
  background: var(--ink);
  color: var(--on-ink);
}

.profile-verification-modal-actions button:hover,
.profile-verification-submitted > button:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--on-orange);
}

.profile-verification-submitted {
  padding: 34px 26px 29px;
}

.profile-verification-submitted > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--orange);
  color: var(--on-orange);
  font-size: 17px;
}

.profile-verification-submitted h3 {
  margin: 17px 0 20px;
  font-size: 19px;
  letter-spacing: -0.04em;
}

.profile-verification-submitted dl {
  margin: 0;
  border-top: 1px solid var(--ink);
}

.profile-verification-submitted dl > div {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.profile-verification-submitted dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.profile-verification-submitted dd {
  overflow: hidden;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-verification-submitted > p {
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.profile-verification-submitted > button {
  width: 100%;
}

.profile-verification-modal button:focus-visible,
.profile-verification-modal input:focus-visible,
.profile-verification-modal select:focus-visible,
.profile-verification-modal label[for="profile-verification-file"]:focus-within {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .profile-verification-backdrop {
    align-items: end;
    padding: 0;
    backdrop-filter: none;
  }

  .profile-verification-modal {
    width: 100%;
    max-height: 94vh;
    max-height: 94svh;
    max-height: 94dvh;
    box-shadow: 0 -18px 55px rgba(0, 0, 0, 0.3);
  }

  .profile-verification-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .profile-verification-modal-header,
  .profile-verification-form,
  .profile-verification-submitted {
    padding-right: 17px;
    padding-left: 17px;
  }

  .profile-verification-dropzone {
    padding-right: 10px;
    padding-left: 10px;
  }

  .profile-verification-dropzone > div {
    flex-direction: column;
  }

  .profile-verification-dropzone label,
  .profile-verification-dropzone button {
    width: 100%;
  }

  .profile-verification-submitted dl > div {
    grid-template-columns: 78px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-follow {
    transition: none;
  }
}

/* Keep the readability pass stable when this stylesheet is lazy-loaded. */
.profile-verification-proof strong,
.profile-verification-proof p,
.profile-verification-card .profile-verification-unverified,
.profile-verification-apply > p:first-child,
.profile-verification-apply .profile-verification-pending,
.profile-verification-modal-header span,
.profile-verification-field > span,
.profile-verification-dropzone > small,
.profile-verification-dropzone button,
.profile-verification-privacy p,
.profile-verification-submitted dt,
.profile-verification-submitted dd { font-size: 11px; }
/* 본인 댓글 보강 */
.profile-post.profile-comment {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
}

.profile-comment .profile-comment-body,
.profile-post.profile-comment small {
  display: block;
  grid-column: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.6;
}

.profile-post.profile-comment strong {
  overflow-wrap: anywhere;
}

.profile-comment-stats {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
