/* 글 상세 화면 (templates/single.html) — 사이드바·댓글·공유 없이 전체 폭, 새 페이지 디자인 톤 */
.lisd--post-head, .lisd--post-body, .lisd--post-foot { font-family: "Noto Sans KR", sans-serif; color: #4A4342; word-break: keep-all; }
.lisd-post-crumb { border-bottom: 1px solid oklch(0.92 0.005 20); }
.lisd-post-crumb__inner, .lisd-post-head__inner, .lisd-post-body__inner, .lisd-post-foot__inner { max-width: 1229px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.lisd-post-crumb__inner { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 14px; padding-bottom: 14px; font-size: 13px; color: oklch(0.55 0.01 20); }
.lisd-post-crumb a { color: inherit; text-decoration: none; }
.lisd-post-crumb .is-here { color: oklch(0.22 0.01 20); font-weight: 500; }
.lisd-post-head__inner { padding-top: 72px; padding-bottom: 40px; border-bottom: 2px solid #2A2322; }
.lisd-post-head__label { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 14px; letter-spacing: 0.18em; font-weight: 700; color: #A71836; }
.lisd-post-head__label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #A71836; }
.lisd-post-head__title { margin: 0; font-size: 36px; line-height: 1.4; font-weight: 700; letter-spacing: -0.03em; color: #2A2322; }
.lisd-post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; font-size: 15px; color: oklch(0.55 0.01 20); }
.lisd-post-head__badge { font-size: 12px; font-weight: 700; color: #A71836; padding: 3px 8px; border: 1px solid oklch(0.8 0.06 12); }
.lisd-post-head__badge--pin { color: #fff; background: #A71836; border-color: #A71836; }

.lisd-post-body__inner { padding-top: 56px; padding-bottom: 72px; max-width: 1229px; }
.lisd-post-body__inner > * { max-width: 860px; }
.lisd--post-body p, .lisd--post-body li { font-size: 17px; line-height: 2; color: #4A4342; margin: 0 0 1em; }
.lisd--post-body h2, .lisd--post-body h3, .lisd--post-body h4 { color: #2A2322; font-weight: 700; letter-spacing: -0.02em; margin: 2.2em 0 0.8em; line-height: 1.5; }
.lisd--post-body h2 { font-size: 26px; } .lisd--post-body h3 { font-size: 21px; } .lisd--post-body h4 { font-size: 18px; }
.lisd--post-body h2:first-child, .lisd--post-body h3:first-child { margin-top: 0; }
.lisd--post-body ul, .lisd--post-body ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.lisd--post-body ul { list-style: disc !important; } .lisd--post-body ol { list-style: decimal !important; } .lisd--post-body li { display: list-item !important; }
.lisd--post-body li { margin: 0; }
.lisd--post-body a { color: #A71836; text-decoration: underline; text-underline-offset: 3px; }
.lisd--post-body img { max-width: 100%; height: auto; }
.lisd--post-body figure { margin: 1.5em 0; }
.lisd--post-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 2px solid #A71836; font-family: "Noto Serif KR", serif; }
.lisd--post-body table { border-collapse: collapse; width: 100%; font-size: 16px; }
.lisd--post-body th, .lisd--post-body td { border-bottom: 1px solid #E3DFDE; padding: 12px 10px; text-align: left; }
/* 첨부 파일 블록 */
.lisd--post-body .wp-block-file { display: flex; align-items: center; gap: 14px; margin: 2em 0 0; padding: 18px 20px; background: #F8F6F6; border-top: 3px solid #A71836; font-size: 15px; }
.lisd--post-body .wp-block-file > a:first-child { color: #2A2322; text-decoration: none; font-weight: 500; flex: 1 1 auto; }
.lisd--post-body .wp-block-file .wp-block-file__button { flex: 0 0 auto; margin: 0; padding: 10px 18px; border-radius: 0; background: #2A2322; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.lisd--post-body .wp-block-file .wp-block-file__button:hover { background: #A71836; }
.lisd--post-body .wp-block-file + .wp-block-file { margin-top: 8px; }

.lisd-post-foot__inner { padding-bottom: 104px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid #E3DFDE; padding-top: 28px; }
.lisd-post-foot__list { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; background: #A71836; color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none !important; }
.lisd-post-foot__list:hover { background: oklch(0.40 0.15 12); }
.lisd-post-foot__nav { display: flex; gap: 20px; font-size: 14px; }
.lisd-post-foot__nav a { color: oklch(0.45 0.01 20); text-decoration: none; }
.lisd-post-foot__nav a:hover { color: #A71836; }

@media (max-width: 768px) {
  .lisd-post-crumb__inner, .lisd-post-head__inner, .lisd-post-body__inner, .lisd-post-foot__inner { padding-left: 16px; padding-right: 16px; }
  .lisd-post-crumb__inner { justify-content: flex-start; }
  .lisd-post-head__inner { padding-top: 40px; padding-bottom: 24px; }
  .lisd-post-head__title { font-size: 26px; }
  .lisd-post-body__inner { padding-top: 32px; padding-bottom: 40px; }
  .lisd--post-body p, .lisd--post-body li { font-size: 16px; line-height: 1.9; }
  .lisd--post-body .wp-block-file { flex-direction: column; align-items: flex-start; }
  .lisd-post-foot__inner { padding-bottom: 56px; }
}

/* 글 상세 안의 등대가족 로그인 안내(.lisd--family-gate): 본문 컨테이너 안에 중첩된 .lisd 라 전면 폭 margin 이 두 번 걸려 왼쪽으로 밀림 → 본문 폭에 맞춤 (2026-09-29) */
.lisd--post-body .lisd--family-gate { width: 100%; max-width: none !important; margin: 0 !important; }
.lisd--post-body .lisd--family-gate > div { padding-left: 0 !important; padding-right: 0 !important; padding-top: 8px !important; padding-bottom: 24px !important; }
.lisd--post-body .lisd--family-gate p { margin-bottom: 24px; }
.lisd--post-body .lisd--family-gate a { text-decoration: none; }
/* 승인 회원용 첨부 파일 블록 */
.lisd--post-body .lisd-post-files a { text-decoration: none; }

/* 포토앨범 글 갤러리: 마지막 줄 사진이 한 줄 전체로 늘어나지 않게 (2026-09-29) */
.wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0 !important; }

/* 글 본문 임시 사진 칸 — 실제 사진이 오면 교체 (2026-09-29) */
.lisd-photo-slot { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; margin: 32px 0; background: repeating-linear-gradient(135deg, #EFEAE3 0 12px, #F5F1EB 12px 24px); border: 1px dashed #D5CCC1; color: #9A8F87; font-size: 14px; letter-spacing: .04em; }

/* 글 상세: 제목·구분선·본문·목록 버튼을 가운데 한 기둥(본문 폭 860px)으로 — 왼쪽으로 쏠려 보이지 않게 (2026-09-29) */
@media (min-width: 769px) {
  .lisd-post-head__inner, .lisd-post-body__inner, .lisd-post-foot__inner { max-width: 1064px; } /* 본문 폭 1000px */
  .lisd-post-body__inner > * { max-width: none; }
}

/* 가정통신문: 원문 이메일 발송 안내 (2026-09-29) */
.lisd-letter-note { margin-top: 28px !important; padding: 16px 20px; background: #FAF7F3; border-left: 2px solid #A71836; font-size: 15px; color: oklch(0.35 0.01 20); }
