/* ============================================================
   윤이세 — 편지 화면 조각(월간 비책 · 맞춤 년운) 스타일
   2026-11-30 #31590 · style.css 안에 있던 .fz-lx 규칙을 이 파일로 옮겼다.
   고객 열람(calendar/index.html)과 관리자 미리보기(calendar/yoon-key/)가
   **같은 파일**을 링크한다 — 두 화면의 모양이 갈라지지 않게.
   ⚠ 화면 조각만 담는다. 다른 화면의 규칙은 넣지 않는다.
   ============================================================ */

/* 관리자 화면에는 달력의 :root 토큰이 없다 — 이 조각이 쓰는 값만 같은 값으로 깔아 둔다.
   (달력 화면에서는 :root 값과 같아서 보이는 것이 달라지지 않는다) */
.fz-lx {
  --gold: #A5650F;
  --ink: #1A1712;
  --mute: #6E665A;
  --serif: "Nanum Myeongjo", "NanumMyeongjo", "Noto Serif KR", "Noto Serif CJK KR", "AppleMyungjo", "SamsungMyeongjo", "Batang", serif;
}

.fz-lx { display: block; }
.fz-lx-hero { margin: 2px 0 12px; padding: 16px 14px 14px; border-radius: 16px; background: linear-gradient(180deg, #FBF6EC 0%, #FFFDF8 100%); border: 1px solid rgba(200,163,74,.32); }
.fz-lx-k { margin: 0 0 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--gold); }
.fz-lx-t { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.42; letter-spacing: -.02em; color: var(--ink); }
.fz-lx-d { margin: 7px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--body, #4A4A46); letter-spacing: -.01em; }
.fz-lx-days { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.fz-lx-day { padding: 10px 10px 9px; border-radius: 12px; text-align: center; }
.fz-lx-day span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: -.01em; }
.fz-lx-day b { display: block; margin-top: 4px; font-size: 15px; letter-spacing: -.02em; }
.fz-lx-day b + b { margin-top: 8px; padding-top: 7px; border-top: 1px dashed rgba(0,0,0,.10); }
.fz-lx-day em { display: block; margin-top: 2px; font-style: normal; font-size: 10.5px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; opacity: .88; }
.fz-lx-day--go { background: #F2F8F2; border: 1px solid #CFE4D2; }
.fz-lx-day--go span { color: #2F7D4F; }
.fz-lx-day--go b { color: #1F5B39; }
.fz-lx-day--care { background: #FDF3EE; border: 1px solid #F0D6C8; }
.fz-lx-day--care span { color: #B4592F; }
.fz-lx-day--care b { color: #8E3F1F; }
.fz-lx-sec { margin: 0 0 10px; padding: 14px 14px 12px; border-radius: 14px; background: #fff; border: 1px solid #EDE6D8; }
.fz-lx-sh { display: flex; gap: 8px; align-items: baseline; margin: 0; font-family: var(--serif); font-size: 15.5px; line-height: 1.45; color: var(--ink); letter-spacing: -.02em; }
.fz-lx-no { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--gold); }
.fz-lx-sum { margin: 8px 0 0; font-size: 13px; line-height: 1.72; color: var(--body, #4A4A46); letter-spacing: -.01em; }
/* ── 맞춤 년운 (2026-12-01 #33273) — 단 소제목 · 항목 줄 · 머리 인사 ──────────
   제목 아래에 소제목 한 줄을 두고, `일과 수입 — …` 처럼 이름이 앞선 줄만 이름을 굵게. */
.fz-lx-sub {
  margin: 7px 0 0; font-family: var(--serif); font-size: 17.5px; line-height: 1.45;
  font-weight: 700; letter-spacing: -.03em; color: #2A2118; word-break: keep-all;
}
.fz-lx-sub + .fz-lx-sum { margin-top: 7px; }
.fz-lx-item { margin: 0 0 9px; font-size: 13.5px; line-height: 1.8; color: var(--body, #46443E); letter-spacing: -.012em; }
.fz-lx-item b { font-weight: 800; color: #6B4E22; margin-right: 2px; }
.fz-lx-item:last-child { margin-bottom: 0; }
.fz-lx-lead { margin: 12px 0 0; font-size: 13.5px; line-height: 1.85; color: #3A342B; letter-spacing: -.012em; }
.fz-lx-lead + .fz-lx-lead { margin-top: 8px; }
.fz-lx-days--year { margin-top: 13px; }
.fz-lx-more { margin-top: 8px; }
.fz-lx-more > summary { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: #F6F1E6; font-size: 11.5px; font-weight: 700; color: #7A6534; cursor: pointer; list-style: none; }
.fz-lx-more > summary::-webkit-details-marker { display: none; }
.fz-lx-more > summary i { font-style: normal; font-size: 10px; transition: transform .18s ease; }
.fz-lx-more[open] > summary i { transform: rotate(180deg); }
.fz-lx-full { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #E6DCC8; }
.fz-lx-full p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.82; color: var(--body, #4A4A46); letter-spacing: -.01em; }
.fz-lx-full p:last-child { margin-bottom: 0; }
.fz-lx-full .num-line { padding-left: 2px; }
.fz-lx-ft { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--mute); letter-spacing: -.01em; }
.fz-lx-colors { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #FAF7F0; }
.fz-lx-ck { margin: 0 0 8px; font-size: 11px; font-weight: 800; color: #7A6534; letter-spacing: -.01em; }
.fz-lx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fz-lx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px 5px 5px; border-radius: 999px; background: #fff; border: 1px solid #E8DEC9; font-size: 11.5px; font-weight: 700; color: var(--ink); }
.fz-lx-chip i { display: block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.fz-lx-grid { display: grid; gap: 8px; margin-top: 8px; }
.fz-lx-box { padding: 11px 12px; border-radius: 12px; background: #FBFAF6; border: 1px solid #EDE6D8; }
.fz-lx-bt { margin: 0; font-size: 12.5px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.fz-lx-bt span { margin-right: 5px; }
.fz-lx-bs { margin: 5px 0 0; font-size: 12px; line-height: 1.68; color: var(--body, #55554F); letter-spacing: -.01em; }
.fz-lx-intro { margin: 12px 0 0; }
.fz-lx-intro p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.8; color: var(--mute); letter-spacing: -.01em; }

/* ── 서명·직인 (2026-12-01 V36) — 편지 맨 아래 `윤이세` + 직인 이미지 ───────────
   마무리 인사(길잡이·열쇠말) 아래 한 줄. 오른쪽 정렬, 위에 가는 점선 하나.
   직인은 손으로 찍은 느낌으로 아주 조금 기울인다(감정서 .gy-sign 과 같은 결). */
.fz-lx-sign {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin: 16px 4px 2px; padding-top: 12px;
  border-top: 1px dashed #E6DCC8;
}
.fz-lx-sign__name { font-family: var(--serif, serif); font-size: 15px; letter-spacing: .02em; color: #3A3228; }
.fz-lx-sign__seal { display: block; width: 64px; height: auto; transform: rotate(-3deg); }
/* 직인 파일이 없는 사본(seal:null) — CSS 인장. 두 글자를 세로로 담은 붉은 사각 도장 */
.fz-lx-sign .yseal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-right: 4px; border: 2px solid #B23A2E; border-radius: 5px;
  background: rgba(178, 58, 46, .04); transform: rotate(-3deg);
}
.fz-lx-sign .yseal__inner { display: flex; flex-direction: column; gap: 1px; }
.fz-lx-sign .yseal__inner i { font-style: normal; font-size: 13px; line-height: 1.05; font-weight: 700; color: #B23A2E; text-align: center; }


/* ── V40 (2026-12-01 #33084) — 월간 비책은 접지 않고 5단을 그대로 펼친다 ─────────
   화두 한 줄 → 흐름 → 기회·주의·실천 세 줄 → 날짜 표 → 개운 한두 가지 → 편지.
   `상세 해설 보기` 접이식은 월간 비책에서 쓰지 않는다(맞춤 년운은 그대로). */
.fz-lx--month .fz-lx-sec { margin: 0 0 9px; padding: 15px 14px 13px; }
.fz-lx-hwa {
  margin: 10px 0 2px; font-family: var(--serif); font-size: 21px; line-height: 1.4;
  letter-spacing: -.03em; color: #2A2118; font-weight: 700;
}
.fz-lx-hwa + .fz-lx-p { margin-top: 10px; }
.fz-lx-p { margin: 0 0 9px; font-size: 13.5px; line-height: 1.85; color: var(--body, #46443E); letter-spacing: -.012em; }
.fz-lx-p:last-child { margin-bottom: 0; }
/* 소제목 — 관리자 1칸 편집기에서 「소제목」으로 바꾼 줄 (2026-12-01 V52) */
.fz-lx-subh { margin: 16px 0 8px; font-family: var(--serif); font-size: 16px; line-height: 1.45;
  letter-spacing: -.02em; color: #2A2118; font-weight: 800; }
.fz-lx-subh:first-child { margin-top: 2px; }
.fz-lx-subh strong { font-weight: 800; }
/* 기회 · 주의 · 실천 — 세 줄 */
.fz-lx-core { display: grid; gap: 7px; margin-top: 11px; }
.fz-lx-core-row { display: grid; grid-template-columns: 44px 1fr; align-items: start; gap: 9px; padding: 10px 11px; border-radius: 11px; background: #FBFAF6; border: 1px solid #EDE6D8; }
.fz-lx-core-row b { font-size: 12px; font-weight: 800; letter-spacing: -.01em; padding-top: 1px; }
.fz-lx-core-row span { font-size: 13px; line-height: 1.6; color: #332F28; letter-spacing: -.012em; }
.fz-lx-core-row.is-chance { background: #F2F8F2; border-color: #CFE4D2; }
.fz-lx-core-row.is-chance b { color: #2F7D4F; }
.fz-lx-core-row.is-care { background: #FDF3EE; border-color: #F0D6C8; }
.fz-lx-core-row.is-care b { color: #B4592F; }
.fz-lx-core-row.is-act { background: #F6F1E6; border-color: #E6DCC4; }
.fz-lx-core-row.is-act b { color: #8A5A12; }
.fz-lx-close { margin: 11px 0 0; padding-top: 10px; border-top: 1px dashed #E6DCC8; font-size: 13px; line-height: 1.75; color: #3A342B; letter-spacing: -.012em; }
/* 날짜 표 — 날짜 | 핵심 활용 */
.fz-lx-table { width: 100%; margin-top: 10px; border-collapse: collapse; table-layout: fixed; }
.fz-lx-table td { padding: 8px 4px; border-bottom: 1px solid #F0EAE0; font-size: 12.5px; line-height: 1.5; color: #3A3730; vertical-align: top; letter-spacing: -.01em; }
.fz-lx-table td:first-child { width: 92px; font-weight: 800; color: #6B5B3A; white-space: nowrap; }
.fz-lx-table tr:last-child td { border-bottom: 0; }
.fz-lx-table tr.is-go td:first-child { color: #226B45; }
.fz-lx-table tr.is-care td:first-child { color: #A9491F; }
.fz-lx-table tr.is-go td:first-child::before { content: '●'; margin-right: 5px; font-size: 8px; vertical-align: 2px; color: #2F7D4F; }
.fz-lx-table tr.is-care td:first-child::before { content: '●'; margin-right: 5px; font-size: 8px; vertical-align: 2px; color: #C1683D; }
.fz-lx-signline { margin: 16px 2px 0; text-align: right; font-family: var(--serif); font-size: 13.5px; line-height: 1.7; color: #3A3228; letter-spacing: -.01em; }
.fz-lx-sec--letter .fz-lx-p { font-size: 13.5px; }
/* ── 저장·공유 (2026-12-01 V45 #33699) — 편지 맨 아래 세 버튼 ───────────────
   편지 모달은 폭 390px 안에서 쓴다. 한 손으로 누를 수 있게 세로로 큰 버튼,
   첫 번째(이미지로 저장)만 금색으로 세우고 나머지는 흰 버튼으로 둔다. */
.fz-lx-save { display: grid; gap: 8px; margin: 18px 2px 4px; }
.fz-lx-save__b {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; min-height: 50px; padding: 13px 14px; border-radius: 14px;
  border: 1px solid rgba(200,163,74,.55); background: #fff; color: #8A5A12;
  font-family: inherit; font-size: 14.5px; font-weight: 800; letter-spacing: -.02em;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fz-lx-save__b i { font-style: normal; font-size: 16px; line-height: 1; }
.fz-lx-save__b--main {
  background: linear-gradient(180deg, #C8A34A 0%, #B08D57 100%); border-color: #A97F33;
  color: #FFFCF4; box-shadow: 0 3px 10px rgba(160,120,50,.22);
}
.fz-lx-save__b--ghost { min-height: 44px; border-color: #E6DCC8; background: #FBF8F1; color: #6B6157; font-weight: 700; font-size: 13.5px; }
.fz-lx-save__b:disabled { opacity: .75; cursor: default; }
.fz-lx-save__b.is-busy { color: #FFFCF4; }
.fz-lx-save__spin {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: fz-lx-spin .7s linear infinite;
}
@keyframes fz-lx-spin { to { transform: rotate(360deg); } }
.fz-lx-save__d { margin: 2px 0 0; font-size: 10.5px; line-height: 1.55; color: #8F887B; text-align: center; letter-spacing: -.01em; }
.fz-lx-save__d b { color: #6B5B3A; font-weight: 800; }

/* ── 인쇄·PDF — 고객 화면과 같은 구성·가독성으로 A4에 담는다 ─────────────────
   모달 틀·배경·닫기·PDF 버튼은 숨기고 편지 본문만 남긴다. */
@media print {
  @page { size: A4; margin: 11mm 12mm 12mm; }
  html, body { background: #fff !important; }
  body.is-modal-open > *:not(#fzModal) { display: none !important; }
  #fzModal { position: static !important; display: block !important; background: none !important; inset: auto !important; }
  #fzModal .modal__backdrop, #fzModal .modal__topbar, #fzModal [data-fz-close], #fzModal .fz-lx-save, #fzModal .modal__close { display: none !important; }
  #fzModal .modal__dialog {
    position: static !important; max-height: none !important; height: auto !important; overflow: visible !important;
    width: auto !important; max-width: none !important; margin: 0 !important; border: 0 !important;
    border-radius: 0 !important; box-shadow: none !important; background: #fff !important;
  }
  #fzModal .modal__content { max-height: none !important; overflow: visible !important; padding: 0 !important; }
  #fzModal .fz-modal-title { display: none !important; }
  .fz-lx { display: block !important; }
  .fz-lx-hero, .fz-lx-sec {
    background: #fff !important; border: 1px solid #DCD3C2 !important; border-radius: 6px !important;
    box-shadow: none !important; break-inside: avoid; page-break-inside: avoid;
    padding: 7px 10px !important; margin: 0 0 4px !important;
  }
  .fz-lx-hero { background: #FBF6EC !important; padding: 8px 10px !important; }
  .fz-lx-k { font-size: 7.5pt !important; color: #8A5A12 !important; margin: 0 0 3px !important; }
  .fz-lx-t { font-size: 14pt !important; line-height: 1.3 !important; }
  .fz-lx-d { font-size: 8.5pt !important; margin-top: 4px !important; }
  .fz-lx-sh { font-size: 10.5pt !important; }
  .fz-lx-no { color: #8A5A12 !important; }
  .fz-lx-hwa { font-size: 13pt !important; margin: 4px 0 1px !important; }
  .fz-lx-p, .fz-lx-close { font-size: 9pt !important; line-height: 1.55 !important; margin: 0 0 5px !important; }
  .fz-lx-sum, .fz-lx-bs, .fz-lx-core-row span { font-size: 8.8pt !important; line-height: 1.5 !important; }
  .fz-lx-sub { font-size: 12pt !important; margin-top: 3px !important; }
  .fz-lx-item, .fz-lx-lead { font-size: 9pt !important; line-height: 1.5 !important; margin: 0 0 5px !important; }
  .fz-lx-days--year { margin-top: 6px !important; }
  .fz-lx-day { padding: 5px 8px !important; break-inside: avoid; page-break-inside: avoid; }
  .fz-lx-day b { font-size: 11pt !important; }
  .fz-lx-day em { font-size: 8pt !important; }
  .fz-lx-core-row { background: #fff !important; border: 1px solid #DCD3C2 !important; padding: 5px 8px !important; break-inside: avoid; page-break-inside: avoid; }
  .fz-lx-core-row b { font-size: 8.5pt !important; }
  .fz-lx-core { gap: 4px !important; margin-top: 6px !important; }
  .fz-lx-close { margin-top: 6px !important; padding-top: 5px !important; }
  .fz-lx-table { break-inside: avoid; page-break-inside: avoid; margin-top: 5px !important; }
  .fz-lx-table td { font-size: 8.8pt !important; padding: 3px 3px !important; border-bottom: 1px solid #E6DCC8 !important; }
  .fz-lx-grid { display: block !important; }
  .fz-lx-box { background: #fff !important; border: 1px solid #DCD3C2 !important; padding: 6px 9px !important; break-inside: avoid; page-break-inside: avoid; margin-bottom: 4px; }
  .fz-lx-bt { font-size: 8.8pt !important; }
  .fz-lx-bs { margin-top: 2px !important; }
  .fz-lx-signline { font-size: 9.5pt !important; margin: 6px 2px 0 !important; }
  .fz-lx-sign { margin: 4px 2px 0 !important; padding-top: 4px !important; break-inside: avoid; page-break-inside: avoid; }
  .fz-lx-sign__name { font-size: 10pt !important; }
  .fz-lx-sign__seal { width: 46px !important; }
  .fz-lx-sec--letter { break-inside: avoid; page-break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* 확정 예언이 아니라는 한 줄 — 맨 아래 작게 */
.fz-lx-note { margin: 10px 4px 0; font-size: 10.5px; line-height: 1.6; color: #8F887B; letter-spacing: -.01em; }
@media print { .fz-lx-note { font-size: 8pt !important; margin: 6px 2px 0 !important; } }
