/* 農民曆查詢：排版；共用元件沿用 site.css */
#fa-form [hidden], #fa-find-form [hidden] { display: none !important; }
.fa-fun { background: #fffbeb; border-left: 4px solid #d97706; padding: 10px 14px; border-radius: 6px; font-size: 1rem; }
.fa-nav { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: end; }
.fa-nav > * { min-width: 0; }
.fa-today { margin-top: 4px; }
.fa-head strong { font-size: 1.6rem; }
.fa-head span { margin-top: 2px; }
.fa-head .fa-term { color: var(--brand-dark); font-weight: 600; margin-top: 6px; }
.fa-diff { background: #fffbeb; border-left: 4px solid #d97706; padding: 8px 12px; border-radius: 6px; font-size: .95rem; }
.fa-yiji { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.fa-yiji > * { min-width: 0; }
.fa-box { border: 2px solid var(--line); border-radius: 12px; padding: 4px 12px 10px; }
.fa-box h3 { margin: .5rem 0; font-size: 1.15rem; }
.fa-box-yi { border-color: #047857; background: #ecfdf5; }
.fa-box-yi h3 { color: #047857; }
.fa-box-ji { border-color: #b91c1c; background: #fef2f2; }
.fa-box-ji h3 { color: #b91c1c; }
.fa-chip { display: inline-block; margin: 2px 4px 2px 0; padding: 1px 10px; border-radius: 999px; font-size: 1rem; background: #fff; border: 1px solid var(--line); }
.fa-none { color: var(--muted); }
.fa-badge { display: inline-block; padding: 0 8px; border-radius: 6px; font-size: .9rem; font-weight: 600; }
.fa-good { background: #d1fae5; color: #065f46; }
.fa-bad { background: #e5e7eb; color: #374151; }
.fa-times th small { display: block; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.fa-times td, .fa-times th { white-space: nowrap; }
.fa-times td:last-child { white-space: normal; min-width: 8em; }
.fa-times tr.fa-row-good th, .fa-times tr.fa-row-good td { background: #f0fdf4; }
.fa-find-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 10px; }
.fa-find-row > * { min-width: 0; }
.fa-check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1rem; cursor: pointer; }
.fa-check input { width: 22px; height: 22px; flex: none; }
.fa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) {
  .fa-yiji { grid-template-columns: 1fr; }
  .fa-find-row { grid-template-columns: 1fr 1fr; }
  .fa-find-row > :first-child { grid-column: 1 / -1; }
  .fa-nav { grid-template-columns: auto 1fr auto; gap: 6px; }
  .fa-nav .btn { padding: 0 10px; }
}
