/* ==========================================================================
   aestheticcourses.ie — AEC Directory 2.0
   Namespace: .aec / aec-
   Light greys + hot pink. No dark sections, no gradients.
   Typeface: Plus Jakarta Sans throughout.
   ========================================================================== */

.aec,
.aec-hero,
.aec-header,
.aec-footer {
	--aec-ink:      #23232B;
	--aec-body:     #4A4A57;
	--aec-muted:    #767684;

	--aec-pink:     #FF2E88;
	--aec-pink-d:   #D1005E;
	--aec-blush:    #FFF0F6;

	--aec-white:    #FFFFFF;
	--aec-grey:     #F4F4F7;
	--aec-grey-2:   #ECECF1;
	--aec-line:     #E3E3EA;

	--aec-ok:       #16A34A;
	--aec-warn:     #E0A106;

	--aec-r-lg:     22px;
	--aec-r:        16px;
	--aec-r-sm:     10px;

	--aec-font:     "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--aec-shadow:   0 2px 4px rgba(35, 35, 43, .04), 0 14px 34px -22px rgba(35, 35, 43, .3);
	--aec-max:      1280px;

	font-family: var(--aec-font);
	color: var(--aec-ink);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

.aec *, .aec *::before, .aec *::after,
.aec-hero *, .aec-hero *::before, .aec-hero *::after,
.aec-header *, .aec-header *::before, .aec-header *::after,
.aec-footer *, .aec-footer *::before, .aec-footer *::after { box-sizing: border-box; }

.aec img, .aec-hero img, .aec-header img, .aec-footer img { max-width: 100%; height: auto; display: block; }

/* Nothing in the directory may push the page sideways. */
.aec, .aec-hero, .aec-header, .aec-footer { max-width: 100%; overflow-wrap: break-word; }

.aec-sr {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.aec :focus-visible,
.aec-hero :focus-visible,
.aec-header :focus-visible,
.aec-footer :focus-visible {
	outline: 3px solid var(--aec-pink);
	outline-offset: 2px;
	border-radius: 6px;
}

/* --------------------------------------------------------------------------
   1. BUTTONS + PILLS
   -------------------------------------------------------------------------- */

.aec-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font: 700 15px/1 var(--aec-font);
	letter-spacing: -.005em;
	padding: 15px 26px;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.aec-btn--solid { background: var(--aec-pink); color: #fff; }
.aec-btn--solid:hover { background: var(--aec-pink-d); color: #fff; }

.aec-btn--outline { background: #fff; color: var(--aec-ink); border-color: var(--aec-line); }
.aec-btn--outline:hover { border-color: var(--aec-ink); }

.aec-btn--ghost { background: transparent; color: var(--aec-muted); padding: 15px 10px; }
.aec-btn--ghost:hover { color: var(--aec-pink-d); }

.aec-btn--block { width: 100%; }
.aec-btn--sm { padding: 11px 20px; font-size: 14px; }
.aec-btn[disabled], .aec-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.aec-btn__arrow {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.aec-btn__arrow svg { width: 11px; height: 11px; stroke: currentColor; }
.aec-btn--outline .aec-btn__arrow { background: var(--aec-grey); }

/* Status pill */
.aec-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #fff;
	color: var(--aec-ink);
	border-radius: 999px;
	padding: 7px 13px 7px 11px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: -.005em;
	box-shadow: 0 1px 3px rgba(35, 35, 43, .12);
	white-space: nowrap;
}

.aec-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aec-pink); flex: 0 0 auto; }
.aec-pill--open .aec-pill__dot     { background: var(--aec-ok); }
.aec-pill--waitlist .aec-pill__dot { background: var(--aec-warn); }
.aec-pill--closed                  { color: var(--aec-muted); }
.aec-pill--closed .aec-pill__dot   { background: #9A9AA6; }

.aec-elig {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--aec-grey);
	color: var(--aec-body);
}
.aec-elig--hcp { background: var(--aec-blush); color: var(--aec-pink-d); }

.aec-verified {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(22, 163, 74, .1);
	color: #10803B;
}

/* --------------------------------------------------------------------------
   2. HEADER
   -------------------------------------------------------------------------- */

.aec-header { background: #fff; border-bottom: 1px solid var(--aec-line); }

.aec-header__note {
	background: var(--aec-blush);
	color: var(--aec-ink);
	font-size: 13.5px;
	font-weight: 500;
	text-align: center;
	padding: 10px 20px;
}
.aec-header__note a { color: var(--aec-pink-d); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.aec-header__bar {
	max-width: var(--aec-max);
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.aec-logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -.03em;
	color: var(--aec-ink);
	text-decoration: none;
	flex: 0 0 auto;
	white-space: nowrap;
}
.aec-logo span { color: var(--aec-pink); white-space: nowrap; }
.aec-logo__mark { width: auto; flex: 0 0 auto; max-height: 280px; }

.aec-nav { display: none; gap: 24px; margin-left: 36px; flex: 1 1 auto; }
.aec-nav a { font-size: 14.5px; font-weight: 600; color: var(--aec-body); text-decoration: none; }
.aec-nav a:hover { color: var(--aec-pink-d); }
.aec-nav a[aria-current] { color: var(--aec-pink-d); }

.aec-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.aec-header__login { display: none; font-size: 14.5px; font-weight: 600; color: var(--aec-body); text-decoration: none; }
.aec-header__login:hover { color: var(--aec-pink-d); }

@media (max-width: 519px) {
	.aec-header__bar { gap: 10px; padding: 12px 16px; }
	.aec-logo { font-size: 16px; }
	.aec-logo__mark { max-height: 280px; }
	.aec-header__actions .aec-btn { padding: 11px 16px; font-size: 13.5px; }
	.aec-header__actions .aec-btn__arrow { display: none; }
}

@media (min-width: 900px) {
	.aec-header__bar { padding: 16px 32px; }
	.aec-nav { display: flex; }
	.aec-header__login { display: inline; }
}

/* --------------------------------------------------------------------------
   3. HERO
   -------------------------------------------------------------------------- */

.aec-hero { background: var(--aec-grey); }

.aec-hero__inner {
	max-width: var(--aec-max);
	margin: 0 auto;
	padding: 34px 20px 30px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
	align-items: stretch;
}

.aec-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--aec-blush);
	color: var(--aec-pink-d);
	font-size: 12.5px;
	font-weight: 700;
	padding: 7px 14px;
	border-radius: 999px;
	margin: 0 0 16px;
}

.aec-hero__title {
	font-size: clamp(32px, 7.4vw, 50px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -.035em;
	margin: 0 0 14px;
	max-width: 17ch;
	color: var(--aec-ink);
}
.aec-hero__title em { font-style: normal; color: var(--aec-pink); }

.aec-hero__sub { font-size: 16.5px; line-height: 1.55; color: var(--aec-body); margin: 0 0 22px; max-width: 44ch; }

.aec-hero__search {
	display: flex;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--aec-line);
	border-radius: 999px;
	padding: 7px 7px 7px 10px;
	max-width: 560px;
}

.aec-hero__search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	font: 500 16px/1.2 var(--aec-font);
	color: var(--aec-ink);
	padding: 12px 10px;
	-webkit-appearance: none;
	appearance: none;
}
.aec-hero__search input::placeholder { color: #8E8E9C; font-weight: 400; }
.aec-hero__search input:focus { outline: none; }

.aec-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	color: var(--aec-muted);
}
.aec-hero__stats b { color: var(--aec-ink); font-weight: 800; }

.aec-hero__media {
	border-radius: var(--aec-r-lg);
	overflow: hidden;
	background: transparent;
	aspect-ratio: 4 / 3;
}
.aec-hero__media img { width: 100%; height: 100%; }

@media (min-width: 900px) {
	.aec-hero__inner { grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 56px 32px; }
	.aec-hero__sub { font-size: 17.5px; }
	.aec-hero__media { aspect-ratio: auto; min-height: 100%; }
}

@media (max-width: 519px) {
	.aec-hero__search { flex-wrap: wrap; border-radius: var(--aec-r); }
	.aec-hero__search input[type="search"] { flex: 1 0 100%; }
	.aec-hero__search .aec-btn { flex: 1 0 100%; }
}

/* --------------------------------------------------------------------------
   4. SECTIONS + PAGE HEADS
   -------------------------------------------------------------------------- */

.aec-section { padding: 44px 0 8px; }
.aec-section--tint { background: var(--aec-grey); padding: 48px 0 52px; margin-top: 40px; }
.aec-section--flush { padding-top: 8px; }

.aec-section__inner { max-width: var(--aec-max); margin: 0 auto; padding: 0 20px; }
.aec-section__inner--narrow { max-width: 780px; }

@media (min-width: 900px) {
	.aec-section { padding: 60px 0 8px; }
	.aec-section__inner { padding: 0 32px; }
}

.aec-shead { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.aec-shead h2 {
	font-size: clamp(24px, 4.6vw, 34px);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.12;
	margin: 0 0 8px;
	color: var(--aec-ink);
}
.aec-shead p { font-size: 16px; color: var(--aec-body); margin: 0; line-height: 1.55; }
.aec-shead--left { text-align: left; margin-left: 0; max-width: none; }

.aec-pagehead { background: var(--aec-grey); }
.aec-pagehead__inner {
	max-width: var(--aec-max);
	margin: 0 auto;
	padding: 26px 20px 32px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
	align-items: center;
}
.aec-pagehead__title {
	font-size: clamp(28px, 5.6vw, 44px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.034em;
	margin: 10px 0 12px;
	max-width: 20ch;
}
.aec-pagehead__intro { font-size: 16.5px; line-height: 1.6; color: var(--aec-body); margin: 0; max-width: 60ch; }
.aec-pagehead__intro p { margin: 0 0 12px; }
.aec-pagehead__intro p:last-child { margin-bottom: 0; }
.aec-pagehead__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.aec-pagehead__media { border-radius: var(--aec-r-lg); overflow: hidden; aspect-ratio: 5 / 4; background: var(--aec-grey-2); }
.aec-pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.aec-pagehead__logo { border-radius: 14px; background: #fff; padding: 8px; box-shadow: 0 1px 3px rgba(35, 35, 43, .12); }

@media (min-width: 900px) {
	.aec-pagehead__inner { padding: 34px 32px 44px; }
	.aec-pagehead--split .aec-pagehead__inner { grid-template-columns: 1.15fr .85fr; gap: 48px; }
}

/* --------------------------------------------------------------------------
   5. CATEGORY CHIP RAIL
   Contained scroll strip: it must never widen the page on mobile.
   -------------------------------------------------------------------------- */

.aec-rail-chips {
	max-width: var(--aec-max);
	margin: 0 auto;
	padding: 26px 20px 0;
	overflow: hidden;
}

.aec-rail-chips__label { font-size: 12.5px; font-weight: 700; color: var(--aec-muted); margin: 0 0 12px; }

.aec-chips {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0 0 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
}
.aec-chips::-webkit-scrollbar { display: none; }
.aec-chips > li { flex: 0 0 auto; min-width: 0; scroll-snap-align: start; }

.aec-chips--tight { flex-wrap: wrap; overflow: visible; }

.aec-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	background: #fff;
	color: var(--aec-ink);
	border: 1px solid var(--aec-line);
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.aec-chip:hover { border-color: var(--aec-pink); color: var(--aec-pink-d); }
.aec-chip__n { font-size: 12px; color: var(--aec-muted); font-weight: 600; }

@media (min-width: 900px) {
	.aec-rail-chips { padding: 34px 32px 0; }
	.aec-chips { flex-wrap: wrap; overflow: visible; }
}

/* --------------------------------------------------------------------------
   6. DIRECTORY LAYOUT
   -------------------------------------------------------------------------- */

.aec-directory { padding: 20px 0 72px; scroll-margin-top: 80px; }
.aec-directory__inner { max-width: var(--aec-max); margin: 0 auto; padding: 0 20px; display: block; }

@media (min-width: 1024px) {
	.aec-directory { padding-top: 30px; }
	.aec-directory__inner {
		padding: 0 32px;
		display: grid;
		grid-template-columns: 262px minmax(0, 1fr);
		gap: 38px;
		align-items: start;
	}
}

/* --------------------------------------------------------------------------
   7. FILTER RAIL
   -------------------------------------------------------------------------- */

.aec-rail__wrap { border: 1px solid var(--aec-line); border-radius: var(--aec-r); background: #fff; margin: 0 0 18px; }

.aec-rail__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	list-style: none;
}
.aec-rail__toggle::-webkit-details-marker { display: none; }

.aec-rail__chev {
	width: 9px; height: 9px;
	border-right: 2px solid var(--aec-ink);
	border-bottom: 2px solid var(--aec-ink);
	transform: rotate(45deg);
	transition: transform .18s ease;
	margin-bottom: 3px;
}
.aec-rail__wrap[open] .aec-rail__chev { transform: rotate(-135deg); margin-bottom: -3px; }

.aec-rail__inner { padding: 0 18px 18px; }

.aec-rail__actions {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-top: 16px;
	border-top: 1px solid var(--aec-line);
	margin-top: 6px;
}
.aec-rail__apply { flex: 1 1 auto; }

.aec-fgroup { border-top: 1px solid var(--aec-line); padding: 4px 0; }
.aec-fgroup:first-child { border-top: 0; }

.aec-fgroup__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 13px 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--aec-ink);
	cursor: pointer;
	list-style: none;
}
.aec-fgroup__head::-webkit-details-marker { display: none; }
.aec-fgroup__head--static { cursor: default; margin: 0; }

.aec-fgroup__head::after {
	content: "";
	width: 7px; height: 7px;
	border-right: 2px solid var(--aec-muted);
	border-bottom: 2px solid var(--aec-muted);
	transform: rotate(45deg);
	margin-bottom: 3px;
	flex: 0 0 auto;
}
.aec-fgroup__head--static::after { display: none; }
.aec-fgroup[open] > .aec-fgroup__head::after { transform: rotate(-135deg); margin-bottom: -2px; }

.aec-fgroup__count {
	background: var(--aec-pink);
	color: #fff;
	border-radius: 999px;
	min-width: 19px;
	height: 19px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11.5px;
	font-weight: 700;
	margin-left: auto;
	margin-right: 6px;
}

.aec-fgroup__body { padding: 0 0 12px; }

.aec-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
	color: var(--aec-body);
}
.aec-check:hover .aec-check__label { color: var(--aec-pink-d); }
.aec-check--sub { padding-left: 14px; }
.aec-check--extra { display: none; }
.aec-fgroup__body.is-open .aec-check--extra { display: flex; }

.aec-check input { flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--aec-pink); margin: 0; }
.aec-check__label { flex: 1 1 auto; }
.aec-check__n { font-size: 12px; color: #9A9AA6; font-weight: 600; }

.aec-more {
	background: none;
	border: 0;
	padding: 8px 0 0;
	font: 700 13.5px/1 var(--aec-font);
	color: var(--aec-pink-d);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (min-width: 1024px) {
	.aec-rail__wrap { border: 0; margin: 0; position: sticky; top: 24px; background: transparent; }
	.aec-rail__toggle { display: none; }
	.aec-rail__inner { padding: 0; }
	.aec-rail__actions { border-top: 0; padding-top: 18px; }
}

/* --------------------------------------------------------------------------
   8. RESULTS BAR
   -------------------------------------------------------------------------- */

.aec-results__bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }

.aec-search {
	flex: 1 1 240px;
	display: flex;
	align-items: center;
	border: 1px solid var(--aec-line);
	border-radius: 999px;
	background: #fff;
	padding: 5px 5px 5px 18px;
	min-width: 0;
}
.aec-search:focus-within { border-color: var(--aec-pink); }

.aec-search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	font: 500 15px/1.2 var(--aec-font);
	padding: 11px 0;
	color: var(--aec-ink);
	-webkit-appearance: none;
	appearance: none;
}
.aec-search input:focus { outline: none; }
.aec-search input::placeholder { font-weight: 400; color: #8E8E9C; }

.aec-search__go {
	flex: 0 0 auto;
	background: var(--aec-pink);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 11px 20px;
	font: 700 14px/1 var(--aec-font);
	cursor: pointer;
}
.aec-search__go:hover { background: var(--aec-pink-d); }

.aec-sortwrap { flex: 0 0 auto; }

.aec-sortwrap select {
	height: 100%;
	min-height: 49px;
	border: 1px solid var(--aec-line);
	border-radius: 999px;
	background-color: #fff;
	font: 600 14px/1 var(--aec-font);
	color: var(--aec-ink);
	padding: 0 40px 0 20px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23767684' stroke-width='1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 17px center;
}

.aec-results__count { font-size: 14px; color: var(--aec-muted); margin: 0 0 18px; font-weight: 500; }

/* --------------------------------------------------------------------------
   9. GRID + CARD
   -------------------------------------------------------------------------- */

.aec-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

@media (min-width: 620px)  { .aec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .aec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1280px) { .aec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.aec-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--aec-line);
	border-radius: var(--aec-r-lg);
	overflow: hidden;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.aec-card:hover { box-shadow: var(--aec-shadow); border-color: #D4D4DE; transform: translateY(-2px); }

.aec-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--aec-grey-2);
	overflow: hidden;
	margin: 8px 8px 0;
	border-radius: var(--aec-r);
}
.aec-card__media img { width: 100%; height: 100%; object-fit: cover; }

.aec-card__media.is-fallback { background: var(--aec-blush); }
.aec-card__media.is-fallback::after {
	content: attr(data-initials);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	font-weight: 800;
	letter-spacing: -.03em;
	color: rgba(255, 46, 136, .38);
}

.aec-card__media .aec-pill { position: absolute; top: 10px; left: 10px; z-index: 2; }

.aec-card__badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--aec-pink);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 7px 12px;
	border-radius: 999px;
	z-index: 2;
}

.aec-card__logo {
	position: absolute;
	left: 12px;
	bottom: 12px;
	width: 44px;
	height: 44px;
	background: #fff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(35, 35, 43, .14);
	z-index: 2;
}
.aec-card__logo img { width: 100%; height: 100%; object-fit: contain; }

.aec-card__body { padding: 18px 18px 14px; flex: 1 1 auto; }

.aec-card__eyebrow { font-size: 12px; font-weight: 700; color: var(--aec-pink-d); margin: 0 0 7px; }

.aec-card__title {
	font-size: 18.5px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.025em;
	margin: 0 0 4px;
}
.aec-card__title a { color: var(--aec-ink); text-decoration: none; }
.aec-card__title a:hover { color: var(--aec-pink-d); }
.aec-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.aec-card__provider { font-size: 13.5px; color: var(--aec-muted); margin: 0; font-weight: 500; }

.aec-card__key {
	margin: 0 18px;
	padding: 12px 16px;
	background: var(--aec-grey);
	border-radius: var(--aec-r-sm);
	font-weight: 800;
	font-size: 14.5px;
	letter-spacing: -.015em;
	color: var(--aec-ink);
}
.aec-dot { color: #A9A9B6; font-weight: 500; margin: 0 3px; }

.aec-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	padding: 13px 18px 0;
}
.aec-card__next { font-size: 13.5px; color: var(--aec-body); }
.aec-card__next strong { font-weight: 700; color: var(--aec-ink); }
.aec-card__meta { font-size: 12.5px; color: var(--aec-muted); margin-left: auto; }

.aec-card__elig { padding: 11px 18px 15px; }

/* Article cards reuse the shell */
.aec-card--post .aec-card__body { padding-bottom: 0; }

.aec-empty {
	grid-column: 1 / -1;
	border: 1px solid var(--aec-line);
	border-radius: var(--aec-r-lg);
	padding: 48px 24px;
	text-align: center;
	background: var(--aec-grey);
}
.aec-empty__title { font-size: 21px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; }
.aec-empty p { color: var(--aec-body); font-size: 14.5px; margin: 0 0 18px; }

.aec-more-wrap { display: flex; justify-content: center; padding-top: 30px; }
.aec-loadmore { min-width: 220px; }
.aec-more-wrap[hidden] { display: none; }

.aec-pagination { gap: 6px; flex-wrap: wrap; }
.aec-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--aec-line);
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	color: var(--aec-ink);
	text-decoration: none;
	margin: 0 3px;
}
.aec-pagination .page-numbers.current { background: var(--aec-pink); border-color: var(--aec-pink); color: #fff; }

/* --------------------------------------------------------------------------
   10. CLOSING BAND
   -------------------------------------------------------------------------- */

.aec-band { background: var(--aec-blush); margin-top: 52px; }

.aec-band__inner {
	max-width: var(--aec-max);
	margin: 0 auto;
	padding: 46px 20px 52px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.aec-band__title {
	font-size: clamp(25px, 4.8vw, 36px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.03em;
	margin: 0 0 10px;
	max-width: 18ch;
}
.aec-band__text { font-size: 16px; line-height: 1.6; color: var(--aec-body); margin: 0 0 20px; max-width: 46ch; }

.aec-band__card { background: #fff; border-radius: var(--aec-r-lg); padding: 26px; }
.aec-band__card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 8px; }
.aec-band__card p { font-size: 14.5px; line-height: 1.55; color: var(--aec-body); margin: 0 0 20px; }

@media (min-width: 900px) {
	.aec-band__inner { grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 68px 32px 74px; align-items: center; }
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */

.aec-footer { background: var(--aec-grey); border-top: 1px solid var(--aec-line); }

.aec-footer__inner {
	max-width: var(--aec-max);
	margin: 0 auto;
	padding: 44px 20px 22px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.aec-footer__brand { max-width: 34ch; }
.aec-footer__brand p { font-size: 14px; line-height: 1.6; color: var(--aec-body); margin: 12px 0 0; }

.aec-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }

.aec-footer h3 {
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--aec-muted);
	margin: 0 0 12px;
}

.aec-footer ul { list-style: none; margin: 0; padding: 0; }
.aec-footer li { margin: 0 0 9px; }
.aec-footer li a { font-size: 14px; color: var(--aec-body); text-decoration: none; }
.aec-footer li a:hover { color: var(--aec-pink-d); }

.aec-footer__legal {
	max-width: var(--aec-max);
	margin: 0 auto;
	padding: 18px 20px 30px;
	border-top: 1px solid var(--aec-line);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	font-size: 12.5px;
	color: var(--aec-muted);
}
.aec-footer__legal a { color: var(--aec-muted); text-decoration: none; }
.aec-footer__legal a:hover { color: var(--aec-pink-d); }
.aec-footer__copy { margin-right: auto; }

@media (min-width: 760px) { .aec-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
	.aec-footer__inner { grid-template-columns: 1fr 2.1fr; gap: 48px; padding: 56px 32px 26px; }
	.aec-footer__legal { padding: 20px 32px 36px; }
}

/* --------------------------------------------------------------------------
   12. SINGLE COURSE
   -------------------------------------------------------------------------- */

.aec-single { max-width: 1160px; margin: 0 auto; padding: 26px 20px 40px; }

.aec-crumbs { display: flex; flex-wrap: wrap; gap: 7px; font-size: 13px; color: var(--aec-muted); margin-bottom: 16px; }
.aec-crumbs a { color: var(--aec-muted); text-decoration: none; }
.aec-crumbs a:hover { color: var(--aec-pink-d); }

.aec-single__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; align-items: center; }
.aec-single__pills .aec-pill { box-shadow: none; border: 1px solid var(--aec-line); }

.aec-single__title {
	font-size: clamp(28px, 5.4vw, 44px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.033em;
	margin: 12px 0 10px;
}

.aec-single__standfirst { font-size: 17.5px; line-height: 1.55; color: var(--aec-body); margin: 0 0 18px; max-width: 62ch; }

.aec-single__provider { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14.5px; color: var(--aec-muted); margin: 0 0 22px; }
.aec-single__provider img { border-radius: 10px; }
.aec-single__provider a { color: var(--aec-pink-d); font-weight: 700; }

.aec-single__media { border-radius: var(--aec-r-lg); overflow: hidden; margin-bottom: 28px; aspect-ratio: 21 / 9; background: var(--aec-grey-2); }
.aec-single__media img { width: 100%; height: 100%; object-fit: cover; }

.aec-single__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }

@media (min-width: 900px) {
	.aec-single { padding: 34px 32px 40px; }
	.aec-single__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
}

.aec-h2 { font-size: 24px; font-weight: 800; letter-spacing: -.028em; margin: 36px 0 14px; }
.aec-h2:first-child { margin-top: 0; }

.aec-prose { font-size: 16.5px; line-height: 1.68; color: var(--aec-body); }
.aec-prose p { margin: 0 0 16px; }
.aec-prose h2 { font-size: 24px; font-weight: 800; letter-spacing: -.028em; color: var(--aec-ink); margin: 34px 0 12px; }
.aec-prose h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--aec-ink); margin: 26px 0 10px; }
.aec-prose ul, .aec-prose ol { margin: 0 0 18px; padding-left: 22px; }
.aec-prose li { margin: 0 0 8px; }
.aec-prose a { color: var(--aec-pink-d); text-decoration: underline; text-underline-offset: 3px; }
.aec-prose blockquote {
	margin: 22px 0;
	padding: 18px 22px;
	background: var(--aec-blush);
	border-radius: var(--aec-r);
	font-size: 17px;
	color: var(--aec-ink);
}
.aec-prose blockquote p:last-child { margin: 0; }
.aec-prose img { border-radius: var(--aec-r); margin: 22px 0; }

.aec-list { list-style: none; padding: 0; margin: 0; }
.aec-list li {
	position: relative;
	padding: 11px 0 11px 28px;
	border-bottom: 1px solid var(--aec-line);
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--aec-body);
}
.aec-list--check li::before {
	content: "";
	position: absolute;
	left: 3px; top: 18px;
	width: 10px; height: 5px;
	border-left: 2.5px solid var(--aec-pink);
	border-bottom: 2.5px solid var(--aec-pink);
	transform: rotate(-45deg);
}
.aec-list--rule li::before {
	content: "";
	position: absolute;
	left: 2px; top: 20px;
	width: 13px; height: 2.5px;
	border-radius: 2px;
	background: var(--aec-pink);
}
.aec-list--step { counter-reset: aecstep; }
.aec-list--step li { padding-left: 38px; }
.aec-list--step li::before {
	counter-increment: aecstep;
	content: counter(aecstep);
	position: absolute;
	left: 0; top: 10px;
	width: 24px; height: 24px;
	border-radius: 50%;
	background: var(--aec-blush);
	color: var(--aec-pink-d);
	font-size: 12px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aec-note {
	background: var(--aec-blush);
	padding: 16px 18px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--aec-body);
	margin: 22px 0 0;
	border-radius: var(--aec-r);
}

.aec-provider-box { background: var(--aec-grey); border-radius: var(--aec-r); padding: 20px 22px; }
.aec-provider-box p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--aec-body); }
.aec-provider-box__meta { font-size: 13.5px; color: var(--aec-muted); margin: 0; }

.aec-book { border: 1px solid var(--aec-line); border-radius: var(--aec-r-lg); padding: 24px; background: #fff; }
@media (min-width: 900px) { .aec-book { position: sticky; top: 24px; } }

.aec-book .aec-pill { box-shadow: none; border: 1px solid var(--aec-line); }
.aec-book__price { font-size: 32px; font-weight: 800; letter-spacing: -.035em; margin: 14px 0 18px; }
.aec-book__note { display: block; font-size: 13px; font-weight: 500; color: var(--aec-muted); margin-top: 4px; letter-spacing: 0; }

.aec-facts { margin: 0 0 20px; display: grid; grid-template-columns: auto 1fr; font-size: 14px; }
.aec-facts dt { color: var(--aec-muted); padding: 10px 14px 10px 0; border-top: 1px solid var(--aec-line); }
.aec-facts dd { margin: 0; padding: 10px 0; text-align: right; font-weight: 700; border-top: 1px solid var(--aec-line); }

.aec-book .aec-btn + .aec-btn { margin-top: 8px; }
.aec-book__small { font-size: 12px; color: var(--aec-muted); line-height: 1.45; margin: 12px 0 0; text-align: center; }

/* --------------------------------------------------------------------------
   13. REGISTER INTEREST FORM
   -------------------------------------------------------------------------- */

.aec-interest {
	margin: 40px 0 0;
	background: var(--aec-grey);
	border-radius: var(--aec-r-lg);
	padding: 26px 22px 28px;
	scroll-margin-top: 90px;
}
.aec-interest__head h2 { margin: 0 0 6px; }
.aec-interest__head p { font-size: 15px; line-height: 1.55; color: var(--aec-body); margin: 0 0 22px; max-width: 58ch; }

.aec-form__row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 620px) { .aec-form__row { grid-template-columns: 1fr 1fr; } }

.aec-field { margin: 0 0 16px; }
.aec-field label,
.aec-consent label { display: block; font-size: 13.5px; font-weight: 700; color: var(--aec-ink); margin: 0 0 7px; }
.aec-field label span { color: var(--aec-pink-d); }

.aec-field input,
.aec-field select,
.aec-field textarea {
	width: 100%;
	border: 1px solid var(--aec-line);
	border-radius: var(--aec-r-sm);
	background: #fff;
	font: 500 16px/1.4 var(--aec-font);
	color: var(--aec-ink);
	padding: 13px 15px;
	-webkit-appearance: none;
	appearance: none;
}
.aec-field textarea { resize: vertical; min-height: 110px; }
.aec-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23767684' stroke-width='1.8'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
}
.aec-field input:focus,
.aec-field select:focus,
.aec-field textarea:focus { outline: none; border-color: var(--aec-pink); box-shadow: 0 0 0 3px rgba(255, 46, 136, .14); }

.aec-consent { margin: 4px 0 20px; }
.aec-consent label {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--aec-body);
}
.aec-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--aec-pink); flex: 0 0 auto; }
.aec-consent a { color: var(--aec-pink-d); }

.aec-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.aec-form__note { font-size: 12.5px; color: var(--aec-muted); }

.aec-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.aec-notice { border-radius: var(--aec-r); padding: 16px 18px; margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; }
.aec-notice p { margin: 0 0 6px; }
.aec-notice p:last-child { margin: 0; }
.aec-notice--ok { background: rgba(22, 163, 74, .1); color: #10803B; }
.aec-notice--bad { background: var(--aec-blush); color: var(--aec-pink-d); }

.aec-form__result { margin-top: 16px; }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */

.aec-faq { border-top: 1px solid var(--aec-line); }
.aec-faq__item { border-bottom: 1px solid var(--aec-line); }
.aec-faq__item summary {
	list-style: none;
	cursor: pointer;
	padding: 17px 34px 17px 0;
	font-size: 16.5px;
	font-weight: 700;
	letter-spacing: -.015em;
	color: var(--aec-ink);
	position: relative;
}
.aec-faq__item summary::-webkit-details-marker { display: none; }
.aec-faq__item summary::after {
	content: "";
	position: absolute;
	right: 6px; top: 24px;
	width: 8px; height: 8px;
	border-right: 2.5px solid var(--aec-pink);
	border-bottom: 2.5px solid var(--aec-pink);
	transform: rotate(45deg);
	transition: transform .18s ease;
}
.aec-faq__item[open] summary::after { transform: rotate(-135deg); top: 27px; }
.aec-faq__a { padding: 0 0 18px; }
.aec-faq__a p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--aec-body); }

/* --------------------------------------------------------------------------
   15. ARTICLE
   -------------------------------------------------------------------------- */

.aec-article { max-width: 780px; margin: 0 auto; padding: 26px 20px 20px; }

.aec-article__title {
	font-size: clamp(30px, 6vw, 46px);
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: -.035em;
	margin: 12px 0 14px;
}
.aec-article__standfirst { font-size: 18.5px; line-height: 1.55; color: var(--aec-body); margin: 0 0 22px; }

.aec-article__meta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--aec-muted); margin: 0 0 26px; }
.aec-article__meta strong { color: var(--aec-ink); font-size: 14px; }
.aec-article__avatar { border-radius: 50%; }

.aec-article__media { border-radius: var(--aec-r-lg); overflow: hidden; margin: 0 0 30px; }
.aec-article__media img { width: 100%; height: auto; }

.aec-prose--article { font-size: 17.5px; line-height: 1.75; }
.aec-prose--article > p:first-of-type { font-size: 19px; color: var(--aec-ink); }

.aec-article__tags { margin: 30px 0 0; }

.aec-article__cta {
	margin: 40px 0 0;
	background: var(--aec-blush);
	border-radius: var(--aec-r-lg);
	padding: 28px 26px 30px;
}
.aec-article__cta h2 { font-size: 22px; font-weight: 800; letter-spacing: -.028em; margin: 0 0 8px; }
.aec-article__cta p { font-size: 15.5px; line-height: 1.6; color: var(--aec-body); margin: 0 0 20px; }

@media (min-width: 900px) { .aec-article { padding: 34px 20px 20px; } }

/* --------------------------------------------------------------------------
   16. STATE + MOTION
   -------------------------------------------------------------------------- */

.aec-grid.is-loading { opacity: .45; pointer-events: none; transition: opacity .12s ease; }

@media (min-width: 1024px) {
	.aec-has-js .aec-rail__apply { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.aec *, .aec-hero *, .aec-header *, .aec-footer * {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
	.aec-card:hover { transform: none; }
}
