/* Black-Page Bible Guide: page-only layout and design (linked only from articles/black-page-bible-guide.html).
   Presentation only. No text, links, images or tracking are changed; the DOM order is unchanged.
   Desktop: the existing product box becomes a sticky purchase sidebar beside the guide.
   Mobile/tablet: the existing end CTA becomes a sticky bottom bar after the hero. */

.bpg-guide{--bpg-card:#161714;--bpg-line:#2e2f2a;--bpg-rule:#34352f;--bpg-ink:#f3f2ec;--bpg-muted:#bdbdb4;--bpg-quiet:#a6a79e;--bpg-outline:#85867b}

/* ---------- Hero ---------- */
.bpg-guide .article-header{margin-bottom:44px}
.bpg-guide .article-meta{letter-spacing:.06em;margin-bottom:12px}
.bpg-guide .article-h1{font-size:clamp(34px,4.6vw,58px);margin-bottom:16px}
.bpg-guide .article-deck{max-width:34em;color:#c9c9c0}
.bpg-guide .article-actions{margin:28px 0 22px}
/* Both hero shortcuts are quiet outline buttons; the only filled buttons on the page are "Buy the Black Edition". */
.bpg-guide .article-actions .article-sample,.bpg-guide .article-actions .article-sample:first-child{background:transparent;color:var(--bpg-ink);border-color:var(--bpg-outline);padding:12px 22px}
.bpg-guide .article-actions .article-sample:hover{background:#fff;color:#111210;border-color:#fff}
.bpg-guide .article-byline{opacity:1;color:var(--bpg-quiet)}
.bpg-guide .article-byline a{padding:12px 0}

/* ---------- Actual interior pages: shown as an open two-page spread ---------- */
.bpg-guide .guide-interior{margin-bottom:64px}
.bpg-guide .guide-interior>p{color:var(--bpg-muted)}
.bpg-guide .guide-interior-pages{grid-template-columns:1fr 1fr;gap:0;max-width:760px}
.bpg-guide .guide-interior figure>a{display:block;position:relative;box-shadow:0 26px 40px -22px #000}
.bpg-guide .guide-interior figure>a::after{content:"";position:absolute;top:0;bottom:0;width:10%;pointer-events:none}
.bpg-guide .guide-interior figure:first-child>a::after{right:0;background:linear-gradient(to left,#0000008c,#0000)}
.bpg-guide .guide-interior figure:last-child>a::after{left:0;background:linear-gradient(to right,#0000008c,#0000)}
.bpg-guide .guide-interior figcaption{text-align:center;padding:0 8px}
.bpg-guide .guide-interior>.article-sample{display:inline-flex;align-items:center;justify-content:center;min-height:48px;box-sizing:border-box;margin-top:28px;padding:12px 22px;border:1px solid var(--bpg-outline);border-radius:4px;color:var(--bpg-ink);font:600 15px/1.4 Arial,sans-serif;text-decoration:none}
.bpg-guide .guide-interior>.article-sample:hover{background:#fff;color:#111210;border-color:#fff}

/* ---------- Guide text ---------- */
.bpg-guide .article-body{scroll-margin-top:24px}
.bpg-guide .article-body>p:first-child{color:#e6e5dd}
.bpg-guide .article-body h2{margin:44px 0 14px;padding-top:30px;border-top:1px solid var(--bpg-line)}
/* "What you get": four tiles in two columns (one column on phones). Markers stay visible so it remains a list for screen readers. */
.bpg-guide .article-body ul{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0 8px;padding:0;list-style:square inside}
.bpg-guide .article-body ul li{margin:0;padding:16px 18px;border:1px solid var(--bpg-line);border-radius:6px;background:#141512;font-size:.88em;line-height:1.5}
.bpg-guide .article-body li::marker{color:var(--bpg-quiet);font-size:.8em}
/* Pricing section as a quiet card (same heading and text). */
.bpg-guide .bpg-price-card{margin:44px 0 0;padding:26px 28px 6px;border:1px solid #44453e;border-radius:8px;background:var(--bpg-card)}
.bpg-guide .bpg-price-card h2{margin:0 0 12px;padding-top:0;border-top:0}
.bpg-guide .bpg-price-card+h2{margin-top:40px}
.bpg-guide .article-body a{text-decoration-color:#8d8e85}
.bpg-guide .article-body a:hover{text-decoration-color:currentColor}

/* ---------- Product box as a purchase card ---------- */
.bpg-guide .article-product{box-sizing:border-box;border:1px solid var(--bpg-line);border-radius:6px;background:var(--bpg-card)}
.bpg-guide .article-product-image img{background:#121210}
.bpg-guide .article-product-copy .article-price{margin-bottom:20px}
.bpg-guide .article-deck,.bpg-guide .guide-interior>p{text-wrap:pretty}
.bpg-guide .article-product-copy p:not(.article-price){text-wrap:balance}
.bpg-guide #article-buy-top{width:100%}
.bpg-guide .article-product .article-sample{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin-top:6px;box-sizing:border-box}

/* ---------- End CTA and related reading ---------- */
.bpg-guide .article-end p{margin:0}
.bpg-guide .article-related ul{padding-left:1.15em;margin:0}
.bpg-guide .article-related li{margin:0}
.bpg-guide .article-related li::marker{color:var(--bpg-quiet)}
.bpg-guide .article-related a{display:block;padding:10px 0;line-height:1.45;text-decoration-color:#8d8e85}

/* ---------- Desktop: guide on the left, sticky purchase card on the right ---------- */
@media (min-width:1024px){
 .bpg-guide>nav{max-width:1200px}
 .bpg-guide .article-page{max-width:1200px;display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,27vw,360px);column-gap:clamp(48px,5vw,72px);align-items:start}
 .bpg-guide .article-page>*{grid-column:1;min-width:0}
 .bpg-guide .article-page>.article-product{grid-column:2;grid-row:1/span 6;position:sticky;top:24px;display:flex;flex-direction:column;gap:0;margin:0;padding:0}
 .bpg-guide .article-product-image{width:100%;margin:0}
 /* Height follows the window so the Buy button stays on screen; letterbox strips match the photo's backdrop. */
 .bpg-guide .article-product-image img{width:100%;height:min(418px,max(220px,calc(100vh - 440px)));max-height:none;object-fit:contain;background:linear-gradient(#11100e,#100f0d 55%,#1a1a18);border-radius:5px 5px 0 0}
 .bpg-guide .article-product-copy{padding:18px 22px 12px}
 .bpg-guide .article-product-copy h2{font-size:31px;margin:0 0 8px}
 .bpg-guide .article-product-copy p{font-size:15px;line-height:1.5;margin:0 0 12px}
 .bpg-guide .article-product-copy .article-price{font-size:17px;margin-bottom:16px}
 .bpg-guide #article-buy-top{width:100%;min-height:52px}
 .bpg-guide .article-body,.bpg-guide .article-end,.bpg-guide .article-related{max-width:720px;margin-left:0;margin-right:0}
 .bpg-guide .article-end{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:48px}
 .bpg-guide .article-end .article-buy{flex:none}
 .bpg-guide .article-related{font-size:17px}
}
/* Short desktop windows: keep the card in flow so the Buy button is never cut off. */
@media (min-width:1024px) and (max-height:600px){.bpg-guide .article-page>.article-product{position:static}}

/* ---------- Mobile and tablet (screen only, so printing is unaffected) ---------- */
@media screen and (max-width:1023px){
 .bpg-guide .article-product{margin-top:56px}
 /* The end CTA becomes a sticky bar; it docks into its own place at the end of the guide. */
 .bpg-guide .article-end{position:sticky;bottom:0;z-index:40;display:flex;align-items:center;gap:14px;box-sizing:border-box;max-width:none;margin:40px -20px 0;padding:12px 20px;background:#111210;border-top:1px solid var(--bpg-rule);box-shadow:0 -12px 24px -10px #000000d9}
 .bpg-guide .article-end p{flex:1 1 auto;min-width:0;font:13px/1.35 Arial,sans-serif;color:var(--bpg-muted)}
 .bpg-guide .article-end .article-buy{flex:none;width:auto;min-height:48px;padding:12px 18px}
 /* With the script: hidden while the hero buttons are on screen, slides in after them. */
 .bpg-js:not(.bpg-cta-on) .bpg-guide .article-end{transform:translateY(calc(100% + 28px));visibility:hidden}
 /* Keep the site's "Cookie settings" button clear of the bar (same approach as the product page). */
 .bpg-cta-on:not(.bpg-cta-docked) .bpg-guide #cookie-settings,html:not(.bpg-js) .bpg-guide #cookie-settings{transform:translateY(calc(-1 * var(--bpg-bar-h,76px)))}
 /* Links reached with the keyboard are scrolled clear of the bar and that button. */
 html.bpg-cta-on,html:not(.bpg-js){scroll-padding-bottom:calc(var(--bpg-bar-h,76px) + 44px)}
}
@media (min-width:701px) and (max-width:1023px){
 .bpg-guide .article-end{margin:40px -24px 0;padding:14px max(24px,calc((100% - 720px)/2))}
 .bpg-guide .article-end p{font-size:15px}
 .bpg-guide .article-product{padding:28px;gap:36px}
}
@media (max-width:700px){
 .bpg-guide .article-header{margin-bottom:36px}
 .bpg-guide .article-h1{margin-bottom:12px}
 .bpg-guide .guide-interior{margin-bottom:52px}
 .bpg-guide .guide-interior h2{font-size:30px}
 .bpg-guide .guide-interior-pages{grid-template-columns:1fr 1fr;gap:0}
 .bpg-guide .guide-interior figcaption{font-size:12px;margin-top:10px}
 .bpg-guide .guide-interior>.article-sample{display:flex;width:100%}
 .bpg-guide .article-body{font-size:19px;line-height:1.62}
 .bpg-guide .article-body h2{font-size:27px;margin-top:38px;padding-top:26px}
 .bpg-guide .article-body ul{grid-template-columns:1fr;gap:10px}
 .bpg-guide .article-body ul li{padding:14px 16px;font-size:.95em}
 .bpg-guide .bpg-price-card{margin-top:38px;padding:22px 20px 4px}
 .bpg-guide .bpg-price-card h2{padding-top:0;margin-top:0}
 .bpg-guide .article-product{gap:0}
 .bpg-guide .article-product-image{max-width:none;margin:0}
 .bpg-guide .article-product-image img{border-radius:5px 5px 0 0}
 .bpg-guide .article-product-copy{padding:20px 20px 12px}
 .bpg-guide .article-product-copy h2{margin-bottom:10px}
 .bpg-guide .article-related h2{font-size:27px}
 .bpg-guide .article-related{font-size:17px}
}
/* Two hero shortcuts side by side on phones that fit them (stacked below 340px). */
@media (min-width:340px) and (max-width:480px){
 .bpg-guide .article-actions{grid-template-columns:1fr 1fr;gap:10px}
 .bpg-guide .article-actions .article-sample,.bpg-guide .article-actions .article-sample:first-child{padding:12px 8px}
}
/* Very narrow phones: compact bar. */
@media screen and (max-width:359px){
 .bpg-guide .article-end{gap:10px;padding:10px 16px}
 .bpg-guide .article-end p{font-size:12px}
 .bpg-guide .article-end .article-buy{padding:10px 12px;font-size:14px}
}
/* Landscape phones: slimmer bar. */
@media screen and (max-width:1023px) and (max-height:480px){
 .bpg-guide .article-end{padding-top:8px;padding-bottom:8px}
 .bpg-guide .article-end .article-buy{min-height:44px;padding:10px 16px}
}

/* ---------- Motion (only when the visitor has not asked for reduced motion) ---------- */
@media (prefers-reduced-motion:no-preference){
 html{scroll-behavior:smooth}
 .bpg-guide .article-end{transition:transform .32s cubic-bezier(.2,.7,.2,1),visibility 0s linear .32s}
 .bpg-cta-on .bpg-guide .article-end{transition:transform .32s cubic-bezier(.2,.7,.2,1),visibility 0s}
 .bpg-guide #cookie-settings{transition:transform .32s cubic-bezier(.2,.7,.2,1)}
}
