/* NOTES 글 본문 모양: 공개 글(.note-body)과 편집창(.ne-body)이 같은 규칙을 쓴다(2026-10-25 어랍쇼 "편집창에서 보이는 대로 공개창에도 똑같이").
   본문 모양을 고칠 땐 여기 한 곳만 고친다. 편집창에만 필요한 것(그림 고르기·테두리·높이)은 inline-admin.css. */
.note-body, .ne-body { font: 400 16.5px/1.95 var(--serif); color: var(--ink); word-break: keep-all; overflow-wrap: anywhere; }
.note-body > :first-child, .ne-body > :first-child { margin-top: 0; }
.note-body p, .ne-body p { margin: 0 0 1.2em; }
.note-body h2, .ne-body h2 { margin: 2em 0 .7em; font-size: 26px; line-height: 1.45; } /* 대제목 */
.note-body h3, .ne-body h3 { margin: 1.9em 0 .65em; font-size: 23px; line-height: 1.45; } /* 중제목 */
.note-body h4, .ne-body h4 { margin: 1.8em 0 .6em; font-size: 20px; line-height: 1.5; } /* 소제목: 예전 소제목 크기 그대로(2026-10-11 사용자 "소제목보다 점점 커져야") */
.note-body a, .ne-body a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.note-body img, .ne-body img { display: block; max-width: 76%; height: auto; margin: 1.6em auto; border-radius: 3px; } /* 기본 = 중간(2026-10-18 사용자 "중간이 디폴트") */
.note-body p > img:only-child, .ne-body p > img:only-child { margin: 0 auto; }
/* 한 문단에 그림이 여럿이면 편집창처럼 나란히(2026-10-25 사용자 "편집창에선 2열인데 공개는 1열, 길어져 보기 싫다"). 작게(50%)가 두 개면 2열 */
.note-body p:has(> img:not(:only-child)), .ne-body p:has(> img:not(:only-child)) { font-size: 0; line-height: 0; }
.note-body p > img:not(:only-child):not([data-w]), .ne-body p > img:not(:only-child):not([data-w]) { display: inline-block; vertical-align: top; margin: 0 0 6px; }
/* 그림 크기(2026-10-18 사용자 "너무 큰 그림이 싫다"): 편집기에서 그림을 누르면 작게·중간·크게. 작게 = 단의 절반, 중간 = 76%(기본, data-size 없음), 크게 = 가로폭 맞춤. 모두 가운데, 단 밖으로는 안 나감. 값은 img data-size(html-clean.js). 휴대폰은 아래 */
.note-body img[data-size="s"], .ne-body img[data-size="s"] { max-width: 50%; }
.note-body img[data-size="l"], .ne-body img[data-size="l"] { max-width: 100%; }
/* 편집기 [−][+]로 고른 폭(data-w, 20~100%, 5씩, 2026-10-18): 그림·유튜브 모두 가운데 */
.note-body img[data-w="20"], .ne-body img[data-w="20"] { max-width: 20%; }
.note-body iframe[data-w="20"], .ne-body iframe[data-w="20"], .note-body video[data-w="20"], .ne-body video[data-w="20"] { width: 20%; }
.note-body img[data-w="25"], .ne-body img[data-w="25"] { max-width: 25%; }
.note-body iframe[data-w="25"], .ne-body iframe[data-w="25"], .note-body video[data-w="25"], .ne-body video[data-w="25"] { width: 25%; }
.note-body img[data-w="30"], .ne-body img[data-w="30"] { max-width: 30%; }
.note-body iframe[data-w="30"], .ne-body iframe[data-w="30"], .note-body video[data-w="30"], .ne-body video[data-w="30"] { width: 30%; }
.note-body img[data-w="35"], .ne-body img[data-w="35"] { max-width: 35%; }
.note-body iframe[data-w="35"], .ne-body iframe[data-w="35"], .note-body video[data-w="35"], .ne-body video[data-w="35"] { width: 35%; }
.note-body img[data-w="40"], .ne-body img[data-w="40"] { max-width: 40%; }
.note-body iframe[data-w="40"], .ne-body iframe[data-w="40"], .note-body video[data-w="40"], .ne-body video[data-w="40"] { width: 40%; }
.note-body img[data-w="45"], .ne-body img[data-w="45"] { max-width: 45%; }
.note-body iframe[data-w="45"], .ne-body iframe[data-w="45"], .note-body video[data-w="45"], .ne-body video[data-w="45"] { width: 45%; }
.note-body img[data-w="50"], .ne-body img[data-w="50"] { max-width: 50%; }
.note-body iframe[data-w="50"], .ne-body iframe[data-w="50"], .note-body video[data-w="50"], .ne-body video[data-w="50"] { width: 50%; }
.note-body img[data-w="55"], .ne-body img[data-w="55"] { max-width: 55%; }
.note-body iframe[data-w="55"], .ne-body iframe[data-w="55"], .note-body video[data-w="55"], .ne-body video[data-w="55"] { width: 55%; }
.note-body img[data-w="60"], .ne-body img[data-w="60"] { max-width: 60%; }
.note-body iframe[data-w="60"], .ne-body iframe[data-w="60"], .note-body video[data-w="60"], .ne-body video[data-w="60"] { width: 60%; }
.note-body img[data-w="65"], .ne-body img[data-w="65"] { max-width: 65%; }
.note-body iframe[data-w="65"], .ne-body iframe[data-w="65"], .note-body video[data-w="65"], .ne-body video[data-w="65"] { width: 65%; }
.note-body img[data-w="70"], .ne-body img[data-w="70"] { max-width: 70%; }
.note-body iframe[data-w="70"], .ne-body iframe[data-w="70"], .note-body video[data-w="70"], .ne-body video[data-w="70"] { width: 70%; }
.note-body img[data-w="75"], .ne-body img[data-w="75"] { max-width: 75%; }
.note-body iframe[data-w="75"], .ne-body iframe[data-w="75"], .note-body video[data-w="75"], .ne-body video[data-w="75"] { width: 75%; }
.note-body img[data-w="80"], .ne-body img[data-w="80"] { max-width: 80%; }
.note-body iframe[data-w="80"], .ne-body iframe[data-w="80"], .note-body video[data-w="80"], .ne-body video[data-w="80"] { width: 80%; }
.note-body img[data-w="85"], .ne-body img[data-w="85"] { max-width: 85%; }
.note-body iframe[data-w="85"], .ne-body iframe[data-w="85"], .note-body video[data-w="85"], .ne-body video[data-w="85"] { width: 85%; }
.note-body img[data-w="90"], .ne-body img[data-w="90"] { max-width: 90%; }
.note-body iframe[data-w="90"], .ne-body iframe[data-w="90"], .note-body video[data-w="90"], .ne-body video[data-w="90"] { width: 90%; }
.note-body img[data-w="95"], .ne-body img[data-w="95"] { max-width: 95%; }
.note-body iframe[data-w="95"], .ne-body iframe[data-w="95"], .note-body video[data-w="95"], .ne-body video[data-w="95"] { width: 95%; }
.note-body img[data-w="100"], .ne-body img[data-w="100"] { max-width: 100%; }
.note-body iframe[data-w="100"], .ne-body iframe[data-w="100"], .note-body video[data-w="100"], .ne-body video[data-w="100"] { width: 100%; }
.note-body iframe[data-w], .ne-body iframe[data-w], .note-body video[data-w], .ne-body video[data-w] { margin-left: auto; margin-right: auto; }
.note-body iframe, .ne-body iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 1.6em 0; }
/* 올린 화면 영상(2026-10-26): 가로폭 맞춤이 기본, 폭은 유튜브처럼 [−][+](data-w). 영상 크기 비율은 그대로 */
.note-body video, .ne-body video { display: block; width: 100%; height: auto; margin: 1.6em auto; border-radius: 3px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.note-body blockquote, .ne-body blockquote { margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 2px solid color-mix(in srgb, var(--ink) 25%, transparent); color: var(--muted); font-size: inherit; } /* 인용도 본문과 같은 크기(2026-10-12) */
.note-body blockquote > :first-child, .ne-body blockquote > :first-child { margin-top: 0; }
.note-body blockquote > :last-child, .ne-body blockquote > :last-child { margin-bottom: 0; }
.note-body u, .ne-body u { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.note-body hr, .ne-body hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.note-body ul, .ne-body ul, .note-body ol, .ne-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.note-body figure, .ne-body figure { margin: 1.6em 0; }
.note-body figcaption, .ne-body figcaption { font: 400 12.5px var(--sans); color: var(--faint); text-align: center; margin-top: 8px; }

@media (max-width: 640px) {
  .note-body, .ne-body { font-size: 15.5px; line-height: 1.9; }
  .note-body h2, .ne-body h2 { font-size: 22px; }
  .note-body h3, .ne-body h3 { font-size: 20px; }
  .note-body h4, .ne-body h4 { font-size: 18px; }
  .note-body img, .ne-body img { max-width: 100%; } /* 휴대폰은 폭이 좁아 중간·크게 모두 가로폭 맞춤, 작게만 70% */
  .note-body img[data-size="s"], .ne-body img[data-size="s"] { max-width: 70%; }
}
