/* 사이트 소개 페이지 (/s/:id): 정보·Pick 이유·만든 사람 한마디·안내·의견 */

/* ── 사이트별 소개 페이지 (/s/:id) ── */
.site-page { padding-top: 40px; }
.site-page .intro-top { margin-bottom: 28px; }
.sp-back { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.sp-back:hover { color: var(--accent); }

.sp {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.sp-thumb {
  position: relative;
  aspect-ratio: 1200 / 630;
  border-radius: 18px;
  overflow: hidden;
  background: var(--thumb);
  border: 1px solid var(--line);
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-info .eyebrow { margin-bottom: 8px; letter-spacing: .04em; text-transform: none; }
.sp-info h1 { font-size: clamp(24px, 3.4vw, 34px); }
.sp-desc { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sp-enter, .sp-together {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.sp-enter { background: var(--accent); color: #fff; }
.sp-enter:hover { filter: brightness(1.08); }
.sp-together { border: 1.5px solid var(--accent); color: var(--accent); }
.sp-together:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

.sp-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px 20px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px dashed var(--line);
}
.sp-meta dt { font-size: 12px; color: var(--muted); }
.sp-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sp-meta a { color: inherit; }
.sp-meta a:hover { color: var(--accent); }

.sp-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.sp-tags a {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.sp-tags a:hover { color: var(--accent); border-color: var(--accent); }

.sp-section { margin-top: 56px; }
.sp-section h2 { margin: 0 0 18px; font-size: 20px; letter-spacing: -.01em; }
.sp-about { max-width: 720px; }
.sp-about p { margin: 0 0 12px; font-size: 16px; line-height: 1.8; }

.sp-similar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.sp-similar a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 8px 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.sp-similar a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.sp-similar-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1200 / 630;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--thumb);
}
.sp-similar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-similar strong { padding: 0 4px; font-size: 12px; color: var(--accent); }
.sp-similar-title {
  padding: 0 4px; font-size: 14px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-all { margin: 48px 0 0; text-align: center; }
.sp-all a { color: var(--accent); font-weight: 700; text-decoration: none; }

@media (max-width: 640px) {
  .sp-meta .health-text { position: static; width: auto; height: auto; clip: auto; }
}
@media (max-width: 760px) {
  .sp { grid-template-columns: 1fr; gap: 22px; }
  .sp-similar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sp-section { margin-top: 40px; }
}

/* 상세 페이지 Pick 이유 */
.sp-pick { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #f4c542 14%, var(--surface)); border: 1px solid color-mix(in srgb, #f4c542 45%, var(--line)); font-size: 14px; line-height: 1.6; }
.sp-pick strong { display: block; font-size: 12px; color: #b8860b; margin-bottom: 2px; }

/* 소개 페이지: 만든 사람의 한마디 */
.sp-note { max-width: 720px; }
.sp-note blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); }
.sp-note blockquote p { margin: 0 0 10px; font-size: 16px; line-height: 1.8; }
.sp-note footer { font-size: 14px; color: var(--muted); }
.sp-note footer a { color: inherit; }
.sp-note footer a:hover { color: var(--accent); }

/* 상세 페이지 의견 */
.sp-comments { max-width: 720px; }
.sp-comments-count { margin-left: 4px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.comment-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.comment-form textarea, .comment-form input[type=text] { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px; line-height: 1.6; resize: vertical; }
.comment-form textarea:focus, .comment-form input[type=text]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.comment-form-foot { display: flex; align-items: center; gap: 10px; }
.comment-form-foot input[type=text] { width: 180px; flex: none; padding: 9px 12px; font-size: 14px; }
.comment-error { flex: 1; color: #e0475b; font-size: 13px; }
.comment-form button { margin-left: auto; padding: 9px 18px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.comment-form button:disabled { opacity: .5; cursor: default; }
.comment-empty { color: var(--muted); font-size: 14px; }
.comments { list-style: none; margin: 0; padding: 0; }
.comment { padding: 14px 0; border-top: 1px solid var(--line); }
.comment-head { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.comment-head time { color: var(--muted); font-variant-numeric: tabular-nums; }
.comment-head form { margin-left: auto; }
.comment-delete { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.comment-delete:hover { color: #e0475b; }
.comment-body { margin: 6px 0 0; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .comment-form-foot { flex-wrap: wrap; }
  .comment-form-foot input[type=text] { flex: 1; width: auto; }
  .comment-error { order: 3; flex-basis: 100%; }
}

.sp-notices { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--thumb); color: var(--muted); font-size: 14px; line-height: 1.6; }
.sp-notices-title { margin: 0 0 4px; font-weight: 600; color: var(--text); }
.sp-notices ul { margin: 0; padding: 0; list-style: none; }
