/* Chalympics booklet pages (assets/js/chalympics-booklet.js).
   Laid out in Figma units: one page = 1275 x 1650 px (US Letter at 150 dpi). */

.cpb-page {
	--ink: #2B2730;
	--purple: #9A5399;
	--purple-soft: #E7BCE5;
	--peri: #6F73D2;
	--peri-soft: #A9ACEC;
	--accent: #5B5FD6;
	--green: #7E9E27;
	--s: 1;
	position: relative;
	width: 1275px;
	height: 1650px;
	overflow: hidden;
	box-sizing: border-box;
	background: #DAC0DF center / cover no-repeat;
	font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
	color: var(--ink);
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.cpb-page *, .cpb-page *::before, .cpb-page *::after { box-sizing: border-box; }
.cpb-page p, .cpb-page h1, .cpb-page h2, .cpb-page h3, .cpb-page h4, .cpb-page h5, .cpb-page ul, .cpb-page ol { margin: 0; padding: 0; }
.cpb-page img { display: block; max-width: none; }
/* The site theme styles bare p / h1-h6 (16px, dark text). Inside the booklet,
   text takes its size and color from the booklet's own classes instead. */
.cpb-page :where(p, li, h1, h2, h3, h4, h5, h6, span, mark, u) {
	font-size: inherit; line-height: inherit; color: inherit; letter-spacing: inherit; font-family: inherit; font-weight: inherit;
}
.cpb-page strong { font-weight: 700; }
.cpb-page--green { background-color: #92AD4A; }
.cpb-page--blue { background-color: #AED2E0; }
.cpb-page--periwinkle { background-color: #9DA0E6; }

/* html2canvas measures font baselines with a 1x1 inline gif; the theme's global
   img { display: block } would shift all PDF text down, so keep that probe inline. */
img[src^="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP"] { display: inline !important; max-width: none !important; }

/* ---- card */
.cpb-card {
	position: absolute;
	left: 47px; right: 47px; top: 50px; bottom: 50px;
	background: #fff;
	border-radius: 46px;
	padding: 50px 52px 40px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* ---- header */
.cpb-head { display: flex; justify-content: space-between; align-items: flex-start; }
.cpb-badge {
	display: inline-block;
	padding: 16px 28px;
	border: 2px solid var(--purple-soft);
	background: #FCF1FB;
	border-radius: 999px;
	color: var(--purple);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1;
}
.cpb-date {
	color: var(--purple);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.22;
	text-align: right;
	text-transform: uppercase;
	letter-spacing: .005em;
}
.cpb-title {
	margin-top: 22px !important;
	color: var(--purple);
	font-size: calc(78px * (0.6 + 0.4 * var(--s)));
	font-weight: 800;
	letter-spacing: -.028em;
	line-height: 1.12;
}
.cpb-page--green .cpb-title { color: var(--green); }
.cpb-page--blue .cpb-title, .cpb-page--blue .cpb-label { color: #3B7FA8; }
.cpb-page--periwinkle .cpb-title, .cpb-page--periwinkle .cpb-label { color: #5B5FD6; }
.cpb-page--blue .cpb-num { background: #A9D0E3; }
.cpb-page--periwinkle .cpb-num { background: #B9BBF1; }
.cpb-page--green .cpb-date { color: var(--purple); }
.cpb-subtitle {
	margin-top: 10px !important;
	color: var(--accent);
	font-size: calc(21px * var(--s));
	font-weight: 600;
}
.cpb-pill {
	display: inline-block;
	align-self: flex-start;
	padding: 12px 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1;
}
.cpb-title + .cpb-pill { margin-top: 18px; }
.cpb-pill--lime { background: #E8F8AE; border: 2px solid #CFE98A; color: #5D7219; }
.cpb-pill--lav { background: #DADBFB; color: #5458C9; }
.cpb-pill--pink { background: #F8D9F5; color: #A14E9E; }

/* ---- boxes */
.cpb-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
	margin-top: calc(40px * var(--s));
	align-items: start;
}
.cpb-col { display: flex; flex-direction: column; gap: 18px; }
.cpb-box {
	border-radius: 34px;
	padding: calc(30px * var(--s)) 30px calc(32px * var(--s));
	font-size: calc(21.5px * var(--s));
	line-height: 1.58;
}
.cpb-box--pink { border: 2px solid #D9A3D6; background: #FFF8FE; }
.cpb-box--lav { border: 2px solid #A6A9EA; background: #F4F3FF; }
.cpb-box h4 {
	margin-bottom: calc(16px * var(--s)) !important;
	font-size: calc(16px * (0.5 + 0.5 * var(--s)));
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1.3;
}
.cpb-box--pink h4 { color: var(--purple); }
.cpb-box--lav h4 { color: var(--peri); }
.cpb-box h4.cpb-h4-2 { margin-top: calc(20px * var(--s)) !important; }
.cpb-box p + p { margin-top: calc(14px * var(--s)); }
.cpb-box.is-small { font-size: calc(15.5px * var(--s)); line-height: 1.38; }
.cpb-box .cpb-accent--big { margin-top: calc(16px * var(--s)); font-size: calc(21px * var(--s)); line-height: 1.35; }

.cpb-bullets { list-style: none; }
.cpb-bullets li { position: relative; padding-left: 24px; }
.cpb-bullets li + li { margin-top: calc(14px * var(--s)); }
.cpb-bullets li::before {
	content: '';
	position: absolute; left: 2px; top: calc(0.79em - 3.5px);
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--purple);
}
.cpb-box--lav .cpb-bullets li::before { background: var(--peri); }
.cpb-bullets--loose { font-size: calc(21.5px * var(--s)); line-height: 1.55; padding: 4px 6px 0; }
.cpb-bullets--loose li + li { margin-top: calc(14px * var(--s)); }

.cpb-group { margin-top: calc(18px * var(--s)); }
.cpb-group:first-child { margin-top: 0; }
.cpb-group__label { font-weight: 700; text-decoration: underline; text-decoration-color: #E3C3E1; text-underline-offset: 3px; margin-bottom: calc(10px * var(--s)) !important; }
.cpb-inline { display: flex; flex-wrap: wrap; column-gap: 26px; row-gap: 4px; margin-top: calc(8px * var(--s)); }
.cpb-inline span { position: relative; padding-left: 18px; }
.cpb-inline span::before {
	content: ''; position: absolute; left: 0; top: calc(0.79em - 3.5px);
	width: 7px; height: 7px; border-radius: 50%; background: var(--purple);
}

.cpb-accent { color: var(--accent); font-weight: 700; }

/* ---- steps */
.cpb-label {
	margin: calc(46px * var(--s)) 0 calc(22px * var(--s)) !important;
	color: var(--purple);
	font-size: calc(16px * (0.5 + 0.5 * var(--s)));
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.cpb-page--green .cpb-label { color: var(--green); }
.cpb-steps { list-style: none; font-size: calc(21.5px * var(--s)); line-height: 1.58; }
.cpb-step { display: flex; align-items: flex-start; gap: 18px; }
.cpb-step + .cpb-step { margin-top: calc(15px * var(--s)); }
.cpb-step.has-title + .cpb-step { margin-top: calc(26px * var(--s)); }
.cpb-num {
	flex: 0 0 auto;
	width: calc(36px * (0.6 + 0.4 * var(--s)));
	height: calc(36px * (0.6 + 0.4 * var(--s)));
	border-radius: 50%;
	background: #E5B9E3;
	color: #fff;
	font-size: calc(17px * (0.6 + 0.4 * var(--s)));
	font-weight: 700;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cpb-page--green .cpb-num { background: #E2F2A6; color: #6D8A1C; }
.cpb-step__body { flex: 1; padding-top: 0; }
.cpb-step__body p + p { margin-top: calc(10px * var(--s)); }
.cpb-step__title { font-weight: 700; margin-bottom: calc(10px * var(--s)) !important; }
.cpb-step__title mark { background: #F7E2F5; color: inherit; padding: 2px 8px 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.6; }
.cpb-page--green .cpb-step__title mark { background: #EEF8CC; }
.cpb-step.is-accent .cpb-step__body { color: var(--purple); }
.cpb-step .cpb-accent { color: var(--purple); }
.cpb-page--green .cpb-step .cpb-accent { color: var(--purple); }
.cpb-shout { color: var(--accent); font-size: calc(27px * var(--s)); font-weight: 800; line-height: 1.25; margin: calc(14px * var(--s)) 0 calc(12px * var(--s)) -50px !important; }

.cpb-stepswrap { display: flow-root; }
.cpb-float { float: right; margin: calc(64px * var(--s)) 0 10px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.cpb-col { position: relative; }
.cpb-note {
	position: absolute; top: calc(100% + 18px); left: 40px;
	margin: 0 !important;
	padding-left: 24px;
	color: var(--purple);
	font-family: 'Indie Flower', 'Comic Sans MS', cursive;
	font-size: 21px;
	line-height: 1.15;
	letter-spacing: .04em;
	opacity: .85;
}
.cpb-note .cpb-sparkle { position: absolute; left: -14px; top: -4px; width: 30px; height: 30px; }
.cpb-boxart { display: flex; justify-content: center; margin-top: 6px; }
.cpb-topart { display: flex; justify-content: center; align-items: center; height: 100%; }

/* ---- winning + bottom */
.cpb-win {
	position: relative;
	width: 512px;
	padding: 30px 34px 34px;
	border-radius: 34px;
	background: #A2A5F0;
	color: #fff;
}
.cpb-win.is-wide { width: auto; }
.cpb-win h3 { font-size: 38px; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; margin-bottom: 12px !important; }
.cpb-win p { font-size: calc(20px * var(--s)); line-height: 1.4; }
.cpb-win .cpb-sparkle { position: absolute; right: 26px; top: 20px; width: 52px; height: 52px; }
.cpb-bottom { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.cpb-bottom__left { display: flex; align-items: flex-end; padding-left: 40px; margin-bottom: 40px; }
.cpb-art--corner { margin-bottom: -6px; }

/* ---- two-column layout (B) */
.cpb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: calc(36px * var(--s)); flex: 1; min-height: 0; }
.cpb-two--auto { flex: 0 0 auto; }
.cpb-two__l, .cpb-two__r { display: flex; flex-direction: column; gap: calc(22px * var(--s)); min-height: 0; }
.cpb-two__l > .cpb-label { margin: calc(14px * var(--s)) 0 0 !important; }
.cpb-two .cpb-steps { margin-top: 0; }
.cpb-intro { color: var(--accent); font-size: calc(18px * var(--s)); line-height: 1.38; }
.cpb-howbox .cpb-lead { font-weight: 700; font-size: calc(22px * var(--s)); line-height: 1.35; margin-bottom: calc(14px * var(--s)) !important; }
.cpb-howbox p { font-size: calc(21px * var(--s)); }
.cpb-howbox .cpb-accent { color: var(--accent); }
.cpb-push { flex: 1; }
.cpb-rightart, .cpb-leftart { display: flex; justify-content: center; }
.cpb-leftart { margin-top: auto; }
.cpb-balloon { display: flex; justify-content: flex-end; margin: 0 20px -110px 0; position: relative; z-index: 0; }
.cpb-balloon + .cpb-push + .cpb-win, .cpb-balloon ~ .cpb-win { position: relative; z-index: 1; }
.cpb-page .cpb-two__r > .cpb-win { width: auto; }

/* ---- big art (layout C) */
.cpb-row--c { margin-top: calc(34px * var(--s)); }
.cpb-row--c .cpb-box h4 { color: var(--ink); font-size: 22px; text-decoration: underline; text-decoration-color: #F2D772; text-underline-offset: 4px; text-transform: uppercase; }
.cpb-bigart { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 10px; }
.cpb-art--big1 { margin-top: -30px; }

/* ---- footer */
.cpb-foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: flex-end; flex: 0 0 auto; }
.cpb-logo { width: 108px; height: auto; }
.cpb-handle { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-size: 19px; font-weight: 600; }
.cpb-handle svg { width: 20px; height: 20px; }
.cpb-page--green .cpb-handle { color: var(--purple); }
/* bottom-left art + logo share the corner, winning box sits above the handle */
.cpb-bottom + .cpb-foot { margin-top: -10px; }

/* ---- cover + closing (Figma art, years swapped in) */
.cpb-page--cover, .cpb-page--closing { background-size: 1275px 1650px; }
.cpb-patch { position: absolute; }
.cpb-patch--cover { left: 425px; top: 462px; width: 425px; height: 62px; background: #FBFBFB; }
.cpb-patch--closing { left: 520px; top: 780px; width: 232px; height: 34px; background: #F8F5F0; }
.cpb-years { position: absolute; display: flex; align-items: center; justify-content: center; color: #1D1D1F; font-weight: 500; white-space: nowrap; }
.cpb-years i { display: block; background: #1D1D1F; }
.cpb-years--cover { left: 342px; width: 600px; top: 466px; height: 56px; font-size: 45.5px; gap: 17px; letter-spacing: .01em; }
.cpb-years--cover i { width: 130px; height: 2.5px; }
.cpb-years--closing { left: 436px; width: 400px; top: 783px; height: 30px; font-size: 23.5px; gap: 12px; }
.cpb-years--closing i { width: 64px; height: 1.6px; }

/* ---- page 2: intro */
.cpb-page--intro { background: #9A5399; color: #fff; }
.cpb-photo { position: absolute; left: 0; top: 0; width: 1275px; height: 1060px; background: 88% 0 / auto 1180px no-repeat; }
.cpb-fade { position: absolute; left: 0; right: 0; top: 500px; height: 580px; background: linear-gradient(180deg, rgba(154,83,153,0) 0%, rgba(154,83,153,.55) 40%, #9A5399 92%); }
.cpb-intro-top { position: absolute; left: 66px; right: 66px; top: 56px; display: flex; justify-content: space-between; align-items: center; }
.cpb-pills { display: flex; gap: 12px; }
.cpb-intro-year { font-size: 19px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.cpb-intro-title { position: absolute; left: 66px; top: 150px; font-size: 98px; font-weight: 800; letter-spacing: -.02em; line-height: 1.04; text-transform: uppercase; }
.cpb-intro-body { position: absolute; left: 66px; width: 760px; top: 960px; }
.cpb-intro-body h2 { font-size: 54px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 30px !important; }
.cpb-intro-body p { font-size: 20px; line-height: 1.42; }
.cpb-intro-body p + p { margin-top: 20px; }
.cpb-intro-logo { position: absolute; right: 66px; bottom: 56px; width: 128px; height: 116px; border-radius: 26px; background: #fff; display: flex; align-items: center; justify-content: center; }
.cpb-intro-logo img { width: 96px; }

/* ---- page 3: rules */
.cpb-card--rules { bottom: 50px; padding: 44px 52px 300px; display: block; }
.cpb-rules-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cpb-logo--top { width: 108px; }
.cpb-rules-year { color: var(--peri); font-size: 19px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; padding-top: 22px; }
.cpb-menorah { position: absolute; right: 115px; top: 180px; width: 270px; }
.cpb-rules-kicker { margin-top: 30px !important; font-size: 20px; }
.cpb-rules-title { margin-top: 12px !important; color: #5B5FD6; font-size: 90px; font-weight: 800; letter-spacing: -.03em; line-height: 1.04; }
.cpb-rules-lead { margin-top: 42px !important; font-size: 20px; line-height: 1.45; max-width: 1000px; }
.cpb-rules-h3 { margin: 72px 0 32px !important; color: #5B5FD6; font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.cpb-steps--rules .cpb-num { background: #7C80DA; }
.cpb-steps--rules .cpb-step + .cpb-step { margin-top: 34px; }
.cpb-steps--rules { max-width: 900px; line-height: 1.5; }
.cpb-rules-bonus {
	position: absolute; left: 47px; right: 47px; bottom: 50px; height: 503px;
	border-radius: 46px; overflow: hidden;
	background-color: #7378D4; background-size: 1275px 1650px; background-position: 0 -600px;
	padding: 46px 52px 40px; color: #fff;
}
.cpb-rules-bonus::before { content: ''; position: absolute; inset: 0; background: rgba(105,110,208,.6); }
.cpb-rules-bonus > * { position: relative; }
.cpb-rules-bonus p { margin-top: 44px !important; font-size: 25px; line-height: 1.45; max-width: 760px; }
.cpb-rules-bonus p + p { margin-top: 22px !important; }
.cpb-rules-foot { position: absolute !important; left: 52px; right: 52px; bottom: 40px; display: flex; justify-content: space-between; align-items: flex-end; }
.cpb-hand { font-family: 'Indie Flower', 'Comic Sans MS', cursive; font-size: 30px; letter-spacing: .06em; }
.cpb-rules-foot .cpb-handle { color: #fff; }
