/* dongfang-lingshu.css — 東方靈數（/dongfang-lingshu/）專用的少量樣式。表格沿用 css/liunian.css（.ln-table），
   查詢區沿用 css/yongshen.css（.ys-tool）。吉凶只用細邊框與淺底區分，不整塊塗紅（站上配色克制）。 */
.dl-privacy { font-size: 0.86rem; color: var(--text-dim); border-left: 3px solid var(--gold); padding: 4px 0 4px 10px; margin: 0 0 6px; }
#dl-tool h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.dl-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.dl-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--text-dim); letter-spacing: 0.04em; }
.dl-form input[type="text"], .dl-form textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0.06em; color: var(--text); background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; min-height: 44px; width: 100%; box-sizing: border-box;
}
.dl-form textarea { resize: vertical; line-height: 1.6; }
.dl-form button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--ink); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }
.dl-hint { margin: 6px 0 0; }
.dl-out { margin-top: 12px; }
.dl-used { margin: 0 0 4px; overflow-wrap: anywhere; }
.dl-notes { margin: 0 0 8px; }
.dl-err { color: var(--text-dim); }
.dl-main { margin: 10px 0 4px; }
.dl-pairs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0; }
.dl-p { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); line-height: 1.3; }
.dl-p.dl-good { border-top: 3px solid var(--wx-mu); }
.dl-p.dl-bad { border-top: 3px solid var(--wx-huo); }
.dl-p.is-carried { border-style: dashed; }
.dl-num { font-family: var(--lux-serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.dl-name { font-size: 0.86rem; }
.dl-sub { font-size: 0.7rem; color: var(--text-dim); }
.dl-bar { display: inline-block; width: 90px; height: 8px; background: var(--border); border-radius: 4px; vertical-align: middle; overflow: hidden; }
.dl-bar i { display: block; height: 100%; }
.dl-bar i.dl-good { background: var(--wx-mu); }
.dl-bar i.dl-bad { background: var(--wx-huo); }
a.dl-star { text-decoration: none; border-bottom: 1px dotted currentColor; }
.dl-rem, .dl-used-list { margin: 6px 0 8px; padding-left: 1.2em; line-height: 1.9; }
/* 工具輸出的三欄小表不必沿用 .ln-table 的 560px 最小寬度，手機上一屏看完 */
.ln-table.dl-count, .ln-table.dl-run, .ln-table.dl-many { min-width: 0; }
.dl-many th { overflow-wrap: anywhere; }
.dl-grid { min-width: 520px; }
.dl-grid td { text-align: center; font-size: 0.86rem; padding: 7px 4px; }
.dl-grid thead th { text-align: center; }
.dl-c-good { box-shadow: inset 0 3px 0 var(--wx-mu); }
.dl-c-bad { box-shadow: inset 0 3px 0 var(--wx-huo); }
.dl-ex { display: inline; line-height: 2.2; }
.dl-ex-in { font-family: var(--lux-serif); font-weight: 600; letter-spacing: 0.06em; color: var(--ink); }
.dl-chip { display: inline-block; padding: 0 8px; margin: 2px 0; border: 1px solid var(--border); border-radius: 6px; font-size: 0.88rem; white-space: nowrap; }
.dl-chip.dl-good { border-top: 2px solid var(--wx-mu); }
.dl-chip.dl-bad { border-top: 2px solid var(--wx-huo); }
@media (max-width: 560px) {
  .dl-form { grid-template-columns: 1fr; }
  .dl-form button { width: 100%; }
}
