/* ── 기존 테마 CSS ── */
.site-branding { padding: 16px 24px !important; }
.site-title { font-size: 22px !important; }
.site-description { font-size: 13px !important; color: #888 !important; }

.entry-title { font-size: 16px !important; font-weight: 700 !important; line-height: 1.4 !important; }

.home .site-main { padding: 24px !important; }

.site-footer { font-size: 12px !important; color: #aaa !important; text-align: center; padding: 24px !important; }
.page-title, .entry-header { display: none !important; }
.entry-content { padding-top: 0 !important; }

.site-header {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  padding: 12px 24px !important;
}
.site-branding {
  float: right !important;
  text-align: right !important;
}

.single .post-thumbnail img {
  max-height: 400px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 auto !important;
}

/* ── 칼럼 전용 CSS ── */
:root {
  --ink: #1a1614;
  --ink-soft: #3d3330;
  --cream: #faf8f5;
  --warm-white: #fff9f4;
  --gold: #c49a3c;
  --gold-light: #e8c96e;
  --rust: #8b3a2a;
  --rule: #d9d0c7;
  --sans: 'Noto Sans KR', sans-serif;
  --serif: 'Noto Serif KR', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER HERO ── */
.hero {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(196,154,60,.04) 40px,
    rgba(196,154,60,.04) 41px
  );
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
  opacity: .6;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: #fff;
  max-width: 720px;
  margin: 0 auto 24px;
}
.hero h1 em {
  color: var(--gold-light);
  font-style: normal;
}
.hero-meta {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  letter-spacing: .05em;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-meta span { display: flex; align-items: center; gap: 5px; }

/* ── ARTICLE BODY ── */
article {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.lead {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.85;
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin-bottom: 52px;
}

h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 60px 0 20px;
  letter-spacing: -.02em;
  line-height: 1.4;
}
h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 40px 0 14px;
}

p { margin-bottom: 24px; color: var(--ink-soft); }

/* ── DIFFERENCE CARDS ── */
.diff-section {
  margin: 52px 0;
  counter-reset: diff;
}
.diff-card {
  background: var(--warm-white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold);
  padding: 36px 40px;
  margin-bottom: 24px;
  position: relative;
}
.diff-card::before {
  counter-increment: diff;
  content: "0" counter(diff);
  position: absolute;
  top: 28px; right: 36px;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--rule);
  line-height: 1;
  letter-spacing: -.03em;
}
.diff-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.diff-card h3 {
  font-size: 21px;
  margin: 0 0 16px;
  max-width: 80%;
}
.diff-card p { margin-bottom: 0; font-size: 15.5px; line-height: 1.8; }

/* ── PULL QUOTE ── */
.pullquote {
  background: var(--ink);
  color: #fff;
  padding: 48px 48px 44px;
  margin: 56px 0;
  position: relative;
  text-align: center;
}
.pullquote::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 96px;
  color: var(--gold);
  line-height: .7;
  display: block;
  margin-bottom: 8px;
  opacity: .8;
}
.pullquote blockquote {
  font-family: var(--serif);
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 400;
  line-height: 1.7;
  color: #fff;
  letter-spacing: -.01em;
  max-width: 580px;
  margin: 0 auto;
}
.pullquote blockquote em {
  color: var(--gold-light);
  font-style: normal;
}
.pullquote cite {
  display: block;
  font-size: 12px;
  letter-spacing: .15em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  margin-top: 20px;
}

/* ── HORIZONTAL RULE ── */
.rule-ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0;
}
.rule-ornament::before,
.rule-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.rule-ornament span {
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── CHECKLIST ── */
.checklist {
  background: var(--warm-white);
  border: 1px solid var(--rule);
  padding: 36px 40px;
  margin: 40px 0;
}
.checklist h4 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.checklist ul { list-style: none; }
.checklist li {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── AUTHOR BIO ── */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 56px 0;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 4px;
}
.author-info span {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.author-info p { font-size: 14px; margin: 0; line-height: 1.7; }

/* ── CTA ── */
.cta-block {
  background: var(--ink);
  color: #fff;
  padding: 56px 48px;
  text-align: center;
  margin: 56px 0 0;
}
.cta-block .cta-eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.cta-block .cta-eyebrow::before,
.cta-block .cta-eyebrow::after {
  content: ''; width: 24px; height: 1px; background: var(--gold); opacity: .6;
}
.cta-block h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -.02em;
  line-height: 1.45;
}
.cta-block p { color: rgba(255,255,255,.6); font-size: 15px; margin-bottom: 36px; }
.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 44px;
  transition: background .25s, transform .2s;
}
.cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
.cta-sub {
  font-size: 12px !important;
  color: rgba(255,255,255,.3) !important;
  margin: 18px 0 0 !important;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .diff-card { padding: 28px 24px; }
  .diff-card::before { display: none; }
  .pullquote { padding: 36px 28px; }
  .cta-block { padding: 48px 28px; }
  .author-box { flex-direction: column; }
  .checklist { padding: 28px 24px; }
}
/* 블로그 목록 페이지 중앙 정렬 */
.home .site-main,
.blog .site-main,
.archive .site-main {
  max-width: 780px !important;
  margin: 0 auto !important;
  padding: 40px 24px !important;
  float: none !important;
}

.home #primary,
.blog #primary,
.archive #primary {
  width: 100% !important;
  float: none !important;
  max-width: 780px !important;
  margin: 0 auto !important;
}

#content {
  max-width: 1100px !important;
  margin: 0 auto !important;
}
/* ── 모바일 전체 폭 fix ── */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .site-main,
  #primary,
  #content,
  .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    float: none !important;
  }

  /* Hero 텍스트 모바일 줄바꿈 fix */
  .hero {
    padding: 48px 20px 40px !important;
  }

  .hero h1 {
    font-size: 22px !important;
    line-height: 1.5 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }

  /* 본문 article 여백 */
  article {
    padding: 40px 20px 60px !important;
  }
}
/* ── 모바일 버튼 줄바꿈 방지 ── */
@media (max-width: 768px) {
  a.button,
  .wp-block-button__link,
  button,
  input[type="submit"] {
    white-space: nowrap !important;
    min-width: fit-content !important;
    padding: 14px 24px !important;
    font-size: 14px !important;
  }

  /* 체크리스트 단어 중간 잘림 방지 */
  li, .check-list li, ul li {
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  /* CTA 섹션 텍스트 정렬 */
  .cta-block,
  [class*="cta"],
  [class*="banner"] {
    padding: 32px 20px !important;
    word-break: keep-all !important;
  }

  /* 전체 텍스트 단어 단위 줄바꿈 */
  p, h1, h2, h3, h4, span, div {
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
  }
}