/* 民國西元與農曆轉換；共用元件沿用 site.css */
#cy-form [hidden], #cs-form [hidden], #cl-form [hidden] { display: none !important; }
.cc-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 8px; }
.cc-modes legend { grid-column: 1 / -1; }
.cc-modes label { justify-content: center; padding: 10px 4px; }
.cc-ymd { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0 10px; }
.cc-ymd > * { min-width: 0; }
.cc-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1rem; cursor: pointer; }
.cc-check input { width: 22px; height: 22px; flex: none; }
.cc-out { font-size: 1.5rem !important; }
@media (max-width: 480px) { .cc-modes { grid-template-columns: 1fr; } }

/* 年份單頁與年份入口 */
.ccy-answer { font-size: 1.5rem; font-weight: 700; }
.ccy-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding-left: 1.25rem; }
.ccy-page .calc-table { width: 100%; }
.ccy-page th { text-align: left; }
.ccy-page td, .ccy-page th { overflow-wrap: anywhere; }
.ccy-scroll { overflow-x: auto; max-width: 100%; }
.ccy-scroll table { min-width: 560px; width: 100%; }
.ccy-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }

/* 全年逐日國曆農曆對照表 */
.ccl-jump { display:flex; flex-wrap:wrap; gap:.4rem; margin:1rem 0; }
.ccl-jump a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:0 .8rem; border:1px solid #cbd5e1; border-radius:.4rem; }
.ccl-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; align-items:start; }
.ccl-month { min-width:0; }
.ccl-month table { width:100%; table-layout:fixed; font-size:.9rem; }
.ccl-month th:nth-child(1) { width:24%; }
.ccl-month th:nth-child(2) { width:20%; }
.ccl-month th:nth-child(3) { width:56%; }
.ccl-month thead th { white-space:nowrap; }
.ccl-month th, .ccl-month td { padding:.4rem .25rem; overflow-wrap:anywhere; }
.ccl-first { font-weight:700; background:#edf4fb; }
.ccl-cny { background:#fff0d5; }
.ccl-note { display:block; font-size:.8rem; }
.ccl-month h3, #lunar-table { scroll-margin-top:1rem; }
@media (max-width:700px) { .ccl-grid { grid-template-columns:minmax(0,1fr); } }
@media print { .ccl-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .ccl-month { break-inside:avoid; } .ccl-jump { display:none; } }
