/* === The diocesan factbook, /d/<slug>/ =====================================

   The public record of a see. Same two faces as the front door and no third:
   Garamond carries every sentence, Cinzel in tracked capitals carries every
   label. A reading page, not a dashboard: one column, a real measure, and
   figures set as a list of facts rather than as tiles competing for attention.

   Light and dark both, keyed to the reader's system. Every colour is defined
   on bare :root first so a page never borrows a ground it did not paint.
   ========================================================================= */

:root {
  color-scheme: light dark;
  --fb-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --fb-display: "Cinzel", Georgia, serif;

  --bg: #faf9f5;
  --card: #ffffff;
  --card-warm: #f3f2ec;
  --rule: #e2e1d8;
  --rule-strong: #c6c5b6;
  --ink: #232a3d;
  --ink-muted: #46506a;
  --ink-subtle: #697188;
  --ink-ghost: #7b8098;
  --marian: #27447e;
  --marian-deep: #1b3160;
  --gold: #a8862f;
  --gold-deep: #7d6420;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --card: #141a2a;
    --card-warm: #192134;
    --rule: #26304a;
    --rule-strong: #394668;
    --ink: #e7e4d8;
    --ink-muted: #b6b8c8;
    --ink-subtle: #9298b0;
    --ink-ghost: #7d8299;
    --marian: #8fb0e8;
    --marian-deep: #a9c2ee;
    --gold: #d8ba6a;
    --gold-deep: #b39440;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body.factbook {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fb-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

/* ---- masthead ----------------------------------------------------------- */
.fb-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 5vw, 3rem);
  border-bottom: 1px solid var(--rule);
}
.fb-brand {
  margin-right: auto;
  font-family: var(--fb-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--marian);
  text-decoration: none;
}
.fb-nav { display: flex; gap: 1.25rem; }
.fb-nav a {
  font-family: var(--fb-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.fb-nav a:hover { color: var(--marian); }

/* ---- the article -------------------------------------------------------- */
.fb-main {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3rem) 4rem;
}
.fb-jmj {
  font-family: var(--fb-display);
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--ink-ghost);
  text-align: center;
  margin-bottom: 1.4rem;
}
.factbook h1 {
  font-family: var(--fb-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
  color: var(--ink);
}
.fb-latin {
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 1.05rem;
  text-align: center;
  color: var(--ink-subtle);
  text-wrap: balance;
}
.fb-dateline {
  margin-top: 0.9rem;
  font-family: var(--fb-display);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  color: var(--gold-deep);
}
@media (prefers-color-scheme: dark) { .fb-dateline { color: var(--gold); } }
.fb-summary {
  margin: 1.75rem auto 0;
  font-size: 1.16rem;
  line-height: 1.62;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ---- sections ----------------------------------------------------------- */
.sec { margin-top: clamp(2.25rem, 5vw, 3rem); }
.factbook h2 {
  font-family: var(--fb-display);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1rem;
}
@media (prefers-color-scheme: dark) { .factbook h2 { color: var(--gold); } }
.lead, .prose { font-size: 1.04rem; line-height: 1.68; color: var(--ink-muted); text-wrap: pretty; }
.lead + .lead, .prose + .prose { margin-top: 0.8rem; }
.empty { font-style: italic; color: var(--ink-subtle); text-wrap: pretty; }
.sec-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-ghost);
  text-wrap: pretty;
}
.factbook a { color: var(--marian); text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.factbook a:hover { color: var(--marian-deep); border-bottom-color: var(--gold); }
.sec-note a, .empty a { color: inherit; }

/* ---- the paired rows: label left, fact right --------------------------- */
.rows { display: grid; gap: 0; }
.row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--rule);
}
.row:first-child { border-top: 0; }
.row dt {
  font-family: var(--fb-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  padding-top: 0.28rem;
}
.row dd { font-size: 1.04rem; color: var(--ink); text-wrap: pretty; }
@media (max-width: 32rem) {
  .row { grid-template-columns: 1fr; gap: 0.1rem; }
  .row dt { padding-top: 0; }
}

/* ---- the figures ------------------------------------------------------- */
/* Each figure carries its own border rather than the grid drawing one with a
   1px gap over a coloured ground. The gap trick paints the EMPTY cells of the
   last row too, so seven figures in a three-column grid showed one fact beside
   two filled boxes with nothing in them. */
.figs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.5rem;
}
.fig {
  background: var(--card-warm);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.9rem 1rem 1rem;
}
.fig dt {
  font-family: var(--fb-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}
.fig dd {
  margin-top: 0.25rem;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--ink);
  /* Figures are data and can be long; they must never widen the grid. */
  overflow-wrap: anywhere;
}
.fig-note {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-ghost);
  text-wrap: pretty;
}

/* ---- the sees of the province ------------------------------------------ */
.sees { list-style: none; margin-top: 0.7rem; display: grid; gap: 0; }
.sees li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--rule);
}
.sees li:first-child { border-top: 0; }
.sees a { font-size: 1.02rem; border-bottom-color: transparent; }
.sees a:hover { border-bottom-color: var(--gold); }
.sees-city {
  font-family: var(--fb-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-ghost);
}

/* ---- what is kept ------------------------------------------------------- */
.fb-kept {
  background: var(--card-warm);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  padding: 1.4rem clamp(1.1rem, 3vw, 1.75rem) 1.6rem;
}
.fb-kept h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 0.75rem; }
.fb-gate { margin-top: 1.2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.25rem; }
.fb-ask {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.6rem 1.9rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-family: var(--fb-display);
  font-size: 0.66rem; font-weight: 650;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep);
}
.fb-ask:hover { background: var(--card); color: var(--gold-deep); border-color: var(--gold); }
@media (prefers-color-scheme: dark) { .fb-ask { color: var(--gold); } }
.fb-signin { font-style: italic; font-size: 0.98rem; border-bottom-color: transparent; color: var(--ink-subtle); }
.fb-signin:hover { color: var(--marian); }

/* ---- footer ------------------------------------------------------------- */
.fb-foot {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.75rem clamp(1.25rem, 5vw, 3rem) 3.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-ghost);
  text-wrap: pretty;
}
.fb-foot p + p { margin-top: 0.7rem; }
.fb-amdg {
  font-family: var(--fb-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
@media (prefers-color-scheme: dark) { .fb-amdg { color: var(--gold); } }
.fb-foot a { color: inherit; border-bottom-color: var(--rule); }

@media (pointer: coarse) {
  .factbook a { min-height: 24px; }
  .fb-nav a, .fb-ask { min-height: 44px; }
}
