/*
 * Membership pages during the B/C page test (owner, 17 Oct 2026): /become-a-member/ (page 22747)
 * and /continue-reading/ (page 102796). Loaded instead of join.css while a page's content holds the
 * test build (cp_design_system_join_stylesheet()). The server prints one of two arrival groups:
 *
 *   B, the reading desk: the design system's Book of Hours plate at the left, the offer as one form
 *      on the wall at the right, the plans as a radio choice and one button that follows it.
 *   C, two carved panels: the About page's pointed-arch panel art as Annual and Monthly, set large.
 *
 * Both share the rest: the homepage seam band, a navy band (what membership includes, why it costs
 * money), the questions as rows, and a close with both buttons. Built from the reviewed mockups in
 * output/become-a-member-explorations-2026-10-17/options/.
 *
 * Type belongs to the block settings and the Theme Editor: this sheet sets no font family, size,
 * weight, style, line-height, letter-spacing or case. Page-level rules use the route body class;
 * everything else is scoped to .cp-jd, so the same sheet renders in the editor canvas.
 */

/* ------------------------------------------------------------ page frame */

body.cp-join-route {
	background-color: #f4ece3;
	background-image: none;
}

/* The page template sets an inline 80px bottom margin on <main> before the footer; only
   !important beats an inline style (as on the prayer thank-you page). */
body.cp-join-route main#wp--skip-link--target {
	margin-bottom: 0 !important;
}

/* The template's trailing group holds only empty groups, and its 40px top margin showed a white
   strip between the close and the footer. Hidden only while it holds nothing but groups. */
body.cp-join-route main#wp--skip-link--target > .wp-block-group:last-child:not(:has(:not(.wp-block-group))) {
	display: none;
}

.cp-jd {
	--cp-jd-plaster: #f4ece3;
	--cp-jd-gutter: clamp(1.25rem, 4cqw, 2.5rem);
	--cp-jd-seam-h: clamp(44px, 4.6cqw, 72px);
	--cp-jd-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M5 0h2v5h5v2H7v5H5V7H0V5h5z' fill='%23c58c23'/%3E%3C/svg%3E");

	container: jd / inline-size;
	overflow: clip;
	color: var(--cp-color-ink);
	background-color: var(--cp-jd-plaster);
}

.cp-jd,
.cp-jd * {
	box-sizing: border-box;
}

/* Blocks bring the flow layout's block gap (":root :where(.is-layout-flow) > *", printed after this
   sheet); every space on these pages is set below. :is() gives this reset two classes' weight, enough
   to beat the gap. A top margin on a block that comes first in its group needs three, to beat
   ":root :where(.is-layout-flow) > :first-child". */
.cp-jd :is(h1, h2, h3, p, ul, ol, li, figure, fieldset, .wp-block-group, .wp-block-buttons, .wp-block-button) {
	margin-block: 0;
}

.cp-jd :is(h1, h2, h3) {
	padding-block: 0;
	color: var(--cp-color-ink);
	text-wrap: balance;
}

.cp-jd p {
	color: inherit;
	text-wrap: pretty;
}

.cp-jd a:not(.wp-block-button__link) {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--cp-color-line-gold);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.cp-jd :is(a, button, input):focus-visible {
	outline: 3px solid var(--cp-color-focus-ring, #c58c23);
	outline-offset: 4px;
}

/* ------------------------------------------------------------ the arrival, both designs */

.cp-jd .cp-jd-arrival__label {
	color: var(--cp-color-ink-gold);
}

.cp-jd .cp-jd-arrival__title {
	margin-top: 0.55rem;
}

.cp-jd .cp-jd-arrival__lede {
	margin-top: 1rem;
}

.cp-jd .cp-jd-assure {
	margin-top: 1.4rem;
}

.cp-jd .cp-jd-signin {
	margin-top: 0.35rem;
	color: var(--cp-color-ink-muted);
}

/* "Sign in first" is for signed-out readers; a signed-in buyer is already bound to their account. */
body.logged-in .cp-jd .cp-jd-signin {
	display: none;
}

/* Section label: the homepage and About kicker, a quiet word over a gold rule parted by a cross. */
.cp-jd .cp-jd-label {
	position: relative;
	width: fit-content;
	margin: 0 0 1.4rem;
	padding: 0 18px 12px 0;
	background: linear-gradient(to right, var(--cp-color-line-gold) calc(50% - 9px), transparent calc(50% - 9px) calc(50% + 9px), var(--cp-color-line-gold) calc(50% + 9px)) left bottom / 100% 1px no-repeat;
	color: var(--cp-color-ink-muted);
}

.cp-jd .cp-jd-label::after {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 50%;
	width: 11px;
	height: 11px;
	background: var(--cp-jd-cross) center / 9px 9px no-repeat;
	transform: translateX(-50%);
}

.cp-jd .cp-jd-label--center {
	margin-inline: auto;
	padding-left: 18px;
	text-align: center;
}

/* ------------------------------------------------------------ buttons and checkout */

.cp-jd .wp-block-buttons {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 1rem;
}

.cp-jd .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.cp-jd button.wp-block-button__link {
	cursor: pointer;
}

.cp-jd .wp-block-button__link:is(.is-loading, :disabled) {
	cursor: wait;
}

/* On the front end the plugin wraps each checkout button group in the paywall's own
   .cppw-pricing / .cppw-pricing__card pair, so its pricing.js runs the checkout. That pair must
   add no box of its own; the paywall stylesheet gives both a card, a width and a margin. */
.cp-jd .cp-join-checkout-root {
	max-width: none;
	margin: 0;
}

.cp-jd .cp-join-checkout-root .cppw-pricing__card {
	position: static;
	display: block;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.cp-jd .cppw-pricing__checkout-message {
	margin: 0.6rem 0 0;
	min-height: 0;
	color: inherit;
}

.cp-jd .cppw-pricing__checkout-message:empty {
	margin: 0;
}

.cp-jd .cppw-pricing__checkout-message.is-error {
	color: var(--cp-color-status-danger);
}

/* The limit page's reader offer: a gold rule and diamond, the code on a dashed chip. */
.cp-jd :is(.cp-jd-desk__copy, .cp-jd-doors__after) > .cp-jd-offer {
	margin-top: 1.4rem;
}

.cp-jd .cp-jd-offer {
	max-width: 30rem;
	padding-top: 1.2rem;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M4 0l4 4-4 4-4-4z' fill='%23c58c23'/%3E%3C/svg%3E") center top / 8px 8px no-repeat,
		linear-gradient(var(--cp-color-line-gold), var(--cp-color-line-gold)) left 3.5px / calc(50% - 14px) 1px no-repeat,
		linear-gradient(var(--cp-color-line-gold), var(--cp-color-line-gold)) right 3.5px / calc(50% - 14px) 1px no-repeat;
}

.cp-jd .cp-jd-offer code {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.25rem 0.6rem;
	border: 1px dashed var(--cp-color-ink);
	border-radius: 4px;
	color: var(--cp-color-ink);
	background: rgb(255 253 248 / 60%);
}

.cp-jd .cp-jd-offer__note {
	margin-top: 0.45rem;
	color: var(--cp-color-ink-muted);
}

/* The paywall's own limit offer on /become-a-member/, printed only for a reader who arrives with
   its marker; otherwise the group is empty and takes no room. */
.cp-jd .cp-jd-meter {
	padding: 0 var(--cp-jd-gutter) clamp(2rem, 4cqw, 3rem);
	text-align: center;
}

.cp-jd .cp-jd-meter:not(:has(.cppw-meter-offer)) {
	display: none;
}

.cp-jd .cp-jd-meter .cppw-meter-offer {
	max-width: 36rem;
	margin: 0 auto;
}

/* Plan marks: "Best value" after a cross. */
.cp-jd :is(.cp-jd-choice__mark, .cp-jd-panel__mark) {
	color: var(--cp-color-ink-gold);
}

.cp-jd .cp-jd-choice__mark::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin: 0 0.5em 0 0.6em;
	background: var(--cp-jd-cross) center / 9px 9px no-repeat;
}

/* ------------------------------------------------------------ B: the reading desk */

/* The plate keeps its own width-led size, anchored to the bottom, so the lectern never grows into the
   text column (it reaches about 48% across; the text starts at 51%). When the offer runs taller than
   the plate, as on /continue-reading/ or below about 1400px, the wall continues above it: the plate's
   top edge, blurred, overlapping it by 3cqw and fading up into the wall colour. */
.cp-jd .cp-jd-desk {
	position: relative;
	min-height: min(calc(100cqw * 0.5655), 900px);
	padding: clamp(3rem, 5.5cqw, 5.5rem) max(var(--cp-jd-gutter), 6cqw) clamp(3rem, 5cqw, 5rem) 51cqw;
	background:
		url("/wp-content/mu-plugins/christianpure-design-system/assets/images/join/join-desk-book-of-hours-wall.webp") left 0 bottom calc(56.55cqw - 3cqw) / 100cqw 12cqw no-repeat,
		url("/wp-content/mu-plugins/christianpure-design-system/assets/images/join/join-desk-book-of-hours-2688.webp") left bottom / 100cqw auto no-repeat,
		#e2ddd3;
}

.cp-jd .cp-jd-desk__copy {
	max-width: 36rem;
}

.cp-jd .cp-jd-desk__art {
	display: none;
}

.cp-jd .cp-jd-desk .cp-jd-arrival__title {
	max-width: 19ch;
}

.cp-jd .cp-jd-choices {
	margin-top: 1.75rem;
}

.cp-jd .cp-jd-choices fieldset {
	display: grid;
	gap: 0.75rem;
	min-width: 0;
	padding: 0;
	border: 0;
}

.cp-jd .cp-jd-choice {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--cp-color-line);
	border-radius: 4px;
	background: #fbf7f0;
	cursor: pointer;
}

.cp-jd .cp-jd-choice:has(:checked) {
	border-color: var(--cp-color-line-gold);
	box-shadow: inset 0 0 0 1px var(--cp-color-line-gold);
}

.cp-jd .cp-jd-choice__body {
	display: grid;
	gap: 0.2rem;
}

.cp-jd .cp-jd-choice__name {
	color: var(--cp-color-ink);
}

.cp-jd .cp-jd-choice__detail {
	color: var(--cp-color-ink-muted);
}

.cp-jd .cp-jd-choice__price {
	color: var(--cp-color-ink);
	text-align: right;
	white-space: nowrap;
}

.cp-jd .cp-jd-choice__per {
	display: block;
	margin-top: 0.3rem;
	color: var(--cp-color-ink-muted);
}

/* One button follows the choice: the monthly button shows only while Monthly is chosen. Without
   :has() both buttons show, and each still starts its own checkout. */
.cp-jd .cp-jd-desk__copy > :is(.cp-jd-pick, .cp-join-checkout-root) {
	margin-top: 1.25rem;
}

.cp-jd .cp-jd-desk .cp-join-checkout-root:has(.cp-jd-pick--monthly),
.cp-jd .cp-jd-desk:has(.cp-jd-choice input[value="monthly"]:checked) .cp-join-checkout-root:has(.cp-jd-pick--yearly) {
	display: none;
}

.cp-jd .cp-jd-desk:has(.cp-jd-choice input[value="monthly"]:checked) .cp-join-checkout-root:has(.cp-jd-pick--monthly) {
	display: block;
}

.cp-jd .cp-jd-desk .cp-jd-pick :is(.wp-block-button, .wp-block-button__link) {
	width: 100%;
}

.cp-jd .cp-jd-desk .cp-jd-assure {
	margin-top: 1rem;
}

/* Tablet and phone: the form first on plain plaster, the desk below it, faded up into the wall. */
@container jd (max-width: 1023px) {
	.cp-jd .cp-jd-desk {
		min-height: 0;
		padding: clamp(2.25rem, 6cqw, 3.5rem) var(--cp-jd-gutter) 0;
		background: var(--cp-jd-plaster);
	}

	.cp-jd .cp-jd-desk__copy {
		max-width: 36rem;
		margin-inline: auto;
	}

	.cp-jd .cp-jd-desk__art {
		display: block;
		margin: 2rem calc(-1 * var(--cp-jd-gutter)) 0;
		aspect-ratio: 16 / 9;
		background: url("/wp-content/mu-plugins/christianpure-design-system/assets/images/join/join-desk-book-of-hours-2688.webp") left bottom / cover no-repeat;
		-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%);
		mask-image: linear-gradient(to bottom, transparent 0, #000 28%);
	}
}

@container jd (max-width: 599px) {
	.cp-jd .cp-jd-desk__art {
		aspect-ratio: 1420 / 1190;
		background-image: url("/wp-content/mu-plugins/christianpure-design-system/assets/images/join/join-desk-book-of-hours-phone.webp");
	}

	.cp-jd .cp-jd-choice {
		grid-template-columns: auto minmax(0, 1fr);
		padding: 0.9rem 1rem;
	}

	.cp-jd .cp-jd-choice__price {
		grid-column: 2;
		text-align: left;
	}

	.cp-jd .cp-jd-choice__per {
		display: inline;
	}
}

/* ------------------------------------------------------------ C: two carved panels */

.cp-jd .cp-jd-doors {
	padding: clamp(2.5rem, 4cqw, 3.5rem) var(--cp-jd-gutter) clamp(3rem, 5cqw, 4.5rem);
	text-align: center;
}

.cp-jd .cp-jd-doors__head > * {
	margin-inline: auto;
}

.cp-jd .cp-jd-doors .cp-jd-arrival__title {
	max-width: 25ch;
}

.cp-jd .cp-jd-doors .cp-jd-arrival__lede {
	max-width: 34rem;
}

.cp-jd .cp-jd-panels {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(20px, 2.8cqw, 40px);
	max-width: 980px;
	margin: clamp(1.75rem, 2.6cqw, 2.5rem) auto 0;
}

.cp-jd .cp-jd-panel {
	--top: 47.9245cqw;
	--bottom: 6.2264cqw;

	container-type: inline-size;
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
	text-align: center;
	background:
		url("/wp-content/mu-plugins/christianpure-design-system/assets/images/mission/about-panel-membership-top.webp") center top / 100% auto no-repeat,
		url("/wp-content/mu-plugins/christianpure-design-system/assets/images/mission/about-panel-membership-bottom.webp") center bottom / 100% auto no-repeat;
}

.cp-jd .cp-jd-panel::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: calc(var(--top) - 1px);
	right: 0;
	bottom: calc(var(--bottom) - 1px);
	left: 0;
	background: url("/wp-content/mu-plugins/christianpure-design-system/assets/images/mission/about-panel-membership-ext.webp") center top / 100% auto repeat-y;
}

.cp-jd .cp-jd-panel > * {
	width: 70cqw;
	margin-inline: auto;
}

.cp-jd .cp-jd-panel > .cp-jd-panel__mark {
	margin-top: 15cqw;
	min-height: 1.5em;
}

/* The monthly panel has no mark; its name starts where the annual one's does. */
.cp-jd .cp-jd-panel > .cp-jd-panel__name:first-child {
	margin-top: calc(15cqw + 1.41rem + 0.35rem);
}

.cp-jd .cp-jd-panel__name {
	margin-top: 0.35rem;
	color: var(--cp-color-ink-muted);
}

.cp-jd .cp-jd-panel__price {
	margin-top: 0.6rem;
	color: var(--cp-color-ink);
}

.cp-jd .cp-jd-panel__per {
	margin-top: 0.25rem;
	color: var(--cp-color-ink);
}

.cp-jd .cp-jd-panel__detail {
	margin-top: 0.6rem;
	color: var(--cp-color-ink-muted);
}

.cp-jd .cp-jd-panel > :is(.wp-block-buttons, .cp-join-checkout-root) {
	margin-top: auto;
	margin-bottom: calc(6.2cqw + 30px);
	padding-top: 1.25rem;
}

.cp-jd .cp-jd-panel .wp-block-button__link {
	min-width: min(100%, 15rem);
}

.cp-jd .cp-jd-doors__after > * {
	margin-inline: auto;
}

.cp-jd .cp-jd-doors .cp-jd-assure {
	margin-top: 1.5rem;
}

.cp-jd .cp-jd-doors .cp-jd-signin {
	max-width: 36rem;
}

@container jd (max-width: 781px) {
	.cp-jd .cp-jd-panels {
		grid-template-columns: minmax(0, 1fr);
		max-width: 520px;
		gap: 20px;
	}

	.cp-jd .cp-jd-panel {
		--top: 62.1053cqw;
		--bottom: 8.6842cqw;

		background:
			url("/wp-content/mu-plugins/christianpure-design-system/assets/images/mission/about-panel-phone-top.webp") center top / 100% auto no-repeat,
			url("/wp-content/mu-plugins/christianpure-design-system/assets/images/mission/about-panel-phone-bottom.webp") center bottom / 100% auto no-repeat;
	}

	.cp-jd .cp-jd-panel::after {
		background-image: url("/wp-content/mu-plugins/christianpure-design-system/assets/images/mission/about-panel-phone-ext.webp");
	}

	.cp-jd .cp-jd-panel > * {
		width: 76cqw;
	}

	.cp-jd .cp-jd-panel > .cp-jd-panel__mark {
		margin-top: 17cqw;
	}

	.cp-jd .cp-jd-panel > .cp-jd-panel__name:first-child {
		margin-top: calc(17cqw + 1.41rem + 0.35rem);
	}

	.cp-jd .cp-jd-panel > :is(.wp-block-buttons, .cp-join-checkout-root) {
		margin-bottom: calc(8.7cqw + 24px);
	}
}

/* ------------------------------------------------------------ navy band: what membership includes, and why it costs money */

.cp-jd .cp-jd-band {
	position: relative;
	padding: clamp(3.5rem, 6cqw, 5.5rem) var(--cp-jd-gutter);
	background: var(--cp-color-surface-inverse);
	color: var(--cp-color-ink);
}

.cp-jd .cp-jd-band :is(h2, h3) {
	color: var(--cp-color-ink);
}

.cp-jd .cp-jd-band .cp-jd-label {
	color: var(--cp-color-ink-muted);
}

.cp-jd .cp-jd-band a:not(.wp-block-button__link) {
	text-decoration-color: var(--cp-color-accent-gold);
}

.cp-jd .cp-jd-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 6cqw, 6rem);
	max-width: 1120px;
	margin-inline: auto;
}

.cp-jd .cp-jd-includes {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.75rem 2.25rem;
}

.cp-jd .cp-jd-include {
	position: relative;
	padding-left: 1.6rem;
}

.cp-jd .cp-jd-include::before {
	content: "";
	position: absolute;
	top: 0.42em;
	left: 0;
	width: 11px;
	height: 11px;
	background: var(--cp-jd-cross) center / 11px 11px no-repeat;
}

.cp-jd .cp-jd-include__text {
	margin-top: 0.35rem;
	color: var(--cp-color-ink-muted);
}

.cp-jd .cp-jd-why__title {
	margin-bottom: 1rem;
}

.cp-jd .cp-jd-why__text {
	color: var(--cp-color-ink-muted);
}

.cp-jd .cp-jd-why__text + .cp-jd-why__text {
	margin-top: 0.9rem;
}

/* The homepage's carved seam band and cross roundel, where the arrival meets the navy band. */
.cp-jd .cp-jd-band--seam {
	padding-top: calc(var(--cp-jd-seam-h) + clamp(3rem, 5cqw, 4.5rem));
}

.cp-jd .cp-jd-band--seam::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: var(--cp-jd-seam-h);
	background: var(--cp-jd-plaster) url("/wp-content/mu-plugins/christianpure-design-system/assets/images/home/seam-band.webp?v=matte-3") center / auto 100% repeat-x;
}

.cp-jd .cp-jd-band--seam::after {
	content: "";
	position: absolute;
	top: calc(var(--cp-jd-seam-h) / 2);
	left: 50%;
	width: calc(var(--cp-jd-seam-h) * 1.16);
	aspect-ratio: 1;
	background: url("/wp-content/mu-plugins/christianpure-design-system/assets/images/home/seam-roundel-r4.webp?v=matte-3") center / contain no-repeat;
	transform: translate(-50%, -50%);
}

/* ------------------------------------------------------------ questions: rows, question left and answer right */

.cp-jd .cp-jd-faq {
	padding: clamp(3.5rem, 6cqw, 5.5rem) var(--cp-jd-gutter) clamp(2.5rem, 4cqw, 3.5rem);
}

.cp-jd .cp-jd-faq__rows {
	max-width: 1000px;
	margin-inline: auto;
	border-top: 1px solid var(--cp-color-line);
}

.cp-jd .cp-jd-faq__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
	gap: 1rem 3rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--cp-color-line);
}

.cp-jd .cp-jd-faq__a {
	color: var(--cp-color-ink);
}

/* ------------------------------------------------------------ close: one heading, both buttons */

.cp-jd .cp-jd-close {
	padding: clamp(1.5rem, 3cqw, 2.5rem) var(--cp-jd-gutter) clamp(5rem, 8cqw, 7rem);
	text-align: center;
}

.cp-jd .cp-jd-close__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 1.6rem;
}

.cp-jd .cp-jd-close__not {
	margin-top: 1rem;
	color: var(--cp-color-ink-muted);
}

@container jd (max-width: 860px) {
	.cp-jd .cp-jd-band__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 3rem;
		max-width: 40rem;
	}

	.cp-jd .cp-jd-faq__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.5rem;
	}

	.cp-jd .cp-jd-faq__rows {
		max-width: 40rem;
	}
}

@container jd (max-width: 599px) {
	.cp-jd .cp-jd-includes {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.4rem;
	}

	.cp-jd .cp-jd-close__buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.cp-jd .cp-jd-close__buttons :is(.wp-block-button, .wp-block-button__link) {
		width: 100%;
	}
}
