/* encyclopedia.css — the Catholic Encyclopedia (encyclopedia.js, update 29). Prefix ce-; colours only through core tokens. */

/* the Words tab */
.ce-intro p { font-family: var(--serif); font-size: 17px; line-height: var(--lh); color: var(--ink-2); margin: 4px 0 12px; }
.ce-az { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 14px; }
.ce-azb { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border-radius: var(--r-2); border: 1px solid var(--border);
  font-family: var(--display); font-size: 17px; color: var(--ink-2); text-decoration: none; background: var(--surface); }
.ce-azb:hover, .ce-azb.is-on { color: var(--rubric); border-color: var(--rubric); }
.ce-feat { margin-top: 4px; }
.ce-list { display: flex; flex-direction: column; }
.ce-res { display: flex; flex-direction: column; padding: 8px 10px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; min-width: 0; }
.ce-res:hover, .ce-res:focus-visible { background: var(--surface); }
.ce-res:hover .ce-res-t { color: var(--rubric); }
.ce-res-t { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.ce-res-s { font-family: var(--serif); font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* an article */
.ce-by { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 2px 0 0; font-size: 17px; }
.ce-toc { margin: 4px 0 18px; border: 1px solid var(--border); border-radius: var(--r-2); background: var(--surface); padding: 8px 14px; }
.ce-toc summary { cursor: pointer; font-family: var(--sans); font-size: 14px; letter-spacing: .04em; color: var(--ink-2); }
.ce-toc summary small { color: var(--muted); }
.ce-toc ol { margin: 8px 0 4px; padding-left: 22px; font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.ce-toc a { color: var(--link); text-decoration: none; }
.ce-toc a:hover { text-decoration: underline; }
.ce-body { overflow-wrap: anywhere; }
.ce-body .ce-p, .ce-body li, .ce-body .ce-q { font-family: var(--serif); font-size: 19px; line-height: var(--lh); color: var(--ink); }
.ce-body .ce-p { margin: 0 0 .9em; }
.ce-h { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--rubric); margin: 1.4em 0 .5em; letter-spacing: .01em; scroll-margin-top: calc(var(--nxh, 56px) + 12px); }
.ce-ul { margin: 0 0 1em; padding-left: 1.3em; }
.ce-ul li { margin: .2em 0; }
.ce-q { margin: .4em 0 1em; padding: 2px 0 2px 16px; border-left: 2px solid var(--gold-2); color: var(--ink-2); font-size: 18px; }
.ce-bib { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--muted); margin: .4em 0 1.1em; padding-top: 6px; border-top: 1px solid var(--border); }
.ce-sc { font-variant: small-caps; letter-spacing: .03em; }
.ce-x { color: var(--link); text-decoration: none; border-bottom: 1px dotted var(--link); }
.ce-x:hover { text-decoration: none; border-bottom-style: solid; }
.ce-tw { overflow-x: auto; margin: 0 0 1em; }
.ce-tb { border-collapse: collapse; font-family: var(--serif); font-size: 15px; }
.ce-tb td { border: 1px solid var(--border); padding: 3px 8px; vertical-align: top; color: var(--ink); }
.ce-notes { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--ink-2); padding-left: 22px; }
.ce-flash { animation: ce-flash 2.4s ease-out 1; border-radius: 3px; }
@keyframes ce-flash { from { background: color-mix(in srgb, var(--gold-2) 40%, transparent); } to { background: transparent; } }
.wd-see.is-e { border-color: var(--gold); }
.wd-see small { color: var(--muted); font-size: 13px; }
@media (max-width: 520px) {
  .ce-body .ce-p, .ce-body li { font-size: 18px; }
  .ce-h { font-size: 20px; }
}
/* dictionaries (update 30): the source beside each headword */
.ce-res-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ce-res-k { margin-left: auto; flex: none; font-variant: small-caps; letter-spacing: .06em; font-size: 14px; color: var(--gold); white-space: nowrap; }
.wd-see.is-c { border-color: var(--rubric); }
