/*
Theme Name: 사주종가
Description: 사주종가(poslab.kr) 전용 자식 테마. 가운데 휴대폰 폭 화면, 포스터 진열, 열두 띠, 무료 도구.
Template: generatepress
Version: 0.9.3
Text Domain: sajuforce
*/
/* 사주포스 시안 4차 공통 꾸밈 (첫 화면 v4.html, 글 화면 v4-post.html, 도구 화면 v4-tool.html)
   기준 레퍼런스: analysis/landing-refs
   - 틀·글꼴·색 수치, 포스터 글자 비율, 무료풀이 화면의 머리 그림·말풍선·입력 카드: 명운소
   - 원형 띠 그림 머리, 장 제목, 자주 묻는 질문, 붉은 단추: 명리닷컴
   - 조견표: 사주나루 */
:root {
  --bg: #faf6ee; --bg2: #f5efe2; --ink: #1a1a1a; --sub: #4a4034; --mute: #8a7c6c; --line: #e8dfc8;
  --accent: #a33b2a; --gold: #c9a961; --gold-soft: #e8d8a8; --night: #17131a;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Malgun Gothic', sans-serif;
  --serif: 'Noto Serif KR', 'AppleMyungjo', Batang, serif;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg2); scroll-behavior: smooth; }
body { font: 16px/24px var(--sans); color: var(--ink); word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
/* 가운데 휴대폰 폭 기둥. 컴퓨터에서는 양옆이 같은 한지색 여백으로 남는다. */
.col {
  position: relative; max-width: 480px; min-height: 100vh; margin: 0 auto; padding-bottom: 86px;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(74, 64, 52, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 64, 52, .035) 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 0 0 0 1px var(--line), 0 0 60px rgba(74, 64, 52, .08);
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* 머리띠 */
.head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 61px; padding: 0 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 9px; font: 900 26px/1 var(--serif); letter-spacing: -.02em; }
.logo img { width: 38px; height: 38px; }
.menu { width: 34px; height: 34px; display: grid; align-content: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.menu span { display: block; height: 2px; background: var(--sub); border-radius: 2px; }

/* 분류 탭 */
.tabs { position: sticky; top: 61px; z-index: 9; display: flex; gap: 22px; padding: 0 16px; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 14px 0 12px; font-weight: 700; font-size: 17px; color: var(--sub); border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--ink); border-color: var(--accent); }
.tabs a.free { color: var(--accent); }

/* 포스터(대표 넘김과 2열 격자에서 함께 쓴다).
   글자 크기는 카드 폭에 대한 비율(cqw)로 잡는다. 명운소 캡처 실측: 이름 약 4%, 제목 13~15%, 한마디 약 4.5%. */
.heroes { display: flex; gap: 10px; padding: 14px 4% 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.heroes::-webkit-scrollbar { display: none; }
.poster { position: relative; flex: none; display: block; overflow: hidden; container-type: inline-size; border-radius: 16px; background: var(--night); color: #fff; box-shadow: 0 10px 24px -12px rgba(26, 26, 26, .55); }
.heroes .poster { width: 100%; aspect-ratio: 4 / 5; scroll-snap-align: center; }
.poster .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .6s ease; }
.poster:hover .art { transform: scale(1.04); }
.poster::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(to top, rgba(10, 8, 12, .97) 0%, rgba(10, 8, 12, .78) 44%, transparent 100%); }
.poster .txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 16px 5.4cqw; text-align: center; }
.poster .who { display: flex; align-items: center; justify-content: center; gap: 3cqw; font-weight: 600; font-size: max(11px, 4.1cqw); letter-spacing: .5em; color: var(--gold-soft); }
.poster .who::before, .poster .who::after { content: ""; width: 9cqw; height: 1px; background: currentColor; opacity: .7; }
.poster h3 { font: 900 13.4cqw/1.16 var(--serif); letter-spacing: -.02em; text-wrap: balance; color: #fff4d8; text-shadow: 0 0 22px rgba(233, 200, 122, .65), 0 2px 3px rgba(0, 0, 0, .7); margin: 1.6cqw 0 2.4cqw; }
.poster .say { font: 700 max(13px, 4.7cqw)/1.4 var(--serif); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.badge { position: absolute; top: 14px; right: 14px; z-index: 1; background: var(--accent); color: #fff; font-weight: 800; font-size: 12.5px; line-height: 1; padding: 6px 9px; border-radius: 7px; }
.dots { display: flex; justify-content: center; gap: 7px; padding: 14px 0 6px; }
.dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--gold-soft); transition: width .25s, background-color .25s; }
.dots i.on { width: 18px; background: var(--accent); }

/* 한 줄 입구 */
.ask { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; margin: 14px 16px 0; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 6px 16px -12px rgba(74, 64, 52, .5); }
.ask img { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--gold); object-fit: cover; }
.ask b { display: block; font-size: 17px; letter-spacing: -.02em; }
.ask span { font-size: 14px; color: var(--sub); }
.ask em { font-style: normal; font-size: 22px; color: var(--mute); }

/* 구역 */
.sec { padding: 34px 16px 0; }
.sec .tag { font-size: 14px; font-weight: 700; color: var(--accent); }
.sec h2 { font: 700 22px/1.35 var(--serif); letter-spacing: -.02em; margin: 2px 0 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .poster { aspect-ratio: 4 / 5; }
.grid2 .poster .txt { padding: 0 8px 6cqw; }
.grid2 .poster .who { font-size: max(10.5px, 4.6cqw); letter-spacing: .42em; }
.grid2 .poster h3 { font-size: 15.5cqw; }
.grid2 .poster .say { font-size: max(12.5px, 5.9cqw); }
.grid2 .badge { top: 10px; right: 10px; font-size: 11.5px; }

/* 12띠 원형 그림 */
.tti { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; }
.tti a { text-align: center; font-size: 14.5px; font-weight: 700; color: var(--sub); }
.tti .ring { display: block; aspect-ratio: 1; margin-bottom: 6px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--gold); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--line); background: #e2d2ac; }
.tti .ring img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .4s ease; }
.tti a:hover .ring img { transform: scale(1.22); }
.tti a.on { color: var(--accent); }
.tti a.on .ring { border-color: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5.5px var(--accent); }
/* 한 줄로 밀어 보는 띠 바꾸기 */
.tti.row { display: flex; gap: 14px; margin: 0 -16px; padding: 6px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.tti.row::-webkit-scrollbar { display: none; }
.tti.row a { flex: none; width: 66px; font-size: 13.5px; }

/* 도구·글 목록 */
.rows a { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 15px 16px; margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.rows b { display: block; font-size: 16.5px; letter-spacing: -.02em; }
.rows span { font-size: 13.5px; color: var(--sub); }
.rows em { font-style: normal; font-size: 20px; color: var(--mute); }
.posts a { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.posts img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; object-position: 50% 12%; }
.posts b { display: block; font-size: 16px; line-height: 1.4; letter-spacing: -.02em; }
.posts span { font-size: 13px; color: var(--mute); }

.foot { margin-top: 40px; padding: 26px 16px 10px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--mute); }
.foot b { font: 900 18px var(--serif); color: var(--sub); }

/* 하단 탭 */
.tabbar { position: fixed; left: 50%; bottom: 0; z-index: 12; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0 10px; background: #fff; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -8px 20px -14px rgba(74, 64, 52, .5); }
.tabbar a { display: grid; justify-items: center; gap: 3px; font-size: 12.5px; color: var(--sub); }
.tabbar a.on { color: var(--accent); font-weight: 700; }
.tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ───── 안쪽 화면 ───── */

/* 길 안내 한 줄 */
.crumb { display: flex; gap: 6px; padding: 12px 16px; font-size: 13.5px; color: var(--mute); }
.crumb a { color: var(--sub); }

/* 머리 그림 1: 어두운 그림 위에 도장·금색 한 줄·명조 제목 (명운소 무료풀이 화면) */
.phero { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--night); color: #fff; }
.phero .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.phero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 72%; background: linear-gradient(to top, rgba(10, 8, 12, .97) 0%, rgba(10, 8, 12, .8) 46%, transparent 100%); }
.phero .txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 20px 26px; }
.seal { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 9px; background: var(--accent); border: 1.5px solid rgba(255, 244, 216, .45); font: 900 25px/1 var(--serif); color: #fff4d8; box-shadow: 0 8px 18px rgba(160, 60, 40, .5); }
.eye { font-weight: 700; font-size: 14.5px; letter-spacing: .1em; color: var(--gold-soft); }
.eye::after { content: ""; display: block; width: 42px; height: 2px; margin: 10px 0 12px; background: var(--gold); }
.phero h1 { font: 900 34px/1.25 var(--serif); letter-spacing: -.02em; }
.phero p { margin-top: 10px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .92); }

/* 머리 그림 2: 어두운 바탕 가운데 원형 수묵 그림 (명리닷컴 띠별 운세 화면) */
.zhero { padding: 30px 20px 30px; background: radial-gradient(120% 70% at 50% 28%, #2a2118 0%, var(--night) 62%); color: #fff; text-align: center; }
.zhero .medal { width: 58%; aspect-ratio: 1; margin: 0 auto 24px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 0 9px #1c1711, 0 0 0 10px rgba(201, 169, 97, .35), 0 20px 50px rgba(0, 0, 0, .6), 0 0 60px rgba(233, 200, 122, .18); background: #e2d2ac; }
.zhero .medal img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.zhero .eye { letter-spacing: .32em; font-weight: 600; }
.zhero .eye::after { display: none; }
.zhero h1 { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 10px; font: 900 31px/1.3 var(--serif); letter-spacing: -.02em; color: #fff4d8; }
.zhero h1 i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold); font: 700 21px/1 var(--serif); color: var(--gold-soft); }
.zhero p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.zhero .kw { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 18px; }
.zhero .kw span { padding: 6px 12px; border: 1px solid rgba(201, 169, 97, .5); border-radius: 999px; font-size: 13.5px; color: var(--gold-soft); }

/* 한눈에 보기 */
.sum { margin: 20px 16px 0; padding: 18px 18px 16px; background: #fff; border: 1.5px solid var(--gold); border-radius: 16px; box-shadow: 0 10px 28px -16px rgba(60, 40, 20, .35); }
.sum h2 { font: 700 18px/1.3 var(--serif); color: var(--accent); margin-bottom: 10px; }
.sum li { position: relative; list-style: none; padding: 7px 0 7px 22px; font-size: 16.5px; line-height: 1.55; border-top: 1px solid var(--line); }
.sum ul { padding: 0; }
.sum li:first-child { border-top: 0; }
.sum li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* 목차 */
.toc { margin: 14px 16px 0; padding: 16px 18px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; }
.toc b { font-size: 14px; color: var(--mute); }
.toc ol { margin-top: 6px; padding-left: 22px; font-size: 16px; line-height: 1.5; color: var(--sub); }
.toc li { padding: 5px 0; }
.toc li::marker { font-weight: 700; color: var(--accent); }

/* 글 본문 */
.prose { padding: 0 20px; font-size: 17px; line-height: 1.82; color: #2b2520; counter-reset: h; }
.prose h2 { position: relative; margin: 46px 0 4px; padding: 0 0 12px 42px; font: 700 23px/1.4 var(--serif); letter-spacing: -.02em; color: var(--ink); border-bottom: 1px solid var(--gold-soft); scroll-margin-top: 124px; counter-increment: h; }
.prose h2::before { content: counter(h); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: var(--accent); font: 800 16px/1 var(--sans); color: #fff4d8; }
.prose h3 { margin: 26px 0 0; font: 700 18.5px/1.45 var(--sans); letter-spacing: -.02em; }
.prose p { margin: 14px 0; }
.prose strong { background: linear-gradient(transparent 62%, #f3e2ad 62%); font-weight: 700; }
.prose .pic { margin: 20px -4px; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.prose .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.prose .note { margin: 18px 0; padding: 14px 16px; background: var(--bg2); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; font-size: 15.5px; line-height: 1.7; color: var(--sub); }

/* 조견표 */
.tbl { margin: 18px -4px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; text-align: center; }
.tbl th { padding: 11px 8px; background: var(--bg2); font-size: 14px; font-weight: 700; color: var(--sub); }
.tbl td { padding: 12px 8px; border-top: 1px solid var(--line); }
.tbl td:first-child { font-weight: 700; white-space: nowrap; }
.tbl td.l { text-align: left; }
.tbl tr.me td { background: #fdf3e4; }
.tbl em { font-style: normal; font-weight: 700; color: var(--accent); }

/* 자주 묻는 질문 */
.faq details { margin-bottom: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.faq summary { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 16px; font-weight: 700; font-size: 16.5px; line-height: 1.45; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font: 700 18px/1.3 var(--serif); color: var(--gold); }
.faq summary::after { content: ""; width: 9px; height: 9px; margin-top: 5px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { padding: 0 16px 16px 42px; font-size: 16px; line-height: 1.7; color: var(--sub); }

/* 맺음 단추 */
.cta { margin: 44px 16px 0; padding: 30px 20px 22px; background: var(--night); border-radius: 20px; text-align: center; color: #fff; }
.cta p { font: 500 21px/1.55 var(--serif); letter-spacing: -.02em; color: #fff4d8; }
.cta small { display: block; margin-top: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.btn { display: grid; place-items: center; width: 100%; min-height: 60px; margin-top: 18px; padding: 0 18px; border: 0; border-radius: 14px; background: var(--accent); font: 800 18px/1.2 var(--sans); letter-spacing: -.01em; color: #fff; box-shadow: 0 10px 28px rgba(160, 60, 40, .45); cursor: pointer; transition: opacity .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; box-shadow: none; cursor: default; }
.btn.gold { background: linear-gradient(#e8c87a, #d4b25c); color: #2a1a08; box-shadow: 0 10px 30px rgba(232, 200, 122, .42); }

/* 바깥으로 나가는 안내 한 줄(글당 하나) */
.more { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin: 26px 0 0; padding: 14px 16px; border: 1px dashed var(--gold); border-radius: 14px; font-size: 15px; line-height: 1.5; color: var(--sub); }
.more b { display: block; font-size: 16px; color: var(--ink); }

.meta { margin: 30px 20px 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.75; color: var(--mute); }

/* ───── 도구 화면 ───── */

/* 길잡이 인형과 말풍선 (명운소 무료풀이 화면의 캐릭터 말풍선) */
.guide { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: end; padding: 22px 16px 0; }
.guide img { width: 84px; height: 84px; object-fit: contain; mix-blend-mode: multiply; animation: bob 3.4s ease-in-out infinite; }
.guide small { display: block; margin: 0 0 4px 4px; font-size: 13.5px; font-weight: 700; color: #a8843a; }
.guide p { padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; font-size: 16.5px; line-height: 1.55; box-shadow: 0 4px 14px rgba(60, 40, 20, .08); }
@keyframes bob { 50% { transform: translateY(-5px); } }

/* 입력 카드 */
.form { margin: 14px 16px 0; padding: 22px 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 28px -14px rgba(60, 40, 20, .3); }
.form label, .form legend { display: block; margin-bottom: 8px; padding: 0; font-size: 15.5px; font-weight: 700; color: var(--sub); }
.form fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.sel3 { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; }
.form select { width: 100%; height: 56px; padding: 0 34px 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7c6c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 20px; font: 600 17px var(--sans); color: var(--ink); appearance: none; -webkit-appearance: none; }
.form select:focus { border-color: var(--accent); outline: 0; }
.form .hint { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--mute); text-align: center; }

/* 결과 카드 */
.result { margin: 16px 16px 0; padding: 26px 18px 20px; background: var(--night); border-radius: 20px; color: #fff; text-align: center; box-shadow: 0 18px 40px -18px rgba(26, 26, 26, .7); scroll-margin-top: 80px; animation: rise .55s cubic-bezier(.2, .8, .2, 1); }
.result[hidden] { display: none; }
.result .fig { width: 54%; aspect-ratio: 1; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 0 8px #1c1711, 0 0 0 9px rgba(201, 169, 97, .35), 0 0 60px rgba(233, 200, 122, .25); background: #e2d2ac; animation: bob 3.4s ease-in-out infinite; }
.result .fig img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.result .who { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14.5px; font-weight: 600; letter-spacing: .3em; color: var(--gold-soft); }
.result .who::before, .result .who::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .7; }
.result h2 { margin: 6px 0 4px; font: 900 52px/1.2 var(--serif); letter-spacing: -.02em; color: #fff4d8; text-shadow: 0 0 22px rgba(233, 200, 122, .6); }
.result .say { font: 500 16.5px/1.5 var(--serif); color: rgba(255, 255, 255, .9); }
.facts { margin: 20px 0 0; padding: 0; border-top: 1px solid rgba(232, 216, 168, .25); text-align: left; }
.facts li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; list-style: none; padding: 13px 4px; border-bottom: 1px solid rgba(232, 216, 168, .25); font-size: 16px; color: rgba(255, 255, 255, .78); }
.facts b { font-size: 17px; color: #fff; }
.facts b.hit { padding: 3px 10px; border-radius: 999px; background: var(--accent); font-size: 15px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dots i, .poster .art, .tti .ring img, .btn { transition: none; }
  .guide img, .result, .result .fig { animation: none; }
}

/* ───── 워드프레스에서만 필요한 꾸밈 (build.py 가 시안의 v4.css 뒤에 이어 붙인다) ───── */

/* 로고: 붉은 네 글자 도장 + 붓맛 명조 워드마크를 한 장의 그림으로 쓴다(원본은 mockup/logo.html) */
.logo img { width: auto; height: 40px; }
.logo-h1 { margin: 0; font-size: inherit; line-height: 1; }
.cta .eye3 { margin-bottom: 8px; font: 700 14px/1.3 var(--sans); letter-spacing: .2em; color: var(--gold); }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn[hidden] { display: none; }

/* 관리자 막대가 보일 때 붙어 있는 머리띠·탭 자리 */
.admin-bar .head { top: 32px; }
.admin-bar .tabs { top: 93px; }
@media (max-width: 782px) { .admin-bar .head { top: 46px; } .admin-bar .tabs { top: 107px; } }
@media (max-width: 600px) { .admin-bar .head { top: 0; } .admin-bar .tabs { top: 61px; } }

/* 메뉴 서랍 */
.drawer { position: relative; }
.drawer summary { list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer nav { position: absolute; right: 0; top: 44px; z-index: 20; min-width: 190px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 28px rgba(60, 40, 20, .14); }
.drawer nav { color: var(--ink); }
.drawer nav a { display: block; padding: 11px 12px; border-radius: 9px; font-weight: 600; font-size: 16px; }
.drawer nav a:hover { background: var(--bg2); }

/* 아직 만들지 않은 띠 */
.tti .soon { text-align: center; font-size: 14.5px; font-weight: 700; color: var(--mute); opacity: .5; }
.tti.row .soon { flex: none; width: 66px; font-size: 13.5px; }

/* 글자만 있는 머리(소개 등), 목록 제목, 빈 목록 */
.plain { padding: 32px 20px 0; }
.plain h1 { font: 900 30px/1.3 var(--serif); letter-spacing: -.02em; }
.sec h1.h { font: 700 26px/1.35 var(--serif); letter-spacing: -.02em; margin: 2px 0 14px; }
.empty { padding: 18px 0; color: var(--sub); }
.foot .links { display: flex; gap: 14px; margin-top: 10px; }
.foot .links a { color: var(--sub); text-decoration: underline; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }
.page-numbers { padding: 8px 13px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 띠 궁합 도구 */
.sel2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result .pair { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.result .pair .fig { width: 38%; margin: 0; }
.result .pair em { font: 900 26px/1 var(--serif); font-style: normal; color: var(--gold); }
.result h2.long, #gName { font-size: 34px; line-height: 1.3; }
.result .score { margin-top: 6px; font: 900 64px/1.1 var(--serif); color: var(--gold-soft); }
.result .score small { margin-left: 2px; font-size: 22px; }
.result .desc { margin-top: 14px; font-size: 16.5px; line-height: 1.75; color: rgba(255, 255, 255, .9); text-align: left; }
.facts b { text-align: right; }

/* ───── 랜딩(풀이 소개) 화면: 어두운 바탕. 문법은 명운소·명리닷컴·청월당 랜딩을 따른다 ───── */
.page-template-landing .tabs, .page-template-landing .tabbar { display: none; }
.page-template-landing .col { padding-bottom: 96px; background: #0b0a0d; color: #f3ece0; }
.page-template-landing .head { background: #0b0a0d; border-color: #2f2833; }
.page-template-landing .menu span { background: #d9cfc0; }
.page-template-landing .foot { border-color: #2f2833; color: #8f8794; }
.page-template-landing .foot b { color: #d9cfc0; }
.page-template-landing .foot .links a { color: #b9afa0; }
.lp-hero { position: relative; aspect-ratio: 4 / 5.6; overflow: hidden; background: var(--night); }
.lp-hero .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.lp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 68%; background: linear-gradient(to top, #0b0a0d 0%, rgba(11, 10, 13, .84) 46%, transparent 100%); }
.lp-hero .txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 20px 26px; text-align: center; }
.lp-hero .who { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; font-size: 15px; letter-spacing: .5em; color: var(--gold-soft); }
.lp-hero .who::before, .lp-hero .who::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.lp-hero h1 { margin: 8px 0 10px; font: 900 46px/1.18 var(--serif); letter-spacing: -.02em; color: #fff4d8; text-shadow: 0 0 22px rgba(233, 200, 122, .65), 0 2px 3px rgba(0, 0, 0, .7); }
.lp-hero .say { font: 700 18px/1.45 var(--serif); color: #fff; }
.lp-hero small, .lp-end small { display: block; margin-top: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.lp section { padding: 60px 20px 0; scroll-margin-top: 70px; }
.lp .eye2 { font-weight: 700; font-size: 14px; letter-spacing: .3em; color: var(--gold); }
.lp h2 { margin: 8px 0 18px; font: 700 27px/1.4 var(--serif); letter-spacing: -.02em; color: #fff; }
.lp .hook { text-align: center; }
.lp .hook h2 { font-size: 31px; font-weight: 900; }
.lp .hook p { font: 500 18px/1.85 var(--serif); color: #b9b0a6; }
.lp b.g { color: #f1d89f; font-weight: 700; }
.lp ul { padding: 0; }
.lp li { list-style: none; }
.lp .pain li { margin-bottom: 10px; padding: 16px 18px; background: #1a161e; border: 1px solid #2f2833; border-radius: 16px 16px 16px 4px; font-size: 16.5px; line-height: 1.55; }
.lp .chap { display: grid; grid-template-columns: 56px 1fr; gap: 0 10px; padding: 20px 0; border-top: 1px solid #2f2833; }
.lp .chap i { font: 700 13.5px/2 var(--sans); font-style: normal; color: var(--gold); }
.lp .chap b { font: 700 19px/1.4 var(--serif); color: #fff; }
.lp .chap p { grid-column: 2; margin-top: 9px; padding-top: 10px; border-top: 1px solid rgba(201, 169, 97, .3); font: 500 16px/1.8 var(--serif); color: #cfc6ba; }
.lp .tease { padding: 22px 20px 10px; background: #1a161e; border: 1px solid rgba(201, 169, 97, .35); border-radius: 18px; }
.lp .tease li { position: relative; padding: 0 0 14px 26px; font-size: 16.5px; font-weight: 600; line-height: 1.6; }
.lp .tease li::before { content: "✦"; position: absolute; left: 2px; color: #e3786a; }
.lp .tease u { padding: 0 16px; border-radius: 6px; background: rgba(255, 255, 255, .28); text-decoration: none; filter: blur(5px); user-select: none; }
.lp .note2 { margin-top: 14px; font-size: 14.5px; line-height: 1.7; color: #8f8794; text-align: center; }
.lp .tti a, .lp .tti .soon { color: #d9cfc0; }
.lp .tti .ring { box-shadow: 0 0 0 4px #0b0a0d, 0 0 0 5px rgba(201, 169, 97, .35); }
.lp .rows a { background: #1a161e; border-color: #2f2833; }
.lp .rows span { color: #b9b0a6; }
.lp .rows a.big { padding: 20px 18px; border-color: rgba(201, 169, 97, .5); }
.lp .rows a.big b { font-size: 19px; }
.lp .faq details { background: #1a161e; border-color: #2f2833; }
.lp .faq details p { color: #b9b0a6; }
.lp .posts a { border-color: #2f2833; }
.lp .posts span { color: #8f8794; }
.lp-end { margin-top: 64px; padding: 0 20px; text-align: center; }
.lp-end p { font: 500 23px/1.6 var(--serif); color: #fff4d8; }
.sticky { position: fixed; left: 50%; bottom: 0; z-index: 12; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 16px 14px; background: rgba(11, 10, 13, .88); border-top: 1px solid #2f2833; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sticky b { font: 700 16.5px/1.3 var(--serif); color: #fff; }
.sticky b span { display: block; margin-top: 3px; font: 700 14px/1 var(--sans); color: var(--gold-soft); }
.lp .gets li { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 15px 0; border-top: 1px solid #2f2833; font-size: 16px; line-height: 1.6; color: #cfc6ba; }
.lp .gets b { font: 700 16px/1.6 var(--serif); color: #f1d89f; }
.lp .pricebox { padding: 26px 20px 22px; background: #1a161e; border: 1px solid rgba(201, 169, 97, .5); border-radius: 18px; text-align: center; }
.lp .pricebox p { font: 700 17px/1.4 var(--serif); color: #d9cfc0; }
.lp .pricebox strong { display: block; margin: 6px 0 4px; font: 900 42px/1.2 var(--serif); color: #fff4d8; }
.lp .pricebox span { font-size: 14px; color: #8f8794; }
.lp .steps { padding: 0; counter-reset: st; }
.lp .steps li { position: relative; margin-bottom: 10px; padding: 16px 18px 16px 62px; background: #1a161e; border: 1px solid #2f2833; border-radius: 16px; font-size: 15.5px; line-height: 1.6; color: #b9b0a6; counter-increment: st; }
.lp .steps li::before { content: counter(st); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); font: 800 15px/1 var(--sans); color: #fff4d8; }
.lp .steps b { display: block; font-size: 17px; color: #fff; }

/* 주문서 */
.form.order { margin-top: -26px; position: relative; z-index: 2; }
.form.order fieldset { margin-bottom: 22px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.form.order legend { margin-bottom: 12px; font: 700 19px/1.3 var(--serif); color: var(--ink); }
.form.order label { margin-top: 12px; }
.form input[type=text], .form input[type=tel], .form input[type=email], .form input[type=date], .form input[type=time], .form textarea { width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); font: 600 17px/1.4 var(--sans); color: var(--ink); }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: 0; }
.form .sel2 label { margin-top: 12px; }
.form label.check { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--sub); }
.form label.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .err { margin-bottom: 16px; padding: 13px 15px; background: #fbebe7; border: 1px solid #e6b8ae; border-radius: 12px; font-weight: 700; font-size: 15.5px; color: var(--accent); }
.done .sum { margin-bottom: 4px; }
.done .bank { margin: 16px 0 4px; padding: 20px 18px; background: var(--night); border-radius: 16px; color: #fff; text-align: center; }
.done .bank p { font-size: 14.5px; color: var(--gold-soft); }
.done .bank strong { display: block; margin: 8px 0 10px; font: 700 18.5px/1.5 var(--sans); color: #fff4d8; }
.done .bank span { font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .7); }
.foot .biz { margin-top: 8px; }

/* 만세력: 네 기둥(시·일·월·년). 글자 색은 오행(나무·불·흙·쇠·물) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 16px; }
.pillars:empty { display: none; }
.pillars div { display: grid; gap: 6px; justify-items: center; }
.pillars small { font-size: 13px; color: var(--gold-soft); }
.pillars b { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 12px; font: 900 34px/1 var(--serif); color: #fff; }
.pillars span { font-size: 14px; color: rgba(255, 255, 255, .8); }
.pillars .wood { background: #3f7d4f; }
.pillars .fire { background: #b8402e; }
.pillars .earth { background: #a98236; }
.pillars .metal { background: #8d939c; }
.pillars .water { background: #2f4f86; }
.pillars .none { background: #2f2833; color: #8f8794; }
#mName { font-size: 28px; line-height: 1.35; }
.sticky .btn { width: auto; min-height: 52px; margin: 0; padding: 0 22px; font-size: 16.5px; }

/* 글쓰기 화면의 기본 블록을 시안 모양에 맞춘다 */
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a.more, .prose a.btn, .prose .rows a { text-decoration: none; }
.prose .rows a { color: inherit; line-height: 1.5; }
.prose .rows { margin: 18px -4px; }
.prose .tti { margin: 22px -4px; }
.prose .tti a { color: var(--sub); text-decoration: none; }
.prose a.btn { color: #fff; }
.prose ul, .prose ol { margin: 14px 0; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose img { height: auto; border-radius: 16px; }
.prose .wp-block-image { margin: 20px -4px; }
.prose .wp-block-image figcaption, .prose .wp-block-table figcaption { margin-top: 8px; font-size: 13.5px; color: var(--mute); text-align: center; }
.prose blockquote { margin: 18px 0; padding: 14px 16px; background: var(--bg2); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; font-size: 15.5px; line-height: 1.7; color: var(--sub); }
.prose blockquote p { margin: 0; }
.prose .wp-block-table { margin: 18px -4px; overflow-x: auto; }
.prose .wp-block-table table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; font-size: 15.5px; line-height: 1.5; text-align: center; }
.prose .wp-block-table th, .prose .wp-block-table td { padding: 12px 8px; border: 0; border-top: 1px solid var(--line); }
.prose .wp-block-table thead th { padding: 11px 8px; border-top: 0; border-bottom: 0; background: var(--bg2); font-size: 14px; font-weight: 700; color: var(--sub); }
.prose .wp-block-table thead { border-bottom: 0; }
.prose .wp-block-table td:first-child { font-weight: 700; white-space: nowrap; }
.prose details { margin: 8px -4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.prose details summary { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 16px; font-weight: 700; font-size: 16.5px; line-height: 1.45; cursor: pointer; list-style: none; }
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::before { content: "Q"; font: 700 18px/1.3 var(--serif); color: var(--gold); }
.prose details summary::after { content: ""; width: 9px; height: 9px; margin-top: 5px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .2s; }
.prose details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.prose details > :not(summary) { margin: 0; padding: 0 16px 16px 42px; font-size: 16px; line-height: 1.7; color: var(--sub); }

/* 오늘의 운세: 머리 그림 → 12띠 바로 가기 → 띠별 카드 */
.today-hero { aspect-ratio: 4 / 5; }
.today-hero .txt b { color: var(--gold-soft); }
.today-jump small { display: block; margin-top: 2px; font-size: 11px; letter-spacing: 1px; color: var(--gold); }
.today-note { margin-top: 18px; padding: 12px 14px; background: var(--bg2); border-radius: 12px; font-size: 14px; line-height: 1.65; color: var(--sub); }
.today-note a { font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.today-list { padding: 22px 16px 0; }
.today-card { margin-bottom: 14px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 28px -18px rgba(60, 40, 20, .35); scroll-margin-top: 124px; }
.today-card .top { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.today-card .ring { display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--gold); background: #e2d2ac; }
.today-card .ring img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.today-card h2 { font: 700 19px/1.3 var(--serif); letter-spacing: -.02em; }
.today-card .stars { margin: 3px 0 1px; font-size: 16px; line-height: 1.2; letter-spacing: 1px; color: var(--gold); }
.today-card .stars i { font-style: normal; color: var(--line); }
.today-card .top small { font-size: 12.5px; color: var(--mute); }
.today-card .rel { display: inline-block; margin-top: 14px; padding: 4px 11px; border-radius: 999px; background: var(--bg2); font-size: 13.5px; font-weight: 700; color: var(--accent); }
.today-card .all { margin-top: 10px; font: 700 17.5px/1.6 var(--serif); letter-spacing: -.01em; }
.today-card ul { margin-top: 12px; padding: 0; border-top: 1px solid var(--line); }
.today-card li { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); list-style: none; font-size: 15.5px; line-height: 1.6; color: var(--sub); }
.today-card li b { font-size: 14px; color: var(--ink); }
.today-card .word { margin-top: 12px; padding: 12px 14px; background: var(--bg2); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; font: 600 15.5px/1.6 var(--serif); color: var(--sub); }
.today-card .go { display: inline-block; margin-top: 12px; font-size: 14.5px; font-weight: 700; color: var(--accent); }
.cta .btn + .btn { margin-top: 10px; }

/* 카카오톡 상담 버튼(2026-10-12): 가운데 기둥의 오른쪽 아래, 하단 탭·고정 단추 위 */
.kakao-fab { position: fixed; z-index: 13; right: max(14px, calc(50% - 226px)); bottom: 92px; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px 0 13px; border-radius: 999px; background: #fee500; color: #191919; font: 700 14.5px/1 var(--sans); text-decoration: none; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); }
.kakao-fab svg { width: 21px; height: 21px; fill: #191919; }
.page-template-landing .kakao-fab { bottom: 98px; }
/* 주문서에서는 입력 칸을 가리지 않게 숨긴다(주문서 아래 카톡 링크가 있다) */
.page-template-order .kakao-fab { display: none; }
.lp-end .ask { display: inline-block; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: #fee500; }
.form.order + .hint a, .hint a { text-decoration: underline; text-underline-offset: 3px; }

/* 정가·특가 (2026-10-13): 정가는 줄긋기, 할인율은 붉게, 특가는 굵게 */
.sfp s { opacity: .6; font-weight: 400; }
.sfp em { font-style: normal; font-weight: 800; color: #e0533d; }
.sfp b { font-weight: 800; }
.sticky b span s { opacity: .55; font-weight: 400; }
.sticky b span em { font-style: normal; color: #ff7a5c; }
.lp .pricebox .was { display: block; margin-top: 8px; font-size: 15px; color: #8f8794; }
.lp .pricebox strong em { font-style: normal; font-size: .6em; color: #ff7a5c; vertical-align: .18em; margin-right: 4px; }
