/* Encyclopedia of Church History styles (Release #837, 28 Nov 2026).
 * Approved colours only: pink magenta #b40059, bright blue, gold,
 * white. 16px minimum font everywhere (1rem floor). */
.pd-ch-menu{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:linear-gradient(120deg,#07195f,#1235ff 72%,#07518c);border-bottom:4px solid #ffc42d;border-radius:14px;padding:14px 16px;margin:0 0 22px;position:sticky;top:8px;z-index:5}
.pd-ch-menu-label{color:#ffdf5c;font-weight:900;font-size:1rem;letter-spacing:.06em;text-transform:uppercase}
.pd-ch-menu-link{color:#fff;text-decoration:none;font-weight:800;font-size:1rem;padding:8px 12px;border-radius:999px;border:2px solid #ffffff55;background:#ffffff14}
.pd-ch-menu-link:hover,.pd-ch-menu-link:focus-visible{background:#b40059;border-color:#ffc42d;outline:3px solid #00bfff;outline-offset:2px}
.pd-ch-menu-link--challenge{background:#ffc42d;color:#10234c;border-color:#ffc42d}
.pd-ch-menu-link--challenge:hover,.pd-ch-menu-link--challenge:focus-visible{background:#b40059;color:#fff}
.pd-ch-intro{margin:0 0 26px}
.pd-ch-intro-title{color:#062b83;font-size:clamp(1.25rem,2.4vw,1.7rem);margin:0 0 10px}
.pd-ch-intro p{line-height:1.75;font-size:1rem}
.pd-ch-confession{font-weight:800;color:#b40059;border-left:5px solid #ffc42d;padding:10px 14px;background:#fff8dc;border-radius:0 10px 10px 0}
.pd-ch-verse{margin:14px 0}
.pd-ch-section{margin:30px 0;scroll-margin-top:190px}
.pd-ch-heading{color:#062b83;font-size:clamp(1.25rem,2.4vw,1.7rem);border-bottom:3px solid #b40059;padding-bottom:8px;margin:0 0 10px}
.pd-ch-section-intro{color:#465b7a;line-height:1.7;font-size:1rem;margin:0 0 16px}
.pd-ch-entry h4{color:#153988;margin:8px 0;font-size:1.125rem}
.pd-ch-challenge{margin:36px 0 6px;padding:clamp(20px,4vw,36px);border-radius:20px;background:linear-gradient(135deg,#07195f,#1235ff 55%,#b40059);color:#fff;border-bottom:6px solid #ffc42d;scroll-margin-top:190px;box-shadow:0 10px 30px #09266033}
.pd-ch-challenge-title{color:#ffdf5c;font-size:clamp(1.5rem,3.4vw,2.3rem);margin:0 0 12px}
.pd-ch-challenge-intro,.pd-ch-challenge-closing{line-height:1.75;font-size:1rem;max-width:820px}
.pd-ch-challenge-questions{list-style:none;counter-reset:pdch;margin:20px 0;padding:0;display:grid;gap:12px}
.pd-ch-challenge-questions li{counter-increment:pdch;background:#ffffff14;border:2px solid #ffc42d;border-radius:14px;padding:16px 18px 16px 64px;position:relative;font-size:clamp(1.1rem,2.2vw,1.4rem);font-weight:900;color:#fff}
.pd-ch-challenge-questions li:before{content:counter(pdch);position:absolute;left:14px;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;background:#ffc42d;color:#10234c;display:flex;align-items:center;justify-content:center;font-size:1.1rem;font-weight:900}
.pd-ch-challenge .pd-scripture{background:#071b68cc}
@media(max-width:590px){.pd-ch-menu{position:static}.pd-ch-section,.pd-ch-challenge,.pd-ch-entry{scroll-margin-top:24px}.pd-ch-challenge-questions li{padding-left:58px}}
/* Release #839 (28 Nov 2026): dynamic app-like navigation + share rows.
 * Transform/opacity only (GPU-friendly); everything still under
 * prefers-reduced-motion. Approved colours; 16px floor kept. */
.pd-ch-progress{flex:1 1 100%;position:relative;height:22px;border-radius:999px;background:#ffffff2b;border:2px solid #ffc42d;overflow:hidden}
.pd-ch-progress-fill{position:absolute;inset:0 auto 0 0;width:0;background:linear-gradient(90deg,#ffc42d,#b40059);transition:width .45s ease}
.pd-ch-progress-text{position:relative;display:flex;align-items:center;height:100%;padding:0 12px;color:#fff;font-size:1rem;font-weight:800}
.pd-ch-menu-link.is-active{background:#ffc42d;color:#10234c;border-color:#ffc42d}
.pd-ch-section-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.pd-ch-section-head .pd-ch-heading{flex:1 1 auto}
.pd-ch-share-row{margin-top:12px}
.pd-ch-section-source{margin-top:14px;border-top:2px solid #dbe4f6;padding-top:10px}
.pd-ch-continue{margin-top:18px}
.pd-ch-entry{scroll-margin-top:190px}
.pd-ch-reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
.pd-ch-reveal.is-in{opacity:1;transform:none}
.pd-ch-challenge .pd-share-button{background:#fff;color:#b40059}
@media(prefers-reduced-motion:reduce){.pd-ch-menu{position:static}.pd-ch-progress-fill{transition:none}.pd-ch-reveal{opacity:1;transform:none;transition:none}}
/* Release #840 (28 Nov 2026): scroll-margin-top raised to 190px on
 * sections, entries and the Challenge so the sticky secondary menu
 * (with its progress bar) never overlaps the heading on landing —
 * the #839 browser note. On phones the menu is static, so the margin
 * drops to 24px in the 590px block above. */
