/* V40 — content-first layout, consistent spacing, and community invitation */
:root{--v40-ink:#16392e;--v40-gold:#bf9d55;--v40-cream:#faf9f3;--v40-border:#d9dfd2}
:where(.v39-reading,.k33-reader,.v20-charity,.v35-sources,.v36-source-panel,.v39-sources){overflow-wrap:break-word;min-width:0}
.v40-chapter-jump{margin:10px 0 23px;padding:0;border:1px solid var(--v40-border);border-radius:12px;background:#f5f7f0;color:var(--v40-ink)}
.v40-chapter-jump summary{cursor:pointer;list-style:auto;font-size:14px;font-weight:700;min-height:44px;padding:12px 16px}
.v40-chapter-jump .v40-chapter-links{padding:0 16px 16px;display:flex;flex-wrap:wrap;gap:10px 18px}
.v40-chapter-jump .v40-chapter-links a{font-size:13px;font-weight:650;text-decoration:underline;text-underline-offset:3px}
.v40-story-clarity{font-size:13px;line-height:1.65;color:#4e6658;padding:10px 14px;border-left:3px solid var(--v40-gold);background:#f9f7ed;border-radius:4px;margin:16px 0 10px}
.v40-end-references{margin-block:34px 40px!important;scroll-margin-top:95px}
.v40-end-references h2{scroll-margin-top:95px}
.v40-community{margin:48px 0 24px;padding:clamp(22px,4vw,38px);border:1px solid #d6decf;border-radius:20px;background:linear-gradient(135deg,#eef3e9 0%,#fffdf6 100%);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:22px}
.v40-community .v40-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.16em;color:#8b7339;font-weight:800}
.v40-community h2{font-family:Georgia,serif;font-size:clamp(26px,3.1vw,39px);line-height:1.18;letter-spacing:-.025em;color:var(--v40-ink);margin:9px 0 13px}
.v40-community p{font-size:15px;line-height:1.8;color:#3c564a;max-width:760px;margin:0 0 12px}
.v40-community .v40-name{font-size:13px;font-weight:750;color:#224638}
.v40-community a.v40-link{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:180px;padding:12px 18px;text-align:center;background:#0e4a39;color:#fff;border:1px solid #0e4a39;border-radius:10px;font-size:13px;font-weight:800;text-decoration:none;white-space:normal}
.v40-community a.v40-link:focus-visible{outline:3px solid #b8964e;outline-offset:3px}
.v40-community a.v40-link:hover{background:#123d31}
.v40-reading-intro{font-size:15px;line-height:1.75;max-width:75ch}
.v40-profile-end{margin-top:36px}
@media(max-width:760px){.v40-community{grid-template-columns:1fr;gap:10px}.v40-community a.v40-link{width:100%}.v40-chapter-jump .v40-chapter-links{display:grid;grid-template-columns:1fr}.v40-chapter-jump .v40-chapter-links a{min-height:40px;display:flex;align-items:center}}
@media(prefers-reduced-motion:reduce){.v40-community *, .v40-chapter-jump *{transition:none!important;animation:none!important}}
