/**
 * Club page (/club/): the title area, the calendar images, the gift boxes and
 * the card sections with their tab strip.
 *
 * The tab strip and the cards started as a copy of community.css under the
 * hec-cp prefix, so the two pages look alike; nothing is shared, so a change
 * to one does not move the other. Every rule is scoped under .hec-cp so it
 * outranks the Elementor kit's (0,1,1) element rules. Colours are the
 * community page's own; the mauve is darkened to #7A4A79 for small text so it
 * meets WCAG AA on white. Logical properties throughout: the page is RTL.
 */

.hec-cp {
	--hec-cp-ink: #3C4F45;
	--hec-cp-muted: #617067;
	--hec-cp-accent: #7A4A79;
	--hec-cp-heading: #A676A5;
	--hec-cp-pill-bg: #F3E9F3;
	--hec-cp-line: #DDE2DC;
	--hec-cp-ground: #F8F8F6;
	--hec-cp-surface: #FFFFFF;
	--hec-cp-radius: 16px;
	--hec-cp-gap: 20px;
	--hec-cp-shadow: 0 1px 2px rgba(60, 79, 69, 0.06), 0 6px 20px rgba(60, 79, 69, 0.08);
	--hec-cp-shadow-lift: 0 2px 4px rgba(60, 79, 69, 0.08), 0 14px 30px rgba(60, 79, 69, 0.14);

	font-family: "Noto Sans Hebrew", sans-serif;
	color: var(--hec-cp-ink);
	background: var(--hec-cp-surface);
}

.hec-cp *,
.hec-cp *::before,
.hec-cp *::after {
	box-sizing: border-box;
}

.hec-cp .hec-cp__inner {
	max-inline-size: 1240px;
	margin-inline: auto;
	padding: 0 20px 64px;
}

/* ---------- Title area ---------- */

/* One motif runs through the top of the page: a tailor's stitch. It edges
   the logo, which sits like a sewn-on label, closes the title band as a
   seam, and lines the gift vouchers. Nothing else on the page uses it. */

.hec-cp .hec-cp-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(28px, 5vw, 80px);
	align-items: center;
	margin: 0 0 56px;
	padding: clamp(44px, 6vw, 84px) max(20px, calc((100% - 1080px) / 2)) clamp(52px, 6.5vw, 92px);
	background: var(--hec-cp-ground);
}

/* The seam along the foot of the band. */
.hec-cp .hec-cp-hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 16px;
	block-size: 2px;
	background: repeating-linear-gradient(to left, var(--hec-cp-heading) 0 12px, transparent 12px 20px);
	opacity: 0.55;
	pointer-events: none;
}

.hec-cp .hec-cp-hero__text {
	min-inline-size: 0;
}

.hec-cp .hec-cp-hero__title {
	margin: 0 0 22px;
	color: var(--hec-cp-heading);
	font-family: "Amatic SC", cursive;
	font-size: clamp(46px, 7vw, 78px);
	font-weight: 700;
	line-height: 1;
	text-wrap: balance;
}

.hec-cp .hec-cp-hero__p {
	max-inline-size: 58ch;
	margin: 0 0 14px;
	color: #4D5A53;
	font-size: 18px;
	line-height: 1.8;
	text-wrap: pretty;
}

.hec-cp .hec-cp-hero__p:last-child {
	margin-block-end: 0;
}

/* The logo as a label sewn onto the band: a white tag, a stitched inner
   edge, a slight tilt. */
.hec-cp .hec-cp-hero__media {
	position: relative;
	padding: 20px 24px;
	border-radius: 6px;
	background: var(--hec-cp-surface);
	box-shadow: 0 1px 2px rgba(60, 79, 69, 0.08), 0 14px 32px rgba(60, 79, 69, 0.13);
	transform: rotate(-3deg);
}

.hec-cp .hec-cp-hero__media::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1.5px dashed rgba(166, 118, 165, 0.6);
	border-radius: 3px;
	pointer-events: none;
}

.hec-cp .hec-cp-hero__media img {
	display: block;
	inline-size: clamp(150px, 19vw, 228px);
	max-inline-size: none;
	block-size: auto;
	margin: 0;
	border-radius: 0;
}

/* ---------- Calendar ---------- */

.hec-cp .hec-cp-cal {
	margin-block-end: 56px;
}

.hec-cp .hec-cp-cal__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hec-cp .hec-cp-cal__item {
	margin: 0;
	padding: 0;
}

/* Each month is a printed sheet: white paper, a thin margin, a soft shadow. */
.hec-cp .hec-cp-cal__link {
	position: relative;
	display: block;
	padding: 8px;
	border-radius: 10px;
	background: var(--hec-cp-surface);
	box-shadow: 0 1px 2px rgba(60, 79, 69, 0.06), 0 8px 22px rgba(60, 79, 69, 0.1);
	cursor: zoom-in;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hec-cp .hec-cp-cal__link img {
	display: block;
	inline-size: 100%;
	max-inline-size: none;
	block-size: auto;
	margin: 0;
	border-radius: 4px;
}

/* A magnifier says the sheet opens full size. It shows on hover and on
   keyboard focus, and always on touch screens, which have no hover. */
.hec-cp .hec-cp-cal__link::after {
	content: "";
	position: absolute;
	inset-block-end: 18px;
	inset-inline-start: 18px;
	inline-size: 42px;
	block-size: 42px;
	border-radius: 50%;
	background: var(--hec-cp-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 22px no-repeat;
	box-shadow: 0 4px 12px rgba(60, 79, 69, 0.3);
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.hec-cp .hec-cp-cal__link:hover,
.hec-cp .hec-cp-cal__link:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 2px 4px rgba(60, 79, 69, 0.08), 0 16px 32px rgba(60, 79, 69, 0.16);
}

.hec-cp .hec-cp-cal__link:hover::after,
.hec-cp .hec-cp-cal__link:focus-visible::after {
	opacity: 1;
	transform: scale(1);
}

.hec-cp .hec-cp-cal__link:focus-visible {
	outline: 3px solid var(--hec-cp-accent);
	outline-offset: 3px;
}

@media (hover: none) {
	.hec-cp .hec-cp-cal__link::after {
		inline-size: 36px;
		block-size: 36px;
		background-size: 19px;
		opacity: 0.92;
		transform: none;
	}
}

/* The dots under the phone slider; club-page.js adds them. */
.hec-cp .hec-cp-cal__dots {
	display: none;
}

/* On phones the months are a slider: one sheet at a time, the next one
   peeking in at the edge, and dots that show which month is in view. */
@media (max-width: 599px) {
	.hec-cp .hec-cp-cal__grid {
		display: flex;
		gap: 14px;
		overflow-x: auto;
		margin-inline: -20px;
		padding: 6px 20px 14px;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 20px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.hec-cp .hec-cp-cal__grid::-webkit-scrollbar {
		display: none;
	}

	.hec-cp .hec-cp-cal__item {
		flex: 0 0 86%;
		scroll-snap-align: center;
	}

	.hec-cp .hec-cp-cal__dots {
		display: flex;
		justify-content: center;
		gap: 2px;
		margin-block-start: 2px;
	}

	/* Element in the selector and the states listed: the theme reset paints
	   every button:hover and :focus. The button is a 28px target; the dot
	   is drawn inside it. */
	.hec-cp button.hec-cp-cal__dot,
	.hec-cp button.hec-cp-cal__dot:hover,
	.hec-cp button.hec-cp-cal__dot:focus {
		display: flex;
		align-items: center;
		justify-content: center;
		inline-size: 28px;
		block-size: 28px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
		cursor: pointer;
	}

	.hec-cp button.hec-cp-cal__dot::before {
		content: "";
		inline-size: 8px;
		block-size: 8px;
		border-radius: 999px;
		background: var(--hec-cp-line);
		transition: inline-size 0.2s ease, background-color 0.2s ease;
	}

	.hec-cp button.hec-cp-cal__dot[aria-current="true"]::before {
		inline-size: 22px;
		background: var(--hec-cp-ink);
	}

	.hec-cp button.hec-cp-cal__dot:focus-visible {
		outline: 2px solid var(--hec-cp-accent);
		outline-offset: -2px;
	}
}

@media (min-width: 600px) {
	.hec-cp .hec-cp-cal__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.hec-cp .hec-cp-cal__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Gift boxes ---------- */

/* Each gift is a voucher: a lavender slip with a stitched inner edge, read
   from the right like the rest of the page, and a download button. */

.hec-cp .hec-cp-gifts {
	margin-block-end: 64px;
}

.hec-cp .hec-cp-gifts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hec-cp .hec-cp-gift {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 30px 30px 28px;
	border-radius: 14px;
	background: var(--hec-cp-pill-bg);
	text-align: start;
}

.hec-cp .hec-cp-gift::before {
	content: "";
	position: absolute;
	inset: 9px;
	border: 1.5px dashed rgba(122, 74, 121, 0.4);
	border-radius: 8px;
	pointer-events: none;
}

.hec-cp .hec-cp-gift__title {
	margin: 0;
	color: var(--hec-cp-accent);
	font-family: "Amatic SC", cursive;
	font-size: clamp(32px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.05;
}

/* WordPress swaps the 🎁 for an <img class="emoji">; keep it on the line. */
.hec-cp .hec-cp-gift__title img {
	display: inline-block;
	inline-size: 0.8em;
	block-size: 0.8em;
	margin: 0 0.1em;
	vertical-align: -0.05em;
}

.hec-cp .hec-cp-gift__text {
	margin: 0;
	color: #5A5560;
	font-size: 16px;
	line-height: 1.7;
}

.hec-cp .hec-cp-gift__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-block-start: auto;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--hec-cp-ink);
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

/* A download arrow: every gift is something to take away. */
.hec-cp .hec-cp-gift__link::before {
	content: "";
	flex: 0 0 auto;
	inline-size: 17px;
	block-size: 17px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hec-cp .hec-cp-gift__link:hover,
.hec-cp .hec-cp-gift__link:focus-visible {
	background: var(--hec-cp-accent);
	color: #FFFFFF;
}

.hec-cp .hec-cp-gift__link:focus-visible {
	outline: 3px solid var(--hec-cp-accent);
	outline-offset: 3px;
}

/* ---------- Tab strip ---------- */

.hec-cp .hec-cp__dir {
	margin-block-start: 8px;
}

.hec-cp .hec-cp__tabs {
	position: sticky;
	top: var(--hec-cp-sticky-top, 0px);
	z-index: 20;
	margin-block-end: 28px;
	padding-block: 10px;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-block-end: 1px solid var(--hec-cp-line);
}

/* Under the theme's own sticky header the strip stops below the bar; the
   header sets its height on body.hec-has-header (site-header.css). */
body.hec-has-header .hec-cp {
	--hec-cp-sticky-top: var(--hec-header-height, 68px);
}

/* Logged-in visitors have the fixed admin bar on top (32px; 46px on tablets;
   not fixed at 600px and below). */
body.admin-bar .hec-cp .hec-cp__tabs {
	top: calc(var(--hec-cp-sticky-top, 0px) + 32px);
}

@media (max-width: 782px) {
	body.admin-bar .hec-cp .hec-cp__tabs {
		top: calc(var(--hec-cp-sticky-top, 0px) + 46px);
	}
}

@media (max-width: 600px) {
	body.admin-bar .hec-cp .hec-cp__tabs {
		top: var(--hec-cp-sticky-top, 0px);
	}
}

.hec-cp .hec-cp__track {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.hec-cp .hec-cp__track::-webkit-scrollbar {
	display: none;
}

.hec-cp .hec-cp__tab {
	flex: 0 0 auto;
	padding: 9px 18px;
	border: 1px solid var(--hec-cp-line);
	border-radius: 999px;
	background: var(--hec-cp-surface);
	color: var(--hec-cp-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	scroll-snap-align: start;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hec-cp .hec-cp__tab:hover {
	border-color: var(--hec-cp-ink);
	color: var(--hec-cp-ink);
}

.hec-cp .hec-cp__tab[aria-current="page"] {
	border-color: var(--hec-cp-ink);
	background: var(--hec-cp-ink);
	color: #FFFFFF;
}

.hec-cp .hec-cp__tab:focus-visible {
	outline: 2px solid var(--hec-cp-accent);
	outline-offset: 2px;
}

/* Arrows for a mouse, added by club-page.js: a mouse has no sideways scroll
   and the strip's scrollbar is hidden. Each shows only while tabs are hidden
   on its side, over a fade. The start side is the right (RTL). */
.hec-cp .hec-cp__arrow {
	display: none;
	position: absolute;
	inset-block: 0;
	z-index: 1;
	align-items: center;
	width: 72px;
	margin: 0;
	padding: 0 6px;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.hec-cp .hec-cp__arrow--start {
	inset-inline-start: 0;
	justify-content: flex-start;
}

.hec-cp .hec-cp__arrow--end {
	inset-inline-end: 0;
	justify-content: flex-end;
}

/* The theme reset paints every button:hover and :focus #c36; the states are
   listed so the fade holds. */
.hec-cp .hec-cp__arrow--start,
.hec-cp .hec-cp__arrow--start:hover,
.hec-cp .hec-cp__arrow--start:focus {
	background: linear-gradient(to left, #FFFFFF 45%, rgba(255, 255, 255, 0));
	color: var(--hec-cp-ink);
	outline: none;
}

.hec-cp .hec-cp__arrow--end,
.hec-cp .hec-cp__arrow--end:hover,
.hec-cp .hec-cp__arrow--end:focus {
	background: linear-gradient(to right, #FFFFFF 45%, rgba(255, 255, 255, 0));
	color: var(--hec-cp-ink);
	outline: none;
}

.hec-cp .hec-cp__arrow span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--hec-cp-line);
	border-radius: 50%;
	background: var(--hec-cp-surface);
	box-shadow: var(--hec-cp-shadow);
	color: var(--hec-cp-ink);
	transition: border-color 0.15s ease;
}

.hec-cp .hec-cp__arrow:hover span {
	border-color: var(--hec-cp-ink);
}

.hec-cp .hec-cp__arrow svg {
	width: 18px;
	height: 18px;
}

@media (hover: hover) and (pointer: fine) {
	/* Snapping would pull a tab the script reveals back under an arrow. */
	.hec-cp .hec-cp__track {
		scroll-snap-type: none;
	}

	.hec-cp .hec-cp__tabs[data-more-start] .hec-cp__arrow--start,
	.hec-cp .hec-cp__tabs[data-more-end] .hec-cp__arrow--end {
		display: flex;
	}
}

/* ---------- Sections and grid ---------- */

.hec-cp .hec-cp__panels {
	container-type: inline-size;
	container-name: hec-cp;
}

.hec-cp .hec-cp__section {
	margin-block-end: 56px;
}

.hec-cp .hec-cp__section[hidden] {
	display: none;
}

.hec-cp .hec-cp__heading {
	margin: 0 0 26px;
	color: var(--hec-cp-heading);
	font-family: "Amatic SC", cursive;
	font-size: clamp(38px, 6vw, 54px);
	font-weight: 700;
	line-height: 1.05;
	text-align: center;
}

.hec-cp .hec-cp__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--hec-cp-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hec-cp .hec-cp__item {
	display: flex;
	margin: 0;
	padding: 0;
}

@container hec-cp (min-width: 520px) {
	.hec-cp .hec-cp__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container hec-cp (min-width: 800px) {
	.hec-cp .hec-cp__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@container hec-cp (min-width: 1100px) {
	.hec-cp .hec-cp__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@container hec-cp (min-width: 1400px) {
	.hec-cp .hec-cp__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

/* Browsers without container queries size by the viewport instead. */
@supports not (container-type: inline-size) {
	@media (min-width: 520px) {
		.hec-cp .hec-cp__grid {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
	}

	@media (min-width: 800px) {
		.hec-cp .hec-cp__grid {
			grid-template-columns: repeat(3, minmax(0, 1fr));
		}
	}

	@media (min-width: 1100px) {
		.hec-cp .hec-cp__grid {
			grid-template-columns: repeat(4, minmax(0, 1fr));
		}
	}
}

/* ---------- Cards ---------- */

.hec-cp .hec-cp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	inline-size: 100%;
	border-radius: var(--hec-cp-radius);
	background: var(--hec-cp-surface);
	box-shadow: var(--hec-cp-shadow);
	color: inherit;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hec-cp a.hec-cp-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--hec-cp-shadow-lift);
	color: inherit;
}

.hec-cp a.hec-cp-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--hec-cp-shadow-lift);
	outline: 3px solid var(--hec-cp-accent);
	outline-offset: 3px;
}

.hec-cp .hec-cp-card--static {
	cursor: default;
}

.hec-cp .hec-cp-card__badge {
	position: absolute;
	top: -10px;
	inset-inline-end: -8px;
	z-index: 2;
	inline-size: 72px;
	block-size: auto;
	margin: 0;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
	pointer-events: none;
}

.hec-cp .hec-cp-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--hec-cp-radius) var(--hec-cp-radius) 0 0;
	background: var(--hec-cp-ground);
}

.hec-cp .hec-cp-card__media img {
	display: block;
	inline-size: 100%;
	max-inline-size: none;
	block-size: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

.hec-cp .hec-cp-card__placeholder {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	background: linear-gradient(135deg, var(--hec-cp-ground), #F4E7DE);
}

.hec-cp .hec-cp-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
}

.hec-cp .hec-cp-card__title {
	margin: 0;
	color: var(--hec-cp-ink);
	font-family: inherit;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}

.hec-cp .hec-cp-card__text {
	display: -webkit-box;
	overflow: hidden;
	color: var(--hec-cp-muted);
	font-size: 14px;
	line-height: 1.55;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hec-cp .hec-cp-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-block-start: auto;
	padding-block-start: 4px;
}

.hec-cp .hec-cp-card__go {
	margin-inline-start: auto;
	color: var(--hec-cp-accent);
	font-size: 13px;
	font-weight: 700;
}

/* ---------- Calendar viewer (added by club-page.js) ---------- */

/* Sized to the visible area, not 100vw, which counts a desktop scrollbar. */
.hec-cp .hec-cp__viewer {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 24px;
	border: 0;
	background: transparent;
}

.hec-cp .hec-cp__viewer[open] {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

.hec-cp .hec-cp__viewer::backdrop {
	background: rgba(31, 27, 45, 0.88);
}

.hec-cp .hec-cp__viewer-image {
	/* Room for an arrow on each side: 48px each, 16px from the edge, a gap. */
	max-width: min(1400px, calc(100% - 136px));
	max-height: calc(100% - 48px);
	border-radius: 4px;
	object-fit: contain;
}

.hec-cp .hec-cp__viewer-caption {
	margin: 0;
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 600;
}

/* Element in the selector and the states listed: the theme reset and the
   kit both restyle button:hover and button:focus. */
.hec-cp button.hec-cp__viewer-close,
.hec-cp button.hec-cp__viewer-close:hover,
.hec-cp button.hec-cp__viewer-close:focus,
.hec-cp button.hec-cp__viewer-prev,
.hec-cp button.hec-cp__viewer-prev:hover,
.hec-cp button.hec-cp__viewer-prev:focus,
.hec-cp button.hec-cp__viewer-next,
.hec-cp button.hec-cp__viewer-next:hover,
.hec-cp button.hec-cp__viewer-next:focus {
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0 0 3px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	color: var(--hec-cp-ink);
	font: 700 28px/1 sans-serif;
	cursor: pointer;
}

.hec-cp button.hec-cp__viewer-close:focus-visible,
.hec-cp button.hec-cp__viewer-prev:focus-visible,
.hec-cp button.hec-cp__viewer-next:focus-visible {
	outline: 3px solid #FFFFFF;
	outline-offset: 3px;
}

.hec-cp .hec-cp__viewer-close {
	inset-block-start: 16px;
	inset-inline-end: 16px;
}

.hec-cp .hec-cp__viewer-prev,
.hec-cp .hec-cp__viewer-next {
	inset-block-start: calc(50% - 24px);
}

.hec-cp .hec-cp__viewer-prev {
	inset-inline-start: 16px;
}

.hec-cp .hec-cp__viewer-next {
	inset-inline-end: 16px;
}

/* Phones: the image takes the full width, and the arrows sit under it in a
   bar with the month's name between them, so nothing covers the calendar. */
@media (max-width: 767px) {
	.hec-cp .hec-cp__viewer {
		padding: 64px 12px 104px;
	}

	.hec-cp .hec-cp__viewer-image {
		max-width: 100%;
		max-height: 100%;
	}

	.hec-cp .hec-cp__viewer-caption {
		position: fixed;
		inset-block-end: 40px;
		inset-inline: 80px;
		text-align: center;
	}

	.hec-cp .hec-cp__viewer-prev,
	.hec-cp .hec-cp__viewer-next {
		inset-block-start: auto;
		inset-block-end: 28px;
	}

	.hec-cp .hec-cp__viewer-prev {
		inset-inline-start: 20px;
	}

	.hec-cp .hec-cp__viewer-next {
		inset-inline-end: 20px;
	}
}

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
	.hec-cp .hec-cp-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
		padding-block: 36px 52px;
		text-align: center;
	}

	.hec-cp .hec-cp-hero__p {
		margin-inline: auto;
	}

	/* The label sits above the heading. */
	.hec-cp .hec-cp-hero__media {
		order: -1;
		justify-self: center;
		padding: 14px 18px;
		transform: rotate(-2deg);
	}

	.hec-cp .hec-cp-hero__media img {
		inline-size: 150px;
	}

	.hec-cp .hec-cp-gift {
		padding: 26px 24px 24px;
	}

	/* A long label wraps; across the card it wraps evenly, centred. */
	.hec-cp .hec-cp-gift__link {
		align-self: stretch;
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 519px) {
	.hec-cp .hec-cp__tab {
		padding: 8px 14px;
		font-size: 14px;
	}

	.hec-cp .hec-cp__section {
		margin-block-end: 40px;
	}

	.hec-cp .hec-cp-hero__p {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hec-cp .hec-cp-card,
	.hec-cp .hec-cp-cal__link,
	.hec-cp .hec-cp-cal__link::after,
	.hec-cp .hec-cp-gift__link,
	.hec-cp .hec-cp__tab,
	.hec-cp .hec-cp__arrow span {
		transition: none;
	}

	.hec-cp a.hec-cp-card:hover,
	.hec-cp a.hec-cp-card:focus-visible,
	.hec-cp .hec-cp-cal__link:hover,
	.hec-cp .hec-cp-cal__link:focus-visible {
		transform: none;
	}
}
