/**
 * Course page (a post whose "עמוד קורס" box is on): the title area, the
 * section menu, the sections, and the price bar on phones.
 *
 * Built from the course page design. Every rule is scoped under .hec-co so it
 * outranks the Elementor kit's (0,1,1) element rules. Type is the site's
 * Noto Sans Hebrew (the design's Heebo stand-in) and Amatic SC for headings.
 * The design's WhatsApp green (#25D366) carries white text at 2:1, so the
 * buttons use the owner's sage green #556C60 (5.7:1, WCAG AA). Logical properties
 * throughout: the page is RTL. Phones and tablets are below 1000px, as in the
 * design: the menu shows above it, the price bar below it.
 */

.hec-co {
	--co-ink: #1F1B2D;
	--co-body: #34304A;
	--co-soft: #4A4761;
	--co-muted: #6E6B85;
	--co-line: #E3E1EA;
	--co-soft-line: #ECEAF1;
	--co-ground: #F6F5F8;
	--co-surface: #FFFFFF;
	--co-dark: #2A2337;
	--co-accent: #A676A5;
	--co-accent-dark: #7A4A79;
	--co-plum-bg: #F2ECF2;
	--co-plum-fg: #5E3A5D;
	--co-plum-soft: #F7F2F7;
	--co-green: #4E9C89;
	--co-green-bg: #E3F1ED;
	--co-green-fg: #24564B;
	--co-green-soft: #EEF6F3;
	--co-green-ink: #2F6B5E;
	--co-mint: #9FD4C6;
	--co-wa: #556C60;
	--co-wa-hover: #44574D;
	--co-on-dark: #E9E6F0;
	--co-on-dark-soft: #C9C5D6;
	--co-on-dark-muted: #B5B0C5;
	--co-display: "Amatic SC", cursive;
	--co-sticky-top: var(--hec-header-height, 0px);

	font-family: "Noto Sans Hebrew", sans-serif;
	color: var(--co-ink);
	background: var(--co-ground);
	line-height: 1.6;
}

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

.hec-co p,
.hec-co h1,
.hec-co h2,
.hec-co h3,
.hec-co ul,
.hec-co ol,
.hec-co dl,
.hec-co dd,
.hec-co figure,
.hec-co blockquote {
	margin: 0;
}

.hec-co ul,
.hec-co ol {
	padding: 0;
	list-style: none;
}

.hec-co img {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
}

.hec-co a {
	color: var(--co-accent-dark);
	text-decoration: none;
}

.hec-co a:hover {
	color: var(--co-dark);
}

.hec-co a:focus-visible,
.hec-co button:focus-visible {
	outline: 3px solid var(--co-accent);
	outline-offset: 2px;
}

.hec-co .hec-co__in {
	max-inline-size: 1240px;
	margin-inline: auto;
	padding-inline: 24px;
}

/* ---- Shared pieces ---- */

/* Section headings speak in the body face at full weight; Amatic SC is kept
   for three moments only: the hero's title, the dark box and registration. */
.hec-co .hec-co-h2 {
	font-family: inherit;
	font-weight: 800;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin-block-end: 28px;
	color: var(--co-ink);
	text-wrap: balance;
}

.hec-co .hec-co-brain__title,
.hec-co .hec-co-reg__title {
	font-family: var(--co-display);
	font-weight: 700;
	font-size: clamp(44px, 5.2vw, 60px);
	line-height: 1;
	letter-spacing: 0;
}

.hec-co ::selection {
	background: var(--co-plum-bg);
	color: var(--co-ink);
}

.hec-co {
	accent-color: var(--co-accent-dark);
	caret-color: var(--co-accent-dark);
}

.hec-co .hec-co-sec {
	padding-block-start: 72px;
	scroll-margin-block-start: calc(var(--co-sticky-top) + 64px);
}

.hec-co .hec-co-sec:last-child {
	padding-block-end: 80px;
}

.hec-co .hec-co-sub {
	max-inline-size: 760px;
	margin-block: -16px 24px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--co-soft);
	text-wrap: pretty;
}

.hec-co .hec-co-p {
	font-size: 16px;
	line-height: 1.75;
	color: var(--co-body);
	text-wrap: pretty;
}

.hec-co .hec-co-p + .hec-co-p {
	margin-block-start: 8px;
}

.hec-co .hec-co-lead {
	max-inline-size: 68ch;
	font-size: 17px;
	line-height: 1.8;
	color: var(--co-body);
	text-wrap: pretty;
}

.hec-co .hec-co-lead + .hec-co-lead {
	margin-block-start: 14px;
}

.hec-co .hec-co-lead--strong {
	font-weight: 700;
	color: var(--co-ink);
}

.hec-co strong {
	font-weight: 700;
	color: var(--co-ink);
}

.hec-co .hec-co-strong {
	margin-block-start: 16px;
	font-size: 16px;
	font-weight: 700;
	color: var(--co-ink);
}

.hec-co .hec-co-grid {
	display: grid;
	gap: 16px;
}

.hec-co .hec-co-grid--lect {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: 20px;
}


.hec-co .hec-co-grid--parts {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	margin-block-end: 16px;
}


.hec-co .hec-co-grid--cols {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.hec-co .hec-co-grid--reg {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	gap: 20px;
	align-items: start;
}

.hec-co .hec-co-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 46px;
	padding: 12px 22px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.hec-co .hec-co-btn--wa {
	background: var(--co-wa);
	color: var(--co-wa-ink, #FFFFFF);
}

.hec-co .hec-co-btn--wa:hover,
.hec-co .hec-co-btn--wa:focus {
	background: var(--co-wa-hover);
	color: var(--co-wa-ink, #FFFFFF);
}

.hec-co .hec-co-btn--block {
	display: flex;
	inline-size: 100%;
	font-size: 16px;
	padding-block: 15px;
}

.hec-co .hec-co-btn--line {
	background: var(--co-surface);
	border: 1px solid var(--co-dark);
	border-radius: 4px;
	color: var(--co-dark);
	padding: 10px 16px;
	min-block-size: 44px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.hec-co .hec-co-btn--line:hover,
.hec-co .hec-co-btn--line:focus,
.hec-co .hec-co-btn--line:active {
	background: var(--co-dark);
	border-color: var(--co-dark);
	color: #FFFFFF;
}

.hec-co .hec-co-btn--line:focus:not(:focus-visible) {
	background: var(--co-surface);
	color: var(--co-dark);
}

.hec-co .hec-co-btn[hidden] {
	display: none;
}

.hec-co .hec-co-pill {
	display: inline-block;
	border-radius: 3px;
	padding: 4px 10px;
	margin-block-end: 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

.hec-co .hec-co-tone--ex .hec-co-pill {
	background: var(--co-plum-bg);
	color: var(--co-plum-fg);
}

.hec-co .hec-co-tone--ai .hec-co-pill {
	background: var(--co-green-bg);
	color: var(--co-green-fg);
}


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

.hec-co .hec-co-hero {
	background: var(--co-surface);
	border-block-end: 1px solid var(--co-line);
}

.hec-co .hec-co-hero__in {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
	gap: 48px;
	align-items: start;
	padding-block: 48px 56px;
}

.hec-co .hec-co-hero__text,
.hec-co .hec-co-hero__side {
	min-inline-size: 0;
}

.hec-co .hec-co-hero__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hec-co .hec-co-hero__brand {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-block-end: 22px;
}

.hec-co .hec-co-hero__brand img {
	block-size: 56px;
	inline-size: auto;
}

.hec-co .hec-co-hero__badge {
	background: var(--co-green-bg);
	color: var(--co-green-ink);
	border-radius: 3px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 700;
}

.hec-co .hec-co-hero__title {
	font-family: var(--co-display);
	font-weight: 700;
	font-size: clamp(54px, 7.4vw, 88px);
	line-height: 0.95;
	margin-block-end: 12px;
	color: var(--co-ink);
	text-wrap: pretty;
}

.hec-co .hec-co-hero__sub {
	margin-block-end: 24px;
	font-size: clamp(19px, 2.2vw, 23px);
	font-weight: 600;
	line-height: 1.4;
	color: var(--co-accent-dark);
}

.hec-co .hec-co-hero__intro {
	max-inline-size: 36em;
	margin-block-end: 32px;
	font-size: 18px;
	line-height: 1.75;
	color: var(--co-body);
	text-wrap: pretty;
}

.hec-co .hec-co-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	background: var(--co-line);
	border: 1px solid var(--co-line);
	border-radius: 8px;
	overflow: hidden;
}

.hec-co .hec-co-fact {
	background: var(--co-ground);
	padding: 16px 18px;
}

.hec-co .hec-co-fact__label {
	margin-block-end: 4px;
	font-size: 12px;
	font-weight: 700;
	color: var(--co-muted);
}

.hec-co .hec-co-fact__value {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.hec-co .hec-co-fact--long .hec-co-fact__value {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.hec-co .hec-co-hero__note {
	margin-block-start: 10px;
	font-size: 14px;
	color: var(--co-muted);
}

.hec-co .hec-co-hero__media {
	aspect-ratio: 1024 / 675;
	border-radius: 10px;
	overflow: hidden;
	background: var(--co-plum-bg);
}

.hec-co .hec-co-hero__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

/* The two lecturers side by side; their shared backdrop reads as one scene. */
.hec-co .hec-co-photos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.hec-co .hec-co-photos:has(> :only-child) {
	grid-template-columns: minmax(0, 1fr);
}

.hec-co .hec-co-photo {
	display: grid;
	gap: 8px;
	min-inline-size: 0;
}

.hec-co .hec-co-photo__frame {
	display: block;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--co-plum-bg);
}

.hec-co .hec-co-photo__frame img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.hec-co .hec-co-photo .hec-co-track {
	font-size: 13px;
}

.hec-co .hec-co-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 18px;
	background: var(--co-dark);
	color: #FFFFFF;
	border-radius: 10px;
	padding: 22px 24px;
}

.hec-co .hec-co-price__label {
	margin-block-end: 2px;
	font-size: 13px;
	font-weight: 600;
	color: #D7B8D6;
}

.hec-co .hec-co-price__row {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
}

.hec-co .hec-co-price__amount {
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	color: #FFFFFF;
}

.hec-co .hec-co-price__vat {
	font-size: 14px;
	color: var(--co-on-dark-soft);
}

.hec-co .hec-co-price__was {
	font-size: 15px;
	color: #9C97AF;
}

/* ---- Section menu (wide screens) ---- */

.hec-co .hec-co-toc {
	position: sticky;
	inset-block-start: var(--co-sticky-top);
	z-index: 30;
	background: rgba(246, 245, 248, 0.94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-block-end: 1px solid var(--co-line);
}

body.admin-bar .hec-co .hec-co-toc {
	inset-block-start: calc(var(--co-sticky-top) + 32px);
}

.hec-co .hec-co-toc__in {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
}

.hec-co .hec-co-toc__in::-webkit-scrollbar {
	display: none;
}

.hec-co .hec-co-toc__a {
	padding: 13px 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--co-soft);
	box-shadow: inset 0 -3px 0 transparent;
}

.hec-co .hec-co-toc__a:hover {
	color: var(--co-accent-dark);
}

.hec-co .hec-co-toc__a[aria-current] {
	color: var(--co-ink);
	box-shadow: inset 0 -3px 0 var(--co-accent);
}

/* ---- Lecturers ---- */

.hec-co .hec-co-lect {
	display: flex;
	flex-direction: column;
	gap: 16px;
	background: var(--co-surface);
	border: 1px solid var(--co-soft-line);
	border-radius: 10px;
	padding: 26px;
}

.hec-co .hec-co-lect__head {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hec-co .hec-co-lect__photo {
	flex: 0 0 auto;
	inline-size: 84px;
	block-size: 84px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--co-plum-bg);
}

.hec-co .hec-co-tone--ai .hec-co-lect__photo {
	background: var(--co-green-bg);
}

.hec-co .hec-co-lect__photo img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.hec-co .hec-co-lect__name {
	font-size: 21px;
	font-weight: 800;
	line-height: 1.3;
}

.hec-co .hec-co-lect__role {
	font-size: 14px;
	font-weight: 600;
	color: var(--co-accent-dark);
}

.hec-co .hec-co-tone--ai .hec-co-lect__role {
	color: var(--co-green-ink);
}

.hec-co .hec-co-lect__gift {
	margin-block-start: auto;
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 700;
	background: var(--co-plum-bg);
	color: var(--co-plum-fg);
}

.hec-co .hec-co-tone--ai .hec-co-lect__gift {
	background: var(--co-green-bg);
	color: var(--co-green-fg);
}

.hec-co .hec-co-lect__more[hidden] {
	display: none;
}

.hec-co .hec-co-lect__more .hec-co-p:first-child {
	margin-block-start: 8px;
}

.hec-co .hec-co-lect__toggle {
	min-block-size: 44px;
	margin-block-start: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--co-accent-dark);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
}

.hec-co .hec-co-lect__toggle:hover,
.hec-co .hec-co-lect__toggle:focus {
	background: none;
	color: var(--co-dark);
}

.hec-co .hec-co-lect__toggle[hidden] {
	display: none;
}

.hec-co .hec-co-tone--ai .hec-co-lect__toggle {
	color: var(--co-green-ink);
}

/* ---- Boxes (create) ---- */

.hec-co .hec-co-box {
	background: var(--co-surface);
	border-radius: 10px;
	padding: 22px;
}

.hec-co .hec-co-box .hec-co-p {
	font-size: 15px;
	line-height: 1.7;
}

.hec-co .hec-co-box__title {
	margin-block-end: 10px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
}

.hec-co .hec-co-box__title--big {
	margin-block-end: 12px;
	font-size: 20px;
}

.hec-co .hec-co-list {
	padding-inline-start: 18px;
	list-style: disc;
	font-size: 15px;
	line-height: 1.9;
	color: var(--co-body);
}

/* ---- What is included: a list read down the page ---- */

.hec-co .hec-co-defs {
	background: var(--co-surface);
	border-radius: 14px;
	padding-inline: clamp(20px, 3vw, 36px);
}

.hec-co .hec-co-def {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	gap: 8px 40px;
	padding-block: 22px;
	border-block-end: 1px solid var(--co-soft-line);
}

.hec-co .hec-co-def:last-child {
	border-block-end: 0;
}

.hec-co .hec-co-def__title {
	font-size: 19px;
	font-weight: 800;
	line-height: 1.35;
	color: var(--co-ink);
}

.hec-co .hec-co-def__text {
	max-inline-size: 62ch;
}

/* ---- Structure: the two tracks as two tinted panels ---- */

.hec-co .hec-co-part {
	border-radius: 14px;
	padding: clamp(22px, 3vw, 32px);
	background: var(--co-plum-soft);
}

.hec-co .hec-co-part.hec-co-tone--ai {
	background: var(--co-green-soft);
}

.hec-co .hec-co-part .hec-co-pill {
	padding: 0;
	margin-block-end: 10px;
	background: none;
	font-size: 15px;
	font-weight: 800;
	color: var(--co-accent-dark);
}

.hec-co .hec-co-part.hec-co-tone--ai .hec-co-pill {
	background: none;
	color: var(--co-green-ink);
}

/* ---- Sessions ---- */

.hec-co .hec-co-sec__bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-block: -16px 24px;
}

.hec-co .hec-co-sec__bar .hec-co-sub {
	margin: 0;
	max-inline-size: 720px;
}

.hec-co .hec-co-sec--gallery .hec-co-h2 {
	margin-block-end: 8px;
}

.hec-co .hec-co-sec__bar--link {
	margin-block: 0 24px;
}

.hec-co .hec-co-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-block-size: 44px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.hec-co .hec-co-sessions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hec-co .hec-co-ses {
	background: var(--co-surface);
	border: 1px solid var(--co-soft-line);
	border-radius: 10px;
	overflow: hidden;
}

.hec-co .hec-co-ses__h {
	font: inherit;
}

.hec-co .hec-co-ses__btn {
	display: flex;
	align-items: center;
	gap: 18px;
	inline-size: 100%;
	padding: 18px 22px;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--co-ink);
	font: inherit;
	text-align: start;
	cursor: pointer;
}

.hec-co .hec-co-ses__btn:hover,
.hec-co .hec-co-ses__btn:focus,
.hec-co .hec-co-ses__btn:active {
	background: #FAF9FB;
	color: var(--co-ink);
}

/* The card clips anything outside it, so the ring is drawn inside. */
.hec-co .hec-co-ses__btn:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 3px var(--co-accent);
}

.hec-co .hec-co-ses__meta-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
}

.hec-co .hec-co-track {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--co-accent-dark);
}

.hec-co .hec-co-track::before {
	content: "";
	inline-size: 8px;
	block-size: 8px;
	border-radius: 50%;
	background: var(--co-accent);
}

.hec-co .hec-co-track--ai {
	color: var(--co-green-ink);
}

.hec-co .hec-co-track--ai::before {
	background: var(--co-green);
}

.hec-co .hec-co-ses__num {
	display: flex;
	flex: 0 0 58px;
	flex-direction: column;
	align-items: center;
	line-height: 1.1;
}

.hec-co .hec-co-ses__word {
	font-size: 11px;
	font-weight: 700;
	color: var(--co-muted);
}

.hec-co .hec-co-ses__n {
	font-size: 28px;
	font-weight: 800;
}

.hec-co .hec-co-ses__head {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 4px;
	min-inline-size: 0;
}

.hec-co .hec-co-ses__date {
	font-size: 14px;
	font-weight: 700;
	color: var(--co-accent-dark);
}

.hec-co .hec-co-ses__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	text-wrap: pretty;
}

.hec-co .hec-co-ses__icon {
	position: relative;
	flex: 0 0 auto;
	inline-size: 32px;
	block-size: 32px;
	border-radius: 50%;
	background: var(--co-plum-bg);
}

/* A plus drawn in two bars; the upright one folds away when open. */
.hec-co .hec-co-ses__icon::before,
.hec-co .hec-co-ses__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	inline-size: 12px;
	block-size: 2px;
	background: var(--co-accent-dark);
	border-radius: 1px;
	transform: translate(-50%, -50%);
	transition: transform 0.2s ease;
}

.hec-co .hec-co-ses__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.hec-co .hec-co-ses__btn[aria-expanded="true"] .hec-co-ses__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.hec-co .hec-co-ses__panel {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 22px 22px 24px;
	border-block-start: 1px solid var(--co-soft-line);
	font-size: 16px;
	line-height: 1.75;
	color: var(--co-body);
}

.hec-co .hec-co-ses__panel[hidden] {
	display: none;
}

.hec-co .hec-co-ses__intro {
	text-wrap: pretty;
}

.hec-co .hec-co-ses__parts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 14px;
}

.hec-co .hec-co-ses__part {
	border-radius: 8px;
	padding: 18px 20px;
	background: var(--co-plum-soft);
}

.hec-co .hec-co-ses__part.hec-co-tone--ai {
	background: var(--co-green-soft);
}

.hec-co .hec-co-ses__label {
	margin-block-end: 8px;
	font-size: 13px;
	font-weight: 800;
	color: var(--co-accent-dark);
}

.hec-co .hec-co-tone--ai .hec-co-ses__label {
	color: var(--co-green-ink);
}

.hec-co .hec-co-ses__text {
	font-size: 15px;
	text-wrap: pretty;
}

.hec-co .hec-co-ses__text + .hec-co-ses__text {
	margin-block-start: 10px;
}

.hec-co .hec-co-ses__meta {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.hec-co .hec-co-ses__meta--out {
	border-block-start: 1px dashed var(--co-line);
	padding-block-start: 14px;
}

.hec-co .hec-co-ses__meta--out + .hec-co-ses__meta {
	margin-block-start: -8px;
}

.hec-co .hec-co-ses__key {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 800;
	color: var(--co-ink);
}

.hec-co .hec-co-ses__tools {
	color: var(--co-soft);
}

/* ---- Toolbox ---- */

/* One line says what it costs; the rows open under it. */
.hec-co .hec-co-tools {
	background: var(--co-surface);
	border-radius: 14px;
}

.hec-co .hec-co-tools__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 20px;
	min-block-size: 64px;
	padding: 16px clamp(20px, 3vw, 32px);
	border-radius: 14px;
	cursor: pointer;
	list-style: none;
}

.hec-co .hec-co-tools__summary::-webkit-details-marker {
	display: none;
}

.hec-co .hec-co-tools__summary:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 3px var(--co-accent);
}

.hec-co .hec-co-tools__counts {
	font-size: 18px;
	font-weight: 800;
}

.hec-co .hec-co-tools__open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--co-accent-dark);
}

.hec-co .hec-co-tools__open::after {
	content: "";
	inline-size: 8px;
	block-size: 8px;
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.2s ease;
}

.hec-co .hec-co-tools[open] .hec-co-tools__open::after {
	transform: translateY(2px) rotate(-135deg);
}

.hec-co .hec-co-tools__list {
	padding: 0 clamp(20px, 3vw, 32px) 8px;
	border-block-start: 1px solid var(--co-soft-line);
}

.hec-co .hec-co-tool {
	display: grid;
	grid-template-columns: minmax(0, 13rem) auto minmax(0, 1fr);
	align-items: baseline;
	gap: 6px 20px;
	padding-block: 16px;
	border-block-end: 1px solid var(--co-soft-line);
}

.hec-co .hec-co-tool:last-child {
	border-block-end: 0;
}

.hec-co .hec-co-tool__name {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.4;
}

.hec-co .hec-co-tool__text .hec-co-p {
	font-size: 15px;
	line-height: 1.65;
	color: var(--co-soft);
}

.hec-co .hec-co-tag {
	flex: 0 0 auto;
	border-radius: 3px;
	padding: 3px 9px;
	font-size: 12px;
	font-weight: 700;
	background: var(--co-green-soft);
	color: var(--co-green-ink);
}

.hec-co .hec-co-tag--paid {
	background: var(--co-plum-bg);
	color: var(--co-plum-fg);
}

.hec-co .hec-co-tag--org {
	background: #F0EEF4;
	color: var(--co-soft);
}

/* ---- The dark box ---- */

.hec-co .hec-co-brain {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 40px;
	background: var(--co-dark);
	color: var(--co-on-dark);
	border-radius: 14px;
	padding: clamp(24px, 4vw, 48px);
}

.hec-co .hec-co-brain__main,
.hec-co .hec-co-brain__side {
	min-inline-size: 0;
}

.hec-co .hec-co-brain__side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hec-co .hec-co-brain__title {
	font-size: clamp(40px, 4.8vw, 52px);
	color: #FFFFFF;
}

.hec-co .hec-co-brain__item {
	display: flex;
	gap: 16px;
	padding-block: 16px;
	border-block-start: 1px solid rgba(233, 230, 240, 0.14);
}

.hec-co .hec-co-brain__mark {
	flex: 0 0 10px;
	block-size: 10px;
	margin-block-start: 8px;
	border-radius: 2px;
	background: var(--co-mint);
}

.hec-co .hec-co-brain__h {
	margin-block-end: 4px;
	font-size: 17px;
	font-weight: 700;
	color: #FFFFFF;
}

.hec-co .hec-co-brain__t {
	font-size: 15px;
	line-height: 1.7;
	color: var(--co-on-dark-soft);
	text-wrap: pretty;
}

.hec-co .hec-co-tip {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(233, 230, 240, 0.14);
	border-radius: 10px;
	padding: 24px;
}

.hec-co .hec-co-tip--sticker {
	position: relative;
	padding-block-start: 32px;
}

/* A label stuck on the card's corner, tilted like the club page's logo label. */
.hec-co .hec-co-sticker {
	position: absolute;
	inset-block-start: -14px;
	inset-inline-start: 20px;
	padding: 5px 14px;
	border-radius: 4px;
	background: var(--co-mint);
	color: #1F2E2A;
	font-size: 14px;
	font-weight: 800;
	transform: rotate(-3deg);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hec-co .hec-co-tip__title {
	margin-block-end: 6px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.45;
	color: #FFFFFF;
}

.hec-co .hec-co-tip__note {
	margin-block-end: 18px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--co-on-dark-muted);
}

.hec-co .hec-co-phrases {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--co-on-dark-soft);
}

.hec-co .hec-co-phrase__say {
	display: inline-block;
	margin-inline-end: 8px;
	border-radius: 3px;
	padding: 2px 10px;
	background: var(--co-mint);
	color: #1F2E2A;
	font-weight: 800;
}

.hec-co .hec-co-brain__media {
	flex: 1;
	min-block-size: 260px;
	border-radius: 10px;
	overflow: hidden;
	background: #3A3249;
}

.hec-co .hec-co-brain__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: top;
}

/* ---- Requirements ---- */

.hec-co .hec-co-measure {
	max-inline-size: 860px;
}

.hec-co .hec-co-measure .hec-co-lead:last-of-type {
	margin-block-end: 20px;
}

.hec-co .hec-co-bring {
	margin-block-end: 12px;
	background: var(--co-surface);
	border-radius: 10px;
	padding: 20px 22px;
	font-size: 17px;
	line-height: 1.8;
	color: var(--co-body);
}

.hec-co .hec-co-bring strong {
	font-weight: 800;
}

.hec-co .hec-co-note {
	font-size: 15px;
	color: var(--co-muted);
}

/* ---- Registration ---- */

.hec-co .hec-co-reg {
	background: var(--co-dark);
	color: #FFFFFF;
	border-radius: 14px;
	padding: clamp(24px, 3.5vw, 40px);
}

.hec-co .hec-co-reg__title {
	margin-block-end: 20px;
	color: #FFFFFF;
}

.hec-co .hec-co-reg__discount {
	margin-block-end: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #D7B8D6;
}

.hec-co .hec-co-reg__row {
	margin-block-end: 6px;
}

.hec-co .hec-co-reg__row .hec-co-price__amount {
	font-size: 44px;
}

.hec-co .hec-co-reg__row .hec-co-price__vat {
	font-size: 16px;
}

.hec-co .hec-co-reg__after {
	margin-block-end: 20px;
	font-size: 15px;
	color: var(--co-on-dark-muted);
}

.hec-co .hec-co-reg__hours {
	margin-block-end: 26px;
	padding-block-start: 18px;
	border-block-start: 1px solid rgba(233, 230, 240, 0.16);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
}

.hec-co .hec-co-reg__next {
	margin-block-start: 12px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--co-on-dark-muted);
}

.hec-co .hec-co-reg__other {
	margin-block-start: 14px;
	padding-block-start: 14px;
	border-block-start: 1px solid rgba(233, 230, 240, 0.16);
	font-size: 15px;
	color: var(--co-on-dark-soft);
}

.hec-co .hec-co-reg__other a {
	display: inline-block;
	padding-block: 10px;
	color: #FFFFFF;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.hec-co .hec-co-reg__other a:hover {
	color: #D7B8D6;
}

.hec-co .hec-co-terms {
	background: var(--co-surface);
	border-radius: 14px;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.65;
	color: var(--co-body);
}

.hec-co .hec-co-terms li {
	padding: 16px 22px;
	border-block-end: 1px solid #F0EEF4;
}

.hec-co .hec-co-terms li:last-child {
	border-block-end: 0;
}

.hec-co .hec-co-terms .hec-co-terms__foot {
	color: var(--co-muted);
}

/* ---- Gallery ---- */

.hec-co .hec-co-shots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 12px;
}

.hec-co .hec-co-shot {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	background: var(--co-plum-bg);
}

.hec-co .hec-co-shot img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.hec-co .hec-co-shot:hover img {
	transform: scale(1.03);
}

/* ---- Reviews ---- */

.hec-co .hec-co-quotes {
	columns: 300px 3;
	column-gap: 16px;
}

.hec-co .hec-co-quote {
	break-inside: avoid;
	margin-block-end: 16px;
	background: var(--co-surface);
	border-radius: 10px;
	padding: 24px;
}

.hec-co .hec-co-quote blockquote {
	padding: 0;
	border: 0;
	font-style: normal;
}

.hec-co .hec-co-quote__p {
	font-size: 16px;
	line-height: 1.75;
	color: var(--co-body);
}

.hec-co .hec-co-quote__p + .hec-co-quote__p {
	margin-block-start: 8px;
}

.hec-co .hec-co-quote--big {
	background: var(--co-plum-bg);
}

.hec-co .hec-co-quote--big .hec-co-quote__p {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
	color: var(--co-ink);
}

.hec-co .hec-co-quote__name {
	margin-block-start: 12px;
	font-size: 14px;
	font-weight: 700;
	color: var(--co-muted);
}

/* ---- Price bar (phones and tablets) ---- */

.hec-co .hec-co-bar {
	display: none;
}

@media (max-width: 999px) {
	.hec-co .hec-co-toc__a {
		padding: 11px 10px;
		font-size: 14px;
	}

	.hec-co .hec-co-sec {
		padding-block-start: 56px;
		scroll-margin-block-start: calc(var(--co-sticky-top) + 56px);
	}

	.hec-co .hec-co-bar {
		position: fixed;
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 50;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: var(--co-surface);
		border-block-start: 1px solid var(--co-line);
		box-shadow: 0 -8px 24px rgba(42, 35, 55, 0.08);
		transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.hec-co .hec-co-bar.is-away {
		transform: translateY(110%);
	}

	.hec-co .hec-co-bar__price {
		display: flex;
		flex: 0 0 auto;
		flex-direction: column;
		line-height: 1.15;
	}

	.hec-co .hec-co-bar__amount {
		font-size: 18px;
		font-weight: 800;
	}

	.hec-co .hec-co-bar__note {
		font-size: 11px;
		color: var(--co-muted);
	}

	.hec-co .hec-co-bar__btn {
		flex: 1 1 auto;
		min-block-size: 48px;
		padding-block: 8px;
	}

	/* The bar must not cover the end of the footer. */
	body.hec-course {
		padding-block-end: 76px;
	}
}

@media (max-width: 600px) {
	.hec-co .hec-co__in {
		padding-inline: 16px;
	}

	.hec-co .hec-co-hero__in {
		gap: 32px;
		padding-block: 32px 40px;
	}

	.hec-co .hec-co-hero__intro {
		font-size: 17px;
	}

	/* Two boxes a row; an odd last one takes the whole row, so no empty cell shows. */
	.hec-co .hec-co-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hec-co .hec-co-fact:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.hec-co .hec-co-lect,
	.hec-co .hec-co-part {
		padding: 20px;
	}

	.hec-co .hec-co-ses__btn {
		gap: 12px;
		padding: 16px;
	}

	.hec-co .hec-co-ses__num {
		flex-basis: 44px;
	}

	.hec-co .hec-co-ses__n {
		font-size: 24px;
	}

	.hec-co .hec-co-ses__title {
		font-size: 16px;
	}

	.hec-co .hec-co-ses__panel {
		padding: 18px 16px 20px;
	}

	/* Stacked: each line spans the row, so it starts on the right. In a
	   column "baseline" has no direction and falls back to the left. */
	.hec-co .hec-co-ses__meta {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		text-align: start;
	}

	.hec-co .hec-co-price {
		padding: 20px;
	}

	.hec-co .hec-co-price .hec-co-btn {
		inline-size: 100%;
	}

	.hec-co .hec-co-def,
	.hec-co .hec-co-tool {
		grid-template-columns: minmax(0, 1fr);
	}

	.hec-co .hec-co-tool .hec-co-tag {
		justify-self: start;
	}

	.hec-co .hec-co-quotes {
		display: flex;
		gap: 12px;
		margin-inline: -16px;
		padding: 0 16px 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 16px;
		columns: auto;
		scrollbar-width: thin;
		scrollbar-color: var(--co-accent) transparent;
	}

	.hec-co .hec-co-quote {
		flex: 0 0 84%;
		margin: 0;
		scroll-snap-align: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hec-co *,
	.hec-co *::before,
	.hec-co *::after {
		transition: none !important;
	}
}
