/*
Theme Name: Gilil
Description: 길일 — 만세력 기반 사주 리포트·손없는날 도구형 테마 (한지·붓글씨 톤)
Version: 2.0.1
Requires PHP: 7.4
Text Domain: gilil
*/

/* ==========================================================
   0. 기본값
   ========================================================== */
:root {
	--paper: #f6f1e6;
	--sheet: #fbf8f1;
	--ink: #1f1b16;
	--ink2: #564d43;
	--ink3: #8c8276;
	--line: rgba(31, 27, 22, .14);
	--line2: rgba(31, 27, 22, .3);
	--seal: #a3322a;
	--moss: #5d6b4c;
	--wood: #5f7f55;
	--fire: #b4543f;
	--earth: #a9844a;
	--metal: #8a8781;
	--water: #3e5a78;
	--wrap: 1160px;
	--read: 720px;
	--sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	--serif: "Nanum Myeongjo", "Noto Serif KR", "AppleMyungjo", serif;
	--hanji: url("assets/img/hanji.jpg");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper) var(--hanji) center top / 640px repeat; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; vertical-align: top; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; left: 12px; top: 12px; z-index: 999; width: auto; height: auto; clip: auto; padding: 8px 14px; background: var(--sheet); border: 1px solid var(--ink); }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.col { width: 100%; max-width: calc(var(--read) + 48px); margin: 0 auto; padding: 0 24px; }

/* 붓글씨 (吉日) — 획 순서대로 마스크가 열린다 */
.brush { display: inline-flex; gap: .02em; line-height: 0; color: var(--ink); }
.brush__c { width: 1em; height: 1em; fill: currentColor; overflow: visible; }
.brush .st { stroke-dasharray: 1; stroke-dashoffset: 1; }
.brush.is-play .st { animation: gl-draw .48s cubic-bezier(.55, .05, .55, .95) forwards; animation-delay: calc(var(--i) * .32s + .3s); }
.brush.is-done .st { stroke-dashoffset: 0; }
@keyframes gl-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .brush .st { animation: none !important; stroke-dashoffset: 0; } }

/* 도장 */
.seal { display: inline-grid; grid-template-columns: 1fr 1fr; place-items: center; width: 30px; height: 30px; padding: 3px; border-radius: 3px; background: var(--seal); color: #f7e9df; font-family: var(--serif); font-size: 10.5px; font-weight: 800; line-height: 1; box-shadow: inset 0 0 0 1.5px rgba(247, 233, 223, .75); transform: rotate(-3deg); }
.seal i { font-style: normal; }

/* ==========================================================
   1. 머리
   ========================================================== */
.hd { position: sticky; top: 0; z-index: 40; background: rgba(246, 241, 230, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.gnb { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink2); }
.gnb a { position: relative; padding: 6px 0; }
.gnb a:hover, .gnb a.is-on { color: var(--ink); }
.gnb a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--seal); }
.hd__cta { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; }
.hd__cta:hover { background: #000; }
.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; margin-left: auto; border: 1px solid var(--line2); background: transparent; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.drawer { position: fixed; inset: 68px 0 0; z-index: 39; background: var(--paper) var(--hanji) center / 640px; overflow-y: auto; padding: 12px 0 120px; }
.drawer__label { margin: 24px 0 6px; font-size: 12px; color: var(--ink3); letter-spacing: .12em; }
.drawer__list a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 18px; font-weight: 700; }
.drawer__list a::after { content: "→"; color: var(--ink3); font-family: var(--sans); }
.drawer__sub { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 28px; font-size: 13px; color: var(--ink2); }

/* ==========================================================
   2. 공통 조각
   ========================================================== */
.page { padding: 0 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em; color: var(--ink3); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.sec { padding: 104px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec__head { max-width: 640px; margin-bottom: 48px; }
.sec__t { margin-top: 14px; font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.42; letter-spacing: -.03em; }
.sec__d { margin-top: 14px; font-size: 16px; color: var(--ink2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 26px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 15.5px; font-weight: 600; transition: background .15s; }
.btn:hover { background: #000; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: rgba(31, 27, 22, .06); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.fine { margin-top: 18px; font-size: 12.5px; line-height: 1.7; color: var(--ink3); }

/* 종이 한 장 */
.sheet { position: relative; background: var(--sheet) var(--hanji) center / 520px; border: 1px solid var(--line); box-shadow: 0 18px 40px -22px rgba(60, 45, 25, .35), 0 2px 6px -2px rgba(60, 45, 25, .12); }

/* 스크롤 등장 */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ==========================================================
   3. 홈
   ========================================================== */
.hero { position: relative; overflow: hidden; min-height: 660px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; filter: saturate(.8); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 241, 230, .95) 0%, rgba(246, 241, 230, .84) 36%, rgba(246, 241, 230, 0) 70%); }
.hero__in { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 96px; }
.hero .brush { font-size: 136px; }
.hero__t { margin-top: 28px; font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1.42; letter-spacing: -.035em; }
.hero__d { max-width: 470px; margin-top: 16px; font-size: 16.5px; color: var(--ink2); }
.hero__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero__note { margin-top: 18px; font-size: 13px; color: var(--ink3); }
.hero .fade { opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform .9s ease; }
.hero.is-ready .fade { opacity: 1; transform: none; }
.hero.is-ready .fade:nth-of-type(2) { transition-delay: .15s; }
.hero.is-ready .fade:nth-of-type(3) { transition-delay: .3s; }
.hero.is-ready .fade:nth-of-type(4) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .hero .fade { opacity: 1; transform: none; transition: none; } }

/* 오늘의 만세력 */
.today { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.today__date { font-family: var(--serif); font-size: 19px; font-weight: 700; }
.today__big { font-size: 14.5px; color: var(--ink2); }
.today__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.today__tags span { padding: 3px 12px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; color: var(--ink2); }
.today__tags .is-good { border-color: var(--seal); color: var(--seal); }

/* 리포트 미리보기 */
.preview { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.pv-stack { position: relative; height: 540px; }
.pv-stack .sheet { position: absolute; width: 330px; aspect-ratio: 210 / 297; padding: 34px 30px; transition: transform .5s ease; }
.pv-stack .sheet:nth-child(1) { left: 0; top: 46px; transform: rotate(-5deg); }
.pv-stack .sheet:nth-child(2) { left: 120px; top: 14px; transform: rotate(2deg); }
.pv-stack .sheet:nth-child(3) { left: 236px; top: 56px; transform: rotate(6deg); }
.pv-stack:hover .sheet:nth-child(1) { transform: rotate(-8deg) translateX(-12px); }
.pv-stack:hover .sheet:nth-child(3) { transform: rotate(9deg) translateX(12px); }
.pv-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pv-cover .brush { font-size: 76px; }
.pv-cover p { margin-top: 20px; font-family: var(--serif); font-size: 19px; font-weight: 700; }
.pv-cover small { margin-top: 6px; font-size: 11px; color: var(--ink3); letter-spacing: .1em; }
.pv-h { font-family: var(--serif); font-size: 15px; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.pv-pillars { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; text-align: center; font-family: var(--serif); font-size: 22px; font-weight: 700; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.pv-pillars span { padding: 6px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pv-lines { margin-top: 16px; display: grid; gap: 8px; }
.pv-lines i { display: block; height: 5px; border-radius: 3px; background: rgba(31, 27, 22, .09); }
.pv-lines i:nth-child(3n) { width: 70%; }
.pv-bars { margin-top: 16px; display: grid; gap: 8px; }
.pv-bars i { display: block; height: 6px; opacity: .75; }
.points { border-top: 1px solid var(--ink); }
.points li { display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.points b { grid-row: span 2; font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--seal); line-height: 1.3; }
.points strong { font-family: var(--serif); font-size: 18.5px; font-weight: 700; }
.points p { font-size: 14.5px; color: var(--ink2); }
.preview__act { margin-top: 32px; }

/* 목차 — 세로쓰기 */
.toc { display: grid; grid-template-columns: repeat(9, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); direction: rtl; }
.toc li { direction: ltr; writing-mode: vertical-rl; display: flex; align-items: center; gap: 14px; height: 340px; padding: 24px 0; border-left: 1px solid var(--line); }
.toc li:last-child { border-left: 0; }
.toc em { font-style: normal; font-family: var(--serif); font-size: 13px; color: var(--seal); }
.toc b { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; flex-shrink: 0; }
.toc em, .toc span { white-space: nowrap; flex-shrink: 0; }
.toc span { font-size: 13px; color: var(--ink3); letter-spacing: .04em; }

/* 받는 순서 */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.steps__img { overflow: hidden; border: 1px solid var(--line); }
.steps__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.85); }
.steps ol li { position: relative; padding: 0 0 32px 64px; }
.steps ol li i { position: absolute; left: 0; top: -4px; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: 50%; font-style: normal; font-family: var(--serif); font-size: 17px; font-weight: 700; background: var(--paper); }
.steps ol li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 6px; width: 1px; background: var(--line2); }
.steps ol li:last-child::after { display: none; }
.steps strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 700; }
.steps p { margin-top: 4px; font-size: 14.5px; color: var(--ink2); }

/* 도구 */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool { display: flex; flex-direction: column; min-height: 230px; padding: 32px 28px; transition: transform .25s; }
.tool:hover { transform: translateY(-4px); }
.tool__ic { font-family: var(--serif); font-size: 48px; font-weight: 700; line-height: 1; opacity: .85; }
.tool__t { margin-top: auto; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.tool__d { margin-top: 6px; font-size: 14px; color: var(--ink2); }
.tool__go { margin-top: 16px; font-size: 13px; color: var(--seal); }

/* 안내 */
.notice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.notice h3 { padding-top: 16px; border-top: 1px solid var(--ink); font-family: var(--serif); font-size: 18px; font-weight: 700; }
.notice p { margin-top: 8px; font-size: 14.5px; color: var(--ink2); }

/* 최신 글 */
.home-posts { display: grid; grid-template-columns: 280px 1fr; gap: 56px; }

/* ==========================================================
   4. 도구 페이지
   ========================================================== */
.ph { padding: 72px 0 40px; text-align: center; }
.ph__mark { font-family: var(--serif); font-size: 56px; font-weight: 700; line-height: 1; opacity: .85; }
.ph .brush { font-size: 72px; }
.ph__t { margin-top: 20px; font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.ph__d { max-width: 560px; margin: 12px auto 0; font-size: 15.5px; color: var(--ink2); }
.gl-tool { padding-bottom: 24px; }

/* 신청서 */
.apply { max-width: 720px; margin: 0 auto; padding: 56px 60px 48px; }
.apply__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.apply__head h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.apply__head .seal { width: 44px; height: 44px; font-size: 15px; flex-shrink: 0; }
.apply__sub { margin-top: 12px; font-size: 13.5px; color: var(--ink3); }
.frow { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.frow > .f-label { padding-top: 11px; font-family: var(--serif); font-size: 16px; font-weight: 700; }
.f-help { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink3); }
.f-row { display: grid; gap: 12px; }
.f-row--3 { grid-template-columns: 1.3fr 1fr 1fr; }
.f-row--2 { grid-template-columns: 1fr 1fr; }
.inp, .sel { width: 100%; height: 46px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; background: transparent; font-size: 16px; appearance: none; -webkit-appearance: none; }
.sel { padding-right: 24px; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23564d43' stroke-width='1.4'/%3E%3C/svg%3E") right 2px center / 14px no-repeat; }
.sel:disabled { opacity: .45; }
.inp::placeholder { color: #ada395; }
.inp:focus, .sel:focus { outline: 0; border-bottom-color: var(--ink); }
.seg { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 11px; }
.seg label, .chk { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; cursor: pointer; }
.chk { margin-top: 12px; margin-right: 18px; font-size: 14px; color: var(--ink2); }
.seg input, .chk input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 0; border: 1px solid var(--ink2); border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; }
.chk input { border-radius: 2px; }
.seg input:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--seal); }
.chk input:checked { background: var(--seal); border-color: var(--seal); }
.chk input:checked::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.chk input:disabled { opacity: .35; }
.agree { margin-top: 26px; padding: 18px 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .35); }
.agree .chk { margin: 0; color: var(--ink); font-size: 14.5px; }
.agree p { margin-top: 8px; font-size: 12.5px; line-height: 1.75; color: var(--ink2); }
.f-err { margin-top: 16px; font-size: 14px; color: var(--seal); }
.apply__act { display: grid; gap: 10px; margin-top: 26px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 22px; font-size: 13px; color: var(--ink3); }

/* 보냄 상태 */
.status { max-width: 720px; margin: 28px auto 0; padding: 22px 26px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .45); }
.status__t { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.status__d { margin-top: 4px; font-size: 14.5px; color: var(--ink2); }
.status.is-ok { border-color: var(--moss); }
.status.is-err { border-color: var(--seal); }
.status__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.status__act .btn { height: 44px; padding: 0 18px; font-size: 14px; }
.prog { height: 2px; margin-top: 14px; background: var(--line); overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s; }

/* ==========================================================
   5. 사주 리포트 (화면 = PDF 원본, A4 794×1123)
   ========================================================== */
.report { display: grid; gap: 28px; margin-top: 36px; }
.rp { width: 100%; max-width: 794px; margin: 0 auto; padding: 68px 72px 76px; }
.rp__no { position: absolute; right: 34px; bottom: 26px; font-family: var(--serif); font-size: 12px; color: var(--ink3); }
.rp__h { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.rp__h b { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--seal); letter-spacing: .06em; }
.rp__h h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.rp__h + * { margin-top: 22px; }
.rp p { font-size: 15px; line-height: 1.95; }
.rp .lead { font-family: var(--serif); font-size: 18px; line-height: 1.8; }
.rp .tx { margin-top: 14px; color: #2f2922; }
.rp .tx b { font-weight: 700; background: linear-gradient(transparent 62%, rgba(163, 50, 42, .14) 0); }
.rp .sub { margin-top: 30px; font-family: var(--serif); font-size: 17px; font-weight: 700; }
.rp-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 1060px; text-align: center; }
.rp-cover .brush { font-size: 156px; }
.rp .rp-cover__t { margin-top: 48px; font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.rp .rp-cover__d { margin-top: 14px; font-size: 15px; color: var(--ink2); }
.rp-cover__seal { margin-top: 56px; }
.rp-cover__seal .seal { width: 58px; height: 58px; font-size: 20px; }
.rp .rp-cover__f { position: absolute; left: 0; right: 0; bottom: 56px; font-size: 12.5px; color: var(--ink3); letter-spacing: .06em; }

.wonguk { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line2); }
.wonguk > div { border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); text-align: center; }
.wonguk .h { padding: 8px 0; font-size: 13px; color: var(--ink2); border-bottom: 1px solid var(--line2); }
.wonguk .is-me .h { color: var(--seal); font-weight: 700; }
.wonguk .c { padding: 14px 0 10px; font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1.1; }
.wonguk .c small { display: block; margin-top: 6px; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink3); }
.wonguk .c + .c { border-top: 1px dashed var(--line); }
.wonguk .s { padding: 7px 0; font-size: 12.5px; color: var(--ink2); border-top: 1px solid var(--line2); }
.wonguk .is-empty .c { color: var(--ink3); font-size: 17px; padding: 31px 0; }
.tx-목 { color: var(--wood); } .tx-화 { color: var(--fire); } .tx-토 { color: var(--earth); } .tx-금 { color: #6f6c66; } .tx-수 { color: var(--water); }
.bg-목 { background: var(--wood); } .bg-화 { background: var(--fire); } .bg-토 { background: var(--earth); } .bg-금 { background: var(--metal); } .bg-수 { background: var(--water); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 22px; font-size: 14px; }
.meta dt { color: var(--ink3); }
.bars { display: grid; gap: 12px; }
.bar { display: grid; grid-template-columns: 64px 1fr 30px; align-items: center; gap: 12px; font-size: 14px; }
.bar b { font-family: var(--serif); font-weight: 700; }
.bar__track { height: 8px; background: rgba(31, 27, 22, .07); }
.bar__fill { display: block; height: 100%; opacity: .85; }
.bar__n { text-align: right; color: var(--ink2); }
.kv { border-top: 1px solid var(--line2); }
.kv div { display: grid; grid-template-columns: 210px 44px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv dt { font-family: var(--serif); font-weight: 700; }
.kv dd { color: var(--ink2); }
.kv dd.n { color: var(--seal); }
.daeun { display: grid; grid-template-columns: repeat(9, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.daeun li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.daeun li.is-now { background: rgba(163, 50, 42, .07); }
.daeun__age { padding: 6px 0; font-size: 12px; color: var(--ink3); border-bottom: 1px solid var(--line); }
.daeun__gz { padding: 10px 0 2px; font-family: var(--serif); font-size: 19px; font-weight: 700; }
.daeun__ss { padding-bottom: 8px; font-size: 11.5px; color: var(--ink2); }
.daeun li.is-now .daeun__age { color: var(--seal); font-weight: 700; }
.months { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.month { padding: 11px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.month__m { font-family: var(--serif); font-size: 15px !important; font-weight: 700; line-height: 1.5 !important; }
.month__gz { font-size: 12px !important; color: var(--ink3); line-height: 1.5 !important; }
.month__k { margin-top: 3px; font-size: 12.5px !important; line-height: 1.6 !important; color: var(--ink2); }
.month.is-now { background: rgba(163, 50, 42, .07); }
.month.is-now .month__m { color: var(--seal); }
.tip { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tip b { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.tip span { font-size: 14.5px; color: var(--ink2); }
.rp-end { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line2); font-size: 12.5px !important; color: var(--ink3); }
.res__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* PDF 캡처용 — 화면 밖 고정 폭 */
.pdf-stage { position: fixed; left: -10000px; top: 0; width: 794px; }
.pdf-stage .rp { width: 794px; max-width: none; height: 1123px; overflow: hidden; box-shadow: none; border: 0; margin: 0; }

/* ==========================================================
   6. 손없는날·만세력·띠
   ========================================================== */
.panel { max-width: 860px; margin: 0 auto; padding: 44px 48px; }
.panel + .panel { margin-top: 28px; }
.panel__t { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.panel__d { margin-top: 4px; font-size: 14px; color: var(--ink2); }
.cal__nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.cal__ym { font-family: var(--serif); font-size: 26px; font-weight: 700; min-width: 180px; text-align: center; }
.cal__btn { width: 42px; height: 42px; border: 1px solid var(--line2); border-radius: 50%; background: transparent; font-size: 18px; }
.cal__btn:hover { border-color: var(--ink); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 26px; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.cal__w { padding: 8px 0; text-align: center; font-size: 13px; color: var(--ink2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line2); }
.cal__w:first-child { color: var(--seal); }
.cal__w:nth-child(7) { color: var(--water); }
.cal__d { position: relative; min-height: 86px; padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; font-family: var(--serif); font-size: 17px; font-weight: 700; }
.cal__d small { font-family: var(--sans); font-size: 11.5px; font-weight: 400; color: var(--ink3); line-height: 1.3; }
.cal__d.is-out { background: rgba(31, 27, 22, .025); }
.cal__d.is-sun { color: var(--seal); }
.cal__d.is-sat { color: var(--water); }
.cal__d.is-son::after { content: "손없음"; position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid var(--seal); border-radius: 50%; color: var(--seal); font-family: var(--serif); font-size: 10px; font-weight: 800; letter-spacing: -.06em; transform: rotate(-8deg); opacity: .9; }
.cal__d.is-today { background: rgba(31, 27, 22, .05); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--ink2); }
.legend i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border: 1.5px solid var(--seal); border-radius: 50%; vertical-align: -2px; }
.sonlist { margin-top: 26px; border-top: 1px solid var(--line2); }
.sonlist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 16px; font-weight: 700; }
.sonlist li span { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink2); text-align: right; }
.res-kv { display: grid; grid-template-columns: 110px 1fr; margin-top: 26px; border-top: 1px solid var(--ink); }
.res-kv dt, .res-kv dd { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.res-kv dt { font-family: var(--serif); font-weight: 700; }
.res-kv dd { color: var(--ink2); }
.res-kv dd b { color: var(--ink); font-family: var(--serif); }
.zodiac { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 18px; border-top: 1px solid var(--line2); border-left: 1px solid var(--line); }
.zodiac button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 0; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; font-size: 13px; color: var(--ink2); }
.zodiac button b { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); }
.zodiac button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.zodiac button[aria-pressed="true"] b { color: var(--paper); }

/* ==========================================================
   7. 글
   ========================================================== */
.list-h { padding: 72px 0 32px; text-align: center; }
.list-h h1 { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.list-h p { max-width: 560px; margin: 10px auto 0; color: var(--ink2); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin-bottom: 28px; font-size: 15px; color: var(--ink3); }
.tabs a { padding: 4px 0; }
.tabs a.is-on { color: var(--ink); border-bottom: 1.5px solid var(--seal); }
.posts { border-top: 1px solid var(--ink); }
.post-card { display: grid; grid-template-columns: 1fr 120px; gap: 24px; align-items: center; padding: 24px 4px; border-bottom: 1px solid var(--line); }
.post-card__th { order: 2; width: 120px; height: 84px; overflow: hidden; display: grid; place-items: center; background: rgba(31, 27, 22, .05); font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink3); }
.post-card__th img { width: 100%; height: 100%; object-fit: cover; }
.post-card__cat { font-size: 12.5px; color: var(--seal); }
.post-card__t { display: block; margin-top: 4px; font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.5; }
.post-card__d { display: block; margin-top: 6px; font-size: 13px; color: var(--ink3); }
.post-card:hover .post-card__t { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.paging { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.paging a, .paging span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; font-family: var(--serif); font-size: 15px; }
.paging .current { border-bottom: 1.5px solid var(--seal); }
.empty { padding: 56px 0; text-align: center; color: var(--ink3); border-bottom: 1px solid var(--line); }

.art { padding: 60px 0 0; }
.crumb { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--ink3); }
.crumb li + li::before { content: "/"; margin: 0 6px; color: var(--line2); }
.art__h1 { margin-top: 18px; font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1.42; letter-spacing: -.035em; }
.art__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line2); font-size: 13.5px; color: var(--ink3); }
.art__meta a { text-decoration: underline; text-underline-offset: 3px; }
.art__thumb { margin-top: 28px; }
.ct { margin-top: 32px; font-size: 17px; line-height: 1.95; color: #2b251f; }
.ct > * + * { margin-top: 1.1em; }
.ct p:empty { display: none; }
.ct a { color: var(--seal); text-decoration: underline; text-underline-offset: 3px; }
.ct h2 { margin-top: 2.4em; padding-top: 18px; border-top: 1px solid var(--ink); font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; scroll-margin-top: 84px; }
.ct > h2:first-child { margin-top: 0; }
.ct h3 { margin-top: 1.9em; font-family: var(--serif); font-size: 20px; font-weight: 700; scroll-margin-top: 84px; }
.ct ul { padding-left: 1.2em; list-style: disc; }
.ct ol { padding-left: 1.3em; list-style: decimal; }
.ct li + li { margin-top: .35em; }
.ct strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(163, 50, 42, .13) 0); }
.ct blockquote { margin: 1.4em 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--seal); font-family: var(--serif); color: var(--ink2); }
.ct .wp-block-table, .ct .tbl { overflow-x: auto; }
.ct table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; border-top: 1px solid var(--ink); }
.ct th, .ct td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ct th, .ct thead td { font-family: var(--serif); font-weight: 700; white-space: nowrap; background: rgba(31, 27, 22, .03); }
.ct figcaption { margin-top: 8px; font-size: 13px; color: var(--ink3); }
.ct details { border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); }
.ct details + details { margin-top: 0; border-top: 0; }
.ct summary { padding: 14px 4px; font-family: var(--serif); font-weight: 700; cursor: pointer; }
.ct details > :not(summary) { padding: 0 4px 14px; }
.ct .wp-block-button__link { display: inline-flex; height: 50px; align-items: center; padding: 0 22px; background: var(--ink); color: var(--paper); text-decoration: none; }
.ct .ref { font-size: 14px; color: var(--ink2); }
.art__tags { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 28px; font-size: 14px; color: var(--ink3); }
.art__cta { margin-top: 48px; padding: 40px 32px; text-align: center; }
.art__cta p { font-family: var(--serif); font-size: 21px; font-weight: 700; }
.art__cta span { display: block; margin: 6px 0 22px; font-size: 14.5px; color: var(--ink2); }
.sec-t { margin: 64px 0 0; padding-bottom: 12px; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.tool-body { margin-top: 72px; }

/* ==========================================================
   8. 바닥
   ========================================================== */
.ft { margin-top: 40px; padding: 56px 0 64px; border-top: 1px solid var(--ink); font-size: 13px; line-height: 1.85; color: var(--ink3); }
.ft__top { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.ft__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-weight: 800; color: var(--ink); }
.ft__menu { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; }
.ft__menu a { color: var(--ink2); }
.ft__menu li:first-child a { color: var(--ink); }
.ft__info { margin-top: 26px; }
.ft__note { margin-top: 10px; }

/* ==========================================================
   9. 반응형
   ========================================================== */
@media (max-width: 1024px) {
	.gnb, .hd__cta { display: none; }
	.burger { display: inline-flex; }
	.preview, .steps, .home-posts { grid-template-columns: 1fr; gap: 48px; }
	.pv-stack { height: 480px; max-width: 580px; }
	.toc { grid-template-columns: repeat(5, 1fr); }
	.toc li { height: 320px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
	body { font-size: 15.5px; }
	.wrap, .col { padding: 0 20px; }
	.hd__in { height: 60px; }
	.drawer { inset: 60px 0 0; }
	.hero { min-height: 600px; align-items: flex-end; }
	.hero__bg img { object-position: 62% 30%; }
	.hero__bg::after { background: linear-gradient(180deg, rgba(246, 241, 230, .05) 0%, rgba(246, 241, 230, .8) 42%, rgba(246, 241, 230, .97) 66%); }
	.hero__in { padding-top: 160px; padding-bottom: 56px; }
	.hero .brush { font-size: 96px; }
	.hero__t { font-size: 28px; }
	.hero__d { font-size: 15px; }
	.hero__act .btn { flex: 1 1 100%; }
	.today__tags { margin-left: 0; }
	.sec { padding: 68px 0; }
	.sec__head { margin-bottom: 32px; }
	.sec__t { font-size: 26px; }
	.pv-stack { height: 360px; }
	.pv-stack .sheet { width: 210px; padding: 20px 16px; }
	.pv-stack .sheet:nth-child(2) { left: 64px; }
	.pv-stack .sheet:nth-child(3) { left: 124px; }
	.pv-cover .brush { font-size: 48px; }
	.pv-cover p { font-size: 15px; }
	.pv-pillars { font-size: 15px; }
	.toc { grid-template-columns: repeat(3, 1fr); }
	.toc li { height: 270px; gap: 10px; }
	.toc b { font-size: 18px; }
	.toc span { font-size: 12px; }
	.tools, .notice { grid-template-columns: 1fr; }
	.tool { min-height: 0; }
	.ph { padding: 48px 0 28px; }
	.ph__t { font-size: 26px; }
	.apply { padding: 34px 22px 30px; }
	.frow { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
	.frow > .f-label { padding-top: 0; }
	.rp { padding: 40px 22px 54px; }
	.rp-cover { min-height: 560px; }
	.rp-cover .brush { font-size: 104px; }
	.rp__h h3 { font-size: 20px; }
	.wonguk .c { font-size: 30px; }
	.kv div { grid-template-columns: 1fr 34px; }
	.kv div dd:last-child { grid-column: 1 / -1; }
	.daeun { grid-template-columns: repeat(5, 1fr); }
	.months { grid-template-columns: 1fr 1fr; }
	.tip { grid-template-columns: 1fr; gap: 2px; }
	.panel { padding: 28px 16px; }
	.cal__d { min-height: 68px; padding: 6px 5px; font-size: 15px; }
	.cal__d.is-son::after { width: 28px; height: 28px; right: 3px; bottom: 4px; font-size: 8.5px; }
	.zodiac { grid-template-columns: repeat(4, 1fr); }
	.art__h1 { font-size: 27px; }
	.ct { font-size: 16.5px; }
	.ft__top { flex-direction: column; }
	.post-card { grid-template-columns: 1fr 88px; gap: 14px; }
	.post-card__th { width: 88px; height: 64px; }
	.post-card__t { font-size: 17px; }
}

/* 인쇄 */
@media print {
	@page { size: A4; margin: 0; }
	body { background: #fff; }
	.hd, .drawer, .ft, .no-print, .apply, .ph, .status, .tool-body { display: none !important; }
	.report { gap: 0; margin: 0; }
	.rp { box-shadow: none; border: 0; max-width: none; width: 210mm; min-height: 297mm; break-after: page; }
	.brush .st { stroke-dashoffset: 0 !important; animation: none !important; }
	.bar__fill, .daeun li, .month { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
