/* ⛳ community-kit 사본 — 글 본문 서식(.post-detail-body: h1~h6·목록·인용·표·코드·정렬·이미지·영상·다크)
   원본 rider-sesang/rider-world/public/static/style.css + rider-world/src/routes/home/css.ts @ 03fcf2021ccd 에서 선택자로 뽑음(export-kit.mjs --with-ui). 고칠 땐 원본을 고친다. */
.post-detail-body { padding: 24px 28px; font-size: var(--text-body); line-height: var(--leading-body); color: var(--fg-1); word-break: break-word; overflow-wrap: break-word; white-space: normal; border-bottom: 1px solid var(--border); container-type: inline-size; }
.post-detail-body img { display: block; max-width: 100%; width: auto; height: auto; border-radius: 0; margin: 12px auto; box-shadow: none; }
.post-detail-body p img { display: block; margin: 10px auto; }
.post-detail-body iframe { display: block; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; height: auto; border: none; border-radius: 0; margin: 14px auto; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.post-detail-body iframe[src*="sh=1"] { max-width: min(340px, 80%); aspect-ratio: 9 / 16; }
.post-detail-body video { display: block; width: 100%; max-width: 640px; height: auto; border-radius: 0; margin: 14px auto; background: #000; }
.post-detail-body p { margin: 0 0 8px; min-height: 1.2em; }
.post-detail-body p:last-child { margin-bottom: 0; }
.post-detail-body h1 { font-size:1.5rem; font-weight:700; margin:18px 0 8px; line-height:1.3; }
.post-detail-body h2 { font-size:1.25rem; font-weight:700; margin:14px 0 6px; line-height:1.3; }
.post-detail-body h3 { font-size:1.05rem; font-weight:700; margin:10px 0 4px; line-height:1.3; }
.post-detail-body strong, .post-detail-body b { font-weight:700; }
.post-detail-body em, .post-detail-body i { font-style:italic; }
.post-detail-body u { text-decoration:underline; }
.post-detail-body s { text-decoration:line-through; }
.post-detail-body a { color:var(--accent); text-decoration:underline; word-break:break-all; }
.post-detail-body ol, .post-detail-body ul { padding-left:28px; margin:8px 0 12px; }
.post-detail-body li { margin-bottom:4px; }
.post-detail-body ol li { list-style:decimal; }
.post-detail-body ul li { list-style:disc; }
.post-detail-body blockquote { border-left:4px solid var(--accent); padding:10px 16px; margin:12px 0; background:rgba(12, 111, 216,.06); border-radius:0 var(--radius-sm) var(--radius-sm) 0; color:var(--text2); font-style:italic; }
.post-detail-body pre { background:var(--bg4); border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px 18px; font-size:.82rem; font-family:'Consolas','Monaco',monospace; overflow-x:auto; margin:10px 0; line-height:1.6; white-space:pre; }
.post-detail-body code { background:var(--bg4); border-radius:var(--radius-sm); padding:2px 6px; font-size:.82rem; font-family:'Consolas','Monaco',monospace; }
.post-detail-body .ql-align-center { text-align:center; }
.post-detail-body .ql-align-right { text-align:right; }
.post-detail-body .ql-align-justify { text-align:justify; }
.post-detail-body .ql-indent-1 { padding-left:3em; }
.post-detail-body .ql-indent-2 { padding-left:6em; }
.post-detail-body .ql-indent-3 { padding-left:9em; }
.post-detail-body h4 { font-size:1rem; font-weight:700; margin:10px 0 4px; line-height:1.4; }
.post-detail-body h5, .post-detail-body h6 { font-size:.95rem; font-weight:700; margin:8px 0 4px; line-height:1.4; }
.post-detail-body table { display:block; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; border-collapse:collapse; margin:12px 0; font-size:.9rem; line-height:1.5; }
.post-detail-body th, .post-detail-body td { border:1px solid var(--border); padding:8px 10px; vertical-align:top; text-align:left; min-width:4.5em; word-break:keep-all; overflow-wrap:anywhere; }
.post-detail-body th { background:var(--bg4); font-weight:700; }
.post-detail-body caption { caption-side:top; text-align:left; font-weight:700; padding:0 0 6px; }
.post-detail-body hr { border:0; border-top:1px solid var(--border); margin:16px 0; }
.post-detail-body figure { margin:10px 0; }
.post-detail-body figcaption { font-size:.8rem; color:var(--text3); margin-top:4px; text-align:center; }
.post-detail-body mark { background:rgba(255, 214, 0, .45); color:inherit; padding:0 2px; border-radius:var(--radius-sm); }
.post-detail-body small { font-size:.82em; }
.post-detail-body kbd, .post-detail-body samp { font-family:'Consolas','Monaco',monospace; font-size:.82rem; background:var(--bg4); border:1px solid var(--border); border-radius:var(--radius-sm); padding:1px 5px; }
[data-theme="dark"] .post-detail-body mark { background:rgba(255, 214, 0, .28); }
[data-theme="dark"] .post-detail-body img { box-shadow:0 2px 12px rgba(0,0,0,.45); }
[data-theme="dark"] .post-detail-body iframe { box-shadow:0 2px 12px rgba(0,0,0,.5); }
[data-theme="dark"] .post-detail-body blockquote { background:rgba(12, 111, 216,.09); }
@media (max-width: 900px) {
  .post-detail-body { padding: 18px 16px; }
}
/* ── 글 상세 범위 스타일(css.ts postDetailCss) ── */
.post-detail-body { font-size:1rem;line-height:1.85; }
.post-detail-body.softwall { position:relative;max-height:none; }
.post-detail-body.softwall::after { content:'';position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(transparent,var(--bg,#fff));pointer-events:none; }
@media (max-width:900px) {
  .post-detail-body { font-size:16px; }
}
