/* Diocese pages (sample stage), on top of card.css: the cathedral, the bishops, a
   progress bar for the whole diocese, the Keeper call to action and the parish list. */
.diocese .hero { margin: 0; aspect-ratio: 3 / 2; background: var(--pencil-soft); overflow: hidden; }
.diocese .hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.diocese .body { padding: 1.4rem 1.25rem 1.5rem; }
.diocese .draft { margin: 0 0 0.7rem; display: inline-block; padding: 0.2rem 0.65rem; border-radius: 99px; background: var(--pencil-soft); color: var(--gold); font-size: 0.72rem; font-weight: 600; }
.diocese .eyebrow { color: var(--gold); }
.diocese .rite { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.9rem; }
.diocese h2 { font: 600 1.15rem/1.25 var(--display); margin: 0; }

.progress { margin: 1.3rem 0 0; padding: 1rem 1.05rem; border: 1px solid var(--rule); border-top: 2px solid var(--gold); border-radius: 0.9rem; background: var(--paper); }
.prog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.prog-head h2 { font-size: 1.5rem; }
.prog-head a { font-size: 0.85rem; font-weight: 500; color: var(--gold); white-space: nowrap; }
.bar { margin: 0.65rem 0 0.8rem; height: 0.55rem; border-radius: 99px; background: var(--pencil-soft); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; font-size: 0.84rem; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 600; }
.progress .how { margin: 0.8rem 0 0; font-size: 0.84rem; color: var(--muted); line-height: 1.45; }

.diocese .ledger { margin: 1.4rem 0 0; border-top: 1px solid var(--rule); }
.diocese .ledger > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); }
.diocese .ledger dt { font: 500 0.75rem/1.5 var(--text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.diocese .ledger dd { margin: 0; font: 400 1rem/1.4 var(--display); }
.diocese .ledger .since { display: block; font: 400 0.8rem/1.4 var(--text); color: var(--muted); }
@media (max-width: 30rem) { .diocese .ledger > div { grid-template-columns: 1fr; gap: 0.05rem; } }

.keeper { margin: 1.5rem 0 0; padding: 1.1rem 1.1rem 1.2rem; border-radius: 0.9rem; background: var(--ink); color: #f8f5ef; }
.keeper .kicker { margin: 0; font: 600 0.68rem/1 var(--text); letter-spacing: 0.16em; text-transform: uppercase; color: #d9bf83; }
.keeper h2 { margin: 0.45rem 0 0; font-size: 1.35rem; color: #fffefb; }
.keeper p { margin: 0.5rem 0 0; font-size: 0.88rem; line-height: 1.5; color: #e7e2d6; }
.keeper .cta { margin-top: 0.9rem; width: 100%; padding: 0.75rem 1rem; border: 0; border-radius: 0.65rem; background: #d9bf83; color: var(--ink); font: 600 0.95rem/1 var(--text); cursor: pointer; }

.parishes { margin: 1.7rem 0 0; }
.parishes h2 span { font: 500 0.8rem/1 var(--text); color: var(--muted); margin-left: 0.3rem; }
.pfilters { display: grid; gap: 0.55rem; margin: 0.8rem 0 0.4rem; }
.pfilters input { font: 400 1rem/1.2 var(--text); padding: 0.6rem 0.75rem; border: 1px solid var(--rule); border-radius: 0.6rem; background: var(--paper); color: var(--ink); min-width: 0; }
.pfilters .chips { display: flex; gap: 0.35rem; }
.pfilters .chips button { flex: 1; white-space: nowrap; font: 500 0.8rem/1 var(--text); padding: 0.55rem 0.4rem; border-radius: 99px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.pfilters .chips button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: var(--card); }
ol.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
ol.plist li { display: grid; grid-template-columns: 1fr 4.2rem 2.4rem; align-items: center; gap: 0.35rem 0.6rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); }
.pname { min-width: 0; display: flex; flex-direction: column; }
.pname .n { font: 500 1rem/1.25 var(--display); }
.pname .t { font-size: 0.8rem; color: var(--muted); }
.meter { height: 0.4rem; border-radius: 99px; background: var(--pencil-soft); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: #c9a961; }
.meter.mid span { background: var(--gold); }
.meter.high span { background: #4f7a4a; }
.pct { font: 600 0.75rem/1 var(--text); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.asks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.ask { font: 500 0.76rem/1 var(--text); padding: 0.42rem 0.65rem; border-radius: 99px; border: 1px dashed var(--gold); background: transparent; color: var(--gold); cursor: pointer; }
.ask::before { content: "+ "; }
.more { font-size: 0.74rem; color: var(--muted); }
.parishes .none { color: var(--muted); }

.diocese footer.sources { margin-top: 1.6rem; font-size: 0.72rem; color: var(--muted); }
.diocese footer.sources p { margin: 0 0 0.3rem; }
.diocese footer.sources ul { list-style: none; margin: 0 0 0.3rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.8rem; }
.diocese footer.sources a { color: inherit; }

.preview { position: fixed; inset: 0; z-index: 900; display: grid; place-items: end center; background: rgba(31, 36, 48, 0.35); padding: 1rem; }
.preview[hidden] { display: none; }
.preview .sheet { width: min(30rem, 100%); background: var(--card); border: 1px solid var(--rule); border-top: 2px solid var(--gold); border-radius: 0.9rem; padding: 1.1rem 1.2rem; box-shadow: 0 10px 30px rgba(31, 36, 48, 0.18); }
.preview p { margin: 0.5rem 0 0.9rem; font-size: 0.92rem; line-height: 1.5; }
.preview .close { width: 100%; padding: 0.65rem; border-radius: 0.6rem; border: 1px solid var(--gold); background: var(--paper); color: var(--ink); font: 500 0.92rem/1 var(--text); cursor: pointer; }
ol.plist li[hidden] { display: none; }
.preview h2 { margin: 0; font: 600 1.2rem/1.25 var(--display); }

/* Diocese pages: an empty parish list, and the country index. */
.parishes .empty { margin: 0.8rem 0 0; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.parishes .empty .ask { margin-top: 0.5rem; }
.country { max-width: 40rem; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.country .eyebrow { color: var(--gold); }
.country h1 { margin: 0.2rem 0 0; }
.dsearch { width: 100%; box-sizing: border-box; margin: 1.2rem 0 0; font: 400 1rem/1.2 var(--text); padding: 0.65rem 0.8rem; border: 1px solid var(--rule); border-radius: 0.6rem; background: var(--card); color: var(--ink); }
section.state { margin-top: 1.4rem; }
section.state[hidden] { display: none; }
section.state h2 { margin: 0 0 0.3rem; font: 500 0.78rem/1.4 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
ol.dlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
ol.dlist li { display: grid; grid-template-columns: 1fr 3.6rem 2.4rem; align-items: center; gap: 0.6rem; padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
ol.dlist li[hidden] { display: none; }
ol.dlist a { min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
ol.dlist .dn { font: 500 1rem/1.25 var(--display); }
ol.dlist a:hover .dn { color: var(--gold); }
ol.dlist .dm { font-size: 0.78rem; color: var(--muted); }
.country footer.sources { margin-top: 1.8rem; font-size: 0.72rem; color: var(--muted); }
.country footer.sources a { color: inherit; }
.country .none { color: var(--muted); }
.country .prog-head h2 { font: 600 1.5rem/1.25 var(--display); margin: 0; }
.pfilters[hidden] { display: none; }
