/* ════════════════════════════════════════════════════════════════
   재물명당 (sajurich.com) — 디자인 시스템
   컨셉: 먹빛(墨) 바탕 · 금박(金) 포인트 · 별자리/한지 질감
   신비롭고 고급스러운 정통 명리 톤
   폰트: Nanum Myeongjo / Noto Serif KR / Gowun Batang / Cormorant (오픈 라이선스)
   ════════════════════════════════════════════════════════════════ */

:root {
  /* 먹빛 계열 */
  --ink-900: #0a0908;
  --ink-850: #100d0c;
  --ink-800: #16110f;
  --ink-700: #201813;
  --ink-600: #2c211a;
  --line: rgba(201, 162, 74, 0.22);
  --line-soft: rgba(229, 214, 184, 0.10);

  /* 금박 계열 */
  --gold-1: #f4e3b0;
  --gold-2: #e6c77e;
  --gold-3: #c9a24a;
  --gold-4: #a07c30;
  --gold-grad: linear-gradient(135deg, #f6e6b4 0%, #d8ب07c 0%, #cda14d 48%, #9c7727 100%);

  /* 텍스트 */
  --text-1: #f2ead8;
  --text-2: #cabfa8;
  --text-3: #968b75;
  --text-faint: #6c6253;

  /* 강조(주사 붉은빛 — 인장) */
  --cinnabar: #b8402f;
  --cinnabar-soft: #8f3326;

  --maxw: 1140px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --serif-display: 'Nanum Myeongjo', 'Noto Serif KR', serif;
  --serif-body: 'Noto Serif KR', 'Gowun Batang', serif;
  --serif-soft: 'Gowun Batang', 'Noto Serif KR', serif;
  --latin: 'Cormorant Garamond', 'Nanum Myeongjo', serif;

  --shadow-gold: 0 10px 40px rgba(0,0,0,.5), 0 0 0 1px var(--line);
}
/* (위 gold-grad 오타 방지용 재정의) */
:root { --gold-grad: linear-gradient(135deg, #f6e6b4 0%, #e6c77e 30%, #cda14d 60%, #9c7727 100%); }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif-body);
  color: var(--text-1);
  background: var(--ink-900);
  line-height: 1.85;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  position: relative;
}

/* ── 배경: 먹빛 그라데이션 + 별자리 + 한지 그레인 ── */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(201,162,74,.10), transparent 60%),
    radial-gradient(900px 600px at 12% 108%, rgba(184,64,47,.06), transparent 55%),
    radial-gradient(circle at 50% 40%, #14100d 0%, #0b0908 70%, #070605 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 22%, rgba(244,227,176,.55), transparent),
    radial-gradient(1px 1px at 64% 14%, rgba(244,227,176,.40), transparent),
    radial-gradient(1.6px 1.6px at 82% 38%, rgba(244,227,176,.45), transparent),
    radial-gradient(1px 1px at 34% 58%, rgba(244,227,176,.32), transparent),
    radial-gradient(1.2px 1.2px at 8% 76%, rgba(244,227,176,.35), transparent),
    radial-gradient(1px 1px at 92% 72%, rgba(244,227,176,.30), transparent),
    radial-gradient(1.3px 1.3px at 50% 88%, rgba(244,227,176,.30), transparent);
  background-repeat: no-repeat;
  animation: twinkle 7s ease-in-out infinite;
}
@keyframes twinkle { 0%,100%{opacity:.42} 50%{opacity:.62} }

::selection { background: rgba(201,162,74,.3); color: #fff; }

a { color: var(--gold-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-1); }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── 금박 텍스트 ── */
.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── 타이포 ── */
h1,h2,h3,h4 { font-family: var(--serif-display); font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; color: var(--text-1); }
.kicker {
  font-family: var(--latin); font-style: italic; font-size: 1.05rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3);
  display: inline-block; margin-bottom: 14px;
}
.hanja-accent { font-family: var(--serif-display); color: var(--gold-3); opacity: .85; }

/* ── 인장(印) 엠블럼 ── */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 10px;
  background: linear-gradient(145deg, var(--cinnabar), var(--cinnabar-soft));
  color: #f4e3b0; font-family: var(--serif-display); font-weight: 800; font-size: 26px;
  box-shadow: 0 4px 18px rgba(184,64,47,.4), inset 0 1px 0 rgba(255,255,255,.15);
  border: 1px solid rgba(244,227,176,.25);
}

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--serif-display); font-weight: 800; font-size: 1.05rem;
  padding: 16px 30px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  text-align: center; letter-spacing: -0.015em; line-height: 1.15;
  -webkit-tap-highlight-color: transparent;
  position: relative; isolation: isolate; overflow: hidden;
}
.btn-primary {
  color: #2a1604;
  background:
    linear-gradient(180deg, rgba(255,255,255,.48), rgba(255,255,255,0) 33%),
    linear-gradient(135deg, #f9e2a0 0%, #e0b95f 34%, #be8c2d 68%, #825819 100%);
  border-color: rgba(255,241,193,.85);
  box-shadow:
    0 18px 44px rgba(201,162,74,.34),
    0 4px 12px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.82),
    inset 0 -1px 0 rgba(86,58,18,.52);
  text-shadow: 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary,
.btn-primary:visited,
.btn-primary span {
  color: #2a1604 !important;
  font-weight: 900;
}
.btn-primary .arrow { opacity: .92; }
.btn-primary::before {
  content:""; position:absolute; inset:2px; border-radius:inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.28), transparent 52%);
  pointer-events:none; z-index:-1;
}
.btn-primary::after {
  content:""; position:absolute; top:-18%; left:-130%; width:64%; height:136%;
  background: linear-gradient(100deg, transparent 8%, rgba(255,255,255,.70) 48%, transparent 86%);
  transform: skewX(-18deg); transition: none; pointer-events:none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 22px 54px rgba(201,162,74,.42),
    0 8px 18px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.82),
    inset 0 -1px 0 rgba(86,58,18,.45);
  color:#2a1604;
}
.btn-primary:hover::after { animation: sheen 0.9s ease; }
.btn-primary:active { transform: translateY(-1px) scale(.99); }
.btn:disabled { opacity:.68; cursor:not-allowed; transform:none !important; filter:saturate(.75); }
@keyframes sheen { to { left: 150%; } }
.btn-ghost {
  color: var(--gold-2); background: rgba(255,255,255,.018); border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.btn-ghost:hover { border-color: var(--gold-3); background: rgba(201,162,74,.07); box-shadow: 0 10px 28px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-lg { padding: 20px 42px; font-size: 1.18rem; min-height: 60px; }
.btn span { display:block; }
.btn-block { width: 100%; }
#pay-btn { min-height: 66px; font-size: clamp(1.08rem, 2.6vw, 1.24rem); box-shadow: 0 20px 58px rgba(201,162,74,.38), 0 8px 18px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.78); }
#pay-btn span { white-space: nowrap; }
.micro-trust { text-align:center; color:var(--text-3); font-size:.86rem; margin-top:10px; font-family: var(--serif-soft); line-height:1.6; }

/* ── 헤더 ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(10,9,8,.72); border-bottom: 1px solid var(--line-soft);
  transition: background .3s;
}
.site-header.scrolled { background: rgba(10,9,8,.92); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .seal { width: 40px; height: 40px; font-size: 20px; border-radius: 8px; }
.brand-name { font-family: var(--serif-display); font-weight: 800; font-size: 1.35rem; color: var(--text-1); letter-spacing: .02em; }
.brand-name .sub { display:block; font-family: var(--latin); font-style: italic; font-size:.7rem; letter-spacing:.22em; color: var(--gold-3); text-transform: uppercase; margin-top: -2px; }
.primary-nav { display: flex; gap: 28px; align-items: center; }
.primary-nav a { color: var(--text-2); font-family: var(--serif-display); font-size: 1rem; font-weight: 700; transition: color .2s; }
.primary-nav a:hover { color: var(--gold-2); }
.nav-cta { padding: 10px 22px; font-size: 1rem; font-weight: 900; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 40px; color: var(--gold-2); font-size: 20px; cursor: pointer; }
#mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 10px 24px 18px; background: rgba(10,9,8,.97); border-bottom: 1px solid var(--line); }
#mobile-menu.open { display: flex; }
#mobile-menu a { color: var(--text-1); font-family: var(--serif-display); font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }

/* ── 히어로 ── */
.hero { position: relative; padding: 90px 0 70px; text-align: center; overflow: hidden; }
.hero-emblem {
  width: 120px; height: 120px; margin: 0 auto 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif-display); font-size: 56px; font-weight: 800;
  color: var(--gold-2);
  background: radial-gradient(circle at 50% 35%, rgba(201,162,74,.18), rgba(10,9,8,0) 70%);
  border: 1px solid var(--line);
  position: relative;
  animation: emblemIn 1.1s cubic-bezier(.2,.8,.2,1) both;
}
.hero-emblem::before, .hero-emblem::after {
  content:""; position:absolute; inset:-1px; border-radius:50%;
  border: 1px solid rgba(201,162,74,.25);
}
.hero-emblem::after { inset: 8px; border-style: dashed; opacity:.4; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes emblemIn { from { opacity:0; transform: scale(.7) translateY(20px); } to { opacity:1; transform:none; } }

.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.22; margin-bottom: 22px; animation: riseIn .9s ease .15s both; }
.hero-title { display:inline-block; }
.hero-line { display:block; word-break: keep-all; }
.hero h1 .gold { display: block; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text-2); max-width: 860px; margin: 0 auto 16px; font-family: var(--serif-soft); animation: riseIn .9s ease .3s both; line-height: 1.82; word-break: keep-all; }
.hero-sub-structured .sub-line { display:block; }
.receive-title, .order-title { display:inline-block; }
.receive-line, .order-line, .desc-line { display:block; word-break: keep-all; }
.receive-highlight { white-space: nowrap; }
.order-highlight { white-space: nowrap; }
.order-title .order-line + .order-line { margin-top: 2px; }
.section-desc-structured { line-height: 1.8; }
.hero-meta { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; color: var(--text-3); font-size: .98rem; margin-bottom: 36px; animation: riseIn .9s ease .42s both; }
.hero-meta span { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.035); border: 1px solid var(--line-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; animation: riseIn .9s ease .55s both; }
@keyframes riseIn { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform:none; } }
.hero-price-tag { margin-top: 26px; color: var(--text-3); font-size: 1rem; animation: riseIn .9s ease .7s both; }
.hero-price-tag s { color: var(--text-faint); }
.hero-price-tag strong { color: var(--gold-1); font-size: 1.3rem; font-family: var(--serif-display); }

/* 금색 구분선 */
.gold-divider { width: 100%; max-width: 220px; height: 1px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--gold-3), transparent); position: relative; }
.gold-divider::after { content:"❖"; position:absolute; top:-12px; left:50%; transform:translateX(-50%); color: var(--gold-3); font-size: 14px; background: var(--ink-900); padding: 0 10px; }

/* ── 섹션 공통 ── */
section { position: relative; }
.section-pad { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 14px; line-height: 1.42; letter-spacing: -0.02em; }
.section-head p { color: var(--text-2); max-width: 760px; margin: 0 auto; font-family: var(--serif-soft); word-break: keep-all; }

/* ── 카드 그리드 (무엇을 받나) ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: linear-gradient(160deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 32px 26px; transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.feature-card::before { content:""; position:absolute; top:0; left:0; right:0; height:2px; background: var(--gold-grad); opacity:0; transition: opacity .3s; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow-gold); }
.feature-card:hover::before { opacity: 1; }
.feature-num { font-family: var(--latin); font-size: 2.4rem; font-style: italic; color: var(--gold-3); opacity: .55; line-height: 1; }
.feature-card h3 { font-size: 1.25rem; margin: 12px 0 10px; color: var(--gold-1); }
.feature-card p { color: var(--text-2); font-size: .98rem; font-family: var(--serif-soft); }

/* ── 강조 패널 ── */
.panel {
  background: linear-gradient(155deg, var(--ink-700), var(--ink-850));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 46px; position: relative; overflow: hidden;
}
.panel::after { content: "財"; position: absolute; right: -10px; bottom: -30px; font-family: var(--serif-display); font-size: 220px; color: rgba(201,162,74,.045); font-weight: 800; pointer-events: none; }

/* 리스트 체크 */
.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-1); font-family: var(--serif-soft); line-height: 1.8; }
.check-list .check-text { display:block; min-width:0; flex:1; word-break: keep-all; overflow-wrap: normal; text-align:left; }
.hook-list { gap: 16px; }
.hook-list li { font-size: 1rem; line-height: 1.72; }
.check-list-reading li { font-size: clamp(.95rem, 1.8vw, 1.06rem); }
.check-list li::before { content:"✦"; color: var(--gold-3); flex: 0 0 auto; margin-top: 2px; }
.check-list li strong { color: var(--gold-1); font-weight: 800; }

/* ── 가격/주문 ── */
.order-section { padding: 80px 0; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.price-box {
  background: linear-gradient(165deg, var(--ink-700), var(--ink-850));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; text-align: center;
  position: relative;
}
.price-badge { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background: var(--gold-grad); color:#1a130a; font-family:var(--serif-display); font-weight:800; font-size:.85rem; padding:5px 18px; border-radius:999px; letter-spacing:.04em; white-space:nowrap; }
.price-amount { font-family: var(--serif-display); font-weight: 800; margin: 18px 0 6px; }
.price-amount .num { font-size: 3.6rem; color: var(--gold-1); line-height: 1; }
.price-amount .won { font-size: 1.4rem; color: var(--gold-2); }
.price-was { color: var(--text-faint); text-decoration: line-through; font-size: 1.1rem; }
.price-note { color: var(--text-3); font-size: .92rem; margin-top: 14px; line-height: 1.7; word-break: keep-all; }

/* 폼 */
.order-form { background: linear-gradient(165deg, var(--ink-800), var(--ink-850)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-family: var(--serif-display); font-weight: 700; font-size: .98rem; color: var(--gold-2); margin-bottom: 8px; }
.field input[type=text], .field input[type=number], .field input[type=email], .field input[type=tel], .field select {
  width: 100%; padding: 13px 14px; border-radius: var(--r-sm);
  background: var(--ink-900); border: 1px solid var(--line-soft); color: var(--text-1);
  font-family: var(--serif-body); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-3); box-shadow: 0 0 0 3px rgba(201,162,74,.14); }
.field input::placeholder { color: var(--text-faint); }
.field-row { display: grid; gap: 10px; }
.field-row.cols-3 { grid-template-columns: 1.1fr 1fr 1fr; }
.field-row.cols-2 { grid-template-columns: 1fr 1fr; }
.radio-group { display: flex; gap: 10px; }
.radio { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:12px; border:1px solid var(--line-soft); border-radius:var(--r-sm); cursor:pointer; background: var(--ink-900); transition: all .2s; font-family: var(--serif-display); font-weight:700; }
.radio:hover { border-color: var(--line); }
.radio input { accent-color: var(--gold-3); }
.radio:has(input:checked) { border-color: var(--gold-3); background: rgba(201,162,74,.08); color: var(--gold-1); }
.check-inline { display:flex; align-items:flex-start; gap:10px; color: var(--text-2); font-size:.92rem; font-family: var(--serif-soft); }
.check-inline input { accent-color: var(--gold-3); margin-top: 4px; flex:0 0 auto; }
.hint { color: var(--text-faint); font-size: .85rem; margin-top: 6px; }
.pm-logos { display:flex; justify-content:center; flex-wrap:nowrap; gap:6px; margin-top:14px; }
.pm-logos span { font-size:11px; color:var(--text-3); padding:4px 10px; background:var(--ink-900); border:1px solid var(--line-soft); border-radius:3px; white-space:nowrap; }

/* 알림 박스 */
.alert-box { background: rgba(184,64,47,.12); border: 1px solid var(--cinnabar); color: #f0c9c2; padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: .95rem; }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line-soft); border-radius: var(--r-md); margin-bottom: 12px; background: var(--ink-850); overflow: hidden; }
.faq details[open] { border-color: var(--line); }
.faq summary { cursor: pointer; padding: 20px 24px; font-family: var(--serif-display); font-weight: 700; color: var(--text-1); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--gold-3); font-size: 1.2rem; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-2); font-family: var(--serif-soft); }

/* ── 카운트다운 ── */
.countdown { display:flex; gap:10px; justify-content:center; margin: 22px 0 6px; }
.cd-unit { background: var(--ink-900); border:1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; min-width: 64px; text-align:center; }
.cd-unit .n { font-family: var(--latin); font-size: 1.8rem; color: var(--gold-1); line-height:1; }
.cd-unit .l { font-size: .7rem; color: var(--text-3); letter-spacing:.1em; text-transform:uppercase; }

/* ── 후기 ── */
.quote-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.quote { background: var(--ink-850); border:1px solid var(--line-soft); border-radius: var(--r-md); padding: 26px; font-family: var(--serif-soft); }
.quote .stars { color: var(--gold-3); margin-bottom: 10px; letter-spacing: 2px; }
.quote p { color: var(--text-1); font-size: .98rem; margin-bottom: 14px; }
.quote .who { color: var(--text-3); font-size: .88rem; }

/* ── 푸터 ── */
.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; margin-top: 40px; background: var(--ink-850); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-3); font-size: .92rem; font-family: var(--serif-soft); max-width: 320px; }
.footer-col h4 { font-size: 1rem; color: var(--gold-2); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--text-3); font-size: .92rem; }
.footer-col a:hover { color: var(--gold-2); }
.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
  color: var(--text-faint);
  font-size: .78rem;
  line-height: 1.75;
}
.biz-info {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 0;
  align-items: center;
  color: rgba(213,203,181,.62);
}
.biz-info span {
  display: inline-flex;
  align-items: baseline;
  position: relative;
  padding-right: 13px;
  margin-right: 12px;
  word-break: keep-all;
}
.biz-info span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: .45em;
  width: 1px;
  height: .85em;
  background: rgba(201,162,74,.22);
}
.biz-info strong {
  color: rgba(226,211,170,.82);
  font-weight: 800;
  margin-right: 5px;
  white-space: nowrap;
}
.footer-disclaimer {
  margin-top: 10px;
  color: var(--text-faint);
  font-size: .74rem;
  line-height: 1.65;
}
.result-footer { padding: 2rem 1rem; text-align: left; border-top: 1px solid #2f2838; margin-top: 3rem; }

/* ── SEO 글(article) 페이지 ── */
.article-main { padding: 50px 0 30px; }
.breadcrumb { font-size: .85rem; color: var(--text-faint); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-3); }
.article-head { max-width: 800px; margin: 0 auto 34px; text-align: center; }
.article-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.32; margin-bottom: 16px; }
.article-body { max-width: 800px; margin: 0 auto; }
.article-body .lead { font-size: 1.18rem; color: var(--text-1); font-family: var(--serif-soft); margin-bottom: 30px; padding-left: 18px; border-left: 2px solid var(--gold-3); }
.article-section { margin-bottom: 30px; }
.article-section h2 { font-size: 1.5rem; color: var(--gold-1); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.article-section p { color: var(--text-2); margin-bottom: 12px; }
.article-section strong { color: var(--gold-2); font-weight: 700; }
.article-table { width:100%; border-collapse: collapse; overflow:hidden; border-radius: var(--r-md); background: var(--ink-850); border: 1px solid var(--line-soft); margin: 8px 0 6px; }
.article-table th, .article-table td { border-bottom: 1px solid var(--line-soft); padding: 15px 16px; vertical-align: top; font-family: var(--serif-soft); line-height: 1.75; }
.article-table tr:last-child th, .article-table tr:last-child td { border-bottom: 0; }
.article-table th { width: 28%; color: var(--gold-2); font-family: var(--serif-display); font-weight: 800; background: rgba(201,162,74,.045); }
.article-table td { color: var(--text-2); }

.article-section ul { list-style: none; display: grid; gap: 8px; margin: 8px 0; }
.article-section ul li { color: var(--text-2); padding-left: 18px; position: relative; }
.article-section ul li::before { content:"·"; color: var(--gold-3); position:absolute; left: 4px; font-weight: 800; }
.cta-inline { background: linear-gradient(155deg, var(--ink-700), var(--ink-850)); border:1px solid var(--line); border-radius: var(--r-lg); padding: 32px; text-align:center; margin: 40px 0; }
.cta-inline h3 { color: var(--gold-1); font-size: 1.35rem; margin-bottom: 10px; }
.cta-inline p { color: var(--text-2); margin-bottom: 18px; font-family: var(--serif-soft); }
.related { margin-top: 44px; }
.related h3 { text-align:center; font-size: 1.2rem; color: var(--text-1); margin-bottom: 20px; }
.related-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.related-card { display:block; background: var(--ink-850); border:1px solid var(--line-soft); border-radius: var(--r-md); padding: 20px; transition: all .25s; }
.related-card:hover { border-color: var(--line); transform: translateY(-3px); }
.related-card .t { font-size: .72rem; color: var(--gold-3); letter-spacing: .1em; text-transform: uppercase; }
.related-card h4 { font-size: 1.05rem; color: var(--text-1); margin: 6px 0 8px; }
.related-card p { color: var(--text-3); font-size: .88rem; font-family: var(--serif-soft); }

/* ── 스크롤 리빌 ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── 스킵 링크 ── */
.skip-link { position:absolute; left:-9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 999; background: var(--gold-2); color:#1a130a; padding: 8px 14px; border-radius: 6px; }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .feature-grid, .quote-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 28px, 1180px); }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items:center; justify-content:center; }
  .feature-grid, .quote-grid, .related-grid, .footer-top { grid-template-columns: 1fr; }
  .section-pad, .order-section { padding: 56px 0; }
  .panel { padding: 28px 20px; }
  .price-box, .order-form { padding: 26px 18px; }
  .field-row.cols-3, .field-row.cols-2 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 46px; }
  .hero-emblem { width: 96px; height: 96px; margin-bottom: 22px; font-size: 46px; }
  .hero h1 { font-size: clamp(1.9rem, 8.2vw, 2.5rem); line-height: 1.34; margin-bottom: 18px; letter-spacing: -0.035em; }
  .hero-title { max-width: 12.2em; margin: 0 auto; }
  .hero-line { white-space: nowrap; }
  .hero-sub { font-size: 1rem; line-height: 1.8; margin-bottom: 16px; max-width: 23em; }
  .hero-sub-structured .sub-line + .sub-line { margin-top: 2px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { min-height: 56px; padding: 17px 20px; font-size: 1.02rem; }
  #pay-btn { min-height: 58px; font-size: 1.08rem; }
  #pay-btn span { white-space: normal; line-height: 1.25; }
  .micro-trust { font-size: .82rem; }
  .pm-logos { gap: 5px; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
  .pm-logos span { flex: 0 0 auto; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { line-height: 1.4; letter-spacing: -0.03em; }
  .receive-title { max-width: 10.5em; margin: 0 auto; }
  .order-title { max-width: 9.8em; margin: 0 auto; }
  .receive-line, .order-line { display:block; white-space: nowrap; }
  .receive-line:first-child, .order-line:first-child { margin-bottom: 2px; }
  .order-title .order-line:nth-child(2) { letter-spacing: -0.03em; }
  .section-desc-structured { max-width: 22em; margin-left: auto; margin-right: auto; }
  .desc-line { display:block; }
  .panel h2 { line-height: 1.45; }
  .check-list { gap: 16px; }
  .check-list li { gap: 10px; font-size: .92rem; line-height: 1.72; word-break: normal; }
  .check-list-reading li { font-size: .92rem; }
  .hook-list { gap: 14px; }
  .hook-list .check-text { word-break: keep-all; overflow-wrap: normal; }
.check-list li strong { color: var(--gold-1); font-weight: 800; }
  .footer-legal { font-size: .72rem; line-height: 1.7; word-break: keep-all; }
  .biz-info { display: grid; grid-template-columns: 1fr; gap: 5px; }
  .biz-info span { display: block; padding-right: 0; margin-right: 0; }
  .biz-info span:not(:last-child)::after { display: none; }
  .biz-info strong { display: inline-block; min-width: 72px; margin-right: 6px; }
  .footer-disclaimer { margin-top: 9px; font-size: .7rem; line-height: 1.65; }
  .result-footer { padding: 1.6rem 0; }
}

/* 인쇄(리포트) 시 사이트 UI 숨김은 success.html 자체 스타일이 처리 */
@media print { .site-header, .site-footer, .floating-jaemul { display: none !important; } }

@media (max-width: 520px) {
  .article-table, .article-table tbody, .article-table tr, .article-table th, .article-table td { display:block; width:100%; }
  .article-table th { border-bottom:0; padding-bottom:6px; }
  .article-table td { padding-top:4px; }
  .article-head h1 { word-break: keep-all; }
}


/* SEO 확장 글 목록 */
.article-cluster { margin: 42px auto 0; max-width: 1080px; }
.article-cluster:first-of-type { margin-top: 0; }
.article-cluster-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:18px; padding-bottom:12px; border-bottom:1px solid var(--line-soft); }
.article-cluster-head h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); color: var(--gold-1); margin: 0; }
.article-cluster-head p { color: var(--text-3); font-family: var(--serif-soft); font-size:.94rem; margin:0; }
.keyword-note { margin: 14px 0 24px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: rgba(255,255,255,.025); color: var(--text-3); font-size:.92rem; line-height:1.75; font-family: var(--serif-soft); }
.article-keywords { display:flex; flex-wrap:wrap; gap:7px; margin: 18px 0 0; }
.article-keywords span { font-size:.78rem; color:var(--text-3); border:1px solid var(--line-soft); border-radius:999px; padding:4px 9px; background:rgba(255,255,255,.025); }
@media (max-width: 640px) {
  .article-cluster-head { display:block; }
  .article-cluster-head p { margin-top:6px; font-size:.86rem; }
  .keyword-note { font-size:.86rem; padding: 14px; }
}


/* ── SEO 키워드 탐색 ── */
.seo-keyword-nav { max-width:1080px; margin: 0 auto 48px; padding: 28px; border:1px solid var(--line-soft); border-radius: var(--r-lg); background: linear-gradient(155deg, var(--ink-800), var(--ink-850)); }
.seo-keyword-nav h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--gold-1); margin-bottom: 18px; text-align:center; }
.seo-keyword-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.seo-keyword-grid a { display:flex; align-items:center; justify-content:center; min-height:44px; padding: 10px 12px; border:1px solid var(--line-soft); border-radius: 999px; color: var(--text-2); background: rgba(255,255,255,.025); font-family: var(--serif-soft); font-size: .94rem; text-align:center; line-height:1.35; transition: border-color .2s, color .2s, background .2s; }
.seo-keyword-grid a:hover { color: var(--gold-1); border-color: var(--gold-3); background: rgba(201,162,74,.08); }
.seo-keyword-grid-home { max-width:1080px; margin: 0 auto; }
.footer-legal-grid { display:flex; flex-wrap:wrap; gap: 6px 14px; align-items:center; }
.footer-legal-grid span { color: var(--text-faint); }
.footer-legal-grid b { color: var(--text-3); font-weight:700; }
.footer-disclaimer { margin-top:10px; color: var(--text-faint); }
@media (max-width: 820px) { .seo-keyword-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .seo-keyword-nav { padding: 22px 16px; margin-bottom: 34px; } .seo-keyword-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .seo-keyword-grid a { min-height:40px; padding: 9px 8px; font-size:.86rem; } .footer-legal-grid { display:grid; grid-template-columns:1fr; gap:4px; } .footer-legal-grid .address { line-height:1.55; } }

/* =====================================================================
 * saju82 재물운 리포트 형식 호환 토큰
 * 결제 후 출력되는 리포트는 saju82 재물 리포트와 같은 A4/한지 스타일을 사용
 * ===================================================================== */
:root {
  --bg-0: var(--ink-900, #0c0a0d);
  --bg-1: var(--ink-850, #15121a);
  --bg-2: var(--ink-800, #1f1a26);
  --bg-3: var(--ink-700, #29212e);
  --paper: #f5eddc;
  --paper-dim: #e8dcc2;
  --gold: var(--gold-3, #d4a857);
  --gold-bright: var(--gold-1, #f0d089);
  --gold-deep: var(--gold-4, #9b7a36);
  --cinnabar-light: #c74b36;
  --font-display: var(--serif-display, 'Nanum Myeongjo', 'Noto Serif KR', serif);
  --font-body: var(--serif-body, 'Noto Serif KR', 'Gowun Batang', serif);
  --font-accent: var(--serif-soft, 'Gowun Batang', 'Nanum Myeongjo', serif);
  --font-latin: var(--latin, 'Cormorant Garamond', 'Times New Roman', serif);
  --ease-out: cubic-bezier(.16,.84,.3,1);
}

/* =====================================================================
 * 사주 리포트 본문 (크림 종이 위의 전통 리포트)
 * ===================================================================== */

.rp-report {
  max-width: 920px;
  margin: 2rem auto;
  background: var(--paper);
  color: #2a251a;
  padding: 0;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  font-family: var(--font-body);
  line-height: 1.7;
}

/* 표지 */
.rp-cover {
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  background:
    radial-gradient(circle at top, rgba(138,111,52,0.06), transparent 60%),
    radial-gradient(circle at bottom, rgba(168,50,30,0.04), transparent 60%);
  border-bottom: 4px double #8a6f34;
  page-break-after: always;
}
.rp-cover::before {
  content: '命';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 400px; font-weight: 800;
  color: #8a6f34; opacity: 0.04;
  pointer-events: none;
}
.rp-cover-inner {
  position: relative;
  z-index: 1;
}
.rp-cover-brand {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: 0.2em;
  font-size: 16px;
  color: #a8321e;
  margin-bottom: 2rem;
}
.rp-cover-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: #2a251a;
  margin: 0.5rem 0;
  line-height: 1.3;
}
.rp-cover-subtitle {
  font-family: var(--font-latin);
  font-style: italic;
  letter-spacing: 0.25em;
  font-size: 14px;
  color: #8a6f34;
  margin: 0;
}
.rp-cover-divider {
  color: #a8321e;
  margin: 2rem 0;
  letter-spacing: 1em;
}
.rp-cover-meta p {
  font-size: 15.5px;
  color: #2a251a;
  margin: 0.4rem 0;
}
.rp-cover-meta strong {
  color: #a8321e;
  font-size: 18px;
}
.rp-cover-hanja {
  font-family: var(--font-display);
  color: #8a6f34 !important;
  letter-spacing: 0.1em;
  font-size: 14px !important;
  margin-top: 1rem !important;
}
.rp-cover-sig {
  margin: 2.5rem 0 1.5rem;
}
.rp-cover-sig p {
  font-size: 13px;
  color: #6f5a30;
  font-style: italic;
  margin: 0.2rem 0;
}
.rp-cover-date {
  font-family: var(--font-latin);
  font-style: italic;
  color: #8a6f34;
  font-size: 13px;
  margin-top: 1rem;
}

/* 목차 */
.rp-toc {
  padding: clamp(2rem, 4vw, 3rem);
  page-break-after: always;
}
.rp-toc-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: #a8321e;
  text-align: center;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #8a6f34;
}
.rp-toc-list {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: toc;
  columns: 1;
}
.rp-toc-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dotted #c4b08a;
  font-size: 14px;
  color: #3a3320;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.rp-toc-num {
  color: #a8321e;
  font-weight: 700;
  font-family: var(--font-latin);
  flex-shrink: 0;
}
.rp-toc-p {
  margin-left: auto;
  color: #8a6f34;
  font-size: 12px;
  font-style: italic;
}

/* 각 페이지 공통 */
.rp-page {
  padding: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid #c4b08a;
  page-break-inside: avoid;
  page-break-after: always;
}
.rp-page:last-of-type { page-break-after: auto; }
.rp-page-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #8a6f34;
  margin-bottom: 1.5rem;
  position: relative;
}
.rp-page-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: #a8321e;
  font-weight: 800;
  width: 56px;
  text-align: center;
  border-right: 1px solid #c4b08a;
  padding-right: 1rem;
  flex-shrink: 0;
}
.rp-page-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #2a251a;
  margin: 0;
  line-height: 1.3;
}
.rp-page-en {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #8a6f34;
}
.rp-page-no {
  margin-left: auto;
  font-family: var(--font-latin);
  font-style: italic;
  color: #8a6f34;
  font-size: 13px;
  flex-shrink: 0;
}

/* 본문 요소 */
.rp-h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: #a8321e;
  margin: 1.5rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dotted #c4b08a;
}
.rp-lead {
  font-size: 15.5px;
  line-height: 1.85;
  color: #2a251a;
}
.rp-lead strong { color: #a8321e; font-weight: 700; }
.rp-lead-quote {
  font-family: var(--font-display);
  font-size: 18px;
  color: #a8321e;
  font-style: italic;
  border-left: 3px solid #a8321e;
  padding-left: 1rem;
  margin: 1rem 0;
}
.rp-text {
  font-size: 14.5px;
  line-height: 1.9;
  color: #3a3320;
  margin: 0.8rem 0;
}
.rp-text strong {
  color: #a8321e;
  font-weight: 700;
}
.rp-note {
  font-size: 12.5px;
  color: #6f5a30;
  font-style: italic;
  margin: 1rem 0;
}
.rp-bullets {
  list-style: none;
  padding: 0; margin: 1rem 0;
}
.rp-bullets li {
  padding: 0.5rem 0 0.5rem 1.2rem;
  position: relative;
  font-size: 14px;
  color: #3a3320;
  line-height: 1.75;
  border-bottom: 1px dotted #d6c8a8;
}
.rp-bullets li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: #a8321e;
  font-size: 10px;
}
.rp-bullets li strong { color: #a8321e; }

/* 4주 팔자 */
.rp-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 1.5rem 0;
}
.rp-pillar {
  border: 1px solid #8a6f34;
  padding: 14px 8px;
  text-align: center;
  background: rgba(201,169,97,0.06);
  border-radius: 2px;
}
.rp-pillar-label {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #8a6f34;
}
.rp-pillar-label span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 11px;
  color: #6f5a30;
}
.rp-pillar-stem {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  color: #a8321e;
  margin: 8px 0 4px;
  line-height: 1;
}
.rp-pillar-branch {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: #2a251a;
  margin: 0;
  line-height: 1;
}
.rp-pillar-ko { font-size: 11px; color: #6f5a30; margin-top: 6px; }
.rp-pillar-elem {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid #c4b08a;
  border-radius: 999px;
  font-size: 10px;
  color: #6f5a30;
}
.rp-pillar-role {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 10px;
  color: #8a6f34;
  margin-top: 6px;
}
@media (max-width: 640px) {
  .rp-pillars { gap: 4px; }
  .rp-pillar { padding: 10px 4px; }
  .rp-pillar-stem { font-size: 28px; }
  .rp-pillar-branch { font-size: 24px; }
}

/* 그리드 · 카드 */
.rp-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 1rem 0;
}
.rp-grid-2-lg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}
.rp-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 1rem 0;
}
.rp-card {
  background: rgba(138,111,52,0.08);
  padding: 10px 12px;
  border-left: 3px solid #a8321e;
  border-radius: 0 2px 2px 0;
}
.rp-card h4 {
  font-family: var(--font-display);
  font-size: 12px;
  color: #a8321e;
  margin: 0 0 4px;
  font-weight: 800;
}
.rp-card p { margin: 0; font-size: 13px; color: #3a3320; }
.rp-card-lg {
  background: rgba(138,111,52,0.08);
  padding: 1.2rem;
  border-left: 4px solid #a8321e;
  border-radius: 0 2px 2px 0;
}
.rp-card-lg h4 {
  font-family: var(--font-display);
  font-size: 14px;
  color: #a8321e;
  margin: 0 0 0.5rem;
  font-weight: 800;
}
.rp-card-lg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #3a3320;
}
.rp-card-lg small {
  display: block;
  font-size: 11px;
  color: #8a6f34;
  font-style: italic;
  margin-top: 6px;
}
.rp-attr {
  background: rgba(138,111,52,0.08);
  padding: 10px 12px;
  border-top: 2px solid #c4b08a;
  text-align: center;
}
.rp-attr-label {
  display: block;
  font-size: 11px;
  color: #8a6f34;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.rp-attr strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: #2a251a;
  font-weight: 800;
}

/* 오행 바 */
.rp-elems {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1rem 0;
}
.rp-elem-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.rp-elem-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #3a3320;
  font-size: 15px;
  text-align: center;
  line-height: 1.2;
}
.rp-elem-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: normal;
  font-size: 10px;
  color: #8a6f34;
  margin-top: 2px;
}
.rp-elem-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rp-elem-bar {
  height: 10px;
  background: rgba(138,111,52,0.15);
  border-radius: 5px;
  overflow: hidden;
}
.rp-elem-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.rp-elem-row[data-elem="목"] .rp-elem-fill { background: linear-gradient(90deg, #4a8a5e, #6bab7d); }
.rp-elem-row[data-elem="화"] .rp-elem-fill { background: linear-gradient(90deg, #c9502e, #e8754f); }
.rp-elem-row[data-elem="토"] .rp-elem-fill { background: linear-gradient(90deg, #a88250, #c49966); }
.rp-elem-row[data-elem="금"] .rp-elem-fill { background: linear-gradient(90deg, #c9a961, #e4c876); }
.rp-elem-row[data-elem="수"] .rp-elem-fill { background: linear-gradient(90deg, #3a6b8a, #548bb2); }
.rp-elem-val {
  font-size: 12px;
  color: #6f5a30;
  font-family: var(--font-latin);
  font-style: italic;
}

/* 음양 */
.rp-yy-bar {
  display: flex;
  height: 44px;
  border: 1px solid #8a6f34;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}
.rp-yy-yang {
  background: linear-gradient(90deg, #e4c876, #c9a961);
  color: #2a251a;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.rp-yy-yin {
  background: linear-gradient(90deg, #3a3550, #1c1928);
  color: var(--paper);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

/* 신강 통계 */
.rp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1rem 0;
}
.rp-stats > div {
  background: rgba(138,111,52,0.08);
  padding: 1rem;
  text-align: center;
  border-top: 3px solid #c4b08a;
  border-radius: 0 0 3px 3px;
}
.rp-stats span {
  display: block;
  font-size: 11px;
  color: #8a6f34;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.rp-stats strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: #2a251a;
  font-weight: 800;
}
.rp-stat-result { border-top-color: #a8321e !important; }
.rp-stat-result strong { color: #a8321e; }

/* 콜아웃 */
.rp-callout {
  background: rgba(168,50,30,0.08);
  border: 1px dashed #a8321e;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 13.5px;
  color: #3a3320;
  line-height: 1.8;
  border-radius: 3px;
}
.rp-callout strong { color: #a8321e; }

/* 용신 카드 */
.rp-yong-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}
.rp-yong-card {
  background: rgba(201,169,97,0.1);
  border: 1px solid #c4b08a;
  padding: 1rem 1.2rem;
  border-radius: 3px;
}
.rp-yong-card header {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #c4b08a;
}
.rp-yong-rank {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  color: #8a6f34;
  letter-spacing: 0.1em;
}
.rp-yong-card header strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: #a8321e;
  font-weight: 800;
  margin-left: auto;
}
.rp-yong-card p {
  font-size: 12.5px;
  color: #3a3320;
  margin: 0.2rem 0;
}

/* 대운 카드 */
.rp-daeun-card {
  background: rgba(138,111,52,0.08);
  border: 1px solid #c4b08a;
  border-left: 4px solid #a8321e;
  padding: 1.2rem 1.4rem;
  margin: 1rem 0;
  border-radius: 0 3px 3px 0;
}
.rp-daeun-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #c4b08a;
}
.rp-daeun-card header h4 {
  font-family: var(--font-display);
  font-size: 15px;
  color: #a8321e;
  margin: 0;
  font-weight: 800;
}
.rp-daeun-han {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #2a251a;
  line-height: 1;
}
.rp-daeun-card p {
  margin: 0.3rem 0;
  font-size: 13.5px;
  color: #3a3320;
}
.rp-daeun-card p strong { color: #a8321e; }
.rp-daeun-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: #3a3320;
  margin-top: 0.6rem !important;
}

/* 테이블 */
.rp-table-wrap { overflow-x: auto; margin: 1rem 0; }
.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.rp-table th {
  background: rgba(138,111,52,0.15);
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-display);
  color: #2a251a;
  font-size: 13px;
  border-bottom: 2px solid #8a6f34;
  font-weight: 800;
}
.rp-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #d6c8a8;
  color: #3a3320;
}
.rp-table tr.rp-current {
  background: rgba(168,50,30,0.08);
}
.rp-table tr.rp-current td {
  color: #a8321e;
  font-weight: 700;
}

/* 하이라이트 */
.rp-highlight {
  background: linear-gradient(135deg, rgba(201,169,97,0.15), rgba(168,50,30,0.08));
  border: 1px solid #8a6f34;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}
.rp-highlight h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: #a8321e;
  margin: 0 0 0.5rem;
  font-weight: 800;
}
.rp-highlight p {
  font-size: 14.5px;
  color: #3a3320;
  margin: 0;
}

/* 편지 */
.rp-letter {
  background: rgba(201,169,97,0.05);
  padding: 2rem 2.2rem;
  border: 1.5px solid #c4b08a;
  margin: 1.5rem 0;
  font-family: var(--font-accent);
  border-radius: 3px;
  position: relative;
}
.rp-letter::before,
.rp-letter::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 1.5px solid #a8321e;
}
.rp-letter::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.rp-letter::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.rp-letter p {
  font-size: 14.5px;
  line-height: 2;
  color: #2a251a;
  margin: 0.8rem 0;
}
.rp-letter p strong { color: #a8321e; }
.rp-letter-salutation {
  font-family: var(--font-display);
  font-size: 17px !important;
  font-weight: 700;
  color: #a8321e !important;
  margin-bottom: 1.5rem !important;
}
.rp-letter-sign {
  text-align: right;
  margin-top: 2rem !important;
  font-style: italic;
  color: #8a6f34 !important;
}
.rp-letter-sign strong {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 18px;
  letter-spacing: 0.15em;
}

/* 종결 인장 */
.rp-end-seal {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px double #8a6f34;
}
.rp-seal-circle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 80px; height: 80px;
  border: 3px solid #a8321e;
  background: #a8321e;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 42px; font-weight: 800;
  margin-bottom: 1rem;
  transform: rotate(-5deg);
  border-radius: 4px;
}
.rp-end-seal p {
  font-family: var(--font-latin);
  font-style: italic;
  color: #8a6f34;
  font-size: 13px;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
 * 확장 리포트 추가 클래스 · 가시성 보장 CSS
 * 다크 테마 사이트 내부에서 크림 한지 배경 페이지의 글자 보장
 * ══════════════════════════════════════════════════════════════════ */

/* ① 전역 안전망 — .rp-report 내부 모든 요소에 어두운 색상 기본 적용 */
.rp-report,
.rp-report * {
  color: #2a251a;
}
.rp-report p,
.rp-report li,
.rp-report td,
.rp-report th,
.rp-report div,
.rp-report span,
.rp-report h1,
.rp-report h2,
.rp-report h3,
.rp-report h4,
.rp-report h5 {
  color: inherit;
}
/* 이미 색상이 지정된 요소는 유지 (원래 선언 복원) */
.rp-report .rp-lead strong,
.rp-report .rp-bullets li strong,
.rp-report .rp-stat-result strong,
.rp-report .rp-callout strong,
.rp-report .rp-daeun-card p strong,
.rp-report .rp-letter p strong,
.rp-report .rp-page-title,
.rp-report .rp-cover-title { color: #a8321e; }
.rp-report .rp-text { color: #3a3320; }
.rp-report .rp-text strong { color: #a8321e; font-weight: 700; }
.rp-report .rp-page-en,
.rp-report .rp-pillar-ko,
.rp-report .rp-cover-hanja { color: #8a6f34; }

/* ② 페이지 구조 */
.rp-page-body { color: #2a251a; }
.rp-page-title-wrap { display: flex; flex-direction: column; gap: 4px; }

/* ③ 표지 */
.rp-cover-stamp {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  color: #a8321e;
  letter-spacing: 0.2em;
}
.rp-cover-han {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 0.3em;
  color: #8a6f34;
  margin-top: 6px;
}
.rp-cover-line {
  width: 80px; height: 2px;
  background: #8a6f34;
  margin: 1.5rem auto;
}
.rp-cover-sub {
  font-family: var(--font-latin);
  font-style: italic; letter-spacing: 0.25em;
  font-size: 13px; color: #8a6f34;
  margin: 0.5rem 0 0;
}
.rp-cover-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem auto;
  max-width: 560px;
  text-align: left;
}
.rp-cover-details > div {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: rgba(138,111,52,0.06);
  border-left: 3px solid #a8321e;
  border-radius: 0 3px 3px 0;
}
.rp-cover-details span {
  color: #8a6f34; font-size: 13px;
  font-family: var(--font-accent);
}
.rp-cover-details strong {
  color: #2a251a; font-weight: 700;
  font-size: 14.5px;
}
.rp-cover-sig {
  margin-top: 2.5rem;
  padding: 1.2rem;
  border-top: 1px solid #c4b08a;
  border-bottom: 1px solid #c4b08a;
}
.rp-cover-sig p {
  font-size: 12.5px; color: #6f5a30;
  line-height: 1.75; margin: 0.2rem 0;
  font-style: italic;
}
.rp-cover-issued {
  margin-top: 2rem;
  font-size: 12px; color: #8a6f34;
  letter-spacing: 0.15em;
}

/* ④ 일간 카드 */
.rp-day-master-card {
  display: flex; align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(168,50,30,0.05), rgba(138,111,52,0.05));
  border: 1px solid #c4b08a;
  border-radius: 6px;
  margin: 1rem 0 1.5rem;
}
.rp-dm-han {
  font-family: var(--font-display);
  font-size: 72px; font-weight: 800;
  color: #a8321e;
  line-height: 1; flex-shrink: 0;
}
.rp-dm-info { flex: 1; }
.rp-dm-info h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: #2a251a;
  margin: 0 0 0.4rem;
}
.rp-dm-symbol {
  font-size: 13px; color: #6f5a30;
  font-style: italic; margin: 0;
  line-height: 1.7;
}

/* ⑤ 강점·약점 박스 */
.rp-strengths,
.rp-weaknesses {
  padding: 1rem 1.2rem;
  border-radius: 4px;
  border-top: 3px solid;
}
.rp-strengths {
  background: rgba(107,138,114,0.08);
  border-top-color: #6b8a72;
}
.rp-weaknesses {
  background: rgba(168,50,30,0.05);
  border-top-color: #a8321e;
}
.rp-strengths h4,
.rp-weaknesses h4 {
  font-family: var(--font-display);
  font-size: 14px; margin: 0 0 0.5rem;
  border-bottom: none; padding-bottom: 0;
}
.rp-strengths h4 { color: #4a6b52; }
.rp-weaknesses h4 { color: #a8321e; }
.rp-strengths p,
.rp-weaknesses p {
  font-size: 13.5px; line-height: 1.75;
  color: #3a3320; margin: 0;
}

/* ⑥ 기본 격자 (2열/3열) */
.rp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.rp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}
.rp-card {
  padding: 1rem;
  background: rgba(138,111,52,0.05);
  border: 1px solid #d4c5a3;
  border-radius: 4px;
}
.rp-card h4 {
  font-size: 13.5px; margin: 0 0 0.5rem;
  color: #a8321e;
  border-bottom: none; padding-bottom: 0;
}
.rp-card-note {
  margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px dotted #c4b08a;
  font-size: 12px; color: #6f5a30;
  font-style: italic;
}
.rp-attr {
  text-align: center; padding: 0.8rem;
  background: rgba(201,169,97,0.06);
  border-radius: 4px;
}
.rp-attr-label {
  display: block;
  font-size: 11px; color: #8a6f34;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.rp-attr strong {
  color: #2a251a; font-size: 14px;
  font-weight: 700;
}

/* ⑦ 오행 차트 */
.rp-elem-chart { margin: 1rem 0; }
.rp-elem-raw {
  font-size: 11.5px; color: #8a6f34;
  padding-left: 4px;
}

/* ⑧ 음양·용신 구역 */
.rp-yy-visual { margin: 1rem 0; }
.rp-yongsin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.rp-yongsin-main-card,
.rp-yongsin-sub-card {
  padding: 1.2rem 1rem;
  text-align: center;
  border-radius: 4px;
}
.rp-yongsin-main-card {
  background: linear-gradient(135deg, #a8321e, #8a261a);
  color: #f5eddc;
  box-shadow: 0 4px 12px rgba(168,50,30,0.25);
}
.rp-yongsin-sub-card {
  background: linear-gradient(135deg, #c9a961, #8a6d33);
  color: #2a251a;
}
.rp-yongsin-main-card .rp-ys-label,
.rp-yongsin-main-card .rp-ys-name,
.rp-yongsin-main-card .rp-ys-virtue {
  color: #f5eddc;
}
.rp-yongsin-sub-card .rp-ys-label,
.rp-yongsin-sub-card .rp-ys-name,
.rp-yongsin-sub-card .rp-ys-virtue {
  color: #2a251a;
}
.rp-ys-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  opacity: 0.9; margin-bottom: 6px;
}
.rp-ys-name {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  margin: 0.3rem 0;
  line-height: 1;
}
.rp-ys-virtue {
  font-size: 12.5px; line-height: 1.6;
  opacity: 0.95; margin: 0.5rem 0 0;
}

/* ⑨ 격국 박스 */
.rp-gyeok-box {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(168,50,30,0.06), rgba(201,169,97,0.06));
  border: 2px solid #c4b08a;
  border-radius: 6px;
  text-align: center;
  margin: 1rem 0 1.5rem;
}
.rp-gyeok-name {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  color: #a8321e;
  margin-bottom: 0.7rem;
  letter-spacing: 0.05em;
}
.rp-gyeok-desc {
  font-size: 14px; color: #3a3320;
  line-height: 1.8;
  margin: 0;
}

/* ⑩ 리스트 */
.rp-list {
  margin: 0.8rem 0;
  padding-left: 1.4rem;
}
.rp-list li {
  font-size: 14px; line-height: 1.85;
  color: #3a3320;
  margin: 0.5rem 0;
}
.rp-list li strong { color: #a8321e; }
.rp-list-ol {
  list-style: decimal;
  list-style-position: outside;
  padding-left: 1.8rem;
}
.rp-list-ol li {
  padding-left: 0.4rem;
}
.rp-list-ol li::marker {
  color: #a8321e;
  font-weight: 700;
  font-family: var(--font-display);
}

/* ⑪ 공망 강조 */
.rp-gm-big {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: #a8321e;
  text-align: center;
  letter-spacing: 0.1em;
  margin: 0.5rem 0;
}
.rp-highlight {
  padding: 1.2rem;
  background: rgba(201,169,97,0.08);
  border-left: 4px solid #a8321e;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}
.rp-highlight h4 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* ⑫ 현재 대운 하이라이트 */
.rp-current {
  background: linear-gradient(90deg, rgba(168,50,30,0.1), transparent) !important;
  border-left: 4px solid #a8321e;
}
.rp-daeun-card.rp-current {
  background: linear-gradient(135deg, rgba(168,50,30,0.08), rgba(201,169,97,0.08)) !important;
  border: 2px solid #a8321e;
}

/* ⑬ 대운 카드 상세 */
.rp-daeun-text {
  font-size: 13.5px; line-height: 1.85;
  color: #3a3320;
  margin: 0.5rem 0;
}
.rp-daeun-text strong { color: #a8321e; font-weight: 700; }
.rp-daeun-han {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: #a8321e;
  letter-spacing: 0.05em;
}

/* ⑭ 월별 카드 */
.rp-month-card {
  padding: 1rem 1.2rem;
  border: 1px solid #c4b08a;
  border-radius: 4px;
  margin-bottom: 1rem;
  background: rgba(245,237,220,0.4);
}
.rp-month-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px dotted #c4b08a;
}
.rp-month-card header h4 {
  margin: 0; border-bottom: none;
  padding-bottom: 0;
  font-size: 15px; color: #2a251a;
}
.rp-month-card .rp-note {
  font-size: 12px; color: #6f5a30;
  margin: 0.3rem 0 0;
  font-style: italic;
}
.rp-month-card .rp-note strong { color: #a8321e; }
.rp-month-tone-box {
  padding: 4px 10px;
  background: #a8321e;
  color: #f5eddc;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.rp-month-deep {
  font-size: 13px; line-height: 1.85;
  color: #3a3320;
  background: rgba(138,111,52,0.04);
  padding: 0.7rem;
  border-radius: 3px;
}

/* ⑮ 행운 요소 격자 */
.rp-lucky-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0 1.5rem;
}
.rp-lucky-item {
  text-align: center;
  padding: 1rem 0.6rem;
  background: linear-gradient(135deg, rgba(168,50,30,0.05), rgba(201,169,97,0.05));
  border: 1px solid #c4b08a;
  border-radius: 4px;
}
.rp-lucky-item span {
  display: block;
  font-size: 11px; color: #8a6f34;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.rp-lucky-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: #a8321e;
  font-weight: 700;
}

/* ⑯ 주의 박스 */
.rp-note-box {
  padding: 0.9rem 1.1rem;
  background: rgba(107,138,114,0.08);
  border-left: 3px solid #6b8a72;
  border-radius: 0 4px 4px 0;
  margin: 1rem 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: #3a3320;
  font-style: italic;
}
.rp-note-box strong {
  color: #4a6b52;
  font-style: normal;
}

/* ⑰ 콜아웃 */
.rp-callout {
  padding: 1rem 1.2rem;
  background: rgba(201,169,97,0.1);
  border: 1px solid #c4b08a;
  border-left: 4px solid #a8321e;
  border-radius: 0 4px 4px 0;
  margin: 1rem 0;
  font-size: 13.5px;
  line-height: 2;
  color: #3a3320;
}

/* ⑱ 기둥 라벨 */
.rp-pillar-lbl {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #8a6f34;
  margin-bottom: 8px;
  text-align: center;
}
.rp-pillar-lbl span {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 10px;
  color: #a8321e;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ⑲ 목차 */
.rp-toc-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: toc;
}
.rp-toc-list li {
  display: flex;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px dotted #c4b08a;
  font-size: 14.5px;
  color: #2a251a;
}
.rp-toc-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: #a8321e;
  width: 50px;
  flex-shrink: 0;
}
.rp-toc-p {
  margin-left: auto;
  font-family: var(--font-latin);
  font-style: italic;
  color: #8a6f34;
  font-size: 12.5px;
}

/* ⑳ 편지 (총평) */
.rp-letter {
  padding: 2rem 1.5rem;
  background: rgba(245,237,220,0.6);
  border: 1px solid #c4b08a;
  border-radius: 4px;
  line-height: 2;
  font-size: 14.5px;
  color: #2a251a;
}
.rp-letter p { margin: 1rem 0; }
.rp-letter-salutation {
  font-family: var(--font-display);
  font-size: 17px;
  color: #a8321e;
  font-weight: 700;
  margin-bottom: 1.5rem !important;
}
.rp-letter-sign {
  text-align: right;
  margin-top: 2rem !important;
  font-family: var(--font-display);
  color: #2a251a;
}
.rp-letter-sign strong { color: #a8321e; }

/* ㉑ 인감 */
.rp-end-seal {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dotted #c4b08a;
}
.rp-seal-circle {
  display: inline-block;
  width: 70px; height: 70px;
  border: 2.5px solid #a8321e;
  border-radius: 50%;
  line-height: 66px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #a8321e;
  background: rgba(168,50,30,0.05);
  margin-bottom: 1rem;
}
.rp-end-seal p {
  font-size: 12.5px;
  color: #8a6f34;
  margin: 0.3rem 0;
  font-style: italic;
}

/* ㉒ 기둥 추가 스타일 */
.rp-pillar-elem {
  font-size: 10.5px;
  color: #8a6f34;
  text-align: center;
  margin-top: 2px;
}
.rp-pillar-role {
  font-size: 10px;
  color: #6f5a30;
  text-align: center;
  margin-top: 6px;
  line-height: 1.45;
  padding-top: 6px;
  border-top: 1px dotted #c4b08a;
}

/* ═══════════════════════════════════════════════════════════════════
 * 프린트 (PDF 저장용) — A4 최적화, 색상 보존, 페이지 수 최소화
 * ═══════════════════════════════════════════════════════════════════ */
@media print {
  /* A4 페이지 설정 — 여백을 넉넉히 해서 잘림 방지 */
  @page {
    size: A4;
    margin: 16mm 16mm 18mm 16mm;
  }

  /* 색상·배경 강제 출력 (크롬·엣지) */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html, body {
    background: white !important;
    color: #1a1612 !important;
    font-size: 9.8pt !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* 화면 전용 요소 숨김 */
  .no-print,
  .site-header,
  .notice-bar,
  .status-card,
  .status-box,
  .pdf-guide-box,
  .report-actions,
  .report-actions-box,
  .site-footer,
  #print-btn,
  #print-btn-header,
  .floating-pdf-btn,
  #section-loading,
  #status-section,
  #to-top {
    display: none !important;
  }

  main, .success-page {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 리포트 컨테이너 */
  .rp-report {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    background: white !important;
    border-radius: 0 !important;
    color: #1a1612 !important;
  }

  .rp-report,
  .rp-report * {
    color: #1a1612 !important;
  }

  /* 각 섹션 = 1 프린트 페이지 */
  .rp-page,
  .rp-cover,
  .rp-toc {
    page-break-before: always !important;
    page-break-after: auto !important;
    page-break-inside: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: white !important;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
  }
  .rp-page:first-of-type,
  .rp-cover:first-of-type {
    page-break-before: auto !important;
  }

  /* 표지 배경·글자 */
  .rp-cover {
    background: #f9f3e4 !important;
    padding: 20mm 12mm !important;
    text-align: center !important;
  }
  .rp-cover-stamp, .rp-cover-title, .rp-cover-details strong,
  .rp-gyeok-name, .rp-dm-han, .rp-letter-salutation,
  .rp-page-title, .rp-page-num, .rp-ys-name {
    color: #a8321e !important;
  }
  .rp-cover-han, .rp-cover-sub, .rp-cover-hanja,
  .rp-cover-details span, .rp-cover-issued,
  .rp-page-en, .rp-pillar-ko, .rp-dm-symbol,
  .rp-note-box, .rp-month-card .rp-note,
  .rp-end-seal p, .rp-toc-p {
    color: #6f5a30 !important;
  }
  .rp-text, .rp-lead, .rp-list li,
  .rp-daeun-text, .rp-month-deep,
  .rp-strengths p, .rp-weaknesses p,
  .rp-letter p, .rp-card p {
    color: #2a251a !important;
  }
  .rp-text strong, .rp-lead strong, .rp-list li strong,
  .rp-daeun-text strong, .rp-letter p strong,
  .rp-stat-result strong, .rp-callout strong {
    color: #a8321e !important;
    font-weight: 700 !important;
  }

  /* 제목 */
  .rp-page-title {
    font-size: 14pt !important;
    margin: 0 0 4mm 0 !important;
    padding-bottom: 2mm !important;
    border-bottom: 1.5pt solid #8a6f34 !important;
  }
  .rp-h4 {
    font-size: 11pt !important;
    color: #a8321e !important;
    margin: 3mm 0 2mm 0 !important;
    padding-bottom: 1mm !important;
    border-bottom: 0.5pt dotted #c4b08a !important;
  }
  .rp-h3 {
    font-size: 11pt !important;
    margin: 2mm 0 1mm 0 !important;
    color: #1a1612 !important;
  }

  /* 본문 */
  .rp-text, .rp-body-text {
    font-size: 9.5pt !important;
    line-height: 1.6 !important;
    margin: 1mm 0 !important;
  }
  .rp-lead {
    font-size: 10pt !important;
    line-height: 1.7 !important;
  }
  .rp-list li {
    font-size: 9.5pt !important;
    line-height: 1.5 !important;
    padding: 0.8mm 0 0.8mm 4mm !important;
    margin: 0 !important;
  }

  /* 오행 차트 보존 */
  .rp-elem-bar-wrap, .rp-elem-bar {
    background: #e0d5b8 !important;
    border-radius: 2pt !important;
  }
  .rp-elem-fill[data-elem="목"], .rp-elem-row[data-elem="목"] .rp-elem-fill {
    background: #6b8a72 !important;
  }
  .rp-elem-fill[data-elem="화"], .rp-elem-row[data-elem="화"] .rp-elem-fill {
    background: #c74b36 !important;
  }
  .rp-elem-fill[data-elem="토"], .rp-elem-row[data-elem="토"] .rp-elem-fill {
    background: #c9a961 !important;
  }
  .rp-elem-fill[data-elem="금"], .rp-elem-row[data-elem="금"] .rp-elem-fill {
    background: #b0b0b0 !important;
  }
  .rp-elem-fill[data-elem="수"], .rp-elem-row[data-elem="수"] .rp-elem-fill {
    background: #4a6b9c !important;
  }

  /* 음양 바 */
  .rp-yy-yang {
    background: #c9a961 !important;
    color: #2a251a !important;
  }
  .rp-yy-yin {
    background: #3a3550 !important;
    color: #f5eddc !important;
  }

  /* 용신 카드 */
  .rp-yongsin-main-card {
    background: #a8321e !important;
    color: #f5eddc !important;
  }
  .rp-yongsin-main-card * {
    color: #f5eddc !important;
  }
  .rp-yongsin-sub-card {
    background: #c9a961 !important;
    color: #2a251a !important;
  }
  .rp-month-tone-box {
    background: #a8321e !important;
    color: #f5eddc !important;
  }

  /* 박스 요소들 */
  .rp-day-master-card, .rp-gyeok-box, .rp-highlight,
  .rp-callout, .rp-note-box, .rp-daeun-card,
  .rp-month-card, .rp-letter, .rp-card, .rp-lucky-item {
    background: #f9f3e4 !important;
    border: 0.3pt solid #c4b08a !important;
    padding: 2mm 3mm !important;
    margin: 1mm 0 !important;
    page-break-inside: avoid !important;
  }

  /* 명식 기둥 */
  .rp-pillars {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2mm !important;
    margin: 2mm 0 !important;
  }
  .rp-pillar {
    background: #f9f3e4 !important;
    border: 0.3pt solid #c4b08a !important;
    padding: 2mm !important;
    text-align: center !important;
    page-break-inside: avoid !important;
  }
  .rp-pillar-stem, .rp-pillar-branch {
    font-size: 18pt !important;
    color: #a8321e !important;
    line-height: 1.1 !important;
  }

  /* 테이블 */
  .rp-table {
    font-size: 9pt !important;
    border-collapse: collapse !important;
    width: 100% !important;
  }
  .rp-table th, .rp-table td {
    border: 0.3pt solid #c4b08a !important;
    padding: 1.5mm 2mm !important;
    color: #2a251a !important;
  }
  .rp-table th {
    background: #e8dcc2 !important;
    color: #1a1612 !important;
  }
  .rp-table .rp-current td {
    background: #fff0e0 !important;
  }

  /* 인감 */
  .rp-seal-circle {
    border: 1pt solid #a8321e !important;
    color: #a8321e !important;
    background: #fff0e0 !important;
  }

  /* 페이지 break 방지 */
  .rp-page-head,
  .rp-h3,
  .rp-h4 {
    page-break-after: avoid !important;
  }
  .rp-pillars,
  .rp-table-wrap,
  .rp-daeun-card,
  .rp-month-card,
  .rp-highlight,
  .rp-callout,
  .rp-note-box,
  .rp-gyeok-box,
  .rp-day-master-card,
  .rp-letter,
  .rp-end-seal {
    page-break-inside: avoid !important;
  }

  /* 링크 밑줄 제거 */
  a {
    color: #a8321e !important;
    text-decoration: none !important;
  }

  /* 이미지·SVG 스케일 조정 */
  svg {
    max-width: 100% !important;
  }
}

/* =====================================================================
 * PDF print background hotfix (2026-05-04)
 * Scope: layout/print CSS only. Saju analysis engines and report data logic
 * are intentionally untouched.
 *
 * Fixes cream/beige background leaking into blank space on short report
 * pages after the latest update. Page containers must print white; beige
 * paper color remains available only for intentional inner cards/callouts.
 * ===================================================================== */
@media print {
  html,
  body,
  main,
  .success-page,
  .rp-report,
  .rp-page,
  .rp-page-body,
  .rp-toc {
    background: #ffffff !important;
    background-color: #ffffff !important;
  }

  body::before,
  body::after,
  .rp-report::before,
  .rp-report::after,
  .rp-page::before,
  .rp-page::after,
  .rp-toc::before,
  .rp-toc::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
  }

  .rp-cover {
    background: #f9f3e4 !important;
  }
}


/* === SAJURICH REPORT FINAL OVERRIDE v15 === */
/* saju82 /jaemul report styles copied for matching report layout. */
/* =====================================================================
 * 사주 리포트 본문 (크림 종이 위의 전통 리포트)
 * ===================================================================== */

.rp-report {
  max-width: 920px;
  margin: 2rem auto;
  background: var(--paper);
  color: #2a251a;
  padding: 0;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  font-family: var(--font-body);
  line-height: 1.7;
}

/* 표지 */
.rp-cover {
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  background:
    radial-gradient(circle at top, rgba(138,111,52,0.06), transparent 60%),
    radial-gradient(circle at bottom, rgba(168,50,30,0.04), transparent 60%);
  border-bottom: 4px double #8a6f34;
  page-break-after: always;
}
.rp-cover::before {
  content: '命';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 400px; font-weight: 800;
  color: #8a6f34; opacity: 0.04;
  pointer-events: none;
}
.rp-cover-inner {
  position: relative;
  z-index: 1;
}
.rp-cover-brand {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: 0.2em;
  font-size: 16px;
  color: #a8321e;
  margin-bottom: 2rem;
}
.rp-cover-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: #2a251a;
  margin: 0.5rem 0;
  line-height: 1.3;
}
.rp-cover-subtitle {
  font-family: var(--font-latin);
  font-style: italic;
  letter-spacing: 0.25em;
  font-size: 14px;
  color: #8a6f34;
  margin: 0;
}
.rp-cover-divider {
  color: #a8321e;
  margin: 2rem 0;
  letter-spacing: 1em;
}
.rp-cover-meta p {
  font-size: 15.5px;
  color: #2a251a;
  margin: 0.4rem 0;
}
.rp-cover-meta strong {
  color: #a8321e;
  font-size: 18px;
}
.rp-cover-hanja {
  font-family: var(--font-display);
  color: #8a6f34 !important;
  letter-spacing: 0.1em;
  font-size: 14px !important;
  margin-top: 1rem !important;
}
.rp-cover-sig {
  margin: 2.5rem 0 1.5rem;
}
.rp-cover-sig p {
  font-size: 13px;
  color: #6f5a30;
  font-style: italic;
  margin: 0.2rem 0;
}
.rp-cover-date {
  font-family: var(--font-latin);
  font-style: italic;
  color: #8a6f34;
  font-size: 13px;
  margin-top: 1rem;
}

/* 목차 */
.rp-toc {
  padding: clamp(2rem, 4vw, 3rem);
  page-break-after: always;
}
.rp-toc-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: #a8321e;
  text-align: center;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #8a6f34;
}
.rp-toc-list {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: toc;
  columns: 1;
}
.rp-toc-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dotted #c4b08a;
  font-size: 14px;
  color: #3a3320;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.rp-toc-num {
  color: #a8321e;
  font-weight: 700;
  font-family: var(--font-latin);
  flex-shrink: 0;
}
.rp-toc-p {
  margin-left: auto;
  color: #8a6f34;
  font-size: 12px;
  font-style: italic;
}

/* 각 페이지 공통 */
.rp-page {
  padding: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid #c4b08a;
  page-break-inside: avoid;
  page-break-after: always;
}
.rp-page:last-of-type { page-break-after: auto; }
.rp-page-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #8a6f34;
  margin-bottom: 1.5rem;
  position: relative;
}
.rp-page-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: #a8321e;
  font-weight: 800;
  width: 56px;
  text-align: center;
  border-right: 1px solid #c4b08a;
  padding-right: 1rem;
  flex-shrink: 0;
}
.rp-page-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #2a251a;
  margin: 0;
  line-height: 1.3;
}
.rp-page-en {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: #8a6f34;
}
.rp-page-no {
  margin-left: auto;
  font-family: var(--font-latin);
  font-style: italic;
  color: #8a6f34;
  font-size: 13px;
  flex-shrink: 0;
}

/* 본문 요소 */
.rp-h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: #a8321e;
  margin: 1.5rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dotted #c4b08a;
}
.rp-lead {
  font-size: 15.5px;
  line-height: 1.85;
  color: #2a251a;
}
.rp-lead strong { color: #a8321e; font-weight: 700; }
.rp-lead-quote {
  font-family: var(--font-display);
  font-size: 18px;
  color: #a8321e;
  font-style: italic;
  border-left: 3px solid #a8321e;
  padding-left: 1rem;
  margin: 1rem 0;
}
.rp-text {
  font-size: 14.5px;
  line-height: 1.9;
  color: #3a3320;
  margin: 0.8rem 0;
}
.rp-text strong {
  color: #a8321e;
  font-weight: 700;
}
.rp-note {
  font-size: 12.5px;
  color: #6f5a30;
  font-style: italic;
  margin: 1rem 0;
}
.rp-bullets {
  list-style: none;
  padding: 0; margin: 1rem 0;
}
.rp-bullets li {
  padding: 0.5rem 0 0.5rem 1.2rem;
  position: relative;
  font-size: 14px;
  color: #3a3320;
  line-height: 1.75;
  border-bottom: 1px dotted #d6c8a8;
}
.rp-bullets li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: #a8321e;
  font-size: 10px;
}
.rp-bullets li strong { color: #a8321e; }

/* 4주 팔자 */
.rp-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 1.5rem 0;
}
.rp-pillar {
  border: 1px solid #8a6f34;
  padding: 14px 8px;
  text-align: center;
  background: rgba(201,169,97,0.06);
  border-radius: 2px;
}
.rp-pillar-label {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #8a6f34;
}
.rp-pillar-label span {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 11px;
  color: #6f5a30;
}
.rp-pillar-stem {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  color: #a8321e;
  margin: 8px 0 4px;
  line-height: 1;
}
.rp-pillar-branch {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: #2a251a;
  margin: 0;
  line-height: 1;
}
.rp-pillar-ko { font-size: 11px; color: #6f5a30; margin-top: 6px; }
.rp-pillar-elem {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid #c4b08a;
  border-radius: 999px;
  font-size: 10px;
  color: #6f5a30;
}
.rp-pillar-role {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 10px;
  color: #8a6f34;
  margin-top: 6px;
}
@media (max-width: 640px) {
  .rp-pillars { gap: 4px; }
  .rp-pillar { padding: 10px 4px; }
  .rp-pillar-stem { font-size: 28px; }
  .rp-pillar-branch { font-size: 24px; }
}

/* 그리드 · 카드 */
.rp-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 1rem 0;
}
.rp-grid-2-lg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}
.rp-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 1rem 0;
}
.rp-card {
  background: rgba(138,111,52,0.08);
  padding: 10px 12px;
  border-left: 3px solid #a8321e;
  border-radius: 0 2px 2px 0;
}
.rp-card h4 {
  font-family: var(--font-display);
  font-size: 12px;
  color: #a8321e;
  margin: 0 0 4px;
  font-weight: 800;
}
.rp-card p { margin: 0; font-size: 13px; color: #3a3320; }
.rp-card-lg {
  background: rgba(138,111,52,0.08);
  padding: 1.2rem;
  border-left: 4px solid #a8321e;
  border-radius: 0 2px 2px 0;
}
.rp-card-lg h4 {
  font-family: var(--font-display);
  font-size: 14px;
  color: #a8321e;
  margin: 0 0 0.5rem;
  font-weight: 800;
}
.rp-card-lg p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: #3a3320;
}
.rp-card-lg small {
  display: block;
  font-size: 11px;
  color: #8a6f34;
  font-style: italic;
  margin-top: 6px;
}
.rp-attr {
  background: rgba(138,111,52,0.08);
  padding: 10px 12px;
  border-top: 2px solid #c4b08a;
  text-align: center;
}
.rp-attr-label {
  display: block;
  font-size: 11px;
  color: #8a6f34;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.rp-attr strong {
  font-family: var(--font-display);
  font-size: 14px;
  color: #2a251a;
  font-weight: 800;
}

/* 오행 바 */
.rp-elems {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1rem 0;
}
.rp-elem-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.rp-elem-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #3a3320;
  font-size: 15px;
  text-align: center;
  line-height: 1.2;
}
.rp-elem-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: normal;
  font-size: 10px;
  color: #8a6f34;
  margin-top: 2px;
}
.rp-elem-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rp-elem-bar {
  height: 10px;
  background: rgba(138,111,52,0.15);
  border-radius: 5px;
  overflow: hidden;
}
.rp-elem-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.rp-elem-row[data-elem="목"] .rp-elem-fill { background: linear-gradient(90deg, #4a8a5e, #6bab7d); }
.rp-elem-row[data-elem="화"] .rp-elem-fill { background: linear-gradient(90deg, #c9502e, #e8754f); }
.rp-elem-row[data-elem="토"] .rp-elem-fill { background: linear-gradient(90deg, #a88250, #c49966); }
.rp-elem-row[data-elem="금"] .rp-elem-fill { background: linear-gradient(90deg, #c9a961, #e4c876); }
.rp-elem-row[data-elem="수"] .rp-elem-fill { background: linear-gradient(90deg, #3a6b8a, #548bb2); }
.rp-elem-val {
  font-size: 12px;
  color: #6f5a30;
  font-family: var(--font-latin);
  font-style: italic;
}

/* 음양 */
.rp-yy-bar {
  display: flex;
  height: 44px;
  border: 1px solid #8a6f34;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}
.rp-yy-yang {
  background: linear-gradient(90deg, #e4c876, #c9a961);
  color: #2a251a;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.rp-yy-yin {
  background: linear-gradient(90deg, #3a3550, #1c1928);
  color: var(--paper);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

/* 신강 통계 */
.rp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 1rem 0;
}
.rp-stats > div {
  background: rgba(138,111,52,0.08);
  padding: 1rem;
  text-align: center;
  border-top: 3px solid #c4b08a;
  border-radius: 0 0 3px 3px;
}
.rp-stats span {
  display: block;
  font-size: 11px;
  color: #8a6f34;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.rp-stats strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: #2a251a;
  font-weight: 800;
}
.rp-stat-result { border-top-color: #a8321e !important; }
.rp-stat-result strong { color: #a8321e; }

/* 콜아웃 */
.rp-callout {
  background: rgba(168,50,30,0.08);
  border: 1px dashed #a8321e;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 13.5px;
  color: #3a3320;
  line-height: 1.8;
  border-radius: 3px;
}
.rp-callout strong { color: #a8321e; }

/* 용신 카드 */
.rp-yong-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}
.rp-yong-card {
  background: rgba(201,169,97,0.1);
  border: 1px solid #c4b08a;
  padding: 1rem 1.2rem;
  border-radius: 3px;
}
.rp-yong-card header {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #c4b08a;
}
.rp-yong-rank {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  color: #8a6f34;
  letter-spacing: 0.1em;
}
.rp-yong-card header strong {
  font-family: var(--font-display);
  font-size: 18px;
  color: #a8321e;
  font-weight: 800;
  margin-left: auto;
}
.rp-yong-card p {
  font-size: 12.5px;
  color: #3a3320;
  margin: 0.2rem 0;
}

/* 대운 카드 */
.rp-daeun-card {
  background: rgba(138,111,52,0.08);
  border: 1px solid #c4b08a;
  border-left: 4px solid #a8321e;
  padding: 1.2rem 1.4rem;
  margin: 1rem 0;
  border-radius: 0 3px 3px 0;
}
.rp-daeun-card header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #c4b08a;
}
.rp-daeun-card header h4 {
  font-family: var(--font-display);
  font-size: 15px;
  color: #a8321e;
  margin: 0;
  font-weight: 800;
}
.rp-daeun-han {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: #2a251a;
  line-height: 1;
}
.rp-daeun-card p {
  margin: 0.3rem 0;
  font-size: 13.5px;
  color: #3a3320;
}
.rp-daeun-card p strong { color: #a8321e; }
.rp-daeun-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: #3a3320;
  margin-top: 0.6rem !important;
}

/* 테이블 */
.rp-table-wrap { overflow-x: auto; margin: 1rem 0; }
.rp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.rp-table th {
  background: rgba(138,111,52,0.15);
  text-align: left;
  padding: 10px 12px;
  font-family: var(--font-display);
  color: #2a251a;
  font-size: 13px;
  border-bottom: 2px solid #8a6f34;
  font-weight: 800;
}
.rp-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #d6c8a8;
  color: #3a3320;
}
.rp-table tr.rp-current {
  background: rgba(168,50,30,0.08);
}
.rp-table tr.rp-current td {
  color: #a8321e;
  font-weight: 700;
}

/* 하이라이트 */
.rp-highlight {
  background: linear-gradient(135deg, rgba(201,169,97,0.15), rgba(168,50,30,0.08));
  border: 1px solid #8a6f34;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}
.rp-highlight h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: #a8321e;
  margin: 0 0 0.5rem;
  font-weight: 800;
}
.rp-highlight p {
  font-size: 14.5px;
  color: #3a3320;
  margin: 0;
}

/* 편지 */
.rp-letter {
  background: rgba(201,169,97,0.05);
  padding: 2rem 2.2rem;
  border: 1.5px solid #c4b08a;
  margin: 1.5rem 0;
  font-family: var(--font-accent);
  border-radius: 3px;
  position: relative;
}
.rp-letter::before,
.rp-letter::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 1.5px solid #a8321e;
}
.rp-letter::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.rp-letter::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.rp-letter p {
  font-size: 14.5px;
  line-height: 2;
  color: #2a251a;
  margin: 0.8rem 0;
}
.rp-letter p strong { color: #a8321e; }
.rp-letter-salutation {
  font-family: var(--font-display);
  font-size: 17px !important;
  font-weight: 700;
  color: #a8321e !important;
  margin-bottom: 1.5rem !important;
}
.rp-letter-sign {
  text-align: right;
  margin-top: 2rem !important;
  font-style: italic;
  color: #8a6f34 !important;
}
.rp-letter-sign strong {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 18px;
  letter-spacing: 0.15em;
}

/* 종결 인장 */
.rp-end-seal {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px double #8a6f34;
}
.rp-seal-circle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 80px; height: 80px;
  border: 3px solid #a8321e;
  background: #a8321e;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 42px; font-weight: 800;
  margin-bottom: 1rem;
  transform: rotate(-5deg);
  border-radius: 4px;
}
.rp-end-seal p {
  font-family: var(--font-latin);
  font-style: italic;
  color: #8a6f34;
  font-size: 13px;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
 * 확장 리포트 추가 클래스 · 가시성 보장 CSS
 * 다크 테마 사이트 내부에서 크림 한지 배경 페이지의 글자 보장
 * ══════════════════════════════════════════════════════════════════ */

/* ① 전역 안전망 — .rp-report 내부 모든 요소에 어두운 색상 기본 적용 */
.rp-report,
.rp-report * {
  color: #2a251a;
}
.rp-report p,
.rp-report li,
.rp-report td,
.rp-report th,
.rp-report div,
.rp-report span,
.rp-report h1,
.rp-report h2,
.rp-report h3,
.rp-report h4,
.rp-report h5 {
  color: inherit;
}
/* 이미 색상이 지정된 요소는 유지 (원래 선언 복원) */
.rp-report .rp-lead strong,
.rp-report .rp-bullets li strong,
.rp-report .rp-stat-result strong,
.rp-report .rp-callout strong,
.rp-report .rp-daeun-card p strong,
.rp-report .rp-letter p strong,
.rp-report .rp-page-title,
.rp-report .rp-cover-title { color: #a8321e; }
.rp-report .rp-text { color: #3a3320; }
.rp-report .rp-text strong { color: #a8321e; font-weight: 700; }
.rp-report .rp-page-en,
.rp-report .rp-pillar-ko,
.rp-report .rp-cover-hanja { color: #8a6f34; }

/* ② 페이지 구조 */
.rp-page-body { color: #2a251a; }
.rp-page-title-wrap { display: flex; flex-direction: column; gap: 4px; }

/* ③ 표지 */
.rp-cover-stamp {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800;
  color: #a8321e;
  letter-spacing: 0.2em;
}
.rp-cover-han {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 0.3em;
  color: #8a6f34;
  margin-top: 6px;
}
.rp-cover-line {
  width: 80px; height: 2px;
  background: #8a6f34;
  margin: 1.5rem auto;
}
.rp-cover-sub {
  font-family: var(--font-latin);
  font-style: italic; letter-spacing: 0.25em;
  font-size: 13px; color: #8a6f34;
  margin: 0.5rem 0 0;
}
.rp-cover-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem auto;
  max-width: 560px;
  text-align: left;
}
.rp-cover-details > div {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: rgba(138,111,52,0.06);
  border-left: 3px solid #a8321e;
  border-radius: 0 3px 3px 0;
}
.rp-cover-details span {
  color: #8a6f34; font-size: 13px;
  font-family: var(--font-accent);
}
.rp-cover-details strong {
  color: #2a251a; font-weight: 700;
  font-size: 14.5px;
}
.rp-cover-sig {
  margin-top: 2.5rem;
  padding: 1.2rem;
  border-top: 1px solid #c4b08a;
  border-bottom: 1px solid #c4b08a;
}
.rp-cover-sig p {
  font-size: 12.5px; color: #6f5a30;
  line-height: 1.75; margin: 0.2rem 0;
  font-style: italic;
}
.rp-cover-issued {
  margin-top: 2rem;
  font-size: 12px; color: #8a6f34;
  letter-spacing: 0.15em;
}

/* ④ 일간 카드 */
.rp-day-master-card {
  display: flex; align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(168,50,30,0.05), rgba(138,111,52,0.05));
  border: 1px solid #c4b08a;
  border-radius: 6px;
  margin: 1rem 0 1.5rem;
}
.rp-dm-han {
  font-family: var(--font-display);
  font-size: 72px; font-weight: 800;
  color: #a8321e;
  line-height: 1; flex-shrink: 0;
}
.rp-dm-info { flex: 1; }
.rp-dm-info h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: #2a251a;
  margin: 0 0 0.4rem;
}
.rp-dm-symbol {
  font-size: 13px; color: #6f5a30;
  font-style: italic; margin: 0;
  line-height: 1.7;
}

/* ⑤ 강점·약점 박스 */
.rp-strengths,
.rp-weaknesses {
  padding: 1rem 1.2rem;
  border-radius: 4px;
  border-top: 3px solid;
}
.rp-strengths {
  background: rgba(107,138,114,0.08);
  border-top-color: #6b8a72;
}
.rp-weaknesses {
  background: rgba(168,50,30,0.05);
  border-top-color: #a8321e;
}
.rp-strengths h4,
.rp-weaknesses h4 {
  font-family: var(--font-display);
  font-size: 14px; margin: 0 0 0.5rem;
  border-bottom: none; padding-bottom: 0;
}
.rp-strengths h4 { color: #4a6b52; }
.rp-weaknesses h4 { color: #a8321e; }
.rp-strengths p,
.rp-weaknesses p {
  font-size: 13.5px; line-height: 1.75;
  color: #3a3320; margin: 0;
}

/* ⑥ 기본 격자 (2열/3열) */
.rp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.rp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}
.rp-card {
  padding: 1rem;
  background: rgba(138,111,52,0.05);
  border: 1px solid #d4c5a3;
  border-radius: 4px;
}
.rp-card h4 {
  font-size: 13.5px; margin: 0 0 0.5rem;
  color: #a8321e;
  border-bottom: none; padding-bottom: 0;
}
.rp-card-note {
  margin-top: 0.5rem; padding-top: 0.5rem;
  border-top: 1px dotted #c4b08a;
  font-size: 12px; color: #6f5a30;
  font-style: italic;
}
.rp-attr {
  text-align: center; padding: 0.8rem;
  background: rgba(201,169,97,0.06);
  border-radius: 4px;
}
.rp-attr-label {
  display: block;
  font-size: 11px; color: #8a6f34;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.rp-attr strong {
  color: #2a251a; font-size: 14px;
  font-weight: 700;
}

/* ⑦ 오행 차트 */
.rp-elem-chart { margin: 1rem 0; }
.rp-elem-raw {
  font-size: 11.5px; color: #8a6f34;
  padding-left: 4px;
}

/* ⑧ 음양·용신 구역 */
.rp-yy-visual { margin: 1rem 0; }
.rp-yongsin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.rp-yongsin-main-card,
.rp-yongsin-sub-card {
  padding: 1.2rem 1rem;
  text-align: center;
  border-radius: 4px;
}
.rp-yongsin-main-card {
  background: linear-gradient(135deg, #a8321e, #8a261a);
  color: #f5eddc;
  box-shadow: 0 4px 12px rgba(168,50,30,0.25);
}
.rp-yongsin-sub-card {
  background: linear-gradient(135deg, #c9a961, #8a6d33);
  color: #2a251a;
}
.rp-yongsin-main-card .rp-ys-label,
.rp-yongsin-main-card .rp-ys-name,
.rp-yongsin-main-card .rp-ys-virtue {
  color: #f5eddc;
}
.rp-yongsin-sub-card .rp-ys-label,
.rp-yongsin-sub-card .rp-ys-name,
.rp-yongsin-sub-card .rp-ys-virtue {
  color: #2a251a;
}
.rp-ys-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  opacity: 0.9; margin-bottom: 6px;
}
.rp-ys-name {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  margin: 0.3rem 0;
  line-height: 1;
}
.rp-ys-virtue {
  font-size: 12.5px; line-height: 1.6;
  opacity: 0.95; margin: 0.5rem 0 0;
}

/* ⑨ 격국 박스 */
.rp-gyeok-box {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(168,50,30,0.06), rgba(201,169,97,0.06));
  border: 2px solid #c4b08a;
  border-radius: 6px;
  text-align: center;
  margin: 1rem 0 1.5rem;
}
.rp-gyeok-name {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800;
  color: #a8321e;
  margin-bottom: 0.7rem;
  letter-spacing: 0.05em;
}
.rp-gyeok-desc {
  font-size: 14px; color: #3a3320;
  line-height: 1.8;
  margin: 0;
}

/* ⑩ 리스트 */
.rp-list {
  margin: 0.8rem 0;
  padding-left: 1.4rem;
}
.rp-list li {
  font-size: 14px; line-height: 1.85;
  color: #3a3320;
  margin: 0.5rem 0;
}
.rp-list li strong { color: #a8321e; }
.rp-list-ol {
  list-style: decimal;
  list-style-position: outside;
  padding-left: 1.8rem;
}
.rp-list-ol li {
  padding-left: 0.4rem;
}
.rp-list-ol li::marker {
  color: #a8321e;
  font-weight: 700;
  font-family: var(--font-display);
}

/* ⑪ 공망 강조 */
.rp-gm-big {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: #a8321e;
  text-align: center;
  letter-spacing: 0.1em;
  margin: 0.5rem 0;
}
.rp-highlight {
  padding: 1.2rem;
  background: rgba(201,169,97,0.08);
  border-left: 4px solid #a8321e;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}
.rp-highlight h4 {
  margin-top: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* ⑫ 현재 대운 하이라이트 */
.rp-current {
  background: linear-gradient(90deg, rgba(168,50,30,0.1), transparent) !important;
  border-left: 4px solid #a8321e;
}
.rp-daeun-card.rp-current {
  background: linear-gradient(135deg, rgba(168,50,30,0.08), rgba(201,169,97,0.08)) !important;
  border: 2px solid #a8321e;
}

/* ⑬ 대운 카드 상세 */
.rp-daeun-text {
  font-size: 13.5px; line-height: 1.85;
  color: #3a3320;
  margin: 0.5rem 0;
}
.rp-daeun-text strong { color: #a8321e; font-weight: 700; }
.rp-daeun-han {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  color: #a8321e;
  letter-spacing: 0.05em;
}

/* ⑭ 월별 카드 */
.rp-month-card {
  padding: 1rem 1.2rem;
  border: 1px solid #c4b08a;
  border-radius: 4px;
  margin-bottom: 1rem;
  background: rgba(245,237,220,0.4);
}
.rp-month-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px dotted #c4b08a;
}
.rp-month-card header h4 {
  margin: 0; border-bottom: none;
  padding-bottom: 0;
  font-size: 15px; color: #2a251a;
}
.rp-month-card .rp-note {
  font-size: 12px; color: #6f5a30;
  margin: 0.3rem 0 0;
  font-style: italic;
}
.rp-month-card .rp-note strong { color: #a8321e; }
.rp-month-tone-box {
  padding: 4px 10px;
  background: #a8321e;
  color: #f5eddc;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.rp-month-deep {
  font-size: 13px; line-height: 1.85;
  color: #3a3320;
  background: rgba(138,111,52,0.04);
  padding: 0.7rem;
  border-radius: 3px;
}

/* ⑮ 행운 요소 격자 */
.rp-lucky-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0 1.5rem;
}
.rp-lucky-item {
  text-align: center;
  padding: 1rem 0.6rem;
  background: linear-gradient(135deg, rgba(168,50,30,0.05), rgba(201,169,97,0.05));
  border: 1px solid #c4b08a;
  border-radius: 4px;
}
.rp-lucky-item span {
  display: block;
  font-size: 11px; color: #8a6f34;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.rp-lucky-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: #a8321e;
  font-weight: 700;
}

/* ⑯ 주의 박스 */
.rp-note-box {
  padding: 0.9rem 1.1rem;
  background: rgba(107,138,114,0.08);
  border-left: 3px solid #6b8a72;
  border-radius: 0 4px 4px 0;
  margin: 1rem 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: #3a3320;
  font-style: italic;
}
.rp-note-box strong {
  color: #4a6b52;
  font-style: normal;
}

/* ⑰ 콜아웃 */
.rp-callout {
  padding: 1rem 1.2rem;
  background: rgba(201,169,97,0.1);
  border: 1px solid #c4b08a;
  border-left: 4px solid #a8321e;
  border-radius: 0 4px 4px 0;
  margin: 1rem 0;
  font-size: 13.5px;
  line-height: 2;
  color: #3a3320;
}

/* ⑱ 기둥 라벨 */
.rp-pillar-lbl {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #8a6f34;
  margin-bottom: 8px;
  text-align: center;
}
.rp-pillar-lbl span {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 10px;
  color: #a8321e;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ⑲ 목차 */
.rp-toc-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: toc;
}
.rp-toc-list li {
  display: flex;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px dotted #c4b08a;
  font-size: 14.5px;
  color: #2a251a;
}
.rp-toc-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: #a8321e;
  width: 50px;
  flex-shrink: 0;
}
.rp-toc-p {
  margin-left: auto;
  font-family: var(--font-latin);
  font-style: italic;
  color: #8a6f34;
  font-size: 12.5px;
}

/* ⑳ 편지 (총평) */
.rp-letter {
  padding: 2rem 1.5rem;
  background: rgba(245,237,220,0.6);
  border: 1px solid #c4b08a;
  border-radius: 4px;
  line-height: 2;
  font-size: 14.5px;
  color: #2a251a;
}
.rp-letter p { margin: 1rem 0; }
.rp-letter-salutation {
  font-family: var(--font-display);
  font-size: 17px;
  color: #a8321e;
  font-weight: 700;
  margin-bottom: 1.5rem !important;
}
.rp-letter-sign {
  text-align: right;
  margin-top: 2rem !important;
  font-family: var(--font-display);
  color: #2a251a;
}
.rp-letter-sign strong { color: #a8321e; }

/* ㉑ 인감 */
.rp-end-seal {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px dotted #c4b08a;
}
.rp-seal-circle {
  display: inline-block;
  width: 70px; height: 70px;
  border: 2.5px solid #a8321e;
  border-radius: 50%;
  line-height: 66px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: #a8321e;
  background: rgba(168,50,30,0.05);
  margin-bottom: 1rem;
}
.rp-end-seal p {
  font-size: 12.5px;
  color: #8a6f34;
  margin: 0.3rem 0;
  font-style: italic;
}

/* ㉒ 기둥 추가 스타일 */
.rp-pillar-elem {
  font-size: 10.5px;
  color: #8a6f34;
  text-align: center;
  margin-top: 2px;
}
.rp-pillar-role {
  font-size: 10px;
  color: #6f5a30;
  text-align: center;
  margin-top: 6px;
  line-height: 1.45;
  padding-top: 6px;
  border-top: 1px dotted #c4b08a;
}

/* ═══════════════════════════════════════════════════════════════════
 * 프린트 (PDF 저장용) — A4 최적화, 색상 보존, 페이지 수 최소화
 * ═══════════════════════════════════════════════════════════════════ */
@media print {
  /* A4 페이지 설정 — 여백을 넉넉히 해서 잘림 방지 */
  @page {
    size: A4;
    margin: 16mm 16mm 18mm 16mm;
  }

  /* 색상·배경 강제 출력 (크롬·엣지) */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html, body {
    background: white !important;
    color: #1a1612 !important;
    font-size: 9.8pt !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* 화면 전용 요소 숨김 */
  .no-print,
  .site-header,
  .notice-bar,
  .status-card,
  .status-box,
  .pdf-guide-box,
  .report-actions,
  .report-actions-box,
  .site-footer,
  #print-btn,
  #print-btn-header,
  .floating-pdf-btn,
  #section-loading,
  #status-section,
  #to-top {
    display: none !important;
  }

  main, .success-page {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 리포트 컨테이너 */
  .rp-report {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    background: white !important;
    border-radius: 0 !important;
    color: #1a1612 !important;
  }

  .rp-report,
  .rp-report * {
    color: #1a1612 !important;
  }

  /* 각 섹션 = 1 프린트 페이지 */
  .rp-page,
  .rp-cover,
  .rp-toc {
    page-break-before: always !important;
    page-break-after: auto !important;
    page-break-inside: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: white !important;
    min-height: auto !important;
    max-height: none !important;
    height: auto !important;
  }
  .rp-page:first-of-type,
  .rp-cover:first-of-type {
    page-break-before: auto !important;
  }

  /* 표지 배경·글자 */
  .rp-cover {
    background: #f9f3e4 !important;
    padding: 20mm 12mm !important;
    text-align: center !important;
  }
  .rp-cover-stamp, .rp-cover-title, .rp-cover-details strong,
  .rp-gyeok-name, .rp-dm-han, .rp-letter-salutation,
  .rp-page-title, .rp-page-num, .rp-ys-name {
    color: #a8321e !important;
  }
  .rp-cover-han, .rp-cover-sub, .rp-cover-hanja,
  .rp-cover-details span, .rp-cover-issued,
  .rp-page-en, .rp-pillar-ko, .rp-dm-symbol,
  .rp-note-box, .rp-month-card .rp-note,
  .rp-end-seal p, .rp-toc-p {
    color: #6f5a30 !important;
  }
  .rp-text, .rp-lead, .rp-list li,
  .rp-daeun-text, .rp-month-deep,
  .rp-strengths p, .rp-weaknesses p,
  .rp-letter p, .rp-card p {
    color: #2a251a !important;
  }
  .rp-text strong, .rp-lead strong, .rp-list li strong,
  .rp-daeun-text strong, .rp-letter p strong,
  .rp-stat-result strong, .rp-callout strong {
    color: #a8321e !important;
    font-weight: 700 !important;
  }

  /* 제목 */
  .rp-page-title {
    font-size: 14pt !important;
    margin: 0 0 4mm 0 !important;
    padding-bottom: 2mm !important;
    border-bottom: 1.5pt solid #8a6f34 !important;
  }
  .rp-h4 {
    font-size: 11pt !important;
    color: #a8321e !important;
    margin: 3mm 0 2mm 0 !important;
    padding-bottom: 1mm !important;
    border-bottom: 0.5pt dotted #c4b08a !important;
  }
  .rp-h3 {
    font-size: 11pt !important;
    margin: 2mm 0 1mm 0 !important;
    color: #1a1612 !important;
  }

  /* 본문 */
  .rp-text, .rp-body-text {
    font-size: 9.5pt !important;
    line-height: 1.6 !important;
    margin: 1mm 0 !important;
  }
  .rp-lead {
    font-size: 10pt !important;
    line-height: 1.7 !important;
  }
  .rp-list li {
    font-size: 9.5pt !important;
    line-height: 1.5 !important;
    padding: 0.8mm 0 0.8mm 4mm !important;
    margin: 0 !important;
  }

  /* 오행 차트 보존 */
  .rp-elem-bar-wrap, .rp-elem-bar {
    background: #e0d5b8 !important;
    border-radius: 2pt !important;
  }
  .rp-elem-fill[data-elem="목"], .rp-elem-row[data-elem="목"] .rp-elem-fill {
    background: #6b8a72 !important;
  }
  .rp-elem-fill[data-elem="화"], .rp-elem-row[data-elem="화"] .rp-elem-fill {
    background: #c74b36 !important;
  }
  .rp-elem-fill[data-elem="토"], .rp-elem-row[data-elem="토"] .rp-elem-fill {
    background: #c9a961 !important;
  }
  .rp-elem-fill[data-elem="금"], .rp-elem-row[data-elem="금"] .rp-elem-fill {
    background: #b0b0b0 !important;
  }
  .rp-elem-fill[data-elem="수"], .rp-elem-row[data-elem="수"] .rp-elem-fill {
    background: #4a6b9c !important;
  }

  /* 음양 바 */
  .rp-yy-yang {
    background: #c9a961 !important;
    color: #2a251a !important;
  }
  .rp-yy-yin {
    background: #3a3550 !important;
    color: #f5eddc !important;
  }

  /* 용신 카드 */
  .rp-yongsin-main-card {
    background: #a8321e !important;
    color: #f5eddc !important;
  }
  .rp-yongsin-main-card * {
    color: #f5eddc !important;
  }
  .rp-yongsin-sub-card {
    background: #c9a961 !important;
    color: #2a251a !important;
  }
  .rp-month-tone-box {
    background: #a8321e !important;
    color: #f5eddc !important;
  }

  /* 박스 요소들 */
  .rp-day-master-card, .rp-gyeok-box, .rp-highlight,
  .rp-callout, .rp-note-box, .rp-daeun-card,
  .rp-month-card, .rp-letter, .rp-card, .rp-lucky-item {
    background: #f9f3e4 !important;
    border: 0.3pt solid #c4b08a !important;
    padding: 2mm 3mm !important;
    margin: 1mm 0 !important;
    page-break-inside: avoid !important;
  }

  /* 명식 기둥 */
  .rp-pillars {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2mm !important;
    margin: 2mm 0 !important;
  }
  .rp-pillar {
    background: #f9f3e4 !important;
    border: 0.3pt solid #c4b08a !important;
    padding: 2mm !important;
    text-align: center !important;
    page-break-inside: avoid !important;
  }
  .rp-pillar-stem, .rp-pillar-branch {
    font-size: 18pt !important;
    color: #a8321e !important;
    line-height: 1.1 !important;
  }

  /* 테이블 */
  .rp-table {
    font-size: 9pt !important;
    border-collapse: collapse !important;
    width: 100% !important;
  }
  .rp-table th, .rp-table td {
    border: 0.3pt solid #c4b08a !important;
    padding: 1.5mm 2mm !important;
    color: #2a251a !important;
  }
  .rp-table th {
    background: #e8dcc2 !important;
    color: #1a1612 !important;
  }
  .rp-table .rp-current td {
    background: #fff0e0 !important;
  }

  /* 인감 */
  .rp-seal-circle {
    border: 1pt solid #a8321e !important;
    color: #a8321e !important;
    background: #fff0e0 !important;
  }

  /* 페이지 break 방지 */
  .rp-page-head,
  .rp-h3,
  .rp-h4 {
    page-break-after: avoid !important;
  }
  .rp-pillars,
  .rp-table-wrap,
  .rp-daeun-card,
  .rp-month-card,
  .rp-highlight,
  .rp-callout,
  .rp-note-box,
  .rp-gyeok-box,
  .rp-day-master-card,
  .rp-letter,
  .rp-end-seal {
    page-break-inside: avoid !important;
  }

  /* 링크 밑줄 제거 */
  a {
    color: #a8321e !important;
    text-decoration: none !important;
  }

  /* 이미지·SVG 스케일 조정 */
  svg {
    max-width: 100% !important;
  }
}



/* =======================================================
   Consult CTA — urgency countdown enhancement
   ======================================================= */
.consult-urgency {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}
.urgency-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0d599, var(--gold));
  color: var(--bg-0);
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 0 rgba(240, 213, 153, 0.35);
  animation: urgencyPulse 1.6s infinite;
}
.urgency-note {
  color: var(--gold-bright);
  font-size: 13px;
  letter-spacing: 0.01em;
}
.consult-countdown-wrap {
  margin: 2rem 0 1.8rem;
  max-width: 620px;
}
.countdown-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0.8rem;
  color: var(--paper);
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.countdown-caption::before {
  content: '●';
  color: var(--cinnabar-light);
  animation: blinkDot 1s infinite;
}
.countdown-helper {
  margin-top: 0.85rem;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}
.consult-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 12px;
  margin: 0;
  max-width: 560px;
}
.consult-countdown > div {
  background: linear-gradient(180deg, rgba(8, 7, 14, 0.98), rgba(3, 3, 7, 0.98));
  border: 1px solid rgba(201, 169, 97, 0.28);
  padding: 18px 10px;
  min-height: 132px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 18px 30px -20px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
}
.consult-countdown > div::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 42%);
  pointer-events: none;
}
.consult-countdown strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--gold-bright);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(201, 169, 97, 0.18);
}
.consult-countdown small {
  display: block;
  font-family: var(--font-accent);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-2);
  text-transform: uppercase;
  margin-top: 12px;
}
.consult-countdown .cd-fast {
  border-color: rgba(228, 199, 134, 0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 0 30px rgba(201,169,97,0.12);
}
.consult-countdown .cd-fast strong {
  color: #ffe5a5;
}
.consult-countdown.is-soon > div {
  border-color: rgba(228, 199, 134, 0.72);
  box-shadow: 0 0 0 1px rgba(228, 199, 134, 0.08), 0 0 26px rgba(201,169,97,0.12);
}
.consult-countdown.is-critical > div {
  border-color: rgba(199, 75, 54, 0.8);
  background: linear-gradient(180deg, rgba(40, 12, 12, 0.96), rgba(11, 6, 10, 0.98));
}
.consult-countdown.is-critical strong {
  color: #ffd7c5;
  text-shadow: 0 0 20px rgba(199, 75, 54, 0.25);
}
.consult-countdown.is-critical .cd-fast {
  animation: criticalFlash 0.8s infinite;
}
@keyframes urgencyPulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 213, 153, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(240, 213, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 213, 153, 0); }
}
@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes criticalFlash {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(199, 75, 54, 0.28); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(199, 75, 54, 0); }
}
@media (max-width: 900px) {
  .consult-countdown { max-width: 100%; }
}
@media (max-width: 640px) {
  .consult-countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .consult-countdown > div {
    min-height: 104px;
    padding: 14px 8px;
  }
  .consult-countdown strong {
    font-size: 2rem;
  }
  .consult-countdown small {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .urgency-note,
  .countdown-helper {
    font-size: 12px;
  }
}

/* ══════════════════════════════════════════════════════════════════
 * SEO 랜딩 페이지 전용 (사주/사주팔자/사주풀이 등)
 * 홈 디자인과 동일한 다크 테마 · 금빛 포인트 유지
 * ══════════════════════════════════════════════════════════════════ */

.page-seo {
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100vh;
}

.seo-main {
  background: var(--bg-0);
  position: relative;
  padding: 2.5rem 0 4rem;
}
.seo-main::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(201,169,97,0.04), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(168,50,30,0.03), transparent 50%);
  pointer-events: none;
}
.seo-article {
  position: relative;
  z-index: 1;
}
.seo-article > .wrap {
  max-width: 880px;
}

/* 빵부스러기 */
.breadcrumb {
  margin-bottom: 2rem;
}
.breadcrumb-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--font-accent);
}
.breadcrumb-list li {
  display: flex;
  align-items: center;
}
.breadcrumb-list li + li::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--gold-deep);
}
.breadcrumb-list a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border 0.2s;
}
.breadcrumb-list a:hover {
  border-bottom-color: var(--gold);
}
.breadcrumb-list li[aria-current="page"] {
  color: var(--text-2);
}

/* 페이지 헤더 */
.seo-article-head {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}
.seo-article-head .section-kicker {
  display: inline-block;
  font-family: var(--font-latin);
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-size: 12px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.seo-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0;
}

/* 본문 */
.seo-article-body {
  font-family: var(--font-body);
  line-height: 1.9;
  color: var(--text-1);
  font-size: 16.5px;
}

.content-intro {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px dotted var(--line);
}
.content-lead {
  font-size: 17px;
  line-height: 2;
  color: var(--text-1);
  margin: 0 0 1.2rem;
}
.content-lead strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.content-section {
  margin-bottom: 2.8rem;
}
.content-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  color: var(--paper);
  margin: 0 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold-deep);
  letter-spacing: -0.01em;
}
.content-section p {
  color: var(--text-1);
  line-height: 2;
  margin: 0 0 1rem;
}
.content-section p strong {
  color: var(--gold-bright);
  font-weight: 700;
}
.content-section a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px dotted var(--gold-deep);
}
.content-section a:hover {
  border-bottom-style: solid;
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.content-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.8rem;
  line-height: 1.85;
  color: var(--text-1);
  border-bottom: 1px dotted var(--line);
}
.content-list li:last-child {
  border-bottom: 0;
}
.content-list li::before {
  content: '◆';
  position: absolute;
  left: 0.3rem;
  top: 0.6rem;
  color: var(--gold-deep);
  font-size: 11px;
  line-height: 2;
}
.content-list li strong {
  color: var(--gold-bright);
  font-weight: 700;
}
ol.content-list {
  counter-reset: seo-ol;
}
ol.content-list li::before {
  content: counter(seo-ol, decimal-leading-zero);
  counter-increment: seo-ol;
  font-family: var(--font-latin);
  font-style: italic;
  color: var(--gold);
  font-size: 13px;
  top: 0.85rem;
  left: 0;
  width: 1.5rem;
}

/* 중간 CTA */
.cta-inline {
  margin: 3rem 0 2rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(168,50,30,0.12), rgba(201,169,97,0.08));
  border: 1px solid var(--gold-deep);
  border-radius: 6px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inline::before {
  content: '運';
  position: absolute;
  right: -20px;
  bottom: -50px;
  font-family: var(--font-display);
  font-size: 180px;
  color: var(--gold);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
}
.cta-inline-inner {
  position: relative;
  z-index: 1;
}
.cta-inline h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--paper);
  margin: 0 0 0.7rem;
  font-weight: 700;
}
.cta-inline p {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 0 1.5rem;
}
.cta-inline p s {
  color: var(--text-3);
  text-decoration-color: var(--cinnabar-light);
}
.cta-inline p strong {
  color: var(--gold-bright);
  font-size: 17px;
  font-weight: 800;
  margin-left: 0.3rem;
}

/* 관련 글 섹션 */
.related-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.related-section .section-title.center {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--paper);
  margin-bottom: 2rem;
  font-weight: 700;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.related-card {
  display: block;
  padding: 1.4rem 1.3rem 1.2rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-1);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-deep);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.related-topic {
  display: inline-block;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.related-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--paper);
  margin: 0 0 0.6rem;
  font-weight: 700;
  line-height: 1.4;
}
.related-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-3);
  margin: 0 0 1rem;
}
.related-arrow {
  display: inline-block;
  font-size: 12.5px;
  color: var(--gold);
  font-family: var(--font-accent);
}

/* 네비게이션 active */
.primary-nav a.nav-active,
.mobile-menu a.nav-active {
  color: var(--gold-bright);
}
.primary-nav a.nav-active::after {
  width: 100%;
}

/* 반응형 */
@media (max-width: 768px) {
  .seo-article > .wrap {
    padding: 0 1.2rem;
  }
  .seo-article-head {
    padding: 1rem 0 2rem;
    margin-bottom: 2rem;
  }
  .content-section h2 {
    font-size: 1.25rem;
  }
  .seo-article-body {
    font-size: 15.5px;
  }
  .cta-inline {
    padding: 1.8rem 1.2rem;
  }
  .cta-inline h3 {
    font-size: 1.15rem;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════════
 * 홈페이지 SEO 허브 (사주 백과 가이드)
 * ══════════════════════════════════════════════════════════════════ */
.seo-hub {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.seo-hub::before {
  content: '命';
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(20rem, 30vw, 32rem);
  color: var(--gold);
  opacity: 0.03;
  pointer-events: none;
  line-height: 0.8;
}
.seo-hub .section-head {
  margin-bottom: 3rem;
}
.seo-hub .section-sub {
  color: var(--text-2);
  font-size: 15.5px;
  max-width: 620px;
  margin: 1rem auto 0;
  line-height: 1.85;
}
.hub-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.hub-col {
  padding: 2rem 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.hub-col:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}
.hub-col-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--gold-deep);
  letter-spacing: -0.01em;
}
.hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hub-list li {
  border-bottom: 1px dotted var(--line);
}
.hub-list li:last-child {
  border-bottom: 0;
}
.hub-list a {
  display: block;
  padding: 0.8rem 0;
  color: var(--text-1);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.6;
  transition: color 0.2s, padding 0.2s;
  position: relative;
  padding-left: 1rem;
}
.hub-list a::before {
  content: '◇';
  position: absolute;
  left: 0;
  top: 0.85rem;
  color: var(--gold-deep);
  font-size: 10px;
  transition: color 0.2s, transform 0.2s;
}
.hub-list a:hover {
  color: var(--paper);
  padding-left: 1.2rem;
}
.hub-list a:hover::before {
  color: var(--gold);
  transform: scale(1.2);
}
.hub-list a strong {
  color: var(--gold-bright);
  font-weight: 700;
  margin-right: 0.3rem;
}

@media (max-width: 900px) {
  .hub-columns {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .hub-col {
    padding: 1.5rem 1.2rem;
  }
}

/* ══════════════════════════════════════════════════════════════════
 * PDF 저장 안내 박스 (success.html)
 * ══════════════════════════════════════════════════════════════════ */


/* Final hard override: report must never inherit dark site cards/backgrounds. */
#report-container { background: transparent !important; }
#report-container .rp-report {
  max-width: 920px !important;
  margin: 2rem auto !important;
  background: #f5eddc !important;
  color: #2a251a !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.40) !important;
  border-radius: 4px !important;
  overflow: visible !important;
}
#report-container .rp-cover,
#report-container .rp-toc,
#report-container .rp-page {
  background: #f5eddc !important;
  color: #2a251a !important;
}
#report-container .rp-report *,
#report-container .rp-page *,
#report-container .rp-toc *,
#report-container .rp-cover * {
  color: #2a251a;
  text-shadow: none !important;
}
#report-container .rp-card,
#report-container .rp-callout,
#report-container .rp-letter,
#report-container .rp-daeun-card,
#report-container .rp-month-card-rich,
#report-container .rp-pillar,
#report-container .rp-table,
#report-container .rp-cover-details {
  background: rgba(255, 250, 236, .72) !important;
  border-color: #c4b08a !important;
  color: #2a251a !important;
}
#report-container .rp-page-title,
#report-container .rp-cover-title,
#report-container .rp-h3,
#report-container .rp-h4 {
  color: #a8321e !important;
}
#report-container .rp-page-en,
#report-container .rp-toc-p,
#report-container .rp-cover-sub,
#report-container .rp-cover-hanja,
#report-container .rp-pillar-label,
#report-container .rp-pillar-role {
  color: #8a6f34 !important;
}
#report-container .rp-text,
#report-container .rp-lead,
#report-container .rp-list li,
#report-container .rp-list-ol li {
  color: #3a3320 !important;
}
#report-container .rp-text strong,
#report-container .rp-lead strong,
#report-container .rp-list strong,
#report-container .rp-list-ol strong {
  color: #a8321e !important;
}
#report-container .rp-table th {
  background: #e0d5b8 !important;
  color: #4a2a12 !important;
}
#report-container .rp-table td {
  background: rgba(255,255,255,.22) !important;
  color: #2a251a !important;
}

/* 마지막 강제 print override 제거: saju82 A4 인쇄 스타일 사용 */



/* Final PDF print correction — match saju82 reference PDF layout */
@media print {
  @page { size: A4; margin: 16mm 16mm 18mm 16mm; }
  html, body, main, #report-container, .rp-report, .rp-page, .rp-page-body, .rp-toc {
    background: #ffffff !important;
    background-color: #ffffff !important;
  }
  .rp-cover {
    background: #f9f3e4 !important;
    background-color: #f9f3e4 !important;
  }
  .rp-report {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .rp-page, .rp-cover, .rp-toc {
    page-break-after: always !important;
    break-after: page !important;
  }
  .rp-report > :last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
}
