/* =========================================================
   NUVO CHURCH — Position paper (/women-in-leadership/)
   Reading layout: hero, summary, contents cards, then the paper
   with a sticky chapter list (a bottom sheet on phones).
   ========================================================= */
.page-wil {
  --w-deep: #1F2A22;
  --w-deep-2: #2B3A2F;
  --w-gold: #C9A96A;
  --w-paper: #FBF9F4;
  background: var(--ivory);
}

/* reading progress */
.wprog { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }
.wprog span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--forest), var(--w-gold)); }

/* ---------- hero ---------- */
.whero {
  position: relative; overflow: hidden; color: #F4F0E7;
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(201, 169, 106, .18), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(65, 107, 80, .45), transparent 65%),
    var(--w-deep);
  padding: clamp(150px, 20vh, 210px) 0 clamp(70px, 10vw, 120px);
}
.whero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(90deg, rgba(244, 240, 231, .045) 0 1px, transparent 1px 120px);
}
.whero__in { position: relative; }
.whero__k { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--w-gold); margin: 0 0 22px; }
.whero__t { font-family: var(--font-display); font-weight: 900; font-size: clamp(3.2rem, 10vw, 8.6rem); line-height: .92; letter-spacing: -.035em; margin: 0 0 28px; max-width: 11ch; }
.whero__t em { display: block; font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: #CFDCC9; }
.whero__s { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.55; color: rgba(244, 240, 231, .82); max-width: 46ch; margin: 0 0 26px; }
.whero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.whero__meta span { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(244, 240, 231, .2); font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: rgba(244, 240, 231, .85); }
.whero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.whero__verse {
  position: absolute; right: var(--gutter); bottom: clamp(60px, 9vw, 110px); width: min(380px, 32vw); margin: 0;
  padding-left: 22px; border-left: 2px solid var(--w-gold);
}
.whero__verse blockquote { margin: 0 0 10px; font-family: var(--font-serif); font-style: italic; font-size: 1.45rem; line-height: 1.35; color: rgba(244, 240, 231, .9); }
.whero__verse figcaption { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--w-gold); }
@media (max-width: 1100px) { .whero__verse { display: none; } }

.wbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 15px; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.wbtn--light { background: #F4F0E7; color: var(--w-deep); }
.wbtn--light:hover { background: #fff; transform: translateY(-2px); }
.wbtn--ghost { border: 1.5px solid rgba(244, 240, 231, .4); color: #F4F0E7; }
.wbtn--ghost:hover { border-color: #F4F0E7; transform: translateY(-2px); }

/* ---------- summary ---------- */
.wsum { padding: clamp(64px, 9vw, 110px) 0; }
.wsum__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.wsum__h { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; margin: 6px 0 20px; color: var(--charcoal); }
.wsum__lead > p:not(.eyebrow) { font-size: 1.12rem; line-height: 1.7; color: var(--ink-soft); max-width: 56ch; margin: 0; }
.wsum__pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.wsum__pts li { position: relative; padding: 20px 22px 20px 62px; background: var(--w-paper); border: 1px solid var(--line); border-radius: 18px; line-height: 1.55; color: var(--ink-soft); }
.wsum__pts li::before { content: ""; position: absolute; left: 20px; top: 20px; width: 26px; height: 26px; border-radius: 50%; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.wsum__pts b { color: var(--charcoal); font-family: var(--font-display); }
@media (max-width: 900px) { .wsum__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contents ---------- */
.wcontents { padding: clamp(64px, 9vw, 110px) 0; background: var(--cream); }
.wcontents__head { margin-bottom: clamp(28px, 4vw, 44px); }
.wcontents__h { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.025em; margin: 6px 0 0; color: var(--charcoal); }
.wcontents__h em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--forest); }
.wcontents__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wcard { display: flex; flex-direction: column; background: var(--w-paper); border-radius: 20px; padding: 24px 24px 20px; border: 1px solid rgba(37, 39, 35, .08); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.wcard__k { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--forest); margin: 0 0 8px; }
.wcard__t { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; margin: 0 0 14px; color: var(--charcoal); }
.wcard__l { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.wcard__l a { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-size: .98rem; line-height: 1.35; transition: color .15s; }
.wcard__l li:last-child a { border-bottom: 0; padding-bottom: 2px; }
.wcard__l a span { flex: 0 0 auto; min-width: 22px; font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--forest); }
.wcard__l a:hover { color: var(--charcoal); }
.wcard--solo { min-height: 170px; }
.wcard__d { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.55; }
.wcard__go { margin-top: auto; }
.wcard--solo:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37, 39, 35, .1); }
.wcard__go { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--forest); }
.wcard--solo:first-child { background: var(--w-deep); color: #F4F0E7; border-color: transparent; }
.wcard--solo:first-child .wcard__t { color: #F4F0E7; font-size: 1.6rem; }
.wcard--solo:first-child .wcard__d { color: rgba(244, 240, 231, .78); }
.wcard--solo:first-child .wcard__k, .wcard--solo:first-child .wcard__go { color: var(--w-gold); }
.wcard--books { background: #E4EAE0; }
@media (max-width: 1000px) { .wcontents__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .wcontents__grid { grid-template-columns: minmax(0, 1fr); } .wcard--solo { min-height: 0; gap: 10px; } }

/* ---------- reading layout ---------- */
.wread { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); padding-top: clamp(56px, 7vw, 90px); padding-bottom: clamp(70px, 9vw, 120px); }
.wtoc__in { position: sticky; top: 104px; max-height: calc(100vh - 128px); overflow: auto; padding: 4px 6px 20px 0; scrollbar-width: thin; }
body.has-xbar .wtoc__in { max-height: calc(100vh - 220px); }
.wtoc__h { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.wtoc__part { margin: 18px 0 6px; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; line-height: 1.35; color: var(--charcoal); }
.wtoc__part span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--forest); margin-bottom: 2px; }
.wtoc__list { list-style: none; margin: 0; padding: 0; }
.wtoc__list a { position: relative; display: flex; gap: 10px; padding: 7px 10px 7px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-soft); font-size: 14px; line-height: 1.35; transition: background .15s, color .15s; }
.wtoc__list a::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: transparent; transition: background .15s; }
.wtoc__list a:hover { background: rgba(65, 107, 80, .08); color: var(--charcoal); }
.wtoc__list a.on { background: rgba(65, 107, 80, .12); color: var(--charcoal); font-weight: 600; }
.wtoc__list a.on::before { background: var(--forest); }
.wtoc__n { flex: 0 0 18px; font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--forest); }
.wtoc__print { margin-top: 20px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.wtoc__print:hover { border-color: var(--forest); color: var(--forest); }

.wpaper { max-width: 740px; min-width: 0; }

/* part divider */
.wpart {
  position: relative; overflow: hidden; margin: 0 0 clamp(40px, 5vw, 60px); padding: clamp(30px, 5vw, 52px) clamp(26px, 4vw, 48px);
  border-radius: 26px; color: #F4F0E7;
  background: radial-gradient(80% 120% at 100% 0%, rgba(201, 169, 106, .2), transparent 60%), var(--w-deep-2);
}
.wch + .wpart { margin-top: clamp(30px, 4vw, 50px); }
.wpart__k { margin: 0 0 6px; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--w-gold); }
.wpart__t { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.02em; }
.wpart__c { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: rgba(244, 240, 231, .7); }

/* chapter */
.wch { scroll-margin-top: 96px; padding-bottom: clamp(40px, 5vw, 60px); margin-bottom: clamp(40px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.wch__h { position: relative; margin-bottom: 28px; }
.wch__num { display: block; font-family: var(--font-serif); font-size: clamp(4rem, 8vw, 6rem); line-height: .8; color: var(--sage); margin: 0 0 14px; }
.wch__num--word { font-style: italic; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--forest); }
.wch__k { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.wch__h h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; color: var(--charcoal); margin: 0; }
.wch__link { margin-left: 10px; font-family: var(--font-body); font-weight: 500; font-size: .7em; color: var(--stone); text-decoration: none; opacity: 0; transition: opacity .15s, color .15s; }
.wch__h:hover .wch__link, .wch__link:focus-visible { opacity: 1; }
.wch__link:hover { color: var(--forest); }
@media (hover: none) { .wch__link { opacity: .7; } }

/* prose */
.wprose { font-size: 1.13rem; line-height: 1.8; color: #3A3C37; }
.wprose p { margin: 0 0 1.15em; }
.wprose .gk { font-family: var(--font-serif); font-size: 1.12em; color: var(--forest); }
.wh3 { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.25; color: var(--charcoal); margin: 2em 0 .7em; }
.wh3::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--w-gold); margin-bottom: 12px; }
.wqh { display: flex; gap: 14px; align-items: flex-start; margin: 1.8em 0 .8em; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; line-height: 1.4; color: var(--charcoal); }
.wqh span { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff; font-size: 15px; margin-top: -3px; }
.wq { margin: 1.8em 0; padding: 26px 28px; border-radius: 20px; background: #EEF1EA; position: relative; }
.wq::before { content: "\201C"; position: absolute; top: -6px; left: 18px; font-family: var(--font-serif); font-size: 5rem; line-height: 1; color: var(--sage); }
.wq blockquote { margin: 0; }
.wq blockquote p { margin: 0 0 12px; padding-top: 18px; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 2.4vw, 1.65rem); line-height: 1.4; color: var(--charcoal); }
.wq figcaption { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.wcallout { margin: 1.6em 0 !important; padding: 24px 26px; border-radius: 18px; background: var(--w-deep); color: #F4F0E7; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; line-height: 1.5; }
.wemph { font-family: var(--font-serif); font-style: italic; font-size: 1.45em; line-height: 1.35; color: var(--forest); }
.wlist { list-style: none; margin: 0 0 1.3em; padding: 0; display: grid; gap: 10px; }
.wlist li { position: relative; padding: 14px 18px 14px 44px; background: var(--w-paper); border: 1px solid var(--line); border-radius: 14px; line-height: 1.55; }
.wlist li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--w-gold); }

/* chapter-to-chapter nav (added by paper.js) */
.wnext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.wnext a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; color: var(--charcoal); font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.3; transition: border-color .15s, background .15s; }
.wnext a small { font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wnext a:hover { border-color: var(--forest); background: rgba(65, 107, 80, .06); }
.wnext__n { grid-column: 2; text-align: right; align-items: flex-end; }
@media (max-width: 560px) { .wnext { grid-template-columns: 1fr; } .wnext__n { grid-column: 1; } }

/* bibliography */
.wbooks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.wbook { display: flex; overflow: hidden; border-radius: 16px; background: var(--w-paper); border: 1px solid var(--line); }
.wbook__spine { flex: 0 0 12px; background: var(--forest); }
.wbook:nth-child(4n + 2) .wbook__spine { background: var(--w-gold); }
.wbook:nth-child(4n + 3) .wbook__spine { background: #7D8F79; }
.wbook:nth-child(4n + 4) .wbook__spine { background: var(--w-deep-2); }
.wbook__b { display: flex; flex-direction: column; padding: 16px 18px; min-width: 0; }
.wbook__t { margin: 0 0 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; line-height: 1.3; color: var(--charcoal); }
.wbook__a { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.wbook__p { margin: 2px 0 14px; font-size: .88rem; color: var(--muted); }
.wbook__l { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--charcoal); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; text-decoration: none; transition: background .15s; }
.wbook__l:hover { background: var(--forest); }
@media (max-width: 640px) { .wbooks { grid-template-columns: minmax(0, 1fr); } }

/* addenda */
.wadd { border: 1px solid var(--line); border-radius: 18px; background: var(--w-paper); margin-bottom: 12px; }
.wadd summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 20px 56px 20px 22px; position: relative; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; color: var(--charcoal); }
.wadd summary::-webkit-details-marker { display: none; }
.wadd summary span { font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--forest); }
.wadd summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--forest); }
.wadd[open] summary::after { content: "–"; }
.wadd .wprose { padding: 0 22px 8px; font-size: 1.05rem; }

/* phones: chapter button + bottom sheet */
.wfab { display: none; }
@media (max-width: 1000px) {
  .wread { grid-template-columns: minmax(0, 1fr); }
  .wtoc { display: none; }
  .wpaper { max-width: none; }
  .wfab {
    position: fixed; z-index: 75; left: 16px; bottom: 16px; max-width: calc(100vw - 32px);
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px;
    background: var(--w-deep); color: #F4F0E7; box-shadow: 0 12px 30px rgba(20, 30, 22, .3);
    font-family: var(--font-display); font-weight: 700; font-size: 14px; cursor: pointer;
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s, bottom .45s;
  }
  .wfab.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .wfab__i { width: 18px; height: 12px; flex: 0 0 auto; border-top: 2px solid var(--w-gold); border-bottom: 2px solid var(--w-gold); position: relative; }
  .wfab__i::after { content: ""; position: absolute; left: 0; right: 4px; top: 3px; border-top: 2px solid var(--w-gold); }
  .wfab__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.has-xbar .wfab { bottom: 92px; }
}
@media (max-width: 760px) { body.has-xbar .wfab { bottom: 88px; } }
.wsheet { position: fixed; inset: 0; z-index: 130; }
.wsheet[hidden] { display: none; }
.wsheet__bg { position: absolute; inset: 0; background: rgba(20, 24, 20, .45); }
.wsheet__p { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; display: flex; flex-direction: column; background: var(--ivory); border-radius: 24px 24px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); animation: wsheet .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes wsheet { from { transform: translateY(100%); } }
.wsheet__h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; border-bottom: 1px solid var(--line); }
.wsheet__h p { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.wsheet__h button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(37, 39, 35, .07); font-size: 24px; line-height: 1; cursor: pointer; color: var(--charcoal); }
.wsheet__b { overflow: auto; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); }
.wsheet__b .wtoc__list a { font-size: 15.5px; padding: 10px 12px; }

@media (max-width: 640px) {
  .wprose { font-size: 1.07rem; line-height: 1.75; }
  .wq { padding: 22px 20px; }
  .wcallout { padding: 20px; font-size: 1.1rem; }
  .whero__actions .wbtn { flex: 1 1 auto; }
}

/* print / save as PDF */
@media print {
  .nav, .site-footer, footer, .wprog, .wcontents, .wtoc, .wfab, .wsheet, .wnext, .xbar, .wch__link, .whero__actions, .whero__verse, .menu { display: none !important; }
  .whero { background: none; color: #000; padding: 0 0 20px; }
  .whero::before { display: none; }
  .whero__t em, .whero__k, .whero__s, .whero__meta span { color: #000; }
  .wread { display: block; padding: 0; }
  .wpart { background: none; color: #000; border: 2px solid #000; break-before: page; }
  .wpart__k, .wpart__c { color: #000; }
  .wcallout { background: none; color: #000; border: 2px solid #000; }
  .wq, .wlist li, .wbook, .wsum__pts li { background: none; break-inside: avoid; }
  .wadd { border: 0; } .wadd > *:not(summary) { display: block !important; }
  .wbook__l { background: none; color: #000; padding: 0; }
  .wbook__l::after { content: " " attr(href); font-size: 10px; }
}
