/* SC Worksheets: master worksheet product page (approved Healthy Boundaries design).
   Scoped to .scws-pp. Art keeps its proportions; text areas grow with the content. */
.scws-pp {
	--pp-cream: #FFFFED;
	--pp-teal: #005B60;
	--pp-forest: #1F4D3A;
	--pp-gold: #C6A15B;
	--pp-navy: #123A63;
	--pp-mint: #EDF6F0;
	--pp-line: #9BCFC8;
	--pp-max: 1200px;
	--pp-script: "SCWS Dancing Script", "Dancing Script", cursive;
	--pp-serif: "SCWS Lora", "Lora", Georgia, serif;
	background: var(--pp-cream);
	color: var(--pp-navy);
	font-family: var(--pp-serif);
	font-size: 16px;
	line-height: 1.5;
	overflow-x: clip;
}
.scws-pp *, .scws-pp *::before, .scws-pp *::after { box-sizing: border-box; }
.scws-pp img { max-width: 100%; height: auto; }
.scws-pp > * { max-width: var(--pp-max); margin-left: auto; margin-right: auto; }

/* 1. Hero */
.scws-pp__hero {
	position: relative;
	background: var(--pp-hero) center bottom / cover no-repeat;
	/* Natural art height at full width; grows (never squashes) when a title needs more room. */
	min-height: max(300px, calc(min(100vw, var(--pp-max)) * 253 / 1008));
	display: flex;
}
.scws-pp__hero::before { /* soft light behind the logo and title, as in the mockup */
	content: "";
	position: absolute;
	inset: 0 18%;
	background: radial-gradient(ellipse at 50% 48%, rgba(255,255,237,.92) 0%, rgba(255,255,237,.72) 38%, rgba(255,255,237,0) 70%);
	pointer-events: none;
}
.scws-pp__hero-inner {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.2% 16% 0;
}
.scws-pp__brand { width: clamp(130px, 19%, 230px); }
.scws-pp__logo { display: block; width: 100%; height: auto; }
.scws-pp__title {
	margin: .1em 0 0;
	font-family: var(--pp-script);
	font-weight: 700;
	font-size: clamp(2.1rem, 5.4vw, 4.6rem);
	line-height: 1.02;
	color: var(--pp-teal);
	text-wrap: balance;
	text-shadow: 0 0 12px rgba(255,255,237,.95), 0 0 26px rgba(255,255,237,.85);
	max-width: 13em;
}
.scws-pp__flourish { display: none; }
.scws-pp__subtitle {
	margin: auto 0 1.1%;
	padding-top: .4em;
	font-family: var(--pp-serif);
	font-style: italic;
	font-weight: 600;
	font-size: clamp(1.2rem, 2.5vw, 2.1rem);
	color: var(--pp-navy);
	line-height: 1.1;
}

/* Body */
.scws-pp__body { padding: clamp(18px, 2.4vw, 30px) clamp(16px, 2.6vw, 34px) clamp(18px, 2vw, 26px); }
.scws-pp__main {
	display: grid;
	grid-template-columns: 48% 1fr;
	gap: clamp(18px, 3vw, 40px);
	align-items: start;
}

/* 2. Preview gallery */
.scws-pp__board {
	position: relative;
	aspect-ratio: 454 / 314;
	background: var(--pp-board) center / 100% 100% no-repeat;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(31,77,58,.18);
}
.scws-pp__stack { position: absolute; inset: 0; }
.scws-pp__page {
	position: absolute;
	top: 1.5%;
	height: 96%;
	aspect-ratio: 1103 / 1426;
	padding: 0;
	border: 0;
	background: #fff;
	box-shadow: 0 6px 16px rgba(0,0,0,.28);
	cursor: zoom-in;
	transition: transform .35s ease, left .35s ease, opacity .25s ease;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}
.scws-pp__page img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.scws-pp__page.is-front { left: 14.5%; transform: rotate(-4deg); z-index: 3; }
.scws-pp__page.is-back  { left: 45%; transform: rotate(5deg) scale(.96); z-index: 2; }
.scws-pp__page.is-off   { left: 45%; transform: rotate(5deg) scale(.96); z-index: 1; opacity: 0; pointer-events: none; }
.scws-pp__page[hidden] { display: block; } /* JS assigns positions; hidden only before JS runs */
.scws-pp__stack:not(.is-ready) .scws-pp__page:nth-child(1) { left: 14.5%; transform: rotate(-4deg); z-index: 3; }
.scws-pp__stack:not(.is-ready) .scws-pp__page:nth-child(2) { left: 45%; transform: rotate(5deg) scale(.96); z-index: 2; }
.scws-pp__stack:not(.is-ready) .scws-pp__page:nth-child(n+3) { opacity: 0; }
.scws-pp__page--blank { background: #fbfaf2; cursor: default; display: flex; align-items: center; justify-content: center; color: var(--pp-forest); font-style: italic; }
.scws-pp__page--behind { left: 45%; transform: rotate(5deg) scale(.96); z-index: 2; }
.scws-pp__page--top { left: 14.5%; transform: rotate(-4deg); z-index: 3; }
.scws-pp__page.is-wm::after { /* fallback watermark when the server copy could not be made */
	content: "";
	position: absolute; inset: 0;
	pointer-events: none;
}
.scws-pp__page:focus-visible { outline: 3px solid var(--pp-gold); outline-offset: 3px; }

.scws-pp__nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 14px 0 4px; }
.scws-pp__arrow, .scws-pp__dot {
	font-family: var(--pp-serif);
	border: 1.5px solid var(--pp-teal);
	background: #fff;
	color: var(--pp-teal);
	border-radius: 999px;
	min-width: 36px; height: 36px;
	padding: 0 10px;
	font-size: 1rem; font-weight: 600;
	cursor: pointer;
	line-height: 1;
}
.scws-pp__arrow { font-size: 1.5rem; padding-bottom: 3px; }
.scws-pp__dot.is-current { background: var(--pp-teal); color: #fff; }
.scws-pp__arrow:hover, .scws-pp__dot:hover { background: #e3f1ef; }
.scws-pp__dot.is-current:hover { background: var(--pp-teal); }
.scws-pp__arrow:focus-visible, .scws-pp__dot:focus-visible { outline: 3px solid var(--pp-gold); outline-offset: 2px; }

.scws-pp__info {
	list-style: none; margin: 8px 0 0; padding: 0;
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
	font-style: italic; font-weight: 600; color: var(--pp-forest); font-size: .95rem;
}
.scws-pp__sep { margin: 0 .55em; color: var(--pp-gold); font-style: normal; }
.scws-pp__info a { color: var(--pp-teal); text-decoration: underline; text-decoration-color: var(--pp-gold); text-underline-offset: 3px; }

/* Lightbox */
.scws-pp__lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.scws-pp__lightbox::backdrop { background: rgba(18,58,99,.82); }
.scws-pp__lightbox[open] { display: flex; align-items: center; justify-content: center; }
.scws-pp__lb-frame { text-align: center; }
.scws-pp__lb-frame img { max-height: 86vh; max-width: 92vw; width: auto; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.4); user-select: none; -webkit-user-select: none; pointer-events: none; }
.scws-pp__lb-count { color: #fff; margin: 8px 0 0; font-style: italic; }
.scws-pp__lb-prev, .scws-pp__lb-next, .scws-pp__lb-close {
	position: fixed; border: 0; background: rgba(255,255,237,.95); color: var(--pp-teal);
	width: 46px; height: 46px; border-radius: 999px; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.scws-pp__lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.scws-pp__lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.scws-pp__lb-close { right: 14px; top: 14px; }

/* 3. About */
.scws-pp__h2, .scws-pp__h3 { font-family: var(--pp-script); font-weight: 700; color: var(--pp-teal); line-height: 1.1; }
.scws-pp__h2 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); margin: 0 0 .25em; }
.scws-pp__h3 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); margin: 0 0 .35em; }
.scws-pp__desc { font-style: italic; font-weight: 600; font-size: clamp(1rem, 1.35vw, 1.13rem); color: var(--pp-navy); }
.scws-pp__desc p { margin: 0 0 .8em; }
.scws-pp__discover {
	margin-top: 14px;
	padding: 16px 22px 14px;
	border: 2px solid var(--pp-line);
	border-radius: 14px;
	background: linear-gradient(180deg, #F3FAF5 0%, var(--pp-mint) 100%);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.scws-pp__discover ul { list-style: none; margin: 0; padding: 0; }
.scws-pp__discover li {
	position: relative;
	padding: 2px 0 2px 38px;
	margin: 0 0 7px;
	font-size: clamp(.98rem, 1.25vw, 1.06rem);
	color: var(--pp-navy);
	font-family: var(--pp-serif);
	font-weight: 400;
}
.scws-pp__discover li::before {
	content: ""; position: absolute; left: 0; top: .2em;
	width: 25px; height: 25px; background: var(--pp-check) center / contain no-repeat;
}

/* 4. Benefits + 5. Purchase */
.scws-pp__lower {
	display: grid;
	grid-template-columns: 48% 1fr;
	gap: clamp(18px, 3vw, 40px);
	align-items: end;
	margin-top: 4px;
}
.scws-pp__lower--solo { grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
.scws-pp__benefits ul { list-style: none; margin: 0; padding: 0 0 22px; display: flex; flex-wrap: wrap; justify-content: center; }
.scws-pp__benefits li { flex: 0 0 25%; position: relative; text-align: center; padding: 0 6px; display: flex; flex-direction: column; align-items: center; }
.scws-pp__benefits li + li::before {
	content: ""; position: absolute; left: 0; top: 14%; height: 52%; width: 2px;
	background: linear-gradient(180deg, rgba(198,161,91,0), var(--pp-gold) 30%, var(--pp-gold) 70%, rgba(198,161,91,0));
}
.scws-pp__benefits img { width: min(100%, 118px); height: auto; }
.scws-pp__benefits span { margin-top: 6px; font-weight: 600; font-style: italic; color: var(--pp-navy); font-size: clamp(.92rem, 1.2vw, 1.02rem); line-height: 1.25; }

.scws-pp__divider { display: block; aspect-ratio: 512 / 58; width: 100%; background: var(--pp-divider) center / contain no-repeat; margin: 0 0 4px; }
.scws-pp__buy {
	position: relative;
	margin-top: 26px;
	padding: 34px 18px 14px;
	border: 2px solid var(--pp-line);
	border-radius: 14px;
	background: linear-gradient(180deg, #F7FBF6 0%, #EEF6F1 100%);
	text-align: center;
}
.scws-pp__ribbon {
	position: absolute; left: 50%; top: 0; transform: translate(-50%, -52%);
	width: min(96%, 470px); aspect-ratio: 345 / 64;
	margin: 0;
	background: var(--pp-ribbon) center / 100% 100% no-repeat;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--pp-script); font-weight: 700; color: #fff;
	font-size: clamp(1.35rem, 2.4vw, 2.05rem); line-height: 1;
	padding: 0 14% 6%;
	text-shadow: 0 1px 2px rgba(0,0,0,.25);
	white-space: nowrap;
}
.scws-pp__formats-line { margin: 6px 0 8px; font-style: italic; font-weight: 600; color: var(--pp-navy); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.scws-pp__buy-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.scws-pp__formats { list-style: none; margin: 0; padding: 0; display: flex; flex: 1 1 auto; justify-content: space-around; }
.scws-pp__formats li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0 6px; }
.scws-pp__formats li + li::before, .scws-pp__action::before {
	content: ""; position: absolute; left: 0; top: 8%; height: 84%; width: 1.5px; background: rgba(0,91,96,.45);
}
.scws-pp__formats img { height: 40px; width: auto; }
.scws-pp__formats span { margin-top: 4px; font-size: .95rem; color: var(--pp-navy); line-height: 1.2; }
.scws-pp__action { position: relative; flex: 0 0 auto; padding-left: 14px; display: flex; flex-direction: column; align-items: center; }
/* 0.9.1: larger price (Angie, 2026-11-29). Pixel size so theme root sizes cannot shrink it. */
.scws-pp__price { margin: 0 0 8px; font-weight: 700; color: var(--pp-forest); font-size: 34px !important; line-height: 1.15; }
.scws-pp__price .amount, .scws-pp__price bdi, .scws-pp__price .woocommerce-Price-currencySymbol { font-size: inherit !important; font-weight: inherit; color: inherit; }
@media (max-width: 600px) { .scws-pp__price { font-size: 30px !important; } }
.scws-pp__cart { margin: 0; }
.scws-pp__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-width: 170px; min-height: 54px; padding: 10px 24px;
	border: 0; border-radius: 999px;
	background: linear-gradient(180deg, #0B7A72 0%, var(--pp-teal) 100%);
	color: #fff !important; text-decoration: none !important;
	font-family: var(--pp-serif); font-weight: 600; font-size: 1.1rem; line-height: 1.15;
	box-shadow: 0 3px 8px rgba(0,91,96,.35), inset 0 1px 0 rgba(255,255,255,.25);
	cursor: pointer;
}
.scws-pp__btn:hover { background: linear-gradient(180deg, #0a6d66 0%, #004c50 100%); }
.scws-pp__btn:focus-visible { outline: 3px solid var(--pp-gold); outline-offset: 3px; }
.scws-pp__btn--off { background: #7FA9A6; box-shadow: none; cursor: not-allowed; }
.scws-pp__btn--off:hover { background: #7FA9A6; }
.scws-pp__cart-icon { flex: 0 0 auto; }
.scws-pp__note { margin: 10px 0 0; font-size: .9rem; font-style: italic; color: var(--pp-forest); }
.scws-pp__admin { margin: 10px 0 0; padding: 8px 10px; border: 1px dashed var(--pp-gold); border-radius: 8px; background: #fffbe8; font-size: .82rem; color: #5a4a1f; text-align: left; }
.scws-pp__admin a { color: var(--pp-teal); }

/* Optional related resources */
.scws-pp__related {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
	margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(198,161,91,.6);
	text-align: center;
}
.scws-pp__related ul { list-style: none; margin: 0; padding: 0; }
.scws-pp__related li { margin: 0 0 4px; font-style: italic; font-weight: 600; }
.scws-pp__related a { color: var(--pp-teal); }

/* 6. Scenic footer: natural proportions */
.scws-pp__footer img { display: block; width: 100%; height: auto; }

/* Tablet */
@media (max-width: 1024px) {
	.scws-pp__lower { grid-template-columns: 1fr; align-items: stretch; }
	.scws-pp__benefits ul { max-width: 640px; margin: 0 auto; }
	.scws-pp__buy-col { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 860px) {
	.scws-pp__main { grid-template-columns: 1fr; }
	.scws-pp__preview { max-width: 600px; width: 100%; margin: 0 auto; }
	.scws-pp__hero-inner { padding: 10px 10% 0; }
	.scws-pp__hero::before { inset: 0 6%; }
}
/* Phone */
@media (max-width: 560px) {
	.scws-pp__hero { min-height: 340px; background-position: 30% bottom; }
	.scws-pp__hero::before { inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(255,255,237,.95) 0%, rgba(255,255,237,.78) 45%, rgba(255,255,237,.15) 80%); }
	.scws-pp__hero-inner { padding: 12px 16px 0; }
	.scws-pp__brand { width: 130px; }
	.scws-pp__subtitle { margin-bottom: 14px; }
	.scws-pp__benefits ul { row-gap: 14px; }
	.scws-pp__benefits li { flex-basis: 50%; }
	.scws-pp__benefits li:nth-child(3)::before { display: none; }
	.scws-pp__buy { padding: 30px 12px 14px; }
	.scws-pp__buy-row { flex-direction: column; gap: 14px; }
	.scws-pp__formats { width: 100%; }
	.scws-pp__action { padding-left: 0; }
	.scws-pp__action::before { display: none; }
	.scws-pp__btn { min-width: 220px; }
	.scws-pp__discover { padding: 14px 14px 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.scws-pp__page { transition: none; }
}

/* Worksheet product pages inside the theme's WooCommerce container: the template runs edge to edge. */
body.scws-pp-page { overflow-x: clip; }
.scws-pp-full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
body.scws-pp-page .fl-content { margin-top: 0; margin-bottom: 0; }
/* Theme-proof: the site theme's heading and image rules never reach the template. */
.scws-pp h1, .scws-pp h2, .scws-pp h3 { letter-spacing: normal; text-transform: none; }
.scws-pp img { vertical-align: middle; }
body.scws-pp-page .fl-page-content { background: var(--pp-cream, #FFFFED); }
.scws-pp-main { display: block; margin: 0; padding: 0; background: #FFFFED; }

/* Layout: two independent columns on wide screens (gallery + benefits | about + purchase). */
.scws-pp__grid { display: grid; grid-template-columns: 48% 1fr; column-gap: clamp(18px, 3vw, 40px); align-items: stretch; }
.scws-pp__col { display: flex; flex-direction: column; min-width: 0; }
.scws-pp__col--l .scws-pp__benefits { margin-top: auto; padding-top: 22px; }
.scws-pp__col--r .scws-pp__buy-col { margin-top: 18px; }
@media (max-width: 1024px) {
	.scws-pp__col { display: contents; }
	.scws-pp__g-gallery { grid-column: 1; grid-row: 1; }
	.scws-pp__about { grid-column: 2; grid-row: 1; }
	.scws-pp__benefits { grid-column: 1 / -1; grid-row: 2; margin-top: 22px; }
	.scws-pp__buy-col { grid-column: 1 / -1; grid-row: 3; max-width: 640px; width: 100%; margin: 18px auto 0; }
	.scws-pp__benefits ul { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 860px) {
	.scws-pp__grid { grid-template-columns: minmax(0, 1fr); }
	.scws-pp__g-gallery { grid-column: 1; grid-row: 1; }
	.scws-pp__about { grid-column: 1; grid-row: 2; margin-top: 18px; }
	.scws-pp__benefits { grid-column: 1; grid-row: 3; }
	.scws-pp__buy-col { grid-column: 1; grid-row: 4; }
}

/* Preview protection: pages that come with purchase show softened, with a label. */
.scws-pp__page.is-locked img { filter: saturate(.85); }
.scws-pp__lock {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	width: max-content; max-width: 86%;
	padding: 12px 18px; border-radius: 14px;
	background: rgba(255,255,237,.92); border: 1.5px solid var(--pp-line, #9BCFC8);
	box-shadow: 0 4px 14px rgba(0,91,96,.18);
	color: var(--pp-teal, #005B60); font-family: var(--pp-serif); font-style: italic; font-weight: 600;
	font-size: clamp(.82rem, 1.25vw, 1rem); line-height: 1.2; text-align: center; pointer-events: none;
}
.scws-pp__lock svg { width: 26px; height: 26px; }
.scws-pp__lb-frame { position: relative; }
.scws-pp__lock--lb { font-size: 1.15rem; padding: 16px 26px; }
.scws-pp__lock--lb svg { width: 34px; height: 34px; }
.scws-pp__lock[hidden] { display: none; }
.scws-pp__page:not(.is-front) .scws-pp__lock { display: none; }

/* "Clear but small, no zoom" pages (0.9.2): the page is shown at about the size of its
   small clear copy, so it looks sharp, while enlarging or pinch-zooming only shows fuzz. */
.scws-pp__page.is-nozoom { cursor: default; height: min(96%, 207px); top: calc(1.5% + (96% - min(96%, 207px)) / 2); touch-action: pan-x pan-y; }
.scws-pp__page.is-nozoom img { image-rendering: auto; -webkit-user-drag: none; }
.scws-pp__stack { touch-action: pan-x pan-y; }
.scws-pp__lock--tag {
	top: auto; bottom: 7%; transform: translateX(-50%);
	flex-direction: row; gap: 6px; padding: 5px 12px; border-radius: 999px;
	font-size: clamp(.72rem, 1vw, .85rem); white-space: nowrap;
}
.scws-pp__lock--tag svg { width: 15px; height: 15px; }
.scws-pp__lock, .scws-pp__lock span { text-transform: none !important; letter-spacing: normal !important; }
.scws-pp__page.is-nudge .scws-pp__lock--tag { animation: scws-nudge .5s ease; }
@keyframes scws-nudge { 0%,100% { transform: translateX(-50%); } 25% { transform: translateX(calc(-50% - 5px)); } 75% { transform: translateX(calc(-50% + 5px)); } }
.scws-pp__lb-frame.is-nozoom { min-width: min(80vw, 420px); min-height: 200px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.scws-pp__lb-frame.is-nozoom .scws-pp__lock--lb { position: static; transform: none; }
@media (prefers-reduced-motion: reduce) { .scws-pp__page.is-nudge .scws-pp__lock--tag { animation: none; } }

@media (max-width: 420px) { .scws-pp__nav { gap: 6px; } .scws-pp__arrow, .scws-pp__dot { width: 40px !important; height: 40px !important; min-width: 40px; } }

/* 0.10.0: a workbook's "Bonus" dot is a word, so it grows into a pill. */
.scws-pp__dot.scws-pp__dot--word { width: auto !important; min-width: 44px; padding: 0 .8em !important; border-radius: 999px; }
