/* 통증 게시판 글 · 마 판 (2026-10-14 가지 content/pain-posts-1. 틀은 src/pain-post.mjs, 원장 2026-10-13 18:40 「판은 ㄷ」).
   시안 모양(pain-post-mock.css 의 ⑥ 이름표 둘 · ⑦ 마 판)을 그대로 옮기고, 실제 글 자리에 필요한 셋(길잡이 줄 · 치료 이름표 줄 · 목록으로 가는 길)을 더했다.
   칸 · 면의 뼈대는 proc/info.css · proc/scenes.css 가 맡는다. */

/* 길잡이 줄과 목록으로 가는 길: 글 틀(.article) 밖이라 위아래 틈만 준다 */
.pi-crumbs { padding-top: 18px; padding-bottom: 14px; }
.pi-back { padding-top: 28px; padding-bottom: 44px; }
.pi-back .article-nav { margin-top: 0; }

/* 치료 칸 아래 이름표 한 줄(내원 간격 · 치료 기간). 알약 꼴은 시술 쪽 딱지(.ig-chip) 그대로, 크기만 키운다 */
.pz.pi .ig-sc .pi-dose { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pz.pi .ig-sc .pi-dose .ig-chip { font-size: 17px; padding: 6px 14px 7px; background: var(--c-tint); border-color: var(--c-soft); color: var(--c-dark); }

/* 끝 면의 이름표 둘 */
.pp-e .pp-mend2 .out { background: var(--c-main); color: #fff; }
.pp-e .pp-mend2 .in { background: #fff; color: #8a3d30; box-shadow: inset 0 0 0 2px #d98a7b; }

/* 머리에 사실적인 해부 그림, 사진 칸 + 두세 낱말 이름표. 칸의 뼈대는 시술 쪽 그림 칸 면(.ig-sc .sc-card) 그대로이고 여기서는 칸에 사진이 꽉 차게만 한다 */
.pp-e .pp-e-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--c-dark); color: #fff; font-family: "Pretendard Variable", Pretendard, sans-serif; word-break: keep-all; }
.pp-e .pp-e-top-text { align-self: end; padding: 88px 3vw 64px 5vw; }
.pp-e .pp-e-top .news-tag { background: rgba(255, 255, 255, 0.14); color: #fff; }
.pp-e .pp-e-top h1 { margin: 16px 0 0; font-size: clamp(36px, 4.6vw, 70px); font-weight: 800; line-height: 1.16; letter-spacing: -0.04em; color: #fff; }
.pp-e .pp-e-lead { margin: 22px 0 0; padding-left: 16px; border-left: 3px solid var(--c-soft); font-size: clamp(19px, 1.9vw, 27px); font-weight: 300; line-height: 1.42; color: rgba(255, 255, 255, 0.9); }
.pp-e .pp-e-top-art { position: relative; margin: 0; min-height: 520px; }
.pp-e .pp-e-top-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-e .pp-e-top-art figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 20px 11px; background: var(--c-dark); color: #fff; font-size: 17px; font-weight: 700; border-radius: 0 8px 0 0; }
.pz.pp-e .ig { padding-top: 104px; padding-bottom: 104px; }
.pz.pp-e .ig-sc .sc-card .sc-cells[style] .sc-cell { flex-direction: column; align-items: stretch; }
.pz.pp-e .ig-sc .sc-card .sc-cells[style] .sc-pic { flex: none; aspect-ratio: 4 / 3; padding: 0; min-height: 0; overflow: hidden; }
.pz.pp-e .ig-sc .sc-card .sc-cells[style] .photo .sc-pic img { object-fit: cover; }
.pz.pp-e .ig-sc .sc-card .sc-cells[style] .draw .sc-pic { padding: 12px 12px 0; }
.pz.pp-e .ig-sc .sc-card .sc-cells[style] .sc-txt { padding: 14px 18px 18px; }
.pz.pp-e .ig-sc .sc-card .sc-cells[style] .sc-name { font-size: 20px; }
.pz.pp-e .ig-sc .sc-txt p { font-size: 15px; margin-top: 2px; }
.pz.pp-e .ig-sc .sc-card .sc-cells[style*="--k:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 원인이 일곱이면(어지럼) 셋 · 넷 두 줄로. 흔한 원인이 앞에 오니 윗줄 셋을 조금 넓게 */
@media (min-width: 768px) {
  .pz.pp-e .ig-sc .sc-card .sc-cells[style*="--k:7"] { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .pz.pp-e .ig-sc .sc-card .sc-cells[style*="--k:7"] .sc-cell { grid-column: span 3; }
  .pz.pp-e .ig-sc .sc-card .sc-cells[style*="--k:7"] .sc-cell:nth-child(-n+3) { grid-column: span 4; }
}
.pz.pp-e section[data-ig="care"] .sc-cells[style*="--k:2"] { max-width: 760px; }
.pz.pp-e .ig-sc .ig-lane-h b { font-size: 17px; color: var(--c-main); }
.pz.pp-e .ig-sc [data-x] { display: none; }
/* 끝 면: 편안한 겉모습 사진에 속을 들여다본 동그란 창을 겹친다 */
.pp-e .pp-e-heal .ig-sub { max-width: 22em; color: var(--ig-text); font-size: 19px; }
.pp-e .pp-mend2 { position: relative; max-width: 780px; padding: 0 5% 12% 0; }
.pp-e .pp-mend2-photo { position: relative; border-radius: 8px; overflow: hidden; }
.pp-e .pp-mend2-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.pp-e .pp-mend2-orb { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px var(--c-tint), 0 0 0 8px var(--c-main); }
.pp-e .pp-mend2-orb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pp-e .pp-mend2 b { position: absolute; font-size: 17px; font-weight: 800; line-height: 1.4; padding: 7px 16px 8px; white-space: nowrap; }
.pp-e .pp-mend2 .out { left: 0; top: 0; border-radius: 0 0 8px 0; }
.pp-e .pp-mend2 .in { right: 46%; bottom: 3%; border-radius: 6px; margin-right: 14px; }
@media (max-width: 767px) {
  .pp-e .pp-e-top { grid-template-columns: 1fr; }
  .pp-e .pp-e-top-text { padding: 28px 20px 26px; }
  .pp-e .pp-e-top-art { min-height: 0; aspect-ratio: 4 / 3; }
  .pp-e .pp-e-top-art figcaption { font-size: 15px; padding: 8px 14px 9px; }
  .pz.pp-e .ig { padding-top: 56px; padding-bottom: 56px; }
  /* 휴대폰: 사진 칸을 두 칸씩(시술 쪽 휴대폰 꼴은 그림 왼쪽 · 글 오른쪽 한 줄씩인데, 사진은 그 크기에서 안 읽힌다). 홀로 남는 칸은 넓게 */
  .pz.pp-e .ig-sc .sc-card .sc-cells[style] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pz.pp-e .ig-sc .sc-card .sc-cells[style*="--k:3"] .sc-cell:first-child, .pz.pp-e .ig-sc .sc-card .sc-cells[style*="--k:5"] .sc-cell:last-child, .pz.pp-e .ig-sc .sc-card .sc-cells[style*="--k:7"] .sc-cell:last-child { grid-column: 1 / -1; }
  .pz.pp-e .ig-sc .sc-card .sc-cells[style*="--k:3"] .sc-cell:first-child .sc-pic, .pz.pp-e .ig-sc .sc-card .sc-cells[style*="--k:5"] .sc-cell:last-child .sc-pic, .pz.pp-e .ig-sc .sc-card .sc-cells[style*="--k:7"] .sc-cell:last-child .sc-pic { aspect-ratio: 16 / 9; }
  .pz.pp-e .ig-sc .sc-card .sc-cells[style] .sc-txt { padding: 10px 12px 12px; }
  .pz.pp-e .ig-sc .sc-card .sc-cells[style] .sc-name { font-size: 16px; }
  .pp-e .pp-mend2 b { font-size: 15px; }
  .pp-e .pp-mend2 { padding: 0 0 26% 0; }
  .pp-e .pp-mend2-orb { width: 52%; right: 4%; }
  .pp-e .pp-mend2 .in { right: auto; left: 0; bottom: 6%; margin: 0; }
  .pp-e .pp-e-heal .ig-sub { font-size: 17px; margin-bottom: 24px; }
}

@media (max-width: 767px) {
  .pi-crumbs { padding-top: 12px; padding-bottom: 10px; }
  .pz.pi .ig-sc .pi-dose .ig-chip { font-size: 15px; padding: 5px 11px 6px; }
}

/* 목록 판 a(자생 꼴)의 이동 줄: 부위 칸 · 질환 칸을 누르면 같은 층의 다른 칸이 펼쳐진다(pain.mjs 의 painJump, 2026-10-15) */
.pj { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; color: var(--color-text-muted); }
.pj > a { color: inherit; text-decoration: none; }
.pj .pb-sep { color: #b5b0a2; }
.pj-drop { position: relative; }
.pj-drop summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 14px; border: 1px solid #d6d1c3; border-radius: 6px; background: #fff; color: var(--color-primary-dark); font-weight: 700; cursor: pointer; }
.pj-drop summary::-webkit-details-marker { display: none; }
.pj-drop summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.pj-drop[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.pj-drop ul { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 100%; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid #d6d1c3; border-radius: 8px; box-shadow: 0 12px 28px rgba(16, 38, 31, 0.14); white-space: nowrap; }
.pj-drop li a { display: block; padding: 9px 18px; color: var(--color-text); text-decoration: none; }
.pj-drop li a:hover { background: var(--color-bg); }
.pj-drop li a[aria-current="page"] { color: var(--color-primary); font-weight: 700; }
