/* ============================================================
   멍픽랩 포스트 스타일 — 네이버 블로그풍
   golden-sample-treats.html 의 CSS를 .mpl-post 스코프로 변환한 것.
   글마다 <style>을 넣지 않고 이 파일 하나만 서버에서 로드한다.
   → 디자인을 고치면 과거 글까지 전부 반영됨.

   원칙: 흰 배경 + 검정 글씨 고정 (다크모드에도 안 바뀜), 가운데 정렬.
   ============================================================ */

.mpl-post {
  --bg: #FFFFFF; --ink: #1A1A1A; --soft: #555555; --faint: #9A9A9A; --line: #EDEDED;
  --bubble: #F4F4F5; --accent: #E86B45; --accent-ink: #C9542F; --blue: #3E79C2;
  --hl: #FBEDE7; --blue-hl: #EAF1FA; --ph: #A9761A; --ph-bg: #FBF1D8; --ph-line: #E7D4A2;
  --shadow: 0 2px 4px rgba(30,28,34,.05), 0 12px 30px rgba(30,28,34,.07);
  color-scheme: light;

  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Malgun Gothic", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px 110px;
  text-align: center;
}
.mpl-post * { box-sizing: border-box; }

/* 헤더 */
.mpl-post .cat { margin: 52px 0 0; font-size: 13px; color: var(--faint); letter-spacing: .02em; }
.mpl-post h1 { font-size: clamp(24px, 5.4vw, 32px); line-height: 1.42; letter-spacing: -.01em;
  font-weight: 800; margin: 16px 0 22px; text-wrap: balance; color: var(--ink); }
.mpl-post .byline { display: inline-flex; align-items: center; gap: 9px; padding: 12px 0 0; font-size: 13px; color: var(--faint); }
.mpl-post .byline .av { width: 30px; height: 30px; border-radius: 50%; background: var(--bubble); display: grid; place-items: center; font-size: 15px; }
.mpl-post .byline b { color: var(--soft); font-weight: 700; }
.mpl-post .rule { width: 100%; height: 1px; background: var(--line); margin: 26px 0 6px; }

/* 본문 블록 */
.mpl-post .b { font-size: 16.5px; margin: 32px 0; color: var(--ink); }
.mpl-post .b.lead { font-size: 17px; }
.mpl-post strong { font-weight: 800; }
.mpl-post .hl { font-weight: 800; color: var(--accent-ink); background: var(--hl); padding: 1px 5px; border-radius: 5px; }
.mpl-post .u { font-weight: 800; color: var(--blue); }

/* 섹션 제목 */
.mpl-post h2.sec { font-size: 21px; font-weight: 800; line-height: 1.4; letter-spacing: -.01em;
  margin: 58px 0 4px; text-wrap: balance; color: var(--ink); }
.mpl-post h2.sec .em { font-size: 22px; display: block; margin-bottom: 4px; }
.mpl-post .sub { font-size: 14px; color: var(--faint); margin: 0 0 18px; }

/* 말풍선 훅 */
.mpl-post .bubble { position: relative; display: inline-block; background: var(--bubble); color: var(--ink);
  border-radius: 16px; padding: 22px 28px; font-size: 17px; font-weight: 700; line-height: 1.6;
  margin: 40px 0 8px; box-shadow: var(--shadow); }
.mpl-post .bubble::after { content: ""; position: absolute; bottom: -11px; left: 50%; translate: -50% 0;
  border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 12px solid var(--bubble); }

/* 체크리스트 */
.mpl-post ul.ck { list-style: none; margin: 24px 0; padding: 0; display: flex; flex-direction: column; gap: 13px; align-items: center; }
.mpl-post ul.ck li { font-size: 16px; font-weight: 600; display: inline-flex; align-items: flex-start; gap: 9px; max-width: 460px; text-align: left; line-height: 1.6; }
.mpl-post ul.ck li::before { content: "✔"; color: var(--blue); font-size: 15px; margin-top: 4px; flex: none; }
.mpl-post ul.ck li b { font-weight: 800; }

/* 인용구 */
.mpl-post blockquote.pq { margin: 50px 0; padding: 0; position: relative; border: 0; }
.mpl-post blockquote.pq p { font-size: 19px; font-style: italic; font-weight: 700; line-height: 1.6; margin: 0; text-wrap: balance; }
.mpl-post blockquote.pq::before { content: "\201C"; display: block; font-size: 46px; line-height: .4; color: var(--faint); margin-bottom: 20px; font-style: normal; }
.mpl-post blockquote.pq::after { content: "\201D"; display: block; font-size: 46px; line-height: 0; color: var(--faint); margin-top: 30px; font-style: normal; }

/* 이미지 / 플레이스홀더 판 */
.mpl-post figure { margin: 40px 0; }
.mpl-post figure img { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.mpl-post .plate { aspect-ratio: 4 / 3; border-radius: 10px; border: 1.5px dashed var(--ph-line);
  background: repeating-linear-gradient(-45deg, transparent, transparent 13px,
    color-mix(in srgb, var(--faint) 13%, transparent) 13px, color-mix(in srgb, var(--faint) 13%, transparent) 26px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 22px; }
.mpl-post .plate.sm { aspect-ratio: 16 / 9; }
.mpl-post .plate .t { font-size: 13.5px; font-weight: 700; color: var(--ph); }
.mpl-post .plate .d { font-size: 12px; color: var(--faint); max-width: 300px; line-height: 1.5; }
.mpl-post figcaption { font-size: 13px; color: var(--faint); margin-top: 12px; text-align: center; }

.mpl-post .vdiv { width: 1px; height: 46px; background: var(--line); margin: 44px auto; }

/* 종류별 항목 */
.mpl-post .kind { margin: 26px auto; max-width: 480px; }
.mpl-post .kind .name { font-size: 17px; font-weight: 800; }
.mpl-post .kind .name .badge { display: inline-block; font-size: 12px; font-weight: 800; color: var(--blue);
  background: var(--blue-hl); padding: 2px 9px; border-radius: 999px; margin-left: 7px; vertical-align: 2px; }
.mpl-post .kind p { font-size: 15.5px; margin: 6px 0 0; color: var(--soft); line-height: 1.7; }
.mpl-post .kind p .mine { color: var(--accent-ink); font-weight: 700; }

/* TOP 리스트 */
.mpl-post .top { margin: 24px auto; max-width: 470px; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.mpl-post .top .row { display: flex; gap: 14px; align-items: flex-start; }
.mpl-post .top .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 15px; display: grid; place-items: center; margin-top: 2px; }
.mpl-post .top .c .t { font-size: 16.5px; font-weight: 800; }
.mpl-post .top .c p { margin: 4px 0 0; font-size: 15px; color: var(--soft); line-height: 1.65; }

.mpl-post .prod { font-weight: 800; border-bottom: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); }
/* .ph = 아직 실데이터가 안 들어간 자리. 발행 전에 0개여야 한다. */
.mpl-post .ph { color: var(--ph); font-weight: 800; background: var(--ph-bg); padding: 0 6px; border-radius: 5px; border: 1px dashed var(--ph-line); font-size: .93em; }

/* 경고 박스 */
.mpl-post .warn { margin: 30px auto; max-width: 480px; background: var(--hl); border-radius: 12px; padding: 20px 22px; }
.mpl-post .warn .wt { font-size: 15.5px; font-weight: 800; color: var(--accent-ink); margin-bottom: 8px; }
.mpl-post .warn p { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.7; }

.mpl-post .safe { font-size: 15px; color: var(--soft); margin: 36px 0; }
.mpl-post .safe b { color: var(--ink); }

/* CTA (쿠팡 링크) */
.mpl-post .cta { margin: 50px 0 0; }
.mpl-post .cta .q { font-size: 16.5px; font-weight: 700; margin-bottom: 18px; }
.mpl-post .cta a { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; font-size: 16px;
  text-decoration: none; padding: 15px 30px; border-radius: 999px; box-shadow: var(--shadow); transition: transform .12s ease, filter .12s ease; }
.mpl-post .cta a:hover { transform: translateY(-1px); filter: brightness(1.05); color: #fff; }
.mpl-post .cta a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 3px; }

/* 하단 고지 (제휴·건강) */
.mpl-post .fine { margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); line-height: 1.7; }
.mpl-post .fine p { margin: 7px 0; }
.mpl-post .fine b { color: var(--soft); }

@media (prefers-reduced-motion: reduce) {
  .mpl-post a { transition: none !important; }
}
