/* Kingdom Life: navy, cream and gold, layered on the hub's base styles */
.kl { --navy:#1B1B1A; --cream:#F2F2F0; --gold:#F5CF3B; --gold2:#F5CF3B; }
body.kl-body { background: #FFFFFF; }
.kl-hero { background:#1B1B1A; color:#fff; border-radius:var(--r-lg); padding:34px 24px 30px; margin-top:12px; box-shadow:var(--lift); }
.kl-eyebrow { font-weight:800; letter-spacing:.18em; font-size:11px; color:#F5CF3B; text-transform:uppercase; }
.kl-hero h1 { font-family:var(--sans); font-weight:800; font-size:clamp(30px,8vw,46px); line-height:1.04; margin:12px 0 14px; color:#fff; }
.kl-hero p { font-size:17px; line-height:1.5; color:#DCDCD7; margin:0 0 20px; max-width:46ch; }
.kl-btn { display:inline-flex; align-items:center; justify-content:center; min-height:52px; padding:0 26px; border-radius:999px; background:#F5CF3B; color:#1B1B1A; font-weight:800; font-size:16.5px; text-decoration:none; border:0; cursor:pointer; font-family:inherit; }
.kl-btn.ghost { background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.4); }
.kl-btn.navy { background:#1B1B1A; color:#fff; }
.kl-trust { font-size:13.5px; color:#B8B8B3; margin-top:16px; }
.kl-steps { display:grid; gap:12px; margin-top:20px; }
.kl-step { display:flex; gap:14px; background:#fff; border-radius:var(--r-md); padding:16px 18px; box-shadow:var(--lift); }
.kl-step b.n { flex:none; width:34px; height:34px; border-radius:50%; background:#1B1B1A; color:#F5CF3B; display:grid; place-items:center; font-weight:800; }
.kl-progress { height:6px; background:#E4E4E0; border-radius:99px; overflow:hidden; margin:14px 0 4px; }
.kl-progress i { display:block; height:100%; background:#F5CF3B; width:0; transition:width .25s; }
.kl-fs { border:0; margin:0; padding:0; }
.kl-fs.hide { display:none; }
.kl-q { font-weight:800; font-size:21px; line-height:1.2; margin:18px 0 10px; }
.kl-choices { display:grid; gap:8px; }
.kl-choice { display:flex; align-items:center; gap:10px; background:#fff; border:1.5px solid var(--line); border-radius:var(--r-sm); padding:13px 14px; font-weight:600; cursor:pointer; }
.kl-choice input { accent-color:#1B1B1A; width:18px; height:18px; }
.kl-choice:has(input:checked) { border-color:#1B1B1A; background:#F2F2F0; }
.kl-err { color:var(--alert); font-weight:700; font-size:14px; margin-top:6px; }
.kl-note { font-size:13.5px; color:var(--graphite); line-height:1.45; }
.kl-nav { display:flex; gap:10px; margin-top:20px; justify-content:space-between; }
.kl-card { background:#fff; border-radius:var(--r-lg); padding:22px; box-shadow:var(--lift); margin-top:14px; }
.kl-card h2 { font-weight:800; font-size:20px; margin:0 0 4px; color:#1B1B1A; }
.kl-card h2:after { content:""; display:block; width:36px; height:3px; background:#F5CF3B; margin-top:8px; border-radius:2px; }
.kl-ref { font-weight:800; color:#1B1B1A; font-size:17px; margin:16px 0 2px; }
.kl-ctx { color:var(--graphite); font-size:14.5px; line-height:1.5; margin:0 0 6px; }
.kl-prayer { font-family:var(--serif); font-style:italic; font-size:18px; line-height:1.65; }
.kl-prayer p { margin:0 0 14px; }
.kl-decl { display:flex; gap:12px; align-items:flex-start; margin:12px 0; font-size:17px; line-height:1.4; }
.kl-decl b { flex:none; width:26px; height:26px; border-radius:50%; background:#F5CF3B; color:#1B1B1A; display:grid; place-items:center; font-size:13px; }
.kl-day { border-top:1px solid var(--line); padding-top:12px; margin-top:12px; }
.kl-push { display:grid; gap:12px; margin-top:8px; }
.kl-push div { display:flex; gap:12px; }
.kl-push b.l { flex:none; width:32px; height:32px; border-radius:8px; background:#1B1B1A; color:#F5CF3B; display:grid; place-items:center; font-weight:800; }
.kl-disc { font-size:12.5px; color:var(--graphite); line-height:1.5; margin-top:18px; }
.kl-care { border-left:5px solid #F5CF3B; }
.kl-spin { width:42px; height:42px; border-radius:50%; border:4px solid #E4E4E0; border-top-color:#1B1B1A; animation:klspin 1s linear infinite; margin:10px auto; }
@keyframes klspin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .kl-spin { animation:none; } }
.kl-upsell { background:#F5CF3B; color:#1B1B1A; border-radius:var(--r-lg); padding:22px; margin-top:14px; }
.kl-upsell h2 { color:#1B1B1A; } .kl-upsell p { color:#2B2A26; line-height:1.5; }
.kl-upsell .kl-btn { background:#1B1B1A; color:#F5CF3B; }
.jsonly { display:none; } form.js .jsonly { display:inline-flex; }

.kl-actions { display:grid; gap:10px; }
.kl-actions .kl-btn, .kl-stack .kl-btn { width:100%; text-align:center; }
.kl-stack { display:grid; gap:10px; margin-top:4px; }
.kl-lib-row { display:flex; flex-direction:column; align-items:stretch; background:#2B2B29; color:#fff; text-decoration:none; border-radius:14px; padding:14px 16px; }
.kl-lib-row b { font-size:16px; }
.kl-lib-row span { color:#B8B8B3; font-size:13.5px; margin-top:2px; }
.kl-lib-row.go { background:#F5CF3B; color:#1B1B1A; font-weight:800; text-align:center; min-height:52px; justify-content:center; align-items:center; }

/* Go deeper: featured books, a swipeable row */
.kl-books { margin-top:18px; }
.kl-books-h { font-weight:800; font-size:22px; margin:0 0 12px; color:#1B1B1A; }
.kl-books-row { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; padding:2px 2px 12px; -webkit-overflow-scrolling:touch; }
.kl-book { flex:0 0 62%; max-width:230px; scroll-snap-align:start; background:#fff; border-radius:var(--r-lg); box-shadow:var(--lift); padding:12px; text-decoration:none; color:#1B1B1A; display:flex; flex-direction:column; gap:8px; }
.kl-book-cover { display:block; aspect-ratio:3/4; border-radius:12px; overflow:hidden; background:#1B1B1A; color:#F5CF3B; text-align:center; }
.kl-book-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.kl-book-cover b { display:flex; align-items:center; justify-content:center; height:100%; font-size:54px; }
.kl-book-title { font-weight:800; font-size:16px; line-height:1.25; }
.kl-book-blurb { font-size:13.5px; line-height:1.4; color:#5C5B55; }
.kl-book-price { align-self:flex-start; background:#F5CF3B; color:#1B1B1A; font-weight:800; border-radius:999px; padding:5px 12px; font-size:14px; margin-top:auto; }
.kl-book-price.free { background:#1B1B1A; color:#F5CF3B; }
@media (min-width:640px) { .kl-book { flex-basis:210px; } }
.kl-progress-lg { height:12px; margin:6px 0 14px; }
.kl-progress-lg i { transition:width .2s linear; }
.kl-stage { font-weight:800; font-size:18px; margin:0 0 12px; }
.kl-stages { list-style:none; padding:0; margin:0 0 10px; }
.kl-stages li { padding:6px 0 6px 28px; position:relative; color:#8a8a85; }
.kl-stages li:before { content:""; position:absolute; left:4px; top:11px; width:12px; height:12px; border-radius:50%; border:2px solid #cfcfca; }
.kl-stages li.now { color:#1B1B1A; font-weight:700; } .kl-stages li.now:before { border-color:#F5CF3B; background:#F5CF3B; }
.kl-stages li.done { color:#1B1B1A; } .kl-stages li.done:before { background:#1B1B1A; border-color:#1B1B1A; }
.kl-pillar { margin:16px 0 0; } .kl-pillar b { display:block; font-size:17px; } .kl-pillar p { margin:4px 0 0; line-height:1.55; }
.kl-next { background:#1B1B1A; color:#fff; border-radius:var(--r-lg); padding:22px; margin-top:14px; } .kl-next h2 { color:#fff; } .kl-next p { line-height:1.55; }
.kl-custom { flex-wrap:wrap; gap:10px; } .kl-money { flex:1 1 160px; display:flex; align-items:center; gap:8px; font-weight:800; font-size:22px; }
.kl-money input { flex:1; width:100%; min-width:0; height:54px; font-size:22px; }
.kl-btn.is-locked { opacity:.35; pointer-events:none; cursor:not-allowed; }
.kl .display + .sub { margin-top: 16px; line-height: 1.5; }

/* Small progress touches on the My Kingdom Life cards */
.kl-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.kl-chip { font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; background:#F1F1EE; color:#4A4A47; }
.kl-chip.on { background:#FBF0BF; color:#5C4A00; }
.kl-chip.on:before { content:"\2713\00a0"; }
.kl-chip.next { background:transparent; border:1.5px dashed #D8B72A; color:#5C4A00; }
.kl-prog { height:5px; border-radius:99px; background:#EFEFEB; margin-top:10px; overflow:hidden; }
.kl-prog i { display:block; height:100%; border-radius:99px; background:#F5CF3B; }

a.kl-chip { text-decoration:none; }
a.kl-chip.next:hover, a.kl-chip.next:focus-visible { background:#FBF0BF; }
#pdf, #prayer-audio, #journey { scroll-margin-top:18px; }
#prayer-audio:target, #journey:target { box-shadow:0 0 0 3px #F5CF3B; }
#pdf:target { outline:3px solid #F5CF3B; outline-offset:3px; }

/* My Kingdom Life card on the library home (dark) */
.kl-lib-item { background:#2B2B29; border-radius:14px; }
.kl-lib-item .kl-lib-row { background:transparent; padding-bottom:10px; }
.kl-lib-item .kl-chips, .kl-lib-item .kl-prog { margin:0 16px 14px; }
.kl-lib-item .kl-prog-note { margin:-8px 16px 14px; color:#B8B8B3; font-size:13px; }
.kl-lib-item .kl-prog-note b { color:#fff; }
.kl-prog.dark { background:#454542; }
.kl-chips.dark .kl-chip { background:#3A3A38; color:#DCDCD7; }
.kl-chips.dark .kl-chip.on { background:#F5CF3B; color:#1B1B1A; }
.kl-chips.dark .kl-chip.next { background:transparent; border:1.5px dashed #F5CF3B; color:#F5CF3B; }
.kl-chips.dark a.kl-chip.next:hover { background:rgba(245,207,59,.15); }

/* Buttons: full width, centered text, wrap on small screens */
.kl-btn { text-align:center; justify-content:center; }
.kl-upsell .kl-btn, .kl-card .kl-btn.navy { width:100%; box-sizing:border-box; }
.kl-btn.ghost { background:transparent; }
[data-pay-embed][hidden], [data-pay-controls][hidden], [data-pay-err][hidden] { display:none; }
.kl-card .kl-btn.ghost, .kl-upsell .kl-btn.ghost { color:#1B1B1A; border-color:rgba(0,0,0,.25); }
