/* 협력업체 — 메인 파트너 스트립 + 목록 카드 + 상세 페이지 공통 스타일 */

/* ---- 로고 마크 (파일 없으면 모노그램으로 폴백) ---- */
.pt-mark {
  display: grid; place-items: center; position: relative;
  width: 58px; height: 58px;
}
.pt-mark img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.pt-mark .pt-mono {
  font-family: var(--font-head); font-weight: 800; font-size: 22px;
  color: var(--accent-secondary); background: var(--accent-secondary-soft);
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
}
/* 로고 이미지가 살아 있으면 모노그램은 숨김 (onerror 시 img가 제거되어 모노그램 노출) */
.pt-mark img ~ .pt-mono { display: none; }
.pt-mark.lg { width: 76px; height: 76px; }
.pt-mark.lg .pt-mono { font-size: 28px; }

/* ---- 메인 파트너 스트립 ---- */
.pt-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  align-items: start;
}
.pt-item {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 22px 10px; border-radius: var(--radius-base, 16px);
  text-decoration: none; color: inherit;
  transition: transform .16s, background .16s;
}
.pt-item:hover { transform: translateY(-3px); background: var(--surface); }
.pt-item .pt-mark img { filter: grayscale(1); opacity: .78; transition: filter .18s, opacity .18s; }
.pt-item:hover .pt-mark img { filter: none; opacity: 1; }
.pt-item .pt-name {
  font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
  text-align: center; line-height: 1.4;
}
.pt-item:hover .pt-name { color: var(--text-primary); }

/* ---- 협력업체 목록 카드 ---- */
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pt-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card, 20px); padding: 30px 28px 26px;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.pt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-secondary); }
.pt-card .pt-kind {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-primary); background: var(--accent-primary-soft);
  padding: 5px 11px; border-radius: 999px;
}
.pt-card .pt-mark { margin: 14px 0 4px; }
.pt-card h4 { font-size: 22px; margin: 0; }
.pt-card .pt-dept { margin: 0; font-size: 13.5px; color: var(--accent-secondary); font-weight: 600; }
.pt-card .pt-desc { margin: 4px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--text-secondary); }
.pt-card .pt-more {
  margin-top: 16px; font-family: var(--font-display); font-size: 13.5px;
  font-weight: 700; color: var(--accent-primary);
}

/* ---- 상세 페이지 ---- */
/* 사진 슬롯 — 실제 파일이 있으면 이미지, 없으면 안내 플레이스홀더가 그대로 보입니다. */
.pslot {
  position: relative; overflow: hidden; border-radius: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--surface), var(--surface-alt));
}
.pslot .ph-guide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center;
}
.pslot .ph-guide .ic {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-secondary-soft); color: var(--accent-secondary); font-size: 24px;
}
.pslot .ph-guide .ph-file {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; color: var(--accent-secondary);
}
.pslot .ph-guide h4 { font-family: var(--font-head); font-size: 15.5px; margin: 0; color: var(--text-primary); }
.pslot .ph-guide p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--text-secondary); max-width: 280px; }
.pslot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 1; opacity: 0; transition: opacity .3s;
}
.pslot img.on { opacity: 1; }
.pslot .pslot-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px;
  background: linear-gradient(to top, rgba(28, 22, 15, .82), transparent);
  color: #fff; pointer-events: none;
}
.pslot .pslot-cap .k {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--amber-300, #EBC78C);
}
.pslot .pslot-cap p { margin: 4px 0 0; font-size: 14px; }
.pslot .pslot-tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--accent-primary); color: #fff;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}

/* 상세 히어로 정보 pill */
.pt-facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.pt-fact {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 13px 18px;
}
.pt-fact .ic { font-size: 22px; }
.pt-fact .k { display: block; font-size: 11.5px; color: var(--text-tertiary); }
.pt-fact .v { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); }

/* 5대 영역 · 포인트 카드 그리드 */
.pt-areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pt-area {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card, 20px); padding: 26px 20px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.pt-area .n {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-secondary-soft); color: var(--accent-secondary);
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
}
.pt-area h4 { font-family: var(--font-head); font-size: 18px; margin: 0 0 8px; }
.pt-area p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--text-secondary); }

/* 강조 인용 박스 */
.pt-note {
  background: var(--surface-alt); border-left: 4px solid var(--accent-secondary);
  border-radius: 0 16px 16px 0; padding: 22px 24px; margin-top: 22px;
}
.pt-note strong { display: block; font-size: 14.5px; color: var(--text-primary); margin-bottom: 8px; }
.pt-note p { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--text-secondary); }

/* 체크 리스트 */
.pt-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.pt-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--text-primary); font-weight: 600; }
.pt-checks li::before { content: '✓'; color: var(--accent-primary); font-weight: 800; }

@media (max-width: 1000px) {
  .pt-strip { grid-template-columns: repeat(3, 1fr); }
  .pt-grid { grid-template-columns: repeat(2, 1fr); }
  .pt-areas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .pt-strip { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .pt-grid { grid-template-columns: 1fr; }
  .pt-areas { grid-template-columns: 1fr; }
}
