/* ---- 자료 상세: 한 단 세로 흐름 (2026-11-04 피그마 코멘트 34 — 쇼핑몰 상세·블로그처럼) ----
   제목·작성자 → 사진(원본 비율) → 소개글 → 정보 표 → 행동 버튼 → 신고·차단 → 비슷한 자료 */
.rd-article { max-width: 760px; margin: var(--s-4) auto 0; display: flex; flex-direction: column; gap: var(--s-10); }
.rd-article > .alert + .alert, .rd-article > .alert + .rd-head { margin-top: calc(-1 * var(--s-6)); }
.rd-head { display: grid; gap: var(--s-4); }
.rd-chips { align-items: center; }
.rd-author { background: transparent; border-width: 0 0 1px; border-radius: 0; padding: 0 0 var(--s-4); }

/* 사진: 자르지 않고 원본 비율 그대로 위에서 아래로 */
.rd-gallery { display: flex; flex-direction: column; gap: var(--s-4); }
.rd-shot { margin: 0; border: var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--c-milk); }
.rd-shot img { display: block; width: 100%; height: auto; }
.rd-shot figcaption { padding: var(--s-2) var(--s-4); background: var(--c-bg); border-top: var(--border-soft); }
.rd-shot-empty { aspect-ratio: 4 / 5; }
.rd-shot-empty img, .rd-shot-empty .skeleton-thumb { width: 100%; height: 100%; object-fit: cover; }
.rd-shot-empty .skeleton-thumb { display: grid; place-items: center; color: var(--c-muted); }
.rd-lock .ico { flex: none; margin-top: 2px; }

/* 소개글·정보 표 */
.rd-sub { font-weight: 700; font-size: var(--t-lg); letter-spacing: -.02em; margin-bottom: var(--s-3); }
.rd-description { color: var(--c-ink); font-size: var(--t-md); line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.rd-description p + p { margin-top: var(--s-4); }
.rd-prompt-box { margin: var(--s-3) 0 0; padding: var(--s-4); background: var(--c-surface-2, #f6f7f9); border: var(--border); border-radius: var(--r-md); font-family: inherit; font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; word-break: keep-all; color: var(--c-ink); }
.rd-table th { width: 120px; }
.rd-table td { font-weight: 500; }
.rd-table tbody tr:hover { background: transparent; }

/* 사용 바로가기: 읽는 동안 화면 아래에 떠 있다가 행동 영역 바로 위에서 멈춘다 */
.rd-cta-bar { position: sticky; bottom: var(--s-4); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-5); margin-bottom: calc(-1 * var(--s-6)); border: var(--border); border-radius: var(--r-pill); background: var(--c-bg); box-shadow: var(--shadow-2); }
.rd-cta-price { display: flex; align-items: baseline; gap: var(--s-2); }
.rd-cta-price strong { font-family: var(--f-display); font-size: var(--t-lg); }
.rd-cta-price strong.is-paid { color: var(--c-berry); }
.rd-use { display: grid; gap: var(--s-5); scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
.rd-use:focus { outline: none; }
.rd-report { margin-top: calc(-1 * var(--s-6)); }
/* 수정·삭제·신고·차단 작은 버튼도 터치 영역 44px 이상 */
.rd-article .rs-more-actions .btn-sm { min-height: 44px; }

/* 비슷한 자료 */
.rd-section { margin-top: var(--s-16); padding-top: var(--s-10); border-top: var(--border-soft); }

/* 프로필 수정 — 사진 올리기·삭제, 안 올리면 기본 이미지 (대표 코멘트 26) */
.profile-avatar-row { display: flex; align-items: center; gap: var(--s-4); }
.profile-avatar-row .avatar { flex: none; }
.profile-avatar-body { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.profile-avatar-pick { position: relative; }
.profile-avatar-pick:has(input:focus-visible) { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (max-width: 480px) {
  .profile-avatar-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .rd-article { gap: var(--s-8); }
  .rd-shot { border-radius: var(--r-md); margin: 0 calc(-1 * var(--s-2)); }
  .rd-table th { width: 96px; }
  .rd-cta-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .rd-cta-price span { display: none; }
  .rd-section { margin-top: var(--s-10); padding-top: var(--s-8); }
}

/* ==== 2026-11-05 리뉴얼(시안 1·인프런 룩): 상세 본문을 흰 카드로 띄우고 촘촘하게 ==== */
.rs-page > .subbar.rs-subbar { padding: var(--s-3) 0; }
.rd-article { max-width: 800px; margin-top: 0; padding: var(--s-8) var(--s-10); gap: var(--s-8); background: #fff; border: 1px solid var(--c-line-2); border-radius: var(--r-md); }
.rd-article > .alert + .alert, .rd-article > .alert + .rd-head { margin-top: calc(-1 * var(--s-4)); }
.rd-head { gap: var(--s-3); }
.rd-head .rs-title { font-size: var(--t-2xl); line-height: 1.3; letter-spacing: -.02em; }
.rd-head .rs-price-lg { font-size: var(--t-md); }
.rd-author { border-color: var(--c-line); padding-bottom: var(--s-3); }
.rd-shot { border: 1px solid var(--c-line); border-radius: var(--r-md); }
.rd-gallery { gap: var(--s-3); }
.rd-sub { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.rd-description { font-size: 15px; line-height: 1.75; }
.rd-cta-bar { margin-bottom: calc(-1 * var(--s-4)); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); border-color: var(--c-line-2); border-radius: var(--r-md); box-shadow: var(--shadow-3); }
.rd-cta-bar .btn { min-height: 44px; }
.rd-use { gap: var(--s-4); }
.rd-use .rs-copy { min-height: 52px; font-size: var(--t-md); font-weight: 700; }
.rd-use .rs-stats { border-color: var(--c-line); background: var(--c-surface-2); }
.rd-use .rs-stats dd { font-size: var(--t-lg); }
.rd-report { margin-top: calc(-1 * var(--s-4)); }
.rd-article .rs-more-actions { border-top-color: var(--c-line); padding-top: var(--s-3); }
.rd-section { max-width: none; margin-top: var(--s-10); padding-top: 0; border-top: 0; }
.rd-section .section-head { margin-bottom: var(--s-4); }

@media (max-width: 720px) {
  /* 모바일은 화면 끝까지 붙는 흰 면(좌우 선 없음) */
  .rd-article { margin: 0 calc(-1 * var(--gutter)); padding: var(--s-5) var(--gutter); gap: var(--s-6); border-width: 1px 0; border-radius: 0; }
  .rd-head .rs-title { font-size: var(--t-xl); }
  .rd-shot { margin: 0; border-radius: var(--r-sm); }
  .rd-section { margin-top: var(--s-8); padding-top: 0; }
}
.rd-table th, .rd-table td { padding: 10px 14px; }
.rd-table th { border-bottom: var(--border-soft); }
.rd-table tr:last-child th { border-bottom: 0; }
.rd-table td.num { text-align: left; }
