/* 안중 클리닉 진료 쪽 · 안중 칼럼 글 · 안중 클리닉 첫 쪽 (2026-10-15 가지 content/anjung-infographic. 틀은 src/herb-info.mjs · src/herb.mjs).
   머리와 사진 칸은 통증 글 마 판(pain-post.css 의 .pp-e) 그대로 쓰고, 여기서는 칸 수와 안중 쪽에만 있는 면(약재 한 판 · 접는 물음)만 맞춘다.
   칸 · 면의 뼈대는 proc/info.css · proc/scenes.css 가 맡는다. */

/* 머리: 제품 사진(공진단 · 위보약)은 잘리지 않게 바탕을 깔고 통째로 */
.pp-e .pp-e-top-art.hi-contain { background: #efe6d6; }
.pp-e .pp-e-top-art.hi-contain img { object-fit: contain; padding: 6%; }

/* 사진 칸: 여섯 칸(첩약 질환)은 세 칸씩 정사각, 다섯 · 세 칸은 넓은 화면에서 세 칸씩 */
.pz.hi .ig-sc .sc-card .sc-cells[style*="--k:6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pz.hi .ig-sc .sc-card .sc-cells[style*="--k:6"] .sc-pic { aspect-ratio: 1; }
.pz.hi .ig-sc .sc-card .sc-cells[style*="--k:3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pz.hi .ig-sc .sc-card .sc-cells[style] .draw .sc-pic img { object-fit: contain; }
.pz.hi .ig-sc .sc-card .sc-cells[style] .hi-fit .sc-pic { background: #efe6d6; }
.pz.hi .ig-sc .sc-card .sc-cells[style] .hi-fit .sc-pic img { object-fit: contain; padding: 6%; }
.pz.hi .ig-sc .sc-card .sc-cells[style*="--k:2"] { max-width: 760px; }
@media (min-width: 820px) { .pz.hi .ig-sc .sc-card .sc-cells[style*="--k:5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 약재 면: 한 판에 펼친 그림 한 장과 한 줄(이름표), 이름은 눌러야 펼쳐진다 */
.pz.hi .hi-herbs-art { position: relative; margin: 0; border-radius: 8px; overflow: hidden; background: var(--ig-card); }
.pz.hi .hi-herbs-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.pz.hi .hi-herbs-art figcaption { position: absolute; left: 0; bottom: 0; padding: 10px 20px 11px; background: var(--c-dark); color: #fff; font-size: 19px; font-weight: 800; border-radius: 0 8px 0 0; }
.pz.hi .hi-names { margin-top: 14px; border-top: 1px solid var(--ig-hair); border-bottom: 1px solid var(--ig-hair); }
.pz.hi .hi-names summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-size: 17px; font-weight: 700; color: var(--c-dark); }
.pz.hi .hi-names summary::-webkit-details-marker { display: none; }
.pz.hi .hi-names summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 0.2s; }
.pz.hi .hi-names[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.pz.hi .hi-names summary:focus-visible { outline: 3px solid var(--c-main); outline-offset: 2px; }
.pz.hi .hi-names p { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 4px 0 18px; }
.pz.hi .hi-names p span { font-size: 15px; font-weight: 500; line-height: 1.5; padding: 3px 10px; background: var(--ig-card); border-radius: 6px; }
.pz.hi .hi-herbs .sc-note { margin-top: 16px; }

/* 맺는 면: 머리 글만 */
.pz.hi .hi-close .ig-sub { max-width: 24em; }


@media (max-width: 767px) {
  .pz.hi .ig-sc .sc-card .sc-cells[style*="--k:6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pz.hi .ig-sc .sc-card .sc-cells[style*="--k:3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pz.hi .hi-herbs-art figcaption { font-size: 16px; padding: 8px 14px 9px; }
}

/* 안중 클리닉 첫 쪽: 사진 카드는 그대로, 글꼴 · 색 · 모서리를 새 판에 맞춘다(원장 10-14 21:39). 큰 제목 · 머리 두 줄은 2026-10-15 걷었다, 작은 판 둘은 짧은 줄만 */
body.herb-page .hb { --hb-r: 8px; }
body.herb-page .hb-feat, body.herb-page .hb-band, body.herb-page .hb-prod { border-radius: var(--hb-r); }
body.herb-page .hb-feat, body.herb-page .hb-band { background: #193c32; }
body.herb-page .hb-feat-tx strong, body.herb-page .hb-band strong, body.herb-page .hb-prod-tx strong, body.herb-page .hb-col-card strong { font-weight: 800; letter-spacing: -0.03em; }
body.herb-page .hb-prod { border: 0; background: #f7f4ed; }
body.herb-page .hb-prod-contain .hb-prod-ph { background: #efe6d6; }
body.herb-page .hb-prod-tx em, body.herb-page .hb-col-card em, body.herb-page .hb-col-more { color: #31584a; }
body.herb-page .hb-col { border-top-color: #193c32; }
body.herb-page .hb-col-card { border-radius: var(--hb-r); border-top: 0; background: #f7f4ed; }
body.herb-page .hb-col-card:hover { background: #e9efe9; }
body.herb-page .hb-prod-short { text-wrap: balance; }

/* 인증 면(AJ탕전원 쪽. herb-info.mjs 의 certFace): 마크를 면의 주인공으로 크게, 곁에 마크 안의 글을 이름표 줄로.
   마크는 종이에 찍힌 도장처럼 둥근 판 위에 앉고, 판은 면 바탕과 반대 색(흰 면이면 옅은 미색, 미색 면이면 흰색) */
.pz.hi .hi-cert .ig-body { align-self: center; }
.pz.hi .hi-cert-in { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: center; gap: 0 clamp(28px, 4vw, 64px); }
.pz.hi .hi-cert-plate { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 420px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--ig-hair); }
.pz.hi .hi-cert.ig-white .hi-cert-plate { background: var(--c-tint); box-shadow: none; }
.pz.hi .hi-cert-plate::after { content: ""; position: absolute; inset: 5%; border-radius: 50%; border: 1px dashed rgba(25, 60, 50, 0.28); }
.pz.hi .hi-cert-mark { display: block; width: 76%; height: auto; filter: drop-shadow(0 14px 26px rgba(16, 38, 31, 0.18)); }
.pz.hi .hi-cert-facts { margin: 0; border-top: 2px solid var(--c-dark); }
.pz.hi .hi-cert-facts div { padding: 16px 0 17px; border-bottom: 1px solid var(--ig-hair); }
.pz.hi .hi-cert-facts dt { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--ig-text); }
.pz.hi .hi-cert-facts dd { margin: 0; font-size: clamp(19px, 1.5vw, 23px); font-weight: 800; line-height: 1.3; color: var(--c-dark); letter-spacing: -0.01em; word-break: keep-all; }
@media (max-width: 819px) {
  .pz.hi .hi-cert-in { grid-template-columns: minmax(0, 1fr); }
  .pz.hi .hi-cert-plate { width: min(72vw, 280px); margin: 0 0 26px; }
  .pz.hi .hi-cert-facts dd { font-size: 18px; }
}

/* 약침 면의 바이알 선반(herb-info.mjs 의 shelfFace): 사진 대신 바이알을 한 바닥선에 세운다.
   병 그림은 모두 병 몸에 꼭 맞게 잘라 키를 같게 뽑았다(폭만 294 ~ 296px 로 조금씩 다르다). 칸은 폭이 같고 병 그림보다 조금 넓은 비율(0.42)이라
   병이 모두 칸 높이에 맞춰 서서, 마개 위 끝과 병 바닥이 한 줄에 선다(원장 10-18 「서로 높낮이가 안 맞고」. 폭에 맞추면 넓은 병이 더 커진다) */
.pz.hi .hi-shelf { margin: 0; padding: 34px 26px 0; border-radius: 8px; background: linear-gradient(180deg, #f7f4ed 0%, #ece6d8 100%); overflow: hidden; }
.pz.hi .hi-shelf-row { display: flex; align-items: flex-end; justify-content: center; }
.pz.hi .hi-shelf-row > img { display: block; flex: 1 1 0; min-width: 0; max-width: 17%; aspect-ratio: 0.42; height: auto; object-fit: contain; object-position: 50% 100%; margin-left: -1.6%; filter: drop-shadow(0 10px 12px rgba(16, 38, 31, 0.22)); }
.pz.hi .hi-shelf-row > img:first-child { margin-left: 0; }
.pz.hi .hi-shelf figcaption { margin: 0 -26px; padding: 12px 20px 13px; background: var(--c-dark); color: #fff; font-size: 17px; font-weight: 800; }
@media (max-width: 767px) {
  .pz.hi .hi-shelf { padding: 22px 12px 0; }
  .pz.hi .hi-shelf figcaption { margin: 0 -12px; font-size: 15px; padding: 9px 14px 10px; }
}

/* 맺는 면 카드(herb-info.mjs 의 vialCard): 미용 시술 카드 모양 그대로, 자리만 면 오른쪽. 병 셋을 오른쪽에 나란히(가운데 병이 앞) */
.pz.hi .hi-close-card .ig-body { align-self: center; }
.pz.hi .hi-close-card .pc1-row.pc1-one { grid-template-columns: minmax(0, 560px); margin: 0; }
.pz.hi .pc1-trio .pc1-txt { width: 44%; }
.pz.hi .pc1-trio .pc1-img { height: 74%; bottom: 9%; max-width: 17%; object-fit: contain; object-position: 50% 100%; }
.pz.hi .pc1-trio .pc-trio-1 { right: 35%; }
.pz.hi .pc1-trio .pc-trio-2 { right: 19%; z-index: 1; }
.pz.hi .pc1-trio .pc-trio-3 { right: 3%; }
@media (max-width: 767px) {
  .pz.hi .hi-close-card .ig-body { margin-top: 22px; }
}
