/* 사주 전용 스타일. 공통은 /mbti/styles.css */
.form-grid { display: grid; gap: 10px; }
.form-grid label { font-size: 13px; font-weight: 700; color: var(--fg-2); display: block; margin-bottom: 6px; }
.form-grid input[type=date], .form-grid select { width: 100%; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); font-family: inherit; font-size: 16px; }
.form-grid input[type=date]:focus, .form-grid select:focus { outline: none; border-color: var(--accent); }

/* 사주 원국 표: 시 일 월 년 (오른쪽이 년) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pillars .col { text-align: center; }
.pillars .col .lab { font-size: 11px; color: var(--fg-3); font-weight: 700; margin-bottom: 6px; }
.pillars .col .me { color: var(--accent); }
.pillars .cell { border-radius: 14px; padding: 10px 4px 8px; margin-bottom: 6px; color: #fff; position: relative; }
.pillars .cell .hj { font-size: 34px; font-weight: 900; line-height: 1; font-family: 'Noto Serif KR', 'Apple SD Gothic Neo', serif; }
.pillars .cell .ko { font-size: 11px; opacity: .9; margin-top: 4px; }
.pillars .cell .god { font-size: 10.5px; margin-top: 5px; background: rgba(255,255,255,.22); border-radius: 99px; padding: 2px 7px; display: inline-block; }
.pillars .col .hid { font-size: 10px; color: var(--fg-3); }
.pillars .col.none .cell { background: var(--bg-2); border: 1px dashed var(--line); color: var(--fg-3); }
.pillars .col.none .cell .hj { font-size: 22px; padding: 6px 0; }

/* 오행 바 */
.el-bars { display: grid; gap: 8px; }
.el-bars .row-el { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; }
.el-bars .row-el b { font-weight: 800; }
.el-bars .track { height: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.el-bars .track i { display: block; height: 100%; border-radius: 99px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.el-bars .pct { text-align: right; color: var(--fg-2); font-variant-numeric: tabular-nums; }

/* 연도 섹션 */
.year-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.year-head .y { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.year-head .gz { font-size: 13px; color: var(--fg-2); }
.year-title { font-size: 19px; font-weight: 800; margin-top: 6px; word-break: keep-all; }
.check { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.check li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.5; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.check li::before { content: '☑'; color: var(--accent); flex: none; }
.rel { display: grid; gap: 8px; margin-top: 10px; }
.rel .r { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; font-size: 13.5px; line-height: 1.55; }
.rel .r.good { border-color: #3f9d5a; }
.rel .r.bad { border-color: var(--accent); }
.rel .r b { font-weight: 800; }
.kw { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.kw span { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: var(--fg); color: var(--bg); }
.lucky { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.lucky div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 13px; }
.lucky div small { display: block; color: var(--fg-3); font-size: 11px; margin-bottom: 3px; }

/* 궁합 */
.duo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.duo .p { text-align: center; }
.duo .p .e { font-size: 40px; }
.duo .p b { display: block; font-size: 16px; margin-top: 4px; }
.duo .p small { color: var(--fg-2); font-size: 12px; }
.duo .heart { font-size: 24px; }
.note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.55; }
.note b { display: block; margin-bottom: 2px; }
.note .tag { font-size: 11px; color: var(--fg-3); margin-left: 6px; font-weight: 500; }

/* 년/월/일 선택 */
.ymd { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.ymd select { padding: 14px 10px; text-align: center; }

/* 심화 카드 */
.list.star li { line-height: 1.5; }
.luck-line { display: flex; gap: 4px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.luck-line span { flex: none; text-align: center; min-width: 52px; padding: 6px 4px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12px; }
.luck-line span b { display: block; font-size: 14px; }
.luck-line span small { color: var(--fg-3); font-size: 10.5px; }
.luck-line span.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.luck-line span.on small { color: var(--bg); opacity: .7; }
.months { width: 100%; border-collapse: collapse; font-size: 13px; }
.months td { padding: 7px 6px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.months td:first-child { width: 52px; white-space: nowrap; }
.group-head { display: flex; align-items: center; gap: 12px; }
.group-head .e { font-size: 40px; line-height: 1; }
.group-stat { margin-top: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; text-align: center; }

/* 긴 서사 */
.card.story h3 { font-size: 13px; color: var(--fg-3); font-weight: 800; letter-spacing: .04em; margin: 14px 0 4px; }
.card.story h3:first-of-type { margin-top: 6px; }
.story p { font-size: 14.5px; line-height: 1.75; word-break: keep-all; color: var(--fg); }
.story p + p { margin-top: 10px; }
.kw.soft span { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); font-weight: 600; }

/* 연도 카드 강조 */
.year-nav { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 4px 0 2px; }
.year-nav a { font-size: 12.5px; font-weight: 800; text-decoration: none; color: var(--fg-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px; }
.card.year { border-width: 1.5px; position: relative; overflow: hidden; }
.card.year::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; }
.card.year.y26 { background: linear-gradient(170deg, #fff0e8 0%, #fff9f5 60%, #ffffff 100%); border-color: #ffb89c; }
.card.year.y26::before { background: linear-gradient(90deg, #ff5f3c, #ffa35c); }
.card.year.y26 .year-head .y { color: #e0533a; }
.card.year.y26 .year-head .gz { color: #b8452c; }
.card.year.y26 .eyebrow { color: #c2410c; }
.card.year.y27 { background: linear-gradient(170deg, #fff6dc 0%, #fffcf0 60%, #ffffff 100%); border-color: #f0d27a; }
.card.year.y27::before { background: linear-gradient(90deg, #e9b949, #f6d57e); }
.card.year.y27 .year-head .y { color: #a9771e; }
.card.year.y27 .year-head .gz { color: #8a6418; }
.card.year.y27 .eyebrow { color: #8a6418; }
.card.year .year-head { margin-top: 4px; }
.card.year .year-head .y { font-size: 34px; }
.card.year .year-title { font-size: 20px; }
.card.year .check li { background: rgba(255,255,255,.75); }
.card.year .kw span { background: var(--fg); }

/* 명리 용어 라벨: 본문은 쉬운 말, 용어·한자는 여기로 */
.lab { display: inline-block; font-size: 10.5px; font-weight: 600; color: var(--fg-3); background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: middle; letter-spacing: .01em; white-space: nowrap; line-height: 1.6; }
.lab::before { content: '명리 '; opacity: .6; font-weight: 500; }
.eyebrow .lab { text-transform: none; letter-spacing: 0; }
.card.year .lab { background: rgba(255,255,255,.7); }
