/* Integrated Courses page — scoped to the WPBakery row carrying el_class "ic". */

.ic {
	--ic-ink: #12211f;
	--ic-muted: #5a6763;
	--ic-teal: #006b68;
	--ic-teal-deep: #06403e;
	--ic-mint: #d9efe6;
	--ic-paper: #fbfaf7;
	--ic-sand: #f2efe7;
	--ic-line: #e2ded3;
	--ic-white: #fff;
	--ic-radius: 18px;
	--ic-display: "Bai Jamjuree", system-ui, sans-serif;
	--ic-body: "Inter", "Bai Jamjuree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ic-nav-h: 60px;
	--ic-top: 0px; /* height of the WP admin bar above the sticky sub-nav */

	/* Subject group accents. */
	--ic-g1: #2e8b62;
	--ic-g2: #d9822b;
	--ic-g3: #2f68b0;
	--ic-g4: #7d4fb3;
	--ic-g5: #c84867;

	background: var(--ic-paper);
	color: var(--ic-ink);
	font-family: var(--ic-body);
	font-size: 17px;
	line-height: 1.6;
	overflow-x: clip;
	margin: 0 !important;
	padding: 0 !important;
}

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

/* Neutralise WPBakery / Werkstatt spacing around our blocks. */
.ic > .columns,
.ic .vc_column_container > .vc_column-inner,
.ic .wpb_wrapper { padding: 0 !important; margin: 0 !important; }
.ic .wpb_content_element.ic-block { margin: 0 !important; padding: 0; }
.ic .ic-block > .wpb_wrapper > p:empty,
.ic .ic-block > .wpb_wrapper > br,
.ic .ic-group > br,
.ic .ic-group > p:empty { display: none; }

/* The Subject page template wraps content in .page-padding. */
.page-padding:has(> .ic),
.page-padding:has(.ic) { padding: 0 !important; }

/* Element resets with element-only specificity, so component classes win. */
:where(.ic) h1, :where(.ic) h2, :where(.ic) h3, :where(.ic) p,
:where(.ic) ul, :where(.ic) ol, :where(.ic) dl, :where(.ic) dd, :where(.ic) dt {
	margin: 0;
	padding: 0;
	letter-spacing: normal;
	text-transform: none;
	font-weight: inherit;
}
:where(.ic) ul, :where(.ic) ol { list-style: none; }
:where(.ic) li { margin: 0; font-size: inherit; line-height: inherit; }
body :where(.ic) a { font-size: inherit; line-height: inherit; }
:where(.ic) a { color: inherit; text-decoration: none; }
:where(.ic) p {
	color: inherit;
	font-size: inherit;
	line-height: inherit !important; /* theme: p { line-height: 1.15em !important } */
}
.ic .wpb_text_column a::after { content: none; }
.ic strong { font-weight: 600; }

.ic-wrap {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 40px);
}

.ic-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* The theme forces h1–h5 { font-family: "Sis-Bold"; font-weight: 400 !important }
   and h3 { font-size: 20px; margin-bottom: 10px } with !important. */
.ic .ic-h2 {
	font-family: var(--ic-display);
	font-weight: 700 !important;
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.15 !important;
	letter-spacing: -0.01em;
	color: var(--ic-teal-deep);
	margin-bottom: 0 !important;
}
.ic .ic-h3 {
	font-family: var(--ic-display);
	font-weight: 700 !important;
	font-size: 22px !important;
	line-height: 1.25 !important;
	color: var(--ic-teal-deep);
	margin: 0 0 24px !important;
}

.ic .ic-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--ic-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ic-teal);
	margin-bottom: 16px;
}
.ic .ic-kicker::before {
	content: "";
	flex: 0 0 28px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.ic-section { padding-block: clamp(64px, 9vw, 112px); }
.ic section[id] { scroll-margin-top: calc(var(--ic-top) + var(--ic-nav-h) + 16px); }

/* ---------- Buttons ---------- */

.ic-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ic .ic-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	font-family: var(--ic-display);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	border: 1.5px solid transparent;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.ic .ic-btn:hover { transform: translateY(-2px); }
.ic .ic-btn--primary { background: var(--ic-teal); color: var(--ic-white); }
.ic .ic-btn--primary:hover { background: var(--ic-teal-deep); color: var(--ic-white); }
.ic .ic-btn--ghost { border-color: var(--ic-line); color: var(--ic-teal-deep); background: var(--ic-white); }
.ic .ic-btn--ghost:hover { border-color: var(--ic-teal); color: var(--ic-teal-deep); }
.ic-arrow { display: inline-block; transition: transform .2s; }
.ic-btn--primary:hover .ic-arrow { transform: translateY(3px); }

.ic a:focus-visible,
.ic button:focus-visible,
.ic input:focus-visible { outline: 3px solid var(--ic-g2); outline-offset: 3px; }

/* ---------- Hero ---------- */

.ic-hero {
	position: relative;
	/* Top padding clears the theme header, which is absolutely positioned. */
	padding-block: clamp(108px, 9vw, 120px) clamp(40px, 5vw, 64px);
	background:
		radial-gradient(700px 420px at 92% 10%, rgba(0, 107, 104, .10), transparent 65%),
		linear-gradient(180deg, var(--ic-white), var(--ic-paper));
	border-bottom: 1px solid var(--ic-line);
	isolation: isolate;
}
.ic-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
}
.ic .ic-hero__title {
	font-family: var(--ic-display);
	font-weight: 700 !important;
	font-size: clamp(44px, 7vw, 92px);
	line-height: .98 !important;
	letter-spacing: -0.03em;
	color: var(--ic-teal-deep);
	margin-bottom: 0 !important;
}
.ic-hero__title em { font-style: normal; color: var(--ic-teal); }
.ic .ic-hero__lead {
	max-width: 58ch;
	margin-top: 24px;
	font-size: 18px;
	color: var(--ic-muted);
}
.ic-hero .ic-actions { margin-top: 32px; }

/* Bio · Circular · Green illustration ([ic_hero_art]). Stacked layers, each
   an SVG: the dot layers spin, the ring layer floats, and back/front drift a
   little toward the pointer (translate set by the script). Every animation
   moves a whole layer with transform, so it runs on the compositor. */
.ic-hero__art { display: flex; justify-content: center; }
.ic-art {
	position: relative;
	width: min(100%, 420px);
	aspect-ratio: 1;
}
.ic-art__back,
.ic-art__front,
.ic-art__layer {
	position: absolute;
	inset: 0;
}
.ic-art__back,
.ic-art__front { transition: translate .6s cubic-bezier(.2, .7, .2, 1); will-change: translate; }
.ic-art svg { display: block; width: 100%; height: 100%; overflow: visible; }

.ic-art__orbit {
	fill: none;
	stroke: rgba(0, 107, 104, .14);
	stroke-width: 1;
}

/* Circular-economy loop: arrowed arcs flowing clockwise, turning slowly in
   the direction of the arrows and carrying the resource tokens with them. */
.ic-art__cycle { animation: ic-spin 48s linear infinite; will-change: transform; }
.ic-art__flow,
.ic-art__head {
	fill: none;
	stroke: rgba(0, 107, 104, .45);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ic-art__flow { stroke-dasharray: 1 7; }
.ic-art__token {
	position: absolute;
	width: 38px;
	height: 38px;
	margin: -19px 0 0 -19px; /* centre on left/top without using transform */
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ic-white);
	border: 1.5px solid currentColor;
	box-shadow: 0 6px 14px -8px rgba(6, 64, 62, .45);
	/* Counter-rotate so the icon stays upright while the loop turns. */
	animation: ic-spin 48s linear infinite reverse;
}
.ic-art .ic-art__token svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ic-art__token--leaf { color: var(--ic-g1); }
.ic-art__token--sun { color: #c98a0e; }
.ic-art__token--drop { color: var(--ic-g3); }

.ic-art__comets { fill: #96c44a; animation: ic-spin 18s linear infinite reverse; will-change: transform; }
.ic-art__comets circle:nth-child(2) { opacity: .55; }

.ic-art__float { animation: ic-float 7s ease-in-out infinite; will-change: transform; }
/* Only the rings take the pointer; the layers above them must not block it. */
.ic-art__back,
.ic-art__front,
.ic-art__layer { pointer-events: none; }
.ic-art__ring { pointer-events: auto; }

.ic-art__ring {
	--tone: var(--ic-teal);
	cursor: default;
	transform-box: fill-box;
	transform-origin: center;
	transition: scale .45s cubic-bezier(.3, .8, .25, 1);
}
.ic-art__ring--b { --tone: var(--ic-g1); }
.ic-art__ring--c { --tone: var(--ic-teal); }
.ic-art__ring--g { --tone: #5f8f22; }
.ic-art__disc {
	fill: var(--tone);
	fill-opacity: .16;
	stroke: var(--tone);
	stroke-opacity: .35;
	stroke-width: 1.5;
	transition: fill-opacity .35s ease, stroke-opacity .35s ease;
}
.ic-art__badge circle {
	fill: var(--ic-white);
	stroke: var(--tone);
	stroke-opacity: .25;
	stroke-width: 1.5;
}
.ic-art__icon path {
	fill: none;
	stroke: var(--tone);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ic-art__word {
	fill: var(--tone);
	font-family: var(--ic-display);
	font-weight: 700;
	font-size: 17px;
	letter-spacing: .02em;
	text-anchor: middle;
}
/* Shared centre where all three rings meet. */
.ic-art__core { pointer-events: none; }
.ic-art__core circle {
	fill: var(--ic-teal-deep);
	stroke: var(--ic-white);
	stroke-width: 3;
}
.ic-art__core text {
	fill: var(--ic-white);
	font-family: var(--ic-display);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .08em;
	text-anchor: middle;
}
.ic-art__ring:hover { scale: 1.06; }
.ic-art__ring:hover .ic-art__disc { fill-opacity: .3; stroke-opacity: .7; }
.ic-art__ring:hover .ic-art__badge circle { stroke-opacity: .6; }

@keyframes ic-spin { to { transform: rotate(360deg); } }
@keyframes ic-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-1.75%); }
}
.ic-hero.is-offscreen .ic-art__cycle,
.ic-hero.is-offscreen .ic-art__token,
.ic-hero.is-offscreen .ic-art__comets,
.ic-hero.is-offscreen .ic-art__float { animation-play-state: paused; }

.ic-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: clamp(40px, 5vw, 64px) !important;
	border-top: 1px solid var(--ic-line);
}
.ic-stat { padding: 20px 24px 0 0; }
.ic-stat + .ic-stat { padding-left: 24px; border-left: 1px solid var(--ic-line); }
/* Paragraphs rather than <dl>: the editor on production strips dl/dt/dd.
   The dt/dd selectors stay for content pasted before the change. */
.ic-stat dt,
.ic .ic-stat__label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6 !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ic-muted);
}
.ic-stat dd,
.ic .ic-stat__value {
	font-family: var(--ic-display);
	font-weight: 700;
	font-size: clamp(36px, 4vw, 52px);
	line-height: 1.1 !important;
	color: var(--ic-teal-deep);
	font-variant-numeric: tabular-nums;
}

/* ---------- Sub navigation ---------- */

/* The theme's #wrapper [role="main"] { overflow: hidden } breaks sticky. */
#wrapper [role="main"] { overflow: hidden; overflow: clip; }

.ic .ic-block--nav { position: sticky; top: var(--ic-top); z-index: 20; }
.admin-bar .ic { --ic-top: 32px; }
@media (max-width: 782px) { .admin-bar .ic { --ic-top: 0px; } }

.ic-subnav {
	background: var(--ic-paper); /* opaque: group heads scroll beneath it */
	border-bottom: 1px solid var(--ic-line);
}
.ic-subnav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	min-height: var(--ic-nav-h);
	overflow-x: auto;
	scrollbar-width: none;
	margin-inline: -8px !important;
}
.ic-subnav__list::-webkit-scrollbar { display: none; }
.ic .ic-subnav__list a {
	display: block;
	white-space: nowrap;
	padding: 8px 14px;
	border-radius: 999px;
	font-family: var(--ic-display);
	font-weight: 600;
	font-size: 15px;
	color: var(--ic-muted);
	transition: color .2s, background-color .2s;
}
.ic .ic-subnav__list a:hover { color: var(--ic-teal-deep); background: rgba(0, 107, 104, .07); }
.ic .ic-subnav__list a.is-active { background: var(--ic-teal-deep); color: var(--ic-white); }

/* Sliding pill: once the script runs, the active background is a single
   pseudo-element that glides between links (position/size set via --pill-*). */
.ic-subnav__list { position: relative; }
.ic-subnav__list li { position: relative; z-index: 1; }
.ic-subnav__list.has-pill::before {
	content: "";
	position: absolute;
	top: var(--pill-y, 0);
	left: 0;
	width: var(--pill-w, 0);
	height: var(--pill-h, 0);
	border-radius: 999px;
	background: var(--ic-teal-deep);
	transform: translateX(var(--pill-x, 0));
	opacity: 0;
	transition: transform .45s cubic-bezier(.3, .8, .25, 1), width .45s cubic-bezier(.3, .8, .25, 1), opacity .25s ease;
}
.ic-subnav__list.has-pill.pill-on::before { opacity: 1; }
.ic-subnav__list.pill-instant::before { transition: opacity .25s ease; }
.ic .ic-subnav__list.has-pill a.is-active { background: transparent; transition: color .3s ease .08s; }

/* ---------- BCG ---------- */

.ic-split {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: end;
	margin-bottom: clamp(48px, 6vw, 72px);
}
.ic .ic-lead { font-size: 18px; color: var(--ic-muted); }

#wrapper .ic .ic-roles {
	counter-reset: ic-role;
	display: grid;
	gap: 16px;
}
/* "#wrapper .ic" beats the theme's "#wrapper ol li" / "li:before" counters. */
#wrapper .ic .ic-role {
	counter-increment: ic-role;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 24px;
	border-radius: var(--ic-radius);
	background: var(--ic-white);
	border: 1px solid var(--ic-line);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
#wrapper .ic .ic-role::before {
	content: counter(ic-role, decimal-leading-zero);
	counter-increment: none;
	display: block;
	width: auto;
	height: auto;
	margin: 0 0 8px;
	border: 0;
	font-family: var(--ic-display);
	font-weight: 700;
	font-size: 28px;
	line-height: 1;
	color: var(--ic-mint);
	-webkit-text-stroke: 1.5px var(--ic-teal);
}
.ic-role:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: 0 18px 40px -18px rgba(6, 64, 62, .35);
}
.ic .ic-role__title { font-family: var(--ic-display); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--ic-teal-deep); }
.ic .ic-role__text { font-size: 15px; color: var(--ic-muted); }
/* 4 + 3 on a 12-column grid: the last row's three cards share the full width. */
#wrapper .ic .ic-roles { grid-template-columns: repeat(12, minmax(0, 1fr)); }
#wrapper .ic .ic-role { grid-column: span 3; }
#wrapper .ic .ic-role:nth-child(n + 5) { grid-column: span 4; }

/* ---------- Approach ---------- */

.ic-approach {
	background:
		radial-gradient(800px 420px at 100% 0%, rgba(150, 196, 74, .16), transparent 60%),
		var(--ic-teal-deep);
	color: rgba(255, 255, 255, .82);
}
.ic .ic-approach .ic-h2 { color: var(--ic-white); margin-bottom: 24px !important; }
.ic-approach__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}
.ic-approach__text p + p { margin-top: 16px !important; }
.ic-approach strong { color: var(--ic-white); }
.ic-focus {
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--ic-radius);
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .16);
}
.ic .ic-focus__intro { margin-bottom: 16px; color: var(--ic-white); }
#wrapper .ic .ic-focus__list { counter-reset: ic-focus; display: grid; gap: 12px; }
#wrapper .ic .ic-focus__list li {
	counter-increment: ic-focus;
	position: relative;
	margin: 0;
	padding: 14px 0 0 48px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: 16px;
}
#wrapper .ic .ic-focus__list li::before {
	content: counter(ic-focus);
	counter-increment: none;
	position: absolute;
	left: 0;
	top: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #96c44a;
	color: var(--ic-teal-deep);
	font-family: var(--ic-display);
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
}
.ic .ic-approach__close {
	grid-column: 1 / -1;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-family: var(--ic-display);
	font-weight: 500;
	font-size: clamp(19px, 2vw, 24px);
	line-height: 1.4 !important;
	color: var(--ic-white);
}

/* ---------- Course catalog ---------- */

.ic-catalog__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
}
.ic .ic-catalog__count { font-size: 15px; color: var(--ic-muted); }
.ic-catalog__count b { font-family: var(--ic-display); font-size: 22px; color: var(--ic-teal-deep); }

.ic-toolbar {
	display: grid;
	gap: 14px;
	padding: 16px;
	margin-bottom: clamp(32px, 5vw, 56px);
	border-radius: var(--ic-radius);
	background: var(--ic-white);
	border: 1px solid var(--ic-line);
}
.ic-search { position: relative; display: block; margin: 0 !important; }
.ic-search::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	width: 14px;
	height: 14px;
	border: 2px solid var(--ic-muted);
	border-radius: 50%;
	translate: 0 -60%;
	pointer-events: none;
}
.ic-search::after {
	content: "";
	position: absolute;
	left: 31px;
	top: 50%;
	width: 2px;
	height: 7px;
	background: var(--ic-muted);
	rotate: -45deg;
	translate: 0 2px;
	pointer-events: none;
}
.ic .ic-search__input {
	box-sizing: border-box; /* the theme sets content-box on search inputs */
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 18px 0 48px;
	border: 1px solid var(--ic-line);
	border-radius: 12px;
	background: var(--ic-paper);
	font-family: var(--ic-body);
	font-size: 16px;
	color: var(--ic-ink);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.ic .ic-search__input:focus { border-color: var(--ic-teal); background: var(--ic-white); outline: none; box-shadow: 0 0 0 3px rgba(0, 107, 104, .15); }

.ic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ic .ic-chip {
	--c: var(--ic-teal-deep);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: auto;
	min-height: 40px;
	margin: 0;
	padding: 6px 16px;
	border: 1.5px solid var(--ic-line);
	border-radius: 999px;
	background: var(--ic-white);
	font-family: var(--ic-display);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--ic-ink);
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.ic .ic-chip::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c);
}
.ic .ic-chip[data-ic-filter="all"]::before { display: none; }
.ic .ic-chip[data-ic-filter="wellness"] { --c: var(--ic-g1); }
.ic .ic-chip[data-ic-filter="entrepreneurship"] { --c: var(--ic-g2); }
.ic .ic-chip[data-ic-filter="citizens"] { --c: var(--ic-g3); }
.ic .ic-chip[data-ic-filter="language"] { --c: var(--ic-g4); }
.ic .ic-chip[data-ic-filter="aesthetics"] { --c: var(--ic-g5); }
.ic .ic-chip:hover { border-color: var(--c); background: var(--ic-white); color: var(--ic-ink); }
.ic .ic-chip.is-active { background: var(--c); border-color: var(--c); color: var(--ic-white); }
.ic .ic-chip.is-active::before { background: var(--ic-white); }
.ic-chip__n { font-weight: 500; opacity: .7; }

/* Scroll cues for the chip row, toggled by the script: a fade on each edge
   that still has chips out of view (the cut-off chip "peeks" through it),
   plus a thin scroll track underneath. */
.ic-chips-wrap { position: relative; min-width: 0; } /* grid item: stay as wide as the toolbar */
.ic-chips { position: relative; } /* offsetParent for centring the active chip */
.ic-chips-wrap.has-overflow .ic-chips {
	--fade-l: 0px;
	--fade-r: 0px;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
	mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.ic-chips-wrap.can-prev .ic-chips { --fade-l: 40px; }
.ic-chips-wrap.can-next .ic-chips { --fade-r: 48px; }

.ic-chips__track {
	display: none;
	position: relative;
	height: 3px;
	margin-top: 12px;
	border-radius: 3px;
	background: var(--ic-sand);
	overflow: hidden;
}
.ic-chips-wrap.has-overflow .ic-chips__track { display: block; }
.ic-chips__track span {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
	background: rgba(6, 64, 62, .35);
}

/* Group: sticky intro on the left, course cards on the right. */
.ic-group {
	--accent: var(--ic-teal);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(24px, 4vw, 56px);
	padding-block: clamp(32px, 4vw, 48px);
	border-top: 1px solid var(--ic-line);
}
.ic-group--1 { --accent: var(--ic-g1); }
.ic-group--2 { --accent: var(--ic-g2); }
.ic-group--3 { --accent: var(--ic-g3); }
.ic-group--4 { --accent: var(--ic-g4); }
.ic-group--5 { --accent: var(--ic-g5); }
.ic-group[hidden] { display: none; }

.ic-group__head { position: sticky; top: calc(var(--ic-top) + var(--ic-nav-h) + 32px); align-self: start; }
.ic .ic-group__no {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: var(--accent);
	color: var(--ic-white);
	font-family: var(--ic-display);
	font-weight: 700;
	font-size: 20px;
	line-height: 1 !important;
}
.ic .ic-group__name {
	font-family: var(--ic-display);
	font-weight: 700 !important;
	font-size: clamp(24px, 2.4vw, 30px);
	line-height: 1.15 !important;
	color: var(--ic-teal-deep);
	margin-bottom: 14px !important;
}
.ic .ic-group__desc { font-size: 15px; color: var(--ic-muted); }

.ic-courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-content: start; }
.ic-course {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px 18px;
	border-radius: 14px;
	background: var(--ic-white);
	border: 1px solid var(--ic-line);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ic-course::before {
	content: "";
	position: absolute;
	left: -1px;
	top: 18px;
	bottom: 18px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--accent);
}
.ic-course:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 16px 32px -18px rgba(6, 64, 62, .4);
}
.ic-course[hidden] { display: none; }
.ic-course__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-bottom: 4px;
	font-size: 13px;
	color: var(--ic-muted);
}
.ic-course__no { font-family: var(--ic-display); font-weight: 700; color: var(--accent); }
.ic-course__code {
	padding: 2px 8px;
	border-radius: 6px;
	background: var(--ic-sand);
	font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
	font-size: 13px;
	letter-spacing: .02em;
	color: var(--ic-ink);
}
.ic-course__credits { margin-left: auto; white-space: nowrap; }
.ic-course__credits b { font-family: var(--ic-display); font-size: 15px; color: var(--ic-teal-deep); }
.ic .ic-course__title {
	font-family: var(--ic-display);
	font-weight: 700 !important;
	font-size: 18px !important;
	line-height: 1.3 !important;
	margin: 0 !important;
	color: var(--ic-teal-deep);
}
/* The whole card is the link's hit area. */
/* The whole card is the link's hit area. "static" undoes the theme's
   .wpb_text_column a { position: relative }, which would shrink it to the title. */
.ic .ic-course__link { position: static; }
.ic .ic-course__link::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ic .ic-course__link:focus-visible { outline: none; }
.ic-course:has(.ic-course__link:focus-visible) { outline: 3px solid var(--ic-g2); outline-offset: 3px; }
.ic .ic-course__th { font-family: var(--ic-display); font-weight: 500; font-size: 15px; color: var(--ic-ink); }
.ic .ic-course__desc { font-size: 14px; line-height: 1.6 !important; color: var(--ic-muted); }
.ic .ic-course__more {
	position: relative;
	z-index: 2; /* above the card-wide overlay */
	align-self: flex-start;
	margin-top: auto;
	padding-top: 10px;
	font-family: var(--ic-display);
	font-weight: 600;
	font-size: 14px;
	color: var(--accent);
}
.ic-course:hover .ic-arrow { transform: translateX(4px); }
.ic .ic-course__more:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }


.ic .ic-empty {
	padding: 48px 24px;
	border: 1.5px dashed var(--ic-line);
	border-radius: var(--ic-radius);
	text-align: center;
	color: var(--ic-muted);
}
.ic .ic-empty[hidden] { display: none; }

/* ---------- Motion (enabled only once JS has run) ---------- */

.ic-js [data-ic-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
	transition-delay: var(--ic-delay, 0s);
}
.ic-js [data-ic-reveal].is-in { opacity: 1; transform: none; }
.ic-js .ic-role.is-in:hover { transform: translateY(-4px); }
.ic-js .ic-course.is-in:hover { transform: translateY(-3px); }
.ic-js .ic-course[data-ic-reveal] { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s; }

/* Course cards: the accent bar grows in after the card lands. */
.ic-js .ic-course[data-ic-reveal]::before {
	transform: scaleY(0);
	transform-origin: top;
	transition: transform .5s cubic-bezier(.2, .7, .2, 1) calc(var(--ic-delay, 0s) + .25s);
}
.ic-js .ic-course[data-ic-reveal].is-in::before { transform: none; }

/* Group intro: the number badge pops in. */
.ic-js .ic-group__head[data-ic-reveal] .ic-group__no {
	transform: scale(.6) rotate(-12deg);
	transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) .15s;
}
.ic-js .ic-group__head[data-ic-reveal].is-in .ic-group__no { transform: none; }

/* Filter / search: cards, groups and the empty note that reappear slide in
   (class added by the script, staggered via --ic-enter-delay). */
@keyframes ic-enter {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to { opacity: 1; transform: none; }
}
@keyframes ic-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ic-tick {
	0% { transform: translateY(-40%); opacity: 0; }
	60% { transform: translateY(6%); opacity: 1; }
	100% { transform: none; }
}
.ic-js .ic-course.is-entering,
.ic-js .ic-empty.is-entering {
	animation: ic-enter .45s cubic-bezier(.2, .7, .2, 1) var(--ic-enter-delay, 0s) both;
}
.ic-js .ic-group.is-entering { animation: ic-fade .35s ease both; }
.ic-catalog__shown { display: inline-block; }
.ic-js .ic-catalog__shown.is-entering { animation: ic-tick .35s cubic-bezier(.2, .7, .2, 1); }

@media (prefers-reduced-motion: reduce) {
	.ic *,
	.ic *::before,
	.ic *::after { transition: none !important; animation: none !important; }
	.ic-js [data-ic-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.ic-hero__grid { grid-template-columns: minmax(0, 1fr) 220px; }
	.ic-split,
	.ic-approach__grid { grid-template-columns: 1fr; }
	#wrapper .ic .ic-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#wrapper .ic .ic-role,
	#wrapper .ic .ic-role:nth-child(n + 5) { grid-column: span 1; }
	#wrapper .ic .ic-role:last-child { grid-column: 1 / -1; }
	.ic-group { grid-template-columns: 1fr; }
	.ic-group__head { position: static; }
	.ic .ic-group__desc { max-width: 70ch; }
}

@media (max-width: 720px) {
	.ic { font-size: 16px; }
	.ic-hero__grid { grid-template-columns: 1fr; }
	/* The illustration becomes a faint backdrop behind the hero text. */
	.ic-hero { overflow: hidden; }
	.ic-hero__art {
		position: absolute;
		top: 72px;
		right: -96px;
		z-index: -1;
		width: 380px;
		opacity: .16;
		pointer-events: none;
	}
	.ic-hero__art .ic-art { width: 100%; }
	.ic .ic-hero__lead { font-size: 16px; }
	.ic-actions .ic-btn { flex: 1 1 auto; justify-content: center; }
	.ic-stat { padding-right: 12px; }
	.ic-stat + .ic-stat { padding-left: 12px; }
	.ic-stat dt,
	.ic .ic-stat__label { font-size: 11px; letter-spacing: .04em; }
	#wrapper .ic .ic-roles,
	.ic-courses { grid-template-columns: 1fr; }
	#wrapper .ic .ic-role:last-child { grid-column: auto; }
	/* Chips scroll sideways instead of wrapping into a tall block; the toolbar clips them. */
	.ic-toolbar { overflow: hidden; }
	.ic-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		margin-inline: -16px;
		padding-inline: 16px;
	}
	.ic-chips::-webkit-scrollbar { display: none; }
	.ic .ic-chip { flex-shrink: 0; }
	.ic-subnav__list {
		-webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 24px), transparent);
		mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 24px), transparent);
		padding-inline: 8px !important;
	}
}
