/* ===== saec.kr 글 전용 공통 스타일 (모든 단일 포스트 자동 적용) =====
   mu-plugin saec-custom.php 가 is_singular('post') 에서 enqueue.
   팔레트: --red #E8112D / --navy #0b1b3b */

body.single{
  --p-red:#E8112D; --p-red2:#b50d22; --p-navy:#0b1b3b; --p-navy2:#13294f;
  --p-ink:#222a39; --p-muted:#6b7585; --p-line:#e7ebf2; --p-soft:#f6f8fc;
  background:#f4f6fb;
}

/* 본문 컨테이너 — 읽기 좋은 폭/여백 */
body.single .entry-content.wp-block-post-content{
  max-width:760px; margin-left:auto; margin-right:auto;
  background:#fff; border:1px solid var(--p-line); border-radius:18px;
  padding:32px clamp(18px,4vw,44px) 40px;
  box-shadow:0 18px 50px -28px rgba(11,27,59,.45);
  color:var(--p-ink);
  font-size:17px; line-height:1.85; letter-spacing:-.1px;
  word-break:keep-all;
}

/* 글 제목 */
body.single .wp-block-post-title{
  max-width:760px; margin:8px auto 6px; padding:0 8px;
  font-size:clamp(24px,4.4vw,36px); font-weight:800; line-height:1.3;
  color:var(--p-navy); letter-spacing:-.5px; word-break:keep-all;
}
body.single .wp-block-post-title::after{
  content:""; display:block; width:54px; height:5px; border-radius:3px;
  margin-top:14px; background:linear-gradient(90deg,var(--p-red),var(--p-red2));
}

/* 메타(날짜/작성자/카테고리) */
body.single .wp-block-post-date,
body.single .wp-block-post-author-name,
body.single .wp-block-post-terms{
  color:var(--p-muted); font-size:13.5px;
}

/* 대표 이미지 */
body.single .wp-block-post-featured-image{
  max-width:760px; margin:18px auto 6px;
}
body.single .wp-block-post-featured-image img{
  border-radius:18px; box-shadow:0 18px 44px -22px rgba(11,27,59,.55); width:100%; height:auto;
}

/* 본문 타이포 */
body.single .entry-content p{ margin:0 0 1.15em; }
body.single .entry-content > :first-child{ margin-top:0; }

body.single .entry-content h2{
  font-size:22px; font-weight:800; color:var(--p-navy);
  margin:1.9em 0 .7em; padding:10px 0 10px 16px; line-height:1.35;
  border-left:5px solid var(--p-red); background:linear-gradient(90deg,#fff5f6,transparent 70%);
  border-radius:4px;
}
body.single .entry-content h3{
  font-size:18.5px; font-weight:800; color:var(--p-navy2);
  margin:1.5em 0 .5em; padding-left:2px;
}
body.single .entry-content h3::before{ content:"▎"; color:var(--p-red); margin-right:6px; }

body.single .entry-content strong{ color:var(--p-navy); font-weight:800; }
body.single .entry-content a{ color:var(--p-red); font-weight:700; text-decoration:none; border-bottom:1px solid #f6c9d0; }
body.single .entry-content a:hover{ border-bottom-color:var(--p-red); }

/* 목록 — 카드형 가독성 */
body.single .entry-content ul,
body.single .entry-content ol{ margin:0 0 1.2em; padding:0; list-style:none; counter-reset:saec; }
body.single .entry-content ul > li,
body.single .entry-content ol > li{
  position:relative; margin:8px 0; padding:12px 14px 12px 44px;
  background:var(--p-soft); border:1px solid var(--p-line); border-radius:12px; line-height:1.7;
}
body.single .entry-content ul > li::before{
  content:""; position:absolute; left:16px; top:1.45em; width:9px; height:9px; margin-top:-4px;
  background:var(--p-red); border-radius:50%;
}
body.single .entry-content ol{ counter-reset:saec; }
body.single .entry-content ol > li{ counter-increment:saec; }
body.single .entry-content ol > li::before{
  content:counter(saec); position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:24px; height:24px; border-radius:8px; background:linear-gradient(135deg,var(--p-navy),var(--p-navy2));
  color:#fff; font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center;
}

/* 인용/표/이미지 */
body.single .entry-content blockquote{
  margin:1.4em 0; padding:14px 18px; background:#fff8e9; border-left:4px solid #f5b400; border-radius:10px; color:#5b4a1f;
}
body.single .entry-content img{ max-width:100%; height:auto; border-radius:14px; margin:1em 0; box-shadow:0 12px 30px -18px rgba(11,27,59,.5); }
body.single .entry-content table{ width:100%; border-collapse:collapse; margin:1.2em 0; font-size:15px; }
body.single .entry-content th,
body.single .entry-content td{ border:1px solid var(--p-line); padding:10px 12px; text-align:left; }
body.single .entry-content th{ background:var(--p-navy); color:#fff; font-weight:700; }

/* 하단 관련글 그리드("더 많은 게시물") 카드화 */
body.single .wp-block-query .wp-block-post-template{
  display:grid; gap:16px; grid-template-columns:1fr; max-width:1080px; margin-inline:auto;
}
@media(min-width:600px){ body.single .wp-block-query .wp-block-post-template{ grid-template-columns:1fr 1fr; } }
@media(min-width:920px){ body.single .wp-block-query .wp-block-post-template{ grid-template-columns:1fr 1fr 1fr; } }
body.single .wp-block-query .wp-block-post{
  background:#fff; border:1px solid var(--p-line); border-radius:16px; overflow:hidden; padding:0;
  box-shadow:0 10px 26px -20px rgba(11,27,59,.45); transition:transform .15s,box-shadow .15s;
}
body.single .wp-block-query .wp-block-post:hover{ transform:translateY(-3px); box-shadow:0 18px 34px -20px rgba(11,27,59,.55); }
body.single .wp-block-query .wp-block-post-featured-image{ margin:0; }
body.single .wp-block-query .wp-block-post-featured-image img{ border-radius:0; aspect-ratio:16/10; object-fit:cover; box-shadow:none; }
body.single .wp-block-query .wp-block-post-title{ font-size:16px; margin:14px 16px 14px; padding:0; }
body.single .wp-block-query .wp-block-post-title::after{ display:none; }
