/* denominations.css - /denominations/ pages (prefix dn-). Builds on christian.css tokens. */

.dn-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 4px 0 10px; }
.dn-filters label { display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: var(--cx-muted); flex: 1 1 160px; min-width: 0; }
.dn-filters select, .dn-filters input { width: 100%; padding: 7px 10px; border: 1px solid var(--cx-line); border-radius: 8px; background: var(--cx-card); color: var(--cx-ink); font-size: .95rem; }
.dn-filters button { flex: 0 0 auto; }
.dn-count { font-size: .85rem; margin: 4px 0 8px; }

.dn-tablewrap, .dn-cmpwrap { border: 1px solid var(--cx-line); border-radius: var(--cx-radius); background: var(--cx-card); -webkit-overflow-scrolling: touch; }
.dn-table { min-width: 640px; }
.dn-table th[scope=row] { font-weight: 600; color: var(--cx-ink); font-size: .93rem; text-transform: none; letter-spacing: 0; }
.dn-table th[scope=row] small { font-weight: 400; }
.dn-table thead th { position: sticky; top: 0; background: var(--cx-soft); white-space: nowrap; }
.dn-table thead button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.dn-table thead button:focus-visible { outline: 2px solid var(--cx-accent); outline-offset: 2px; }
.dn-table thead th[aria-sort=ascending] button::after { content: "\25B2"; font-size: .7em; }
.dn-table thead th[aria-sort=descending] button::after { content: "\25BC"; font-size: .7em; }
.dn-num { text-align: right !important; white-space: nowrap; }
.dn-table tbody tr:hover { background: var(--cx-soft); }

.dn-polities { padding-left: 18px; margin: 0; }
.dn-polities li { margin: 4px 0; }

/* family tree */
.dn-tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dn-tree-fam { border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 10px 14px; background: var(--cx-card); }
.dn-tree-fam.dn-related { background: var(--cx-soft); }
.dn-tree-fam h3 { margin: 2px 0 6px; font-family: var(--cx-serif); font-size: 1.05rem; }
.dn-tree-fam h3 a { color: var(--cx-ink); text-decoration: none; }
.dn-tree ul { list-style: none; margin: 0; padding-left: 0; font-size: .92rem; }
.dn-tree ul ul { padding-left: 14px; margin-left: 4px; border-left: 2px solid var(--cx-line); }
.dn-tree li { padding: 2px 0; }

/* profile */
.dn-facts { grid-template-columns: minmax(110px, max-content) 1fr; }
.dn-facts dd { overflow-wrap: anywhere; }
.dn-src { display: inline; color: var(--cx-muted); font-size: .78rem; }
.dn-src a { color: var(--cx-muted); }
.dn-quote { margin: 8px 0 14px; }
.dn-quote blockquote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--cx-gold); background: var(--cx-soft); border-radius: 0 8px 8px 0; font-family: var(--cx-serif); font-size: 1.02rem; line-height: 1.55; }
.dn-quote blockquote p { margin: 0; }
.dn-quote.dn-lead blockquote { font-size: 1.1rem; }
.dn-quote figcaption { font-size: .82rem; color: var(--cx-muted); margin-top: 4px; padding-left: 14px; }
.dn-history { padding-left: 18px; margin: 0; }
.dn-history li { margin: 5px 0; }

/* compare */
.dn-picker { display: grid; grid-template-columns: 1fr; gap: 4px 12px; align-items: end; max-width: 900px; }
.dn-picker label { font-size: .85rem; color: var(--cx-muted); margin-top: 6px; }
.dn-picker select { width: 100%; padding: 8px 10px; border: 1px solid var(--cx-line); border-radius: 8px; background: var(--cx-card); color: var(--cx-ink); font-size: .95rem; }
.dn-picker button { justify-self: start; margin-top: 10px; }
@media (min-width: 760px) {
  .dn-picker { grid-template-columns: repeat(3, 1fr) auto; grid-template-rows: auto auto; grid-auto-flow: column; }
  .dn-picker label { grid-row: 1; margin-top: 0; }
  .dn-picker select { grid-row: 2; }
  .dn-picker button { grid-row: 2; margin-top: 0; }
}
.dn-pairs { margin-top: 12px; }
.dn-pairs a { font-size: .85rem; }
.dn-cmp { min-width: 560px; table-layout: fixed; }
.dn-cmp.dn-cols-3 { min-width: 760px; }
.dn-cmp thead th { background: var(--cx-soft); font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--cx-ink); font-family: var(--cx-serif); }
.dn-cmp th[scope=row] { width: 128px; position: sticky; left: 0; background: var(--cx-card); z-index: 1; font-size: .78rem; }
.dn-cmp thead th:first-child { position: sticky; left: 0; z-index: 2; width: 128px; }
.dn-cmp td { overflow-wrap: anywhere; font-size: .9rem; }
.dn-cellq { margin: 0 0 2px; font-family: var(--cx-serif); font-size: .93rem; line-height: 1.45; }
.dn-none { color: var(--cx-muted); font-style: italic; }
.dn-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dn-tool .dn-tool-h { font-family: var(--cx-serif); font-size: 1.15rem; margin: 0 0 4px; }
.dn-tool p { margin: 0 0 8px; }

html[data-fs-theme="dark"] .dn-quote blockquote { background: #2a2723; }
@media print { .dn-picker, .dn-filters, .dn-pairs { display: none !important; } .dn-cmp th[scope=row] { position: static; } }
